@@ -350,11 +350,11 @@ add_fp_unittest(
350350 HDRS
351351 RoundToIntegerTest.h
352352 DEPENDS
353+ libc.hdr.fenv_macros
353354 libc.src.errno.errno
354- libc.src.fenv.feclearexcept
355- libc.src.fenv.feraiseexcept
356- libc.src.fenv.fetestexcept
357355 libc.src.math.lround
356+ libc.src.__support.CPP.algorithm
357+ libc.src.__support.FPUtil.fenv_impl
358358 libc.src.__support.FPUtil.fp_bits
359359)
360360
@@ -368,11 +368,11 @@ add_fp_unittest(
368368 HDRS
369369 RoundToIntegerTest.h
370370 DEPENDS
371+ libc.hdr.fenv_macros
371372 libc.src.errno.errno
372- libc.src.fenv.feclearexcept
373- libc.src.fenv.feraiseexcept
374- libc.src.fenv.fetestexcept
375373 libc.src.math.lroundf
374+ libc.src.__support.CPP.algorithm
375+ libc.src.__support.FPUtil.fenv_impl
376376 libc.src.__support.FPUtil.fp_bits
377377)
378378
@@ -386,11 +386,29 @@ add_fp_unittest(
386386 HDRS
387387 RoundToIntegerTest.h
388388 DEPENDS
389+ libc.hdr.fenv_macros
389390 libc.src.errno.errno
390- libc.src.fenv.feclearexcept
391- libc.src.fenv.feraiseexcept
392- libc.src.fenv.fetestexcept
393391 libc.src.math.lroundl
392+ libc.src.__support.CPP.algorithm
393+ libc.src.__support.FPUtil.fenv_impl
394+ libc.src.__support.FPUtil.fp_bits
395+ )
396+
397+ add_fp_unittest(
398+ lroundf16_test
399+ NEED_MPFR
400+ SUITE
401+ libc-math-unittests
402+ SRCS
403+ lroundf16_test.cpp
404+ HDRS
405+ RoundToIntegerTest.h
406+ DEPENDS
407+ libc.hdr.fenv_macros
408+ libc.src.errno.errno
409+ libc.src.math.lroundf16
410+ libc.src.__support.CPP.algorithm
411+ libc.src.__support.FPUtil.fenv_impl
394412 libc.src.__support.FPUtil.fp_bits
395413)
396414
@@ -404,11 +422,11 @@ add_fp_unittest(
404422 HDRS
405423 RoundToIntegerTest.h
406424 DEPENDS
425+ libc.hdr.fenv_macros
407426 libc.src.errno.errno
408- libc.src.fenv.feclearexcept
409- libc.src.fenv.feraiseexcept
410- libc.src.fenv.fetestexcept
411427 libc.src.math.llround
428+ libc.src.__support.CPP.algorithm
429+ libc.src.__support.FPUtil.fenv_impl
412430 libc.src.__support.FPUtil.fp_bits
413431)
414432
@@ -422,11 +440,11 @@ add_fp_unittest(
422440 HDRS
423441 RoundToIntegerTest.h
424442 DEPENDS
443+ libc.hdr.fenv_macros
425444 libc.src.errno.errno
426- libc.src.fenv.feclearexcept
427- libc.src.fenv.feraiseexcept
428- libc.src.fenv.fetestexcept
429445 libc.src.math.llroundf
446+ libc.src.__support.CPP.algorithm
447+ libc.src.__support.FPUtil.fenv_impl
430448 libc.src.__support.FPUtil.fp_bits
431449)
432450
@@ -440,11 +458,29 @@ add_fp_unittest(
440458 HDRS
441459 RoundToIntegerTest.h
442460 DEPENDS
461+ libc.hdr.fenv_macros
443462 libc.src.errno.errno
444- libc.src.fenv.feclearexcept
445- libc.src.fenv.feraiseexcept
446- libc.src.fenv.fetestexcept
447463 libc.src.math.llroundl
464+ libc.src.__support.CPP.algorithm
465+ libc.src.__support.FPUtil.fenv_impl
466+ libc.src.__support.FPUtil.fp_bits
467+ )
468+
469+ add_fp_unittest(
470+ llroundf16_test
471+ NEED_MPFR
472+ SUITE
473+ libc-math-unittests
474+ SRCS
475+ llroundf16_test.cpp
476+ HDRS
477+ RoundToIntegerTest.h
478+ DEPENDS
479+ libc.hdr.fenv_macros
480+ libc.src.errno.errno
481+ libc.src.math.llroundf16
482+ libc.src.__support.CPP.algorithm
483+ libc.src.__support.FPUtil.fenv_impl
448484 libc.src.__support.FPUtil.fp_bits
449485)
450486
@@ -458,7 +494,9 @@ add_fp_unittest(
458494 HDRS
459495 RIntTest.h
460496 DEPENDS
497+ libc.hdr.fenv_macros
461498 libc.src.math.rint
499+ libc.src.__support.CPP.algorithm
462500 libc.src.__support.FPUtil.fenv_impl
463501 libc.src.__support.FPUtil.fp_bits
464502)
@@ -473,7 +511,9 @@ add_fp_unittest(
473511 HDRS
474512 RIntTest.h
475513 DEPENDS
514+ libc.hdr.fenv_macros
476515 libc.src.math.rintf
516+ libc.src.__support.CPP.algorithm
477517 libc.src.__support.FPUtil.fenv_impl
478518 libc.src.__support.FPUtil.fp_bits
479519)
@@ -488,7 +528,26 @@ add_fp_unittest(
488528 HDRS
489529 RIntTest.h
490530 DEPENDS
531+ libc.hdr.fenv_macros
491532 libc.src.math.rintl
533+ libc.src.__support.CPP.algorithm
534+ libc.src.__support.FPUtil.fenv_impl
535+ libc.src.__support.FPUtil.fp_bits
536+ )
537+
538+ add_fp_unittest(
539+ rintf16_test
540+ NEED_MPFR
541+ SUITE
542+ libc-math-unittests
543+ SRCS
544+ rintf16_test.cpp
545+ HDRS
546+ RIntTest.h
547+ DEPENDS
548+ libc.hdr.fenv_macros
549+ libc.src.math.rintf16
550+ libc.src.__support.CPP.algorithm
492551 libc.src.__support.FPUtil.fenv_impl
493552 libc.src.__support.FPUtil.fp_bits
494553)
@@ -504,6 +563,7 @@ add_fp_unittest(
504563 RoundToIntegerTest.h
505564 DEPENDS
506565 libc.src.math.lrint
566+ libc.src.__support.CPP.algorithm
507567 libc.src.__support.FPUtil.fenv_impl
508568 libc.src.__support.FPUtil.fp_bits
509569)
@@ -519,6 +579,7 @@ add_fp_unittest(
519579 RoundToIntegerTest.h
520580 DEPENDS
521581 libc.src.math.lrintf
582+ libc.src.__support.CPP.algorithm
522583 libc.src.__support.FPUtil.fenv_impl
523584 libc.src.__support.FPUtil.fp_bits
524585)
@@ -534,6 +595,23 @@ add_fp_unittest(
534595 RoundToIntegerTest.h
535596 DEPENDS
536597 libc.src.math.lrintl
598+ libc.src.__support.CPP.algorithm
599+ libc.src.__support.FPUtil.fenv_impl
600+ libc.src.__support.FPUtil.fp_bits
601+ )
602+
603+ add_fp_unittest(
604+ lrintf16_test
605+ NEED_MPFR
606+ SUITE
607+ libc-math-unittests
608+ SRCS
609+ lrintf16_test.cpp
610+ HDRS
611+ RoundToIntegerTest.h
612+ DEPENDS
613+ libc.src.math.lrintf16
614+ libc.src.__support.CPP.algorithm
537615 libc.src.__support.FPUtil.fenv_impl
538616 libc.src.__support.FPUtil.fp_bits
539617)
@@ -549,6 +627,7 @@ add_fp_unittest(
549627 RoundToIntegerTest.h
550628 DEPENDS
551629 libc.src.math.llrint
630+ libc.src.__support.CPP.algorithm
552631 libc.src.__support.FPUtil.fenv_impl
553632 libc.src.__support.FPUtil.fp_bits
554633)
@@ -564,6 +643,7 @@ add_fp_unittest(
564643 RoundToIntegerTest.h
565644 DEPENDS
566645 libc.src.math.llrintf
646+ libc.src.__support.CPP.algorithm
567647 libc.src.__support.FPUtil.fenv_impl
568648 libc.src.__support.FPUtil.fp_bits
569649)
@@ -579,6 +659,23 @@ add_fp_unittest(
579659 RoundToIntegerTest.h
580660 DEPENDS
581661 libc.src.math.llrintl
662+ libc.src.__support.CPP.algorithm
663+ libc.src.__support.FPUtil.fenv_impl
664+ libc.src.__support.FPUtil.fp_bits
665+ )
666+
667+ add_fp_unittest(
668+ llrintf16_test
669+ NEED_MPFR
670+ SUITE
671+ libc-math-unittests
672+ SRCS
673+ llrintf16_test.cpp
674+ HDRS
675+ RoundToIntegerTest.h
676+ DEPENDS
677+ libc.src.math.llrintf16
678+ libc.src.__support.CPP.algorithm
582679 libc.src.__support.FPUtil.fenv_impl
583680 libc.src.__support.FPUtil.fp_bits
584681)
0 commit comments