Duke's Big Numbers 1.0
C++ and Blueprint libraries for performing math, analysis, and formatting with really large numbers (>10e308).
Loading...
Searching...
No Matches
IeeeHelper.h
1// Copyright (C)2023 Smiling Cat Entertainment, LTD. All Rights Reserved.
2
3#pragma once
4
5#include "Inline.h"
6
7namespace Duke
8{
13 {
22 static double MakeFloat(int32 sign, int32 exponent, uint32 mantissa);
23
32 static double MakeDouble(int32 sign, int32 exponent, uint64 mantissa);
33
42 static void BreakDouble(double number, int32& sign, int32& exponent, uint64& mantissa);
43
52 static void BreakFloat(float number, int32& sign, int32& exponent, uint32& mantissa);
53
60 static int32 GetExponent(float number);
61
68 static int32 GetExponent(double number);
69 };
70
71// If conditional inlining is ON, include inlinable functions here.
72#if DBN_INLINE_ENABLED
73#include "IeeeHelper.inl"
74#endif
75
76}
Definition: IeeeHelper.h:13
static double MakeDouble(int32 sign, int32 exponent, uint64 mantissa)
static double MakeFloat(int32 sign, int32 exponent, uint32 mantissa)
static void BreakDouble(double number, int32 &sign, int32 &exponent, uint64 &mantissa)
Definition: IeeeHelper.inl:6
static int32 GetExponent(float number)
Definition: IeeeHelper.inl:26
static void BreakFloat(float number, int32 &sign, int32 &exponent, uint32 &mantissa)
Definition: IeeeHelper.inl:16