@@ -14,48 +14,6 @@ bool llamafile_sgemm(const struct ggml_compute_params * params, int64_t, int64_t
1414 const void * , int64_t , const void * , int64_t , void * , int64_t ,
1515 int , int , int );
1616
17- #if defined(__VXE__ ) || defined(__VXE2__ )
18- #define vec_neg (a ) (-(a)) // Vector Negate
19- #define vec_add (a , b ) ((a) + (b)) // Vector Add
20- #define vec_sub (a , b ) ((a) - (b)) // Vector Subtract
21- #define vec_mul (a , b ) ((a) * (b)) // Vector Multiply
22- #define vec_div (a , b ) ((a) / (b)) // Vector Divide
23- #define vec_sl (a , b ) ((a) << (b)) // Vector Shift Left
24- #define vec_sra (a , b ) ((a) >> (b)) // Vector Shift Right
25- #define vec_sr (a , b ) ((a) >> (b)) // Vector Shift Right Algebraic
26- #define vec_slo (a , b ) vec_slb(a, (b) << 64) // Vector Shift Left by Octet
27- #define vec_sro (a , b ) vec_srb(a, (b) << 64) // Vector Shift Right by Octet
28-
29- #ifndef vec_and
30- #define vec_and (a , b ) ((a) & (b)) // Vector AND
31- #endif
32-
33- #ifndef vec_or
34- #define vec_or (a , b ) ((a) | (b)) // Vector OR
35- #endif
36-
37- #ifndef vec_xor
38- #define vec_xor (a , b ) ((a) ^ (b)) // Vector XOR
39- #endif
40-
41- typedef signed char char8x16_t __attribute__((vector_size (16 )));
42- typedef unsigned char uchar8x16_t __attribute__((vector_size (16 )));
43-
44- typedef int8_t int8x16_t __attribute__((vector_size (16 )));
45- typedef int16_t int16x8_t __attribute__((vector_size (16 )));
46- typedef int32_t int32x4_t __attribute__((vector_size (16 )));
47-
48- typedef uint8_t uint8x16_t __attribute__((vector_size (16 )));
49- typedef uint16_t uint16x8_t __attribute__((vector_size (16 )));
50- typedef uint32_t uint32x4_t __attribute__((vector_size (16 )));
51-
52- typedef float float32x4_t __attribute__((vector_size (16 )));
53- typedef double double64x2_t __attribute__((vector_size (16 )));
54-
55- typedef signed long long long64x2_t __attribute__((vector_size (16 )));
56- typedef unsigned long long ulong64x2_t __attribute__((vector_size (16 )));
57- #endif // defined(__VXE__) || defined(__VXE2__)
58-
5917#ifdef __cplusplus
6018}
6119#endif
0 commit comments