Esempio n. 1
0
 public static byte2 asbyte(quarter2 x)
 {
     if (Sse.IsSseSupported)
     {
         return((v128)x);
     }
     else
     {
         return(*(byte2 *)&x);
     }
 }
Esempio n. 2
0
 public static bool2 isnan(quarter2 q)
 {
     return((asbyte(q) & 0b111_1111) > 0b0111_0000);
 }
Esempio n. 3
0
 public static bool2 isfinite(quarter2 q)
 {
     return((asbyte(q) & 0b0111_1111) < 0b0111_0000);
 }
Esempio n. 4
0
 public static bool2 isinf(quarter2 q)
 {
     return((asbyte(q) & 0b0111_1111) == 0b0111_0000);
 }
Esempio n. 5
0
 public quarter8(quarter2 x01, quarter4 x2345, quarter2 x67)
 {
     this = maxmath.asquarter(new byte8(maxmath.asbyte(x01), maxmath.asbyte(x2345), maxmath.asbyte(x67)));
 }
Esempio n. 6
0
 public quarter8(quarter3 x012, quarter3 x345, quarter2 x67)
 {
     this = maxmath.asquarter(new byte8(maxmath.asbyte(x012), maxmath.asbyte(x345), maxmath.asbyte(x67)));
 }
Esempio n. 7
0
 public quarter8(quarter4 x0123, quarter2 x45, quarter2 x67)
 {
     this = maxmath.asquarter(new byte8(maxmath.asbyte(x0123), maxmath.asbyte(x45), maxmath.asbyte(x67)));
 }
Esempio n. 8
0
 public quarter8(quarter2 x01, quarter3 x234, quarter3 x567)
 {
     this = maxmath.asquarter(new byte8(maxmath.asbyte(x01), maxmath.asbyte(x234), maxmath.asbyte(x567)));
 }
Esempio n. 9
0
 public quarter8(quarter3 x012, quarter2 x34, quarter3 x567)
 {
     this = maxmath.asquarter(new byte8(maxmath.asbyte(x012), maxmath.asbyte(x34), maxmath.asbyte(x567)));
 }
 public static bool2 toboolsafe(quarter2 x)
 {
     return(x != (quarter)0f);
 }
Esempio n. 11
0
 public quarter8(quarter2 x01, quarter2 x23, quarter4 x4567)
 {
     this = maxmath.asquarter(new byte8(maxmath.asbyte(x01), maxmath.asbyte(x23), maxmath.asbyte(x4567)));
 }
Esempio n. 12
0
 public quarter3(quarter x, quarter2 yz)
 {
     this = maxmath.asquarter(new byte3(x.value, maxmath.asbyte(yz)));
 }
Esempio n. 13
0
 public quarter3(quarter2 xy, quarter z)
 {
     this = maxmath.asquarter(new byte3(maxmath.asbyte(xy), z.value));
 }
Esempio n. 14
0
 public static quarter2 abs(quarter2 x)
 {
     return(asquarter(asbyte(x) & 0b0111_1111));
 }
Esempio n. 15
0
 public DebuggerProxy(quarter2 v)
 {
     x = v.x;
     y = v.y;
 }
Esempio n. 16
0
 public static quarter2 nabs(quarter2 x)
 {
     return(asquarter(asbyte(x) | 0b1000_0000));
 }