Searched refs:FXRep (Results 1 – 3 of 3) sorted by relevance
31 using fx_rep = FXRep<T>;122 using BitType = typename FXRep<T>::StorageType; in bit_and()132 using BitType = typename FXRep<T>::StorageType; in bit_or()142 using BitType = typename FXRep<T>::StorageType; in bit_not()149 using FXRep = FXRep<T>; in abs() local150 if constexpr (FXRep::SIGN_LEN == 0) in abs()153 if (LIBC_UNLIKELY(x == FXRep::MIN())) in abs()154 return FXRep::MAX(); in abs()155 return (x < FXRep::ZERO() ? -x : x); in abs()161 using FXRep = FXRep<T>; in round() local[all …]
38 template <typename T> struct FXRep;40 template <> struct FXRep<short fract> {60 template <> struct FXRep<unsigned short fract> {80 template <> struct FXRep<fract> {100 template <> struct FXRep<unsigned fract> {120 template <> struct FXRep<long fract> {140 template <> struct FXRep<unsigned long fract> {160 template <> struct FXRep<short accum> {180 template <> struct FXRep<unsigned short accum> {200 template <> struct FXRep<accum> {[all …]
144 using FXRep = FXRep<FracType>;145 using StorageType = typename FXRep::StorageType;147 if (x_frac == FXRep::ONE_FOURTH())148 return FXRep::ONE_HALF();160 int index = (static_cast<int>(x_bit >> (FXRep::TOTAL_LEN - 4))) - 4;184 using BitType = typename FXRep<T>::StorageType;188 return FXRep<T>::ZERO();192 constexpr int EXP_ADJUSTMENT = STORAGE_LENGTH - FXRep<T>::FRACTION_LEN - 1;219 return FXRep<OutType>::ZERO();243 using StorageType = typename FXRep<FracType>::StorageType;[all …]