Home
last modified time | relevance | path

Searched +full:x +full:- +full:mask +full:- (Results 1 – 25 of 1075) sorted by relevance

12345678910>>...43

/freebsd/contrib/llvm-project/llvm/include/llvm/IR/
H A DVPIntrinsics.def1 //===-- IR/VPIntrinsics.def - Describes llvm.vp.* Intrinsics -*- C++ -*-===//
5 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
7 //===----------------------------------------------------------------------===//
13 //===----------------------------------------------------------------------===//
24 // \p MASKPOS The mask operand position.
44 // TheNode->getValueType(-1-LEGALPOS) is used.
46 // \p MASKPOS The mask operand position.
63 // Helper macros for the common "1:1 - Intrinsic : SDNode" case.
71 // \p MASKPOS The mask operand position.
75 // this SDNode. This can be `-1`, in which case the return type of
[all …]
/freebsd/contrib/llvm-project/llvm/lib/Transforms/Scalar/
H A DScalarizeMaskedMemIntrin.cpp1 //===- ScalarizeMaskedMemIntrin.cpp - Scalarize unsupported masked mem ----===//
6 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
8 //===----------------------------------------------------------------------===//
10 // This pass replaces masked memory intrinsics - when unsupported by the target
11 // - with a chain of basic blocks, that deal with the elements one-by-one if the
12 // appropriate mask bit is set.
14 //===----------------------------------------------------------------------===//
42 #define DEBUG_TYPE "scalarize-masked-mem-intrin"
91 static bool isConstantIntVector(Value *Mask) { in isConstantIntVector() argument
92 Constant *C = dyn_cast<Constant>(Mask); in isConstantIntVector()
[all …]
/freebsd/sys/compat/linuxkpi/common/include/linux/
H A Dbitops.h1 /*-
5 * Copyright (c) 2013-2017 Mellanox Technologies, Ltd.
49 #define BITMAP_LAST_WORD_MASK(n) (~0UL >> (BITS_PER_LONG - (n)))
51 #define BIT_MASK(nr) (1UL << ((nr) & (BITS_PER_LONG - 1)))
53 #define GENMASK(h, l) (((~0UL) >> (BITS_PER_LONG - (h) - 1)) & ((~0UL) << (l)))
54 #define GENMASK_ULL(h, l) (((~0ULL) >> (BITS_PER_LONG_LONG - (h) - 1)) & ((~0ULL) << (l)))
59 #define hweight8(x) bitcount((uint8_t)(x)) argument
58 hweight8(x) global() argument
60 hweight32(x) global() argument
61 hweight64(x) global() argument
62 hweight_long(x) global() argument
64 HWEIGHT8(x) global() argument
65 HWEIGHT16(x) global() argument
66 HWEIGHT32(x) global() argument
67 HWEIGHT64(x) global() argument
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/Target/SystemZ/
H A DSystemZTDC.cpp1 //===-- SystemZTDC.cpp - Utilize Test Data Class instruction --------------===//
5 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
7 //===----------------------------------------------------------------------===//
14 // 1: fcmp pred X, 0 -> tdc X, mask
15 // 2: fcmp pred X, +-inf -> tdc X, mask
16 // 3: fcmp pred X, +-minnorm -> tdc X, mask
17 // 4: tdc (fabs X), mask -> tdc X, newmask
18 // 5: icmp slt (bitcast float X to int), 0 -> tdc X, mask [ie. signbit]
19 // 6: icmp sgt (bitcast float X to int), -1 -> tdc X, mask
20 // 7: icmp ne/eq (call @llvm.s390.tdc.*(X, mask)) -> tdc X, mask/~mask
[all …]
/freebsd/contrib/llvm-project/llvm/lib/Transforms/InstCombine/
H A DInstCombineVectorOps.cpp1 //===- InstCombineVectorOps.cpp -------------------------------------------===//
5 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
7 //===----------------------------------------------------------------------===//
12 //===----------------------------------------------------------------------===//
63 return CEI || C->getSplatValue(); in cheapToScalarize()
66 ElementCount EC = cast<VectorType>(V->getType())->getElementCount(); in cheapToScalarize()
69 return CEI->getValue().ult(EC.getKnownMinValue()); in cheapToScalarize()
108 for (auto *U : PN->users()) { in scalarizePHI()
110 if (EI.getIndexOperand() == EU->getIndexOperand()) in scalarizePHI()
127 if (!PHIUser->hasOneUse() || !(PHIUser->user_back() == PN) || in scalarizePHI()
[all …]
/freebsd/tests/sys/acl/
H A Dtools-posix.test26 # This is a tools-level test for POSIX.1e ACL functionality. Run it as root
27 # using ACL-enabled kernel:
29 # /usr/src/tools/regression/acltools/run /usr/src/tools/regression/acltools/tools-posix.test
39 $ getfacl -n xxx
43 > user::rw-
44 > group::r--
45 > other::r--
47 $ getfacl -q xxx
48 > user::rw-
49 > group::r--
[all …]
/freebsd/usr.sbin/bhyve/amd64/
H A Dvga.c1 /*-
2 * SPDX-License-Identifier: BSD-2-Clause
175 return (((sc->vga_seq.seq_clock_mode & SEQ_CM_SO) != 0) || in vga_in_reset()
176 ((sc->vga_seq.seq_reset & SEQ_RESET_ASYNC) == 0) || in vga_in_reset()
177 ((sc->vga_seq.seq_reset & SEQ_RESET_SYNC) == 0) || in vga_in_reset()
178 ((sc->vga_crtc.crtc_mode_ctrl & CRTC_MC_TE) == 0)); in vga_in_reset()
189 //old_width = sc->gc_width; in vga_check_size()
190 //old_height = sc->gc_height; in vga_check_size()
191 old_width = sc->gc_image->width; in vga_check_size()
192 old_height = sc->gc_image->height; in vga_check_size()
[all …]
/freebsd/contrib/lib9p/
H A Dgenacl.c50 static int l9p_check_aces(int32_t mask, struct l9p_acl *acl, struct stat *st,
61 * Is the given group ID tid (test-id) any of the gid's in agids?
82 * or have cleared out all our attempt-something bits. Once
91 * -1 (negative = no = denied), or 0 (no strong answer).
94 * mask of 0, we return 0 (no answer).
97 l9p_check_aces(int32_t mask, struct l9p_acl *acl, struct stat *st, in l9p_check_aces() argument
109 if (mask == 0) in l9p_check_aces()
112 for (i = 0; mask != 0 && i < acl->acl_nace; i++) { in l9p_check_aces()
113 ace = &acl->acl_aces[i]; in l9p_check_aces()
114 switch (ace->ace_type) { in l9p_check_aces()
[all …]
H A Dutils.c56 uint64_t db_mask; /* mask value */
84 * Using adjacent-string concatenation ("T" #name, "R" #name), we
86 * Alas, there is no stupid cpp trick to lowercase-ify, so we
93 #define X(NAME, name) [L9P_T##NAME - L9P__FIRST] = "T" name, \ macro
94 [L9P_R##NAME - L9P__FIRST] = "R" name
96 X(VERSION, "version"),
97 X(AUTH, "auth"),
98 X(ATTACH, "attach"),
99 X(ERROR, "error"),
100 X(LERROR, "lerror"),
[all …]
/freebsd/contrib/llvm-project/llvm/lib/Analysis/
H A DCmpInstAnalysis.cpp1 //===- CmpInstAnalysis.cpp - Utils to help fold compares ---------------===//
5 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
7 //===----------------------------------------------------------------------===//
12 //===----------------------------------------------------------------------===//
23 // False -> 0 in getICmpCode()
34 // True -> 7 in getICmpCode()
78 Value *&X, APInt &Mask, bool LookThruTrunc) { in decomposeBitTestICmp() argument
89 // X < 0 is equivalent to (X & SignMask) != 0. in decomposeBitTestICmp()
90 if (!C->isZero()) in decomposeBitTestICmp()
92 Mask = APInt::getSignMask(C->getBitWidth()); in decomposeBitTestICmp()
[all …]
/freebsd/sys/dev/ath/ath_hal/ar5416/
H A Dar5416_interrupts.c1 /*-
2 * SPDX-License-Identifier: ISC
4 * Copyright (c) 2002-2008 Sam Leffler, Errno Consulting
5 * Copyright (c) 2002-2008 Atheros Communications, Inc.
59 * values. The value returned is mapped to abstract the hw-specific bit
64 * Returns: A hardware-abstracted bitmap of all non-masked-out
71 HAL_CAPABILITIES *pCap = &AH_PRIVATE(ah)->ah_caps; in ar5416GetPendingInterrupts()
77 bzero(&ah->ah_intrstate, sizeof(ah->ah_intrstate)); in ar5416GetPendingInterrupts()
78 ah->ah_syncstate = 0; in ar5416GetPendingInterrupts()
94 ah->ah_syncstate = in ar5416GetPendingInterrupts()
[all …]
/freebsd/contrib/llvm-project/llvm/lib/Target/VE/
H A DVVPInstrInfo.td1 //===-------------- VVPInstrInfo.td - VVP_* SDNode patterns ---------------===//
5 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
7 //===----------------------------------------------------------------------===//
13 // ADD(x,y) --> VVP_ADD(x,y,mask,evl) --> VADDSWSXrvml(x,y,mask,evl)
19 //===----------------------------------------------------------------------===//
21 // vvp_load(ptr, stride, mask, avl)
30 // vvp_store(data, ptr, stride, mask, avl)
39 // vvp_scatter(chain, data, addr, mask, avl)
48 // vvp_gather(chain, addr, mask, avl)
56 // BinaryOp(x,y,mask,vl)
[all …]
/freebsd/sys/dev/ath/ath_hal/ar5211/
H A Dar5211_interrupts.c1 /*-
2 * SPDX-License-Identifier: ISC
4 * Copyright (c) 2002-2008 Sam Leffler, Errno Consulting
5 * Copyright (c) 2002-2006 Atheros Communications, Inc.
42 * values. The value returned is mapped to abstract the hw-specific bit
45 * Returns: A hardware-abstracted bitmap of all non-masked-out
68 * Receive overrun is usually non-fatal on Oahu/Spirit. in ar5211GetPendingInterrupts()
72 if ((isr & AR_ISR_RXORN) && AH_PRIVATE(ah)->ah_rxornIsFatal) { in ar5211GetPendingInterrupts()
82 AH_PRIVATE(ah)->ah_fatalState[0] = isr; in ar5211GetPendingInterrupts()
83 AH_PRIVATE(ah)->ah_fatalState[1] = OS_REG_READ(ah, AR_ISR_S0_S); in ar5211GetPendingInterrupts()
[all …]
/freebsd/sys/contrib/dev/ath/ath_hal/ar9300/
H A Dar9300_interrupts.c66 * values. The value returned is mapped to abstract the hw-specific bit
69 * Returns: A hardware-abstracted bitmap of all non-masked-out
96 HAL_CAPABILITIES *p_cap = &AH_PRIVATE(ah)->ah_caps; in ar9300_get_pending_interrupts()
148 ah->ah_intrstate[0] = OS_REG_READ(ah, AR_ISR); in ar9300_get_pending_interrupts()
149 ah->ah_intrstate[1] = OS_REG_READ(ah, AR_ISR_S0); in ar9300_get_pending_interrupts()
150 ah->ah_intrstate[2] = OS_REG_READ(ah, AR_ISR_S1); in ar9300_get_pending_interrupts()
151 ah->ah_intrstate[3] = OS_REG_READ(ah, AR_ISR_S2); in ar9300_get_pending_interrupts()
152 ah->ah_intrstate[4] = OS_REG_READ(ah, AR_ISR_S3); in ar9300_get_pending_interrupts()
153 ah->ah_intrstate[5] = OS_REG_READ(ah, AR_ISR_S4); in ar9300_get_pending_interrupts()
154 ah->ah_intrstate[6] = OS_REG_READ(ah, AR_ISR_S5); in ar9300_get_pending_interrupts()
[all …]
/freebsd/contrib/llvm-project/clang/lib/Headers/
H A Dsmmintrin.h1 /*===---- smmintrin.h - SSE4 intrinsics ------------------------------------===
5 * SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
7 *===-----------------------------------------------------------------------===
22 __target__("sse4.1,no-evex512"), __min_vector_width__(128)))
41 /// Rounds up each element of the 128-bit vector of [4 x float] to an
42 /// integer and returns the rounded values in a 128-bit vector of
43 /// [4 x float].
48 /// __m128 _mm_ceil_ps(__m128 X);
53 /// \param X
54 /// A 128-bit vector of [4 x float] values to be rounded up.
[all …]
/freebsd/sys/dev/al_eth/
H A Dal_init_eth_lm.c1 /*-
73 /* 40GBASE-LR4 and 40GBASE-SR4 are optic modules */
111 uint8_t mask; member
115 {.addr = 0x0A, .value = 0x0C, .mask = 0xff },
116 {.addr = 0x2F, .value = 0x54, .mask = 0xff },
117 {.addr = 0x31, .value = 0x20, .mask = 0xff },
118 {.addr = 0x1E, .value = 0xE9, .mask = 0xff },
119 {.addr = 0x1F, .value = 0x0B, .mask = 0xff },
120 {.addr = 0xA6, .value = 0x43, .mask = 0xff },
121 {.addr = 0x2A, .value = 0x5A, .mask = 0xff },
[all …]
/freebsd/sys/dev/ath/ath_hal/ar5210/
H A Dar5210_interrupts.c1 /*-
2 * SPDX-License-Identifier: ISC
4 * Copyright (c) 2002-2008 Sam Leffler, Errno Consulting
5 * Copyright (c) 2002-2004 Atheros Communications, Inc.
28 * Return non-zero if an interrupt is pending.
56 * Mask interrupts that have no device-independent in ar5210GetPendingInterrupts()
62 *masked = (isr & (HAL_INT_COMMON - HAL_INT_BNR)) & ahp->ah_maskReg; in ar5210GetPendingInterrupts()
75 AH_PRIVATE(ah)->ah_fatalState[0] = isr; in ar5210GetPendingInterrupts()
85 return AH5210(ah)->ah_maskReg; in ar5210GetInterrupts()
92 uint32_t omask = ahp->ah_maskReg; in ar5210SetInterrupts()
[all …]
/freebsd/contrib/ofed/libibmad/
H A Ddump.c2 * Copyright (c) 2004-2009 Voltaire Inc. All rights reserved.
4 * Copyright (c) 2009-2011 Mellanox Technologies LTD. All rights reserved.
17 * - Redistributions of source code must retain the above
21 * - Redistributions in binary form must reproduce the above
101 snprintf(buf, bufsz, "0x%02x", *(uint32_t *) val & 0xff); in mad_dump_hex()
104 snprintf(buf, bufsz, "0x%04x", *(uint32_t *) val & 0xffff); in mad_dump_hex()
107 snprintf(buf, bufsz, "0x%06x", *(uint32_t *) val & 0xffffff); in mad_dump_hex()
110 snprintf(buf, bufsz, "0x%08x", *(uint32_t *) val); in mad_dump_hex()
113 snprintf(buf, bufsz, "0x%010" PRIx64, in mad_dump_hex()
117 snprintf(buf, bufsz, "0x%012" PRIx64, in mad_dump_hex()
[all …]
/freebsd/usr.bin/jot/
H A Djot.c1 /*-
2 * SPDX-License-Identifier: BSD-3-Clause
33 * jot - print sequential or random data
64 #define is_default(s) (*(s) == 0 || strcmp((s), "-") == 0)
67 static int prec = -1;
90 int mask = 0; in main() local
96 double x, y; in main() local
115 while ((ch = getopt(argc, argv, "b:cnp:rs:w:")) != -1) in main()
123 errx(1, "-%c word too long", ch); in main()
147 argc -= optind; in main()
[all …]
/freebsd/sys/net/
H A Dradix.c1 /*-
2 * SPDX-License-Identifier: BSD-3-Clause
48 #define log(x, arg...) fprintf(stderr, ## arg) argument
49 #define panic(x) fprintf(stderr, "PANIC: %s", x), exit(1) argument
68 -1, -1, -1, -1, -1, -1, -1, -1,
69 -1, -1, -1, -1, -1, -1, -1, -1,
70 -1, -1, -1, -1, -1, -1, -1, -1,
71 -1, -1, -1, -1, -1, -1, -1, -1,
85 * of a node n have keys whose bits all agree up to position rn_bit - 1.
91 * A route is determined by a pair of key and mask. We require that the
[all …]
/freebsd/contrib/ofed/infiniband-diags/src/
H A Dperfquery.c2 * Copyright (c) 2004-2009 Voltaire Inc. All rights reserved.
17 * - Redistributions of source code must retain the above
21 * - Redistributions in binary form must reproduce the above
253 printf("# Port counters: %s port %d (CapMask: 0x%02X)\n%s", in output_aggregate_perfcounters()
386 printf("# Port extended counters: %s port %d (CapMask: 0x%02X CapMask2: 0x%07X)\n%s", in output_aggregate_perfcounters_ext()
427 ("PerfMgt ClassPortInfo CapMask 0x%02X; No extended counter support indicated\n", in dump_perfcounters()
444 "(CapMask: 0x%02X CapMask2: 0x%07X)\n%s", in dump_perfcounters()
449 "(CapMask: 0x%02X)\n%s", in dump_perfcounters()
454 static void reset_counters(int extended, int timeout, int mask, in reset_counters() argument
459 if (!performance_reset_via(pc, portid, port, mask, timeout, in reset_counters()
[all …]
/freebsd/sys/contrib/dev/iwlwifi/
H A Diwl-io.c1 // SPDX-License-Identifier: GPL-2.0 OR BSD-3-Clause
3 * Copyright (C) 2003-2014, 2018-2022, 2024 Intel Corporation
4 * Copyright (C) 2015-2016 Intel Deutschland GmbH
10 #include "iwl-drv.h"
11 #include "iwl-i
51 iwl_poll_bit(struct iwl_trans * trans,u32 addr,u32 bits,u32 mask,int timeout) iwl_poll_bit() argument
98 iwl_poll_direct_bit(struct iwl_trans * trans,u32 addr,u32 mask,int timeout) iwl_poll_direct_bit() argument
163 iwl_poll_prph_bit(struct iwl_trans * trans,u32 addr,u32 bits,u32 mask,int timeout) iwl_poll_prph_bit() argument
177 iwl_set_bits_prph(struct iwl_trans * trans,u32 ofs,u32 mask) iwl_set_bits_prph() argument
189 iwl_set_bits_mask_prph(struct iwl_trans * trans,u32 ofs,u32 bits,u32 mask) iwl_set_bits_mask_prph() argument
200 iwl_clear_bits_prph(struct iwl_trans * trans,u32 ofs,u32 mask) iwl_clear_bits_prph() argument
231 IWL_CMD(x) get_rfh_string() argument
[all...]
/freebsd/sys/dev/ath/ath_hal/ar5212/
H A Dar5212_interrupts.c1 /*-
2 * SPDX-License-Identifier: ISC
4 * Copyright (c) 2002-2008 Sam Leffler, Errno Consulting
5 * Copyright (c) 2002-2008 Atheros Communications, Inc.
47 * values. The value returned is mapped to abstract the hw-specific bit
50 * Returns: A hardware-abstracted bitmap of all non-masked-out
90 ahp->ah_intrTxqs |= MS(isr0, AR_ISR_S0_QCU_TXOK); in ar5212GetPendingInterrupts()
91 ahp->ah_intrTxqs |= MS(isr0, AR_ISR_S0_QCU_TXDESC); in ar5212GetPendingInterrupts()
93 ahp->ah_intrTxqs |= MS(isr1, AR_ISR_S1_QCU_TXERR); in ar5212GetPendingInterrupts()
94 ahp->ah_intrTxqs |= MS(isr1, AR_ISR_S1_QCU_TXEOL); in ar5212GetPendingInterrupts()
[all …]
/freebsd/sbin/routed/
H A Dradix.c1 /*-
2 * SPDX-License-Identifier: BSD-3-Clause
37 #define log(x, msg) syslog(x, msg) argument
49 #define rn_masktop (mask_rnhead->rnh_treetop)
63 * of a node n have keys whose bits all agree up to position rn_b - 1.
69 * A route is determined by a pair of key and mask. We require that the
70 * bit-wise logical and of the key and mask to be the key.
71 * We define the index of a route to associated with the mask to be
72 * the first bit number in the mask where 0 occurs (with bit number 0
75 * We say a mask is normal if every bit is 0, past the index of the mask.
[all …]
/freebsd/crypto/openssl/crypto/bn/
H A Dbn_lib.c2 * Copyright 1995-2024 The OpenSSL Project Authors. All Rights Reserved.
20 /*-
22 * 2 - 4 == 128
23 * 3 - 8 == 256
24 * 4 - 16 == 512
25 * 5 - 32 == 1024
26 * 6 - 64 == 2048
27 * 7 - 128 == 4096
28 * 8 - 256 == 8192
42 if (mult > (int)(sizeof(int) * 8) - in BN_set_params()
102 BN_ULONG x, mask; BN_num_bits_word() local
156 unsigned int mask, past_i; bn_num_bits_consttime() local
485 size_t i, lasti, j, atop, mask; bn2binpad() local
1028 unsigned int mask; bn_correct_top_consttime() local
[all...]

12345678910>>...43