Julius Werner has posted comments on this change. ( https://review.coreboot.org/c/coreboot/+/38727 )
Change subject: device: Expose round()
......................................................................
Patch Set 1:
(2 comments)
https://review.coreboot.org/c/coreboot/+/38727/1/src/include/device/device.h
File src/include/device/device.h:
https://review.coreboot.org/c/coreboot/+/38727/1/src/include/device/device.h...
PS1, Line 330: * @return Rounded up number.
Isn't this just the same as ALIGN_UP(val, 1 << pow)? Why not just get rid of the custom function and use that?
https://review.coreboot.org/c/coreboot/+/38727/1/src/include/device/device.h...
PS1, Line 332: resource_t round(resource_t val, unsigned long pow);
This needs to be way better namespaced if you want it globally visible (e.g. resource_round_up() or something).
--
To view, visit
https://review.coreboot.org/c/coreboot/+/38727
To unsubscribe, or for help writing mail filters, visit
https://review.coreboot.org/settings
Gerrit-Project: coreboot
Gerrit-Branch: master
Gerrit-Change-Id: I317dad18176fc2339072f02a5bcdcc8859596df9
Gerrit-Change-Number: 38727
Gerrit-PatchSet: 1
Gerrit-Owner: Jonathan Zhang
jonzhang@fb.com
Gerrit-Reviewer: Anjaneya "Reddy" Chagam
anjaneya.chagam@intel.com
Gerrit-Reviewer: David Hendricks
david.hendricks@gmail.com
Gerrit-Reviewer: Jonathan Zhang
jonzhang@fb.com
Gerrit-Reviewer: Patrick Georgi
pgeorgi@google.com
Gerrit-Reviewer: Patrick Rudolph
siro@das-labor.org
Gerrit-Reviewer: build bot (Jenkins)
no-reply@coreboot.org
Gerrit-CC: Julius Werner
jwerner@chromium.org
Gerrit-Comment-Date: Thu, 06 Feb 2020 01:41:17 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: No
Gerrit-MessageType: comment