Get the latest tech news

Trying to Make a Loop Auto-Vectorize


This post assumes at least a vague level of familiarity with the concept of SIMD CPU instructions (x86 SSE/AVX and ARM Neon), where the CPU can perform a single operation on multiple scalar values simultaneously. There is a lot of x86 assembly here to demonstrate what’s happening but you don’t have to be able to read it.

None

Get the Android app

Or read this on Hacker News

Read more on:

Photo of Vectorize

Vectorize

Related news:

News photo

Using Vectorize to build an unreasonably good search engine in 160 lines of code