From 38ed95fe8d6f4c47c0c5f09ffecc987d75150dcc Mon Sep 17 00:00:00 2001 From: Campbell Barton Date: Wed, 4 Mar 2020 11:31:51 +1100 Subject: Cleanup: replace CLAMP macros with functions --- source/blender/imbuf/intern/imageprocess.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'source/blender/imbuf/intern/imageprocess.c') diff --git a/source/blender/imbuf/intern/imageprocess.c b/source/blender/imbuf/intern/imageprocess.c index ec03a0a07b8..6a234232a35 100644 --- a/source/blender/imbuf/intern/imageprocess.c +++ b/source/blender/imbuf/intern/imageprocess.c @@ -190,10 +190,7 @@ void bilinear_interpolation_color_wrap( outF[3] = ma_mb * row1[3] + a_mb * row3[3] + ma_b * row2[3] + a_b * row4[3]; /* clamp here or else we can easily get off-range */ - CLAMP(outF[0], 0.0f, 1.0f); - CLAMP(outF[1], 0.0f, 1.0f); - CLAMP(outF[2], 0.0f, 1.0f); - CLAMP(outF[3], 0.0f, 1.0f); + clamp_v4(outF, 0.0f, 1.0f); } if (outI) { /* sample including outside of edges of image */ -- cgit v1.2.3