Lines Matching refs:DRM_FIXED_POINT
72 #define DRM_FIXED_POINT 32 macro
73 #define DRM_FIXED_ONE (1ULL << DRM_FIXED_POINT)
81 return ((s64)a) << DRM_FIXED_POINT; in drm_int2fixp()
86 return ((s64)a) >> DRM_FIXED_POINT; in drm_fixp2int()
122 if (shift > DRM_FIXED_POINT) in drm_fixp_mul()
123 return result << (shift - DRM_FIXED_POINT); in drm_fixp_mul()
125 if (shift < DRM_FIXED_POINT) in drm_fixp_mul()
126 return result >> (DRM_FIXED_POINT - shift); in drm_fixp_mul()
138 if (shift < DRM_FIXED_POINT) in drm_fixp_div()
139 b >>= (DRM_FIXED_POINT - shift); in drm_fixp_div()
143 if (shift > DRM_FIXED_POINT) in drm_fixp_div()
144 return result >> (shift - DRM_FIXED_POINT); in drm_fixp_div()
163 u32 i = DRM_FIXED_POINT; in drm_fixp_from_fraction()