rounded_opposite< V > Struct Template Reference
#include <rounded.hpp>
List of all members.
Static Public Member Functions
- template<typename C > static C add (const C &x1, const C &x2)
- template<typename C > static C sub (const C &x1, const C &x2)
- template<typename C > static C mul (const C &x1, const C &x2)
- template<typename C > static C div (const C &x1, const C &x2)
- template<typename C > static C square (const C &x1)
Detailed Description
template<typename V>
struct mmx::rounded_opposite< V >
Definition at line 361 of file rounded.hpp.
Member Function Documentation
static C add |
( |
const C & |
x1, |
|
|
const C & |
x2 | |
|
) |
| | [inline, static] |
Definition at line 362 of file rounded.hpp.
References mmx::C.
00362 {
00363 C tmp= -x1; tmp -= x2; return -tmp; }
static C div |
( |
const C & |
x1, |
|
|
const C & |
x2 | |
|
) |
| | [inline, static] |
Definition at line 368 of file rounded.hpp.
References mmx::C.
00368 {
00369 C tmp= -x1; tmp /= x2; return -tmp; }
static C mul |
( |
const C & |
x1, |
|
|
const C & |
x2 | |
|
) |
| | [inline, static] |
Definition at line 366 of file rounded.hpp.
References mmx::C.
00366 {
00367 C tmp= -x1; tmp *= x2; return -tmp; }
static C square |
( |
const C & |
x1 |
) |
[inline, static] |
Definition at line 370 of file rounded.hpp.
References mmx::C.
00370 {
00371 C tmp= -x1; tmp *= x1; return -tmp; }
static C sub |
( |
const C & |
x1, |
|
|
const C & |
x2 | |
|
) |
| | [inline, static] |
Definition at line 364 of file rounded.hpp.
References mmx::C.
00364 {
00365 C tmp= x2; tmp -= x1; return -tmp; }
The documentation for this struct was generated from the following file: