X-Git-Url: https://git.sur5r.net/?a=blobdiff_plain;f=post%2Flib_powerpc%2Ffpu%2Fmul-subnormal-single-1.c;h=b3f8deb3426f61295f63c239fff492371612e805;hb=1b7935cd96f2295d5cdf144fa46696fb60a820ef;hp=1f3732d9243fc193679497cad13f4d4e34d1deff;hpb=500fbae2043532275e09a8666d837d052c9bad9a;p=u-boot diff --git a/post/lib_powerpc/fpu/mul-subnormal-single-1.c b/post/lib_powerpc/fpu/mul-subnormal-single-1.c index 1f3732d924..b3f8deb342 100644 --- a/post/lib_powerpc/fpu/mul-subnormal-single-1.c +++ b/post/lib_powerpc/fpu/mul-subnormal-single-1.c @@ -30,10 +30,10 @@ #include -#if CONFIG_POST & CONFIG_SYS_POST_FPU - GNU_FPOST_ATTR +#if CONFIG_POST & CONFIG_SYS_POST_FPU + union uf { unsigned int u; @@ -86,7 +86,7 @@ int fpu_post_test_math7 (void) { unsigned int i; - for (i = 0; i < sizeof (expected) / sizeof (expected[0]); i++) + for (i = 0; i < ARRAY_SIZE(expected); i++) { tstmul (expected[i].p1, expected[i].p2, expected[i].res); tstmul (expected[i].p2, expected[i].p1, expected[i].res);