minor cleaning

As suggested by @pdillinger in #549,
`XXH_endianess` is never used and should be removed.
This commit is contained in:
Yann Collet 2021-08-21 09:56:34 -07:00
parent c60523d068
commit f87aec4a7a
2 changed files with 6 additions and 7 deletions

View File

@ -40,16 +40,16 @@ extern "C" {
*
* Exits if any of these tests fail, printing a message to stderr.
*
* If XSUM_NO_TESTS is defined to non-zero, this will instead print a warning
* if this is called (e.g. via xxhsum -b).
* If XSUM_NO_TESTS is defined to non-zero,
* this will instead print a warning if this is called (e.g. via xxhsum -b).
*/
XSUM_API void XSUM_sanityCheck(void);
/*
* Fills a test buffer with pseudorandom data.
*
* This is used in the sanity check and the benchmarks - its values must not be
* changed.
* This is used in the sanity check and the benchmarks.
* Its values must not be changed.
*/
XSUM_API void XSUM_fillTestBuffer(XSUM_U8* buffer, size_t len);

View File

@ -1542,7 +1542,6 @@ static xxh_u32 XXH_read32(const void* memPtr)
/* *** Endianness *** */
typedef enum { XXH_bigEndian=0, XXH_littleEndian=1 } XXH_endianess;
/*!
* @ingroup tuning
@ -1552,8 +1551,8 @@ typedef enum { XXH_bigEndian=0, XXH_littleEndian=1 } XXH_endianess;
* Defined to 1 if the target is little endian, or 0 if it is big endian.
* It can be defined externally, for example on the compiler command line.
*
* If it is not defined, a runtime check (which is usually constant folded)
* is used instead.
* If it is not defined,
* a runtime check (which is usually constant folded) is used instead.
*
* @note
* This is not necessarily defined to an integer constant.