Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions LeopardFF16.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1463,7 +1463,7 @@ void ReedSolomonEncode(
work,
recovery_count,
m,
FFTSkew - 1);
(ffe_t*)FFTSkew - 1);
}


Expand Down Expand Up @@ -1731,7 +1731,7 @@ void ReedSolomonDecode(
m + original_count,
work,
n,
FFTSkew - 1);
(ffe_t*)FFTSkew - 1);

// work <- FormalDerivative(work, n)

Expand Down Expand Up @@ -1762,9 +1762,9 @@ void ReedSolomonDecode(
const unsigned output_count = m + original_count;

#ifdef LEO_ERROR_BITFIELD_OPT
FFT_DIT_ErrorBits(buffer_bytes, work, output_count, n, FFTSkew - 1, error_bits);
FFT_DIT_ErrorBits(buffer_bytes, work, output_count, n, (ffe_t*)FFTSkew - 1, error_bits);
#else
FFT_DIT(buffer_bytes, work, output_count, n, FFTSkew - 1);
FFT_DIT(buffer_bytes, work, output_count, n, (ffe_t*)FFTSkew - 1);
#endif

// Reveal erasures
Expand Down
8 changes: 4 additions & 4 deletions LeopardFF8.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1668,7 +1668,7 @@ void ReedSolomonEncode(
work,
recovery_count,
m,
FFTSkew - 1);
(ffe_t*)FFTSkew - 1);
}


Expand Down Expand Up @@ -1883,7 +1883,7 @@ void ReedSolomonDecode(
m + original_count,
work,
n,
FFTSkew - 1);
(ffe_t*)FFTSkew - 1);

// work <- FormalDerivative(work, n)

Expand All @@ -1903,9 +1903,9 @@ void ReedSolomonDecode(
const unsigned output_count = m + original_count;

#ifdef LEO_ERROR_BITFIELD_OPT
FFT_DIT_ErrorBits(buffer_bytes, work, output_count, n, FFTSkew - 1, error_bits);
FFT_DIT_ErrorBits(buffer_bytes, work, output_count, n, (ffe_t*)FFTSkew - 1, error_bits);
#else
FFT_DIT(buffer_bytes, work, output_count, n, FFTSkew - 1);
FFT_DIT(buffer_bytes, work, output_count, n, (ffe_t*)FFTSkew - 1);
#endif

// Reveal erasures
Expand Down