diff options
author | Joseph Myers <joseph@codesourcery.com> | 2013-10-10 11:40:25 +0000 |
---|---|---|
committer | Joseph Myers <joseph@codesourcery.com> | 2013-10-10 11:40:25 +0000 |
commit | dcc2dd3f46e6cd532527ed041103633f99efb611 (patch) | |
tree | 0f47ffa370df09d1ea8f99e9ebfb92445210b2ec /soft-fp | |
parent | 2ae21ed2d2e2e0e38b84bd046bcf5f009ab417f3 (diff) | |
download | glibc-dcc2dd3f46e6cd532527ed041103633f99efb611.tar.gz |
soft-fp: split FP_INIT_EXCEPTIONS from FP_INIT_ROUNDMODE.
Diffstat (limited to 'soft-fp')
-rw-r--r-- | soft-fp/extenddftf2.c | 2 | ||||
-rw-r--r-- | soft-fp/extendsfdf2.c | 2 | ||||
-rw-r--r-- | soft-fp/extendsftf2.c | 2 | ||||
-rw-r--r-- | soft-fp/soft-fp.h | 8 |
4 files changed, 11 insertions, 3 deletions
diff --git a/soft-fp/extenddftf2.c b/soft-fp/extenddftf2.c index ff76a8cc2f..fd4f9dd960 100644 --- a/soft-fp/extenddftf2.c +++ b/soft-fp/extenddftf2.c @@ -39,7 +39,7 @@ TFtype __extenddftf2(DFtype a) FP_DECL_Q(R); TFtype r; - FP_INIT_ROUNDMODE; + FP_INIT_EXCEPTIONS; FP_UNPACK_RAW_D(A, a); #if (2 * _FP_W_TYPE_SIZE) < _FP_FRACBITS_Q FP_EXTEND(Q,D,4,2,R,A); diff --git a/soft-fp/extendsfdf2.c b/soft-fp/extendsfdf2.c index 7fc4046f8a..614da79d9e 100644 --- a/soft-fp/extendsfdf2.c +++ b/soft-fp/extendsfdf2.c @@ -39,7 +39,7 @@ DFtype __extendsfdf2(SFtype a) FP_DECL_D(R); DFtype r; - FP_INIT_ROUNDMODE; + FP_INIT_EXCEPTIONS; FP_UNPACK_RAW_S(A, a); #if _FP_W_TYPE_SIZE < _FP_FRACBITS_D FP_EXTEND(D,S,2,1,R,A); diff --git a/soft-fp/extendsftf2.c b/soft-fp/extendsftf2.c index 8271a88466..b1ab5935e3 100644 --- a/soft-fp/extendsftf2.c +++ b/soft-fp/extendsftf2.c @@ -39,7 +39,7 @@ TFtype __extendsftf2(SFtype a) FP_DECL_Q(R); TFtype r; - FP_INIT_ROUNDMODE; + FP_INIT_EXCEPTIONS; FP_UNPACK_RAW_S(A, a); #if (2 * _FP_W_TYPE_SIZE) < _FP_FRACBITS_Q FP_EXTEND(Q,S,4,1,R,A); diff --git a/soft-fp/soft-fp.h b/soft-fp/soft-fp.h index b1c6e619b5..8a22a11e20 100644 --- a/soft-fp/soft-fp.h +++ b/soft-fp/soft-fp.h @@ -101,10 +101,18 @@ #define FP_DECL_EX int _fex = 0 #endif +/* Initialize any machine-specific state used in FP_ROUNDMODE, + FP_TRAPPING_EXCEPTIONS or FP_HANDLE_EXCEPTIONS. */ #ifndef FP_INIT_ROUNDMODE #define FP_INIT_ROUNDMODE do {} while (0) #endif +/* Initialize any machine-specific state used in + FP_HANDLE_EXCEPTIONS. */ +#ifndef FP_INIT_EXCEPTIONS +#define FP_INIT_EXCEPTIONS FP_INIT_ROUNDMODE +#endif + #ifndef FP_HANDLE_EXCEPTIONS #define FP_HANDLE_EXCEPTIONS do {} while (0) #endif |