Module Name: src
Committed By: chs
Date: Sat Mar 11 01:25:04 UTC 2017
Modified Files:
src/lib/libc/arch/sh3/gen: flt_rounds.c
Log Message:
fix the mapping table. this sh3 version was originally copied from arm,
but FP_RP and FP_RM have opposite values on sh3 vs. arm.
To generate a diff of this commit:
cvs rdiff -u -r1.6 -r1.7 src/lib/libc/arch/sh3/gen/flt_rounds.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/lib/libc/arch/sh3/gen/flt_rounds.c
diff -u src/lib/libc/arch/sh3/gen/flt_rounds.c:1.6 src/lib/libc/arch/sh3/gen/flt_rounds.c:1.7
--- src/lib/libc/arch/sh3/gen/flt_rounds.c:1.6 Thu Mar 19 21:22:59 2015
+++ src/lib/libc/arch/sh3/gen/flt_rounds.c Sat Mar 11 01:25:04 2017
@@ -1,4 +1,4 @@
-/* $NetBSD: flt_rounds.c,v 1.6 2015/03/19 21:22:59 joerg Exp $ */
+/* $NetBSD: flt_rounds.c,v 1.7 2017/03/11 01:25:04 chs Exp $ */
/*
* Copyright (c) 1996 Mark Brinicombe
@@ -33,7 +33,7 @@
#include <sys/cdefs.h>
#if defined(LIBC_SCCS) && !defined(lint)
-__RCSID("$NetBSD: flt_rounds.c,v 1.6 2015/03/19 21:22:59 joerg Exp $");
+__RCSID("$NetBSD: flt_rounds.c,v 1.7 2017/03/11 01:25:04 chs Exp $");
#endif /* LIBC_SCCS and not lint */
#include "namespace.h"
@@ -42,8 +42,8 @@ __RCSID("$NetBSD: flt_rounds.c,v 1.6 201
static const int map[] = {
1, /* round to nearest */
- 2, /* round to positive infinity */
- 3, /* round to negative infinity */
+ 3, /* round to positive infinity */
+ 2, /* round to negative infinity */
0 /* round to zero */
};