godot/thirdparty/zstd/common/bits.h

/*
 * Copyright (c) Meta Platforms, Inc. and affiliates.
 * All rights reserved.
 *
 * This source code is licensed under both the BSD-style license (found in the
 * LICENSE file in the root directory of this source tree) and the GPLv2 (found
 * in the COPYING file in the root directory of this source tree).
 * You may select, at your option, one of the above-listed licenses.
 */

#ifndef ZSTD_BITS_H
#define ZSTD_BITS_H

#include "mem.h"

MEM_STATIC unsigned ZSTD_countTrailingZeros32_fallback(U32 val)
{}

MEM_STATIC unsigned ZSTD_countTrailingZeros32(U32 val)
{}

MEM_STATIC unsigned ZSTD_countLeadingZeros32_fallback(U32 val) {}

MEM_STATIC unsigned ZSTD_countLeadingZeros32(U32 val)
{}

MEM_STATIC unsigned ZSTD_countTrailingZeros64(U64 val)
{}

MEM_STATIC unsigned ZSTD_countLeadingZeros64(U64 val)
{}

MEM_STATIC unsigned ZSTD_NbCommonBytes(size_t val)
{}

MEM_STATIC unsigned ZSTD_highbit32(U32 val)   /* compress, dictBuilder, decodeCorpus */
{}

/* ZSTD_rotateRight_*():
 * Rotates a bitfield to the right by "count" bits.
 * https://en.wikipedia.org/w/index.php?title=Circular_shift&oldid=991635599#Implementing_circular_shifts
 */
MEM_STATIC
U64 ZSTD_rotateRight_U64(U64 const value, U32 count) {}

MEM_STATIC
U32 ZSTD_rotateRight_U32(U32 const value, U32 count) {}

MEM_STATIC
U16 ZSTD_rotateRight_U16(U16 const value, U32 count) {}

#endif /* ZSTD_BITS_H */