Date: Fri, 20 Mar 2009 14:32:51 +0000 (UTC) From: Ed Schouten <ed@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r190158 - head/sys/dev/syscons/teken Message-ID: <200903201432.n2KEWpno005170@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: ed Date: Fri Mar 20 14:32:51 2009 New Revision: 190158 URL: http://svn.freebsd.org/changeset/base/190158 Log: Small cleanup to previous commit. Just use % 8, instead of & 0x7. This makes it easier to understand. Modified: head/sys/dev/syscons/teken/teken_subr.h Modified: head/sys/dev/syscons/teken/teken_subr.h ============================================================================== --- head/sys/dev/syscons/teken/teken_subr.h Fri Mar 20 14:31:08 2009 (r190157) +++ head/sys/dev/syscons/teken/teken_subr.h Fri Mar 20 14:32:51 2009 (r190158) @@ -38,7 +38,7 @@ teken_tab_isset(teken_t *t, unsigned int unsigned int b, o; if (col >= T_NUMCOL) - return ((col & 0x7) == 0); + return ((col % 8) == 0); b = col / (sizeof(unsigned int) * 8); o = col % (sizeof(unsigned int) * 8);
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200903201432.n2KEWpno005170>