]> git.ipfire.org Git - people/ms/u-boot.git/blobdiff - post/lib_powerpc/fpu/mul-subnormal-single-1.c
post: use ARRAY_SIZE
[people/ms/u-boot.git] / post / lib_powerpc / fpu / mul-subnormal-single-1.c
index 1f3732d9243fc193679497cad13f4d4e34d1deff..b3f8deb3426f61295f63c239fff492371612e805 100644 (file)
 
 #include <post.h>
 
-#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);