mirror of
https://github.com/Toastconcern/FrameStudio.git
synced 2026-10-29 04:02:56 +01:00
Frame Studio now builds for Windows (x64, x86, ARM64), Linux (x64, x86, ARM64)
and macOS (Apple Silicon, Intel):
- studio/platform.h with Win32 and POSIX implementations (dialogs through
tinyfiledialogs on Linux/macOS), a GLFW window beside the Win32 one, and a
platform-neutral frame pacer
- MoltenVK support in the renderer (portability enumeration) and bundled in
the macOS app
- 32-bit builds: large-address-aware, LZMA packing within a 32-bit address space
- unaligned file reads in the loaders go through loadUnaligned (no UB)
- scripts/build-studio.sh, studio/build_windows.bat [x64|x86|arm64],
cmake/llvm-mingw.cmake, and a GitHub Actions workflow building every target
Frame Home installs without Studio: frame/install-frame-home.{sh,ps1} and
"Install Frame Home.bat" (packaged as FrameHome-installer.zip).
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
35 lines
847 B
C
35 lines
847 B
C
/* LzHash.h -- HASH constants for LZ algorithms
|
|
2023-03-05 : Igor Pavlov : Public domain */
|
|
|
|
#ifndef ZIP7_INC_LZ_HASH_H
|
|
#define ZIP7_INC_LZ_HASH_H
|
|
|
|
/*
|
|
(kHash2Size >= (1 << 8)) : Required
|
|
(kHash3Size >= (1 << 16)) : Required
|
|
*/
|
|
|
|
#define kHash2Size (1 << 10)
|
|
#define kHash3Size (1 << 16)
|
|
// #define kHash4Size (1 << 20)
|
|
|
|
#define kFix3HashSize (kHash2Size)
|
|
#define kFix4HashSize (kHash2Size + kHash3Size)
|
|
// #define kFix5HashSize (kHash2Size + kHash3Size + kHash4Size)
|
|
|
|
/*
|
|
We use up to 3 crc values for hash:
|
|
crc0
|
|
crc1 << Shift_1
|
|
crc2 << Shift_2
|
|
(Shift_1 = 5) and (Shift_2 = 10) is good tradeoff.
|
|
Small values for Shift are not good for collision rate.
|
|
Big value for Shift_2 increases the minimum size
|
|
of hash table, that will be slow for small files.
|
|
*/
|
|
|
|
#define kLzHash_CrcShift_1 5
|
|
#define kLzHash_CrcShift_2 10
|
|
|
|
#endif
|