logo       
Google Custom Search
    AddThis Social Bookmark Button
-->

Add test for problematic floats: msg#00019

Subject: Add test for problematic floats
Date: Fri, 5 Oct 2007 14:36:03 -0700

---
 test/floatb.asm |   22 ++++++++++++++++++++++
 1 files changed, 22 insertions(+), 0 deletions(-)
 create mode 100644 test/floatb.asm

diff --git a/test/floatb.asm b/test/floatb.asm
new file mode 100644
index 0000000..b13c4d3
--- /dev/null
+++ b/test/floatb.asm
@@ -0,0 +1,22 @@
+       ;; Known problematic floating-point numbers and their proper
+       ;; encoding...
+       
+               dd 1.1e10
+               dd 0x5023e9ac   ; Should be...
+       
+               dd 50.40e9
+               dd 0x513bc130   ; Should be...
+
+               dq 1.4e23
+               dq 0x44bda56a4b0835c0
+
+               dq 50.48e21
+               dq 0x44a5610d7502feae
+
+               dt 1.2e28
+               dq 0x9b18ab5df7180b6c
+               dw 0x405c
+       
+               dt 50.46e25
+               dq 0xd0b29a67e95dcb60
+               dw 0x4057
-- 
1.5.3.2-dirty


-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/


<Prev in Thread] Current Thread [Next in Thread>