00001 00002 //*************************************************************************** 00003 //* math.h 00004 //* 00005 //* Sun Jun 11 20:30:57 2006 00006 //* Copyright 2006 User 00007 //* Email 00008 //*************************************************************************** 00010 /* 00011 * This program is free software; you can redistribute it and/or modify 00012 * it under the terms of the GNU General Public License as published by 00013 * the Free Software Foundation; either version 2 of the License, or 00014 * (at your option) any later version. 00015 * 00016 * This program is distributed in the hope that it will be useful, 00017 * but WITHOUT ANY WARRANTY; without even the implied warranty of 00018 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 00019 * GNU General Public License for more details. 00020 * 00021 * You should have received a copy of the GNU General Public License 00022 * along with this program; if not, write to the Free Software 00023 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. 00024 */ 00026 #ifndef __MATH_H__ 00027 00028 #define __MATH_H__ 00029 00030 unsigned long ChangeEndian32bit( unsigned long Wert); 00031 unsigned int ChangeEndian16bit( unsigned int Wert); 00032 00033 // MIN/MAX/ABS macros 00034 #define MIN(a,b) ((a<b)?(a):(b)) 00035 #define MAX(a,b) ((a>b)?(a):(b)) 00036 #define ABS(x) ((x>0)?(x):(-x)) 00037 00038 // constants 00039 #define PI 3.14159265359 00040 00041 #endif 00042