Home
last modified time | relevance | path

Searched refs:byte_base_unit (Results 1 – 5 of 5) sorted by relevance

/third_party/boost/libs/units/test/
Dtest_output.cpp56 struct byte_base_unit : boost::units::base_unit<byte_base_unit, boost::units::dimensionless_type, 3… struct
262 BOOST_UNITS_TEST_OUTPUT(std::pow(2., 10) * byte_base_unit::unit_type(), "1024 b"); in BOOST_AUTO_TEST_CASE()
356 BOOST_UNITS_TEST_OUTPUT(std::pow(2., 10) * byte_base_unit::unit_type(), "1.024 kilobyte"); in BOOST_AUTO_TEST_CASE()
404 BOOST_UNITS_TEST_OUTPUT(std::pow(2., 10) * byte_base_unit::unit_type(), "1.024 kb"); in BOOST_AUTO_TEST_CASE()
412 BOOST_UNITS_TEST_OUTPUT(1024 * byte_base_unit::unit_type(), "1 Kib"); in BOOST_AUTO_TEST_CASE()
413 BOOST_UNITS_TEST_OUTPUT(std::pow(2., 20) * byte_base_unit::unit_type(), "1 Mib"); in BOOST_AUTO_TEST_CASE()
414 BOOST_UNITS_TEST_OUTPUT(std::pow(2., 30) * byte_base_unit::unit_type(), "1 Gib"); in BOOST_AUTO_TEST_CASE()
415 BOOST_UNITS_TEST_OUTPUT(std::pow(2., 40) * byte_base_unit::unit_type(), "1 Tib"); in BOOST_AUTO_TEST_CASE()
416 BOOST_UNITS_TEST_OUTPUT(std::pow(2., 50) * byte_base_unit::unit_type(), "1 Pib"); in BOOST_AUTO_TEST_CASE()
417 BOOST_UNITS_TEST_OUTPUT(std::pow(2., 60) * byte_base_unit::unit_type(), "1 Eib"); in BOOST_AUTO_TEST_CASE()
[all …]
Dtest_information_units.cpp34 using bu::information::byte_base_unit;
69 CHECK_DIRECT_CF(bit_base_unit::unit_type(), byte_base_unit::unit_type(), 8.0); in BOOST_AUTO_TEST_CASE()
89 …CHECK_TRANSITIVE_CF(byte_base_unit::unit_type(), bit_base_unit::unit_type(), nat_base_unit::unit_t… in BOOST_AUTO_TEST_CASE()
98 …CHECK_TRANSITIVE_CF(shannon_base_unit::unit_type(), bit_base_unit::unit_type(), byte_base_unit::un… in BOOST_AUTO_TEST_CASE()
103 …CHECK_TRANSITIVE_CF(byte_base_unit::unit_type(), nat_base_unit::unit_type(), hartley_base_unit::un… in BOOST_AUTO_TEST_CASE()
/third_party/boost/libs/units/example/
Dautoprefixes.cpp55 struct byte_base_unit : boost::units::base_unit<byte_base_unit, boost::units::dimensionless_type, 3> struct
101 quantity<byte_base_unit::unit_type> b = 2048. * byte_base_unit::unit_type(); in main()
/third_party/boost/boost/units/base_units/information/
Dbyte.hpp23 …base_unit<boost::units::information::bit_base_unit, scale<2, static_rational<3> > > byte_base_unit; typedef
28 struct base_unit_info<information::byte_base_unit> {
/third_party/boost/boost/units/systems/information/
Dbyte.hpp23 typedef make_system<byte_base_unit>::type system;