Lines Matching full:up
132 using UP = FPLayout<fp_type>;
134 using UP::EXP_LEN; // The number of bits for the *exponent* part
135 using UP::SIG_LEN; // The number of bits for the *significand* part
136 using UP::SIGN_LEN; // The number of bits for the *sign* part
141 using UP::FRACTION_LEN;
145 using StorageType = typename UP::StorageType;
219 using UP = TypedInt<int32_t>;
220 using UP::UP;
235 using UP = TypedInt<uint32_t>;
236 using UP::UP;
239 : UP(static_cast<int32_t>(exp) + EXP_BIAS) {}
243 return Exponent(UP::value - EXP_BIAS);
248 ++UP::value;
254 --UP::value;
265 using UP = TypedInt<StorageType>;
266 using UP::UP;
353 using UP = FPStorage<fp_type>;
354 using typename UP::StorageType;
355 using UP::FRACTION_LEN;
356 using UP::FRACTION_MASK;
359 using typename UP::Exponent;
360 using typename UP::Significand;
361 using UP::bits;
362 using UP::encode;
363 using UP::exp_bits;
364 using UP::exp_sig_bits;
365 using UP::sig_bits;
366 using UP::UP;
438 return (StorageType(1) << UP::SIG_LEN) | sig_bits();
446 using UP = FPStorage<FPType::X86_Binary80>;
447 using typename UP::StorageType;
448 using UP::FRACTION_LEN;
449 using UP::FRACTION_MASK;
463 using typename UP::Exponent;
464 using typename UP::Significand;
465 using UP::encode;
466 using UP::UP;
586 // The 'RetT' type is being propagated up to 'FPRepSem' so that the functions
597 using UP = FPRepSem<fp_type, RetT>;
598 using StorageType = typename UP::StorageType;
601 using UP::bits;
602 using UP::encode;
603 using UP::exp_bits;
604 using UP::exp_sig_bits;
606 using typename UP::BiasedExponent;
607 using typename UP::Exponent;
608 using typename UP::Significand;
610 using UP::FP_MASK;
614 using UP::EXP_BIAS;
615 using UP::EXP_MASK;
616 using UP::FRACTION_MASK;
617 using UP::SIG_LEN;
618 using UP::SIG_MASK;
619 using UP::SIGN_MASK;
621 (1 << UP::EXP_LEN) - 1;
625 LIBC_INLINE constexpr explicit FPRepImpl(StorageType x) : UP(x) {}
642 using UP::inf;
643 using UP::max_normal;
644 using UP::max_subnormal;
645 using UP::min_normal;
646 using UP::min_subnormal;
647 using UP::one;
648 using UP::quiet_nan;
649 using UP::signaling_nan;
650 using UP::zero;
654 return RetT(static_cast<StorageType>(bits & UP::EXP_SIG_MASK));
658 using UP::get_explicit_mantissa;
659 using UP::is_finite;
660 using UP::is_inf;
661 using UP::is_nan;
662 using UP::is_normal;
663 using UP::is_quiet_nan;
664 using UP::is_signaling_nan;
665 using UP::is_subnormal;
666 using UP::is_zero;
667 using UP::next_toward_inf;
668 using UP::sign;
674 return static_cast<uint16_t>(static_cast<uint32_t>(UP::biased_exponent()));
678 UP::set_biased_exponent(BiasedExponent((int32_t)biased));
682 return static_cast<int32_t>(Exponent(UP::biased_exponent()));
692 Exponent exponent(UP::biased_exponent());
705 bits = UP::merge(bits, mantVal, FRACTION_MASK);
709 bits = UP::merge(bits, sigVal, SIG_MASK);
739 UP::FRACTION_LEN + 1 - (UP::STORAGE_LEN - cpp::countl_zero(number));
759 using UP = FPRepImpl<fp_type, FPRep<fp_type>>;
760 using StorageType = typename UP::StorageType;
761 using UP::UP;
764 return UP::uintval();
803 using UP = internal::FPRepImpl<get_fp_type<T>(), FPBits<T>>;
804 using StorageType = typename UP::StorageType;
812 UP::bits = cpp::bit_cast<StorageType>(x);
814 UP::bits = x;
823 LIBC_INLINE constexpr T get_val() const { return cpp::bit_cast<T>(UP::bits); }