long_int_lshift_op< C > Struct Template Reference
#include <int.hpp>
List of all members.
Public Types
Static Public Member Functions
- static void op (uC &dest1, uC &dest0, nat s)
- dest1 R + dest0 <<= s
Static Public Attributes
- static const nat n2 = 4 * sizeof (uC)
- static const nat n = 2 * n2
Detailed Description
template<typename C>
struct mmx::long_int_lshift_op< C >
Definition at line 402 of file int.hpp.
Member Typedef Documentation
Member Function Documentation
static void op |
( |
uC & |
dest1, |
|
|
uC & |
dest0, |
|
|
nat |
s | |
|
) |
| | [inline, static] |
dest1 R + dest0 <<= s
Definition at line 410 of file int.hpp.
References long_int_lshift_op< C >::n.
00410 {
00411 if (s == 0) return;
00412 if (s < n) {
00413 dest1 = (dest1 << s) | (dest0 >> (n - s));
00414 dest0 = dest0 << s;
00415 }
00416 else {
00417 dest1 = dest0 << (s - n);
00418 dest0 = 0;
00419 }
00420 }
Member Data Documentation
const nat n2 = 4 * sizeof (uC) [static] |
The documentation for this struct was generated from the following file: