Module Name: src Committed By: martin Date: Sat Jan 14 12:00:13 UTC 2017
Modified Files: src/sys/arch/sparc/include: fenv.h Log Message: Make the copies of the FE_* macros match verbatim to avoid a gcc warning when both ieeefp.h and fenv.h are included. To generate a diff of this commit: cvs rdiff -u -r1.1 -r1.2 src/sys/arch/sparc/include/fenv.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/sparc/include/fenv.h diff -u src/sys/arch/sparc/include/fenv.h:1.1 src/sys/arch/sparc/include/fenv.h:1.2 --- src/sys/arch/sparc/include/fenv.h:1.1 Fri May 20 21:42:49 2011 +++ src/sys/arch/sparc/include/fenv.h Sat Jan 14 12:00:13 2017 @@ -1,4 +1,4 @@ -/* $NetBSD: fenv.h,v 1.1 2011/05/20 21:42:49 nakayama Exp $ */ +/* $NetBSD: fenv.h,v 1.2 2017/01/14 12:00:13 martin Exp $ */ /*- * Copyright (c) 2004-2005 David Schultz <d...@freebsd.org> @@ -62,10 +62,10 @@ typedef uint32_t fexcept_t; * We can't just use the hardware bit values here, because that would * make FE_UPWARD and FE_DOWNWARD negative, which is not allowed. */ -#define FE_TONEAREST 0x0 -#define FE_TOWARDZERO 0x1 -#define FE_UPWARD 0x2 -#define FE_DOWNWARD 0x3 +#define FE_TONEAREST 0 /* round to nearest representable number */ +#define FE_TOWARDZERO 1 /* round to zero (truncate) */ +#define FE_UPWARD 2 /* round toward positive infinity */ +#define FE_DOWNWARD 3 /* round toward negative infinity */ #define _ROUND_MASK (FE_TONEAREST | FE_DOWNWARD | \ FE_UPWARD | FE_TOWARDZERO) #define _ROUND_SHIFT 30