32#ifndef detail_ut_helper_h
33#define detail_ut_helper_h
48 return (
n + (m - 1)) & ~(m - 1);
60 return (
n & ~(m - 1));
Definition: ut0tuple.h:56
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:56
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:44
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:67
This file contains a set of libraries providing overloads for regular dynamic allocation routines whi...
Definition: aligned_alloc.h:47
int n
Definition: xcom_base.cc:508