Vladimir 'phcoder' Serbinenko bb26e4ff16 Use static allocation rather than scratch pointer in reed_solomon.
It decreases its size significantly and avoids a variable in .text.

	* grub-core/lib/reed_solomon.c (scratch): Removed.
	(chosenstat): New const or static array.
	(sigma): Likewise.
	(errpot): Likewise.
	(errpos): Likewise.
	(sy): Likewise.
	(mstat): Likewise.
	(errvals): Likewise.
	(eqstat): Likewise.
	(pol_evaluate): Replace x with log_x argument. All users updated.
	(syndroms): Removed.
	(gauss_solve): Use statically allocated arrays.
	(rs_recover): Likewise.
	Calculate syndroms directly.
	(decode_block): Use statically allocated arrays.
	(grub_reed_solomon_add_redundancy) [TEST]: Fix -DTEST compilation.
	(main) [TEST]: Allow -DTEST -DSTANDALONE.
2012-01-24 14:49:31 +01:00
..
2011-05-13 16:36:05 +02:00
2011-10-19 16:53:18 +02:00
2010-08-30 00:54:15 +02:00
2011-07-05 20:24:20 +02:00
2010-12-01 01:22:55 +01:00
2010-05-06 11:34:04 +05:30
2011-12-15 20:51:35 +01:00
2010-09-21 11:22:52 +02:00
2011-10-05 23:18:22 +02:00