wok-next view foobillardplus/stuff/patches/extern.patch @ rev 21422
updated puzzles again ( -> 20200413)
author | Hans-G?nter Theisgen |
---|---|
date | Mon Apr 27 17:44:20 2020 +0100 (2020-04-27) |
parents | |
children |
line source
1 --- a/src/vmath.c
2 +++ b/src/vmath.c
3 @@ -52,7 +52,7 @@
4 /***********************************************************************
5 * fast sinus implementation lookup table *
6 ***********************************************************************/
7 -inline float fastsin(float n) {
8 +extern inline float fastsin(float n) {
9 float f = n * HALF_MAX_CIRCLE_ANGLE / M_PI;
10 int i;
11 i = (int)f;
12 @@ -67,7 +67,7 @@
13 * fast cosinus implementation lookup table *
14 ***********************************************************************/
16 -inline float fastcos(float n) {
17 +extern inline float fastcos(float n) {
18 float f = n * HALF_MAX_CIRCLE_ANGLE / M_PI;
19 int i;
20 i = (int)f;
21 @@ -82,7 +82,7 @@
22 * fast atan implementation *
23 ***********************************************************************/
25 -inline float fastatan(float x)
26 +extern inline float fastatan(float x)
27 {
28 return M_PI_4*x - x*(fabs(x) - 1)*(0.2447 + 0.0663*fabs(x));
29 }
30 @@ -92,7 +92,7 @@
31 * fast atan2 implementation *
32 ***********************************************************************/
34 -inline float fastatan2(float y, float x) {
35 +extern inline float fastatan2(float y, float x) {
36 float coeff_1 = M_PI / 4.0f;
37 float coeff_2 = 3.0f * coeff_1;
38 float abs_y = abs(y);