Files
clang-p2996/libclc/generic/include/clc/math/sqrt.h
Tom Stellard 2ef5ec6b2b Fix implementation of sqrt v2
Passing values less than 0 to the llvm.sqrt() intrinsic results in
undefined behavior, so we need to check the input and return NaN if
is is less than 0.

v2:
  - Fix build failures.

llvm-svn: 241906
2015-07-10 13:37:07 +00:00

4 lines
89 B
C

#define __CLC_BODY <clc/math/sqrt.inc>
#include <clc/math/gentype.inc>
#undef __CLC_BODY