bit-hack / tack

Tack - The vector wrapper
0 stars 0 forks source link

revise the alignment check so it inlines better #6

Closed bit-hack closed 8 years ago

bit-hack commented 8 years ago

This PR changes the alignment check so that it will only happen for aligned loads and stores in a debug build. This should allow loads and stores to always inline to a single instruction in release mode when both aligned and unaligned. I also removed the runtime branch to test to alignment since that could be slower then the single instruction. The programmer should be aware if their are making an aligned load and be able to specify it for a speedup anyway.