Home
last modified time | relevance | path

Searched refs:FloatStyle (Results 1 – 9 of 9) sorted by relevance

/external/swiftshader/third_party/llvm-subzero/lib/Support/
DNativeFormatting.cpp164 void llvm::write_double(raw_ostream &S, double N, FloatStyle Style, in write_double()
177 if (Style == FloatStyle::Exponent) in write_double()
179 else if (Style == FloatStyle::ExponentUpper) in write_double()
188 if (Style == FloatStyle::Exponent || Style == FloatStyle::ExponentUpper) { in write_double()
197 if (Style == FloatStyle::ExponentUpper) in write_double()
208 if (Style == FloatStyle::ExponentUpper) in write_double()
240 if (Style == FloatStyle::Percent) in write_double()
246 if (Style == FloatStyle::Percent) in write_double()
249 if (Style == FloatStyle::Percent) in write_double()
257 size_t llvm::getDefaultPrecision(FloatStyle Style) { in getDefaultPrecision()
[all …]
Draw_ostream.cpp188 llvm::write_double(*this, N, FloatStyle::Exponent); in operator <<()
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Support/
DNativeFormatting.cpp164 void llvm::write_double(raw_ostream &S, double N, FloatStyle Style, in write_double()
177 if (Style == FloatStyle::Exponent) in write_double()
179 else if (Style == FloatStyle::ExponentUpper) in write_double()
188 if (Style == FloatStyle::Exponent || Style == FloatStyle::ExponentUpper) { in write_double()
197 if (Style == FloatStyle::ExponentUpper) in write_double()
208 if (Style == FloatStyle::ExponentUpper) in write_double()
240 if (Style == FloatStyle::Percent) in write_double()
246 if (Style == FloatStyle::Percent) in write_double()
254 size_t llvm::getDefaultPrecision(FloatStyle Style) { in getDefaultPrecision()
256 case FloatStyle::Exponent: in getDefaultPrecision()
[all …]
Draw_ostream.cpp192 llvm::write_double(*this, N, FloatStyle::Exponent); in operator <<()
/external/swiftshader/third_party/llvm-7.0/llvm/unittests/Support/
DNativeFormatTests.cpp38 std::string format_number(double D, FloatStyle Style, in format_number()
98 EXPECT_EQ("0.000000e+00", format_number(0.0, FloatStyle::Exponent)); in TEST()
99 EXPECT_EQ("-0.000000e+00", format_number(-0.0, FloatStyle::Exponent)); in TEST()
100 EXPECT_EQ("1.100000e+00", format_number(1.1, FloatStyle::Exponent)); in TEST()
101 EXPECT_EQ("1.100000E+00", format_number(1.1, FloatStyle::ExponentUpper)); in TEST()
104 EXPECT_EQ("1.10", format_number(1.1, FloatStyle::Fixed)); in TEST()
105 EXPECT_EQ("1.34", format_number(1.34, FloatStyle::Fixed)); in TEST()
106 EXPECT_EQ("1.34", format_number(1.344, FloatStyle::Fixed)); in TEST()
107 EXPECT_EQ("1.35", format_number(1.346, FloatStyle::Fixed)); in TEST()
126 FloatStyle::Fixed)); in TEST()
[all …]
/external/swiftshader/third_party/llvm-subzero/include/llvm/Support/
DNativeFormatting.h19 enum class FloatStyle { Exponent, ExponentUpper, Fixed, Percent }; enum
26 size_t getDefaultPrecision(FloatStyle Style);
44 void write_double(raw_ostream &S, double D, FloatStyle Style,
DFormatProviders.h293 FloatStyle S;
295 S = FloatStyle::Percent;
297 S = FloatStyle::Fixed;
299 S = FloatStyle::ExponentUpper;
301 S = FloatStyle::Exponent;
303 S = FloatStyle::Fixed;
/external/swiftshader/third_party/llvm-7.0/llvm/include/llvm/Support/
DNativeFormatting.h19 enum class FloatStyle { Exponent, ExponentUpper, Fixed, Percent }; enum
26 size_t getDefaultPrecision(FloatStyle Style);
44 void write_double(raw_ostream &S, double D, FloatStyle Style,
DFormatProviders.h304 FloatStyle S;
306 S = FloatStyle::Percent;
308 S = FloatStyle::Fixed;
310 S = FloatStyle::ExponentUpper;
312 S = FloatStyle::Exponent;
314 S = FloatStyle::Fixed;