This is the mail archive of the newlib@sources.redhat.com mailing list for the newlib project.
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |
Hi:
I've testing libm on my m68k platform using
about 270 basic test pattern.
But I found some strange
error.
1.After linking and running any
"float"(xxxf) math funciton,my m68k system is carshed down.
Do I need any other
include other than math.h ieeefp.h float.h? Or I may make some
mistakes?
2.Linking and running "double" math functions is
OK.
But some function will
fail on some test pattern!
(These test pattern are
modified from glib's math
testsuite)
(1) asin(0) = 0
fail.
(2) asin(-0) = 0 fail.
(3) exp(-0.0) fail but exp(-0)
OK.
(4) pow(0,0) = 1
,pow(0,-0),pow(-0,-0),pow(-0,-0) all fail.
(5) fmod(0,3) =0 ,fmod(-0,3)=0
fail.
(6)
nextafter(0,0),nextafter(-0,0),nextafter(0,-0),nextafter(-0,-0) fail.
PS.The same test patterns are all passed under my
x86 PC.
Thanks!
|
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |