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

References

tools/clang/unittests/Frontend/FixedPointString.cpp
   14   FixedPointValueToString(S, APSInt::get(320), 7);
   15   ASSERT_STREQ(S.c_str(), "2.5");
   17   S.clear();
   18   FixedPointValueToString(S, APSInt::get(0), 7);
   19   ASSERT_STREQ(S.c_str(), "0.0");
   22   S.clear();
   23   FixedPointValueToString(S, APSInt::getMaxValue(16, /*Unsigned=*/false), 7);
   24   ASSERT_STREQ(S.c_str(), "255.9921875");
   27   S.clear();
   28   FixedPointValueToString(S, APSInt::getMaxValue(32, /*Unsigned=*/false), 15);
   29   ASSERT_STREQ(S.c_str(), "65535.999969482421875");
   32   S.clear();
   33   FixedPointValueToString(S, APSInt::getMaxValue(64, /*Unsigned=*/false), 31);
   34   ASSERT_STREQ(S.c_str(), "4294967295.9999999995343387126922607421875");
   37   S.clear();
   38   FixedPointValueToString(S, APSInt::getMaxValue(16, /*Unsigned=*/true), 8);
   39   ASSERT_STREQ(S.c_str(), "255.99609375");
   42   S.clear();
   43   FixedPointValueToString(S, APSInt::getMaxValue(32, /*Unsigned=*/true), 16);
   44   ASSERT_STREQ(S.c_str(), "65535.9999847412109375");
   47   S.clear();
   48   FixedPointValueToString(S, APSInt::getMaxValue(64, /*Unsigned=*/true), 32);
   49   ASSERT_STREQ(S.c_str(), "4294967295.99999999976716935634613037109375");
   52   S.clear();
   53   FixedPointValueToString(S, APSInt::getMaxValue(8, /*Unsigned=*/false), 7);
   54   ASSERT_STREQ(S.c_str(), "0.9921875");
   57   S.clear();
   58   FixedPointValueToString(S, APSInt::getMaxValue(16, /*Unsigned=*/false), 15);
   59   ASSERT_STREQ(S.c_str(), "0.999969482421875");
   62   S.clear();
   63   FixedPointValueToString(S, APSInt::getMaxValue(32, /*Unsigned=*/false), 31);
   64   ASSERT_STREQ(S.c_str(), "0.9999999995343387126922607421875");
   67   S.clear();
   68   FixedPointValueToString(S, APSInt::getMaxValue(8, /*Unsigned=*/true), 8);
   69   ASSERT_STREQ(S.c_str(), "0.99609375");
   72   S.clear();
   73   FixedPointValueToString(S, APSInt::getMaxValue(16, /*Unsigned=*/true), 16);
   74   ASSERT_STREQ(S.c_str(), "0.9999847412109375");
   77   S.clear();
   78   FixedPointValueToString(S, APSInt::getMaxValue(32, /*Unsigned=*/true), 32);
   79   ASSERT_STREQ(S.c_str(), "0.99999999976716935634613037109375");