X-Git-Url: https://main.carlh.net/gitweb/?a=blobdiff_plain;f=libs%2Fardour%2Fsse_functions.s;h=934ce6887a25e5075782a538013a59ea19049545;hb=dde13d288e22ba5dd8e23802c47fac288b089c57;hp=45ba911c0e4775b536a6139c148733a2ab7f5eed;hpb=9eb117e2e3954171bbf93a9fd921466754ca0cf4;p=ardour.git diff --git a/libs/ardour/sse_functions.s b/libs/ardour/sse_functions.s index 45ba911c0e..934ce6887a 100644 --- a/libs/ardour/sse_functions.s +++ b/libs/ardour/sse_functions.s @@ -15,6 +15,8 @@ along with this program; if not, write to the Free Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. + Author: Sampo Savolainen + $Id$ */ @@ -395,10 +397,6 @@ x86_sse_apply_gain_to_buffer: .globl x86_sse_compute_peak .type x86_sse_compute_peak,@function -abs_mask: - .long 2147483647 - - x86_sse_compute_peak: #; 8(%ebp) = float *buf = %edi #; 12(%ebp) = long nframes = %ecx @@ -421,7 +419,9 @@ x86_sse_compute_peak: je .CP_END #; create the "abs" mask in %xmm2 - movss abs_mask, %xmm2 + pushl $2147483647 + movss (%esp), %xmm2 + addl $4, %esp shufps $0x00, %xmm2, %xmm2 #; Check for alignment @@ -524,6 +524,8 @@ x86_sse_compute_peak: .size x86_sse_compute_peak, .-x86_sse_compute_peak #; end proc - +#ifdef __ELF__ +.section .note.GNU-stack,"",%progbits +#endif