33#ifndef detail_ut_helper_h
34#define detail_ut_helper_h
49 return (
n + (m - 1)) & ~(m - 1);
61 return (
n & ~(m - 1));
Definition: ut0tuple.h:57
constexpr size_t pow2_round(size_t n, size_t m)
Calculates the biggest multiple of m that is not bigger than n when m is a power of two.
Definition: helper.h:57
constexpr size_t calc_align(size_t n, size_t m)
Calculates the smallest multiple of m that is not smaller than n when m is a power of two.
Definition: helper.h:45
constexpr size_t round_to_next_multiple(size_t n, size_t m)
Calculates the next multiple of m that is bigger or equal to n.
Definition: helper.h:68
This file contains a set of libraries providing overloads for regular dynamic allocation routines whi...
Definition: aligned_alloc.h:48
int n
Definition: xcom_base.cc:509