1*aa1902f9SMichael Jones //===-- Implementation of strtold -----------------------------------------===//
2*aa1902f9SMichael Jones //
3*aa1902f9SMichael Jones // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
4*aa1902f9SMichael Jones // See https://llvm.org/LICENSE.txt for license information.
5*aa1902f9SMichael Jones // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
6*aa1902f9SMichael Jones //
7*aa1902f9SMichael Jones //===----------------------------------------------------------------------===//
8*aa1902f9SMichael Jones 
9*aa1902f9SMichael Jones #include "src/stdlib/strtold.h"
10*aa1902f9SMichael Jones #include "src/__support/common.h"
11*aa1902f9SMichael Jones #include "src/__support/str_to_float.h"
12*aa1902f9SMichael Jones 
13*aa1902f9SMichael Jones namespace __llvm_libc {
14*aa1902f9SMichael Jones 
15*aa1902f9SMichael Jones LLVM_LIBC_FUNCTION(long double, strtold,
16*aa1902f9SMichael Jones                    (const char *__restrict str, char **__restrict str_end)) {
17*aa1902f9SMichael Jones   return internal::strtofloatingpoint<long double>(str, str_end);
18*aa1902f9SMichael Jones }
19*aa1902f9SMichael Jones 
20*aa1902f9SMichael Jones } // namespace __llvm_libc
21