/freebsd/crypto/krb5/src/lib/crypto/builtin/aes/ |
H A D | aescrypt.c | 31 # define aes_xi(x) aes_ ## x argument 39 #define si(y,x,k,c) (s(y,c) = word_in(x, c) ^ (k)[c]) argument 40 #define so(y,x,c) word_out(y, c, s(x,c)) argument 43 #define locals(y,x) x[4],y[4] argument 48 #define l_copy(y, x) s(y,0) = s(x,0); s(y,1) = s(x,1); \ argument 50 #define state_in(y,x,k) si(y,x,k,0); si(y,x,k,1); si(y,x,k,2); si(y,x,k,3) argument 51 #define state_out(y,x) so(y,x,0); so(y,x,1); so(y,x,2); so(y,x,3) argument 52 #define round(rm,y,x,k) rm(y,x,k,0); rm(y,x,k,1); rm(y,x,k,2); rm(y,x,k,3) argument 76 #define fwd_var(x,r,c)\ argument 84 #define fwd_rnd(y,x,k,c) (s(y,c) = (k)[c] ^ four_tables(x,t_use(f,n),fwd_var,rf1,c)) argument [all …]
|
H A D | aesopt.h | 363 # define to_byte(x) ((x) & 0xff) argument 500 # define s(x,c) x[c] argument 502 # define s(x,c) x##c argument 572 # define brot(x,n) (((uint32_t)(x) << n) | ((uint32_t)(x) >> (32 - n))) argument 573 # define aes_sw32(x) ((brot((x),8) & 0x00ff00ff) | (brot((x),24) & 0xff00ff00)) argument 588 # define upr(x,n) (((uint32_t)(x) << (8 * (n))) | ((uint32_t)(x) >> (32 - 8 * (n)))) argument 589 # define ups(x,n) ((uint32_t) (x) << (8 * (n))) argument 590 # define bval(x,n) to_byte((x) >> (8 * (n))) argument 596 # define upr(x,n) (((uint32_t)(x) >> (8 * (n))) | ((uint32_t)(x) << (32 - 8 * (n)))) argument 597 # define ups(x,n) ((uint32_t) (x) >> (8 * (n))) argument [all …]
|
/freebsd/contrib/arm-optimized-routines/math/test/ |
H A D | ulp_wrappers.h | 17 static float sincosf_sinf(float x) {(void)cosf(x); return sinf(x);} in sincosf_sinf() 18 static float sincosf_cosf(float x) {(void)sinf(x); return cosf(x);} in sincosf_cosf() 19 static double sincos_sin(double x) {(void)cos(x); return sin(x);} in sincos_sin() 20 static double sincos_cos(double x) {(void)sin(x); return cos(x);} in sincos_cos() 22 static int sincos_mpfr_sin(mpfr_t y, const mpfr_t x, mpfr_rnd_t r) { mpfr_cos(y,x,r); return mpfr_s… in sincos_mpfr_sin() 23 static int sincos_mpfr_cos(mpfr_t y, const mpfr_t x, mpfr_rnd_t r) { mpfr_sin(y,x,r); return mpfr_c… in sincos_mpfr_cos() 24 static int modf_mpfr_frac(mpfr_t f, const mpfr_t x, mpfr_rnd_t r) { MPFR_DECL_INIT(i, 80); return m… in modf_mpfr_frac() 25 static int modf_mpfr_int(mpfr_t i, const mpfr_t x, mpfr_rnd_t r) { MPFR_DECL_INIT(f, 80); return mp… in modf_mpfr_int() 48 static int wrap_mpfr_powi(mpfr_t ret, const mpfr_t x, const mpfr_t y, mpfr_rnd_t rnd) { in wrap_mpfr_powi() 57 float modff_frac(float x) { float i; return modff(x, &i); } in modff_frac() [all …]
|
H A D | mathbench_wrappers.h | 10 atan2_wrap (double x) in atan2_wrap() 16 atan2f_wrap (float x) in atan2f_wrap() 22 powi_wrap (double x) in powi_wrap() 31 _Z_sincospif_wrap (float32x4_t x) in _Z_sincospif_wrap() 33 float s[4], c[4]; in _Z_sincospif_wrap() local 39 _Z_sincospi_wrap (float64x2_t x) in _Z_sincospi_wrap() 41 double s[2], c[2]; in _Z_sincospi_wrap() local 47 _Z_atan2_wrap (float64x2_t x) in _Z_atan2_wrap() 53 _Z_atan2f_wrap (float32x4_t x) in _Z_atan2f_wrap() 59 _Z_hypotf_wrap (float32x4_t x) in _Z_hypotf_wrap() [all …]
|
/freebsd/contrib/one-true-awk/ |
H A D | parse.c | 34 Node *x; in nodealloc() local 52 Node *x; in node1() local 60 Node *node2(int a, Node *b, Node *c) in node2() 62 Node *x; in node2() local 71 Node *node3(int a, Node *b, Node *c, Node *d) in node3() 73 Node *x; in node3() local 83 Node *node4(int a, Node *b, Node *c, Node *d, Node *e) in node4() 85 Node *x; in node4() local 96 Node *node5(int a, Node *b, Node *c, Node *d, Node *e, Node *f) in node5() 98 Node *x; in node5() local [all …]
|
/freebsd/crypto/openssl/crypto/sha/ |
H A D | sha512.c | 78 int sha512_224_init(SHA512_CTX *c) in sha512_224_init() 96 int sha512_256_init(SHA512_CTX *c) in sha512_256_init() 114 int SHA384_Init(SHA512_CTX *c) in SHA384_Init() 132 int SHA512_Init(SHA512_CTX *c) in SHA512_Init() 159 int SHA512_Final(unsigned char *md, SHA512_CTX *c) in SHA512_Final() 278 int SHA384_Final(unsigned char *md, SHA512_CTX *c) in SHA384_Final() 283 int SHA512_Update(SHA512_CTX *c, const void *_data, size_t len) in SHA512_Update() 331 int SHA384_Update(SHA512_CTX *c, const void *data, size_t len) in SHA384_Update() 336 void SHA512_Transform(SHA512_CTX *c, const unsigned char *data) in SHA512_Transform() 399 # define PULL64(x) ({ SHA_LONG64 ret=*((const SHA_LONG64 *)(&(x))); \ argument [all …]
|
H A D | sha256.c | 27 int SHA224_Init(SHA256_CTX *c) in SHA224_Init() 42 int SHA256_Init(SHA256_CTX *c) in SHA256_Init() 57 int ossl_sha256_192_init(SHA256_CTX *c) in ossl_sha256_192_init() 64 int SHA224_Update(SHA256_CTX *c, const void *data, size_t len) in SHA224_Update() 69 int SHA224_Final(unsigned char *md, SHA256_CTX *c) in SHA224_Final() 88 #define HASH_MAKE_STRING(c,s) do { \ argument 156 # define Sigma0(x) ({ MD32_REG_T ret; \ argument 160 # define Sigma1(x) ({ MD32_REG_T ret; \ argument 164 # define sigma0(x) ({ MD32_REG_T ret; \ argument 168 # define sigma1(x) ({ MD32_REG_T ret; \ argument [all …]
|
/freebsd/sys/contrib/openzfs/module/icp/asm-x86_64/aes/ |
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 559 #define upr(x, n) (((uint32_t)(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 569 #define word_in(x, c) bytes2word(((const uint8_t *)(x) + 4 * c)[0], \ argument 573 #define word_out(x, c, v) { ((uint8_t *)(x) + 4 * c)[0] = bval(v, 0); \ argument [all …]
|
/freebsd/sys/sys/ |
H A D | tslog.h | 42 #define TSENTER2(x) TSRAW(curthread, TS_ENTER, __func__, x) argument 44 #define TSEXIT2(x) TSRAW(curthread, TS_EXIT, __func__, x) argument 45 #define TSTHREAD(td, x) TSRAW(td, TS_THREAD, x, NULL) argument 46 #define TSEVENT(x) TSRAW(curthread, TS_EVENT, x, NULL) argument 47 #define TSEVENT2(x, y) TSRAW(curthread, TS_EVENT, x, y) argument 49 #define TSWAIT(x) TSEVENT2("WAIT", x); argument 50 #define TSUNWAIT(x) TSEVENT2("UNWAIT", x); argument 51 #define TSHOLD(x) TSEVENT2("HOLD", x); argument 52 #define TSRELEASE(x) TSEVENT2("RELEASE", x); argument 59 #define TSRAW(a, b, c, d) tslog(a, b, c, d) argument [all …]
|
/freebsd/crypto/openssl/include/internal/ |
H A D | common.h | 22 # define ossl_likely(x) __builtin_expect(!!(x), 1) argument 23 # define ossl_unlikely(x) __builtin_expect(!!(x), 0) argument 25 # define ossl_likely(x) (x) argument 26 # define ossl_unlikely(x) (x) argument 41 # define ossl_assert(x) ossl_likely((x) != 0) argument 52 # define ossl_assert(x) ossl_assert_int((x) != 0, "Assertion failed: "#x, \ argument 105 # define c2l(c,l) (l = ((unsigned long)(*((c)++))) , \ argument 111 # define c2ln(c,l1,l2,n) { \ argument 126 # define l2c(l,c) (*((c)++)=(unsigned char)(((l) )&0xff), \ argument 131 # define n2l(c,l) (l =((unsigned long)(*((c)++)))<<24, \ argument [all …]
|
/freebsd/sys/contrib/libsodium/src/libsodium/sodium/ |
H A D | codecs.c | 18 unsigned int x; in sodium_bin2hex() local 20 int c; in sodium_bin2hex() local 49 unsigned char c; in sodium_hex2bin() local 109 #define EQ(x, y) \ argument 111 #define GT(x, y) ((((unsigned int) (y) - (unsigned int) (x)) >> 8) & 0xFF) argument 112 #define GE(x, y) (GT(y, x) ^ 0xFF) argument 113 #define LT(x, y) GT(y, x) argument 114 #define LE(x, y) GE(y, x) argument 117 b64_byte_to_char(unsigned int x) in b64_byte_to_char() 126 b64_char_to_byte(int c) in b64_char_to_byte() [all …]
|
/freebsd/sbin/ipf/ipftest/ |
H A D | md5.c | 71 #define F(x, y, z) (((x) & (y)) | ((~x) & (z))) argument 72 #define G(x, y, z) (((x) & (z)) | ((y) & (~z))) argument 73 #define H(x, y, z) ((x) ^ (y) ^ (z)) argument 74 #define I(x, y, z) ((y) ^ ((x) | (~z))) argument 77 #define ROTATE_LEFT(x, n) (((x) << (n)) | ((x) >> (32-(n)))) argument 81 #define FF(a, b, c, d, x, s, ac) \ argument 86 #define GG(a, b, c, d, x, s, ac) \ argument 91 #define HH(a, b, c, d, x, s, ac) \ argument 96 #define II(a, b, c, d, x, s, ac) \ argument 102 #define UL(x) x##U argument [all …]
|
/freebsd/lib/libmd/ |
H A D | rmd_locl.h | 62 #define c2nl(c,l) (l =(((u_int32_t)(*((c)++)))<<24), \ argument 68 #define p_c2nl(c,l,n) { \ argument 79 #define c2nl_p(c,l,n) { \ argument 90 #define p_c2nl_p(c,l,sc,len) { \ argument 102 #define nl2c(l,c) (*((c)++)=(unsigned char)(((l)>>24)&0xff), \ argument 108 #define c2l(c,l) (l =(((u_int32_t)(*((c)++))) ), \ argument 114 #define p_c2l(c,l,n) { \ argument 125 #define c2l_p(c,l,n) { \ argument 136 #define p_c2l_p(c,l,sc,len) { \ argument 148 #define l2c(l,c) (*((c)++)=(unsigned char)(((l) )&0xff), \ argument [all …]
|
/freebsd/stand/libsa/ |
H A D | stand.h | 228 #define isascii(c) (((c) & ~0x7F) == 0) argument 230 static __inline int isupper(int c) in isupper() 235 static __inline int islower(int c) in islower() 240 static __inline int isspace(int c) in isspace() 245 static __inline int isdigit(int c) in isdigit() 250 static __inline int isxdigit(int c) in isxdigit() 255 static __inline int isalpha(int c) in isalpha() 260 static __inline int isalnum(int c) in isalnum() 265 static __inline int iscntrl(int c) in iscntrl() 270 static __inline int isgraph(int c) in isgraph() [all …]
|
/freebsd/crypto/krb5/src/lib/crypto/builtin/md4/ |
H A D | md4.c | 55 #define F(x, y, z) (((x) & (y)) | ((~x) & (z))) argument 56 #define G(x, y, z) (((x) & (y)) | ((x) & (z)) | ((y) & (z))) argument 57 #define H(x, y, z) ((x) ^ (y) ^ (z)) argument 60 #define ROTATE_LEFT(x, n) ((((x) << (n)) & 0xffffffff) | ((x) >> (32-(n)))) argument 64 #define FF(a, b, c, d, x, s) \ argument 68 #define GG(a, b, c, d, x, s) \ argument 72 #define HH(a, b, c, d, x, s) \ argument 156 krb5_ui_4 a = buf[0], b = buf[1], c = buf[2], d = buf[3]; in Transform() local
|
/freebsd/sys/contrib/openzfs/module/zfs/ |
H A D | vdev_raidz_math_impl.h | 50 const unsigned x = tgtidx[TARGET_X]; in raidz_rec_q_coeff() local 59 const unsigned x = tgtidx[TARGET_X]; in raidz_rec_r_coeff() local 68 const unsigned x = tgtidx[TARGET_X]; in raidz_rec_pq_coeff() local 84 const unsigned x = tgtidx[TARGET_X]; in raidz_rec_pr_coeff() local 101 const unsigned x = tgtidx[TARGET_X]; in raidz_rec_qr_coeff() local 122 const unsigned x = tgtidx[TARGET_X]; in raidz_rec_pqr_coeff() local 362 size_t c; in raidz_generate_p_impl() local 402 raidz_gen_pq_add(void **c, const void *dc, const size_t csize, in raidz_gen_pq_add() 435 size_t c; in raidz_generate_pq_impl() local 477 raidz_gen_pqr_add(void **c, const void *dc, const size_t csize, in raidz_gen_pqr_add() [all …]
|
/freebsd/sys/kern/ |
H A D | md5c.c | 94 #define F(x, y, z) (((x) & (y)) | ((~x) & (z))) argument 95 #define G(x, y, z) (((x) & (z)) | ((y) & (~z))) argument 96 #define H(x, y, z) ((x) ^ (y) ^ (z)) argument 97 #define I(x, y, z) ((y) ^ ((x) | (~z))) argument 100 #define ROTATE_LEFT(x, n) (((x) << (n)) | ((x) >> (32-(n)))) argument 106 #define FF(a, b, c, d, x, s, ac) { \ argument 111 #define GG(a, b, c, d, x, s, ac) { \ argument 116 #define HH(a, b, c, d, x, s, ac) { \ argument 121 #define II(a, b, c, d, x, s, ac) { \ argument 229 uint32_t a = state[0], b = state[1], c = state[2], d = state[3], x[16]; in MD5Transform() local
|
H A D | md4c.c | 71 #define F(x, y, z) (((x) & (y)) | ((~x) & (z))) argument 72 #define G(x, y, z) (((x) & (y)) | ((x) & (z)) | ((y) & (z))) argument 73 #define H(x, y, z) ((x) ^ (y) ^ (z)) argument 77 #define ROTATE_LEFT(x, n) (((x) << (n)) | ((x) >> (32-(n)))) argument 81 #define FF(a, b, c, d, x, s) { \ argument 85 #define GG(a, b, c, d, x, s) { \ argument 89 #define HH(a, b, c, d, x, s) { \ argument 188 UINT4 a = state[0], b = state[1], c = state[2], d = state[3], x[16]; in MD4Transform() local
|
/freebsd/sys/dev/sound/pcm/ |
H A D | vchan.h | 44 #define vchan_sync(c) vchan_passthrough(c, __func__) argument 49 #define VCHAN_SYNC_REQUIRED(c) \ argument 68 #define VCHAN_SYSCTL_DATA(x, y) \ argument 73 #define VCHAN_SYSCTL_UNIT(x) ((int)(((intptr_t)(x) >> 2) & 0xfff) - 1) argument 74 #define VCHAN_SYSCTL_DIR(x) ((int)((intptr_t)(x) & 0x3) - 1) argument
|
/freebsd/crypto/openssl/crypto/ripemd/ |
H A D | rmd_local.h | 35 #define HASH_MAKE_STRING(c,s) do { \ argument 50 #define F1(x,y,z) ((x) ^ (y) ^ (z)) argument 51 #define F2(x,y,z) ((((y) ^ (z)) & (x)) ^ (z)) argument 52 #define F3(x,y,z) (((~(y)) | (x)) ^ (z)) argument 53 #define F4(x,y,z) ((((x) ^ (y)) & (z)) ^ (y)) argument 54 #define F5(x,y,z) (((~(z)) | (y)) ^ (x)) argument 64 #define RIP1(a,b,c,d,e,w,s) { \ argument 69 #define RIP2(a,b,c,d,e,w,s,K) { \ argument 74 #define RIP3(a,b,c,d,e,w,s,K) { \ argument 79 #define RIP4(a,b,c,d,e,w,s,K) { \ argument [all …]
|
/freebsd/crypto/krb5/src/lib/crypto/builtin/md5/ |
H A D | md5.c | 68 #define F(x, y, z) (((x) & (y)) | ((~x) & (z))) argument 69 #define G(x, y, z) (((x) & (z)) | ((y) & (~z))) argument 70 #define H(x, y, z) ((x) ^ (y) ^ (z)) argument 71 #define I(x, y, z) ((y) ^ ((x) | (~z))) argument 74 #define ROTATE_LEFT(x, n) ((((x) << (n)) & 0xffffffff) | ((x) >> (32-(n)))) argument 78 #define FF(a, b, c, d, x, s, ac) \ argument 85 #define GG(a, b, c, d, x, s, ac) \ argument 92 #define HH(a, b, c, d, x, s, ac) \ argument 99 #define II(a, b, c, d, x, s, ac) \ argument 194 krb5_ui_4 a = buf[0], b = buf[1], c = buf[2], d = buf[3]; in Transform() local
|
/freebsd/crypto/openssl/include/crypto/ |
H A D | md32_common.h | 108 # define ROTATE(x, n) ({ MD32_REG_T ret; \ argument 115 # define ROTATE(x, n) ({ MD32_REG_T ret; \ argument 126 # define HOST_c2l(c,l) (l =(((unsigned long)(*((c)++)))<<24), \ argument 130 # define HOST_l2c(l,c) (*((c)++)=(unsigned char)(((l)>>24)&0xff), \ argument 138 # define HOST_c2l(c,l) (l =(((unsigned long)(*((c)++))) ), \ argument 142 # define HOST_l2c(l,c) (*((c)++)=(unsigned char)(((l) )&0xff), \ argument 154 int HASH_UPDATE(HASH_CTX *c, const void *data_, size_t len) in HASH_UPDATE() 212 void HASH_TRANSFORM(HASH_CTX *c, const unsigned char *data) in HASH_TRANSFORM() 217 int HASH_FINAL(unsigned char *md, HASH_CTX *c) in HASH_FINAL()
|
/freebsd/sys/contrib/zlib/ |
H A D | zutil.h | 225 # define Trace(x) {if (z_verbose>=0) fprintf x ;} argument 226 # define Tracev(x) {if (z_verbose>0) fprintf x ;} argument 227 # define Tracevv(x) {if (z_verbose>1) fprintf x ;} argument 228 # define Tracec(c,x) {if (z_verbose>0 && (c)) fprintf x ;} argument 229 # define Tracecv(c,x) {if (z_verbose>1 && (c)) fprintf x ;} argument 232 # define Trace(x) argument 233 # define Tracev(x) argument 234 # define Tracevv(x) argument 235 # define Tracec(c,x) argument 236 # define Tracecv(c,x) argument
|
/freebsd/sys/fs/ext2fs/ |
H A D | ext2_hash.c | 78 #define F(x, y, z) (((x) & (y)) | ((~x) & (z))) argument 79 #define G(x, y, z) (((x) & (y)) | ((x) & (z)) | ((y) & (z))) argument 80 #define H(x, y, z) ((x) ^ (y) ^ (z)) argument 83 #define ROTATE_LEFT(x, n) (((x) << (n)) | ((x) >> (32 - (n)))) argument 89 #define FF(a, b, c, d, x, s) { \ argument 94 #define GG(a, b, c, d, x, s) { \ argument 99 #define HH(a, b, c, d, x, s) { \ argument 118 uint32_t a = hash[0], b = hash[1], c = hash[2], d = hash[3]; in ext2_half_md4() local 164 uint32_t x = hash[0], y = hash[1]; in ext2_tea() local
|
/freebsd/crypto/openssh/openbsd-compat/ |
H A D | sha2.c | 45 #define MAKE_CLONE(x, y) void __ssh_compat_make_clone_##x_##y(void) argument 162 #define R(b,x) ((x) >> (b)) argument 164 #define S32(b,x) (((x) >> (b)) | ((x) << (32 - (b)))) argument 166 #define S64(b,x) (((x) >> (b)) | ((x) << (64 - (b)))) argument 169 #define Ch(x,y,z) (((x) & (y)) ^ ((~(x)) & (z))) argument 170 #define Maj(x,y,z) (((x) & (y)) ^ ((x) & (z)) ^ ((y) & (z))) argument 173 #define Sigma0_256(x) (S32(2, (x)) ^ S32(13, (x)) ^ S32(22, (x))) argument 174 #define Sigma1_256(x) (S32(6, (x)) ^ S32(11, (x)) ^ S32(25, (x))) argument 175 #define sigma0_256(x) (S32(7, (x)) ^ S32(18, (x)) ^ R(3 , (x))) argument 176 #define sigma1_256(x) (S32(17, (x)) ^ S32(19, (x)) ^ R(10, (x))) argument [all …]
|