Home
last modified time | relevance | path

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

123

/src/contrib/llvm-project/clang/lib/AST/Interp/
H A DIntegral.h50 template <unsigned Bits, bool Signed> class Integral final {
52 template <unsigned OtherBits, bool OtherSigned> friend class Integral;
63 template <typename T> explicit Integral(T V) : V(V) {}
66 using AsUnsigned = Integral<Bits, false>;
69 Integral() : V(0) {}
73 explicit Integral(Integral<SrcBits, SrcSign> V) : V(V.V) {}
76 explicit Integral(const APSInt &V)
79 bool operator<(Integral RHS) const { return V < RHS.V; }
80 bool operator>(Integral RHS) const { return V > RHS.V; }
81 bool operator<=(Integral RHS) const { return V <= RHS.V; }
[all …]
H A DPrimType.h30 template <unsigned Bits, bool Signed> class Integral; variable
76 template <> struct PrimConv<PT_Sint8> { using T = Integral<8, true>; };
77 template <> struct PrimConv<PT_Uint8> { using T = Integral<8, false>; };
78 template <> struct PrimConv<PT_Sint16> { using T = Integral<16, true>; };
79 template <> struct PrimConv<PT_Uint16> { using T = Integral<16, false>; };
80 template <> struct PrimConv<PT_Sint32> { using T = Integral<32, true>; };
81 template <> struct PrimConv<PT_Uint32> { using T = Integral<32, false>; };
82 template <> struct PrimConv<PT_Sint64> { using T = Integral<64, true>; };
83 template <> struct PrimConv<PT_Uint64> { using T = Integral<64, false>; };
H A DInterpStack.h160 std::is_same_v<T, Integral<8, true>>) in toPrimType()
163 std::is_same_v<T, Integral<8, false>>) in toPrimType()
166 std::is_same_v<T, Integral<16, true>>) in toPrimType()
169 std::is_same_v<T, Integral<16, false>>) in toPrimType()
172 std::is_same_v<T, Integral<32, true>>) in toPrimType()
175 std::is_same_v<T, Integral<32, false>>) in toPrimType()
178 std::is_same_v<T, Integral<64, true>>) in toPrimType()
181 std::is_same_v<T, Integral<64, false>>) in toPrimType()
H A DIntegralAP.h31 template <unsigned Bits, bool Signed> class Integral; variable
114 static IntegralAP from(Integral<Bits, InputSigned> I, unsigned BitWidth) { in from()
H A DBoolean.h101 from(Integral<SrcBits, SrcSign> Value) { in from()
H A DOpcodes.td503 // [Pointer, Integral] -> [Pointer]
505 // [Pointer, Integral] -> [Pointer]
508 // [Pointer, Pointer] -> [Integral]
H A DPointer.h30 template <unsigned A, bool B> class Integral; variable
/src/contrib/llvm-project/llvm/include/llvm/ADT/
H A DSequence.h128 template <typename Integral,
129 std::enable_if_t<std::is_integral<Integral>::value, bool> = 0>
130 static CheckedInt from(Integral FromValue) { in from()
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>(Value); in to()
/src/contrib/llvm-project/clang/lib/AST/
H A DTemplateBase.cpp183 Integer.Kind = Integral; in initFromIntegral()
295 case Integral: in getDependence()
326 case Integral: in isPackExpansion()
367 case TemplateArgument::Integral: in getNonTypeTemplateArgumentType()
413 case Integral: in Profile()
453 case Integral: in structurallyEquals()
493 case Integral: in getPackExpansionPattern()
556 case Integral: in print()
613 case TemplateArgument::Integral: in getSourceRange()
644 case TemplateArgument::Integral: in DiagTemplateArg()
H A DTypeLoc.cpp593 case TemplateArgument::Integral: in initializeArgLocs()
/src/contrib/llvm-project/clang/include/clang/AST/
H A DTemplateBase.h82 Integral,
364 assert(getKind() == Integral && "Unexpected kind");
378 assert(getKind() == Integral && "Unexpected kind");
383 assert(getKind() == Integral && "Unexpected kind");
546 Argument.getKind() == TemplateArgument::Integral ||
600 assert(Argument.getKind() == TemplateArgument::Integral);
H A DTemplateArgumentVisitor.h39 DISPATCH(Integral); in Visit()
62 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.
/src/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.h187 const u64 Integral = Occurrence == 0 ? 0 : AccumulatedTime / Occurrence; in REQUIRES() local
195 Str.append("%14" PRId64 ".%" PRId64 "(ns) %-8s", Integral, Fraction, " "); in REQUIRES()
H A Dsecondary.h178 uptr Integral; in getStats() local
180 computePercentage(SuccessfulRetrieves, CallsToRetrieve, &Integral, in getStats()
190 SuccessfulRetrieves, CallsToRetrieve, Integral, Fractional); in getStats()
H A Dprimary32.h941 uptr Integral; in getSizeClassFragmentationInfo() local
943 computePercentage(BlockSize * InUseBlocks, InUsePages * PageSize, &Integral, in getSizeClassFragmentationInfo()
948 AllocatedPagesCount, InUseBytes >> 10, Integral, Fractional); in getSizeClassFragmentationInfo()
H A Dprimary64.h1186 uptr Integral; in getRegionFragmentationInfo() local
1188 computePercentage(BlockSize * InUseBlocks, InUsePages * PageSize, &Integral, in getRegionFragmentationInfo()
1193 AllocatedPagesCount, InUseBytes >> 10, Integral, Fractional); in getRegionFragmentationInfo()
/src/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):
/src/contrib/llvm-project/lldb/source/Plugins/ExpressionParser/Clang/
H A DCxxModuleHandler.cpp165 case TemplateArgument::Integral: in templateArgsAreSupported()
246 case TemplateArgument::Integral: { in tryInstantiateStdTemplate()
/src/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
/src/contrib/llvm-project/clang/lib/StaticAnalyzer/Checkers/
H A DStdVariantChecker.cpp255 case TemplateArgument::ArgKind::Integral: in handleStdGetCall()
/src/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);
894 // Integral Types
/src/contrib/llvm-project/clang/lib/Sema/
H A DSemaTemplateDeduction.cpp260 case TemplateArgument::Integral: in checkDeducedTemplateArguments()
266 (Y.getKind() == TemplateArgument::Integral && in checkDeducedTemplateArguments()
326 if (Y.getKind() == TemplateArgument::Integral) { in checkDeducedTemplateArguments()
352 if (Y.getKind() == TemplateArgument::Integral) in checkDeducedTemplateArguments()
2467 case TemplateArgument::Integral: in DeduceTemplateArguments()
2468 if (A.getKind() == TemplateArgument::Integral) { in DeduceTemplateArguments()
2489 case TemplateArgument::Integral: in DeduceTemplateArguments()
2705 case TemplateArgument::Integral: in isSameTemplateArg()
2780 case TemplateArgument::Integral: in getTrivialTemplateArgumentLoc()
6664 case TemplateArgument::Integral: in MarkUsedTemplateParameters()
H A DSemaTemplateVariadic.cpp1177 case TemplateArgument::Integral: in getTemplateArgumentPackExpansionPattern()
1228 case TemplateArgument::Integral: in getFullyPackExpandedSize()

123