You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
uint64_t types in PIMeval and PIMbench are currently being printed using format specifiers like %lld or %lu. While some compilers handle this without warnings, others produce warnings due to incorrect format specifiers for uint64_t. To ensure portability and avoid such warnings, the recommended approach is to use the <cinttypes> header and print using:
printf("%"PRIu64"\n", value);
This ensures the code is portable across different platforms and compilers, which may have different representations for uint64_t.
Proposed Solution:
Replace all occurrences of %lld or %lu used for uint64_t with %" PRIu64 " as defined in <cinttypes>.
Ensure that <cinttypes> is included wherever uint64_t is printed.
uint64_t
types in PIMeval and PIMbench are currently being printed using format specifiers like%lld
or%lu
. While some compilers handle this without warnings, others produce warnings due to incorrect format specifiers foruint64_t
. To ensure portability and avoid such warnings, the recommended approach is to use the<cinttypes>
header and print using:This ensures the code is portable across different platforms and compilers, which may have different representations for
uint64_t
.Proposed Solution:
%lld
or%lu
used foruint64_t
with%" PRIu64 "
as defined in<cinttypes>
.<cinttypes>
is included whereveruint64_t
is printed.Reference:
The text was updated successfully, but these errors were encountered: