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

Wed, 31 Dec 2014 07:16:47 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Wed, 31 Dec 2014 07:16:47 +0100
branch
TOR_BUG_9701
changeset 3
141e0f1194b1
permissions
-rw-r--r--

Revert simplistic fix pending revisit of Mozilla integration attempt.

michael@0 1 // Copyright (c) 2008 The Chromium Authors. All rights reserved.
michael@0 2 // Use of this source code is governed by a BSD-style license that can be
michael@0 3 // found in the LICENSE file.
michael@0 4
michael@0 5 #ifndef THIRD_PARTY_DMG_FP_H_
michael@0 6 #define THIRD_PARTY_DMG_FP_H_
michael@0 7
michael@0 8 namespace dmg_fp {
michael@0 9
michael@0 10 // Return a nearest machine number to the input decimal
michael@0 11 // string (or set errno to ERANGE). With IEEE arithmetic, ties are
michael@0 12 // broken by the IEEE round-even rule. Otherwise ties are broken by
michael@0 13 // biased rounding (add half and chop).
michael@0 14 double strtod(const char* s00, char** se);
michael@0 15
michael@0 16 // Convert double to ASCII string. For meaning of parameters
michael@0 17 // see dtoa.cc file.
michael@0 18 char* dtoa(double d, int mode, int ndigits,
michael@0 19 int* decpt, int* sign, char** rve);
michael@0 20
michael@0 21 // Must be used to free values returned by dtoa.
michael@0 22 void freedtoa(char* s);
michael@0 23
michael@0 24 // Store the closest decimal approximation to x in b (null terminated).
michael@0 25 // Returns a pointer to b. It is sufficient for |b| to be 32 characters.
michael@0 26 char* g_fmt(char* b, double x);
michael@0 27
michael@0 28 } // namespace dmg_fp
michael@0 29
michael@0 30 #endif // THIRD_PARTY_DMG_FP_H_

mercurial