+/**
+****************************************************************************************************
+* ShiftCeil
+*
+* @brief
+* Apply righ-shift with ceiling
+****************************************************************************************************
+*/
+static inline UINT_32 ShiftCeil(
+ UINT_32 a, ///< [in] value to be right-shifted
+ UINT_32 b) ///< [in] number of bits to shift
+{
+ return (a >> b) + (((a & ((1 << b) - 1)) != 0) ? 1 : 0);
+}
+