Annotation of coherent/f/usr/include/math.h, revision 1.1.1.1

1.1       root        1: /* (-lgl
                      2:  *     COHERENT Version 4.1.0
                      3:  *     Copyright (c) 1982, 1993 by Mark Williams Company.
                      4:  *     All rights reserved. May not be copied without permission.
                      5:  -lgl) */
                      6: /*
                      7:  * /usr/include/math.h
                      8:  * Definitions for math library.
                      9:  * ANSI C Standard, section 4.5.
                     10:  */
                     11: 
                     12: #ifndef        __MATH_H__
                     13: #define        __MATH_H__
                     14: 
                     15: #include <common/feature.h>
                     16: #include <common/ccompat.h>
                     17: 
                     18: #if    ! _STDC_SOURCE && ! _POSIX_SOURCE
                     19: 
                     20: #if    __DECVAX__
                     21: #define L2HUGE_VAL     127.0           /* log2(infinity)       */
                     22: #define L10P           17              /* log10(precision)     */
                     23: #define L2L2P          6               /* log2(log2(precision)) */
                     24: #elif  __IEEE__
                     25: #define L2HUGE_VAL     1023.0          /* log2(infinity)       */
                     26: #define L10P           16              /* log10(precision)     */
                     27: #define L2L2P          6               /* log2(log2(precision)) */
                     28: #endif
                     29: 
                     30: /* Constants. */
                     31: #define PI             0.31415926535897932e+01
                     32: #define SQRT2          0.14142135623730950e+01
                     33: #define LOG2B10                0.30102999566398119e+00
                     34: #define LOG10BE                0.23025850929940456e+01
                     35: #define LOG10B2                0.33219280948873623e+01
                     36: #define LOGEB2         0.14426950408889634e+01
                     37: 
                     38: /* Complex variables. */
                     39: typedef struct cpx {
                     40:        double  z_r;
                     41:        double  z_i;
                     42: } CPX;
                     43: 
                     44: #endif
                     45: 
                     46: 
                     47: #if    __DECVAX__
                     48: 
                     49: #define HUGE_VAL       1e+37           /* Infinity             */
                     50: 
                     51: #elif  __IEEE__
                     52: 
                     53: #define HUGE_VAL       1e+308          /* Infinity             */
                     54: 
                     55: #endif
                     56: 
                     57: __EXTERN_C_BEGIN__
                     58: 
                     59: double         acos            __PROTO ((double _x));
                     60: double         asin            __PROTO ((double _x));
                     61: double         atan            __PROTO ((double _x));
                     62: double         atan2           __PROTO ((double _y, double _x));
                     63: double         cos             __PROTO ((double _x));
                     64: double         sin             __PROTO ((double _x));
                     65: double         tan             __PROTO ((double _x));
                     66: double         cosh            __PROTO ((double _x));
                     67: double         sinh            __PROTO ((double _x));
                     68: double         tanh            __PROTO ((double _x));
                     69: double         exp             __PROTO ((double _x));
                     70: double         frexp           __PROTO ((double _x));
                     71: double         ldexp           __PROTO ((double _x));
                     72: double         log             __PROTO ((double _x));
                     73: double         log10           __PROTO ((double _x));
                     74: double         modf            __PROTO ((double _value, double * _iptr));
                     75: double         pow             __PROTO ((double _x, double _y));
                     76: double         sqrt            __PROTO ((double _x));
                     77: double         ceil            __PROTO ((double _x));
                     78: double         fabs            __PROTO ((double _x));
                     79: double         floor           __PROTO ((double _x));
                     80: double         fmod            __PROTO ((double _x, double _y));
                     81: 
                     82: #if    ! _STDC_SOURCE && ! _POSIX_SOURCE
                     83: 
                     84: /* Math library functions in /lib/libm.a. */
                     85: double         cabs            __PROTO ((struct cpx _z));
                     86: double         hypot           __PROTO ((double _x, double _y));
                     87: double         j0              __PROTO ((double _x));
                     88: double         j1              __PROTO ((double _x));
                     89: double         jn              __PROTO ((int _n, double _x));
                     90: 
                     91: #endif /* ! _STDC_SOURCE && ! _POSIX_SOURCE */
                     92: 
                     93: __EXTERN_C_END__
                     94: 
                     95: #if    1
                     96: 
                     97: /* Internal functions. */
                     98: extern double  _pol();
                     99: extern double  _two();
                    100: 
                    101: #endif /* not permitted in this header */
                    102: 
                    103: #endif /* ! defined (__MATH__H__) */
                    104: 

unix.superglobalmegacorp.com

This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.