Fast conversion of double when representable as long long

This commit is contained in:
Pieter Noordhuis
2011-03-08 12:30:01 +01:00
parent 45290ad9bb
commit 672b0a1b25
2 changed files with 41 additions and 0 deletions

View File

@ -887,6 +887,7 @@ int stringmatchlen(const char *pattern, int patternLen,
int stringmatch(const char *pattern, const char *string, int nocase);
long long memtoll(const char *p, int *err);
int ll2string(char *s, size_t len, long long value);
int d2string(char *s, size_t len, double value);
int isStringRepresentableAsLong(sds s, long *longval);
int isStringRepresentableAsLongLong(sds s, long long *longval);
int isObjectRepresentableAsLongLong(robj *o, long long *llongval);