Пример #1
0
        public static YMM vpermd(YMM src, Perm8 spec)
        {
            var control = vload <uint>(ref spec);
            var subject = vload <uint>(ref src);

            return(PermuteVar8x32(subject, control));
        }
Пример #2
0
        public void identity()
        {
            YMM src    = YmmPattern.Increasing <uint>();
            YMM expect = YmmPattern.Increasing <uint>();
            var actual = vpermd(src, Perm8.Identity);

            Claim.eq(expect, actual);
        }
Пример #3
0
 public static Vector256 <byte> vperm2f128(YMM a, YMM b, Perm2x128 control)
 => Permute2x128(vload <byte>(ref a), vload <byte>(ref b), (byte)control);
Пример #4
0
 public static YMM vperm2i128(YMM a, YMM b, Perm2x128 control)
 => YMM.From(vperm2i128(a, b, (byte)control));
Пример #5
0
 public static Vector256 <double> vperm2f128(YMM a, YMM b, byte control)
 => Permute2x128(vload <double>(ref a), vload <double>(ref b), control);
Пример #6
0
 public static Vector256 <ulong> vperm2i128(YMM a, YMM b, byte control)
 => Permute2x128(vload <ulong>(ref a), vload <ulong>(ref b), control);
Пример #7
0
 public static YMM vcmpeqq(YMM ymm0, YMM ymm1)
 {
     return(CompareEqual(vload <ulong>(ref ymm0), vload <ulong>(ref ymm1)));
 }
Пример #8
0
        public static YMM <uint> vpermd(YMM <uint> ymm0, Perm8 spec)
        {
            var control = vload <uint>(ref spec);

            return(PermuteVar8x32(ymm0, control));
        }
Пример #9
0
 public static ref YMM <ulong> vpaddq(YMM ymm0, YMM ymm1, ref YMM <ulong> dst)
 {
     dst = Add(vload <ulong>(ref ymm0), vload <ulong>(ref ymm1));
     return(ref dst);
 }
Пример #10
0
 public static ref YMM vpxor(YMM ymm0, YMM ymm1, ref YMM ymm2)
 {
     ymm2 = Xor(vload <ulong>(ref ymm0), vload <ulong>(ref ymm1));
     return(ref ymm2);
 }
Пример #11
0
 public static YMM vpxor(YMM ymm0, YMM ymm1)
 => Xor(vload <ulong>(ref ymm0), vload <ulong>(ref ymm1));
Пример #12
0
 public static ref YMM MoveTo <T>(Vector256 <T> src, ref YMM dst)
     where T : unmanaged
 => ref Reg.move(src, ref dst);
Пример #13
0
 public void vperm_2x128()
 {
     YMM ymm0 = YMM.FromCells(1ul, 2u, 3ul, 4ul);
     YMM ymm1 = YMM.FromCells(5ul, 6ul, 7ul, 8ul);
     YMM ymm2 = default, ymm2e = default;
Пример #14
0
 public static Vector256 <byte> vpcmpeqb(YMM ymm0, YMM ymm1)
 {
     return(CompareEqual(vload <byte>(ref ymm0), vload <byte>(ref ymm1)));
 }
Пример #15
0
 public static ref Vector256 <ulong> vcmpeqq(YMM ymm0, YMM ymm1, ref Vector256 <ulong> dst)
 {
     dst = CompareEqual(vload <ulong>(ref ymm0), vload <ulong>(ref ymm1));
     return(ref dst);
 }
Пример #16
0
 public static YMM vpaddq(YMM ymm0, YMM ymm1)
 {
     return(Add(vload <ulong>(ref ymm0), vload <ulong>(ref ymm1)));
 }
Пример #17
0
 public static YMM <ulong> vpaddq(YMM <ulong> ymm0, YMM <ulong> ymm1)
 => Add(ymm0, ymm1);
Пример #18
0
 public static ref Vector256 <ulong> vpxor(YMM ymm0, YMM ymm1, out Vector256 <ulong> ymm2)
 {
     ymm2 = Xor(vload <ulong>(ref ymm0), vload <ulong>(ref ymm1));
     return(ref ymm2);
 }
Пример #19
0
 public static YMM vpermd(YMM src, YMM control)
 => PermuteVar8x32(vload <uint>(ref src), vload <uint>(ref control));
Пример #20
0
 public unsafe static ref YMEM vmovdqa(YMM src, ref YMEM dst)
 {
     dst = vload <ulong>(ref src);
     return(ref dst);
 }
Пример #21
0
Файл: Reg.cs Проект: 0xCM/arrows
 public static ref YMM move <T>(Vector256 <T> src, ref YMM dst)
     where T : unmanaged
 {
     dst = YMM.From(src);
     return(ref dst);
 }
Пример #22
0
Файл: Asm.cs Проект: 0xCM/arrows
 static Vector256 <T> vload <T>(ref YMM src)
     where T : unmanaged
 => ginx.lddqu256(in YMM.As <T>(ref src));