Home
last modified time | relevance | path

Searched refs:static_cast (Results 1 – 25 of 989) sorted by relevance

12345678910>>...40

/llvm-project-15.0.7/libcxx/src/include/ryu/
H A Dd2s_intrinsics.h79 return static_cast<uint64_t>(__temp);
92 return static_cast<uint64_t>(__temp >> (__dist & 63));
99 const uint32_t __aLo = static_cast<uint32_t>(__a);
100 const uint32_t __aHi = static_cast<uint32_t>(__a >> 32);
101 const uint32_t __bLo = static_cast<uint32_t>(__b);
102 const uint32_t __bHi = static_cast<uint32_t>(__b >> 32);
109 const uint32_t __b00Lo = static_cast<uint32_t>(__b00);
113 const uint32_t __mid1Lo = static_cast<uint32_t>(__mid1);
117 const uint32_t __mid2Lo = static_cast<uint32_t>(__mid2);
196 return static_cast<uint32_t>(__x) - 1000000000 * static_cast<uint32_t>(__div1e9(__x)); in __mod1e9()
[all …]
/llvm-project-15.0.7/libcxx/include/
H A Dcstddef67 return static_cast<byte>(
68 static_cast<unsigned char>(
69 static_cast<unsigned int>(__lhs) | static_cast<unsigned int>(__rhs)
78 return static_cast<byte>(
79 static_cast<unsigned char>(
80 static_cast<unsigned int>(__lhs) & static_cast<unsigned int>(__rhs)
89 return static_cast<byte>(
91 static_cast<unsigned int>(__lhs) ^ static_cast<unsigned int>(__rhs)
100 return static_cast<byte>(
117 …{ return static_cast<byte>(static_cast<unsigned char>(static_cast<unsigned int>(__lhs) << __shift)…
[all …]
H A D__bits82 return static_cast<int>(__where);
89 return __ctz(static_cast<unsigned>(__x));
97 return static_cast<int>(__where);
100 if (_BitScanForward(&__where, static_cast<unsigned long>(__x)))
101 return static_cast<int>(__where);
103 return static_cast<int>(__where + 32);
115 return static_cast<int>(31 - __where);
122 return __libcpp_clz(static_cast<unsigned>(__x));
130 return static_cast<int>(63 - __where);
134 return static_cast<int>(63 - (__where + 32));
[all …]
/llvm-project-15.0.7/clang/include/clang/Basic/
H A DSyncScope.h125 switch (static_cast<ID>(S)) { in map()
140 S <= static_cast<unsigned>(Last); in isValid()
146 static_cast<unsigned>(WorkGroup), static_cast<unsigned>(Device), in getRuntimeValues()
147 static_cast<unsigned>(AllSVMDevices), static_cast<unsigned>(SubGroup)}; in getRuntimeValues()
152 return static_cast<unsigned>(AllSVMDevices); in getFallBackValue()
174 switch (static_cast<ID>(S)) { in map()
191 S <= static_cast<unsigned>(Last); in isValid()
197 static_cast<unsigned>(SingleThread), static_cast<unsigned>(Wavefront), in getRuntimeValues()
198 static_cast<unsigned>(Workgroup), static_cast<unsigned>(Agent), in getRuntimeValues()
199 static_cast<unsigned>(System)}; in getRuntimeValues()
[all …]
H A DDiagnosticOptions.h50 return static_cast<DiagnosticLevelMask>(~static_cast<UT>(M));
56 return static_cast<DiagnosticLevelMask>(
57 static_cast<UT>(LHS) | static_cast<UT>(RHS));
63 return static_cast<DiagnosticLevelMask>(
64 static_cast<UT>(LHS) & static_cast<UT>(RHS));
129 Type get##Name() const { return static_cast<Type>(Name); } \
130 void set##Name(Type Value) { Name = static_cast<unsigned>(Value); }
H A DDiagnosticIDs.h48 DIAG_START_DRIVER = DIAG_START_COMMON + static_cast<int>(DIAG_SIZE_COMMON),
49 DIAG_START_FRONTEND = DIAG_START_DRIVER + static_cast<int>(DIAG_SIZE_DRIVER),
50 DIAG_START_SERIALIZATION = DIAG_START_FRONTEND + static_cast<int>(DIAG_SIZE_FRONTEND),
52 DIAG_START_PARSE = DIAG_START_LEX + static_cast<int>(DIAG_SIZE_LEX),
53 DIAG_START_AST = DIAG_START_PARSE + static_cast<int>(DIAG_SIZE_PARSE),
54 DIAG_START_COMMENT = DIAG_START_AST + static_cast<int>(DIAG_SIZE_AST),
55 DIAG_START_CROSSTU = DIAG_START_COMMENT + static_cast<int>(DIAG_SIZE_COMMENT),
56 DIAG_START_SEMA = DIAG_START_CROSSTU + static_cast<int>(DIAG_SIZE_CROSSTU),
57 DIAG_START_ANALYSIS = DIAG_START_SEMA + static_cast<int>(DIAG_SIZE_SEMA),
58 DIAG_START_REFACTORING = DIAG_START_ANALYSIS + static_cast<int>(DIAG_SIZE_ANALYSIS),
[all …]
/llvm-project-15.0.7/mlir/include/mlir/IR/
H A DAffineExprVisitor.h82 return static_cast<SubClass *>(this)->visitAddExpr(binOpExpr); in walkPostOrder()
87 return static_cast<SubClass *>(this)->visitMulExpr(binOpExpr); in walkPostOrder()
92 return static_cast<SubClass *>(this)->visitModExpr(binOpExpr); in walkPostOrder()
105 return static_cast<SubClass *>(this)->visitConstantExpr( in walkPostOrder()
108 return static_cast<SubClass *>(this)->visitDimExpr( in walkPostOrder()
111 return static_cast<SubClass *>(this)->visitSymbolExpr( in walkPostOrder()
123 return static_cast<SubClass *>(this)->visitAddExpr(binOpExpr); in visit()
127 return static_cast<SubClass *>(this)->visitMulExpr(binOpExpr); in visit()
142 return static_cast<SubClass *>(this)->visitConstantExpr( in visit()
145 return static_cast<SubClass *>(this)->visitDimExpr( in visit()
[all …]
/llvm-project-15.0.7/libcxx/include/__filesystem/
H A Dperm_options.h35 return static_cast<perm_options>(static_cast<unsigned>(__lhs) &
36 static_cast<unsigned>(__rhs));
41 return static_cast<perm_options>(static_cast<unsigned>(__lhs) |
42 static_cast<unsigned>(__rhs));
47 return static_cast<perm_options>(static_cast<unsigned>(__lhs) ^
48 static_cast<unsigned>(__rhs));
53 return static_cast<perm_options>(~static_cast<unsigned>(__lhs));
H A Ddirectory_options.h35 return static_cast<directory_options>(static_cast<unsigned char>(__lhs) &
36 static_cast<unsigned char>(__rhs));
42 return static_cast<directory_options>(static_cast<unsigned char>(__lhs) |
43 static_cast<unsigned char>(__rhs));
49 return static_cast<directory_options>(static_cast<unsigned char>(__lhs) ^
50 static_cast<unsigned char>(__rhs));
55 return static_cast<directory_options>(~static_cast<unsigned char>(__lhs));
H A Dcopy_options.h42 return static_cast<copy_options>(static_cast<unsigned short>(__lhs) &
43 static_cast<unsigned short>(__rhs));
48 return static_cast<copy_options>(static_cast<unsigned short>(__lhs) |
49 static_cast<unsigned short>(__rhs));
54 return static_cast<copy_options>(static_cast<unsigned short>(__lhs) ^
55 static_cast<unsigned short>(__rhs));
60 return static_cast<copy_options>(~static_cast<unsigned short>(__lhs));
H A Dperms.h59 return static_cast<perms>(static_cast<unsigned>(__lhs) &
60 static_cast<unsigned>(__rhs));
65 return static_cast<perms>(static_cast<unsigned>(__lhs) |
66 static_cast<unsigned>(__rhs));
71 return static_cast<perms>(static_cast<unsigned>(__lhs) ^
72 static_cast<unsigned>(__rhs));
77 return static_cast<perms>(~static_cast<unsigned>(__lhs));
/llvm-project-15.0.7/compiler-rt/lib/tsan/rtl/
H A Dtsan_shadow.h22 part_.sid_ = static_cast<u8>(kFreeSid); in Reset()
23 part_.epoch_ = static_cast<u16>(kEpochLast); in Reset()
28 void SetSid(Sid sid) { part_.sid_ = static_cast<u8>(sid); } in SetSid()
30 Sid sid() const { return static_cast<Sid>(part_.sid_); } in sid()
32 Epoch epoch() const { return static_cast<Epoch>(part_.epoch_); } in epoch()
59 static constexpr RawShadow kEmpty = static_cast<RawShadow>(0);
79 RawShadow raw() const { return static_cast<RawShadow>(raw_); } in raw()
143 s.part_.epoch_ = static_cast<u16>(epoch); in FreedInfo()
176 static_cast<RawShadow>(1 << kIsReadShift);
182 return static_cast<RawShadow>( in LoadShadow()
[all …]
/llvm-project-15.0.7/compiler-rt/lib/scudo/standalone/
H A Doptions.h33 bool get(OptionBit Opt) const { return Val & (1U << static_cast<u32>(Opt)); } in get()
36 return static_cast<FillContentsMode>( in getFillContentsMode()
37 (Val >> static_cast<u32>(OptionBit::FillContents0of2)) & 3); in getFillContentsMode()
52 atomic_fetch_and(&Val, ~(1U << static_cast<u32>(Opt)), in clear()
57 atomic_fetch_or(&Val, 1U << static_cast<u32>(Opt), memory_order_relaxed); in set()
64 NewOpts &= ~(3U << static_cast<u32>(OptionBit::FillContents0of2)); in setFillContentsMode()
65 NewOpts |= static_cast<u32>(FillContents) in setFillContentsMode()
66 << static_cast<u32>(OptionBit::FillContents0of2); in setFillContentsMode()
/llvm-project-15.0.7/libcxx/include/__chrono/
H A Dday.h33 …_LIBCPP_HIDE_FROM_ABI explicit inline constexpr day(unsigned __val) noexcept : __d(static_cast<uns… in day()
47 { return static_cast<unsigned>(__lhs) == static_cast<unsigned>(__rhs); }
50 return static_cast<unsigned>(__lhs) <=> static_cast<unsigned>(__rhs);
55 { return day(static_cast<unsigned>(__lhs) + __rhs.count()); }
67 { return days(static_cast<int>(static_cast<unsigned>(__lhs)) -
68 static_cast<int>(static_cast<unsigned>(__rhs))); }
H A Dyear.h36 …_LIBCPP_HIDE_FROM_ABI explicit inline constexpr year(int __val) noexcept : __y(static_cast<short>(… in year()
57 { return static_cast<int>(__lhs) == static_cast<int>(__rhs); }
65 { return static_cast<int>(__lhs) < static_cast<int>(__rhs); }
81 { return year(static_cast<int>(__lhs) + __rhs.count()); }
93 { return years{static_cast<int>(__lhs) - static_cast<int>(__rhs)}; }
105 …static_assert(static_cast<int>(std::numeric_limits<decltype(__y)>::max()) == static_cast<int>(max(… in ok()
106 return static_cast<int>(min()) <= __y; in ok()
/llvm-project-15.0.7/llvm/include/llvm/Analysis/
H A DAliasAnalysis.h186 return (static_cast<int>(MRI) & static_cast<int>(ModRefInfo::MustModRef)) == in isNoModRef()
190 return static_cast<int>(MRI) & static_cast<int>(ModRefInfo::MustModRef); in isModOrRefSet()
193 return (static_cast<int>(MRI) & static_cast<int>(ModRefInfo::MustModRef)) == in isModAndRefSet()
197 return static_cast<int>(MRI) & static_cast<int>(ModRefInfo::MustMod); in isModSet()
200 return static_cast<int>(MRI) & static_cast<int>(ModRefInfo::MustRef); in isRefSet()
203 return !(static_cast<int>(MRI) & static_cast<int>(ModRefInfo::NoModRef)); in isMustSet()
207 return ModRefInfo(static_cast<int>(MRI) | in setMod()
223 return ModRefInfo(static_cast<int>(MRI) & static_cast<int>(ModRefInfo::Ref)); in clearMod()
226 return ModRefInfo(static_cast<int>(MRI) & static_cast<int>(ModRefInfo::Mod)); in clearRef()
234 return ModRefInfo(static_cast<int>(MRI1) | static_cast<int>(MRI2)); in unionModRef()
[all …]
/llvm-project-15.0.7/clang/test/SemaObjCXX/
H A Darc-type-conversion.mm39 (void)static_cast<id>(arg);
147 (void)static_cast<void*>(sip);
148 (void)static_cast<void*>(wip);
149 (void)static_cast<void*>(aip);
150 (void)static_cast<void*>(uip);
160 (void)static_cast<void*>(&sip);
161 (void)static_cast<void*>(&wip);
202 __strong NSString **sip2 = static_cast<NSString **>(static_cast<__strong id *>(vp));
204 __weak NSString **wip2 = static_cast<NSString **>(static_cast<__weak id *>(vp));
205 __autoreleasing id *aip2 = static_cast<id *>(static_cast<__autoreleasing id *>(vp));
[all …]
/llvm-project-15.0.7/llvm/include/llvm/ADT/
H A Diterator.h135 DerivedT tmp = *static_cast<const DerivedT *>(this);
149 DerivedT tmp = *static_cast<const DerivedT *>(this);
157 return static_cast<DerivedT *>(this)->operator+=(1);
160 DerivedT tmp = *static_cast<DerivedT *>(this);
161 ++*static_cast<DerivedT *>(this);
174 DerivedT tmp = *static_cast<DerivedT *>(this);
175 --*static_cast<DerivedT *>(this);
260 return *static_cast<DerivedT *>(this);
267 return *static_cast<DerivedT *>(this);
282 return *static_cast<DerivedT *>(this);
[all …]
H A DAPSInt.h198 static_cast<APInt&>(*this) <<= Amt;
203 ++(static_cast<APInt&>(*this));
207 --(static_cast<APInt&>(*this));
211 return APSInt(++static_cast<APInt&>(*this), IsUnsigned);
214 return APSInt(--static_cast<APInt&>(*this), IsUnsigned);
221 static_cast<APInt&>(*this) += RHS;
226 static_cast<APInt&>(*this) -= RHS;
231 static_cast<APInt&>(*this) *= RHS;
236 static_cast<APInt&>(*this) &= RHS;
241 static_cast<APInt&>(*this) |= RHS;
[all …]
/llvm-project-15.0.7/llvm/include/llvm/Support/
H A DAllocatorBase.h40 static_assert(static_cast<void *(AllocatorBase::*)(size_t, size_t)>( in Allocate()
42 static_cast<void *(DerivedT::*)(size_t, size_t)>( in Allocate()
47 return static_cast<DerivedT *>(this)->Allocate(Size, Alignment); in Allocate()
55 static_cast<void (AllocatorBase::*)(const void *, size_t, size_t)>( in Deallocate()
57 static_cast<void (DerivedT::*)(const void *, size_t, size_t)>( in Deallocate()
62 return static_cast<DerivedT *>(this)->Deallocate(Ptr, Size, Alignment); in Deallocate()
70 return static_cast<T *>(Allocate(Num * sizeof(T), alignof(T)));
77 Deallocate(static_cast<const void *>(Ptr), Num * sizeof(T), alignof(T));
108 AllocatorHolder(Alloc &&A) : Alloc(static_cast<Alloc &&>(A)) {} in AllocatorHolder()
/llvm-project-15.0.7/third-party/benchmark/src/
H A Dcycleclock.h76 return static_cast<int64_t>(emscripten_get_now() * 1e+6); in Now()
98 tbl &= -static_cast<int32_t>(tbu0 == tbu1); in Now()
100 return (static_cast<uint64_t>(tbu1) << 32) | tbl; in Now()
140 return static_cast<int64_t>(ts.tv_sec) * 1000000000 + ts.tv_nsec; in Now()
163 return static_cast<int64_t>(pmccntr) * 64; // Should optimize to << 6 in Now()
169 return static_cast<int64_t>(tv.tv_sec) * 1000000 + tv.tv_usec; in Now()
175 return static_cast<int64_t>(tv.tv_sec) * 1000000 + tv.tv_usec; in Now()
179 return static_cast<int64_t>(tv.tv_sec) * 1000000 + tv.tv_usec; in Now()
205 return (static_cast<uint64_t>(cycles_hi1) << 32) | cycles_lo; in Now()
214 return static_cast<int64_t>(tv.tv_sec) * 1000000 + tv.tv_usec; in Now()
/llvm-project-15.0.7/llvm/lib/ExecutionEngine/RuntimeDyld/Targets/
H A DRuntimeDyldCOFFThumb.h198 RE.Sections.SectionA == static_cast<uint32_t>(-1) in resolveRelocation()
237 assert(static_cast<uint64_t>(RE.Addend) <= UINT32_MAX && in resolveRelocation()
276 assert(static_cast<int64_t>(RE.Addend) <= INT32_MAX && in resolveRelocation()
278 assert(static_cast<int64_t>(RE.Addend) >= INT32_MIN && in resolveRelocation()
283 static_cast<void>(Value); in resolveRelocation()
291 assert(static_cast<int64_t>(RE.Addend) <= INT32_MAX && in resolveRelocation()
293 assert(static_cast<int64_t>(RE.Addend) >= INT32_MIN && in resolveRelocation()
298 static_cast<void>(Value); in resolveRelocation()
306 assert(static_cast<int64_t>(RE.Addend) <= INT32_MAX && in resolveRelocation()
308 assert(static_cast<int64_t>(RE.Addend) >= INT32_MIN && in resolveRelocation()
[all …]
/llvm-project-15.0.7/clang/include/clang/APINotes/
H A DTypes.h169 static_cast<CommonEntityInfo &>(*this) |= RHS;
229 DefaultNullability = static_cast<unsigned>(Kind); in setDefaultNullability()
265 static_cast<CommonTypeInfo &>(*this) |= RHS;
321 Nullable = static_cast<unsigned>(kind); in setNullabilityAudited()
330 static_cast<CommonEntityInfo &>(*this) |= RHS;
376 static_cast<CommonEntityInfo &>(*this) |= RHS;
387 static_cast<VariableInfo &>(*this) |= RHS;
448 static_cast<VariableInfo &>(*this) |= RHS;
533 unsigned kindValue = (static_cast<unsigned>(kind)) in addTypeInfo()
672 static_cast<CommonTypeInfo &>(*this) |= RHS;
[all …]
/llvm-project-15.0.7/clang-tools-extra/clangd/index/
H A DSymbolOrigin.h36 return static_cast<SymbolOrigin>(static_cast<uint16_t>(A) |
37 static_cast<uint16_t>(B));
43 return static_cast<SymbolOrigin>(static_cast<uint16_t>(A) &
44 static_cast<uint16_t>(B));
/llvm-project-15.0.7/libcxx/include/__charconv/
H A Dto_chars_base_10.h33 *__first = '0' + static_cast<char>(__value); in __append1()
71 return __itoa::__append8(__itoa::__append2(__first, static_cast<uint32_t>(__value / 100000000)), in __append10()
72 static_cast<uint32_t>(__value % 100000000)); in __append10()
112 return __itoa::__base_10_u32(__buffer, static_cast<uint32_t>(__value)); in __base_10_u64()
118 __buffer = __itoa::__base_10_u32(__buffer, static_cast<uint32_t>(__value / 10000000000)); in __base_10_u64()
153 __buffer = __itoa::__append1(__buffer, static_cast<uint32_t>(__value / __itoa::__pow_10(38))); in __base_10_u128()
158 __buffer = __itoa::__append9(__buffer, static_cast<uint32_t>(__value / __itoa::__pow_10(29))); in __base_10_u128()
160 __buffer = __itoa::__append10(__buffer, static_cast<uint64_t>(__value / __itoa::__pow_10(19))); in __base_10_u128()
166 __buffer = __base_10_u64(__buffer, static_cast<uint64_t>(__value / __itoa::__pow_10(19))); in __base_10_u128()
171 __buffer = __itoa::__append9(__buffer, static_cast<uint32_t>(__value / 10000000000)); in __base_10_u128()
[all …]

12345678910>>...40