Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 660066 Details for
Bug 676068
games-strategy/liquidwar-5.6.4-r2 : distor.c:(.text+<snip>): undefined reference to fsqrt
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Change fsqrt() to sqrtf(), etc.
liquidwar-5.6.4-math-fns.patch (text/plain), 2.49 KB, created by
Khumba
on 2020-09-14 05:42:53 UTC
(
hide
)
Description:
Change fsqrt() to sqrtf(), etc.
Filename:
MIME Type:
Creator:
Khumba
Created:
2020-09-14 05:42:53 UTC
Size:
2.49 KB
patch
obsolete
>diff -ru liquidwar-5.6.4/src/distor.c liquidwar-5.6.4b/src/distor.c >--- liquidwar-5.6.4/src/distor.c 2007-10-17 13:00:50.000000000 -0700 >+++ liquidwar-5.6.4b/src/distor.c 2020-09-13 22:26:02.746272049 -0700 >@@ -194,7 +194,7 @@ > cycle_tmp /= 2; > speed--; > } >- cycle_tmp = fsqrt (fsqrt (cycle_tmp)) / 2; >+ cycle_tmp = sqrtf (sqrtf (cycle_tmp)) / 2; > cycle_tmp /= SCREEN_W; > cycle_tmp *= period; > if (cycle_tmp <= 0) >@@ -203,8 +203,8 @@ > } > cycle_coef = sens * 256 * (itofix (GLOBAL_TICKER % cycle_tmp) / cycle_tmp); > >- f0 = fsin (cycle_coef + freq_coef * period2); >- fp0x0 = (PI_1024 * fcos (cycle_coef + freq_coef * period2)) / 1024; >+ f0 = sinf (cycle_coef + freq_coef * period2); >+ fp0x0 = (PI_1024 * cosf (cycle_coef + freq_coef * period2)) / 1024; > > alphax03 = (ampli_cst / 256) * ((fp0x0 - 2 * f0) / 256); > betax02 = (ampli_cst / 256) * ((-fp0x0 + 3 * f0) / 256); >@@ -217,7 +217,7 @@ > } > for (i = period2; i < real_length - period2; ++i) > { >- temp = ((ampli_cos) / 256) * (fcos (cycle_coef + freq_coef * i) / 256); >+ temp = ((ampli_cos) / 256) * (cosf (cycle_coef + freq_coef * i) / 256); > buffer2[i] = temp / WAVE_SIZE_SCALE; > } > >diff -ru liquidwar-5.6.4/src/fighter.c liquidwar-5.6.4b/src/fighter.c >--- liquidwar-5.6.4/src/fighter.c 2007-10-17 13:00:50.000000000 -0700 >+++ liquidwar-5.6.4b/src/fighter.c 2020-09-13 22:20:58.465616342 -0700 >@@ -335,7 +335,7 @@ > coef += 256; > > attack[i] = (coef * >- fsqrt (fsqrt (1 << (LW_CONFIG_CURRENT_RULES.fighter_attack >+ sqrtf (sqrtf (1 << (LW_CONFIG_CURRENT_RULES.fighter_attack > + cpu_influence[i])))) / (256 * 8); > if (attack[i] >= MAX_FIGHTER_HEALTH) > attack[i] = MAX_FIGHTER_HEALTH - 1; >@@ -343,7 +343,7 @@ > attack[i] = 1; > > defense[i] = (coef * >- fsqrt (fsqrt >+ sqrtf (sqrtf > (1 << > (LW_CONFIG_CURRENT_RULES.fighter_defense + > cpu_influence[i])))) / (256 * 256); >@@ -353,7 +353,7 @@ > defense[i] = 1; > > new_health[i] = (coef * >- fsqrt (fsqrt >+ sqrtf (sqrtf > (1 << > (LW_CONFIG_CURRENT_RULES.fighter_new_health + > cpu_influence[i])))) / (256 * 4); >diff -ru liquidwar-5.6.4/src/palette.c liquidwar-5.6.4b/src/palette.c >--- liquidwar-5.6.4/src/palette.c 2007-10-17 13:00:50.000000000 -0700 >+++ liquidwar-5.6.4b/src/palette.c 2020-09-13 22:20:58.465616342 -0700 >@@ -88,7 +88,7 @@ > { > int result; > >- result = fsqrt (i * 256) / 256; >+ result = sqrtf (i * 256) / 256; > if (result > 255) > result = 255; >
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 676068
:
562536
|
562538
|
562540
|
562542
|
562544
|
562546
|
562548
|
660066