- if (dLogBase2 != floor(dLogBase2))
- iLogBase2++; // raise up to next power of 2
- n = 1 << (iLogBase2 + (iZeropad - 1));
+ int iPaddedN = 1 << (iLogBase2 + iZeropad);
+#ifdef DEBUG
+ sys_error (ERR_TRACE, "Zeropadding %d to %d", n, iPaddedN);
+#endif
+ return iPaddedN;