 | C166 User's Guide |  |
|
|
| _priord_| Summary |
#include <intrins.h>
int _prior_ (
long value); /* value to normalize */
| | Description | The _priord_ routine uses the PRIOR instruction to count the number of shifts required to normalize value. The value returned is a number from 0 to 31 which indicates how many times value must be shifted left before the MSB is set. | | Return Value | The _priord_ function returns the number of shifts required to normalize value. | | See Also | _prior_ | | Example |
#include <intrins.h>
void testprior (long val) {
volatile int temp;
temp = _priord_ (val);
}
|
Related Knowledgebase Articles |
|