Date: Tue, 26 Apr 2016 01:52:35 +0000 (UTC) From: "Pedro F. Giffuni" <pfg@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r298610 - head/sys/ddb Message-ID: <201604260152.u3Q1qZrg097318@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
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(); }
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201604260152.u3Q1qZrg097318>