mirror of
https://github.com/oliverschmidt/contiki.git
synced 2024-12-22 10:30:13 +00:00
Rename static function log2 to ilog2 to avoid clashes (and compiler warnings) with built-in function called log2
This commit is contained in:
parent
1f005b6299
commit
985fb009bf
@ -32,8 +32,8 @@
|
|||||||
*
|
*
|
||||||
* Author : Joakim Eriksson
|
* Author : Joakim Eriksson
|
||||||
* Created : 2008-03-27
|
* Created : 2008-03-27
|
||||||
* Updated : $Date: 2008/04/25 22:12:25 $
|
* Updated : $Date: 2008/07/03 23:40:12 $
|
||||||
* $Revision: 1.2 $
|
* $Revision: 1.3 $
|
||||||
*/
|
*/
|
||||||
#include "lib/ifft.h"
|
#include "lib/ifft.h"
|
||||||
|
|
||||||
@ -84,7 +84,7 @@ static int16_t cosI(uint16_t angleMilli)
|
|||||||
return sinI(angleMilli + 250);
|
return sinI(angleMilli + 250);
|
||||||
}
|
}
|
||||||
|
|
||||||
static uint16_t log2(uint16_t val)
|
static uint16_t ilog2(uint16_t val)
|
||||||
{
|
{
|
||||||
uint16_t log;
|
uint16_t log;
|
||||||
log = 0;
|
log = 0;
|
||||||
@ -119,7 +119,7 @@ ifft(int16_t xre[], int16_t xim[], uint16_t n)
|
|||||||
int p, k, l, i;
|
int p, k, l, i;
|
||||||
int32_t c, s, tr, ti;
|
int32_t c, s, tr, ti;
|
||||||
|
|
||||||
nu = log2(n);
|
nu = ilog2(n);
|
||||||
nu1 = nu - 1;
|
nu1 = nu - 1;
|
||||||
n2 = n / 2;
|
n2 = n / 2;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user