Files
clang-p2996/libclc/generic/include/clc/math/exp.h
Jeroen Ketema 82aaa41286 Implementations for exp(float) and exp(double) v2
Use separate implementations instead of a macro
to ensure the constant multiplied with is of
higher precision.

v2: Use the correct formula, spotted by Dan Liew <daniel.liew@imperial.ac.uk>

Reviewed-by: Aaron Warty <awatry@gmail.com>
Reviewed-by: Tom Stellard <tom@stellard.net>
llvm-svn: 210891
2014-06-13 09:40:09 +00:00

10 lines
158 B
C

#undef exp
#define __CLC_BODY <clc/math/unary_decl.inc>
#define __CLC_FUNCTION exp
#include <clc/math/gentype.inc>
#undef __CLC_BODY
#undef __CLC_FUNCTION