From 82f19e2ad25bcbdde8e7f8b6bd6a6064a207fe36 Mon Sep 17 00:00:00 2001 From: Eric Kunze Date: Mon, 25 Oct 2021 16:13:22 -0700 Subject: 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 --- chapters/image.adoc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'chapters/image.adoc') 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; dx = x - (ix<