Changeset 615 for GPL/branches/uniaud32-next/include/linux/math64.h
- Timestamp:
- Jan 1, 2021, 5:31:48 AM (5 years ago)
- Location:
- GPL/branches/uniaud32-next
- Files:
-
- 1 edited
- 1 copied
Legend:
- Unmodified
- Added
- Removed
-
GPL/branches/uniaud32-next/include/linux/math64.h
r479 r615 13 13 return n / div; 14 14 } 15 15 16 16 17 static inline u64 div_u64(u64 n, u32 div) … … 53 54 } else 54 55 return low / div; 56 } 57 58 /** 59 * div_s64_rem - signed 64bit divide with 32bit divisor with remainder 60 */ 61 static inline s64 div_s64_rem(s64 dividend, s32 divisor, s32 *remainder) 62 { 63 *remainder = dividend % divisor; 64 return dividend / divisor; 55 65 } 56 66 … … 117 127 } 118 128 129 /** 130 * div_s64_rem - signed 64bit divide with 32bit divisor with remainder 131 */ 132 static inline s64 div_s64_rem(s64 dividend, s32 divisor, s32 *remainder) 133 { 134 *remainder = dividend % divisor; 135 return dividend / divisor; 136 } 137 119 138 #endif 120 139
Note:
See TracChangeset
for help on using the changeset viewer.