From patchwork Sun Apr 26 19:44:17 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: 19288 Delivered-To: andriy.gelman@gmail.com Received: by 2002:a25:3c87:0:0:0:0:0 with SMTP id j129csp2227916yba; Sun, 26 Apr 2020 12:45:08 -0700 (PDT) X-Google-Smtp-Source: APiQypLTd+CkRjYjzGCfoJsTL9XBGiokeVHFbhi3w5DUjrqtYbzKy4ryy+jBZtnA77jn0RgvQmHB X-Received: by 2002:a1c:1dc3:: with SMTP id d186mr22109632wmd.90.1587930308732; Sun, 26 Apr 2020 12:45:08 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1587930308; cv=none; d=google.com; s=arc-20160816; b=wiXtGMZYQTFpPKfL4AnBUVg3u1YFCJJgQlVy/9BaDdVyLfXTz+MJiEkNBRr5zLNsOD 6V7bpeojajBWuJG971k+xgbiaxgTowICvaeas/shNUMoCknCy7g5Z6JtC7mJTWm/QNlo hAwtFLkZxuBxo+qkbzYSn3saClAdEhPvKI0AZiSz6EWHXv3DfF7+CXPfdbOtY9Lo8Wo/ 9j+53PnpEa0YX4nH+ykBwmccF6NpmrCJmc7QzyatMs+IWWngmi4FS80KowRfHmoj5Tz5 OznaFFoEZnsxcrZwXYbjY8EaRX1tB5zoetmOEU6ksvwjlWmTFlxbnkYKVwAziW9ikELx K08g== 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=QSc8w5NSVBQoD/y6tn2vqKiboC1VIlyQqAqsoB7yCjc=; b=qtfQTX3vBqnniT8G3uCK5DQ9Glke6vUb+oZ2cvWBR9/4NrPuujBjd4PvtFOyYlE1VA +VRf2K+FMXimLR0rJCFl3JuXYmJrDoV8kx389DTInlSAu7K+EMUaZUYf7WYY574WchQk w4X2dKUYJDYA2c4+KqfpdCYZfhMJ8MshvSx7tYshh1Qo7xkGelQIn+bfdx4se/bD/bXA paMT/oGBd3oHwWQQDnoO0twBtuIBr6MjC51w+oxdFubehlfnUGgd8/Qk/1wQiRrPcqwp 2OvCH+CfE9TEvFAjpCROTZ9jrHxvFdtzugxSt7Yw1Fnv4t1Lj2FYBGuGW8RhDPeIglec sDjg== 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 b6si13493289wrm.396.2020.04.26.12.45.08; Sun, 26 Apr 2020 12:45:08 -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 7C8DE68C69D; Sun, 26 Apr 2020 22:45:04 +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 740CF68B6C3 for ; Sun, 26 Apr 2020 22:44:57 +0300 (EEST) Received: from is232189.intra.cea.fr ([46.193.2.18]) by mwinf5d50 with ME id XXkk220050PJwDa03XkwH4; Sun, 26 Apr 2020 21:44:57 +0200 X-ME-Helo: is232189.intra.cea.fr X-ME-Auth: ZnJlZGVyaWMucmVjb3VsZXNAb3JhbmdlLmZy X-ME-Date: Sun, 26 Apr 2020 21:44:57 +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:17 +0200 Message-Id: <20200422174918.7290-7-frederic.recoules@univ-grenoble-alpes.fr> X-Mailer: git-send-email 2.17.1 Message-Id: <20200422174918.7290-7-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 07/14] [inline assembly] add memory in fdct.c 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: aJl3+v0x/XzZ Content-Length: 3012 From: Frédéric Recoules --- libavcodec/x86/fdct.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/libavcodec/x86/fdct.c b/libavcodec/x86/fdct.c index 2635d58cbf..975e5e7769 100644 --- a/libavcodec/x86/fdct.c +++ b/libavcodec/x86/fdct.c @@ -370,7 +370,7 @@ static av_always_inline void fdct_col_##cpu(const int16_t *in, int16_t *out, int : \ : "r" (in + offset), "r" (fdct_tg_all_16), "r" (fdct_one_corr), \ "r" (out + offset), "r" (ocos_4_16) \ - MM##_CLOBBERS_ONLY(#mm"0", #mm"1", #mm"2", #mm"3", \ + : "memory" MM##_CLOBBERS(, #mm"0", #mm"1", #mm"2", #mm"3", \ #mm"4", #mm"5", #mm"6", #mm"7") ); \ } @@ -437,7 +437,7 @@ static av_always_inline void fdct_row_sse2(const int16_t *in, int16_t *out) : : "r" (in), "r" (tab_frw_01234567_sse2.tab_frw_01234567_sse2), "r" (fdct_r_row_sse2.fdct_r_row_sse2), "i" (SHIFT_FRW_ROW), "r" (out) - XMM_CLOBBERS_ONLY("%xmm0", "%xmm1", "%xmm2", "%xmm3", + : "memory" XMM_CLOBBERS(, "%xmm0", "%xmm1", "%xmm2", "%xmm3", "%xmm4", "%xmm5", "%xmm6", "%xmm7") ); } @@ -487,7 +487,7 @@ static av_always_inline void fdct_row_mmxext(const int16_t *in, int16_t *out, "movq %%mm7, 8(%3) \n\t" : : "r" (in), "r" (table), "r" (fdct_r_row), "r" (out) - MMX_CLOBBERS_ONLY("%mm0", "%mm1", "%mm2", "%mm3", + : "memory" MMX_CLOBBERS(, "%mm0", "%mm1", "%mm2", "%mm3", "%mm4", "%mm5", "%mm6", "%mm7") ); } @@ -540,7 +540,7 @@ static av_always_inline void fdct_row_mmx(const int16_t *in, int16_t *out, const "movq %%mm7, 8(%3) \n\t" : : "r" (in), "r" (table), "r" (fdct_r_row), "r" (out) - MMX_CLOBBERS_ONLY("%mm0", "%mm1", "%mm2", "%mm3", + : "memory" MMX_CLOBBERS(, "%mm0", "%mm1", "%mm2", "%mm3", "%mm4", "%mm5", "%mm6", "%mm7") ); }