NetBSD amd64: which way is the best for supporting 80 bits real/double?

Nikolay via Digitalmars-d digitalmars-d at puremagic.com
Thu May 11 03:33:21 PDT 2017


> What is long double on NetBSD/amd64, 64-bit or full 80-bit?
80 bit
but function set is not full e.g.

acos supports long double
http://netbsd.gw.com/cgi-bin/man-cgi?acos+3+NetBSD-7.0

cos does not support long double
http://netbsd.gw.com/cgi-bin/man-cgi?cos+3+NetBSD-7.0

On Thursday, 11 May 2017 at 10:07:32 UTC, Joakim wrote:
> Dmd uses compiler intrinsics for those trig functions, and I 
> notice that they seem to just call the native x86 asm 
> instructions:
>
> https://github.com/dlang/dmd/blob/master/src/ddmd/root/longdouble.c#L428
As I know native x87 implementation of many math functions is 
terrible, and it is rarely used in real world.


More information about the Digitalmars-d mailing list