diff options
author | Eric Kunze <eric.kunze@arm.com> | 2021-10-25 16:13:22 -0700 |
---|---|---|
committer | Eric Kunze <eric.kunze@arm.com> | 2021-10-28 09:57:55 -0700 |
commit | 82f19e2ad25bcbdde8e7f8b6bd6a6064a207fe36 (patch) | |
tree | c7a685d03bf2a9dd5a171b6c7409baf8c687da4f /chapters/image.adoc | |
parent | 3fe5256340778f586b80ac02b0632b54a39723f1 (diff) | |
download | specification-82f19e2ad25bcbdde8e7f8b6bd6a6064a207fe36.tar.gz |
Readability fixes for pseudocode
Avoid use of acc for variables when they are not convolution
accumulators.
Use argument types appropriately.
Add missing pseudocode for some MI operators
Change-Id: I9113f9228dbcafb85206bcc39310e9599cb12c08
Diffstat (limited to 'chapters/image.adoc')
-rw-r--r-- | chapters/image.adoc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/chapters/image.adoc b/chapters/image.adoc index 2491ea5..7476d8a 100644 --- a/chapters/image.adoc +++ b/chapters/image.adoc @@ -74,8 +74,8 @@ for_each(0 <= n < N, 0 <= oy < OH, 0 <= ox < OW; 0 <= c < C) { y = oy * stride_y + offset_y; x = ox * stride_x + offset_x; if (resize_t == float_t) { - iy = (int)floor(y); dy = y - (float_t)iy; - ix = (int)floor(x); dx = x - (float_t)ix; + iy = (int)apply_floor(y); dy = y - (float_t)iy; + ix = (int)apply_floor(x); dx = x - (float_t)ix; } else { iy = y >> shift; dy = y - (iy<<shift); ix = x >> shift; dx = x - (ix<<shift); |