This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: ARM/AAarch64: NEON intrinsics in the kernel
- From: "Joseph S. Myers" <joseph at codesourcery dot com>
- To: Ard Biesheuvel <ard dot biesheuvel at linaro dot org>
- Cc: <gcc at gcc dot gnu dot org>, Christophe Lyon <christophe dot lyon at linaro dot org>, Matthew Gretton-Dann <matthew dot gretton-dann at linaro dot org>, <richard dot earnshaw at arm dot com>, <ramana dot radhakrishnan at arm dot com>, <marcus dot shawcroft at arm dot com>
- Date: Tue, 21 May 2013 16:22:38 +0000
- Subject: Re: ARM/AAarch64: NEON intrinsics in the kernel
- References: <CAKv+Gu-FaFnODdcVtdtrVsoJmE95vgdvcicRQ7N9_MvKuFXd8w at mail dot gmail dot com>
On Tue, 21 May 2013, Ard Biesheuvel wrote:
> I am currently exploring various ways of using NEON instructions in
> kernel mode. One of the ways of doing so is using NEON intrinsics,
> which we would like to support in the kernel, but unfortunately, at
> the moment we can't because the support header arm_neon.h assumes C99
> conformance and includes <stdint.h>. The kernel does not supply that
> header.
GCC, however, does, and for Linux targets it installs stdint-wrap.h which
for freestanding builds includes stdint-gcc.h rather than depending on the
C library to provide the header. So as long as the kernel build uses
-ffreestanding, it should not matter that the kernel doesn't have its own
stdint.h.
--
Joseph S. Myers
joseph@codesourcery.com