hnes / libaco

A blazing fast and lightweight C asymmetric coroutine library 💎 ⛅🚀⛅🌞
https://libaco.org
Apache License 2.0
3.49k stars 392 forks source link

asm hints in aco.h aren't c99? #16

Closed postwait closed 5 years ago

postwait commented 5 years ago

The asm("acosw"); in aco.h needs to be __asm("acosw");

hnes commented 5 years ago

Thank you very much for your report, @postwait.

I just committed a new update to the master branch.

PS:

if anyone interests in this topic, here are some more details about the differences between asm and __asm__:

https://gcc.gnu.org/onlinedocs/gcc-7.2.0/gcc/Alternate-Keywords.html#Alternate-Keywords https://gcc.gnu.org/onlinedocs/gcc/C-Dialect-Options.html