soft-fp: split FP_INIT_EXCEPTIONS from FP_INIT_ROUNDMODE.
This commit is contained in:
parent
2ae21ed2d2
commit
dcc2dd3f46
|
@ -1,5 +1,11 @@
|
|||
2013-10-10 Joseph Myers <joseph@codesourcery.com>
|
||||
|
||||
* soft-fp/soft-fp.h (FP_INIT_EXCEPTIONS): New macro.
|
||||
* soft-fp/extenddftf2.c (__extenddftf2): Use FP_INIT_EXCEPTIONS
|
||||
instead of FP_INIT_ROUNDMODE.
|
||||
* soft-fp/extendsfdf2.c (__extendsfdf2): Likewise.
|
||||
* soft-fp/extendsftf2.c (__extendsftf2): Likewise.
|
||||
|
||||
[BZ #16034]
|
||||
* soft-fp/op-common.h (_FP_NEG): Document input as raw. Do not
|
||||
copy class of input value.
|
||||
|
|
|
@ -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);
|
||||
|
|
|
@ -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);
|
||||
|
|
|
@ -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);
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue