/freebsd/lib/libc/tests/locale/ |
H A D | towctrans_test.c | 46 int i, j; in ATF_TC_BODY() local 59 for (j = 0; j < 256; j++) in ATF_TC_BODY() 60 ATF_REQUIRE(tran[i].func(j) == towctrans(j, t)); in ATF_TC_BODY() 72 for (j = 0; j < 65536; j++) in ATF_TC_BODY() 73 ATF_REQUIRE(tran[i].func(j) == towctrans(j, t)); in ATF_TC_BODY()
|
H A D | iswctype_test.c | 58 static int i, j; variable 85 for (j = 0; j < 256; j++) in ATF_TC_BODY() 86 ATF_REQUIRE(cls[i].func(j) == iswctype(j, t)); in ATF_TC_BODY() 103 for (j = 0; j < 65536; j++) in ATF_TC_BODY() 104 ATF_REQUIRE(cls[i].func(j) == iswctype(j, t)); in ATF_TC_BODY()
|
/freebsd/contrib/ncurses/ncurses/tinfo/ |
H A D | obsolete.c | 89 register size_t j; in _nc_memmove() local 94 for (j = 0; j < n; j++) in _nc_memmove() 95 bfr[j] = SRC[j]; in _nc_memmove() 185 int j; in _nc_conv_to_utf32() local 219 for (j = 1; j < rc; j++) { in _nc_conv_to_utf32() 220 if ((source[j] & 0xc0) != 0x80) in _nc_conv_to_utf32() 223 if (j != rc) { in _nc_conv_to_utf32() 231 for (j = 1; j < rc; j++) { in _nc_conv_to_utf32() 232 *target |= (unsigned) (source[rc - j] & 0x3f) << shift; in _nc_conv_to_utf32()
|
/freebsd/contrib/libdivsufsort/lib/ |
H A D | utils.c | 79 c = T[j]; in bw_transform() 80 U[j] = (j <= p) ? T[p] : (sauchar_t)A[p]; in bw_transform() 82 j++; in bw_transform() 89 c = T[j]; in bw_transform() 90 U[j] = (j <= p) ? T[p] : (sauchar_t)A[p]; in bw_transform() 91 A[j] = c; in bw_transform() 249 saidx_t i, j; in _compare() local 252 (i < Tsize) && (j < Psize) && ((r = T[i] - P[j]) == 0); ++i, ++j) { } in _compare() 253 *match = j; in _compare() 323 if(idx != NULL) { *idx = (0 < (k - j)) ? j : i; } in sa_search() [all …]
|
/freebsd/contrib/wpa/hostapd/ |
H A D | sae_pk_gen.c | 26 int sec, j; in main() local 56 for (j = 0; j < sec; j++) in main() 118 for (j = 2; j < sec; j++) { in main() 119 if (hash[j]) in main() 122 if (j == sec) in main() 149 for (j = 0; j < 8 * (int) hash_len / 20; j++) { in main() 154 if (j & 1) { in main() 177 for (j = 4; j <= ((int) hash_len * 8 + 5 - 8 * sec) / 19; j++) { in main() 179 pw = sae_pk_base32_encode(pw_base_bin, 20 * j - 5); in main()
|
/freebsd/cddl/contrib/opensolaris/cmd/dtrace/test/tst/common/predicates/ |
H A D | tst.complex.d | 44 j = 0; 51 j++; 68 /j >= 5/ 74 /j >= 5 || i <= 5/ 80 /j >= 5 && i <= 5/ 92 /i == 2 || j == 2/ 98 /i == 2 && j == 2/ 104 /j != 10/ 110 /j == 5 || i == 2/ 116 /j == 5 && i == 2/
|
/freebsd/share/examples/libusb20/ |
H A D | util.c | 29 int i, j; in print_formatted() local 31 for (j = 0; j < len; j += 16) in print_formatted() 33 printf("%02x: ", j); in print_formatted() 35 for (i = 0; i < 16 && i + j < len; i++) in print_formatted() 36 printf("%02x ", buf[i + j]); in print_formatted() 38 for (i = 0; i < 16 && i + j < len; i++) in print_formatted() 40 uint8_t c = buf[i + j]; in print_formatted()
|
/freebsd/tools/test/stress2/misc/ |
H A D | sigaltstack.sh | 70 int j; 97 if (j != 0) { 98 errno = j; 103 if (j != 0) { 104 errno = j; 108 j = pthread_join(tid1, NULL); 109 if (j != 0) { 110 errno = j; 114 j = pthread_join(tid2, NULL); 115 if (j != 0) { [all …]
|
H A D | truncate.sh | 61 int fd[10], i, j; 64 for (j = 0; j < 10; j++) { 66 if ((fd[j] = open(name, O_WRONLY | O_CREAT | O_APPEND, 0666)) == -1) 75 for (j = 0; j < 10; j++) { 76 if (write(fd[j], buf, 2) != 2) 78 if (ftruncate(fd[j], 0) == -1)
|
H A D | mlockall3.sh | 128 int e, i, j; 151 for (j = 0; j < N; j++) 152 r[j] = arc4random(); 153 for (j = 0; j < 50; j++) 154 if ((e = pthread_create(&cp[j], NULL, calls, NULL)) != 0) 157 for (j = 0; j < 50; j++) 158 pthread_join(cp[j], NULL);
|
/freebsd/secure/lib/libcrypt/ |
H A D | crypt-des.c | 230 for (j = 0; j < 64; j++) { in des_init() 231 b = (j & 0x20) | ((j & 1) << 4) | ((j >> 1) & 0xf); in des_init() 241 for (j = 0; j < 64; j++) in des_init() 281 for (j = 0; j < 8; j++) { in des_init() 282 inbit = 8 * k + j; in des_init() 298 for (j = 0; j < 7; j++) { in des_init() 299 inbit = 8 * k + j; in des_init() 311 for (j = 0; j < 7; j++) { in des_init() 312 inbit = 7 * k + j; in des_init() 335 for (j = 0; j < 8; j++) { in des_init() [all …]
|
/freebsd/sys/dev/iicbus/adc/ |
H A D | ad7417.c | 348 for (j = 0; j < i; j++) in ad7417_fill_sensor_prop() 349 sc->sc_sensors[j].id = id[j]; in ad7417_fill_sensor_prop() 353 for (j = 0; j < i; j++) in ad7417_fill_sensor_prop() 354 sc->sc_sensors[j].therm.zone = id[j]; in ad7417_fill_sensor_prop() 361 j = 0; in ad7417_fill_sensor_prop() 366 j++; in ad7417_fill_sensor_prop() 370 for (j = 0; j < i; j++) { in ad7417_fill_sensor_prop() 405 int i, j; in ad7417_attach() local 433 for (j = 0; j < strlen(sc->sc_sensors[i].therm.name); j++) { in ad7417_attach() 434 sysctl_name[j] = in ad7417_attach() [all …]
|
/freebsd/crypto/openssl/crypto/chacha/asm/ |
H A D | chacha-armv4.pl | 516 add @x[$j+1],@x[$j+1],@t[1] 517 add @x[$j+2],@x[$j+2],@t[2] 526 add @x[$j+3],@x[$j+3],@t[3] 536 eor @x[$j+1],@t[1],@x[$j+1] 542 eor @x[$j+2],@t[2],@x[$j+2] 544 eor @x[$j+3],@t[3],@x[$j+3] 551 eor @x[$j+0],@t[0],@x[$j+0],lsr#8 553 eor @x[$j+1],@t[1],@x[$j+1],lsr#8 560 eor @x[$j+2],@t[2],@x[$j+2],lsr#8 562 eor @x[$j+3],@t[3],@x[$j+3],lsr#8 [all …]
|
/freebsd/crypto/heimdal/lib/kadm5/ |
H A D | keys.c | 73 int i, j; in _kadm5_exists_keys() local 76 for (j = 0; j < len2; j++) { in _kadm5_exists_keys() 77 if ((keys1[i].salt != NULL && keys2[j].salt == NULL) in _kadm5_exists_keys() 78 || (keys1[i].salt == NULL && keys2[j].salt != NULL)) in _kadm5_exists_keys() 82 if (keys1[i].salt->type != keys2[j].salt->type) in _kadm5_exists_keys() 84 if (keys1[i].salt->salt.length != keys2[j].salt->salt.length) in _kadm5_exists_keys() 86 if (memcmp (keys1[i].salt->salt.data, keys2[j].salt->salt.data, in _kadm5_exists_keys() 90 if (keys1[i].key.keytype != keys2[j].key.keytype) in _kadm5_exists_keys() 92 if (keys1[i].key.keyvalue.length != keys2[j].key.keyvalue.length) in _kadm5_exists_keys() 94 if (memcmp (keys1[i].key.keyvalue.data, keys2[j].key.keyvalue.data, in _kadm5_exists_keys()
|
/freebsd/sys/net80211/ |
H A D | ieee80211_crypto_wep.c | 368 j = 0; in wep_encrypt() 371 j = (j + S[i] + rc4key[i % keylen]) & 0xff; in wep_encrypt() 372 S_SWAP(i, j); in wep_encrypt() 380 i = j = 0; in wep_encrypt() 390 j = (j + S[i]) & 0xff; in wep_encrypt() 419 j = (j + S[i]) & 0xff; in wep_encrypt() 451 j = 0; in wep_decrypt() 454 j = (j + S[i] + rc4key[i % keylen]) & 0xff; in wep_decrypt() 463 i = j = 0; in wep_decrypt() 472 j = (j + S[i]) & 0xff; in wep_decrypt() [all …]
|
/freebsd/contrib/wpa/src/crypto/ |
H A D | des-internal.c | 278 for (j = 0; j < 56; j++) { in deskey() 279 l = (u32) pc1[j]; in deskey() 281 pc1m[j] = (u8) in deskey() 292 for (j = 0; j < 28; j++) { in deskey() 295 pcr[j] = pc1m[l]; in deskey() 297 pcr[j] = pc1m[l - 28]; in deskey() 299 for (/* j = 28 */; j < 56; j++) { in deskey() 302 pcr[j] = pc1m[l]; in deskey() 306 for (j = 0; j < 24; j++) { in deskey() 308 kn[m] |= bigbyte[j]; in deskey() [all …]
|
/freebsd/cddl/contrib/opensolaris/cmd/dtrace/test/tst/common/funcs/ |
H A D | tst.index.d | 82 end = j = k = 0; 87 /j < i && end == 0/ 89 command[i + k].str = command[j].str; 95 command[i + k].str = command[j].str; 101 command[i + k].str = command[j].str; 107 command[i + k].str = command[j].str; 113 command[i + k].str = command[j].str; 119 command[i + k].str = command[j].str; 125 command[i + k].str = command[j].str; 137 j++; [all …]
|
/freebsd/sys/dev/rtwn/rtl8192c/ |
H A D | r92c_init.c | 126 int i, j; in r92c_init_bb_common() local 139 for (j = 0; j < bb_prog->count; j++) { in r92c_init_bb_common() 142 bb_prog->reg[j], bb_prog->val[j]); in r92c_init_bb_common() 144 rtwn_bb_write(sc, bb_prog->reg[j], bb_prog->val[j]); in r92c_init_bb_common() 176 for (j = 0; j < agc_prog->count; j++) { in r92c_init_bb_common() 181 agc_prog->val[j]); in r92c_init_bb_common() 194 int i, j; in r92c_init_rf_chain() local 209 for (j = 0; j < prog->count; j++) { in r92c_init_rf_chain() 212 prog->reg[j], prog->val[j]); in r92c_init_rf_chain() 219 if (prog->reg[j] > 0xf8) { in r92c_init_rf_chain() [all …]
|
/freebsd/lib/msun/src/ |
H A D | e_pow.c | 101 int32_t i,j,k,yisint,n; in pow() local 131 j = ly>>(52-k); in pow() 132 if(((u_int32_t)j<<(52-k))==ly) yisint = 2-(j&1); in pow() 134 j = iy>>(20-k); in pow() 135 if((j<<(20-k))==iy) yisint = 2-(j&1); in pow() 213 j = ix&0x000fffff; in pow() 262 EXTRACT_WORDS(j,i,z); in pow() 279 i = j&0x7fffffff; in pow() 288 if(j<0) n = -n; in pow() 301 GET_HIGH_WORD(j,z); in pow() [all …]
|
/freebsd/crypto/openssl/crypto/sha/asm/ |
H A D | sha1-ia64.pl | 61 my $j=$i+1; 62 my $Xn=@X[$j%16]; 109 xor tmp3=$X[($j+8)%16],$X[($j+13)%16] // forward Xupdate 127 my $j=$i+1; 128 my $Xn=@X[$j%16]; 139 xor tmp3=$X[($j+8)%16],$X[($j+13)%16] // forward Xupdate 157 my $j=$i+1; 158 my $Xn=@X[$j%16]; 205 my $j=$i+1; 206 my $Xn=@X[$j%16]; [all …]
|
/freebsd/usr.bin/procstat/ |
H A D | procstat_sigs.c | 114 int j; in procstat_sigs() local 123 for (j = 1; j <= _SIG_MAXSIG; j++) { in procstat_sigs() 126 procstat_print_signame(j); in procstat_sigs() 128 procstat_print_sig(&kipp->ki_siglist, j, 'P'); in procstat_sigs() 130 procstat_print_sig(&kipp->ki_sigcatch, j, 'C'); in procstat_sigs() 131 procstat_close_signame(j); in procstat_sigs() 141 int j; in procstat_threads_sigs() local 167 for (j = 1; j <= _SIG_MAXSIG; j++) { in procstat_threads_sigs() 171 procstat_print_signame(j); in procstat_threads_sigs() 173 procstat_print_sig(&kipp->ki_siglist, j, 'P'); in procstat_threads_sigs() [all …]
|
/freebsd/sbin/ipf/libipf/ |
H A D | printipfexpr.c | 13 int i, nelems, j, not; in printipfexpr() local 65 for (j = 0; j < ipfe->ipfe_narg; ) { in printipfexpr() 67 j += 2; in printipfexpr() 68 if (j < array[4]) in printipfexpr() 167 int i, j; in printhosts() local 169 for (i = 0, j = 0; i < ipfe->ipfe_narg; j++) { in printhosts() 170 printhostmask(AF_INET, (u_32_t *)ipfe->ipfe_arg0 + j * 2, in printhosts() 171 (u_32_t *)ipfe->ipfe_arg0 + j * 2 + 1); in printhosts() 184 int i, j; in printhostsv6() local 186 for (i = 4, j= 0; i < ipfe->ipfe_size; j++) { in printhostsv6() [all …]
|
/freebsd/crypto/openssl/crypto/md2/ |
H A D | md2_dgst.c | 126 register int i, j; in md2_block() local 131 j = sp2[MD2_BLOCK - 1]; in md2_block() 136 j = sp2[i] ^= S[t ^ j]; in md2_block() 140 for (j = 0; j < 48; j += 8) { in md2_block() 141 t = state[j + 0] ^= S[t]; in md2_block() 142 t = state[j + 1] ^= S[t]; in md2_block() 143 t = state[j + 2] ^= S[t]; in md2_block() 144 t = state[j + 3] ^= S[t]; in md2_block() 145 t = state[j + 4] ^= S[t]; in md2_block() 146 t = state[j + 5] ^= S[t]; in md2_block() [all …]
|
/freebsd/crypto/openssl/crypto/ec/curve448/arch_32/ |
H A D | f_impl32.c | 31 int i, j; 38 for (j = 0; j < 8; j++) { 40 for (i = 0; i < j + 1; i++) { 41 accum2 += widemul(a[j - i], b[i]); 42 accum1 += widemul(aa[j - i], bb[i]); 43 accum0 += widemul(a[8 + j - i], b[8 + i]); 48 for (i = j + 1; i < 8; i++) { 49 accum0 -= widemul(a[8 + j - i], b[i]); 50 accum2 += widemul(aa[8 + j - i], bb[i]); 55 c[j] = ((uint32_t)(accum0)) & mask; [all …]
|
/freebsd/sys/contrib/openzfs/tests/zfs-tests/tests/functional/cli_root/zfs_get/ |
H A D | zfs_get_list_d.kshlib | 44 typeset -i i j k 61 (( j=1 )) 62 while (( j<=DS_COUNT )); do 63 log_must zfs create $fs/fs_"$j"_depth"$i" 65 log_must zfs create -V 8M $fs/vol_"$j"_depth"$i" 67 log_must zfs snapshot $fs@snap_"$j"_depth"$i" 68 log_must zfs bookmark $fs@snap_"$j"_depth"$i" '#bookmark'_"$j"_depth"$i" 69 (( j=j+1 ))
|