Skip to content

Bitwise

Prefix

! [ Precedence 250 ]

Overload Description
! (n: Int) -> Int Negates the bits of n
! (n &Int) -> Int
! (n @Int) -> Int

Binary

& [ Precedence 370 ]

Overload Description

All reference combinations are defined

(a: Int) & (b: Int) -> Int
Calculates the bitwise operation ab

| [ Precedence 380 ]

Overload Description

All reference combinations are defined

(a: Int) | (b: Int) -> Int
Calculates the bitwise operation ab

>> [ Precedence 350 ]

Overload Description

All reference combinations are defined

(a: Int) >> (b: Int) -> Int
Calculates a with b bits shifted to the right

<< [ Precedence 360 ]

Overload Description

All reference combinations are defined

(a: Int) << (b: Int) -> Int
Calculates a with b bits shifted to the left

^ [ Precedence 390 ]

Overload Description

All reference combinations are defined

(a: Int) ^ (b: Int) -> Int
Calculates the bitwise operation a XOR b