diff mbox series

[RFC,for-4.1,14/25] target/ppc: Style fixes for mfrom_table.inc.c & mfrom_table_gen.c

Message ID 20190322001544.9794-15-david@gibson.dropbear.id.au (mailing list archive)
State New, archived
Headers show
Series Many style fixes for target/ppc | expand

Commit Message

David Gibson March 22, 2019, 12:15 a.m. UTC
Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
---
 target/ppc/mfrom_table.inc.c | 3 +--
 target/ppc/mfrom_table_gen.c | 8 +++++---
 2 files changed, 6 insertions(+), 5 deletions(-)

Comments

Cédric Le Goater March 25, 2019, 6:35 a.m. UTC | #1
On 3/22/19 1:15 AM, David Gibson wrote:
> Signed-off-by: David Gibson <david@gibson.dropbear.id.au>


Reviewed-by: Cédric Le Goater <clg@kaod.org>

Thanks,

C.

> ---
>  target/ppc/mfrom_table.inc.c | 3 +--
>  target/ppc/mfrom_table_gen.c | 8 +++++---
>  2 files changed, 6 insertions(+), 5 deletions(-)
> 
> diff --git a/target/ppc/mfrom_table.inc.c b/target/ppc/mfrom_table.inc.c
> index 6a1fa375c9..1653b974a4 100644
> --- a/target/ppc/mfrom_table.inc.c
> +++ b/target/ppc/mfrom_table.inc.c
> @@ -1,5 +1,4 @@
> -static const uint8_t mfrom_ROM_table[602] =
> -{
> +static const uint8_t mfrom_ROM_table[602] = {
>       77,  77,  76,  76,  75,  75,  74,  74,
>       73,  73,  72,  72,  71,  71,  70,  70,
>       69,  69,  68,  68,  68,  67,  67,  66,
> diff --git a/target/ppc/mfrom_table_gen.c b/target/ppc/mfrom_table_gen.c
> index 631791808e..f96c4268ba 100644
> --- a/target/ppc/mfrom_table_gen.c
> +++ b/target/ppc/mfrom_table_gen.c
> @@ -2,7 +2,7 @@
>  #include "qemu/osdep.h"
>  #include <math.h>
>  
> -int main (void)
> +int main(void)
>  {
>      double d;
>      uint8_t n;
> @@ -10,7 +10,8 @@ int main (void)
>  
>      printf("static const uint8_t mfrom_ROM_table[602] =\n{\n    ");
>      for (i = 0; i < 602; i++) {
> -        /* Extremely decomposed:
> +        /*
> +         * Extremely decomposed:
>           *                    -T0 / 256
>           * T0 = 256 * log10(10          + 1.0) + 0.5
>           */
> @@ -23,8 +24,9 @@ int main (void)
>          d += 0.5;
>          n = d;
>          printf("%3d, ", n);
> -        if ((i & 7) == 7)
> +        if ((i & 7) == 7) {
>              printf("\n    ");
> +        }
>      }
>      printf("\n};\n");
>  
>
diff mbox series

Patch

diff --git a/target/ppc/mfrom_table.inc.c b/target/ppc/mfrom_table.inc.c
index 6a1fa375c9..1653b974a4 100644
--- a/target/ppc/mfrom_table.inc.c
+++ b/target/ppc/mfrom_table.inc.c
@@ -1,5 +1,4 @@ 
-static const uint8_t mfrom_ROM_table[602] =
-{
+static const uint8_t mfrom_ROM_table[602] = {
      77,  77,  76,  76,  75,  75,  74,  74,
      73,  73,  72,  72,  71,  71,  70,  70,
      69,  69,  68,  68,  68,  67,  67,  66,
diff --git a/target/ppc/mfrom_table_gen.c b/target/ppc/mfrom_table_gen.c
index 631791808e..f96c4268ba 100644
--- a/target/ppc/mfrom_table_gen.c
+++ b/target/ppc/mfrom_table_gen.c
@@ -2,7 +2,7 @@ 
 #include "qemu/osdep.h"
 #include <math.h>
 
-int main (void)
+int main(void)
 {
     double d;
     uint8_t n;
@@ -10,7 +10,8 @@  int main (void)
 
     printf("static const uint8_t mfrom_ROM_table[602] =\n{\n    ");
     for (i = 0; i < 602; i++) {
-        /* Extremely decomposed:
+        /*
+         * Extremely decomposed:
          *                    -T0 / 256
          * T0 = 256 * log10(10          + 1.0) + 0.5
          */
@@ -23,8 +24,9 @@  int main (void)
         d += 0.5;
         n = d;
         printf("%3d, ", n);
-        if ((i & 7) == 7)
+        if ((i & 7) == 7) {
             printf("\n    ");
+        }
     }
     printf("\n};\n");