Jacob Garber has posted comments on this change. ( https://review.coreboot.org/c/coreboot/+/33210 )
Change subject: nb/amd/amdfam10: Use 64 bits in multiplication
......................................................................
Patch Set 1:
(1 comment)
https://review.coreboot.org/#/c/33210/1/src/northbridge/amd/amdfam10/northbr...
File src/northbridge/amd/amdfam10/northbridge.c:
https://review.coreboot.org/#/c/33210/1/src/northbridge/amd/amdfam10/northbr...
PS1, Line 794: qword = (uint64_t)0x1000000 * num_nodes;
Would 0x1000000UL or so also work?
I don't think so. UL is unsigned long, which is 32 bits for us. Of course, it could be something different on other platforms, which is the problem with these integer literal suffixes. The "standard official" way is to use a macro like UINT64_C(), but by then you might as well just use a cast anyway.
--
To view, visit
https://review.coreboot.org/c/coreboot/+/33210
To unsubscribe, or for help writing mail filters, visit
https://review.coreboot.org/settings
Gerrit-Project: coreboot
Gerrit-Branch: master
Gerrit-Change-Id: Id2fa328fb8d0a9827c7c78157c024736e9b26dc4
Gerrit-Change-Number: 33210
Gerrit-PatchSet: 1
Gerrit-Owner: Jacob Garber
jgarber1@ualberta.ca
Gerrit-Reviewer: David Hendricks
david.hendricks@gmail.com
Gerrit-Reviewer: Jacob Garber
jgarber1@ualberta.ca
Gerrit-Reviewer: Martin Roth
martinroth@google.com
Gerrit-Reviewer: Patrick Georgi
pgeorgi@google.com
Gerrit-Reviewer: Timothy Pearson
tpearson@raptorengineering.com
Gerrit-Reviewer: build bot (Jenkins)
no-reply@coreboot.org
Gerrit-CC: Paul Menzel
paulepanter@users.sourceforge.net
Gerrit-Comment-Date: Thu, 06 Jun 2019 15:08:57 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: No
Comment-In-Reply-To: Paul Menzel
paulepanter@users.sourceforge.net
Gerrit-MessageType: comment