Yo Mark! On Wed, 13 Sep 2017 23:15:10 +0000 Mark Atwood <fallenpega...@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 g...@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
pgpVf0zGWK4Im.pgp
Description: OpenPGP digital signature
_______________________________________________ devel mailing list devel@ntpsec.org http://lists.ntpsec.org/mailman/listinfo/devel