Source-Changes-HG archive

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

[src/trunk]: src/sys/arch/powerpc/ibm4xx/dev Use __builtin_clz instead of our...



details:   https://anonhg.NetBSD.org/src/rev/48ca5d42e7f5
branches:  trunk
changeset: 766190:48ca5d42e7f5
user:      matt <matt%NetBSD.org@localhost>
date:      Sat Jun 18 08:17:58 2011 +0000

description:
Use __builtin_clz instead of our own cntlzw

diffstat:

 sys/arch/powerpc/ibm4xx/dev/mal.c |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (27 lines):

diff -r 4955bf24eee2 -r 48ca5d42e7f5 sys/arch/powerpc/ibm4xx/dev/mal.c
--- a/sys/arch/powerpc/ibm4xx/dev/mal.c Sat Jun 18 08:08:27 2011 +0000
+++ b/sys/arch/powerpc/ibm4xx/dev/mal.c Sat Jun 18 08:17:58 2011 +0000
@@ -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 *);



Home | Main Index | Thread Index | Old Index