security/sandbox/chromium/base/third_party/dmg_fp/dmg_fp.h

changeset 0
6474c204b198
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/security/sandbox/chromium/base/third_party/dmg_fp/dmg_fp.h	Wed Dec 31 06:09:35 2014 +0100
     1.3 @@ -0,0 +1,30 @@
     1.4 +// Copyright (c) 2008 The Chromium Authors. All rights reserved.
     1.5 +// Use of this source code is governed by a BSD-style license that can be
     1.6 +// found in the LICENSE file.
     1.7 +
     1.8 +#ifndef THIRD_PARTY_DMG_FP_H_
     1.9 +#define THIRD_PARTY_DMG_FP_H_
    1.10 +
    1.11 +namespace dmg_fp {
    1.12 +
    1.13 +// Return a nearest machine number to the input decimal
    1.14 +// string (or set errno to ERANGE). With IEEE arithmetic, ties are
    1.15 +// broken by the IEEE round-even rule.  Otherwise ties are broken by
    1.16 +// biased rounding (add half and chop).
    1.17 +double strtod(const char* s00, char** se);
    1.18 +
    1.19 +// Convert double to ASCII string. For meaning of parameters
    1.20 +// see dtoa.cc file.
    1.21 +char* dtoa(double d, int mode, int ndigits,
    1.22 +           int* decpt, int* sign, char** rve);
    1.23 +
    1.24 +// Must be used to free values returned by dtoa.
    1.25 +void freedtoa(char* s);
    1.26 +
    1.27 +// Store the closest decimal approximation to x in b (null terminated).
    1.28 +// Returns a pointer to b.  It is sufficient for |b| to be 32 characters.
    1.29 +char* g_fmt(char* b, double x);
    1.30 +
    1.31 +}  // namespace dmg_fp
    1.32 +
    1.33 +#endif  // THIRD_PARTY_DMG_FP_H_

mercurial