File tree 1 file changed +3
-5
lines changed 1 file changed +3
-5
lines changed Original file line number Diff line number Diff line change @@ -369,8 +369,7 @@ static __inline fp_t __compiler_rt_fmax(fp_t x, fp_t y) {
369
369
}
370
370
371
371
#elif defined(QUAD_PRECISION )
372
- #if defined(CRT_HAS_TF_MODE )
373
- #if defined(CRT_HAS_IEEE_TF )
372
+ #if defined(CRT_HAS_IEEE_TF ) && defined(CRT_HAS_INT128 )
374
373
// The generic implementation only works for ieee754 floating point. For other
375
374
// floating point types, continue to rely on the libm implementation for now.
376
375
static __inline tf_float __compiler_rt_logbtf (tf_float x ) {
@@ -387,9 +386,6 @@ static __inline tf_float __compiler_rt_fmaxtf(tf_float x, tf_float y) {
387
386
#define __compiler_rt_fmaxl __compiler_rt_fmaxtf
388
387
#define crt_fabstf crt_fabsf128
389
388
#define crt_copysigntf crt_copysignf128
390
- #else
391
- #error Unsupported TF mode type
392
- #endif
393
389
#elif defined(CRT_LDBL_128BIT )
394
390
static __inline tf_float __compiler_rt_logbtf (tf_float x ) {
395
391
return crt_logbl (x );
@@ -405,6 +401,8 @@ static __inline tf_float __compiler_rt_fmaxtf(tf_float x, tf_float y) {
405
401
#define __compiler_rt_fmaxl crt_fmaxl
406
402
#define crt_fabstf crt_fabsl
407
403
#define crt_copysigntf crt_copysignl
404
+ #else
405
+ #error Unsupported QUAD_PRECISION mode
408
406
#endif
409
407
410
408
#endif // *_PRECISION
You can’t perform that action at this time.
0 commit comments