mathsoftlib.c

来自「vxworks的完整的源代码」· C语言 代码 · 共 58 行

C
58
字号
/* mathSoftLib.c - high-level floating-point emulation library *//* Copyright 1984-1995 Wind River Systems, Inc. */#include "copyright_wrs.h"/*modification history--------------------01a,07apr95,hdn	 written.*//*DESCRIPTIONThis library initializes software emulation library which is generallyfor use in systems that lack a floating-point coprocessor.SEE ALSO: fppArchLib*/#include "vxWorks.h"/* externals */IMPORT void emu387 (void);	/* FPP exception handler */IMPORT void emuInit (void);	/* FPP emulater initializer */IMPORT VOIDFUNCPTR emu387Func;	/* function pointer to trap handler */IMPORT VOIDFUNCPTR emuInitFunc;	/* function pointer to initializer *//******************************************************************************** mathSoftInit - initialize software floating-point math support** This routine set two global pointers, and is called from usrConfig.c* if INCLUDE_SW_FP is defined.  This definition causes the linker to* include the floating-point emulation library.** If the system is to use some combination of emulated as well as hardware* coprocessor floating points, then this routine should be called before calling* mathHardInit().** RETURNS: N/A** SEE ALSO: mathHardInit()**/void mathSoftInit (void)    {    emu387Func	= emu387;    emuInitFunc	= emuInit;    }

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?