This book provides optimized rotate functions, which are proven equivalent to rotate-left and rotate-right via mbe.