/illumos-gate/usr/src/uts/common/fs/zfs/sys/ |
H A D | bitops.h | 44 #define BF32_DECODE(x, low, len) P2PHASE((x) >> (low), 1U << (len)) argument 45 #define BF64_DECODE(x, low, len) P2PHASE((x) >> (low), 1ULL << (len)) argument 46 #define BF32_ENCODE(x, low, len) (P2PHASE((x), 1U << (len)) << (low)) argument 49 #define BF32_GET(x, low, len) BF32_DECODE(x, low, len) argument 50 #define BF64_GET(x, low, len) BF64_DECODE(x, low, len) argument 52 #define BF32_SET(x, low, len, val) do { \ argument 58 #define BF64_SET(x, low, len, val) do { \ argument 64 #define BF32_GET_SB(x, low, len, shift, bias) \ argument 66 #define BF64_GET_SB(x, low, len, shift, bias) \ argument 75 #define BF32_SET_SB(x, low, len, shift, bias, val) do { \ argument [all …]
|
/illumos-gate/usr/src/uts/sparc/sys/ |
H A D | asm_linkage.h | 67 #define MCOUNT(x) \ argument 80 #define MCOUNT(x) \ argument 120 #define MCOUNT(x) argument 123 #define RTMCOUNT(x) MCOUNT(x) argument 153 #define ENTRY(x) \ argument 162 #define ENTRY_NP(x) \ argument 169 #define RTENTRY(x) \ argument 179 #define ENTRY2(x, y) \ argument 189 #define ENTRY_NP2(x, y) \ argument 203 #define ALTENTRY(x) \ argument [all …]
|
/illumos-gate/usr/src/grub/grub-0.97/netboot/ |
H A D | i386_byteswap.h | 5 static inline uint16_t __i386_bswap_16(uint16_t x) in __i386_bswap_16() 13 static inline uint32_t __i386_bswap_32(uint32_t x) in __i386_bswap_32() 24 #define __bswap_constant_16(x) \ argument 28 #define __bswap_constant_32(x) \ argument 34 #define __bswap_16(x) \ argument 40 #define __bswap_32(x) \ argument
|
H A D | pic8259.h | 47 #define IMR_REG(x) ( (x) < IRQ_PIC_CUTOFF ? PIC1_IMR : PIC2_IMR ) argument 48 #define IMR_BIT(x) ( 1 << ( (x) % IRQ_PIC_CUTOFF ) ) argument 49 #define irq_enabled(x) ( ( inb ( IMR_REG(x) ) & IMR_BIT(x) ) == 0 ) argument 50 #define enable_irq(x) outb ( inb( IMR_REG(x) ) & ~IMR_BIT(x), IMR_REG(x) ) argument 51 #define disable_irq(x) outb ( inb( IMR_REG(x) ) | IMR_BIT(x), IMR_REG(x) ) argument 54 #define ICR_REG(x) ( (x) < IRQ_PIC_CUTOFF ? PIC1_ICR : PIC2_ICR ) argument 55 #define ICR_VALUE(x) ( (x) % IRQ_PIC_CUTOFF ) argument 59 #define IRQ_INT(x) ( (x)<IRQ_PIC_CUTOFF ? (x)+0x08 : (x)-IRQ_PIC_CUTOFF+0x70 ) argument 60 #define INT_VECTOR(x) ( (segoff_t*) phys_to_virt( 4 * (x) ) ) argument 61 #define IRQ_VECTOR(x) ( INT_VECTOR ( IRQ_INT(x) ) ) argument
|
/illumos-gate/usr/src/uts/common/io/chxge/com/ |
H A D | elmer0.h | 46 #define V_MI1_MDI_ENABLE(x) ((x) << S_MI1_MDI_ENABLE) argument 50 #define V_MI1_MDI_INVERT(x) ((x) << S_MI1_MDI_INVERT) argument 59 #define V_MI1_SOF(x) ((x) << S_MI1_SOF) argument 60 #define G_MI1_SOF(x) (((x) >> S_MI1_SOF) & M_MI1_SOF) argument 64 #define V_MI1_CLK_DIV(x) ((x) << S_MI1_CLK_DIV) argument 71 #define V_MI1_REG_ADDR(x) ((x) << S_MI1_REG_ADDR) argument 76 #define V_MI1_PHY_ADDR(x) ((x) << S_MI1_PHY_ADDR) argument 83 #define V_MI1_DATA(x) ((x) << S_MI1_DATA) argument 90 #define V_MI1_OP(x) ((x) << S_MI1_OP) argument 91 #define G_MI1_OP(x) (((x) >> S_MI1_OP) & M_MI1_OP) argument [all …]
|
/illumos-gate/usr/src/lib/libm/common/C/ |
H A D | rint.c | 41 #define DECLRP(x) enum fp_precision_type x; argument 42 #define SWAPRP(new, x) x = __swapRP(new); argument 43 #define RESTRP(x) (void) __swapRP(x); argument 45 #define DECLRP(x) argument 46 #define SWAPRP(new, x) argument 47 #define RESTRP(x) argument 56 rint(double x) { in rint()
|
/illumos-gate/usr/src/compat/bhyve/sys/ |
H A D | cdefs.h | 28 #define __has_feature(x) 0 argument 50 #define __aligned(x) __attribute__((__aligned__(x))) argument 51 #define __section(x) __attribute__((__section__(x))) argument 58 #define _Alignof(x) alignof(x) argument 60 #define _Alignof(x) __alignof(x) argument 72 #define _Static_assert(x, y) static_assert(x, y) argument 76 #define _Static_assert(x, y) __Static_assert(x, __COUNTER__) argument 77 #define __Static_assert(x, y) ___Static_assert(x, y) argument 78 #define ___Static_assert(x, y) typedef char __assert_ ## y[(x) ? 1 : -1] \ argument 81 #define _Static_assert(x, y) struct __hack argument [all …]
|
H A D | param.h | 41 #define nitems(x) (sizeof((x)) / sizeof((x)[0])) argument 42 #define rounddown(x,y) (((x)/(y))*(y)) argument 43 #define rounddown2(x, y) ((x)&(~((y)-1))) /* if y is power of two */ argument 44 #define roundup(x, y) ((((x)+((y)-1))/(y))*(y)) /* to any y */ argument 45 #define roundup2(x,y) (((x)+((y)-1))&(~((y)-1))) /* if y is powers of two */ argument 46 #define powerof2(x) ((((x)-1)&(x))==0) argument 52 #define trunc_page(x) ((unsigned long)(x) & ~(PAGE_MASK)) argument 53 #define ptoa(x) ((unsigned long)(x) << PAGE_SHIFT) argument
|
/illumos-gate/usr/src/tools/smatch/src/validation/ |
H A D | fp-ops.c | 1 double fadd(double x, double y) { return x + y; } in fadd() 2 double fsub(double x, double y) { return x - y; } in fsub() 3 double fmul(double x, double y) { return x * y; } in fmul() 4 double fdiv(double x, double y) { return x / y; } in fdiv() 5 double fneg(double x) { return -x; } in fneg() 6 _Bool ftst(double x) { return !x; } in ftst()
|
/illumos-gate/usr/src/lib/krb5/plugins/kdb/ldap/libkdb_ldap/ |
H A D | ldap_err.c | 11 #define LDAP_X_ERROR(x) (0) argument 18 #define LDAP_NAME_ERROR(x) (0) argument 23 #define LDAP_SECURITY_ERROR(x) (0) argument 27 #define LDAP_SERVICE_ERROR(x) (0) argument 31 #define LDAP_API_ERROR(x) (0) argument 35 #define LDAP_UPDATE_ERROR(x) (0) argument
|
/illumos-gate/usr/src/cmd/oawk/ |
H A D | run.c | 96 CELL *x; in execute() local 127 CELL *x; in program() local 160 CELL *x; in getaline() local 189 CELL *x; in arrayel() local 210 CELL *x; in matchop() local 322 CELL *x; in gettemp() local 343 CELL *x; in indirect() local 408 CELL *x; in sindex() local 443 CELL *x; in format() local 577 CELL *x; in a_sprintf() local [all …]
|
/illumos-gate/usr/src/tools/smatch/src/validation/preprocessor/ |
H A D | preprocessor8.c | 1 #define A(x) ## x argument 2 #define B(x) x ## argument 3 #define C(x) x ## ## ## argument 4 #define D(x) x#y argument 6 #define F(x,y) x x##y #x y argument 9 #define I(x,y,z) x y z argument
|
/illumos-gate/usr/src/tools/smatch/src/validation/backend/ |
H A D | pointer-cmp.c | 1 int cmpint( int x, int y) { return x == y; } in cmpint() 2 int cmpflt( float x, float y) { return x == y; } in cmpflt() 3 int cmpvptr(void *x, void *y) { return x == y; } in cmpvptr() 4 int cmpiptr(int *x, int *y) { return x == y; } in cmpiptr() 6 int cmpmptr(long x, int *y) { return (int*)x == y; } in cmpmptr() 7 int cmpnptr(int *x, long y) { return x == (int*)y; } in cmpnptr()
|
/illumos-gate/usr/src/lib/libm/common/Q/ |
H A D | fmodl.c | 44 #define __H0(x) *(3 + (int *) &x) argument 45 #define __H1(x) *(2 + (int *) &x) argument 46 #define __H2(x) *(1 + (int *) &x) argument 47 #define __H3(x) *(0 + (int *) &x) argument 49 #define __H0(x) *(0 + (int *) &x) argument 50 #define __H1(x) *(1 + (int *) &x) argument 51 #define __H2(x) *(2 + (int *) &x) argument 52 #define __H3(x) *(3 + (int *) &x) argument 56 fmodl(long double x, long double y) { in fmodl()
|
/illumos-gate/usr/src/test/libc-tests/tests/qsort/ |
H A D | qsort_test.c | 196 int *x = v; in fill_sawtooth_i() local 210 double *x = v; in fill_sawtooth_double() local 225 int *x = v; in fill_random_i() local 254 int *x = v; in fill_stagger_i() local 282 int *x = v; in fill_plateau_i() local 310 int *x = v; in fill_shuffle_i() local 346 int *x = v; in fill_bsd_killer_i() local 392 int *x = v; in fill_med3_killer_i() local 530 int *x = vx; in test_perturbed_i() local 585 int *x = vx; in test_simple_i() local [all …]
|
/illumos-gate/usr/src/tools/smatch/src/compat/ |
H A D | bswap.h | 25 #define bswap16(x) __builtin_bswap16(x) argument 28 static inline uint16_t bswap16(uint16_t x) in bswap16() 35 #define bswap32(x) __builtin_bswap32(x) argument 38 static inline uint32_t bswap32(uint32_t x) in bswap32() 45 #define bswap64(x) __builtin_bswap64(x) argument 48 static inline uint64_t bswap64(uint64_t x) in bswap64()
|
/illumos-gate/usr/src/uts/common/sys/ |
H A D | mdesc_impl.h | 74 #define mdtoh8(x) ((uint8_t)(x)) argument 75 #define mdtoh16(x) ((uint16_t)(x)) argument 76 #define mdtoh32(x) ((uint32_t)(x)) argument 77 #define mdtoh64(x) ((uint64_t)(x)) argument 78 #define htomd8(x) (x) argument 79 #define htomd16(x) (x) argument 80 #define htomd32(x) (x) argument 81 #define htomd64(x) (x) argument 83 #define mdtoh8(x) ((uint8_t)(x)) argument 84 #define mdtoh16(x) BSWAP_16((uint16_t)(x)) argument [all …]
|
H A D | ioccom.h | 63 #define _IO(x, y) (IOC_VOID|(x<<8)|y) argument 64 #define _IOR(x, y, t) \ argument 68 #define _IORN(x, y, t) ((int)((uint32_t)(IOC_OUT|(((t)&IOCPARM_MASK)<<16)| \ argument 71 #define _IOW(x, y, t) \ argument 75 #define _IOWN(x, y, t) ((int32_t)(uint32_t)(IOC_IN|(((t)&IOCPARM_MASK)<<16)| \ argument 78 #define _IOWR(x, y, t) \ argument 82 #define _IOWRN(x, y, t) \ argument
|
/illumos-gate/usr/src/cmd/awk/ |
H A D | parse.c | 62 Node *x; in nodealloc() local 82 Node *x; in node1() local 93 Node *x; in node2() local 105 Node *x; in node3() local 118 Node *x; in node4() local 132 Node *x; in stat1() local 142 Node *x; in stat2() local 152 Node *x; in stat3() local 162 Node *x; in stat4() local 172 Node *x; in op1() local [all …]
|
/illumos-gate/usr/src/uts/common/io/qede/579xx/drivers/ecore/ |
H A D | ecore_utils.h | 43 #define PTR_LO(x) ((u32)(((osal_uintptr_t)(x)) & 0xffffffff)) argument 44 #define PTR_HI(x) ((u32)((((osal_uintptr_t)(x)) >> 16) >> 16)) argument 46 #define DMA_LO(x) ((u32)(((dma_addr_t)(x)) & 0xffffffff)) argument 47 #define DMA_HI(x) ((u32)(((dma_addr_t)(x)) >> 32)) argument 49 #define DMA_LO_LE(x) OSAL_CPU_TO_LE32(DMA_LO(x)) argument 50 #define DMA_HI_LE(x) OSAL_CPU_TO_LE32(DMA_HI(x)) argument 55 #define DMA_REGPAIR_LE(x, val) (x).hi = DMA_HI_LE((val)); \ argument
|
/illumos-gate/usr/src/uts/intel/sys/ |
H A D | asm_linkage.h | 125 #define MCOUNT(x) \ argument 135 #define MCOUNT(x) \ argument 151 #define MCOUNT(x) argument 154 #define RTMCOUNT(x) MCOUNT(x) argument 184 #define ENTRY(x) \ argument 191 #define ENTRY_NP(x) \ argument 198 #define RTENTRY(x) \ argument 208 #define ENTRY2(x, y) \ argument 218 #define ENTRY_NP2(x, y) \ argument 232 #define ALTENTRY(x) \ argument [all …]
|
/illumos-gate/usr/src/lib/libfru/libfruraw/ |
H A D | crcutils.c | 36 #define sws(x) (((x >> 8) & 0x00ff) | ((x << 8) & 0xff00)) argument 37 #define swl(x) (sws(x >> 16) | (sws(x) << 16)) argument 39 #define swap_short(x) (x = sws(x)) argument 40 #define swap_long(x) (x = swl(x)) argument 46 #define sws(x) (x) argument 47 #define swl(x) (x) argument 49 #define swap_short(x) (x = sws(x)) argument 50 #define swap_long(x) (x = swl(x)) argument
|
/illumos-gate/usr/src/cmd/picl/plugins/sun4u/lib/fruaccess/ |
H A D | crcutils.c | 36 #define sws(x) (((x >> 8) & 0x00ff) | ((x << 8) & 0xff00)) argument 37 #define swl(x) (sws(x >> 16) | (sws(x) << 16)) argument 39 #define swap_short(x) (x = sws(x)) argument 40 #define swap_long(x) (x = swl(x)) argument 46 #define sws(x) (x) argument 47 #define swl(x) (x) argument 49 #define swap_short(x) (x = sws(x)) argument 50 #define swap_long(x) (x = swl(x)) argument
|
/illumos-gate/usr/src/common/crypto/aes/amd64/ |
H A D | aesopt.h | 322 #define to_byte(x) ((x) & 0xff) argument 458 #define s(x, c) x[c] argument 549 #define upr(x, n) (((uint32_t)(x) << (8 * (n))) | \ argument 551 #define ups(x, n) ((uint32_t)(x) << (8 * (n))) argument 552 #define bval(x, n) to_byte((x) >> (8 * (n))) argument 561 #define ups(x, n) ((uint32_t)(x) >> (8 * (n))) argument 562 #define bval(x, n) to_byte((x) >> (24 - 8 * (n))) argument 696 #define no_table(x, box, vf, rf, c) bytes2word(\ argument 702 #define one_table(x, op, tab, vf, rf, c) \ argument 708 #define four_tables(x, tab, vf, rf, c) \ argument [all …]
|
/illumos-gate/usr/src/common/ficl/ |
H A D | double.c | 76 ficl2IntegerIsNegative(ficl2Integer x) in ficl2IntegerIsNegative() 86 ficl2IntegerNegate(ficl2Integer x) in ficl2IntegerNegate() 127 ficl2IntegerMultiply(ficlInteger x, ficlInteger y) in ficl2IntegerMultiply() 153 ficl2IntegerDecrement(ficl2Integer x) in ficl2IntegerDecrement() 163 ficl2UnsignedAdd(ficl2Unsigned x, ficl2Unsigned y) in ficl2UnsignedAdd() 182 ficl2UnsignedMultiply(ficlUnsigned x, ficlUnsigned y) in ficl2UnsignedMultiply() 204 ficl2UnsignedSubtract(ficl2Unsigned x, ficl2Unsigned y) in ficl2UnsignedSubtract() 223 ficl2UnsignedArithmeticShiftLeft(ficl2Unsigned x) in ficl2UnsignedArithmeticShiftLeft() 242 ficl2UnsignedArithmeticShiftRight(ficl2Unsigned x) in ficl2UnsignedArithmeticShiftRight() 260 ficl2UnsignedOr(ficl2Unsigned x, ficl2Unsigned y) in ficl2UnsignedOr() [all …]
|