Do not include clc_nextafter header globally

Drop unused clc/math/clc_nextafter.h header

Reviewer: Jeroen Ketema
Signed-off-by: Jan Vesely <jan.vesely@rutgers.edu>
llvm-svn: 315190
This commit is contained in:
Jan Vesely 2017-10-08 19:33:58 +00:00
parent 6a5c8ddb3a
commit 1de1444d62
4 changed files with 3 additions and 16 deletions

View File

@ -1,5 +1,6 @@
#include <clc/clc.h>
#include "../lib/clcmacro.h"
#include <math/clc_nextafter.h>
_CLC_DEFINE_BINARY_BUILTIN(float, nextafter, __clc_nextafter, float, float)

View File

@ -264,9 +264,4 @@
#include <clc/image/image_defines.h>
#include <clc/image/image.h>
/* libclc internal defintions */
#ifdef __CLC_INTERNAL
#include <math/clc_nextafter.h>
#endif
#pragma OPENCL EXTENSION all : disable

View File

@ -1,11 +0,0 @@
#define __CLC_BODY <clc/math/binary_decl.inc>
#define __CLC_FUNCTION nextafter
#include <clc/math/gentype.inc>
#undef __CLC_FUNCTION
#define __CLC_FUNCTION __clc_nextafter
#include <clc/math/gentype.inc>
#undef __CLC_FUNCTION
#undef __CLC_BODY

View File

@ -54,6 +54,8 @@
#ifndef __FLOAT_ONLY
#ifdef cl_khr_fp64
#pragma OPENCL EXTENSION cl_khr_fp64 : enable
#define __CLC_SCALAR_GENTYPE double
#define __CLC_FPSIZE 64