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

Function bitShiftLeftIntInt

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

Source from the content-addressed store, hash-verified

796}
797
798func bitShiftLeftIntInt(value, bits ref.Val) ref.Val {
799 v := value.(types.Int)
800 bs := bits.(types.Int)
801 if bs < types.IntZero {
802 return types.NewErr("math.bitShiftLeft() negative offset: %d", bs)
803 }
804 return v << bs
805}
806
807func bitShiftLeftUintInt(value, bits ref.Val) ref.Val {
808 v := value.(types.Uint)

Callers

nothing calls this directly

Calls 1

NewErrFunction · 0.92

Tested by

no test coverage detected