@@ -13,22 +13,22 @@ module Bitwise where
14import Native.Bitwise
14import Native.Bitwise
16−{-| Bitwise “and”
16+{-| Bitwise AND
18and : Int -> Int -> Int
18and : Int -> Int -> Int
19and = Native.Bitwise.and
19and = Native.Bitwise.and
21−{-| Bitwise “or”
21+{-| Bitwise OR
23or : Int -> Int -> Int
23or : Int -> Int -> Int
24or = Native.Bitwise.or
24or = Native.Bitwise.or
26−{-| Bitwise “xor”
26+{-| Bitwise XOR
28xor : Int -> Int -> Int
28xor : Int -> Int -> Int
29xor = Native.Bitwise.xor
29xor = Native.Bitwise.xor
31−{-| Flip each bit individually, often called “bitwise not”
31+{-| Flip each bit individually, often called bitwise NOT
33complement : Int -> Int
33complement : Int -> Int
34complement = Native.Bitwise.complement
34complement = Native.Bitwise.complement
@@ -51,7 +51,7 @@ whatever is the topmost bit. This can be used to divide numbers by powers of two
52This is called an [arithmatic right
52This is called an [arithmatic right
53shift](http://en.wikipedia.org/wiki/Bitwise_operation#Arithmetic_shift),
53shift](http://en.wikipedia.org/wiki/Bitwise_operation#Arithmetic_shift),
54−often written (>>), and sometimes called a “sign-propagating”
54+often written (>>), and sometimes called a sign-propagating
55right shift because it fills empty spots with copies of the highest bit.
55right shift because it fills empty spots with copies of the highest bit.
57shiftRight : Int -> Int -> Int
57shiftRight : Int -> Int -> Int
@@ -66,7 +66,7 @@ zeros.
67This is called an [logical right
67This is called an [logical right
68shift](http://en.wikipedia.org/wiki/Bitwise_operation#Logical_shift), often written (>>>),
68shift](http://en.wikipedia.org/wiki/Bitwise_operation#Logical_shift), often written (>>>),
69−and sometimes called a “zero-fill” right shift because it fills empty spots
69+and sometimes called a zero-fill right shift because it fills empty spots
70with zeros.
70with zeros.
72shiftRightLogical : Int -> Int -> Int
72shiftRightLogical : Int -> Int -> Int