Module Name: src Committed By: matt Date: Sat Jun 18 08:17:58 UTC 2011
Modified Files: src/sys/arch/powerpc/ibm4xx/dev: mal.c Log Message: Use __builtin_clz instead of our own cntlzw To generate a diff of this commit: cvs rdiff -u -r1.2 -r1.3 src/sys/arch/powerpc/ibm4xx/dev/mal.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
Modified files: Index: src/sys/arch/powerpc/ibm4xx/dev/mal.c diff -u src/sys/arch/powerpc/ibm4xx/dev/mal.c:1.2 src/sys/arch/powerpc/ibm4xx/dev/mal.c:1.3 --- src/sys/arch/powerpc/ibm4xx/dev/mal.c:1.2 Sat Jun 18 06:41:42 2011 +++ src/sys/arch/powerpc/ibm4xx/dev/mal.c Sat Jun 18 08:17:58 2011 @@ -1,4 +1,4 @@ -/* $NetBSD: mal.c,v 1.2 2011/06/18 06:41:42 matt Exp $ */ +/* $NetBSD: mal.c,v 1.3 2011/06/18 08:17:58 matt Exp $ */ /* * Copyright (c) 2010 KIYOHARA Takashi * All rights reserved. @@ -26,7 +26,7 @@ */ #include <sys/cdefs.h> -__KERNEL_RCSID(0, "$NetBSD: mal.c,v 1.2 2011/06/18 06:41:42 matt Exp $"); +__KERNEL_RCSID(0, "$NetBSD: mal.c,v 1.3 2011/06/18 08:17:58 matt Exp $"); #include <sys/param.h> #include <sys/device.h> @@ -39,7 +39,7 @@ #include <powerpc/ibm4xx/dev/malvar.h> #include <powerpc/ibm4xx/spr.h> -#define STAT_TO_CHAN(stat) cntlzw(stat) +#define STAT_TO_CHAN(stat) __builtin_clz(stat) static int mal_txeob_intr(void *);