Mathematic Bit Operations

Mathematic Bit Operations

band

func band(arg1 interface{}, arg2 interface{}, args ...interface{})
interface{}
Returns the result of bitwise AND operation (&) between all arguments.

Aliases

  • bitwiseAND

bclear

func bclear(arg1 interface{}, arg2 interface{}, args ...interface{})
interface{}
Performs a bitwise clear (&^) between all arguments.

Aliases

  • bitwiseClear

bor

func bor(arg1 interface{}, arg2 interface{}, args ...interface{})
interface{}
Performs a bitwise OR (|) between all arguments.

Aliases

  • bitwiseOR

bxor

func bxor(arg1 interface{}, arg2 interface{}, args ...interface{})
interface{}
Performs a bitwise exclusive OR (^) between all arguments.

Aliases

  • bitwiseXOR

lshift

func lshift(arg1 interface{}, arg2 interface{}) interface{}
Performs a left shift (<<) on argument.

Aliases

  • leftShift

rshift

func rshift(arg1 interface{}, arg2 interface{}) interface{}
Performs a right shift (>>) on arguments.

Aliases

  • rightShift