Skip to content

Commit 1fa9cc3

Browse files
committed
Adjust powers.h to round "1" down by one ULP.
1 parent 062fb51 commit 1fa9cc3

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

debian/changelog

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
postgresql-unit (7.0-3) UNRELEASED; urgency=medium
22

33
* Import definitions.unit 2.44 from units 2.18 with 36 new units.
4+
* Adjust powers.h to round "1" down by one ULP.
45

56
-- Christoph Berg <[email protected]> Wed, 31 Oct 2018 22:43:09 +0100
67

powers.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
#define POWER_9 0x1.dcd64ffffffffp+29 /* G 0x1.dcd65p+29 */
1111
#define POWER_6 0x1.e847fffffffffp+19 /* M 0x1.e848p+19 */
1212
#define POWER_3 0x1.f3fffffffffffp+9 /* k 0x1.f4p+9 */
13-
#define POWER_0 1 /* 0x1p+0 */
13+
#define POWER_0 0x1.fffffffffffffp-1 /* 0x1p+0 */
1414
#define POWER__3 0x1.0624dd2f1a9fbp-10 /* m 0x1.0624dd2f1a9fcp-10 */
1515
#define POWER__6 0x1.0c6f7a0b5ed8cp-20 /* µ 0x1.0c6f7a0b5ed8dp-20 */
1616
#define POWER__9 1e-09 /* n 0x1.12e0be826d695p-30 */

0 commit comments

Comments
 (0)