brintos

brintos / llvm-project-archived public Read only

0
0
Text · 2.6 KiB · bf660b0 Raw
58 lines · c
1//===----------------------------------------------------------------------===//2//3// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.4// See https://llvm.org/LICENSE.txt for license information.5// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception6//7//===----------------------------------------------------------------------===//8 9// Copyright (c) Microsoft Corporation.10// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception11 12// Copyright 2018 Ulf Adams13// Copyright (c) Microsoft Corporation. All rights reserved.14 15// Boost Software License - Version 1.0 - August 17th, 200316 17// Permission is hereby granted, free of charge, to any person or organization18// obtaining a copy of the software and accompanying documentation covered by19// this license (the "Software") to use, reproduce, display, distribute,20// execute, and transmit the Software, and to prepare derivative works of the21// Software, and to permit third-parties to whom the Software is furnished to22// do so, all subject to the following:23 24// The copyright notices in the Software and this entire statement, including25// the above license grant, this restriction and the following disclaimer,26// must be included in all copies of the Software, in whole or in part, and27// all derivative works of the Software, unless such copies or derivative28// works are solely in the form of machine-executable object code generated by29// a source language processor.30 31// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR32// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,33// FITNESS FOR A PARTICULAR PURPOSE, TITLE AND NON-INFRINGEMENT. IN NO EVENT34// SHALL THE COPYRIGHT HOLDERS OR ANYONE DISTRIBUTING THE SOFTWARE BE LIABLE35// FOR ANY DAMAGES OR OTHER LIABILITY, WHETHER IN CONTRACT, TORT OR OTHERWISE,36// ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER37// DEALINGS IN THE SOFTWARE.38 39#ifndef _LIBCPP_SRC_INCLUDE_RYU_DIGIT_TABLE_H40#define _LIBCPP_SRC_INCLUDE_RYU_DIGIT_TABLE_H41 42#include <__charconv/tables.h>43#include <__config>44 45_LIBCPP_BEGIN_NAMESPACE_STD46 47// A table of all two-digit numbers. This is used to speed up decimal digit48// generation by copying pairs of digits into the final output.49//50// In order to minimize the diff in the Ryu code between MSVC STL and libc++51// the code uses the name __DIGIT_TABLE. In order to avoid code duplication it52// reuses the table already available in libc++.53inline constexpr auto& __DIGIT_TABLE = __itoa::__digits_base_10;54 55_LIBCPP_END_NAMESPACE_STD56 57#endif // _LIBCPP_SRC_INCLUDE_RYU_DIGIT_TABLE_H58