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

Extra integer definitions. More...

#include "../utility/utility.hpp"
#include "../macros.hpp"
#include <cstdint>

Go to the source code of this file.

Namespaces

namespace  v1
 DOXYGEN BUG.
 

Macros

#define HI_HAS_INT128   1
 

Typedefs

using v1::longreg_t = int64_t
 Signed integer twice the size of a standard CPU register.
 
using v1::ulongreg_t = uint64_t
 Unsigned integer twice the size of a standard CPU register.
 

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.