Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Extend use of ps instructions to AVX-1 and SSE functions #9

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 4 additions & 3 deletions blandwidth.h
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/* ========================================================================
$File: work/tools/blandwidth/blandwidth.h $
$Date: 2020/06/17 05:03:59 UTC $
$Revision: 4 $
$Revision: 5 $
$Creator: Casey Muratori $
======================================================================== */

Expand Down Expand Up @@ -57,11 +57,11 @@
#endif

#ifdef __clang__
#define function_avx2 static __attribute__ ((__target__("avx2")))
#define function_avx static __attribute__ ((__target__("avx")))
#define function_avx512 static __attribute__ ((__target__("avx512f")))
#define CTAssert(TestExpression) // TODO(casey): How do I get a static assert in C in CLANG?
#else
#define function_avx2 static
#define function_avx static
#define function_avx512 static
#define CTAssert(TestExpression) static_assert(TestExpression, "Expression not true: (" #TestExpression ")")
#endif
Expand All @@ -77,6 +77,7 @@ typedef unsigned int u32;
typedef unsigned long long u64;
typedef unsigned long long s64;
typedef u32 b32;
typedef float f32;

typedef struct time
{
Expand Down
Loading