Home
last modified time | relevance | path

Searched refs:n_bytes (Results 1 – 4 of 4) sorted by relevance

/llvm-project-15.0.7/clang/test/Analysis/
H A Dgmalloc.c10 gpointer g_malloc(gsize n_bytes);
11 gpointer g_malloc0(gsize n_bytes);
13 gpointer g_try_malloc(gsize n_bytes);
14 gpointer g_try_malloc0(gsize n_bytes);
26 static const gsize n_bytes = 1024; variable
29 gpointer g1 = g_malloc(n_bytes); in f1()
30 gpointer g2 = g_malloc0(n_bytes); in f1()
31 g1 = g_realloc(g1, n_bytes * 2); in f1()
48 gpointer g1 = g_malloc(n_bytes); in f2()
50 g1 = g_realloc(g1, n_bytes * 2); in f2()
[all …]
/llvm-project-15.0.7/polly/lib/External/isl/imath/examples/
H A Drandprime.c152 mp_size n_bytes = (n_bits + CHAR_BIT - 1) / CHAR_BIT; in mp_int_randomize() local
156 if ((buf = malloc(n_bytes)) == NULL) return MP_MEMORY; in mp_int_randomize()
158 if ((mp_size)randomize(buf, n_bytes) != n_bytes) { in mp_int_randomize()
173 buf[n_bytes - 1] |= 1; in mp_int_randomize()
175 res = mp_int_read_unsigned(a, buf, n_bytes); in mp_int_randomize()
178 memset(buf, 0, n_bytes); in mp_int_randomize()
H A Drsakey.c214 mp_size n_bytes = (n_bits + CHAR_BIT - 1) / CHAR_BIT; in mp_int_randomize() local
218 if ((buf = malloc(n_bytes)) == NULL) return MP_MEMORY; in mp_int_randomize()
220 if ((mp_size)randomize(buf, n_bytes) != n_bytes) { in mp_int_randomize()
235 buf[n_bytes - 1] |= 1; in mp_int_randomize()
237 res = mp_int_read_unsigned(a, buf, n_bytes); in mp_int_randomize()
240 memset(buf, 0, n_bytes); in mp_int_randomize()
/llvm-project-15.0.7/lldb/examples/darwin/heap_find/heap/
H A Dheap_find.cpp287 void *safe_malloc(size_t n_bytes) { in safe_malloc() argument
288 if (n_bytes > 0) { in safe_malloc()
291 ((n_bytes + k_page_size - 1) / k_page_size) * k_page_size; in safe_malloc()