Karl Meakin
Karl Meakin
~Fixed by https://github.com/bytecodealliance/wasmtime/commit/0683b84b40207d8ec0c9044ef418fbd1f23a62f9~
> does this affect the codegen in practical circumstances? It replaces a loop by some bit manipulations. Whether anyone actually calls either function with a compile-time known, power of 2...
@scottmcm ping?
@scottmcm ping?
> Are those really equivalent? I wonder about things like > > void foo() { > void* p1 = malloc(15); > auto i1 = (uintptr_t)p1; > void* p2 = src1(p1,...
> > ```c++ > > extern "C" { > > auto src1(void* p1, size_t old_len, size_t new_len) -> void* { > > void* p2 = malloc(new_len); > > memcpy(p2, p1,...
> > > > extern "C" { > > > > auto src1(void* p1, size_t old_len, size_t new_len) -> void* { > > > > void* p2 = malloc(new_len); >...