-
Notifications
You must be signed in to change notification settings - Fork 349
src: cosmetic: simplify an invalid configuration check #10626
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -21,25 +21,25 @@ struct src_stage { | |
| int idm; | ||
| int odm; | ||
| int num_of_subfilters; | ||
| int subfilter_length; | ||
| int filter_length; | ||
| int blk_in; | ||
| int blk_out; | ||
| size_t subfilter_length; | ||
|
Collaborator
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. These are not sizes in bytes. Also in some architectures size_t is 64 bits. I prefer just int for a generic integer number. Also unsigned int would be better than size_t. But you know that I don't like it either. Just unnecessary code acrobatics to use a restricted range integer type. It's not improving code efficiency. |
||
| size_t filter_length; | ||
| size_t blk_in; | ||
| size_t blk_out; | ||
| int halfband; | ||
| int shift; | ||
| const void *coefs; /* Can be int16_t or int32_t depending on config */ | ||
| }; | ||
|
|
||
| struct src_param { | ||
| int fir_s1; | ||
| int fir_s2; | ||
| int out_s1; | ||
| int out_s2; | ||
| int sbuf_length; | ||
| int src_multich; | ||
| int total; | ||
| int blk_in; | ||
| int blk_out; | ||
| size_t fir_s1; | ||
| size_t fir_s2; | ||
| size_t out_s1; | ||
| size_t out_s2; | ||
| size_t sbuf_length; | ||
| size_t src_multich; | ||
| size_t total; | ||
| size_t blk_in; | ||
| size_t blk_out; | ||
| int stage1_times; | ||
| int stage2_times; | ||
| int idx_in; | ||
|
|
||
Uh oh!
There was an error while loading. Please reload this page.