[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20190321032429.2e7jddbltblaekjc@ast-mbp.dhcp.thefacebook.com>
Date: Wed, 20 Mar 2019 20:24:30 -0700
From: Alexei Starovoitov <alexei.starovoitov@...il.com>
To: Sergey Senozhatsky <sergey.senozhatsky@...il.com>
Cc: Shuah Khan <shuah@...nel.org>, Alexei Starovoitov <ast@...nel.org>,
Stanislav Fomichev <sdf@...gle.com>,
Daniel Borkmann <daniel@...earbox.net>,
Martin KaFai Lau <kafai@...com>,
Song Liu <songliubraving@...com>, Yonghong Song <yhs@...com>,
linux-kselftest@...r.kernel.org, netdev@...r.kernel.org,
bpf@...r.kernel.org
Subject: Re: [PATCHv2 bpf-next 1/3] bpf, tests: tweak endianness selection
On Wed, Mar 20, 2019 at 09:53:33PM +0900, Sergey Senozhatsky wrote:
> Not all compilers have __builtin_bswap16() and __builtin_bswap32(),
> thus not all compilers are able to compile the following code:
>
> (__builtin_constant_p(x) ? \
> ___constant_swab16(x) : __builtin_bswap16(x))
>
> That's the reason why bpf_ntohl() doesn't work on GCC < 4.8, for
> instance:
nack to fixes to support such old compilers.
Powered by blists - more mailing lists