QEMU: obsolete functions in libmath
Scot Hetzel
swhetzel at gmail.com
Wed Jan 21 21:57:01 PST 2009
When compiling QEMU, I noticed that fabsl, remainderl, sqrtl, rintl,
lrintl, llrintl were being redefined in fpu/softfloat-native.h.
Looking for the source of this problem, I found that -CURRENT has
these defined in /usr/include/math.h and that these functions have
been implemented in FreeBSD's libm, which made them obsolete in the
../bsd/libmath.a.
Currently, there are two remaining functions that haven't been
implemented (logl and powl).
I have also notice that these patches could be removed, as they are
for FreeBSD 4.x only:
patch-fpu-softfloat-native.c
patch-libmath4
Attached is the patch which will determine what to include in libmath
for FreeBSD 5, 6, 7, and 8.
Scot
-------------- next part --------------
A non-text attachment was scrubbed...
Name: patch-libmath_FreeBSD-version
Type: application/octet-stream
Size: 3727 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/freebsd-emulation/attachments/20090122/5ceb7f57/patch-libmath_FreeBSD-version.obj
More information about the freebsd-emulation
mailing list