SASC-NG
DVBSoftCAM

parallel_064_8charA.h File Reference

Go to the source code of this file.

Classes

struct  group_t
struct  batch_t

Defines

#define GROUP_PARALLELISM   64
#define BYTES_PER_BATCH   8

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   8

Definition at line 95 of file parallel_064_8charA.h.

#define GROUP_PARALLELISM   64

Definition at line 26 of file parallel_064_8charA.h.


Typedef Documentation

typedef struct batch_t batch

Definition at line 93 of file parallel_064_8charA.h.

typedef struct group_t group

Definition at line 24 of file parallel_064_8charA.h.


Function Documentation

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

Definition at line 97 of file parallel_064_8charA.h.

References i, and batch_t::s1.

                                            {
  batch res;
  int i;
  for(i=0;i<8;i++) res.s1[i]=a.s1[i]&b.s1[i];
  return res;
}
static batch B_FFN_ALL_02 ( ) [inline, static]

Definition at line 125 of file parallel_064_8charA.h.

References i, and batch_t::s1.

                                  {
  batch res;
  int i;
  for(i=0;i<8;i++) res.s1[i]=0x02;
  return res;
}
static batch B_FFN_ALL_04 ( ) [inline, static]

Definition at line 131 of file parallel_064_8charA.h.

References i, and batch_t::s1.

                                  {
  batch res;
  int i;
  for(i=0;i<8;i++) res.s1[i]=0x04;
  return res;
}
static batch B_FFN_ALL_10 ( ) [inline, static]

Definition at line 137 of file parallel_064_8charA.h.

References i, and batch_t::s1.

                                  {
  batch res;
  int i;
  for(i=0;i<8;i++) res.s1[i]=0x10;
  return res;
}
static batch B_FFN_ALL_29 ( ) [inline, static]

Definition at line 119 of file parallel_064_8charA.h.

References i, and batch_t::s1.

                                  {
  batch res;
  int i;
  for(i=0;i<8;i++) res.s1[i]=0x29;
  return res;
}
static batch B_FFN_ALL_40 ( ) [inline, static]

Definition at line 143 of file parallel_064_8charA.h.

References i, and batch_t::s1.

                                  {
  batch res;
  int i;
  for(i=0;i<8;i++) res.s1[i]=0x40;
  return res;
}
static batch B_FFN_ALL_80 ( ) [inline, static]

Definition at line 149 of file parallel_064_8charA.h.

References i, and batch_t::s1.

                                  {
  batch res;
  int i;
  for(i=0;i<8;i++) res.s1[i]=0x80;
  return res;
}
static batch B_FFOR ( batch  a,
batch  b 
) [inline, static]

Definition at line 104 of file parallel_064_8charA.h.

References i, and batch_t::s1.

                                           {
  batch res;
  int i;
  for(i=0;i<8;i++) res.s1[i]=a.s1[i]|b.s1[i];
  return res;
}
static batch B_FFSH8L ( batch  a,
int  n 
) [inline, static]

Definition at line 156 of file parallel_064_8charA.h.

References i, and batch_t::s1.

                                           {
  batch res;
  int i;
  for(i=0;i<8;i++) res.s1[i]=a.s1[i]<<n;
  return res;
}
static batch B_FFSH8R ( batch  a,
int  n 
) [inline, static]

Definition at line 163 of file parallel_064_8charA.h.

References i, and batch_t::s1.

                                           {
  batch res;
  int i;
  for(i=0;i<8;i++) res.s1[i]=a.s1[i]>>n;
  return res;
}
static batch B_FFXOR ( batch  a,
batch  b 
) [inline, static]

Definition at line 111 of file parallel_064_8charA.h.

References i, and batch_t::s1.

                                            {
  batch res;
  int i;
  for(i=0;i<8;i++) res.s1[i]=a.s1[i]^b.s1[i];
  return res;
}
static group FF0 ( ) [inline, static]

Definition at line 28 of file parallel_064_8charA.h.

References i, and group_t::s1.

                         {
  group res;
  int i;
  for(i=0;i<8;i++) res.s1[i]=0x0;
  return res;
}
static group FF1 ( ) [inline, static]

Definition at line 35 of file parallel_064_8charA.h.

References i, and group_t::s1.

                         {
  group res;
  int i;
  for(i=0;i<8;i++) res.s1[i]=0xff;
  return res;
}
static group FFAND ( group  a,
group  b 
) [inline, static]

Definition at line 42 of file parallel_064_8charA.h.

References i, and group_t::s1.

                                          {
  group res;
  int i;
  for(i=0;i<8;i++) res.s1[i]=a.s1[i]&b.s1[i];
  return res;
}
static group FFNOT ( group  a) [inline, static]

Definition at line 63 of file parallel_064_8charA.h.

References i, and group_t::s1.

                                  {
  group res;
  int i;
  for(i=0;i<8;i++) res.s1[i]=~a.s1[i];
  return res;
}
static group FFOR ( group  a,
group  b 
) [inline, static]

Definition at line 49 of file parallel_064_8charA.h.

References i, and group_t::s1.

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

Definition at line 73 of file parallel_064_8charA.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 78 of file parallel_064_8charA.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 83 of file parallel_064_8charA.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 56 of file parallel_064_8charA.h.

References i, and group_t::s1.

                                          {
  group res;
  int i;
  for(i=0;i<8;i++) res.s1[i]=a.s1[i]^b.s1[i];
  return res;
}
static void M_EMPTY ( void  ) [inline, static]

Definition at line 170 of file parallel_064_8charA.h.

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