diff options
author | skidd13 <skidd13@openttd.org> | 2007-11-19 20:18:27 +0000 |
---|---|---|
committer | skidd13 <skidd13@openttd.org> | 2007-11-19 20:18:27 +0000 |
commit | d076ea8697a61a4d7783bd6e1b5c7f12ecc2ec83 (patch) | |
tree | 62edd9093647d6cf784d5f3f10e9e0d88e07d3d8 /src/macros.h | |
parent | e815dae3c6c7972cb65b460d5add9d8b2674d3f9 (diff) | |
download | openttd-d076ea8697a61a4d7783bd6e1b5c7f12ecc2ec83.tar.xz |
(svn r11479) -Codechange: Move the BIGMUL functions to the file of their usage
-Codechange: Rename the BIGMUL functions to the fitting naming style
Diffstat (limited to 'src/macros.h')
-rw-r--r-- | src/macros.h | 32 |
1 files changed, 0 insertions, 32 deletions
diff --git a/src/macros.h b/src/macros.h index e5f64c68f..75cd43b7a 100644 --- a/src/macros.h +++ b/src/macros.h @@ -221,38 +221,6 @@ static inline int32 ClampToI32(const int64 a) } /** - * Multiply two integer values and shift the results to right. - * - * This function multiplies two integer values. The result is - * shifted by the amount of shift to right. - * - * @param a The first integer - * @param b The second integer - * @param shift The amount to shift the value to right. - * @return The shifted result - */ -static inline int32 BIGMULSS(const int32 a, const int32 b, const uint8 shift) -{ - return (int32)((int64)a * (int64)b >> shift); -} - -/** - * Multiply two unsigned integers and shift the results to right. - * - * This function multiplies two unsigned integers. The result is - * shifted by the amount of shift to right. - * - * @param a The first unsigned integer - * @param b The second unsigned integer - * @param shift The amount to shift the value to right. - * @return The shifted result - */ -static inline uint32 BIGMULUS(const uint32 a, const uint32 b, const uint8 shift) -{ - return (uint32)((uint64)a * (uint64)b >> shift); -} - -/** * Checks if a bit in a value is set. * * This function checks if a bit inside a value is set or not. |