Home
last modified time | relevance | path

Searched refs:WNDSIZ (Results 1 – 6 of 6) sorted by relevance

/device/linaro/bootloader/edk2/ShellPkg/Library/UefiShellDebug1CommandsLib/
DCompress.c36 #define WNDSIZ (1U << WNDBIT) macro
42 #define MAX_HASH_VAL (3 * WNDSIZ + (WNDSIZ / 512 + 1) * UINT8_MAX)
43 #define HASH(LoopVar7, LoopVar5) ((LoopVar7) + ((LoopVar5) << (WNDBIT - 9)) + WNDSIZ * 2)
196 mText = AllocateZeroPool (WNDSIZ * 2 + MAXMATCH); in AllocateMemory()
197 mLevel = AllocateZeroPool ((WNDSIZ + UINT8_MAX + 1) * sizeof (*mLevel)); in AllocateMemory()
198 mChildCount = AllocateZeroPool ((WNDSIZ + UINT8_MAX + 1) * sizeof (*mChildCount)); in AllocateMemory()
199 mPosition = AllocateZeroPool ((WNDSIZ + UINT8_MAX + 1) * sizeof (*mPosition)); in AllocateMemory()
200 mParent = AllocateZeroPool (WNDSIZ * 2 * sizeof (*mParent)); in AllocateMemory()
201 mPrev = AllocateZeroPool (WNDSIZ * 2 * sizeof (*mPrev)); in AllocateMemory()
251 SetMem (mLevel + WNDSIZ, (UINT8_MAX + 1) * sizeof (UINT8), 1); in InitSlide()
[all …]
/device/linaro/bootloader/edk2/EdkCompatibilityPkg/Sample/Tools/Source/Common/
DEfiCompress.c42 #define WNDSIZ (1U << WNDBIT) macro
47 #define MAX_HASH_VAL (3 * WNDSIZ + (WNDSIZ / 512 + 1) * UINT8_MAX)
48 #define HASH(p, c) ((p) + ((c) << (WNDBIT - 9)) + WNDSIZ * 2)
420 mText = malloc (WNDSIZ * 2 + MAXMATCH); in AllocateMemory()
421 for (i = 0 ; i < WNDSIZ * 2 + MAXMATCH; i ++) { in AllocateMemory()
425 mLevel = malloc ((WNDSIZ + UINT8_MAX + 1) * sizeof(*mLevel)); in AllocateMemory()
426 mChildCount = malloc ((WNDSIZ + UINT8_MAX + 1) * sizeof(*mChildCount)); in AllocateMemory()
427 mPosition = malloc ((WNDSIZ + UINT8_MAX + 1) * sizeof(*mPosition)); in AllocateMemory()
428 mParent = malloc (WNDSIZ * 2 * sizeof(*mParent)); in AllocateMemory()
429 mPrev = malloc (WNDSIZ * 2 * sizeof(*mPrev)); in AllocateMemory()
[all …]
DTianoCompress.c40 #define WNDSIZ (1U << WNDBIT) macro
46 #define MAX_HASH_VAL (3 * WNDSIZ + (WNDSIZ / 512 + 1) * UINT8_MAX)
47 #define HASH(p, c) ((p) + ((c) << (WNDBIT - 9)) + WNDSIZ * 2)
439 mText = malloc (WNDSIZ * 2 + MAXMATCH); in AllocateMemory()
440 for (Index = 0; Index < WNDSIZ * 2 + MAXMATCH; Index++) { in AllocateMemory()
444 mLevel = malloc ((WNDSIZ + UINT8_MAX + 1) * sizeof (*mLevel)); in AllocateMemory()
445 mChildCount = malloc ((WNDSIZ + UINT8_MAX + 1) * sizeof (*mChildCount)); in AllocateMemory()
446 mPosition = malloc ((WNDSIZ + UINT8_MAX + 1) * sizeof (*mPosition)); in AllocateMemory()
447 mParent = malloc (WNDSIZ * 2 * sizeof (*mParent)); in AllocateMemory()
448 mPrev = malloc (WNDSIZ * 2 * sizeof (*mPrev)); in AllocateMemory()
[all …]
/device/linaro/bootloader/edk2/BaseTools/Source/C/Common/
DEfiCompress.c32 #define WNDSIZ (1U << WNDBIT) macro
37 #define MAX_HASH_VAL (3 * WNDSIZ + (WNDSIZ / 512 + 1) * UINT8_MAX)
38 #define HASH(p, c) ((p) + ((c) << (WNDBIT - 9)) + WNDSIZ * 2)
410 mText = malloc (WNDSIZ * 2 + MAXMATCH); in AllocateMemory()
414 for (i = 0 ; i < WNDSIZ * 2 + MAXMATCH; i ++) { in AllocateMemory()
418 mLevel = malloc ((WNDSIZ + UINT8_MAX + 1) * sizeof(*mLevel)); in AllocateMemory()
419 mChildCount = malloc ((WNDSIZ + UINT8_MAX + 1) * sizeof(*mChildCount)); in AllocateMemory()
420 mPosition = malloc ((WNDSIZ + UINT8_MAX + 1) * sizeof(*mPosition)); in AllocateMemory()
421 mParent = malloc (WNDSIZ * 2 * sizeof(*mParent)); in AllocateMemory()
422 mPrev = malloc (WNDSIZ * 2 * sizeof(*mPrev)); in AllocateMemory()
[all …]
DTianoCompress.c30 #define WNDSIZ (1U << WNDBIT) macro
36 #define MAX_HASH_VAL (3 * WNDSIZ + (WNDSIZ / 512 + 1) * UINT8_MAX)
37 #define HASH(p, c) ((p) + ((c) << (WNDBIT - 9)) + WNDSIZ * 2)
419 mText = malloc (WNDSIZ * 2 + MAXMATCH); in AllocateMemory()
420 for (Index = 0; Index < WNDSIZ * 2 + MAXMATCH; Index++) { in AllocateMemory()
424 mLevel = malloc ((WNDSIZ + UINT8_MAX + 1) * sizeof (*mLevel)); in AllocateMemory()
425 mChildCount = malloc ((WNDSIZ + UINT8_MAX + 1) * sizeof (*mChildCount)); in AllocateMemory()
426 mPosition = malloc ((WNDSIZ + UINT8_MAX + 1) * sizeof (*mPosition)); in AllocateMemory()
427 mParent = malloc (WNDSIZ * 2 * sizeof (*mParent)); in AllocateMemory()
428 mPrev = malloc (WNDSIZ * 2 * sizeof (*mPrev)); in AllocateMemory()
[all …]
/device/linaro/bootloader/edk2/BaseTools/Source/C/TianoCompress/
DTianoCompress.c37 #define WNDSIZ (1U << WNDBIT) macro
43 #define MAX_HASH_VAL (3 * WNDSIZ + (WNDSIZ / 512 + 1) * UINT8_MAX)
44 #define HASH(p, c) ((p) + ((c) << (WNDBIT - 9)) + WNDSIZ * 2)
242 mText = malloc (WNDSIZ * 2 + MAXMATCH); in AllocateMemory()
243 for (Index = 0; Index < WNDSIZ * 2 + MAXMATCH; Index++) { in AllocateMemory()
247 mLevel = malloc ((WNDSIZ + UINT8_MAX + 1) * sizeof (*mLevel)); in AllocateMemory()
248 mChildCount = malloc ((WNDSIZ + UINT8_MAX + 1) * sizeof (*mChildCount)); in AllocateMemory()
249 mPosition = malloc ((WNDSIZ + UINT8_MAX + 1) * sizeof (*mPosition)); in AllocateMemory()
250 mParent = malloc (WNDSIZ * 2 * sizeof (*mParent)); in AllocateMemory()
251 mPrev = malloc (WNDSIZ * 2 * sizeof (*mPrev)); in AllocateMemory()
[all …]