예제 #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
파일: quarter.cs 프로젝트: csritter/MaxMath
 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)));
 }