emacs-devel
[Top][All Lists]
Advanced

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

Re: master 86c4e5a2fb3: Fix implicit declaration of bswap_{32,64}


From: Collin Funk
Subject: Re: master 86c4e5a2fb3: Fix implicit declaration of bswap_{32,64}
Date: Sat, 30 Mar 2024 01:44:16 -0700
User-agent: Mozilla Thunderbird

On 3/30/24 1:34 AM, Andreas Schwab wrote:
>> Wouldn't it be better to use __builtin_bswap32 when it's available?
> The compiler is smart enough to do that by itself.

The macro would evaluate it's arguments multiple times though right?

This line:

    uint32_t result = bswap_32 (value++);

should increment 'value' once, but would do it four times with a
macro.

Collin



reply via email to

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