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

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

?? strtod.c

?? vxwork源代碼
?? C
字號:
/* strtod.c function for stdlib  *//* Copyright 1992-1995 Wind River Systems, Inc. *//*modification history--------------------01e,11feb95,jdi  doc fix.01d,16aug93,dvs  fixed value of endptr for strings that start with d, D, e, or E		 (SPR #2229)01c,08feb93,jdi  documentation cleanup for 5.1.01b,20sep92,smb  documentation additions.01a,19jul92,smb  written  and documented*//*DESCRIPTIONINCLUDE FILES: stdlib.h, math.h, assert.h, arrno.hSEE ALSO: American National Standard X3.159-1989NOMANUAL*/#include "vxWorks.h"#include "stdlib.h"#include "math.h"#include "errno.h"#define Ise(c)          ((c == 'e') || (c == 'E') || (c == 'd') || (c == 'D'))#define Isdigit(c)      ((c <= '9') && (c >= '0'))#define Isspace(c)      ((c == ' ') || (c == '\t') || (c=='\n') || (c=='\v') \			 || (c == '\r') || (c == '\f'))#define Issign(c)       ((c == '-') || (c == '+'))#define Val(c)          ((c - '0'))#define MAXE  308#define MINE  (-308)static double powtab[] = {1.0,		          10.0,			  100.0,			  1000.0,			  10000.0};/* flags */#define SIGN    0x01#define ESIGN   0x02#define DECP    0x04/* locals */int             __ten_mul (double *acc, int digit);double          __adjust (double *acc, int dexp, int sign);double          __exp10 (uint_t x);/******************************************************************************* strtod - convert the initial portion of a string to a double (ANSI) ** This routine converts the initial portion of a specified string <s> to a* double.  First, it decomposes the input string into three parts:  an initial, * possibly empty, sequence of white-space characters (as specified by the * isspace() function); a subject sequence resembling a floating-point* constant; and a final string of one or more unrecognized characters, * including the terminating null character of the input string.  Then, it* attempts to convert the subject sequence to a floating-point number, and * returns the result.** The expected form of the subject sequence is an optional plus or minus* decimal-point character, then an optional exponent part but no floating* suffix.  The subject sequence is defined as the longest initial* subsequence of the input string, starting with the first non-white-space* character, that is of the expected form.  The subject sequence contains* no characters if the input string is empty or consists entirely of * white space, or if the first non-white-space character is other than a * sign, a digit, or a decimal-point character.** If the subject sequence has the expected form, the sequence of characters* starting with the first digit or the decimal-point character (whichever* occurs first) is interpreted as a floating constant, except that the * decimal-point character is used in place of a period, and that if neither* an exponent part nor a decimal-point character appears, a decimal point is* assumed to follow the last digit in the string.  If the subject sequence* begins with a minus sign, the value resulting form the conversion is negated.* A pointer to the final string is stored in the object pointed to by <endptr>,* provided that <endptr> is not a null pointer.** In other than the "C" locale, additional implementation-defined subject* sequence forms may be accepted.  VxWorks supports only the "C" locale.** If the subject sequence is empty or does not have the expected form, no* conversion is performed; the value of <s> is stored in the object pointed* to by <endptr>, provided that <endptr> is not a null pointer.** INCLUDE FILES: stdlib.h ** RETURNS:* The converted value, if any.  If no conversion could be performed, it* returns zero.  If the correct value is outside the range of representable* values, it returns plus or minus HUGE_VAL (according to the sign of the* value), and stores the value of the macro ERANGE in `errno'.  If the* correct value would cause underflow, it returns zero and stores the value* of the macro ERANGE in `errno'.**/double strtod     (    const char * s,	/* string to convert */    char **      endptr	/* ptr to final string */    )    {    /* Note that the point positioning is locale dependant */    const char *start     = s;    double      accum     = 0.0;    int         flags     = 0;    int         texp      = 0;    int         e         = 0;    BOOL        conv_done = FALSE;    while (Isspace (*s)) s++;    if (*s == EOS)	{   /* just leading spaces */	if (endptr != NULL) 	    *endptr = CHAR_FROM_CONST (start);	return (0.0);	}    if (Issign (*s))	{	if (*s == '-') flags = SIGN;	if (*++s == EOS)	    {   /* "+|-" : should be an error ? */	    if (endptr != NULL) 		*endptr = CHAR_FROM_CONST (start);	    return (0.0);	    }	}    /* added code to fix problem with leading e, E, d, or D */    if ( !Isdigit (*s) && (*s != '.'))	{	if (endptr != NULL)	    *endptr = CHAR_FROM_CONST (start);	return (0.0);	}    for ( ; (Isdigit (*s) || (*s == '.')); s++)	{	conv_done = TRUE;	if (*s == '.')	    flags |= DECP;	else	    {	    if ( __ten_mul (&accum, Val(*s)) ) 		texp++;	    if (flags & DECP) 		texp--;	    }	}    if (Ise (*s))	{	conv_done = TRUE;	if (*++s != EOS)             /* skip e|E|d|D */	    {                         /* ! ([s]xxx[.[yyy]]e)  */	    while (Isspace (*s)) s++; /* Ansi allows spaces after e */	    if (*s != EOS)		{                     /*  ! ([s]xxx[.[yyy]]e[space])  */		if (Issign (*s))		    if (*s++ == '-') flags |= ESIGN;		if (*s != EOS)                                      /*  ! ([s]xxx[.[yyy]]e[s])  -- error?? */		    {                		    for(; Isdigit (*s); s++)                                      /* prevent from grossly overflowing */			if (e < MAXE) 			    e = e*10 + Val (*s);		                      /* dont care what comes after this */		    if (flags & ESIGN)			texp -= e;		    else			texp += e;		    }		}	    }	}    if (endptr != NULL)	*endptr = CHAR_FROM_CONST ((conv_done) ? s : start);    return (__adjust (&accum, (int) texp, (int) (flags & SIGN)));    }/********************************************************************************* __ten_mul -** multiply 64 bit accumulator by 10 and add digit.* The KA/CA way to do this should be to use* a 64-bit integer internally and use "adjust" to* convert it to float at the end of processing.** AUTHOR:* Taken from cygnus.** RETURNS:* NOMANUAL*/LOCAL int __ten_mul     (    double *acc,    int     digit    )    {    *acc *= 10;    *acc += digit;    return (0);     /* no overflow */    }/********************************************************************************* __adjust -** return (*acc) scaled by 10**dexp.** AUTHOR:* Taken from cygnus.** RETURNS:* NOMANUAL*/LOCAL double __adjust     (    double *acc,	/* *acc    the 64 bit accumulator */    int     dexp,   	/* dexp    decimal exponent       */    int     sign	/* sign    sign flag              */    )    {    double  r;    if (dexp > MAXE)	{	errno = ERANGE;	return (sign) ? -HUGE_VAL : HUGE_VAL;	}    else if (dexp < MINE)	{	errno = ERANGE;	return 0.0;	}    r = *acc;    if (sign)	r = -r;    if (dexp==0)	return r;    if (dexp < 0)	return r / __exp10 (abs (dexp));    else	return r * __exp10 (dexp);    }/********************************************************************************* __exp10 -**  compute 10**x by successive squaring.** AUTHOR:* Taken from cygnus.** RETURNS:* NOMANUAL*/double __exp10     (    uint_t x    )    {    if (x < (sizeof (powtab) / sizeof (double)))	return (powtab [x]);    else if (x & 1)	return (10.0 * __exp10 (x-1));    else	return (__exp10 (x/2) * __exp10 (x/2));    }

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
91国在线观看| 日韩黄色小视频| 韩国中文字幕2020精品| 日韩欧美国产一二三区| 精品一区二区精品| 26uuu精品一区二区| 丁香婷婷综合色啪| 亚洲精品亚洲人成人网| 欧美在线色视频| 另类的小说在线视频另类成人小视频在线| 欧美一区二区三区不卡| 国产精品一区二区男女羞羞无遮挡| 久久网站热最新地址| 成人毛片在线观看| 亚洲精品国产视频| 日韩精品专区在线| 成人av资源站| 日本特黄久久久高潮| 国产亚洲人成网站| 色噜噜偷拍精品综合在线| 日本麻豆一区二区三区视频| 国产欧美一区在线| 欧美日韩国产片| 粉嫩久久99精品久久久久久夜 | 黑人精品欧美一区二区蜜桃| 国产亚洲精品中文字幕| 91在线观看污| 久久精品国产色蜜蜜麻豆| 国产精品久久久久久久午夜片| 欧美日韩日日骚| 粉嫩一区二区三区在线看| 亚洲国产日韩在线一区模特| 久久久久高清精品| 欧美三区免费完整视频在线观看| 国产一二三精品| 亚洲一二三四久久| 国产精品色哟哟网站| 欧美一区二区成人6969| 99视频有精品| 激情综合色综合久久| 亚洲一区二区三区精品在线| 国产区在线观看成人精品| 欧美日韩国产区一| 91香蕉视频在线| 国产一区二区福利| 天涯成人国产亚洲精品一区av| 中文字幕高清不卡| 日韩午夜电影av| 在线观看成人免费视频| 国产成人超碰人人澡人人澡| 日韩国产欧美三级| 国产亚洲欧美在线| 精品精品欲导航| 91精品国产色综合久久久蜜香臀| 91麻豆精东视频| 成人精品亚洲人成在线| 九九**精品视频免费播放| 日韩一区欧美二区| 亚洲成人黄色影院| 亚洲一区二区三区在线看| 国产精品国产三级国产aⅴ入口 | 色av成人天堂桃色av| 国产69精品久久99不卡| 久久激五月天综合精品| 香蕉成人伊视频在线观看| 一区二区高清视频在线观看| 亚洲女厕所小便bbb| 综合色中文字幕| 亚洲色欲色欲www| 亚洲欧美电影一区二区| 亚洲天堂精品在线观看| 国产欧美一区二区三区鸳鸯浴| 精品国产成人系列| 久久久精品日韩欧美| 久久久国产午夜精品 | 高清shemale亚洲人妖| 精品一二三四区| 国内一区二区视频| 国产成人aaa| 成人毛片视频在线观看| 成人av网站在线观看免费| 成人黄色一级视频| a在线欧美一区| 日本丰满少妇一区二区三区| 日本高清不卡在线观看| 欧美午夜精品免费| 在线不卡的av| 精品免费99久久| 久久久影视传媒| 国产精品美女www爽爽爽| 国产精品乱人伦中文| 亚洲精品视频免费看| 亚洲国产欧美在线| 麻豆精品视频在线观看| 玖玖九九国产精品| 懂色av一区二区在线播放| 白白色亚洲国产精品| 在线观看中文字幕不卡| 日韩视频中午一区| 中文字幕免费一区| 亚洲激情自拍视频| 日本亚洲一区二区| 国产成人av一区二区三区在线观看| 国产不卡视频一区| 欧美三级日韩在线| 日韩精品一区二区三区在线观看 | 欧美一级在线免费| 久久九九国产精品| 一区二区三区四区不卡视频| 三级在线观看一区二区| 国产精品一卡二| 91成人网在线| 欧美成人三级电影在线| 专区另类欧美日韩| 日本欧美一区二区在线观看| 成人免费视频视频在线观看免费| 在线免费精品视频| 欧美v国产在线一区二区三区| 欧美—级在线免费片| 亚洲a一区二区| 国产精品18久久久久久久久| 色就色 综合激情| 26uuu精品一区二区在线观看| 一区二区三区精密机械公司| 日韩国产精品久久| 播五月开心婷婷综合| 91麻豆精品久久久久蜜臀| 国产精品午夜电影| 免费成人你懂的| 在线观看区一区二| 亚洲国产高清在线观看视频| 午夜精品视频一区| 91美女片黄在线观看| 久久精品一二三| 欧美a级理论片| 91浏览器在线视频| 久久久精品中文字幕麻豆发布| 午夜精品久久久久久久| 99久久久无码国产精品| 久久综合久久99| 免费观看一级特黄欧美大片| 91丝袜高跟美女视频| 国产精品网站导航| 精品在线播放午夜| 欧美一区二区三区电影| 亚洲福利视频导航| 色婷婷一区二区三区四区| 国产精品天美传媒| 国产精品996| 久久一区二区三区国产精品| 亚洲超碰精品一区二区| 在线影院国内精品| 亚洲色图欧洲色图| bt7086福利一区国产| 国产精品久久久久7777按摩 | 亚洲成人综合视频| 欧美一a一片一级一片| 亚洲欧美激情在线| youjizz久久| 国产欧美视频一区二区| 国产露脸91国语对白| 精品久久免费看| 国产一区二区三区在线观看免费 | 国产精品一二三| 久久综合久色欧美综合狠狠| 久久精品噜噜噜成人88aⅴ| 欧美一卡二卡在线| 美女精品一区二区| 精品国产一二三区| 国产乱码精品一区二区三区五月婷| 欧美va天堂va视频va在线| 久久草av在线| 国产日韩欧美在线一区| 国产福利一区二区三区视频在线| 久久久国产精品午夜一区ai换脸| 国产激情一区二区三区| 国产精品视频一二三| 99亚偷拍自图区亚洲| 亚洲精品乱码久久久久| 欧美三级韩国三级日本三斤| 天天综合网 天天综合色| 欧美一级黄色录像| 国产自产2019最新不卡| 国产精品成人一区二区三区夜夜夜| 成人sese在线| 亚洲一级电影视频| 日韩视频永久免费| 国产专区欧美精品| 自拍偷在线精品自拍偷无码专区| 91麻豆免费视频| 日韩激情视频网站| 国产欧美日韩麻豆91| 色综合色综合色综合| 午夜精品久久久久久久久久久| 日韩欧美亚洲另类制服综合在线| 国产精品一区二区91| 日韩理论片在线| 7777精品伊人久久久大香线蕉经典版下载 | ww久久中文字幕| av亚洲精华国产精华精华|