Commit Graph

14 Commits

Author SHA1 Message Date
5cc33e5af7 fix undefined behavior: left shift a negative integer
C/C++ leaves left-shifting a negative integer up to the compiler
implementation.

On most platforms, left-shifting a negative integer is the same as
casting to the unsigned equivalent, then casting back into the signed
type.

This replaces the left-shift with the mathematical equivalent and avoids
the undefined behavior.

Ideally this should be performed for any case of left-shifting a signed
type, but this commit only covers cases picked up by the undefined
behavior sanitizer.
2022-07-07 10:35:08 -04:00
f145f63fe5 code cleanup, CBR 2021-09-27 12:00:00 +02:00
39dc185256 editorial changes 2020-10-24 02:00:00 +02:00
051900fe7c LR tuning, stss fix 2020-08-05 01:00:01 +02:00
cd4ebeb1f2 finish beta release 2020-06-16 01:00:12 +02:00
28ba11cf57 fix previous commits 2020-06-14 23:00:00 +02:00
1e41f67026 more rate reduction 2020-06-11 00:00:07 +02:00
119fa691eb rate reduction, speedup 2020-06-10 01:00:00 +02:00
1cd927581e band-fill retuning 2020-03-12 23:00:09 +01:00
2e17beffc4 low-rate tuning 2020-03-12 02:00:00 +01:00
0cbfa8c995 low-rate fixes 2020-03-10 00:00:29 +01:00
3b14599078 2nd bugfix round 2020-01-22 23:00:19 +01:00
cde6178540 editorial changes 2020-01-02 03:01:24 +01:00
2e1a6c97b3 add source code 2020-01-02 02:05:09 +01:00