Re: [PATCH] tile: use ARRAY_SIZE

2014-06-16 Thread Chris Metcalf
On 6/16/2014 4:12 PM, Himangi Saraogi wrote: ARRAY_SIZE is more concise to use when the size of an array is divided by the size of its type or the size of its first element. The semantic patch that makes this change is as follows: // @i@ @@ @@ type T; T[] E; @@ - (sizeof(E)/sizeof(T)) +

[PATCH] tile: use ARRAY_SIZE

2014-06-16 Thread Himangi Saraogi
ARRAY_SIZE is more concise to use when the size of an array is divided by the size of its type or the size of its first element. The semantic patch that makes this change is as follows: // @i@ @@ @@ type T; T[] E; @@ - (sizeof(E)/sizeof(T)) + ARRAY_SIZE(E) // Signed-off-by: Himangi Saraogi

[PATCH] tile: use ARRAY_SIZE

2014-06-16 Thread Himangi Saraogi
ARRAY_SIZE is more concise to use when the size of an array is divided by the size of its type or the size of its first element. The semantic patch that makes this change is as follows: // smpl @i@ @@ @@ type T; T[] E; @@ - (sizeof(E)/sizeof(T)) + ARRAY_SIZE(E) // /smpl Signed-off-by: Himangi

Re: [PATCH] tile: use ARRAY_SIZE

2014-06-16 Thread Chris Metcalf
On 6/16/2014 4:12 PM, Himangi Saraogi wrote: ARRAY_SIZE is more concise to use when the size of an array is divided by the size of its type or the size of its first element. The semantic patch that makes this change is as follows: // smpl @i@ @@ @@ type T; T[] E; @@ - (sizeof(E)/sizeof(T)) +