Lines Matching refs:DRM_FIXED_POINT
73 #define DRM_FIXED_POINT 32 macro
74 #define DRM_FIXED_ONE (1ULL << DRM_FIXED_POINT)
82 return ((s64)a) << DRM_FIXED_POINT; in drm_int2fixp()
87 return ((s64)a) >> DRM_FIXED_POINT; in drm_fixp2int()
123 if (shift > DRM_FIXED_POINT) in drm_fixp_mul()
124 return result << (shift - DRM_FIXED_POINT); in drm_fixp_mul()
126 if (shift < DRM_FIXED_POINT) in drm_fixp_mul()
127 return result >> (DRM_FIXED_POINT - shift); in drm_fixp_mul()
139 if (shift < DRM_FIXED_POINT) in drm_fixp_div()
140 b >>= (DRM_FIXED_POINT - shift); in drm_fixp_div()
144 if (shift > DRM_FIXED_POINT) in drm_fixp_div()
145 return result >> (shift - DRM_FIXED_POINT); in drm_fixp_div()
164 u32 i = DRM_FIXED_POINT; in drm_fixp_from_fraction()