HikoGUI
A low latency retained GUI
Loading...
Searching...
No Matches
Public Types | Public Member Functions | Data Fields | Static Public Attributes
tt::bigint< T, N > Struct Template Reference

#include <TTauri/Foundation/bigint.hpp>

Public Types

using digit_type = T
 

Public Member Functions

tt_force_inline bigint (bigint const &) noexcept=default
 
tt_force_inline bigintoperator= (bigint const &) noexcept=default
 
tt_force_inline bigint (bigint &&) noexcept=default
 
tt_force_inline bigintoperator= (bigint &&) noexcept=default
 

Data Fields

std::array< digit_type, nr_digits > digits
 

Static Public Attributes

static constexpr int nr_digits = N
 
static constexpr int bits_per_digit = sizeof(digit_type) * 8
 
static constexpr int nr_bits = nr_digits * bits_per_digit
 

Detailed Description

template<typename T, int N>
struct tt::bigint< T, N >

High performance big integer implementation. The bigint is a fixed width integer which will allow the compiler to make aggressive optimizations, unrolling most loops and easy inlining.

Field Documentation

◆ digits

template<typename T , int N>
std::array<digit_type,nr_digits> tt::bigint< T, N >::digits

Digits, in little endian order.


The documentation for this struct was generated from the following file: