MySQL 8.0.31
Source Code Documentation
helper.h File Reference

Small helper functions. More...

Go to the source code of this file.

Namespaces

namespace  ut
 This file contains a set of libraries providing overloads for regular dynamic allocation routines which allow for opt-in memory instrumentation through performance schema memory engine (PFS).
 
namespace  ut::detail
 

Functions

constexpr size_t ut::detail::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. More...
 
constexpr size_t ut::detail::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. More...
 
constexpr size_t ut::detail::round_to_next_multiple (size_t n, size_t m)
 Calculates the next multiple of m that is bigger or equal to n. More...
 

Detailed Description

Small helper functions.

Exists mostly because ut0ut.h is not usable from every translation unit.