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 E955446681 for ; Tue, 30 May 2023 12:31:32 +0000 (UTC) Received: from [127.0.1.1] (localhost [127.0.0.1]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTP id E785868C225; Tue, 30 May 2023 15:30:55 +0300 (EEST) Received: from mail-lf1-f53.google.com (mail-lf1-f53.google.com [209.85.167.53]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTPS id 102B268C16A for ; Tue, 30 May 2023 15:30:48 +0300 (EEST) Received: by mail-lf1-f53.google.com with SMTP id 2adb3069b0e04-4f3b4ed6fdeso4616528e87.3 for ; Tue, 30 May 2023 05:30:48 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=martin-st.20221208.gappssmtp.com; s=20221208; t=1685449847; x=1688041847; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:to:from:from:to:cc:subject:date:message-id :reply-to; bh=p6u9VoIp6uKAm1YK+b9wPM9c0YeBndAJnRmlmYxICgw=; b=sYiXJKxrgOM+MpZA0xPtfLrc0MDQ8JGkm5jfuaMipyNxX12VsI/wAr88U2wEwylTy3 weBOj4WYjgPsme3MJ7JB+iomaUbHqmIF+HNpkPuDm6O+j3EnbqqN4eDQrFGbpTxTOn+j fV8oo0AQsdg1angIxHSBFo5NymjAryilPD0ARTNSzP18Zvfo8ilzNDuSkm7CBHX6GE/i 39RT4arTMeh+9Bfh8iOElaIBHPGsLHkNP0JAbPcRXsL/S6A5d63hCYvxevYVTVV/inIn CtvT4fYGXFNtuwHx3tVPPYdZN3jBKhfHwaeYP56LDB6Ghs4RFpZwEXPZLqxuZoKldZR7 5wgg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1685449847; x=1688041847; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=p6u9VoIp6uKAm1YK+b9wPM9c0YeBndAJnRmlmYxICgw=; b=EHVWjY91bvcx+CPJouOZ97xD6x25IN4wQhab3MBSZK94RhQEk4H8U/87gToClXQUdb hCjcXLe5bDzUncPkQ7op9DwIaeUbCdSMvLnZ6c/aIjpaofS+TwlfBZ7XS5mvw9Ii9tJJ te0HEMw5rteteKSO4xnbw0LAmV5nvMqG0VYAAO9l5KPVmv7hpj2k2XKt/judX2KTKdN3 TprZlYEP88wkNBuEsVkQhKbM4sZn2LnfZOl3b/Ctnjbh4lTxzo+1Mi8ixAKZgDiOcFHc IQAUqm4oe4PSAdMtx93Vo1Elz4ZVdqYIn2CHG8fqg++e/nZtD/Iwjfjt6lOy1wtrZcb1 /Ypg== X-Gm-Message-State: AC+VfDyhwmA5ZPnCJGSXwXidab58H904sOs4NdGS0g9G0VIRkQSZSy95 fHoM6OgzauPNh1ujz/BDQrEE3ej71QYg8zrPSb5oVA== X-Google-Smtp-Source: ACHHUZ7eACh6QqWKtpTKf9zusookimZmS6Hvrzs+T1PYveonl1NVDCdkVNg9iz4KyxT6l6n+LBiPZg== X-Received: by 2002:ac2:5e8d:0:b0:4f2:4caa:cc67 with SMTP id b13-20020ac25e8d000000b004f24caacc67mr673830lfq.40.1685449847458; Tue, 30 May 2023 05:30:47 -0700 (PDT) Received: from localhost (dsl-tkubng21-58c01c-243.dhcp.inet.fi. [88.192.28.243]) by smtp.gmail.com with ESMTPSA id q20-20020ac25294000000b004f3aee3aae2sm328763lfm.140.2023.05.30.05.30.47 for (version=TLS1 cipher=AES128-SHA bits=128/128); Tue, 30 May 2023 05:30:47 -0700 (PDT) From: =?UTF-8?q?Martin=20Storsj=C3=B6?= To: ffmpeg-devel@ffmpeg.org Date: Tue, 30 May 2023 15:30:43 +0300 Message-Id: <20230530123043.52940-5-martin@martin.st> X-Mailer: git-send-email 2.37.1 (Apple Git-137.1) In-Reply-To: <20230530123043.52940-1-martin@martin.st> References: <20230530123043.52940-1-martin@martin.st> MIME-Version: 1.0 Subject: [FFmpeg-devel] [PATCH v2 5/5] aarch64: Add Windows runtime detection of the dotprod instructions 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 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: For Windows, there's no publicly defined constant for checking for the i8mm extension yet. --- libavutil/aarch64/cpu.c | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/libavutil/aarch64/cpu.c b/libavutil/aarch64/cpu.c index ffb00f6dd2..4b97530240 100644 --- a/libavutil/aarch64/cpu.c +++ b/libavutil/aarch64/cpu.c @@ -94,6 +94,16 @@ static int detect_flags(void) return flags; } +#elif defined(_WIN32) +#include + +static int detect_flags(void) +{ + int flags = 0; + if (IsProcessorFeaturePresent(PF_ARM_V82_DP_INSTRUCTIONS_AVAILABLE)) + flags |= AV_CPU_FLAG_DOTPROD; + return flags; +} #else static int detect_flags(void) -- 2.37.1 (Apple Git-137.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".