|
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>
Структуры данных | |
| struct | chunkParameters |
| struct | compressionParameters |
Макросы | |
| #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 |
Функции | |
| 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 () |
Переменные | |
| static int | BMK_pause = 0 |
| static int | chunkSize = DEFAULT_CHUNKSIZE |
| static int | nbIterations = NBLOOPS |
См. определение в файле bench.c строка 48
Используется в BMK_checksum_MMH3A().
См. определение в файле bench.c строка 86
Используется в LZ4_compress64kCtx(), LZ4_compressCtx(), LZ4_compressHCCtx() и LZ4_encodeSequence().
| #define COMPRESSOR0 LZ4_compress |
См. определение в файле bench.c строка 68
Используется в BMK_benchFile().
| #define COMPRESSOR1 LZ4_compressHC |
См. определение в файле bench.c строка 70
Используется в BMK_benchFile().
| #define DEFAULTCOMPRESSOR LZ4_compress |
См. определение в файле bench.c строка 71
Используется в BMK_benchFile().
| #define DISPLAY | ( | ... | ) | fprintf(stderr, __VA_ARGS__) |
См. определение в файле bench.c строка 127
Используется в BMK_benchFile(), BMK_SetBlocksize() и BMK_SetNbIterations().
| #define KNUTH 2654435761U |
См. определение в файле bench.c строка 100
Используется в BMK_checksum_MMH3A().
| #define MAX_MEM (1984<<20) |
См. определение в файле bench.c строка 101
Используется в BMK_findMaxMem().
| #define TIMELOOP 2000 |
См. определение в файле bench.c строка 98
Используется в BMK_benchFile().
| #define U32 uint32_t |
См. определение в файле bench.c строка 88
Используется в BMK_benchFile() и BMK_checksum_MMH3A().
| #define U64 uint64_t |
См. определение в файле bench.c строка 90
Используется в BMK_benchFile() и BMK_GetFileSize().
| int BMK_benchFile | ( | char ** | fileNamesTable, |
| int | nbFiles, | ||
| int | cLevel | ||
| ) |
См. определение в файле bench.c строка 286
Перекрестные ссылки 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 и U64.
Используется в main().


|
static |
См. определение в файле bench.c строка 247
Перекрестные ссылки MAX_MEM и NULL.
Используется в BMK_benchFile().

|
static |
См. определение в файле bench.c строка 267
Перекрестные ссылки U64.
Используется в BMK_benchFile().

|
static |
См. определение в файле bench.c строка 189
Перекрестные ссылки BMK_GetMilliStart().
Используется в BMK_benchFile().


|
static |
См. определение в файле bench.c строка 175
Перекрестные ссылки NULL.
Используется в BMK_benchFile() и BMK_GetMilliSpan().

| void BMK_SetBlocksize | ( | int | bsize | ) |
| void BMK_SetNbIterations | ( | int | nbLoops | ) |
См. определение в файле bench.c строка 144
Перекрестные ссылки DISPLAY и nbIterations.
Используется в main().

| void BMK_SetPause | ( | ) |
|
static |
См. определение в файле bench.c строка 136
Используется в BMK_benchFile() и BMK_SetPause().
|
static |
См. определение в файле bench.c строка 134
Используется в BMK_benchFile(), BMK_SetBlocksize() и decode_file().
|
static |
См. определение в файле bench.c строка 135
Используется в BMK_benchFile() и BMK_SetNbIterations().