From patchwork Thu Jun 8 23:04:59 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: James Darnley X-Patchwork-Id: 3875 Delivered-To: ffmpegpatchwork@gmail.com Received: by 10.103.10.2 with SMTP id 2csp3081844vsk; Thu, 8 Jun 2017 16:06:19 -0700 (PDT) X-Received: by 10.223.134.43 with SMTP id 40mr13482480wrv.114.1496963179661; Thu, 08 Jun 2017 16:06:19 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1496963179; cv=none; d=google.com; s=arc-20160816; b=u+CXxODmZN4pywa1PPzQ4BguSRv1bEe191+QJureSbGyZXrurXmtDqKstQxMmYyJG3 RHEfAe41G0BqRimJFn3Vi9YVoWHQAP2qt4wUbhOF+mb/74ZSP7pG9B5gshUABsRuIawC nGUoRj8vn3cuA1bn4JqWo/9MLRir1Clv2J1Ln6kyfTPbGy2JtFT2c4IV0kba9ddJuIlZ /HJzPFB7FoPtT3vHIYQFhl55ZXE6r3A0IHvoTvXESJpk8SQ8WYs8n0N7gwhKBpeuoMh0 dh42r6JvE+JvFLRQJr1tHx+sranKKpnFnfNC0+f5iGY7ryrS+9M7U4VMiI7KH7YtUyxK mwig== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:content-transfer-encoding:mime-version:cc:reply-to :list-subscribe:list-help:list-post:list-archive:list-unsubscribe :list-id:precedence:subject:references:in-reply-to:message-id:date :to:from:dkim-signature:delivered-to:arc-authentication-results; bh=rblRQrm4+py3WMRE+QIcWZrS1TjSwR05wldKe3gkrEI=; b=GBcIMpgPNQh3xJgAYdBb20AHK7N17eMjzta0ttVRTOriMaeZJ18DE1A2gw/uGFbcir AKakkL7Mii+6ZM+mAkUXI4JaaD+aeIBQX4EALOkkRjJNTYfKP9Gojqokyz071laQG4De XZpvyswwCnmJqaPnzg32Adp5kgc3TLAR/vTJamAOMxGwecahCOgeKJM90AVpWpU0O5nD +6DYTmOdU2Fik0uLWfQAcI9TZ+VvU38lpSROOXAwGSSHn17HLhxzYsHFmunMSAEuf8uD IlV5Zum5bDEYelaA6tLmD93GCgdNEqquLaePIKYhsgdDzNTysveMYM+eF9NnLYU+cska Xg3A== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@ob-encoder-com.20150623.gappssmtp.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 i9si96208wmb.35.2017.06.08.16.06.19; Thu, 08 Jun 2017 16:06:19 -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; dkim=neutral (body hash did not verify) header.i=@ob-encoder-com.20150623.gappssmtp.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 97D76689B74; Fri, 9 Jun 2017 02:06:10 +0300 (EEST) X-Original-To: ffmpeg-devel@ffmpeg.org Delivered-To: ffmpeg-devel@ffmpeg.org Received: from mail-wr0-f169.google.com (mail-wr0-f169.google.com [209.85.128.169]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTPS id 26964680ADF for ; Fri, 9 Jun 2017 02:06:04 +0300 (EEST) Received: by mail-wr0-f169.google.com with SMTP id q97so23987427wrb.2 for ; Thu, 08 Jun 2017 16:06:04 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ob-encoder-com.20150623.gappssmtp.com; s=20150623; h=sender:from:to:cc:subject:date:message-id:in-reply-to:references; bh=/FBPaOBThi9wumtEgnLkw6MhOV5wE7ijEbUm7K4P0d4=; b=sPdLVF16nriBi0O4PtUKiIHONic/BAOubvalecHt1G9EUXEcmne/wGyfruBqFqh5E0 lRCrkBjjBN+gaDDOZGksWWKNRRIV4ofj+61i08FLCBJquPeYI0U3d8VL1a3OX8WrOL/e /siqAO30fxa46YSdzNeB9rNNxksG0t3Bd927Ysg97YKD7UZ55qK/C2oDR/2OEM/f7wVc 4Ed5T4N+wiYeEd1UUp1sCRqUmkw0p2WUE4inSG4rKYJILbiyjF6rmsaD95+ZI0RnzAJ0 z7jxNij6xjE+j2u4BvST84vKr4erNALIrLF+IRFcWXOrPSmucRHPxNbk5skxfyPFt39b jnfQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:from:to:cc:subject:date:message-id :in-reply-to:references; bh=/FBPaOBThi9wumtEgnLkw6MhOV5wE7ijEbUm7K4P0d4=; b=C5hZDjY38I4p/FCB1EL8kiNJxNg7nUY0Che1kxVSt8+Bfcx8xxziJXKS18/ry7cgzY 42cBtRMu+/T918Sh+6ollbDcMqloKLsbVZpVZz8s0Z+ZiVFyZVskBzNKBKPCmOEFHspz cavreYBpwlJUAjM1XmAhqxwd2v2p+d83EkjMusD5qP9UdtcexOeFSee9uWD3jzcs8OaD WwP1MLdIaHiOR5akwW4W+5SIZuoCqsVWdijqyxwi9XZF64wEvpUHHbYzZv0y8amjHdaO r6GitBmPxTviYBpElCA2wpHfF6XY8zmbYKavailv3XaRmcoszzP4XkJus9fOjkTez7+T JI9Q== X-Gm-Message-State: AODbwcDbz0oNa+LfnZW0SwV4edkDviDDh6cStwPRIDb9Ci0c5XQprhXG ijTrin4vy3B/NbshLq8= X-Received: by 10.223.177.213 with SMTP id r21mr16667602wra.121.1496963164061; Thu, 08 Jun 2017 16:06:04 -0700 (PDT) Received: from Highwind.systemlords.lan (d51A44418.access.telenet.be. [81.164.68.24]) by smtp.gmail.com with ESMTPSA id v62sm82057wmv.15.2017.06.08.16.06.03 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 08 Jun 2017 16:06:03 -0700 (PDT) From: James Darnley To: FFmpeg development discussions and patches Date: Fri, 9 Jun 2017 01:04:59 +0200 Message-Id: <20170608230502.29258-3-jdarnley@obe.tv> X-Mailer: git-send-email 2.13.0 In-Reply-To: <20170608230502.29258-1-jdarnley@obe.tv> References: <20170608230502.29258-1-jdarnley@obe.tv> Subject: [FFmpeg-devel] [PATCH 2/5] x86inc: Make REP_RET identical to RET in SSSE3+ functions 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: Henrik Gramner MIME-Version: 1.0 Errors-To: ffmpeg-devel-bounces@ffmpeg.org Sender: "ffmpeg-devel" From: Henrik Gramner There's no point in emitting a rep prefix before ret on modern CPUs. --- libavutil/x86/x86inc.asm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libavutil/x86/x86inc.asm b/libavutil/x86/x86inc.asm index f2a6a3f1db..44069741cc 100644 --- a/libavutil/x86/x86inc.asm +++ b/libavutil/x86/x86inc.asm @@ -636,7 +636,7 @@ DECLARE_ARG 7, 8, 9, 10, 11, 12, 13, 14 ; We can automatically detect "follows a branch", but not a branch target. ; (SSSE3 is a sufficient condition to know that your cpu doesn't have this problem.) %macro REP_RET 0 - %if has_epilogue + %if has_epilogue || cpuflag(ssse3) RET %else rep ret