1 //===-- Unittests for ilogbf ----------------------------------------------===//
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 "ILogbTest.h"
10 
11 #include "src/math/ilogbf.h"
12 #include "utils/FPUtil/FPBits.h"
13 #include "utils/FPUtil/ManipulationFunctions.h"
14 #include "utils/FPUtil/TestHelpers.h"
15 #include "utils/UnitTest/Test.h"
16 #include <math.h>
17 
TEST_F(ILogbTest,SpecialNumbers_ilogbf)18 TEST_F(ILogbTest, SpecialNumbers_ilogbf) {
19   testSpecialNumbers<float>(&__llvm_libc::ilogbf);
20 }
21 
TEST_F(ILogbTest,PowersOfTwo_ilogbf)22 TEST_F(ILogbTest, PowersOfTwo_ilogbf) {
23   testPowersOfTwo<float>(&__llvm_libc::ilogbf);
24 }
25 
TEST_F(ILogbTest,SomeIntegers_ilogbf)26 TEST_F(ILogbTest, SomeIntegers_ilogbf) {
27   testSomeIntegers<float>(&__llvm_libc::ilogbf);
28 }
29 
TEST_F(ILogbTest,SubnormalRange_ilogbf)30 TEST_F(ILogbTest, SubnormalRange_ilogbf) {
31   testSubnormalRange<float>(&__llvm_libc::ilogbf);
32 }
33 
TEST_F(ILogbTest,NormalRange_ilogbf)34 TEST_F(ILogbTest, NormalRange_ilogbf) {
35   testNormalRange<float>(&__llvm_libc::ilogbf);
36 }
37