Julius Werner has posted comments on this change. ( https://review.coreboot.org/c/coreboot/+/41392 )
Change subject: libpayload/cbgfx: Remove gap between adjacent boxes
......................................................................
Patch Set 3:
(1 comment)
https://review.coreboot.org/c/coreboot/+/41392/1/payloads/libpayload/drivers...
File payloads/libpayload/drivers/video/graphics.c:
https://review.coreboot.org/c/coreboot/+/41392/1/payloads/libpayload/drivers...
PS1, Line 82: while (d > INT32_MAX || d < INT32_MIN) {
log2 and MAX(n, d) […]
I don't see where it says implementation defined on there? It's defined by whether the data type of x is signed or unsigned. In this case, it's signed, so you will shift in a 1 if x < 0 which is exactly what you want.
--
To view, visit
https://review.coreboot.org/c/coreboot/+/41392
To unsubscribe, or for help writing mail filters, visit
https://review.coreboot.org/settings
Gerrit-Project: coreboot
Gerrit-Branch: master
Gerrit-Change-Id: I073cf8ec6eb3952a0dcb417b4c3c3c7047567837
Gerrit-Change-Number: 41392
Gerrit-PatchSet: 3
Gerrit-Owner: Yu-Ping Wu
yupingso@google.com
Gerrit-Reviewer: Joel Kitching
kitching@google.com
Gerrit-Reviewer: Julius Werner
jwerner@chromium.org
Gerrit-Reviewer: build bot (Jenkins)
no-reply@coreboot.org
Gerrit-CC: Hsuan-ting Chen
roccochen@google.com
Gerrit-Comment-Date: Fri, 15 May 2020 20:30:30 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: No
Comment-In-Reply-To: Julius Werner
jwerner@chromium.org
Comment-In-Reply-To: Yu-Ping Wu
yupingso@google.com
Gerrit-MessageType: comment