Mentions légales du service

Skip to content
Snippets Groups Projects
Commit 2033b428 authored by hhakim's avatar hhakim
Browse files

Minor fix.

The bit_rev_permu's return type must be void.
parent 2edfb4f6
No related branches found
No related tags found
No related merge requests found
//TODO: move this file and its header to a Faust::utils namespace //TODO: move this file and its header to a Faust::utils namespace
unsigned int bit_rev_permu(unsigned int n, unsigned int* v, const bool initv) void bit_rev_permu(unsigned int n, unsigned int* v, const bool initv)
{ {
unsigned int size = 1<<n; unsigned int size = 1<<n;
if(initv) if(initv)
......
...@@ -4,5 +4,5 @@ ...@@ -4,5 +4,5 @@
* And proceeds with a bit reversal permutation. * And proceeds with a bit reversal permutation.
* E.g. : if n = 3, v=(0, 1, 2, 3, 4, 5, 6, 7, 8) and becomes (0, 4, 2, 6, 1, 5, 3, 7). * E.g. : if n = 3, v=(0, 1, 2, 3, 4, 5, 6, 7, 8) and becomes (0, 4, 2, 6, 1, 5, 3, 7).
*/ */
unsigned int bit_rev_permu(unsigned int n, unsigned int* v, const bool initv=true); void bit_rev_permu(unsigned int n, unsigned int* v, const bool initv=true);
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment