mirror of
https://github.com/google/liblc3.git
synced 2026-04-29 02:04:49 +00:00
wasm: Add a wasm liblc3 library
The wasm library is automatically built when the compiler target is set to wasm32 in bin/liblc3.wasm. This can be done using `make CC="clang --target=wasm32"`. This wasm library doesn't have any import and expose all liblc3 functions.
This commit is contained in:
committed by
Antoine SOULIER
parent
d7a739849a
commit
e67bb2d07d
@@ -24,7 +24,15 @@
|
||||
|
||||
#include <stdalign.h>
|
||||
#include <limits.h>
|
||||
|
||||
#ifdef __wasm32__
|
||||
#define memmove __builtin_memmove
|
||||
#define memset __builtin_memset
|
||||
#define memcpy __builtin_memcpy
|
||||
#define NULL ((void*)0)
|
||||
#else
|
||||
#include <string.h>
|
||||
#endif
|
||||
|
||||
#ifdef __ARM_ARCH
|
||||
#include <arm_acle.h>
|
||||
|
||||
Reference in New Issue
Block a user