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

Function bitShiftRightIntInt

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

Source from the content-addressed store, hash-verified

814}
815
816func bitShiftRightIntInt(value, bits ref.Val) ref.Val {
817 v := value.(types.Int)
818 bs := bits.(types.Int)
819 if bs < types.IntZero {
820 return types.NewErr("math.bitShiftRight() negative offset: %d", bs)
821 }
822 return types.Int(types.Uint(v) >> bs)
823}
824
825func bitShiftRightUintInt(value, bits ref.Val) ref.Val {
826 v := value.(types.Uint)

Callers

nothing calls this directly

Calls 3

NewErrFunction · 0.92
IntTypeAlias · 0.92
UintTypeAlias · 0.92

Tested by

no test coverage detected