Exemple #1
0
 public static byte3 asbyte(quarter3 x)
 {
     if (Sse.IsSseSupported)
     {
         return((v128)x);
     }
     else
     {
         return(*(byte3 *)&x);
     }
 }
Exemple #2
0
 public static bool3 isnan(quarter3 q)
 {
     return((asbyte(q) & 0b111_1111) > 0b0111_0000);
 }
Exemple #3
0
 public static bool3 isfinite(quarter3 q)
 {
     return((asbyte(q) & 0b0111_1111) < 0b0111_0000);
 }
Exemple #4
0
 public static bool3 isinf(quarter3 q)
 {
     return((asbyte(q) & 0b0111_1111) == 0b0111_0000);
 }
Exemple #5
0
 public quarter8(quarter3 x012, quarter2 x34, quarter3 x567)
 {
     this = maxmath.asquarter(new byte8(maxmath.asbyte(x012), maxmath.asbyte(x34), maxmath.asbyte(x567)));
 }
Exemple #6
0
 public quarter8(quarter3 x012, quarter3 x345, quarter2 x67)
 {
     this = maxmath.asquarter(new byte8(maxmath.asbyte(x012), maxmath.asbyte(x345), maxmath.asbyte(x67)));
 }
Exemple #7
0
 public quarter8(quarter2 x01, quarter3 x234, quarter3 x567)
 {
     this = maxmath.asquarter(new byte8(maxmath.asbyte(x01), maxmath.asbyte(x234), maxmath.asbyte(x567)));
 }
 public static bool3 toboolsafe(quarter3 x)
 {
     return(x != (quarter)0f);
 }
Exemple #9
0
 public DebuggerProxy(quarter3 v)
 {
     x = v.x;
     y = v.y;
     z = v.z;
 }
Exemple #10
0
 public static quarter3 abs(quarter3 x)
 {
     return(asquarter(asbyte(x) & 0b0111_1111));
 }
Exemple #11
0
 public static quarter3 nabs(quarter3 x)
 {
     return(asquarter(asbyte(x) | 0b1000_0000));
 }