/illumos-gate/usr/src/lib/libm/common/C/ |
H A D | exp.c | 286 exp(double x) { in exp() argument 303 return (one + x); in exp() 304 return (one + x * (one + half * x)); in exp() 306 t = x * x; in exp() 307 y = x + (t * (half + x * t2) + in exp() 318 z = x - TBL2[j]; in exp() 329 return (x * x); in exp() 331 if (x > threshold1) in exp() 332 return (_SVID_libm_err(x, x, 6)); in exp() 334 return (_SVID_libm_err(x, x, 7)); in exp() [all …]
|
H A D | __lgamma.c | 128 y = -x; in sin_pi() 211 return (x * x); in __k_lgamma() 217 t = one + x; in __k_lgamma() 228 y = x; in __k_lgamma() 231 y = x - one; in __k_lgamma() 234 if (x <= 0.5 || x >= 0.6796875) { in __k_lgamma() 251 y = x - 2.0; in __k_lgamma() 256 y = x - 4.0; in __k_lgamma() 261 t = one / x; in __k_lgamma() 264 q = log(x); in __k_lgamma() [all …]
|
H A D | asinh.c | 59 asinh(double x) { in asinh() argument 63 hx = ((int *) &x)[HIWORD]; in asinh() 67 return (ix >= 0x7ff80000 ? x : x + x); in asinh() 70 return (x + x); /* x is inf or NaN */ in asinh() 73 if (huge + x > one) in asinh() 74 return (x); /* return x inexact except 0 */ in asinh() 77 w = log(fabs(x)) + ln2; in asinh() 80 t = fabs(x); in asinh() 81 w = log(2.0 * t + one / (sqrt(x * x + one) + t)); in asinh() 84 t = x * x; in asinh() [all …]
|
/illumos-gate/usr/src/contrib/ast/src/lib/libast/uwin/ |
H A D | erf.c | 152 #define TRUNC(x) (double) (float) (x) argument 155 #define TRUNC(x) *(((int *) &x) + 1) &= 0xf8000000 argument 270 double x; 284 return x + p0*x; 286 y = x*x; 289 return x + x*(p0+r); 328 double x; 344 y = x*x; 348 return (one-(x+x*(p0+r))); 366 if (x>0) [all …]
|
/illumos-gate/usr/src/contrib/ast/src/lib/libast/include/ |
H A D | ast.h | 77 #define EXIT_CODE(x) ((x)&((1<<EXIT_BITS)-1)) argument 85 #define EXIT_STATUS(x) (((x)&((1<<(EXIT_BITS-2))-1))?(x):EXIT_CODE((x)>>EXIT_BITS)) argument 202 #define elementsof(x) (sizeof(x)/sizeof(x[0])) argument 206 #define pointerof(x) ((void*)((char*)0+(x))) argument 207 #define roundof(x,y) (((x)+(y)-1)&~((y)-1)) argument 208 #define ssizeof(x) ((int)sizeof(x)) argument 216 #define NoP(x) (void)(x) argument 219 #define NoP(x) (&x,1) argument 223 #define NoF(x) void _DATA_ ## x () {} argument 230 #define NoN(x) void _STUB_ ## x () {} argument [all …]
|
/illumos-gate/usr/src/tools/smatch/src/validation/preprocessor/ |
H A D | preprocessor23.c | 1 #define H(x,...) ,##x##__VA_ARGS__##,##__VA_ARGS__ argument 3 H(x) 5 H(x,) 6 H(,x) 7 H(x,x) 8 #define I(x,...) ,##x##__VA_ARGS__ argument 10 I(x) 12 I(x,) 13 I(,x) 14 I(x,x) [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/lib/libm/common/m9x/ |
H A D | remquof.c | 69 w = x * y; in fmodquof() 228 v = x * y; in remquof() 233 x = fabsf(x); in remquof() 235 x = fmodquof(x, y + y, quo); in remquof() 239 if (x + x > y) { in remquof() 244 x -= y; in remquof() 245 if (x + x >= y) { in remquof() 246 x -= y; in remquof() 257 x -= y; in remquof() 259 x -= y; in remquof() [all …]
|
H A D | nexttowardl.c | 40 #define X86PDNRM1(x) argument 61 #define X86PDNRM1(x) if (XBIASED_EXP(x) == 0 && (((int *) &x)[1] & \ argument 63 ((int *) &x)[2] |= 1 79 int *px = (int *) &x; in nexttowardl() 82 if (x == y) in nexttowardl() 84 if (x != x || y != y) in nexttowardl() 85 return (x * y); in nexttowardl() 92 X86PDNRM1(x); in nexttowardl() 94 if (x > y) /* x > y */ in nexttowardl() 99 if (x < y) /* x < y */ in nexttowardl() [all …]
|
H A D | remquol.c | 46 #define __H0(x) ((int *) &x)[0] argument 47 #define __H1(x) ((int *) &x)[1] argument 48 #define __H2(x) ((int *) &x)[2] argument 49 #define __H3(x) ((int *) &x)[3] argument 309 return ((x * y) / (x * y)); in remquol() 312 x = fabsl(x); in remquol() 314 x = fmodquol(x, y + y, quo); in remquol() 318 if (x + x > y) { in remquol() 323 x -= y; in remquol() 324 if (x + x >= y) { in remquol() [all …]
|
/illumos-gate/usr/src/head/iso/ |
H A D | math_c99.h | 71 #define isnan(x) __builtin_isnan(x) argument 72 #define isinf(x) __builtin_isinf(x) argument 78 { __typeof(x) __x_n = (x); \ 81 { __typeof(x) __x_i = (x); \ 86 { __typeof(x) __x_f = (x); \ 98 { __typeof(x) __x_c = (x); \ 107 { __typeof(x) __x_s = (x); \ 111 { __typeof(x) __x_s = (x); \ 155 #define isinf(x) __builtin_isinf(x) 157 #define isnan(x) __builtin_isnan(x) [all …]
|
/illumos-gate/usr/src/uts/i86pc/dboot/ |
H A D | dboot_printf.c | 104 x = -x; in dboot_putnum() 107 for (i = -1; x != 0 && i <= 63; x /= base) in dboot_putnum() 108 buffer[++i] = digits[x - ((x / base) * base)]; in dboot_putnum() 124 uint64_t x; in do_dboot_printf() local 148 x = va_arg(args, int); in do_dboot_printf() 149 bcons_putchar(x); in do_dboot_printf() 161 x = va_arg(args, ulong_t); in do_dboot_printf() 174 x = va_arg(args, int); in do_dboot_printf() 176 x = va_arg(args, long); in do_dboot_printf() 198 x = va_arg(args, uint_t); in do_dboot_printf() [all …]
|
/illumos-gate/usr/src/cmd/ipf/lib/ |
H A D | inet_addr.c | 68 # define __P(x) x argument 70 # define __P(x) () argument 80 #define ISALNUM(x) isalnum((u_char)(x)) argument 81 #define ISALPHA(x) isalpha((u_char)(x)) argument 82 #define ISASCII(x) isascii((u_char)(x)) argument 83 #define ISDIGIT(x) isdigit((u_char)(x)) argument 84 #define ISPRINT(x) isprint((u_char)(x)) argument 85 #define ISSPACE(x) isspace((u_char)(x)) argument 86 #define ISUPPER(x) isupper((u_char)(x)) argument 87 #define ISXDIGIT(x) isxdigit((u_char)(x)) argument [all …]
|
/illumos-gate/usr/src/contrib/ast/src/lib/libast/misc/ |
H A D | ftwalk.c | 63 FTSENT* x; in ftwalk() local 96 for (x = e; x; x = x->link) in ftwalk() 97 if (x->info & FTS_DD) in ftwalk() 99 x->statb = *x->fts_statp; in ftwalk() 100 x->info &= ~FTS_DD; in ftwalk() 101 dd[nd++] = x; in ftwalk() 110 for (x = e; x; x = x->link) in ftwalk() 112 x->status = FTS_SKIP; in ftwalk() 125 for (x = fts_children(f, 0); x; x = x->link) in ftwalk() 128 x->statb = *x->fts_statp; in ftwalk() [all …]
|
/illumos-gate/usr/src/grub/grub-0.97/stage2/ |
H A D | zfs_sha256.c | 46 #define Ch(x, y, z) ((z) ^ ((x) & ((y) ^ (z)))) argument 47 #define Maj(x, y, z) (((x) & (y)) ^ ((z) & ((x) ^ (y)))) argument 48 #define ROTR(x, n) (((x) >> (n)) | ((x) << ((sizeof (x) * NBBY)-(n)))) argument 51 #define BIGSIGMA0_256(x) (ROTR(x, 2) ^ ROTR(x, 13) ^ ROTR(x, 22)) argument 52 #define BIGSIGMA1_256(x) (ROTR(x, 6) ^ ROTR(x, 11) ^ ROTR(x, 25)) argument 53 #define SIGMA0_256(x) (ROTR(x, 7) ^ ROTR(x, 18) ^ ((x) >> 3)) argument 54 #define SIGMA1_256(x) (ROTR(x, 17) ^ ROTR(x, 19) ^ ((x) >> 10)) argument 57 #define BIGSIGMA0_512(x) (ROTR((x), 28) ^ ROTR((x), 34) ^ ROTR((x), 39)) argument 58 #define BIGSIGMA1_512(x) (ROTR((x), 14) ^ ROTR((x), 18) ^ ROTR((x), 41)) argument 59 #define SIGMA0_512(x) (ROTR((x), 1) ^ ROTR((x), 8) ^ ((x) >> 7)) argument [all …]
|
/illumos-gate/usr/src/boot/sys/cddl/boot/zfs/ |
H A D | sha256.c | 47 #define Ch(x, y, z) ((z) ^ ((x) & ((y) ^ (z)))) argument 48 #define Maj(x, y, z) (((x) & (y)) ^ ((z) & ((x) ^ (y)))) argument 49 #define ROTR(x, n) (((x) >> (n)) | ((x) << ((sizeof (x) * NBBY)-(n)))) argument 52 #define BIGSIGMA0_256(x) (ROTR(x, 2) ^ ROTR(x, 13) ^ ROTR(x, 22)) argument 53 #define BIGSIGMA1_256(x) (ROTR(x, 6) ^ ROTR(x, 11) ^ ROTR(x, 25)) argument 54 #define SIGMA0_256(x) (ROTR(x, 7) ^ ROTR(x, 18) ^ ((x) >> 3)) argument 55 #define SIGMA1_256(x) (ROTR(x, 17) ^ ROTR(x, 19) ^ ((x) >> 10)) argument 58 #define BIGSIGMA0_512(x) (ROTR((x), 28) ^ ROTR((x), 34) ^ ROTR((x), 39)) argument 59 #define BIGSIGMA1_512(x) (ROTR((x), 14) ^ ROTR((x), 18) ^ ROTR((x), 41)) argument 60 #define SIGMA0_512(x) (ROTR((x), 1) ^ ROTR((x), 8) ^ ((x) >> 7)) argument [all …]
|
/illumos-gate/usr/src/lib/libxcurses/h/ |
H A D | curses.h | 833 #define mvaddch(y,x,ch) (move(y,x)?ERR:addch(ch)) argument 859 #define mvaddstr(y,x,s) (move(y,x)?ERR:addstr(s)) argument 914 #define mvdelch(y,x) (move(y,x)?ERR:delch()) argument 934 #define mvgetch(y,x) (move(y,x)?ERR:getch()) argument 944 #define mvgetstr(y,x,s) (move(y,x)?ERR:getstr(s)) argument 986 #define mvinch(y,x) (move(y,x)?ERR:inch()) argument 987 #define mvwinch(w,y,x) (wmove(w,y,x)?ERR:winch(w)) argument 1012 #define mvinstr(y,x,s) (move(y,x)?ERR:instr(s)) argument 1026 #define mvinsch(y,x,ch) (move(y,x)?ERR:insch(ch)) argument 1036 #define mvinsstr(y,x,s) (move(y,x)?ERR:insstr(s)) argument [all …]
|
/illumos-gate/usr/src/lib/libxcurses2/h/ |
H A D | curses.h | 338 #define getyx(w, y, x) (y = (w)->_cury, x = (w)->_curx) argument 339 #define getbegyx(w, y, x) (y = (w)->_begy, x = (w)->_begx) argument 340 #define getmaxyx(w, y, x) (y = (w)->_maxy, x = (w)->_maxx) argument 341 #define getparyx(w, y, x) (y = __m_getpary(w), x = __m_getparx(w)) argument 734 #define mvaddch(y, x, ch) (move(y, x) ? ((ch), ERR) : addch(ch)) argument 861 #define mvdelch(y, x) (move(y, x) ? ERR : delch()) argument 882 #define mvgetch(y, x) (move(y, x) ? ERR : getch()) argument 964 #define mvinch(y, x) (move(y, x) ? ERR : inch()) argument 1038 #define mvinsch(y, x, ch) (move(y, x) ? (ch, ERR) : insch(ch)) argument 1050 #define mvinsstr(y, x, s) (move(y, x) ? (s, ERR) : insstr(s)) argument [all …]
|
/illumos-gate/usr/src/lib/libm/common/LD/ |
H A D | nextafterl.c | 40 #define X86PDNRM1(x) argument 61 #define X86PDNRM1(x) if (XBIASED_EXP(x) == 0 && (((int *) &x)[1] & \ argument 63 ((int *) &x)[2] |= 1 79 int *px = (int *) &x; in nextafterl() 82 if (x == y) in nextafterl() 84 if (x != x || y != y) in nextafterl() 85 return (x * y); in nextafterl() 92 X86PDNRM1(x); in nextafterl() 94 if (x > y) /* x > y */ in nextafterl() 99 if (x < y) /* x < y */ in nextafterl() [all …]
|
/illumos-gate/usr/src/lib/libm/common/Q/ |
H A D | nextafterl.c | 40 #define X86PDNRM1(x) argument 61 #define X86PDNRM1(x) if (XBIASED_EXP(x) == 0 && (((int *) &x)[1] & \ argument 63 ((int *) &x)[2] |= 1 79 int *px = (int *) &x; in nextafterl() 82 if (x == y) in nextafterl() 84 if (x != x || y != y) in nextafterl() 85 return (x * y); in nextafterl() 92 X86PDNRM1(x); in nextafterl() 94 if (x > y) /* x > y */ in nextafterl() 99 if (x < y) /* x < y */ in nextafterl() [all …]
|
/illumos-gate/usr/src/cmd/sendmail/libsm/ |
H A D | t-exc.c | 52 x = 0; 54 x = 1; local 62 x = 0; 64 x = 1; local 66 x = 2; local 74 x = 0; 77 x = 1; local 80 x = 2; local 101 x = 3; local 103 x = 4; local [all …]
|
/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 …]
|
/illumos-gate/usr/src/lib/libm/common/complex/ |
H A D | k_atan2l.c | 33 #define HALF(x) ((int *) &x)[3] = 0; ((int *) &x)[2] &= 0xfe000000 argument 35 #define HALF(x) ((int *) &x)[0] = 0 argument 589 z = x * x; in mx_atanl() 593 r = x + t; in mx_atanl() 597 z = x * x; in mx_atanl() 625 x = fabsl(x); in mx_atanl() 686 x = fabsl(x); in mx_atanl() 688 w = (x - y); in mx_atanl() 775 t = y / x; in __k_atan2l() 792 x = fabsl(x); in __k_atan2l() [all …]
|
/illumos-gate/usr/src/uts/common/net/ |
H A D | pppoe.h | 84 #define POET_GET_TYPE(x) (((x)[0]<<8) | (x)[1]) argument 85 #define POET_SET_TYPE(x, t) (void)((x)[0] = (t)>>8, (x)[1] = (t)&0xFF) argument 86 #define POET_GET_LENG(x) (((x)[2]<<8) | (x)[3]) argument 87 #define POET_SET_LENG(x, l) (void)((x)[2] = (l)>>8, (x)[3] = (l)&0xFF) argument 89 #define POET_DATA(x) ((x)+POET_HDRLEN) argument 90 #define POET_NEXT(x) (POET_DATA(x) + POET_GET_LENG(x)) argument
|