Classes | |
struct | tfloor |
struct | tfloor< double, S > |
struct | tfloor< Sint32, S > |
struct | tidiv |
struct | tidiv< T, 8 > |
struct | tscale |
struct | tscale< double, S, typename boost::enable_if_c< S!=0 >::type > |
struct | tscale< Sint32, S, typename boost::enable_if_c< S!=0 >::type > |
struct | tscale< T, 0 > |
Functions | |
template<class T , unsigned S> | |
T | load (int value) |
template<class T , unsigned S> | |
T | load (double value) |
template<class R , class T , unsigned S> | |
R | store (T value) |
void | sal (double &lhs, unsigned rhs) |
Shift arithmetically left. More... | |
void | sal (Sint32 &lhs, unsigned rhs) |
Shift arithmetically left. More... | |
void | sar (double &lhs, unsigned rhs) |
Shift arithmetically right. More... | |
void | sar (Sint32 &lhs, unsigned rhs) |
Shift arithmetically right. More... | |
|
inline |
Definition at line 229 of file floating_point_emulation.hpp.
Referenced by ai::lua_candidate_action_wrapper_external::generate_code(), game_launcher::load_game(), play_controller::load_game(), and mp::create::process_event_impl().
|
inline |
Definition at line 237 of file floating_point_emulation.hpp.
|
inline |
Shift arithmetically left.
Shifting of floating point values doesn't exist so it's emulated by a multiplication. This function allows tidiv::idiv() to contain generic code.
lhs | The value to `shift'. |
rhs | The number of bits to `shift'. |
Definition at line 287 of file floating_point_emulation.hpp.
Referenced by floating_point_emulation::detail::tidiv< T, 8 >::idiv().
|
inline |
Shift arithmetically left.
lhs | The value to shift. |
rhs | The number of bits to shift. |
Definition at line 299 of file floating_point_emulation.hpp.
|
inline |
Shift arithmetically right.
Shifting of floating point values doesn't exist so it's emulated by a division. This function allows tidiv::idiv() to contain generic code.
lhs | The value to `shift'. |
rhs | The number of bits to `shift'. |
Definition at line 315 of file floating_point_emulation.hpp.
Referenced by floating_point_emulation::detail::tidiv< T, 8 >::idiv().
|
inline |
Shift arithmetically right.
lhs | The value to shift. |
rhs | The number of bits to shift. |
Definition at line 327 of file floating_point_emulation.hpp.
|
inline |
Definition at line 244 of file floating_point_emulation.hpp.
Referenced by commandline_options::commandline_options(), wesnothd::room_manager::store_player_rooms(), pathfind::manager::to_config(), and game_events::WML_HANDLER_FUNCTION().