2 ms·
> How does one do intrinsics (SSE / AVX) in Rust - I guess they're just the exposed functions from emmintrin.h and the compiler calls them directly? It uses th
by pcwalton 13y ago
> How does one do intrinsics (SSE / AVX) in Rust - I guess they're just the exposed functions from emmintrin.h and the compiler calls them directly?
It uses the LLVM support.
> How do you do ASM in Rust?
With the asm! macro.
> Can you align memory in rust?
Yes. Write an allocator that does this and use it. The language doesn't have an allocator "built-in" and has full support for custom allocators.
- berkut 13y ago> It uses LLVM support. What do you mean by this? 1. Any scaler code might get vectorised by the LLVM if you're luckly. or 2. You can write the instrinsics yourself in inline code, and the compiler will (almost) obey them verbatim? In my experience, LLVM's vectorisation is behind GCC and quite a way behind ICC...