base/math/libm.c

Go to the documentation of this file.
00001 /* 00002 rtai/libm/libm.c - module wrapper for SunSoft/FreeBSD/MacOX/uclibc libm 00003 RTAI - Real-Time Application Interface 00004 Copyright (C) 2001 David A. Schleef <ds@schleef.org> 00005 00006 This program is free software; you can redistribute it and/or modify 00007 it under the terms of the GNU General Public License version 2 as 00008 published by the Free Software Foundation. 00009 00010 This program is distributed in the hope that it will be useful, 00011 but WITHOUT ANY WARRANTY; without even the implied warranty of 00012 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 00013 GNU General Public License for more details. 00014 00015 You should have received a copy of the GNU General Public License 00016 along with this program; if not, write to the Free Software 00017 Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA 00018 */ 00019 00020 00021 #include <linux/kernel.h> 00022 #include <linux/module.h> 00023 #include <linux/init.h> 00024 #include <rtai_math.h> 00025 00026 MODULE_LICENSE("GPL"); 00027 00028 int libm_errno; 00029 00030 static int verbose = 1; 00031 00032 int __rtai_math_init(void) 00033 { 00034 if(verbose){ 00035 printk(KERN_INFO "RTAI[math]: loaded.\n"); 00036 } 00037 return 0; 00038 } 00039 00040 void __rtai_math_exit(void) 00041 { 00042 if(verbose){ 00043 printk(KERN_INFO "RTAI[math]: unloaded.\n"); 00044 } 00045 } 00046 00047 #ifndef CONFIG_RTAI_MATH_BUILTIN 00048 module_init(__rtai_math_init); 00049 module_exit(__rtai_math_exit); 00050 #endif /* CONFIG_RTAI_MATH_BUILTIN */ 00051 00052 #ifdef CONFIG_KBUILD 00053 EXPORT_SYMBOL(acos); 00054 EXPORT_SYMBOL(asin); 00055 EXPORT_SYMBOL(atan); 00056 EXPORT_SYMBOL(atan2); 00057 EXPORT_SYMBOL(ceil); 00058 EXPORT_SYMBOL(copysign); 00059 EXPORT_SYMBOL(cos); 00060 EXPORT_SYMBOL(cosh); 00061 EXPORT_SYMBOL(exp); 00062 EXPORT_SYMBOL(expm1); 00063 EXPORT_SYMBOL(fabs); 00064 EXPORT_SYMBOL(floor); 00065 EXPORT_SYMBOL(fmod); 00066 EXPORT_SYMBOL(frexp); 00067 EXPORT_SYMBOL(log); 00068 EXPORT_SYMBOL(log10); 00069 EXPORT_SYMBOL(modf); 00070 EXPORT_SYMBOL(pow); 00071 EXPORT_SYMBOL(scalbn); 00072 EXPORT_SYMBOL(sin); 00073 EXPORT_SYMBOL(sinh); 00074 EXPORT_SYMBOL(sqrt); 00075 EXPORT_SYMBOL(tan); 00076 EXPORT_SYMBOL(tanh); 00077 00078 #ifdef CONFIG_RTAI_MATH_C99 00079 EXPORT_SYMBOL(acosh); 00080 EXPORT_SYMBOL(asinh); 00081 EXPORT_SYMBOL(atanh); 00082 EXPORT_SYMBOL(cabs); 00083 EXPORT_SYMBOL(cbrt); 00084 EXPORT_SYMBOL(drem); 00085 EXPORT_SYMBOL(erf); 00086 EXPORT_SYMBOL(erfc); 00087 EXPORT_SYMBOL(gamma); 00088 EXPORT_SYMBOL(gamma_r); 00089 EXPORT_SYMBOL(hypot); 00090 EXPORT_SYMBOL(ilogb); 00091 EXPORT_SYMBOL(j0); 00092 EXPORT_SYMBOL(j1); 00093 EXPORT_SYMBOL(jn); 00094 EXPORT_SYMBOL(ldexp); 00095 EXPORT_SYMBOL(lgamma); 00096 EXPORT_SYMBOL(lgamma_r); 00097 EXPORT_SYMBOL(log1p); 00098 EXPORT_SYMBOL(logb); 00099 EXPORT_SYMBOL(matherr); 00100 EXPORT_SYMBOL(nearbyint); 00101 EXPORT_SYMBOL(nextafter); 00102 EXPORT_SYMBOL(remainder); 00103 EXPORT_SYMBOL(rint); 00104 EXPORT_SYMBOL(rinttol); 00105 EXPORT_SYMBOL(round); 00106 EXPORT_SYMBOL(roundtol); 00107 EXPORT_SYMBOL(scalb); 00108 EXPORT_SYMBOL(signgam); 00109 EXPORT_SYMBOL(significand); 00110 EXPORT_SYMBOL(trunc); 00111 EXPORT_SYMBOL(y0); 00112 EXPORT_SYMBOL(y1); 00113 EXPORT_SYMBOL(yn); 00114 EXPORT_SYMBOL(libm_errno); 00115 #endif /* CONFIG_RTAI_MATH_C99 */ 00116 #endif /* CONFIG_KBUILD */

Generated on Thu Nov 20 11:49:51 2008 for RTAI API by doxygen 1.3.8