Author: pfg
Date: Tue Apr 26 01:52:35 2016
New Revision: 298610
URL: https://svnweb.freebsd.org/changeset/base/298610

Log:
  ddb: Make use of our roundup() macro when available.

Modified:
  head/sys/ddb/db_expr.c

Modified: head/sys/ddb/db_expr.c
==============================================================================
--- head/sys/ddb/db_expr.c      Tue Apr 26 01:41:15 2016        (r298609)
+++ head/sys/ddb/db_expr.c      Tue Apr 26 01:52:35 2016        (r298610)
@@ -154,7 +154,7 @@ db_mult_expr(db_expr_t *valuep)
                else if (t == tPCT)
                    lhs %= rhs;
                else
-                   lhs = ((lhs+rhs-1)/rhs)*rhs;
+                   lhs = roundup(lhs, rhs);
            }
            t = db_read_token();
        }
_______________________________________________
svn-src-head@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/svn-src-head
To unsubscribe, send any mail to "svn-src-head-unsubscr...@freebsd.org"

Reply via email to