FreeBSD Bugzilla – Attachment 206446 Details for
Bug 239782
multimedia/ffmpeg: Fix build on powerpc64 with clang
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
patch
ffmpeg.patch (text/plain), 3.24 KB, created by
Piotr Kubaj
on 2019-08-11 20:55:02 UTC
(
hide
)
Description:
patch
Filename:
MIME Type:
Creator:
Piotr Kubaj
Created:
2019-08-11 20:55:02 UTC
Size:
3.24 KB
patch
obsolete
>Index: files/patch-libswscale_ppc_swscale__altivec.c >=================================================================== >--- files/patch-libswscale_ppc_swscale__altivec.c (nonexistent) >+++ files/patch-libswscale_ppc_swscale__altivec.c (working copy) >@@ -0,0 +1,55 @@ >+--- libswscale/ppc/swscale_altivec.c.orig 2019-08-11 20:06:32 UTC >++++ libswscale/ppc/swscale_altivec.c >+@@ -153,13 +153,13 @@ static void yuv2plane1_float_altivec(const int32_t *sr >+ const int add = (1 << (shift - 1)); >+ const int clip = (1 << 16) - 1; >+ const float fmult = 1.0f / 65535.0f; >+- const vector uint32_t vadd = (vector uint32_t) {add, add, add, add}; >+- const vector uint32_t vshift = (vector uint32_t) vec_splat_u32(shift); >+- const vector uint32_t vlargest = (vector uint32_t) {clip, clip, clip, clip}; >+- const vector float vmul = (vector float) {fmult, fmult, fmult, fmult}; >+- const vector float vzero = (vector float) {0, 0, 0, 0}; >+- vector uint32_t v; >+- vector float vd; >++ const vec_u32 vadd = (vec_u32) {add, add, add, add}; >++ const vec_u32 vshift = (vec_u32) vec_splat_u32(shift); >++ const vec_u32 vlargest = (vec_u32) {clip, clip, clip, clip}; >++ const vec_f vmul = (vec_f) {fmult, fmult, fmult, fmult}; >++ const vec_f vzero = (vec_f) {0, 0, 0, 0}; >++ vec_u32 v; >++ vec_f vd; >+ int i; >+ >+ yuv2plane1_float_u(src, dest, dst_u, 0); >+@@ -186,14 +186,14 @@ static void yuv2plane1_float_bswap_altivec(const int32 >+ const int add = (1 << (shift - 1)); >+ const int clip = (1 << 16) - 1; >+ const float fmult = 1.0f / 65535.0f; >+- const vector uint32_t vadd = (vector uint32_t) {add, add, add, add}; >+- const vector uint32_t vshift = (vector uint32_t) vec_splat_u32(shift); >+- const vector uint32_t vlargest = (vector uint32_t) {clip, clip, clip, clip}; >++ const vec_u32 vadd = (vec_u32) {add, add, add, add}; >++ const vec_u32 vshift = (vec_u32) vec_splat_u32(shift); >++ const vec_u32 vlargest = (vec_u32) {clip, clip, clip, clip}; >+ const vector float vmul = (vector float) {fmult, fmult, fmult, fmult}; >+ const vector float vzero = (vector float) {0, 0, 0, 0}; >+- const vector uint32_t vswapbig = (vector uint32_t) {16, 16, 16, 16}; >+- const vector uint16_t vswapsmall = vec_splat_u16(8); >+- vector uint32_t v; >++ const vec_u32 vswapbig = (vec_u32) {16, 16, 16, 16}; >++ const vec_u16 vswapsmall = vec_splat_u16(8); >++ vec_u32 v; >+ vector float vd; >+ int i; >+ >+@@ -208,8 +208,8 @@ static void yuv2plane1_float_bswap_altivec(const int32 >+ vd = vec_ctf(v, 0); >+ vd = vec_madd(vd, vmul, vzero); >+ >+- vd = (vector float) vec_rl((vector uint32_t) vd, vswapbig); >+- vd = (vector float) vec_rl((vector uint16_t) vd, vswapsmall); >++ vd = (vector float) vec_rl((vec_u32) vd, vswapbig); >++ vd = (vector float) vec_rl((vec_u16) vd, vswapsmall); >+ >+ vec_st(vd, 0, (float *) &dest[i]); >+ } > >Property changes on: files/patch-libswscale_ppc_swscale__altivec.c >___________________________________________________________________ >Added: fbsd:nokeywords >## -0,0 +1 ## >+yes >\ No newline at end of property >Added: svn:eol-style >## -0,0 +1 ## >+native >\ No newline at end of property >Added: svn:mime-type >## -0,0 +1 ## >+text/plain >\ No newline at end of property
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
Flags:
riggs
:
maintainer-approval+
Actions:
View
|
Diff
Attachments on
bug 239782
: 206446