From: Zeng Zhaoxiu <zhaoxiu.zeng@gmail.com>
To: George Spelvin <linux@horizon.com>,
linux-kernel@vger.kernel.org, zengzhaoxiu@163.com
Cc: akpm@linux-foundation.org, arnd@arndb.de, dvlasenk@redhat.com,
linux-arch@vger.kernel.org, martink@posteo.de, mingo@kernel.org,
sasha.levin@oracle.com, yury.norov@gmail.com
Subject: Re: [PATCH V3 01/29] bitops: add parity functions
Date: Mon, 25 Apr 2016 17:14:11 +0800 [thread overview]
Message-ID: <571DDFE3.9010407@gmail.com> (raw)
In-Reply-To: <20160419184501.13069.qmail@ns.horizon.com>
在 2016年04月20日 02:45, George Spelvin 写道:
>> Add generic odd parity functions, adapted from
>> "https://graphics.stanford.edu/~seander/bithacks.html#ParityParallel"
> Given a PARITY_MAGIC of 0x6996, this is even parity, not odd.
>
> (Which it should be; an XOR of all bits is the "natural" form.)
From "http://www.encyclopedia.com/doc/1O11-oddparity.html", we can get
the definition of "odd parity":
odd parity A property that holds when a group of binary values contains an odd number of 1s.
next prev parent reply other threads:[~2016-04-25 9:14 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-04-14 2:41 [PATCH V3 01/29] bitops: add parity functions zengzhaoxiu
2016-04-19 18:45 ` George Spelvin
2016-04-25 9:14 ` Zeng Zhaoxiu [this message]
2016-04-25 16:17 ` George Spelvin
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=571DDFE3.9010407@gmail.com \
--to=zhaoxiu.zeng@gmail.com \
--cc=akpm@linux-foundation.org \
--cc=arnd@arndb.de \
--cc=dvlasenk@redhat.com \
--cc=linux-arch@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux@horizon.com \
--cc=martink@posteo.de \
--cc=mingo@kernel.org \
--cc=sasha.levin@oracle.com \
--cc=yury.norov@gmail.com \
--cc=zengzhaoxiu@163.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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.