From: lkcl Date: Thu, 26 May 2022 12:40:50 +0000 (+0100) Subject: (no commit message) X-Git-Tag: opf_rfc_ls005_v1~2077 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=80ca11c1d8cbbf0418664a5b23a812dfb1d474d9;p=libreriscv.git --- diff --git a/openpower/sv/int_fp_mv.mdwn b/openpower/sv/int_fp_mv.mdwn index 46a76e9c6..1f4dc044a 100644 --- a/openpower/sv/int_fp_mv.mdwn +++ b/openpower/sv/int_fp_mv.mdwn @@ -476,7 +476,7 @@ Section 7.1 of the ECMAScript / JavaScript def fp_to_int_java_script(v: fp) -> int: if v is NaN or infinite: return 0 - v = rint(v, rounding_mode) + v = rint(v, rounding_mode) # assume no loss of precision in result v = v mod int::VALUE_COUNT # 2^32 for i32, 2^64 for i64, result is non-negative bits = (uint)v return (int)bits