MCPcopy Create free account
hub / github.com/Snapchat/Valdi / tsn_math_log

Function tsn_math_log

tsn/src/tsn/tsn.cpp:2481–2487  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2479}
2480
2481tsn_value tsn_math_log(tsn_vm* ctx, tsn_value op) {
2482 double d;
2483 if (JS_ToFloat64(ctx, &d, op) != 0) {
2484 return JS_EXCEPTION;
2485 }
2486 return tsn_double(ctx, std::log(d));
2487}
2488
2489tsn_value tsn_math_pow(tsn_vm* ctx, tsn_value base, tsn_value exp) {
2490 double dbase;

Callers

nothing calls this directly

Calls 2

tsn_doubleFunction · 0.85
logFunction · 0.50

Tested by

no test coverage detected