X-Git-Url: http://plrg.eecs.uci.edu/git/?a=blobdiff_plain;f=folly%2FConv.cpp;h=25c0069dd0bdbd5c2a673e441b072303ce766d4d;hb=9faada6d332385cf3f3fd60daf8d7259523cb742;hp=c65ba04a42a57d2e5b08e9df41497d0a354a5ffa;hpb=27494a20393fa45072e7d526d358835f3abe312a;p=folly.git diff --git a/folly/Conv.cpp b/folly/Conv.cpp index c65ba04a..25c0069d 100644 --- a/folly/Conv.cpp +++ b/folly/Conv.cpp @@ -1,5 +1,5 @@ /* - * Copyright 2012 Facebook, Inc. + * Copyright 2014 Facebook, Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -14,7 +14,7 @@ * limitations under the License. */ #define FOLLY_CONV_INTERNAL -#include "folly/Conv.h" +#include namespace folly { namespace detail { @@ -46,6 +46,11 @@ static_assert(sizeof(unsigned long long) >= 8, "Wrong value for MaxString::value" ", please update."); +#ifdef FOLLY_HAVE_INT128_T +template <> const char *const MaxString<__uint128_t>::value = + "340282366920938463463374607431768211455"; +#endif + inline bool bool_str_cmp(const char** b, size_t len, const char* value) { // Can't use strncasecmp, since we want to ensure that the full value matches const char* p = *b;