Home
last modified time | relevance | path

Searched refs:static_assert (Results 1 – 25 of 572) sorted by relevance

12345678910>>...23

/openbsd-src/gnu/llvm/llvm/include/llvm/Analysis/
H A DCmpInstAnalysis.h68 static_assert(CmpInst::FCMP_FALSE == 0); // 0 0 0 0 in getFCmpCode()
69 static_assert(CmpInst::FCMP_OEQ == 1); // 0 0 0 1 in getFCmpCode()
70 static_assert(CmpInst::FCMP_OGT == 2); // 0 0 1 0 in getFCmpCode()
71 static_assert(CmpInst::FCMP_OGE == 3); // 0 0 1 1 in getFCmpCode()
72 static_assert(CmpInst::FCMP_OLT == 4); // 0 1 0 0 in getFCmpCode()
73 static_assert(CmpInst::FCMP_OLE == 5); // 0 1 0 1 in getFCmpCode()
74 static_assert(CmpInst::FCMP_ONE == 6); // 0 1 1 0 in getFCmpCode()
75 static_assert(CmpInst::FCMP_ORD == 7); // 0 1 1 1 in getFCmpCode()
76 static_assert(CmpInst::FCMP_UNO == 8); // 1 0 0 0 in getFCmpCode()
77 static_assert(CmpInst::FCMP_UEQ == 9); // 1 0 0 1 in getFCmpCode()
[all …]
/openbsd-src/gnu/llvm/compiler-rt/lib/gwp_asan/
H A Dcommon.h168 static_assert(offsetof(AllocatorState, VersionMagic) == 0, "");
169 static_assert(sizeof(AllocatorVersionMagic) == 8, "");
171 static_assert(sizeof(AllocatorState) == 56, "");
172 static_assert(offsetof(AllocatorState, FailureAddress) == 48, "");
173 static_assert(sizeof(AllocationMetadata) == 568, "");
174 static_assert(offsetof(AllocationMetadata, IsDeallocated) == 560, "");
176 static_assert(sizeof(AllocatorState) == 56, "");
177 static_assert(offsetof(AllocatorState, FailureAddress) == 48, "");
178 static_assert(sizeof(AllocationMetadata) == 568, "");
179 static_assert(offsetof(AllocationMetadata, IsDeallocated) == 560, "");
[all …]
/openbsd-src/gnu/llvm/compiler-rt/lib/tsan/rtl/
H A Dtsan_trace.h42 static_assert(sizeof(Event) == 8, "bad Event size");
51 static_assert(kPCBits + kCompressedAddrBits + 5 == 64,
61 static_assert(sizeof(EventAccess) == 8, "bad EventAccess size");
69 static_assert(sizeof(EventFunc) == 8, "bad EventFunc size");
80 static_assert(kCompressedAddrBits + kUnusedBits + 9 == 64,
93 static_assert(sizeof(EventAccessExt) == 16, "bad EventAccessExt size");
98 static_assert(kCompressedAddrBits + kSizeLoBits + 7 == 64,
111 static_assert(sizeof(EventAccessRange) == 16, "bad EventAccessRange size");
119 static_assert(kCompressedAddrBits + kStackIDLoBits + 5 == 64,
121 static_assert(kCompressedAddrBits + kStackIDHiBits + kUnusedBits == 64,
[all …]
H A Dtsan_dense_alloc.h41 static_assert((kL1Size & (kL1Size - 1)) == 0,
43 static_assert((kL2Size & (kL2Size - 1)) == 0,
45 static_assert((kL1Size * kL2Size) <= (1ull << (sizeof(IndexT) * 8)),
47 static_assert(((kL1Size * kL2Size - 1) & kReserved) == 0,
49 static_assert(sizeof(T) > sizeof(IndexT),
/openbsd-src/gnu/llvm/libcxx/src/support/win32/
H A Dthread_win32.cpp18 static_assert(sizeof(__libcpp_mutex_t) == sizeof(SRWLOCK), "");
19 static_assert(alignof(__libcpp_mutex_t) == alignof(SRWLOCK), "");
21 static_assert(sizeof(__libcpp_recursive_mutex_t) == sizeof(CRITICAL_SECTION),
23 static_assert(alignof(__libcpp_recursive_mutex_t) == alignof(CRITICAL_SECTION),
26 static_assert(sizeof(__libcpp_condvar_t) == sizeof(CONDITION_VARIABLE), "");
27 static_assert(alignof(__libcpp_condvar_t) == alignof(CONDITION_VARIABLE), "");
29 static_assert(sizeof(__libcpp_exec_once_flag) == sizeof(INIT_ONCE), "");
30 static_assert(alignof(__libcpp_exec_once_flag) == alignof(INIT_ONCE), "");
32 static_assert(sizeof(__libcpp_thread_id) == sizeof(DWORD), "");
33 static_assert(alignof(__libcpp_thread_id) == alignof(DWORD), "");
[all …]
/openbsd-src/gnu/llvm/llvm/include/llvm/Support/
H A DAMDHSAKernelDescriptor.h198 static_assert(
201 static_assert(offsetof(kernel_descriptor_t, group_segment_fixed_size) ==
204 static_assert(offsetof(kernel_descriptor_t, private_segment_fixed_size) ==
207 static_assert(offsetof(kernel_descriptor_t, kernarg_size) ==
210 static_assert(offsetof(kernel_descriptor_t, reserved0) == RESERVED0_OFFSET,
212 static_assert(offsetof(kernel_descriptor_t, kernel_code_entry_byte_offset) ==
215 static_assert(offsetof(kernel_descriptor_t, reserved1) == RESERVED1_OFFSET,
217 static_assert(offsetof(kernel_descriptor_t, compute_pgm_rsrc3) ==
220 static_assert(offsetof(kernel_descriptor_t, compute_pgm_rsrc1) ==
223 static_assert(offsetof(kernel_descriptor_t, compute_pgm_rsrc2) ==
[all …]
H A DMathExtras.h78 static_assert(std::is_unsigned_v<T>, in countTrailingZeros()
90 static_assert(std::is_unsigned_v<T>, in countLeadingZeros()
111 static_assert(std::is_unsigned<T>::value, "Invalid type!"); in maskTrailingOnes()
227 static_assert( in isShiftedInt()
229 static_assert(N + S <= 64, "isShiftedInt<N, S> with N + S > 64 is too wide."); in isShiftedInt()
235 static_assert(N > 0, "isUInt<0> doesn't make sense"); in isUInt()
251 static_assert( in isShiftedUInt()
253 static_assert(N + S <= 64, in isShiftedUInt()
341 static_assert(std::is_unsigned_v<T>, in countLeadingOnes()
354 static_assert(std::is_unsigned_v<T>, in countTrailingOnes()
[all …]
/openbsd-src/gnu/llvm/libcxxabi/src/
H A Dcxa_exception.h110 static_assert(sizeof(_Unwind_Exception) +
114 static_assert(sizeof(_Unwind_Exception) +
120 static_assert(offsetof(__cxa_exception, propagationCount) +
124 static_assert(offsetof(__cxa_dependent_exception, propagationCount) +
129 static_assert(offsetof(__cxa_exception, adjustedPtr) +
133 static_assert(offsetof(__cxa_dependent_exception, adjustedPtr) +
138 static_assert(offsetof(__cxa_exception, referenceCount) +
142 static_assert(offsetof(__cxa_dependent_exception, primaryException) +
/openbsd-src/gnu/llvm/llvm/include/llvm/ADT/
H A Diterator.h130 static_assert(std::is_base_of<iterator_facade_base, DerivedT>::value,
132 static_assert(
140 static_assert(
146 static_assert(
155 static_assert(std::is_base_of<iterator_facade_base, DerivedT>::value,
165 static_assert(
171 static_assert(
186 static_assert(
193 static_assert(
199 static_assert(
[all …]
H A DBitfields.h100 static_assert(sizeof(Unsigned) == sizeof(T), "Types must have same size");
103 static_assert(TypeBits >= Bits, "n-bit must fit in T");
122 static_assert(std::is_unsigned<T>::value, "T must be unsigned");
135 static_assert(std::is_signed<T>::value, "T must be signed");
157 static_assert(std::is_unsigned<StorageType>::value,
164 static_assert(Bitfield::FirstBit <= StorageBits, "Data must fit in mask");
165 static_assert(Bitfield::LastBit <= StorageBits, "Data must fit in mask");
236 static_assert(Bits > 0, "Bits must be non zero");
238 static_assert(Bits <= TypeBits, "Bits may not be greater than T size");
239 static_assert(!std::is_enum<T>::value || MaxValue != T(0),
[all …]
H A Dbit.h104 static_assert(!sizeof(T *), "Don't know how to handle the given type."); in byteswap()
180 static_assert(std::is_unsigned_v<T>,
246 static_assert(std::is_unsigned_v<T>,
259 static_assert(std::is_unsigned_v<T>,
272 static_assert(std::is_unsigned_v<T>,
282 static_assert(std::is_unsigned_v<T>,
292 static_assert(std::is_unsigned_v<T>,
307 static_assert(std::is_unsigned_v<T>,
318 static_assert(SizeOfT <= 4, "Not implemented!");
/openbsd-src/gnu/llvm/llvm/include/llvm/BinaryFormat/
H A DMinidump.h46 static_assert(sizeof(Header) == 32);
63 static_assert(sizeof(LocationDescriptor) == 8);
71 static_assert(sizeof(MemoryDescriptor) == 16);
84 static_assert(sizeof(MemoryInfoListHeader) == 16);
115 static_assert(sizeof(MemoryInfo) == 48);
124 static_assert(sizeof(Directory) == 12);
157 static_assert(sizeof(CPUInfo) == 24);
180 static_assert(sizeof(SystemInfo) == 56);
197 static_assert(sizeof(VSFixedFileInfo) == 52);
215 static_assert(sizeof(Module) == 108);
[all …]
/openbsd-src/gnu/llvm/llvm/lib/Support/
H A DSmallVector.cpp40 static_assert(sizeof(SmallVector<void *, 0>) ==
43 static_assert(alignof(SmallVector<Struct16B, 0>) >= alignof(Struct16B),
45 static_assert(alignof(SmallVector<Struct32B, 0>) >= alignof(Struct32B),
47 static_assert(sizeof(SmallVector<Struct16B, 0>) >= alignof(Struct16B),
49 static_assert(sizeof(SmallVector<Struct32B, 0>) >= alignof(Struct32B),
51 static_assert(sizeof(SmallVector<void *, 1>) ==
55 static_assert(sizeof(SmallVector<char, 0>) ==
170 static_assert(sizeof(SmallVectorSizeType<char>) == sizeof(uint64_t),
173 static_assert(sizeof(SmallVectorSizeType<char>) == sizeof(uint32_t),
/openbsd-src/gnu/llvm/libcxx/include/__numeric/
H A Dgcd_lcm.h57 static_assert((!is_signed<_Tp>::value), "");
66static_assert((is_integral<_Tp>::value && is_integral<_Up>::value), "Arguments to gcd must be inte…
67static_assert((!is_same<__remove_cv_t<_Tp>, bool>::value), "First argument to gcd cannot be bool" …
68static_assert((!is_same<__remove_cv_t<_Up>, bool>::value), "Second argument to gcd cannot be bool"…
81static_assert((is_integral<_Tp>::value && is_integral<_Up>::value), "Arguments to lcm must be inte…
82static_assert((!is_same<__remove_cv_t<_Tp>, bool>::value), "First argument to lcm cannot be bool" …
83static_assert((!is_same<__remove_cv_t<_Up>, bool>::value), "Second argument to lcm cannot be bool"…
/openbsd-src/gnu/llvm/compiler-rt/include/xray/
H A Dxray_records.h33 static_assert(sizeof(FdrAdditionalHeaderData) == 16,
65 static_assert(sizeof(XRayFileHeader) == 32, "XRayFileHeader != 32 bytes");
104 static_assert(sizeof(XRayRecord) == 32, "XRayRecord != 32 bytes");
130 static_assert(sizeof(XRayArgPayload) == 32, "XRayArgPayload != 32 bytes");
/openbsd-src/usr.sbin/radiusd/
H A Deap2mschap_local.h74 static_assert(sizeof(struct eap_mschap_challenge) == 26, "");
75 static_assert(offsetof(struct eap_mschap_challenge, chap) == 5, "");
76 static_assert(offsetof(struct eap_mschap_challenge, chall) == 10, "");
91 static_assert(sizeof(struct eap_mschap_response) == 59, "");
92 static_assert(offsetof(struct eap_mschap_response, chap) == 5, "");
93 static_assert(offsetof(struct eap_mschap_response, peerchall) == 10, "");
/openbsd-src/gnu/llvm/libcxx/include/__random/
H A Dclamp_to_integral.h31 static_assert(is_floating_point<_FloatT>::value, "must be a floating point type"); in __max_representable_int_for_float()
32 static_assert(is_integral<_IntT>::value, "must be an integral type"); in __max_representable_int_for_float()
33 static_assert(numeric_limits<_FloatT>::radix == 2, "FloatT has incorrect radix"); in __max_representable_int_for_float()
34 static_assert((_IsSame<_FloatT, float>::value || _IsSame<_FloatT, double>::value in __max_representable_int_for_float()
/openbsd-src/gnu/llvm/compiler-rt/include/fuzzer/
H A DFuzzedDataProvider.h137 static_assert(sizeof(std::string::value_type) == sizeof(uint8_t), in ConsumeBytesAsString()
205 static_assert(std::is_integral<T>::value, "An integral type is required."); in ConsumeIntegralInRange()
206 static_assert(sizeof(T) <= sizeof(uint64_t), "Unsupported integral type."); in ConsumeIntegralInRange()
273 static_assert(std::is_floating_point<T>::value, in ConsumeProbability()
296 static_assert(std::is_enum<T>::value, "|T| must be an enum type."); in ConsumeEnum()
304 static_assert(size > 0, "The array must be non empty."); in PickValueInArray()
310 static_assert(size > 0, "The array must be non empty."); in PickValueInArray()
353 static_assert(sizeof(T) == sizeof(uint8_t), "Incompatible data type."); in ConsumeBytes()
379 static_assert(sizeof(TS) == sizeof(TU), "Incompatible data types."); in ConvertUnsignedToSigned()
380 static_assert(!std::numeric_limits<TU>::is_signed, in ConvertUnsignedToSigned()
/openbsd-src/gnu/llvm/compiler-rt/lib/scudo/standalone/
H A Datomic_helpers.h24 static_assert(memory_order_relaxed == __ATOMIC_RELAXED, "");
25 static_assert(memory_order_consume == __ATOMIC_CONSUME, "");
26 static_assert(memory_order_acquire == __ATOMIC_ACQUIRE, "");
27 static_assert(memory_order_release == __ATOMIC_RELEASE, "");
28 static_assert(memory_order_acq_rel == __ATOMIC_ACQ_REL, "");
29 static_assert(memory_order_seq_cst == __ATOMIC_SEQ_CST, "");
/openbsd-src/gnu/llvm/clang/include/clang/Basic/
H A DHLSLRuntime.h34 static_assert( \
54 static_assert(getStageFromEnvironment(llvm::Triple::UnknownEnvironment) ==
58 static_assert(getStageFromEnvironment(llvm::Triple::MSVC) ==
/openbsd-src/gnu/llvm/lldb/source/Plugins/SymbolFile/NativePDB/
H A DPdbSymUid.cpp55 static_assert(sizeof(CompilandIdRepr) == 8, "Invalid structure size!");
56 static_assert(sizeof(CompilandSymIdRepr) == 8, "Invalid structure size!");
57 static_assert(sizeof(GlobalSymIdRepr) == 8, "Invalid structure size!");
58 static_assert(sizeof(TypeSymIdRepr) == 8, "Invalid structure size!");
59 static_assert(sizeof(FieldListMemberIdRepr) == 8, "Invalid structure size!");
/openbsd-src/gnu/llvm/llvm/include/llvm/Bitcode/
H A DBitcodeConvenience.h80 static_assert(Width <= 64, "fixed-width field is too large");
104 static_assert(Width >= 2, "width does not have room for continuation bit");
151 static_assert(!ElementTy::IsCompound, "arrays can only contain scalar types");
177 static_assert(!FieldTy::IsCompound, in emitOps()
191 static_assert(!ElementTy::IsCompound, in emit()
228 static_assert(!ElementTy::IsCompound, in emit()
399 static_assert(sizeof...(data) <= sizeof...(Fields) ||
402 static_assert(sizeof...(data) >= sizeof...(Fields),
416 static_assert(sizeof...(data) <= sizeof...(Fields),
418 static_assert(sizeof...(Fields) <=
/openbsd-src/gnu/llvm/compiler-rt/lib/asan/
H A Dasan_mapping_sparc64.h111 static_assert(ShadowToMemSparc64(MEM_TO_SHADOW(0x0000000000000000)) ==
113 static_assert(ShadowToMemSparc64(MEM_TO_SHADOW(0xfff8000000000000)) ==
116 static_assert(ShadowToMemSparc64(MEM_TO_SHADOW(0x0007ffffffffffff)) ==
/openbsd-src/gnu/llvm/llvm/lib/Target/RISCV/
H A DRISCVRegisterInfo.cpp38 static_assert(RISCV::X1 == RISCV::X0 + 1, "Register list not consecutive");
39 static_assert(RISCV::X31 == RISCV::X0 + 31, "Register list not consecutive");
40 static_assert(RISCV::F1_H == RISCV::F0_H + 1, "Register list not consecutive");
41 static_assert(RISCV::F31_H == RISCV::F0_H + 31,
43 static_assert(RISCV::F1_F == RISCV::F0_F + 1, "Register list not consecutive");
44 static_assert(RISCV::F31_F == RISCV::F0_F + 31,
46 static_assert(RISCV::F1_D == RISCV::F0_D + 1, "Register list not consecutive");
47 static_assert(RISCV::F31_D == RISCV::F0_D + 31,
49 static_assert(RISCV::V1 == RISCV::V0 + 1, "Register list not consecutive");
50 static_assert(RISCV::V31 == RISCV::V0 + 31, "Register list not consecutive");
[all …]
/openbsd-src/gnu/llvm/lldb/source/Plugins/Process/NetBSD/
H A DNativeRegisterContextNetBSD_x86_64.cpp81 static_assert((sizeof(g_gpr_regnums_x86_64) / sizeof(g_gpr_regnums_x86_64[0])) -
105 static_assert((sizeof(g_fpu_regnums_x86_64) / sizeof(g_fpu_regnums_x86_64[0])) -
117 static_assert((sizeof(g_avx_regnums_x86_64) / sizeof(g_avx_regnums_x86_64[0])) -
129 static_assert((sizeof(g_mpx_regnums_x86_64) / sizeof(g_mpx_regnums_x86_64[0])) -
140 static_assert((sizeof(g_dbr_regnums_x86_64) / sizeof(g_dbr_regnums_x86_64[0])) -
157 static_assert((sizeof(g_gpr_regnums_i386) / sizeof(g_gpr_regnums_i386[0])) -
175 static_assert((sizeof(g_fpu_regnums_i386) / sizeof(g_fpu_regnums_i386[0])) -
185 static_assert((sizeof(g_avx_regnums_i386) / sizeof(g_avx_regnums_i386[0])) -
197 static_assert((sizeof(g_mpx_regnums_i386) / sizeof(g_mpx_regnums_i386[0])) -
208 static_assert((sizeof(g_dbr_regnums_i386) / sizeof(g_dbr_regnums_i386[0])) -

12345678910>>...23