/freebsd/contrib/llvm-project/llvm/lib/XRay/ |
H A D | BlockVerifier.cpp | 17 constexpr unsigned long long mask(BlockVerifier::State S) { in mask() 67 {mask(State::BufferExtents) | mask(State::NewBuffer)}}, in transition() 69 {State::BufferExtents, {mask(State::NewBuffer)}}, in transition() 71 {State::NewBuffer, {mask(State::WallClockTime)}}, in transition() 74 {mask(State::PIDEntry) | mask(State::NewCPUId)}}, in transition() 76 {State::PIDEntry, {mask(State::NewCPUId)}}, in transition() 79 {mask(State::NewCPUId) | mask(Stat in transition() 15 constexpr unsigned long long mask(BlockVerifier::State S) { mask() function [all...] |
/freebsd/crypto/heimdal/lib/kadm5/ |
H A D | marshall.c | 123 uint32_t mask) in store_principal_ent() argument 127 if (mask & KADM5_PRINCIPAL) in store_principal_ent() 129 if (mask & KADM5_PRINC_EXPIRE_TIME) in store_principal_ent() 131 if (mask & KADM5_PW_EXPIRATION) in store_principal_ent() 133 if (mask & KADM5_LAST_PWD_CHANGE) in store_principal_ent() 135 if (mask & KADM5_MAX_LIFE) in store_principal_ent() 137 if (mask & KADM5_MOD_NAME) { in store_principal_ent() 142 if (mask & KADM5_MOD_TIME) in store_principal_ent() 144 if (mask & KADM5_ATTRIBUTES) in store_principal_ent() 146 if (mask & KADM5_KVNO) in store_principal_ent() [all …]
|
/freebsd/contrib/llvm-project/llvm/include/llvm/IR/ |
H A D | VPIntrinsics.def | 24 // \p MASKPOS The mask operand position. 46 // \p MASKPOS The mask operand position. 71 // \p MASKPOS The mask operand position. 158 // Specialized helper macro for integer binary operators (%x, %y, %mask, %evl). 170 // llvm.vp.add(x,y,mask,vlen) 173 // llvm.vp.and(x,y,mask,vlen) 176 // llvm.vp.ashr(x,y,mask,vlen) 179 // llvm.vp.lshr(x,y,mask,vlen) 182 // llvm.vp.mul(x,y,mask,vlen) 185 // llvm.vp.or(x,y,mask,vlen) [all …]
|
/freebsd/sys/dev/aic7xxx/ |
H A D | aic7xxx.reg | 94 mask STIMESEL 0x18 118 mask PHASE_MASK CDI|IOI|MSGI 119 mask P_DATAOUT 0x00 120 mask P_DATAIN IOI 121 mask P_DATAOUT_DT P_DATAOUT|MSGI 122 mask P_DATAIN_DT P_DATAIN|MSGI 123 mask P_COMMAND CDI 124 mask P_MESGOUT CDI|MSGI 125 mask P_STATUS CDI|IOI 126 mask P_MESGIN CDI|IOI|MSGI [all …]
|
/freebsd/contrib/llvm-project/openmp/runtime/src/ |
H A D | kmp_affinity.h | 24 class Mask : public KMPAffinity::Mask { 25 hwloc_cpuset_t mask; variable 28 Mask() { in Mask() function 29 mask = hwloc_bitmap_alloc(); in Mask() 32 ~Mask() { hwloc_bitmap_free(mask); } in ~Mask() 33 void set(int i) override { hwloc_bitmap_set(mask, i); } in set() 34 bool is_set(int i) const override { return hwloc_bitmap_isset(mask, i); } in is_set() 35 void clear(int i) override { hwloc_bitmap_clr(mask, i); } in clear() 36 void zero() override { hwloc_bitmap_zero(mask); } in zero() 37 bool empty() const override { return hwloc_bitmap_iszero(mask); } in empty() [all …]
|
/freebsd/crypto/openssl/include/internal/ |
H A D | constant_time.h | 42 /* Convenience method for getting an 8-bit mask. */ 51 /* Convenience method for getting an 8-bit mask. */ 57 /* Convenience method for getting an 8-bit mask. */ 59 /* Convenience method for getting a 32-bit mask. */ 65 /* Convenience method for getting an 8-bit mask. */ 70 /* Convenience method for getting an 8-bit mask. */ 74 * Returns (mask & a) | (~mask & b). 76 * When |mask| is all 1s or all 0s (as returned by the methods above), 77 * the select methods return either |a| (if |mask| i 276 constant_time_select(unsigned int mask,unsigned int a,unsigned int b) constant_time_select() argument 283 constant_time_select_s(size_t mask,size_t a,size_t b) constant_time_select_s() argument 290 constant_time_select_8(unsigned char mask,unsigned char a,unsigned char b) constant_time_select_8() argument 297 constant_time_select_int(unsigned int mask,int a,int b) constant_time_select_int() argument 303 constant_time_select_int_s(size_t mask,int a,int b) constant_time_select_int_s() argument 309 constant_time_select_32(uint32_t mask,uint32_t a,uint32_t b) constant_time_select_32() argument 315 constant_time_select_64(uint64_t mask,uint64_t a,uint64_t b) constant_time_select_64() argument 331 constant_time_cond_swap_32(uint32_t mask,uint32_t * a,uint32_t * b) constant_time_cond_swap_32() argument 351 constant_time_cond_swap_64(uint64_t mask,uint64_t * a,uint64_t * b) constant_time_cond_swap_64() argument 373 constant_time_cond_swap_buff(unsigned char mask,unsigned char * a,unsigned char * b,size_t len) constant_time_cond_swap_buff() argument 403 unsigned char mask; constant_time_lookup() local [all...] |
/freebsd/sys/contrib/libsodium/src/libsodium/crypto_core/ed25519/ref10/fe_51/ |
H A D | fe.h | 8 const uint64_t mask = 0x7ffffffffffffULL; in fe25519_frombytes() local 11 h0 = (LOAD64_LE(s ) ) & mask; in fe25519_frombytes() 12 h1 = (LOAD64_LE(s + 6) >> 3) & mask; in fe25519_frombytes() 13 h2 = (LOAD64_LE(s + 12) >> 6) & mask; in fe25519_frombytes() 14 h3 = (LOAD64_LE(s + 19) >> 1) & mask; in fe25519_frombytes() 15 h4 = (LOAD64_LE(s + 24) >> 12) & mask; in fe25519_frombytes() 27 const uint64_t mask = 0x7ffffffffffffULL; in fe25519_reduce() local 37 t[0] &= mask; in fe25519_reduce() 39 t[1] &= mask; in fe25519_reduce() 41 t[2] &= mask; in fe25519_reduce() [all …]
|
/freebsd/contrib/llvm-project/llvm/include/llvm/MC/ |
H A D | LaneBitmask.h | 12 /// A lane mask is a bitmask representing the covering of a register with 17 /// physical registers. The individual bits in a lane mask can't be assigned 47 explicit constexpr LaneBitmask(Type V) : Mask(V) {} in LaneBitmask() 49 constexpr bool operator== (LaneBitmask M) const { return Mask == M.Mask; } 50 constexpr bool operator!= (LaneBitmask M) const { return Mask != M.Mask; } 51 constexpr bool operator< (LaneBitmask M) const { return Mask < M.Mask; } 52 constexpr bool none() const { return Mask == 0; } in none() 53 constexpr bool any() const { return Mask != 0; } in any() 54 constexpr bool all() const { return ~Mask == 0; } in all() 57 return LaneBitmask(~Mask); [all …]
|
/freebsd/sys/compat/linuxkpi/common/include/linux/ |
H A D | bitops.h | 71 __ffs(int mask) in __ffs() 73 return (ffs(mask) - 1); in __ffs() 77 __fls(int mask) in __fls() 79 return (fls(mask) - 1); in __fls() 83 __ffsl(long mask) in __ffsl() 85 return (ffsl(mask) - 1); in __ffsl() 89 __ffs64(uint64_t mask) in __ffs64() 91 return (ffsll(mask) - 1); in __ffs64() 95 __flsl(long mask) in __flsl() 97 return (flsl(mask) in __flsl() 70 __ffs(int mask) __ffs() argument 76 __fls(int mask) __fls() argument 82 __ffsl(long mask) __ffsl() argument 88 __ffs64(uint64_t mask) __ffs64() argument 94 __flsl(long mask) __flsl() argument 100 fls64(uint64_t mask) fls64() argument 111 ffz(mask) global() argument 126 long mask; find_first_bit() local 148 long mask; find_first_zero_bit() local 170 long mask; find_last_bit() local 196 long mask; find_next_bit() local 236 long mask; find_next_zero_bit() local 364 unsigned long mask; linux_reg_op() local [all...] |
/freebsd/contrib/llvm-project/llvm/lib/Support/ |
H A D | FloatingPointMode.cpp | 14 FPClassTest llvm::fneg(FPClassTest Mask) { in fneg() argument 15 FPClassTest NewMask = Mask & fcNan; in fneg() 16 if (Mask & fcNegInf) in fneg() 18 if (Mask & fcNegNormal) in fneg() 20 if (Mask & fcNegSubnormal) in fneg() 22 if (Mask & fcNegZero) in fneg() 24 if (Mask & fcPosZero) in fneg() 26 if (Mask & fcPosSubnormal) in fneg() 28 if (Mask & fcPosNormal) in fneg() 30 if (Mask in fneg() 35 fabs(FPClassTest Mask) fabs() argument 73 operator <<(raw_ostream & OS,FPClassTest Mask) operator <<() argument [all...] |
/freebsd/contrib/llvm-project/lldb/include/lldb/Utility/ |
H A D | Flags.h | 29 /// Constructs this object with \a mask as the initial value for all of the 56 /// \param[in] mask 60 /// The new flags after clearing all bits from \a mask. 61 ValueType Clear(ValueType mask = ~static_cast<ValueType>(0)) { 62 m_flags &= ~mask; 66 /// Set one or more flags by logical OR'ing \a mask with the current flags. 68 /// \param[in] mask 72 /// The new flags after setting all bits from \a mask. 73 ValueType Set(ValueType mask) { in Set() argument 74 m_flags |= mask; in Set() [all …]
|
/freebsd/contrib/llvm-project/libcxx/include/ |
H A D | __locale | 299 typedef unsigned long mask; 300 static const mask space = 1 << 0; 301 static const mask print = 1 << 1; 302 static const mask cntrl = 1 << 2; 303 static const mask upper = 1 << 3; 304 static const mask lower = 1 << 4; 305 static const mask alpha = 1 << 5; 306 static const mask digit = 1 << 6; 307 static const mask punct = 1 << 7; 308 static const mask xdigit = 1 << 8; [all …]
|
/freebsd/contrib/wpa/src/utils/ |
H A D | const_time.h | 94 * @mask: 0 (false) or -1 (true) to identify which value to select 97 * Returns: true_val if mask == -1, false_val if mask == 0 99 static inline unsigned int const_time_select(unsigned int mask, in const_time_select() argument 103 return (mask & true_val) | (~mask & false_val); in const_time_select() 109 * @mask: 0 (false) or -1 (true) to identify which value to select 112 * Returns: true_val if mask == -1, false_val if mask == 0 114 static inline int const_time_select_int(unsigned int mask, int true_val, in const_time_select_int() argument 117 return (int) const_time_select(mask, (unsigned int) true_val, in const_time_select_int() 124 * @mask: 0 (false) or -1 (true) to identify which value to select 127 * Returns: true_val if mask == -1, false_val if mask == 0 [all …]
|
/freebsd/sys/fs/nfs/ |
H A D | nfs_commonacl.c | 35 static int nfsrv_acemasktoperm(u_int32_t acetype, u_int32_t mask, int owner, 48 u_int32_t flag, mask, acetype; in nfsrv_dissectace() local 57 mask = fxdr_unsigned(u_int32_t, *tl++); in nfsrv_dissectace() 170 * And turn the mask into perm bits. in nfsrv_dissectace() 173 aceerr = nfsrv_acemasktoperm(acetype, mask, owner, VREG, in nfsrv_dissectace() 185 * Turn an NFSv4 ace mask into R/W/X flag bits. 188 nfsrv_acemasktoperm(u_int32_t acetype, u_int32_t mask, int owner, in nfsrv_acemasktoperm() argument 194 if (mask & NFSV4ACE_READDATA) { in nfsrv_acemasktoperm() 195 mask &= ~NFSV4ACE_READDATA; in nfsrv_acemasktoperm() 198 if (mask & NFSV4ACE_LISTDIRECTORY) { in nfsrv_acemasktoperm() [all …]
|
/freebsd/lib/libc/tests/sys/ |
H A D | cpuset_test.c | 54 cpuset_t mask; member 79 return ("Failed to get the thread cpuset mask"); in do_jail_errstr() 100 skip_ltncpu(int ncpu, cpuset_t *mask) in skip_ltncpu() argument 103 CPU_ZERO(mask); in skip_ltncpu() 105 -1, sizeof(*mask), mask)); in skip_ltncpu() 106 if (CPU_COUNT(mask) < ncpu) in skip_ltncpu() 169 cpuset_t dismask, mask, omask; in ATF_TC_BODY() local 176 CPU_ZERO(&mask); in ATF_TC_BODY() 178 CPU_COPY(&omask, &mask); in ATF_TC_BODY() 180 fcpu = CPU_FFS(&mask); in ATF_TC_BODY() [all …]
|
/freebsd/contrib/llvm-project/llvm/lib/Target/RISCV/ |
H A D | RISCVInstrInfoVVLPatterns.td | 39 // Input: (vector, vector/scalar, merge, mask, roundmode, vl) 155 def any_riscv_fadd_vl : PatFrags<(ops node:$lhs, node:$rhs, node:$merge, node:$mask, node:$vl), 156 [(riscv_fadd_vl node:$lhs, node:$rhs, node:$merge, node:$mask, node:$vl), 157 … (riscv_strict_fadd_vl node:$lhs, node:$rhs, node:$merge, node:$mask, node:$vl)]>; 158 def any_riscv_fsub_vl : PatFrags<(ops node:$lhs, node:$rhs, node:$merge, node:$mask, node:$vl), 159 [(riscv_fsub_vl node:$lhs, node:$rhs, node:$merge, node:$mask, node:$vl), 160 … (riscv_strict_fsub_vl node:$lhs, node:$rhs, node:$merge, node:$mask, node:$vl)]>; 161 def any_riscv_fmul_vl : PatFrags<(ops node:$lhs, node:$rhs, node:$merge, node:$mask, node:$vl), 162 [(riscv_fmul_vl node:$lhs, node:$rhs, node:$merge, node:$mask, node:$vl), 163 … (riscv_strict_fmul_vl node:$lhs, node:$rhs, node:$merge, node:$mask, node:$vl)]>; [all …]
|
/freebsd/sys/contrib/alpine-hal/ |
H A D | al_hal_reg_utils.h | 66 #define AL_REG_FIELD_GET(reg, mask, shift) (((reg) & (mask)) >> (shift)) argument 69 #define AL_REG_FIELD_SET(reg, mask, shift, val) \ argument 71 (((reg) & (~(mask))) | \ 72 ((((unsigned)(val)) << (shift)) & (mask))) 75 #define AL_REG_FIELD_SET_64(reg, mask, shift, val) \ argument 77 (((reg) & (~(mask))) | \ 78 ((((uint64_t)(val)) << (shift)) & (mask)))) 122 /** take bits selected by mask from one data, the rest from background */ 123 #define AL_MASK_VAL(mask, data, background) \ argument 124 (((mask) & (data)) | ((~mask) & (background))) [all …]
|
/freebsd/sys/dev/gpio/ |
H A D | pl061.c | 116 uint8_t mask = 1 << pin; in pl061_pin_getflags() local 125 if (mask & bus_read_1(sc->sc_mem_res, PL061_DIR)) in pl061_pin_getflags() 161 uint8_t mask = 1 << pin; in pl061_pin_setflags() local 177 mask_and_set(sc, PL061_DIR, mask, flags & GPIO_PIN_OUTPUT ? mask : 0); in pl061_pin_setflags() 240 uint8_t mask; in pl061_pic_disable_intr() local 243 mask = 1 << ((struct pl061_pin_irqsrc *)isrc)->irq; in pl061_pic_disable_intr() 245 dprintf("%s: calling disable interrupt %#x\n", __func__, mask); in pl061_pic_disable_intr() 247 mask_and_set(sc, PL061_INTMASK, mask, 0); in pl061_pic_disable_intr() 257 uint8_t mask; in pl061_pic_enable_intr() local 260 mask = 1 << ((struct pl061_pin_irqsrc *)isrc)->irq; in pl061_pic_enable_intr() [all …]
|
/freebsd/crypto/openssl/crypto/asn1/ |
H A D | a_strnid.c | 21 * This is the global mask for the mbstring functions: this is use to mask 28 void ASN1_STRING_set_default_mask(unsigned long mask) in ASN1_STRING_set_default_mask() argument 30 global_mask = mask; in ASN1_STRING_set_default_mask() 41 * MASK:XXXX : a numerical mask value. 50 unsigned long mask; in ASN1_STRING_set_default_mask_asc() local 53 if (strncmp(p, "MASK:", 5) == 0) { in ASN1_STRING_set_default_mask_asc() 56 mask = strtoul(p + 5, &end, 0); in ASN1_STRING_set_default_mask_asc() 60 mask = ~((unsigned long)(B_ASN1_BMPSTRING | B_ASN1_UTF8STRING)); in ASN1_STRING_set_default_mask_asc() 62 mask = ~((unsigned long)B_ASN1_T61STRING); in ASN1_STRING_set_default_mask_asc() 64 mask = B_ASN1_UTF8STRING; in ASN1_STRING_set_default_mask_asc() [all …]
|
/freebsd/sys/contrib/libsodium/src/libsodium/include/sodium/private/ |
H A D | ed25519_ref10_fe_51.h | 55 const uint64_t mask = 0x7ffffffffffffULL; in fe25519_sub() local 65 h0 &= mask; in fe25519_sub() 67 h1 &= mask; in fe25519_sub() 69 h2 &= mask; in fe25519_sub() 71 h3 &= mask; in fe25519_sub() 73 h4 &= mask; in fe25519_sub() 111 const uint64_t mask = (uint64_t) (-(int64_t) b); in fe25519_cmov() local 125 x0 &= mask; in fe25519_cmov() 126 x1 &= mask; in fe25519_cmov() 127 x2 &= mask; in fe25519_cmov() [all …]
|
/freebsd/contrib/arm-optimized-routines/math/test/rtest/ |
H A D | random.c | 61 uint32 mask = 0xFFFFFFFF; in random_upto_makemask() local 64 if ((limit & (mask >> i)) == limit) in random_upto_makemask() 65 mask >>= i; in random_upto_makemask() 66 return mask; in random_upto_makemask() 69 static uint32 random_upto_internal(uint32 limit, uint32 mask) { in random_upto_internal() argument 72 ret = random32() & mask; in random_upto_internal() 78 uint32 mask = random_upto_makemask(limit); in random_upto() local 79 return random_upto_internal(limit, mask); in random_upto() 83 uint32 mask = random_upto_makemask(limit); in random_upto_biased() local 85 uint32 ret = random_upto_internal(limit, mask); in random_upto_biased() [all …]
|
/freebsd/contrib/llvm-project/llvm/lib/Target/AMDGPU/Utils/ |
H A D | SIDefinesUtils.h | 21 /// Deduce the least significant bit aligned shift and mask values for a binary 23 /// pair<shift, mask>. That is to say \p Value == ~(mask << shift) 29 unsigned Mask = 0; in getShiftMask() local 31 Mask = ~Value; in getShiftMask() 32 for (; !(Mask & 1); Shift++, Mask >>= 1) { in getShiftMask() 35 return std::make_pair(Shift, Mask); in getShiftMask() 38 /// Provided with the MCExpr * \p Val, uint32 \p Mask and \p Shift, will return 42 /// For example, given MCExpr *Val, Mask == 0xf, Shift == 6 the returned MCExpr 44 inline const MCExpr *maskShiftSet(const MCExpr *Val, uint32_t Mask, in maskShiftSet() argument 46 if (Mask) { in maskShiftSet() [all …]
|
/freebsd/contrib/llvm-project/llvm/lib/Transforms/Scalar/ |
H A D | ScalarizeMaskedMemIntrin.cpp | 12 // appropriate mask bit is set. 91 static bool isConstantIntVector(Value *Mask) { in isConstantIntVector() argument 92 Constant *C = dyn_cast<Constant>(Mask); in isConstantIntVector() 96 unsigned NumElts = cast<FixedVectorType>(Mask->getType())->getNumElements(); in isConstantIntVector() 113 // <16 x i1> %mask, <16 x i32> %passthru) 115 // the appropriate mask bit is set 118 // %2 = extractelement <16 x i1> %mask, i32 0 129 // %6 = extractelement <16 x i1> %mask, i32 1 140 // %10 = extractelement <16 x i1> %mask, i32 2 147 Value *Mask = CI->getArgOperand(2); in scalarizeMaskedLoad() local [all …]
|
/freebsd/contrib/bmake/ |
H A D | sigaction.c | 9 * int sigaddset(sigset_t *mask, int sig); 10 * int sigdelset(sigset_t *mask, int sig); 11 * int sigemptyset(sigset_t *mask); 12 * int sigfillset(sigset_t *mask); 13 * int sigismember(sigset_t *mask, int sig); 16 * int sigsuspend(sigset_t *mask); 68 * sigaddset() adds "sig" to the sigset_t pointed to by "mask". 71 * by "mask". 73 * sigemptyset() makes the sigset_t pointed to by "mask" empty. 75 * sigfillset() makes the sigset_t pointed to by "mask" [all …]
|
/freebsd/crypto/openssh/openbsd-compat/ |
H A D | sigact.c | 56 sigemptyset (sigset_t *mask) in sigemptyset() argument 58 if (!mask) { in sigemptyset() 62 *mask = 0; in sigemptyset() 67 sigprocmask (int mode, sigset_t *mask, sigset_t *omask) in sigprocmask() argument 71 if (!mask) { in sigprocmask() 80 current |= *mask; in sigprocmask() 82 current &= ~*mask; in sigprocmask() 84 current = *mask; in sigprocmask() 91 sigsuspend (sigset_t *mask) in sigsuspend() argument 93 if (!mask) { in sigsuspend() [all …]
|