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

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

?? strtod.c

?? vxworks的源代碼
?? 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));    }

?? 快捷鍵說明

復(fù)制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
免费观看久久久4p| 94-欧美-setu| 99精品1区2区| 欧美一区二区国产| 亚洲黄色av一区| 高清在线成人网| 日韩一卡二卡三卡| 亚洲123区在线观看| 99久久免费国产| 久久久久88色偷偷免费| 免费在线看成人av| 在线视频亚洲一区| 日韩一区欧美小说| 丰满少妇久久久久久久| 精品国产123| 日韩电影免费一区| 欧美日韩一区二区三区视频| 国产精品污污网站在线观看| 精品亚洲欧美一区| 日韩午夜av电影| 天堂成人国产精品一区| 色婷婷av一区二区| 亚洲欧美另类图片小说| 成人高清免费观看| 国产欧美日韩一区二区三区在线观看| 美腿丝袜在线亚洲一区| 777午夜精品免费视频| 香蕉影视欧美成人| 欧美性猛交xxxx黑人交| 亚洲一区二区三区视频在线播放| 99国产精品久| 亚洲欧美日韩国产中文在线| 99久久99久久免费精品蜜臀| 中文字幕一区视频| 99久久99久久久精品齐齐| 欧美激情一区二区三区不卡| 国产乱一区二区| 久久久影视传媒| 国产91丝袜在线18| 国产精品久久一卡二卡| 粉嫩av亚洲一区二区图片| 欧美国产国产综合| 国产精品夜夜嗨| 欧美日韩中文字幕精品| 久久久久久久av麻豆果冻| 日韩电影免费在线| 欧美老女人在线| 精品影视av免费| 国产999精品久久| 国产精品成人一区二区三区夜夜夜| 国产成人av自拍| 国产精品丝袜在线| 色婷婷久久综合| 亚洲成人一区二区在线观看| 日韩一区二区高清| 粉嫩一区二区三区性色av| 亚洲免费资源在线播放| 91高清在线观看| 青青草成人在线观看| 久久毛片高清国产| 日本久久一区二区| 免费一级片91| 日韩久久一区二区| 日韩三级在线免费观看| 成人性视频免费网站| 一区二区三区四区在线免费观看 | 国产精品灌醉下药二区| 色综合天天视频在线观看| 日韩在线一二三区| 国产精品美女一区二区在线观看| 欧美做爰猛烈大尺度电影无法无天| 蜜臀av性久久久久av蜜臀妖精| 中文文精品字幕一区二区| 欧美视频一区二区三区四区| 久久成人免费日本黄色| 国产精品久久久久四虎| 日韩久久久久久| 一本久道久久综合中文字幕| 捆绑变态av一区二区三区| 亚洲特黄一级片| 精品区一区二区| 欧美日韩一区高清| 成人av网站免费观看| 男男成人高潮片免费网站| 成人免费小视频| 精品国产成人系列| 欧美日韩三级一区| 97精品久久久久中文字幕| 国产一区二区在线免费观看| 亚洲午夜av在线| 国产精品久久久久桃色tv| 精品久久久三级丝袜| 欧美三级中文字幕| 不卡欧美aaaaa| 国产91精品免费| 国产黄色精品网站| 蜜臀精品一区二区三区在线观看 | 奇米精品一区二区三区在线观看一| 国产精品入口麻豆九色| 精品久久五月天| 91精品国产综合久久精品麻豆 | 精品综合免费视频观看| 亚洲一区二区在线观看视频 | 日韩国产欧美三级| 亚洲一区二区三区自拍| 日韩一区中文字幕| 中文字幕在线一区| 国产精品三级电影| 国产精品成人免费在线| 国产三级一区二区| 久久久五月婷婷| 国产亚洲精品福利| 久久人人爽人人爽| 精品国产一区二区三区不卡| 日韩精品一区二区在线| 欧美哺乳videos| 精品久久久久久久久久久久包黑料 | 亚洲综合图片区| 亚洲欧美一区二区三区国产精品| 亚洲国产高清在线观看视频| 久久久久久久久久久久久夜| 国产午夜亚洲精品午夜鲁丝片| www精品美女久久久tv| 国产亚洲短视频| 国产精品人成在线观看免费 | 欧美一区二区三区四区高清| 91精品国产综合久久精品app| 欧美精品少妇一区二区三区 | 狠狠色狠狠色综合| 国产精品一区免费在线观看| 北条麻妃一区二区三区| 99国产欧美久久久精品| 欧美色手机在线观看| 欧美日韩一区成人| 欧美大片在线观看| 国产欧美精品一区二区色综合 | 91天堂素人约啪| 在线观看成人免费视频| 欧美一区二区三区男人的天堂| 日韩精品一区二| 欧美国产一区在线| 一区二区在线电影| 美女被吸乳得到大胸91| 成人国产在线观看| 欧美日韩一级黄| 久久亚洲综合色| 亚洲乱码国产乱码精品精98午夜| 亚洲gay无套男同| 国产成人av电影| 在线精品视频小说1| 精品少妇一区二区三区免费观看 | 懂色av一区二区三区免费观看| 成人一级黄色片| 欧美一级免费观看| 国产精品福利一区二区三区| 午夜视频一区二区| 成人激情动漫在线观看| 69堂亚洲精品首页| 国产精品理伦片| 日韩av成人高清| 99麻豆久久久国产精品免费| 欧美一级二级在线观看| 中文字幕一区二区三区四区 | 处破女av一区二区| 欧美日韩二区三区| 欧美激情一区在线| 免费看日韩精品| 成人永久免费视频| 日韩欧美一区中文| 亚洲精品一二三| 国产福利精品一区| 欧美日韩精品一二三区| 国产精品国产三级国产aⅴ原创| 日本不卡一区二区| 欧美亚洲愉拍一区二区| 国产精品久久久久国产精品日日| 久久精品99国产精品日本| 欧美日韩久久不卡| 亚洲欧美日韩久久精品| 国产精品99久久久久久久vr| 91精品国产入口在线| 亚洲夂夂婷婷色拍ww47| 99re在线视频这里只有精品| 国产亚洲欧美一级| 久久91精品国产91久久小草| 欧美人与禽zozo性伦| 一区二区三区在线观看国产 | 69堂国产成人免费视频| 亚洲综合免费观看高清在线观看| 成人国产精品免费观看视频| 久久久综合视频| 国产美女在线观看一区| 日韩免费视频一区| 精品一区二区三区在线观看| 日韩三级视频在线看| 麻豆91在线播放免费| 欧美一区二区三区视频免费播放| 亚洲午夜国产一区99re久久| 91久久精品一区二区三区| 亚洲日韩欧美一区二区在线|