Skip to content

Commit 1878739

Browse files
authored
[js-api] Update references to IEEE 754-2008. (#1852)
Update them to refer to IEEE 754-2019. I've confirmed that the relevant section names and numbers in 754-2019 are the same.
1 parent 06a88d0 commit 1878739

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

document/js-api/index.bs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1213,7 +1213,7 @@ The algorithm <dfn>ToWebAssemblyValue</dfn>(|v|, |type|) coerces a JavaScript va
12131213
1. Let |n| be an implementation-defined integer such that [=canon=]<sub>32</sub> ≤ |n| < 2<sup>[=signif=](32)</sup>.
12141214
1. Let |f32| be [=nan=](n).
12151215
1. Otherwise,
1216-
1. Let |f32| be |number| rounded to the nearest representable value using IEEE 754-2008 round to nearest, ties to even mode. [[IEEE-754]]
1216+
1. Let |f32| be |number| rounded to the nearest representable value using IEEE 754-2019 round to nearest, ties to even mode. [[IEEE-754]]
12171217
1. Return [=f32.const=] |f32|.
12181218
1. If |type| is [=f64=],
12191219
1. Let |number| be [=?=] [$ToNumber$](|v|).

test/core/float_exprs.wast

+2-2
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@
3535
(assert_return (invoke "f64.no_fma" (f64.const 0x1.7e2c44058a799p+52) (f64.const 0x1.c73b71765b8b2p+685) (f64.const -0x1.16c641df0b108p+690)) (f64.const 0x1.53ccb53de0bd1p+738))
3636

3737
;; Test that x+0.0 is not folded to x.
38-
;; See IEEE 754-2008 10.4 "Literal meaning and value-changing optimizations".
38+
;; See IEEE 754-2019 10.4 "Literal meaning and value-changing optimizations".
3939

4040
(module
4141
(func (export "f32.no_fold_add_zero") (param $x f32) (result f32)
@@ -94,7 +94,7 @@
9494
(assert_return (invoke "f64.no_fold_mul_zero" (f64.const nan:0x4000000000000)) (f64.const nan:arithmetic))
9595

9696
;; Test that x*1.0 is not folded to x.
97-
;; See IEEE 754-2008 10.4 "Literal meaning and value-changing optimizations".
97+
;; See IEEE 754-2019 10.4 "Literal meaning and value-changing optimizations".
9898

9999
(module
100100
(func (export "f32.no_fold_mul_one") (param $x f32) (result f32)

0 commit comments

Comments
 (0)