bug-gnulib
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [PATCH] crc: Add PCLMUL implementation


From: Simon Josefsson
Subject: Re: [PATCH] crc: Add PCLMUL implementation
Date: Tue, 17 Dec 2024 08:55:42 +0100
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/27.1 (gnu/linux)

Thanks - I have pushed this now.

Sam Russell <sam.h.russell@gmail.com> writes:

>> I'm unsure about those CFLAGS.  Aren't these CFLAGS required when
>> building the code too?  If not, why can't the same pattern to detect
>> PCLMUL during ./configure which is done during run-time?
>
> discussed with Bruno earlier in the thread, CFLAGS set this for the entire
> build so we've done it with pragmas inside crc-x86_64-pclmul.c

My point was that it would be better to use the same mechanism the .c
implementation uses in the ./configure check, to make sure it tests for
what will be used.  That is, drop the CFLAGS changes and add:

#pragma GCC push_options
#pragma GCC target("pclmul,avx")
...
#pragma GCC pop_options

/Simon

Attachment: signature.asc
Description: PGP signature


reply via email to

[Prev in Thread] Current Thread [Next in Thread]