← All docs

gmp_scan1()

Finds the first set bit.

gmp_scan1()

function gmp_scan1(object|string|int $num1, int $start): int

Finds the first set bit.

Parameters:

  • $num1 (object|string|int)
  • $start (int)

Returns: int

Availability

Compiled (AOT)Magician (eval)
AvailableAvailable

No examples yet. Check examples/ and showcases/ for usage patterns.

Internals

For how gmp_scan1 is implemented in the compiler, see the internals page.