#
# Common definition
#

cdef double pi = 3.1415926535897931
cdef extern from "math.h":
    double cos(double) nogil
    double sin(double) nogil
    double sqrt(double) nogil

cdef extern from "stdlib.h":
    ctypedef unsigned long size_t
    void free(void *ptr)
    void *realloc(void *ptr, size_t size)
    void *malloc(size_t size)

cdef extern from "string.h":
    void *memcpy(void *dest, void *src, size_t n)
