aboutsummaryrefslogtreecommitdiffstats
path: root/src/utils/simd_32/simd_32.h
diff options
context:
space:
mode:
authorlloyd <[email protected]>2010-01-12 15:48:09 +0000
committerlloyd <[email protected]>2010-01-12 15:48:09 +0000
commitc55ec7dc7487c26338721d108dff78daf906021e (patch)
tree7baeb4ae3a836bc2bcbd6183991db2e78cca9047 /src/utils/simd_32/simd_32.h
parentd46abca140523d12d780910fa725e76f1593f493 (diff)
Add operator& and non-mutating rotates to SIMD_32
Diffstat (limited to 'src/utils/simd_32/simd_32.h')
-rw-r--r--src/utils/simd_32/simd_32.h16
1 files changed, 16 insertions, 0 deletions
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