1 // SPDX-License-Identifier: GPL-2.0+
4 * Wolfgang Denk, DENX Software Engineering, wd@denx.de.
7 * This file is originally a part of the GCC testsuite.
16 #if CONFIG_POST & CONFIG_SYS_POST_FPU
18 static float rintf (float x)
20 volatile float TWO23 = 8388608.0;
22 if (__builtin_fabs (x) < TWO23)
39 int fpu_post_test_math2 (void)
41 if (rintf (-1.5) != -2.0) {
42 post_log ("Error in FPU math2 test\n");
48 #endif /* CONFIG_POST & CONFIG_SYS_POST_FPU */