clang-format remaining code, use __asm__ for avx2 port since we

insist on straight C99 without extensions (asm isn't special in
C99, __asm__ is)
pull/787/head
Rick V 5 years ago
parent 595b15d538
commit 294b98527d
No known key found for this signature in database
GPG Key ID: C0EDC8723FDC3465

@ -7,7 +7,7 @@ typedef crypto_int32 int32;
static inline void
minmax(int32 *x, int32 *y)
{
asm("movl (%0),%%eax;movl (%1),%%ebx;cmpl %%ebx,%%eax;mov %%eax,%%edx;cmovg "
__asm__("movl (%0),%%eax;movl (%1),%%ebx;cmpl %%ebx,%%eax;mov %%eax,%%edx;cmovg "
"%%ebx,%%eax;cmovg %%edx,%%ebx;movl %%eax,(%0);movl %%ebx,(%1)"
:
: "r"(x), "r"(y)
@ -463,4 +463,4 @@ int32_sort(int32 *x, int n)
if(q >= 2)
multiminmax1plus1(x + 1, n - 2);
}
#endif
#endif

@ -2,7 +2,7 @@
#define LLARP_VERSION_HPP
#if defined(_WIN32) && defined(RC_INVOKED)
#define LLARP_VERSION 0,5,0,0
#define LLARP_VERSION 0, 5, 0, 0
#else
#ifndef LLARP_VERSION_MAJ

Loading…
Cancel
Save