diff options
author | TatWai Chong <tatwai.chong@arm.com> | 2023-08-31 16:58:27 -0700 |
---|---|---|
committer | Eric Kunze <eric.kunze@arm.com> | 2023-09-13 18:44:56 +0000 |
commit | fb879821119c93109198a576e7b93e80b3dc0616 (patch) | |
tree | 330eceb5d54add4c1e2ccdfdbac7f277573d0a57 /reference_model/src/graph_node.h | |
parent | 76c6a556c7396ee6468780b57676e5821c55b1e4 (diff) | |
download | reference_model-fb879821119c93109198a576e7b93e80b3dc0616.tar.gz |
Add integer divide with floor for coordinate calculation
Align with the change in the spec.
Define idiv_floor to give equivalent behavior to the floating-point
floor function for image coordinate calculation.
Change-Id: Ice06d354d58b1bb0dfedab55c9cc9eac1598b50c
Signed-off-by: TatWai Chong <tatwai.chong@arm.com>
Diffstat (limited to 'reference_model/src/graph_node.h')
-rw-r--r-- | reference_model/src/graph_node.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/reference_model/src/graph_node.h b/reference_model/src/graph_node.h index 900f4b8..440ca04 100644 --- a/reference_model/src/graph_node.h +++ b/reference_model/src/graph_node.h @@ -256,6 +256,7 @@ public: // Helper functions. int idiv_check(int input1, int input2, int& result); + int idiv_floor(int input1, int input2); protected: // Print out a node validation error |