There is PCM_CLAMP_S32() already.
No functional change intended.
Sponsored by: The FreeBSD Foundation
MFC after: 1 week
Differential D48033
sound: Remove FEEDEQ_CLAMP() christos on Wed, Dec 11, 4:49 PM. Authored by Tags None Referenced Files
Subscribers
Details
There is PCM_CLAMP_S32() already. No functional change intended. Sponsored by: The FreeBSD Foundation
Diff Detail
Event TimelineComment Actions It does, but I am wondering whether the non-SND_PCM_64 is useful. I am not exactly sure why it does what it does. Comment Actions From sys/conf/NOTES: # SND_PCM_64 (Only applicable for i386/32bit arch) # Process 32bit samples through 64bit # integer/arithmetic. Slight increase of dynamic # range at a cost of possible slowdown. I think the default on 32bit platforms is to process 32bit samples at only 24bit precision, to prevent overflow while using 32bit integers for performance reasons. Option SND_PCM_64 turns on proper 64bit integer processing, which can handle 32bit samples easily. See also PCM_FXSHIFT and the comment you deleted in D47932. What is really questionable from a readability POV is typedef int64_t intpcm32_t;, IMHO. We have to be extra careful refactoring this stuff. |