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
..
2012-01-24 14:39:29 +01:00
2012-01-24 13:31:12 +01:00
2012-01-24 13:34:36 +01:00
2012-01-24 13:31:12 +01:00
2012-01-13 15:12:28 +01:00
2011-12-26 12:58:08 +01:00
2012-01-22 16:43:14 +01:00
2012-01-24 13:31:12 +01:00
2011-12-15 19:35:54 +01:00
2011-11-30 16:20:13 +01:00
2011-04-11 23:01:51 +02:00
2011-11-11 21:03:49 +01:00
2012-01-14 15:44:34 +01:00
2012-01-24 13:31:12 +01:00
2012-01-24 14:49:31 +01:00
2012-01-24 13:31:12 +01:00
2011-12-15 20:04:21 +01:00
2012-01-24 13:31:12 +01:00
2012-01-24 13:31:12 +01:00
2011-12-13 14:44:38 +01:00
2011-11-11 21:44:56 +01:00
2012-01-14 15:44:34 +01:00
2012-01-24 13:31:12 +01:00
2012-01-24 13:31:12 +01:00
2011-12-13 20:07:33 +01:00
2011-11-13 22:59:46 +01:00
2010-05-06 11:34:04 +05:30
2010-05-06 11:34:04 +05:30
2011-05-18 12:53:07 +01:00
2010-08-29 16:43:07 +05:30
2011-05-18 12:53:07 +01:00
2011-05-08 18:29:37 +02:00
2011-04-11 23:01:51 +02:00
2011-11-13 22:59:46 +01:00
2011-10-21 00:16:59 +02:00
2011-12-26 13:18:01 +01:00
2011-05-18 01:38:01 +02:00