From patchwork Sun Apr 26 19:44:20 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?FR=C3=89D=C3=89RIC_RECOULES?= X-Patchwork-Id: 19287 Delivered-To: andriy.gelman@gmail.com Received: by 2002:a25:3c87:0:0:0:0:0 with SMTP id j129csp2228583yba; Sun, 26 Apr 2020 12:45:58 -0700 (PDT) X-Google-Smtp-Source: APiQypLE9uE4rNgSB6fViROiDyxbqJZgL6lbMJSLTdJJwEg+Qk8bJ1aVIbs+aZ/v+Yox586rbbrN X-Received: by 2002:a5d:4246:: with SMTP id s6mr23697062wrr.421.1587930358236; Sun, 26 Apr 2020 12:45:58 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1587930358; cv=none; d=google.com; s=arc-20160816; b=nES4PZiWnYNm8ugzPKhPcjeE1xd3hyRamNi3i985Yc0CrR6h9gjfGMEA45yhvODVZJ pWQnCPzMkM5tXEv5rXVB13iGR0KJZjIpZqfMsJ/Lf9gD/9QIz9r7UY8DBUBs8LrlaCNS UnJsXI7am2U/4qYaB72uUHIuXzfPbeGismKnzY7fgRLLoIXBXwmWh8EQXOIa/09ZxsSO SbnGfdV3VoR3Tv6fj2p91XMuv1roo/Bsn5A0NruTxs7nyPDFUehxLzGrSix3Q0bpXHTP gaqDmTFEg4nWhCX74qVab5/EMUGJgZ7z3InbjSs6SrKNz6ZPGQUFOl3nvKsXDD//M+Eu lWXw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:content-transfer-encoding:cc:reply-to :list-subscribe:list-help:list-post:list-archive:list-unsubscribe :list-id:precedence:subject:mime-version:references:in-reply-to :message-id:date:to:from:delivered-to; bh=0ndOWhfFGjBciiEqkdtPy4PsWLf30im0fGDyxgd9sG0=; b=SxpfNVW+swGgJx2Iw/QZKh3uotKfOJqvAHo/r+twvktjiHtKP/MI0X92ar7abgKdcG VKbuVNGYe7GvE+Vfzt7H3V6pE5WxsJ50a9SQ24NOzZYnN6WwaoPoJaUEYZsytG2XfsGZ B0dn3jiAf852SKBkeDzb0Mz+dZG2djboG+Ov3Y/ktLv4IwoA1Mkebod3oMQeW1UQtFGc JjVVFES73Wx5UHnhB1yQWAwSzqSim5vvZ/9uWOLj09Vq7WEOO374VyGp+v9PLBX0Pgq9 /dnpymxNo2vLKBMtih5SN09M4LbA1HB0ljBI3ODd5tJOha4S1Oauiq8ALHjKOW7BY0vF ze5w== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of ffmpeg-devel-bounces@ffmpeg.org designates 79.124.17.100 as permitted sender) smtp.mailfrom=ffmpeg-devel-bounces@ffmpeg.org Return-Path: Received: from ffbox0-bg.mplayerhq.hu (ffbox0-bg.ffmpeg.org. [79.124.17.100]) by mx.google.com with ESMTP id i24si8855000wml.195.2020.04.26.12.45.57; Sun, 26 Apr 2020 12:45:58 -0700 (PDT) Received-SPF: pass (google.com: domain of ffmpeg-devel-bounces@ffmpeg.org designates 79.124.17.100 as permitted sender) client-ip=79.124.17.100; Authentication-Results: mx.google.com; spf=pass (google.com: domain of ffmpeg-devel-bounces@ffmpeg.org designates 79.124.17.100 as permitted sender) smtp.mailfrom=ffmpeg-devel-bounces@ffmpeg.org Received: from [127.0.1.1] (localhost [127.0.0.1]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTP id 0F4BC68C6A1; Sun, 26 Apr 2020 22:45:24 +0300 (EEST) X-Original-To: ffmpeg-devel@ffmpeg.org Delivered-To: ffmpeg-devel@ffmpeg.org Received: from smtp.smtpout.orange.fr (smtp03.smtpout.orange.fr [80.12.242.125]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTPS id 98E6B68C3E1 for ; Sun, 26 Apr 2020 22:45:13 +0300 (EEST) Received: from is232189.intra.cea.fr ([46.193.2.18]) by mwinf5d50 with ME id XXkk220050PJwDa03XlDHn; Sun, 26 Apr 2020 21:45:13 +0200 X-ME-Helo: is232189.intra.cea.fr X-ME-Auth: ZnJlZGVyaWMucmVjb3VsZXNAb3JhbmdlLmZy X-ME-Date: Sun, 26 Apr 2020 21:45:13 +0200 X-ME-IP: 46.193.2.18 From: frederic.recoules@univ-grenoble-alpes.fr To: ffmpeg-devel@ffmpeg.org Date: Sun, 26 Apr 2020 21:44:20 +0200 Message-Id: <20200422174918.7290-10-frederic.recoules@univ-grenoble-alpes.fr> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20200422174918.7290-1-frederic.recoules@univ-grenoble-alpes.fr> References: <20200422174918.7290-1-frederic.recoules@univ-grenoble-alpes.fr> MIME-Version: 1.0 Subject: [FFmpeg-devel] [PATCH 10/14] [inline assembly] add xmm clobbers to mpegaudiodsp X-BeenThere: ffmpeg-devel@ffmpeg.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: FFmpeg development discussions and patches List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: FFmpeg development discussions and patches Cc: =?utf-8?q?Fr=C3=A9d=C3=A9ric_Recoules?= Errors-To: ffmpeg-devel-bounces@ffmpeg.org Sender: "ffmpeg-devel" X-TUID: shBZlM814b/k Content-Length: 2225 From: Frédéric Recoules --- libavcodec/x86/mpegaudiodsp.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/libavcodec/x86/mpegaudiodsp.c b/libavcodec/x86/mpegaudiodsp.c index f46a5c4f3d..10b9e814d5 100644 --- a/libavcodec/x86/mpegaudiodsp.c +++ b/libavcodec/x86/mpegaudiodsp.c @@ -103,6 +103,7 @@ static void apply_window(const float *buf, const float *win1, "jl 1b \n\t" :"+&r"(count) :"r"(win1a), "r"(win2a), "r"(bufa), "r"(sum1a), "r"(sum2a) + XMM_CLOBBERS_ONLY("xmm0", "xmm1", "xmm2", "xmm4") ); #undef MULT @@ -137,7 +138,7 @@ static void apply_window_mp3(float *in, float *win, int *unused, float *out, "movaps %%xmm2, 96(%1) \n\t" \ "movaps %%xmm3, 112(%1) \n\t" ::"r"(in), "r"(in+512) - :"memory" + :"memory" XMM_CLOBBERS(, "xmm0", "xmm1", "xmm2", "xmm3") ); apply_window(in + 16, win , win + 512, suma, sumc, 16); @@ -169,7 +170,7 @@ static void apply_window_mp3(float *in, float *win, int *unused, float *out, :"+&r"(out) :"r"(&suma[0]), "r"(&sumb[0]), "r"(&sumc[0]), "r"(&sumd[0]) - :"memory" + :"memory" XMM_CLOBBERS(, "xmm0") ); out += 16*incr; } else {