IgrOS-Kernel 0.1.34.545
Simple C++20 Kernel for i386/x86_64
Loading...
Searching...
No Matches
kAlign.hpp File Reference

Kernel alignment functions definitions. More...

#include <bit>
#include <concepts>
#include <type_traits>
#include <arch/types.hpp>
Include dependency graph for kAlign.hpp:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  igros::klib::kAlign
 Kernel alignment handling (ALIGN in bytes, power of two; 0 - natural alignment of pointed type). More...

Namespaces

namespace  igros
 IgrOS kernel: common types and literals.
namespace  igros::klib
 Freestanding kernel library: printing, math, alignment, flags, strings.

Concepts

concept  igros::klib::kalignable
 Alignable value: unsigned integer (address) or pointer.

Typedefs

template<kalignable T>
using igros::klib::kalign_int_t = std::conditional_t<std::is_pointer_v<T>, igros_usize_t, T>
 Integer type for alignment arithmetic (pointers as addresses, integers as is: 64-bit on i386 too).

Detailed Description

Kernel alignment functions definitions.

Date
03 Nov 2026
Author
Igor Baklykov

Definition in file kAlign.hpp.