diff options
| author | Michael Sevakis <jethead71@rockbox.org> | 2012-04-26 15:21:43 -0400 |
|---|---|---|
| committer | Michael Sevakis <jethead71@rockbox.org> | 2012-04-26 16:04:43 -0400 |
| commit | e5c3327cefb4e6f3a9089ad30fd12bb8f40a0658 (patch) | |
| tree | 973027f2688c478bf0d30ce1ead0bfc24dae766b /apps/plugins/lua/loadlib.c | |
| parent | 2866063c3cff10814f0e2e6c5263c7ee6d4c7fa1 (diff) | |
| download | rockbox-e5c3327cefb4e6f3a9089ad30fd12bb8f40a0658.zip rockbox-e5c3327cefb4e6f3a9089ad30fd12bb8f40a0658.tar.gz rockbox-e5c3327cefb4e6f3a9089ad30fd12bb8f40a0658.tar.bz2 rockbox-e5c3327cefb4e6f3a9089ad30fd12bb8f40a0658.tar.xz | |
Add a more correct absolute difference function to dsp-util.
Differences between signed samples cover the entire unsigned 32-bit
range. "abs" will think any difference exceeding INT32_MAX is negative
which is not corrent. Test which argument is greater and subtract the
lesser from it, outputting unsigned difference.
Change-Id: I73a8e5e418d49ff73d1a7c98eeb4731946dcfe84
Diffstat (limited to 'apps/plugins/lua/loadlib.c')
0 files changed, 0 insertions, 0 deletions