Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/arch/m68k/fpe Rename modrem -> is_mod for a readability.



details:   https://anonhg.NetBSD.org/src/rev/d854ffcda888
branches:  trunk
changeset: 786649:d854ffcda888
user:      isaki <isaki%NetBSD.org@localhost>
date:      Sun May 05 13:17:15 2013 +0000

description:
Rename modrem -> is_mod for a readability.

diffstat:

 sys/arch/m68k/fpe/fpu_rem.c |  14 +++++++-------
 1 files changed, 7 insertions(+), 7 deletions(-)

diffs (54 lines):

diff -r e91a88deba52 -r d854ffcda888 sys/arch/m68k/fpe/fpu_rem.c
--- a/sys/arch/m68k/fpe/fpu_rem.c       Sun May 05 12:27:38 2013 +0000
+++ b/sys/arch/m68k/fpe/fpu_rem.c       Sun May 05 13:17:15 2013 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: fpu_rem.c,v 1.13 2013/03/26 11:30:21 isaki Exp $       */
+/*     $NetBSD: fpu_rem.c,v 1.14 2013/05/05 13:17:15 isaki Exp $       */
 
 /*
  * Copyright (c) 1995  Ken Nakata
@@ -32,7 +32,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: fpu_rem.c,v 1.13 2013/03/26 11:30:21 isaki Exp $");
+__KERNEL_RCSID(0, "$NetBSD: fpu_rem.c,v 1.14 2013/05/05 13:17:15 isaki Exp $");
 
 #include <sys/types.h>
 #include <sys/signal.h>
@@ -85,10 +85,10 @@
  *                R := 0. Return signQ, last 7 bits of Q, and R.
  */
 
-static struct fpn * __fpu_modrem(struct fpemu *fe, int modrem);
+static struct fpn * __fpu_modrem(struct fpemu *fe, int is_mod);
 
 static struct fpn *
-__fpu_modrem(struct fpemu *fe, int modrem)
+__fpu_modrem(struct fpemu *fe, int is_mod)
 {
        static struct fpn X, Y;
        struct fpn *x, *y, *r;
@@ -157,7 +157,7 @@
        }
  Step4:
        Last_Subtract = 0;
-       if (modrem == 0)
+       if (is_mod)
                goto Step6;
 
        /*
@@ -226,11 +226,11 @@
 struct fpn *
 fpu_rem(struct fpemu *fe)
 {
-       return __fpu_modrem(fe, 1);
+       return __fpu_modrem(fe, 0);
 }
 
 struct fpn *
 fpu_mod(struct fpemu *fe)
 {
-       return __fpu_modrem(fe, 0);
+       return __fpu_modrem(fe, 1);
 }



Home | Main Index | Thread Index | Old Index