[PATCH] Simple sqrt implementation for sphereflake

Renato Golin renato.golin at linaro.org
Thu May 8 04:34:59 PDT 2014


Hi ddunbar,

Reports about different results depending on which GCC was used to run the test-suite have prompted me to implement sqrt() as a simple function to avoid library issues. The results on x86_64, ARM and AArch64 are identical, even across Clang and GCC 4.8.

The new implementation should be safe for values between 10^-10 and 10^10. For this particular case, though, it's more than enough.

The images remained pretty. ;)

http://reviews.llvm.org/D3667

Files:
  SingleSource/Benchmarks/Misc-C++/Large/sphereflake.cpp
  SingleSource/Benchmarks/Misc-C++/Large/sphereflake.reference_output
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D3667.9208.patch
Type: text/x-patch
Size: 4967 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20140508/529e3e80/attachment.bin>


More information about the llvm-commits mailing list