From c55ec7dc7487c26338721d108dff78daf906021e Mon Sep 17 00:00:00 2001 From: lloyd Date: Tue, 12 Jan 2010 15:48:09 +0000 Subject: Add operator& and non-mutating rotates to SIMD_32 --- src/utils/simd_32/simd_32.h | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) (limited to 'src/utils/simd_32/simd_32.h') diff --git a/src/utils/simd_32/simd_32.h b/src/utils/simd_32/simd_32.h index 38ea078d0..4bd983f5e 100644 --- a/src/utils/simd_32/simd_32.h +++ b/src/utils/simd_32/simd_32.h @@ -27,4 +27,20 @@ #endif +namespace Botan { + +inline SIMD_32 rotate_left(SIMD_32 x, u32bit rot) + { + x.rotate_left(rot); + return x; + } + +inline SIMD_32 rotate_right(SIMD_32 x, u32bit rot) + { + x.rotate_right(rot); + return x; + } + +} + #endif -- cgit v1.2.3