MCPcopy Create free account
hub / github.com/cel-expr/cel-go / bitShiftLeftUintInt

Function bitShiftLeftUintInt

ext/math.go:807–814  ·  view source on GitHub ↗
(value, bits ref.Val)

Source from the content-addressed store, hash-verified

805}
806
807func bitShiftLeftUintInt(value, bits ref.Val) ref.Val {
808 v := value.(types.Uint)
809 bs := bits.(types.Int)
810 if bs < types.IntZero {
811 return types.NewErr("math.bitShiftLeft() negative offset: %d", bs)
812 }
813 return v << bs
814}
815
816func bitShiftRightIntInt(value, bits ref.Val) ref.Val {
817 v := value.(types.Int)

Callers

nothing calls this directly

Calls 1

NewErrFunction · 0.92

Tested by

no test coverage detected