Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
Synopsis
- class SignConversion ubv sbv | ubv -> sbv, sbv -> ubv where
- toSigned :: ubv -> sbv
- toUnsigned :: sbv -> ubv
Documentation
class SignConversion ubv sbv | ubv -> sbv, sbv -> ubv where Source #
Convert values between signed and unsigned.
toSigned :: ubv -> sbv Source #
Convert unsigned value to the corresponding signed value.
toUnsigned :: sbv -> ubv Source #
Convert signed value to the corresponding unsigned value.
Instances
SignConversion Word16 Int16 Source # | |
SignConversion Word32 Int32 Source # | |
SignConversion Word64 Int64 Source # | |
SignConversion Word8 Int8 Source # | |
SignConversion Word Int Source # | |
(KnownNat n, 1 <= n) => SignConversion (WordN n) (IntN n) Source # | |
(forall (n :: Nat). (KnownNat n, 1 <= n) => SignConversion (ubv n) (sbv n), SignConversion (ubv 1) (sbv 1)) => SignConversion (SomeBV ubv) (SomeBV sbv) Source # | |
(KnownNat n, 1 <= n) => SignConversion (SymWordN n) (SymIntN n) Source # | |