Joel Becker
7bb458a585
ocfs2: Another hamming code optimization.
...
In the calc_code_bit() function, we must find all powers of two beneath
the code bit number, *after* it's shifted by those powers of two. This
requires a loop to see where it ends up.
We can optimize it by starting at its most significant bit. This shaves
32% off the time, for a total of 67.6% shaved off of the original, naive
implementation.
Signed-off-by: Joel Becker <joel.becker@oracle.com>
Signed-off-by: Mark Fasheh <mfasheh@suse.com>
2009-01-05 08:40:35 -08:00
..
2009-01-05 08:40:30 -08:00
2008-12-04 17:16:36 +11:00
2009-01-05 08:34:20 -08:00
2009-01-05 08:34:20 -08:00
2009-01-05 08:40:32 -08:00
2009-01-05 08:40:32 -08:00
2009-01-05 08:40:32 -08:00
2007-10-16 09:42:58 -07:00
2009-01-05 08:40:35 -08:00
2009-01-05 08:40:31 -08:00
2009-01-05 08:40:24 -08:00
2009-01-05 08:36:53 -08:00
2008-01-25 14:45:34 -08:00
2006-09-24 13:50:45 -07:00
2009-01-05 08:40:34 -08:00
2009-01-05 08:40:34 -08:00
2009-01-05 08:40:24 -08:00
2009-01-05 08:40:23 -08:00
2008-10-23 05:13:01 -04:00
2007-10-22 08:13:21 -07:00
2009-01-05 08:36:54 -08:00
2009-01-05 08:36:54 -08:00
2009-01-05 08:40:32 -08:00
2009-01-05 08:40:23 -08:00
2008-04-18 08:56:04 -07:00
2008-04-18 08:56:04 -07:00
2009-01-05 08:40:32 -08:00
2009-01-05 08:40:23 -08:00
2008-10-13 17:02:44 -07:00
2008-04-18 08:56:11 -07:00
2009-01-05 08:40:34 -08:00
2009-01-05 08:40:32 -08:00
2009-01-05 08:40:32 -08:00
2008-10-13 13:57:57 -07:00
2008-10-13 13:57:57 -07:00
2008-10-13 13:57:57 -07:00
2009-01-05 08:40:31 -08:00
2008-11-10 09:51:47 -08:00
2006-01-03 11:45:47 -08:00
2009-01-05 08:40:32 -08:00
2007-10-12 11:54:36 -07:00
2008-02-03 17:33:42 +02:00
2009-01-05 08:40:34 -08:00
2009-01-05 08:40:23 -08:00
2008-02-06 16:11:29 -08:00
2009-01-05 08:40:34 -08:00
2009-01-05 08:40:32 -08:00
2009-01-05 08:40:32 -08:00
2009-01-05 08:40:24 -08:00
2009-01-05 08:40:32 -08:00
2008-01-25 15:04:24 -08:00
2009-01-05 08:36:53 -08:00
2008-04-18 08:56:03 -07:00
2008-06-16 10:46:52 -07:00
2008-12-01 14:46:39 -08:00
2008-10-13 17:02:44 -07:00
2008-10-13 13:57:57 -07:00
2009-01-05 08:40:32 -08:00
2009-01-05 08:36:53 -08:00
2009-01-05 08:40:34 -08:00
2007-08-09 17:25:07 -07:00
2009-01-05 08:36:52 -08:00
2007-02-12 09:48:46 -08:00
2008-01-25 15:05:44 -08:00
2006-01-03 11:45:47 -08:00
2008-10-13 17:02:44 -07:00
2008-10-13 13:57:59 -07:00
2008-01-25 15:05:46 -08:00
2006-01-03 11:45:47 -08:00
2009-01-05 08:40:34 -08:00
2009-01-05 08:40:32 -08:00