|
|
@ -3,8 +3,6 @@
|
|
|
|
#include <math.h>
|
|
|
|
#include <math.h>
|
|
|
|
#include <types.h>
|
|
|
|
#include <types.h>
|
|
|
|
|
|
|
|
|
|
|
|
#define CHAR_BIT 8
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// TODO: Throughout here we use `assert` for error conditions, which isn't optimal
|
|
|
|
// TODO: Throughout here we use `assert` for error conditions, which isn't optimal
|
|
|
|
// Instead we should use `unlikely` branches to a single trapping function (which should optimize better)
|
|
|
|
// Instead we should use `unlikely` branches to a single trapping function (which should optimize better)
|
|
|
|
// The below functions are for implementing WASM instructions
|
|
|
|
// The below functions are for implementing WASM instructions
|
|
|
|