historical/toontown-classic.git/panda/include/pdtoa.h

25 lines
487 B
C
Raw Normal View History

2024-01-16 11:20:27 -06:00
/*
This is a double-to-string conversion implementation by Milo Yip from:
https://github.com/miloyip/dtoa-benchmark
I introduced it because the ostringstream implementation is just too
darned slow, especially when compiled to JavaScript.
*/
#ifndef PDTOA_H
#define PDTOA_H
#include "dtoolbase.h"
#ifdef __cplusplus
extern "C" {
#endif
EXPCL_DTOOL_DTOOLBASE void pdtoa(double value, char *buffer);
#ifdef __cplusplus
}; /* end of extern "C" */
#endif
#endif // PDTOA_H