diff options
| author | Chih-Hung Hsieh <[email protected]> | 2015-10-06 15:53:15 -0700 |
|---|---|---|
| committer | Mark Wielaard <[email protected]> | 2015-10-07 22:44:41 +0200 |
| commit | 7eff36d5daa6ebca5e6399638a7643af105ae5b0 (patch) | |
| tree | 7bfd9c4a93f88135b9f42337d827948aa6b63cdb /NOTES | |
| parent | daee4714ee3761e2d92f764a724e83875a79a3f0 (diff) | |
Do without union of variable length arrays.
Prepare to compile with clang.
A union like
{ T32 a32[n]; T64 a64[n]; } u;
is expanded to
size_t nbytes = n * MAX(sizeof(T32), sizeof(T64));
void *data = malloc(nbytes);
T32 (*a32)[n] = data;
T64 (*a64)[n] = data;
Signed-off-by: Chih-Hung Hsieh <[email protected]>
Diffstat (limited to 'NOTES')
0 files changed, 0 insertions, 0 deletions
