mirror of
https://github.com/RPCSX/rpcsx.git
synced 2026-04-09 00:14:56 +00:00
format all source code with clang-format
This commit is contained in:
parent
6bbaf18e71
commit
42cb5d7977
1234 changed files with 90082 additions and 82954 deletions
|
|
@ -29,8 +29,11 @@
|
|||
std::string to_hex(std::uint64_t value, bool prfx = true)
|
||||
{
|
||||
char buf[20]{}, *ptr = buf + 19;
|
||||
do *--ptr = "0123456789abcdef"[value % 16], value /= 16; while (value);
|
||||
if (!prfx) return ptr;
|
||||
do
|
||||
*--ptr = "0123456789abcdef"[value % 16], value /= 16;
|
||||
while (value);
|
||||
if (!prfx)
|
||||
return ptr;
|
||||
*--ptr = 'x';
|
||||
*--ptr = '0';
|
||||
return ptr;
|
||||
|
|
@ -200,7 +203,9 @@ int main(int argc, char* argv[])
|
|||
}
|
||||
else
|
||||
{
|
||||
while ((dup2(fds[1], STDOUT_FILENO) == -1) && (errno == EINTR)) {}
|
||||
while ((dup2(fds[1], STDOUT_FILENO) == -1) && (errno == EINTR))
|
||||
{
|
||||
}
|
||||
close(fds[1]);
|
||||
close(fds[0]);
|
||||
// Fallthrough
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue