|
|
@@ -1,6 +1,6 @@ |
|
|
|
/* |
|
|
|
* Carla common utils |
|
|
|
* Copyright (C) 2011-2020 Filipe Coelho <falktx@falktx.com> |
|
|
|
* Copyright (C) 2011-2024 Filipe Coelho <falktx@falktx.com> |
|
|
|
* |
|
|
|
* This program is free software; you can redistribute it and/or |
|
|
|
* modify it under the terms of the GNU General Public License as |
|
|
@@ -441,7 +441,7 @@ void carla_add(T dest[], const T src[], const std::size_t count) noexcept |
|
|
|
CARLA_SAFE_ASSERT_RETURN(count > 0,); |
|
|
|
|
|
|
|
for (std::size_t i=0; i<count; ++i) |
|
|
|
*dest++ += *src++; |
|
|
|
dest[i] += src[i]; |
|
|
|
} |
|
|
|
|
|
|
|
/* |
|
|
@@ -457,7 +457,7 @@ void carla_addWithMultiply(T dest[], const T src[], const T& multiplier, const s |
|
|
|
CARLA_SAFE_ASSERT_RETURN(count > 0,); |
|
|
|
|
|
|
|
for (std::size_t i=0; i<count; ++i) |
|
|
|
*dest++ += *src++ * multiplier; |
|
|
|
dest[i] += src[i] * multiplier; |
|
|
|
} |
|
|
|
|
|
|
|
/* |
|
|
@@ -488,7 +488,7 @@ void carla_copyWithMultiply(T dest[], const T src[], const T& multiplier, const |
|
|
|
CARLA_SAFE_ASSERT_RETURN(count > 0,); |
|
|
|
|
|
|
|
for (std::size_t i=0; i<count; ++i) |
|
|
|
*dest++ = *src++ * multiplier; |
|
|
|
dest[i] = src[i] * multiplier; |
|
|
|
} |
|
|
|
|
|
|
|
/* |
|
|
@@ -508,7 +508,7 @@ void carla_fill(T data[], const T& value, const std::size_t count) noexcept |
|
|
|
else |
|
|
|
{ |
|
|
|
for (std::size_t i=0; i<count; ++i) |
|
|
|
*data++ = value; |
|
|
|
data[i] = value; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
@@ -529,7 +529,7 @@ void carla_multiply(T data[], const T& multiplier, const std::size_t count) noex |
|
|
|
else |
|
|
|
{ |
|
|
|
for (std::size_t i=0; i<count; ++i) |
|
|
|
*data++ *= multiplier; |
|
|
|
data[i] *= multiplier; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|