Wire Sysio Wire Sysion 1.0.0
Loading...
Searching...
No Matches
config.hpp File Reference
Include dependency graph for config.hpp:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Namespaces

namespace  sysio
 
namespace  sysio::chain
 
namespace  sysio::chain::config
 

Typedefs

typedef __uint128_t sysio::chain::config::uint128_t
 

Functions

constexpr uint64_t SYS_PERCENT (uint64_t value, uint32_t percentage)
 
template<typename Number >
Number SYS_PERCENT_CEIL (Number value, uint32_t percentage)
 

Variables

template<typename T >
constexpr uint64_t sysio::chain::config::billable_size_v = ((billable_size<T>::value + billable_alignment - 1) / billable_alignment) * billable_alignment
 

Function Documentation

◆ SYS_PERCENT()

uint64_t SYS_PERCENT ( uint64_t value,
uint32_t percentage )
constexpr

Definition at line 152 of file config.hpp.

152 {
153 return (value * percentage) / sysio::chain::config::percent_100;
154}
#define value
Definition pkcs11.h:157
Here is the caller graph for this function:

◆ SYS_PERCENT_CEIL()

template<typename Number >
Number SYS_PERCENT_CEIL ( Number value,
uint32_t percentage )

Definition at line 157 of file config.hpp.

157 {
158 return ((value * percentage) + sysio::chain::config::percent_100 - sysio::chain::config::percent_1) / sysio::chain::config::percent_100;
159}