Changes in uspace/lib/c/generic/imath.c [e3272101:5a6cc679] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/c/generic/imath.c
re3272101 r5a6cc679 50 50 errno_t ipow10_u64(unsigned exp, uint64_t *res) 51 51 { 52 u int64_ta;52 unsigned a; 53 53 uint64_t r; 54 54 … … 81 81 * 82 82 * @param v Value to compute logarithm from 83 * @param res Place to store result84 * @return EOK on success85 83 * @return Logarithm value 86 84 */ 87 errno_t ilog10_u64(uint64_t v, unsigned *res)85 unsigned ilog10_u64(uint64_t v) 88 86 { 89 if (v == 0)90 return ERANGE;91 92 87 unsigned b; 93 88 unsigned e; … … 122 117 } 123 118 124 *res = r; 125 return EOK; 119 return r; 126 120 } 127 121
Note:
See TracChangeset
for help on using the changeset viewer.