aboutsummaryrefslogtreecommitdiffstats
path: root/include/drm/drm_fixed.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/drm/drm_fixed.h')
-rw-r--r--include/drm/drm_fixed.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/drm/drm_fixed.h b/include/drm/drm_fixed.h
index 4a08a664ff1f..0ead502e17d2 100644
--- a/include/drm/drm_fixed.h
+++ b/include/drm/drm_fixed.h
@@ -37,6 +37,7 @@ typedef union dfixed {
37#define dfixed_init(A) { .full = dfixed_const((A)) } 37#define dfixed_init(A) { .full = dfixed_const((A)) }
38#define dfixed_init_half(A) { .full = dfixed_const_half((A)) } 38#define dfixed_init_half(A) { .full = dfixed_const_half((A)) }
39#define dfixed_trunc(A) ((A).full >> 12) 39#define dfixed_trunc(A) ((A).full >> 12)
40#define dfixed_frac(A) ((A).full & ((1 << 12) - 1))
40 41
41static inline u32 dfixed_floor(fixed20_12 A) 42static inline u32 dfixed_floor(fixed20_12 A)
42{ 43{