From patchwork Sun Sep 4 13:54:55 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?R=C3=A9mi_Denis-Courmont?= X-Patchwork-Id: 37651 Delivered-To: ffmpegpatchwork2@gmail.com Received: by 2002:a05:6a20:139a:b0:8f:1db5:eae2 with SMTP id w26csp2093540pzh; Sun, 4 Sep 2022 06:56:17 -0700 (PDT) X-Google-Smtp-Source: AA6agR4GGOH3gyiuS9zHCzF4FJxI3r0rX9tVHutnQ1+FesttnbXdY4lqSf4bB3iyY0aRA9+1736F X-Received: by 2002:a17:907:2cd3:b0:741:550e:17ea with SMTP id hg19-20020a1709072cd300b00741550e17eamr25277782ejc.595.1662299776983; Sun, 04 Sep 2022 06:56:16 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1662299776; cv=none; d=google.com; s=arc-20160816; b=pCxp6b7MYcfvpmTXTVp7Xh1n1vFsjIm+icFjfuO3pqxsYo+G7iEzmHqwm3EoJwdU75 XFRASJcmLvNwEwCduGMM4X3hz883KrD1zkCDl/rhmoOy1d++CMQM+CzsZdnAcd833FHX Gxb67Hztd0Giix58ud4fQJNa+SS5F59QRa4peqTcirYScjxGhHOb7AV+OR2S3IBhK89i IVpFrdAusqW8zRJTTdoU3rTGoZR+UYPrVBjTlRXFTT/zFn3x0DJsvTyWqR419sQ+xfeD VMvId+rNsJ470c3PkM8fP0dwEgYFZ83R5LoPkOmw98mlP3j42mEDQsfi5jJWE4Me6vlc M4TA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:content-transfer-encoding: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=15KVPaap7MtMEZqLUc60kQT5ens4XOM7+MOoXRyWGdc=; b=ypne0020ROzc7nrxPSSNzScaU0p/4wai/T/CX8OVO3GFkWE2KDxeF1WmsGkYyUZsgA hTRHhiG/2hS9b/05L7apjAXLS8JachBvdnvOSTvSV8UI+LTDL3cOloIvl6uyrGCmi5Vl AhjY/OROYULIJJZGdBSUZ8z5jN+G715sTov266G90yb1etSrbeYaUXu/oW3FEyEIZKKg tgKUGsb1ev329A96nY6PvCW0LhqvHU+qZ/bGk3VU9LruJew5colVaOoGGMVmJwLe9mOA o8F8eMoKhlu0nE0439B6Yt8hHBujyvqAdYzIRTARWwVZOIqHzRyiY4jRRQPIp81JoQ/7 I7fg== 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 v11-20020a1709067d8b00b00741521e9a3esi5659499ejo.235.2022.09.04.06.56.16; Sun, 04 Sep 2022 06:56:16 -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 60F6C68BB0B; Sun, 4 Sep 2022 16:55:13 +0300 (EEST) X-Original-To: ffmpeg-devel@ffmpeg.org Delivered-To: ffmpeg-devel@ffmpeg.org Received: from ursule.remlab.net (vps-a2bccee9.vps.ovh.net [51.75.19.47]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTP id 4593768BAC8 for ; Sun, 4 Sep 2022 16:55:03 +0300 (EEST) Received: from basile.remlab.net (localhost [IPv6:::1]) by ursule.remlab.net (Postfix) with ESMTP id 8B6EDC0070 for ; Sun, 4 Sep 2022 16:55:03 +0300 (EEST) From: remi@remlab.net To: ffmpeg-devel@ffmpeg.org Date: Sun, 4 Sep 2022 16:54:55 +0300 Message-Id: <20220904135503.116704-2-remi@remlab.net> X-Mailer: git-send-email 2.37.2 In-Reply-To: <3372981.QJadu78ljV@basile.remlab.net> References: <3372981.QJadu78ljV@basile.remlab.net> MIME-Version: 1.0 Subject: [FFmpeg-devel] [PATCH 02/10] riscv: initial common header for assembler macros X-BeenThere: ffmpeg-devel@ffmpeg.org X-Mailman-Version: 2.1.29 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 Errors-To: ffmpeg-devel-bounces@ffmpeg.org Sender: "ffmpeg-devel" X-TUID: 7khkjO5Yi829 From: RĂ©mi Denis-Courmont --- libavutil/riscv/asm.S | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100644 libavutil/riscv/asm.S diff --git a/libavutil/riscv/asm.S b/libavutil/riscv/asm.S new file mode 100644 index 0000000000..31001b8bdb --- /dev/null +++ b/libavutil/riscv/asm.S @@ -0,0 +1,33 @@ +/* + * This file is part of FFmpeg. + * + * FFmpeg is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2.1 of the License, or (at your option) any later version. + * + * FFmpeg is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with FFmpeg; if not, write to the Free Software + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA + */ + +#include "config.h" + + .macro func sym + .text + .align 2 + + .global \sym + .type \sym, %function + \sym: + + .macro endfunc + .size \sym, . - \sym + .purgem endfunc + .endm + .endm