projects
/
fw
/
sdcc
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
removed from automatic compilation model-pic16
[fw/sdcc]
/
device
/
lib
/
_fsgt.c
diff --git
a/device/lib/_fsgt.c
b/device/lib/_fsgt.c
index 2fbbda2772631328ccd14e63e99e30d9ad05d391..2397df7b7acd7f7617038d19e84a6b953ed5bc2b 100644
(file)
--- a/
device/lib/_fsgt.c
+++ b/
device/lib/_fsgt.c
@@
-32,11
+32,12
@@
char __fsgt (float a1, float a2)
fl1.f = a1;
fl2.f = a2;
- if (fl1.l<0 && fl2.l<0)
- {
- fl1.l ^= SIGNBIT;
- fl2.l ^= SIGNBIT;
- }
+ if (fl1.l<0 && fl2.l<0) {
+ if (fl2.l > fl1.l)
+ return (1);
+ return (0);
+ }
+
if (fl1.l > fl2.l)
return (1);
return (0);