Commit Graph

4 Commits

Author SHA1 Message Date
Marcel Cornu
9d99f8215d examples: reformat using new code style
Signed-off-by: Marcel Cornu <marcel.d.cornu@intel.com>
2024-04-22 11:35:03 +02:00
Greg Tucker
9edac4799d ex: Allow erasure list in any order in ec example
Previous gf_gen_decode_matrix_simple() assumed that all source errors
were listed first before any erasures in parity.  Generalized to work
in any order.

Change-Id: I31b9c0c0db5d0155473424ccd0ecdcdd787ef71f
Signed-off-by: Greg Tucker <greg.b.tucker@intel.com>
2018-05-25 14:44:50 -07:00
Greg Tucker
4c4185ba56 ex: Fix ec example for random params, min parity 1
Keep from trying to alloc 0 bytes for parity = 0.

Change-Id: Iafb9eeb9ac9da85f521ac5eeb4e85ea80c5b6e4c
Signed-off-by: Greg Tucker <greg.b.tucker@intel.com>
2018-05-01 10:56:23 -07:00
Greg Tucker
041379a6c6 ec: New simple erasure coding example prog
Change-Id: Ic3090a9315c8c0fa7bf910c2855e95fbabea7f7a
Signed-off-by: Greg Tucker <greg.b.tucker@intel.com>
2018-03-29 10:35:24 -07:00