Kryptostack
helper.h
Go to the documentation of this file.
1
17#pragma once
18
19#include <cstdint>
20#include <limits>
21
23constexpr __float128 M_PI_180q = 0.017453292519943295769236907684886127134Q;
24
26constexpr __float128 M_180_PIq = 57.295779513082320876798154814105170332405Q;
27
29constexpr __float128 M_2PIq = 6.283185307179586476925286766559005768394Q;
30
32constexpr unsigned __int128 UINT128_MAX = std::numeric_limits<unsigned __int128>::max();
33
35constexpr __int128 INT128_MIN = std::numeric_limits<__int128>::min();
36
38constexpr __int128 INT128_MAX = std::numeric_limits<__int128>::max();
39
43using OTCode = char;
44
48using KSNCode = char;
49
51enum AngularUnit : std::uint8_t {
52 DEG,
53 RAD
54};
constexpr unsigned __int128 UINT128_MAX
Maximum unsigned int128.
Definition: helper.h:32
constexpr __int128 INT128_MIN
Minimum int128.
Definition: helper.h:35
AngularUnit
Angular Unit for trigonometric functions.
Definition: helper.h:51
constexpr __int128 INT128_MAX
Maximum int128.
Definition: helper.h:38
constexpr __float128 M_180_PIq
180/pi.
Definition: helper.h:26
constexpr __float128 M_2PIq
2pi.
Definition: helper.h:29
char OTCode
OTCode - the Object Type Code.
Definition: helper.h:43
constexpr __float128 M_PI_180q
pi/180.
Definition: helper.h:23
char KSNCode
KSNCode - the KryptoStack Normalized Code.
Definition: helper.h:48