Samsung / walrus

WebAssembly Lightweight RUntime
Apache License 2.0
39 stars 10 forks source link

Implement V128 print #209

Closed GorogPeter closed 10 months ago

GorogPeter commented 10 months ago

Now, it looks like this:

invoke min-abs(0x00:00:90:bf:00:00:90:bf:00:00:90:bf:00:00:90:bf, 0x00:00:00:3e:00:00:00:3e:00:00:00:3e:00:00:00:3e) expect value(0x00:00:00:3e:00:00:00:3e:00:00:00:3e:00:00:00:3e) (line: 2405) : OK
Assertion failed at 2410: min-abs(0x00:00:90:bf:00:00:90:bf:00:00:90:bf:00:00:90:bf, 0x00:00:00:3e:00:00:00:3e:00:f0:48:45:00:00:00:3e) expected 0x00:00:00:3e:00:00:00:3e:00:00:00:3e:00:00:00:3e, but got 0x00:00:00:3e:00:00:00:3e:00:00:90:3f:00:00:00:3e
GorogPeter commented 10 months ago

@zherczeg , your idea inspired me. Hence it's a fixed-length char array, it can be initialised with the "0x", the ":" and the "\0". Thus it's a wee-bit faster.