[Git][ghc/ghc][wip/ghc-9.6] base: Ensure that utf8DecodeCharPtr can inline

Ben Gamari (@bgamari) gitlab at gitlab.haskell.org
Wed Dec 14 14:31:23 UTC 2022



Ben Gamari pushed to branch wip/ghc-9.6 at Glasgow Haskell Compiler / GHC


Commits:
5838edde by Ben Gamari at 2022-12-14T09:30:41-05:00
base: Ensure that utf8DecodeCharPtr can inline

- - - - -


1 changed file:

- libraries/base/GHC/Encoding/UTF8.hs


Changes:

=====================================
libraries/base/GHC/Encoding/UTF8.hs
=====================================
@@ -146,6 +146,7 @@ utf8DecodeCharPtr :: Ptr Word8 -> (Char, Int)
 utf8DecodeCharPtr !(Ptr a#) =
   case utf8DecodeCharAddr# a# 0# of
     (# c#, nBytes# #) -> ( C# c#, I# nBytes# )
+{-# INLINEABLE utf8DecodeCharPtr #-}
 
 -- | Decode a single codepoint starting at the given byte offset into a
 -- 'ByteArray#'.



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

-- 
View it on GitLab: https://gitlab.haskell.org/ghc/ghc/-/commit/5838eddefaa2e458c36a034ae6d4255538bf7b07
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/20221214/ae83bc35/attachment.html>


More information about the ghc-commits mailing list