}
/*--------------------------------------------------------------------*//*!
+ * \brief Check if a value is a power-of-two.
+ * \param a Input value.
+ * \return True if input is a power-of-two value, false otherwise.
+ *
+ * \note Also returns true for zero.
+ *//*--------------------------------------------------------------------*/
+DE_INLINE deBool deIsPowerOfTwoSize (size_t a)
+{
+#if (DE_PTR_SIZE == 4)
+ return deIsPowerOfTwo32(a);
+#elif (DE_PTR_SIZE == 8)
+ return deIsPowerOfTwo64(a);
+#else
+# error "Invalid DE_PTR_SIZE"
+#endif
+}
+
+/*--------------------------------------------------------------------*//*!
* \brief Check if an integer is aligned to given power-of-two size.
* \param a Input value.
* \param align Alignment to check for.