Changeset 9abe2e5 in mainline
- Timestamp:
- 2017-05-04T22:23:34Z (8 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- f233840
- Parents:
- db8626d
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
kernel/genarch/include/genarch/softint/division.h
rdb8626d r9abe2e5 62 62 extern unsigned long long __udivmoddi3(unsigned long long, unsigned long long, 63 63 unsigned long long *); 64 extern unsigned long long __udivmoddi4(unsigned long long, unsigned long long, 65 unsigned long long *); 64 66 65 67 #endif -
kernel/genarch/src/softint/division.c
rdb8626d r9abe2e5 226 226 } 227 227 228 unsigned long long __udivmoddi4(unsigned long long a, unsigned long long b, 229 unsigned long long *c) 230 { 231 return divandmod64(a, b, c); 232 } 233 234 235 228 236 /** @} 229 237 */ -
uspace/lib/softint/generic/division.c
rdb8626d r9abe2e5 222 222 } 223 223 224 long long __divmoddi4(long long a, long long b, long long *c) 225 { 226 unsigned long long rem; 227 long long result = (int) divandmod64(ABSVAL(a), ABSVAL(b), &rem); 228 229 if (SGN(a) == SGN(b)) { 230 *c = rem; 231 return result; 232 } 233 234 *c = -rem; 235 return -result; 236 } 237 224 238 unsigned long long __udivmoddi3(unsigned long long a, unsigned long long b, 225 239 unsigned long long *c) … … 228 242 } 229 243 244 unsigned long long __udivmoddi4(unsigned long long a, unsigned long long b, 245 unsigned long long *c) 246 { 247 return divandmod64(a, b, c); 248 } 249 230 250 /** @} 231 251 */ -
uspace/lib/softint/include/division.h
rdb8626d r9abe2e5 53 53 54 54 extern long long __divmoddi3(long long, long long, long long *); 55 extern long long __divmoddi4(long long, long long, long long *); 55 56 extern unsigned long long __udivmoddi3(unsigned long long, unsigned long long, 57 unsigned long long *); 58 extern unsigned long long __udivmoddi4(unsigned long long, unsigned long long, 56 59 unsigned long long *); 57 60
Note:
See TracChangeset
for help on using the changeset viewer.