@@ -359,13 +359,13 @@ struct FPRepSem : public FPStorage<fp_type> {
359
359
LIBC_INLINE static constexpr RetT inf (Sign sign = Sign::POS) {
360
360
return RetT (encode (sign, BiasedExp::BITS_ALL_ONES (), Sig::ZERO ()));
361
361
}
362
- LIBC_INLINE static constexpr RetT build_nan (Sign sign = Sign::POS,
363
- StorageType v = 0 ) {
362
+ LIBC_INLINE static constexpr RetT signaling_nan (Sign sign = Sign::POS,
363
+ StorageType v = 0 ) {
364
364
return RetT (encode (sign, BiasedExp::BITS_ALL_ONES (),
365
365
(v ? Sig (v) : (Sig::MSB () >> 1 ))));
366
366
}
367
- LIBC_INLINE static constexpr RetT build_quiet_nan (Sign sign = Sign::POS,
368
- StorageType v = 0 ) {
367
+ LIBC_INLINE static constexpr RetT quiet_nan (Sign sign = Sign::POS,
368
+ StorageType v = 0 ) {
369
369
return RetT (encode (sign, BiasedExp::BITS_ALL_ONES (), Sig::MSB () | Sig (v)));
370
370
}
371
371
@@ -448,13 +448,13 @@ struct FPRepSem<FPType::X86_Binary80, RetT>
448
448
LIBC_INLINE static constexpr RetT inf (Sign sign = Sign::POS) {
449
449
return RetT (encode (sign, BiasedExp::BITS_ALL_ONES (), Sig::MSB ()));
450
450
}
451
- LIBC_INLINE static constexpr RetT build_nan (Sign sign = Sign::POS,
452
- StorageType v = 0 ) {
451
+ LIBC_INLINE static constexpr RetT signaling_nan (Sign sign = Sign::POS,
452
+ StorageType v = 0 ) {
453
453
return RetT (encode (sign, BiasedExp::BITS_ALL_ONES (),
454
454
Sig::MSB () | (v ? Sig (v) : (Sig::MSB () >> 2 ))));
455
455
}
456
- LIBC_INLINE static constexpr RetT build_quiet_nan (Sign sign = Sign::POS,
457
- StorageType v = 0 ) {
456
+ LIBC_INLINE static constexpr RetT quiet_nan (Sign sign = Sign::POS,
457
+ StorageType v = 0 ) {
458
458
return RetT (encode (sign, BiasedExp::BITS_ALL_ONES (),
459
459
Sig::MSB () | (Sig::MSB () >> 1 ) | Sig (v)));
460
460
}
@@ -577,14 +577,14 @@ struct FPRep : public FPRepSem<fp_type, RetT> {
577
577
LIBC_INLINE static constexpr RetT zero (Sign sign = Sign::POS) {
578
578
return RetT (encode (sign, BiasedExp::BITS_ALL_ZEROES (), Sig::ZERO ()));
579
579
}
580
- using UP::build_nan;
581
- using UP::build_quiet_nan;
582
580
using UP::inf;
583
581
using UP::max_normal;
584
582
using UP::max_subnormal;
585
583
using UP::min_normal;
586
584
using UP::min_subnormal;
587
585
using UP::one;
586
+ using UP::quiet_nan;
587
+ using UP::signaling_nan;
588
588
589
589
// Modifiers
590
590
LIBC_INLINE constexpr RetT abs () const {
0 commit comments