Joel Becker e798b3f8a9 ocfs2: Don't hand-code xor in ocfs2_hamming_encode().
When I wrote ocfs2_hamming_encode(), I was following documentation of
the algorithm and didn't have quite the (possibly still imperfect) grasp
of it I do now.  As part of this, I literally hand-coded xor.  I would
test a bit, and then add that bit via xor to the parity word.

I can, of course, just do a single xor of the parity word and the source
word (the code buffer bit offset).  This cuts CPU usage by 53% on a
mostly populated buffer (an inode containing utmp.h inline).

Joel

Signed-off-by: Joel Becker <joel.becker@oracle.com>
Signed-off-by: Mark Fasheh <mfasheh@suse.com>
2009-01-05 08:40:34 -08:00
..
2008-12-25 11:40:09 +11:00
2008-11-14 11:29:12 +11:00
2008-11-20 08:11:52 +11:00
2008-08-20 15:40:32 -07:00
2008-10-13 09:47:43 +11:00
2008-11-25 16:51:45 -08:00
2008-12-31 18:07:43 -05:00
2008-11-14 10:39:25 +11:00
2009-01-05 08:40:30 -08:00
2008-12-31 18:07:44 -05:00
2008-12-30 16:51:43 -05:00
2008-12-30 16:51:43 -05:00
2008-10-17 02:38:36 +11:00
2008-12-01 19:55:25 -08:00
2008-11-18 15:08:56 +01:00
2008-12-04 17:16:36 +11:00
2008-12-29 16:47:18 +11:00
2008-12-29 08:29:50 +01:00
2008-12-31 18:07:43 -05:00
2009-01-03 11:45:54 -08:00
2008-12-29 08:29:53 +01:00
2008-10-23 05:12:59 -04:00
2008-12-31 18:07:38 -05:00
2008-12-25 11:40:09 +11:00
2008-12-31 18:07:43 -05:00
2008-12-31 18:07:41 -05:00
2009-01-04 15:14:41 -05:00
2008-10-30 11:38:45 -07:00