yvt / openspades

Compatible client of Ace of Spades 0.75
http://openspades.yvt.jp/
GNU General Public License v3.0
1.14k stars 217 forks source link

Linux x86 SSE Alignment issue #284

Open yvt opened 10 years ago

yvt commented 10 years ago

Malloc-ed regions are 8-byte aligned in x86 Linux. This causes some SSE code to do unaligned accesses, causing SIGSEGV.

Confirmed On

mschlumpp commented 10 years ago

You could use alignas to align the buffers used by SSE code.

yvt commented 10 years ago

alignasdoes not align the dyanmically allocated buffers. We need an aligned allocator... https://gist.github.com/donny-dont/1471329

feikname commented 7 years ago

@yvt is this issue still valid?

yvt commented 7 years ago

As far as I can see from the source code, It's still valid.