Inline Assembly for Manual Vectorization (AARCH64 assembly mixed with C)

A few blog posts ago we timed the running of a Volume Control code.

Volume Control Algoritms

Here’s the logic for the original program:

  1. Fill an array of integers randomly - each element represents a sample from a song
  2. Multiply every element by a VOLUME factor
  3. Store volume-scaled elements into a new array
In this blog we’ll add assembly to manually vectorize our code. Follow along with the comments to understand what is going on:

Comments

Popular Posts