PHP. Руководство по PHP. 2005
gmp_scan1
gmp_scan1
Description
int gmp_scan1 (resource a, int start)Scans a, starting with bit start, towards more significant bits, until the first set bit is found. Returns the index of the found bit. If no set bit is found, -1 is returned.