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.c35 #define WNDSIZ (1U << WNDBIT) macro
41 #define MAX_HASH_VAL (3 * WNDSIZ + (WNDSIZ / 512 + 1) * UINT8_MAX)
42 #define HASH(LoopVar7, LoopVar5) ((LoopVar7) + ((LoopVar5) << (WNDBIT - 9)) + WNDSIZ * 2)
191 mText = AllocateZeroPool (WNDSIZ * 2 + MAXMATCH); in AllocateMemory()
192 mLevel = AllocateZeroPool ((WNDSIZ + UINT8_MAX + 1) * sizeof (*mLevel)); in AllocateMemory()
193 mChildCount = AllocateZeroPool ((WNDSIZ + UINT8_MAX + 1) * sizeof (*mChildCount)); in AllocateMemory()
194 mPosition = AllocateZeroPool ((WNDSIZ + UINT8_MAX + 1) * sizeof (*mPosition)); in AllocateMemory()
195 mParent = AllocateZeroPool (WNDSIZ * 2 * sizeof (*mParent)); in AllocateMemory()
196 mPrev = AllocateZeroPool (WNDSIZ * 2 * sizeof (*mPrev)); in AllocateMemory()
244 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()
423 for (Index = 0; Index < WNDSIZ * 2 + MAXMATCH; Index++) { in AllocateMemory()
427 mLevel = malloc ((WNDSIZ + UINT8_MAX + 1) * sizeof (*mLevel)); in AllocateMemory()
428 mChildCount = malloc ((WNDSIZ + UINT8_MAX + 1) * sizeof (*mChildCount)); in AllocateMemory()
429 mPosition = malloc ((WNDSIZ + UINT8_MAX + 1) * sizeof (*mPosition)); in AllocateMemory()
430 mParent = malloc (WNDSIZ * 2 * sizeof (*mParent)); in AllocateMemory()
431 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()
247 for (Index = 0; Index < WNDSIZ * 2 + MAXMATCH; Index++) { in AllocateMemory()
251 mLevel = malloc ((WNDSIZ + UINT8_MAX + 1) * sizeof (*mLevel)); in AllocateMemory()
252 mChildCount = malloc ((WNDSIZ + UINT8_MAX + 1) * sizeof (*mChildCount)); in AllocateMemory()
253 mPosition = malloc ((WNDSIZ + UINT8_MAX + 1) * sizeof (*mPosition)); in AllocateMemory()
254 mParent = malloc (WNDSIZ * 2 * sizeof (*mParent)); in AllocateMemory()
255 mPrev = malloc (WNDSIZ * 2 * sizeof (*mPrev)); in AllocateMemory()
[all …]