[FFmpeg-devel] [PATCH] avutil/cpu_internal: Provide ff_getauxval() wrapper for getauxvaul()
Ramiro Polla
ramiro.polla at gmail.com
Mon Sep 9 12:55:44 EEST 2024
On Mon, Sep 9, 2024 at 11:34 AM Brad Smith <brad at comstyle.com> wrote:
> On 2024-09-09 5:23 a.m., Ramiro Polla wrote:
>
> On Sat, Aug 24, 2024 at 3:30 PM Brad Smith
> <brad-at-comstyle.com at ffmpeg.org> wrote:
>
> avutil/cpu_internal: Provide ff_getauxval() wrapper for getauxvaul()
>
> Initially used for getauxval() but will be used to add support for
> other API.
>
> I'm curious, what other API do you have in mind? Is ff_getauxval()
> going to simulate getauxval() on other platforms? If that's the case,
> wouldn't it be better to create a function to get hardware
> capabilities instead (which may use getauxval or other API under the
> hood)?
>
> elf_aux_info() for FreeBSD / OpenBSD.
Perhaps add this to the commit message as well?
Either way the patch looks good to me too. Thanks!
> It would probably make sense
> to move the /proc/self/auxv fallback path for Linux there too.
Yes, that makes sense to me.
More information about the ffmpeg-devel
mailing list