Skip to content

Commit

Permalink
Avoid 128-bit arithmetic when on WebAssembly targets
Browse files Browse the repository at this point in the history
  • Loading branch information
jedisct1 committed Apr 12, 2024
1 parent f8ca998 commit 7478140
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions configure.ac
Original file line number Diff line number Diff line change
Expand Up @@ -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>
Expand Down

0 comments on commit 7478140

Please sign in to comment.