Fraser Cormack b67504c461
[libclc] Tighten OpenCL builtin include strategy (#147276)
This commit continues the work from #146840 and extends it to the maths,
geomtrics, common, and relational directories.

All headers have include guards and, where appropriate, include the
minimal code required for their specific definitions. Implementation
files no longer include the large catch-all header of all OpenCL builtin
declarations.
2025-07-08 09:04:43 +01:00

21 lines
649 B
C

//===----------------------------------------------------------------------===//
//
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
// See https://llvm.org/LICENSE.txt for license information.
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
//
//===----------------------------------------------------------------------===//
#ifndef __CLC_OPENCL_MATH_NATIVE_RECIP_H__
#define __CLC_OPENCL_MATH_NATIVE_RECIP_H__
#define __CLC_BODY <clc/math/unary_decl.inc>
#define FUNCTION native_recip
#define __FLOAT_ONLY
#include <clc/math/gentype.inc>
#undef FUNCTION
#endif // __CLC_OPENCL_MATH_NATIVE_RECIP_H__