OLD | NEW |
1 // Copyright 2010 the V8 project authors. All rights reserved. | 1 // Copyright 2010 the V8 project authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #ifndef V8_BIGNUM_DTOA_H_ | 5 #ifndef V8_BIGNUM_DTOA_H_ |
6 #define V8_BIGNUM_DTOA_H_ | 6 #define V8_BIGNUM_DTOA_H_ |
7 | 7 |
8 #include "src/vector.h" | 8 #include "src/vector.h" |
9 | 9 |
10 namespace v8 { | 10 namespace v8 { |
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
48 // - PRECISION: produces 'requested_digits' where the first digit is not '0'. | 48 // - PRECISION: produces 'requested_digits' where the first digit is not '0'. |
49 // Even though the length of produced digits usually equals | 49 // Even though the length of produced digits usually equals |
50 // 'requested_digits', the function is allowed to return fewer digits, in | 50 // 'requested_digits', the function is allowed to return fewer digits, in |
51 // which case the caller has to fill the missing digits with '0's. | 51 // which case the caller has to fill the missing digits with '0's. |
52 // Halfway cases are again rounded up. | 52 // Halfway cases are again rounded up. |
53 // 'BignumDtoa' expects the given buffer to be big enough to hold all digits | 53 // 'BignumDtoa' expects the given buffer to be big enough to hold all digits |
54 // and a terminating null-character. | 54 // and a terminating null-character. |
55 void BignumDtoa(double v, BignumDtoaMode mode, int requested_digits, | 55 void BignumDtoa(double v, BignumDtoaMode mode, int requested_digits, |
56 Vector<char> buffer, int* length, int* point); | 56 Vector<char> buffer, int* length, int* point); |
57 | 57 |
58 } } // namespace v8::internal | 58 } // namespace internal |
| 59 } // namespace v8 |
59 | 60 |
60 #endif // V8_BIGNUM_DTOA_H_ | 61 #endif // V8_BIGNUM_DTOA_H_ |
OLD | NEW |