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

📄 isinf.c

📁 操作系统SunOS 4.1.3版本的源码
💻 C
字号:
#if !defined(lint) && defined(SCCSIDS)static	char sccsid[] = "@(#)isinf.c 1.1 92/07/30 SMI";#endif/* * Recognize an infinity or a NaN when one is presented. * This is for keeping various IO routines out of trouble  */intisinf( d0, d1 )    unsigned d0,d1;    /* a lie -- actually its a ``double'' */{    if (d1 != 0 ) return 0; /* nope -- low-order must be all zeros */    if (d0 != 0x7ff00000 && d0 != 0xfff00000) return 0; /* nope */    return 1;}intisnan( d0,d1 )    unsigned d0,d1;    /* a lie -- actually its a ``double'' */{#define EXPONENT 0x7ff00000#define SIGN     0x80000000    if ((d0 & EXPONENT) != EXPONENT ) return 0; /* exponent wrong */    if ((d0 & ~(EXPONENT|SIGN)) == 0 && d1 == 0 ) return 0; /* must have bits */    return 1;}

⌨️ 快捷键说明

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