diff options
author | Abhiroop Sarkar <asiamgenius@gmail.com> | 2018-11-05 12:06:58 -0500 |
---|---|---|
committer | Ben Gamari <ben@smart-cactus.org> | 2018-11-17 10:03:17 -0500 |
commit | 36fcf9edee31513db2ddbf716ee0aa79766cbe69 (patch) | |
tree | 76d3bf5734d852b53caea24c70b024f1b24204d5 /libraries/ghc-prim | |
parent | 0e7790abf7d19d19f84c86dc95e50beb65462d12 (diff) | |
download | haskell-36fcf9edee31513db2ddbf716ee0aa79766cbe69.tar.gz |
Introduce Int16# and Word16#
This builds off of D4475.
Bumps binary submodule.
Reviewers: carter, AndreasK, hvr, goldfire, bgamari, simonmar
Subscribers: rwbarton, thomie
Differential Revision: https://phabricator.haskell.org/D5006
Diffstat (limited to 'libraries/ghc-prim')
-rw-r--r-- | libraries/ghc-prim/GHC/Types.hs | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/libraries/ghc-prim/GHC/Types.hs b/libraries/ghc-prim/GHC/Types.hs index 7ab870684d..9f2d3bc15b 100644 --- a/libraries/ghc-prim/GHC/Types.hs +++ b/libraries/ghc-prim/GHC/Types.hs @@ -394,10 +394,12 @@ data RuntimeRep = VecRep VecCount VecElem -- ^ a SIMD vector type | LiftedRep -- ^ lifted; represented by a pointer | UnliftedRep -- ^ unlifted; represented by a pointer | IntRep -- ^ signed, word-sized value - | Int8Rep -- ^ signed, 8-bit value + | Int8Rep -- ^ signed, 8-bit value + | Int16Rep -- ^ signed, 16-bit value | Int64Rep -- ^ signed, 64-bit value (on 32-bit only) | WordRep -- ^ unsigned, word-sized value - | Word8Rep -- ^ unsigned, 8-bit value + | Word8Rep -- ^ unsigned, 8-bit value + | Word16Rep -- ^ unsigned, 16-bit value | Word64Rep -- ^ unsigned, 64-bit value (on 32-bit only) | AddrRep -- ^ A pointer, but /not/ to a Haskell value | FloatRep -- ^ a 32-bit floating point number |