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 56125d4 commit 49d9200Copy full SHA for 49d9200
src/Web/GPU/Internal/Bitwise.purs
@@ -1,6 +1,16 @@
1
module Web.GPU.Internal.Bitwise (class Bitwise, or, (.|.)) where
2
3
+import Data.Int.Bits as IntBits
4
+import Data.UInt (UInt)
5
+import Data.UInt as UIntBits
6
+
7
class Bitwise a where
8
or :: a -> a -> a
9
10
+instance Bitwise Int where
11
+ or = IntBits.or
12
13
+instance Bitwise UInt where
14
+ or = UIntBits.or
15
16
infixl 10 or as .|.
0 commit comments