@@ -694,12 +694,12 @@ pub const ZSTD_WINDOW_START_INDEX: std::ffi::c_int = 2;
694694pub const ZSTD_MAX_NB_BLOCK_SPLITS : std:: ffi:: c_int = 196 ;
695695#[ inline]
696696unsafe extern "C" fn ZSTD_LLcode ( mut litLength : u32 ) -> u32 {
697- static mut LL_Code : [ u8 ; 64 ] = [
697+ static LL_Code : [ u8 ; 64 ] = [
698698 0 , 1 , 2 , 3 , 4 , 5 , 6 , 7 , 8 , 9 , 10 , 11 , 12 , 13 , 14 , 15 , 16 , 16 , 17 , 17 , 18 , 18 , 19 , 19 , 20 ,
699699 20 , 20 , 20 , 21 , 21 , 21 , 21 , 22 , 22 , 22 , 22 , 22 , 22 , 22 , 22 , 23 , 23 , 23 , 23 , 23 , 23 , 23 , 23 ,
700700 24 , 24 , 24 , 24 , 24 , 24 , 24 , 24 , 24 , 24 , 24 , 24 , 24 , 24 , 24 , 24 ,
701701 ] ;
702- static mut LL_deltaCode : u32 = 19 ;
702+ static LL_deltaCode : u32 = 19 ;
703703 if litLength > 63 {
704704 ( ZSTD_highbit32 ( litLength) ) . wrapping_add ( LL_deltaCode )
705705 } else {
@@ -708,15 +708,15 @@ unsafe extern "C" fn ZSTD_LLcode(mut litLength: u32) -> u32 {
708708}
709709#[ inline]
710710unsafe extern "C" fn ZSTD_MLcode ( mut mlBase : u32 ) -> u32 {
711- static mut ML_Code : [ u8 ; 128 ] = [
711+ static ML_Code : [ u8 ; 128 ] = [
712712 0 , 1 , 2 , 3 , 4 , 5 , 6 , 7 , 8 , 9 , 10 , 11 , 12 , 13 , 14 , 15 , 16 , 17 , 18 , 19 , 20 , 21 , 22 , 23 , 24 ,
713713 25 , 26 , 27 , 28 , 29 , 30 , 31 , 32 , 32 , 33 , 33 , 34 , 34 , 35 , 35 , 36 , 36 , 36 , 36 , 37 , 37 , 37 , 37 ,
714714 38 , 38 , 38 , 38 , 38 , 38 , 38 , 38 , 39 , 39 , 39 , 39 , 39 , 39 , 39 , 39 , 40 , 40 , 40 , 40 , 40 , 40 , 40 ,
715715 40 , 40 , 40 , 40 , 40 , 40 , 40 , 40 , 40 , 41 , 41 , 41 , 41 , 41 , 41 , 41 , 41 , 41 , 41 , 41 , 41 , 41 , 41 ,
716716 41 , 41 , 42 , 42 , 42 , 42 , 42 , 42 , 42 , 42 , 42 , 42 , 42 , 42 , 42 , 42 , 42 , 42 , 42 , 42 , 42 , 42 , 42 ,
717717 42 , 42 , 42 , 42 , 42 , 42 , 42 , 42 , 42 , 42 , 42 ,
718718 ] ;
719- static mut ML_deltaCode : u32 = 36 ;
719+ static ML_deltaCode : u32 = 36 ;
720720 if mlBase > 127 {
721721 ( ZSTD_highbit32 ( mlBase) ) . wrapping_add ( ML_deltaCode )
722722 } else {
@@ -1272,10 +1272,10 @@ use crate::{
12721272pub const ZSTD_isError : unsafe extern "C" fn ( size_t ) -> std:: ffi:: c_uint = ERR_isError ;
12731273pub const ZSTD_OPT_NUM : std:: ffi:: c_int = ( 1 ) << 12 ;
12741274pub const ZSTD_REP_NUM : std:: ffi:: c_int = 3 ;
1275- static mut repStartValue: [ u32 ; 3 ] = [ 1 , 4 , 8 ] ;
1275+ static repStartValue: [ u32 ; 3 ] = [ 1 , 4 , 8 ] ;
12761276pub const ZSTD_WINDOWLOG_ABSOLUTEMIN : std:: ffi:: c_int = 10 ;
12771277pub const ZSTD_BLOCKHEADERSIZE : std:: ffi:: c_int = 3 ;
1278- static mut ZSTD_blockHeaderSize : size_t = ZSTD_BLOCKHEADERSIZE as size_t ;
1278+ static ZSTD_blockHeaderSize : size_t = ZSTD_BLOCKHEADERSIZE as size_t ;
12791279pub const MIN_CBLOCK_SIZE : std:: ffi:: c_int = 1 + 1 ;
12801280pub const LONGNBSEQ : std:: ffi:: c_int = 0x7f00 as std:: ffi:: c_int ;
12811281pub const MINMATCH : std:: ffi:: c_int = 3 ;
@@ -1288,11 +1288,11 @@ pub const MaxOff: std::ffi::c_int = 31;
12881288pub const MLFSELog : std:: ffi:: c_int = 9 ;
12891289pub const LLFSELog : std:: ffi:: c_int = 9 ;
12901290pub const OffFSELog : std:: ffi:: c_int = 8 ;
1291- static mut LL_bits : [ u8 ; 36 ] = [
1291+ static LL_bits : [ u8 ; 36 ] = [
12921292 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 1 , 1 , 1 , 1 , 2 , 2 , 3 , 3 , 4 , 6 , 7 , 8 , 9 , 10 , 11 ,
12931293 12 , 13 , 14 , 15 , 16 ,
12941294] ;
1295- static mut LL_defaultNorm : [ S16 ; 36 ] = [
1295+ static LL_defaultNorm : [ S16 ; 36 ] = [
12961296 4 ,
12971297 3 ,
12981298 2 ,
@@ -1331,12 +1331,12 @@ static mut LL_defaultNorm: [S16; 36] = [
13311331 -( 1 ) as S16 ,
13321332] ;
13331333pub const LL_DEFAULTNORMLOG : std:: ffi:: c_int = 6 ;
1334- static mut LL_defaultNormLog : u32 = LL_DEFAULTNORMLOG as u32 ;
1335- static mut ML_bits : [ u8 ; 53 ] = [
1334+ static LL_defaultNormLog : u32 = LL_DEFAULTNORMLOG as u32 ;
1335+ static ML_bits : [ u8 ; 53 ] = [
13361336 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 ,
13371337 1 , 1 , 1 , 1 , 2 , 2 , 3 , 3 , 4 , 4 , 5 , 7 , 8 , 9 , 10 , 11 , 12 , 13 , 14 , 15 , 16 ,
13381338] ;
1339- static mut ML_defaultNorm : [ S16 ; 53 ] = [
1339+ static ML_defaultNorm : [ S16 ; 53 ] = [
13401340 1 ,
13411341 4 ,
13421342 3 ,
@@ -1392,8 +1392,8 @@ static mut ML_defaultNorm: [S16; 53] = [
13921392 -( 1 ) as S16 ,
13931393] ;
13941394pub const ML_DEFAULTNORMLOG : std:: ffi:: c_int = 6 ;
1395- static mut ML_defaultNormLog : u32 = ML_DEFAULTNORMLOG as u32 ;
1396- static mut OF_defaultNorm : [ S16 ; 29 ] = [
1395+ static ML_defaultNormLog : u32 = ML_DEFAULTNORMLOG as u32 ;
1396+ static OF_defaultNorm : [ S16 ; 29 ] = [
13971397 1 ,
13981398 1 ,
13991399 1 ,
@@ -1425,7 +1425,7 @@ static mut OF_defaultNorm: [S16; 29] = [
14251425 -( 1 ) as S16 ,
14261426] ;
14271427pub const OF_DEFAULTNORMLOG : std:: ffi:: c_int = 5 ;
1428- static mut OF_defaultNormLog : u32 = OF_DEFAULTNORMLOG as u32 ;
1428+ static OF_defaultNormLog : u32 = OF_DEFAULTNORMLOG as u32 ;
14291429unsafe extern "C" fn ZSTD_copy8 ( mut dst : * mut std:: ffi:: c_void , mut src : * const std:: ffi:: c_void ) {
14301430 libc:: memcpy ( dst, src, 8 as libc:: size_t ) ;
14311431}
@@ -3884,7 +3884,7 @@ unsafe extern "C" fn ZSTD_adjustCParams_internal(
38843884 }
38853885 if srcSize <= maxWindowResize as std:: ffi:: c_ulonglong && dictSize <= maxWindowResize {
38863886 let tSize = srcSize. wrapping_add ( dictSize as std:: ffi:: c_ulonglong ) as u32 ;
3887- static mut hashSizeMin: u32 = ( ( 1 ) << ZSTD_HASHLOG_MIN ) as u32 ;
3887+ static hashSizeMin: u32 = ( ( 1 ) << ZSTD_HASHLOG_MIN ) as u32 ;
38883888 let srcLog = if tSize < hashSizeMin {
38893889 ZSTD_HASHLOG_MIN as std:: ffi:: c_uint
38903890 } else {
@@ -4874,7 +4874,7 @@ pub unsafe extern "C" fn ZSTD_invalidateRepCodes(mut cctx: *mut ZSTD_CCtx) {
48744874 i += 1 ;
48754875 }
48764876}
4877- static mut attachDictSizeCutoffs: [ size_t ; 10 ] = [
4877+ static attachDictSizeCutoffs: [ size_t ; 10 ] = [
48784878 ( 8 * ( ( 1 ) << 10 ) ) as size_t ,
48794879 ( 8 * ( ( 1 ) << 10 ) ) as size_t ,
48804880 ( 16 * ( ( 1 ) << 10 ) ) as size_t ,
@@ -5699,7 +5699,7 @@ pub unsafe extern "C" fn ZSTD_selectBlockCompressor(
56995699 mut useRowMatchFinder : ZSTD_ParamSwitch_e ,
57005700 mut dictMode : ZSTD_dictMode_e ,
57015701) -> ZSTD_BlockCompressor_f {
5702- static mut blockCompressor: [ [ ZSTD_BlockCompressor_f ; 10 ] ; 4 ] = unsafe {
5702+ static blockCompressor: [ [ ZSTD_BlockCompressor_f ; 10 ] ; 4 ] = unsafe {
57035703 [
57045704 [
57055705 Some (
@@ -5821,7 +5821,7 @@ pub unsafe extern "C" fn ZSTD_selectBlockCompressor(
58215821 } ;
58225822 let mut selectedCompressor: ZSTD_BlockCompressor_f = None ;
58235823 if ZSTD_rowMatchFinderUsed ( strat, useRowMatchFinder) != 0 {
5824- static mut rowBasedBlockCompressors: [ [ ZSTD_BlockCompressor_f ; 3 ] ; 4 ] = [
5824+ static rowBasedBlockCompressors: [ [ ZSTD_BlockCompressor_f ; 3 ] ; 4 ] = [
58255825 [
58265826 Some ( ZSTD_COMPRESSBLOCK_GREEDY_ROW ) ,
58275827 Some ( ZSTD_COMPRESSBLOCK_LAZY_ROW ) ,
@@ -7477,7 +7477,7 @@ unsafe extern "C" fn ZSTD_optimalBlockSize(
74777477 mut strat : ZSTD_strategy ,
74787478 mut savings : S64 ,
74797479) -> size_t {
7480- static mut splitLevels: [ std:: ffi:: c_int ; 10 ] = [ 0 , 0 , 1 , 2 , 2 , 3 , 3 , 4 , 4 , 4 ] ;
7480+ static splitLevels: [ std:: ffi:: c_int ; 10 ] = [ 0 , 0 , 1 , 2 , 2 , 3 , 3 , 4 , 4 , 4 ] ;
74817481 if srcSize < ( 128 * ( ( 1 ) << 10 ) ) as size_t || blockSizeMax < ( 128 * ( ( 1 ) << 10 ) ) as size_t {
74827482 return if srcSize < blockSizeMax {
74837483 srcSize
@@ -12105,7 +12105,7 @@ pub unsafe extern "C" fn ZSTD_getParams(
1210512105}
1210612106pub const __INT_MAX__: std:: ffi:: c_int = 2147483647 ;
1210712107pub const ZSTD_MAX_CLEVEL : std:: ffi:: c_int = 22 ;
12108- static mut ZSTD_defaultCParameters : [ [ ZSTD_compressionParameters ; 23 ] ; 4 ] = [
12108+ static ZSTD_defaultCParameters : [ [ ZSTD_compressionParameters ; 23 ] ; 4 ] = [
1210912109 [
1211012110 {
1211112111 ZSTD_compressionParameters {
0 commit comments