Lines Matching refs:k
74 inline char PseudoRandomValue( size_t j, size_t k ) { in PseudoRandomValue() argument
75 return char(j*3 ^ j>>4 ^ k); in PseudoRandomValue()
175 for(std::size_t k = 0; k < 100; ++k) { in TestAllocatorConcept() local
176 array[k] = a.allocate(k); in TestAllocatorConcept()
177 char* s = reinterpret_cast<char*>(reinterpret_cast<void*>(array[k])); in TestAllocatorConcept()
178 for(std::size_t j=0; j < k * sizeof_T; ++j) in TestAllocatorConcept()
179 s[j] = PseudoRandomValue(j, k); in TestAllocatorConcept()
183 for(std::size_t k = 0; k < 100; ++k) { in TestAllocatorConcept() local
184 char* s = reinterpret_cast<char*>(reinterpret_cast<void*>(array[k])); in TestAllocatorConcept()
185 for(std::size_t j = 0; j < k * sizeof_T; ++j) in TestAllocatorConcept()
186 REQUIRE(s[j] == PseudoRandomValue(j, k)); in TestAllocatorConcept()
187 a.deallocate(array[k], k); in TestAllocatorConcept()
256 for(std::size_t k = 0; k < 256; ++k) in operator() local
257 array[k] = nullptr; in operator()
258 for(std::size_t k = 0; k < max_k; ++k) { in operator() local
259 std::size_t i = static_cast<unsigned char>(PseudoRandomValue(k, thread_id)); in operator()
263 for(std::size_t k = 0; k < 256; ++k) in operator() local
264 if(array[k]) in operator()
265 check_deallocate(array, k, thread_id); in operator()