libmorton icon indicating copy to clipboard operation
libmorton copied to clipboard

Failing on WASM and 32-bit builds

Open JensMunkHansen opened this issue 10 months ago • 3 comments

On WASM, the non-intrinsic version pass with -02, but fails with -O3. I tried running it on x86, i.e. -m32. Here the non-intrinsic worked, but some patching is needed to get the bmi version to work.

Do you have any plans on making it work on WASM. For WASM morton codes is super relevant, since low memory is key.

JensMunkHansen avatar Dec 30 '24 02:12 JensMunkHansen

If you've got any patches I'd be happy to look at them.

Forceflow avatar Jan 24 '25 17:01 Forceflow

So far, I only added a filter for removing the stuff that fails. It seems it is an issue with the fast_int types. Looking into morton codes for reducing memory... Looks like it is an issue with the compiler - not your library (at least the WASM issue).... I may get back to you in time...

JensMunkHansen avatar Jan 28 '25 23:01 JensMunkHansen

Feel free to do so! I'm not that familiar with WASM.

Forceflow avatar Feb 02 '25 21:02 Forceflow