hdwi< hardware_int > Struct Template Reference

#include <numerics_hdwi.hpp>

List of all members.

Public Types

Static Public Member Functions

Static Public Attributes


Detailed Description

template<class hardware_int>
struct mmx::numerics::hdwi< hardware_int >

Definition at line 47 of file numerics_hdwi.hpp.


Member Typedef Documentation

typedef hardware_int hdw_int

Definition at line 50 of file numerics_hdwi.hpp.


Member Function Documentation

static void reverse ( unsigned  h,
hdw_int a 
) [inline, static]

Definition at line 65 of file numerics_hdwi.hpp.

00066     {
00067       unsigned i;
00068       hdw_int c;
00069       c = 0;
00070       for ( i = 0; i < h; i ++ )
00071         {
00072           c <<= 1;
00073           c |= a&1;
00074           a >>= 1;
00075         };
00076       a = c;
00077     };

static hdw_int reverse ( hdw_int  a  )  [inline, static]

Definition at line 54 of file numerics_hdwi.hpp.

References hdwi< hardware_int >::nbit.

Referenced by mmx::reverse().

00055     {
00056       hdw_int res = 0;
00057       for ( unsigned i = 0; i < nbit; i ++ )
00058         {
00059           res <<= 1;
00060           res  |= a & 1;
00061           a   >>= 1;
00062         };
00063       return res;
00064     };


Member Data Documentation

const unsigned nbit = sizeof(hardware_int)*8 [static]

Definition at line 52 of file numerics_hdwi.hpp.

Referenced by hdwi< hardware_int >::reverse().

const T nmax [inline, static]

Definition at line 53 of file numerics_hdwi.hpp.


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

Generated on 6 Dec 2012 for realroot by  doxygen 1.6.1