Home
last modified time | relevance | path

Searched refs:StorageType (Results 1 – 25 of 43) sorted by relevance

12

/freebsd/contrib/llvm-project/libc/src/__support/FPUtil/
H A DFPBits.h99 using StorageType = uint16_t;
107 using StorageType = uint32_t;
115 using StorageType = uint64_t;
123 using StorageType = UInt128;
132 using StorageType = UInt<__SIZEOF_LONG_DOUBLE__ * CHAR_BIT>;
134 using StorageType = UInt128;
143 using StorageType = uint16_t;
165 using StorageType = typename UP::StorageType;
169 sizeof(StorageType) * CHAR_BIT;
178 LIBC_INLINE_VAR static constexpr StorageType SIG_MASK =
[all …]
H A DNormalFloat.h35 using StorageType = typename FPBits<T>::StorageType; member
36 static constexpr StorageType ONE =
37 (StorageType(1) << FPBits<T>::FRACTION_LEN);
42 StorageType mantissa;
45 static_assert(sizeof(StorageType) * 8 >= FPBits<T>::FRACTION_LEN + 1,
50 LIBC_INLINE NormalFloat(Sign s, int32_t e, StorageType m) in NormalFloat()
114 const StorageType shift_out_mask = in T()
115 static_cast<StorageType>(StorageType(1) << shift) - 1; in T()
116 const StorageType shift_out_value = mantissa & shift_out_mask; in T()
117 const StorageType halfway_value = in T()
[all …]
H A DNearestIntegerOperations.h26 using StorageType = typename FPBits<T>::StorageType; in trunc() local
48 StorageType trunc_mantissa = in trunc()
49 static_cast<StorageType>((bits.get_mantissa() >> trim_size) << trim_size); in trunc()
56 using StorageType = typename FPBits<T>::StorageType; in ceil() local
79 StorageType x_u = bits.uintval(); in ceil()
80 StorageType trunc_u = in ceil()
81 static_cast<StorageType>((x_u >> trim_size) << trim_size); in ceil()
109 using StorageType = typename FPBits<T>::StorageType; in round() local
135 bool(bits.get_mantissa() & (StorageType(1) << (trim_size - 1))); in round()
136 StorageType x_u = bits.uintval(); in round()
[all …]
H A DHypot.h109 using StorageType = typename FPBits<T>::StorageType;
110 using DStorageType = typename DoubleLength<StorageType>::Type;
140 StorageType a_mant = a_bits.get_mantissa();
141 StorageType b_mant = b_bits.get_mantissa();
146 constexpr StorageType ONE = StorageType(1) << (FPBits_t::FRACTION_LEN + 1);
151 StorageType leading_one;
204 StorageType y_new = leading_one;
205 StorageType r = static_cast<StorageType>(sum >> y_mant_width) - leading_one;
206 StorageType tail_bits = static_cast<StorageType>(sum) & (leading_one - 1);
208 for (StorageType current_bit = leading_one >> 1; current_bit;
[all …]
H A Dexcept_value_utils.h44 using StorageType = typename FPBits<T>::StorageType; member
47 StorageType input;
48 StorageType rnd_towardzero_result;
49 StorageType rnd_upward_offset;
50 StorageType rnd_downward_offset;
51 StorageType rnd_tonearest_offset;
56 LIBC_INLINE constexpr cpp::optional<T> lookup(StorageType x_bits) const { in lookup()
59 StorageType out_bits = values[i].rnd_towardzero_result; in lookup()
77 LIBC_INLINE constexpr cpp::optional<T> lookup_odd(StorageType x_abs, in lookup_odd()
81 StorageType out_bits = values[i].rnd_towardzero_result; in lookup_odd()
H A Dfpbits_str.h38 using StorageType = typename fputil::FPBits<T>::StorageType; in str() local
51 const details::ZeroPaddedHexFmt<StorageType> bits(x.uintval()); in str()
67 const details::ZeroPaddedHexFmt<StorageType> mantissa(x.get_mantissa()); in str()
H A DManipulationFunctions.h228 using StorageType = typename FPBits<T>::StorageType;
231 from_bits = FPBits<T>(StorageType(from_bits.uintval() + 1));
233 from_bits = FPBits<T>(StorageType(from_bits.uintval() - 1));
257 using StorageType = typename FPBits<T>::StorageType;
260 xbits = FPBits<T>(StorageType(xbits.uintval() + 1));
262 xbits = FPBits<T>(StorageType(xbits.uintval() - 1));
H A DBasicOperations.h327 using StorageType = typename FPBits::StorageType; in totalorder() local
328 StorageType x_u = x_bits.uintval(); in totalorder()
329 StorageType y_u = y_bits.uintval(); in totalorder()
344 using StorageType = typename FPBits::StorageType; in getpayload() local
350 StorageType payload = x_bits.uintval() & (FPBits::FRACTION_MASK >> 1); in getpayload()
352 if constexpr (is_big_int_v<StorageType>) { in getpayload()
382 using StorageType = typename FPBits::StorageType; in setpayload() local
383 StorageType v(pl_bits.get_explicit_mantissa() >> in setpayload()
H A Ddyadic_float.h178 using StorageType = typename FPBits::StorageType; in generic_as() local
211 StorageType out_biased_exp = 0; in generic_as()
212 StorageType out_mantissa = 0; in generic_as()
232 static_cast<StorageType>(unbiased_exp + FPBits::EXP_BIAS); in generic_as()
240 out_mantissa = static_cast<StorageType>(mantissa >> extra_fraction_len); in generic_as()
245 StorageType result = in generic_as()
290 using output_bits_t = typename FPBits<T>::StorageType; in fast_as()
/freebsd/contrib/llvm-project/libc/src/__support/fixed_point/
H A Dfx_bits.h32 using StorageType = typename fx_rep::StorageType; member
34 StorageType value;
44 : ((sizeof(StorageType) * CHAR_BIT) - fx_rep::SIGN_LEN);
46 static constexpr StorageType FRACTION_MASK =
47 mask_trailing_ones<StorageType, fx_rep::FRACTION_LEN>()
49 static constexpr StorageType INTEGRAL_MASK =
50 mask_trailing_ones<StorageType, fx_rep::INTEGRAL_LEN>()
52 static constexpr StorageType SIGN_MASK =
53 (fx_rep::SIGN_LEN == 0 ? 0 : StorageType(1) << SIGN_OFFSET);
56 static constexpr StorageType VALUE_MASK = INTEGRAL_MASK | FRACTION_MASK;
[all …]
H A Dfx_rep.h56 using StorageType = typename internal::Storage<TOTAL_LEN>::Type;
57 using CompType = cpp::make_signed_t<StorageType>;
76 using StorageType = typename internal::Storage<TOTAL_LEN>::Type;
77 using CompType = cpp::make_unsigned_t<StorageType>;
96 using StorageType = typename internal::Storage<TOTAL_LEN>::Type;
97 using CompType = cpp::make_signed_t<StorageType>;
116 using StorageType = typename internal::Storage<TOTAL_LEN>::Type;
117 using CompType = cpp::make_unsigned_t<StorageType>;
136 using StorageType = typename internal::Storage<TOTAL_LEN>::Type;
137 using CompType = cpp::make_signed_t<StorageType>;
[all …]
H A Dsqrt.h145 using StorageType = typename FXRep::StorageType;
159 StorageType x_bit = cpp::bit_cast<StorageType>(x_frac);
184 using BitType = typename FXRep<T>::StorageType;
243 using StorageType = typename FXRep<FracType>::StorageType;
256 static_cast<StorageType>(x >> FXRep<FracType>::FRACTION_LEN));
/freebsd/contrib/llvm-project/llvm/include/llvm/ADT/
H A DBitfields.h156 template <typename Bitfield, typename StorageType> struct Impl {
157 static_assert(std::is_unsigned<StorageType>::value,
161 using BP = BitPatterns<StorageType, Bitfield::Bits>;
163 static constexpr size_t StorageBits = sizeof(StorageType) * CHAR_BIT;
166 static constexpr StorageType Mask = BP::Umax << Bitfield::Shift;
170 static void update(StorageType &Packed, IntegerType UserValue) {
171 const StorageType StorageValue = C::pack(UserValue, Bitfield::UserMaxValue);
178 static IntegerType extract(StorageType Packed) {
179 const StorageType StorageValue = (Packed & Mask) >> Bitfield::Shift;
185 static StorageType test(StorageType Packed) { return Packed & Mask; }
[all …]
/freebsd/contrib/llvm-project/libc/src/__support/FPUtil/generic/
H A Dsqrt_80_bit_long_double.h25 FPBits<long double>::StorageType &mantissa) { in normalize()
42 using StorageType = typename LDBits::StorageType; in sqrt() local
43 constexpr StorageType ONE = StorageType(1) << int(LDBits::FRACTION_LEN); in sqrt()
61 StorageType x_mant = bits.get_mantissa(); in sqrt()
88 StorageType y = ONE; in sqrt()
89 StorageType r = x_mant - ONE; in sqrt()
91 for (StorageType current_bit = ONE >> 1; current_bit; current_bit >>= 1) { in sqrt()
93 StorageType tmp = (y << 1) + current_bit; // 2*y(n - 1) + 2^(-n-1) in sqrt()
104 StorageType tmp = (y << 2) + 1; in sqrt()
112 y |= (static_cast<StorageType>(x_exp) << (LDBits::FRACTION_LEN + 1)); in sqrt()
H A DFMod.h161 template <typename T, typename U = typename FPBits<T>::StorageType,
171 using StorageType = typename FPB::StorageType; variable
213 StorageType m_x = sx.get_explicit_mantissa(); in eval_internal()
214 StorageType m_y = sy.get_explicit_mantissa(); in eval_internal()
215 StorageType d = (e_x == e_y) in eval_internal()
217 : static_cast<StorageType>(m_x << (e_x - e_y)) % m_y; in eval_internal()
271 return FPB::make_value(static_cast<StorageType>(m_x), e_y); in eval_internal()
275 return FPB::make_value(static_cast<StorageType>(m_x), e_y); in eval_internal()
/freebsd/contrib/llvm-project/libc/src/__support/
H A Dstr_to_float.h47 typename fputil::FPBits<T>::StorageType mantissa;
94 using StorageType = typename FPBits::StorageType; variable
96 StorageType mantissa = init_num.mantissa;
111 uint32_t clz = static_cast<uint32_t>(cpp::countl_zero<StorageType>(mantissa));
151 StorageType msb = static_cast<StorageType>(high64(final_approx) >>
153 StorageType final_mantissa = static_cast<StorageType>(
207 using StorageType = typename FPBits::StorageType; variable
229 ((sizeof(UInt128) - sizeof(StorageType)) * CHAR_BIT);
318 output.mantissa = static_cast<StorageType>(final_mantissa);
344 using StorageType = typename FPBits::StorageType; variable
[all …]
/freebsd/contrib/llvm-project/clang/include/clang/Basic/
H A DDarwinSDKInfo.h35 using StorageType = uint64_t;
41 : Value(((StorageType(FromOS) * StorageType(llvm::Triple::LastOSType) + in OSEnvPair()
42 StorageType(FromEnv)) in OSEnvPair()
44 (StorageType(ToOS) * StorageType(llvm::Triple::LastOSType) + in OSEnvPair()
45 StorageType(ToEnv))) {} in OSEnvPair()
76 StorageType Value;
147 llvm::DenseMap<OSEnvPair::StorageType,
150 llvm::DenseMap<OSEnvPair::StorageType,
187 llvm::DenseMap<OSEnvPair::StorageType,
/freebsd/contrib/llvm-project/libc/src/__support/FPUtil/x86_64/
H A DNextAfterLongDouble.h46 using StorageType = FPBits::StorageType; in nextafter() local
48 constexpr StorageType FRACTION_MASK = FPBits::FRACTION_MASK; in nextafter()
68 from_bits = FPBits(StorageType(from_bits.uintval() + 1)); in nextafter()
82 from_bits = FPBits(StorageType(from_bits.uintval() - 1)); in nextafter()
96 from_bits = FPBits(StorageType(from_bits.uintval() - 1)); in nextafter()
111 from_bits = FPBits(StorageType(from_bits.uintval() + 1)); in nextafter()
H A DNextUpDownLongDouble.h37 using StorageType = typename FPBits_t::StorageType; in nextupdown() local
44 xbits = FPBits_t(StorageType(xbits.uintval() + 1)); in nextupdown()
54 xbits = FPBits_t(StorageType(xbits.uintval() - 1)); in nextupdown()
/freebsd/contrib/llvm-project/llvm/include/llvm/IR/
H A DDebugInfoMetadata.h141 DINode(LLVMContext &C, unsigned ID, StorageType Storage, unsigned Tag,
243 GenericDINode(LLVMContext &C, StorageType Storage, unsigned Hash, in GenericDINode()
256 StorageType Storage, bool ShouldCreate = true) {
264 StorageType Storage,
318 DIAssignID(LLVMContext &C, StorageType Storage) in DIAssignID()
323 LLVM_ABI static DIAssignID *getImpl(LLVMContext &Context, StorageType Storage,
354 DISubrange(LLVMContext &C, StorageType Storage, ArrayRef<Metadata *> Ops);
359 int64_t LowerBound, StorageType Storage,
363 int64_t LowerBound, StorageType Storage,
369 StorageType Storage,
[all …]
/freebsd/contrib/llvm-project/llvm/lib/IR/
H A DDebugInfoMetadata.cpp66 DILocation::DILocation(LLVMContext &C, StorageType Storage, unsigned Line, in DILocation()
102 StorageType Storage, bool ShouldCreate) { in getImpl()
575 StorageType Storage, bool ShouldCreate) { in getImpl()
631 DISubrange::DISubrange(LLVMContext &C, StorageType Storage, in DISubrange()
635 StorageType Storage, bool ShouldCreate) { in getImpl()
645 int64_t Lo, StorageType Storage, in getImpl()
655 StorageType Storage, bool ShouldCreate) { in getImpl()
744 DIGenericSubrange::DIGenericSubrange(LLVMContext &C, StorageType Storage, in DIGenericSubrange()
752 StorageType Storage, in getImpl()
827 DISubrangeType::DISubrangeType(LLVMContext &C, StorageType Storage, in DISubrangeType()
[all …]
H A DMetadataImpl.h28 template <class T> T *MDNode::storeImpl(T *N, StorageType Storage) { in storeImpl()
42 T *MDNode::storeImpl(T *N, StorageType Storage, StoreT &Store) { in storeImpl()
/freebsd/contrib/llvm-project/clang/lib/CodeGen/
H A DCGRecordLayoutBuilder.cpp182 llvm::Type *StorageType);
241 const FieldDecl *FD, CharUnits StartOffset, llvm::Type *StorageType) { in setBitFieldInfo() argument
246 Info.StorageSize = (unsigned)DataLayout.getTypeAllocSizeInBits(StorageType); in setBitFieldInfo()
316 llvm::Type *StorageType = nullptr; in lowerUnion() local
347 StorageType = FieldType; in lowerUnion()
355 if (!StorageType || in lowerUnion()
356 getAlignment(FieldType) > getAlignment(StorageType) || in lowerUnion()
357 (getAlignment(FieldType) == getAlignment(StorageType) && in lowerUnion()
358 getSize(FieldType) > getSize(StorageType))) in lowerUnion()
359 StorageType = FieldType; in lowerUnion()
[all …]
/freebsd/contrib/bsnmp/snmp_target/
H A Dtarget_tree.def52 (8 snmpTargetAddrStorageType StorageType GET SET)
63 (6 snmpTargetParamsStorageType StorageType GET SET)
78 (4 snmpNotifyStorageType StorageType GET SET)
/freebsd/contrib/bsnmp/snmp_vacm/
H A Dvacm_tree.def48 (4 vacmSecurityToGroupStorageType StorageType GET SET)
61 (8 vacmAccessStorageType StorageType GET SET)
73 (5 vacmViewTreeFamilyStorageType StorageType GET SET)

12