MySQL 8.4.2
Source Code Documentation
ut0byte.ic File Reference

Utilities for byte operations. More...

Functions

constexpr uint64_t ut_ull_create (uint32_t high, uint32_t low)
 Creates a 64-bit integer out of two 32-bit integers. More...
 
static uint64_t ut_uint64_align_down (uint64_t n, ulint align_no)
 
static uint64_t ut_uint64_align_up (uint64_t n, ulint align_no)
 
static void * ut_align (const void *ptr, ulint align_no)
 
static void * ut_align_down (const void *ptr, ulint align_no)
 
static ulint ut_align_offset (const void *ptr, ulint align_no)
 
static bool ut_bit_get_nth (ulint a, ulint n)
 
static ulint ut_bit_set_nth (ulint a, ulint n, bool val)
 

Detailed Description

Utilities for byte operations.

Created 5/30/1994 Heikki Tuuri

Function Documentation

◆ ut_align()

static void * ut_align ( const void *  ptr,
ulint  align_no 
)
inlinestatic

◆ ut_align_down()

static void * ut_align_down ( const void *  ptr,
ulint  align_no 
)
inlinestatic

◆ ut_align_offset()

static ulint ut_align_offset ( const void *  ptr,
ulint  align_no 
)
inlinestatic

◆ ut_bit_get_nth()

static bool ut_bit_get_nth ( ulint  a,
ulint  n 
)
inlinestatic

◆ ut_bit_set_nth()

static ulint ut_bit_set_nth ( ulint  a,
ulint  n,
bool  val 
)
inlinestatic

◆ ut_uint64_align_down()

static uint64_t ut_uint64_align_down ( uint64_t  n,
ulint  align_no 
)
inlinestatic

◆ ut_uint64_align_up()

static uint64_t ut_uint64_align_up ( uint64_t  n,
ulint  align_no 
)
inlinestatic

◆ ut_ull_create()

constexpr uint64_t ut_ull_create ( uint32_t  high,
uint32_t  low 
)
constexpr

Creates a 64-bit integer out of two 32-bit integers.

Parameters
[in]highhigh-order 32 bits
[in]lowlow-order 32 bits
Returns
created integer