summaryrefslogtreecommitdiff
path: root/src/routines/level1/xamax.cc
diff options
context:
space:
mode:
authorCedric Nugteren <web@cedricnugteren.nl>2016-06-17 11:29:07 +0200
committerCedric Nugteren <web@cedricnugteren.nl>2016-06-17 11:29:07 +0200
commitafe8852eaae20fbdd3f38e9cac63a9162251d90b (patch)
treed34fe7dd2fe095a34bb4544cade644d52baa1f30 /src/routines/level1/xamax.cc
parent52ccaf5b25e14c9ce032315e5e96b1f27886d481 (diff)
Moved the test-for-valid-buffers function from the Routine class to separate functions in a separate file
Diffstat (limited to 'src/routines/level1/xamax.cc')
-rw-r--r--src/routines/level1/xamax.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/routines/level1/xamax.cc b/src/routines/level1/xamax.cc
index 335e59bc..9a7d2173 100644
--- a/src/routines/level1/xamax.cc
+++ b/src/routines/level1/xamax.cc
@@ -49,9 +49,9 @@ StatusCode Xamax<T>::DoAmax(const size_t n,
if (n == 0) { return StatusCode::kInvalidDimension; }
// Tests the vectors for validity
- auto status = TestVectorX(n, x_buffer, x_offset, x_inc, sizeof(T));
+ auto status = TestVectorX(n, x_buffer, x_offset, x_inc);
if (ErrorIn(status)) { return status; }
- status = TestVectorIndex(1, imax_buffer, imax_offset, sizeof(unsigned int));
+ status = TestVectorIndex(1, imax_buffer, imax_offset);
if (ErrorIn(status)) { return status; }
// Retrieves the Xamax kernels from the compiled binary