Skip to content

Commit db5c151

Browse files
Elias OenalElias Oenal
authored andcommitted
replaced all extern inline
1 parent 3d9c421 commit db5c151

File tree

3 files changed

+16
-16
lines changed

3 files changed

+16
-16
lines changed

filter-i386.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@
3232

3333
#include <stdio.h>
3434

35-
extern inline float __mac_g(const float *a, const float *b, unsigned int size)
35+
static inline float __mac_g(const float *a, const float *b, unsigned int size)
3636
{
3737
float sum = 0;
3838
unsigned int i;
@@ -42,7 +42,7 @@ extern inline float __mac_g(const float *a, const float *b, unsigned int size)
4242
return sum;
4343
}
4444

45-
extern inline float __mac_c(const float *a, const float *b, unsigned int size)
45+
static inline float __mac_c(const float *a, const float *b, unsigned int size)
4646
{
4747
float f;
4848

filter.h

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -32,24 +32,24 @@
3232

3333
/* ---------------------------------------------------------------------- */
3434

35-
extern inline unsigned int hweight32(unsigned int w)
35+
static inline unsigned int hweight32(unsigned int w)
3636
#ifndef _MSC_VER
3737
__attribute__ ((unused))
3838
#endif
3939
;
40-
extern inline unsigned int hweight16(unsigned short w)
40+
static inline unsigned int hweight16(unsigned short w)
4141
#ifndef _MSC_VER
4242
__attribute__ ((unused))
4343
#endif
4444
;
4545

46-
extern inline unsigned int hweight8(unsigned char w)
46+
static inline unsigned int hweight8(unsigned char w)
4747
#ifndef _MSC_VER
4848
__attribute__ ((unused))
4949
#endif
5050
;
5151

52-
extern inline unsigned int hweight32(unsigned int w)
52+
static inline unsigned int hweight32(unsigned int w)
5353
{
5454
unsigned int res = (w & 0x55555555) + ((w >> 1) & 0x55555555);
5555
res = (res & 0x33333333) + ((res >> 2) & 0x33333333);
@@ -58,33 +58,33 @@ extern inline unsigned int hweight32(unsigned int w)
5858
return (res & 0x0000FFFF) + ((res >> 16) & 0x0000FFFF);
5959
}
6060

61-
extern inline unsigned int hweight16(unsigned short w)
61+
static inline unsigned int hweight16(unsigned short w)
6262
{
6363
unsigned short res = (w & 0x5555) + ((w >> 1) & 0x5555);
6464
res = (res & 0x3333) + ((res >> 2) & 0x3333);
6565
res = (res & 0x0F0F) + ((res >> 4) & 0x0F0F);
6666
return (res & 0x00FF) + ((res >> 8) & 0x00FF);
6767
}
6868

69-
extern inline unsigned int hweight8(unsigned char w)
69+
static inline unsigned int hweight8(unsigned char w)
7070
{
7171
unsigned short res = (w & 0x55) + ((w >> 1) & 0x55);
7272
res = (res & 0x33) + ((res >> 2) & 0x33);
7373
return (res & 0x0F) + ((res >> 4) & 0x0F);
7474
}
7575

76-
extern inline unsigned int gcd(unsigned int x, unsigned int y)
76+
static inline unsigned int gcd(unsigned int x, unsigned int y)
7777
#ifndef _MSC_VER
7878
__attribute__ ((unused))
7979
#endif
8080
;
81-
extern inline unsigned int lcm(unsigned int x, unsigned int y)
81+
static inline unsigned int lcm(unsigned int x, unsigned int y)
8282
#ifndef _MSC_VER
8383
__attribute__ ((unused))
8484
#endif
8585
;
8686

87-
extern inline unsigned int gcd(unsigned int x, unsigned int y)
87+
static inline unsigned int gcd(unsigned int x, unsigned int y)
8888
{
8989
for (;;) {
9090
if (!x)
@@ -98,15 +98,15 @@ extern inline unsigned int gcd(unsigned int x, unsigned int y)
9898
}
9999
}
100100

101-
extern inline unsigned int lcm(unsigned int x, unsigned int y)
101+
static inline unsigned int lcm(unsigned int x, unsigned int y)
102102
{
103103
return x * y / gcd(x, y);
104104
}
105105

106106
/* ---------------------------------------------------------------------- */
107107

108108
#ifndef __HAVE_ARCH_MAC
109-
extern inline float mac(const float *a, const float *b, unsigned int size)
109+
static inline float mac(const float *a, const float *b, unsigned int size)
110110
{
111111
float sum = 0;
112112
unsigned int i;
@@ -117,7 +117,7 @@ extern inline float mac(const float *a, const float *b, unsigned int size)
117117
}
118118
#endif /* __HAVE_ARCH_MAC */
119119

120-
extern inline float fsqr(float f)
120+
static inline float fsqr(float f)
121121
{
122122
return f*f;
123123
}

multimonNG.pro

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,15 +52,15 @@ LIBS += -lwinmm
5252

5353

5454
unix:linux-g++-32:!symbian:!macx{
55-
DEFINES += ARCH_I386
55+
#DEFINES += ARCH_I386
5656
DEFINES += PULSE_AUDIO
5757
LIBS += -lX11 -lpulse-simple -lpulse
5858
SOURCES += xdisplay.c \
5959
demod_display.c
6060
}
6161

6262
unix:linux-g++-64:!symbian:!macx{
63-
DEFINES += ARCH_X86_64
63+
#DEFINES += ARCH_X86_64
6464
DEFINES += PULSE_AUDIO
6565
LIBS += -lX11 -lpulse-simple -lpulse
6666
SOURCES += xdisplay.c \

0 commit comments

Comments
 (0)