summaryrefslogtreecommitdiff
path: root/vector.h
blob: 6e65186231c47a2607085248f6fd700168f13a1c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#pragma once

#if defined(__clang__)
#if __has_extension(attribute_ext_vector_type)
/* LLVM/clang */
typedef double double2 __attribute__ ((ext_vector_type (2)));
typedef double double4 __attribute__ ((ext_vector_type (4)));
#endif
#else
/* GCC */
typedef double double2 __attribute__ ((vector_size (sizeof (double)*2)));
typedef double double4 __attribute__ ((vector_size (sizeof (double)*4)));
#endif