NetBSD 6.1.5 doesn't have ldexpl in math.h

Gary E. Miller gem at rellim.com
Wed Sep 13 23:27:28 UTC 2017


Yo Mark!

On Wed, 13 Sep 2017 23:15:10 +0000
Mark Atwood <fallenpegasus at gmail.com> wrote:

> We could just grab from NetBSD7.

Nope, that is very low level FPU assembly code.  Very arch dependent.
Usually buried deep in the C compiler as a builtin.

Just look at gcc for all the arch options it has for floating point!

> Or if we know it's an IEEE754
> float, just do the direct bit ops.

Sort of a float, it is a long double.  The IEEE754 does not specify how
big in memory a long double is.  It may be 80 bits, or 128 bits, or?

IEEE754 also does not specify how the bits are arranged in memory.

> Or the direct fp cpu op.

Assuming you even have a long double FPU.  Remember this has to
support various, ARM, i386, amd64, MIPS, sparc, etc.  you may not even
have any FPU.

RGDS
GARY
---------------------------------------------------------------------------
Gary E. Miller Rellim 109 NW Wilmington Ave., Suite E, Bend, OR 97703
	gem at rellim.com  Tel:+1 541 382 8588

	    Veritas liberabit vos. -- Quid est veritas?
    "If you can’t measure it, you can’t improve it." - Lord Kelvin
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 488 bytes
Desc: OpenPGP digital signature
URL: <https://lists.ntpsec.org/pipermail/devel/attachments/20170913/945e9ad7/attachment.bin>


More information about the devel mailing list