bitwise shifts gone?

hh hh at hyperhh.de
Sat Jun 30 06:50:38 EDT 2018


Mark,

obviously you ask relating to Bob's IPv4 sort problem.

But when optimising (for speed) the connected formula

(1) a + b * 2^8 + c * 2^16 + d * 2^32

using the constants is slightly faster:

(2) a + b * 256 + c * 65536 + d * 16777216

Why is the engine not handling the internal bitshifts easier with (1)?




More information about the Use-livecode mailing list