public void double2x4_operator_equal_wide_scalar() { double2x4 a0 = double2x4(-303.2300766926399, 451.52631327674089, -253.65587413201848, -105.20363502632995, -500.6910920090466, -426.19248338518315, 159.87609656149334, -59.558379439431405); double b0 = (123.5445759871717); bool2x4 r0 = bool2x4(false, false, false, false, false, false, false, false); TestUtils.AreEqual(a0 == b0, r0); double2x4 a1 = double2x4(-57.477391031327386, 406.51375861024189, 370.88599866017978, -172.03530629539642, 455.40001198993991, -11.338988547836891, 363.93823044557973, -27.150561106927); double b1 = (-182.0497396840014); bool2x4 r1 = bool2x4(false, false, false, false, false, false, false, false); TestUtils.AreEqual(a1 == b1, r1); double2x4 a2 = double2x4(-325.97606507221985, 180.19686635779067, -374.12832015293105, -439.35894295170851, -126.54608899287234, -197.2617896521752, -227.15933357326281, -479.8991937487848); double b2 = (-290.35904254129116); bool2x4 r2 = bool2x4(false, false, false, false, false, false, false, false); TestUtils.AreEqual(a2 == b2, r2); double2x4 a3 = double2x4(-439.77767750237962, -224.51705013239621, -422.83322616239695, -450.19627043707123, -20.106708774392814, 297.37999906082632, 185.9665759475746, -102.97598962810633); double b3 = (-495.23734902555); bool2x4 r3 = bool2x4(false, false, false, false, false, false, false, false); TestUtils.AreEqual(a3 == b3, r3); }
public static void bool2x4_operator_equal_scalar_wide() { bool a0 = (true); bool2x4 b0 = bool2x4(false, false, true, false, true, false, true, false); bool2x4 r0 = bool2x4(false, false, true, false, true, false, true, false); TestUtils.AreEqual(a0 == b0, r0); bool a1 = (false); bool2x4 b1 = bool2x4(false, false, true, false, true, true, true, false); bool2x4 r1 = bool2x4(true, true, false, true, false, false, false, true); TestUtils.AreEqual(a1 == b1, r1); bool a2 = (true); bool2x4 b2 = bool2x4(true, false, false, true, false, false, true, false); bool2x4 r2 = bool2x4(true, false, false, true, false, false, true, false); TestUtils.AreEqual(a2 == b2, r2); bool a3 = (false); bool2x4 b3 = bool2x4(true, false, false, true, false, true, true, true); bool2x4 r3 = bool2x4(false, true, true, false, true, false, false, false); TestUtils.AreEqual(a3 == b3, r3); }
public static void AreEqual(bool2x4 expected, bool2x4 actual) { AreEqual(expected.c0, actual.c0); AreEqual(expected.c1, actual.c1); AreEqual(expected.c2, actual.c2); AreEqual(expected.c3, actual.c3); }
public static void fix64p2x4_operator_equal_scalar_wide() { fix64p a0 = (new fix64p(36.38391f)); fix64p2x4 b0 = fix64p2x4(new fix64p(-400.4892f), new fix64p(-71.2868347f), new fix64p(156.978088f), new fix64p(-225.238739f), new fix64p(499.141785f), new fix64p(-211.979919f), new fix64p(428.311951f), new fix64p(-489.501343f)); bool2x4 r0 = bool2x4(false, false, false, false, false, false, false, false); TestUtils.AreEqual(a0 == b0, r0); fix64p a1 = (new fix64p(-5.691559f)); fix64p2x4 b1 = fix64p2x4(new fix64p(-30.8659363f), new fix64p(-362.9831f), new fix64p(184.503174f), new fix64p(-160.470612f), new fix64p(316.668823f), new fix64p(390.369263f), new fix64p(505.1051f), new fix64p(-294.6487f)); bool2x4 r1 = bool2x4(false, false, false, false, false, false, false, false); TestUtils.AreEqual(a1 == b1, r1); fix64p a2 = (new fix64p(443.1991f)); fix64p2x4 b2 = fix64p2x4(new fix64p(96.5592651f), new fix64p(-257.012939f), new fix64p(-245.054962f), new fix64p(326.464844f), new fix64p(-23.9599f), new fix64p(-168.694885f), new fix64p(386.2486f), new fix64p(-227.090637f)); bool2x4 r2 = bool2x4(false, false, false, false, false, false, false, false); TestUtils.AreEqual(a2 == b2, r2); fix64p a3 = (new fix64p(-336.612427f)); fix64p2x4 b3 = fix64p2x4(new fix64p(365.108154f), new fix64p(-405.390839f), new fix64p(-473.995483f), new fix64p(298.435364f), new fix64p(-149.86322f), new fix64p(450.0664f), new fix64p(153.47644f), new fix64p(56.28778f)); bool2x4 r3 = bool2x4(false, false, false, false, false, false, false, false); TestUtils.AreEqual(a3 == b3, r3); }
public static void bool2x4_operator_bitwise_or_wide_scalar() { bool2x4 a0 = bool2x4(false, false, true, true, false, true, false, true); bool b0 = (true); bool2x4 r0 = bool2x4(true, true, true, true, true, true, true, true); TestUtils.AreEqual(a0 | b0, r0); bool2x4 a1 = bool2x4(false, true, false, false, true, false, true, false); bool b1 = (true); bool2x4 r1 = bool2x4(true, true, true, true, true, true, true, true); TestUtils.AreEqual(a1 | b1, r1); bool2x4 a2 = bool2x4(true, false, false, true, true, false, true, true); bool b2 = (false); bool2x4 r2 = bool2x4(true, false, false, true, true, false, true, true); TestUtils.AreEqual(a2 | b2, r2); bool2x4 a3 = bool2x4(true, true, true, true, true, false, false, false); bool b3 = (true); bool2x4 r3 = bool2x4(true, true, true, true, true, true, true, true); TestUtils.AreEqual(a3 | b3, r3); }
public static void fix64p2x4_operator_not_equal_wide_scalar() { fix64p2x4 a0 = fix64p2x4(new fix64p(-155.4411f), new fix64p(-19.4266052f), new fix64p(174.633057f), new fix64p(507.920715f), new fix64p(59.177063f), new fix64p(171.151489f), new fix64p(-58.92328f), new fix64p(-398.176849f)); fix64p b0 = (new fix64p(-393.413544f)); bool2x4 r0 = bool2x4(true, true, true, true, true, true, true, true); TestUtils.AreEqual(a0 != b0, r0); fix64p2x4 a1 = fix64p2x4(new fix64p(492.20105f), new fix64p(270.341f), new fix64p(-380.243256f), new fix64p(501.899048f), new fix64p(-134.345459f), new fix64p(458.400452f), new fix64p(46.7709961f), new fix64p(161.459961f)); fix64p b1 = (new fix64p(-165.241516f)); bool2x4 r1 = bool2x4(true, true, true, true, true, true, true, true); TestUtils.AreEqual(a1 != b1, r1); fix64p2x4 a2 = fix64p2x4(new fix64p(261.514221f), new fix64p(-0.449920654f), new fix64p(350.461426f), new fix64p(202.221008f), new fix64p(242.664f), new fix64p(382.677063f), new fix64p(-468.967957f), new fix64p(-497.459473f)); fix64p b2 = (new fix64p(-145.6124f)); bool2x4 r2 = bool2x4(true, true, true, true, true, true, true, true); TestUtils.AreEqual(a2 != b2, r2); fix64p2x4 a3 = fix64p2x4(new fix64p(-80.93225f), new fix64p(-506.490326f), new fix64p(449.348145f), new fix64p(210.771f), new fix64p(249.181824f), new fix64p(-338.468536f), new fix64p(229.670654f), new fix64p(-76.5433044f)); fix64p b3 = (new fix64p(-328.587769f)); bool2x4 r3 = bool2x4(true, true, true, true, true, true, true, true); TestUtils.AreEqual(a3 != b3, r3); }
public static void fix64p2x4_operator_equal_wide_wide() { fix64p2x4 a0 = fix64p2x4(new fix64p(-135.18924f), new fix64p(-49.0941162f), new fix64p(169.129822f), new fix64p(240.8053f), new fix64p(314.7392f), new fix64p(442.393f), new fix64p(177.924438f), new fix64p(335.5334f)); fix64p2x4 b0 = fix64p2x4(new fix64p(-220.014648f), new fix64p(66.98004f), new fix64p(499.2016f), new fix64p(-371.1131f), new fix64p(208.448669f), new fix64p(390.8037f), new fix64p(-72.44382f), new fix64p(362.97644f)); bool2x4 r0 = bool2x4(false, false, false, false, false, false, false, false); TestUtils.AreEqual(a0 == b0, r0); fix64p2x4 a1 = fix64p2x4(new fix64p(168.15448f), new fix64p(350.729553f), new fix64p(367.178467f), new fix64p(46.9414673f), new fix64p(188.76416f), new fix64p(-97.2113953f), new fix64p(-293.320984f), new fix64p(-234.822937f)); fix64p2x4 b1 = fix64p2x4(new fix64p(194.678345f), new fix64p(471.644836f), new fix64p(-404.044678f), new fix64p(-144.696747f), new fix64p(-494.446655f), new fix64p(-252.970367f), new fix64p(234.417114f), new fix64p(398.724f)); bool2x4 r1 = bool2x4(false, false, false, false, false, false, false, false); TestUtils.AreEqual(a1 == b1, r1); fix64p2x4 a2 = fix64p2x4(new fix64p(417.0337f), new fix64p(26.3864136f), new fix64p(269.245728f), new fix64p(29.4741821f), new fix64p(479.485229f), new fix64p(-237.230957f), new fix64p(-221.9837f), new fix64p(-506.672546f)); fix64p2x4 b2 = fix64p2x4(new fix64p(260.4287f), new fix64p(370.144226f), new fix64p(89.579834f), new fix64p(-434.816833f), new fix64p(-109.845337f), new fix64p(336.973022f), new fix64p(-409.154968f), new fix64p(500.387573f)); bool2x4 r2 = bool2x4(false, false, false, false, false, false, false, false); TestUtils.AreEqual(a2 == b2, r2); fix64p2x4 a3 = fix64p2x4(new fix64p(-22.98944f), new fix64p(487.260864f), new fix64p(-419.731964f), new fix64p(337.2033f), new fix64p(245.043884f), new fix64p(390.215881f), new fix64p(84.4129639f), new fix64p(434.2079f)); fix64p2x4 b3 = fix64p2x4(new fix64p(-174.081818f), new fix64p(395.101135f), new fix64p(350.3393f), new fix64p(-243.144592f), new fix64p(-416.397369f), new fix64p(151.576477f), new fix64p(-18.2243347f), new fix64p(-431.677917f)); bool2x4 r3 = bool2x4(false, false, false, false, false, false, false, false); TestUtils.AreEqual(a3 == b3, r3); }
public static void fp2x4_operator_not_equal_scalar_wide() { fp a0 = (478.353149m); fp2x4 b0 = fp2x4(459.553223m, 436.453247m, -488.714172m, 392.767944m, -266.736633m, 338.557861m, -338.100128m, -152.314545m); bool2x4 r0 = bool2x4(true, true, true, true, true, true, true, true); TestUtils.AreEqual(a0 != b0, r0); fp a1 = (-452.820679m); fp2x4 b1 = fp2x4(209.439331m, 50.10797m, 372.4344m, -488.0213m, 489.740784m, 270.4001m, -472.846771m, -286.850464m); bool2x4 r1 = bool2x4(true, true, true, true, true, true, true, true); TestUtils.AreEqual(a1 != b1, r1); fp a2 = (-384.691864m); fp2x4 b2 = fp2x4(443.423523m, 358.7472m, -15.4140625m, -342.179169m, 468.967529m, -130.568085m, 401.785828m, -268.352264m); bool2x4 r2 = bool2x4(true, true, true, true, true, true, true, true); TestUtils.AreEqual(a2 != b2, r2); fp a3 = (-239.231018m); fp2x4 b3 = fp2x4(411.386536m, 139.769348m, 334.522034m, -223.629242m, -12.4884644m, 113.468872m, -189.652252m, -212.846558m); bool2x4 r3 = bool2x4(true, true, true, true, true, true, true, true); TestUtils.AreEqual(a3 != b3, r3); }
public static void fp2x4_operator_equal_wide_wide() { fp2x4 a0 = fp2x4(-135.18924m, -49.0941162m, 169.129822m, 240.8053m, 314.7392m, 442.393m, 177.924438m, 335.5334m); fp2x4 b0 = fp2x4(-220.014648m, 66.98004m, 499.2016m, -371.1131m, 208.448669m, 390.8037m, -72.44382m, 362.97644m); bool2x4 r0 = bool2x4(false, false, false, false, false, false, false, false); TestUtils.AreEqual(a0 == b0, r0); fp2x4 a1 = fp2x4(168.15448m, 350.729553m, 367.178467m, 46.9414673m, 188.76416m, -97.2113953m, -293.320984m, -234.822937m); fp2x4 b1 = fp2x4(194.678345m, 471.644836m, -404.044678m, -144.696747m, -494.446655m, -252.970367m, 234.417114m, 398.724m); bool2x4 r1 = bool2x4(false, false, false, false, false, false, false, false); TestUtils.AreEqual(a1 == b1, r1); fp2x4 a2 = fp2x4(417.0337m, 26.3864136m, 269.245728m, 29.4741821m, 479.485229m, -237.230957m, -221.9837m, -506.672546m); fp2x4 b2 = fp2x4(260.4287m, 370.144226m, 89.579834m, -434.816833m, -109.845337m, 336.973022m, -409.154968m, 500.387573m); bool2x4 r2 = bool2x4(false, false, false, false, false, false, false, false); TestUtils.AreEqual(a2 == b2, r2); fp2x4 a3 = fp2x4(-22.98944m, 487.260864m, -419.731964m, 337.2033m, 245.043884m, 390.215881m, 84.4129639m, 434.2079m); fp2x4 b3 = fp2x4(-174.081818m, 395.101135m, 350.3393m, -243.144592m, -416.397369m, 151.576477m, -18.2243347m, -431.677917m); bool2x4 r3 = bool2x4(false, false, false, false, false, false, false, false); TestUtils.AreEqual(a3 == b3, r3); }
public static void fp2x4_operator_not_equal_wide_wide() { fp2x4 a0 = fp2x4(279.994141m, -43.34201m, -465.724731m, 317.466553m, 85.7149658m, 360.8905m, 366.081543m, 154.542847m); fp2x4 b0 = fp2x4(-460.9121m, -476.009033m, 468.1364m, -341.012543m, -62.65805m, -458.801666m, -457.730225m, -59.5232544m); bool2x4 r0 = bool2x4(true, true, true, true, true, true, true, true); TestUtils.AreEqual(a0 != b0, r0); fp2x4 a1 = fp2x4(332.4262m, 397.11322m, -431.374969m, 489.0108m, 398.4336m, -489.817932m, 171.4049m, -67.82968m); fp2x4 b1 = fp2x4(3.024231m, 155.812744m, -19.8399048m, -6.01693726m, -406.207916m, -102.420715m, -40.362915m, 452.6754m); bool2x4 r1 = bool2x4(true, true, true, true, true, true, true, true); TestUtils.AreEqual(a1 != b1, r1); fp2x4 a2 = fp2x4(-192.278717m, 227.84082m, 62.1381836m, 262.186462m, -404.0531m, 34.449585m, -204.795776m, -285.4118m); fp2x4 b2 = fp2x4(93.25757m, -258.378052m, -184.0498m, -379.2353m, -370.687317m, -255.947235m, 29.0557861m, 322.407654m); bool2x4 r2 = bool2x4(true, true, true, true, true, true, true, true); TestUtils.AreEqual(a2 != b2, r2); fp2x4 a3 = fp2x4(-72.20682m, 444.749268m, 238.81781m, 365.1801m, -437.9229m, -362.442627m, 445.954346m, -0.417480469m); fp2x4 b3 = fp2x4(415.071716m, -467.726135m, -433.784668m, -212.165924m, 474.674927m, 452.483215m, -92.11273m, -385.9221m); bool2x4 r3 = bool2x4(true, true, true, true, true, true, true, true); TestUtils.AreEqual(a3 != b3, r3); }
public static void fp2x4_operator_not_equal_wide_scalar() { fp2x4 a0 = fp2x4(-155.4411m, -19.4266052m, 174.633057m, 507.920715m, 59.177063m, 171.151489m, -58.92328m, -398.176849m); fp b0 = (-393.413544m); bool2x4 r0 = bool2x4(true, true, true, true, true, true, true, true); TestUtils.AreEqual(a0 != b0, r0); fp2x4 a1 = fp2x4(492.20105m, 270.341m, -380.243256m, 501.899048m, -134.345459m, 458.400452m, 46.7709961m, 161.459961m); fp b1 = (-165.241516m); bool2x4 r1 = bool2x4(true, true, true, true, true, true, true, true); TestUtils.AreEqual(a1 != b1, r1); fp2x4 a2 = fp2x4(261.514221m, -0.449920654m, 350.461426m, 202.221008m, 242.664m, 382.677063m, -468.967957m, -497.459473m); fp b2 = (-145.6124m); bool2x4 r2 = bool2x4(true, true, true, true, true, true, true, true); TestUtils.AreEqual(a2 != b2, r2); fp2x4 a3 = fp2x4(-80.93225m, -506.490326m, 449.348145m, 210.771m, 249.181824m, -338.468536m, 229.670654m, -76.5433044m); fp b3 = (-328.587769m); bool2x4 r3 = bool2x4(true, true, true, true, true, true, true, true); TestUtils.AreEqual(a3 != b3, r3); }
public void double2x4_operator_not_equal_wide_wide() { double2x4 a0 = double2x4(430.8425316432689, 104.69001798736394, 225.80243478799355, -310.57017841496048, -418.61945815506363, 304.12820281839379, -509.32682561749908, -160.53807719076895); double2x4 b0 = double2x4(210.02470622305975, -55.203330304102678, -269.92533672504373, -234.54673372700194, 25.917412054686565, -63.726991444699024, -484.55371092471933, -425.333599050219); bool2x4 r0 = bool2x4(true, true, true, true, true, true, true, true); TestUtils.AreEqual(a0 != b0, r0); double2x4 a1 = double2x4(-203.30197606016975, -505.76325368590807, 162.17220623892365, 1.1561973100324394, 65.662074358045174, 102.78780250567377, 172.93008120960099, 26.621009123800832); double2x4 b1 = double2x4(-53.274394775402925, 328.1944192984115, 15.963139303011417, 461.71412417931208, -113.36304455313973, -240.07297264787974, 495.11916970420589, 203.5583661550462); bool2x4 r1 = bool2x4(true, true, true, true, true, true, true, true); TestUtils.AreEqual(a1 != b1, r1); double2x4 a2 = double2x4(235.12595259171258, 128.54198533321824, -354.99697630246959, 334.35948220564023, -495.83200692377613, 468.30740163675853, 458.37094733601941, 299.93733300824522); double2x4 b2 = double2x4(340.49345103860526, -241.90719448863865, 459.56982896270688, 213.0737384357833, -384.7828506831, -255.07233846144396, 477.66343115161328, -248.03662621604121); bool2x4 r2 = bool2x4(true, true, true, true, true, true, true, true); TestUtils.AreEqual(a2 != b2, r2); double2x4 a3 = double2x4(43.12718560319729, -354.71349994964595, -145.2871955117617, 390.80186218340032, -303.13149108697263, 391.13459533785215, 139.2868607692825, 104.52318506339714); double2x4 b3 = double2x4(-407.92344565313471, -199.78886971240343, 151.84326488889906, -97.120607659742518, 154.97589380805187, -172.83452065886672, 441.5027942329192, -401.73862785926957); bool2x4 r3 = bool2x4(true, true, true, true, true, true, true, true); TestUtils.AreEqual(a3 != b3, r3); }
public void double2x4_operator_equal_wide_wide() { double2x4 a0 = double2x4(492.15758275061728, -495.20632027797694, 227.45765195947968, -147.37405950733182, -222.68201909897942, 64.093720704360749, -23.890404473939157, -16.8197190839889); double2x4 b0 = double2x4(192.56880888369346, -235.61102472786376, -254.04311740307281, -412.62472052715009, 471.90480945627428, -6.4727852374654162, -339.10237447316865, 488.1875700839737); bool2x4 r0 = bool2x4(false, false, false, false, false, false, false, false); TestUtils.AreEqual(a0 == b0, r0); double2x4 a1 = double2x4(163.23210890741655, -165.27101071424363, 470.87767980568003, -423.94255967808078, 109.63436918595539, 462.69031283943468, -335.38147727371262, 357.23446934168896); double2x4 b1 = double2x4(-379.5965842584132, -308.41700258311675, -82.333374300195544, -102.92108087563935, 226.51573835430463, -356.90132896830391, -362.91277544708589, -427.89843746083716); bool2x4 r1 = bool2x4(false, false, false, false, false, false, false, false); TestUtils.AreEqual(a1 == b1, r1); double2x4 a2 = double2x4(1.5455777652308598, -347.38824741327585, -114.47217302884542, 435.84865804940864, 194.23808607563285, 138.76554710174241, -467.34914205379278, 370.43337767684523); double2x4 b2 = double2x4(466.65013978753711, -102.79904680270658, -43.355954428834821, 85.045664111639212, -91.127054972167628, 422.19208856215334, -477.43130873024057, 1.8770024785198984); bool2x4 r2 = bool2x4(false, false, false, false, false, false, false, false); TestUtils.AreEqual(a2 == b2, r2); double2x4 a3 = double2x4(476.70826147343416, 320.55264702465047, -498.59197377534207, 92.4169581366782, 104.51136856177425, 166.75460608618084, -204.73343024250744, 434.75675674656259); double2x4 b3 = double2x4(312.5800799394865, 254.59934365684137, 352.72583763335172, 62.490957050812881, 119.71476059766246, -511.05808639482507, -302.47273053902791, -371.76924365189359); bool2x4 r3 = bool2x4(false, false, false, false, false, false, false, false); TestUtils.AreEqual(a3 == b3, r3); }
public void double2x4_operator_equal_scalar_wide() { double a0 = (-253.39728534100453); double2x4 b0 = double2x4(19.952187785856495, -185.79199346610903, 407.8136052600172, -87.2766969610363, -206.27469382354741, 160.503138855334, -274.77081478516141, -2.6315281403397535); bool2x4 r0 = bool2x4(false, false, false, false, false, false, false, false); TestUtils.AreEqual(a0 == b0, r0); double a1 = (448.35453602688131); double2x4 b1 = double2x4(-410.03524251004461, 247.32901465489022, 355.53915350303942, -298.06671180299793, 414.10151429385951, -481.30262707234482, 196.55074438664633, 34.60100008668428); bool2x4 r1 = bool2x4(false, false, false, false, false, false, false, false); TestUtils.AreEqual(a1 == b1, r1); double a2 = (113.76156645350227); double2x4 b2 = double2x4(-386.45337861890596, -124.49174672201821, 243.8866447153905, -492.6181826501238, 145.424413033493, 421.55070968230757, -95.409988209330493, 336.80928746648567); bool2x4 r2 = bool2x4(false, false, false, false, false, false, false, false); TestUtils.AreEqual(a2 == b2, r2); double a3 = (209.58380589707929); double2x4 b3 = double2x4(487.441424358376, 161.80653365040507, 149.84247095409899, 225.723996505944, -71.21880176999548, 85.780251781353854, 192.547256797807, -49.887493395194156); bool2x4 r3 = bool2x4(false, false, false, false, false, false, false, false); TestUtils.AreEqual(a3 == b3, r3); }
public static void bool2x4_operator_equal_scalar_wide() { bool a0 = (false); bool2x4 b0 = bool2x4(true, false, true, false, false, true, false, false); bool2x4 r0 = bool2x4(false, true, false, true, true, false, true, true); TestUtils.AreEqual(r0, a0 == b0); bool a1 = (true); bool2x4 b1 = bool2x4(false, true, true, false, true, false, true, true); bool2x4 r1 = bool2x4(false, true, true, false, true, false, true, true); TestUtils.AreEqual(r1, a1 == b1); bool a2 = (true); bool2x4 b2 = bool2x4(false, false, true, false, true, true, false, true); bool2x4 r2 = bool2x4(false, false, true, false, true, true, false, true); TestUtils.AreEqual(r2, a2 == b2); bool a3 = (true); bool2x4 b3 = bool2x4(true, true, true, true, false, true, true, false); bool2x4 r3 = bool2x4(true, true, true, true, false, true, true, false); TestUtils.AreEqual(r3, a3 == b3); }
public static void fp2x4_operator_equal_wide_scalar() { fp2x4 a0 = fp2x4(65.6712m, 404.415527m, -269.730164m, 83.6306152m, 152.9945m, -155.868286m, 314.671265m, 386.365173m); fp b0 = (-155.815765m); bool2x4 r0 = bool2x4(false, false, false, false, false, false, false, false); TestUtils.AreEqual(a0 == b0, r0); fp2x4 a1 = fp2x4(290.04895m, -65.66748m, -69.68326m, -191.190765m, 186.845215m, -232.895691m, -319.144043m, -49.70108m); fp b1 = (-132.6352m); bool2x4 r1 = bool2x4(false, false, false, false, false, false, false, false); TestUtils.AreEqual(a1 == b1, r1); fp2x4 a2 = fp2x4(-300.8819m, 386.3775m, -296.7019m, -309.1172m, 141.542358m, -227.323334m, 83.87286m, -410.91687m); fp b2 = (333.396851m); bool2x4 r2 = bool2x4(false, false, false, false, false, false, false, false); TestUtils.AreEqual(a2 == b2, r2); fp2x4 a3 = fp2x4(110.501282m, 36.57434m, -427.541443m, -268.170837m, 175.8117m, -193.47995m, 291.051941m, 423.97168m); fp b3 = (-390.103577m); bool2x4 r3 = bool2x4(false, false, false, false, false, false, false, false); TestUtils.AreEqual(a3 == b3, r3); }
public static void fix64p2x4_operator_not_equal_wide_wide() { fix64p2x4 a0 = fix64p2x4(new fix64p(279.994141f), new fix64p(-43.34201f), new fix64p(-465.724731f), new fix64p(317.466553f), new fix64p(85.7149658f), new fix64p(360.8905f), new fix64p(366.081543f), new fix64p(154.542847f)); fix64p2x4 b0 = fix64p2x4(new fix64p(-460.9121f), new fix64p(-476.009033f), new fix64p(468.1364f), new fix64p(-341.012543f), new fix64p(-62.65805f), new fix64p(-458.801666f), new fix64p(-457.730225f), new fix64p(-59.5232544f)); bool2x4 r0 = bool2x4(true, true, true, true, true, true, true, true); TestUtils.AreEqual(a0 != b0, r0); fix64p2x4 a1 = fix64p2x4(new fix64p(332.4262f), new fix64p(397.11322f), new fix64p(-431.374969f), new fix64p(489.0108f), new fix64p(398.4336f), new fix64p(-489.817932f), new fix64p(171.4049f), new fix64p(-67.82968f)); fix64p2x4 b1 = fix64p2x4(new fix64p(3.024231f), new fix64p(155.812744f), new fix64p(-19.8399048f), new fix64p(-6.01693726f), new fix64p(-406.207916f), new fix64p(-102.420715f), new fix64p(-40.362915f), new fix64p(452.6754f)); bool2x4 r1 = bool2x4(true, true, true, true, true, true, true, true); TestUtils.AreEqual(a1 != b1, r1); fix64p2x4 a2 = fix64p2x4(new fix64p(-192.278717f), new fix64p(227.84082f), new fix64p(62.1381836f), new fix64p(262.186462f), new fix64p(-404.0531f), new fix64p(34.449585f), new fix64p(-204.795776f), new fix64p(-285.4118f)); fix64p2x4 b2 = fix64p2x4(new fix64p(93.25757f), new fix64p(-258.378052f), new fix64p(-184.0498f), new fix64p(-379.2353f), new fix64p(-370.687317f), new fix64p(-255.947235f), new fix64p(29.0557861f), new fix64p(322.407654f)); bool2x4 r2 = bool2x4(true, true, true, true, true, true, true, true); TestUtils.AreEqual(a2 != b2, r2); fix64p2x4 a3 = fix64p2x4(new fix64p(-72.20682f), new fix64p(444.749268f), new fix64p(238.81781f), new fix64p(365.1801f), new fix64p(-437.9229f), new fix64p(-362.442627f), new fix64p(445.954346f), new fix64p(-0.417480469f)); fix64p2x4 b3 = fix64p2x4(new fix64p(415.071716f), new fix64p(-467.726135f), new fix64p(-433.784668f), new fix64p(-212.165924f), new fix64p(474.674927f), new fix64p(452.483215f), new fix64p(-92.11273f), new fix64p(-385.9221f)); bool2x4 r3 = bool2x4(true, true, true, true, true, true, true, true); TestUtils.AreEqual(a3 != b3, r3); }
public static void fp2x4_operator_equal_scalar_wide() { fp a0 = (36.38391m); fp2x4 b0 = fp2x4(-400.4892m, -71.2868347m, 156.978088m, -225.238739m, 499.141785m, -211.979919m, 428.311951m, -489.501343m); bool2x4 r0 = bool2x4(false, false, false, false, false, false, false, false); TestUtils.AreEqual(a0 == b0, r0); fp a1 = (-5.691559m); fp2x4 b1 = fp2x4(-30.8659363m, -362.9831m, 184.503174m, -160.470612m, 316.668823m, 390.369263m, 505.1051m, -294.6487m); bool2x4 r1 = bool2x4(false, false, false, false, false, false, false, false); TestUtils.AreEqual(a1 == b1, r1); fp a2 = (443.1991m); fp2x4 b2 = fp2x4(96.5592651m, -257.012939m, -245.054962m, 326.464844m, -23.9599m, -168.694885m, 386.2486m, -227.090637m); bool2x4 r2 = bool2x4(false, false, false, false, false, false, false, false); TestUtils.AreEqual(a2 == b2, r2); fp a3 = (-336.612427m); fp2x4 b3 = fp2x4(365.108154m, -405.390839m, -473.995483m, 298.435364m, -149.86322m, 450.0664m, 153.47644m, 56.28778m); bool2x4 r3 = bool2x4(false, false, false, false, false, false, false, false); TestUtils.AreEqual(a3 == b3, r3); }
public static void fix64p2x4_operator_not_equal_scalar_wide() { fix64p a0 = (new fix64p(478.353149f)); fix64p2x4 b0 = fix64p2x4(new fix64p(459.553223f), new fix64p(436.453247f), new fix64p(-488.714172f), new fix64p(392.767944f), new fix64p(-266.736633f), new fix64p(338.557861f), new fix64p(-338.100128f), new fix64p(-152.314545f)); bool2x4 r0 = bool2x4(true, true, true, true, true, true, true, true); TestUtils.AreEqual(a0 != b0, r0); fix64p a1 = (new fix64p(-452.820679f)); fix64p2x4 b1 = fix64p2x4(new fix64p(209.439331f), new fix64p(50.10797f), new fix64p(372.4344f), new fix64p(-488.0213f), new fix64p(489.740784f), new fix64p(270.4001f), new fix64p(-472.846771f), new fix64p(-286.850464f)); bool2x4 r1 = bool2x4(true, true, true, true, true, true, true, true); TestUtils.AreEqual(a1 != b1, r1); fix64p a2 = (new fix64p(-384.691864f)); fix64p2x4 b2 = fix64p2x4(new fix64p(443.423523f), new fix64p(358.7472f), new fix64p(-15.4140625f), new fix64p(-342.179169f), new fix64p(468.967529f), new fix64p(-130.568085f), new fix64p(401.785828f), new fix64p(-268.352264f)); bool2x4 r2 = bool2x4(true, true, true, true, true, true, true, true); TestUtils.AreEqual(a2 != b2, r2); fix64p a3 = (new fix64p(-239.231018f)); fix64p2x4 b3 = fix64p2x4(new fix64p(411.386536f), new fix64p(139.769348f), new fix64p(334.522034f), new fix64p(-223.629242f), new fix64p(-12.4884644f), new fix64p(113.468872f), new fix64p(-189.652252f), new fix64p(-212.846558f)); bool2x4 r3 = bool2x4(true, true, true, true, true, true, true, true); TestUtils.AreEqual(a3 != b3, r3); }
public void bool2x4_operator_equal_wide_scalar() { bool2x4 a0 = bool2x4(false, true, false, false, false, false, true, false); bool b0 = (true); bool2x4 r0 = bool2x4(false, true, false, false, false, false, true, false); TestUtils.AreEqual(a0 == b0, r0); bool2x4 a1 = bool2x4(false, true, true, false, true, false, true, false); bool b1 = (false); bool2x4 r1 = bool2x4(true, false, false, true, false, true, false, true); TestUtils.AreEqual(a1 == b1, r1); bool2x4 a2 = bool2x4(false, true, false, false, false, false, false, false); bool b2 = (false); bool2x4 r2 = bool2x4(true, false, true, true, true, true, true, true); TestUtils.AreEqual(a2 == b2, r2); bool2x4 a3 = bool2x4(false, false, false, false, false, true, true, false); bool b3 = (false); bool2x4 r3 = bool2x4(true, true, true, true, true, false, false, true); TestUtils.AreEqual(a3 == b3, r3); }
public static void fix64p2x4_operator_equal_wide_scalar() { fix64p2x4 a0 = fix64p2x4(new fix64p(65.6712f), new fix64p(404.415527f), new fix64p(-269.730164f), new fix64p(83.6306152f), new fix64p(152.9945f), new fix64p(-155.868286f), new fix64p(314.671265f), new fix64p(386.365173f)); fix64p b0 = (new fix64p(-155.815765f)); bool2x4 r0 = bool2x4(false, false, false, false, false, false, false, false); TestUtils.AreEqual(a0 == b0, r0); fix64p2x4 a1 = fix64p2x4(new fix64p(290.04895f), new fix64p(-65.66748f), new fix64p(-69.68326f), new fix64p(-191.190765f), new fix64p(186.845215f), new fix64p(-232.895691f), new fix64p(-319.144043f), new fix64p(-49.70108f)); fix64p b1 = (new fix64p(-132.6352f)); bool2x4 r1 = bool2x4(false, false, false, false, false, false, false, false); TestUtils.AreEqual(a1 == b1, r1); fix64p2x4 a2 = fix64p2x4(new fix64p(-300.8819f), new fix64p(386.3775f), new fix64p(-296.7019f), new fix64p(-309.1172f), new fix64p(141.542358f), new fix64p(-227.323334f), new fix64p(83.87286f), new fix64p(-410.91687f)); fix64p b2 = (new fix64p(333.396851f)); bool2x4 r2 = bool2x4(false, false, false, false, false, false, false, false); TestUtils.AreEqual(a2 == b2, r2); fix64p2x4 a3 = fix64p2x4(new fix64p(110.501282f), new fix64p(36.57434f), new fix64p(-427.541443f), new fix64p(-268.170837f), new fix64p(175.8117f), new fix64p(-193.47995f), new fix64p(291.051941f), new fix64p(423.97168f)); fix64p b3 = (new fix64p(-390.103577f)); bool2x4 r3 = bool2x4(false, false, false, false, false, false, false, false); TestUtils.AreEqual(a3 == b3, r3); }
public static void bool2x4_operator_not_equal_wide_scalar() { bool2x4 a0 = bool2x4(false, true, false, true, true, false, false, false); bool b0 = (false); bool2x4 r0 = bool2x4(false, true, false, true, true, false, false, false); TestUtils.AreEqual(r0, a0 != b0); bool2x4 a1 = bool2x4(false, false, false, false, true, false, false, false); bool b1 = (false); bool2x4 r1 = bool2x4(false, false, false, false, true, false, false, false); TestUtils.AreEqual(r1, a1 != b1); bool2x4 a2 = bool2x4(false, true, false, true, true, true, true, true); bool b2 = (true); bool2x4 r2 = bool2x4(true, false, true, false, false, false, false, false); TestUtils.AreEqual(r2, a2 != b2); bool2x4 a3 = bool2x4(true, true, true, true, false, false, true, false); bool b3 = (false); bool2x4 r3 = bool2x4(true, true, true, true, false, false, true, false); TestUtils.AreEqual(r3, a3 != b3); }
public static void bool2x4_operator_bitwise_and_wide_wide() { bool2x4 a0 = bool2x4(false, true, true, false, false, false, true, false); bool2x4 b0 = bool2x4(false, true, false, false, false, true, true, false); bool2x4 r0 = bool2x4(false, true, false, false, false, false, true, false); TestUtils.AreEqual(a0 & b0, r0); bool2x4 a1 = bool2x4(true, true, false, true, false, false, true, false); bool2x4 b1 = bool2x4(false, true, false, true, true, false, true, true); bool2x4 r1 = bool2x4(false, true, false, true, false, false, true, false); TestUtils.AreEqual(a1 & b1, r1); bool2x4 a2 = bool2x4(false, false, false, true, false, true, true, false); bool2x4 b2 = bool2x4(false, false, false, true, false, false, false, true); bool2x4 r2 = bool2x4(false, false, false, true, false, false, false, false); TestUtils.AreEqual(a2 & b2, r2); bool2x4 a3 = bool2x4(false, false, true, false, false, true, false, false); bool2x4 b3 = bool2x4(true, false, false, false, true, false, false, true); bool2x4 r3 = bool2x4(false, false, false, false, false, false, false, false); TestUtils.AreEqual(a3 & b3, r3); }
public static void bool2x4_operator_bitwise_and_wide_wide() { bool2x4 a0 = bool2x4(false, false, true, true, false, false, true, true); bool2x4 b0 = bool2x4(false, false, true, false, true, true, false, false); bool2x4 r0 = bool2x4(false, false, true, false, false, false, false, false); TestUtils.AreEqual(r0, a0 & b0); bool2x4 a1 = bool2x4(true, false, true, true, true, true, false, false); bool2x4 b1 = bool2x4(true, true, false, false, false, false, true, false); bool2x4 r1 = bool2x4(true, false, false, false, false, false, false, false); TestUtils.AreEqual(r1, a1 & b1); bool2x4 a2 = bool2x4(true, true, true, false, true, true, false, true); bool2x4 b2 = bool2x4(true, false, true, true, true, true, true, true); bool2x4 r2 = bool2x4(true, false, true, false, true, true, false, true); TestUtils.AreEqual(r2, a2 & b2); bool2x4 a3 = bool2x4(true, false, true, true, true, false, false, true); bool2x4 b3 = bool2x4(true, true, true, false, false, false, true, false); bool2x4 r3 = bool2x4(true, false, true, false, false, false, false, false); TestUtils.AreEqual(r3, a3 & b3); }
public static void bool2x4_operator_bitwise_xor_scalar_wide() { bool a0 = (true); bool2x4 b0 = bool2x4(true, false, false, true, false, true, true, true); bool2x4 r0 = bool2x4(false, true, true, false, true, false, false, false); TestUtils.AreEqual(a0 ^ b0, r0); bool a1 = (true); bool2x4 b1 = bool2x4(true, true, true, true, true, true, true, false); bool2x4 r1 = bool2x4(false, false, false, false, false, false, false, true); TestUtils.AreEqual(a1 ^ b1, r1); bool a2 = (true); bool2x4 b2 = bool2x4(false, true, false, false, false, false, true, false); bool2x4 r2 = bool2x4(true, false, true, true, true, true, false, true); TestUtils.AreEqual(a2 ^ b2, r2); bool a3 = (true); bool2x4 b3 = bool2x4(false, true, true, false, true, false, false, false); bool2x4 r3 = bool2x4(true, false, false, true, false, true, true, true); TestUtils.AreEqual(a3 ^ b3, r3); }
public static void bool2x4_operator_bitwise_or_wide_scalar() { bool2x4 a0 = bool2x4(true, true, false, true, true, true, true, false); bool b0 = (true); bool2x4 r0 = bool2x4(true, true, true, true, true, true, true, true); TestUtils.AreEqual(r0, a0 | b0); bool2x4 a1 = bool2x4(true, false, true, false, false, true, false, true); bool b1 = (false); bool2x4 r1 = bool2x4(true, false, true, false, false, true, false, true); TestUtils.AreEqual(r1, a1 | b1); bool2x4 a2 = bool2x4(true, true, true, true, true, true, false, true); bool b2 = (true); bool2x4 r2 = bool2x4(true, true, true, true, true, true, true, true); TestUtils.AreEqual(r2, a2 | b2); bool2x4 a3 = bool2x4(false, false, true, true, true, true, true, true); bool b3 = (false); bool2x4 r3 = bool2x4(false, false, true, true, true, true, true, true); TestUtils.AreEqual(r3, a3 | b3); }
public static void bool2x4_operator_not_equal_wide_wide() { bool2x4 a0 = bool2x4(true, false, false, true, true, true, true, true); bool2x4 b0 = bool2x4(false, false, true, false, false, false, false, false); bool2x4 r0 = bool2x4(true, false, true, true, true, true, true, true); TestUtils.AreEqual(a0 != b0, r0); bool2x4 a1 = bool2x4(true, true, false, true, true, false, true, false); bool2x4 b1 = bool2x4(true, true, false, false, false, false, false, true); bool2x4 r1 = bool2x4(false, false, false, true, true, false, true, true); TestUtils.AreEqual(a1 != b1, r1); bool2x4 a2 = bool2x4(false, true, true, true, false, true, false, false); bool2x4 b2 = bool2x4(true, false, false, false, false, false, true, true); bool2x4 r2 = bool2x4(true, true, true, true, false, true, true, true); TestUtils.AreEqual(a2 != b2, r2); bool2x4 a3 = bool2x4(false, true, true, true, false, false, true, false); bool2x4 b3 = bool2x4(true, false, false, false, true, true, false, false); bool2x4 r3 = bool2x4(true, true, true, true, true, true, true, false); TestUtils.AreEqual(a3 != b3, r3); }
public static void bool2x4_operator_bitwise_xor_scalar_wide() { bool a0 = (true); bool2x4 b0 = bool2x4(true, false, true, true, false, true, true, false); bool2x4 r0 = bool2x4(false, true, false, false, true, false, false, true); TestUtils.AreEqual(r0, a0 ^ b0); bool a1 = (false); bool2x4 b1 = bool2x4(true, true, false, false, true, false, true, true); bool2x4 r1 = bool2x4(true, true, false, false, true, false, true, true); TestUtils.AreEqual(r1, a1 ^ b1); bool a2 = (false); bool2x4 b2 = bool2x4(true, true, true, false, false, false, true, true); bool2x4 r2 = bool2x4(true, true, true, false, false, false, true, true); TestUtils.AreEqual(r2, a2 ^ b2); bool a3 = (true); bool2x4 b3 = bool2x4(false, false, false, true, true, false, true, false); bool2x4 r3 = bool2x4(true, true, true, false, false, true, false, true); TestUtils.AreEqual(r3, a3 ^ b3); }
public static void AreEqual(bool2x4 a, bool2x4 b) { AreEqual(a.c0, b.c0); AreEqual(a.c1, b.c1); AreEqual(a.c2, b.c2); AreEqual(a.c3, b.c3); }
public void double2x4_operator_not_equal_scalar_wide() { double a0 = (275.79582823244664); double2x4 b0 = double2x4(-57.196896341255353, -382.4325279586169, 97.820359990848374, -161.46364529499022, -458.39563367254829, -499.61786364932448, 327.92217818271467, 367.57121699283425); bool2x4 r0 = bool2x4(true, true, true, true, true, true, true, true); TestUtils.AreEqual(a0 != b0, r0); double a1 = (59.7863667289663); double2x4 b1 = double2x4(-209.58068118318016, -62.580453186566217, -479.97497604786184, -49.494519495169868, -114.68521338081229, 109.93924599044919, -176.28482755286842, -347.48529903380449); bool2x4 r1 = bool2x4(true, true, true, true, true, true, true, true); TestUtils.AreEqual(a1 != b1, r1); double a2 = (85.540928165214609); double2x4 b2 = double2x4(-356.65954868712441, -104.24357490625397, -133.54918605347592, 243.53971135036079, 13.141311890045813, -379.98594754747393, -41.281226892620907, 87.911684792447659); bool2x4 r2 = bool2x4(true, true, true, true, true, true, true, true); TestUtils.AreEqual(a2 != b2, r2); double a3 = (-339.07727996403224); double2x4 b3 = double2x4(-371.82034533648766, 333.14425936953364, 294.81196011920088, -187.14565977228136, 220.19225774528093, -228.18207250730234, -499.72373914146971, 97.4059055305114); bool2x4 r3 = bool2x4(true, true, true, true, true, true, true, true); TestUtils.AreEqual(a3 != b3, r3); }