about summary refs log tree commit diff
path: root/src/math/powf.c
Commit message (Collapse)AuthorAgeFilesLines
* math: new powfSzabolcs Nagy2019-04-171-240/+166
| | | | | | | | | | | | | | | | | | | | | from https://github.com/ARM-software/optimized-routines, commit 04884bd04eac4b251da4026900010ea7d8850edc POWF_SCALE != 1.0 case only matters if TOINT_INTRINSICS is set, which is currently not supported for any target. SNaN is not supported, it would require an issignalingf implementation. code size change: -816 bytes. benchmark on x86_64 before, after, speedup: -Os: powf rthruput: 95.14 ns/call 20.04 ns/call 4.75x powf latency: 137.00 ns/call 34.98 ns/call 3.92x -O3: powf rthruput: 92.48 ns/call 13.67 ns/call 6.77x powf latency: 131.11 ns/call 35.15 ns/call 3.73x
* math: fix pow(+-0,-inf) not to raise divbyzero flagSzabolcs Nagy2015-04-181-1/+1
| | | | | | this reverts the commit f29fea00b5bc72d4b8abccba2bb1e312684d1fce which was based on a bug in C99 and POSIX and did not match IEEE-754 http://www.open-std.org/jtc1/sc22/wg14/www/docs/n1515.pdf
* math: fix pow(0,-inf) to raise divbyzero flagSzabolcs Nagy2013-08-151-1/+1
|
* clean up pow.c and powf.cnsz2012-03-201-21/+14
| | | | fix comments about special cases
* code cleanup of named constantsnsz2012-03-191-17/+14
| | | | | | | zero, one, two, half are replaced by const literals The policy was to use the f suffix for float consts (1.0f), but don't use suffix for long double consts (these consts can be exactly represented as double).
* math cleanup: use 1.0f instead of 1.0Fnsz2012-03-131-1/+1
|
* math cleanup: use 1.0f instead of (float)1.0nsz2012-03-131-3/+3
|
* first commit of the new libm!Rich Felker2012-03-131-0/+269
thanks to the hard work of Szabolcs Nagy (nsz), identifying the best (from correctness and license standpoint) implementations from freebsd and openbsd and cleaning them up! musl should now fully support c99 float and long double math functions, and has near-complete complex math support. tgmath should also work (fully on gcc-compatible compilers, and mostly on any c99 compiler). based largely on commit 0376d44a890fea261506f1fc63833e7a686dca19 from nsz's libm git repo, with some additions (dummy versions of a few missing long double complex functions, etc.) by me. various cleanups still need to be made, including re-adding (if they're correct) some asm functions that were dropped.