Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/lib/c/generic/imath.c

    re3272101 r5a6cc679  
    5050errno_t ipow10_u64(unsigned exp, uint64_t *res)
    5151{
    52         uint64_t a;
     52        unsigned a;
    5353        uint64_t r;
    5454
     
    8181 *
    8282 * @param v Value to compute logarithm from
    83  * @param res Place to store result
    84  * @return EOK on success
    8583 * @return Logarithm value
    8684 */
    87 errno_t ilog10_u64(uint64_t v, unsigned *res)
     85unsigned ilog10_u64(uint64_t v)
    8886{
    89         if (v == 0)
    90                 return ERANGE;
    91 
    9287        unsigned b;
    9388        unsigned e;
     
    122117        }
    123118
    124         *res = r;
    125         return EOK;
     119        return r;
    126120}
    127121
Note: See TracChangeset for help on using the changeset viewer.