Documentation updates and improved gcc compatibility.
Bug: skia:
Change-Id: I03696aaff38060b00c4929b8b38db63ab0e52b2e
Reviewed-on: https://skia-review.googlesource.com/147868
Reviewed-by: Allan MacKinnon <allanmac@google.com>
Commit-Queue: Allan MacKinnon <allanmac@google.com>
Auto-Submit: Allan MacKinnon <allanmac@google.com>
diff --git a/src/compute/hs/gen/transpose.c b/src/compute/hs/gen/transpose.c
index 095f53d..5e15441 100644
--- a/src/compute/hs/gen/transpose.c
+++ b/src/compute/hs/gen/transpose.c
@@ -96,8 +96,8 @@
{
fprintf(stdout,"BLEND( %u, %3u, %3u )\n",cols_log2,row_ll,row_ur);
- uint32_t * const ll = ALLOCA(cols * sizeof(*b));
- uint32_t * const ur = ALLOCA(cols * sizeof(*b));
+ uint32_t * const ll = ALLOCA_MACRO(cols * sizeof(*b));
+ uint32_t * const ur = ALLOCA_MACRO(cols * sizeof(*b));
memcpy(ll,b+row_ll*cols,cols * sizeof(*b));
memcpy(ur,b+row_ur*cols,cols * sizeof(*b));
@@ -144,8 +144,8 @@
cols = 1 << cols_log2;
- uint32_t * const b = ALLOCA(cols * rows * sizeof(*b));
- uint32_t * const r = ALLOCA( rows * sizeof(*r));
+ uint32_t * const b = ALLOCA_MACRO(cols * rows * sizeof(*b));
+ uint32_t * const r = ALLOCA_MACRO( rows * sizeof(*r));
for (uint32_t rr=0; rr<rows; rr++) {
r[rr] = rr;