亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關于我們
? 蟲蟲下載站

?? mathsoftlib.c

?? vxworks的源代碼
?? C
?? 第 1 頁 / 共 3 頁
字號:
/* mathSoftLib.c - high-level floating-point emulation library *//* Copyright 1984-1995 Wind River Systems, Inc. */#include "copyright_wrs.h"/*modification history--------------------01p,04sep98,yh   fixed mathSoftCeil for spr#22152.01o,21nov95,gbj  switched to ansi-style function declarations01n,07jul95,rcs  changed LOG2E back to correct value.01m,03feb95,rhp  doc: warn that sw f/p is not available for all archs01l,12jan95,rhp  doc: correct config macro to call mathSoftInit() (SPR#3733).01k,14jul94,dvs  fixed argument order and doc for mathSoftAtan2/mathSoftAtan2f 		 (SPR# 2580)01j,21nov92,jdi	 documentation cleanup.01i,13nov92,jcf	 made logMsg calls indirect to reduce coupling.01h,13oct92,jdi	 doc, and NOMANUAL for mathSoftSincos() and mathSoftSincosf(). 01g,30jul92,kdl	 changed to ANSI single precision names (e.g. sinf -> sinf).01f,26jul92,gae  fixed number of parameters to logMsg().01e,04jul92,jcf  ansi clean up.01d,03jul92,smb  removed include of vxTypes.h.01c,26may92,rrr  the tree shuffle01b,04oct91,rrr  passed through the ansification filter		  -changed VOID to void		  -changed copyright notice01a,28jan91,kdl	 original version, based on library written by S. Huddleston.*//*DESCRIPTIONThis library provides software emulation of various high-levelfloating-point operations.  This emulation is generally for use in systemsthat lack a floating-point coprocessor.WARNINGSoftware floating point is not supported for all architectures.  Seethe architecture-specific appendices of the.I VxWorks Programmer's Guide.INCLUDE FILES: math.hSEE ALSO: mathHardLib, mathALib,.I VxWorks Programmer's Guidearchitecture-specific appendicesINTERNALAuthors:Major portions by Scott Huddleston, Computer Research Lab, Tektronix.  Copyright 1990, Tektronix Inc.Cube-root function (cbrt) written by K.C. Ng, UC Berkeley.  Copyright 1985, Regents of the University of California.Hyperbolic trig functions (cosh, sinh, tanh) written by Fred Fish.*/#include "vxWorks.h"#include "math.h"#include "logLib.h"#include "private/funcBindP.h"/* make sure PI is defined */#ifndef PI#define PI      3.14159265358979323846264338327950#endif/* constant PI in single precision */static float PI_SINGLE = PI;#define INF_HiShort		0x7ff0#define INF_HiShort_SINGLE	0x7f80/* tests for NaN (Not a Number) and INF (infinity) */#define isNaN(z)	(((*(short*)&z) & 0x7fff) > INF_HiShort)#define isINF(z)	(((*(short*)&z) & 0x7fff) == INF_HiShort)#define isINFNaN(z)	(((*(short*)&z) & 0x7fff) >= INF_HiShort)#define isNaN_SINGLE(z)		(((*(short*)&z) & 0x7fff) > INF_HiShort_SINGLE)#define isINF_SINGLE(z)		(((*(short*)&z) & 0x7fff) == INF_HiShort_SINGLE)#define isINFNaN_SINGLE(z)	(((*(short*)&z) & 0x7fff) >= INF_HiShort_SINGLE)#define LOGE_MAXDOUBLE  7.09782712893383970e+02#define LOGE_MINDOUBLE  -7.09089565712824080e+02#define TANH_MAXARG	16#define LOG2E		1.4426950408889634074	/* Log to base 2 of e *//* Externals */extern double	mathSoftAtan ();	/* functions in mathSoftALib.s */extern double	mathSoftCos ();extern double	mathSoftExp ();extern double	mathSoftFloor ();extern double	mathSoftInfinity ();extern double	mathSoftLog ();extern double	mathSoftLog10 ();extern double	mathSoftRealtoint ();extern double	mathSoftSin ();extern double	mathSoftSqrt ();extern double	mathSoftTan ();extern float	mathSoftAtanf ();extern float	mathSoftCosf ();extern float	mathSoftExpf ();extern float	mathSoftFloorf ();extern float	mathSoftInfinityf ();extern float	mathSoftLogf ();extern float	mathSoftLog10f ();extern float	mathSoftRealtointf ();extern float	mathSoftSinf ();extern float	mathSoftSqrtf ();extern float	mathSoftTanf ();extern DBLFUNCPTR	mathAcosFunc;	/* double-precision function ptrs */extern DBLFUNCPTR	mathAsinFunc;extern DBLFUNCPTR	mathAtanFunc;extern DBLFUNCPTR	mathAtan2Func;extern DBLFUNCPTR	mathCbrtFunc;extern DBLFUNCPTR	mathCeilFunc;extern DBLFUNCPTR	mathCosFunc;extern DBLFUNCPTR	mathCoshFunc;extern DBLFUNCPTR	mathExpFunc;extern DBLFUNCPTR	mathFabsFunc;extern DBLFUNCPTR	mathFloorFunc;extern DBLFUNCPTR	mathFmodFunc;extern DBLFUNCPTR	mathHypotFunc;extern DBLFUNCPTR	mathInfinityFunc;extern FUNCPTR		mathIrintFunc;extern FUNCPTR		mathIroundFunc;extern DBLFUNCPTR	mathLogFunc;extern DBLFUNCPTR	mathLog2Func;extern DBLFUNCPTR	mathLog10Func;extern DBLFUNCPTR	mathPowFunc;extern DBLFUNCPTR	mathRoundFunc;extern DBLFUNCPTR	mathSinFunc;extern VOIDFUNCPTR	mathSincosFunc;extern DBLFUNCPTR	mathSinhFunc;extern DBLFUNCPTR	mathSqrtFunc;extern DBLFUNCPTR	mathTanFunc;extern DBLFUNCPTR	mathTanhFunc;extern DBLFUNCPTR	mathTruncFunc;extern FLTFUNCPTR	mathAcosfFunc;	/* single-precision function ptrs */extern FLTFUNCPTR	mathAsinfFunc;extern FLTFUNCPTR	mathAtanfFunc;extern FLTFUNCPTR	mathAtan2fFunc;extern FLTFUNCPTR	mathCbrtfFunc;extern FLTFUNCPTR	mathCeilfFunc;extern FLTFUNCPTR	mathCosfFunc;extern FLTFUNCPTR	mathCoshfFunc;extern FLTFUNCPTR	mathExpfFunc;extern FLTFUNCPTR	mathFabsfFunc;extern FLTFUNCPTR	mathFmodfFunc;extern FLTFUNCPTR	mathFloorfFunc;extern FLTFUNCPTR	mathHypotfFunc;extern FLTFUNCPTR	mathInfinityfFunc;extern FUNCPTR		mathIrintfFunc;extern FUNCPTR		mathIroundfFunc;extern FLTFUNCPTR	mathLogfFunc;extern FLTFUNCPTR	mathLog2fFunc;extern FLTFUNCPTR	mathLog10fFunc;extern FLTFUNCPTR	mathPowfFunc;extern FLTFUNCPTR	mathRoundfFunc;extern FLTFUNCPTR	mathSinfFunc;extern VOIDFUNCPTR	mathSincosfFunc;extern FLTFUNCPTR	mathSinhfFunc;extern FLTFUNCPTR	mathSqrtfFunc;extern FLTFUNCPTR	mathTanfFunc;extern FLTFUNCPTR	mathTanhfFunc;extern FLTFUNCPTR	mathTruncfFunc;/* Locals */LOCAL char	*errMsgString = "ERROR - %s function not supported\n";/* Forward references */LOCAL double 	mathSoftAcos (double dblParam);LOCAL double 	mathSoftAsin (double dblParam);LOCAL double 	mathSoftAtan2 (double dblY, double dblX);LOCAL double 	mathSoftCbrt (double x);LOCAL double 	mathSoftCeil (double dblParam);LOCAL double 	mathSoftCosh (double dblParam);LOCAL double 	mathSoftFabs (double dblParam);LOCAL double 	mathSoftHypot (double dblX, double dblY);LOCAL double 	mathSoftLog2 (double dblParam);LOCAL double 	mathSoftPow (double dblX, double dblY);LOCAL double 	mathSoftSinh (double dblParam);LOCAL void 	mathSoftSincos (double dblParam, double *pSinResult, 				double *pCosResult);LOCAL double 	mathSoftTanh (double dblParam);LOCAL float 	mathSoftAcosf (float fltParam);LOCAL float 	mathSoftAsinf (float fltParam);LOCAL float 	mathSoftAtan2f (float fltY, float fltX);LOCAL float 	mathSoftCbrtf (float x);LOCAL float 	mathSoftCeilf (float fltParam);LOCAL float 	mathSoftFabsf (float fltParam);LOCAL float 	mathSoftHypotf (float fltX, float fltY);LOCAL float	mathSoftLog2f (float fltParam);LOCAL float 	mathSoftPowf (float fltX, float fltY);LOCAL void 	mathSoftSincosf (float fltParam, float *pSinResult, 				 float *pCosResult);                      				/* unsupported */LOCAL void 	mathSoftFmod (double dblParam, double dblDivisor);                      				/* unsupported */LOCAL void 	mathSoftIrint (double dblParam);                      				/* unsupported */LOCAL void 	mathSoftIround (double dblParam);                      				/* unsupported */LOCAL void 	mathSoftRound (double dblParam);                      				/* unsupported */LOCAL void 	mathSoftTrunc (double dblParam);                      				/* unsupported */LOCAL void 	mathSoftCoshf (float fltParam);                      				/* unsupported */LOCAL void 	mathSoftFmodf (float fltParam, float fltDivisor);                      				/* unsupported */LOCAL void 	mathSoftIrintf (float fltParam);                      				/* unsupported */LOCAL void 	mathSoftIroundf (float fltParam);                      				/* unsupported */LOCAL void 	mathSoftRoundf (float fltParam);                      				/* unsupported */LOCAL void 	mathSoftSinhf (float fltParam);                      				/* unsupported */LOCAL void 	mathSoftTanhf (float fltParam);                      				/* unsupported */LOCAL void 	mathSoftTruncf (float fltParam);/******************************************************************************** mathSoftInit - initialize software floating-point math support** This routine places the addresses of the emulated high-level math* functions (trigonometric functions, etc.) in a set of global variables.* This allows the standard math functions (e.g., sin(), pow()) to have a* single entry point but be dispatched to the hardware or software support* routines, as specified.** This routine 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 ()    {    /* Load software routine addresses into global variables     * defined in mathALib.s.     */    /* Double-precision routines */    mathAcosFunc     = mathSoftAcos;    mathAsinFunc     = mathSoftAsin;    mathAtanFunc     = mathSoftAtan;    mathAtan2Func    = mathSoftAtan2;    mathCbrtFunc     = mathSoftCbrt;    mathCeilFunc     = mathSoftCeil;    mathCosFunc      = mathSoftCos;    mathCoshFunc     = mathSoftCosh;    mathExpFunc      = mathSoftExp;    mathFabsFunc     = mathSoftFabs;    mathFmodFunc     = (DBLFUNCPTR) mathSoftFmod;	/* unsupported */    mathFloorFunc    = mathSoftFloor;    mathHypotFunc    = mathSoftHypot;    mathInfinityFunc = mathSoftInfinity;    mathIrintFunc    = (FUNCPTR) mathSoftIrint;		/* unsupported */    mathIroundFunc   = (FUNCPTR) mathSoftIround;	/* unsupported */    mathLogFunc      = mathSoftLog;    mathLog2Func     = mathSoftLog2;    mathLog10Func    = mathSoftLog10;    mathPowFunc      = mathSoftPow;    mathRoundFunc    = (DBLFUNCPTR) mathSoftRound;	/* unsupported */    mathSinFunc      = mathSoftSin;    mathSincosFunc   = mathSoftSincos;    mathSinhFunc     = mathSoftSinh;    mathSqrtFunc     = mathSoftSqrt;    mathTanFunc      = mathSoftTan;    mathTanhFunc     = mathSoftTanh;    mathTruncFunc    = (DBLFUNCPTR) mathSoftTrunc;	/* unsupported */    /* Single-precision routines */    mathAcosfFunc     = (FLTFUNCPTR)mathSoftAcosf;    mathAsinfFunc     = (FLTFUNCPTR)mathSoftAsinf;    mathAtanfFunc     = mathSoftAtanf;    mathAtan2fFunc    = (FLTFUNCPTR)mathSoftAtan2f;    mathCbrtfFunc     = (FLTFUNCPTR)mathSoftCbrtf;    mathCeilfFunc     = (FLTFUNCPTR)mathSoftCeilf;    mathCosfFunc      = mathSoftCosf;    mathCoshfFunc     = (FLTFUNCPTR) mathSoftCoshf;	/* unsupported */    mathExpfFunc      = mathSoftExpf;    mathFabsfFunc     = (FLTFUNCPTR)mathSoftFabsf;    mathFmodfFunc     = (FLTFUNCPTR) mathSoftFmodf;	/* unsupported */    mathFloorfFunc    = mathSoftFloorf;    mathHypotfFunc    = (FLTFUNCPTR)mathSoftHypotf;    mathInfinityfFunc = mathSoftInfinityf;    mathIrintfFunc    = (FUNCPTR) mathSoftIrintf;	/* unsupported */    mathIroundfFunc   = (FUNCPTR) mathSoftIroundf;	/* unsupported */    mathLogfFunc      = mathSoftLogf;    mathLog2fFunc     = (FLTFUNCPTR)mathSoftLog2f;    mathLog10fFunc    = mathSoftLog10f;    mathPowfFunc      = (FLTFUNCPTR)mathSoftPowf;    mathRoundfFunc    = (FLTFUNCPTR) mathSoftRoundf;	/* unsupported */    mathSinfFunc      = mathSoftSinf;    mathSincosfFunc   = (VOIDFUNCPTR)mathSoftSincosf;    mathSinhfFunc     = (FLTFUNCPTR) mathSoftSinhf;	/* unsupported */    mathSqrtfFunc     = mathSoftSqrtf;    mathTanfFunc      = mathSoftTanf;    mathTanhfFunc     = (FLTFUNCPTR) mathSoftTanhf;	/* unsupported */    mathTruncfFunc    = (FLTFUNCPTR) mathSoftTruncf;	/* unsupported */    }/******************************************************************************** mathSoftFabs - software floating point absolute value** This routine takes the input double-precision floating point* parameter and returns the absolute value.** RETURNS: double-precision absolute value.*/LOCAL double mathSoftFabs    (    double	dblParam    )    {    return ((dblParam < 0.0) ? -dblParam : dblParam);    }/******************************************************************************** mathSoftCeil - software floating point ceiling** This routine takes the input double-precision floating point* parameter and returns (in double-precision floating point format)* the integer immediately greater than the input parameter.** RETURNS: double-precision representation of next largest integer.*/LOCAL double mathSoftCeil     (    double	dblParam    )    {    if (dblParam <= 0.0 && dblParam > -1.0)	return 0.0;    else	return (-floor (-dblParam));    }/******************************************************************************** mathSoftPow - software floating point power function** This routine takes two input double-precision floating point* parameters, <dblX> and <dblY>, and returns the double-precision* value of <dblX> to the <dblY> power.** INTERNAL* The US Software emulation library has a special function for taking* a floating point number to an integer power.  This routine therefore* checks to see if the <dblY> parameter is an integer, and uses the* US Software function (XTOI) if it is.** RETURNS: double-precision value of <dblX> to <dblY> power.*/LOCAL double mathSoftPow     (    double	dblX,    double	dblY     )    {    if (isNaN(dblY))	return (dblY);			/* dblY = NaN --> NaN */    if (dblX == 1.0)	return (1.0);			/* dblX = 1 --> 1 */    if (dblY == floor (dblY))		/* int dblY --> XTOI(dblX,dblY) */	return (mathSoftRealtoint (dblX,(long int) dblY));    return (exp (dblY * log(dblX)));    }/******************************************************************************** mathSoftAsin - software floating point arc sine** This routine takes the input double-precision floating point* parameter and returns the arc sine.** RETURNS: double-precision arc sine value.*/LOCAL double mathSoftAsin     (    double	dblParam     )    {    return (atan (dblParam / sqrt (1.0 - dblParam * dblParam)));    }/******************************************************************************** mathSoftAcos - software floating point arc cosine** This routine takes the input double-precision floating point* parameter and returns the arc cosine.** RETURNS: double-precision arc cosine value.*/LOCAL double mathSoftAcos     (    double	dblParam     )    {    double 	result;    result = atan (sqrt (1.0 - dblParam * dblParam) / dblParam);

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
九九九久久久精品| 欧美日韩精品久久久| 欧亚一区二区三区| 精品1区2区在线观看| 一区二区三区视频在线看| 久久成人免费电影| 欧美日韩午夜精品| 亚洲女人****多毛耸耸8| 久久精品国产亚洲5555| 一本一本大道香蕉久在线精品| 久久久精品中文字幕麻豆发布| 一本大道av一区二区在线播放 | 欧美一级艳片视频免费观看| 国产午夜精品一区二区| 亚洲福利一区二区三区| 91在线观看视频| 久久久午夜电影| 麻豆视频一区二区| 欧美日韩成人综合| 一个色综合网站| av在线免费不卡| 国产精品久久久久影院| 国产揄拍国内精品对白| 奇米色一区二区| 色一情一乱一乱一91av| 中文字幕欧美区| 粗大黑人巨茎大战欧美成人| 久久久精品黄色| 国产一区91精品张津瑜| 久久在线观看免费| 国产一区二区h| 久久久777精品电影网影网 | av中文字幕不卡| 亚洲国产精品黑人久久久| 久久99国产精品久久99果冻传媒| 激情深爱一区二区| 精品国产一区二区国模嫣然| 狠狠色丁香婷婷综合久久片| 精品久久久久久久久久久院品网 | 国产精品一区二区在线观看网站| 国产一区二区三区免费播放| 91精品久久久久久久久99蜜臂| 2020国产精品| 国产成人免费在线观看| 亚洲欧美影音先锋| 日本乱人伦一区| 午夜影视日本亚洲欧洲精品| 欧美久久久一区| 免费人成精品欧美精品| 精品国产自在久精品国产| 国产剧情一区在线| 国产精品网站一区| 欧洲亚洲国产日韩| 免费在线观看日韩欧美| 亚洲国产精品传媒在线观看| 99精品国产热久久91蜜凸| 亚洲自拍偷拍图区| 欧美大片日本大片免费观看| 国产高清在线观看免费不卡| 亚洲欧洲精品天堂一级 | 欧美精品亚洲一区二区在线播放| 精品少妇一区二区| 欧美一区二区三区在线| 免费国产亚洲视频| 国产日韩欧美高清| a级高清视频欧美日韩| 青青草精品视频| 国产精品伦一区| 欧美一区二区三区免费在线看 | 一区二区三区四区在线| 欧美理论在线播放| 国产成人精品影视| 亚洲第一久久影院| 国产精品欧美精品| 91精品国产免费| 99国产精品一区| 蜜臀久久久99精品久久久久久| 欧美性大战久久久久久久| 国精品**一区二区三区在线蜜桃 | 成人晚上爱看视频| 午夜视频一区二区三区| 国产免费久久精品| 日韩一区二区电影| 99久久精品免费精品国产| 美女在线一区二区| 亚洲一区二区三区中文字幕| 国产午夜精品理论片a级大结局| 精品亚洲porn| 亚洲第一福利一区| 日韩美女精品在线| 国产欧美日产一区| 精品成人一区二区| 欧美少妇性性性| av高清久久久| 国产成人免费视| 国产一区二区调教| 麻豆高清免费国产一区| 亚洲成人av一区| 亚洲精品中文在线观看| 国产精品久线在线观看| 国产三级精品三级在线专区| 日韩三级在线免费观看| 欧美高清视频一二三区| 欧美日韩在线一区二区| 91福利国产成人精品照片| 91在线云播放| 99在线精品观看| 99久久免费视频.com| 懂色av一区二区三区免费看| 国产一区欧美一区| 国产成人亚洲综合a∨婷婷 | 久久精品亚洲国产奇米99| 欧美精品乱码久久久久久按摩| 免费av成人在线| 青青草原综合久久大伊人精品优势| 欧美videos大乳护士334| 欧美三级乱人伦电影| 欧美专区亚洲专区| 色久综合一二码| 欧美日韩亚洲综合| 7777精品伊人久久久大香线蕉的| 国产米奇在线777精品观看| 久久精品久久99精品久久| 美国一区二区三区在线播放| 免费看欧美美女黄的网站| 久久国产成人午夜av影院| 精品写真视频在线观看| 国产99久久久国产精品| youjizz久久| 欧美最猛黑人xxxxx猛交| 欧美日韩国产系列| 日韩视频在线一区二区| 欧美精品一区二区三区蜜桃视频| 色婷婷亚洲精品| 欧美三级中文字| 精品日韩在线一区| 亚洲国产精品成人综合色在线婷婷| 91麻豆精品国产91久久久久久| 高清beeg欧美| 91福利视频网站| 日韩欧美电影一二三| 亚洲国产精品v| 亚洲精品国产第一综合99久久| 久久久久一区二区三区四区| 国产精品久久久久久久久快鸭| 91精品国产乱| 国产欧美综合在线| 一区二区三区小说| 久久福利资源站| 色呦呦国产精品| 欧美成人乱码一区二区三区| 中文字幕一区二区三区在线不卡 | 欧美午夜一区二区| 精品国产乱码久久久久久图片| 一本到不卡免费一区二区| 欧美日韩在线免费视频| 精品美女在线观看| 一区二区三区丝袜| 国产乱色国产精品免费视频| 色噜噜狠狠色综合中国| 久久蜜臀中文字幕| 亚洲人成影院在线观看| 激情久久久久久久久久久久久久久久| 天堂影院一区二区| 粉嫩aⅴ一区二区三区四区五区| 国产在线看一区| 色婷婷综合久久久久中文一区二区| gogogo免费视频观看亚洲一| 欧美一区二区黄色| 亚洲精品国产一区二区精华液| 国产精品日日摸夜夜摸av| 奇米一区二区三区| 99久久久久久99| 久久这里只有精品视频网| 亚洲一区在线播放| 本田岬高潮一区二区三区| 日韩欧美国产不卡| 日韩精品欧美成人高清一区二区| 日韩av一区二区在线影视| 99国产一区二区三精品乱码| 久久久精品黄色| 韩国欧美国产1区| 欧美日韩精品电影| 一卡二卡三卡日韩欧美| 成人福利视频在线看| 国产亚洲欧美激情| 国产综合一区二区| 日韩午夜小视频| 奇米影视一区二区三区小说| 欧美日韩国产成人在线免费| 亚洲成人资源网| 欧美亚一区二区| 一区二区三区视频在线看| 色综合一区二区三区| 国产日韩欧美不卡在线| 成人免费高清视频在线观看| 国产午夜精品久久久久久久| 国产成人日日夜夜| 国产精品国产三级国产aⅴ原创| 亚洲综合色视频|