AMD/aocl-libm-ose: AMD libm
github.com
github.com
https://developer.amd.com/amd-aocl/amd-math-library-libm/
The license there looks much less friendly than the 3-clause BSD on Github.
I was unable to build this on macOS 10.13, because "aliases are not supported on darwin".
I'm curious to see the tests, which have not been checked in yet. There was a story a month ago about the Android calculator's library, and how it is used to test java.lang.Math:
https://news.ycombinator.com/item?id=24700705
I wonder what this library's accuracy tests look like.
I'm also curious, of course, to see what kind of performance difference there is. An old post by Agner Fog shows an 85% reduction in run time relative to glibc on AMD hardware:
Think implementing cos(x) using only pure C (so essentially addition, subtraction, multiplication and division of floats).
https://github.com/amd/aocl-libm-ose/tree/master/src/isa/avx...
``` DQ 03ff0842108421084h DQ 03ff07b9f29b8eae2h DQ 03ff073260a47f7c6h DQ 03ff06ab59c7912fbh DQ 03ff0624dd2f1a9fch DQ 03ff059eea0727586h DQ 03ff05197f7d73404h DQ 03ff04949cc1664c5h DQ 03ff0410410410410h DQ 03ff038c6b78247fch DQ 03ff03091b51f5e1ah ```
vrd2, vrda, vrs4, vrsa
Are these different vector lengths?