Changeset 9adb61d in mainline for uspace/lib/math/generic/log.c


Ignore:
Timestamp:
2015-09-05T11:50:00Z (9 years ago)
Author:
Jiri Svoboda <jiri@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
996dc042, ba8eecf
Parents:
e6f5766
Message:

Add single-precision variant for all functions. Allow generic implementations to call other functions while selecting the number of bits of precision, but not the implementation (generic or arch-specific).

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/lib/math/generic/log.c

    re6f5766 r9adb61d  
    4040#define TAYLOR_DEGREE_64  63
    4141
    42 /** Single precision log(1 - arg) approximation by Taylor series
     42/** log(1 - arg) approximation by Taylor series (32-bit floating point)
    4343 *
    4444 * Compute the approximation of log(1 - arg) by a Taylor
     
    6868}
    6969
    70 /** Double precision log(1 - arg) approximation by Taylor series
     70/** log(1 - arg) approximation by Taylor series (64-bit floating point)
    7171 *
    7272 * Compute the approximation of log(1 - arg) by a Taylor
     
    9696}
    9797
    98 /** Single precision logarithm
     98/** Natural logarithm (32-bit floating point)
    9999 *
    100100 * @param arg Argument.
     
    126126}
    127127
    128 /** Double precision logarithm
     128/** Natural logarithm (64-bit floating point)
    129129 *
    130130 * @param arg Argument.
Note: See TracChangeset for help on using the changeset viewer.