mirror of
https://github.com/kovidgoyal/kitty
synced 2026-07-08 01:53:35 +02:00
Fix building on macOS ARM
This commit is contained in:
@@ -21,6 +21,9 @@ _Pragma("clang diagnostic pop")
|
||||
#endif
|
||||
|
||||
|
||||
#ifndef _MM_SHUFFLE
|
||||
#define _MM_SHUFFLE(z, y, x, w) (((z) << 6) | ((y) << 4) | ((x) << 2) | (w))
|
||||
#endif
|
||||
#define CONCAT(A, B) A##B
|
||||
#define CONCAT_EXPAND(A, B) CONCAT(A,B)
|
||||
#define FUNC(name) CONCAT_EXPAND(name##_, BITS)
|
||||
|
||||
@@ -118,7 +118,6 @@ bool
|
||||
init_simd(void *x) {
|
||||
PyObject *module = (PyObject*)x;
|
||||
if (PyModule_AddFunctions(module, module_methods) != 0) return false;
|
||||
__builtin_cpu_init();
|
||||
#define A(x, val) { Py_INCREF(Py_##val); if (0 != PyModule_AddObject(module, #x, Py_##val)) return false; }
|
||||
#ifdef __APPLE__
|
||||
#ifdef __arm64__
|
||||
|
||||
Reference in New Issue
Block a user