blob: 10288cd52680aa7ed67ce01052282b9a0022b51e [file] [edit]
//===----------------------------------------------------------------------===//
//
// 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/math/clc_exp2.h"
#include "clc/math/clc_exp2_fast.h"
#define __CLC_FLOAT_ONLY
#define __CLC_MIN_VECSIZE 1
#define __CLC_FUNCTION __clc_exp2_fast
#define __CLC_IMPL_FUNCTION(x) __builtin_amdgcn_exp2f(x)
#define __CLC_BODY "clc/shared/unary_def_scalarize.inc"
#include "clc/math/gentype.inc"
#undef __CLC_IMPL_FUNCTION
#undef __CLC_FLOAT_ONLY
#define __CLC_HALF_ONLY
#define __CLC_IMPL_FUNCTION(x) __clc_exp2
#define __CLC_BODY "clc/shared/unary_def.inc"
#include "clc/math/gentype.inc"
#undef __CLC_IMPL_FUNCTION
#undef __CLC_HALF_ONLY
#define __CLC_DOUBLE_ONLY
#define __CLC_IMPL_FUNCTION(x) __clc_exp2
#define __CLC_BODY "clc/shared/unary_def.inc"
#include "clc/math/gentype.inc"
#undef __CLC_IMPL_FUNCTION
#undef __CLC_DOUBLE_ONLY