mirror of
https://github.com/idris-lang/Idris2.git
synced 2025-01-04 22:24:19 +03:00
Added the shiftr function clause for Integer.
This commit is contained in:
parent
8e55c32694
commit
99615c2877
@ -308,6 +308,7 @@ shiftr (I8 x) (I8 y) = pure $ I8 (prim__shr_Int8 x y)
|
|||||||
shiftr (I16 x) (I16 y) = pure $ I16 (prim__shr_Int16 x y)
|
shiftr (I16 x) (I16 y) = pure $ I16 (prim__shr_Int16 x y)
|
||||||
shiftr (I32 x) (I32 y) = pure $ I32 (prim__shr_Int32 x y)
|
shiftr (I32 x) (I32 y) = pure $ I32 (prim__shr_Int32 x y)
|
||||||
shiftr (I64 x) (I64 y) = pure $ I64 (prim__shr_Int64 x y)
|
shiftr (I64 x) (I64 y) = pure $ I64 (prim__shr_Int64 x y)
|
||||||
|
shiftr (BI x) (BI y) = pure $ BI (prim__shr_Integer x y)
|
||||||
shiftr (B8 x) (B8 y) = pure $ B8 $ (prim__shr_Bits8 x y)
|
shiftr (B8 x) (B8 y) = pure $ B8 $ (prim__shr_Bits8 x y)
|
||||||
shiftr (B16 x) (B16 y) = pure $ B16 (prim__shr_Bits16 x y)
|
shiftr (B16 x) (B16 y) = pure $ B16 (prim__shr_Bits16 x y)
|
||||||
shiftr (B32 x) (B32 y) = pure $ B32 (prim__shr_Bits32 x y)
|
shiftr (B32 x) (B32 y) = pure $ B32 (prim__shr_Bits32 x y)
|
||||||
|
Loading…
Reference in New Issue
Block a user