1
0
Fork 0
mirror of https://github.com/yshui/picom.git synced 2024-11-11 13:51:02 -05:00

kernel: address some clang-tidy issues

This commit is contained in:
Maxim Solovyov 2023-08-11 00:50:57 +03:00
parent 8c29fb046b
commit b528b87cc8
No known key found for this signature in database

View file

@ -54,8 +54,9 @@ static inline double attr_const gaussian(double r, double x, double y) {
// Formula can be found here:
// https://en.wikipedia.org/wiki/Gaussian_blur#Mathematics
// Except a special case for r == 0 to produce sharp shadows
if (r == 0)
if (r == 0) {
return 1;
}
return exp(-0.5 * (x * x + y * y) / (r * r)) / (2 * M_PI * r * r);
}