This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug fortran/49010] Result of MOD and MODULO intrinsic has wrong sign
- From: "thenlich at users dot sourceforge.net" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Tue, 17 May 2011 12:05:32 +0000
- Subject: [Bug fortran/49010] Result of MOD and MODULO intrinsic has wrong sign
- Auto-submitted: auto-generated
- References: <bug-49010-4@http.gcc.gnu.org/bugzilla/>
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=49010
--- Comment #7 from Thomas Henlich <thenlich at users dot sourceforge.net> 2011-05-17 11:57:31 UTC ---
I suppose we could still use __builtin_fmod if we reset the sign bit if the
result is -0.