Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | File Members | Related Pages

ppm.cpp File Reference

#include <stdlib.h>
#include <stdio.h>
#include "arith.h"
#include "ppm.h"

Include dependency graph for ppm.cpp:

Go to the source code of this file.

Defines

#define SF_Read(n, p, code_to_execute)


Define Documentation

#define SF_Read n,
p,
code_to_execute   ) 
 

Value:

{\
         UINT nb,i;\
         nb=(UINT)n->hdr.sf_max+1;\
   if (nb<=HDR_SFNB)  {\
      p=&n->hdr.sf.sf[0];\
   } else {\
      p=&node_heap[n->hdr.sf.l.sf_next].sf.sf[0];\
      while (nb>NODE_SFNB) {\
                                 for(i=0;i<NODE_SFNB;i++)  {\
                                                code_to_execute;\
                                                p++;\
                                 }\
                                 p=&node_heap[ *((USHORT *)p) ].sf.sf[0];\
                                 nb-=NODE_SFNB;\
      }\
   }\
   for(i=0;i<nb;i++)  {\
                        code_to_execute;\
      p++;\
   }\
}

Definition at line 244 of file ppm.cpp.

Referenced by ppm_worker::Context_Renorm(), ppm_worker::Decode_Exclude(), and ppm_worker::Decode_NoExclude().


Generated on Sat Nov 5 16:50:01 2005 for OPIE by  doxygen 1.4.2