Lines Matching +full:constant +full:- +full:on +full:- +full:time
1 /* SPDX-License-Identifier: GPL-2.0-only */
13 #include "thread-registry.h"
19 * Allocate storage based on element counts, sizes, and alignment.
22 * optionally preceded by one object of another type (i.e., a struct with trailing variable-length
25 * Why is this inline? The sizes and alignment will always be constant, when invoked through the
26 * macros below, and often the count will be a compile-time constant 1 or the number of extra bytes
27 * will be a compile-time constant 0. So at least some of the arithmetic can usually be optimized
28 * away, and the run-time selection between allocation functions always can. In many cases, it'll
29 * boil down to just a function call with a constant size.
46 if ((size > 0) && (count > ((SIZE_MAX - extra) / size))) { in __vdo_do_allocation()
48 * This is kind of a hack: We rely on the fact that SIZE_MAX would cover the entire in __vdo_do_allocation()
101 * Allocate memory starting on a cache line boundary, logging an error if the allocation fails. The