From ffc875c2d6b3262e472cfb2dfb6682eb9b21c96e Mon Sep 17 00:00:00 2001 From: ptitSeb Date: Sun, 17 Nov 2024 11:30:30 +0100 Subject: [PATCH] [WRAPPER] Added wrapped libzstd.so.1 support, with new wrapperhelper --- CMakeLists.txt | 1 + src/library_list.h | 2 + src/wrapped/generated/functions_list.txt | 11 + src/wrapped/generated/wrappedzstddefs.h | 8 + src/wrapped/generated/wrappedzstdtypes.h | 17 + src/wrapped/generated/wrappedzstdundefs.h | 8 + src/wrapped/generated/wrapper.c | 31 ++ src/wrapped/generated/wrapper.h | 10 + src/wrapped/wrappedzstd.c | 19 + src/wrapped/wrappedzstd_private.h | 587 ++++++++++++++++++++++ 10 files changed, 694 insertions(+) create mode 100644 src/wrapped/generated/wrappedzstddefs.h create mode 100644 src/wrapped/generated/wrappedzstdtypes.h create mode 100644 src/wrapped/generated/wrappedzstdundefs.h create mode 100644 src/wrapped/wrappedzstd.c create mode 100644 src/wrapped/wrappedzstd_private.h diff --git a/CMakeLists.txt b/CMakeLists.txt index dd26e7a0..ae22aac0 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -728,6 +728,7 @@ set(WRAPPEDS "${BOX64_ROOT}/src/wrapped/wrappedlibsqlite3.c" "${BOX64_ROOT}/src/wrapped/wrappedlibtiff5.c" "${BOX64_ROOT}/src/wrapped/wrappedbrotlidec.c" + "${BOX64_ROOT}/src/wrapped/wrappedzstd.c" ) endif() if(ANDROID) diff --git a/src/library_list.h b/src/library_list.h index 93de3941..fc084b25 100644 --- a/src/library_list.h +++ b/src/library_list.h @@ -271,6 +271,8 @@ GO("libsqlite3.so.0", libsqlite3) GO("libtiff.so.5", libtiff5) GO("libbrotlidec.so", brotlidec) GO("libbrotlidec.so.1", brotlidec) +GO("libzstd.so.1", zstd) +GO("libzstd.so", zstd) GO("libc.so", libc) GO("libm.so", libm) diff --git a/src/wrapped/generated/functions_list.txt b/src/wrapped/generated/functions_list.txt index 025542a5..4598b0e8 100644 --- a/src/wrapped/generated/functions_list.txt +++ b/src/wrapped/generated/functions_list.txt @@ -114,6 +114,7 @@ #() pFb #() SFv #() HFi +#() HFu #() HFp #() HFH #() xFx @@ -271,6 +272,7 @@ #() UFUp #() UFpi #() UFpU +#() UFpL #() UFpp #() fFEf #() fFEp @@ -319,6 +321,7 @@ #() LFLp #() LFpi #() LFpu +#() LFpU #() LFpL #() LFpp #() pFEi @@ -708,6 +711,7 @@ #() LFpip #() LFpCi #() LFpWp +#() LFpui #() LFpuL #() LFpup #() LFpLi @@ -1274,6 +1278,7 @@ #() LFppLL #() LFppLp #() LFpppi +#() LFpppu #() LFpppL #() LFpppp #() pFEipp @@ -1819,6 +1824,7 @@ #() LFpLuuu #() LFpLLLp #() LFpLpuu +#() LFpLpLi #() LFpLpLp #() LFpLppL #() LFpLppp @@ -2306,7 +2312,9 @@ #() LFpLippp #() LFpLLLLL #() LFppLLpL +#() LFppLpLi #() LFppLpLL +#() LFppLpLp #() LFSpLiip #() pFELpppV #() pFELpApp @@ -2636,6 +2644,7 @@ #() LFpLLuupp #() LFpLLppuu #() LFpLppuuu +#() LFppLpLpL #() pFEpupppp #() pFEpLiiiI #() pFEpLiiil @@ -2872,6 +2881,7 @@ #() LFELpupupu #() LFEpuuuppp #() LFpLpuuLLu +#() LFppLpLpLi #() pFEiplllpp #() pFEipLLLpp #() pFEpiuCppp @@ -6111,3 +6121,4 @@ wrappedxslt: - xsltSetSecurityPrefs - iFpppp: - xsltRegisterExtFunction +wrappedzstd: diff --git a/src/wrapped/generated/wrappedzstddefs.h b/src/wrapped/generated/wrappedzstddefs.h new file mode 100644 index 00000000..2d4516bb --- /dev/null +++ b/src/wrapped/generated/wrappedzstddefs.h @@ -0,0 +1,8 @@ +/******************************************************************* + * File automatically generated by rebuild_wrappers.py (v2.5.0.24) * + *******************************************************************/ +#ifndef __wrappedzstdDEFS_H_ +#define __wrappedzstdDEFS_H_ + + +#endif // __wrappedzstdDEFS_H_ diff --git a/src/wrapped/generated/wrappedzstdtypes.h b/src/wrapped/generated/wrappedzstdtypes.h new file mode 100644 index 00000000..1daa44be --- /dev/null +++ b/src/wrapped/generated/wrappedzstdtypes.h @@ -0,0 +1,17 @@ +/******************************************************************* + * File automatically generated by rebuild_wrappers.py (v2.5.0.24) * + *******************************************************************/ +#ifndef __wrappedzstdTYPES_H_ +#define __wrappedzstdTYPES_H_ + +#ifndef LIBNAME +#error You should only #include this file inside a wrapped*.c file +#endif +#ifndef ADDED_FUNCTIONS +#define ADDED_FUNCTIONS() +#endif + + +#define SUPER() ADDED_FUNCTIONS() + +#endif // __wrappedzstdTYPES_H_ diff --git a/src/wrapped/generated/wrappedzstdundefs.h b/src/wrapped/generated/wrappedzstdundefs.h new file mode 100644 index 00000000..8ecfd5db --- /dev/null +++ b/src/wrapped/generated/wrappedzstdundefs.h @@ -0,0 +1,8 @@ +/******************************************************************* + * File automatically generated by rebuild_wrappers.py (v2.5.0.24) * + *******************************************************************/ +#ifndef __wrappedzstdUNDEFS_H_ +#define __wrappedzstdUNDEFS_H_ + + +#endif // __wrappedzstdUNDEFS_H_ diff --git a/src/wrapped/generated/wrapper.c b/src/wrapped/generated/wrapper.c index 2a53b674..f885ae57 100644 --- a/src/wrapped/generated/wrapper.c +++ b/src/wrapped/generated/wrapper.c @@ -161,6 +161,7 @@ typedef void* (*pFA_t)(void*); typedef void* (*pFb_t)(void*); typedef void* (*SFv_t)(void); typedef unsigned __int128 (*HFi_t)(int32_t); +typedef unsigned __int128 (*HFu_t)(uint32_t); typedef unsigned __int128 (*HFp_t)(void*); typedef unsigned __int128 (*HFH_t)(unsigned __int128); typedef complexf_t (*xFx_t)(complexf_t); @@ -316,6 +317,7 @@ typedef uint64_t (*UFuu_t)(uint32_t, uint32_t); typedef uint64_t (*UFUp_t)(uint64_t, void*); typedef uint64_t (*UFpi_t)(void*, int32_t); typedef uint64_t (*UFpU_t)(void*, uint64_t); +typedef uint64_t (*UFpL_t)(void*, uintptr_t); typedef uint64_t (*UFpp_t)(void*, void*); typedef float (*fFEf_t)(x64emu_t*, float); typedef float (*fFEp_t)(x64emu_t*, void*); @@ -356,6 +358,7 @@ typedef uintptr_t (*LFLL_t)(uintptr_t, uintptr_t); typedef uintptr_t (*LFLp_t)(uintptr_t, void*); typedef uintptr_t (*LFpi_t)(void*, int32_t); typedef uintptr_t (*LFpu_t)(void*, uint32_t); +typedef uintptr_t (*LFpU_t)(void*, uint64_t); typedef uintptr_t (*LFpL_t)(void*, uintptr_t); typedef uintptr_t (*LFpp_t)(void*, void*); typedef void* (*pFEi_t)(x64emu_t*, int32_t); @@ -740,6 +743,7 @@ typedef uintptr_t (*LFpii_t)(void*, int32_t, int32_t); typedef uintptr_t (*LFpip_t)(void*, int32_t, void*); typedef uintptr_t (*LFpCi_t)(void*, uint8_t, int32_t); typedef uintptr_t (*LFpWp_t)(void*, uint16_t, void*); +typedef uintptr_t (*LFpui_t)(void*, uint32_t, int32_t); typedef uintptr_t (*LFpuL_t)(void*, uint32_t, uintptr_t); typedef uintptr_t (*LFpup_t)(void*, uint32_t, void*); typedef uintptr_t (*LFpLi_t)(void*, uintptr_t, int32_t); @@ -1304,6 +1308,7 @@ typedef uintptr_t (*LFppLu_t)(void*, void*, uintptr_t, uint32_t); typedef uintptr_t (*LFppLL_t)(void*, void*, uintptr_t, uintptr_t); typedef uintptr_t (*LFppLp_t)(void*, void*, uintptr_t, void*); typedef uintptr_t (*LFpppi_t)(void*, void*, void*, int32_t); +typedef uintptr_t (*LFpppu_t)(void*, void*, void*, uint32_t); typedef uintptr_t (*LFpppL_t)(void*, void*, void*, uintptr_t); typedef uintptr_t (*LFpppp_t)(void*, void*, void*, void*); typedef void* (*pFEipp_t)(x64emu_t*, int32_t, void*, void*); @@ -1848,6 +1853,7 @@ typedef uintptr_t (*LFpuupi_t)(void*, uint32_t, uint32_t, void*, int32_t); typedef uintptr_t (*LFpLuuu_t)(void*, uintptr_t, uint32_t, uint32_t, uint32_t); typedef uintptr_t (*LFpLLLp_t)(void*, uintptr_t, uintptr_t, uintptr_t, void*); typedef uintptr_t (*LFpLpuu_t)(void*, uintptr_t, void*, uint32_t, uint32_t); +typedef uintptr_t (*LFpLpLi_t)(void*, uintptr_t, void*, uintptr_t, int32_t); typedef uintptr_t (*LFpLpLp_t)(void*, uintptr_t, void*, uintptr_t, void*); typedef uintptr_t (*LFpLppL_t)(void*, uintptr_t, void*, void*, uintptr_t); typedef uintptr_t (*LFpLppp_t)(void*, uintptr_t, void*, void*, void*); @@ -2334,7 +2340,9 @@ typedef uintptr_t (*LFpipipi_t)(void*, int32_t, void*, int32_t, void*, int32_t); typedef uintptr_t (*LFpLippp_t)(void*, uintptr_t, int32_t, void*, void*, void*); typedef uintptr_t (*LFpLLLLL_t)(void*, uintptr_t, uintptr_t, uintptr_t, uintptr_t, uintptr_t); typedef uintptr_t (*LFppLLpL_t)(void*, void*, uintptr_t, uintptr_t, void*, uintptr_t); +typedef uintptr_t (*LFppLpLi_t)(void*, void*, uintptr_t, void*, uintptr_t, int32_t); typedef uintptr_t (*LFppLpLL_t)(void*, void*, uintptr_t, void*, uintptr_t, uintptr_t); +typedef uintptr_t (*LFppLpLp_t)(void*, void*, uintptr_t, void*, uintptr_t, void*); typedef uintptr_t (*LFSpLiip_t)(void*, void*, uintptr_t, int32_t, int32_t, void*); typedef void* (*pFELpppV_t)(x64emu_t*, uintptr_t, void*, void*, void*, void*); typedef void* (*pFELpApp_t)(x64emu_t*, uintptr_t, void*, void*, void*, void*); @@ -2664,6 +2672,7 @@ typedef uintptr_t (*LFEpppppu_t)(x64emu_t*, void*, void*, void*, void*, void*, u typedef uintptr_t (*LFpLLuupp_t)(void*, uintptr_t, uintptr_t, uint32_t, uint32_t, void*, void*); typedef uintptr_t (*LFpLLppuu_t)(void*, uintptr_t, uintptr_t, void*, void*, uint32_t, uint32_t); typedef uintptr_t (*LFpLppuuu_t)(void*, uintptr_t, void*, void*, uint32_t, uint32_t, uint32_t); +typedef uintptr_t (*LFppLpLpL_t)(void*, void*, uintptr_t, void*, uintptr_t, void*, uintptr_t); typedef void* (*pFEpupppp_t)(x64emu_t*, void*, uint32_t, void*, void*, void*, void*); typedef void* (*pFEpLiiiI_t)(x64emu_t*, void*, uintptr_t, int32_t, int32_t, int32_t, int64_t); typedef void* (*pFEpLiiil_t)(x64emu_t*, void*, uintptr_t, int32_t, int32_t, int32_t, intptr_t); @@ -2900,6 +2909,7 @@ typedef uint32_t (*uFbWWWWWWp_t)(void*, uint16_t, uint16_t, uint16_t, uint16_t, typedef uintptr_t (*LFELpupupu_t)(x64emu_t*, uintptr_t, void*, uint32_t, void*, uint32_t, void*, uint32_t); typedef uintptr_t (*LFEpuuuppp_t)(x64emu_t*, void*, uint32_t, uint32_t, uint32_t, void*, void*, void*); typedef uintptr_t (*LFpLpuuLLu_t)(void*, uintptr_t, void*, uint32_t, uint32_t, uintptr_t, uintptr_t, uint32_t); +typedef uintptr_t (*LFppLpLpLi_t)(void*, void*, uintptr_t, void*, uintptr_t, void*, uintptr_t, int32_t); typedef void* (*pFEiplllpp_t)(x64emu_t*, int32_t, void*, intptr_t, intptr_t, intptr_t, void*, void*); typedef void* (*pFEipLLLpp_t)(x64emu_t*, int32_t, void*, uintptr_t, uintptr_t, uintptr_t, void*, void*); typedef void* (*pFEpiuCppp_t)(x64emu_t*, void*, int32_t, uint32_t, uint8_t, void*, void*, void*); @@ -3514,6 +3524,7 @@ void pFA(x64emu_t *emu, uintptr_t fcn) { pFA_t fn = (pFA_t)fcn; R_RAX=(uintptr_t void pFb(x64emu_t *emu, uintptr_t fcn) { pFb_t fn = (pFb_t)fcn; void *aligned_xcb = align_xcb_connection((void*)R_RDI); R_RAX=(uintptr_t)fn(aligned_xcb); unalign_xcb_connection(aligned_xcb, (void*)R_RDI); } void SFv(x64emu_t *emu, uintptr_t fcn) { SFv_t fn = (SFv_t)fcn; R_RAX=(uintptr_t)io_convert_back(fn()); } void HFi(x64emu_t *emu, uintptr_t fcn) { HFi_t fn = (HFi_t)fcn; unsigned __int128 u128 = fn((int32_t)R_RDI); R_RAX=(u128&0xFFFFFFFFFFFFFFFFL); R_RDX=(u128>>64)&0xFFFFFFFFFFFFFFFFL; } +void HFu(x64emu_t *emu, uintptr_t fcn) { HFu_t fn = (HFu_t)fcn; unsigned __int128 u128 = fn((uint32_t)R_RDI); R_RAX=(u128&0xFFFFFFFFFFFFFFFFL); R_RDX=(u128>>64)&0xFFFFFFFFFFFFFFFFL; } void HFp(x64emu_t *emu, uintptr_t fcn) { HFp_t fn = (HFp_t)fcn; unsigned __int128 u128 = fn((void*)R_RDI); R_RAX=(u128&0xFFFFFFFFFFFFFFFFL); R_RDX=(u128>>64)&0xFFFFFFFFFFFFFFFFL; } void HFH(x64emu_t *emu, uintptr_t fcn) { HFH_t fn = (HFH_t)fcn; unsigned __int128 u128 = fn((unsigned __int128)R_RDI + ((unsigned __int128)R_RSI << 64)); R_RAX=(u128&0xFFFFFFFFFFFFFFFFL); R_RDX=(u128>>64)&0xFFFFFFFFFFFFFFFFL; } void xFx(x64emu_t *emu, uintptr_t fcn) { xFx_t fn = (xFx_t)fcn; from_complexf(emu, fn(to_complexf(emu, 0))); } @@ -3669,6 +3680,7 @@ void UFuu(x64emu_t *emu, uintptr_t fcn) { UFuu_t fn = (UFuu_t)fcn; R_RAX=fn((uin void UFUp(x64emu_t *emu, uintptr_t fcn) { UFUp_t fn = (UFUp_t)fcn; R_RAX=fn((uint64_t)R_RDI, (void*)R_RSI); } void UFpi(x64emu_t *emu, uintptr_t fcn) { UFpi_t fn = (UFpi_t)fcn; R_RAX=fn((void*)R_RDI, (int32_t)R_RSI); } void UFpU(x64emu_t *emu, uintptr_t fcn) { UFpU_t fn = (UFpU_t)fcn; R_RAX=fn((void*)R_RDI, (uint64_t)R_RSI); } +void UFpL(x64emu_t *emu, uintptr_t fcn) { UFpL_t fn = (UFpL_t)fcn; R_RAX=fn((void*)R_RDI, (uintptr_t)R_RSI); } void UFpp(x64emu_t *emu, uintptr_t fcn) { UFpp_t fn = (UFpp_t)fcn; R_RAX=fn((void*)R_RDI, (void*)R_RSI); } void fFEf(x64emu_t *emu, uintptr_t fcn) { fFEf_t fn = (fFEf_t)fcn; emu->xmm[0].f[0]=fn(emu, emu->xmm[0].f[0]); } void fFEp(x64emu_t *emu, uintptr_t fcn) { fFEp_t fn = (fFEp_t)fcn; emu->xmm[0].f[0]=fn(emu, (void*)R_RDI); } @@ -3709,6 +3721,7 @@ void LFLL(x64emu_t *emu, uintptr_t fcn) { LFLL_t fn = (LFLL_t)fcn; R_RAX=(uintpt void LFLp(x64emu_t *emu, uintptr_t fcn) { LFLp_t fn = (LFLp_t)fcn; R_RAX=(uintptr_t)fn((uintptr_t)R_RDI, (void*)R_RSI); } void LFpi(x64emu_t *emu, uintptr_t fcn) { LFpi_t fn = (LFpi_t)fcn; R_RAX=(uintptr_t)fn((void*)R_RDI, (int32_t)R_RSI); } void LFpu(x64emu_t *emu, uintptr_t fcn) { LFpu_t fn = (LFpu_t)fcn; R_RAX=(uintptr_t)fn((void*)R_RDI, (uint32_t)R_RSI); } +void LFpU(x64emu_t *emu, uintptr_t fcn) { LFpU_t fn = (LFpU_t)fcn; R_RAX=(uintptr_t)fn((void*)R_RDI, (uint64_t)R_RSI); } void LFpL(x64emu_t *emu, uintptr_t fcn) { LFpL_t fn = (LFpL_t)fcn; R_RAX=(uintptr_t)fn((void*)R_RDI, (uintptr_t)R_RSI); } void LFpp(x64emu_t *emu, uintptr_t fcn) { LFpp_t fn = (LFpp_t)fcn; R_RAX=(uintptr_t)fn((void*)R_RDI, (void*)R_RSI); } void pFEi(x64emu_t *emu, uintptr_t fcn) { pFEi_t fn = (pFEi_t)fcn; R_RAX=(uintptr_t)fn(emu, (int32_t)R_RDI); } @@ -4093,6 +4106,7 @@ void LFpii(x64emu_t *emu, uintptr_t fcn) { LFpii_t fn = (LFpii_t)fcn; R_RAX=(uin void LFpip(x64emu_t *emu, uintptr_t fcn) { LFpip_t fn = (LFpip_t)fcn; R_RAX=(uintptr_t)fn((void*)R_RDI, (int32_t)R_RSI, (void*)R_RDX); } void LFpCi(x64emu_t *emu, uintptr_t fcn) { LFpCi_t fn = (LFpCi_t)fcn; R_RAX=(uintptr_t)fn((void*)R_RDI, (uint8_t)R_RSI, (int32_t)R_RDX); } void LFpWp(x64emu_t *emu, uintptr_t fcn) { LFpWp_t fn = (LFpWp_t)fcn; R_RAX=(uintptr_t)fn((void*)R_RDI, (uint16_t)R_RSI, (void*)R_RDX); } +void LFpui(x64emu_t *emu, uintptr_t fcn) { LFpui_t fn = (LFpui_t)fcn; R_RAX=(uintptr_t)fn((void*)R_RDI, (uint32_t)R_RSI, (int32_t)R_RDX); } void LFpuL(x64emu_t *emu, uintptr_t fcn) { LFpuL_t fn = (LFpuL_t)fcn; R_RAX=(uintptr_t)fn((void*)R_RDI, (uint32_t)R_RSI, (uintptr_t)R_RDX); } void LFpup(x64emu_t *emu, uintptr_t fcn) { LFpup_t fn = (LFpup_t)fcn; R_RAX=(uintptr_t)fn((void*)R_RDI, (uint32_t)R_RSI, (void*)R_RDX); } void LFpLi(x64emu_t *emu, uintptr_t fcn) { LFpLi_t fn = (LFpLi_t)fcn; R_RAX=(uintptr_t)fn((void*)R_RDI, (uintptr_t)R_RSI, (int32_t)R_RDX); } @@ -4657,6 +4671,7 @@ void LFppLu(x64emu_t *emu, uintptr_t fcn) { LFppLu_t fn = (LFppLu_t)fcn; R_RAX=( void LFppLL(x64emu_t *emu, uintptr_t fcn) { LFppLL_t fn = (LFppLL_t)fcn; R_RAX=(uintptr_t)fn((void*)R_RDI, (void*)R_RSI, (uintptr_t)R_RDX, (uintptr_t)R_RCX); } void LFppLp(x64emu_t *emu, uintptr_t fcn) { LFppLp_t fn = (LFppLp_t)fcn; R_RAX=(uintptr_t)fn((void*)R_RDI, (void*)R_RSI, (uintptr_t)R_RDX, (void*)R_RCX); } void LFpppi(x64emu_t *emu, uintptr_t fcn) { LFpppi_t fn = (LFpppi_t)fcn; R_RAX=(uintptr_t)fn((void*)R_RDI, (void*)R_RSI, (void*)R_RDX, (int32_t)R_RCX); } +void LFpppu(x64emu_t *emu, uintptr_t fcn) { LFpppu_t fn = (LFpppu_t)fcn; R_RAX=(uintptr_t)fn((void*)R_RDI, (void*)R_RSI, (void*)R_RDX, (uint32_t)R_RCX); } void LFpppL(x64emu_t *emu, uintptr_t fcn) { LFpppL_t fn = (LFpppL_t)fcn; R_RAX=(uintptr_t)fn((void*)R_RDI, (void*)R_RSI, (void*)R_RDX, (uintptr_t)R_RCX); } void LFpppp(x64emu_t *emu, uintptr_t fcn) { LFpppp_t fn = (LFpppp_t)fcn; R_RAX=(uintptr_t)fn((void*)R_RDI, (void*)R_RSI, (void*)R_RDX, (void*)R_RCX); } void pFEipp(x64emu_t *emu, uintptr_t fcn) { pFEipp_t fn = (pFEipp_t)fcn; R_RAX=(uintptr_t)fn(emu, (int32_t)R_RDI, (void*)R_RSI, (void*)R_RDX); } @@ -5201,6 +5216,7 @@ void LFpuupi(x64emu_t *emu, uintptr_t fcn) { LFpuupi_t fn = (LFpuupi_t)fcn; R_RA void LFpLuuu(x64emu_t *emu, uintptr_t fcn) { LFpLuuu_t fn = (LFpLuuu_t)fcn; R_RAX=(uintptr_t)fn((void*)R_RDI, (uintptr_t)R_RSI, (uint32_t)R_RDX, (uint32_t)R_RCX, (uint32_t)R_R8); } void LFpLLLp(x64emu_t *emu, uintptr_t fcn) { LFpLLLp_t fn = (LFpLLLp_t)fcn; R_RAX=(uintptr_t)fn((void*)R_RDI, (uintptr_t)R_RSI, (uintptr_t)R_RDX, (uintptr_t)R_RCX, (void*)R_R8); } void LFpLpuu(x64emu_t *emu, uintptr_t fcn) { LFpLpuu_t fn = (LFpLpuu_t)fcn; R_RAX=(uintptr_t)fn((void*)R_RDI, (uintptr_t)R_RSI, (void*)R_RDX, (uint32_t)R_RCX, (uint32_t)R_R8); } +void LFpLpLi(x64emu_t *emu, uintptr_t fcn) { LFpLpLi_t fn = (LFpLpLi_t)fcn; R_RAX=(uintptr_t)fn((void*)R_RDI, (uintptr_t)R_RSI, (void*)R_RDX, (uintptr_t)R_RCX, (int32_t)R_R8); } void LFpLpLp(x64emu_t *emu, uintptr_t fcn) { LFpLpLp_t fn = (LFpLpLp_t)fcn; R_RAX=(uintptr_t)fn((void*)R_RDI, (uintptr_t)R_RSI, (void*)R_RDX, (uintptr_t)R_RCX, (void*)R_R8); } void LFpLppL(x64emu_t *emu, uintptr_t fcn) { LFpLppL_t fn = (LFpLppL_t)fcn; R_RAX=(uintptr_t)fn((void*)R_RDI, (uintptr_t)R_RSI, (void*)R_RDX, (void*)R_RCX, (uintptr_t)R_R8); } void LFpLppp(x64emu_t *emu, uintptr_t fcn) { LFpLppp_t fn = (LFpLppp_t)fcn; R_RAX=(uintptr_t)fn((void*)R_RDI, (uintptr_t)R_RSI, (void*)R_RDX, (void*)R_RCX, (void*)R_R8); } @@ -5687,7 +5703,9 @@ void LFpipipi(x64emu_t *emu, uintptr_t fcn) { LFpipipi_t fn = (LFpipipi_t)fcn; R void LFpLippp(x64emu_t *emu, uintptr_t fcn) { LFpLippp_t fn = (LFpLippp_t)fcn; R_RAX=(uintptr_t)fn((void*)R_RDI, (uintptr_t)R_RSI, (int32_t)R_RDX, (void*)R_RCX, (void*)R_R8, (void*)R_R9); } void LFpLLLLL(x64emu_t *emu, uintptr_t fcn) { LFpLLLLL_t fn = (LFpLLLLL_t)fcn; R_RAX=(uintptr_t)fn((void*)R_RDI, (uintptr_t)R_RSI, (uintptr_t)R_RDX, (uintptr_t)R_RCX, (uintptr_t)R_R8, (uintptr_t)R_R9); } void LFppLLpL(x64emu_t *emu, uintptr_t fcn) { LFppLLpL_t fn = (LFppLLpL_t)fcn; R_RAX=(uintptr_t)fn((void*)R_RDI, (void*)R_RSI, (uintptr_t)R_RDX, (uintptr_t)R_RCX, (void*)R_R8, (uintptr_t)R_R9); } +void LFppLpLi(x64emu_t *emu, uintptr_t fcn) { LFppLpLi_t fn = (LFppLpLi_t)fcn; R_RAX=(uintptr_t)fn((void*)R_RDI, (void*)R_RSI, (uintptr_t)R_RDX, (void*)R_RCX, (uintptr_t)R_R8, (int32_t)R_R9); } void LFppLpLL(x64emu_t *emu, uintptr_t fcn) { LFppLpLL_t fn = (LFppLpLL_t)fcn; R_RAX=(uintptr_t)fn((void*)R_RDI, (void*)R_RSI, (uintptr_t)R_RDX, (void*)R_RCX, (uintptr_t)R_R8, (uintptr_t)R_R9); } +void LFppLpLp(x64emu_t *emu, uintptr_t fcn) { LFppLpLp_t fn = (LFppLpLp_t)fcn; R_RAX=(uintptr_t)fn((void*)R_RDI, (void*)R_RSI, (uintptr_t)R_RDX, (void*)R_RCX, (uintptr_t)R_R8, (void*)R_R9); } void LFSpLiip(x64emu_t *emu, uintptr_t fcn) { LFSpLiip_t fn = (LFSpLiip_t)fcn; R_RAX=(uintptr_t)fn(io_convert((void*)R_RDI), (void*)R_RSI, (uintptr_t)R_RDX, (int32_t)R_RCX, (int32_t)R_R8, (void*)R_R9); } void pFELpppV(x64emu_t *emu, uintptr_t fcn) { pFELpppV_t fn = (pFELpppV_t)fcn; R_RAX=(uintptr_t)fn(emu, (uintptr_t)R_RDI, (void*)R_RSI, (void*)R_RDX, (void*)R_RCX, (void*)(R_RSP + 8)); } void pFELpApp(x64emu_t *emu, uintptr_t fcn) { pFELpApp_t fn = (pFELpApp_t)fcn; R_RAX=(uintptr_t)fn(emu, (uintptr_t)R_RDI, (void*)R_RSI, (void*)R_RDX, (void*)R_RCX, (void*)R_R8); } @@ -6017,6 +6035,7 @@ void LFEpppppu(x64emu_t *emu, uintptr_t fcn) { LFEpppppu_t fn = (LFEpppppu_t)fcn void LFpLLuupp(x64emu_t *emu, uintptr_t fcn) { LFpLLuupp_t fn = (LFpLLuupp_t)fcn; R_RAX=(uintptr_t)fn((void*)R_RDI, (uintptr_t)R_RSI, (uintptr_t)R_RDX, (uint32_t)R_RCX, (uint32_t)R_R8, (void*)R_R9, *(void**)(R_RSP + 8)); } void LFpLLppuu(x64emu_t *emu, uintptr_t fcn) { LFpLLppuu_t fn = (LFpLLppuu_t)fcn; R_RAX=(uintptr_t)fn((void*)R_RDI, (uintptr_t)R_RSI, (uintptr_t)R_RDX, (void*)R_RCX, (void*)R_R8, (uint32_t)R_R9, *(uint32_t*)(R_RSP + 8)); } void LFpLppuuu(x64emu_t *emu, uintptr_t fcn) { LFpLppuuu_t fn = (LFpLppuuu_t)fcn; R_RAX=(uintptr_t)fn((void*)R_RDI, (uintptr_t)R_RSI, (void*)R_RDX, (void*)R_RCX, (uint32_t)R_R8, (uint32_t)R_R9, *(uint32_t*)(R_RSP + 8)); } +void LFppLpLpL(x64emu_t *emu, uintptr_t fcn) { LFppLpLpL_t fn = (LFppLpLpL_t)fcn; R_RAX=(uintptr_t)fn((void*)R_RDI, (void*)R_RSI, (uintptr_t)R_RDX, (void*)R_RCX, (uintptr_t)R_R8, (void*)R_R9, *(uintptr_t*)(R_RSP + 8)); } void pFEpupppp(x64emu_t *emu, uintptr_t fcn) { pFEpupppp_t fn = (pFEpupppp_t)fcn; R_RAX=(uintptr_t)fn(emu, (void*)R_RDI, (uint32_t)R_RSI, (void*)R_RDX, (void*)R_RCX, (void*)R_R8, (void*)R_R9); } void pFEpLiiiI(x64emu_t *emu, uintptr_t fcn) { pFEpLiiiI_t fn = (pFEpLiiiI_t)fcn; R_RAX=(uintptr_t)fn(emu, (void*)R_RDI, (uintptr_t)R_RSI, (int32_t)R_RDX, (int32_t)R_RCX, (int32_t)R_R8, (int64_t)R_R9); } void pFEpLiiil(x64emu_t *emu, uintptr_t fcn) { pFEpLiiil_t fn = (pFEpLiiil_t)fcn; R_RAX=(uintptr_t)fn(emu, (void*)R_RDI, (uintptr_t)R_RSI, (int32_t)R_RDX, (int32_t)R_RCX, (int32_t)R_R8, (intptr_t)R_R9); } @@ -6253,6 +6272,7 @@ void uFbWWWWWWp(x64emu_t *emu, uintptr_t fcn) { uFbWWWWWWp_t fn = (uFbWWWWWWp_t) void LFELpupupu(x64emu_t *emu, uintptr_t fcn) { LFELpupupu_t fn = (LFELpupupu_t)fcn; R_RAX=(uintptr_t)fn(emu, (uintptr_t)R_RDI, (void*)R_RSI, (uint32_t)R_RDX, (void*)R_RCX, (uint32_t)R_R8, (void*)R_R9, *(uint32_t*)(R_RSP + 8)); } void LFEpuuuppp(x64emu_t *emu, uintptr_t fcn) { LFEpuuuppp_t fn = (LFEpuuuppp_t)fcn; R_RAX=(uintptr_t)fn(emu, (void*)R_RDI, (uint32_t)R_RSI, (uint32_t)R_RDX, (uint32_t)R_RCX, (void*)R_R8, (void*)R_R9, *(void**)(R_RSP + 8)); } void LFpLpuuLLu(x64emu_t *emu, uintptr_t fcn) { LFpLpuuLLu_t fn = (LFpLpuuLLu_t)fcn; R_RAX=(uintptr_t)fn((void*)R_RDI, (uintptr_t)R_RSI, (void*)R_RDX, (uint32_t)R_RCX, (uint32_t)R_R8, (uintptr_t)R_R9, *(uintptr_t*)(R_RSP + 8), *(uint32_t*)(R_RSP + 16)); } +void LFppLpLpLi(x64emu_t *emu, uintptr_t fcn) { LFppLpLpLi_t fn = (LFppLpLpLi_t)fcn; R_RAX=(uintptr_t)fn((void*)R_RDI, (void*)R_RSI, (uintptr_t)R_RDX, (void*)R_RCX, (uintptr_t)R_R8, (void*)R_R9, *(uintptr_t*)(R_RSP + 8), *(int32_t*)(R_RSP + 16)); } void pFEiplllpp(x64emu_t *emu, uintptr_t fcn) { pFEiplllpp_t fn = (pFEiplllpp_t)fcn; R_RAX=(uintptr_t)fn(emu, (int32_t)R_RDI, (void*)R_RSI, (intptr_t)R_RDX, (intptr_t)R_RCX, (intptr_t)R_R8, (void*)R_R9, *(void**)(R_RSP + 8)); } void pFEipLLLpp(x64emu_t *emu, uintptr_t fcn) { pFEipLLLpp_t fn = (pFEipLLLpp_t)fcn; R_RAX=(uintptr_t)fn(emu, (int32_t)R_RDI, (void*)R_RSI, (uintptr_t)R_RDX, (uintptr_t)R_RCX, (uintptr_t)R_R8, (void*)R_R9, *(void**)(R_RSP + 8)); } void pFEpiuCppp(x64emu_t *emu, uintptr_t fcn) { pFEpiuCppp_t fn = (pFEpiuCppp_t)fcn; R_RAX=(uintptr_t)fn(emu, (void*)R_RDI, (int32_t)R_RSI, (uint32_t)R_RDX, (uint8_t)R_RCX, (void*)R_R8, (void*)R_R9, *(void**)(R_RSP + 8)); } @@ -6978,6 +6998,7 @@ int isSimpleWrapper(wrapper_t fun) { if (fun == &UFUp) return 1; if (fun == &UFpi) return 1; if (fun == &UFpU) return 1; + if (fun == &UFpL) return 1; if (fun == &UFpp) return 1; if (fun == &fFif) return -2; if (fun == &fFfi) return -2; @@ -7011,6 +7032,7 @@ int isSimpleWrapper(wrapper_t fun) { if (fun == &LFLp) return 1; if (fun == &LFpi) return 1; if (fun == &LFpu) return 1; + if (fun == &LFpU) return 1; if (fun == &LFpL) return 1; if (fun == &LFpp) return 1; if (fun == &pFii) return 1; @@ -7320,6 +7342,7 @@ int isSimpleWrapper(wrapper_t fun) { if (fun == &LFpip) return 1; if (fun == &LFpCi) return 1; if (fun == &LFpWp) return 1; + if (fun == &LFpui) return 1; if (fun == &LFpuL) return 1; if (fun == &LFpup) return 1; if (fun == &LFpLi) return 1; @@ -7773,6 +7796,7 @@ int isSimpleWrapper(wrapper_t fun) { if (fun == &LFppLL) return 1; if (fun == &LFppLp) return 1; if (fun == &LFpppi) return 1; + if (fun == &LFpppu) return 1; if (fun == &LFpppL) return 1; if (fun == &LFpppp) return 1; if (fun == &pFiiii) return 1; @@ -8216,6 +8240,7 @@ int isSimpleWrapper(wrapper_t fun) { if (fun == &LFpLuuu) return 1; if (fun == &LFpLLLp) return 1; if (fun == &LFpLpuu) return 1; + if (fun == &LFpLpLi) return 1; if (fun == &LFpLpLp) return 1; if (fun == &LFpLppL) return 1; if (fun == &LFpLppp) return 1; @@ -8617,7 +8642,9 @@ int isSimpleWrapper(wrapper_t fun) { if (fun == &LFpLippp) return 1; if (fun == &LFpLLLLL) return 1; if (fun == &LFppLLpL) return 1; + if (fun == &LFppLpLi) return 1; if (fun == &LFppLpLL) return 1; + if (fun == &LFppLpLp) return 1; if (fun == &pFiiiiii) return 1; if (fun == &pFiiiiid) return 2; if (fun == &pFipippp) return 1; @@ -8844,6 +8871,7 @@ int isSimpleWrapper(wrapper_t fun) { if (fun == &UFuu) return 1; if (fun == &UFUp) return 1; if (fun == &UFpU) return 1; + if (fun == &UFpL) return 1; if (fun == &UFpp) return 1; if (fun == &fFff) return -3; if (fun == &fFfp) return -2; @@ -8865,6 +8893,7 @@ int isSimpleWrapper(wrapper_t fun) { if (fun == &LFLL) return 1; if (fun == &LFLp) return 1; if (fun == &LFpu) return 1; + if (fun == &LFpU) return 1; if (fun == &LFpL) return 1; if (fun == &LFpp) return 1; if (fun == &pFuu) return 1; @@ -9136,6 +9165,7 @@ int isSimpleWrapper(wrapper_t fun) { if (fun == &LFppLu) return 1; if (fun == &LFppLL) return 1; if (fun == &LFppLp) return 1; + if (fun == &LFpppu) return 1; if (fun == &LFpppL) return 1; if (fun == &LFpppp) return 1; if (fun == &pFuuuu) return 1; @@ -9349,6 +9379,7 @@ int isSimpleWrapper(wrapper_t fun) { if (fun == &LFpLLLLL) return 1; if (fun == &LFppLLpL) return 1; if (fun == &LFppLpLL) return 1; + if (fun == &LFppLpLp) return 1; if (fun == &pFuCCCCp) return 1; if (fun == &pFuuuuuu) return 1; if (fun == &pFuuuuup) return 1; diff --git a/src/wrapped/generated/wrapper.h b/src/wrapped/generated/wrapper.h index 1f9f1eea..2ffca560 100644 --- a/src/wrapped/generated/wrapper.h +++ b/src/wrapped/generated/wrapper.h @@ -151,6 +151,7 @@ void pFA(x64emu_t *emu, uintptr_t fnc); void pFb(x64emu_t *emu, uintptr_t fnc); void SFv(x64emu_t *emu, uintptr_t fnc); void HFi(x64emu_t *emu, uintptr_t fnc); +void HFu(x64emu_t *emu, uintptr_t fnc); void HFp(x64emu_t *emu, uintptr_t fnc); void HFH(x64emu_t *emu, uintptr_t fnc); void xFx(x64emu_t *emu, uintptr_t fnc); @@ -308,6 +309,7 @@ void UFuu(x64emu_t *emu, uintptr_t fnc); void UFUp(x64emu_t *emu, uintptr_t fnc); void UFpi(x64emu_t *emu, uintptr_t fnc); void UFpU(x64emu_t *emu, uintptr_t fnc); +void UFpL(x64emu_t *emu, uintptr_t fnc); void UFpp(x64emu_t *emu, uintptr_t fnc); void fFEf(x64emu_t *emu, uintptr_t fnc); void fFEp(x64emu_t *emu, uintptr_t fnc); @@ -356,6 +358,7 @@ void LFLL(x64emu_t *emu, uintptr_t fnc); void LFLp(x64emu_t *emu, uintptr_t fnc); void LFpi(x64emu_t *emu, uintptr_t fnc); void LFpu(x64emu_t *emu, uintptr_t fnc); +void LFpU(x64emu_t *emu, uintptr_t fnc); void LFpL(x64emu_t *emu, uintptr_t fnc); void LFpp(x64emu_t *emu, uintptr_t fnc); void pFEi(x64emu_t *emu, uintptr_t fnc); @@ -745,6 +748,7 @@ void LFpii(x64emu_t *emu, uintptr_t fnc); void LFpip(x64emu_t *emu, uintptr_t fnc); void LFpCi(x64emu_t *emu, uintptr_t fnc); void LFpWp(x64emu_t *emu, uintptr_t fnc); +void LFpui(x64emu_t *emu, uintptr_t fnc); void LFpuL(x64emu_t *emu, uintptr_t fnc); void LFpup(x64emu_t *emu, uintptr_t fnc); void LFpLi(x64emu_t *emu, uintptr_t fnc); @@ -1311,6 +1315,7 @@ void LFppLu(x64emu_t *emu, uintptr_t fnc); void LFppLL(x64emu_t *emu, uintptr_t fnc); void LFppLp(x64emu_t *emu, uintptr_t fnc); void LFpppi(x64emu_t *emu, uintptr_t fnc); +void LFpppu(x64emu_t *emu, uintptr_t fnc); void LFpppL(x64emu_t *emu, uintptr_t fnc); void LFpppp(x64emu_t *emu, uintptr_t fnc); void pFEipp(x64emu_t *emu, uintptr_t fnc); @@ -1856,6 +1861,7 @@ void LFpuupi(x64emu_t *emu, uintptr_t fnc); void LFpLuuu(x64emu_t *emu, uintptr_t fnc); void LFpLLLp(x64emu_t *emu, uintptr_t fnc); void LFpLpuu(x64emu_t *emu, uintptr_t fnc); +void LFpLpLi(x64emu_t *emu, uintptr_t fnc); void LFpLpLp(x64emu_t *emu, uintptr_t fnc); void LFpLppL(x64emu_t *emu, uintptr_t fnc); void LFpLppp(x64emu_t *emu, uintptr_t fnc); @@ -2343,7 +2349,9 @@ void LFpipipi(x64emu_t *emu, uintptr_t fnc); void LFpLippp(x64emu_t *emu, uintptr_t fnc); void LFpLLLLL(x64emu_t *emu, uintptr_t fnc); void LFppLLpL(x64emu_t *emu, uintptr_t fnc); +void LFppLpLi(x64emu_t *emu, uintptr_t fnc); void LFppLpLL(x64emu_t *emu, uintptr_t fnc); +void LFppLpLp(x64emu_t *emu, uintptr_t fnc); void LFSpLiip(x64emu_t *emu, uintptr_t fnc); void pFELpppV(x64emu_t *emu, uintptr_t fnc); void pFELpApp(x64emu_t *emu, uintptr_t fnc); @@ -2673,6 +2681,7 @@ void LFEpppppu(x64emu_t *emu, uintptr_t fnc); void LFpLLuupp(x64emu_t *emu, uintptr_t fnc); void LFpLLppuu(x64emu_t *emu, uintptr_t fnc); void LFpLppuuu(x64emu_t *emu, uintptr_t fnc); +void LFppLpLpL(x64emu_t *emu, uintptr_t fnc); void pFEpupppp(x64emu_t *emu, uintptr_t fnc); void pFEpLiiiI(x64emu_t *emu, uintptr_t fnc); void pFEpLiiil(x64emu_t *emu, uintptr_t fnc); @@ -2909,6 +2918,7 @@ void uFbWWWWWWp(x64emu_t *emu, uintptr_t fnc); void LFELpupupu(x64emu_t *emu, uintptr_t fnc); void LFEpuuuppp(x64emu_t *emu, uintptr_t fnc); void LFpLpuuLLu(x64emu_t *emu, uintptr_t fnc); +void LFppLpLpLi(x64emu_t *emu, uintptr_t fnc); void pFEiplllpp(x64emu_t *emu, uintptr_t fnc); void pFEipLLLpp(x64emu_t *emu, uintptr_t fnc); void pFEpiuCppp(x64emu_t *emu, uintptr_t fnc); diff --git a/src/wrapped/wrappedzstd.c b/src/wrapped/wrappedzstd.c new file mode 100644 index 00000000..af9bf645 --- /dev/null +++ b/src/wrapped/wrappedzstd.c @@ -0,0 +1,19 @@ +#define _GNU_SOURCE /* See feature_test_macros(7) */ +#include +#include +#include +#include + +#include "wrappedlibs.h" + +#include "wrapper.h" +#include "bridge.h" +#include "librarian/library_private.h" +#include "x64emu.h" + +const char* zstdName = "libzstd.so.1"; +#define LIBNAME zstd +#define ALTNAME "libzstd.so" + +#include "wrappedlib_init.h" + diff --git a/src/wrapped/wrappedzstd_private.h b/src/wrapped/wrappedzstd_private.h new file mode 100644 index 00000000..28d518fd --- /dev/null +++ b/src/wrapped/wrappedzstd_private.h @@ -0,0 +1,587 @@ +#if !(defined(GO) && defined(GOM) && defined(GO2) && defined(DATA)) +#error Meh... +#endif + +//GO(COVER_best_destroy, +//GO(COVER_best_finish, +//GO(COVER_best_init, +//GO(COVER_best_start, +//GO(COVER_best_wait, +//GO(COVER_checkTotalCompressedSize, +//GO(COVER_computeEpochs, +//GO(COVER_dictSelectionError, +//GO(COVER_dictSelectionFree, +//GO(COVER_dictSelectionIsError, +//GO(COVER_selectDict, +//GO(COVER_sum, +//GO(COVER_warnOnSmallCorpus, +//GO(divbwt, +//GO(divsufsort, +//GO(ERR_getErrorString, +//GO(FSE_buildCTable, +//GO(FSE_buildCTable_raw, +//GO(FSE_buildCTable_rle, +//GO(FSE_buildCTable_wksp, +//GO(FSE_buildDTable, +//GO(FSE_buildDTable_raw, +//GO(FSE_buildDTable_rle, +//GO(FSE_buildDTable_wksp, +//GO(FSE_compress, +//GO(FSE_compress2, +//GO(FSE_compressBound, +//GO(FSE_compress_usingCTable, +//GO(FSE_compress_wksp, +//GO(FSE_createCTable, +//GO(FSE_createDTable, +//GO(FSE_decompress, +//GO(FSE_decompress_usingDTable, +//GO(FSE_decompress_wksp, +//GO(FSE_decompress_wksp_bmi2, +//GO(FSE_freeCTable, +//GO(FSE_freeDTable, +//GO(FSE_getErrorName, +//GO(FSE_isError, +//GO(FSE_NCountWriteBound, +//GO(FSE_normalizeCount, +//GO(FSE_optimalTableLog, +//GO(FSE_optimalTableLog_internal, +//GO(FSE_readNCount, +//GO(FSE_readNCount_bmi2, +//GO(FSEv05_buildDTable, +//GO(FSEv05_buildDTable_raw, +//GO(FSEv05_buildDTable_rle, +//GO(FSEv05_createDTable, +//GO(FSEv05_decompress, +//GO(FSEv05_decompress_usingDTable, +//GO(FSEv05_freeDTable, +//GO(FSEv05_getErrorName, +//GO(FSEv05_isError, +//GO(FSEv05_readNCount, +//GO(FSEv06_buildDTable, +//GO(FSEv06_buildDTable_raw, +//GO(FSEv06_buildDTable_rle, +//GO(FSEv06_createDTable, +//GO(FSEv06_decompress, +//GO(FSEv06_decompress_usingDTable, +//GO(FSEv06_freeDTable, +//GO(FSEv06_getErrorName, +//GO(FSEv06_isError, +//GO(FSEv06_readNCount, +//GO(FSEv07_buildDTable, +//GO(FSEv07_buildDTable_raw, +//GO(FSEv07_buildDTable_rle, +//GO(FSEv07_createDTable, +//GO(FSEv07_decompress, +//GO(FSEv07_decompress_usingDTable, +//GO(FSEv07_freeDTable, +//GO(FSEv07_getErrorName, +//GO(FSEv07_isError, +//GO(FSEv07_readNCount, +//GO(FSE_versionNumber, +//GO(FSE_writeNCount, +//DATAB(g_debuglevel, +//DATAB(g_ZSTD_threading_useless_symbol, +//GO(HIST_count, +//GO(HIST_countFast, +//GO(HIST_countFast_wksp, +//GO(HIST_count_simple, +//GO(HIST_count_wksp, +//GO(HIST_isError, +//GO(HUF_buildCTable, +//GO(HUF_buildCTable_wksp, +//GO(HUF_compress, +//GO(HUF_compress1X, +//GO(HUF_compress1X_repeat, +//GO(HUF_compress1X_usingCTable, +//GO(HUF_compress1X_wksp, +//GO(HUF_compress2, +//GO(HUF_compress4X_repeat, +//GO(HUF_compress4X_usingCTable, +//GO(HUF_compress4X_wksp, +//GO(HUF_compressBound, +//GO(HUF_decompress, +//GO(HUF_decompress1X1, +//GO(HUF_decompress1X1_DCtx, +//GO(HUF_decompress1X1_DCtx_wksp, +//GO(HUF_decompress1X1_DCtx_wksp_bmi2, +//GO(HUF_decompress1X1_usingDTable, +//GO(HUF_decompress1X2, +//GO(HUF_decompress1X2_DCtx, +//GO(HUF_decompress1X2_DCtx_wksp, +//GO(HUF_decompress1X2_usingDTable, +//GO(HUF_decompress1X_DCtx, +//GO(HUF_decompress1X_DCtx_wksp, +//GO(HUF_decompress1X_usingDTable, +//GO(HUF_decompress1X_usingDTable_bmi2, +//GO(HUF_decompress4X1, +//GO(HUF_decompress4X1_DCtx, +//GO(HUF_decompress4X1_DCtx_wksp, +//GO(HUF_decompress4X1_usingDTable, +//GO(HUF_decompress4X2, +//GO(HUF_decompress4X2_DCtx, +//GO(HUF_decompress4X2_DCtx_wksp, +//GO(HUF_decompress4X2_usingDTable, +//GO(HUF_decompress4X_DCtx, +//GO(HUF_decompress4X_hufOnly, +//GO(HUF_decompress4X_hufOnly_wksp, +//GO(HUF_decompress4X_hufOnly_wksp_bmi2, +//GO(HUF_decompress4X_usingDTable, +//GO(HUF_decompress4X_usingDTable_bmi2, +//GO(HUF_estimateCompressedSize, +//GO(HUF_getErrorName, +//GO(HUF_getNbBits, +//GO(HUF_isError, +//GO(HUF_optimalTableLog, +//GO(HUF_readCTable, +//GO(HUF_readDTableX1, +//GO(HUF_readDTableX1_wksp, +//GO(HUF_readDTableX1_wksp_bmi2, +//GO(HUF_readDTableX2, +//GO(HUF_readDTableX2_wksp, +//GO(HUF_readStats, +//GO(HUF_readStats_wksp, +//GO(HUF_selectDecoder, +//GO(HUFv05_decompress, +//GO(HUFv05_decompress1X2, +//GO(HUFv05_decompress1X2_usingDTable, +//GO(HUFv05_decompress1X4, +//GO(HUFv05_decompress1X4_usingDTable, +//GO(HUFv05_decompress4X2, +//GO(HUFv05_decompress4X2_usingDTable, +//GO(HUFv05_decompress4X4, +//GO(HUFv05_decompress4X4_usingDTable, +//GO(HUFv05_getErrorName, +//GO(HUFv05_isError, +//GO(HUFv05_readDTableX2, +//GO(HUFv05_readDTableX4, +//GO(HUFv06_decompress, +//GO(HUFv06_decompress1X2, +//GO(HUFv06_decompress1X2_usingDTable, +//GO(HUFv06_decompress1X4, +//GO(HUFv06_decompress1X4_usingDTable, +//GO(HUFv06_decompress4X2, +//GO(HUFv06_decompress4X2_usingDTable, +//GO(HUFv06_decompress4X4, +//GO(HUFv06_decompress4X4_usingDTable, +//GO(HUFv06_readDTableX2, +//GO(HUFv06_readDTableX4, +//GO(HUFv07_decompress, +//GO(HUFv07_decompress1X2, +//GO(HUFv07_decompress1X2_DCtx, +//GO(HUFv07_decompress1X2_usingDTable, +//GO(HUFv07_decompress1X4, +//GO(HUFv07_decompress1X4_DCtx, +//GO(HUFv07_decompress1X4_usingDTable, +//GO(HUFv07_decompress1X_DCtx, +//GO(HUFv07_decompress1X_usingDTable, +//GO(HUFv07_decompress4X2, +//GO(HUFv07_decompress4X2_DCtx, +//GO(HUFv07_decompress4X2_usingDTable, +//GO(HUFv07_decompress4X4, +//GO(HUFv07_decompress4X4_DCtx, +//GO(HUFv07_decompress4X4_usingDTable, +//GO(HUFv07_decompress4X_DCtx, +//GO(HUFv07_decompress4X_hufOnly, +//GO(HUFv07_decompress4X_usingDTable, +//GO(HUFv07_getErrorName, +//GO(HUFv07_isError, +//GO(HUFv07_readDTableX2, +//GO(HUFv07_readDTableX4, +//GO(HUFv07_readStats, +//GO(HUFv07_selectDecoder, +//GO(HUF_validateCTable, +//GO(HUF_writeCTable, +//GO(POOL_add, +//GO(POOL_create, +//GO(POOL_create_advanced, +//GO(POOL_free, +//GO(POOL_resize, +//GO(POOL_sizeof, +//GO(POOL_tryAdd, +//GO(ZBUFF_compressContinue, +//GO(ZBUFF_compressEnd, +//GO(ZBUFF_compressFlush, +//GO(ZBUFF_compressInit, +//GO(ZBUFF_compressInit_advanced, +//GO(ZBUFF_compressInitDictionary, +//GO(ZBUFF_createCCtx, +//GO(ZBUFF_createCCtx_advanced, +//GO(ZBUFF_createDCtx, +//GO(ZBUFF_createDCtx_advanced, +//GO(ZBUFF_decompressContinue, +//GO(ZBUFF_decompressInit, +//GO(ZBUFF_decompressInitDictionary, +//GO(ZBUFF_freeCCtx, +//GO(ZBUFF_freeDCtx, +//GO(ZBUFF_getErrorName, +//GO(ZBUFF_isError, +//GO(ZBUFF_recommendedCInSize, +//GO(ZBUFF_recommendedCOutSize, +//GO(ZBUFF_recommendedDInSize, +//GO(ZBUFF_recommendedDOutSize, +//GO(ZBUFFv05_createDCtx, +//GO(ZBUFFv05_decompressContinue, +//GO(ZBUFFv05_decompressInit, +//GO(ZBUFFv05_decompressInitDictionary, +//GO(ZBUFFv05_freeDCtx, +//GO(ZBUFFv05_getErrorName, +//GO(ZBUFFv05_isError, +//GO(ZBUFFv05_recommendedDInSize, +//GO(ZBUFFv05_recommendedDOutSize, +//GO(ZBUFFv06_createDCtx, +//GO(ZBUFFv06_decompressContinue, +//GO(ZBUFFv06_decompressInit, +//GO(ZBUFFv06_decompressInitDictionary, +//GO(ZBUFFv06_freeDCtx, +//GO(ZBUFFv06_getErrorName, +//GO(ZBUFFv06_isError, +//GO(ZBUFFv06_recommendedDInSize, +//GO(ZBUFFv06_recommendedDOutSize, +//GO(ZBUFFv07_createDCtx, +//GO(ZBUFFv07_createDCtx_advanced, +//GO(ZBUFFv07_decompressContinue, +//GO(ZBUFFv07_decompressInit, +//GO(ZBUFFv07_decompressInitDictionary, +//GO(ZBUFFv07_freeDCtx, +//GO(ZBUFFv07_getErrorName, +//GO(ZBUFFv07_isError, +//GO(ZBUFFv07_recommendedDInSize, +//GO(ZBUFFv07_recommendedDOutSize, +//GO(ZDICT_addEntropyTablesFromBuffer, +//GO(ZDICT_finalizeDictionary, +//GO(ZDICT_getDictHeaderSize, +//GO(ZDICT_getDictID, +//GO(ZDICT_getErrorName, +//GO(ZDICT_isError, +//GO(ZDICT_optimizeTrainFromBuffer_cover, +//GO(ZDICT_optimizeTrainFromBuffer_fastCover, +//GO(ZDICT_trainFromBuffer, +//GO(ZDICT_trainFromBuffer_cover, +//GO(ZDICT_trainFromBuffer_fastCover, +//GO(ZDICT_trainFromBuffer_legacy, +//GO(ZDICT_trainFromBuffer_unsafe_legacy, +//GO(ZSTD_adjustCParams, +//GO(ZSTD_buildCTable, +//GO(ZSTD_buildFSETable, +//GO(ZSTD_CCtx_getParameter, +GO(ZSTD_CCtx_loadDictionary, LFppL) +//GO(ZSTD_CCtx_loadDictionary_advanced, +//GO(ZSTD_CCtx_loadDictionary_byReference, +//GO(ZSTD_CCtxParams_getParameter, +//GO(ZSTD_CCtxParams_init, +//GO(ZSTD_CCtxParams_init_advanced, +//GO(ZSTD_CCtxParams_reset, +//GO(ZSTD_CCtxParams_setParameter, +GO(ZSTD_CCtx_refCDict, LFpp) +GO(ZSTD_CCtx_refPrefix, LFppL) +//GO(ZSTD_CCtx_refPrefix_advanced, +//GO(ZSTD_CCtx_refThreadPool, +GO(ZSTD_CCtx_reset, LFpu) +GO(ZSTD_CCtx_setParameter, LFpui) +//GO(ZSTD_CCtx_setParametersUsingCCtxParams, +GO(ZSTD_CCtx_setPledgedSrcSize, LFpU) +//GO(ZSTD_checkContinuity, +//GO(ZSTD_checkCParams, +GO(ZSTD_compress, LFpLpLi) +GO(ZSTD_compress2, LFppLpL) +//GO(ZSTD_compress_advanced, +//GO(ZSTD_compress_advanced_internal, +//GO(ZSTD_compressBegin, +//GO(ZSTD_compressBegin_advanced, +//GO(ZSTD_compressBegin_advanced_internal, +//GO(ZSTD_compressBegin_usingCDict, +//GO(ZSTD_compressBegin_usingCDict_advanced, +//GO(ZSTD_compressBegin_usingDict, +//GO(ZSTD_compressBlock, +//GO(ZSTD_compressBlock_btlazy2, +//GO(ZSTD_compressBlock_btlazy2_dictMatchState, +//GO(ZSTD_compressBlock_btlazy2_extDict, +//GO(ZSTD_compressBlock_btopt, +//GO(ZSTD_compressBlock_btopt_dictMatchState, +//GO(ZSTD_compressBlock_btopt_extDict, +//GO(ZSTD_compressBlock_btultra, +//GO(ZSTD_compressBlock_btultra2, +//GO(ZSTD_compressBlock_btultra_dictMatchState, +//GO(ZSTD_compressBlock_btultra_extDict, +//GO(ZSTD_compressBlock_doubleFast, +//GO(ZSTD_compressBlock_doubleFast_dictMatchState, +//GO(ZSTD_compressBlock_doubleFast_extDict, +//GO(ZSTD_compressBlock_fast, +//GO(ZSTD_compressBlock_fast_dictMatchState, +//GO(ZSTD_compressBlock_fast_extDict, +//GO(ZSTD_compressBlock_greedy, +//GO(ZSTD_compressBlock_greedy_dedicatedDictSearch, +//GO(ZSTD_compressBlock_greedy_dictMatchState, +//GO(ZSTD_compressBlock_greedy_extDict, +//GO(ZSTD_compressBlock_lazy, +//GO(ZSTD_compressBlock_lazy2, +//GO(ZSTD_compressBlock_lazy2_dedicatedDictSearch, +//GO(ZSTD_compressBlock_lazy2_dictMatchState, +//GO(ZSTD_compressBlock_lazy2_extDict, +//GO(ZSTD_compressBlock_lazy_dedicatedDictSearch, +//GO(ZSTD_compressBlock_lazy_dictMatchState, +//GO(ZSTD_compressBlock_lazy_extDict, +GO(ZSTD_compressBound, LFL) +GO(ZSTD_compressCCtx, LFppLpLi) +//GO(ZSTD_compressContinue, +//GO(ZSTD_compressEnd, +//GO(ZSTD_compressLiterals, +//GO(ZSTD_compressRleLiteralsBlock, +//GO(ZSTD_compressSequences, +GO(ZSTD_compressStream, LFppp) +GO(ZSTD_compressStream2, LFpppu) +//GO(ZSTD_compressStream2_simpleArgs, +//GO(ZSTD_compressSuperBlock, +GO(ZSTD_compress_usingCDict, LFppLpLp) +//GO(ZSTD_compress_usingCDict_advanced, +GO(ZSTD_compress_usingDict, LFppLpLpLi) +//GO(ZSTD_copyCCtx, +//GO(ZSTD_copyDCtx, +//GO(ZSTD_copyDDictParameters, +GO(ZSTD_cParam_getBounds, HFu) +GO(ZSTD_createCCtx, pFv) +//GO(ZSTD_createCCtx_advanced, +//GO(ZSTD_createCCtxParams, +GO(ZSTD_createCDict, pFpLi) +//GO(ZSTD_createCDict_advanced, +//GO(ZSTD_createCDict_advanced2, +//GO(ZSTD_createCDict_byReference, +GO(ZSTD_createCStream, pFv) +//GO(ZSTD_createCStream_advanced, +GO(ZSTD_createDCtx, pFv) +//GO(ZSTD_createDCtx_advanced, +GO(ZSTD_createDDict, pFpL) +//GO(ZSTD_createDDict_advanced, +//GO(ZSTD_createDDict_byReference, +GO(ZSTD_createDStream, pFv) +//GO(ZSTD_createDStream_advanced, +//GO(ZSTD_crossEntropyCost, +GO(ZSTD_CStreamInSize, LFv) +GO(ZSTD_CStreamOutSize, LFv) +//GO(ZSTD_customCalloc, +//GO(ZSTD_customFree, +//GO(ZSTD_customMalloc, +//GO(ZSTD_cycleLog, +//GO(ZSTD_DCtx_getParameter, +GO(ZSTD_DCtx_loadDictionary, LFppL) +//GO(ZSTD_DCtx_loadDictionary_advanced, +//GO(ZSTD_DCtx_loadDictionary_byReference, +GO(ZSTD_DCtx_refDDict, LFpp) +GO(ZSTD_DCtx_refPrefix, LFppL) +//GO(ZSTD_DCtx_refPrefix_advanced, +GO(ZSTD_DCtx_reset, LFpu) +//GO(ZSTD_DCtx_setFormat, +//GO(ZSTD_DCtx_setMaxWindowSize, +GO(ZSTD_DCtx_setParameter, LFpui) +//GO(ZSTD_DDict_dictContent, +//GO(ZSTD_DDict_dictSize, +//GO(ZSTD_decodeLiteralsBlock, +//GO(ZSTD_decodeSeqHeaders, +//GO(ZSTD_decodingBufferSize_min, +GO(ZSTD_decompress, LFpLpL) +//GO(ZSTD_decompressBegin, +//GO(ZSTD_decompressBegin_usingDDict, +//GO(ZSTD_decompressBegin_usingDict, +//GO(ZSTD_decompressBlock, +//GO(ZSTD_decompressBlock_internal, +//GO(ZSTD_decompressBound, +//GO(ZSTD_decompressContinue, +GO(ZSTD_decompressDCtx, LFppLpL) +GO(ZSTD_decompressStream, LFppp) +//GO(ZSTD_decompressStream_simpleArgs, +GO(ZSTD_decompress_usingDDict, LFppLpLp) +GO(ZSTD_decompress_usingDict, LFppLpLpL) +//GO(ZSTD_dedicatedDictSearch_lazy_loadDictionary, +GO(ZSTD_dParam_getBounds, HFu) +GO(ZSTD_DStreamInSize, LFv) +GO(ZSTD_DStreamOutSize, LFv) +//GO(ZSTD_encodeSequences, +GO(ZSTD_endStream, LFpp) +//GO(ZSTD_estimateCCtxSize, +//GO(ZSTD_estimateCCtxSize_usingCCtxParams, +//GO(ZSTD_estimateCCtxSize_usingCParams, +//GO(ZSTD_estimateCDictSize, +//GO(ZSTD_estimateCDictSize_advanced, +//GO(ZSTD_estimateCStreamSize, +//GO(ZSTD_estimateCStreamSize_usingCCtxParams, +//GO(ZSTD_estimateCStreamSize_usingCParams, +//GO(ZSTD_estimateDCtxSize, +//GO(ZSTD_estimateDDictSize, +//GO(ZSTD_estimateDStreamSize, +//GO(ZSTD_estimateDStreamSize_fromFrame, +//GO(ZSTD_fillDoubleHashTable, +//GO(ZSTD_fillHashTable, +//GO(ZSTD_findDecompressedSize, +GO(ZSTD_findFrameCompressedSize, LFpL) +GO(ZSTD_flushStream, LFpp) +//GO(ZSTD_frameHeaderSize, +GO(ZSTD_freeCCtx, LFp) +//GO(ZSTD_freeCCtxParams, +GO(ZSTD_freeCDict, LFp) +GO(ZSTD_freeCStream, LFp) +GO(ZSTD_freeDCtx, LFp) +GO(ZSTD_freeDDict, LFp) +GO(ZSTD_freeDStream, LFp) +//GO(ZSTD_fseBitCost, +//GO(ZSTD_generateSequences, +//GO(ZSTD_getBlockSize, +//GO(ZSTD_getcBlockSize, +//GO(ZSTD_getCParams, +//GO(ZSTD_getCParamsFromCCtxParams, +//GO(ZSTD_getCParamsFromCDict, +GO(ZSTD_getDecompressedSize, UFpL) +GO(ZSTD_getDictID_fromCDict, uFp) +GO(ZSTD_getDictID_fromDDict, uFp) +GO(ZSTD_getDictID_fromDict, uFpL) +GO(ZSTD_getDictID_fromFrame, uFpL) +GO(ZSTD_getErrorCode, uFL) +GO(ZSTD_getErrorName, pFL) +GO(ZSTD_getErrorString, pFu) +GO(ZSTD_getFrameContentSize, UFpL) +//GO(ZSTD_getFrameHeader, +//GO(ZSTD_getFrameHeader_advanced, +//GO(ZSTD_getFrameProgression, +//GO(ZSTD_getParams, +//GO(ZSTD_getSeqStore, +GO(ZSTD_initCStream, LFpi) +//GO(ZSTD_initCStream_advanced, +//GO(ZSTD_initCStream_internal, +//GO(ZSTD_initCStream_srcSize, +//GO(ZSTD_initCStream_usingCDict, +//GO(ZSTD_initCStream_usingCDict_advanced, +//GO(ZSTD_initCStream_usingDict, +GO(ZSTD_initDStream, LFp) +//GO(ZSTD_initDStream_usingDDict, +//GO(ZSTD_initDStream_usingDict, +//GO(ZSTD_initStaticCCtx, +//GO(ZSTD_initStaticCDict, +//GO(ZSTD_initStaticCStream, +//GO(ZSTD_initStaticDCtx, +//GO(ZSTD_initStaticDDict, +//GO(ZSTD_initStaticDStream, +//GO(ZSTD_insertAndFindFirstIndex, +//GO(ZSTD_insertBlock, +//GO(ZSTD_invalidateRepCodes, +GO(ZSTD_isError, uFL) +//GO(ZSTD_isFrame, +//GO(ZSTD_ldm_adjustParameters, +//GO(ZSTD_ldm_blockCompress, +//GO(ZSTD_ldm_fillHashTable, +//GO(ZSTD_ldm_generateSequences, +//GO(ZSTD_ldm_getMaxNbSeq, +//GO(ZSTD_ldm_getTableSize, +//GO(ZSTD_ldm_skipRawSeqStoreBytes, +//GO(ZSTD_ldm_skipSequences, +//GO(ZSTD_loadCEntropy, +//GO(ZSTD_loadDEntropy, +GO(ZSTD_maxCLevel, iFv) +//GO(ZSTD_mergeBlockDelimiters, +GO(ZSTD_minCLevel, iFv) +//GO(ZSTDMT_compressStream_generic, +//GO(ZSTDMT_createCCtx_advanced, +//GO(ZSTDMT_freeCCtx, +//GO(ZSTDMT_getFrameProgression, +//GO(ZSTDMT_initCStream_internal, +//GO(ZSTDMT_nextInputSizeHint, +//GO(ZSTDMT_sizeof_CCtx, +//GO(ZSTDMT_toFlushNow, +//GO(ZSTDMT_updateCParams_whileCompressing, +//GO(ZSTD_nextInputType, +//GO(ZSTD_nextSrcSizeToDecompress, +//GO(ZSTD_noCompressLiterals, +//GO(ZSTD_referenceExternalSequences, +//GO(ZSTD_reset_compressedBlockState, +//GO(ZSTD_resetCStream, +//GO(ZSTD_resetDStream, +//GO(ZSTD_resetSeqStore, +//GO(ZSTD_selectBlockCompressor, +//GO(ZSTD_selectEncodingType, +//GO(ZSTD_seqToCodes, +GO(ZSTD_sizeof_CCtx, LFp) +GO(ZSTD_sizeof_CDict, LFp) +GO(ZSTD_sizeof_CStream, LFp) +GO(ZSTD_sizeof_DCtx, LFp) +GO(ZSTD_sizeof_DDict, LFp) +GO(ZSTD_sizeof_DStream, LFp) +//GO(ZSTD_toFlushNow, +//GO(ZSTD_updateTree, +//GO(ZSTDv05_copyDCtx, +//GO(ZSTDv05_createDCtx, +//GO(ZSTDv05_decompress, +//GO(ZSTDv05_decompressBegin, +//GO(ZSTDv05_decompressBegin_usingDict, +//GO(ZSTDv05_decompressBlock, +//GO(ZSTDv05_decompressContinue, +//GO(ZSTDv05_decompressDCtx, +//GO(ZSTDv05_decompress_usingDict, +//GO(ZSTDv05_decompress_usingPreparedDCtx, +//GO(ZSTDv05_findFrameSizeInfoLegacy, +//GO(ZSTDv05_freeDCtx, +//GO(ZSTDv05_getErrorName, +//GO(ZSTDv05_getFrameParams, +//GO(ZSTDv05_isError, +//GO(ZSTDv05_nextSrcSizeToDecompress, +//GO(ZSTDv05_sizeofDCtx, +//GO(ZSTDv06_copyDCtx, +//GO(ZSTDv06_createDCtx, +//GO(ZSTDv06_decompress, +//GO(ZSTDv06_decompressBegin, +//GO(ZSTDv06_decompressBegin_usingDict, +//GO(ZSTDv06_decompressBlock, +//GO(ZSTDv06_decompressContinue, +//GO(ZSTDv06_decompressDCtx, +//GO(ZSTDv06_decompress_usingDict, +//GO(ZSTDv06_decompress_usingPreparedDCtx, +//GO(ZSTDv06_findFrameSizeInfoLegacy, +//GO(ZSTDv06_freeDCtx, +//GO(ZSTDv06_getErrorName, +//GO(ZSTDv06_getFrameParams, +//GO(ZSTDv06_isError, +//GO(ZSTDv06_nextSrcSizeToDecompress, +//GO(ZSTDv06_sizeofDCtx, +//GO(ZSTDv07_copyDCtx, +//GO(ZSTDv07_createDCtx, +//GO(ZSTDv07_createDCtx_advanced, +//GO(ZSTDv07_createDDict, +//GO(ZSTDv07_decompress, +//GO(ZSTDv07_decompressBegin, +//GO(ZSTDv07_decompressBegin_usingDict, +//GO(ZSTDv07_decompressBlock, +//GO(ZSTDv07_decompressContinue, +//GO(ZSTDv07_decompressDCtx, +//GO(ZSTDv07_decompress_usingDDict, +//GO(ZSTDv07_decompress_usingDict, +//GO(ZSTDv07_estimateDCtxSize, +//GO(ZSTDv07_findFrameSizeInfoLegacy, +//GO(ZSTDv07_freeDCtx, +//GO(ZSTDv07_freeDDict, +//GO(ZSTDv07_getDecompressedSize, +//GO(ZSTDv07_getErrorName, +//GO(ZSTDv07_getFrameParams, +//GO(ZSTDv07_insertBlock, +//GO(ZSTDv07_isError, +//GO(ZSTDv07_isSkipFrame, +//GO(ZSTDv07_nextSrcSizeToDecompress, +//GO(ZSTDv07_sizeofDCtx, +GO(ZSTD_versionNumber, uFv) +GO(ZSTD_versionString, pFv) +//GO(ZSTD_writeLastEmptyBlock, +//GO(ZSTD_XXH32, +//GO(ZSTD_XXH32_canonicalFromHash, +//GO(ZSTD_XXH32_copyState, +//GO(ZSTD_XXH32_createState, +//GO(ZSTD_XXH32_digest, +//GO(ZSTD_XXH32_freeState, +//GO(ZSTD_XXH32_hashFromCanonical, +//GO(ZSTD_XXH32_reset, +//GO(ZSTD_XXH32_update, +//GO(ZSTD_XXH64, +//GO(ZSTD_XXH64_canonicalFromHash, +//GO(ZSTD_XXH64_copyState, +//GO(ZSTD_XXH64_createState, +//GO(ZSTD_XXH64_digest, +//GO(ZSTD_XXH64_freeState, +//GO(ZSTD_XXH64_hashFromCanonical, +//GO(ZSTD_XXH64_reset, +//GO(ZSTD_XXH64_update, +//GO(ZSTD_XXH_versionNumber,