/*#*
*#* $Log$
+ *#* Revision 1.11 2007/02/06 15:22:12 asterix
+ *#* Add ROTL and ROTR macros for bit rotating.
+ *#*
*#* Revision 1.10 2006/09/13 18:31:37 bernie
*#* BV8(), BV16(), BV32(): New macros for CPUs with small word size; SWAP_T(): New macro to support old compilers.
*#*
#endif /* COMPILER_VARIADIC_MACROS */
+/**
+ * Macro for rotating bit left or right.
+ * \{
+ */
+#define ROTR(var, rot) (((var) >> (rot)) | ((var) << ((sizeof(var) * 8) - (rot))))
+#define ROTL(var, rot) (((var) << (rot)) | ((var) >> ((sizeof(var) * 8) - (rot))))
+/*\}*/
+
#endif /* MACROS_H */