mirror of
https://github.com/jart/cosmopolitan.git
synced 2025-05-29 16:52: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
|
@ -21,7 +21,7 @@
|
|||
#include "libc/crypto/rijndael.h"
|
||||
#include "libc/nexgen32e/x86feature.h"
|
||||
|
||||
static void unrijndaelinit$westmere(struct Rijndael *ctx, uint32_t n,
|
||||
static void unrijndaelinit_westmere(struct Rijndael *ctx, uint32_t n,
|
||||
aes_block_t k1, aes_block_t k2) {
|
||||
uint32_t i;
|
||||
aes_block_t x;
|
||||
|
@ -36,7 +36,7 @@ static void unrijndaelinit$westmere(struct Rijndael *ctx, uint32_t n,
|
|||
XMM_DESTROY(x);
|
||||
}
|
||||
|
||||
static relegated noinline void unrijndaelinit$pure(struct Rijndael *ctx,
|
||||
static relegated noinline void unrijndaelinit_pure(struct Rijndael *ctx,
|
||||
uint32_t n, aes_block_t k1,
|
||||
aes_block_t k2) {
|
||||
uint32_t i;
|
||||
|
@ -62,8 +62,8 @@ static relegated noinline void unrijndaelinit$pure(struct Rijndael *ctx,
|
|||
void unrijndaelinit(struct Rijndael *ctx, uint32_t n, aes_block_t k1,
|
||||
aes_block_t k2) {
|
||||
if (X86_HAVE(AES)) {
|
||||
return unrijndaelinit$westmere(ctx, n, k1, k2);
|
||||
return unrijndaelinit_westmere(ctx, n, k1, k2);
|
||||
} else {
|
||||
return unrijndaelinit$pure(ctx, n, k1, k2);
|
||||
return unrijndaelinit_pure(ctx, n, k1, k2);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue