#include <rounded.hpp>
List of all members.
Static Public Member Functions
- template<typename Op , typename C > static C rounded_as ()
- template<typename Op , typename C , typename X1 > static C rounded_as (const X1 &x1)
- template<typename Op , typename C , typename X1 , typename X2 > static C rounded_as (const X1 &x1, const X2 &x2)
Detailed Description
template<mmx_rounding Mode>
struct mmx::rounded_local< Mode >
Definition at line 126 of file rounded.hpp.
Member Function Documentation
static C rounded_as |
( |
| ) |
[inline, static] |
Definition at line 129 of file rounded.hpp.
References mmx::C.
{
typedef Return_op(Op,C) Rop;
typedef rounding_helper<C> H;
typename H::rounding_mode old= H::get_rounding ();
H::set_rounding (H::template translate<Mode>::val);
C r= Rop::op ();
H::set_rounding (old);
return r;
}
static C rounded_as |
( |
const X1 & |
x1, |
|
|
const X2 & |
x2 |
|
) |
| [inline, static] |
Definition at line 153 of file rounded.hpp.
References mmx::C.
{
typedef Return_op(Op,C) Rop;
typedef rounding_helper<C> H;
typename H::rounding old= H::get_rounding ();
H::set_rounding (H::template translate<Mode>::val);
C r= Rop::op (x1, x2);
H::set_rounding (old);
return r;
}
static C rounded_as |
( |
const X1 & |
x1 | ) |
[inline, static] |
Definition at line 141 of file rounded.hpp.
References mmx::C.
{
typedef Return_op(Op,C) Rop;
typedef rounding_helper<C> H;
typename H::rounding_mode old= H::get_rounding ();
H::set_rounding (H::template translate<Mode>::val);
C r= Rop::op (x1);
H::set_rounding (old);
return r;
}
The documentation for this struct was generated from the following file:
- /Users/mourrain/Devel/mmx/numerix/include/numerix/rounded.hpp