Hello Shelley Chen, Hung-Te Lin, build bot (Jenkins), Patrick Georgi, Martin Roth, Yu-Ping Wu,
I'd like you to reexamine a change. Please visit
https://review.coreboot.org/c/coreboot/+/42993
to look at the new patch set (#2).
Change subject: libpayload: Add simple 32.32 fixed-point math API ......................................................................
libpayload: Add simple 32.32 fixed-point math API
struct fraction is slooooooooooow. This patch adds a simple 64-bit (32-bits integral, 32-bits fractional) fixed-point math API that is *much* faster when doing intensive graphics operations. It is optimized for speed over accuracy so some operations may lose a bit more precision than expected, but overall it's still plenty of bits for most use cases.
Also includes support for basic trigonometric functions with a small lookup table.
Signed-off-by: Julius Werner jwerner@chromium.org Change-Id: Id0f9c23980e36ce0ac0b7c5cd0bc66153bca1fd0 --- A payloads/libpayload/include/fpmath.h M payloads/libpayload/libc/Makefile.inc A payloads/libpayload/libc/fpmath.c 3 files changed, 384 insertions(+), 0 deletions(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/93/42993/2