From 9f182aefbe8d60071f502a21d2e27b98e4e7e459 Mon Sep 17 00:00:00 2001 From: Kartik Agaram Date: Sun, 4 Oct 2020 11:19:23 -0700 Subject: 6947 - change exponent separator since 'e' is hex --- 408print-float.mu | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/408print-float.mu b/408print-float.mu index 69dd3da6..d1782044 100644 --- a/408print-float.mu +++ b/408print-float.mu @@ -8,7 +8,7 @@ # mantissa exponent # = 0 | 000000000000000000000000 | 01111110 # zero-pad mantissa exponent -# = +1.000000 e -01 +# = +1.000000 p -01 fn test-print-float-normal { var screen-on-stack: screen var screen/esi: (addr screen) <- address screen-on-stack @@ -21,7 +21,7 @@ fn test-print-float-normal { half <- divide two-f print-float screen, half # - check-screen-row screen, 1, "1.000000e-01 ", "F - test-print-float-normal" + check-screen-row screen, 1, "1.000000p-01 ", "F - test-print-float-normal" } fn test-print-float-zero { @@ -150,7 +150,7 @@ $print-float:body: { mantissa <- and 0x7fffff print-int32-hex-bits screen, mantissa, 0x18 # print exponent - print-string screen, "e" + print-string screen, "p" exponent <- subtract 0x7f compare exponent, 0 { -- cgit 1.4.1-2-gfad0 55cba61be84b022860c25ff937d5dda9013150'>blame commit diff stats
path: root/freebsd/util.h
blob: fe3d6b70d813dea0e7f6345d826a328a349e2c6a (plain) (tree)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15