/openbsd/gnu/usr.bin/perl/ext/Hash-Util-FieldHash/t/ |
H A D | 05_perlhook.t | 29 my( $magref, $counter); 31 $counter = 123; 33 is( $counter, 0, "got magical scalar"); 51 $counter = 0; 56 is( $counter, 2, "overwrite triggers"); 67 my ( %h, $counter); 68 $counter = 123; 70 is( $counter, 0, "got magical hash"); 160 is( $counter, 0, "got magical hash"); 183 $counter = 123; [all …]
|
/openbsd/gnu/lib/libstdc++/libstdc++/testsuite/22_locale/ |
H A D | static_members.cc | 106 static std::size_t counter; variable 113 ~surf() { --counter; } in ~surf() 132 VERIFY( counter == 0 ); in test03() 135 VERIFY( counter == 1 ); in test03() 139 VERIFY( counter == 1 ); in test03() 150 VERIFY( counter == 0 ); in test03() 159 VERIFY( counter == 0 ); in test03() 162 VERIFY( counter == 1 ); in test03() 166 VERIFY( counter == 1 ); in test03() 177 VERIFY( counter == 1 ); in test03() [all …]
|
H A D | facet.cc | 238 static std::size_t counter; variable 245 ~surf() { --counter; } in ~surf() 258 VERIFY( counter == 0 ); in test02() 261 VERIFY( counter == 1 ); in test02() 263 VERIFY( counter == 0 ); in test02() 266 VERIFY( counter == 0 ); in test02() 270 VERIFY( counter == 1 ); in test02() 272 VERIFY( counter == 1 ); in test02() 275 counter = 0; in test02() 279 VERIFY( counter == 1 ); in test02() [all …]
|
/openbsd/usr.bin/tftp/ |
H A D | tftpsubs.c | 65 int counter; /* size of data in buffer, or flag */ member 98 bfs[1].counter = BF_FREE; in rw_init() 113 bfs[current].counter = BF_FREE; /* free old one */ in readit() 117 if (b->counter == BF_FREE) /* if it's empty */ in readit() 122 return (b->counter); in readit() 139 if (b->counter != BF_FREE) /* nop if not free */ in read_ahead() 170 b->counter = (int)(p - dp->th_data); in read_ahead() 183 if (bfs[current].counter != BF_FREE) /* if not free */ in writeit() 210 if (b->counter < -1) /* anything to flush? */ in write_behind() 213 count = b->counter; /* remember byte count */ in write_behind() [all …]
|
/openbsd/gnu/llvm/llvm/lib/Support/BLAKE3/ |
H A D | blake3_impl.h | 142 INLINE uint32_t counter_low(uint64_t counter) { return (uint32_t)counter; } in counter_low() argument 144 INLINE uint32_t counter_high(uint64_t counter) { in counter_high() argument 145 return (uint32_t)(counter >> 32); in counter_high() 188 uint8_t block_len, uint64_t counter, 237 uint8_t block_len, uint64_t counter, 242 uint64_t counter, bool increment_counter, 255 uint8_t block_len, uint64_t counter, 260 uint64_t counter, bool increment_counter, 268 uint64_t counter, bool increment_counter, 282 uint8_t block_len, uint64_t counter, [all …]
|
H A D | blake3_dispatch.c | 139 uint8_t block_len, uint64_t counter, in blake3_compress_in_place() argument 152 blake3_compress_in_place_sse41(cv, block, block_len, counter, flags); in blake3_compress_in_place() 158 blake3_compress_in_place_sse2(cv, block, block_len, counter, flags); in blake3_compress_in_place() 181 blake3_compress_xof_sse41(cv, block, block_len, counter, flags, out); in blake3_compress_xof() 187 blake3_compress_xof_sse2(cv, block, block_len, counter, flags, out); in blake3_compress_xof() 204 blake3_hash_many_avx512(inputs, num_inputs, blocks, key, counter, in blake3_hash_many() 212 blake3_hash_many_avx2(inputs, num_inputs, blocks, key, counter, in blake3_hash_many() 220 blake3_hash_many_sse41(inputs, num_inputs, blocks, key, counter, in blake3_hash_many() 228 blake3_hash_many_sse2(inputs, num_inputs, blocks, key, counter, in blake3_hash_many() 237 blake3_hash_many_neon(inputs, num_inputs, blocks, key, counter, in blake3_hash_many() [all …]
|
H A D | blake3_portable.c | 39 uint8_t block_len, uint64_t counter, uint8_t flags) { in compress_pre() argument 70 state[12] = counter_low(counter); in compress_pre() 71 state[13] = counter_high(counter); in compress_pre() 86 uint8_t block_len, uint64_t counter, in blake3_compress_in_place_portable() argument 89 compress_pre(state, cv, block, block_len, counter, flags); in blake3_compress_in_place_portable() 102 uint8_t block_len, uint64_t counter, in blake3_compress_xof_portable() argument 105 compress_pre(state, cv, block, block_len, counter, flags); in blake3_compress_xof_portable() 126 const uint32_t key[8], uint64_t counter, in hash_one_portable() argument 147 uint64_t counter, bool increment_counter, in blake3_hash_many_portable() argument 151 hash_one_portable(inputs[0], blocks, key, counter, flags, flags_start, in blake3_hash_many_portable() [all …]
|
H A D | blake3_neon.c | 222 INLINE void load_counters4(uint64_t counter, bool increment_counter, in load_counters4() argument 226 counter_low(counter + (mask & 0)), counter_low(counter + (mask & 1)), in load_counters4() 227 counter_low(counter + (mask & 2)), counter_low(counter + (mask & 3))); in load_counters4() 229 counter_high(counter + (mask & 0)), counter_high(counter + (mask & 1)), in load_counters4() 230 counter_high(counter + (mask & 2)), counter_high(counter + (mask & 3))); in load_counters4() 235 const uint32_t key[8], uint64_t counter, in blake3_hash4_neon() argument 243 load_counters4(counter, increment_counter, &counter_low_vec, in blake3_hash4_neon() 307 const uint32_t key[8], uint64_t counter, in hash_one_neon() argument 331 uint64_t counter, bool increment_counter, in blake3_hash_many_neon() argument 338 counter += 4; in blake3_hash_many_neon() [all …]
|
/openbsd/gnu/gcc/gcc/config/i386/ |
H A D | gthr-win32.c | 149 mutex->counter = -1; in __gthr_win32_mutex_init_function() 156 if (InterlockedIncrement (&mutex->counter) == 0 || in __gthr_win32_mutex_lock() 163 InterlockedDecrement (&mutex->counter); in __gthr_win32_mutex_lock() 171 if (__GTHR_W32_InterlockedCompareExchange (&mutex->counter, 0, -1) < 0) in __gthr_win32_mutex_trylock() 180 if (InterlockedDecrement (&mutex->counter) >= 0) in __gthr_win32_mutex_unlock() 189 mutex->counter = -1; in __gthr_win32_recursive_mutex_init_function() 199 if (InterlockedIncrement (&mutex->counter) == 0) in __gthr_win32_recursive_mutex_lock() 206 InterlockedDecrement (&mutex->counter); in __gthr_win32_recursive_mutex_lock() 218 InterlockedDecrement (&mutex->counter); in __gthr_win32_recursive_mutex_lock() 228 if (__GTHR_W32_InterlockedCompareExchange (&mutex->counter, 0, -1) < 0) in __gthr_win32_recursive_mutex_trylock() [all …]
|
/openbsd/gnu/usr.bin/perl/ext/XS-APItest/t/ |
H A D | pad_scalar.t | 43 my $counter = 0; 44 my $foo = \$counter; 46 ok pad_scalar(1, "foo") == \pad_scalar(1, "counter"); 47 ok pad_scalar(2, "foo") == \pad_scalar(1, "counter"); 48 ok pad_scalar(3, "foo") == \pad_scalar(1, "counter"); 49 ok pad_scalar(4, "foo") == \pad_scalar(1, "counter"); 50 if(pad_scalar(1, "counter") % 3 == 0) { 51 return pad_scalar(1, "counter")++; 52 } elsif(pad_scalar(1, "counter") % 3 == 0) { 53 return pad_scalar(2, "counter")++; [all …]
|
H A D | blockhooks-csc.t | 41 my ($self, $counter) = @_; 42 $COMPILE_SCOPE_CONTAINER[-1] = CounterObject->new($counter); 49 my ($class, $counter) = @_; 50 push @COMPILE_SCOPE_CONTAINER, CounterObject->new($counter); 57 my ($class, $counter, $number, $message) = @_; 61 $message = "counter $counter is found $number times" 64 ::is scalar(grep { $_->name eq $counter } @{COMPILE_SCOPE_CONTAINER}),
|
/openbsd/gnu/llvm/llvm/utils/lit/tests/Inputs/allow-retries/ |
H A D | succeeds-within-limit.py | 12 with open(counter_file, 'w') as counter: 13 counter.write("1") 16 with open(counter_file, 'r') as counter: 17 num = int(counter.read()) 22 with open(counter_file, 'w') as counter: 23 counter.write(str(num + 1))
|
/openbsd/gnu/llvm/llvm/utils/lit/tests/Inputs/test_retry_attempts/ |
H A D | test.py | 10 with open(counter_file, 'w') as counter: 11 counter.write("1") 14 with open(counter_file, 'r') as counter: 15 num = int(counter.read()) 20 with open(counter_file, 'w') as counter: 21 counter.write(str(num + 1))
|
/openbsd/regress/lib/libpthread/semaphore/sem_destroy/ |
H A D | sem_destroy.c | 23 long counter = 4; in main() local 33 CHECKr(pthread_create(&prod_th, NULL, producer, &counter)); in main() 34 CHECKr(pthread_create(&cons_th, NULL, consumer, &counter)); in main() 50 long *counter = arg; in producer() local 53 for (i = 0; i < *counter; i++) { in producer() 65 long *counter = arg; in consumer() local 68 for (i = 0; i < *counter; i++) { in consumer()
|
/openbsd/gnu/gcc/gcc/ |
H A D | coverage.c | 344 elt.ctr = counter; in get_coverage_counts() 358 ctr_names[counter]); in get_coverage_counts() 366 ctr_names[counter]); in get_coverage_counts() 398 tree_ctr_tables[counter] in coverage_counter_alloc() 405 fn_b_ctrs[counter] = fn_n_ctrs[counter]; in coverage_counter_alloc() 406 fn_n_ctrs[counter] += num; in coverage_counter_alloc() 407 fn_ctr_mask |= 1 << counter; in coverage_counter_alloc() 418 gcc_assert (no < fn_n_ctrs[counter] - fn_b_ctrs[counter]); in tree_coverage_counter_ref() 419 no += prg_n_ctrs[counter] + fn_b_ctrs[counter]; in tree_coverage_counter_ref() 709 prg_n_ctrs[counter]), in build_ctr_info_value() [all …]
|
H A D | gthr-win32.h | 344 long counter; member 349 long counter; member 613 mutex->counter = -1; in __gthread_mutex_init_function() 624 if (InterlockedIncrement (&mutex->counter) == 0 || in __gthread_mutex_lock() 631 InterlockedDecrement (&mutex->counter); in __gthread_mutex_lock() 658 if (InterlockedDecrement (&mutex->counter) >= 0) in __gthread_mutex_unlock() 667 mutex->counter = -1; in __gthread_recursive_mutex_init_function() 679 if (InterlockedIncrement (&mutex->counter) == 0) in __gthread_recursive_mutex_lock() 686 InterlockedDecrement (&mutex->counter); in __gthread_recursive_mutex_lock() 698 InterlockedDecrement (&mutex->counter); in __gthread_recursive_mutex_lock() [all …]
|
/openbsd/gnu/usr.bin/gcc/gcc/testsuite/g++.old-deja/g++.benjamin/ |
H A D | typeid01.C | 16 unsigned int counter; in test1() 18 X2 (unsigned int i = 35): counter(i) {} in test1() 20 unsigned int ret_counter() {return counter;} in test1() 58 unsigned int counter; in main() 60 X (unsigned int i = 35): counter(i) {} in main() 62 unsigned int ret_counter() {return counter;} in main()
|
H A D | warn01.C | 58 long counter; 60 virtual long retcntr() {return counter;}; in retcntr() 61 Mutex(int i = 0): counter(i) {}; in counter() function 86 long counter; 88 virtual long retcntr() {return counter;}; in retcntr() 89 Mutex2(int i = 0): counter(i) {}; in counter() function
|
/openbsd/lib/libcrypto/modes/ |
H A D | ctr128.c | 68 ctr128_inc(unsigned char *counter) in ctr128_inc() argument 75 c = counter[n]; in ctr128_inc() 77 counter[n] = c; in ctr128_inc() 85 ctr128_inc_aligned(unsigned char *counter) in ctr128_inc_aligned() argument 88 ctr128_inc(counter); in ctr128_inc_aligned() 91 data = (size_t *)counter; in ctr128_inc_aligned() 186 ctr96_inc(unsigned char *counter) in ctr96_inc() argument 193 c = counter[n]; in ctr96_inc() 195 counter[n] = c; in ctr96_inc()
|
/openbsd/regress/lib/csu/init_priority/ |
H A D | init_priority_test.cc | 8 int counter = 0; variable 17 if (counter < kNumTests) in Test() 18 log[counter] = x; in Test() 20 counter++; in Test() 46 assert(counter == kNumTests); in main()
|
/openbsd/usr.sbin/nsd/ |
H A D | rrl.c | 38 uint32_t counter; member 348 b->rate += (b->counter>>(elapsed-1)); in rrl_attenuate_bucket() 378 return rate >= lm || counter+rate/2 >= lm; in used_to_block() 407 b->counter = 1; in rrl_update() 419 b->rate = b->rate/2 + b->counter; in rrl_update() 422 b->counter = 1; in rrl_update() 430 b->counter = 1; in rrl_update() 437 b->counter = 1; in rrl_update() 441 b->counter ++; in rrl_update() 451 if(b->counter > b->rate/2) in rrl_update() [all …]
|
/openbsd/regress/lib/libpthread/socket/1/ |
H A D | socket1.c | 61 static int counter = 0; variable 75 ASSERT(++counter == 2); in sock_connect() 82 ASSERT(++counter == 3); in sock_connect() 95 ASSERT(++counter == atoi(buf)); in sock_connect() 141 ASSERT(++counter == 1); in sock_accept() 151 ASSERT(++counter == 4); in sock_accept() 162 ASSERT(++counter == atoi(buf)); in sock_accept()
|
/openbsd/lib/libcrypto/chacha/ |
H A D | chacha.c | 34 const unsigned char *counter) in ChaCha_set_iv() argument 36 chacha_ivsetup((chacha_ctx *)ctx, iv, counter); in ChaCha_set_iv() 73 const unsigned char key[32], const unsigned char iv[8], uint64_t counter) in CRYPTO_chacha_20() argument 85 if (counter != 0) { in CRYPTO_chacha_20() 86 ctx.input[12] = (uint32_t)counter; in CRYPTO_chacha_20() 87 ctx.input[13] = (uint32_t)(counter >> 32); in CRYPTO_chacha_20()
|
/openbsd/regress/usr.sbin/btrace/ |
H A D | mapoverwrite.bt | 3 @counter = 0; 15 if (@counter >= 10) 18 @counter = @counter + 1;
|
/openbsd/gnu/usr.bin/gcc/gcc/testsuite/g++.old-deja/g++.mike/ |
H A D | p4667.C | 3 int counter = 0; variable 9 A() { a = counter++; } in A() 13 B() { b = counter++; } in B() 17 C() { c = counter++; } in C()
|