Theodore Ts'o f4afb4f4e3 ext4: optimize test_root()
The test_root() function could potentially loop forever due to
overflow issues.  So rewrite test_root() to avoid this issue; as a
bonus, it is 38% faster when benchmarked via a test loop:

int main(int argc, char **argv)
{
	int  i;

	for (i = 0; i < 1 << 24; i++) {
		if (test_root(i, 7))
			printf("%d\n", i);
	}
}

Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
2013-06-06 11:40:37 -04:00
..
2011-07-25 14:30:23 -04:00
2013-06-06 11:40:37 -04:00
2013-05-03 02:15:52 -04:00
2013-05-03 02:15:52 -04:00
2013-06-04 14:46:12 -04:00
2013-04-09 22:48:36 -04:00
2012-12-10 16:30:43 -05:00
2012-12-10 16:30:43 -05:00