fixed: rename integral methods as integer
This commit is contained in:
parent
5ad7d05fd4
commit
6fee487bc0
@ -61,7 +61,7 @@ fixed<I,E>::to_float (void) const
|
||||
//-----------------------------------------------------------------------------
|
||||
template <unsigned I, unsigned E>
|
||||
typename fixed<I,E>::uint_t
|
||||
fixed<I,E>::to_integral (void) const
|
||||
fixed<I,E>::to_integer (void) const
|
||||
{
|
||||
return m_value >> E;
|
||||
}
|
||||
@ -88,9 +88,9 @@ fixed<I,E>::from_native (uint_t i)
|
||||
//-----------------------------------------------------------------------------
|
||||
template <unsigned I, unsigned E>
|
||||
typename fixed<I,E>::uint_t
|
||||
fixed<I,E>::to_integral (uint_t v)
|
||||
fixed<I,E>::to_integer (uint_t n)
|
||||
{
|
||||
return v >> E;
|
||||
return n >> E;
|
||||
}
|
||||
|
||||
|
||||
|
@ -37,12 +37,11 @@ namespace util {
|
||||
|
||||
double to_double (void) const;
|
||||
float to_float (void) const;
|
||||
uint_t to_integral (void) const;
|
||||
uint_t to_integer (void) const;
|
||||
uint_t to_native (void) const;
|
||||
|
||||
static fixed<I,E> from_native (uint_t);
|
||||
|
||||
static uint_t to_integral (uint_t);
|
||||
static uint_t to_integer (uint_t);
|
||||
|
||||
fixed<I,E>& operator +=(const fixed<I,E>);
|
||||
fixed<I,E>& operator -=(const fixed<I,E>);
|
||||
|
Loading…
Reference in New Issue
Block a user