Example #1
0
 public static AsmQuadOp <T> Create <T>(AsmCode <T> code)
     where T : unmanaged
 {
     if (typeof(T) == typeof(int))
     {
         return(code.CreateDelegate <QuadOpI32>().ToGeneric <QuadOpI32, T>());
     }
     else
     {
         throw unsupported <T>();
     }
 }
Example #2
0
 static QuadOpI32 OpI32(AsmCode code)
 => code.CreateDelegate <QuadOpI32>();
Example #3
0
 static BinOpF64 CreateBinOpF64(this AsmCode code)
 => code.CreateDelegate <BinOpF64>();
Example #4
0
 static BinOpF32 CreateBinOpF32(this AsmCode code)
 => code.CreateDelegate <BinOpF32>();
Example #5
0
 static BinOpU16 CreateBinOpU16(this AsmCode code)
 => code.CreateDelegate <BinOpU16>();
Example #6
0
 static BinOpU8 CreateBinOpU8(this AsmCode code)
 => code.CreateDelegate <BinOpU8>();