Add a comment about newRounded

This commit is contained in:
Harendra Kumar 2024-01-11 13:23:56 +05:30
parent 63f9adfbba
commit 8eab0f07cd

View File

@ -142,6 +142,8 @@ asUnpinnedPtrUnsafe arr f = do
nil :: MutByteArray
nil = unsafePerformIO $ new 0
-- XXX add "newRounded" to round up the large size to the next page boundary
-- and return the allocated size.
{-# INLINE new #-}
new :: Int -> IO MutByteArray
new nbytes | nbytes < 0 =