Commit 18408fcc authored by Eero Häkkinen's avatar Eero Häkkinen Committed by Commit Bot

Remove unneeded const casts from VectorMath functions

Bug: 822721
Change-Id: If0d5768d344580ce7da3b8cf07eaacece34614eb
Reviewed-on: https://chromium-review.googlesource.com/962141
Commit-Queue: Eero Häkkinen <eero.hakkinen@intel.com>
Reviewed-by: default avatarRaymond Toy <rtoy@chromium.org>
Cr-Commit-Position: refs/heads/master@{#543706}
parent 540617f6
......@@ -42,10 +42,8 @@ static ALWAYS_INLINE void Vclip(const float* source_p,
float* dest_p,
int dest_stride,
size_t frames_to_process) {
vDSP_vclip(const_cast<float*>(source_p), source_stride,
const_cast<float*>(low_threshold_p),
const_cast<float*>(high_threshold_p), dest_p, dest_stride,
frames_to_process);
vDSP_vclip(source_p, source_stride, low_threshold_p, high_threshold_p, dest_p,
dest_stride, frames_to_process);
}
static ALWAYS_INLINE void Vmaxmgv(const float* source_p,
......@@ -100,8 +98,7 @@ static ALWAYS_INLINE void Vsvesq(const float* source_p,
int source_stride,
float* sum_p,
size_t frames_to_process) {
vDSP_svesq(const_cast<float*>(source_p), source_stride, sum_p,
frames_to_process);
vDSP_svesq(source_p, source_stride, sum_p, frames_to_process);
}
static ALWAYS_INLINE void Zvmul(const float* real1p,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment