mirror of
https://github.com/jart/cosmopolitan.git
synced 2025-07-02 09:18:31 +00:00
Optimize memory layout
This commit is contained in:
parent
0305194d98
commit
b69f3d2488
41 changed files with 383 additions and 347 deletions
3
third_party/nsync/atomic.h
vendored
3
third_party/nsync/atomic.h
vendored
|
@ -1,9 +1,10 @@
|
|||
#ifndef NSYNC_ATOMIC_H_
|
||||
#define NSYNC_ATOMIC_H_
|
||||
#include "libc/atomic.h"
|
||||
#if !(__ASSEMBLER__ + __LINKER__ + 0)
|
||||
COSMOPOLITAN_C_START_
|
||||
|
||||
typedef uint32_t nsync_atomic_uint32_;
|
||||
typedef atomic_uint_fast32_t nsync_atomic_uint32_;
|
||||
|
||||
#define NSYNC_ATOMIC_UINT32_INIT_ 0
|
||||
#define NSYNC_ATOMIC_UINT32_LOAD_(p) (*(p))
|
||||
|
|
1
third_party/nsync/nsync.mk
vendored
1
third_party/nsync/nsync.mk
vendored
|
@ -55,4 +55,3 @@ $(THIRD_PARTY_NSYNC_OBJS): third_party/nsync/nsync.mk
|
|||
|
||||
.PHONY: o/$(MODE)/third_party/nsync
|
||||
o/$(MODE)/third_party/nsync: $(THIRD_PARTY_NSYNC_CHECKS)
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue