12-03-2004, 09:45 PM
Power of, yeah, unless the left operand is a constant, that will be evaluated at compile-time.
You could just use "expression shl 1" if the left operand is an integer. FB doesn't do the "^ powerof2constant" to "shl" optimization yet.
You could just use "expression shl 1" if the left operand is an integer. FB doesn't do the "^ powerof2constant" to "shl" optimization yet.
ew FreeBASIC forums: http://www.freebasic.net/forum/index.php