[FFmpeg-devel] [PATCH] avutil/cpu_internal: Provide ff_getauxval() wrapper for getauxvaul()
Brad Smith
brad at comstyle.com
Mon Sep 9 13:02:30 EEST 2024
On 2024-09-09 5:55 a.m., Ramiro Polla wrote:
> 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?
Will do so.
>
> 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.
> _______________________________________________
> ffmpeg-devel mailing list
> ffmpeg-devel at ffmpeg.org
> https://ffmpeg.org/mailman/listinfo/ffmpeg-devel
>
> To unsubscribe, visit link above, or email
> ffmpeg-devel-request at ffmpeg.org with subject "unsubscribe".
More information about the ffmpeg-devel
mailing list