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

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關(guān)于我們
? 蟲蟲下載站

?? mathsoftlib.c

?? vxworks的源代碼
?? C
?? 第 1 頁 / 共 3 頁
字號(hào):
/* 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);

?? 快捷鍵說明

復(fù)制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號(hào) Ctrl + =
減小字號(hào) Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
国产欧美日韩精品一区| 国产精品成人免费| 91网站视频在线观看| 日韩国产在线观看一区| 国产精品久久久久久久第一福利 | 欧美优质美女网站| 九色综合国产一区二区三区| 亚洲欧洲制服丝袜| 久久久久久久免费视频了| 在线看国产日韩| 成人激情动漫在线观看| 美女爽到高潮91| 亚洲一区二区三区精品在线| 国产精品免费人成网站| 精品成人在线观看| 欧美美女直播网站| 欧美最猛性xxxxx直播| 9人人澡人人爽人人精品| 国产高清成人在线| 国产一区999| 激情六月婷婷久久| 蜜臀av性久久久久蜜臀av麻豆| 亚洲已满18点击进入久久| 国产精品久久久久一区二区三区共 | 成人精品电影在线观看| 精品一区二区在线观看| 美女精品一区二区| 青青草原综合久久大伊人精品优势 | 久久久不卡影院| 精品欧美一区二区在线观看| 欧美一级黄色大片| 91麻豆精品国产自产在线| 欧美少妇一区二区| 欧美天堂一区二区三区| 欧美视频在线观看一区二区| 在线一区二区观看| 欧美亚洲另类激情小说| 欧美日韩国产乱码电影| 正在播放一区二区| 欧美一区二区三区人| 日韩无一区二区| 日韩精品一区二区三区老鸭窝| 日韩精品一区在线| 久久蜜桃香蕉精品一区二区三区| 日韩精品中文字幕在线不卡尤物| www国产成人| 欧美国产日韩一二三区| 国产精品福利av| 亚洲蜜桃精久久久久久久| 亚洲福利一区二区三区| 日本伊人色综合网| 国产一区不卡精品| av一本久道久久综合久久鬼色| 99视频国产精品| 欧美午夜免费电影| 欧美一区二区黄| 亚洲国产电影在线观看| 一区二区三区在线播放| 亚洲1区2区3区4区| 蜜桃在线一区二区三区| 国产成人日日夜夜| 色婷婷综合在线| 在线综合+亚洲+欧美中文字幕| 26uuu亚洲| 亚洲欧美一区二区不卡| 亚洲成av人在线观看| 国产在线精品国自产拍免费| 91视频观看视频| 欧美一区二区观看视频| 国产精品美女久久久久久久| 亚洲一区二区三区自拍| 老司机精品视频线观看86| 成人av在线播放网址| 欧美日韩亚洲综合在线 | 精品少妇一区二区三区免费观看| 久久久久久久久久电影| 亚洲欧美日韩在线| 黄色精品一二区| 色偷偷一区二区三区| 精品精品国产高清a毛片牛牛| 中文字幕一区二区三区不卡 | 成人福利视频在线| 欧美裸体一区二区三区| 国产色91在线| 午夜精品成人在线视频| 国产91精品一区二区麻豆网站| 91福利视频久久久久| 久久午夜羞羞影院免费观看| 一区二区三区在线免费观看| 精品一区中文字幕| 欧美亚洲日本一区| 中文字幕第一区综合| 免费成人美女在线观看.| 91小视频在线| 久久久99免费| 日韩影院在线观看| 91麻豆精东视频| 国产亚洲女人久久久久毛片| 日韩精品一级二级 | 国产精品国产三级国产三级人妇| 日韩电影在线看| 欧美亚洲国产一卡| 亚洲欧美在线另类| 国内国产精品久久| 6080午夜不卡| 亚洲靠逼com| 成人av电影观看| 欧美精品一区二区三区高清aⅴ | 亚洲精品在线一区二区| 亚洲国产精品麻豆| 色菇凉天天综合网| 国产精品久久一级| 国产a级毛片一区| 精品成人一区二区三区四区| 亚洲成人av电影在线| 色狠狠一区二区三区香蕉| 中文欧美字幕免费| 国产精品一品二品| 日韩欧美亚洲国产精品字幕久久久 | 久久婷婷久久一区二区三区| 日韩高清不卡一区| 欧美日韩一区二区欧美激情| 亚洲人成网站精品片在线观看| 成人av午夜影院| 国产精品视频一二三| 成人午夜看片网址| 欧美国产激情一区二区三区蜜月| 狠狠色狠狠色综合| 久久奇米777| 国产精品一二三四五| 久久久国产精品麻豆| 国产精品中文字幕日韩精品 | 中文字幕亚洲一区二区av在线 | 日韩一区二区三区在线视频| 日韩精品电影一区亚洲| 3d动漫精品啪啪1区2区免费| 日日夜夜一区二区| 欧美一级久久久久久久大片| 麻豆91小视频| 久久久综合激的五月天| 国产aⅴ综合色| 国产精品成人免费在线| 91福利视频久久久久| 亚洲第一在线综合网站| 91精品国产丝袜白色高跟鞋| 日韩和的一区二区| 欧美精品一区二区三区高清aⅴ| 国产麻豆欧美日韩一区| 欧美国产精品劲爆| 色香蕉成人二区免费| 日韩制服丝袜av| 2023国产一二三区日本精品2022| 国产激情视频一区二区在线观看| 国产目拍亚洲精品99久久精品| av一区二区三区在线| 亚洲综合一区二区| 欧美一区二区视频网站| 国产在线不卡一卡二卡三卡四卡| 欧美国产日本韩| 色成年激情久久综合| 日本三级韩国三级欧美三级| 久久奇米777| 日本电影欧美片| 麻豆精品国产91久久久久久| 国产亚洲一二三区| 色国产综合视频| 久久99久久99| 亚洲精品日韩专区silk| 欧美一级在线观看| 国产69精品久久99不卡| 一区二区高清视频在线观看| 日韩欧美一区在线观看| 成人精品小蝌蚪| 五月婷婷激情综合| 国产欧美日韩麻豆91| 欧美三级视频在线| 国产成人午夜高潮毛片| 亚洲一二三四区不卡| 久久综合久久鬼色| 欧美性受xxxx黑人xyx| 国产真实乱子伦精品视频| 亚洲精品写真福利| 精品久久一区二区| 欧美最猛性xxxxx直播| 国产传媒日韩欧美成人| 亚洲一区二区三区影院| 久久久精品天堂| 欧美久久免费观看| 成人高清视频在线观看| 久久国产视频网| 亚洲一区二区偷拍精品| 国产欧美日产一区| 日韩欧美成人一区二区| 色呦呦国产精品| 豆国产96在线|亚洲| 久久精品国产在热久久| 亚洲成人手机在线| 亚洲视频一二三区| 久久久精品欧美丰满| 日韩欧美不卡在线观看视频|