xref: /aosp_15_r20/external/double-conversion/test/cctest/gay-shortest-single.h (revision a6021da3bd53a1cb979b0905bbb837249345d1b1)
1*a6021da3SAndroid Build Coastguard Worker // Copyright 2011, the V8 project authors. All rights reserved.
2*a6021da3SAndroid Build Coastguard Worker // Redistribution and use in source and binary forms, with or without
3*a6021da3SAndroid Build Coastguard Worker // modification, are permitted provided that the following conditions are
4*a6021da3SAndroid Build Coastguard Worker // met:
5*a6021da3SAndroid Build Coastguard Worker //
6*a6021da3SAndroid Build Coastguard Worker //     * Redistributions of source code must retain the above copyright
7*a6021da3SAndroid Build Coastguard Worker //       notice, this list of conditions and the following disclaimer.
8*a6021da3SAndroid Build Coastguard Worker //     * Redistributions in binary form must reproduce the above
9*a6021da3SAndroid Build Coastguard Worker //       copyright notice, this list of conditions and the following
10*a6021da3SAndroid Build Coastguard Worker //       disclaimer in the documentation and/or other materials provided
11*a6021da3SAndroid Build Coastguard Worker //       with the distribution.
12*a6021da3SAndroid Build Coastguard Worker //     * Neither the name of Google Inc. nor the names of its
13*a6021da3SAndroid Build Coastguard Worker //       contributors may be used to endorse or promote products derived
14*a6021da3SAndroid Build Coastguard Worker //       from this software without specific prior written permission.
15*a6021da3SAndroid Build Coastguard Worker //
16*a6021da3SAndroid Build Coastguard Worker // THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
17*a6021da3SAndroid Build Coastguard Worker // "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
18*a6021da3SAndroid Build Coastguard Worker // LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
19*a6021da3SAndroid Build Coastguard Worker // A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
20*a6021da3SAndroid Build Coastguard Worker // OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
21*a6021da3SAndroid Build Coastguard Worker // SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
22*a6021da3SAndroid Build Coastguard Worker // LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
23*a6021da3SAndroid Build Coastguard Worker // DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
24*a6021da3SAndroid Build Coastguard Worker // THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
25*a6021da3SAndroid Build Coastguard Worker // (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
26*a6021da3SAndroid Build Coastguard Worker // OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
27*a6021da3SAndroid Build Coastguard Worker 
28*a6021da3SAndroid Build Coastguard Worker #ifndef GAY_SHORTEST_SINGLE_H_
29*a6021da3SAndroid Build Coastguard Worker #define GAY_SHORTEST_SINGLE_H_
30*a6021da3SAndroid Build Coastguard Worker 
31*a6021da3SAndroid Build Coastguard Worker namespace double_conversion {
32*a6021da3SAndroid Build Coastguard Worker 
33*a6021da3SAndroid Build Coastguard Worker struct PrecomputedShortestSingle {
34*a6021da3SAndroid Build Coastguard Worker   float v;
35*a6021da3SAndroid Build Coastguard Worker   const char* representation;
36*a6021da3SAndroid Build Coastguard Worker   int decimal_point;
37*a6021da3SAndroid Build Coastguard Worker };
38*a6021da3SAndroid Build Coastguard Worker 
39*a6021da3SAndroid Build Coastguard Worker Vector<const PrecomputedShortestSingle>
40*a6021da3SAndroid Build Coastguard Worker     PrecomputedShortestSingleRepresentations();
41*a6021da3SAndroid Build Coastguard Worker 
42*a6021da3SAndroid Build Coastguard Worker }  // namespace double_conversion
43*a6021da3SAndroid Build Coastguard Worker 
44*a6021da3SAndroid Build Coastguard Worker #endif  // GAY_SHORTEST_SINGLE_H_
45