27 points · by lelf · 6y ago · 14 comments
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...
vrd2, vrda, vrs4, vrsa
Are these different vector lengths?