diff options
author | Thomas Schwinge <thomas@codesourcery.com> | 2013-12-20 09:29:29 +0100 |
---|---|---|
committer | Thomas Schwinge <thomas@codesourcery.com> | 2013-12-20 09:29:29 +0100 |
commit | a65dd355fb80a05215e15ae97649de52aec885e3 (patch) | |
tree | 81701bb0c6b648630f2bf1729a85d7f5eb49e67b /soft-fp/trunctfdf2.c | |
parent | 296a5732f94abe4d5699dc981e4ccfb950b48cee (diff) | |
parent | b4578bab30f72cddd2cf38abfb39f9c8dc892249 (diff) |
Merge branch 'baseline' into refs/top-bases/tschwinge/Roger_Whittaker
Diffstat (limited to 'soft-fp/trunctfdf2.c')
-rw-r--r-- | soft-fp/trunctfdf2.c | 15 |
1 files changed, 8 insertions, 7 deletions
diff --git a/soft-fp/trunctfdf2.c b/soft-fp/trunctfdf2.c index 35c6496362..e970210129 100644 --- a/soft-fp/trunctfdf2.c +++ b/soft-fp/trunctfdf2.c @@ -32,21 +32,22 @@ #include "double.h" #include "quad.h" -DFtype __trunctfdf2(TFtype a) +DFtype +__trunctfdf2 (TFtype a) { FP_DECL_EX; - FP_DECL_Q(A); - FP_DECL_D(R); + FP_DECL_Q (A); + FP_DECL_D (R); DFtype r; FP_INIT_ROUNDMODE; - FP_UNPACK_SEMIRAW_Q(A, a); + FP_UNPACK_SEMIRAW_Q (A, a); #if (2 * _FP_W_TYPE_SIZE) < _FP_FRACBITS_Q - FP_TRUNC(D,Q,2,4,R,A); + FP_TRUNC (D, Q, 2, 4, R, A); #else - FP_TRUNC(D,Q,1,2,R,A); + FP_TRUNC (D, Q, 1, 2, R, A); #endif - FP_PACK_SEMIRAW_D(r, R); + FP_PACK_SEMIRAW_D (r, R); FP_HANDLE_EXCEPTIONS; return r; |