[Git][ghc/ghc][wip/js-staging] Implement sqrt/sqrtf (fix T14619)

Sylvain Henry (@hsyl20) gitlab at gitlab.haskell.org
Mon Oct 3 15:47:36 UTC 2022



Sylvain Henry pushed to branch wip/js-staging at Glasgow Haskell Compiler / GHC


Commits:
c521d947 by Sylvain Henry at 2022-10-03T17:50:47+02:00
Implement sqrt/sqrtf (fix T14619)

- - - - -


1 changed file:

- rts/js/arith.js


Changes:

=====================================
rts/js/arith.js
=====================================
@@ -609,6 +609,14 @@ function h$stg_doubleToWord64zh(v) {
   RETURN_UBX_TUP2(h,l);
 }
 
+function h$sqrt(x) {
+  return Math.sqrt(x);
+}
+
+function h$sqrtf(x) {
+  return Math.fround(Math.sqrt(x));
+}
+
 function h$log1p(x) {
   return Math.log1p(x);
 }



View it on GitLab: https://gitlab.haskell.org/ghc/ghc/-/commit/c521d9478d02fc2a07b073560339c0cfe16fb9be

-- 
View it on GitLab: https://gitlab.haskell.org/ghc/ghc/-/commit/c521d9478d02fc2a07b073560339c0cfe16fb9be
You're receiving this email because of your account on gitlab.haskell.org.


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.haskell.org/pipermail/ghc-commits/attachments/20221003/f879e2b9/attachment-0001.html>


More information about the ghc-commits mailing list