From c8da1d2687cfcff90629c2cf770bb5f406002701 Mon Sep 17 00:00:00 2001 From: Georgios Pinitas Date: Tue, 20 Jun 2023 18:45:44 +0100 Subject: Make verifiers to operate on const pointers Signed-off-by: Georgios Pinitas Change-Id: I45287af6b33cf07383250dc962a97728e65697a7 --- reference_model/src/verify.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'reference_model/src') diff --git a/reference_model/src/verify.cc b/reference_model/src/verify.cc index 940275f..584a418 100644 --- a/reference_model/src/verify.cc +++ b/reference_model/src/verify.cc @@ -74,7 +74,7 @@ std::optional validate_element(double ref, double bnd, AccType imp, size // Generic data validation function template , int> = 0> -bool validate_data(double* ref, double* bnd, AccType* imp, size_t T, size_t KS, int32_t S) +bool validate_data(const double* ref, const double* bnd, const AccType* imp, size_t T, size_t KS, int32_t S) { double out_err_sum = 0.0; double out_err_sumsq = 0.0; @@ -121,7 +121,7 @@ bool tosa_validate_output_error(double err_sum, double err_sum_sq, size_t T, siz return true; } -bool tosa_validate_data_fp32(double* ref, double* bnd, float* imp, size_t T, size_t KS, int S) +bool tosa_validate_data_fp32(const double* ref, const double* bnd, const float* imp, size_t T, size_t KS, int S) { return validate_data(ref, bnd, imp, T, KS, S); } -- cgit v1.2.1