]> git.ipfire.org Git - thirdparty/zstd.git/commitdiff
Document the BMI2 default() functions
authorNick Terrell <terrelln@fb.com>
Mon, 24 Aug 2020 21:44:33 +0000 (14:44 -0700)
committerNick Terrell <terrelln@fb.com>
Mon, 24 Aug 2020 21:44:33 +0000 (14:44 -0700)
lib/common/entropy_common.c
lib/common/fse_decompress.c
lib/decompress/zstd_decompress_block.c

index e2ec694fd721041ad46dce5f0b71412d04b889f6..0d27265a1a9c55c7181459b9d54dd987c3c6cfa3 100644 (file)
@@ -203,6 +203,7 @@ size_t FSE_readNCount_body(short* normalizedCounter, unsigned* maxSVPtr, unsigne
     return ip-istart;
 }
 
+/* Avoids the FORCE_INLINE of the _body() function. */
 static size_t FSE_readNCount_body_default(
         short* normalizedCounter, unsigned* maxSVPtr, unsigned* tableLogPtr,
         const void* headerBuffer, size_t hbSize)
@@ -319,6 +320,7 @@ FORCE_INLINE_TEMPLATE size_t HUF_readStats_body(BYTE* huffWeight, size_t hwSize,
     return iSize+1;
 }
 
+/* Avoids the FORCE_INLINE of the _body() function. */
 static size_t HUF_readStats_body_default(BYTE* huffWeight, size_t hwSize, U32* rankStats,
                      U32* nbSymbolsPtr, U32* tableLogPtr,
                      const void* src, size_t srcSize,
index 64693024c39e652ab968734cd9dcc6760685b8b2..53b248e3988d6f251b10e878735617c84707a16a 100644 (file)
@@ -353,6 +353,7 @@ FORCE_INLINE_TEMPLATE size_t FSE_decompress_wksp_body(
     }
 }
 
+/* Avoids the FORCE_INLINE of the _body() function. */
 static size_t FSE_decompress_wksp_body_default(void* dst, size_t dstCapacity, const void* cSrc, size_t cSrcSize, unsigned maxLog, void* workSpace, size_t wkspSize)
 {
     return FSE_decompress_wksp_body(dst, dstCapacity, cSrc, cSrcSize, maxLog, workSpace, wkspSize, 0);
index 4777a2674d3f9c844484a3800d2d6cdc0517e91e..2a8d4775b5ec6af7e383e3088d3b295c0cfc47a1 100644 (file)
@@ -484,6 +484,7 @@ void ZSTD_buildFSETable_body(ZSTD_seqSymbol* dt,
     }
 }
 
+/* Avoids the FORCE_INLINE of the _body() function. */
 static void ZSTD_buildFSETable_body_default(ZSTD_seqSymbol* dt,
             const short* normalizedCounter, unsigned maxSymbolValue,
             const U32* baseValue, const U32* nbAdditionalBits,