1//===-- Unittests for fmaf ------------------------------------------------===//
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-exception
6//
7//===----------------------------------------------------------------------===//
8
9#include "FmaTest.h"
10
11#include "src/math/fmaf.h"
12
13using LlvmLibcFmafTest = FmaTestTemplate<float>;
14
15TEST_F(LlvmLibcFmafTest, SpecialNumbers) {
16 test_special_numbers(func: &LIBC_NAMESPACE::fmaf);
17}
18
19TEST_F(LlvmLibcFmafTest, SubnormalRange) {
20 test_subnormal_range(func: &LIBC_NAMESPACE::fmaf);
21}
22
23TEST_F(LlvmLibcFmafTest, NormalRange) {
24 test_normal_range(func: &LIBC_NAMESPACE::fmaf);
25}
26

Provided by KDAB

Privacy Policy
Update your C++ knowledge – Modern C++11/14/17 Training
Find out more

source code of libc/test/src/math/fmaf_test.cpp