We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2df53d6 commit e7e77baCopy full SHA for e7e77ba
Data/Digest/Pure/MD5.hs
@@ -54,6 +54,9 @@ import Crypto.Classes (Hash(..), hash)
54
import Control.Monad (replicateM_)
55
import Data.Tagged
56
import Numeric
57
+#ifdef FastWordExtract
58
+import System.IO.Unsafe (unsafePerformIO)
59
+#endif
60
61
-- | Block size in bits
62
md5BlockSize :: Int
@@ -240,7 +243,7 @@ applyMD5Rounds (MD5Par a b c d) w = {-# SCC "applyMD5Rounds" #-}
240
243
{-# INLINE applyMD5Rounds #-}
241
244
242
245
#ifdef FastWordExtract
-getNthWord n b = inlinePerformIO (unsafeUseAsCString b (flip peekElemOff n . castPtr))
246
+getNthWord n b = unsafePerformIO (unsafeUseAsCString b (flip peekElemOff n . castPtr))
247
{-# INLINE getNthWord #-}
248
#else
249
getNthWord :: Int -> B.ByteString -> Word32
0 commit comments