projects
/
fw
/
sdcc
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
* as/z80/z80mch.c: fixed bug #1704376: missing as-z80 errors
[fw/sdcc]
/
device
/
lib
/
_fsneq.c
diff --git
a/device/lib/_fsneq.c
b/device/lib/_fsneq.c
index 56112a0eac873efd79ba3be2ecc2e0872b34724e..4b675d02f8a5d2bffb0f54c94b33189865e617cc 100644
(file)
--- a/
device/lib/_fsneq.c
+++ b/
device/lib/_fsneq.c
@@
-74,16
+74,10
@@
char __fsneq (float a1, float a2)
fl1.f = a1;
fl2.f = a2;
-#if 0
- if (fl1.l<0 && fl2.l<0)
- {
- fl1.l ^= SIGNBIT;
- fl2.l ^= SIGNBIT;
- }
-#endif
-
if (fl1.l == fl2.l)
return (0);
+ if (((fl1.l | fl2.l) & 0x7FFFFFFF) == 0)
+ return (0);
return (1);
}