Back to index

lightning-sunbird  0.9+nobinonly
Classes | Defines | Typedefs | Enumerations
nsPkgInt.h File Reference
#include "nscore.h"
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  nsPkgInt

Defines

#define PCK16BITS(a, b)   ((PRUint32)(((b) << 16) | (a)))
#define PCK8BITS(a, b, c, d)
#define PCK4BITS(a, b, c, d, e, f, g, h)
#define GETFROMPCK(i, c)   (((((c).data)[(i)>>(c).idxsft])>>(((i)&(c).sftmsk)<<(c).bitsft))&(c).unitmsk)

Typedefs

typedef struct nsPkgInt nsPkgInt

Enumerations

enum  nsIdxSft {
  eIdxSft4bits = 3, eIdxSft8bits = 2, eIdxSft16bits = 1, eIdxSft4bits = 3,
  eIdxSft8bits = 2, eIdxSft16bits = 1
}
enum  nsSftMsk {
  eSftMsk4bits = 7, eSftMsk8bits = 3, eSftMsk16bits = 1, eSftMsk4bits = 7,
  eSftMsk8bits = 3, eSftMsk16bits = 1
}
enum  nsBitSft {
  eBitSft4bits = 2, eBitSft8bits = 3, eBitSft16bits = 4, eBitSft4bits = 2,
  eBitSft8bits = 3, eBitSft16bits = 4
}
enum  nsUnitMsk {
  eUnitMsk4bits = 0x0000000FL, eUnitMsk8bits = 0x000000FFL, eUnitMsk16bits = 0x0000FFFFL, eUnitMsk4bits = 0x0000000FL,
  eUnitMsk8bits = 0x000000FFL, eUnitMsk16bits = 0x0000FFFFL
}

Class Documentation

struct nsPkgInt

Definition at line 66 of file nsPkgInt.h.

Class Members
nsBitSft bitsft
PRUint32 * data
const PRUint32 * data
nsIdxSft idxsft
nsSftMsk sftmsk
nsUnitMsk unitmsk

Define Documentation

#define GETFROMPCK (   i,
  c 
)    (((((c).data)[(i)>>(c).idxsft])>>(((i)&(c).sftmsk)<<(c).bitsft))&(c).unitmsk)

Definition at line 85 of file nsPkgInt.h.

#define PCK16BITS (   a,
  b 
)    ((PRUint32)(((b) << 16) | (a)))

Definition at line 75 of file nsPkgInt.h.

#define PCK4BITS (   a,
  b,
  c,
  d,
  e,
  f,
  g,
 
)
Value:
PCK8BITS(  ((PRUint32)(((b) << 4) | (a))), \
                                             ((PRUint32)(((d) << 4) | (c))), \
                                             ((PRUint32)(((f) << 4) | (e))), \
                                             ((PRUint32)(((h) << 4) | (g))) )

Definition at line 80 of file nsPkgInt.h.

#define PCK8BITS (   a,
  b,
  c,
  d 
)
Value:
PCK16BITS( ((PRUint32)(((b) << 8) | (a))),  \
                                             ((PRUint32)(((d) << 8) | (c))))

Definition at line 77 of file nsPkgInt.h.


Typedef Documentation

typedef struct nsPkgInt nsPkgInt

Enumeration Type Documentation

enum nsBitSft
Enumerator:
eBitSft4bits 
eBitSft8bits 
eBitSft16bits 
eBitSft4bits 
eBitSft8bits 
eBitSft16bits 

Definition at line 54 of file nsPkgInt.h.

enum nsIdxSft
Enumerator:
eIdxSft4bits 
eIdxSft8bits 
eIdxSft16bits 
eIdxSft4bits 
eIdxSft8bits 
eIdxSft16bits 

Definition at line 42 of file nsPkgInt.h.

enum nsSftMsk
Enumerator:
eSftMsk4bits 
eSftMsk8bits 
eSftMsk16bits 
eSftMsk4bits 
eSftMsk8bits 
eSftMsk16bits 

Definition at line 48 of file nsPkgInt.h.

enum nsUnitMsk
Enumerator:
eUnitMsk4bits 
eUnitMsk8bits 
eUnitMsk16bits 
eUnitMsk4bits 
eUnitMsk8bits 
eUnitMsk16bits 

Definition at line 60 of file nsPkgInt.h.

             {
  eUnitMsk4bits  = 0x0000000FL,
  eUnitMsk8bits  = 0x000000FFL,
  eUnitMsk16bits = 0x0000FFFFL
} nsUnitMsk;