Searched refs:counter (Results 1 - 25 of 207) sorted by relevance

123456789

/openbsd-current/gnu/usr.bin/gcc/gcc/testsuite/g++.old-deja/g++.mike/
H A Dp8269.C8 static char* const counter; member in class:Foo_Bar
11 char_ptr Foo_Bar::counter = 0; member in class:Foo_Bar
H A Dp4667.C3 int counter = 0; variable
9 A() { a = counter++; }
13 B() { b = counter++; }
17 C() { c = counter++; }
/openbsd-current/gnu/usr.bin/gcc/gcc/testsuite/gcc.c-torture/execute/
H A D20000224-1.c8 int counter = 0; local
10 while (loop_1 > counter) {
13 counter++;
/openbsd-current/gnu/llvm/llvm/utils/lit/tests/Inputs/test_retry_attempts/
H A Dtest.py1 # RUN: "%python" "%s" "%counter"
8 # The first time the test is run, initialize the counter to 1.
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())
19 # Otherwise, increment the counter and fail
20 with open(counter_file, 'w') as counter:
21 counter.write(str(num + 1))
/openbsd-current/gnu/llvm/llvm/utils/lit/tests/Inputs/allow-retries/
H A Dsucceeds-within-limit.py3 # RUN: "%python" "%s" "%counter"
10 # The first time the test is run, initialize the counter to 1.
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())
21 # Otherwise, increment the counter and fail
22 with open(counter_file, 'w') as counter:
23 counter.write(str(num + 1))
/openbsd-current/gnu/usr.bin/gcc/gcc/testsuite/g++.old-deja/g++.other/
H A Dsingleton.C19 if ( counter++ == 0 ) throw "just for the heck of it";
25 static int counter; member in class:singleton
28 int singleton::counter; member in class:singleton
/openbsd-current/gnu/usr.bin/gcc/gcc/testsuite/gcc.dg/
H A Dcleanup-4.c8 static int counter; variable
13 counter += *p;
36 if (counter != 0 + 1 + 2 + 3 + 4 + 5 + 6)
/openbsd-current/regress/lib/csu/init_priority/
H A Dinit_priority_test.cc8 int counter = 0; member in namespace:__anon8087
17 if (counter < kNumTests)
18 log[counter] = x;
20 counter++;
46 assert(counter == kNumTests);
/openbsd-current/regress/lib/libpthread/semaphore/sem_destroy/
H A Dsem_destroy.c23 long counter = 4; local
33 CHECKr(pthread_create(&prod_th, NULL, producer, &counter));
34 CHECKr(pthread_create(&cons_th, NULL, consumer, &counter));
50 long *counter = arg; local
53 for (i = 0; i < *counter; i++) {
65 long *counter = arg; local
68 for (i = 0; i < *counter; i++) {
/openbsd-current/gnu/lib/libstdc++/libstdc++/testsuite/22_locale/
H A Dstatic_members.cc105 // Static counter for use in checking ctors/dtors.
106 static std::size_t counter; variable
112 surf(size_t refs = 0): std::locale::facet(refs) { ++counter; }
113 ~surf() { --counter; }
132 VERIFY( counter == 0 );
135 VERIFY( counter == 1 );
139 VERIFY( counter == 1 );
144 VERIFY( counter == 1 );
147 VERIFY( counter == 1 );
150 VERIFY( counter
[all...]
/openbsd-current/gnu/gcc/gcc/config/i386/
H A Dgthr-win32.c149 mutex->counter = -1;
156 if (InterlockedIncrement (&mutex->counter) == 0 ||
163 InterlockedDecrement (&mutex->counter);
171 if (__GTHR_W32_InterlockedCompareExchange (&mutex->counter, 0, -1) < 0)
180 if (InterlockedDecrement (&mutex->counter) >= 0)
189 mutex->counter = -1;
199 if (InterlockedIncrement (&mutex->counter) == 0)
206 InterlockedDecrement (&mutex->counter);
218 InterlockedDecrement (&mutex->counter);
228 if (__GTHR_W32_InterlockedCompareExchange (&mutex->counter,
[all...]
/openbsd-current/gnu/usr.bin/gcc/gcc/testsuite/g++.old-deja/g++.robertl/
H A Deb71.C15 unsigned counter; member in class:B
34 tempN->counter = 20;
/openbsd-current/gnu/usr.bin/gcc/gcc/testsuite/g++.old-deja/g++.benjamin/
H A Dtypeid01.C16 unsigned int counter; member in class:X2
18 X2 (unsigned int i = 35): counter(i) {}
20 unsigned int ret_counter() {return counter;}
58 unsigned int counter; member in class:X
60 X (unsigned int i = 35): counter(i) {}
62 unsigned int ret_counter() {return counter;}
H A Dwarn01.C58 long counter; member in class:Mutex
60 virtual long retcntr() {return counter;};
61 Mutex(int i = 0): counter(i) {};
86 long counter; member in class:Mutex2
88 virtual long retcntr() {return counter;};
89 Mutex2(int i = 0): counter(i) {};
/openbsd-current/usr.bin/tftp/
H A Dtftpsubs.c57 /* values for bf.counter */
65 int counter; /* size of data in buffer, or flag */ member in struct:bf
96 bfs[0].counter = BF_ALLOC; /* pass out the first buffer */
98 bfs[1].counter = BF_FREE;
113 bfs[current].counter = BF_FREE; /* free old one */
117 if (b->counter == BF_FREE) /* if it's empty */
119 /* assert(b->counter != BF_FREE); */ /* check */
122 return (b->counter);
139 if (b->counter != BF_FREE) /* nop if not free */
146 b->counter
[all...]
/openbsd-current/gnu/usr.bin/perl/ext/XS-APItest/t/
H A Dblockhooks-csc.t41 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-current/regress/lib/libc/atexit/
H A Datexit_test.c62 static int counter; variable
106 counter = 0;
114 fprintf(stderr, "handle_first() counter == %i\n", counter);
120 counter++;
126 fprintf(stderr, "handle_last() counter == %i\n", counter);
/openbsd-current/gnu/llvm/llvm/lib/Analysis/
H A DHeatUtils.cpp42 uint64_t counter = 0; local
46 counter += 1;
50 return counter;
/openbsd-current/lib/libcrypto/chacha/
H A Dchacha.c34 const unsigned char *counter)
36 chacha_ivsetup((chacha_ctx *)ctx, iv, counter);
73 const unsigned char key[32], const unsigned char iv[8], uint64_t counter)
79 * chacha_ivsetup expects the counter to be in u8. Rather than
80 * converting size_t to u8 and then back again, pass a counter of
85 if (counter != 0) {
86 ctx.input[12] = (uint32_t)counter;
87 ctx.input[13] = (uint32_t)(counter >> 32);
33 ChaCha_set_iv(ChaCha_ctx *ctx, const unsigned char *iv, const unsigned char *counter) argument
72 CRYPTO_chacha_20(unsigned char *out, const unsigned char *in, size_t len, const unsigned char key[32], const unsigned char iv[8], uint64_t counter) argument
H A Dchacha.h43 const unsigned char *counter);
48 const unsigned char key[32], const unsigned char iv[8], uint64_t counter);
/openbsd-current/lib/librpcsvc/
H A Dspray.x64 unsigned int counter;
76 * Just throw away the data and increment the counter
84 * Get the value of the counter and elapsed time since
91 * Clear the counter and reset the elapsed time
/openbsd-current/gnu/llvm/llvm/lib/Support/BLAKE3/
H A Dblake3_dispatch.c139 uint8_t block_len, uint64_t counter,
146 blake3_compress_in_place_avx512(cv, block, block_len, counter, flags);
152 blake3_compress_in_place_sse41(cv, block, block_len, counter, flags);
158 blake3_compress_in_place_sse2(cv, block, block_len, counter, flags);
163 blake3_compress_in_place_portable(cv, block, block_len, counter, flags);
168 uint8_t block_len, uint64_t counter, uint8_t flags,
175 blake3_compress_xof_avx512(cv, block, block_len, counter, flags, out);
181 blake3_compress_xof_sse41(cv, block, block_len, counter, flags, out);
187 blake3_compress_xof_sse2(cv, block, block_len, counter, flags, out);
192 blake3_compress_xof_portable(cv, block, block_len, counter, flag
137 blake3_compress_in_place(uint32_t cv[8], const uint8_t block[BLAKE3_BLOCK_LEN], uint8_t block_len, uint64_t counter, uint8_t flags) argument
166 blake3_compress_xof(const uint32_t cv[8], const uint8_t block[BLAKE3_BLOCK_LEN], uint8_t block_len, uint64_t counter, uint8_t flags, uint8_t out[64]) argument
195 blake3_hash_many(const uint8_t *const *inputs, size_t num_inputs, size_t blocks, const uint32_t key[8], uint64_t counter, bool increment_counter, uint8_t flags, uint8_t flags_start, uint8_t flags_end, uint8_t *out) argument
[all...]
H A Dblake3_impl.h142 INLINE uint32_t counter_low(uint64_t counter) { return (uint32_t)counter; } argument
144 INLINE uint32_t counter_high(uint64_t counter) { argument
145 return (uint32_t)(counter >> 32);
188 uint8_t block_len, uint64_t counter,
194 uint8_t block_len, uint64_t counter, uint8_t flags,
199 size_t blocks, const uint32_t key[8], uint64_t counter,
211 uint8_t block_len, uint64_t counter,
217 uint8_t block_len, uint64_t counter,
223 uint64_t counter, boo
[all...]
/openbsd-current/lib/libcrypto/modes/
H A Dctr128.c63 /* NOTE: the IV/counter CTR mode is big-endian. The code itself
66 /* increment counter (128-bit int) by 1 */
68 ctr128_inc(unsigned char *counter) argument
75 c = counter[n];
77 counter[n] = c;
85 ctr128_inc_aligned(unsigned char *counter) argument
88 ctr128_inc(counter);
91 data = (size_t *)counter;
105 /* The input encrypted as though 128bit counter mode is being
108 * encrypted counter i
186 ctr96_inc(unsigned char *counter) argument
[all...]
/openbsd-current/gnu/gcc/libmudflap/testsuite/libmudflap.cth/
H A Dpass37-frag.c9 int *counter = (int *) p; local
14 (*counter) ++;

Completed in 159 milliseconds

123456789