| /freebsd/contrib/xz/src/common/ |
| H A D | tuklib_integer.h | 69 # define byteswap16(num) __builtin_bswap16(num) argument 70 # define byteswap32(num) __builtin_bswap32(num) argument 71 # define byteswap64(num) __builtin_bswap64(num) argument 77 # define byteswap16(num) bswap_16(num) argument 80 # define byteswap32(num) bswap_32(num) argument 83 # define byteswap64(num) bswap_64(num) argument 90 # define byteswap16(num) swap16(num) argument 91 # define byteswap32(num) swap32(num) argument 92 # define byteswap64(num) swap64(num) argument 94 # define byteswap16(num) bswap16(num) argument [all …]
|
| /freebsd/sys/kern/ |
| H A D | posix4_mib.c | 58 #define P1B_SYSCTL(num, name) \ argument 59 SYSCTL_INT(_p1003_1b, num, name, CTLFLAG_RD | CTLFLAG_CAPRD, \ 60 facility + num - 1, 0, ""); 61 #define P1B_SYSCTL_RW(num, name) \ argument 62 SYSCTL_PROC(_p1003_1b, num, name, \ 63 CTLTYPE_INT | CTLFLAG_RW | CTLFLAG_NEEDGIANT, NULL, num, \ 70 #define P1B_SYSCTL(num, name) \ argument 72 facility + num - 1, 0, ""); 73 #define P1B_SYSCTL_RW(num, name) \ argument 75 num, p31b_sysctl_proc, "I", ""); [all …]
|
| /freebsd/lib/libnetbsd/ |
| H A D | strsuftoll.c | 110 long long num, t; in __weak_alias() local 119 num = strtoll(val, &expr, 10); in __weak_alias() 128 t = num; in __weak_alias() 129 num *= 512; /* 1 block */ in __weak_alias() 130 if (t > num) in __weak_alias() 135 t = num; in __weak_alias() 136 num *= 1024; /* 1 kilobyte */ in __weak_alias() 137 if (t > num) in __weak_alias() 142 t = num; in __weak_alias() 143 num *= 1048576; /* 1 megabyte */ in __weak_alias() [all …]
|
| /freebsd/crypto/openssl/crypto/bio/ |
| H A D | bf_buff.c | 15 static int buffer_write(BIO *h, const char *buf, int num); 89 int i, num = 0; in buffer_read() local 98 num = 0; in buffer_read() 110 num += i; in buffer_read() 112 return num; in buffer_read() 129 return ((num > 0) ? num : i); in buffer_read() 131 return num; in buffer_read() 133 num += i; in buffer_read() 135 return num; in buffer_read() 147 return ((num > 0) ? num : i); in buffer_read() [all …]
|
| H A D | bss_bio.c | 31 static int bio_write(BIO *bio, const char *buf, int num); 32 static long bio_ctrl(BIO *bio, int cmd, long num, void *ptr); 202 ossl_ssize_t num; in bio_nread0() local 225 num = peer_b->len; in bio_nread0() 226 if (peer_b->size < peer_b->offset + num) in bio_nread0() 228 num = peer_b->size - peer_b->offset; in bio_nread0() 229 assert(num > 0); in bio_nread0() 233 return num; in bio_nread0() 239 ossl_ssize_t num, available; in bio_nread() local 242 num = OSSL_SSIZE_MAX; in bio_nread() [all …]
|
| /freebsd/crypto/openssl/providers/implementations/ciphers/ |
| H A D | ciphercommon_hw.c | 50 int num = dat->num; in ossl_cipher_hw_generic_ofb128() local 52 CRYPTO_ofb128_encrypt(in, out, len, dat->ks, dat->iv, &num, dat->block); in ossl_cipher_hw_generic_ofb128() 53 dat->num = num; in ossl_cipher_hw_generic_ofb128() 61 int num = dat->num; in ossl_cipher_hw_generic_cfb128() local 63 CRYPTO_cfb128_encrypt(in, out, len, dat->ks, dat->iv, &num, dat->enc, in ossl_cipher_hw_generic_cfb128() 65 dat->num = num; in ossl_cipher_hw_generic_cfb128() 73 int num = dat->num; in ossl_cipher_hw_generic_cfb8() local 75 CRYPTO_cfb128_8_encrypt(in, out, len, dat->ks, dat->iv, &num, dat->enc, in ossl_cipher_hw_generic_cfb8() 77 dat->num = num; in ossl_cipher_hw_generic_cfb8() 85 int num = dat->num; in ossl_cipher_hw_generic_cfb1() local [all …]
|
| /freebsd/crypto/openssl/crypto/des/ |
| H A D | ofb_enc.c | 31 register int num = numbits; in DES_ofb_encrypt() local 35 if (num > 64) in DES_ofb_encrypt() 37 if (num > 32) { in DES_ofb_encrypt() 39 if (num >= 64) in DES_ofb_encrypt() 42 mask1 = (1L << (num - 32)) - 1; in DES_ofb_encrypt() 44 if (num == 32) in DES_ofb_encrypt() 47 mask0 = (1L << num) - 1; in DES_ofb_encrypt() 69 if (num == 32) { in DES_ofb_encrypt() 72 } else if (num == 64) { in DES_ofb_encrypt() 75 } else if (num > 32) { /* && num != 64 */ in DES_ofb_encrypt() [all …]
|
| /freebsd/lib/libsecureboot/efi/ |
| H A D | efi_init.c | 38 size_t num; in ve_efi_init() local 51 xcs = efi_get_trusted_certs(&num); in ve_efi_init() 52 if (num > 0 && xcs != NULL) { in ve_efi_init() 53 num = ve_trust_anchors_add(xcs, num); in ve_efi_init() 54 free_certificates(xcs, num); in ve_efi_init() 56 xcs = efi_get_forbidden_certs(&num); in ve_efi_init() 57 if (num > 0 && xcs != NULL) { in ve_efi_init() 58 num = ve_forbidden_anchors_add(xcs, num); in ve_efi_init() 59 free_certificates(xcs, num); in ve_efi_init() 61 digests = efi_get_forbidden_digests(&num); in ve_efi_init() [all …]
|
| /freebsd/crypto/openssl/crypto/asn1/ |
| H A D | evp_asn1.c | 36 int ret, num; in ASN1_TYPE_get_octetstring() local 46 num = ret; in ASN1_TYPE_get_octetstring() 48 num = max_len; in ASN1_TYPE_get_octetstring() 49 if (num > 0 && data != NULL) in ASN1_TYPE_get_octetstring() 50 memcpy(data, p, num); in ASN1_TYPE_get_octetstring() 70 long *num, unsigned char *data, int max_len) in asn1_type_get_int_oct() argument 74 if (num != NULL) in asn1_type_get_int_oct() 75 *num = anum; in asn1_type_get_int_oct() 89 int32_t num; member 94 ASN1_EMBED(asn1_int_oct, num, INT32), [all …]
|
| /freebsd/crypto/openssl/crypto/stack/ |
| H A D | stack.c | 29 int num; member 56 ret->num = 0; in OPENSSL_sk_dup() 64 if (sk == NULL || sk->num == 0) { in OPENSSL_sk_dup() 75 memcpy(ret->data, sk->data, sizeof(void *) * sk->num); in OPENSSL_sk_dup() 94 ret->num = 0; in OPENSSL_sk_deep_copy() 102 if (sk == NULL || sk->num == 0) { in OPENSSL_sk_deep_copy() 109 ret->num_alloc = sk->num > min_nodes ? sk->num : min_nodes; in OPENSSL_sk_deep_copy() 114 for (i = 0; i < ret->num; ++i) { in OPENSSL_sk_deep_copy() 184 if (n > max_nodes - st->num) { in sk_reserve() 190 num_alloc = st->num + n; in sk_reserve() [all …]
|
| /freebsd/crypto/openssl/crypto/ |
| H A D | param_build.c | 40 } num; member 75 void *num, size_t size, int type) in param_push_num() argument 83 if (size > sizeof(pd->num)) { in param_push_num() 87 memcpy(&pd->num, num, size); in param_push_num() 122 int OSSL_PARAM_BLD_push_int(OSSL_PARAM_BLD *bld, const char *key, int num) in OSSL_PARAM_BLD_push_int() argument 129 return param_push_num(bld, key, &num, sizeof(num), OSSL_PARAM_INTEGER); in OSSL_PARAM_BLD_push_int() 133 unsigned int num) in OSSL_PARAM_BLD_push_uint() argument 140 return param_push_num(bld, key, &num, sizeof(num), in OSSL_PARAM_BLD_push_uint() 145 long int num) in OSSL_PARAM_BLD_push_long() argument 152 return param_push_num(bld, key, &num, sizeof(num), OSSL_PARAM_INTEGER); in OSSL_PARAM_BLD_push_long() [all …]
|
| H A D | mem.c | 188 void *CRYPTO_malloc(size_t num, const char *file, int line) in CRYPTO_malloc() argument 194 ptr = malloc_impl(num, file, line); in CRYPTO_malloc() 195 if (ptr != NULL || num == 0) in CRYPTO_malloc() 200 if (num == 0) in CRYPTO_malloc() 213 ptr = malloc(num); in CRYPTO_malloc() 229 void *CRYPTO_zalloc(size_t num, const char *file, int line) in CRYPTO_zalloc() argument 233 ret = CRYPTO_malloc(num, file, line); in CRYPTO_zalloc() 235 memset(ret, 0, num); in CRYPTO_zalloc() 240 void *CRYPTO_aligned_alloc(size_t num, size_t alignment, void **freeptr, in CRYPTO_aligned_alloc() argument 255 if (posix_memalign(&ret, alignment, num)) in CRYPTO_aligned_alloc() [all …]
|
| /freebsd/sys/contrib/openzfs/lib/libzutil/ |
| H A D | zutil_nicenum.c | 62 zfs_nicenum_format(uint64_t num, char *buf, size_t buflen, in zfs_nicenum_format() argument 65 uint64_t n = num; in zfs_nicenum_format() 85 snprintf(buf, buflen, "%llu", (u_longlong_t)num); in zfs_nicenum_format() 87 } else if (format == ZFS_NICENUM_RAWTIME && num > 0) { in zfs_nicenum_format() 88 snprintf(buf, buflen, "%llu", (u_longlong_t)num); in zfs_nicenum_format() 90 } else if (format == ZFS_NICENUM_RAWTIME && num == 0) { in zfs_nicenum_format() 103 if ((format == ZFS_NICENUM_TIME) && (num == 0)) { in zfs_nicenum_format() 105 } else if ((index == 0) || ((num % in zfs_nicenum_format() 125 val = (double)num / in zfs_nicenum_format() 154 zfs_nicenum(uint64_t num, char *buf, size_t buflen) in zfs_nicenum() argument [all …]
|
| /freebsd/tools/regression/poll/ |
| H A D | sockpoll.c | 66 report(int num, const char *state, int expected, int got) in report() argument 74 printf("ok %-2d ", num); in report() 76 printf("not ok %-2d", num); in report() 119 int num; in main() local 121 num = 1; in main() 129 report(num++, "initial 0", POLLOUT, pfd0.revents); in main() 132 report(num++, "initial 1", POLLOUT, pfd1.revents); in main() 137 report(num++, "after large write", 0, pfd0.revents); in main() 140 report(num++, "other side after large write", POLLIN | POLLOUT, pfd1.revents); in main() 144 report(num++, "other side after close", POLLIN | POLLHUP, pfd1.revents); in main() [all …]
|
| /freebsd/contrib/bearssl/test/ |
| H A D | test_speed.c | 41 long num; \ 49 num = 10; \ 57 for (k = num; k > 0; k --) { \ 65 ((double)sizeof buf) * (double)num \ 70 num <<= 1; \ 86 long num; \ 101 num = 10; \ 109 for (k = num; k > 0; k --) { \ 116 ((double)sizeof buf) * (double)num \ 121 num <<= 1; \ [all …]
|
| /freebsd/contrib/llvm-project/libc/src/__support/OSUtil/linux/i386/ |
| H A D | syscall.h | 17 LIBC_INLINE long syscall_impl(long num) { in syscall_impl() argument 19 LIBC_INLINE_ASM("int $128" : "=a"(ret) : "a"(num) : "memory"); in syscall_impl() 23 LIBC_INLINE long syscall_impl(long num, long arg1) { in syscall_impl() argument 25 LIBC_INLINE_ASM("int $128" : "=a"(ret) : "a"(num), "b"(arg1) : "memory"); in syscall_impl() 29 LIBC_INLINE long syscall_impl(long num, long arg1, long arg2) { in syscall_impl() argument 33 : "a"(num), "b"(arg1), "c"(arg2) in syscall_impl() 38 LIBC_INLINE long syscall_impl(long num, long arg1, long arg2, long arg3) { in syscall_impl() argument 42 : "a"(num), "b"(arg1), "c"(arg2), "d"(arg3) in syscall_impl() 47 LIBC_INLINE long syscall_impl(long num, long arg1, long arg2, long arg3, in syscall_impl() argument 52 : "a"(num), "b"(arg1), "c"(arg2), "d"(arg3), "S"(arg4) in syscall_impl() [all …]
|
| /freebsd/crypto/openssl/crypto/bn/asm/ |
| H A D | s390x-mont.pl | 72 $num="%r1"; 99 lgf $num,`$stdframe+$SIZE_T-4`($sp) # pull $num 100 sla $num,`log($SIZE_T)/log(2)` # $num to enumerate bytes 101 la $bp,0($num,$bp) 105 cghi $num,16 # 107 blr %r14 # if($num<16) return 0; 110 tmll $num,4 111 bnzr %r14 # if ($num&1) return 0; 114 cghi $num,96 # 115 bhr %r14 # if($num>96) return 0; [all …]
|
| H A D | bn-586.pl | 272 $num="ebp"; 277 &mov($num,&wparam(2)); # 280 &and($num,0xfffffff8); # num / 8 302 &sub($num,8); 307 &mov($num,&wparam(2)); # get num 308 &and($num,7); 323 &dec($num) if ($i != 7-1); 374 $num="ebx"; 378 &mov($num,&wparam(2)); # 380 &and($num,0xfffffff8); # num / 8 [all …]
|
| H A D | x86_64-mont.pl | 91 $num="%r9"; # int num); 110 mov ${num}d,${num}d 113 test \$3,${num}d 115 cmp \$8,${num}d 124 test \$7,${num}d 143 neg $num 145 lea -16(%rsp,$num,8),%r10 # future alloca(8*(num+2)) 146 neg $num # restore $num 173 mov %rax,8(%rsp,$num,8) # tp[num+1]=%rsp 174 .cfi_cfa_expression %rsp+8,$num,8,mul,plus,deref,+8 [all …]
|
| H A D | armv4-mont.pl | 74 $num="r0"; # starts as num argument, but holds &tp[num-1] 92 $_rp="$num,#12*4"; 94 $_bp="$num,#13*4"; 96 $_n0="$num,#14*4"; 97 $_num="$num,#15*4"; $_bpend=$_num; 149 mov $num,ip @ load num 159 mov $num,$num,lsl#2 @ rescale $num for byte count 160 sub sp,sp,$num @ alloca(4*num) 162 sub $num,$num,#4 @ "num=num-1" 163 add $tp,$bp,$num @ &bp[num-1] [all …]
|
| /freebsd/contrib/bc/scripts/ |
| H A D | sqrt_random.bc | 60 num = irand(limit) + 1 68 num *= num 84 scale = length(num) + 5 85 num = 1/num 88 num >>= extra 92 num <<= extra 98 l = length(num) 104 num += frand(irand(32) + 1) 111 num >>= l 127 print "sqrt(", num, ")\n"
|
| /freebsd/crypto/openssl/crypto/sha/ |
| H A D | sha_riscv.c | 18 size_t num); 19 void sha256_block_data_order_c(void *ctx, const void *in, size_t num); 20 void sha256_block_data_order(SHA256_CTX *ctx, const void *in, size_t num); 22 void sha256_block_data_order(SHA256_CTX *ctx, const void *in, size_t num) in sha256_block_data_order() argument 25 sha256_block_data_order_zvkb_zvknha_or_zvknhb(ctx, in, num); in sha256_block_data_order() 27 sha256_block_data_order_c(ctx, in, num); in sha256_block_data_order() 31 void sha512_block_data_order_zvkb_zvknhb(void *ctx, const void *in, size_t num); 32 void sha512_block_data_order_c(void *ctx, const void *in, size_t num); 33 void sha512_block_data_order(SHA512_CTX *ctx, const void *in, size_t num); 35 void sha512_block_data_order(SHA512_CTX *ctx, const void *in, size_t num) in sha512_block_data_order() argument [all …]
|
| /freebsd/contrib/llvm-project/llvm/include/llvm/IR/ |
| H A D | Instruction.def | 21 #define FIRST_TERM_INST(num) 25 #define HANDLE_TERM_INST(num, opcode, Class) 27 #define HANDLE_TERM_INST(num, opcode, Class) HANDLE_INST(num, opcode, Class) 31 #define LAST_TERM_INST(num) 35 #define FIRST_UNARY_INST(num) 39 #define HANDLE_UNARY_INST(num, opcode, instclass) 41 #define HANDLE_UNARY_INST(num, opcode, Class) HANDLE_INST(num, opcode, Class) 45 #define LAST_UNARY_INST(num) 49 #define FIRST_BINARY_INST(num) 53 #define HANDLE_BINARY_INST(num, opcode, instclass) [all …]
|
| /freebsd/crypto/openssl/test/ |
| H A D | rsa_mp_test.c | 195 BIGNUM *num = NULL; in key2048p3_v2() local 203 if (!TEST_ptr(num = BN_bin2bn(p, sizeof(p) - 1, NULL)) in key2048p3_v2() 204 || !TEST_int_ne(sk_BIGNUM_push(primes, num), 0) in key2048p3_v2() 205 || !TEST_ptr(num = BN_bin2bn(q, sizeof(q) - 1, NULL)) in key2048p3_v2() 206 || !TEST_int_ne(sk_BIGNUM_push(primes, num), 0) in key2048p3_v2() 207 || !TEST_ptr(num = BN_bin2bn(ex_prime, sizeof(ex_prime) - 1, NULL)) in key2048p3_v2() 208 || !TEST_int_ne(sk_BIGNUM_push(primes, num), 0)) in key2048p3_v2() 211 if (!TEST_ptr(num = BN_bin2bn(dmp1, sizeof(dmp1) - 1, NULL)) in key2048p3_v2() 212 || !TEST_int_ne(sk_BIGNUM_push(exps, num), 0) in key2048p3_v2() 213 || !TEST_ptr(num = BN_bin2bn(dmq1, sizeof(dmq1) - 1, NULL)) in key2048p3_v2() [all …]
|
| /freebsd/libexec/rtld-elf/ |
| H A D | rtld_printf.c | 105 ksprintn(char *nbuf, uintmax_t num, int base, int *lenp, int upper) in ksprintn() argument 112 c = upper ? hex2ascii_upper(num % base) : in ksprintn() 113 hex2ascii(num % base); in ksprintn() 115 } while (num /= base); in ksprintn() 129 uintmax_t num; in kvprintf() local 136 num = 0; in kvprintf() 203 num = (u_int)va_arg(ap, int); in kvprintf() 205 for (q = ksprintn(nbuf, num, *p++, NULL, 0); *q;) in kvprintf() 208 if (num == 0) in kvprintf() 213 if (num & (1 << (n - 1))) { in kvprintf() [all …]
|