dummy.c
来自「开放源码的编译器open watcom 1.6.0版的源代码」· C语言 代码 · 共 131 行
C
131 行
/****************************************************************************
*
* Open Watcom Project
*
* Portions Copyright (c) 1983-2002 Sybase, Inc. All Rights Reserved.
*
* ========================================================================
*
* This file contains Original Code and/or Modifications of Original
* Code as defined in and that are subject to the Sybase Open Watcom
* Public License version 1.0 (the 'License'). You may not use this file
* except in compliance with the License. BY USING THIS FILE YOU AGREE TO
* ALL TERMS AND CONDITIONS OF THE LICENSE. A copy of the License is
* provided with the Original Code and Modifications, and is also
* available at www.sybase.com/developer/opensource.
*
* The Original Code and all software distributed under the License are
* distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
* EXPRESS OR IMPLIED, AND SYBASE AND ALL CONTRIBUTORS HEREBY DISCLAIM
* ALL SUCH WARRANTIES, INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF
* MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR
* NON-INFRINGEMENT. Please see the License for the specific language
* governing rights and limitations under the License.
*
* ========================================================================
*
* Description: WHEN YOU FIGURE OUT WHAT THIS FILE DOES, PLEASE
* DESCRIBE IT HERE!
*
****************************************************************************/
#include "gdefn.h"
// This file contains definitions used to create the
// standalone graphics library GRAPH.LIB and GRAPH386.LIB
short _small_code_;
short _fltused_;
#pragma aux _small_code_ "_small_code_";
#pragma aux _fltused_ "_fltused_";
#pragma aux F4DivZero "F4DivZero";
#pragma aux F4OverFlow "F4OverFlow";
#pragma aux F4UnderFlow "F4UnderFlow";
#if 0
#pragma aux F8DivZero "F8DivZero";
#pragma aux F8OverFlow "F8OverFlow";
#pragma aux F8UnderFlow "F8UnderFlow";
#endif
extern float F4RetInf( float );
#if defined( __386__ )
#pragma aux F4RetInf = \
0x25 0x00 0x00 0x00 0x80 /* and eax,80000000H */ \
0x0d 0xff 0xff 0x7f 0x7f /* or eax,7f7fffffH */ \
parm caller [eax] value [eax];
#else
#pragma aux F4RetInf = \
0x25 0x00 0x80 /* and ax,8000H */ \
0x0d 0x7f 0x7f /* or ax,7f7fH */ \
0xba 0xff 0xff /* mov dx,0ffffH */ \
0x92 /* xchg ax,dx */ \
parm caller [ax dx] value [ax dx];
#endif
#if 0
extern double F8RetInf( double );
#if defined( __386__ )
#pragma aux F8RetInf = \
0x25 0x00 0x00 0x00 0x80 /* and eax,80000000H */ \
0x0d 0xff 0xff 0xef 0x7f /* or eax,7fefffffH */ \
0xba 0xff 0xff 0xff 0xff /* mov edx,0ffffffffH */ \
0x92 /* xchg eax,edx */ \
parm caller [eax edx] value [eax edx];
#else
#pragma aux F8RetInf = \
0x25 0x00 0x80 /* and ax,8000H */ \
0x0d 0xef 0x7f /* or ax,7fefH */ \
0xbb 0xff 0xff /* mov bx,0ffffH */ \
0x8b 0xcb /* mov cx,bx */ \
0x8b 0xd3 /* mov dx,bx */ \
parm caller [ax bx cx dx] value [ax bx cx dx];
#endif
#endif
float _WCI86FAR F4UnderFlow( void )
//============================
{
return( 0 );
}
float _WCI86FAR F4DivZero( float num )
//===============================
{
return( F4RetInf( num ) );
}
float _WCI86FAR F4OverFlow( float num )
//================================
{
return( F4RetInf( num ) );
}
#if 0
double _WCI86FAR F8UnderFlow( void )
//=============================
{
return( 0 );
}
double _WCI86FAR F8DivZero( double num )
//=================================
{
return( F8RetInf( num ) );
}
double _WCI86FAR F8OverFlow( double num )
//==================================
{
return( F8RetInf( num ) );
}
#endif
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?