summaryrefslogtreecommitdiff
path: root/gdtoa/gd_qnan.h
diff options
context:
space:
mode:
authorJohn Wiegley <johnw@newartisans.com>2007-04-15 12:55:22 +0000
committerJohn Wiegley <johnw@newartisans.com>2008-04-13 03:35:33 -0400
commitb27b34a76fa16fcb96632a5bf245f3876183c479 (patch)
treefe386b51289569218b776e0d7453b161f071db70 /gdtoa/gd_qnan.h
parentb307f741c493652d64a6dde1df424c07eb698cb4 (diff)
downloadfork-ledger-b27b34a76fa16fcb96632a5bf245f3876183c479.tar.gz
fork-ledger-b27b34a76fa16fcb96632a5bf245f3876183c479.tar.bz2
fork-ledger-b27b34a76fa16fcb96632a5bf245f3876183c479.zip
Added a reference to gdtoa, for doing expected conversion of double to amount.
Diffstat (limited to 'gdtoa/gd_qnan.h')
-rw-r--r--gdtoa/gd_qnan.h12
1 files changed, 12 insertions, 0 deletions
diff --git a/gdtoa/gd_qnan.h b/gdtoa/gd_qnan.h
new file mode 100644
index 00000000..87eba8fb
--- /dev/null
+++ b/gdtoa/gd_qnan.h
@@ -0,0 +1,12 @@
+#define f_QNAN 0xffc00000
+#define d_QNAN0 0x0
+#define d_QNAN1 0xfff80000
+#define ld_QNAN0 0x0
+#define ld_QNAN1 0xc0000000
+#define ld_QNAN2 0xffff
+#define ld_QNAN3 0x0
+#define ldus_QNAN0 0x0
+#define ldus_QNAN1 0x0
+#define ldus_QNAN2 0x0
+#define ldus_QNAN3 0xc000
+#define ldus_QNAN4 0xffff