aboutsummaryrefslogtreecommitdiff
path: root/src/library.js
diff options
context:
space:
mode:
Diffstat (limited to 'src/library.js')
-rw-r--r--src/library.js7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/library.js b/src/library.js
index 24e35178..fb2d990b 100644
--- a/src/library.js
+++ b/src/library.js
@@ -5735,8 +5735,11 @@ LibraryManager.library = {
rintf: 'rint',
lrint: 'rint',
lrintf: 'rint',
- llrint: 'rint',
- llrintf: 'rint',
+ llrint: function(x) {
+ x = (x < 0) ? -Math.round(-x) : Math.round(x);
+ {{{ makeStructuralReturn(splitI64('x')) }}};
+ },
+ llrintf: 'llrint',
nearbyint: 'rint',
nearbyintf: 'rint',
trunc: function(x) {