isinf.c

来自「minix操作系统最新版本(3.1.1)的源代码」· C语言 代码 · 共 32 行

C
32
字号
/*libc/ieee_float/isinf.cCreated:	Oct 14, 1993 by Philip Homburg <philip@cs.vu.nl>Implementation of isinf that directly tests the bits in an ieee float*/#define _MINIX_SOURCE#include <sys/types.h>#include <math.h>#include "ieee_float.h"int isinf(value)double value;{	struct f64 *f64p;	int exp;	f64p= (struct f64 *)&value;	exp= F64_GET_EXP(f64p);	if (exp != F64_EXP_MAX)		return 0;	return F64_GET_MANT_LOW(f64p) == 0 && F64_GET_MANT_HIGH(f64p) == 0;}/* * $PchId: isinf.c,v 1.3 1996/02/22 21:01:39 philip Exp $ */

⌨️ 快捷键说明

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