# -*- indent-tabs-mode: t -*- # Soya 3D # Copyright (C) 2003 Jean-Baptiste LAMY -- jiba@tuxfamily.org # # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation; either version 2 of the License, or # (at your option) any later version. # # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # GNU General Public License for more details. # # You should have received a copy of the GNU General Public License # along with this program; if not, write to the Free Software # Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA cdef extern from "stdlib.h": void* malloc (int size) void* calloc (int nb, int size) void* realloc(void* old, int size) void free(void* ptr) cdef extern from "string.h": void memcpy(void* des, void* src, int size) int memcmp(void* s1, void* s2, int size) cdef extern from "math.h": float sqrt(float x) float fabs(float x) float cos (float x) float sin (float x) float tan (float x) float exp (float x) float pow (float x, int n) float ceil (float x) float floor (float x) cdef extern from "stdint.h": ctypedef unsigned long intptr_t