We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f1a7851 commit 807f96aCopy full SHA for 807f96a
include/drm/drm_fixed.h
@@ -71,7 +71,6 @@ static inline u32 dfixed_div(fixed20_12 A, fixed20_12 B)
71
}
72
73
#define DRM_FIXED_POINT 32
74
-#define DRM_FIXED_POINT_HALF 16
75
#define DRM_FIXED_ONE (1ULL << DRM_FIXED_POINT)
76
#define DRM_FIXED_DECIMAL_MASK (DRM_FIXED_ONE - 1)
77
#define DRM_FIXED_DIGITS_MASK (~DRM_FIXED_DECIMAL_MASK)
@@ -90,7 +89,7 @@ static inline int drm_fixp2int(s64 a)
90
89
91
static inline int drm_fixp2int_round(s64 a)
92
{
93
- return drm_fixp2int(a + (1 << (DRM_FIXED_POINT_HALF - 1)));
+ return drm_fixp2int(a + DRM_FIXED_ONE / 2);
94
95
96
static inline int drm_fixp2int_ceil(s64 a)
0 commit comments