diff options
author | Rodrigo Kumpera <kumpera@gmail.com> | 2008-10-14 19:38:28 +0400 |
---|---|---|
committer | Rodrigo Kumpera <kumpera@gmail.com> | 2008-10-14 19:38:28 +0400 |
commit | c5690c3dc0fb57586714b25857688c8434f9ed6b (patch) | |
tree | 1174ae1233cb670324e440db65e841997b552fa3 | |
parent | 7d7d0900054bfb27b0f5fe7b744377d44304658e (diff) |
2008-10-14 Rodrigo Kumpera <rkumpera@novell.com>
* Vector4f.cs: Added DuplicateLow and DuplicateHigh.
svn path=/trunk/mcs/; revision=115790
-rw-r--r-- | mcs/class/Mono.Simd/Mono.Simd/Changelog | 4 | ||||
-rw-r--r-- | mcs/class/Mono.Simd/Mono.Simd/Vector4f.cs | 10 |
2 files changed, 14 insertions, 0 deletions
diff --git a/mcs/class/Mono.Simd/Mono.Simd/Changelog b/mcs/class/Mono.Simd/Mono.Simd/Changelog index 75cc2e6ece4..9c4c03ec510 100644 --- a/mcs/class/Mono.Simd/Mono.Simd/Changelog +++ b/mcs/class/Mono.Simd/Mono.Simd/Changelog @@ -1,3 +1,7 @@ +2008-10-14 Rodrigo Kumpera <rkumpera@novell.com> + + * Vector4f.cs: Added DuplicateLow and DuplicateHigh. + 2008-10-13 Rodrigo Kumpera <rkumpera@novell.com> * Vector4f.cs: Added bitwise ops, reciprocal, interleave diff --git a/mcs/class/Mono.Simd/Mono.Simd/Vector4f.cs b/mcs/class/Mono.Simd/Mono.Simd/Vector4f.cs index 038e8f4f3b7..d61d5a72f33 100644 --- a/mcs/class/Mono.Simd/Mono.Simd/Vector4f.cs +++ b/mcs/class/Mono.Simd/Mono.Simd/Vector4f.cs @@ -333,6 +333,16 @@ namespace Mono.Simd *c = !float.IsNaN (v1.w) && !float.IsNaN (v2.w) ? -1 : 0; return res;
} + public static Vector4f DuplicateLow (Vector4f v1) + { + return new Vector4f (v1.x, v1.x, v1.z, v1.z); + } + + public static Vector4f DuplicateHigh (Vector4f v1) + { + return new Vector4f (v1.y, v1.y, v1.w, v1.w); + } + /* The sel argument must be a value combination of ShuffleSel flags. */
|