rounded_local< Mode > Struct Template Reference

#include <rounded.hpp>

List of all members.

Static Public Member Functions


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 ( const X1 &  x1,
const X2 &  x2 
) [inline, static]

Definition at line 153 of file rounded.hpp.

References mmx::C, and Return_op.

00153                                           {
00154     typedef Return_op(Op,C) Rop;
00155     typedef rounding_helper<C> H;
00156     typename H::rounding old= H::get_rounding ();
00157     H::set_rounding (H::template translate<Mode>::val);
00158     C r= Rop::op (x1, x2);
00159     H::set_rounding (old);
00160     return r;
00161   }

static C rounded_as ( const X1 &  x1  )  [inline, static]

Definition at line 141 of file rounded.hpp.

References mmx::C, and Return_op.

00141                             {
00142     typedef Return_op(Op,C) Rop;
00143     typedef rounding_helper<C> H;
00144     typename H::rounding_mode old= H::get_rounding ();
00145     H::set_rounding (H::template translate<Mode>::val);
00146     C r= Rop::op (x1);
00147     H::set_rounding (old);
00148     return r;
00149   }

static C rounded_as (  )  [inline, static]

Definition at line 129 of file rounded.hpp.

References mmx::C, and Return_op.

00129                 {
00130     typedef Return_op(Op,C) Rop;
00131     typedef rounding_helper<C> H;
00132     typename H::rounding_mode old= H::get_rounding ();
00133     H::set_rounding (H::template translate<Mode>::val);
00134     C r= Rop::op ();
00135     H::set_rounding (old);
00136     return r;
00137   }


The documentation for this struct was generated from the following file:

Generated on 6 Dec 2012 for numerix by  doxygen 1.6.1