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