mirror of
https://github.com/jart/cosmopolitan.git
synced 2025-05-28 00:02:28 +00:00
Fix Clang support
The amalgamated release is now confirmed to be working with Clang, including its integrated assembler. Fixes #41
This commit is contained in:
parent
e06c90fafc
commit
d7733579d3
103 changed files with 384 additions and 359 deletions
|
@ -311,25 +311,25 @@ static unsigned combinecolors(unsigned char bf[1u << MC][2],
|
|||
return r; \
|
||||
}
|
||||
|
||||
ADJUDICATE(adjudicate$avx2, microarchitecture("avx2,fma"))
|
||||
ADJUDICATE(adjudicate$avx, microarchitecture("avx"))
|
||||
ADJUDICATE(adjudicate$default, )
|
||||
ADJUDICATE(adjudicate_avx2, microarchitecture("avx2,fma"))
|
||||
ADJUDICATE(adjudicate_avx, microarchitecture("avx"))
|
||||
ADJUDICATE(adjudicate_default, )
|
||||
|
||||
static float (*adjudicate$hook)(unsigned, unsigned, unsigned,
|
||||
static float (*adjudicate_hook)(unsigned, unsigned, unsigned,
|
||||
const float[CN][YS * XS]);
|
||||
|
||||
static float adjudicate2(unsigned b, unsigned f, unsigned g,
|
||||
const float lb[CN][YS * XS]) {
|
||||
if (!adjudicate$hook) {
|
||||
if (!adjudicate_hook) {
|
||||
if (X86_HAVE(AVX2) && X86_HAVE(FMA)) {
|
||||
adjudicate$hook = adjudicate$avx2;
|
||||
adjudicate_hook = adjudicate_avx2;
|
||||
} else if (X86_HAVE(AVX)) {
|
||||
adjudicate$hook = adjudicate$avx;
|
||||
adjudicate_hook = adjudicate_avx;
|
||||
} else {
|
||||
adjudicate$hook = adjudicate$default;
|
||||
adjudicate_hook = adjudicate_default;
|
||||
}
|
||||
}
|
||||
return adjudicate$hook(b, f, g, lb);
|
||||
return adjudicate_hook(b, f, g, lb);
|
||||
}
|
||||
|
||||
static float adjudicate(unsigned b, unsigned f, unsigned g,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue