From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from ffbox0-bg.mplayerhq.hu (ffbox0-bg.ffmpeg.org [79.124.17.100]) by master.gitmailbox.com (Postfix) with ESMTP id 23BD746B8E for ; Tue, 4 Jul 2023 07:15:17 +0000 (UTC) Received: from [127.0.1.1] (localhost [127.0.0.1]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTP id B976668C588; Tue, 4 Jul 2023 10:15:14 +0300 (EEST) 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 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Errors-To: ffmpeg-devel-bounces@ffmpeg.org Sender: "ffmpeg-devel" Archived-At: List-Archive: List-Post: 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 */ -- 2.25.1 _______________________________________________ ffmpeg-devel mailing list ffmpeg-devel@ffmpeg.org https://ffmpeg.org/mailman/listinfo/ffmpeg-devel To unsubscribe, visit link above, or email ffmpeg-devel-request@ffmpeg.org with subject "unsubscribe".