llvm-project/libclc/generic/include/clc
Aaron Watry 23faa5a1f9 integer: remove explicit casts from _MIN definitions
The spec says (section 6.12.3, CL version 1.2):
  The macro names given in the following list must use the values
  specified. The values shall all be constant expressions suitable
  for use in #if preprocessing directives.

This commit addresses the second part of that statement.

Reviewed-by: Jan Vesely <jan.vesely@rutgers.edu>
Reviewed-by: Tom Stellard <tom@stellard.net>
CC: Moritz Pflanzer <moritz.pflanzer14@imperial.ac.uk>
CC: Serge Martin <edb+libclc@sigluy.net>
llvm-svn: 249445
2015-10-06 19:12:12 +00:00
..
async Implement async_work_group_copy builtin v3 2014-10-03 19:49:39 +00:00
atomic Remove wrong semi-colons 2014-12-19 09:18:23 +00:00
cl_khr_global_int32_base_atomics atomic: Add generic atom[ic]_cmpxchg 2014-09-16 22:34:49 +00:00
cl_khr_global_int32_extended_atomics atomic: Add generic atomic_min implementation 2014-09-16 22:34:41 +00:00
cl_khr_local_int32_base_atomics atomic: Add generic atom[ic]_cmpxchg 2014-09-16 22:34:49 +00:00
cl_khr_local_int32_extended_atomics atomic: Add generic atomic_min implementation 2014-09-16 22:34:41 +00:00
common Move mix from math to common 2015-03-03 21:25:08 +00:00
float Add several missing double constant definitions 2014-07-17 22:07:35 +00:00
geometric geometric: Limit fast_{distance,length} functions to single precision 2015-05-09 22:31:01 +00:00
image Add sampler defines. 2015-09-21 14:59:58 +00:00
integer integer: remove explicit casts from _MIN definitions 2015-10-06 19:12:12 +00:00
math Implement tanh builtin 2015-09-29 06:39:09 +00:00
relational Fix bitselect for float/double types v2 2015-03-05 15:31:05 +00:00
shared Add __CLC_ prefix to all macro definitions in headers 2013-07-08 17:27:02 +00:00
synchronization PTX: move implementations of work-item and synchronisation functions 2012-08-05 22:25:37 +00:00
workitem r600: Use llvm intrinsic to read work dimension information 2014-10-15 15:08:06 +00:00
as_type.h Add missing as_{float,double} functions 2013-10-10 19:08:29 +00:00
clc.h Implement tanh builtin 2015-09-29 06:39:09 +00:00
clcfunc.h Remove the static keyword from the _CLC_INLINE macro 2013-06-26 18:20:18 +00:00
clctypes.h Don't include <stddef.h> 2014-11-18 14:19:27 +00:00
clcversion.h Introduce CLC_VERSION macros v2 2014-06-24 09:46:52 +00:00
convert.h Port pocl's gen_convert.py script to libclc 2013-10-10 19:09:01 +00:00