test code v1

This commit is contained in:
2026-08-13 10:44:59 +02:00
commit f3b1165f19
301 changed files with 37885 additions and 0 deletions
+23
View File
@@ -0,0 +1,23 @@
/* SPDX-License-Identifier: GPL-2.0-only */
#ifndef __EROFS_DEFS_H
#define __EROFS_DEFS_H
/* CRC32C polynomial and seed */
#define EROFS_CRC32C_SEED 0x5045b54aU
/* Inode slot alignment */
/* Directory entry size */
#define EROFS_DIRENT_SIZE sizeof(struct erofs_dirent)
/* RC decoder constants */
/* LZ4 format constants */
#define EROFS_LZ4_TOKEN_LITERAL_SHIFT 4
#define EROFS_LZ4_TOKEN_MATCH_MASK 0x0F
#define EROFS_LZ4_MAX_RUN 15
#define EROFS_LZ4_EXT_SENTINEL 255
#define EROFS_LZ4_MIN_MATCH 4
#define EROFS_LZ4_OFFSET_BYTES 2
#endif /* __EROFS_DEFS_H */