#include "fastval2str.h"
#include <lib/numerics/num_math.h>
Include dependency graph for fastval2str.cc:
Go to the source code of this file.
Functions | |
template<typename T> char * | _UInt2String (char *dest, T val, char base) |
char * | FastInt2String (char *dest, uint8 val, char base) |
char * | FastInt2String (char *dest, uint16 val, char base) |
char * | FastInt2String (char *dest, uint32 val, char base) |
char * | FastInt2String (char *dest, uint64 val, char base) |
template<typename T, typename UT> char * | _SInt2String (char *dest, T val, char base) |
char * | FastInt2String (char *dest, int8 val, char base) |
char * | FastInt2String (char *dest, int16 val, char base) |
char * | FastInt2String (char *dest, int32 val, char base) |
char * | FastInt2String (char *dest, int64 val, char base) |
template<typename T> char * | _Float2String (char *dest, T val) |
char * | FastFloat2String (char *dest, flt val) |
char * | FastFloat2String (char *dest, dbl val) |
Variables | |
const char * | _hexdig = "YZ0123456789abcdefGH" |
const char * | hexdig = _hexdig+2 |
|
Definition at line 147 of file fastval2str.cc. References NUM::frexp(), and hexdig. |
|
Definition at line 123 of file fastval2str.cc. |
|
Definition at line 31 of file fastval2str.cc. |
|
Definition at line 192 of file fastval2str.cc. References dbl. Referenced by VM::InstructionStorage::DumpInstruction(). |
|
NOTE that this is a dangerous function (dangerous for the sake of speed). The caller has to make sure that dest is long enough to hold the string. Fortunately, the limit is not very hard to predict: it is
Definition at line 190 of file fastval2str.cc. |
|
Definition at line 143 of file fastval2str.cc. |
|
Definition at line 141 of file fastval2str.cc. |
|
Definition at line 139 of file fastval2str.cc. |
|
The integer can be written in a base of 8, 10 or 16. For base 8, a zero (0) is prepended, for base 16, 0x is prepended. NOTE that this is a dangerous function (dangerous for the sake of speed). The caller has to make sure that dest is long enough to hold the string. Fortunately, the limit is not very hard to predict; here is a table:
Generally, the space consumption is
Definition at line 137 of file fastval2str.cc. |
|
Definition at line 119 of file fastval2str.cc. |
|
Definition at line 117 of file fastval2str.cc. |
|
Definition at line 115 of file fastval2str.cc. |
|
Definition at line 113 of file fastval2str.cc. |
|
Definition at line 23 of file fastval2str.cc. |
|
Definition at line 24 of file fastval2str.cc. Referenced by _Float2String(), and _UInt2String(). |