equal
deleted
inserted
replaced
46 return a; |
46 return a; |
47 } |
47 } |
48 |
48 |
49 static inline int32 BIGMULSS(int32 a, int32 b, int shift) { |
49 static inline int32 BIGMULSS(int32 a, int32 b, int shift) { |
50 return (int32)(((int64)(a) * (int64)(b)) >> (shift)); |
50 return (int32)(((int64)(a) * (int64)(b)) >> (shift)); |
51 } |
|
52 |
|
53 static inline int64 BIGMULSS64(int64 a, int64 b, int shift) { |
|
54 return ((a) * (b)) >> (shift); |
|
55 } |
51 } |
56 |
52 |
57 static inline uint32 BIGMULUS(uint32 a, uint32 b, int shift) { |
53 static inline uint32 BIGMULUS(uint32 a, uint32 b, int shift) { |
58 return (uint32)(((uint64)(a) * (uint64)(b)) >> (shift)); |
54 return (uint32)(((uint64)(a) * (uint64)(b)) >> (shift)); |
59 } |
55 } |