bug-datamash
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

On the usage of long double


From: Shawn Wagner
Subject: On the usage of long double
Date: Tue, 2 Jun 2020 06:38:19 -0700

When I first started poking around the datamash source, I was surprised to see it uses long double for numbers internally instead of double. On x86 systems with an 80 bit long double type, this means that operations have to go through the old x87 FPU, making it impossible for compilers to use SSE/AVX instructions and potentially vectorize loops. On 64-bit ARM, I think it ends up using software emulation of a 128 bit type, which is even worse. I'm not really convinced the extra precision is worth it...

What's the reasoning for using long double?

Any interest in a branch that switches to using double (Possibly folded into an OpenMP aware branch I'm playing with (At https://github.com/shawnw/datamash/tree/openmp-support) to give compilers extra hints for vectorizing loops)?


reply via email to

[Prev in Thread] Current Thread [Next in Thread]