05 Feb, 2016

1 commit

  • drm_fixp_from_fraction allows us to create a fixed point directly
    from a fraction, rather than creating fixed point values and dividing
    later. This avoids overflow of our 64 bit value for large numbers.

    drm_fixp2int_ceil allows us to return the ceiling of our fixed point
    value.

    [airlied: squash Jordan's fix]
    32-bit-build-fix: Jordan Lazare
    Signed-off-by: Harry Wentland
    Cc: stable@vger.kernel.org
    Reviewed-by: Alex Deucher
    Signed-off-by: Dave Airlie

    Harry Wentland
     

31 Jul, 2013

1 commit


28 Jun, 2013

1 commit


27 Apr, 2012

1 commit

  • This helper macro retrieves the fractional part of a fixed20_12 20.12
    fixed-point number.

    Signed-off-by: Robert Morell
    Signed-off-by: Olof Johansson
    Signed-off-by: Thierry Reding
    Signed-off-by: Dave Airlie

    Robert Morell
     

18 May, 2010

1 commit