Module Name: src Committed By: matt Date: Sun Feb 5 17:45:38 UTC 2012
Modified Files: src/sys/arch/vax/include: math.h Log Message: Define __INFINITY as huge_val since VAX FP doesn't have infinities. To generate a diff of this commit: cvs rdiff -u -r1.5 -r1.6 src/sys/arch/vax/include/math.h Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
Modified files: Index: src/sys/arch/vax/include/math.h diff -u src/sys/arch/vax/include/math.h:1.5 src/sys/arch/vax/include/math.h:1.6 --- src/sys/arch/vax/include/math.h:1.5 Sun Dec 11 12:19:34 2005 +++ src/sys/arch/vax/include/math.h Sun Feb 5 17:45:38 2012 @@ -1,6 +1,15 @@ -/* $NetBSD: math.h,v 1.5 2005/12/11 12:19:34 christos Exp $ */ +/* $NetBSD: math.h,v 1.6 2012/02/05 17:45:38 matt Exp $ */ +#ifndef _VAX_MATH_H_ +#define _VAX_MATH_H_ + +#include <sys/cdefs.h> + +#if __GNUC_PREREQ__(3, 3) +#define __INFINITY __builtin_huge_valf() +#else #define __INFINITY 1.0E+39F +#endif #define __isinf(__x) (0) #define __isnan(__x) (0) @@ -15,3 +24,5 @@ #define FP_DIRTYZERO 0x80 #define FP_ROP 0x81 #endif + +#endif /* _VAX_MATH_H_ */