Files
carbon-lang/libclc/generic/include/clc/math/log.h
T
2012-05-29 00:42:29 +00:00

5 lines
96 B
C

#undef log
// log(x) = log2(x) * (1/log2(e))
#define log(val) (__clc_log2(val) * 0.693147181f)