-
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathPuff.h
80 lines (61 loc) · 2.02 KB
/
Puff.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
// Copyright Kabuki Starship� <kabukistarship.com>.
#pragma once
#ifndef SCRIPT2_PUFF_DECL
#define SCRIPT2_PUFF_DECL
#include <_Config.h>
#if SEAM >= SCRIPT2_ITOS
namespace _ {
/* Lookup table of ASCII CHT pairs for 00, 01, ..., 99. */
const IUB* BinaryLUTDecimals();
enum {
cUI2DigitTotal = 5,
cUI4DigitTotal = 9,
cUI8DigitTotal = 20,
};
const IUD* Pow10_UI8();
IUD Pow10(IUD index);
const IUC* Pow10_UI4();
IUC Pow10(IUC index);
const IUB* Pow10_UI2();
IUB Pow10(IUB index);
/* Finds the string length of the given value. */
LIB_MEMBER ISC STRLength(IUB value);
LIB_MEMBER ISC STRLength(ISB value);
LIB_MEMBER ISC STRLength(IUC value);
LIB_MEMBER ISC STRLength(ISC value);
LIB_MEMBER ISC STRLength(IUD value);
LIB_MEMBER ISC STRLength(ISD value);
#if SEAM >= SCRIPT2_FTOS
/* IEEE754 Powers of 10 integral portions LUT. */
const void* Binary32Pow10IntegralPortions();
/* IEEE754 Powers of 10 integral portions LUT. */
const void* Binary64Pow10IntegralPortions();
/* Lookup table of the IEEE754 integral portion of pre-computed powers of 10.
*/
const void* BinaryPow10Exponents();
#if USING_FPC == YES_0
/* Gets the maximum number_ of digits required to represent a FPC as in
ASCII. */
LIB_MEMBER ISC FloatDigitsMax();
/* Checks if the given value is not NaN or +/- Infinity. */
LIB_MEMBER BOL IsFinite(FPC value);
/* Checks if the given value is not NaN or +/- Infinity. */
LIB_MEMBER BOL IsInfinite(FPC value);
/* Returns the ceiling of the given value to the next highest up integer. */
LIB_MEMBER FPC Ceiling(FPC value);
#endif
#if USING_FPD == YES_0
/* Gets the maximum number_ of digits required to represent a FPD as in
ASCII. */
LIB_MEMBER ISC DoubleDigitsMax();
/* Checks if the given value is not NaN or +/- Infinity. */
LIB_MEMBER BOL IsFinite(FPD value);
/* Returns the ceiling of the given value to the next highest up integer. */
LIB_MEMBER BOL IsInfinite(FPD value);
/* Returns the ceiling of the given value to the next highest up integer. */
LIB_MEMBER FPD Ceiling(FPD value);
#endif
#endif
} //< namespace _
#endif
#endif