home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / cset21v1.zip / IBMCPP / INCLUDE / BUILTIN.H < prev    next >
Text File  |  1993-09-17  |  5KB  |  115 lines

  1. #pragma info( none )
  2. #ifndef __CHKHDR__
  3.    #pragma info( none )
  4. #endif
  5. #pragma info( restore )
  6.  
  7. #ifndef __builtin_h
  8.    #define __builtin_h
  9.  
  10.    #ifdef __cplusplus
  11.       extern "C" {
  12.    #endif
  13.  
  14.    /********************************************************************/
  15.    /*  <builtin.h> header file                                         */
  16.    /*                                                                  */
  17.    /*  Licensed Materials - Property of IBM                            */
  18.    /*                                                                  */
  19.    /*  IBM C/C++ Tools Version 2.01                                    */
  20.    /*  Copyright (C) International Business Machines Corp., 1991,1993  */
  21.    /*  All rights reserved                                             */
  22.    /*                                                                  */
  23.    /*  US Government Users Restricted Rights -                         */
  24.    /*  Use, duplication, or disclosure restricted                      */
  25.    /*  by GSA ADP Schedule Contract with IBM Corp.                     */
  26.    /*                                                                  */
  27.    /********************************************************************/
  28.  
  29.    #if defined(__EXTENDED__)
  30.  
  31.       #ifndef __size_t
  32.          #define __size_t
  33.          typedef unsigned int size_t;
  34.       #endif
  35.  
  36.       void           _Builtin __interrupt( const unsigned int );
  37.       unsigned long  _Builtin __getTIBvalue( const unsigned int );
  38.  
  39.       #define _interrupt( x )   __interrupt( x )
  40.       #define _getTIBvalue( x ) __getTIBvalue( x )
  41.  
  42.       double _Builtin __fsin ( double );
  43.       double _Builtin __fcos ( double );
  44.       double _Builtin __fptan ( double );
  45.       double _Builtin __fpatan ( double );
  46.       double _Builtin __facos ( double );
  47.       double _Builtin __fasin ( double );
  48.       double _Builtin __fsincos ( double, double * );
  49.       double _Builtin __fsqrt ( double );
  50.       double _Builtin __fcossin ( double, double * );
  51.       double _Builtin __f2xm1 ( double );
  52.       double _Builtin __fyl2x ( double, double );
  53.       double _Builtin __fyl2xp1 ( double, double );
  54.  
  55.       #define _fsin( x )         __fsin( (x) )
  56.       #define _fcos( x )         __fcos( (x) )
  57.       #define _fptan( x )        __fptan( (x) )
  58.       #define _fpatan( x )       __fpatan( (x) )
  59.       #define _facos( x )        __facos( (x) )
  60.       #define _fasin( x )        __fasin( (x) )
  61.       #define _fsincos( x, y )   __fsincos( (x), (y) )
  62.       #define _fsqrt( x )        __fsqrt( (x) )
  63.       #define _fcossin( x, y )   __fcossin( (x), (y) )
  64.       #define _f2xm1( x )        __f2xm1( (x) )
  65.       #define _fyl2x( x, y )     __fyl2x( (x), (y) )
  66.       #define _fyl2xp1( x, y )   __fyl2xp1( (x), (y) )
  67.  
  68.       void           _Builtin __enable( void );
  69.       void           _Builtin __disable( void );
  70.       int            _Builtin __inpb( const unsigned int );
  71.       unsigned short _Builtin __inpw( const unsigned int );
  72.       unsigned long  _Builtin __inpd( const unsigned int );
  73.       int            _Builtin __outpb( const unsigned int, const int );
  74.       unsigned short _Builtin __outpw( const unsigned int, const unsigned short );
  75.       unsigned long  _Builtin __outpd( const unsigned int, const unsigned long );
  76.       unsigned int   _Builtin __clear87( void );
  77.       unsigned int   _Builtin __control87( unsigned int, unsigned int );
  78.       unsigned int   _Builtin __status87( void );
  79.  
  80.       #ifndef _alloca
  81.          void * _Builtin __alloca( size_t );
  82.          #pragma info( none )
  83.          #define _alloca( x ) __alloca( (x) )
  84.          #define alloca( x ) __alloca( (x) )
  85.          #pragma info( restore )
  86.       #endif
  87.  
  88.       unsigned char _Builtin __parmdwords( void );
  89.  
  90.       #define _enable( )              __enable( )
  91.       #define _disable( )             __disable( )
  92.       #define _inp( x )               __inpb( x )
  93.       #define _inpw( x )              __inpw( x )
  94.       #define _inpd( x )              __inpd( x )
  95.       #define _outp( x, y )           __outpb( (x), (y) )
  96.       #define _outpw( x, y )          __outpw( (x), (y) )
  97.       #define _outpd( x, y )          __outpd( (x), (y) )
  98.       #define _clear87( )             __clear87( )
  99.       #define _control87( x, y )      __control87( (x), (y) )
  100.       #define _status87( )            __status87( )
  101.  
  102.    #endif
  103.  
  104.    #ifdef __cplusplus
  105.       }
  106.    #endif
  107.  
  108. #endif
  109.  
  110. #pragma info( none )
  111. #ifndef __CHKHDR__
  112.    #pragma info( restore )
  113. #endif
  114. #pragma info( restore )
  115.