]> git.ipfire.org Git - thirdparty/glibc.git/blobdiff - soft-fp/trunctfdf2.c
soft-fp: Properly check _FP_W_TYPE_SIZE [BZ #24066]
[thirdparty/glibc.git] / soft-fp / trunctfdf2.c
index 440ccfacc79fa6a316074292305ddb51ea881216..f62d5419ded403f4634136a515befe391f9812b3 100644 (file)
@@ -42,7 +42,7 @@ __trunctfdf2 (TFtype a)
 
   FP_INIT_ROUNDMODE;
   FP_UNPACK_SEMIRAW_Q (A, a);
-#if (2 * _FP_W_TYPE_SIZE) < _FP_FRACBITS_Q
+#if _FP_W_TYPE_SIZE < 64
   FP_TRUNC (D, Q, 2, 4, R, A);
 #else
   FP_TRUNC (D, Q, 1, 2, R, A);