mirror of
https://github.com/CTCaer/RetroArch.git
synced 2024-12-14 22:38:34 +00:00
Use MIN/MAX
This commit is contained in:
parent
130f0749d4
commit
fa1662412b
@ -107,7 +107,7 @@ static void *echo_init(const struct dspfilter_info *info,
|
||||
config->get_float_array(userdata, "feedback", &feedback, &num_feedback, default_feedback, 1);
|
||||
config->get_float(userdata, "amp", &echo->amp, 0.2f);
|
||||
|
||||
channels = num_feedback = num_delay = min(num_delay, num_feedback);
|
||||
channels = num_feedback = num_delay = MIN(num_delay, num_feedback);
|
||||
|
||||
echo->channels = (struct echo_channel*)calloc(channels, sizeof(*echo->channels));
|
||||
if (!echo->channels)
|
||||
|
@ -276,7 +276,7 @@ static void *eq_init(const struct dspfilter_info *info,
|
||||
filter_path = NULL;
|
||||
}
|
||||
|
||||
num_gain = num_freq = min(num_gain, num_freq);
|
||||
num_gain = num_freq = MIN(num_gain, num_freq);
|
||||
|
||||
gains = (struct eq_gain*)calloc(num_gain, sizeof(*gains));
|
||||
if (!gains)
|
||||
|
Loading…
Reference in New Issue
Block a user