Lines Matching refs:ret

91     int ret = getrlimit(RLIMIT_AS,&rlim);  in limitMem()  local
92 if (0 != ret) { in limitMem()
99 ret = setrlimit(RLIMIT_AS,&rlim); in limitMem()
100 if (0 != ret) { in limitMem()
325 int ret = Rposix_memalign(&p, max_alignment, ~max_alignment); in CheckArgumentsOverflow() local
326 REQUIRE(ret == ENOMEM); in CheckArgumentsOverflow()
328 ret = Rposix_memalign(&p, max_alignment, params[i]); in CheckArgumentsOverflow()
329 REQUIRE(ret == ENOMEM); in CheckArgumentsOverflow()
330 ret = Rposix_memalign(&p, sizeof(void*), params[i]); in CheckArgumentsOverflow()
331 REQUIRE(ret == ENOMEM); in CheckArgumentsOverflow()
451 void *ret = Rmalloc(size); in Tmalloc() local
452 if (nullptr != ret) in Tmalloc()
453 CHECK_FAST_MESSAGE(0==((uintptr_t)ret & (alignment-1)), in Tmalloc()
455 return ret; in Tmalloc()
461 void *ret = Rcalloc(num, size); in Tcalloc() local
462 if (nullptr != ret) in Tcalloc()
463 CHECK_FAST_MESSAGE(0==((uintptr_t)ret & (alignment-1)), in Tcalloc()
465 return ret; in Tcalloc()
471 void *ret = Rrealloc(memblock, size); in Trealloc() local
472 if (nullptr != ret) in Trealloc()
473 CHECK_FAST_MESSAGE(0==((uintptr_t)ret & (alignment-1)), in Trealloc()
475 return ret; in Trealloc()
479 int ret = Rposix_memalign(memptr, alignment, size); in Tposix_memalign() local
480 if (0 == ret) in Tposix_memalign()
483 return ret; in Tposix_memalign()
487 void *ret = Raligned_malloc(size, alignment); in Taligned_malloc() local
488 if (nullptr != ret) in Taligned_malloc()
489 CHECK_FAST_MESSAGE(0==((uintptr_t)ret & (alignment-1)), in Taligned_malloc()
491 return ret; in Taligned_malloc()
495 void *ret = Raligned_realloc(memblock, size, alignment); in Taligned_realloc() local
496 if (nullptr != ret) in Taligned_realloc()
497 CHECK_FAST_MESSAGE(0==((uintptr_t)ret & (alignment-1)), in Taligned_realloc()
499 return ret; in Taligned_realloc()
932 int ret; in TestAlignedParameters() local
938 ret = Tposix_memalign(nullptr, bad_align, 100); in TestAlignedParameters()
939 REQUIRE(EINVAL==ret); in TestAlignedParameters()
942 memptr = &ret; in TestAlignedParameters()
943 ret = Tposix_memalign(&memptr, 5*sizeof(void*), 100); in TestAlignedParameters()
944 REQUIRE_MESSAGE(memptr == &ret, in TestAlignedParameters()
946 REQUIRE(EINVAL==ret); in TestAlignedParameters()
950 ret = Tposix_memalign(nullptr, 2, 100); in TestAlignedParameters()
951 REQUIRE(EINVAL==ret); in TestAlignedParameters()
1085 int ret = scalable_allocation_mode(TBBMALLOC_SET_SOFT_HEAP_LIMIT, 16*1024*limit); variable
1086 REQUIRE(ret==TBBMALLOC_OK);
1092 int ret = scalable_allocation_mode(TBBMALLOC_SET_SOFT_HEAP_LIMIT, 0); variable
1093 REQUIRE(ret==TBBMALLOC_OK);