5 lines
96 B
C
5 lines
96 B
C
#undef log
|
|
|
|
// log(x) = log2(x) * (1/log2(e))
|
|
#define log(val) (__clc_log2(val) * 0.693147181f)
|