aboutsummaryrefslogtreecommitdiff
path: root/tests/Utils.h
diff options
context:
space:
mode:
authorMoritz Pflanzer <moritz.pflanzer@arm.com>2017-06-21 15:54:07 +0100
committerAnthony Barbier <anthony.barbier@arm.com>2018-09-17 13:03:43 +0100
commit5b51229fad2fcf639051abb6eabfffe98eaadd06 (patch)
treeedea3bbc56e91a7a4569d7ab50df1e8414ac136e /tests/Utils.h
parent9746fd824efe1d1d9933c59376e81dcf9c7a0eca (diff)
downloadComputeLibrary-5b51229fad2fcf639051abb6eabfffe98eaadd06.tar.gz
COMPMID-250: Add PaddingCalculator class
Change-Id: I0e3771f82eaf6a578f19e2602d7dcf1cb6210a2b Reviewed-on: http://mpd-gerrit.cambridge.arm.com/78426 Reviewed-by: SiCong Li <sicong.li@arm.com> Reviewed-by: Georgios Pinitas <georgios.pinitas@arm.com> Tested-by: Kaizen <jeremy.johnson+kaizengerrit@arm.com>
Diffstat (limited to 'tests/Utils.h')
-rw-r--r--tests/Utils.h39
1 files changed, 0 insertions, 39 deletions
diff --git a/tests/Utils.h b/tests/Utils.h
index 420890442a..53f749df48 100644
--- a/tests/Utils.h
+++ b/tests/Utils.h
@@ -475,45 +475,6 @@ inline ValidRegion shape_to_valid_region_undefined_border(TensorShape shape, Bor
return ValidRegion(std::move(anchor), shape);
}
-/** Calculate the required padding given the available @p size and the required.
- * @p step.
- *
- * @param[in] size Available size.
- * @param[in] step Required step size.
- *
- * @return Difference between next greater multiple of @p step and @p size.
- */
-inline int required_padding(int size, int step)
-{
- return ((size + step - 1) / step) * step - size;
-}
-
-/** Calculate the required padding for writing operation with UNDEFINED border mode.
- *
- * @param[in] size Available size.
- * @param[in] step Required step size; number of elements to write at each iteration.
- * @param[in] border_size Border size.
- *
- * @return Required padding size plus border size.
- */
-inline int required_padding_undefined_border_write(int size, int step, int border_size)
-{
- return required_padding(size, step) + border_size;
-}
-
-/** Calculate the required padding for reading operation with UNDEFINED border mode.
- *
- * @param[in] size Available size.
- * @param[in] read_step Required step size; number of elements to read at each iteration.
- * @param[in] process_step Required step size; number of elements to process at each iteration.
- *
- * @return Required padding size.
- */
-inline int required_padding_undefined_border_read(int size, int read_step, int process_step)
-{
- return required_padding(size, process_step) + read_step - process_step;
-}
-
/** Write the value after casting the pointer according to @p data_type.
*
* @warning The type of the value must match the specified data type.