mathInit.c
上传用户:luoyougen
上传日期:2008-05-12
资源大小:23136k
文件大小:1k
源码类别:

VxWorks

开发平台:

C/C++

  1. /* mathLibInit.c - math library initialization */
  2. /* Copyright 1995 Wind River Systems, Inc. */
  3. /*
  4. modification history
  5. --------------------
  6. 01c,17mar95,ism  Removed 5.1.1 math routines.
  7. 01b,09jan95,ism  Added array to link in math routines missing from 5.2
  8. 01a,07sep92,smb  written.
  9. */
  10. /*
  11. This file is used to include the math ANSI C library routines in the 
  12. VxWorks build. The routines are only included when this file is 
  13. included by usrConfig.c.
  14. NOMANUAL
  15. */
  16. #ifndef  __INCmathLibInitc
  17. #define  __INCmathLibInitc 
  18. #include "vxWorks.h"
  19. #include "math.h"
  20. extern void gccMathInit ();
  21. extern void gccUssInit ();
  22. VOIDFUNCPTR mathFiles[] =
  23.     {
  24.     (VOIDFUNCPTR) acos,
  25.     (VOIDFUNCPTR) asin,
  26.     (VOIDFUNCPTR) atan,
  27.     (VOIDFUNCPTR) atan2,
  28.     (VOIDFUNCPTR) ceil,
  29.     (VOIDFUNCPTR) cos,
  30.     (VOIDFUNCPTR) cosh,
  31.     (VOIDFUNCPTR) exp,
  32.     (VOIDFUNCPTR) fabs,
  33.     (VOIDFUNCPTR) floor,
  34.     (VOIDFUNCPTR) fmod,
  35.     (VOIDFUNCPTR) frexp,
  36.     (VOIDFUNCPTR) ldexp,
  37.     (VOIDFUNCPTR) log,
  38.     (VOIDFUNCPTR) log10,
  39.     (VOIDFUNCPTR) modf,
  40.     (VOIDFUNCPTR) pow,
  41.     (VOIDFUNCPTR) sin,
  42.     (VOIDFUNCPTR) sinh,
  43.     (VOIDFUNCPTR) sqrt,
  44.     (VOIDFUNCPTR) tan,
  45.     (VOIDFUNCPTR) tanh,
  46.     };
  47. #endif /* __INCmathLibInitc */