commit | 367b9380b1717dc53ea7e1f05da58c99e0ae54a3 | [log] [tgz] |
---|---|---|
author | Himangi Saraogi <himangi774@gmail.com> | Tue Jun 17 01:42:24 2014 +0530 |
committer | Chris Metcalf <cmetcalf@tilera.com> | Thu Oct 02 10:19:32 2014 -0400 |
tree | 9717790a07980b62dddbea6b710a842848344b3e | |
parent | fe82dcec644244676d55a1384c958d5f67979adb [diff] |
tile: use ARRAY_SIZE 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 Saraogi <himangi774@gmail.com> Acked-by: Julia Lawall <julia.lawall@lip6.fr> Signed-off-by: Chris Metcalf <cmetcalf@tilera.com>