Changeset 679 for GPL/trunk/include/linux/math64.h
- Timestamp:
- Mar 18, 2021, 8:57:36 PM (4 years ago)
- Location:
- GPL/trunk
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
GPL/trunk
- Property svn:mergeinfo changed
/GPL/branches/uniaud32-linux-3.2.102 (added) merged: 611-614 /GPL/branches/uniaud32-next (added) merged: 615-678
- Property svn:mergeinfo changed
-
GPL/trunk/include/linux/math64.h
r479 r679 5 5 #ifndef MATH64_COMPAT_H 6 6 #define MATH64_COMPAT_H 7 8 #include <linux/types.h> 7 9 8 10 #if BITS_PER_LONG >= 64 … … 13 15 return n / div; 14 16 } 17 15 18 16 19 static inline u64 div_u64(u64 n, u32 div) … … 53 56 } else 54 57 return low / div; 58 } 59 60 /** 61 * div_s64_rem - signed 64bit divide with 32bit divisor with remainder 62 */ 63 static inline s64 div_s64_rem(s64 dividend, s32 divisor, s32 *remainder) 64 { 65 *remainder = dividend % divisor; 66 return dividend / divisor; 55 67 } 56 68 … … 117 129 } 118 130 131 /** 132 * div_s64_rem - signed 64bit divide with 32bit divisor with remainder 133 */ 134 static inline s64 div_s64_rem(s64 dividend, s32 divisor, s32 *remainder) 135 { 136 *remainder = dividend % divisor; 137 return dividend / divisor; 138 } 139 119 140 #endif 120 141
Note:
See TracChangeset
for help on using the changeset viewer.