reference, declarationdefinition
definition → references, declarations, derived classes, virtual overrides
reference to multiple definitions → definitions
unreferenced

References

unittests/ADT/APFloatTest.cpp
   75   test = APFloat::getInf(APFloat::IEEEquad(), false);
   77   EXPECT_EQ(test.next(false), APFloat::opOK);
   78   EXPECT_TRUE(test.isInfinity());
   79   EXPECT_TRUE(!test.isNegative());
   80   EXPECT_TRUE(test.bitwiseIsEqual(expected));
   83   test = APFloat::getInf(APFloat::IEEEquad(), false);
   85   EXPECT_EQ(test.next(true), APFloat::opOK);
   86   EXPECT_TRUE(!test.isNegative());
   87   EXPECT_TRUE(test.bitwiseIsEqual(expected));
   90   test = APFloat::getInf(APFloat::IEEEquad(), true);
   92   EXPECT_EQ(test.next(false), APFloat::opOK);
   93   EXPECT_TRUE(test.isNegative());
   94   EXPECT_TRUE(test.bitwiseIsEqual(expected));
   97   test = APFloat::getInf(APFloat::IEEEquad(), true);
   99   EXPECT_EQ(test.next(true), APFloat::opOK);
  100   EXPECT_TRUE(test.isInfinity() && test.isNegative());
  100   EXPECT_TRUE(test.isInfinity() && test.isNegative());
  101   EXPECT_TRUE(test.bitwiseIsEqual(expected));
  104   test = APFloat::getLargest(APFloat::IEEEquad(), false);
  106   EXPECT_EQ(test.next(false), APFloat::opOK);
  107   EXPECT_TRUE(test.isInfinity() && !test.isNegative());
  107   EXPECT_TRUE(test.isInfinity() && !test.isNegative());
  108   EXPECT_TRUE(test.bitwiseIsEqual(expected));
  113   test = APFloat::getLargest(APFloat::IEEEquad(), false);
  116   EXPECT_EQ(test.next(true), APFloat::opOK);
  117   EXPECT_TRUE(!test.isInfinity() && !test.isNegative());
  117   EXPECT_TRUE(!test.isInfinity() && !test.isNegative());
  118   EXPECT_TRUE(test.bitwiseIsEqual(expected));
  121   test = APFloat::getLargest(APFloat::IEEEquad(), true);
  124   EXPECT_EQ(test.next(false), APFloat::opOK);
  125   EXPECT_TRUE(test.bitwiseIsEqual(expected));
  128   test = APFloat::getLargest(APFloat::IEEEquad(), true);
  130   EXPECT_EQ(test.next(true), APFloat::opOK);
  131   EXPECT_TRUE(test.isInfinity() && test.isNegative());
  131   EXPECT_TRUE(test.isInfinity() && test.isNegative());
  132   EXPECT_TRUE(test.bitwiseIsEqual(expected));
  135   test = APFloat(APFloat::IEEEquad(), "0x0.0000000000000000000000000001p-16382");
  138   EXPECT_EQ(test.next(false), APFloat::opOK);
  139   EXPECT_TRUE(test.bitwiseIsEqual(expected));
  142   test = APFloat(APFloat::IEEEquad(), "0x0.0000000000000000000000000001p-16382");
  144   EXPECT_EQ(test.next(true), APFloat::opOK);
  145   EXPECT_TRUE(test.isPosZero());
  146   EXPECT_TRUE(test.bitwiseIsEqual(expected));
  149   test = APFloat(APFloat::IEEEquad(), "-0x0.0000000000000000000000000001p-16382");
  151   EXPECT_EQ(test.next(false), APFloat::opOK);
  152   EXPECT_TRUE(test.isNegZero());
  153   EXPECT_TRUE(test.bitwiseIsEqual(expected));
  156   test = APFloat(APFloat::IEEEquad(), "-0x0.0000000000000000000000000001p-16382");
  159   EXPECT_EQ(test.next(true), APFloat::opOK);
  160   EXPECT_TRUE(test.bitwiseIsEqual(expected));
  163   test = APFloat::getQNaN(APFloat::IEEEquad(), false);
  165   EXPECT_EQ(test.next(false), APFloat::opOK);
  166   EXPECT_TRUE(test.bitwiseIsEqual(expected));
  169   test = APFloat::getQNaN(APFloat::IEEEquad(), false);
  171   EXPECT_EQ(test.next(true), APFloat::opOK);
  172   EXPECT_TRUE(test.bitwiseIsEqual(expected));
  175   test = APFloat::getSNaN(APFloat::IEEEquad(), false);
  177   EXPECT_EQ(test.next(false), APFloat::opInvalidOp);
  178   EXPECT_TRUE(test.bitwiseIsEqual(expected));
  181   test = APFloat::getSNaN(APFloat::IEEEquad(), false);
  183   EXPECT_EQ(test.next(true), APFloat::opInvalidOp);
  184   EXPECT_TRUE(test.bitwiseIsEqual(expected));
  187   test = APFloat::getZero(APFloat::IEEEquad(), false);
  189   EXPECT_EQ(test.next(false), APFloat::opOK);
  190   EXPECT_TRUE(test.bitwiseIsEqual(expected));
  193   test = APFloat::getZero(APFloat::IEEEquad(), false);
  195   EXPECT_EQ(test.next(true), APFloat::opOK);
  196   EXPECT_TRUE(test.bitwiseIsEqual(expected));
  199   test = APFloat::getZero(APFloat::IEEEquad(), true);
  201   EXPECT_EQ(test.next(false), APFloat::opOK);
  202   EXPECT_TRUE(test.bitwiseIsEqual(expected));
  205   test = APFloat::getZero(APFloat::IEEEquad(), true);
  207   EXPECT_EQ(test.next(true), APFloat::opOK);
  208   EXPECT_TRUE(test.bitwiseIsEqual(expected));
  219   test = APFloat(APFloat::IEEEquad(), "0x0.ffffffffffffffffffffffffffffp-16382");
  222   EXPECT_EQ(test.next(false), APFloat::opOK);
  223   EXPECT_FALSE(test.isDenormal());
  224   EXPECT_TRUE(test.bitwiseIsEqual(expected));
  227   test = APFloat(APFloat::IEEEquad(),
  231   EXPECT_EQ(test.next(true), APFloat::opOK);
  232   EXPECT_FALSE(test.isDenormal());
  233   EXPECT_TRUE(test.bitwiseIsEqual(expected));
  236   test = APFloat(APFloat::IEEEquad(),
  240   EXPECT_EQ(test.next(false), APFloat::opOK);
  241   EXPECT_TRUE(test.isDenormal());
  242   EXPECT_TRUE(test.bitwiseIsEqual(expected));
  245   test = APFloat(APFloat::IEEEquad(),
  249   EXPECT_EQ(test.next(true), APFloat::opOK);
  250   EXPECT_TRUE(test.isDenormal());
  251   EXPECT_TRUE(test.bitwiseIsEqual(expected));
  260   test = APFloat(APFloat::IEEEquad(), "-0x1p+1");
  263   EXPECT_EQ(test.next(false), APFloat::opOK);
  264   EXPECT_TRUE(test.bitwiseIsEqual(expected));
  267   test = APFloat(APFloat::IEEEquad(), "0x1p+1");
  269   EXPECT_EQ(test.next(true), APFloat::opOK);
  270   EXPECT_TRUE(test.bitwiseIsEqual(expected));
  273   test = APFloat(APFloat::IEEEquad(), "0x1.ffffffffffffffffffffffffffffp+0");
  275   EXPECT_EQ(test.next(false), APFloat::opOK);
  276   EXPECT_TRUE(test.bitwiseIsEqual(expected));
  279   test = APFloat(APFloat::IEEEquad(), "-0x1.ffffffffffffffffffffffffffffp+0");
  281   EXPECT_EQ(test.next(true), APFloat::opOK);
  282   EXPECT_TRUE(test.bitwiseIsEqual(expected));
  296   test = APFloat(APFloat::IEEEquad(), "-0x0.ffffffffffffffffffffffffffffp-16382");
  299   EXPECT_EQ(test.next(false), APFloat::opOK);
  300   EXPECT_TRUE(test.isDenormal());
  301   EXPECT_TRUE(test.isNegative());
  302   EXPECT_TRUE(test.bitwiseIsEqual(expected));
  305   test = APFloat(APFloat::IEEEquad(), "0x0.ffffffffffffffffffffffffffffp-16382");
  308   EXPECT_EQ(test.next(true), APFloat::opOK);
  309   EXPECT_TRUE(test.isDenormal());
  310   EXPECT_TRUE(!test.isNegative());
  311   EXPECT_TRUE(test.bitwiseIsEqual(expected));
  314   test = APFloat(APFloat::IEEEquad(), "0x1.0000000000000000000000000000p-16382");
  317   EXPECT_EQ(test.next(false), APFloat::opOK);
  318   EXPECT_TRUE(!test.isDenormal());
  319   EXPECT_TRUE(!test.isNegative());
  320   EXPECT_TRUE(test.bitwiseIsEqual(expected));
  323   test = APFloat(APFloat::IEEEquad(), "-0x1.0000000000000000000000000000p-16382");
  326   EXPECT_EQ(test.next(true), APFloat::opOK);
  327   EXPECT_TRUE(!test.isDenormal());
  328   EXPECT_TRUE(test.isNegative());
  329   EXPECT_TRUE(test.bitwiseIsEqual(expected));
  341   test = APFloat(APFloat::IEEEquad(), "-0x1p-16381");
  344   EXPECT_EQ(test.next(false), APFloat::opOK);
  345   EXPECT_TRUE(test.bitwiseIsEqual(expected));
  349   test = APFloat(APFloat::IEEEquad(), "-0x1.ffffffffffffffffffffffffffffp-16382");
  351   EXPECT_EQ(test.next(true), APFloat::opOK);
  352   EXPECT_TRUE(test.bitwiseIsEqual(expected));
  355   test = APFloat(APFloat::IEEEquad(), "0x1.ffffffffffffffffffffffffffffp-16382");
  357   EXPECT_EQ(test.next(false), APFloat::opOK);
  358   EXPECT_TRUE(test.bitwiseIsEqual(expected));
  361   test = APFloat(APFloat::IEEEquad(), "0x1p-16381");
  364   EXPECT_EQ(test.next(true), APFloat::opOK);
  365   EXPECT_TRUE(test.bitwiseIsEqual(expected));
  379   test = APFloat(APFloat::IEEEquad(),
  383   EXPECT_EQ(test.next(false), APFloat::opOK);
  384   EXPECT_TRUE(test.isDenormal());
  385   EXPECT_TRUE(!test.isNegative());
  386   EXPECT_TRUE(test.bitwiseIsEqual(expected));
  389   test = APFloat(APFloat::IEEEquad(),
  393   EXPECT_EQ(test.next(true), APFloat::opOK);
  394   EXPECT_TRUE(test.isDenormal());
  395   EXPECT_TRUE(!test.isNegative());
  396   EXPECT_TRUE(test.bitwiseIsEqual(expected));
  399   test = APFloat(APFloat::IEEEquad(),
  403   EXPECT_EQ(test.next(false), APFloat::opOK);
  404   EXPECT_TRUE(test.isDenormal());
  405   EXPECT_TRUE(test.isNegative());
  406   EXPECT_TRUE(test.bitwiseIsEqual(expected));
  409   test = APFloat(APFloat::IEEEquad(),
  413   EXPECT_EQ(test.next(true), APFloat::opOK);
  414   EXPECT_TRUE(test.isDenormal());
  415   EXPECT_TRUE(test.isNegative());
  416   EXPECT_TRUE(test.bitwiseIsEqual(expected));
  419   test = APFloat(APFloat::IEEEquad(),
  423   EXPECT_EQ(test.next(false), APFloat::opOK);
  424   EXPECT_TRUE(!test.isDenormal());
  425   EXPECT_TRUE(!test.isNegative());
  426   EXPECT_TRUE(test.bitwiseIsEqual(expected));
  429   test = APFloat(APFloat::IEEEquad(),
  433   EXPECT_EQ(test.next(true), APFloat::opOK);
  434   EXPECT_TRUE(!test.isDenormal());
  435   EXPECT_TRUE(!test.isNegative());
  436   EXPECT_TRUE(test.bitwiseIsEqual(expected));
  439   test = APFloat(APFloat::IEEEquad(),
  443   EXPECT_EQ(test.next(false), APFloat::opOK);
  444   EXPECT_TRUE(!test.isDenormal());
  445   EXPECT_TRUE(test.isNegative());
  446   EXPECT_TRUE(test.bitwiseIsEqual(expected));
  449   test = APFloat(APFloat::IEEEquad(),
  453   EXPECT_EQ(test.next(true), APFloat::opOK);
  454   EXPECT_TRUE(!test.isDenormal());
  455   EXPECT_TRUE(test.isNegative());
  456   EXPECT_TRUE(test.bitwiseIsEqual(expected));