SASC
DVBSoftCAM

parallel_128_2long.h File Reference

Go to the source code of this file.

Classes

struct  group_t
struct  batch_t

Defines

#define GROUP_PARALLELISM   128
#define BYTES_PER_BATCH   16

Typedefs

typedef struct group_t group
typedef struct batch_t batch

Functions

static group FF0 ()
static group FF1 ()
static group FFAND (group a, group b)
static group FFOR (group a, group b)
static group FFXOR (group a, group b)
static group FFNOT (group a)
static void FFTABLEIN (unsigned char *tab, int g, unsigned char *data)
static void FFTABLEOUT (unsigned char *data, unsigned char *tab, int g)
static void FFTABLEOUTXORNBY (int n, unsigned char *data, unsigned char *tab, int g)
static batch B_FFAND (batch a, batch b)
static batch B_FFOR (batch a, batch b)
static batch B_FFXOR (batch a, batch b)
static batch B_FFN_ALL_29 ()
static batch B_FFN_ALL_02 ()
static batch B_FFN_ALL_04 ()
static batch B_FFN_ALL_10 ()
static batch B_FFN_ALL_40 ()
static batch B_FFN_ALL_80 ()
static batch B_FFSH8L (batch a, int n)
static batch B_FFSH8R (batch a, int n)
static void M_EMPTY (void)

Define Documentation

#define BYTES_PER_BATCH   16

Definition at line 98 of file parallel_128_2long.h.

#define GROUP_PARALLELISM   128

Definition at line 27 of file parallel_128_2long.h.


Typedef Documentation

typedef struct batch_t batch

Definition at line 96 of file parallel_128_2long.h.

typedef struct group_t group

Definition at line 25 of file parallel_128_2long.h.


Function Documentation

static batch B_FFAND ( batch  a,
batch  b 
) [inline, static]

Definition at line 100 of file parallel_128_2long.h.

References batch_t::s1, and batch_t::s2.

                                            {
  batch res;
  res.s1=a.s1&b.s1;
  res.s2=a.s2&b.s2;
  return res;
}
static batch B_FFN_ALL_02 ( ) [inline, static]

Definition at line 129 of file parallel_128_2long.h.

References batch_t::s1, and batch_t::s2.

                                  {
  batch res;
  res.s1=0x0202020202020202ULL;
  res.s2=0x0202020202020202ULL;
  return res;
}
static batch B_FFN_ALL_04 ( ) [inline, static]

Definition at line 135 of file parallel_128_2long.h.

References batch_t::s1, and batch_t::s2.

                                  {
  batch res;
  res.s1=0x0404040404040404ULL;
  res.s2=0x0404040404040404ULL;
  return res;
}
static batch B_FFN_ALL_10 ( ) [inline, static]

Definition at line 141 of file parallel_128_2long.h.

References batch_t::s1, and batch_t::s2.

                                  {
  batch res;
  res.s1=0x1010101010101010ULL;
  res.s2=0x1010101010101010ULL;
  return res;
}
static batch B_FFN_ALL_29 ( ) [inline, static]

Definition at line 122 of file parallel_128_2long.h.

References batch_t::s1, and batch_t::s2.

                                  {
  batch res;
  res.s1=0x2929292929292929ULL;
  res.s2=0x2929292929292929ULL;
  return res;
}
static batch B_FFN_ALL_40 ( ) [inline, static]

Definition at line 147 of file parallel_128_2long.h.

References batch_t::s1, and batch_t::s2.

                                  {
  batch res;
  res.s1=0x4040404040404040ULL;
  res.s2=0x4040404040404040ULL;
  return res;
}
static batch B_FFN_ALL_80 ( ) [inline, static]

Definition at line 153 of file parallel_128_2long.h.

References batch_t::s1, and batch_t::s2.

                                  {
  batch res;
  res.s1=0x8080808080808080ULL;
  res.s2=0x8080808080808080ULL;
  return res;
}
static batch B_FFOR ( batch  a,
batch  b 
) [inline, static]

Definition at line 107 of file parallel_128_2long.h.

References batch_t::s1, and batch_t::s2.

                                           {
  batch res;
  res.s1=a.s1|b.s1;
  res.s2=a.s2|b.s2;
  return res;
}
static batch B_FFSH8L ( batch  a,
int  n 
) [inline, static]

Definition at line 159 of file parallel_128_2long.h.

References batch_t::s1, and batch_t::s2.

                                           {
  batch res;
  res.s1=a.s1<<n;
  res.s2=a.s2<<n;
  return res;
}
static batch B_FFSH8R ( batch  a,
int  n 
) [inline, static]

Definition at line 166 of file parallel_128_2long.h.

References batch_t::s1, and batch_t::s2.

                                           {
  batch res;
  res.s1=a.s1>>n;
  res.s2=a.s2>>n;
  return res;
}
static batch B_FFXOR ( batch  a,
batch  b 
) [inline, static]

Definition at line 114 of file parallel_128_2long.h.

References batch_t::s1, and batch_t::s2.

                                            {
  batch res;
  res.s1=a.s1^b.s1;
  res.s2=a.s2^b.s2;
  return res;
}
static group FF0 ( ) [inline, static]

Definition at line 29 of file parallel_128_2long.h.

References group_t::s1, and group_t::s2.

                         {
  group res;
  res.s1=0x0ULL;
  res.s2=0x0ULL;
  return res;
}
static group FF1 ( ) [inline, static]

Definition at line 36 of file parallel_128_2long.h.

References group_t::s1, and group_t::s2.

                         {
  group res;
  res.s1=0xffffffffffffffffULL;
  res.s2=0xffffffffffffffffULL;
  return res;
}
static group FFAND ( group  a,
group  b 
) [inline, static]

Definition at line 43 of file parallel_128_2long.h.

References group_t::s1, and group_t::s2.

                                          {
  group res;
  res.s1=a.s1&b.s1;
  res.s2=a.s2&b.s2;
  return res;
}
static group FFNOT ( group  a) [inline, static]

Definition at line 64 of file parallel_128_2long.h.

References group_t::s1, and group_t::s2.

                                  {
  group res;
  res.s1=~a.s1;
  res.s2=~a.s2;
  return res;
}
static group FFOR ( group  a,
group  b 
) [inline, static]

Definition at line 50 of file parallel_128_2long.h.

References group_t::s1, and group_t::s2.

                                         {
  group res;
  res.s1=a.s1|b.s1;
  res.s2=a.s2|b.s2;
  return res;
}
static void FFTABLEIN ( unsigned char *  tab,
int  g,
unsigned char *  data 
) [inline, static]

Definition at line 74 of file parallel_128_2long.h.

References data.

                                                                            {
  *(((int *)tab)+2*g)=*((int *)data);
  *(((int *)tab)+2*g+1)=*(((int *)data)+1);
}
static void FFTABLEOUT ( unsigned char *  data,
unsigned char *  tab,
int  g 
) [inline, static]

Definition at line 79 of file parallel_128_2long.h.

                                                                             {
  *((int *)data)=*(((int *)tab)+2*g);
  *(((int *)data)+1)=*(((int *)tab)+2*g+1);
}
static void FFTABLEOUTXORNBY ( int  n,
unsigned char *  data,
unsigned char *  tab,
int  g 
) [inline, static]

Definition at line 84 of file parallel_128_2long.h.

References j.

                                                                                          {
  int j;
  for(j=0;j<n;j++){
    *(data+j)^=*(tab+8*g+j);
  }
}
static group FFXOR ( group  a,
group  b 
) [inline, static]

Definition at line 57 of file parallel_128_2long.h.

References group_t::s1, and group_t::s2.

                                          {
  group res;
  res.s1=a.s1^b.s1;
  res.s2=a.s2^b.s2;
  return res;
}
static void M_EMPTY ( void  ) [inline, static]

Definition at line 174 of file parallel_128_2long.h.

                                {
}
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines