Returns True if Num is power of 2.
function IsPow2(Num: LongInt): Boolean;
ImagingUtility (at line 178)