From patchwork Tue Jul 4 15:14:59 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Zhao Zhili X-Patchwork-Id: 42423 Delivered-To: ffmpegpatchwork2@gmail.com Received: by 2002:a05:6a20:3b1e:b0:12b:9ae3:586d with SMTP id c30csp4889568pzh; Tue, 4 Jul 2023 00:15:19 -0700 (PDT) X-Google-Smtp-Source: APBJJlG/VnVPiCE3DRnJYLFX7uFTfbXDmvyWgc8fTFjPr2jPi0uHJapf+wOKxTZMqxs/GMwhSyP0 X-Received: by 2002:a17:906:f1d2:b0:988:9d0f:db52 with SMTP id gx18-20020a170906f1d200b009889d0fdb52mr8003857ejb.35.1688454919510; Tue, 04 Jul 2023 00:15:19 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1688454919; cv=none; d=google.com; s=arc-20160816; b=X9qp19ozP4pB3FtyMkMUkq9IAbr4oekMXJG3J5mlf/xUW43LcOiUHriRrhKcFkLdOu 93zsWq3KjmFTMQDeZd0P2sQhD5z5nktSJoldHuVp8EERZR/+6w28EG1G3rlJTGGgX1U9 Uz+iA0DYMypYWTsFnRiQl+4+a4kSE/GcpbZiue9TgWBGf/rzsc7hiBYDIFev7QgiT17h M4YFZmP21TWzGPbtep4aklvjkIgSD64M9LGVndNsUUjCD3FOi55Nl07iwoJ2Pl0WOhXw 1qPuwM38IrpZMwLaGGmRgAIkBXusC0OObRBHf2DW7W1FLrAi7fgOc9cTXMtxNgeqzqmH k/IA== 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:date:to:from:message-id :dkim-signature:delivered-to; bh=mxQCjsW29TKgYjOLhAZm/vtSZOU0Wi15BfBLz9pybdc=; fh=HnHYuZ9XgUo86ZRXTLWWmQxhslYEI9B9taZ5X1DLFfc=; b=dckARLX9BUI5oH4zIun5yHc4GPeQMabiP86Rbd1bPxbf/trgnAwRAetcwApOuSWidc 3ppL0XsfFU9g3tjHgt3rH/A/TGNynGXDFjXRHedC0gwVGaprX3sOayXOTfnqwVT6vDU9 b6OZx12vHB73YF+OHZVxqZLSw1WJcSwv/f4JaTZcNMrQnC+JY0UaPNX6KjxFrFp/R+Ne lagdTTNVSIbtOz8TbNKtY1AoJREVh6wqb9O2OtFcEQmZtig/PcU4TzUa6ADQa/0oyCyL Ak9+nF03T5HtCH8StmUEscMdrivA6wUDvv2p7HAMNOQ7hJUBzifUObYGsTvop42nq0qT Uopw== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@foxmail.com header.s=s201512 header.b=Wcfg1uqE; 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=foxmail.com Return-Path: Received: from ffbox0-bg.mplayerhq.hu (ffbox0-bg.ffmpeg.org. [79.124.17.100]) by mx.google.com with ESMTP id m19-20020a1709066d1300b0098d85fee2e2si12423014ejr.608.2023.07.04.00.15.18; Tue, 04 Jul 2023 00:15: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=@foxmail.com header.s=s201512 header.b=Wcfg1uqE; 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=foxmail.com Received: from [127.0.1.1] (localhost [127.0.0.1]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTP id 20DE668C4F2; Tue, 4 Jul 2023 10:15:15 +0300 (EEST) X-Original-To: ffmpeg-devel@ffmpeg.org Delivered-To: ffmpeg-devel@ffmpeg.org Received: from out162-62-57-210.mail.qq.com (out162-62-57-210.mail.qq.com [162.62.57.210]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTPS id 889C568C52E for ; Tue, 4 Jul 2023 10:15:07 +0300 (EEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=foxmail.com; s=s201512; t=1688454897; bh=68VAPV0yn51INrrKfOOZ5tKbn8+vgS1IJ91qz7qutYY=; h=From:To:Cc:Subject:Date; b=Wcfg1uqEleyho0UraBrQ/uCqSkq+WQXKoejoMdJP9lHqaHNcrGy63mn8msVO13N9s W71AiSeoAqDuotp5gdY9XUXazQjsLsmSTxRr/lP/owe4avNcdZe5bAOu9VwLiM/vNc iKQaeu0r8rJrc+6vcLw1aGGCr9J+Iv8iNtDj7F9o= Received: from localhost.localdomain ([119.147.10.205]) by newxmesmtplogicsvrszb1-0.qq.com (NewEsmtp) with SMTP id 3B827A6F; Tue, 04 Jul 2023 15:14:56 +0800 X-QQ-mid: xmsmtpt1688454896tb24cbzep Message-ID: X-QQ-XMAILINFO: MOpJcPT3Yy24IpD5MpcDl1sIEsyc6BHA7QR1zH0YuZagLSLhZkXvxb7ooeCO6k JutRy1yWa1OEdwVjypFUo82+BigPbOpbwAmQ5lguTp7V5kOfXVFiJxOJ1w2xorJGY33mX0vMgKLj uy2RGRW3OTaXEtA4X85AoQ5Eu1wxca0662Tjr7LMAmZVWNpwS7i9cBIJVab+JEybmPP9xd5FzqQv zCy49E+p5ZF7tHKXwqfHwc36QaJMASMFtt/LzVskoPu8pxmM+qVOILkIVueRbgGmIzVDGIpjEO4h 6Mbf3r/R3yiijAo3WB83StDYFM5/7SNCzTxw6aE6D5BjfSrY62kgISbi/cP+GqsHLYKgd4GK9Lww BwOe60AbWFSf141h+70HU9TX1WMkGWitfog4SOELON+6fHzBSfv4Ipfcj6L4085+4yg8D1XGBD+2 BRJmFmpKmlsu1prKULRroIAxGtoOFE5M3kohYN+j8pycDccVoUOAJMYGhE6Q1EL8M7FxtTFjDaRE d+8QV3PTV/lsRM3bI3mvpVhN6NwnpMkO+qstadu2UkLuRVGayR9hmratz/R0pyghWbt2omYLvhvO jTCK3dgaHGbP+x93p4saLl9v7zeCzzGwYn/ZVLkJAx+FntxhNRlwwa7gvp+HZYa51EIHqT8nUYU4 heHLnnIc4GHU0JuUj8P9GvtYrJgyD/fF+RlsljXFckX1MtOlYUYmee80QM9+cl13PpJ5wPbRoLm8 OyKkHxZ3zrmz8GNcTSSGt0SsoseCePTzyT3tMfsByf8SVl56w8eSOVEygKR5/HdQobTpxShpD7aC 3jqoevDwUQIoWwVYzksAHCdqRHFvKRbIzfljhoGOzgWdbZ5PiEF6jF3oeQORSNxSOw+iQmS604zE DjLw6r6/f/UOin8U2+dEj9tuZLFc8ORsq1dWh0/6FQggLZMzDkcwoqcc3tdct6H8YrgXnCu+YNpa l1KFBwa513BdamfWG/Va+VsBBWFlECeGoWzcxXDzg= X-QQ-XMRINFO: OWPUhxQsoeAVDbp3OJHYyFg= From: Zhao Zhili To: ffmpeg-devel@ffmpeg.org Date: Tue, 4 Jul 2023 23:14:59 +0800 X-OQ-MSGID: <20230704151459.1239363-1-quinkblack@foxmail.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 Subject: [FFmpeg-devel] [PATCH] avutil/bfin: remove dead code 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 Cc: Zhao Zhili Errors-To: ffmpeg-devel-bounces@ffmpeg.org Sender: "ffmpeg-devel" X-TUID: A8qnjAMrGEhp From: Zhao Zhili The code is unused for a decade since bf6c84d7eb27b. Signed-off-by: Zhao Zhili --- libavutil/bfin/bswap.h | 45 ------------------------------------------ libavutil/bfin/timer.h | 41 -------------------------------------- 2 files changed, 86 deletions(-) delete mode 100644 libavutil/bfin/bswap.h delete mode 100644 libavutil/bfin/timer.h diff --git a/libavutil/bfin/bswap.h b/libavutil/bfin/bswap.h deleted file mode 100644 index 363ed40bc5..0000000000 --- a/libavutil/bfin/bswap.h +++ /dev/null @@ -1,45 +0,0 @@ -/* - * Copyright (C) 2007 Marc Hoffman - * - * 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 - */ - -/** - * @file - * byte swapping routines - */ - -#ifndef AVUTIL_BFIN_BSWAP_H -#define AVUTIL_BFIN_BSWAP_H - -#include -#include "config.h" -#include "libavutil/attributes.h" - -#define av_bswap32 av_bswap32 -static av_always_inline av_const uint32_t av_bswap32(uint32_t x) -{ - unsigned tmp; - __asm__("%1 = %0 >> 8 (V); \n\t" - "%0 = %0 << 8 (V); \n\t" - "%0 = %0 | %1; \n\t" - "%0 = PACK(%0.L, %0.H); \n\t" - : "+d"(x), "=&d"(tmp)); - return x; -} - -#endif /* AVUTIL_BFIN_BSWAP_H */ diff --git a/libavutil/bfin/timer.h b/libavutil/bfin/timer.h deleted file mode 100644 index 644573daec..0000000000 --- a/libavutil/bfin/timer.h +++ /dev/null @@ -1,41 +0,0 @@ -/* - * Copyright (C) 2007 Marc Hoffman - * - * 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 - */ - -#ifndef AVUTIL_BFIN_TIMER_H -#define AVUTIL_BFIN_TIMER_H - -#include - -#define AV_READ_TIME read_time - -static inline uint64_t read_time(void) -{ - union { - struct { - unsigned lo; - unsigned hi; - } p; - unsigned long long c; - } t; - __asm__ volatile ("%0=cycles; %1=cycles2;" : "=d" (t.p.lo), "=d" (t.p.hi)); - return t.c; -} - -#endif /* AVUTIL_BFIN_TIMER_H */