MCPcopy Create free account
hub / github.com/cockroachdb/apd / remInline

Function remInline

bigint.go:344–350  ·  view source on GitHub ↗

gcassert:inline

(xVal, yVal uint64, xNeg, yNeg bool)

Source from the content-addressed store, hash-verified

342
343//gcassert:inline
344func remInline(xVal, yVal uint64, xNeg, yNeg bool) (remVal uint64, remNeg, ok bool) {
345 if yVal == 0 { // divide by 0
346 return 0, false, false
347 }
348 rem := xVal % yVal
349 return rem, xNeg && rem != 0, true
350}
351
352///////////////////////////////////////////////////////////////////////////////
353// big.Int API wrapper methods //

Callers 2

QuoRemMethod · 0.85
RemMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…