Use std abs instead of a custom abs

This commit is contained in:
Paul Ferrand 2019-12-17 17:45:45 +01:00
parent 1c748e8c94
commit 2c792ea4df

View file

@ -157,7 +157,7 @@ void LinearEnvelope<Type>::getQuantizedBlock(absl::Span<Type> output, Type quant
continue;
}
const auto difference = abs(newValue - currentValue);
const auto difference = std::abs(newValue - currentValue);
if (difference < quantizationStep) {
fill<Type>(output.subspan(index, length), currentValue);
currentValue = newValue;