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

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

?? ansimath.c

?? vxworks的完整的源代碼
?? C
?? 第 1 頁 / 共 5 頁
字號:
NOMANUAL*/#include "math.h"#include "stddef.h"#include "errno.h"#include "private/mathP.h"/********************************************************************************* ldexp - multiply a number by an integral power of 2 (ANSI)** This routine multiplies a floating-point number by an integral power of 2.* A range error may occur.** INCLUDE FILES: math.h** RETURNS: The double-precision value of <v> times 2 to the power of <xexp>.**/double ldexp    (    double v,		/* a floating point number */    int xexp		/* exponent                */    )    {    double zero = 0.0;    switch (fpTypeGet (v, NULL))	       	{       	case NAN:		/* NOT A NUMBER */            errno = EDOM;	    break;    	case INF:		/* INFINITE */	    errno = ERANGE;	    break;    	case ZERO:		/* ZERO */	    return (zero);	default:	    if (xexp >= 0)		for(; (xexp > 0); xexp--, v *= 2.0);	    else		for(; (xexp < 0); xexp++, v /= 2.0);	    return (v);    	}    return (zero);    }/* log.c - math routines *//* Copyright 1992-1993 Wind River Systems, Inc. *//*modification history--------------------01f,05feb93,jdi  doc changes based on kdl review.01e,02dec92,jdi  doc tweaks.01d,28oct92,jdi  documentation cleanup.01c,13oct92,jdi  mangen fixes.01b,20sep92,smb  documentation additions01a,08jul92,smb  documentation*//*DESCRIPTION* Copyright (c) 1985 Regents of the University of California.* All rights reserved.** Redistribution and use in source and binary forms are permitted* provided that the above copyright notice and this paragraph are* duplicated in all such forms and that any documentation,* advertising materials, and other materials related to such* distribution and use acknowledge that the software was developed* by the University of California, Berkeley.  The name of the* University may not be used to endorse or promote products derived* from this software without specific prior written permission.* THIS SOFTWARE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESS OR* IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED* WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE.** All recipients should regard themselves as participants in an ongoing* research project and hence should feel obligated to report their* experiences (good or bad) with these elementary function codes, using* the sendbug(8) program, to the authors.*SEE ALSO: American National Standard X3.159-1989NOMANUAL*/#include "vxWorks.h"#include "math.h"#if defined(vax)||defined(tahoe)	/* VAX D format */#include <errno.h>#ifdef vax#define _0x(A,B)	0x/**/A/**/B#else	/* vax */#define _0x(A,B)	0x/**/B/**/A#endif	/* vax *//* static double *//* ln2hi  =  6.9314718055829871446E-1    , Hex  2^  0   *  .B17217F7D00000 *//* ln2lo  =  1.6465949582897081279E-12   , Hex  2^-39   *  .E7BCD5E4F1D9CC *//* sqrt2  =  1.4142135623730950622E0     ; Hex  2^  1   *  .B504F333F9DE65 */static long     ln2hix[] = { _0x(7217,4031), _0x(0000,f7d0)};static long     ln2lox[] = { _0x(bcd5,2ce7), _0x(d9cc,e4f1)};static long     sqrt2x[] = { _0x(04f3,40b5), _0x(de65,33f9)};#define    ln2hi    (*(double*)ln2hix)#define    ln2lo    (*(double*)ln2lox)#define    sqrt2    (*(double*)sqrt2x)#else	/* defined(vax)||defined(tahoe) */static doubleln2hi  =  6.9314718036912381649E-1    , /*Hex  2^ -1   *  1.62E42FEE00000 */ln2lo  =  1.9082149292705877000E-10   , /*Hex  2^-33   *  1.A39EF35793C76 */sqrt2  =  1.4142135623730951455E0     ; /*Hex  2^  0   *  1.6A09E667F3BCD */#endif	/* defined(vax)||defined(tahoe) *//********************************************************************************* log - compute a natural logarithm (ANSI)** This routine returns the natural logarithm of <x>* in double precision (IEEE double, 53 bits).** A domain error occurs if the argument is negative.  A range error may occur* if the argument is zero.** INTERNAL:* Method:* (1) Argument Reduction: find <k> and <f> such that:**         x = 2^k * (1+f)**     where:**         sqrt(2)/2 < 1+f < sqrt(2)** (2) Let s = f/(2+f); based on:**         log(1+f) = log(1+s) - log(1-s) = 2s + 2/3 s**3 + 2/5 s**5 + .....**     log(1+f) is computed by:**         log(1+f) = 2s + s*log__L(s*s)**     where:**        log__L(z) = z*(L1 + z*(L2 + z*(... (L6 + z*L7)...)))** (3) Finally:**         log(x) = k*ln2 + log(1+f)**     (Here n*ln2 will be stored*     in two floating-point numbers: n*ln2hi + n*ln2lo; n*ln2hi is exact*     since the last 20 bits of ln2hi is 0.)** INCLUDE FILES: math.h** RETURNS: The double-precision natural logarithm of <x>.** Special cases:*     If <x> < 0 (including -INF), it returns NaN with signal.*     If <x> is +INF, it returns <x> with no signal.*     If <x> is 0, it returns -INF with signal.*     If <x> is NaN it returns <x> with no signal.** SEE ALSO: mathALib** INTERNAL* Coded in C by K.C. Ng, 1/19/85;* Revised by K.C. Ng on 2/7/85, 3/7/85, 3/24/85, 4/16/85.*/double log    (    double x	/* value to compute the natural logarithm of */    )    {	static double zero=0.0, negone= -1.0, half=1.0/2.0;	double logb(),scalb(),copysign(),log__L(),s,z,t;	int k,n,finite();#if !defined(vax)&&!defined(tahoe)	if(x!=x) return(x);	/* x is NaN */#endif	/* !defined(vax)&&!defined(tahoe) */	if(finite(x)) {	   if( x > zero ) {	   /* argument reduction */	      k=logb(x);   x=scalb(x,-k);	      if(k == -1022) /* subnormal no. */		   {n=logb(x); x=scalb(x,-n); k+=n;}	      if(x >= sqrt2 ) {k += 1; x *= half;}	      x += negone ;	   /* compute log(1+x)  */              s=x/(2+x); t=x*x*half;	      z=k*ln2lo+s*(t+log__L(s*s));	      x += (z - t) ;	      return(k*ln2hi+x);	   }	/* end of if (x > zero) */	   else {#if defined(vax)||defined(tahoe)		extern double infnan();		if ( x == zero )		    return (infnan(-ERANGE));	/* -INF */		else		    return (infnan(EDOM));	/* NaN */#else	/* defined(vax)||defined(tahoe) */		/* zero argument, return -INF with signal */		if ( x == zero )		    return( negone/zero );		/* negative argument, return NaN with signal */		else		    return ( zero / zero );#endif	/* defined(vax)||defined(tahoe) */	    }	}    /* end of if (finite(x)) */    /* NOTREACHED if defined(vax)||defined(tahoe) */    /* log(-INF) is NaN with signal */	else if (x<0)	    return(zero/zero);    /* log(+INF) is +INF */	else return(x);    }/* log10.c - math routine *//* Copyright 1992-1993 Wind River Systems, Inc. *//*modification history--------------------01e,05feb93,jdi  doc changes based on kdl review.01d,02dec92,jdi  doc tweaks.01c,28oct92,jdi  documentation cleanup.01b,20sep92,smb  documentation additions01a,08jul92,smb  documentation.*//*DESCRIPTION* Copyright (c) 1985 Regents of the University of California.* All rights reserved.** Redistribution and use in source and binary forms are permitted* provided that the above copyright notice and this paragraph are* duplicated in all such forms and that any documentation,* advertising materials, and other materials related to such* distribution and use acknowledge that the software was developed* by the University of California, Berkeley.  The name of the* University may not be used to endorse or promote products derived* from this software without specific prior written permission.* THIS SOFTWARE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESS OR* IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED* WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE.** All recipients should regard themselves as participants in an ongoing* research project and hence should feel obligated to report their* experiences (good or bad) with these elementary function codes, using* the sendbug(8) program, to the authors.*SEE ALSO: American National Standard X3.159-1989NOMANUAL*/#include "vxWorks.h"#include "math.h"#if defined(vax)||defined(tahoe)	/* VAX D format (56 bits) */#ifdef vax#define _0x(A,B)	0x/**/A/**/B#else	/* vax */#define _0x(A,B)	0x/**/B/**/A#endif	/* vax *//* static double *//* ln10hi =  2.3025850929940456790E0     ; Hex   2^  2   *  .935D8DDDAAA8AC */static long    ln10hix[] = { _0x(5d8d,4113), _0x(a8ac,ddaa)};#define   ln10hi    (*(double*)ln10hix)#else	/* defined(vax)||defined(tahoe) */static doubleivln10 =  4.3429448190325181667E-1    ; /*Hex   2^ -2   *  1.BCB7B1526E50E */#endif	/* defined(vax)||defined(tahoe) *//********************************************************************************* log10 - compute a base-10 logarithm (ANSI)** This routine returns the base 10 logarithm of <x> in* double precision (IEEE double, 53 bits).** A domain error occurs if the argument is negative.  A range error may* if the argument is zero.** INTERNAL:* Method:*                  log(x)*     log10(x) = ---------  or  [1/log(10)]*log(x)*                 log(10)**     [log(10)]   rounded to 56 bits has error  .0895  ulps,*     [1/log(10)] rounded to 53 bits has error  .198   ulps;*     therefore, for better accuracy, in VAX D format, we divide*     log(x) by log(10), but in IEEE Double format, we multiply*     log(x) by [1/log(10)].** INCLUDE FILES: math.h** RETURNS: The double-precision base-10 logarithm of <x>.** Special cases:*     If <x> < 0, log10() returns NaN with signal.*     if <x> is +INF, it returns <x> with no signal.*     if <x> is 0, it returns -INF with signal.*     if <x> is NaN it returns <x> with no signal.** SEE ALSO: mathALib** INTERNAL:* Coded in C by K.C. Ng, 1/20/85;* Revised by K.C. Ng on 1/23/85, 3/7/85, 4/16/85.*/double log10    (    double x	/* value to compute the base-10 logarithm of */    )    {	double log();#if defined(vax)||defined(tahoe)	return(log(x)/ln10hi);#else	/* defined(vax)||defined(tahoe) */	return(ivln10*log(x));#endif	/* defined(vax)||defined(tahoe) */    }/* modf.c - separate floating-point number into integer and fraction parts *//* Copyright 1992-1993 Wind River Systems, Inc. *//*modification history--------------------01i,05feb93,jdi  doc changes based on kdl review.01h,02dec92,jdi  doc tweaks.01g,28oct92,jdi  documentation cleanup.01f,20sep92,smb  documentation additions01e,10sep92,wmd  changed dummy function for i960KB from printf to bcopy.01d,04sep92,wmd  restored to rev 1b, instead modified mathP.h using  _BYTE_ORDER 		 conditionals to flip the contents of struct DOUBLE.  Added a dummy		 printf() in order to force compiler to compile code correctly for i960kb.01c,03sep92,wmd  modified modf() for the i960, word order for DOUBLE is reversed.01b,25jul92,kdl	 replaced modf() routine contents with version from floatLib.c;		 deleted isnan(), iszero(), isinf(), _d_type().01a,08jul92,smb  documentation.*//*DESCRIPTIONSEE ALSO: American National Standard X3.159-1989NOMANUAL*/#include "vxWorks.h"#include "math.h"#include "stddef.h"#include "errno.h"#include "private/mathP.h"/********************************************************************************* modf - separate a floating-point number into integer and fraction parts (ANSI)** This routine stores the integer portion of <value>* in <pIntPart> and returns the fractional portion.* Both parts are double precision and will have the same sign as <value>.** INCLUDE FILES: math.h** RETURNS: The double-precision fractional portion of <value>.** SEE ALSO: frexp(), ldexp()*/double modf    (    double value,               /* value to split                  */    double *pIntPart            /* where integer portion is stored */    )    {    DOUBLE 	dat;    FAST int 	exp;    FAST double fracPart;    FAST double intPart;    int 	negflag = (value < 0);    if (negflag)        value = -value;		/* make it positive */    dat.ddat = value;    /* Separate the exponent, and change it from biased to 2's comp. */    exp = ((dat.ldat.l1 & 0x7ff00000) >> 20) - 1023;#if CPU==I960KB    bcopy ((char *)&negflag, (char *)&negflag, 0);#endif  /* CPU==I960KB - to force gcc960 to compile correct code for the i960kb */        if (exp <= -1)        {	/* If exponent is negative, fracPart == |value|, and intPart == 0. */        fracPart = value;        intPart = 0.;        }    /* clear the fractional part in dat */    else if (exp <= 20)        {        dat.ldat.l1 &= (-1 << (20 - exp));        dat.ldat.l2 = 0;

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
国产精品白丝在线| 久久蜜桃av一区二区天堂| 亚洲综合视频网| 色综合久久久久| 无码av中文一区二区三区桃花岛| 欧美精品日韩精品| 久久99国产精品免费| 欧美极品另类videosde| 在线视频综合导航| 日本午夜一区二区| 国产偷v国产偷v亚洲高清| 99精品欧美一区| 无码av免费一区二区三区试看| 精品国产三级a在线观看| 成人免费va视频| 亚洲综合在线电影| 精品少妇一区二区三区在线视频| 国产在线播放一区三区四| 国产精品色一区二区三区| 在线观看视频一区| 免费观看日韩电影| 国产精品白丝在线| 欧美一区二区精品在线| 成人一区二区在线观看| 一区二区三区精品视频| 欧美大片在线观看一区| 99re66热这里只有精品3直播| 五月婷婷综合网| 欧美激情中文字幕| 91精品在线观看入口| 岛国一区二区三区| 日韩精品一二三四| 国产精品久久久久影视| 日韩一区二区三区四区五区六区| 国产成人在线视频网站| 婷婷丁香久久五月婷婷| 国产精品久久久一本精品| 欧美一区二区三区四区高清| 成人av在线播放网址| 麻豆91在线播放免费| 亚洲免费观看高清完整版在线观看| 91精品欧美综合在线观看最新| 99re视频精品| 国产一区在线不卡| 亚洲成在人线在线播放| 中文字幕欧美国产| 日韩一区二区三区观看| 在线精品国精品国产尤物884a| 国产一区二区三区久久悠悠色av | 久久综合九色综合97_久久久 | 精品在线免费观看| 亚洲国产成人91porn| 中文字幕一区二区不卡| 久久综合九色综合97_久久久| 欧美另类videos死尸| 日本高清不卡在线观看| 成人在线一区二区三区| 国产一区日韩二区欧美三区| 久久精品国产99国产精品| 亚洲国产一区视频| 一区二区免费看| 亚洲日本va午夜在线影院| 中文字幕欧美激情一区| 久久亚洲春色中文字幕久久久| 欧美性猛交xxxxxx富婆| 91视频在线观看免费| 成人黄色在线视频| 国产精品1区2区| 国产乱理伦片在线观看夜一区| 蜜臀va亚洲va欧美va天堂| 日韩av电影免费观看高清完整版| 性欧美疯狂xxxxbbbb| 亚洲电影第三页| 石原莉奈在线亚洲三区| 三级一区在线视频先锋| 午夜私人影院久久久久| 日韩高清一区二区| 日本中文字幕一区| 蜜臀久久久久久久| 久久精品国产亚洲5555| 日韩av电影天堂| 黄页视频在线91| 国产一区二区中文字幕| 国产馆精品极品| 波多野结衣视频一区| 91亚洲精品乱码久久久久久蜜桃| 91碰在线视频| 欧美视频在线一区| 日韩欧美国产一区二区在线播放| 亚洲精品在线观看视频| 国产女人18毛片水真多成人如厕| 国产精品天美传媒沈樵| 一区二区三区四区在线播放 | 日韩av中文在线观看| 麻豆freexxxx性91精品| 国产美女久久久久| 99精品国产热久久91蜜凸| 色哦色哦哦色天天综合| 在线播放亚洲一区| 久久人人超碰精品| 亚洲免费在线视频| 日韩精品免费专区| 国产精品一区二区久久不卡| av资源网一区| 欧美美女网站色| 久久久99精品免费观看不卡| 专区另类欧美日韩| 日本三级韩国三级欧美三级| 国产一区二区三区最好精华液| 高清不卡一区二区在线| 欧美日韩激情在线| 久久综合成人精品亚洲另类欧美| 成人免费在线观看入口| 日本系列欧美系列| 99国产精品久久久久久久久久| 欧美三级电影在线观看| 久久伊人蜜桃av一区二区| 亚洲欧美日韩在线不卡| 毛片av一区二区| 91视频免费播放| 精品精品国产高清一毛片一天堂| 中文字幕在线观看一区二区| 肉丝袜脚交视频一区二区| 成人av综合一区| 欧美一区二区成人| 亚洲精品一二三| 国内精品写真在线观看| 欧美丝袜第三区| 国产精品灌醉下药二区| 久久国内精品视频| 色久综合一二码| 国产午夜久久久久| 日本系列欧美系列| 欧美撒尿777hd撒尿| 中文字幕乱码亚洲精品一区| 看国产成人h片视频| 在线精品视频小说1| 国产精品久久久久久久久图文区 | 国产精品一色哟哟哟| 777色狠狠一区二区三区| 中文字幕一区日韩精品欧美| 裸体一区二区三区| 欧美嫩在线观看| 一区二区三区精品视频在线| av在线不卡免费看| 国产三级一区二区| 久久成人免费网站| 欧美丰满少妇xxxxx高潮对白 | 亚洲一区精品在线| 99国产麻豆精品| 中文字幕一区二区三区不卡在线| 国产精品资源在线看| 日韩欧美国产系列| 免费观看成人av| 日韩视频一区二区在线观看| 亚洲超碰精品一区二区| 在线免费视频一区二区| 亚洲欧美日韩国产中文在线| 97久久超碰国产精品| 国产精品久久久久久久久果冻传媒 | 国产精品久久久久一区二区三区| 国产精品一二一区| 久久夜色精品国产欧美乱极品| 蜜桃精品视频在线观看| 欧美一区二区三区性视频| 日韩福利视频导航| 日韩区在线观看| 久久国产人妖系列| 亚洲精品一区二区三区影院 | 欧美老肥妇做.爰bbww| 五月天丁香久久| 日韩一级在线观看| 韩国女主播一区| 久久久久久久性| 成人黄色网址在线观看| 中国色在线观看另类| www.66久久| 亚洲小少妇裸体bbw| 91精品国产综合久久国产大片| 日本一不卡视频| 久久久精品国产免大香伊| va亚洲va日韩不卡在线观看| 亚洲美女屁股眼交| 欧美日韩亚州综合| 久久福利视频一区二区| 久久老女人爱爱| 99久久伊人精品| 亚洲大尺度视频在线观看| 日韩欧美你懂的| 成人不卡免费av| 亚洲一区二区三区四区中文字幕| 91麻豆精品国产综合久久久久久| 精品在线免费观看| 亚洲天堂av一区| 91精品婷婷国产综合久久性色| 国内精品免费**视频| 综合欧美亚洲日本| 欧美一区二区三区色| 懂色av中文一区二区三区 | 日韩欧美一区二区三区在线|