Skip to content
Commit 1d7e78d7 authored by Tobias Jakobi's avatar Tobias Jakobi Committed by Emil Velikov
Browse files

exynos: replace G2D_DOUBLE_TO_FIXED macro with function



This also avoids the floating point conversion steps and just
uses pure integer arithmetic.
Since the G2D hardware scaling approach is a bit unintuitive,
document it in the function as well.

v2: Explicitly mention the normalization constant.
v3: Use common commenting style as pointed out by
    Emil Velikov <emil.l.velikov@gmail.com>.

Signed-off-by: default avatarTobias Jakobi <tjakobi@math.uni-bielefeld.de>
Reviewed-by: default avatarEmil Velikov <emil.l.velikov@gmail.com>
Tested-by: default avatarJoonyoung Shim <jy0922.shim@samsung.com>
parent 0ca03a40
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment