add_op Struct Reference
#include <operators.hpp>
List of all members.
Public Types
Static Public Member Functions
- static generic name ()
- static generic set_name ()
- template<typename C > static C neutral ()
- template<typename R > static void set_neutral (R &r)
- template<typename C > static C op (const C &x, const C &y)
- template<typename R , typename C > static void set_op (R &x, const C &y)
- template<typename R , typename C1 , typename C2 > static void set_op (R &x, const C1 &y1, const C2 &y2)
- template<typename C > static C diff_op (const C &me, const C &x, const C &y)
- template<typename C , typename M > static C op_mod (const C &x, const C &y, const M &p)
- template<typename C , typename M > static C op_mod (const C &x, const C &y, const M &p, C &carry)
- template<typename C , typename M > static void set_op_mod (C &x, const C &y, const M &p)
- template<typename C , typename M > static void set_op_mod (C &x, const C &y, const M &p, C &carry)
- template<typename C , typename M > static void set_op_mod (C &x, const C &y1, const C &y2, const M &p)
- template<typename C , typename M > static void set_op_mod (C &x, const C &y1, const C &y2, const M &p, C &carry)
Detailed Description
Definition at line 427 of file operators.hpp.
Member Typedef Documentation
Member Function Documentation
| static C diff_op |
( |
const C & |
me, |
|
|
const C & |
x, |
|
|
const C & |
y | |
|
) |
| | [inline, static] |
| static generic name |
( |
|
) |
[inline, static] |
| static C neutral |
( |
|
) |
[inline, static] |
| static C op |
( |
const C & |
x, |
|
|
const C & |
y | |
|
) |
| | [inline, static] |
| static C op_mod |
( |
const C & |
x, |
|
|
const C & |
y, |
|
|
const M & |
p, |
|
|
C & |
carry | |
|
) |
| | [inline, static] |
Definition at line 449 of file operators.hpp.
References mmx::C.
00449 {
00450 C z; add_mod (z, x, y, p, carry); return z; }
| static C op_mod |
( |
const C & |
x, |
|
|
const C & |
y, |
|
|
const M & |
p | |
|
) |
| | [inline, static] |
Definition at line 446 of file operators.hpp.
References mmx::C.
00446 {
00447 C z; add_mod (z, x, y, p); return z; }
| static generic set_name |
( |
|
) |
[inline, static] |
| static void set_neutral |
( |
R & |
r |
) |
[inline, static] |
| static void set_op |
( |
R & |
x, |
|
|
const C1 & |
y1, |
|
|
const C2 & |
y2 | |
|
) |
| | [inline, static] |
| static void set_op |
( |
R & |
x, |
|
|
const C & |
y | |
|
) |
| | [inline, static] |
| static void set_op_mod |
( |
C & |
x, |
|
|
const C & |
y1, |
|
|
const C & |
y2, |
|
|
const M & |
p, |
|
|
C & |
carry | |
|
) |
| | [inline, static] |
Definition at line 461 of file operators.hpp.
00461 {
00462 add_mod (x, y1, y2, p, carry); }
| static void set_op_mod |
( |
C & |
x, |
|
|
const C & |
y1, |
|
|
const C & |
y2, |
|
|
const M & |
p | |
|
) |
| | [inline, static] |
Definition at line 458 of file operators.hpp.
00458 {
00459 add_mod (x, y1, y2, p); }
| static void set_op_mod |
( |
C & |
x, |
|
|
const C & |
y, |
|
|
const M & |
p, |
|
|
C & |
carry | |
|
) |
| | [inline, static] |
Definition at line 455 of file operators.hpp.
00455 {
00456 add_mod (x, y, p, carry); }
| static void set_op_mod |
( |
C & |
x, |
|
|
const C & |
y, |
|
|
const M & |
p | |
|
) |
| | [inline, static] |
Definition at line 452 of file operators.hpp.
00452 {
00453 add_mod (x, y, p); }
The documentation for this struct was generated from the following file: