Home
last modified time | relevance | path

Searched refs:num (Results 1 – 11 of 11) sorted by relevance

/SCP-firmware-master/framework/src/
A Dfwk_mm.c16 void *fwk_mm_alloc(size_t num, size_t size) in fwk_mm_alloc() argument
18 void *ptr = malloc(num * size); in fwk_mm_alloc()
27 void *fwk_mm_alloc_notrap(size_t num, size_t size) in fwk_mm_alloc_notrap() argument
29 return malloc(num * size); in fwk_mm_alloc_notrap()
34 void *ptr = aligned_alloc(alignment, num * size); in fwk_mm_alloc_aligned()
43 void *fwk_mm_calloc(size_t num, size_t size) in fwk_mm_calloc() argument
45 void *ptr = calloc(num, size); in fwk_mm_calloc()
55 void *ptr = fwk_mm_alloc_aligned(alignment, num, size); in fwk_mm_calloc_aligned()
58 (void)memset(ptr, 0, num * size); in fwk_mm_calloc_aligned()
66 void *fwk_mm_realloc(void *ptr, size_t num, size_t size) in fwk_mm_realloc() argument
[all …]
/SCP-firmware-master/framework/test/
A Dtest_fwk_math.c53 unsigned int num = ~0u >> 5; in test_fwk_math_clz_ui() local
55 assert(fwk_math_clz(num) == 5); in test_fwk_math_clz_ui()
60 unsigned long num = ~0ul >> 5; in test_fwk_math_clz_ul() local
62 assert(fwk_math_clz(num) == 5); in test_fwk_math_clz_ul()
67 unsigned long long num = ~0ull >> 5; in test_fwk_math_clz_ull() local
69 assert(fwk_math_clz(num) == 5); in test_fwk_math_clz_ull()
74 unsigned int num = UINT_MAX; in test_fwk_math_log2_ui() local
77 assert(fwk_math_log2(num) == expected); in test_fwk_math_log2_ui()
82 unsigned long num = ULONG_MAX; in test_fwk_math_log2_ul() local
85 assert(fwk_math_log2(num) == expected); in test_fwk_math_log2_ul()
[all …]
A Dtest_fwk_module.c184 void * __wrap_fwk_mm_calloc(size_t num, size_t size) in __wrap_fwk_mm_calloc() argument
186 if (num == 0) in __wrap_fwk_mm_calloc()
189 return calloc(num, size); in __wrap_fwk_mm_calloc()
192 return calloc(num, size); in __wrap_fwk_mm_calloc()
A Dtest_fwk_notification.c29 void *__wrap_fwk_mm_calloc(size_t num, size_t size) in __wrap_fwk_mm_calloc() argument
32 fwk_mm_calloc_num = num; in __wrap_fwk_mm_calloc()
34 fwk_mm_calloc_val = (void *)calloc(num, size); in __wrap_fwk_mm_calloc()
A Dtest_fwk_core.c31 void *__wrap_fwk_mm_calloc(size_t num, size_t size) in __wrap_fwk_mm_calloc() argument
34 fwk_mm_calloc_val = (void *)calloc(num, size); in __wrap_fwk_mm_calloc()
/SCP-firmware-master/framework/include/
A Dfwk_math.h46 #define fwk_math_clz(num) _Generic((num), \ argument
49 unsigned long long: __builtin_clzll)(num)
63 #define fwk_math_log2(num) \ argument
64 ((sizeof(num) * CHAR_BIT) - fwk_math_clz(num) - 1)
A Dfwk_mm.h68 void *fwk_mm_alloc(size_t num, size_t size);
86 void *fwk_mm_alloc_notrap(size_t num, size_t size);
122 void *fwk_mm_alloc_aligned(size_t alignment, size_t num, size_t size);
159 void *fwk_mm_calloc(size_t num, size_t size);
192 void *fwk_mm_calloc_aligned(size_t alignment, size_t num, size_t size);
251 void *fwk_mm_realloc(void *ptr, size_t num, size_t size);
/SCP-firmware-master/unit_test/unity_mocks/mocks/
A DMockfwk_mm.h33 #define fwk_mm_alloc_ExpectAndReturn(num, size, cmock_retval) fwk_mm_alloc_CMockExpectAndReturn(__L… argument
35 typedef void* (* CMOCK_fwk_mm_alloc_CALLBACK)(size_t num, size_t size, int cmock_num_calls);
49 … fwk_mm_alloc_notrap_ExpectAndReturn(num, size, cmock_retval) fwk_mm_alloc_notrap_CMockExpectAndRe… argument
51 typedef void* (* CMOCK_fwk_mm_alloc_notrap_CALLBACK)(size_t num, size_t size, int cmock_num_calls);
65 …ned_ExpectAndReturn(alignment, num, size, cmock_retval) fwk_mm_alloc_aligned_CMockExpectAndReturn(… argument
83 #define fwk_mm_calloc_ExpectAndReturn(num, size, cmock_retval) fwk_mm_calloc_CMockExpectAndReturn(_… argument
85 typedef void* (* CMOCK_fwk_mm_calloc_CALLBACK)(size_t num, size_t size, int cmock_num_calls);
99 …ed_ExpectAndReturn(alignment, num, size, cmock_retval) fwk_mm_calloc_aligned_CMockExpectAndReturn(… argument
117 … fwk_mm_realloc_ExpectAndReturn(ptr, num, size, cmock_retval) fwk_mm_realloc_CMockExpectAndReturn(… argument
119 typedef void* (* CMOCK_fwk_mm_realloc_CALLBACK)(void* ptr, size_t num, size_t size, int cmock_num_c…
[all …]
A DMockfwk_mm.c270 void* fwk_mm_alloc(size_t num, size_t size) in fwk_mm_alloc() argument
318 memcpy((void*)(&cmock_call_instance->Expected_num), (void*)(&num), in CMockExpectParameters_fwk_mm_alloc()
371 CMockExpectParameters_fwk_mm_alloc(cmock_call_instance, num, size); in fwk_mm_alloc_CMockExpectAndReturn()
403 void* fwk_mm_alloc_notrap(size_t num, size_t size) in fwk_mm_alloc_notrap() argument
451 memcpy((void*)(&cmock_call_instance->Expected_num), (void*)(&num), in CMockExpectParameters_fwk_mm_alloc_notrap()
536 void* fwk_mm_alloc_aligned(size_t alignment, size_t num, size_t size) in fwk_mm_alloc_aligned() argument
592 memcpy((void*)(&cmock_call_instance->Expected_num), (void*)(&num), in CMockExpectParameters_fwk_mm_alloc_aligned()
684 void* fwk_mm_calloc(size_t num, size_t size) in fwk_mm_calloc() argument
732 memcpy((void*)(&cmock_call_instance->Expected_num), (void*)(&num), in CMockExpectParameters_fwk_mm_calloc()
873 memcpy((void*)(&cmock_call_instance->Expected_num), (void*)(&num), in CMockExpectParameters_fwk_mm_calloc_aligned()
[all …]
/SCP-firmware-master/product/n1sdp/module/n1sdp_scp2pcc/src/
A Dmod_n1sdp_scp2pcc.c40 static void wrdmemcpy(void *destination, const void *source, unsigned int num) in wrdmemcpy() argument
44 for (index = 0; index < num; index++) { in wrdmemcpy()
/SCP-firmware-master/debugger/src/cli/
A Dcli.c1372 int64_t num = 0; in cli_snprintf_arg() local
1401 num = va_arg(*args, int32_t); in cli_snprintf_arg()
1403 if (num < 0) { in cli_snprintf_arg()
1409 unum = (unsigned long int)-num; in cli_snprintf_arg()
1411 unum = (unsigned long int)num; in cli_snprintf_arg()

Completed in 22 milliseconds