mirror of
https://github.com/webmproject/libwebp.git
synced 2024-11-19 20:08:28 +01:00
Merge changes I25c30a9e,I0a192fc6,I4cf89575 into main
* changes: WASM: Enable VP8L_USE_FAST_LOAD WASM: don't use USE_GENERIC_TREE WASM: Enable 64-bit BITS caching
This commit is contained in:
commit
04834acae7
@ -16,7 +16,8 @@
|
|||||||
#include "src/utils/bit_reader_inl_utils.h"
|
#include "src/utils/bit_reader_inl_utils.h"
|
||||||
|
|
||||||
#if !defined(USE_GENERIC_TREE)
|
#if !defined(USE_GENERIC_TREE)
|
||||||
#if !defined(__arm__) && !defined(_M_ARM) && !WEBP_AARCH64
|
#if !defined(__arm__) && !defined(_M_ARM) && !WEBP_AARCH64 && \
|
||||||
|
!defined(__wasm__)
|
||||||
// using a table is ~1-2% slower on ARM. Prefer the coded-tree approach then.
|
// using a table is ~1-2% slower on ARM. Prefer the coded-tree approach then.
|
||||||
#define USE_GENERIC_TREE 1 // ALTERNATE_CODE
|
#define USE_GENERIC_TREE 1 // ALTERNATE_CODE
|
||||||
#else
|
#else
|
||||||
|
@ -124,7 +124,8 @@ int32_t VP8GetSignedValue(VP8BitReader* const br, int bits,
|
|||||||
|
|
||||||
#if defined(__arm__) || defined(_M_ARM) || WEBP_AARCH64 || \
|
#if defined(__arm__) || defined(_M_ARM) || WEBP_AARCH64 || \
|
||||||
defined(__i386__) || defined(_M_IX86) || \
|
defined(__i386__) || defined(_M_IX86) || \
|
||||||
defined(__x86_64__) || defined(_M_X64)
|
defined(__x86_64__) || defined(_M_X64) || \
|
||||||
|
defined(__wasm__)
|
||||||
#define VP8L_USE_FAST_LOAD
|
#define VP8L_USE_FAST_LOAD
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
@ -69,6 +69,8 @@ extern "C" {
|
|||||||
#define BITS 56
|
#define BITS 56
|
||||||
#elif defined(__mips__) // MIPS
|
#elif defined(__mips__) // MIPS
|
||||||
#define BITS 24
|
#define BITS 24
|
||||||
|
#elif defined(__wasm__) // WASM
|
||||||
|
#define BITS 56
|
||||||
#else // reasonable default
|
#else // reasonable default
|
||||||
#define BITS 24
|
#define BITS 24
|
||||||
#endif
|
#endif
|
||||||
|
Loading…
Reference in New Issue
Block a user