Lines Matching refs:DRM_FIXED_POINT
74 #define DRM_FIXED_POINT 32 macro
75 #define DRM_FIXED_ONE (1ULL << DRM_FIXED_POINT)
100 return ((s64)a) << DRM_FIXED_POINT; in drm_int2fixp()
105 return ((s64)a) >> DRM_FIXED_POINT; in drm_fixp2int()
146 if (shift > DRM_FIXED_POINT) in drm_fixp_mul()
147 return result << (shift - DRM_FIXED_POINT); in drm_fixp_mul()
149 if (shift < DRM_FIXED_POINT) in drm_fixp_mul()
150 return result >> (DRM_FIXED_POINT - shift); in drm_fixp_mul()
162 if (shift < DRM_FIXED_POINT) in drm_fixp_div()
163 b >>= (DRM_FIXED_POINT - shift); in drm_fixp_div()
167 if (shift > DRM_FIXED_POINT) in drm_fixp_div()
168 return result >> (shift - DRM_FIXED_POINT); in drm_fixp_div()
187 u32 i = DRM_FIXED_POINT; in drm_fixp_from_fraction()