Skip to content

Instantly share code, notes, and snippets.

@mtytel
Created November 1, 2018 21:31
Show Gist options
  • Save mtytel/13e7afae0534fb7074bc39197c10bd04 to your computer and use it in GitHub Desktop.
Save mtytel/13e7afae0534fb7074bc39197c10bd04 to your computer and use it in GitHub Desktop.
float32x4x2_t swap_low = vtrnq_f32(row0.value, row1.value);
float32x4x2_t swap_high = vtrnq_f32(row2.value, row3.value);
row0 = vextq_f32(vextq_f32(swap_low.val[0], swap_low.val[0], 2), swap_high.val[0], 2);
row1 = vextq_f32(vextq_f32(swap_low.val[1], swap_low.val[1], 2), swap_high.val[1], 2);
row2 = vextq_f32(swap_low.val[0], vextq_f32(swap_high.val[0], swap_high.val[0], 2), 2);
row3 = vextq_f32(swap_low.val[1], vextq_f32(swap_high.val[1], swap_high.val[1], 2), 2);
@mtytel
Copy link
Author

mtytel commented Nov 1, 2018

not even sure if this works

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment