sleef
sleef copied to clipboard
Installation, Configuration and Usage Under macOS
Hello,
How could one generate Static Sleef Library under macOS? Could you update the documentation to show how it is done using xCode and GCC? Could you also add examples how could one set the compilation flags (For instant, Fast Math).
Thank You.
You can do that with the standard procedure. In order to use gcc, type "CC=gcc-7 cmake -DBUILD_SHARED_LIBS=FALSE .." when you run cmake.
What about enabling Fast Math? What about enabling higher optimization levels?
Do the static libraries built in Linux match macOS or vise versa?
Thank You.
Optimization flags are automatically set by cmake. You cannot turn on fast-math since it will break the computation.
Are the compilation flags the optimized for performance? What if one would want to reduce accuracy for speed, how could he do that?
Thank You.
Computation in SLEEF is very delicate, and it is not easy to control the balance between speed and accuracy. Please use u35 versions if you prefer speed over accuracy.