mirror of
https://github.com/jart/cosmopolitan.git
synced 2025-06-26 22:38:30 +00:00
Make small fixes and oops ran clang-format on dtoa
This commit is contained in:
parent
b5b60015f5
commit
ac00be1a4e
47 changed files with 4933 additions and 5306 deletions
|
@ -19,6 +19,7 @@
|
|||
╚─────────────────────────────────────────────────────────────────────────────*/
|
||||
#include "libc/assert.h"
|
||||
#include "libc/bits/bits.h"
|
||||
#include "libc/bits/popcnt.h"
|
||||
#include "libc/bits/safemacros.h"
|
||||
#include "libc/calls/calls.h"
|
||||
#include "libc/runtime/buffer.h"
|
||||
|
@ -54,9 +55,9 @@ void *balloc(struct GuardedBuffer *b, unsigned a, size_t n) {
|
|||
assert(a >= 1);
|
||||
assert(a <= kGuard);
|
||||
assert(kGuard < kGrain);
|
||||
assert(popcount(a) == 1);
|
||||
assert(popcount(kGuard) == 1);
|
||||
assert(popcount(kGrain) == 1);
|
||||
assert(popcnt(a) == 1);
|
||||
assert(popcnt(kGuard) == 1);
|
||||
assert(popcnt(kGrain) == 1);
|
||||
assert(n < 0x800000000000ul - kGrain - kGuard);
|
||||
|
||||
if (n) {
|
||||
|
|
|
@ -45,9 +45,9 @@
|
|||
({ \
|
||||
int KillAx; \
|
||||
unsigned char Cf; \
|
||||
asm volatile(CFLAG("clc\n\t" \
|
||||
"syscall") \
|
||||
: CF(Cf), "=a"(KillAx) \
|
||||
asm volatile(CFLAG_ASM("clc\n\t" \
|
||||
"syscall") \
|
||||
: CFLAG_CONSTRAINT(Cf), "=a"(KillAx) \
|
||||
: "1"(__NR_kill), "D"(pid), "S"(sig) \
|
||||
: "rcx", "r11", "cc", "memory"); \
|
||||
Cf ? -KillAx : KillAx; \
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue