12e5b6d6dSopenharmony_ci// Copyright 2006-2008 the V8 project authors. All rights reserved.
22e5b6d6dSopenharmony_ci// Redistribution and use in source and binary forms, with or without
32e5b6d6dSopenharmony_ci// modification, are permitted provided that the following conditions are
42e5b6d6dSopenharmony_ci// met:
52e5b6d6dSopenharmony_ci//
62e5b6d6dSopenharmony_ci//     * Redistributions of source code must retain the above copyright
72e5b6d6dSopenharmony_ci//       notice, this list of conditions and the following disclaimer.
82e5b6d6dSopenharmony_ci//     * Redistributions in binary form must reproduce the above
92e5b6d6dSopenharmony_ci//       copyright notice, this list of conditions and the following
102e5b6d6dSopenharmony_ci//       disclaimer in the documentation and/or other materials provided
112e5b6d6dSopenharmony_ci//       with the distribution.
122e5b6d6dSopenharmony_ci//     * Neither the name of Google Inc. nor the names of its
132e5b6d6dSopenharmony_ci//       contributors may be used to endorse or promote products derived
142e5b6d6dSopenharmony_ci//       from this software without specific prior written permission.
152e5b6d6dSopenharmony_ci//
162e5b6d6dSopenharmony_ci// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
172e5b6d6dSopenharmony_ci// "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
182e5b6d6dSopenharmony_ci// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
192e5b6d6dSopenharmony_ci// A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
202e5b6d6dSopenharmony_ci// OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
212e5b6d6dSopenharmony_ci// SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
222e5b6d6dSopenharmony_ci// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
232e5b6d6dSopenharmony_ci// DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
242e5b6d6dSopenharmony_ci// THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
252e5b6d6dSopenharmony_ci// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
262e5b6d6dSopenharmony_ci// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
272e5b6d6dSopenharmony_ci
282e5b6d6dSopenharmony_ci#ifndef GAY_PRECISION_H_
292e5b6d6dSopenharmony_ci#define GAY_PRECISION_H_
302e5b6d6dSopenharmony_ci
312e5b6d6dSopenharmony_cinamespace double_conversion {
322e5b6d6dSopenharmony_ci
332e5b6d6dSopenharmony_cistruct PrecomputedPrecision {
342e5b6d6dSopenharmony_ci  double v;
352e5b6d6dSopenharmony_ci  int number_digits;
362e5b6d6dSopenharmony_ci  const char* representation;
372e5b6d6dSopenharmony_ci  int decimal_point;
382e5b6d6dSopenharmony_ci};
392e5b6d6dSopenharmony_ci
402e5b6d6dSopenharmony_ci// Returns precomputed values of dtoa. The strings have been generated using
412e5b6d6dSopenharmony_ci// Gay's dtoa in mode "precision".
422e5b6d6dSopenharmony_ciVector<const PrecomputedPrecision> PrecomputedPrecisionRepresentations();
432e5b6d6dSopenharmony_ci
442e5b6d6dSopenharmony_ci}  // namespace double_conversion
452e5b6d6dSopenharmony_ci
462e5b6d6dSopenharmony_ci#endif  // GAY_PRECISION_H_
47