Differential D134584 Diff 465723 libcxx/test/std/numerics/numeric.ops/numeric.ops.midpoint/midpoint.float.pass.cpp
Changeset View
Changeset View
Standalone View
Standalone View
libcxx/test/std/numerics/numeric.ops/numeric.ops.midpoint/midpoint.float.pass.cpp
//===----------------------------------------------------------------------===// | //===----------------------------------------------------------------------===// | ||||
// | // | ||||
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. | // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. | ||||
// See https://llvm.org/LICENSE.txt for license information. | // See https://llvm.org/LICENSE.txt for license information. | ||||
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception | // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception | ||||
// | // | ||||
//===----------------------------------------------------------------------===// | //===----------------------------------------------------------------------===// | ||||
// | // | ||||
// UNSUPPORTED: c++03, c++11, c++14, c++17 | // UNSUPPORTED: c++03, c++11, c++14, c++17 | ||||
// <numeric> | // <numeric> | ||||
// template <class _Float> | // template <class _Float> | ||||
// _Tp midpoint(_Float __a, _Float __b) noexcept | // _Tp midpoint(_Float __a, _Float __b) noexcept | ||||
// | // | ||||
#include <numeric> | |||||
#include <cassert> | #include <cassert> | ||||
#include <limits> | |||||
#include <numeric> | |||||
#include "test_macros.h" | #include "test_macros.h" | ||||
#include "fp_compare.h" | #include "fp_compare.h" | ||||
// Totally arbitrary picks for precision | // Totally arbitrary picks for precision | ||||
template <typename T> | template <typename T> | ||||
constexpr T fp_error_pct(); | constexpr T fp_error_pct(); | ||||
▲ Show 20 Lines • Show All 108 Lines • Show Last 20 Lines |