1
mirror of https://github.com/jedisct1/libsodium.git synced 2024-12-19 10:05:05 -07:00

Avoid 128-bit arithmetic when on WebAssembly targets

See https://github.com/WebAssembly/tool-conventions/pull/223#issuecomment-2052101191
This commit is contained in:
Frank Denis 2024-04-12 19:19:48 +02:00
parent f8ca998c52
commit 74781400dc

View File

@ -770,8 +770,8 @@ AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[
#ifndef NATIVE_LITTLE_ENDIAN
# error libsodium currently expects a little endian CPU for the 128-bit type
#endif
#ifdef __EMSCRIPTEN__
# error emscripten currently doesn't support some operations on integers larger than 64 bits
#ifdef __wasm__
# error 128-bit arithmetic in WebAssembly is slow
#endif
#include <stddef.h>
#include <stdint.h>