VaKeR CYBER ARMY
Logo of a company Server : Apache/2.4.41 (Ubuntu)
System : Linux absol.cf 5.4.0-198-generic #218-Ubuntu SMP Fri Sep 27 20:18:53 UTC 2024 x86_64
User : www-data ( 33)
PHP Version : 7.4.33
Disable Function : pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_get_handler,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,pcntl_async_signals,pcntl_unshare,
Directory :  /proc/thread-self/root/usr/include/boost/units/systems/information/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : //proc/thread-self/root/usr/include/boost/units/systems/information/prefixes.hpp
// Boost.Units - A C++ library for zero-overhead dimensional analysis and 
// unit/quantity manipulation and conversion
//
// Copyright (C) 2014 Erik Erlandson
//
// Distributed under the Boost Software License, Version 1.0. (See
// accompanying file LICENSE_1_0.txt or copy at
// http://www.boost.org/LICENSE_1_0.txt)

#ifndef BOOST_UNITS_SYSTEMS_INFORMATION_PREFIXES_HPP_INCLUDED
#define BOOST_UNITS_SYSTEMS_INFORMATION_PREFIXES_HPP_INCLUDED

#include <boost/units/make_scaled_unit.hpp>
#include <boost/units/static_rational.hpp>
#include <boost/units/scale.hpp>

#include <boost/units/systems/information/byte.hpp>

#define BOOST_UNITS_INFOSYS_PREFIX(exponent, name) \
    typedef make_scaled_unit<dimensionless, scale<2, static_rational<exponent> > >::type name ## _pf_type; \
    BOOST_UNITS_STATIC_CONSTANT(name, name ## _pf_type)

namespace boost {
namespace units {
namespace information {

// Note, these are defined (somewhat arbitrarily) against the 'byte' system.
// They work smoothly with bit_information, nat_information, etc, so it is
// transparent to the user.
BOOST_UNITS_INFOSYS_PREFIX(10, kibi);
BOOST_UNITS_INFOSYS_PREFIX(20, mebi);
BOOST_UNITS_INFOSYS_PREFIX(30, gibi);
BOOST_UNITS_INFOSYS_PREFIX(40, tebi);
BOOST_UNITS_INFOSYS_PREFIX(50, pebi);
BOOST_UNITS_INFOSYS_PREFIX(60, exbi);
BOOST_UNITS_INFOSYS_PREFIX(70, zebi);
BOOST_UNITS_INFOSYS_PREFIX(80, yobi);

} // namespace information
} // namespace units
} // namespace boost

#undef BOOST_UNITS_INFOSYS_PREFIX

#endif // BOOST_UNITS_SYSTEMS_INFORMATION_PREFIXES_HPP_INCLUDED

VaKeR 2022