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-11-12 15:46:50 +01:00
2011-06-24 00:29:21 +02:00
2011-10-19 16:53:18 +02:00
2011-12-15 20:26:17 +01:00
2011-12-24 13:12:01 +01:00
2011-08-14 11:39:31 +02:00
2011-11-11 21:44:56 +01:00
2012-01-14 11:53:29 +01:00
2011-04-20 01:37:48 +02:00
2011-04-20 01:37:48 +02:00
2011-04-20 01:37:48 +02:00
2012-01-23 03:39:37 +01:00
2011-11-14 14:25:09 +01:00
2012-01-12 22:20:29 +01:00
2011-01-07 17:09:39 +01:00
2011-07-05 20:24:20 +02:00
2011-11-14 14:25:09 +01:00
2010-12-01 01:22:55 +01:00
2011-12-13 01:26:53 +01:00
2010-05-06 11:34:04 +05:30
2010-05-06 11:34:04 +05:30
2011-12-15 20:51:35 +01:00
2010-09-24 09:19:57 +02:00
2010-09-21 11:22:52 +02:00
2011-11-08 19:46:41 +01:00
2011-04-11 23:01:51 +02:00
2011-10-05 23:18:22 +02:00
2012-01-24 14:49:31 +01:00
2012-01-22 16:43:14 +01:00
2012-01-18 14:04:52 +01:00