Home | History | Annotate | Download | only in share

Lines Matching refs:n2

29 // malloc(n1 * n2) then memset to zero
30 static inline void *safe_calloc_(size_t n1, size_t n2)
33 return calloc(n1, n2);
36 // malloc(n1 + n2)
37 static inline void *safe_malloc_add_2op_(size_t n1, size_t n2)
39 unsigned long long n = n1 + n2;
45 // malloc(n1 * n2)
46 static inline void *safe_malloc_mul_2op_(size_t n1, size_t n2)
48 unsigned long long n = n1 * n2;
54 // malloc(n1 * (n2 + n3))
55 static inline void *safe_malloc_muladd2_(size_t n1, size_t n2, size_t n3)
57 unsigned long long n = n1 * (n2 + n3);
63 // realloc(ptr, n1 * n2)
64 static inline void *safe_realloc_mul_2op_(void *ptr, size_t n1, size_t n2)
66 unsigned long long n = n1 * n2;