| 13151 | } |
| 13152 | |
| 13153 | static void ZSTD_initCCtx(ZSTD_CCtx* cctx, ZSTD_customMem memManager) |
| 13154 | { |
| 13155 | assert(cctx != NULL); |
| 13156 | memset(cctx, 0, sizeof(*cctx)); |
| 13157 | cctx->customMem = memManager; |
| 13158 | cctx->bmi2 = ZSTD_cpuid_bmi2(ZSTD_cpuid()); |
| 13159 | { size_t const err = ZSTD_CCtx_reset(cctx, ZSTD_reset_parameters); |
| 13160 | assert(!ZSTD_isError(err)); |
| 13161 | (void)err; |
| 13162 | } |
| 13163 | } |
| 13164 | |
| 13165 | ZSTD_CCtx* ZSTD_createCCtx_advanced(ZSTD_customMem customMem) |
| 13166 | { |
no test coverage detected