= core: fix Sampler isPowerOfTwo