mirror of
https://github.com/jart/cosmopolitan.git
synced 2025-05-28 08:12:28 +00:00
Add atomics to chibicc
This change also fixes #434 and makes the chibicc assembler better.
This commit is contained in:
parent
5ddf43332e
commit
a988896048
21 changed files with 650 additions and 445 deletions
|
@ -833,11 +833,11 @@ static void DescribeAddress(char buf[40], uint32_t addr, uint16_t port) {
|
|||
char *p;
|
||||
const char *s;
|
||||
p = buf;
|
||||
p = FormatUint64(p, (addr & 0xFF000000) >> 030), *p++ = '.';
|
||||
p = FormatUint64(p, (addr & 0x00FF0000) >> 020), *p++ = '.';
|
||||
p = FormatUint64(p, (addr & 0x0000FF00) >> 010), *p++ = '.';
|
||||
p = FormatUint64(p, (addr & 0x000000FF) >> 000), *p++ = ':';
|
||||
p = FormatUint64(p, port);
|
||||
p = FormatUint32(p, (addr & 0xFF000000) >> 030), *p++ = '.';
|
||||
p = FormatUint32(p, (addr & 0x00FF0000) >> 020), *p++ = '.';
|
||||
p = FormatUint32(p, (addr & 0x0000FF00) >> 010), *p++ = '.';
|
||||
p = FormatUint32(p, (addr & 0x000000FF) >> 000), *p++ = ':';
|
||||
p = FormatUint32(p, port);
|
||||
*p = '\0';
|
||||
assert(p - buf < 40);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue