mirror of
https://github.com/c3lang/c3c.git
synced 2026-02-27 20:11:17 +00:00
Add macro arguments &foo $foo #foo.
C ABI compatibility aarch64, win64, x86, x64 Added debug info
This commit is contained in:
committed by
Christoffer Lerno
parent
4222f2731e
commit
3c15e495dd
@@ -30,7 +30,7 @@ static inline bool is_power_of_two(uint64_t x)
|
||||
return x != 0 && (x & (x - 1)) == 0;
|
||||
}
|
||||
|
||||
static inline uint32_t nextHighestPowerOf2(uint32_t v)
|
||||
static inline uint32_t next_highest_power_of_2(uint32_t v)
|
||||
{
|
||||
v--;
|
||||
v |= v >> 1U;
|
||||
@@ -374,3 +374,7 @@ char *strcopy(const char *start, size_t len);
|
||||
typeof(_b) __b__ = (_b); \
|
||||
__a__ > __b__ ? __a__ : __b__; })
|
||||
|
||||
#define MIN(_a, _b) ({ \
|
||||
typeof(_a) __a__ = (_a); \
|
||||
typeof(_b) __b__ = (_b); \
|
||||
__a__ < __b__ ? __a__ : __b__; })
|
||||
|
||||
Reference in New Issue
Block a user