| /oneTBB/test/tbbmalloc/ |
| H A D | test_malloc_compliance.cpp | 92 if (0 != ret) { in limitMem() 100 if (0 != ret) { in limitMem() 452 if (nullptr != ret) in Tmalloc() 455 return ret; in Tmalloc() 465 return ret; in Tcalloc() 475 return ret; in Trealloc() 480 if (0 == ret) in Tposix_memalign() 483 return ret; in Tposix_memalign() 491 return ret; in Taligned_malloc() 499 return ret; in Taligned_realloc() [all …]
|
| H A D | test_malloc_overload.cpp | 274 int ret = posix_memalign(&ptr, align[a], sz[s]); in CheckFreeAligned() local 275 REQUIRE(!ret); in CheckFreeAligned() 305 kern_return_t ret = malloc_get_all_zones(mach_task_self(), nullptr, &zones, &zones_num); in TestZoneOverload() local 306 REQUIRE((!ret && zones_num>1)); in TestZoneOverload() 433 int ret = posix_memalign(&ptr, 1024, 3*minLargeObjectSize); variable 434 REQUIRE(0 == ret);
|
| H A D | test_malloc_atexit.cpp | 44 bool ret = __TBB_malloc_safer_msize(o, nullptr) >= reqSz; in dll_isMallocOverloaded() local 46 return ret; in dll_isMallocOverloaded()
|
| H A D | test_scalable_allocator.cpp | 153 rml::MemPoolError ret = pool_create_v1((intptr_t)&fixedPool, &pol, &pool); in TestSmallFixedSizePool() local 155 if (ret == rml::POOL_OK) { in TestSmallFixedSizePool() 159 …REQUIRE_MESSAGE(ret == rml::NO_MEMORY, "Expected that pool either valid or have no memory to be cr… in TestSmallFixedSizePool()
|
| H A D | test_malloc_whitebox.cpp | 384 void *ret = space + pos; in getMem() local 387 return ret; in getMem() 403 void *ret = (void *)((uintptr_t)rawPtr+sizeof(MallocPoolHeader)); in getMallocMem() local 405 MallocPoolHeader *hdr = (MallocPoolHeader*)ret-1; in getMallocMem() 409 return ret; in getMallocMem() 548 bool ret = lLOC.put(((LargeObjectHdr*)o - 1)->memoryBlock, mPool); in TestPools() local 549 REQUIRE(ret); in TestPools() 552 ret = lLOC.put(((LargeObjectHdr*)o - 1)->memoryBlock, mPool); in TestPools() 553 REQUIRE(ret); in TestPools() 1087 rml::internal::LargeMemoryBlock *ret = lmbArray.back(); in next() local [all …]
|
| H A D | test_malloc_pools.cpp | 73 void *ret = (void *)((uintptr_t)rawPtr+sizeof(MallocPoolHeader)+1); in getMallocMem() local 75 MallocPoolHeader *hdr = (MallocPoolHeader*)ret-1; in getMallocMem() 81 return ret; in getMallocMem() 208 void *ret = poolSpace[pool_id].space + poolSpace[pool_id].pos; in CrossThreadGetMem() local 212 return ret; in CrossThreadGetMem()
|
| /oneTBB/src/tbb/ |
| H A D | semaphore.h | 155 std::intptr_t ret = dispatch_semaphore_wait(my_sem, DISPATCH_TIME_FOREVER); in P() local 156 __TBB_ASSERT_EX(ret == 0, "dispatch_semaphore_wait() failed"); in P() 173 int ret = sem_destroy( &sem ); in ~semaphore() local 174 __TBB_ASSERT_EX( !ret, nullptr); in ~semaphore() 186 int ret = sem_init( &sem, /*shared among threads*/ 0, start_cnt_ ); in init_semaphore() local 187 __TBB_ASSERT_EX( !ret, nullptr); in init_semaphore() 274 int ret = sem_init( &my_sem, /*shared among threads*/ 0, 0 ); in binary_semaphore() local 275 __TBB_ASSERT_EX( !ret, nullptr); in binary_semaphore() 279 int ret = sem_destroy( &my_sem ); in ~binary_semaphore() local 280 __TBB_ASSERT_EX( !ret, nullptr); in ~binary_semaphore()
|
| /oneTBB/test/tbb/ |
| H A D | test_eh_thread.cpp | 48 int ret = getrlimit(RLIMIT_NPROC, &rlim); in limitThreads() local 49 CHECK_MESSAGE(0 == ret, "getrlimit has returned an error"); in limitThreads() 53 ret = setrlimit(RLIMIT_NPROC, &rlim); in limitThreads() 54 CHECK_MESSAGE(0 == ret, "setrlimit has returned an error"); in limitThreads() 60 int ret = getrlimit(RLIMIT_NPROC, &rlim); in getThreadLimit() local 61 CHECK_MESSAGE(0 == ret, "getrlimit has returned an error"); in getThreadLimit()
|
| H A D | test_tbb_fork.cpp | 51 DWORD ret = WaitForSingleObjectEx(h, 0, FALSE); in threadTerminated() local 52 return WAIT_OBJECT_0 == ret; in threadTerminated() 191 int ret = _CrtMemDifference(&diffState, &stateBefore, &stateAfter); in TestSchedulerMemLeaks() local 192 ASSERT(!ret, "It must be no memory leaks at this point."); in TestSchedulerMemLeaks()
|
| H A D | test_indexer_node.cpp | 123 TT ret = my_mult * (TT)my_count; in operator ()() local 126 return ret; in operator ()()
|
| /oneTBB/examples/parallel_reduce/pi/ |
| H A D | main.cpp | 33 double ret = 0; in compute_pi_serial() local 41 ret += pi_slice_kernel(slice); in compute_pi_serial() 43 ret += pi_slice_kernel(last, tail); in compute_pi_serial() 44 ret *= step; in compute_pi_serial() 46 return ret; in compute_pi_serial()
|
| H A D | pi.cpp | 37 double ret = 0.0; in compute_pi_parallel() local 42 ret = body.my_pi * step; in compute_pi_parallel() 44 return ret; in compute_pi_parallel()
|
| /oneTBB/examples/graph/fgbzip2/ |
| H A D | bzlib.cpp | 1037 Int32 ret; in BZ_API() local 1180 if (ret != BZ_FINISH_OK && ret != BZ_STREAM_END) { in BZ_API() 1225 int ret; in BZ_API() local 1300 Int32 n, ret; in BZ_API() local 1342 if (ret != BZ_OK && ret != BZ_STREAM_END) { in BZ_API() 1401 int ret; in BZ_API() local 1414 return ret; in BZ_API() 1438 return ret; in BZ_API() 1449 int ret; in BZ_API() local 1460 return ret; in BZ_API() [all …]
|
| /oneTBB/src/tbbmalloc/ |
| H A D | MapMemory.h | 154 int ret = munmap(area, bytes); in UnmapMemory() local 155 if (-1 == ret) in UnmapMemory() 157 return ret; in UnmapMemory() 181 void *ret = malloc( bytes ); in ErrnoPreservingMalloc() local 182 if (!ret) in ErrnoPreservingMalloc() 184 return ret; in ErrnoPreservingMalloc()
|
| H A D | tbbmalloc.cpp | 66 BOOL ret = GetModuleHandleEx(GET_MODULE_HANDLE_EX_FLAG_FROM_ADDRESS in init_tbbmalloc() local 69 MALLOC_ASSERT(lib && ret, "Allocator can't find itself."); in init_tbbmalloc() 70 tbb::detail::suppress_unused_warning(ret); in init_tbbmalloc()
|
| H A D | tbbmalloc_internal.h | 598 bool ret = tlsPointerKey.destroy(); 600 return ret; 611 bool ret = tlsPointerKey.destroy(); 613 ret &= backend.destroy(); 616 return ret;
|
| H A D | large_objects.cpp | 1023 bool ret = false; in softCachesCleanup() local 1025 ret = loc.regularCleanup(); in softCachesCleanup() 1028 return ret; in softCachesCleanup() 1044 bool ret = releaseAllLocalCaches(); in hardCachesCleanup() local 1045 ret |= orphanedBlocks.cleanup(&backend); in hardCachesCleanup() 1046 ret |= loc.cleanAll(); in hardCachesCleanup() 1047 ret |= backend.clean(); in hardCachesCleanup() 1050 return ret; in hardCachesCleanup()
|
| H A D | backend.cpp | 889 if (void *ret = getRawMemory(size, REGULAR)) { in getBackRefSpace() local 891 return ret; in getBackRefSpace() 893 void *ret = genericGetBlock(1, size, /*needAlignedRes=*/false); in getBackRefSpace() local 894 if (ret) *rawMemUsed = false; in getBackRefSpace() 895 return ret; in getBackRefSpace() 993 void *ret = mremap(oldRegion, oldRegion->allocSz, requestSize, MREMAP_MAYMOVE); in remap() local 994 if (MAP_FAILED == ret) { // can't remap, revert and leave in remap() 999 MemRegion *region = (MemRegion*)ret; in remap()
|
| /oneTBB/test/common/ |
| H A D | tls_limit.h | 63 int ret = pthread_key_delete(handles[lastUsedIdx]); in LimitTLSKeysTo() 64 REQUIRE_MESSAGE(!ret, "Can't delete a key"); in LimitTLSKeysTo() 74 int ret = pthread_key_delete(handles[i]); in ~LimitTLSKeysTo() 75 REQUIRE_MESSAGE(!ret, "Can't delete a key"); in ~LimitTLSKeysTo()
|
| H A D | utils_dynamic_libs.h | 98 BOOL ret = FreeLibrary(lib); in CloseLibrary() local 99 REQUIRE_MESSAGE(ret, "FreeLibrary must be successful"); in CloseLibrary() 101 int ret = dlclose(lib); in CloseLibrary() 102 REQUIRE_MESSAGE(ret == 0, "dlclose must be successful"); in CloseLibrary()
|
| H A D | allocator_test_common.h | 86 int ret = dup2(fd, STDERR_FILENO); // close current stderr in dupToStderrAndClose() local 87 REQUIRE(ret != -1); in dupToStderrAndClose() 88 ret = close(fd); in dupToStderrAndClose() 89 REQUIRE(ret != -1); in dupToStderrAndClose()
|
| H A D | doctest.h | 1144 String ret = __FUNCSIG__; // class doctest::String __cdecl doctest::toString<TYPE>(void) 1145 String::size_type beginPos = ret.find('<'); 1146 …return ret.substr(beginPos + 1, ret.size() - beginPos - static_cast<String::size_type>(sizeof(">(v… 1148 String ret = __PRETTY_FUNCTION__; // doctest::String toString() [with T = TYPE] 1149 String::size_type begin = ret.find('=') + 2; 1150 return ret.substr(begin, ret.size() - begin - 1); 1417 #define SFINAE_OP(ret,op) ret 1419 #define SFINAE_OP(ret,op) decltype((void)(doctest::detail::declval<L>() op doctest::detail::declval…
|
| /oneTBB/examples/common/utility/ |
| H A D | utility.hpp | 432 const int ret = step_function(previous, step_function_argument); in operator ()() local 433 assert(previous < ret); in operator ()() 434 return ret; in operator ()()
|
| /oneTBB/src/tbbmalloc_proxy/ |
| H A D | proxy.cpp | 684 errno_t ret = wcstombs_s(&real_sz, dllStr, sz, dllName, sz-1); in SkipReplacement() 685 __TBB_ASSERT(!ret, "Dll name conversion failed"); in SkipReplacement()
|
| /oneTBB/src/tbb/tools_api/ |
| H A D | ittnotify_static.c | 1231 const char* ret = (const char*)env_value; in __itt_get_env_var() local 1233 return ret; in __itt_get_env_var() 1255 const char* ret = (const char*)env_value; in __itt_get_env_var() 1258 return ret; in __itt_get_env_var()
|