Home
last modified time | relevance | path

Searched refs:num (Results 1 – 25 of 1976) sorted by relevance

12345678910>>...80

/freebsd/contrib/xz/src/common/
H A Dtuklib_integer.h106 # define conv16be(num) BE_16(num) argument
109 # define conv32be(num) BE_32(num) argument
112 # define conv64be(num) BE_64(num) argument
115 # define conv16le(num) LE_16(num) argument
118 # define conv32le(num) LE_32(num) argument
121 # define conv64le(num) LE_64(num) argument
329 memcpy(&num, buf, sizeof(num)); in read16ne()
342 memcpy(&num, buf, sizeof(num)); in read32ne()
355 memcpy(&num, buf, sizeof(num)); in read64ne()
367 memcpy(buf, &num, sizeof(num)); in write16ne()
[all …]
/freebsd/sys/kern/
H A Dposix4_mib.c106 #define P31B_VALID(num) ((num) >= 1 && (num) < CTL_P1003_1B_MAXID) argument
111 int error, num, val; in p31b_sysctl_proc() local
113 num = arg2; in p31b_sysctl_proc()
114 if (!P31B_VALID(num)) in p31b_sysctl_proc()
116 val = facility_initialized[num - 1] ? facility[num - 1] : 0; in p31b_sysctl_proc()
129 if (P31B_VALID(num)) { in p31b_setcfg()
136 p31b_unsetcfg(int num) in p31b_unsetcfg() argument
144 p31b_getcfg(int num) in p31b_getcfg() argument
147 if (P31B_VALID(num)) in p31b_getcfg()
153 p31b_iscfg(int num) in p31b_iscfg() argument
[all …]
/freebsd/lib/libnetbsd/
H A Dstrsuftoll.c128 t = num; in __weak_alias()
130 if (t > num) in __weak_alias()
135 t = num; in __weak_alias()
137 if (t > num) in __weak_alias()
142 t = num; in __weak_alias()
144 if (t > num) in __weak_alias()
149 t = num; in __weak_alias()
151 if (t > num) in __weak_alias()
156 t = num; in __weak_alias()
163 t = num; in __weak_alias()
[all …]
/freebsd/crypto/openssl/crypto/bio/
H A Dbf_buff.c89 int i, num = 0; in buffer_read() local
98 num = 0; in buffer_read()
110 num += i; in buffer_read()
129 return ((num > 0) ? num : i); in buffer_read()
147 return ((num > 0) ? num : i); in buffer_read()
160 int i, num = 0; in buffer_write() local
196 return ((num > 0) ? num : i); in buffer_write()
218 return ((num > 0) ? num : i); in buffer_write()
222 num += i; in buffer_write()
399 ret = num; in buffer_ctrl()
[all …]
H A Dbss_dgram.c409 num = 0; in dgram_ctrl()
556 data->mtu = num; in dgram_ctrl()
557 ret = num; in dgram_ctrl()
572 if (num == 0 || num > ret) in dgram_ctrl()
573 num = ret; in dgram_ctrl()
940 bi->num = 0; in dgram_sctp_new()
1370 if (num > 0) in dgram_sctp_ctrl()
1504 ret = num; in dgram_sctp_ctrl()
1520 ret = num; in dgram_sctp_ctrl()
1535 ret = num; in dgram_sctp_ctrl()
[all …]
H A Dbss_bio.c234 return num; in bio_nread0()
250 if (num <= 0) in bio_nread()
251 return num; in bio_nread()
265 return num; in bio_nread()
304 rest = num; in bio_write()
335 return num; in bio_write()
348 size_t num; in bio_nwrite0() local
390 return num; in bio_nwrite0()
406 if (num <= 0) in bio_nwrite()
410 b->len += num; in bio_nwrite()
[all …]
/freebsd/crypto/openssl/providers/implementations/ciphers/
H A Dciphercommon_hw.c51 int num = dat->num; in ossl_cipher_hw_generic_ofb128() local
54 dat->num = num; in ossl_cipher_hw_generic_ofb128()
62 int num = dat->num; in ossl_cipher_hw_generic_cfb128() local
66 dat->num = num; in ossl_cipher_hw_generic_cfb128()
74 int num = dat->num; in ossl_cipher_hw_generic_cfb8() local
78 dat->num = num; in ossl_cipher_hw_generic_cfb8()
86 int num = dat->num; in ossl_cipher_hw_generic_cfb1() local
91 dat->num = num; in ossl_cipher_hw_generic_cfb1()
106 dat->num = num; in ossl_cipher_hw_generic_cfb1()
114 unsigned int num = dat->num; in ossl_cipher_hw_generic_ctr() local
[all …]
/freebsd/crypto/openssl/crypto/
H A Dparam_build.c40 } num; member
87 memcpy(&pd->num, num, size); in param_push_num()
124 return param_push_num(bld, key, &num, sizeof(num), OSSL_PARAM_INTEGER); in OSSL_PARAM_BLD_push_int()
130 return param_push_num(bld, key, &num, sizeof(num), in OSSL_PARAM_BLD_push_uint()
137 return param_push_num(bld, key, &num, sizeof(num), OSSL_PARAM_INTEGER); in OSSL_PARAM_BLD_push_long()
143 return param_push_num(bld, key, &num, sizeof(num), in OSSL_PARAM_BLD_push_ulong()
156 return param_push_num(bld, key, &num, sizeof(num), in OSSL_PARAM_BLD_push_uint32()
169 return param_push_num(bld, key, &num, sizeof(num), in OSSL_PARAM_BLD_push_uint64()
176 return param_push_num(bld, key, &num, sizeof(num), in OSSL_PARAM_BLD_push_size_t()
183 return param_push_num(bld, key, &num, sizeof(num), in OSSL_PARAM_BLD_push_time_t()
[all …]
H A Dmem.c183 if (num == 0) in CRYPTO_malloc()
196 return malloc(num); in CRYPTO_malloc()
203 ret = CRYPTO_malloc(num, file, line); in CRYPTO_zalloc()
205 memset(ret, 0, num); in CRYPTO_zalloc()
219 if (num == 0) { in CRYPTO_realloc()
225 return realloc(str, num); in CRYPTO_realloc()
236 if (num == 0) { in CRYPTO_clear_realloc()
242 if (num < old_len) { in CRYPTO_clear_realloc()
243 OPENSSL_cleanse((char*)str + num, old_len - num); in CRYPTO_clear_realloc()
270 if (num) in CRYPTO_clear_free()
[all …]
/freebsd/lib/libsecureboot/efi/
H A Defi_init.c38 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()
62 if (num > 0 && digests != NULL) { in ve_efi_init()
[all …]
/freebsd/crypto/openssl/crypto/des/
H A Dofb_enc.c31 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()
44 if (num == 32) in DES_ofb_encrypt()
69 if (num == 32) { in DES_ofb_encrypt()
72 } else if (num == 64) { in DES_ofb_encrypt()
76 v0 = ((v1 >> (num - 32)) | (vv0 << (64 - num))) & 0xffffffffL; in DES_ofb_encrypt()
77 v1 = ((vv0 >> (num - 32)) | (vv1 << (64 - num))) & 0xffffffffL; in DES_ofb_encrypt()
80 v0 = ((v0 >> num) | (v1 << (32 - num))) & 0xffffffffL; in DES_ofb_encrypt()
[all …]
/freebsd/crypto/openssl/crypto/asn1/
H A Devp_asn1.c36 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()
68 if (num != NULL) in asn1_type_get_int_oct()
69 *num = anum; in asn1_type_get_int_oct()
83 int32_t num; member
100 atmp.num = num;
124 ret = asn1_type_get_int_oct(atmp->oct, atmp->num, num, data, max_len); in ASN1_TYPE_get_int_octetstring()
136 int32_t num; member
156 atmp.num = num;
[all …]
/freebsd/crypto/openssl/crypto/stack/
H A Dstack.c25 int num; member
52 ret->num = 0; in OPENSSL_sk_dup()
91 ret->num = 0; in OPENSSL_sk_deep_copy()
106 ret->num_alloc = sk->num > min_nodes ? sk->num : min_nodes; in OPENSSL_sk_deep_copy()
281 st->num++; in OPENSSL_sk_insert()
283 return st->num; in OPENSSL_sk_insert()
290 if (loc != st->num - 1) in internal_delete()
293 st->num--; in internal_delete()
341 if (st->num > 1) in internal_find()
415 st->num = 0; in OPENSSL_sk_zero()
[all …]
/freebsd/sys/contrib/openzfs/lib/libzutil/
H A Dzutil_nicenum.c64 uint64_t n = num; in zfs_nicenum_format()
84 snprintf(buf, buflen, "%llu", (u_longlong_t)num); in zfs_nicenum_format()
86 } else if (format == ZFS_NICENUM_RAWTIME && num > 0) { in zfs_nicenum_format()
87 snprintf(buf, buflen, "%llu", (u_longlong_t)num); in zfs_nicenum_format()
102 if ((format == ZFS_NICENUM_TIME) && (num == 0)) { in zfs_nicenum_format()
104 } else if ((index == 0) || ((num % in zfs_nicenum_format()
124 val = (double)num / in zfs_nicenum_format()
153 zfs_nicenum(uint64_t num, char *buf, size_t buflen) in zfs_nicenum() argument
163 zfs_nicetime(uint64_t num, char *buf, size_t buflen) in zfs_nicetime() argument
172 zfs_niceraw(uint64_t num, char *buf, size_t buflen) in zfs_niceraw() argument
[all …]
/freebsd/tools/regression/poll/
H A Dsockpoll.c66 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()
181 report(num++, "after writing", POLLIN, pfd1.revents); in main()
189 report(num++, "after second shutdown", POLLHUP, pfd1.revents); in main()
[all …]
/freebsd/contrib/bearssl/test/
H A Dtest_speed.c41 long num; \
49 num = 10; \
86 long num; \
101 num = 10; \
135 long num; \
287 long num; in SPEED_HASH() local
295 num = 10; in SPEED_HASH()
384 long num; in test_speed_poly1305_inner() local
394 num = 10; in test_speed_poly1305_inner()
456 long num; in test_speed_eax_inner() local
[all …]
/freebsd/contrib/bc/scripts/
H A Dsqrt_random.bc60 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/test/
H A Drsa_mp_test.c203 BIGNUM *num = NULL; in key2048p3_v2() local
212 || !TEST_int_ne(sk_BIGNUM_push(primes, num), 0) in key2048p3_v2()
214 || !TEST_int_ne(sk_BIGNUM_push(primes, num), 0) in key2048p3_v2()
220 || !TEST_int_ne(sk_BIGNUM_push(exps, num), 0) in key2048p3_v2()
222 || !TEST_int_ne(sk_BIGNUM_push(exps, num), 0) in key2048p3_v2()
224 || !TEST_int_ne(sk_BIGNUM_push(exps, num), 0)) in key2048p3_v2()
228 || !TEST_int_ne(sk_BIGNUM_push(coeffs, num), 0) in key2048p3_v2()
259 int num; in test_rsa_mp() local
279 if (!TEST_int_eq(num, clen)) in test_rsa_mp()
282 num = RSA_private_decrypt(num, ctext, ptext, key, RSA_PKCS1_PADDING); in test_rsa_mp()
[all …]
/freebsd/crypto/openssl/crypto/bn/asm/
H A Ds390x-mont.pl72 $num="%r1";
99 lgf $num,`$stdframe+$SIZE_T-4`($sp) # pull $num
100 sla $num,`log($SIZE_T)/log(2)` # $num to enumerate bytes
110 tmll $num,4
121 lcgr $j,$num # -$num
127 sra $num,3 # restore $num
129 ahi $num,-1 # adjust $num for inner loop
151 lr $count,$num
203 lr $count,$num
244 ahi $num,1 # restore $num, incidentally clears "borrow"
[all …]
H A Dbn-586.pl272 $num="ebp";
302 &sub($num,8);
308 &and($num,7);
374 $num="ebx";
397 &sub($num,8);
402 &and($num,7);
447 $num="ebp";
482 &and($num,7);
519 $num="ebp";
554 &and($num,7);
[all …]
H A Dx86_64-mont.pl110 mov ${num}d,${num}d
143 neg $num
146 neg $num # restore $num
374 mov ${num}d,${num}d
398 neg $num
863 shl \$3,${num}d # convert $num to bytes
865 neg $num
885 lea 4096-64(,$num,2),%r10 # 4096-frame-2*$num
1060 shl \$3,${num}d # convert $num to bytes
1062 sub $num,%r10 # -$num
[all …]
/freebsd/contrib/llvm-project/llvm/include/llvm/IR/
H A DInstruction.def21 #define FIRST_TERM_INST(num)
27 #define HANDLE_TERM_INST(num, opcode, Class) HANDLE_INST(num, opcode, Class)
31 #define LAST_TERM_INST(num)
41 #define HANDLE_UNARY_INST(num, opcode, Class) HANDLE_INST(num, opcode, Class)
45 #define LAST_UNARY_INST(num)
55 #define HANDLE_BINARY_INST(num, opcode, Class) HANDLE_INST(num, opcode, Class)
69 #define HANDLE_MEMORY_INST(num, opcode, Class) HANDLE_INST(num, opcode, Class)
83 #define HANDLE_CAST_INST(num, opcode, Class) HANDLE_INST(num, opcode, Class)
97 #define HANDLE_FUNCLETPAD_INST(num, opcode, Class) HANDLE_INST(num, opcode, Class)
111 #define HANDLE_OTHER_INST(num, opcode, Class) HANDLE_INST(num, opcode, Class)
[all …]
/freebsd/tests/sys/cddl/zfs/tests/reservation/
H A Dreservation_008_pos.ksh87 typeset -i num=1
88 while (( $num < $RESV_NUM_FS )); do
89 log_must $ZFS set reservation=$resv_size_set $TESTPOOL/$TESTFS$num
90 (( num = num + 1 ))
100 num=0
101 log_note "Writing to $TESTDIR$num/$TESTFILE1"
103 $FILE_WRITE -o create -f $TESTDIR$num/$TESTFILE1 -b $BLOCK_SIZE \
112 num=1
113 log_must $ZFS set reservation=none $TESTPOOL/${TESTFS}$num
114 num=0
[all …]
/freebsd/stand/libsa/
H A Dprintf.c208 c = hex2ascii(num % base); in ksprintn()
210 } while (num /= base); in ksprintn()
262 uintmax_t num; in kvprintf() local
270 num = 0; in kvprintf()
347 if (num == 0) in kvprintf()
488 num = va_arg(ap, u_long); in kvprintf()
490 num = va_arg(ap, size_t); in kvprintf()
496 num = va_arg(ap, u_int); in kvprintf()
506 num = va_arg(ap, long); in kvprintf()
514 num = va_arg(ap, int); in kvprintf()
[all …]
/freebsd/libexec/rtld-elf/
H A Drtld_printf.c113 hex2ascii(num % base); in ksprintn()
115 } while (num /= base); in ksprintn()
129 uintmax_t num; in kvprintf() local
136 num = 0; in kvprintf()
208 if (num == 0) in kvprintf()
346 num = va_arg(ap, u_long); in kvprintf()
348 num = va_arg(ap, size_t); in kvprintf()
354 num = va_arg(ap, u_int); in kvprintf()
364 num = va_arg(ap, long); in kvprintf()
372 num = va_arg(ap, int); in kvprintf()
[all …]

12345678910>>...80