CMSIS2000
0.0.7
|
#include <stdlib.h>
#include <stdio.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <sys/time.h>
#include "lz4.h"
#include "lz4hc.h"
#include <stdint.h>
Go to the source code of this file.
Data Structures | |
struct | chunkParameters |
struct | compressionParameters |
Macros | |
#define | _CRT_SECURE_NO_DEPRECATE |
#define | _CRT_SECURE_NO_WARNINGS |
#define | _LARGEFILE64_SOURCE |
#define | _rotl(x, r) ((x << r) | (x >> (32 - r))) |
#define | BYTE uint8_t |
#define | COMPRESSOR0 LZ4_compress |
#define | COMPRESSOR1 LZ4_compressHC |
#define | DEFAULT_CHUNKSIZE (8<<20) |
#define | DEFAULTCOMPRESSOR LZ4_compress |
#define | DISPLAY(...) fprintf(stderr, __VA_ARGS__) |
#define | KNUTH 2654435761U |
#define | MAX_MEM (1984<<20) |
#define | NBLOOPS 3 |
#define | S32 int32_t |
#define | TIMELOOP 2000 |
#define | U16 uint16_t |
#define | U32 uint32_t |
#define | U64 uint64_t |
Functions | |
int | BMK_benchFile (char **fileNamesTable, int nbFiles, int cLevel) |
static U32 | BMK_checksum_MMH3A (char *buff, U32 length) |
static size_t | BMK_findMaxMem (U64 requiredMem) |
static U64 | BMK_GetFileSize (char *infilename) |
static int | BMK_GetMilliSpan (int nTimeStart) |
static int | BMK_GetMilliStart () |
void | BMK_SetBlocksize (int bsize) |
void | BMK_SetNbIterations (int nbLoops) |
void | BMK_SetPause () |
Variables | |
static int | BMK_pause = 0 |
static int | chunkSize = DEFAULT_CHUNKSIZE |
static int | nbIterations = NBLOOPS |
Definition at line 48 of file bench.c.
Referenced by BMK_checksum_MMH3A().
Definition at line 86 of file bench.c.
Referenced by LZ4_compress64kCtx(), LZ4_compressCtx(), LZ4_compressHCCtx(), and LZ4_encodeSequence().
#define COMPRESSOR0 LZ4_compress |
Definition at line 68 of file bench.c.
Referenced by BMK_benchFile().
#define COMPRESSOR1 LZ4_compressHC |
Definition at line 70 of file bench.c.
Referenced by BMK_benchFile().
#define DEFAULTCOMPRESSOR LZ4_compress |
Definition at line 71 of file bench.c.
Referenced by BMK_benchFile().
#define DISPLAY | ( | ... | ) | fprintf(stderr, __VA_ARGS__) |
Definition at line 127 of file bench.c.
Referenced by BMK_benchFile(), BMK_SetBlocksize(), and BMK_SetNbIterations().
#define KNUTH 2654435761U |
Definition at line 100 of file bench.c.
Referenced by BMK_checksum_MMH3A().
#define MAX_MEM (1984<<20) |
Definition at line 101 of file bench.c.
Referenced by BMK_findMaxMem().
#define TIMELOOP 2000 |
Definition at line 98 of file bench.c.
Referenced by BMK_benchFile().
#define U32 uint32_t |
Definition at line 88 of file bench.c.
Referenced by BMK_benchFile(), and BMK_checksum_MMH3A().
#define U64 uint64_t |
Definition at line 90 of file bench.c.
Referenced by BMK_benchFile(), and BMK_GetFileSize().
int BMK_benchFile | ( | char ** | fileNamesTable, |
int | nbFiles, | ||
int | cLevel | ||
) |
Definition at line 286 of file bench.c.
References BMK_checksum_MMH3A(), BMK_findMaxMem(), BMK_GetFileSize(), BMK_GetMilliSpan(), BMK_GetMilliStart(), BMK_pause, chunkSize, compressionParameters::compressionFunction, COMPRESSOR0, COMPRESSOR1, compressionParameters::decompressionFunction, DEFAULTCOMPRESSOR, DISPLAY, chunkParameters::id, chunkParameters::inputBuffer, chunkParameters::inputSize, LZ4_compressBound(), LZ4_uncompress(), nbIterations, NULL, chunkParameters::outputBuffer, chunkParameters::outputSize, TIMELOOP, U32, and U64.
Referenced by main().
|
static |
Definition at line 247 of file bench.c.
Referenced by BMK_benchFile().
|
static |
Definition at line 267 of file bench.c.
References U64.
Referenced by BMK_benchFile().
|
static |
Definition at line 189 of file bench.c.
References BMK_GetMilliStart().
Referenced by BMK_benchFile().
|
static |
Definition at line 175 of file bench.c.
References NULL.
Referenced by BMK_benchFile(), and BMK_GetMilliSpan().
void BMK_SetBlocksize | ( | int | bsize | ) |
void BMK_SetNbIterations | ( | int | nbLoops | ) |
Definition at line 144 of file bench.c.
References DISPLAY, and nbIterations.
Referenced by main().
void BMK_SetPause | ( | ) |
|
static |
Definition at line 136 of file bench.c.
Referenced by BMK_benchFile(), and BMK_SetPause().
|
static |
Definition at line 134 of file bench.c.
Referenced by BMK_benchFile(), BMK_SetBlocksize(), and decode_file().
|
static |
Definition at line 135 of file bench.c.
Referenced by BMK_benchFile(), and BMK_SetNbIterations().