mirror of https://github.com/status-im/leopard.git
WIP
This commit is contained in:
parent
49e5e542d9
commit
9c193ab0d8
|
@ -833,17 +833,9 @@ void Encode(
|
|||
{
|
||||
const ffe_t skew = skewLUT[j];
|
||||
|
||||
if (skew != kModulus)
|
||||
{
|
||||
for (unsigned i = j - width; i < j; ++i)
|
||||
ifft_butterfly(work[i], work[i + width], skew, buffer_bytes);
|
||||
}
|
||||
else
|
||||
{
|
||||
for (unsigned i = j - width; i < j; ++i)
|
||||
xor_mem(work[i + width], work[i], buffer_bytes);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
for (unsigned i = m; i + m <= original_count; i += m)
|
||||
|
@ -1030,17 +1022,9 @@ void Decode(
|
|||
{
|
||||
const ffe_t skew = skewLUT[j];
|
||||
|
||||
if (skew != kModulus)
|
||||
{
|
||||
for (unsigned i = j, count = j + width; i < count; ++i)
|
||||
fft_butterfly(work[i], work[i + width], skew, buffer_bytes);
|
||||
}
|
||||
else
|
||||
{
|
||||
for (unsigned i = j, count = j + width; i < count; ++i)
|
||||
xor_mem(work[i + width], work[i], buffer_bytes);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// Reveal erasures
|
||||
|
|
Loading…
Reference in New Issue