This patch adds (configurable) math/float support to libpayload.
The sources are taken from OpenBSD 4.6 and are either public domain or 3-clause BSD.
Also wrote a few new functions and moved some headers around to be able to compile libm sources unchanged.
Signed-off-by: Sylvain Ageneau sylvain_ageneau@yahoo.fr
--- Patch is big because it adds almost all of OpenBSD's libm sources: difficult to split it ...
Changes are quite extensive but should be harmless, I recompiled bayou and coreinfo and they still work fine.
I haven't tested on powerpc, if it breaks on that architecture it's still possible to configure libpayload to not use math functions. The x86 version uses asm sources whenever possible and other arches can use plain C sources.
I'll send another patch with tinyscheme.
Regards, Sylvain Ageneau