3.7.5 ld()

int ld(int arg)
The binary logarithm function returns the bit position of the most significant bit of the arg that is set to one.

Note

Values of arg smaller than or equal to zero result in a run-time error.
Non-ConfidentialPDF file icon PDF versionARM DUI0371M
Copyright © 2007-2014 ARM. All rights reserved.