Files
clang-p2996/libclc/clc/lib/generic/geometric/clc_fast_normalize.cl
Fraser Cormack 8c3019ecf4 [libclc] Add (fast) normalize to CLC; add half overloads (#139759)
For simplicity the half overloads just call into the float versions of
the builtin. Otherwise there are no codegen changes to any target.
2025-06-05 09:11:36 +01:00

16 lines
581 B
Common Lisp

//===----------------------------------------------------------------------===//
//
// 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
//
//===----------------------------------------------------------------------===//
#include <clc/geometric/clc_dot.h>
#include <clc/geometric/clc_normalize.h>
#include <clc/math/clc_half_rsqrt.h>
#define __FLOAT_ONLY
#define __CLC_BODY <clc_fast_normalize.inc>
#include <clc/math/gentype.inc>