@@ -511,6 +511,7 @@ add_fp_unittest(
511511 libc.src.fenv.feraiseexcept
512512 libc.src.fenv.fetestexcept
513513 libc.src.math.lround
514+ libc.src.__support.CPP.algorithm
514515 libc.src.__support.FPUtil.fp_bits
515516)
516517
@@ -528,6 +529,7 @@ add_fp_unittest(
528529 libc.src.fenv.feraiseexcept
529530 libc.src.fenv.fetestexcept
530531 libc.src.math.lroundf
532+ libc.src.__support.CPP.algorithm
531533 libc.src.__support.FPUtil.fp_bits
532534)
533535
@@ -545,6 +547,7 @@ add_fp_unittest(
545547 libc.src.fenv.feraiseexcept
546548 libc.src.fenv.fetestexcept
547549 libc.src.math.lroundl
550+ libc.src.__support.CPP.algorithm
548551 libc.src.__support.FPUtil.fp_bits
549552)
550553
@@ -562,6 +565,7 @@ add_fp_unittest(
562565 libc.src.fenv.feraiseexcept
563566 libc.src.fenv.fetestexcept
564567 libc.src.math.lroundf128
568+ libc.src.__support.CPP.algorithm
565569 libc.src.__support.FPUtil.fp_bits
566570)
567571
@@ -579,6 +583,7 @@ add_fp_unittest(
579583 libc.src.fenv.feraiseexcept
580584 libc.src.fenv.fetestexcept
581585 libc.src.math.llround
586+ libc.src.__support.CPP.algorithm
582587 libc.src.__support.FPUtil.fp_bits
583588)
584589
@@ -596,6 +601,7 @@ add_fp_unittest(
596601 libc.src.fenv.feraiseexcept
597602 libc.src.fenv.fetestexcept
598603 libc.src.math.llroundf
604+ libc.src.__support.CPP.algorithm
599605 libc.src.__support.FPUtil.fp_bits
600606)
601607
@@ -613,6 +619,7 @@ add_fp_unittest(
613619 libc.src.fenv.feraiseexcept
614620 libc.src.fenv.fetestexcept
615621 libc.src.math.llroundl
622+ libc.src.__support.CPP.algorithm
616623 libc.src.__support.FPUtil.fp_bits
617624)
618625
@@ -630,6 +637,7 @@ add_fp_unittest(
630637 libc.src.fenv.feraiseexcept
631638 libc.src.fenv.fetestexcept
632639 libc.src.math.llroundf128
640+ libc.src.__support.CPP.algorithm
633641 libc.src.__support.FPUtil.fp_bits
634642)
635643
@@ -713,6 +721,7 @@ add_fp_unittest(
713721 RoundToIntegerTest.h
714722 DEPENDS
715723 libc.src.math.lrint
724+ libc.src.__support.CPP.algorithm
716725 libc.src.__support.FPUtil.fenv_impl
717726 libc.src.__support.FPUtil.fp_bits
718727)
@@ -727,6 +736,7 @@ add_fp_unittest(
727736 RoundToIntegerTest.h
728737 DEPENDS
729738 libc.src.math.lrintf
739+ libc.src.__support.CPP.algorithm
730740 libc.src.__support.FPUtil.fenv_impl
731741 libc.src.__support.FPUtil.fp_bits
732742)
@@ -741,6 +751,22 @@ add_fp_unittest(
741751 RoundToIntegerTest.h
742752 DEPENDS
743753 libc.src.math.lrintl
754+ libc.src.__support.CPP.algorithm
755+ libc.src.__support.FPUtil.fenv_impl
756+ libc.src.__support.FPUtil.fp_bits
757+ )
758+
759+ add_fp_unittest(
760+ lrintf16_test
761+ SUITE
762+ libc-math-smoke-tests
763+ SRCS
764+ lrintf16_test.cpp
765+ HDRS
766+ RoundToIntegerTest.h
767+ DEPENDS
768+ libc.src.math.lrintf16
769+ libc.src.__support.CPP.algorithm
744770 libc.src.__support.FPUtil.fenv_impl
745771 libc.src.__support.FPUtil.fp_bits
746772)
@@ -755,6 +781,7 @@ add_fp_unittest(
755781 RoundToIntegerTest.h
756782 DEPENDS
757783 libc.src.math.lrintf128
784+ libc.src.__support.CPP.algorithm
758785 libc.src.__support.FPUtil.fenv_impl
759786 libc.src.__support.FPUtil.fp_bits
760787)
@@ -769,6 +796,7 @@ add_fp_unittest(
769796 RoundToIntegerTest.h
770797 DEPENDS
771798 libc.src.math.llrint
799+ libc.src.__support.CPP.algorithm
772800 libc.src.__support.FPUtil.fenv_impl
773801 libc.src.__support.FPUtil.fp_bits
774802)
@@ -783,6 +811,7 @@ add_fp_unittest(
783811 RoundToIntegerTest.h
784812 DEPENDS
785813 libc.src.math.llrintf
814+ libc.src.__support.CPP.algorithm
786815 libc.src.__support.FPUtil.fenv_impl
787816 libc.src.__support.FPUtil.fp_bits
788817)
@@ -797,6 +826,7 @@ add_fp_unittest(
797826 RoundToIntegerTest.h
798827 DEPENDS
799828 libc.src.math.llrintl
829+ libc.src.__support.CPP.algorithm
800830 libc.src.__support.FPUtil.fenv_impl
801831 libc.src.__support.FPUtil.fp_bits
802832)
@@ -811,6 +841,7 @@ add_fp_unittest(
811841 RoundToIntegerTest.h
812842 DEPENDS
813843 libc.src.math.llrintf128
844+ libc.src.__support.CPP.algorithm
814845 libc.src.__support.FPUtil.fenv_impl
815846 libc.src.__support.FPUtil.fp_bits
816847)
0 commit comments