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=23a3f302e8fe8a9ca454ad59b71a376deaf2e981;hpb=e009cdeb63308f291c54b173484401aab4a3fe54;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 23a3f302e8..b3f8deb342 100644 --- a/post/lib_powerpc/fpu/mul-subnormal-single-1.c +++ b/post/lib_powerpc/fpu/mul-subnormal-single-1.c @@ -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);