DRM_FIXED_POINT
KUNIT_EXPECT_EQ(test, drm_int2fixp(1), drm_sm2fixp(1ull << DRM_FIXED_POINT));
drm_sm2fixp((1ull << 63) | (1ull << DRM_FIXED_POINT)));
drm_sm2fixp(1ull << (DRM_FIXED_POINT - 1)));
drm_sm2fixp((1ull << 63) | (1ull << (DRM_FIXED_POINT - 1))));
return ((s64)a) << DRM_FIXED_POINT;
return ((s64)a) >> DRM_FIXED_POINT;
if (shift > DRM_FIXED_POINT)
return result << (shift - DRM_FIXED_POINT);
if (shift < DRM_FIXED_POINT)
return result >> (DRM_FIXED_POINT - shift);
if (shift < DRM_FIXED_POINT)
b >>= (DRM_FIXED_POINT - shift);
if (shift > DRM_FIXED_POINT)
return result >> (shift - DRM_FIXED_POINT);
u32 i = DRM_FIXED_POINT;
#define DRM_FIXED_ONE (1ULL << DRM_FIXED_POINT)