OpenBarnyard
 
Loading...
Searching...
No Matches
TUtil.h File Reference
#include "Toshi/TSingleton.h"
#include "Toshi/TEvent.h"
#include "Thread/TMutex.h"
#include <utility>

Go to the source code of this file.

Classes

class  TUtil
 
struct  TUtil::LogEvent
 
struct  TUtil::TOSHIParams
 

Macros

#define CRC32POLY   ( 0xEDB88320L ) /* Generator polynomial number */
 
#define CRC32POST(crc)
 
#define crc32upd(crctab, crc, c)
 
#define CRC_TABSIZE   ( 256 ) /* Normal 256-entry table */
 

Macro Definition Documentation

◆ CRC32POLY

#define CRC32POLY   ( 0xEDB88320L ) /* Generator polynomial number */

Definition at line 173 of file TUtil.h.

◆ CRC32POST

#define CRC32POST ( crc)
Value:
( ~( crc ) ) /* CRC Postconditioning before xmit */

Definition at line 174 of file TUtil.h.

◆ crc32upd

#define crc32upd ( crctab,
crc,
c )
Value:
( ( crctab )[ ( (TINT)( crc ) ^ ( c ) ) & 0xff ] ^ ( ( crc ) >> 8 ) )
int TINT
Definition Typedefs.h:7

Definition at line 176 of file TUtil.h.

176#define crc32upd( crctab, crc, c ) \
177 ( ( crctab )[ ( (TINT)( crc ) ^ ( c ) ) & 0xff ] ^ ( ( crc ) >> 8 ) )

◆ CRC_TABSIZE

#define CRC_TABSIZE   ( 256 ) /* Normal 256-entry table */

Definition at line 179 of file TUtil.h.