Home
last modified time | relevance | path

Searched refs:Integral (Results 1 – 25 of 57) sorted by relevance

123

/freebsd/contrib/llvm-project/clang/lib/AST/ByteCode/
H A DIntegral.h66 template <unsigned Bits, bool Signed> class Integral final {
68 template <unsigned OtherBits, bool OtherSigned> friend class Integral;
80 template <typename T> explicit Integral(T V) : V(V) {}
83 using AsUnsigned = Integral<Bits, false>;
86 Integral() : V(0) {}
90 explicit Integral(Integral<SrcBits, SrcSign> V) : V(V.V) {}
93 explicit Integral(const APSInt &V)
96 bool operator<(Integral RHS) const { return V < RHS.V; }
97 bool operator>(Integral RHS) const { return V > RHS.V; }
98 bool operator<=(Integral RHS) const { return V <= RHS.V; }
[all …]
H A DPrimType.h31 template <unsigned Bits, bool Signed> class Integral; variable
90 using T = Integral<8, true>;
93 using T = Integral<8, false>;
96 using T = Integral<16, true>;
99 using T = Integral<16, false>;
102 using T = Integral<32, true>;
105 using T = Integral<32, false>;
108 using T = Integral<64, true>;
111 using T = Integral<64, false>;
H A DInterpStack.h161 std::is_same_v<T, Integral<8, true>>) in toPrimType()
164 std::is_same_v<T, Integral<8, false>>) in toPrimType()
167 std::is_same_v<T, Integral<16, true>>) in toPrimType()
170 std::is_same_v<T, Integral<16, false>>) in toPrimType()
173 std::is_same_v<T, Integral<32, true>>) in toPrimType()
176 std::is_same_v<T, Integral<32, false>>) in toPrimType()
179 std::is_same_v<T, Integral<64, true>>) in toPrimType()
182 std::is_same_v<T, Integral<64, false>>) in toPrimType()
H A DInterpBuiltinBitCast.cpp460 Integral<8, false>, Integral<8, true>, Integral<16, false>,
461 Integral<16, true>, Integral<32, false>, Integral<32, true>,
462 Integral<64, false>, Integral<64, true>, IntegralAP<true>,
H A DBoolean.h105 from(Integral<SrcBits, SrcSign> Value) { in from()
H A DOpcodes.td528 // [Pointer, Integral] -> [Pointer]
530 // [Pointer, Integral] -> [Pointer]
533 // [Pointer, Pointer] -> [Integral]
H A DInterp.cpp91 S.Stk.push<Integral<32, true>>( in BCP()
92 Integral<32, true>::from(CheckBCPResult(S, Ptr))); in BCP()
97 S.Stk.push<Integral<32, true>>(Integral<32, true>::from(1)); in BCP()
104 S.Stk.push<Integral<32, true>>(Integral<32, true>::from(0)); in BCP()
/freebsd/contrib/llvm-project/llvm/include/llvm/ADT/
H A DSequence.h127 // Integral constructor, asserts if Value cannot be represented as intmax_t.
128 template <typename Integral,
129 std::enable_if_t<std::is_integral<Integral>::value, bool> = 0>
130 static CheckedInt from(Integral FromValue) { in from()
164 // Convert to integral, asserts if Value cannot be represented as Integral.
165 template <typename Integral,
166 std::enable_if_t<std::is_integral<Integral>::value, bool> = 0>
167 Integral to() const { in to()
168 if (!canTypeFitValue<Integral>(Value)) in to()
170 return static_cast<Integral>(Valu in to()
[all...]
/freebsd/contrib/llvm-project/clang/lib/AST/
H A DTemplateBase.cpp179 Integer.Kind = Integral; in initFromIntegral()
291 case Integral: in getDependence()
322 case Integral: in isPackExpansion()
360 case TemplateArgument::Integral: in getNonTypeTemplateArgumentType()
406 case Integral: in Profile()
455 case Integral: in structurallyEquals()
496 case Integral: in getPackExpansionPattern()
557 case Integral: in print()
617 case TemplateArgument::Integral: in getSourceRange()
648 case TemplateArgument::Integral: in DiagTemplateArg()
/freebsd/contrib/llvm-project/clang/include/clang/AST/
H A DTemplateBase.h82 Integral,
365 assert(getKind() == Integral && "Unexpected kind");
379 assert(getKind() == Integral && "Unexpected kind");
384 assert(getKind() == Integral && "Unexpected kind");
552 Argument.getKind() == TemplateArgument::Integral ||
606 assert(Argument.getKind() == TemplateArgument::Integral);
H A DTemplateArgumentVisitor.h39 DISPATCH(Integral); in Visit()
63 VISIT_METHOD(Integral);
H A DOperationKinds.def164 /// CK_IntegralToPointer - Integral to pointer. A special kind of
201 /// CK_IntegralToBoolean - Integral to boolean. A check against zero.
205 /// CK_IntegralToFloating - Integral to floating point.
225 /// CK_IntegralToFixedPoint - Integral to a fixed point.
/freebsd/contrib/llvm-project/compiler-rt/lib/scudo/standalone/
H A Dcommon.h119 inline void computePercentage(uptr Numerator, uptr Denominator, uptr *Integral, in computePercentage() argument
123 *Integral = 100; in computePercentage()
128 *Integral = Numerator * Digits / Denominator; in computePercentage()
H A Dtiming.h191 const u64 Integral = Occurrence == 0 ? 0 : AccumulatedTime / Occurrence; in REQUIRES() local
199 Str.append("%14" PRId64 ".%" PRId64 "(ns) %-8s", Integral, Fraction, " "); in REQUIRES()
H A Dprimary64.h1212 uptr Integral; in getRegionFragmentationInfo() local
1214 computePercentage(BlockSize * InUseBlocks, InUseBytes, &Integral, in getRegionFragmentationInfo()
1219 AllocatedPagesCount, InUseBytes >> 10, Integral, Fractional); in getRegionFragmentationInfo()
1257 uptr Integral; in getMemoryGroupFragmentationInfoInRegion() local
1260 Recorder.NumPagesInOneGroup, &Integral, &Fractional); in getMemoryGroupFragmentationInfoInRegion()
1262 Region->RegionBeg + I * GroupSize, Integral, Fractional); in getMemoryGroupFragmentationInfoInRegion()
H A Dsecondary.h204 uptr Integral; in getStats() local
206 computePercentage(SuccessfulRetrieves, CallsToRetrieve, &Integral, in getStats()
218 SuccessfulRetrieves, CallsToRetrieve, Integral, Fractional); in getStats()
H A Dprimary32.h1044 uptr Integral; in getSizeClassFragmentationInfo() local
1046 computePercentage(BlockSize * InUseBlocks, InUseBytes, &Integral, in getSizeClassFragmentationInfo()
1051 AllocatedPagesCount, InUseBytes >> 10, Integral, Fractional); in getSizeClassFragmentationInfo()
/freebsd/sys/contrib/openzfs/contrib/pyzfs/libzfs_core/
H A D_nvlist.py173 return isinstance(x, numbers.Integral) and not isinstance(x, bool)
218 elif isinstance(specimen, numbers.Integral):
282 elif isinstance(v, numbers.Integral):
/freebsd/contrib/llvm-project/lldb/source/Plugins/ExpressionParser/Clang/
H A DCxxModuleHandler.cpp165 case TemplateArgument::Integral: in templateArgsAreSupported()
246 case TemplateArgument::Integral: { in tryInstantiateStdTemplate()
/freebsd/contrib/llvm-project/compiler-rt/lib/builtins/
H A DREADME.txt36 // Integral bit manipulation
68 // Integral arithmetic
95 // Integral arithmetic with trapping overflow
118 // Integral arithmetic which returns if overflow
126 // Integral comparison: a < b -> 0
135 // Integral / floating point conversion
/freebsd/contrib/llvm-project/clang/lib/StaticAnalyzer/Checkers/
H A DStdVariantChecker.cpp253 case TemplateArgument::ArgKind::Integral: in handleStdGetCall()
/freebsd/contrib/llvm-project/libcxx/include/__cxx03/
H A Dcomplex170 template<Integral T> double real(T); // constexpr in C++14
176 template<Integral T> double imag(T); // constexpr in C++14
184 template<Integral T> double arg(T);
190 template<Integral T> double norm(T); // constexpr in C++20
196 template<Integral T> complex<double> conj(T); // constexpr in C++20
202 template<Integral T> complex<double> proj(T);
800 // Integral Types
/freebsd/contrib/llvm-project/libcxx/include/
H A Dcomplex170 template<Integral T> double real(T); // constexpr in C++14
176 template<Integral T> double imag(T); // constexpr in C++14
184 template<Integral T> double arg(T);
190 template<Integral T> double norm(T); // constexpr in C++20
196 template<Integral T> complex<double> conj(T); // constexpr in C++20
202 template<Integral T> complex<double> proj(T);
898 // Integral Types
/freebsd/contrib/llvm-project/clang/lib/Serialization/
H A DTemplateArgumentHasher.cpp81 case TemplateArgument::Integral: { in AddTemplateArgument()
/freebsd/contrib/llvm-project/clang/lib/Sema/
H A DSemaTemplateDeduction.cpp248 case TemplateArgument::Integral: in checkDeducedTemplateArguments()
254 (Y.getKind() == TemplateArgument::Integral && in checkDeducedTemplateArguments()
314 if (Y.getKind() == TemplateArgument::Integral) { in checkDeducedTemplateArguments()
340 if (Y.getKind() == TemplateArgument::Integral) in checkDeducedTemplateArguments()
2555 case TemplateArgument::Integral: in DeduceTemplateArguments()
2556 if (A.getKind() == TemplateArgument::Integral) { in DeduceTemplateArguments()
2603 case TemplateArgument::Integral: in DeduceTemplateArguments()
2841 case TemplateArgument::Integral: in getTrivialTemplateArgumentLoc()
7065 case TemplateArgument::Integral: in MarkUsedTemplateParameters()

123