⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 s_infconst.c

📁 Newlib 嵌入式 C库 标准实现代码
💻 C
字号:
/* Infinity as a constant value.   This is used for HUGE_VAL. * Added by Cygnus Support. */#include <float.h>#include "fdlibm.h"/* Float version of infinity.  */const union __fmath __infinityf[1] = {{{0x7f800000}}};/* Double version of infinity.  */#ifndef _DOUBLE_IS_32BITS #ifdef __IEEE_BIG_ENDIAN  const union __dmath __infinity[1] = {{{0x7ff00000, 0}}}; #else  const union __dmath __infinity[1] = {{{0, 0x7ff00000}}}; #endif#else /* defined (_DOUBLE_IS_32BITS) */ const union __dmath __infinity[1] = {{{0x7f800000, 0}}};#endif /* defined (_DOUBLE_IS_32BITS) *//* Long double version of infinity.  */#ifdef __IEEE_BIG_ENDIAN #if LDBL_MANT_DIG == 24  const union __ldmath __infinityld[1] = {{{0x7f800000, 0, 0, 0}}}; #elif LDBL_MANT_DIG == 53  const union __ldmath __infinityld[1] = {{{0x7ff00000, 0, 0, 0}}}; #else  const union __ldmath __infinityld[1] = {{{0x7fff0000, 0, 0, 0}}}; #endif /* LDBL_MANT_DIG size  */#else /* __IEEE_LITTLE_ENDIAN  */ #if LDBL_MANT_DIG == 24  const union __ldmath __infinityld[1] = {{{0x7f800000, 0, 0, 0}}}; #elif LDBL_MANT_DIG == 53  const union __ldmath __infinityld[1] = {{{0, 0x7ff00000, 0, 0}}}; #else  const union __ldmath __infinityld[1] = {{{0, 0x80000000, 0x00007fff, 0}}}; #endif /* LDBL_MANT_DIG size  */#endif /* __IEEE_LITTLE_ENDIAN  */

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -