projects
/
libreriscv.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e97ab47
)
(no commit message)
author
lkcl
<lkcl@web>
Thu, 26 May 2022 12:40:50 +0000
(13:40 +0100)
committer
IkiWiki
<ikiwiki.info>
Thu, 26 May 2022 12:40:50 +0000
(13:40 +0100)
openpower/sv/int_fp_mv.mdwn
patch
|
blob
|
history
diff --git
a/openpower/sv/int_fp_mv.mdwn
b/openpower/sv/int_fp_mv.mdwn
index 46a76e9c62f0979fdcf095aaf2d93da5c3401999..1f4dc044afb2b0541c89c4e3b3cf18d4ac9b2410 100644
(file)
--- 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<fp, int>(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