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

Function bitShiftRightUintInt

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

Source from the content-addressed store, hash-verified

823}
824
825func bitShiftRightUintInt(value, bits ref.Val) ref.Val {
826 v := value.(types.Uint)
827 bs := bits.(types.Int)
828 if bs < types.IntZero {
829 return types.NewErr("math.bitShiftRight() negative offset: %d", bs)
830 }
831 return v >> bs
832}
833
834func minPair(first, second ref.Val) ref.Val {
835 cmp, ok := first.(traits.Comparer)

Callers

nothing calls this directly

Calls 1

NewErrFunction · 0.92

Tested by

no test coverage detected