Lines Matching refs:DRM_FIXED_POINT
74 #define DRM_FIXED_POINT 32 macro
75 #define DRM_FIXED_ONE (1ULL << DRM_FIXED_POINT)
83 return ((s64)a) << DRM_FIXED_POINT; in drm_int2fixp()
88 return ((s64)a) >> DRM_FIXED_POINT; in drm_fixp2int()
129 if (shift > DRM_FIXED_POINT) in drm_fixp_mul()
130 return result << (shift - DRM_FIXED_POINT); in drm_fixp_mul()
132 if (shift < DRM_FIXED_POINT) in drm_fixp_mul()
133 return result >> (DRM_FIXED_POINT - shift); in drm_fixp_mul()
145 if (shift < DRM_FIXED_POINT) in drm_fixp_div()
146 b >>= (DRM_FIXED_POINT - shift); in drm_fixp_div()
150 if (shift > DRM_FIXED_POINT) in drm_fixp_div()
151 return result >> (shift - DRM_FIXED_POINT); in drm_fixp_div()
170 u32 i = DRM_FIXED_POINT; in drm_fixp_from_fraction()