Change some math macros to constexpr
Changes `MAX`, `MIN`, `ABS`, `CLAMP` and `SIGN`.
This commit is contained in:
@ -1465,8 +1465,8 @@ template <class Component, int CC, bool renormalize,
|
||||
void (*renormalize_func)(Component *)>
|
||||
static void _generate_po2_mipmap(const Component *p_src, Component *p_dst, uint32_t p_width, uint32_t p_height) {
|
||||
//fast power of 2 mipmap generation
|
||||
uint32_t dst_w = MAX(p_width >> 1, 1);
|
||||
uint32_t dst_h = MAX(p_height >> 1, 1);
|
||||
uint32_t dst_w = MAX(p_width >> 1, 1u);
|
||||
uint32_t dst_h = MAX(p_height >> 1, 1u);
|
||||
|
||||
int right_step = (p_width == 1) ? 0 : CC;
|
||||
int down_step = (p_height == 1) ? 0 : (p_width * CC);
|
||||
|
||||
Reference in New Issue
Block a user