diff options
Diffstat (limited to 'soft-fp/gesf2.c')
-rw-r--r-- | soft-fp/gesf2.c | 19 |
1 files changed, 11 insertions, 8 deletions
diff --git a/soft-fp/gesf2.c b/soft-fp/gesf2.c index f0a8377310..4e5d9393f1 100644 --- a/soft-fp/gesf2.c +++ b/soft-fp/gesf2.c @@ -31,20 +31,23 @@ #include "soft-fp.h" #include "single.h" -CMPtype __gesf2(SFtype a, SFtype b) +CMPtype +__gesf2 (SFtype a, SFtype b) { FP_DECL_EX; - FP_DECL_S(A); FP_DECL_S(B); + FP_DECL_S (A); + FP_DECL_S (B); CMPtype r; - FP_UNPACK_RAW_S(A, a); - FP_UNPACK_RAW_S(B, b); - FP_CMP_S(r, A, B, -2); - if (r == -2 && (FP_ISSIGNAN_S(A) || FP_ISSIGNAN_S(B))) - FP_SET_EXCEPTION(FP_EX_INVALID); + FP_INIT_EXCEPTIONS; + FP_UNPACK_RAW_S (A, a); + FP_UNPACK_RAW_S (B, b); + FP_CMP_S (r, A, B, -2); + if (r == -2) + FP_SET_EXCEPTION (FP_EX_INVALID); FP_HANDLE_EXCEPTIONS; return r; } -strong_alias(__gesf2, __gtsf2); +strong_alias (__gesf2, __gtsf2); |