MCPcopy Create free account
hub / github.com/antmachineintelligence/mtgbmcode / Int32ToStr

Function Int32ToStr

include/LightGBM/utils/common.h:357–364  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

355}
356
357inline static void Int32ToStr(int32_t value, char* buffer) {
358 uint32_t u = static_cast<uint32_t>(value);
359 if (value < 0) {
360 *buffer++ = '-';
361 u = ~u + 1;
362 }
363 Uint32ToStr(u, buffer);
364}
365
366inline static void DoubleToStr(double value, char* buffer, size_t
367 #ifdef _MSC_VER

Callers 1

operator()Method · 0.70

Calls 1

Uint32ToStrFunction · 0.70

Tested by

no test coverage detected