Home
last modified time | relevance | path

Searched refs:ret (Results 1 – 25 of 29) sorted by relevance

12

/oneTBB/test/tbbmalloc/
H A Dtest_malloc_compliance.cpp92 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 Dtest_malloc_overload.cpp274 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 Dtest_malloc_atexit.cpp44 bool ret = __TBB_malloc_safer_msize(o, nullptr) >= reqSz; in dll_isMallocOverloaded() local
46 return ret; in dll_isMallocOverloaded()
H A Dtest_scalable_allocator.cpp153 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 Dtest_malloc_whitebox.cpp384 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 Dtest_malloc_pools.cpp73 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 Dsemaphore.h155 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 Dtest_eh_thread.cpp48 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 Dtest_tbb_fork.cpp51 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 Dtest_indexer_node.cpp123 TT ret = my_mult * (TT)my_count; in operator ()() local
126 return ret; in operator ()()
/oneTBB/examples/parallel_reduce/pi/
H A Dmain.cpp33 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 Dpi.cpp37 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 Dbzlib.cpp1037 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 DMapMemory.h154 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 Dtbbmalloc.cpp66 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 Dtbbmalloc_internal.h598 bool ret = tlsPointerKey.destroy();
600 return ret;
611 bool ret = tlsPointerKey.destroy();
613 ret &= backend.destroy();
616 return ret;
H A Dlarge_objects.cpp1023 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 Dbackend.cpp889 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 Dtls_limit.h63 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 Dutils_dynamic_libs.h98 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 Dallocator_test_common.h86 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 Ddoctest.h1144 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 Dutility.hpp432 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 Dproxy.cpp684 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 Dittnotify_static.c1231 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()

12