mirror of
https://github.com/dragonpilot/dragonpilot.git
synced 2026-02-19 19:23:58 +08:00
dragonpilot 2022-08-17T05:06:08 for EON/C2
version: dragonpilot v0.8.16 beta for EON/C2 date: 2022-08-18T23:02:08 dp-dev(priv2) master commit: 96dd81dde40b92d0686ec5761cfaaab24300b027
This commit is contained in:
committed by
Comma Device
parent
4d7a40310f
commit
b437663252
131
common/clock.cpp
131
common/clock.cpp
@@ -1,4 +1,4 @@
|
||||
/* Generated by Cython 0.29.26 */
|
||||
/* Generated by Cython 0.29.24 */
|
||||
|
||||
/* BEGIN: Cython Metadata
|
||||
{
|
||||
@@ -23,8 +23,8 @@ END: Cython Metadata */
|
||||
#elif PY_VERSION_HEX < 0x02060000 || (0x03000000 <= PY_VERSION_HEX && PY_VERSION_HEX < 0x03030000)
|
||||
#error Cython requires Python 2.6+ or Python 3.3+.
|
||||
#else
|
||||
#define CYTHON_ABI "0_29_26"
|
||||
#define CYTHON_HEX_VERSION 0x001D1AF0
|
||||
#define CYTHON_ABI "0_29_24"
|
||||
#define CYTHON_HEX_VERSION 0x001D18F0
|
||||
#define CYTHON_FUTURE_DIVISION 1
|
||||
#include <stddef.h>
|
||||
#ifndef offsetof
|
||||
@@ -171,7 +171,7 @@ END: Cython Metadata */
|
||||
#ifndef CYTHON_USE_UNICODE_INTERNALS
|
||||
#define CYTHON_USE_UNICODE_INTERNALS 1
|
||||
#endif
|
||||
#if PY_VERSION_HEX < 0x030300F0 || PY_VERSION_HEX >= 0x030B00A2
|
||||
#if PY_VERSION_HEX < 0x030300F0
|
||||
#undef CYTHON_USE_UNICODE_WRITER
|
||||
#define CYTHON_USE_UNICODE_WRITER 0
|
||||
#elif !defined(CYTHON_USE_UNICODE_WRITER)
|
||||
@@ -190,7 +190,7 @@ END: Cython Metadata */
|
||||
#define CYTHON_FAST_THREAD_STATE 1
|
||||
#endif
|
||||
#ifndef CYTHON_FAST_PYCALL
|
||||
#define CYTHON_FAST_PYCALL (PY_VERSION_HEX < 0x030B00A1)
|
||||
#define CYTHON_FAST_PYCALL 1
|
||||
#endif
|
||||
#ifndef CYTHON_PEP489_MULTI_PHASE_INIT
|
||||
#define CYTHON_PEP489_MULTI_PHASE_INIT (PY_VERSION_HEX >= 0x03050000)
|
||||
@@ -209,9 +209,7 @@ END: Cython Metadata */
|
||||
#define CYTHON_FAST_PYCCALL (CYTHON_FAST_PYCALL && PY_VERSION_HEX >= 0x030600B1)
|
||||
#endif
|
||||
#if CYTHON_USE_PYLONG_INTERNALS
|
||||
#if PY_MAJOR_VERSION < 3
|
||||
#include "longintrepr.h"
|
||||
#endif
|
||||
#include "longintrepr.h"
|
||||
#undef SHIFT
|
||||
#undef BASE
|
||||
#undef MASK
|
||||
@@ -342,68 +340,9 @@ class __Pyx_FakeReference {
|
||||
#define __Pyx_DefaultClassType PyClass_Type
|
||||
#else
|
||||
#define __Pyx_BUILTIN_MODULE_NAME "builtins"
|
||||
#define __Pyx_DefaultClassType PyType_Type
|
||||
#if PY_VERSION_HEX >= 0x030B00A1
|
||||
static CYTHON_INLINE PyCodeObject* __Pyx_PyCode_New(int a, int k, int l, int s, int f,
|
||||
PyObject *code, PyObject *c, PyObject* n, PyObject *v,
|
||||
PyObject *fv, PyObject *cell, PyObject* fn,
|
||||
PyObject *name, int fline, PyObject *lnos) {
|
||||
PyObject *kwds=NULL, *argcount=NULL, *posonlyargcount=NULL, *kwonlyargcount=NULL;
|
||||
PyObject *nlocals=NULL, *stacksize=NULL, *flags=NULL, *replace=NULL, *call_result=NULL, *empty=NULL;
|
||||
const char *fn_cstr=NULL;
|
||||
const char *name_cstr=NULL;
|
||||
PyCodeObject* co=NULL;
|
||||
PyObject *type, *value, *traceback;
|
||||
PyErr_Fetch(&type, &value, &traceback);
|
||||
if (!(kwds=PyDict_New())) goto end;
|
||||
if (!(argcount=PyLong_FromLong(a))) goto end;
|
||||
if (PyDict_SetItemString(kwds, "co_argcount", argcount) != 0) goto end;
|
||||
if (!(posonlyargcount=PyLong_FromLong(0))) goto end;
|
||||
if (PyDict_SetItemString(kwds, "co_posonlyargcount", posonlyargcount) != 0) goto end;
|
||||
if (!(kwonlyargcount=PyLong_FromLong(k))) goto end;
|
||||
if (PyDict_SetItemString(kwds, "co_kwonlyargcount", kwonlyargcount) != 0) goto end;
|
||||
if (!(nlocals=PyLong_FromLong(l))) goto end;
|
||||
if (PyDict_SetItemString(kwds, "co_nlocals", nlocals) != 0) goto end;
|
||||
if (!(stacksize=PyLong_FromLong(s))) goto end;
|
||||
if (PyDict_SetItemString(kwds, "co_stacksize", stacksize) != 0) goto end;
|
||||
if (!(flags=PyLong_FromLong(f))) goto end;
|
||||
if (PyDict_SetItemString(kwds, "co_flags", flags) != 0) goto end;
|
||||
if (PyDict_SetItemString(kwds, "co_code", code) != 0) goto end;
|
||||
if (PyDict_SetItemString(kwds, "co_consts", c) != 0) goto end;
|
||||
if (PyDict_SetItemString(kwds, "co_names", n) != 0) goto end;
|
||||
if (PyDict_SetItemString(kwds, "co_varnames", v) != 0) goto end;
|
||||
if (PyDict_SetItemString(kwds, "co_freevars", fv) != 0) goto end;
|
||||
if (PyDict_SetItemString(kwds, "co_cellvars", cell) != 0) goto end;
|
||||
if (PyDict_SetItemString(kwds, "co_linetable", lnos) != 0) goto end;
|
||||
if (!(fn_cstr=PyUnicode_AsUTF8AndSize(fn, NULL))) goto end;
|
||||
if (!(name_cstr=PyUnicode_AsUTF8AndSize(name, NULL))) goto end;
|
||||
if (!(co = PyCode_NewEmpty(fn_cstr, name_cstr, fline))) goto end;
|
||||
if (!(replace = PyObject_GetAttrString((PyObject*)co, "replace"))) goto cleanup_code_too;
|
||||
if (!(empty = PyTuple_New(0))) goto cleanup_code_too; // unfortunately __pyx_empty_tuple isn't available here
|
||||
if (!(call_result = PyObject_Call(replace, empty, kwds))) goto cleanup_code_too;
|
||||
Py_XDECREF((PyObject*)co);
|
||||
co = (PyCodeObject*)call_result;
|
||||
call_result = NULL;
|
||||
if (0) {
|
||||
cleanup_code_too:
|
||||
Py_XDECREF((PyObject*)co);
|
||||
co = NULL;
|
||||
}
|
||||
end:
|
||||
Py_XDECREF(kwds);
|
||||
Py_XDECREF(argcount);
|
||||
Py_XDECREF(posonlyargcount);
|
||||
Py_XDECREF(kwonlyargcount);
|
||||
Py_XDECREF(nlocals);
|
||||
Py_XDECREF(stacksize);
|
||||
Py_XDECREF(replace);
|
||||
Py_XDECREF(call_result);
|
||||
Py_XDECREF(empty);
|
||||
if (type) {
|
||||
PyErr_Restore(type, value, traceback);
|
||||
}
|
||||
return co;
|
||||
}
|
||||
#if PY_VERSION_HEX >= 0x030800A4 && PY_VERSION_HEX < 0x030800B2
|
||||
#define __Pyx_PyCode_New(a, k, l, s, f, code, c, n, v, fv, cell, fn, name, fline, lnos)\
|
||||
PyCode_New(a, 0, k, l, s, f, code, c, n, v, fv, cell, fn, name, fline, lnos)
|
||||
#else
|
||||
#define __Pyx_PyCode_New(a, k, l, s, f, code, c, n, v, fv, cell, fn, name, fline, lnos)\
|
||||
PyCode_New(a, k, l, s, f, code, c, n, v, fv, cell, fn, name, fline, lnos)
|
||||
@@ -641,10 +580,10 @@ static CYTHON_INLINE void * PyThread_tss_get(Py_tss_t *key) {
|
||||
#if PY_VERSION_HEX < 0x030200A4
|
||||
typedef long Py_hash_t;
|
||||
#define __Pyx_PyInt_FromHash_t PyInt_FromLong
|
||||
#define __Pyx_PyInt_AsHash_t __Pyx_PyIndex_AsHash_t
|
||||
#define __Pyx_PyInt_AsHash_t PyInt_AsLong
|
||||
#else
|
||||
#define __Pyx_PyInt_FromHash_t PyInt_FromSsize_t
|
||||
#define __Pyx_PyInt_AsHash_t __Pyx_PyIndex_AsSsize_t
|
||||
#define __Pyx_PyInt_AsHash_t PyInt_AsSsize_t
|
||||
#endif
|
||||
#if PY_MAJOR_VERSION >= 3
|
||||
#define __Pyx_PyMethod_New(func, self, klass) ((self) ? ((void)(klass), PyMethod_New(func, self)) : __Pyx_NewRef(func))
|
||||
@@ -803,7 +742,6 @@ static CYTHON_INLINE PyObject* __Pyx_PyNumber_IntOrLong(PyObject* x);
|
||||
(likely(PyTuple_CheckExact(obj)) ? __Pyx_NewRef(obj) : PySequence_Tuple(obj))
|
||||
static CYTHON_INLINE Py_ssize_t __Pyx_PyIndex_AsSsize_t(PyObject*);
|
||||
static CYTHON_INLINE PyObject * __Pyx_PyInt_FromSize_t(size_t);
|
||||
static CYTHON_INLINE Py_hash_t __Pyx_PyIndex_AsHash_t(PyObject*);
|
||||
#if CYTHON_ASSUME_SAFE_MACROS
|
||||
#define __pyx_PyFloat_AsDouble(x) (PyFloat_CheckExact(x) ? PyFloat_AS_DOUBLE(x) : PyFloat_AsDouble(x))
|
||||
#else
|
||||
@@ -1864,7 +1802,7 @@ static int __Pyx_CLineForTraceback(CYTHON_NCP_UNUSED PyThreadState *tstate, int
|
||||
}
|
||||
if (!use_cline) {
|
||||
c_line = 0;
|
||||
(void) PyObject_SetAttr(__pyx_cython_runtime, __pyx_n_s_cline_in_traceback, Py_False);
|
||||
PyObject_SetAttr(__pyx_cython_runtime, __pyx_n_s_cline_in_traceback, Py_False);
|
||||
}
|
||||
else if (use_cline == Py_False || (use_cline != Py_True && PyObject_Not(use_cline) != 0)) {
|
||||
c_line = 0;
|
||||
@@ -1961,31 +1899,30 @@ static void __pyx_insert_code_object(int code_line, PyCodeObject* code_object) {
|
||||
static PyCodeObject* __Pyx_CreateCodeObjectForTraceback(
|
||||
const char *funcname, int c_line,
|
||||
int py_line, const char *filename) {
|
||||
PyCodeObject *py_code = NULL;
|
||||
PyObject *py_funcname = NULL;
|
||||
PyCodeObject *py_code = 0;
|
||||
PyObject *py_srcfile = 0;
|
||||
PyObject *py_funcname = 0;
|
||||
#if PY_MAJOR_VERSION < 3
|
||||
PyObject *py_srcfile = NULL;
|
||||
py_srcfile = PyString_FromString(filename);
|
||||
if (!py_srcfile) goto bad;
|
||||
#else
|
||||
py_srcfile = PyUnicode_FromString(filename);
|
||||
#endif
|
||||
if (!py_srcfile) goto bad;
|
||||
if (c_line) {
|
||||
#if PY_MAJOR_VERSION < 3
|
||||
py_funcname = PyString_FromFormat( "%s (%s:%d)", funcname, __pyx_cfilenm, c_line);
|
||||
if (!py_funcname) goto bad;
|
||||
#else
|
||||
py_funcname = PyUnicode_FromFormat( "%s (%s:%d)", funcname, __pyx_cfilenm, c_line);
|
||||
if (!py_funcname) goto bad;
|
||||
funcname = PyUnicode_AsUTF8(py_funcname);
|
||||
if (!funcname) goto bad;
|
||||
#endif
|
||||
}
|
||||
else {
|
||||
#if PY_MAJOR_VERSION < 3
|
||||
py_funcname = PyString_FromString(funcname);
|
||||
if (!py_funcname) goto bad;
|
||||
#else
|
||||
py_funcname = PyUnicode_FromString(funcname);
|
||||
#endif
|
||||
}
|
||||
#if PY_MAJOR_VERSION < 3
|
||||
if (!py_funcname) goto bad;
|
||||
py_code = __Pyx_PyCode_New(
|
||||
0,
|
||||
0,
|
||||
@@ -2004,16 +1941,11 @@ static PyCodeObject* __Pyx_CreateCodeObjectForTraceback(
|
||||
__pyx_empty_bytes /*PyObject *lnotab*/
|
||||
);
|
||||
Py_DECREF(py_srcfile);
|
||||
#else
|
||||
py_code = PyCode_NewEmpty(filename, funcname, py_line);
|
||||
#endif
|
||||
Py_XDECREF(py_funcname); // XDECREF since it's only set on Py3 if cline
|
||||
Py_DECREF(py_funcname);
|
||||
return py_code;
|
||||
bad:
|
||||
Py_XDECREF(py_funcname);
|
||||
#if PY_MAJOR_VERSION < 3
|
||||
Py_XDECREF(py_srcfile);
|
||||
#endif
|
||||
Py_XDECREF(py_funcname);
|
||||
return NULL;
|
||||
}
|
||||
static void __Pyx_AddTraceback(const char *funcname, int c_line,
|
||||
@@ -2861,23 +2793,6 @@ static CYTHON_INLINE Py_ssize_t __Pyx_PyIndex_AsSsize_t(PyObject* b) {
|
||||
Py_DECREF(x);
|
||||
return ival;
|
||||
}
|
||||
static CYTHON_INLINE Py_hash_t __Pyx_PyIndex_AsHash_t(PyObject* o) {
|
||||
if (sizeof(Py_hash_t) == sizeof(Py_ssize_t)) {
|
||||
return (Py_hash_t) __Pyx_PyIndex_AsSsize_t(o);
|
||||
#if PY_MAJOR_VERSION < 3
|
||||
} else if (likely(PyInt_CheckExact(o))) {
|
||||
return PyInt_AS_LONG(o);
|
||||
#endif
|
||||
} else {
|
||||
Py_ssize_t ival;
|
||||
PyObject *x;
|
||||
x = PyNumber_Index(o);
|
||||
if (!x) return -1;
|
||||
ival = PyInt_AsLong(x);
|
||||
Py_DECREF(x);
|
||||
return ival;
|
||||
}
|
||||
}
|
||||
static CYTHON_INLINE PyObject * __Pyx_PyBool_FromLong(long b) {
|
||||
return b ? __Pyx_NewRef(Py_True) : __Pyx_NewRef(Py_False);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user