public static void fp3x2_operator_not_equal_wide_scalar()
        {
            fp3x2   a0 = fp3x2(-155.4411m, -19.4266052m, 174.633057m, 507.920715m, 59.177063m, 171.151489m);
            fp      b0 = (-393.413544m);
            bool3x2 r0 = bool3x2(true, true, true, true, true, true);

            TestUtils.AreEqual(a0 != b0, r0);

            fp3x2   a1 = fp3x2(-58.92328m, 492.20105m, -165.241516m, 270.341m, -380.243256m, 501.899048m);
            fp      b1 = (-398.176849m);
            bool3x2 r1 = bool3x2(true, true, true, true, true, true);

            TestUtils.AreEqual(a1 != b1, r1);

            fp3x2   a2 = fp3x2(-134.345459m, 46.7709961m, 161.459961m, 261.514221m, -145.6124m, -0.449920654m);
            fp      b2 = (458.400452m);
            bool3x2 r2 = bool3x2(true, true, true, true, true, true);

            TestUtils.AreEqual(a2 != b2, r2);

            fp3x2   a3 = fp3x2(350.461426m, 242.664m, 382.677063m, -468.967957m, -497.459473m, -80.93225m);
            fp      b3 = (202.221008m);
            bool3x2 r3 = bool3x2(true, true, true, true, true, true);

            TestUtils.AreEqual(a3 != b3, r3);
        }
        public static void fp3x2_operator_not_equal_scalar_wide()
        {
            fp      a0 = (478.353149m);
            fp3x2   b0 = fp3x2(459.553223m, 436.453247m, -488.714172m, 392.767944m, -266.736633m, 338.557861m);
            bool3x2 r0 = bool3x2(true, true, true, true, true, true);

            TestUtils.AreEqual(a0 != b0, r0);

            fp      a1 = (-338.100128m);
            fp3x2   b1 = fp3x2(-152.314545m, -452.820679m, 209.439331m, 50.10797m, 372.4344m, -488.0213m);
            bool3x2 r1 = bool3x2(true, true, true, true, true, true);

            TestUtils.AreEqual(a1 != b1, r1);

            fp      a2 = (489.740784m);
            fp3x2   b2 = fp3x2(270.4001m, -472.846771m, -286.850464m, -384.691864m, 443.423523m, 358.7472m);
            bool3x2 r2 = bool3x2(true, true, true, true, true, true);

            TestUtils.AreEqual(a2 != b2, r2);

            fp      a3 = (-15.4140625m);
            fp3x2   b3 = fp3x2(-342.179169m, 468.967529m, -130.568085m, 401.785828m, -268.352264m, -239.231018m);
            bool3x2 r3 = bool3x2(true, true, true, true, true, true);

            TestUtils.AreEqual(a3 != b3, r3);
        }
Exemple #3
0
        public void double3x2_operator_not_equal_wide_wide()
        {
            double3x2 a0 = double3x2(430.8425316432689, 104.69001798736394, 225.80243478799355, -310.57017841496048, -418.61945815506363, 304.12820281839379);
            double3x2 b0 = double3x2(210.02470622305975, -55.203330304102678, -269.92533672504373, -234.54673372700194, 25.917412054686565, -63.726991444699024);
            bool3x2   r0 = bool3x2(true, true, true, true, true, true);

            TestUtils.AreEqual(a0 != b0, r0);

            double3x2 a1 = double3x2(-509.32682561749908, -160.53807719076895, -203.30197606016975, -505.76325368590807, 162.17220623892365, 1.1561973100324394);
            double3x2 b1 = double3x2(-484.55371092471933, -425.333599050219, -53.274394775402925, 328.1944192984115, 15.963139303011417, 461.71412417931208);
            bool3x2   r1 = bool3x2(true, true, true, true, true, true);

            TestUtils.AreEqual(a1 != b1, r1);

            double3x2 a2 = double3x2(65.662074358045174, 102.78780250567377, 172.93008120960099, 26.621009123800832, 235.12595259171258, 128.54198533321824);
            double3x2 b2 = double3x2(-113.36304455313973, -240.07297264787974, 495.11916970420589, 203.5583661550462, 340.49345103860526, -241.90719448863865);
            bool3x2   r2 = bool3x2(true, true, true, true, true, true);

            TestUtils.AreEqual(a2 != b2, r2);

            double3x2 a3 = double3x2(-354.99697630246959, 334.35948220564023, -495.83200692377613, 468.30740163675853, 458.37094733601941, 299.93733300824522);
            double3x2 b3 = double3x2(459.56982896270688, 213.0737384357833, -384.7828506831, -255.07233846144396, 477.66343115161328, -248.03662621604121);
            bool3x2   r3 = bool3x2(true, true, true, true, true, true);

            TestUtils.AreEqual(a3 != b3, r3);
        }
        public static void fp3x2_operator_not_equal_wide_wide()
        {
            fp3x2   a0 = fp3x2(279.994141m, -43.34201m, -465.724731m, 317.466553m, 85.7149658m, 360.8905m);
            fp3x2   b0 = fp3x2(-460.9121m, -476.009033m, 468.1364m, -341.012543m, -62.65805m, -458.801666m);
            bool3x2 r0 = bool3x2(true, true, true, true, true, true);

            TestUtils.AreEqual(a0 != b0, r0);

            fp3x2   a1 = fp3x2(366.081543m, 154.542847m, 332.4262m, 397.11322m, -431.374969m, 489.0108m);
            fp3x2   b1 = fp3x2(-457.730225m, -59.5232544m, 3.024231m, 155.812744m, -19.8399048m, -6.01693726m);
            bool3x2 r1 = bool3x2(true, true, true, true, true, true);

            TestUtils.AreEqual(a1 != b1, r1);

            fp3x2   a2 = fp3x2(398.4336m, -489.817932m, 171.4049m, -67.82968m, -192.278717m, 227.84082m);
            fp3x2   b2 = fp3x2(-406.207916m, -102.420715m, -40.362915m, 452.6754m, 93.25757m, -258.378052m);
            bool3x2 r2 = bool3x2(true, true, true, true, true, true);

            TestUtils.AreEqual(a2 != b2, r2);

            fp3x2   a3 = fp3x2(62.1381836m, 262.186462m, -404.0531m, 34.449585m, -204.795776m, -285.4118m);
            fp3x2   b3 = fp3x2(-184.0498m, -379.2353m, -370.687317m, -255.947235m, 29.0557861m, 322.407654m);
            bool3x2 r3 = bool3x2(true, true, true, true, true, true);

            TestUtils.AreEqual(a3 != b3, r3);
        }
Exemple #5
0
        public static void bool3x2_operator_bitwise_and_wide_wide()
        {
            bool3x2 a0 = bool3x2(false, false, true, true, false, false);
            bool3x2 b0 = bool3x2(false, false, true, false, true, true);
            bool3x2 r0 = bool3x2(false, false, true, false, false, false);

            TestUtils.AreEqual(r0, a0 & b0);

            bool3x2 a1 = bool3x2(true, true, true, false, true, true);
            bool3x2 b1 = bool3x2(false, false, true, true, false, false);
            bool3x2 r1 = bool3x2(false, false, true, false, false, false);

            TestUtils.AreEqual(r1, a1 & b1);

            bool3x2 a2 = bool3x2(true, true, false, false, true, true);
            bool3x2 b2 = bool3x2(false, false, true, false, true, false);
            bool3x2 r2 = bool3x2(false, false, false, false, true, false);

            TestUtils.AreEqual(r2, a2 & b2);

            bool3x2 a3 = bool3x2(true, false, true, true, false, true);
            bool3x2 b3 = bool3x2(true, true, true, true, true, true);
            bool3x2 r3 = bool3x2(true, false, true, true, false, true);

            TestUtils.AreEqual(r3, a3 & b3);
        }
Exemple #6
0
        public static void bool3x2_operator_bitwise_xor_scalar_wide()
        {
            bool    a0 = (true);
            bool3x2 b0 = bool3x2(true, false, true, true, false, true);
            bool3x2 r0 = bool3x2(false, true, false, false, true, false);

            TestUtils.AreEqual(r0, a0 ^ b0);

            bool    a1 = (true);
            bool3x2 b1 = bool3x2(false, false, true, true, false, false);
            bool3x2 r1 = bool3x2(true, true, false, false, true, true);

            TestUtils.AreEqual(r1, a1 ^ b1);

            bool    a2 = (true);
            bool3x2 b2 = bool3x2(false, true, true, false, true, true);
            bool3x2 r2 = bool3x2(true, false, false, true, false, false);

            TestUtils.AreEqual(r2, a2 ^ b2);

            bool    a3 = (true);
            bool3x2 b3 = bool3x2(false, false, false, true, true, true);
            bool3x2 r3 = bool3x2(true, true, true, false, false, false);

            TestUtils.AreEqual(r3, a3 ^ b3);
        }
Exemple #7
0
        public void double3x2_operator_not_equal_scalar_wide()
        {
            double    a0 = (275.79582823244664);
            double3x2 b0 = double3x2(-57.196896341255353, -382.4325279586169, 97.820359990848374, -161.46364529499022, -458.39563367254829, -499.61786364932448);
            bool3x2   r0 = bool3x2(true, true, true, true, true, true);

            TestUtils.AreEqual(a0 != b0, r0);

            double    a1 = (327.92217818271467);
            double3x2 b1 = double3x2(367.57121699283425, 59.7863667289663, -209.58068118318016, -62.580453186566217, -479.97497604786184, -49.494519495169868);
            bool3x2   r1 = bool3x2(true, true, true, true, true, true);

            TestUtils.AreEqual(a1 != b1, r1);

            double    a2 = (-114.68521338081229);
            double3x2 b2 = double3x2(109.93924599044919, -176.28482755286842, -347.48529903380449, 85.540928165214609, -356.65954868712441, -104.24357490625397);
            bool3x2   r2 = bool3x2(true, true, true, true, true, true);

            TestUtils.AreEqual(a2 != b2, r2);

            double    a3 = (-133.54918605347592);
            double3x2 b3 = double3x2(243.53971135036079, 13.141311890045813, -379.98594754747393, -41.281226892620907, 87.911684792447659, -339.07727996403224);
            bool3x2   r3 = bool3x2(true, true, true, true, true, true);

            TestUtils.AreEqual(a3 != b3, r3);
        }
        public static void fp3x2_operator_equal_scalar_wide()
        {
            fp      a0 = (36.38391m);
            fp3x2   b0 = fp3x2(-400.4892m, -71.2868347m, 156.978088m, -225.238739m, 499.141785m, -211.979919m);
            bool3x2 r0 = bool3x2(false, false, false, false, false, false);

            TestUtils.AreEqual(a0 == b0, r0);

            fp      a1 = (428.311951m);
            fp3x2   b1 = fp3x2(-489.501343m, -5.691559m, -30.8659363m, -362.9831m, 184.503174m, -160.470612m);
            bool3x2 r1 = bool3x2(false, false, false, false, false, false);

            TestUtils.AreEqual(a1 == b1, r1);

            fp      a2 = (316.668823m);
            fp3x2   b2 = fp3x2(390.369263m, 505.1051m, -294.6487m, 443.1991m, 96.5592651m, -257.012939m);
            bool3x2 r2 = bool3x2(false, false, false, false, false, false);

            TestUtils.AreEqual(a2 == b2, r2);

            fp      a3 = (-245.054962m);
            fp3x2   b3 = fp3x2(326.464844m, -23.9599m, -168.694885m, 386.2486m, -227.090637m, -336.612427m);
            bool3x2 r3 = bool3x2(false, false, false, false, false, false);

            TestUtils.AreEqual(a3 == b3, r3);
        }
        public static void fix64p3x2_operator_equal_scalar_wide()
        {
            fix64p    a0 = (new fix64p(36.38391f));
            fix64p3x2 b0 = fix64p3x2(new fix64p(-400.4892f), new fix64p(-71.2868347f), new fix64p(156.978088f), new fix64p(-225.238739f), new fix64p(499.141785f), new fix64p(-211.979919f));
            bool3x2   r0 = bool3x2(false, false, false, false, false, false);

            TestUtils.AreEqual(a0 == b0, r0);

            fix64p    a1 = (new fix64p(428.311951f));
            fix64p3x2 b1 = fix64p3x2(new fix64p(-489.501343f), new fix64p(-5.691559f), new fix64p(-30.8659363f), new fix64p(-362.9831f), new fix64p(184.503174f), new fix64p(-160.470612f));
            bool3x2   r1 = bool3x2(false, false, false, false, false, false);

            TestUtils.AreEqual(a1 == b1, r1);

            fix64p    a2 = (new fix64p(316.668823f));
            fix64p3x2 b2 = fix64p3x2(new fix64p(390.369263f), new fix64p(505.1051f), new fix64p(-294.6487f), new fix64p(443.1991f), new fix64p(96.5592651f), new fix64p(-257.012939f));
            bool3x2   r2 = bool3x2(false, false, false, false, false, false);

            TestUtils.AreEqual(a2 == b2, r2);

            fix64p    a3 = (new fix64p(-245.054962f));
            fix64p3x2 b3 = fix64p3x2(new fix64p(326.464844f), new fix64p(-23.9599f), new fix64p(-168.694885f), new fix64p(386.2486f), new fix64p(-227.090637f), new fix64p(-336.612427f));
            bool3x2   r3 = bool3x2(false, false, false, false, false, false);

            TestUtils.AreEqual(a3 == b3, r3);
        }
Exemple #10
0
        public void double3x2_operator_not_equal_wide_scalar()
        {
            double3x2 a0 = double3x2(-16.914588697680529, 168.83411486858233, -462.71352145760949, 130.30776959765137, 214.50161443208424, -440.26328178879959);
            double    b0 = (-145.37277109239847);
            bool3x2   r0 = bool3x2(true, true, true, true, true, true);

            TestUtils.AreEqual(a0 != b0, r0);

            double3x2 a1 = double3x2(-197.12796053529155, -386.61117595555783, -281.02101362916687, -270.26885593601912, -403.96372313236992, -269.80570877241234);
            double    b1 = (-169.09985860115842);
            bool3x2   r1 = bool3x2(true, true, true, true, true, true);

            TestUtils.AreEqual(a1 != b1, r1);

            double3x2 a2 = double3x2(299.65422763473089, -432.75573917513515, -457.36312100727258, -13.519590622521719, 273.87305773136814, 185.042454567292);
            double    b2 = (-71.750904831919286);
            bool3x2   r2 = bool3x2(true, true, true, true, true, true);

            TestUtils.AreEqual(a2 != b2, r2);

            double3x2 a3 = double3x2(-482.53069351731364, 511.73495578753523, 230.50753628020527, 100.27476768394683, 129.68240863163135, 321.17879048044733);
            double    b3 = (116.39514427836764);
            bool3x2   r3 = bool3x2(true, true, true, true, true, true);

            TestUtils.AreEqual(a3 != b3, r3);
        }
        public static void fix64p3x2_operator_equal_wide_scalar()
        {
            fix64p3x2 a0 = fix64p3x2(new fix64p(65.6712f), new fix64p(404.415527f), new fix64p(-269.730164f), new fix64p(83.6306152f), new fix64p(152.9945f), new fix64p(-155.868286f));
            fix64p    b0 = (new fix64p(-155.815765f));
            bool3x2   r0 = bool3x2(false, false, false, false, false, false);

            TestUtils.AreEqual(a0 == b0, r0);

            fix64p3x2 a1 = fix64p3x2(new fix64p(314.671265f), new fix64p(290.04895f), new fix64p(-132.6352f), new fix64p(-65.66748f), new fix64p(-69.68326f), new fix64p(-191.190765f));
            fix64p    b1 = (new fix64p(386.365173f));
            bool3x2   r1 = bool3x2(false, false, false, false, false, false);

            TestUtils.AreEqual(a1 == b1, r1);

            fix64p3x2 a2 = fix64p3x2(new fix64p(186.845215f), new fix64p(-319.144043f), new fix64p(-49.70108f), new fix64p(-300.8819f), new fix64p(333.396851f), new fix64p(386.3775f));
            fix64p    b2 = (new fix64p(-232.895691f));
            bool3x2   r2 = bool3x2(false, false, false, false, false, false);

            TestUtils.AreEqual(a2 == b2, r2);

            fix64p3x2 a3 = fix64p3x2(new fix64p(-296.7019f), new fix64p(141.542358f), new fix64p(-227.323334f), new fix64p(83.87286f), new fix64p(-410.91687f), new fix64p(110.501282f));
            fix64p    b3 = (new fix64p(-309.1172f));
            bool3x2   r3 = bool3x2(false, false, false, false, false, false);

            TestUtils.AreEqual(a3 == b3, r3);
        }
        public static void fix64p3x2_operator_equal_wide_wide()
        {
            fix64p3x2 a0 = fix64p3x2(new fix64p(-135.18924f), new fix64p(-49.0941162f), new fix64p(169.129822f), new fix64p(240.8053f), new fix64p(314.7392f), new fix64p(442.393f));
            fix64p3x2 b0 = fix64p3x2(new fix64p(-220.014648f), new fix64p(66.98004f), new fix64p(499.2016f), new fix64p(-371.1131f), new fix64p(208.448669f), new fix64p(390.8037f));
            bool3x2   r0 = bool3x2(false, false, false, false, false, false);

            TestUtils.AreEqual(a0 == b0, r0);

            fix64p3x2 a1 = fix64p3x2(new fix64p(177.924438f), new fix64p(335.5334f), new fix64p(168.15448f), new fix64p(350.729553f), new fix64p(367.178467f), new fix64p(46.9414673f));
            fix64p3x2 b1 = fix64p3x2(new fix64p(-72.44382f), new fix64p(362.97644f), new fix64p(194.678345f), new fix64p(471.644836f), new fix64p(-404.044678f), new fix64p(-144.696747f));
            bool3x2   r1 = bool3x2(false, false, false, false, false, false);

            TestUtils.AreEqual(a1 == b1, r1);

            fix64p3x2 a2 = fix64p3x2(new fix64p(188.76416f), new fix64p(-97.2113953f), new fix64p(-293.320984f), new fix64p(-234.822937f), new fix64p(417.0337f), new fix64p(26.3864136f));
            fix64p3x2 b2 = fix64p3x2(new fix64p(-494.446655f), new fix64p(-252.970367f), new fix64p(234.417114f), new fix64p(398.724f), new fix64p(260.4287f), new fix64p(370.144226f));
            bool3x2   r2 = bool3x2(false, false, false, false, false, false);

            TestUtils.AreEqual(a2 == b2, r2);

            fix64p3x2 a3 = fix64p3x2(new fix64p(269.245728f), new fix64p(29.4741821f), new fix64p(479.485229f), new fix64p(-237.230957f), new fix64p(-221.9837f), new fix64p(-506.672546f));
            fix64p3x2 b3 = fix64p3x2(new fix64p(89.579834f), new fix64p(-434.816833f), new fix64p(-109.845337f), new fix64p(336.973022f), new fix64p(-409.154968f), new fix64p(500.387573f));
            bool3x2   r3 = bool3x2(false, false, false, false, false, false);

            TestUtils.AreEqual(a3 == b3, r3);
        }
        public static void fix64p3x2_operator_not_equal_scalar_wide()
        {
            fix64p    a0 = (new fix64p(478.353149f));
            fix64p3x2 b0 = fix64p3x2(new fix64p(459.553223f), new fix64p(436.453247f), new fix64p(-488.714172f), new fix64p(392.767944f), new fix64p(-266.736633f), new fix64p(338.557861f));
            bool3x2   r0 = bool3x2(true, true, true, true, true, true);

            TestUtils.AreEqual(a0 != b0, r0);

            fix64p    a1 = (new fix64p(-338.100128f));
            fix64p3x2 b1 = fix64p3x2(new fix64p(-152.314545f), new fix64p(-452.820679f), new fix64p(209.439331f), new fix64p(50.10797f), new fix64p(372.4344f), new fix64p(-488.0213f));
            bool3x2   r1 = bool3x2(true, true, true, true, true, true);

            TestUtils.AreEqual(a1 != b1, r1);

            fix64p    a2 = (new fix64p(489.740784f));
            fix64p3x2 b2 = fix64p3x2(new fix64p(270.4001f), new fix64p(-472.846771f), new fix64p(-286.850464f), new fix64p(-384.691864f), new fix64p(443.423523f), new fix64p(358.7472f));
            bool3x2   r2 = bool3x2(true, true, true, true, true, true);

            TestUtils.AreEqual(a2 != b2, r2);

            fix64p    a3 = (new fix64p(-15.4140625f));
            fix64p3x2 b3 = fix64p3x2(new fix64p(-342.179169f), new fix64p(468.967529f), new fix64p(-130.568085f), new fix64p(401.785828f), new fix64p(-268.352264f), new fix64p(-239.231018f));
            bool3x2   r3 = bool3x2(true, true, true, true, true, true);

            TestUtils.AreEqual(a3 != b3, r3);
        }
        public static void fix64p3x2_operator_not_equal_wide_scalar()
        {
            fix64p3x2 a0 = fix64p3x2(new fix64p(-155.4411f), new fix64p(-19.4266052f), new fix64p(174.633057f), new fix64p(507.920715f), new fix64p(59.177063f), new fix64p(171.151489f));
            fix64p    b0 = (new fix64p(-393.413544f));
            bool3x2   r0 = bool3x2(true, true, true, true, true, true);

            TestUtils.AreEqual(a0 != b0, r0);

            fix64p3x2 a1 = fix64p3x2(new fix64p(-58.92328f), new fix64p(492.20105f), new fix64p(-165.241516f), new fix64p(270.341f), new fix64p(-380.243256f), new fix64p(501.899048f));
            fix64p    b1 = (new fix64p(-398.176849f));
            bool3x2   r1 = bool3x2(true, true, true, true, true, true);

            TestUtils.AreEqual(a1 != b1, r1);

            fix64p3x2 a2 = fix64p3x2(new fix64p(-134.345459f), new fix64p(46.7709961f), new fix64p(161.459961f), new fix64p(261.514221f), new fix64p(-145.6124f), new fix64p(-0.449920654f));
            fix64p    b2 = (new fix64p(458.400452f));
            bool3x2   r2 = bool3x2(true, true, true, true, true, true);

            TestUtils.AreEqual(a2 != b2, r2);

            fix64p3x2 a3 = fix64p3x2(new fix64p(350.461426f), new fix64p(242.664f), new fix64p(382.677063f), new fix64p(-468.967957f), new fix64p(-497.459473f), new fix64p(-80.93225f));
            fix64p    b3 = (new fix64p(202.221008f));
            bool3x2   r3 = bool3x2(true, true, true, true, true, true);

            TestUtils.AreEqual(a3 != b3, r3);
        }
Exemple #15
0
        public void double3x2_operator_equal_wide_scalar()
        {
            double3x2 a0 = double3x2(-303.2300766926399, 451.52631327674089, -253.65587413201848, -105.20363502632995, -500.6910920090466, -426.19248338518315);
            double    b0 = (123.5445759871717);
            bool3x2   r0 = bool3x2(false, false, false, false, false, false);

            TestUtils.AreEqual(a0 == b0, r0);

            double3x2 a1 = double3x2(159.87609656149334, -57.477391031327386, -182.0497396840014, 406.51375861024189, 370.88599866017978, -172.03530629539642);
            double    b1 = (-59.558379439431405);
            bool3x2   r1 = bool3x2(false, false, false, false, false, false);

            TestUtils.AreEqual(a1 == b1, r1);

            double3x2 a2 = double3x2(455.40001198993991, 363.93823044557973, -27.150561106927, -325.97606507221985, -290.35904254129116, 180.19686635779067);
            double    b2 = (-11.338988547836891);
            bool3x2   r2 = bool3x2(false, false, false, false, false, false);

            TestUtils.AreEqual(a2 == b2, r2);

            double3x2 a3 = double3x2(-374.12832015293105, -126.54608899287234, -197.2617896521752, -227.15933357326281, -479.8991937487848, -439.77767750237962);
            double    b3 = (-439.35894295170851);
            bool3x2   r3 = bool3x2(false, false, false, false, false, false);

            TestUtils.AreEqual(a3 == b3, r3);
        }
        public static void fp3x2_operator_equal_wide_scalar()
        {
            fp3x2   a0 = fp3x2(65.6712m, 404.415527m, -269.730164m, 83.6306152m, 152.9945m, -155.868286m);
            fp      b0 = (-155.815765m);
            bool3x2 r0 = bool3x2(false, false, false, false, false, false);

            TestUtils.AreEqual(a0 == b0, r0);

            fp3x2   a1 = fp3x2(314.671265m, 290.04895m, -132.6352m, -65.66748m, -69.68326m, -191.190765m);
            fp      b1 = (386.365173m);
            bool3x2 r1 = bool3x2(false, false, false, false, false, false);

            TestUtils.AreEqual(a1 == b1, r1);

            fp3x2   a2 = fp3x2(186.845215m, -319.144043m, -49.70108m, -300.8819m, 333.396851m, 386.3775m);
            fp      b2 = (-232.895691m);
            bool3x2 r2 = bool3x2(false, false, false, false, false, false);

            TestUtils.AreEqual(a2 == b2, r2);

            fp3x2   a3 = fp3x2(-296.7019m, 141.542358m, -227.323334m, 83.87286m, -410.91687m, 110.501282m);
            fp      b3 = (-309.1172m);
            bool3x2 r3 = bool3x2(false, false, false, false, false, false);

            TestUtils.AreEqual(a3 == b3, r3);
        }
Exemple #17
0
        public void double3x2_operator_equal_scalar_wide()
        {
            double    a0 = (-253.39728534100453);
            double3x2 b0 = double3x2(19.952187785856495, -185.79199346610903, 407.8136052600172, -87.2766969610363, -206.27469382354741, 160.503138855334);
            bool3x2   r0 = bool3x2(false, false, false, false, false, false);

            TestUtils.AreEqual(a0 == b0, r0);

            double    a1 = (-274.77081478516141);
            double3x2 b1 = double3x2(-2.6315281403397535, 448.35453602688131, -410.03524251004461, 247.32901465489022, 355.53915350303942, -298.06671180299793);
            bool3x2   r1 = bool3x2(false, false, false, false, false, false);

            TestUtils.AreEqual(a1 == b1, r1);

            double    a2 = (414.10151429385951);
            double3x2 b2 = double3x2(-481.30262707234482, 196.55074438664633, 34.60100008668428, 113.76156645350227, -386.45337861890596, -124.49174672201821);
            bool3x2   r2 = bool3x2(false, false, false, false, false, false);

            TestUtils.AreEqual(a2 == b2, r2);

            double    a3 = (243.8866447153905);
            double3x2 b3 = double3x2(-492.6181826501238, 145.424413033493, 421.55070968230757, -95.409988209330493, 336.80928746648567, 209.58380589707929);
            bool3x2   r3 = bool3x2(false, false, false, false, false, false);

            TestUtils.AreEqual(a3 == b3, r3);
        }
Exemple #18
0
        public static void bool3x2_operator_not_equal_wide_scalar()
        {
            bool3x2 a0 = bool3x2(false, true, false, true, true, false);
            bool    b0 = (false);
            bool3x2 r0 = bool3x2(false, true, false, true, true, false);

            TestUtils.AreEqual(r0, a0 != b0);

            bool3x2 a1 = bool3x2(false, false, false, false, false, false);
            bool    b1 = (false);
            bool3x2 r1 = bool3x2(false, false, false, false, false, false);

            TestUtils.AreEqual(r1, a1 != b1);

            bool3x2 a2 = bool3x2(true, false, false, false, true, true);
            bool    b2 = (false);
            bool3x2 r2 = bool3x2(true, false, false, false, true, true);

            TestUtils.AreEqual(r2, a2 != b2);

            bool3x2 a3 = bool3x2(false, true, true, true, true, true);
            bool    b3 = (true);
            bool3x2 r3 = bool3x2(true, false, false, false, false, false);

            TestUtils.AreEqual(r3, a3 != b3);
        }
Exemple #19
0
        public void double3x2_operator_equal_wide_wide()
        {
            double3x2 a0 = double3x2(492.15758275061728, -495.20632027797694, 227.45765195947968, -147.37405950733182, -222.68201909897942, 64.093720704360749);
            double3x2 b0 = double3x2(192.56880888369346, -235.61102472786376, -254.04311740307281, -412.62472052715009, 471.90480945627428, -6.4727852374654162);
            bool3x2   r0 = bool3x2(false, false, false, false, false, false);

            TestUtils.AreEqual(a0 == b0, r0);

            double3x2 a1 = double3x2(-23.890404473939157, -16.8197190839889, 163.23210890741655, -165.27101071424363, 470.87767980568003, -423.94255967808078);
            double3x2 b1 = double3x2(-339.10237447316865, 488.1875700839737, -379.5965842584132, -308.41700258311675, -82.333374300195544, -102.92108087563935);
            bool3x2   r1 = bool3x2(false, false, false, false, false, false);

            TestUtils.AreEqual(a1 == b1, r1);

            double3x2 a2 = double3x2(109.63436918595539, 462.69031283943468, -335.38147727371262, 357.23446934168896, 1.5455777652308598, -347.38824741327585);
            double3x2 b2 = double3x2(226.51573835430463, -356.90132896830391, -362.91277544708589, -427.89843746083716, 466.65013978753711, -102.79904680270658);
            bool3x2   r2 = bool3x2(false, false, false, false, false, false);

            TestUtils.AreEqual(a2 == b2, r2);

            double3x2 a3 = double3x2(-114.47217302884542, 435.84865804940864, 194.23808607563285, 138.76554710174241, -467.34914205379278, 370.43337767684523);
            double3x2 b3 = double3x2(-43.355954428834821, 85.045664111639212, -91.127054972167628, 422.19208856215334, -477.43130873024057, 1.8770024785198984);
            bool3x2   r3 = bool3x2(false, false, false, false, false, false);

            TestUtils.AreEqual(a3 == b3, r3);
        }
Exemple #20
0
        public static void bool3x2_operator_bitwise_or_wide_scalar()
        {
            bool3x2 a0 = bool3x2(true, true, false, true, true, true);
            bool    b0 = (true);
            bool3x2 r0 = bool3x2(true, true, true, true, true, true);

            TestUtils.AreEqual(r0, a0 | b0);

            bool3x2 a1 = bool3x2(true, true, false, false, true, false);
            bool    b1 = (false);
            bool3x2 r1 = bool3x2(true, true, false, false, true, false);

            TestUtils.AreEqual(r1, a1 | b1);

            bool3x2 a2 = bool3x2(false, false, true, true, true, true);
            bool    b2 = (true);
            bool3x2 r2 = bool3x2(true, true, true, true, true, true);

            TestUtils.AreEqual(r2, a2 | b2);

            bool3x2 a3 = bool3x2(true, true, true, false, true, false);
            bool    b3 = (true);
            bool3x2 r3 = bool3x2(true, true, true, true, true, true);

            TestUtils.AreEqual(r3, a3 | b3);
        }
        public static void fp3x2_operator_equal_wide_wide()
        {
            fp3x2   a0 = fp3x2(-135.18924m, -49.0941162m, 169.129822m, 240.8053m, 314.7392m, 442.393m);
            fp3x2   b0 = fp3x2(-220.014648m, 66.98004m, 499.2016m, -371.1131m, 208.448669m, 390.8037m);
            bool3x2 r0 = bool3x2(false, false, false, false, false, false);

            TestUtils.AreEqual(a0 == b0, r0);

            fp3x2   a1 = fp3x2(177.924438m, 335.5334m, 168.15448m, 350.729553m, 367.178467m, 46.9414673m);
            fp3x2   b1 = fp3x2(-72.44382m, 362.97644m, 194.678345m, 471.644836m, -404.044678m, -144.696747m);
            bool3x2 r1 = bool3x2(false, false, false, false, false, false);

            TestUtils.AreEqual(a1 == b1, r1);

            fp3x2   a2 = fp3x2(188.76416m, -97.2113953m, -293.320984m, -234.822937m, 417.0337m, 26.3864136m);
            fp3x2   b2 = fp3x2(-494.446655m, -252.970367m, 234.417114m, 398.724m, 260.4287m, 370.144226m);
            bool3x2 r2 = bool3x2(false, false, false, false, false, false);

            TestUtils.AreEqual(a2 == b2, r2);

            fp3x2   a3 = fp3x2(269.245728m, 29.4741821m, 479.485229m, -237.230957m, -221.9837m, -506.672546m);
            fp3x2   b3 = fp3x2(89.579834m, -434.816833m, -109.845337m, 336.973022m, -409.154968m, 500.387573m);
            bool3x2 r3 = bool3x2(false, false, false, false, false, false);

            TestUtils.AreEqual(a3 == b3, r3);
        }
        public static void bool3x2_operator_equal_scalar_wide()
        {
            bool    a0 = (true);
            bool3x2 b0 = bool3x2(false, false, true, false, true, false);
            bool3x2 r0 = bool3x2(false, false, true, false, true, false);

            TestUtils.AreEqual(a0 == b0, r0);

            bool    a1 = (true);
            bool3x2 b1 = bool3x2(false, false, false, false, true, false);
            bool3x2 r1 = bool3x2(false, false, false, false, true, false);

            TestUtils.AreEqual(a1 == b1, r1);

            bool    a2 = (true);
            bool3x2 b2 = bool3x2(true, true, false, true, true, false);
            bool3x2 r2 = bool3x2(true, true, false, true, true, false);

            TestUtils.AreEqual(a2 == b2, r2);

            bool    a3 = (false);
            bool3x2 b3 = bool3x2(true, false, false, true, false, false);
            bool3x2 r3 = bool3x2(false, true, true, false, true, true);

            TestUtils.AreEqual(a3 == b3, r3);
        }
        public static void fix64p3x2_operator_not_equal_wide_wide()
        {
            fix64p3x2 a0 = fix64p3x2(new fix64p(279.994141f), new fix64p(-43.34201f), new fix64p(-465.724731f), new fix64p(317.466553f), new fix64p(85.7149658f), new fix64p(360.8905f));
            fix64p3x2 b0 = fix64p3x2(new fix64p(-460.9121f), new fix64p(-476.009033f), new fix64p(468.1364f), new fix64p(-341.012543f), new fix64p(-62.65805f), new fix64p(-458.801666f));
            bool3x2   r0 = bool3x2(true, true, true, true, true, true);

            TestUtils.AreEqual(a0 != b0, r0);

            fix64p3x2 a1 = fix64p3x2(new fix64p(366.081543f), new fix64p(154.542847f), new fix64p(332.4262f), new fix64p(397.11322f), new fix64p(-431.374969f), new fix64p(489.0108f));
            fix64p3x2 b1 = fix64p3x2(new fix64p(-457.730225f), new fix64p(-59.5232544f), new fix64p(3.024231f), new fix64p(155.812744f), new fix64p(-19.8399048f), new fix64p(-6.01693726f));
            bool3x2   r1 = bool3x2(true, true, true, true, true, true);

            TestUtils.AreEqual(a1 != b1, r1);

            fix64p3x2 a2 = fix64p3x2(new fix64p(398.4336f), new fix64p(-489.817932f), new fix64p(171.4049f), new fix64p(-67.82968f), new fix64p(-192.278717f), new fix64p(227.84082f));
            fix64p3x2 b2 = fix64p3x2(new fix64p(-406.207916f), new fix64p(-102.420715f), new fix64p(-40.362915f), new fix64p(452.6754f), new fix64p(93.25757f), new fix64p(-258.378052f));
            bool3x2   r2 = bool3x2(true, true, true, true, true, true);

            TestUtils.AreEqual(a2 != b2, r2);

            fix64p3x2 a3 = fix64p3x2(new fix64p(62.1381836f), new fix64p(262.186462f), new fix64p(-404.0531f), new fix64p(34.449585f), new fix64p(-204.795776f), new fix64p(-285.4118f));
            fix64p3x2 b3 = fix64p3x2(new fix64p(-184.0498f), new fix64p(-379.2353f), new fix64p(-370.687317f), new fix64p(-255.947235f), new fix64p(29.0557861f), new fix64p(322.407654f));
            bool3x2   r3 = bool3x2(true, true, true, true, true, true);

            TestUtils.AreEqual(a3 != b3, r3);
        }
        public static void bool3x2_operator_bitwise_xor_scalar_wide()
        {
            bool    a0 = (true);
            bool3x2 b0 = bool3x2(true, false, false, true, false, true);
            bool3x2 r0 = bool3x2(false, true, true, false, true, false);

            TestUtils.AreEqual(a0 ^ b0, r0);

            bool    a1 = (true);
            bool3x2 b1 = bool3x2(true, true, true, true, true, true);
            bool3x2 r1 = bool3x2(false, false, false, false, false, false);

            TestUtils.AreEqual(a1 ^ b1, r1);

            bool    a2 = (true);
            bool3x2 b2 = bool3x2(true, true, false, true, false, true);
            bool3x2 r2 = bool3x2(false, false, true, false, true, false);

            TestUtils.AreEqual(a2 ^ b2, r2);

            bool    a3 = (false);
            bool3x2 b3 = bool3x2(false, false, false, true, false, true);
            bool3x2 r3 = bool3x2(false, false, false, true, false, true);

            TestUtils.AreEqual(a3 ^ b3, r3);
        }
        public static void bool3x2_operator_bitwise_or_wide_scalar()
        {
            bool3x2 a0 = bool3x2(false, false, true, true, false, true);
            bool    b0 = (true);
            bool3x2 r0 = bool3x2(true, true, true, true, true, true);

            TestUtils.AreEqual(a0 | b0, r0);

            bool3x2 a1 = bool3x2(false, false, true, true, false, false);
            bool    b1 = (true);
            bool3x2 r1 = bool3x2(true, true, true, true, true, true);

            TestUtils.AreEqual(a1 | b1, r1);

            bool3x2 a2 = bool3x2(true, true, false, true, false, false);
            bool    b2 = (false);
            bool3x2 r2 = bool3x2(true, true, false, true, false, false);

            TestUtils.AreEqual(a2 | b2, r2);

            bool3x2 a3 = bool3x2(false, true, false, true, true, true);
            bool    b3 = (true);
            bool3x2 r3 = bool3x2(true, true, true, true, true, true);

            TestUtils.AreEqual(a3 | b3, r3);
        }
        public static void bool3x2_operator_bitwise_and_wide_wide()
        {
            bool3x2 a0 = bool3x2(false, true, true, false, false, false);
            bool3x2 b0 = bool3x2(false, true, false, false, false, true);
            bool3x2 r0 = bool3x2(false, true, false, false, false, false);

            TestUtils.AreEqual(a0 & b0, r0);

            bool3x2 a1 = bool3x2(true, false, true, true, false, true);
            bool3x2 b1 = bool3x2(true, false, false, true, false, true);
            bool3x2 r1 = bool3x2(true, false, false, true, false, true);

            TestUtils.AreEqual(a1 & b1, r1);

            bool3x2 a2 = bool3x2(false, false, true, false, false, false);
            bool3x2 b2 = bool3x2(true, false, true, true, false, false);
            bool3x2 r2 = bool3x2(false, false, true, false, false, false);

            TestUtils.AreEqual(a2 & b2, r2);

            bool3x2 a3 = bool3x2(false, true, false, true, true, false);
            bool3x2 b3 = bool3x2(false, true, false, false, false, true);
            bool3x2 r3 = bool3x2(false, true, false, false, false, false);

            TestUtils.AreEqual(a3 & b3, r3);
        }
        public static void bool3x2_operator_not_equal_wide_scalar()
        {
            bool3x2 a0 = bool3x2(false, false, true, true, true, true);
            bool    b0 = (false);
            bool3x2 r0 = bool3x2(false, false, true, true, true, true);

            TestUtils.AreEqual(a0 != b0, r0);

            bool3x2 a1 = bool3x2(false, true, false, true, false, true);
            bool    b1 = (false);
            bool3x2 r1 = bool3x2(false, true, false, true, false, true);

            TestUtils.AreEqual(a1 != b1, r1);

            bool3x2 a2 = bool3x2(false, true, true, true, false, false);
            bool    b2 = (true);
            bool3x2 r2 = bool3x2(true, false, false, false, true, true);

            TestUtils.AreEqual(a2 != b2, r2);

            bool3x2 a3 = bool3x2(true, true, true, false, false, false);
            bool    b3 = (true);
            bool3x2 r3 = bool3x2(false, false, false, true, true, true);

            TestUtils.AreEqual(a3 != b3, r3);
        }
Exemple #28
0
        public static void bool3x2_operator_equal_scalar_wide()
        {
            bool    a0 = (false);
            bool3x2 b0 = bool3x2(true, false, true, false, false, true);
            bool3x2 r0 = bool3x2(false, true, false, true, true, false);

            TestUtils.AreEqual(r0, a0 == b0);

            bool    a1 = (false);
            bool3x2 b1 = bool3x2(false, true, false, true, true, false);
            bool3x2 r1 = bool3x2(true, false, true, false, false, true);

            TestUtils.AreEqual(r1, a1 == b1);

            bool    a2 = (true);
            bool3x2 b2 = bool3x2(false, true, true, true, false, false);
            bool3x2 r2 = bool3x2(false, true, true, true, false, false);

            TestUtils.AreEqual(r2, a2 == b2);

            bool    a3 = (true);
            bool3x2 b3 = bool3x2(false, true, true, false, true, true);
            bool3x2 r3 = bool3x2(false, true, true, false, true, true);

            TestUtils.AreEqual(r3, a3 == b3);
        }
        public static void bool3x2_operator_logical_not()
        {
            bool3x2 a0 = bool3x2(false, true, false, true, false, false);
            bool3x2 r0 = bool3x2(true, false, true, false, true, true);

            TestUtils.AreEqual(!a0, r0);

            bool3x2 a1 = bool3x2(false, true, false, true, true, true);
            bool3x2 r1 = bool3x2(true, false, true, false, false, false);

            TestUtils.AreEqual(!a1, r1);

            bool3x2 a2 = bool3x2(false, false, true, false, false, true);
            bool3x2 r2 = bool3x2(true, true, false, true, true, false);

            TestUtils.AreEqual(!a2, r2);

            bool3x2 a3 = bool3x2(false, false, false, true, true, true);
            bool3x2 r3 = bool3x2(true, true, true, false, false, false);

            TestUtils.AreEqual(!a3, r3);
        }
Exemple #30
0
        public static void bool3x2_operator_logical_not()
        {
            bool3x2 a0 = bool3x2(true, true, false, false, true, false);
            bool3x2 r0 = bool3x2(false, false, true, true, false, true);

            TestUtils.AreEqual(r0, !a0);

            bool3x2 a1 = bool3x2(true, true, false, false, false, false);
            bool3x2 r1 = bool3x2(false, false, true, true, true, true);

            TestUtils.AreEqual(r1, !a1);

            bool3x2 a2 = bool3x2(true, false, false, true, true, true);
            bool3x2 r2 = bool3x2(false, true, true, false, false, false);

            TestUtils.AreEqual(r2, !a2);

            bool3x2 a3 = bool3x2(false, true, true, false, false, false);
            bool3x2 r3 = bool3x2(true, false, false, true, true, true);

            TestUtils.AreEqual(r3, !a3);
        }