Пример #1
0
 public DebuggerProxy(quarter8 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 sbyte assbyte(quarter x)
 {
     return((sbyte)x.value);
 }
Пример #3
0
 public quarter8(quarter x0x8)
 {
     this = maxmath.asquarter(new byte8(x0x8.value));
 }
Пример #4
0
 public quarter8(quarter x0, quarter x1, quarter x2, quarter x3, quarter x4, quarter x5, quarter x6, quarter x7)
 {
     this = maxmath.asquarter(new byte8(x0.value, x1.value, x2.value, x3.value, x4.value, x5.value, x6.value, x7.value));
 }
Пример #5
0
 public static bool isnan(quarter q)
 {
     return((q.value & 0b0111_1111) > 0b0111_0000);
 }
Пример #6
0
        public static bool tobool(quarter a)
        {
            Assert.IsTrue(a.value == ((quarter)1f).value || a.value == 0 || a.value == 1 << 7);

            return(a.value == ((quarter)1f).value);
        }
Пример #7
0
 public quarter3(quarter x, quarter y, quarter z)
 {
     this = maxmath.asquarter(new byte3(x.value, y.value, z.value));
 }
Пример #8
0
 public DebuggerProxy(quarter v)
 {
     value = v;
 }
Пример #9
0
 public static quarter abs(quarter x)
 {
     return(asquarter((byte)(asbyte(x) & 0b0111_1111)));
 }
Пример #10
0
 public DebuggerProxy(quarter3 v)
 {
     x = v.x;
     y = v.y;
     z = v.z;
 }
Пример #11
0
 public quarter2(quarter xy)
 {
     this = maxmath.asquarter(new byte2(xy.value));
 }
Пример #12
0
 public quarter2(quarter x, quarter y)
 {
     this = maxmath.asquarter(new byte2(x.value, y.value));
 }
Пример #13
0
 public DebuggerProxy(quarter2 v)
 {
     x = v.x;
     y = v.y;
 }
Пример #14
0
 public static byte asbyte(quarter x)
 {
     return(x.value);
 }
Пример #15
0
 public quarter3(quarter xyz)
 {
     this = maxmath.asquarter(new byte3(xyz.value));
 }
Пример #16
0
 public static bool toboolsafe(quarter a)
 {
     return(a != (quarter)0f);
 }
Пример #17
0
 public quarter3(quarter2 xy, quarter z)
 {
     this = maxmath.asquarter(new byte3(maxmath.asbyte(xy), z.value));
 }
Пример #18
0
 public static bool isfinite(quarter q)
 {
     return((q.value & 0b0111_1111) < 0b0111_0000);
 }
Пример #19
0
 public quarter3(quarter x, quarter2 yz)
 {
     this = maxmath.asquarter(new byte3(x.value, maxmath.asbyte(yz)));
 }
Пример #20
0
 public static bool isinf(quarter q)
 {
     return((q.value & 0b0111_1111) == 0b0111_0000);
 }
Пример #21
0
 public static quarter nabs(quarter x)
 {
     return(asquarter((byte)(asbyte(x) | 0b1000_0000)));
 }