Kobzol / hardware-effects

Demonstration of various hardware effects.
MIT License
2.82k stars 157 forks source link

Fix compilation issues with Clang on Mac #2

Closed bejado closed 5 years ago

bejado commented 5 years ago

A few issues compiling with AppleClang 10.0.0.10001044 on Mojave:

A bunch of prefetch intrinsic issues:

error: unknown type name '_mm_hint'
error: use of undeclared identifier '_MM_HINT_T0'
...

and

error: assigning to 'size_t *' (aka 'unsigned long *') from incompatible type 'void *'
Kobzol commented 5 years ago

Thank you! I already added the xmmintrin.h header in the meantime, so I modified your code slightly. (Sorry for closing the PR, your commit is in, but since I had to modify it I was afraid of what GitHub would do if I clicked on merge here, so I rather closed it :) ).