The Battle for Wesnoth  1.13.4+dev
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
Namespaces | Functions
floating_point_emulation.cpp File Reference
#include "floating_point_emulation.hpp"
#include <boost/test/unit_test.hpp>
Include dependency graph for floating_point_emulation.cpp:

Go to the source code of this file.

Namespaces

 floating_point_emulation
 

Functions

template<class T , unsigned S>
std::ostream & floating_point_emulation::operator<< (std::ostream &stream, const tfloat< T, S > &rhs)
 
template<class T , unsigned S>
static void test_create ()
 
template<class T , unsigned S>
static void test_assign ()
 
template<class T , unsigned S>
static void test_unary ()
 
template<class T , unsigned S>
static void test_multiply ()
 
template<class T , unsigned S>
static void test_divide ()
 
template<class T , unsigned S>
static void test_add ()
 
template<class T , unsigned S>
static void test_subtract ()
 
template<class T , unsigned S>
static void test_less_than ()
 
template<class T , unsigned S>
static void test_less_than_equal_to ()
 
template<class T , unsigned S>
static void test_greater_than ()
 
template<class T , unsigned S>
static void test_greater_than_equal_to ()
 
template<class T , unsigned S>
static void test_equal_to ()
 
template<class T , unsigned S>
static void test_not_equal_to ()
 
template<class T , unsigned S>
static void test_to_int ()
 
template<class T , unsigned S>
static void test_to_double ()
 
template<class T , unsigned S>
static void test_floor ()
 
template<class T , unsigned S>
static void test_divide_range_optimizations ()
 
template<class T , unsigned S>
static void test ()
 
 BOOST_AUTO_TEST_CASE (test_floating_point_emulation)
 
void instanciate_idiv (floating_point_emulation::tfloat< Sint32, 8 > &f, const floating_point_emulation::tfloat< Sint32, 8 > g)
 

Function Documentation

BOOST_AUTO_TEST_CASE ( test_floating_point_emulation  )

Definition at line 1067 of file floating_point_emulation.cpp.

void instanciate_idiv ( floating_point_emulation::tfloat< Sint32, 8 > &  f,
const floating_point_emulation::tfloat< Sint32, 8 >  g 
)

Definition at line 1088 of file floating_point_emulation.cpp.

References g.

template<class T , unsigned S>
static void test ( )
static
template<class T , unsigned S>
static void test_add ( )
static

Definition at line 447 of file floating_point_emulation.cpp.

References g.

template<class T , unsigned S>
static void test_assign ( )
static

Definition at line 67 of file floating_point_emulation.cpp.

References g.

template<class T , unsigned S>
static void test_create ( )
static

Definition at line 38 of file floating_point_emulation.cpp.

template<class T , unsigned S>
static void test_divide ( )
static

Definition at line 307 of file floating_point_emulation.cpp.

References g.

template<class T , unsigned S>
static void test_divide_range_optimizations ( )
static

Definition at line 978 of file floating_point_emulation.cpp.

References g, and i.

template<class T , unsigned S>
static void test_equal_to ( )
static

Definition at line 833 of file floating_point_emulation.cpp.

References g.

template<class T , unsigned S>
static void test_floor ( )
static
template<class T , unsigned S>
static void test_greater_than ( )
static

Definition at line 709 of file floating_point_emulation.cpp.

References g.

template<class T , unsigned S>
static void test_greater_than_equal_to ( )
static

Definition at line 771 of file floating_point_emulation.cpp.

References g.

template<class T , unsigned S>
static void test_less_than ( )
static

Definition at line 585 of file floating_point_emulation.cpp.

References g.

template<class T , unsigned S>
static void test_less_than_equal_to ( )
static

Definition at line 647 of file floating_point_emulation.cpp.

References g.

template<class T , unsigned S>
static void test_multiply ( )
static

Definition at line 151 of file floating_point_emulation.cpp.

References g.

template<class T , unsigned S>
static void test_not_equal_to ( )
static

Definition at line 862 of file floating_point_emulation.cpp.

References g.

template<class T , unsigned S>
static void test_subtract ( )
static

Definition at line 516 of file floating_point_emulation.cpp.

References g.

template<class T , unsigned S>
static void test_to_double ( )
static
template<class T , unsigned S>
static void test_to_int ( )
static
template<class T , unsigned S>
static void test_unary ( )
static

Definition at line 101 of file floating_point_emulation.cpp.

References g.