Use std abs instead of a custom abs
This commit is contained in:
parent
1c748e8c94
commit
2c792ea4df
1 changed files with 1 additions and 1 deletions
|
|
@ -157,7 +157,7 @@ void LinearEnvelope<Type>::getQuantizedBlock(absl::Span<Type> output, Type quant
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
const auto difference = abs(newValue - currentValue);
|
const auto difference = std::abs(newValue - currentValue);
|
||||||
if (difference < quantizationStep) {
|
if (difference < quantizationStep) {
|
||||||
fill<Type>(output.subspan(index, length), currentValue);
|
fill<Type>(output.subspan(index, length), currentValue);
|
||||||
currentValue = newValue;
|
currentValue = newValue;
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue