From patchwork Thu Nov 16 18:39:29 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: =?utf-8?q?R=C3=A9mi_Denis-Courmont?= X-Patchwork-Id: 44687 Delivered-To: ffmpegpatchwork2@gmail.com Received: by 2002:a05:6a20:2a20:b0:181:818d:5e7f with SMTP id e32csp75172pzh; Thu, 16 Nov 2023 10:39:42 -0800 (PST) X-Google-Smtp-Source: AGHT+IHHkvgIntE434T4biqu2CDCuHioYgsT0Iyv5j1lXDRmuiestlmsH5/j9bVQGcSsh3wauLdu X-Received: by 2002:a17:906:7f94:b0:9dd:87ec:9455 with SMTP id f20-20020a1709067f9400b009dd87ec9455mr2535673ejr.48.1700159982051; Thu, 16 Nov 2023 10:39:42 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1700159982; cv=none; d=google.com; s=arc-20160816; b=PJ10DXOgty8J2cnFpSvzBUKJk5IfqhVAaH3CFEpSElrOevWiGo0paYdBB+aGDETfLt 03AEIWvOpDTzr0jOOAmzcryr1aRIG9bLSBDBwyfGwjIETbOvFnwVwCQXm9sMCe0UjxoR veJmAi8wcXwReDAyeiR+Osa8tDIJuefQXkoVgGOs4De3KXEOUgcNyy7/gILcGxgibCbs NymbF7Gue7l2QN/nhJCHNxrJWsYUxNWCLKKto/WpOaFc5zhuQS7BrI5kzHHYktlyya5C 6y86sBXvNK4q46SmHCMus0guysEVNIYcRm6mLW/VU6O/eTG4Ha1ceHgngYxd5XG28ypN nmzQ== 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:message-id:date:to:from :delivered-to; bh=MuLNehV5hbFjgBJOWwBGbSpshYejqd6YrE3FLLEmSfE=; fh=YOA8vD9MJZuwZ71F/05pj6KdCjf6jQRmzLS+CATXUQk=; b=Qwpmt+qNwAf8u5qoJ+6u8nddeDUW5zAjI65CrKnykT0pvoBekzfDrZ7cKjZBoEX5WR md48pd38QagkFJ5Y+GhZL36rV/3rc+PWTIIipk68dK5eE0uzReLv7873WZMmJHyCYSPU pto1xQ/PRrO+5Pxc91JNfJixBTcaa1BnKoziFS+vvVbnDk1/HA00MvhNRqX/VZyv3L0j p5eZwWBfYJbSqH9p++ZKaSAvG4fMgB7G0P8qw0hOIuzij21vb/psqEqPuOeSF2qps154 fPPANfmCqqvKNfQesHzi2rTBnVZOJlf2kW3SS16KTQ52/jH5QxJouFj6XkoW4mewz2TM 1lLw== 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 r24-20020a170906c29800b009b3062821e2si6757096ejz.827.2023.11.16.10.39.41; Thu, 16 Nov 2023 10:39:42 -0800 (PST) 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 1366768CD68; Thu, 16 Nov 2023 20:39:37 +0200 (EET) 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 79E6568CC3C for ; Thu, 16 Nov 2023 20:39:30 +0200 (EET) Received: from basile.remlab.net (localhost [IPv6:::1]) by ursule.remlab.net (Postfix) with ESMTP id 187ECC0170 for ; Thu, 16 Nov 2023 20:39:30 +0200 (EET) From: =?utf-8?q?R=C3=A9mi_Denis-Courmont?= To: ffmpeg-devel@ffmpeg.org Date: Thu, 16 Nov 2023 20:39:29 +0200 Message-ID: <20231116183929.64227-1-remi@remlab.net> X-Mailer: git-send-email 2.42.0 MIME-Version: 1.0 Subject: [FFmpeg-devel] [PATCH] riscv: set fast half-precision conversion 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: YOmVUMvgx4xQ This is only supported at compilation time. If Zfhmin is supported, then conversions are fast, which is what the flag is used for. At this time, run-tiem detection is not possible, as in not supported by Linux. But even if it were, the current FFmpeg approach seems unable to deal with it (same problem as on x86, really). --- configure | 3 +++ 1 file changed, 3 insertions(+) diff --git a/configure b/configure index d6e4a1e7df..6be849fc08 100755 --- a/configure +++ b/configure @@ -5413,6 +5413,9 @@ elif enabled riscv; then if test_cpp_condition stddef.h "__riscv_zbb"; then enable fast_clz fi + if test_cpp_condition stddef.h "__riscv_zfhmin"; then + enable fast_float16 + fi elif enabled sparc; then