Standard Library

GoMathBits

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.

Other Methods

.Add()Neutral
#
Signature
Add(x uint, y uint, carry uint) (uint, uint)

Add returns the sum with carry of x, y and carry: sum = x + y + carry.

.Add32()Neutral
#
Signature
Add32(x uint32, y uint32, carry uint32) (uint32, uint32)

Add32 returns the sum with carry of x, y and carry: sum = x + y + carry.

.Add64()Neutral
#
Signature
Add64(x uint64, y uint64, carry uint64) (uint64, uint64)

Add64 returns the sum with carry of x, y and carry: sum = x + y + carry.

.Div()Neutral
#
Signature
Div(hi uint, lo uint, y uint) (uint, uint)

Div returns the quotient and remainder of (hi, lo) divided by y:

.Div32()Neutral
#
Signature
Div32(hi uint32, lo uint32, y uint32) (uint32, uint32)

Div32 returns the quotient and remainder of (hi, lo) divided by y:

.Div64()Neutral
#
Signature
Div64(hi uint64, lo uint64, y uint64) (uint64, uint64)

Div64 returns the quotient and remainder of (hi, lo) divided by y:

.LeadingZeros()Neutral
#
Signature
LeadingZeros(x uint) int

LeadingZeros returns the number of leading zero bits in x; the result is UintSize for x == 0.

.LeadingZeros16()Neutral
#
Signature
LeadingZeros16(x uint16) int

LeadingZeros16 returns the number of leading zero bits in x; the result is 16 for x == 0.

.LeadingZeros32()Neutral
#
Signature
LeadingZeros32(x uint32) int

LeadingZeros32 returns the number of leading zero bits in x; the result is 32 for x == 0.

.LeadingZeros64()Neutral
#
Signature
LeadingZeros64(x uint64) int

LeadingZeros64 returns the number of leading zero bits in x; the result is 64 for x == 0.

Fully-Qualified Names

FQNField
math/bitsfqns[0]

Wrong FQN → 0 findings. Verify with: change fqns to garbage → must produce 0 results.

Import

go.mod
// standard library — no go.mod entry required
rule.py
from codepathfinder.go_rule import ...  # math/bits