OSDN Git Service
(root)
/
pf3gnuchains
/
gcc-fork.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
43bb0a1
)
(target_negative): -0 counts as negative.
author
kenner
<kenner@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 9 Mar 1994 23:47:18 +0000
(23:47 +0000)
committer
kenner
<kenner@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 9 Mar 1994 23:47:18 +0000
(23:47 +0000)
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@6735
138bc75d
-0d04-0410-961f-
82ee72b054a4
gcc/real.c
patch
|
blob
|
history
diff --git
a/gcc/real.c
b/gcc/real.c
index
2f06526
..
16d9ebc
100644
(file)
--- a/
gcc/real.c
+++ b/
gcc/real.c
@@
-824,19
+824,14
@@
target_isnan (x)
/* Check for a negative REAL_VALUE_TYPE number.
- *
this means strictly less than zero, not -0
.
+ *
This just checks the sign bit, so that -0 counts as negative
.
*/
int
target_negative (x)
REAL_VALUE_TYPE x;
{
- unsigned EMUSHORT e[NE];
-
- GET_REAL (&x, e);
- if (ecmp (e, ezero) == -1)
- return (1);
- return (0);
+ return ereal_isneg (x);
}
/* Expansion of REAL_VALUE_TRUNCATE.