Exemplo n.º 1
0
 public static byte4 asbyte(quarter4 x)
 {
     if (Sse.IsSseSupported)
     {
         return((v128)x);
     }
     else
     {
         return(*(byte4 *)&x);
     }
 }
Exemplo n.º 2
0
 public static bool4 isnan(quarter4 q)
 {
     return((asbyte(q) & 0b111_1111) > 0b0111_0000);
 }
Exemplo n.º 3
0
 public static bool4 isfinite(quarter4 q)
 {
     return((asbyte(q) & 0b0111_1111) < 0b0111_0000);
 }
Exemplo n.º 4
0
 public static bool4 isinf(quarter4 q)
 {
     return((asbyte(q) & 0b0111_1111) == 0b0111_0000);
 }
Exemplo 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)));
 }
Exemplo n.º 6
0
 public quarter8(quarter4 x0123, quarter2 x45, quarter2 x67)
 {
     this = maxmath.asquarter(new byte8(maxmath.asbyte(x0123), maxmath.asbyte(x45), maxmath.asbyte(x67)));
 }
Exemplo n.º 7
0
 public quarter8(quarter2 x01, quarter2 x23, quarter4 x4567)
 {
     this = maxmath.asquarter(new byte8(maxmath.asbyte(x01), maxmath.asbyte(x23), maxmath.asbyte(x4567)));
 }
Exemplo n.º 8
0
 public static bool4 toboolsafe(quarter4 x)
 {
     return(x != (quarter)0f);
 }
Exemplo n.º 9
0
 public static quarter4 abs(quarter4 x)
 {
     return(asquarter(asbyte(x) & 0b0111_1111));
 }
Exemplo n.º 10
0
 public static quarter4 nabs(quarter4 x)
 {
     return(asquarter(asbyte(x) | 0b1000_0000));
 }