mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-11-02 09:01:50 -05:00
audioconvert: some more optimizations
This commit is contained in:
parent
67f26c9caf
commit
fa3bcabbca
6 changed files with 580 additions and 150 deletions
|
|
@ -160,6 +160,14 @@ struct spa_param_info {
|
|||
#define SPA_EXPORT
|
||||
#endif
|
||||
|
||||
#if defined(__STDC_VERSION__) && __STDC_VERSION__ >= 199901L
|
||||
#define SPA_RESTRICT restrict
|
||||
#elif defined(__GNUC__) && __GNUC__ >= 4
|
||||
#define SPA_RESTRICT __restrict__
|
||||
#else
|
||||
#define SPA_RESTRICT
|
||||
#endif
|
||||
|
||||
#define SPA_ROUND_DOWN_N(num,align) ((num) & ~((align) - 1))
|
||||
#define SPA_ROUND_UP_N(num,align) SPA_ROUND_DOWN_N((num) + ((align) - 1),align)
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue