Make min follow the OCL 1.0 specs
authorJan Vesely <jan.vesely@rutgers.edu>
Mon, 25 Jul 2016 22:36:22 +0000 (22:36 +0000)
committerJan Vesely <jan.vesely@rutgers.edu>
Mon, 25 Jul 2016 22:36:22 +0000 (22:36 +0000)
commit4c59714a52f2b78c0413005d1ec1f23839fa789d
tree5205a49cc5f36c3d961cf424edb4aac215b0a116
parentd5617b554579e20a198d6e96932fb7073993e760
Make min follow the OCL 1.0 specs

OpenCL 1.0: "Returns y if y < x, otherwise it returns x. If x *and* y
are infinite or NaN, the return values are undefined."

OpenCL 1.1+: "Returns y if y < x, otherwise it returns x. If x *or* y
are infinite or NaN, the return values are undefined."

The 1.0 version is stricter so use that one.

Signed-off-by: Jan Vesely <jan.vesely@rutgers.edu>
llvm-svn: 276704
libclc/generic/lib/shared/min.inc