@@ -63,23 +63,6 @@ struct FloatTraits<T, 8 /*64bits*/> {
63
63
return pgm_ptr<T>(reinterpret_cast <const T*>(factors));
64
64
}
65
65
66
- static pgm_ptr<T> negativeBinaryPowersOfTenPlusOne () {
67
- ARDUINOJSON_DEFINE_PROGMEM_ARRAY ( //
68
- uint64_t , factors,
69
- {
70
- 0x3FF0000000000000 , // 1e0
71
- 0x3FB999999999999A , // 1e-1
72
- 0x3F50624DD2F1A9FC , // 1e-3
73
- 0x3E7AD7F29ABCAF48 , // 1e-7
74
- 0x3CD203AF9EE75616 , // 1e-15
75
- 0x398039D665896880 , // 1e-31
76
- 0x32DA53FC9631D10D , // 1e-63
77
- 0x2591544581B7DEC2 , // 1e-127
78
- 0x0AFE07B27DD78B14 // 1e-255
79
- });
80
- return pgm_ptr<T>(reinterpret_cast <const T*>(factors));
81
- }
82
-
83
66
static T nan () {
84
67
return forge (0x7ff8000000000000 );
85
68
}
@@ -156,19 +139,6 @@ struct FloatTraits<T, 4 /*32bits*/> {
156
139
return pgm_ptr<T>(reinterpret_cast <const T*>(factors));
157
140
}
158
141
159
- static pgm_ptr<T> negativeBinaryPowersOfTenPlusOne () {
160
- ARDUINOJSON_DEFINE_PROGMEM_ARRAY (uint32_t , factors,
161
- {
162
- 0x3f800000 , // 1e0f
163
- 0x3dcccccd , // 1e-1f
164
- 0x3a83126f , // 1e-3f
165
- 0x33d6bf95 , // 1e-7f
166
- 0x26901d7d , // 1e-15f
167
- 0x0c01ceb3 // 1e-31f
168
- });
169
- return pgm_ptr<T>(reinterpret_cast <const T*>(factors));
170
- }
171
-
172
142
static T forge (uint32_t bits) {
173
143
return alias_cast<T>(bits);
174
144
}
0 commit comments