Blender V2.61 - r43446
|
00001 00004 /* Copyright (c) 1999, Not a Number / NeoGeo b.v. 00005 * 00006 * All rights reserved. 00007 * 00008 * Contact: info@blender.org 00009 * Information: http://www.blender.org 00010 * 00011 * Redistribution and use in source and binary forms, with or without 00012 * modification, are permitted provided that the following conditions 00013 * are met: 00014 * 1. Redistributions of source code must retain the above copyright 00015 * notice, this list of conditions and the following disclaimer. 00016 * 2. Redistributions in binary form must reproduce the above copyright 00017 * notice, this list of conditions and the following disclaimer in the 00018 * documentation and/or other materials provided with the distribution. 00019 * 00020 * THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND 00021 * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 00022 * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 00023 * ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE 00024 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 00025 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 00026 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 00027 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 00028 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 00029 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 00030 * SUCH DAMAGE. 00031 */ 00032 00033 #ifndef FLOATPATCH_H 00034 #define FLOATPATCH_H 00035 00036 /* floating point libs differ at systems... with these defines it comilies at all! */ 00037 00038 #ifdef MIPS1 00039 #else 00040 00041 #define fabsf(a) fabs((double)(a)) 00042 00043 #define facos acosf 00044 #define acosf(a) acos((double)(a)) 00045 00046 #define fasin asinf 00047 #define asinf(a) asin((double)(a)) 00048 00049 #define fatan atanf 00050 #define atanf(a) atan((double)(a)) 00051 00052 #define fatan2 atan2f 00053 #define atan2f(a, b) atan2((double)(a), (double)(b)) 00054 00055 #define fmodf(a, b) fmod((double)(a), (double)(b)) 00056 00057 #define fcos cosf 00058 #define cosf(a) cos((double)(a)) 00059 00060 #define fsin sinf 00061 #define sinf(a) sin((double)(a)) 00062 00063 #define ftan tanf 00064 #define tanf(a) tan((double)(a)) 00065 00066 #define fexp expf 00067 #define expf(a) exp((double)(a)) 00068 00069 #define flog logf 00070 #define logf(a) log((double)(a)) 00071 00072 #define flog10 log10f 00073 #define log10f(a) log10((double)(a)) 00074 00075 #define fsqrt sqrtf 00076 #define sqrtf(a) sqrt((double)(a)) 00077 00078 #define fceil ceilf 00079 #define ceilf(a) ceil((double)(a)) 00080 00081 #define ffloor floorf 00082 #define floorf(a) floor((double)(a)) 00083 00084 #define fpow powf 00085 #define powf(a, b) pow((double)(a), (double)(b)) 00086 00087 /* #endif */ 00088 00089 #endif 00090 00091 #endif /* FLOATPATCH_H */ 00092