diff for duplicates of <20060125200250.GA26443@flint.arm.linux.org.uk> diff --git a/a/1.txt b/N1/1.txt index cc58eee..fb4a406 100644 --- a/a/1.txt +++ b/N1/1.txt @@ -16,7 +16,7 @@ On Wed, Jan 25, 2006 at 08:32:06PM +0900, Akinobu Mita wrote: > - addr += nr >> 5; > - mask = 1 << (nr & 0x1f); > - return ((mask & *addr) != 0); -> +#if BITS_PER_LONG = 32 +> +#if BITS_PER_LONG == 32 > + s = 16; if (word << 16 != 0) s = 0; b += s; word >>= s; > + s = 8; if (word << 24 != 0) s = 0; b += s; word >>= s; > + s = 4; if (word << 28 != 0) s = 0; b += s; word >>= s; @@ -24,7 +24,7 @@ On Wed, Jan 25, 2006 at 08:32:06PM +0900, Akinobu Mita wrote: > + s = 1; if (word << 31 != 0) s = 0; b += s; > + > + return b; -> +#elif BITS_PER_LONG = 64 +> +#elif BITS_PER_LONG == 64 > + s = 32; if (word << 32 != 0) s = 0; b += s; word >>= s; > + s = 16; if (word << 48 != 0) s = 0; b += s; word >>= s; > + s = 8; if (word << 56 != 0) s = 0; b += s; word >>= s; diff --git a/a/content_digest b/N1/content_digest index 3692929..73a111f 100644 --- a/a/content_digest +++ b/N1/content_digest @@ -14,7 +14,7 @@ Linus Torvalds <torvalds@osdl.org> linux-ia64@vger.kernel.org Hirokazu Takata <takata@linux-m32r.org> - linux-m68k@vger.kernel.org + linux-m68k@lists.linux-m68k.org Greg Ungerer <gerg@uclinux.org> linux-mips@linux-mips.org parisc-linux@parisc-linux.org @@ -47,7 +47,7 @@ "> -\taddr += nr >> 5;\n" "> -\tmask = 1 << (nr & 0x1f);\n" "> -\treturn ((mask & *addr) != 0);\n" - "> +#if BITS_PER_LONG = 32\n" + "> +#if BITS_PER_LONG == 32\n" "> +\ts = 16; if (word << 16 != 0) s = 0; b += s; word >>= s;\n" "> +\ts = 8; if (word << 24 != 0) s = 0; b += s; word >>= s;\n" "> +\ts = 4; if (word << 28 != 0) s = 0; b += s; word >>= s;\n" @@ -55,7 +55,7 @@ "> +\ts = 1; if (word << 31 != 0) s = 0; b += s;\n" "> +\n" "> +\treturn b;\n" - "> +#elif BITS_PER_LONG = 64\n" + "> +#elif BITS_PER_LONG == 64\n" "> +\ts = 32; if (word << 32 != 0) s = 0; b += s; word >>= s;\n" "> +\ts = 16; if (word << 48 != 0) s = 0; b += s; word >>= s;\n" "> +\ts = 8; if (word << 56 != 0) s = 0; b += s; word >>= s;\n" @@ -83,4 +83,4 @@ " Linux kernel 2.6 ARM Linux - http://www.arm.linux.org.uk/\n" maintainer of: 2.6 Serial core -3e358d362769adab001488f6bb590ae73a827cc846c0a0b4966433ccf9b4a1f3 +be9a665fc5a0269f835447b84acc8b6d54b9c063a36f69aa94822683b8ad3f1b
diff --git a/a/1.txt b/N2/1.txt index cc58eee..fb4a406 100644 --- a/a/1.txt +++ b/N2/1.txt @@ -16,7 +16,7 @@ On Wed, Jan 25, 2006 at 08:32:06PM +0900, Akinobu Mita wrote: > - addr += nr >> 5; > - mask = 1 << (nr & 0x1f); > - return ((mask & *addr) != 0); -> +#if BITS_PER_LONG = 32 +> +#if BITS_PER_LONG == 32 > + s = 16; if (word << 16 != 0) s = 0; b += s; word >>= s; > + s = 8; if (word << 24 != 0) s = 0; b += s; word >>= s; > + s = 4; if (word << 28 != 0) s = 0; b += s; word >>= s; @@ -24,7 +24,7 @@ On Wed, Jan 25, 2006 at 08:32:06PM +0900, Akinobu Mita wrote: > + s = 1; if (word << 31 != 0) s = 0; b += s; > + > + return b; -> +#elif BITS_PER_LONG = 64 +> +#elif BITS_PER_LONG == 64 > + s = 32; if (word << 32 != 0) s = 0; b += s; word >>= s; > + s = 16; if (word << 48 != 0) s = 0; b += s; word >>= s; > + s = 8; if (word << 56 != 0) s = 0; b += s; word >>= s; diff --git a/a/content_digest b/N2/content_digest index 3692929..d35d526 100644 --- a/a/content_digest +++ b/N2/content_digest @@ -4,29 +4,29 @@ "Subject\0Re: [PATCH 3/6] C-language equivalents of include/asm-*/bitops.h\0" "Date\0Wed, 25 Jan 2006 20:02:50 +0000\0" "To\0Akinobu Mita <mita@miraclelinux.com>\0" - "Cc\0linux-kernel@vger.kernel.org" - Richard Henderson <rth@twiddle.net> - Ivan Kokshaysky <ink@jurassic.park.msu.ru> + "Cc\0linux-mips@linux-mips.org" + linux-ia64@vger.kernel.org Ian Molton <spyro@f2s.com> - dev-etrax@axis.com + Andi Kleen <ak@suse.de> David Howells <dhowells@redhat.com> + linuxppc-dev@ozlabs.org + Greg Ungerer <gerg@uclinux.org> + sparclinux@vger.kernel.org + Miles Bader <uclinux-v850@lsi.nec.co.jp> Yoshinori Sato <ysato@users.sourceforge.jp> - Linus Torvalds <torvalds@osdl.org> - linux-ia64@vger.kernel.org Hirokazu Takata <takata@linux-m32r.org> - linux-m68k@vger.kernel.org - Greg Ungerer <gerg@uclinux.org> - linux-mips@linux-mips.org - parisc-linux@parisc-linux.org - linuxppc-dev@ozlabs.org - linux390@de.ibm.com - linuxsh-dev@lists.sourceforge.net linuxsh-shmedia-dev@lists.sourceforge.net - sparclinux@vger.kernel.org + Linus Torvalds <torvalds@osdl.org> + Ivan Kokshaysky <ink@jurassic.park.msu.ru> + Richard Henderson <rth@twiddle.net> + Chris Zankel <chris@zankel.net> + dev-etrax@axis.com ultralinux@vger.kernel.org - Miles Bader <uclinux-v850@lsi.nec.co.jp> - Andi Kleen <ak@suse.de> - " Chris Zankel <chris@zankel.net>\0" + linux-m68k@lists.linux-m68k.org + linux-kernel@vger.kernel.org + linuxsh-dev@lists.sourceforge.net + linux390@de.ibm.com + " parisc-linux@parisc-linux.org\0" "\00:1\0" "b\0" "On Wed, Jan 25, 2006 at 08:32:06PM +0900, Akinobu Mita wrote:\n" @@ -47,7 +47,7 @@ "> -\taddr += nr >> 5;\n" "> -\tmask = 1 << (nr & 0x1f);\n" "> -\treturn ((mask & *addr) != 0);\n" - "> +#if BITS_PER_LONG = 32\n" + "> +#if BITS_PER_LONG == 32\n" "> +\ts = 16; if (word << 16 != 0) s = 0; b += s; word >>= s;\n" "> +\ts = 8; if (word << 24 != 0) s = 0; b += s; word >>= s;\n" "> +\ts = 4; if (word << 28 != 0) s = 0; b += s; word >>= s;\n" @@ -55,7 +55,7 @@ "> +\ts = 1; if (word << 31 != 0) s = 0; b += s;\n" "> +\n" "> +\treturn b;\n" - "> +#elif BITS_PER_LONG = 64\n" + "> +#elif BITS_PER_LONG == 64\n" "> +\ts = 32; if (word << 32 != 0) s = 0; b += s; word >>= s;\n" "> +\ts = 16; if (word << 48 != 0) s = 0; b += s; word >>= s;\n" "> +\ts = 8; if (word << 56 != 0) s = 0; b += s; word >>= s;\n" @@ -83,4 +83,4 @@ " Linux kernel 2.6 ARM Linux - http://www.arm.linux.org.uk/\n" maintainer of: 2.6 Serial core -3e358d362769adab001488f6bb590ae73a827cc846c0a0b4966433ccf9b4a1f3 +b2e2538fadaeb9a2b197e7e6bb0b63edc5ae08c16da754e5d6f573eaf1b82fb8
diff --git a/a/content_digest b/N3/content_digest index 3692929..5f6d494 100644 --- a/a/content_digest +++ b/N3/content_digest @@ -14,7 +14,7 @@ Linus Torvalds <torvalds@osdl.org> linux-ia64@vger.kernel.org Hirokazu Takata <takata@linux-m32r.org> - linux-m68k@vger.kernel.org + linux-m68k@lists.linux-m68k.org Greg Ungerer <gerg@uclinux.org> linux-mips@linux-mips.org parisc-linux@parisc-linux.org @@ -83,4 +83,4 @@ " Linux kernel 2.6 ARM Linux - http://www.arm.linux.org.uk/\n" maintainer of: 2.6 Serial core -3e358d362769adab001488f6bb590ae73a827cc846c0a0b4966433ccf9b4a1f3 +915464bfa3af1216519789d12bbd6105e8a50ac9e059b22430b9ed2b475c7076
diff --git a/a/1.txt b/N4/1.txt index cc58eee..fb4a406 100644 --- a/a/1.txt +++ b/N4/1.txt @@ -16,7 +16,7 @@ On Wed, Jan 25, 2006 at 08:32:06PM +0900, Akinobu Mita wrote: > - addr += nr >> 5; > - mask = 1 << (nr & 0x1f); > - return ((mask & *addr) != 0); -> +#if BITS_PER_LONG = 32 +> +#if BITS_PER_LONG == 32 > + s = 16; if (word << 16 != 0) s = 0; b += s; word >>= s; > + s = 8; if (word << 24 != 0) s = 0; b += s; word >>= s; > + s = 4; if (word << 28 != 0) s = 0; b += s; word >>= s; @@ -24,7 +24,7 @@ On Wed, Jan 25, 2006 at 08:32:06PM +0900, Akinobu Mita wrote: > + s = 1; if (word << 31 != 0) s = 0; b += s; > + > + return b; -> +#elif BITS_PER_LONG = 64 +> +#elif BITS_PER_LONG == 64 > + s = 32; if (word << 32 != 0) s = 0; b += s; word >>= s; > + s = 16; if (word << 48 != 0) s = 0; b += s; word >>= s; > + s = 8; if (word << 56 != 0) s = 0; b += s; word >>= s; diff --git a/a/content_digest b/N4/content_digest index 3692929..0353e70 100644 --- a/a/content_digest +++ b/N4/content_digest @@ -47,7 +47,7 @@ "> -\taddr += nr >> 5;\n" "> -\tmask = 1 << (nr & 0x1f);\n" "> -\treturn ((mask & *addr) != 0);\n" - "> +#if BITS_PER_LONG = 32\n" + "> +#if BITS_PER_LONG == 32\n" "> +\ts = 16; if (word << 16 != 0) s = 0; b += s; word >>= s;\n" "> +\ts = 8; if (word << 24 != 0) s = 0; b += s; word >>= s;\n" "> +\ts = 4; if (word << 28 != 0) s = 0; b += s; word >>= s;\n" @@ -55,7 +55,7 @@ "> +\ts = 1; if (word << 31 != 0) s = 0; b += s;\n" "> +\n" "> +\treturn b;\n" - "> +#elif BITS_PER_LONG = 64\n" + "> +#elif BITS_PER_LONG == 64\n" "> +\ts = 32; if (word << 32 != 0) s = 0; b += s; word >>= s;\n" "> +\ts = 16; if (word << 48 != 0) s = 0; b += s; word >>= s;\n" "> +\ts = 8; if (word << 56 != 0) s = 0; b += s; word >>= s;\n" @@ -83,4 +83,4 @@ " Linux kernel 2.6 ARM Linux - http://www.arm.linux.org.uk/\n" maintainer of: 2.6 Serial core -3e358d362769adab001488f6bb590ae73a827cc846c0a0b4966433ccf9b4a1f3 +a78deee6d992851c3e4845c84c569f3f08058fe7fbcf6351f3030fade0dc3b2a
This is an external index of several public inboxes, see mirroring instructions on how to clone and mirror all data and code used by this external index.