This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug middle-end/23195] [4.0/4.1 Regression] Using frexp with fabs produces negative result
- From: "schwab at suse dot de" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 2 Aug 2005 13:06:08 -0000
- Subject: [Bug middle-end/23195] [4.0/4.1 Regression] Using frexp with fabs produces negative result
- References: <20050802105206.23195.m.broadbent@signal.qinetiq.com>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Additional Comments From schwab at suse dot de 2005-08-02 13:06 -------
The C standard says:
[...], the frexp functions return the value x, such that x has a magnitude
in the interval [1/2, 1) or zero, and value equals x × 2^*exp.
The magnitude is also known as the absolute value.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=23195