Probably would be better to use

from libc.math 

see for an example  http://docs.cython.org/src/tutorial/external.html