[libclc][NFC] Move key math headers to CLC (#124739)

This commit is contained in:
Fraser Cormack 2025-01-28 14:17:23 +00:00 committed by GitHub
parent 3a975d697f
commit 78b5bb702f
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
66 changed files with 178 additions and 212 deletions

View File

@ -19,6 +19,8 @@
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
* THE SOFTWARE.
*/
#ifndef __CLC_MATH_CLC_SUBNORMAL_CONFIG_H__
#define __CLC_MATH_CLC_SUBNORMAL_CONFIG_H__
#include <clc/clcfunc.h>
@ -26,3 +28,5 @@ _CLC_DECL bool __clc_subnormals_disabled();
_CLC_DECL bool __clc_fp16_subnormals_supported();
_CLC_DECL bool __clc_fp32_subnormals_supported();
_CLC_DECL bool __clc_fp64_subnormals_supported();
#endif // __CLC_MATH_CLC_SUBNORMAL_CONFIG_H__

View File

@ -20,12 +20,12 @@
* THE SOFTWARE.
*/
#ifndef __CLC_MATH_H_
#define __CLC_MATH_H_
#ifndef __CLC_MATH_MATH_H__
#define __CLC_MATH_MATH_H__
#include "clc/clcfunc.h"
#include "clc/as_type.h"
#include "config.h"
#include <clc/clc_as_type.h>
#include <clc/clcfunc.h>
#include <clc/math/clc_subnormal_config.h>
#define SNAN 0x001
#define QNAN 0x002
@ -76,13 +76,12 @@ bool __attribute__((noinline)) __clc_runtime_has_hw_fma32(void);
#define MANTLENGTH_SP32 24
#define BASEDIGITS_SP32 7
_CLC_OVERLOAD _CLC_INLINE float __clc_flush_denormal_if_not_supported(float x)
{
int ix = as_int(x);
if (!__clc_fp32_subnormals_supported() &&
((ix & EXPBITS_SP32) == 0) && ((ix & MANTBITS_SP32) != 0)) {
_CLC_OVERLOAD _CLC_INLINE float __clc_flush_denormal_if_not_supported(float x) {
int ix = __clc_as_int(x);
if (!__clc_fp32_subnormals_supported() && ((ix & EXPBITS_SP32) == 0) &&
((ix & MANTBITS_SP32) != 0)) {
ix &= SIGNBIT_SP32;
x = as_float(ix);
x = __clc_as_float(ix);
}
return x;
}
@ -114,4 +113,5 @@ _CLC_OVERLOAD _CLC_INLINE float __clc_flush_denormal_if_not_supported(float x)
#endif // cl_khr_fp64
#define ALIGNED(x) __attribute__((aligned(x)))
#endif // __CLC_MATH_H_
#endif // __CLC_MATH_MATH_H__

View File

@ -20,25 +20,23 @@
* THE SOFTWARE.
*/
#ifndef __CLC_MATH_TABLES_H__
#define __CLC_MATH_TABLES_H__
#include <clc/clctypes.h>
#define TABLE_SPACE __constant
#define TABLE_MANGLE(NAME) __clc_##NAME
#define DECLARE_TABLE(TYPE,NAME,LENGTH) \
TABLE_SPACE TYPE NAME [ LENGTH ]
#define DECLARE_TABLE(TYPE, NAME, LENGTH) TABLE_SPACE TYPE NAME[LENGTH]
#define TABLE_FUNCTION(TYPE, TABLE, NAME) \
TYPE TABLE_MANGLE(NAME)(size_t idx) { \
return TABLE[idx]; \
}
TYPE TABLE_MANGLE(NAME)(size_t idx) { return TABLE[idx]; }
#define TABLE_FUNCTION_DECL(TYPE, NAME) \
TYPE TABLE_MANGLE(NAME)(size_t idx);
#define TABLE_FUNCTION_DECL(TYPE, NAME) TYPE TABLE_MANGLE(NAME)(size_t idx);
#define USE_TABLE(NAME, IDX) \
TABLE_MANGLE(NAME)(IDX)
#define USE_TABLE(NAME, IDX) TABLE_MANGLE(NAME)(IDX)
TABLE_FUNCTION_DECL(float2, loge_tbl);
TABLE_FUNCTION_DECL(float, log_inv_tbl);
@ -67,3 +65,5 @@ TABLE_FUNCTION_DECL(double2, powlog_tbl);
TABLE_FUNCTION_DECL(double2, log_f_inv_tbl);
#endif // cl_khr_fp64
#endif // __CLC_MATH_TABLES_H__

View File

@ -24,9 +24,9 @@
// (__clc_sw_fma), but avoids the use of ulong in favor of uint2. The logic has
// been updated as appropriate.
#include "../../../generic/lib/math/math.h"
#include <clc/clc.h>
#include <clc/clcmacro.h>
#include <clc/math/math.h>
struct fp {
uint2 mantissa;

View File

@ -21,8 +21,7 @@
*/
#include <clc/clc.h>
#include "config.h"
#include <clc/math/clc_subnormal_config.h>
_CLC_DEF bool __clc_fp16_subnormals_supported() { return false; }

View File

@ -1,3 +1,5 @@
#include <clc/clcfunc.h>
_CLC_DEF _CLC_OVERLOAD float __clc_ldexp(float, int);
#ifdef cl_khr_fp64

View File

@ -19,10 +19,10 @@
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
* THE SOFTWARE.
*/
#include <clc/clc.h>
#include <clc/clcmacro.h>
#include "math.h"
#include <clc/math/math.h>
_CLC_OVERLOAD _CLC_DEF float acos(float x) {
// Computes arccos(x).

View File

@ -20,11 +20,10 @@
* THE SOFTWARE.
*/
#include "ep_log.h"
#include <clc/clc.h>
#include <clc/clcmacro.h>
#include "ep_log.h"
#include "math.h"
#include <clc/math/math.h>
_CLC_OVERLOAD _CLC_DEF float acosh(float x) {
uint ux = as_uint(x);

View File

@ -22,8 +22,7 @@
#include <clc/clc.h>
#include <clc/clcmacro.h>
#include "math.h"
#include <clc/math/math.h>
_CLC_OVERLOAD _CLC_DEF float acospi(float x) {
// Computes arccos(x).

View File

@ -22,8 +22,7 @@
#include <clc/clc.h>
#include <clc/clcmacro.h>
#include "math.h"
#include <clc/math/math.h>
_CLC_OVERLOAD _CLC_DEF float asin(float x) {
// Computes arcsin(x).

View File

@ -20,11 +20,10 @@
* THE SOFTWARE.
*/
#include "ep_log.h"
#include <clc/clc.h>
#include <clc/clcmacro.h>
#include "math.h"
#include "ep_log.h"
#include <clc/math/math.h>
_CLC_OVERLOAD _CLC_DEF float asinh(float x) {
uint ux = as_uint(x);

View File

@ -22,8 +22,7 @@
#include <clc/clc.h>
#include <clc/clcmacro.h>
#include "math.h"
#include <clc/math/math.h>
_CLC_OVERLOAD _CLC_DEF float asinpi(float x) {
// Computes arcsin(x).

View File

@ -22,8 +22,7 @@
#include <clc/clc.h>
#include <clc/clcmacro.h>
#include "math.h"
#include <clc/math/math.h>
_CLC_OVERLOAD _CLC_DEF float atan(float x)
{

View File

@ -22,9 +22,8 @@
#include <clc/clc.h>
#include <clc/clcmacro.h>
#include "math.h"
#include "tables.h"
#include <clc/math/math.h>
#include <clc/math/tables.h>
_CLC_OVERLOAD _CLC_DEF float atan2(float y, float x)
{

View File

@ -22,9 +22,8 @@
#include <clc/clc.h>
#include <clc/clcmacro.h>
#include "math.h"
#include "tables.h"
#include <clc/math/math.h>
#include <clc/math/tables.h>
_CLC_OVERLOAD _CLC_DEF float atan2pi(float y, float x) {
const float pi = 0x1.921fb6p+1f;

View File

@ -22,8 +22,7 @@
#include <clc/clc.h>
#include <clc/clcmacro.h>
#include "math.h"
#include <clc/math/math.h>
_CLC_OVERLOAD _CLC_DEF float atanh(float x) {
uint ux = as_uint(x);

View File

@ -22,8 +22,7 @@
#include <clc/clc.h>
#include <clc/clcmacro.h>
#include "math.h"
#include <clc/math/math.h>
_CLC_OVERLOAD _CLC_DEF float atanpi(float x) {
const float pi = 3.1415926535897932f;

View File

@ -22,9 +22,8 @@
#include <clc/clc.h>
#include <clc/clcmacro.h>
#include "math.h"
#include "tables.h"
#include <clc/math/math.h>
#include <clc/math/tables.h>
_CLC_OVERLOAD _CLC_DEF float cbrt(float x) {

View File

@ -23,12 +23,11 @@
#include <clc/clc.h>
#include <clc/clcmacro.h>
#include <clc/math/clc_mad.h>
#include <clc/math/clc_subnormal_config.h>
#include <clc/math/math.h>
#include <clc/math/tables.h>
#include <clc/relational/clc_isnan.h>
#include "config.h"
#include "math.h"
#include "tables.h"
// Algorithm:
//
// e^x = 2^(x/ln(2)) = 2^(x*(64/ln(2))/64)

View File

@ -23,13 +23,12 @@
#include <clc/clc.h>
#include <clc/clcmacro.h>
#include <clc/integer/clc_abs.h>
#include <clc/math/clc_subnormal_config.h>
#include <clc/math/math.h>
#include <clc/relational/clc_isinf.h>
#include <clc/relational/clc_isnan.h>
#include <clc/shared/clc_max.h>
#include "config.h"
#include "math.h"
struct fp {
ulong mantissa;
int exponent;

View File

@ -23,12 +23,11 @@
#include <clc/clc.h>
#include <clc/clcmacro.h>
#include <clc/math/clc_floor.h>
#include <clc/math/clc_subnormal_config.h>
#include <clc/math/clc_trunc.h>
#include <clc/math/math.h>
#include <clc/shared/clc_max.h>
#include <math/clc_remainder.h>
#include "config.h"
#include "math.h"
_CLC_DEF _CLC_OVERLOAD float __clc_fmod(float x, float y)
{

View File

@ -24,13 +24,12 @@
#include <clc/clcmacro.h>
#include <clc/integer/clc_abs.h>
#include <clc/math/clc_mad.h>
#include <clc/math/clc_subnormal_config.h>
#include <clc/math/math.h>
#include <clc/relational/clc_isnan.h>
#include <clc/shared/clc_clamp.h>
#include <math/clc_hypot.h>
#include "config.h"
#include "math.h"
// Returns sqrt(x*x + y*y) with no overflow or underflow unless the result
// warrants it
_CLC_DEF _CLC_OVERLOAD float __clc_hypot(float x, float y) {

View File

@ -20,8 +20,8 @@
* THE SOFTWARE.
*/
#include "config.h"
#include "math.h"
#include <clc/math/clc_subnormal_config.h>
#include <clc/math/math.h>
#include <clc/clc.h>
#include <clc/clcmacro.h>
#include <clc/relational/clc_isinf.h>

View File

@ -24,10 +24,9 @@
#include <clc/clcmacro.h>
#include <clc/math/clc_fabs.h>
#include <clc/math/clc_mad.h>
#include "config.h"
#include "math.h"
#include "tables.h"
#include <clc/math/clc_subnormal_config.h>
#include <clc/math/math.h>
#include <clc/math/tables.h>
/*
compute pow using log and exp

View File

@ -24,10 +24,9 @@
#include <clc/clcmacro.h>
#include <clc/math/clc_fabs.h>
#include <clc/math/clc_mad.h>
#include "config.h"
#include "math.h"
#include "tables.h"
#include <clc/math/clc_subnormal_config.h>
#include <clc/math/math.h>
#include <clc/math/tables.h>
// compute pow using log and exp
// x^y = exp(y * log(x))

View File

@ -24,10 +24,9 @@
#include <clc/clcmacro.h>
#include <clc/math/clc_fabs.h>
#include <clc/math/clc_mad.h>
#include "config.h"
#include "math.h"
#include "tables.h"
#include <clc/math/clc_subnormal_config.h>
#include <clc/math/math.h>
#include <clc/math/tables.h>
// compute pow using log and exp
// x^y = exp(y * log(x))

View File

@ -23,12 +23,11 @@
#include <clc/clc.h>
#include <clc/clcmacro.h>
#include <clc/math/clc_floor.h>
#include <clc/math/clc_subnormal_config.h>
#include <clc/math/clc_trunc.h>
#include <clc/math/math.h>
#include <clc/shared/clc_max.h>
#include <math/clc_remainder.h>
#include "config.h"
#include "math.h"
_CLC_DEF _CLC_OVERLOAD float __clc_remainder(float x, float y)
{

View File

@ -23,13 +23,12 @@
#include <clc/clc.h>
#include <clc/clcmacro.h>
#include <clc/math/clc_floor.h>
#include <clc/math/clc_subnormal_config.h>
#include <clc/math/clc_trunc.h>
#include <clc/math/math.h>
#include <clc/shared/clc_max.h>
#include <math/clc_remainder.h>
#include "config.h"
#include "math.h"
_CLC_DEF _CLC_OVERLOAD float __clc_remquo(float x, float y,
__private int *quo) {
x = __clc_flush_denormal_if_not_supported(x);

View File

@ -24,10 +24,9 @@
#include <clc/clcmacro.h>
#include <clc/math/clc_fabs.h>
#include <clc/math/clc_mad.h>
#include "config.h"
#include "math.h"
#include "tables.h"
#include <clc/math/clc_subnormal_config.h>
#include <clc/math/math.h>
#include <clc/math/tables.h>
// compute pow using log and exp
// x^y = exp(y * log(x))

View File

@ -19,16 +19,15 @@
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
* THE SOFTWARE.
*/
#include "sincos_helpers.h"
#include <clc/clc.h>
#include <clc/clcmacro.h>
#include <clc/math/clc_fabs.h>
#include <clc/math/math.h>
#include <clc/math/tables.h>
#include <clc/relational/clc_isinf.h>
#include <clc/relational/clc_isnan.h>
#include "math.h"
#include "sincos_helpers.h"
#include "tables.h"
_CLC_DEF _CLC_OVERLOAD float __clc_tan(float x) {
int ix = as_int(x);
int ax = ix & 0x7fffffff;

View File

@ -19,12 +19,12 @@
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
* THE SOFTWARE.
*/
#include "sincos_helpers.h"
#include <clc/clc.h>
#include <clc/clcmacro.h>
#include "math.h"
#include "sincos_helpers.h"
#include "tables.h"
#include <clc/math/math.h>
#include <clc/math/tables.h>
_CLC_DEF _CLC_OVERLOAD float __clc_tanpi(float x)
{

View File

@ -20,11 +20,10 @@
* THE SOFTWARE.
*/
#include "sincos_helpers.h"
#include <clc/clc.h>
#include <clc/clcmacro.h>
#include "math.h"
#include "sincos_helpers.h"
#include <clc/math/math.h>
_CLC_OVERLOAD _CLC_DEF float cos(float x)
{

View File

@ -22,9 +22,8 @@
#include <clc/clc.h>
#include <clc/clcmacro.h>
#include "math.h"
#include "tables.h"
#include <clc/math/math.h>
#include <clc/math/tables.h>
_CLC_OVERLOAD _CLC_DEF float cosh(float x) {

View File

@ -22,8 +22,8 @@
#include <clc/clc.h>
#include <clc/clcmacro.h>
#include <clc/math/math.h>
#include "math.h"
#include "sincos_helpers.h"
#include "sincospiF_piby4.h"
#ifdef cl_khr_fp64

View File

@ -22,10 +22,10 @@
#ifdef cl_khr_fp64
#include <clc/clc.h>
#include "ep_log.h"
#include "math.h"
#include "tables.h"
#include <clc/clc.h>
#include <clc/math/math.h>
#include <clc/math/tables.h>
#pragma OPENCL EXTENSION cl_khr_fp64 : enable

View File

@ -20,6 +20,8 @@
* THE SOFTWARE.
*/
#include <clc/clcfunc.h>
#ifdef cl_khr_fp64
#pragma OPENCL EXTENSION cl_khr_fp64 : enable

View File

@ -22,8 +22,7 @@
#include <clc/clc.h>
#include <clc/clcmacro.h>
#include "math.h"
#include <clc/math/math.h>
/*
* ====================================================

View File

@ -22,8 +22,7 @@
#include <clc/clc.h>
#include <clc/clcmacro.h>
#include "math.h"
#include <clc/math/math.h>
/*
* ====================================================

View File

@ -22,8 +22,7 @@
#include <clc/clc.h>
#include <clc/clcmacro.h>
#include "math.h"
#include <clc/math/math.h>
_CLC_OVERLOAD _CLC_DEF float exp(float x) {

View File

@ -22,8 +22,7 @@
#include <clc/clc.h>
#include <clc/clcmacro.h>
#include "math.h"
#include <clc/math/math.h>
_CLC_OVERLOAD _CLC_DEF float exp2(float x) {

View File

@ -21,9 +21,8 @@
*/
#include <clc/clc.h>
#include "math.h"
#include "tables.h"
#include <clc/math/math.h>
#include <clc/math/tables.h>
#ifdef cl_khr_fp64

View File

@ -1,8 +1,7 @@
#include <clc/clc.h>
#include <clc/clcmacro.h>
#include "math.h"
#include "tables.h"
#include <clc/math/math.h>
#include <clc/math/tables.h>
/* Refer to the exp routine for the underlying algorithm */

View File

@ -1,6 +1,5 @@
#include <clc/clc.h>
#include "math.h"
#include <clc/math/math.h>
#define __CLC_BODY <fdim.inc>
#include <clc/math/gentype.inc>

View File

@ -1,6 +1,6 @@
#include <clc/clc.h>
#include <clc/math/math.h>
#include "math.h"
#include "math/clc_fma.h"
#define __CLC_BODY <fma.inc>

View File

@ -21,9 +21,9 @@
* THE SOFTWARE.
*/
#include "math.h"
#include <clc/clc.h>
#include <clc/clcmacro.h>
#include <clc/math/math.h>
_CLC_OVERLOAD _CLC_DEF int ilogb(float x) {
uint ux = as_uint(x);

View File

@ -20,11 +20,11 @@
* THE SOFTWARE.
*/
#include "config.h"
#include "math.h"
#include "math/clc_ldexp.h"
#include <clc/clc.h>
#include <clc/clcmacro.h>
#include <clc/math/clc_subnormal_config.h>
#include <clc/math/math.h>
_CLC_DEFINE_BINARY_BUILTIN(float, ldexp, __clc_ldexp, float, int)

View File

@ -23,8 +23,7 @@
#include <clc/clc.h>
#include <clc/clcmacro.h>
#include "math.h"
#include <clc/math/math.h>
/*
* ====================================================

View File

@ -20,7 +20,7 @@
* THE SOFTWARE.
*/
#include "tables.h"
#include <clc/math/tables.h>
#include <clc/clc.h>
#include <clc/clcmacro.h>

View File

@ -22,9 +22,8 @@
#include <clc/clc.h>
#include <clc/clcmacro.h>
#include "math.h"
#include "tables.h"
#include <clc/math/math.h>
#include <clc/math/tables.h>
_CLC_OVERLOAD _CLC_DEF float log1p(float x)
{

View File

@ -20,7 +20,7 @@
* THE SOFTWARE.
*/
#include "tables.h"
#include <clc/math/tables.h>
#include <clc/clc.h>
#include <clc/clcmacro.h>

View File

@ -20,7 +20,7 @@
* THE SOFTWARE.
*/
#include "math.h"
#include <clc/math/math.h>
/*
Algorithm:

View File

@ -1,6 +1,6 @@
#include "math.h"
#include <clc/clc.h>
#include <clc/clcmacro.h>
#include <clc/math/math.h>
_CLC_OVERLOAD _CLC_DEF float logb(float x) {
int ax = as_int(x) & EXSIGNBIT_SP32;

View File

@ -21,8 +21,7 @@
*/
#include <clc/clc.h>
#include "math.h"
#include <clc/math/math.h>
#define __CLC_BODY <modf.inc>
#include <clc/math/gentype.inc>

View File

@ -20,11 +20,10 @@
* THE SOFTWARE.
*/
#include "sincos_helpers.h"
#include <clc/clc.h>
#include <clc/clcmacro.h>
#include "math.h"
#include "sincos_helpers.h"
#include <clc/math/math.h>
_CLC_OVERLOAD _CLC_DEF float sin(float x)
{

View File

@ -20,15 +20,14 @@
* THE SOFTWARE.
*/
#include "sincos_helpers.h"
#include <clc/clc.h>
#include <clc/math/clc_mad.h>
#include <clc/math/clc_trunc.h>
#include <clc/math/math.h>
#include <clc/math/tables.h>
#include <clc/shared/clc_max.h>
#include "math.h"
#include "sincos_helpers.h"
#include "tables.h"
#define bitalign(hi, lo, shift) ((hi) << (32 - (shift))) | ((lo) >> (shift));
#define bytealign(src0, src1, src2) \

View File

@ -20,7 +20,8 @@
* THE SOFTWARE.
*/
#include "clc/clcfunc.h"
#include <clc/clcfunc.h>
#include <clc/clctypes.h>
_CLC_DECL float __clc_sinf_piby4(float x, float y);
_CLC_DECL float __clc_cosf_piby4(float x, float y);
@ -31,8 +32,10 @@ _CLC_DECL int __clc_argReductionS(float *r, float *rr, float x);
#pragma OPENCL EXTENSION cl_khr_fp64 : enable
_CLC_DECL void __clc_remainder_piby2_medium(double x, double *r, double *rr, int *regn);
_CLC_DECL void __clc_remainder_piby2_large(double x, double *r, double *rr, int *regn);
_CLC_DECL void __clc_remainder_piby2_medium(double x, double *r, double *rr,
int *regn);
_CLC_DECL void __clc_remainder_piby2_large(double x, double *r, double *rr,
int *regn);
_CLC_DECL double2 __clc_sincos_piby4(double x, double xx);
#endif

View File

@ -22,9 +22,8 @@
#include <clc/clc.h>
#include <clc/clcmacro.h>
#include "math.h"
#include "tables.h"
#include <clc/math/math.h>
#include <clc/math/tables.h>
_CLC_OVERLOAD _CLC_DEF float sinh(float x)
{

View File

@ -22,8 +22,8 @@
#include <clc/clc.h>
#include <clc/clcmacro.h>
#include <clc/math/math.h>
#include "math.h"
#include "sincospiF_piby4.h"
#ifdef cl_khr_fp64
#include "sincosD_piby4.h"

View File

@ -22,7 +22,7 @@
#include <clc/clc.h>
#include "tables.h"
#include <clc/math/tables.h>
DECLARE_TABLE(float2, LOGE_TBL, 129) = {
(float2)(0x0.000000p+0f, 0x0.000000p+0f),

View File

@ -22,8 +22,7 @@
#include <clc/clc.h>
#include <clc/clcmacro.h>
#include "math.h"
#include <clc/math/math.h>
_CLC_OVERLOAD _CLC_DEF float tanh(float x)
{

View File

@ -23,8 +23,7 @@
#include <clc/clc.h>
#include <clc/clcmacro.h>
#include "math.h"
#include <clc/math/math.h>
_CLC_OVERLOAD _CLC_DEF float tgamma(float x) {
const float pi = 3.1415926535897932384626433832795f;

View File

@ -21,8 +21,7 @@
*/
#include <clc/clc.h>
#include "config.h"
#include <clc/math/clc_subnormal_config.h>
_CLC_DEF bool __clc_fp16_subnormals_supported() {
return false;

View File

@ -1,7 +1,6 @@
#include <clc/clc.h>
#include <clc/clcmacro.h>
#include "../../../generic/lib/math/math.h"
#include <clc/math/math.h>
_CLC_DEF _CLC_OVERLOAD float fmax(float x, float y)
{

View File

@ -1,7 +1,6 @@
#include <clc/clc.h>
#include <clc/clcmacro.h>
#include "../../../generic/lib/math/math.h"
#include <clc/math/math.h>
_CLC_DEF _CLC_OVERLOAD float fmin(float x, float y)
{

View File

@ -21,8 +21,7 @@
*/
#include <clc/clc.h>
#include "config.h"
#include <clc/math/clc_subnormal_config.h>
_CLC_DEF bool __clc_fp16_subnormals_supported() { return false; }

View File

@ -21,8 +21,7 @@
*/
#include <clc/clc.h>
#include "config.h"
#include <clc/math/clc_subnormal_config.h>
_CLC_DEF bool __clc_fp16_subnormals_supported() { return false; }