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 8F60F4B3B6 for ; Tue, 4 Jun 2024 20:25:30 +0000 (UTC) Received: from [127.0.1.1] (localhost [127.0.0.1]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTP id 0A6C568D688; Tue, 4 Jun 2024 23:25:28 +0300 (EEST) Received: from mail-lj1-f172.google.com (mail-lj1-f172.google.com [209.85.208.172]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTPS id 48DCC68CCB1 for ; Tue, 4 Jun 2024 23:25:20 +0300 (EEST) Received: by mail-lj1-f172.google.com with SMTP id 38308e7fff4ca-2e96f298fbdso61616301fa.1 for ; Tue, 04 Jun 2024 13:25:20 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=martin-st.20230601.gappssmtp.com; s=20230601; t=1717532719; x=1718137519; darn=ffmpeg.org; h=mime-version:references:message-id:in-reply-to:subject:cc:to:from :date:from:to:cc:subject:date:message-id:reply-to; bh=lVTyxcKVd6cBPky1xs7eiSoHDI8XlVcAagQSdp7NEzY=; b=YAdtu/1qGwdjoBZAeGZyf3DSi5+ZcoZjf/sRPkiAEeNvTTH32ALR+3w3NCfyuCt3Pp F5XRyx+BXBhIuHJOAjkGRyd1Vy7MFTPYU2NPUXyA59qoMn51OfHn15rgWuGhabo5Vgvr 5nDLaiktCmC6+zrUgBjNbC5/uWQZHcx6++aquOpOaBN7mY8NT4q8DVqVkHWniWWOS1i7 AnWOcVZyoPrPRHuxWxkHMKfAXhSv6Xif41AftjtiG0IiTYBkqbDYJfR2u7gn8AeVMTLx Dul6mmvE8cV9Dpuz9ZJydxS1JC1Nl15TDhGOYXwIGMu16c1xnmAS1F15znth221lf7eK OA8g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1717532719; x=1718137519; h=mime-version:references:message-id:in-reply-to:subject:cc:to:from :date:x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=lVTyxcKVd6cBPky1xs7eiSoHDI8XlVcAagQSdp7NEzY=; b=vI0hfryc+lf/bv0EWjWSvg7t0eobqNDj0AfN7WKhzFm2K63Xw/kLvZ4J9WpzmzHRc3 TXRednobQvGvUT09q7TZ/ot/mQ5IPtX4NqUmr6Gb8sqCzlLRuSLnOTivG7sBaJYX/nQy fP7WYXjzJx0I65s5+8Aq7Gy7McY3xr28SfmDRYWExbspVADmu9RFtF88M6dr79Vwu+O4 H1GU4YHvnwoEXt04NLdjI2uuCuwQOfnyR4LXMi1KlUipPud4+EDrYQ4zJ5Icmk6b+3tW yy3H4G3KXNysbyluaKAd196rxsgq/Ft2+W+8+Ap3M78tzxymufteEa9qWk3rVxSF42dT r7PQ== X-Gm-Message-State: AOJu0YxmtKcOLSNdRWz1mdJEqpIpBUKTt0TBPmLkv7WXqj96VV4PTRNO jA+4Uk84l75oUWHARy3gciBPLn3pbExBh0ERE1zqBwvsDlC/3KBRwfkVyHGcDmcIwqgTIDpuxYv S9A== X-Google-Smtp-Source: AGHT+IG6PAx4szggbVXJCagOsb8ondiXCKcCF7DTtNmeEDfgfQTdoFTh/O28OKtInsVcDfvILGhHIg== X-Received: by 2002:ac2:5583:0:b0:523:b7ec:a222 with SMTP id 2adb3069b0e04-52bab4fc76bmr309345e87.51.1717532719356; Tue, 04 Jun 2024 13:25:19 -0700 (PDT) Received: from tunnel335574-pt.tunnel.tserv24.sto1.ipv6.he.net (tunnel335574-pt.tunnel.tserv24.sto1.ipv6.he.net. [2001:470:27:11::2]) by smtp.gmail.com with ESMTPSA id 2adb3069b0e04-52b84d75fa0sm1616836e87.143.2024.06.04.13.25.18 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 04 Jun 2024 13:25:18 -0700 (PDT) Date: Tue, 4 Jun 2024 23:25:13 +0300 (EEST) From: =?ISO-8859-15?Q?Martin_Storsj=F6?= To: FFmpeg development discussions and patches In-Reply-To: Message-ID: <5e491080-aa62-c59-92a1-ab798851e198@martin.st> References: <20240604135504.83169-1-quinkblack@foxmail.com> MIME-Version: 1.0 Subject: Re: [FFmpeg-devel] [PATCH 5/5] avutil/aarch64: Fallback to clock_gettime as timer on Android 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-Transfer-Encoding: 7bit Content-Type: text/plain; charset="us-ascii"; Format="flowed" Errors-To: ffmpeg-devel-bounces@ffmpeg.org Sender: "ffmpeg-devel" Archived-At: List-Archive: List-Post: On Tue, 4 Jun 2024, Zhao Zhili wrote: > From: Zhao Zhili > > The inline asm doesn't work on Android. Using pmccntr_el0 doen't work, no, but instead of falling back to clock_gettime, you may want to use cntvct_el0 instead of pmccntr_el0. IIRC that works on Android, at least it worked a number of years ago. It has less precision than pmccntr_el0, but maybe is better than clock_gettime? I.e., use similar inline assembly as before, but with cntvct_el0 instead of pmccntr_el0. // Martin _______________________________________________ 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".