home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Professional Developers Kit 1992 November / Disc01 / Disc01.mdf / cppbeta / incla / builtin.h__ / BUILTIN.H
Encoding:
C/C++ Source or Header  |  1992-09-30  |  4.3 KB  |  114 lines

  1. #ifndef __builtin_h
  2.    #define __builtin_h
  3.  
  4.    #pragma info( none )
  5.    #ifndef __CHKHDR__
  6.       #pragma info( none )
  7.    #endif
  8.    #pragma info( restore )
  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 Set/2 Beta Version                                        */
  20.    /*  Copyright (C) International Business Machines Corp., 1991,1992  */
  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.    #ifndef __size_t
  30.       #define __size_t
  31.       typedef unsigned int size_t;
  32.    #endif
  33.  
  34.    void           _Builtin __interrupt( const unsigned int );
  35.    unsigned long  _Builtin __getTIBvalue( const unsigned int );
  36.  
  37.    #define _interrupt( x )   __interrupt( x )
  38.    #define _getTIBvalue( x ) __getTIBvalue( x )
  39.  
  40.    double _Builtin __fsin ( double );
  41.    double _Builtin __fcos ( double );
  42.    double _Builtin __fptan ( double );
  43.    double _Builtin __fpatan ( double );
  44.    double _Builtin __facos ( double );
  45.    double _Builtin __fasin ( double );
  46.    double _Builtin __fsincos ( double, double * );
  47.    double _Builtin __fcossin ( double, double * );
  48.    double _Builtin __f2xm1 ( double );
  49.    double _Builtin __fyl2x ( double, double );
  50.    double _Builtin __fyl2xp1 ( double, double );
  51.  
  52.    #define _fsin( x )         __fsin( (x) )
  53.    #define _fcos( x )         __fcos( (x) )
  54.    #define _fptan( x )        __fptan( (x) )
  55.    #define _fpatan( x )       __fpatan( (x) )
  56.    #define _facos( x )        __facos( (x) )
  57.    #define _fasin( x )        __fasin( (x) )
  58.    #define _fsincos( x, y )   __fsincos( (x), (y) )
  59.    #define _fcossin( x, y )   __fcossin( (x), (y) )
  60.    #define _f2xm1( x )        __f2xm1( (x) )
  61.    #define _fyl2x( x, y )     __fyl2x( (x), (y) )
  62.    #define _fyl2xp1( x, y )   __fyl2xp1( (x), (y) )
  63.  
  64.  
  65.    #if defined(__EXTENDED__)
  66.  
  67.       void           _Builtin __enable( void );
  68.       void           _Builtin __disable( void );
  69.       int            _Builtin __inpb( const unsigned int );
  70.       unsigned short _Builtin __inpw( const unsigned int );
  71.       unsigned long  _Builtin __inpd( const unsigned int );
  72.       int            _Builtin __outpb( const unsigned int, const int );
  73.       unsigned short _Builtin __outpw( const unsigned int, const unsigned short );
  74.       unsigned long  _Builtin __outpd( const unsigned int, const unsigned long );
  75.       unsigned int   _Builtin __clear87 ( void );
  76.       unsigned int   _Builtin __control87( unsigned int, unsigned int );
  77.       unsigned int   _Builtin __status87 ( void );
  78.  
  79.       #ifndef _alloca
  80.          void * _Builtin __alloca( size_t );
  81.          #pragma info( none )
  82.          #define _alloca( x ) __alloca( (x) )
  83.          #define alloca( x ) __alloca( (x) )
  84.          #pragma info( restore )
  85.       #endif
  86.  
  87.       unsigned char _Builtin __parmdwords( void );
  88.  
  89.       #define _enable( )              __enable( )
  90.       #define _disable( )             __disable( )
  91.       #define _inp( x )               __inpb( (x) )
  92.       #define _inpw( x )              __inpw( (x) )
  93.       #define _inpd( x )              __inpd( (x) )
  94.       #define _outp( x, y )           __outpb( (x), (y) )
  95.       #define _outpw( x, y )          __outpw( (x), (y) )
  96.       #define _outpd( x, y )          __outpd( (x), (y) )
  97.       #define _clear87( )             __clear87( )
  98.       #define _control87( x, y )      __control87( (x), (y) )
  99.       #define _status87( )            __status87( )
  100.  
  101.    #endif
  102.  
  103.    #ifdef __cplusplus
  104.       }
  105.    #endif
  106.  
  107.    #pragma info( none )
  108.    #ifndef __CHKHDR__
  109.       #pragma info( restore )
  110.    #endif
  111.    #pragma info( restore )
  112.  
  113. #endif
  114.