HikoGUI
A low latency retained GUI
Loading...
Searching...
No Matches
Macros | Typedefs
stdint.hpp File Reference

Extra integer definitions. More...

#include "architecture.hpp"
#include <cstdint>

Go to the source code of this file.

Macros

#define HI_HAS_INT128   1
 

Typedefs

using v1::int128_t = __int128_t
 
using v1::uint128_t = unsigned __int128_t
 
using v1::longreg_t = int64_t
 
using v1::ulongreg_t = uint64_t
 

Detailed Description

Extra integer definitions.

This file defines types that match the CPU's native register. hi::register_signed_long and hi::register_unsigned_long are double the size of a native register; the double size integers are often the results of a single CPU instruction.

For example the x86-64 instruction MUL can multiply two 64 bit integers together, the result is placed in two 64 bit register. DIV can divide a 128 bit integer in two registers by a 64 bit integer, with a 64 bit integer result.