Chris@102: // Boost.Units - A C++ library for zero-overhead dimensional analysis and Chris@102: // unit/quantity manipulation and conversion Chris@102: // Chris@102: // Copyright (C) 2014 Erik Erlandson Chris@102: // Chris@102: // Distributed under the Boost Software License, Version 1.0. (See Chris@102: // accompanying file LICENSE_1_0.txt or copy at Chris@102: // http://www.boost.org/LICENSE_1_0.txt) Chris@102: Chris@102: #ifndef BOOST_UNITS_SYSTEMS_INFORMATION_PREFIXES_HPP_INCLUDED Chris@102: #define BOOST_UNITS_SYSTEMS_INFORMATION_PREFIXES_HPP_INCLUDED Chris@102: Chris@102: #include Chris@102: #include Chris@102: #include Chris@102: Chris@102: #include Chris@102: Chris@102: #define BOOST_UNITS_INFOSYS_PREFIX(exponent, name) \ Chris@102: typedef make_scaled_unit > >::type name ## _pf_type; \ Chris@102: BOOST_UNITS_STATIC_CONSTANT(name, name ## _pf_type) Chris@102: Chris@102: namespace boost { Chris@102: namespace units { Chris@102: namespace information { Chris@102: Chris@102: // Note, these are defined (somewhat arbitrarily) against the 'byte' system. Chris@102: // They work smoothly with bit_information, nat_information, etc, so it is Chris@102: // transparent to the user. Chris@102: BOOST_UNITS_INFOSYS_PREFIX(10, kibi); Chris@102: BOOST_UNITS_INFOSYS_PREFIX(20, mebi); Chris@102: BOOST_UNITS_INFOSYS_PREFIX(30, gibi); Chris@102: BOOST_UNITS_INFOSYS_PREFIX(40, tebi); Chris@102: BOOST_UNITS_INFOSYS_PREFIX(50, pebi); Chris@102: BOOST_UNITS_INFOSYS_PREFIX(60, exbi); Chris@102: BOOST_UNITS_INFOSYS_PREFIX(70, zebi); Chris@102: BOOST_UNITS_INFOSYS_PREFIX(80, yobi); Chris@102: Chris@102: } // namespace information Chris@102: } // namespace units Chris@102: } // namespace boost Chris@102: Chris@102: #undef BOOST_UNITS_INFOSYS_PREFIX Chris@102: Chris@102: #endif // BOOST_UNITS_SYSTEMS_INFORMATION_PREFIXES_HPP_INCLUDED