diff options
author | lloyd <[email protected]> | 2010-01-12 15:48:09 +0000 |
---|---|---|
committer | lloyd <[email protected]> | 2010-01-12 15:48:09 +0000 |
commit | c55ec7dc7487c26338721d108dff78daf906021e (patch) | |
tree | 7baeb4ae3a836bc2bcbd6183991db2e78cca9047 /src/utils/simd_32/simd_scalar.h | |
parent | d46abca140523d12d780910fa725e76f1593f493 (diff) |
Add operator& and non-mutating rotates to SIMD_32
Diffstat (limited to 'src/utils/simd_32/simd_scalar.h')
-rw-r--r-- | src/utils/simd_32/simd_scalar.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/utils/simd_32/simd_scalar.h b/src/utils/simd_32/simd_scalar.h index 148b76c35..5cf1a11c3 100644 --- a/src/utils/simd_32/simd_scalar.h +++ b/src/utils/simd_32/simd_scalar.h @@ -142,6 +142,14 @@ class SIMD_Scalar R3 |= other.R3; } + SIMD_Scalar operator&(const SIMD_Scalar& other) + { + return SIMD_Scalar(R0 & other.R0, + R1 & other.R1, + R2 & other.R2, + R3 & other.R3); + } + void operator&=(const SIMD_Scalar& other) { R0 &= other.R0; |