This is the mail archive of the glibc-bugs@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug math/6784] fmod() inconsistently sets errno on domain error


------- Additional Comments From mtk dot manpages at gmail dot com  2008-07-31 08:46 -------
Created an attachment (id=2849)
 --> (http://sourceware.org/bugzilla/attachment.cgi?id=2849&action=view)
test program

See also http://sourceware.org/bugzilla/show_bug.cgi?id=6783

sample runs showing problem.  Note that EDOM is set in one case, but not the
other.

$ /tmp/mt_fmod -- inf 1
errno == 0
fetestexcept() says:  FE_INVALID
fmod(inf,1.00000000000000000e+00)=nan
0 FE_INVALID nan

$ /tmp/mt_fmod -- 1 0
errno == EDOM
fetestexcept() says:  FE_INVALID
fmod(1.00000000000000000e+00,0.00000000000000000e+00)=nan
EDOM FE_INVALID nan

-- 


http://sourceware.org/bugzilla/show_bug.cgi?id=6784

------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]