LOG2 - compute log base 2 of a value.

Usage:

log2  setsym,value

Where:

setsym
will be defined as a GMAP set symbol with the computed value.
value
is the value whose log is needed.

Examples:

log2    lg,0       define lg as -1
log2    lg,64*1024 define lg as 16
log2    lg,30      define lg as 4

Description:

LOG2 is used to compute the log base 2 of a value. Normally, this would be used to compute the shift value that corresponds to a given bit flag.

Copyright © 2000, Thinkage Ltd.