Go stdlib package — math/bits. Auto-indexed from CDN. Method-level security roles have not been annotated; rule writers should inspect the source before use.
.Add()NeutralAdd(x uint, y uint, carry uint) (uint, uint)
Add returns the sum with carry of x, y and carry: sum = x + y + carry.
.Add32()NeutralAdd32(x uint32, y uint32, carry uint32) (uint32, uint32)
Add32 returns the sum with carry of x, y and carry: sum = x + y + carry.
.Add64()NeutralAdd64(x uint64, y uint64, carry uint64) (uint64, uint64)
Add64 returns the sum with carry of x, y and carry: sum = x + y + carry.
.Div()NeutralDiv(hi uint, lo uint, y uint) (uint, uint)
Div returns the quotient and remainder of (hi, lo) divided by y:
.Div32()NeutralDiv32(hi uint32, lo uint32, y uint32) (uint32, uint32)
Div32 returns the quotient and remainder of (hi, lo) divided by y:
.Div64()NeutralDiv64(hi uint64, lo uint64, y uint64) (uint64, uint64)
Div64 returns the quotient and remainder of (hi, lo) divided by y:
.LeadingZeros()NeutralLeadingZeros(x uint) int
LeadingZeros returns the number of leading zero bits in x; the result is UintSize for x == 0.
.LeadingZeros16()NeutralLeadingZeros16(x uint16) int
LeadingZeros16 returns the number of leading zero bits in x; the result is 16 for x == 0.
.LeadingZeros32()NeutralLeadingZeros32(x uint32) int
LeadingZeros32 returns the number of leading zero bits in x; the result is 32 for x == 0.
.LeadingZeros64()NeutralLeadingZeros64(x uint64) int
LeadingZeros64 returns the number of leading zero bits in x; the result is 64 for x == 0.
| FQN | Field | |
|---|---|---|
| math/bits | fqns[0] |
Wrong FQN → 0 findings. Verify with: change fqns to garbage → must produce 0 results.
// standard library — no go.mod entry required
from codepathfinder.go_rule import ... # math/bits