Пример #1
0
 public DebuggerProxy(half8 v)
 {
     x0 = v.x0;
     x1 = v.x1;
     x2 = v.x2;
     x3 = v.x3;
     x4 = v.x4;
     x5 = v.x5;
     x6 = v.x6;
     x7 = v.x7;
 }
Пример #2
0
 public static ushort8 asushort(half8 x)
 {
     if (Sse.IsSseSupported)
     {
         return((v128)x);
     }
     else
     {
         return(*(ushort8 *)&x);
     }
 }
Пример #3
0
 public static bool8 isinf(half8 h)
 {
     return((asushort(h) & 0x7FFF) == 0x7C00);
 }
Пример #4
0
 public static bool8 isnan(half8 h)
 {
     return((asushort(h) & 0x7FFF) > 0x7C00);
 }
Пример #5
0
 public static bool8 isfinite(half8 h)
 {
     return((asushort(h) & 0x7FFF) < 0x7C00);
 }
Пример #6
0
 public static bool8 toboolsafe(half8 x)
 {
     return((float8)x != 0f);
 }
Пример #7
0
 public static half8 abs(half8 x)
 {
     return(ashalf(asushort(x) & 0x7FFF));
 }
Пример #8
0
 public static half8 nabs(half8 x)
 {
     return(ashalf(asushort(x) | 0x8000));
 }