"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "numpy/random/sfc64.c" between
numpy-1.17.1.tar.gz and numpy-1.17.2.tar.gz

About: NumPy is the fundamental package for scientific computing with Python.

sfc64.c  (numpy-1.17.1):sfc64.c  (numpy-1.17.2)
/* Generated by Cython 0.29.11 */ /* Generated by Cython 0.29.13 */
#define PY_SSIZE_T_CLEAN #define PY_SSIZE_T_CLEAN
#include "Python.h" #include "Python.h"
#ifndef Py_PYTHON_H #ifndef Py_PYTHON_H
#error Python headers needed to compile C extensions, please install develop ment version of Python. #error Python headers needed to compile C extensions, please install develop ment version of Python.
#elif PY_VERSION_HEX < 0x02060000 || (0x03000000 <= PY_VERSION_HEX && PY_VERSION _HEX < 0x03030000) #elif PY_VERSION_HEX < 0x02060000 || (0x03000000 <= PY_VERSION_HEX && PY_VERSION _HEX < 0x03030000)
#error Cython requires Python 2.6+ or Python 3.3+. #error Cython requires Python 2.6+ or Python 3.3+.
#else #else
#define CYTHON_ABI "0_29_11" #define CYTHON_ABI "0_29_13"
#define CYTHON_HEX_VERSION 0x001D0BF0 #define CYTHON_HEX_VERSION 0x001D0DF0
#define CYTHON_FUTURE_DIVISION 1 #define CYTHON_FUTURE_DIVISION 1
#include <stddef.h> #include <stddef.h>
#ifndef offsetof #ifndef offsetof
#define offsetof(type, member) ( (size_t) & ((type*)0) -> member ) #define offsetof(type, member) ( (size_t) & ((type*)0) -> member )
#endif #endif
#if !defined(WIN32) && !defined(MS_WINDOWS) #if !defined(WIN32) && !defined(MS_WINDOWS)
#ifndef __stdcall #ifndef __stdcall
#define __stdcall #define __stdcall
#endif #endif
#ifndef __cdecl #ifndef __cdecl
skipping to change at line 313 skipping to change at line 313
#endif #endif
#define __PYX_BUILD_PY_SSIZE_T "n" #define __PYX_BUILD_PY_SSIZE_T "n"
#define CYTHON_FORMAT_SSIZE_T "z" #define CYTHON_FORMAT_SSIZE_T "z"
#if PY_MAJOR_VERSION < 3 #if PY_MAJOR_VERSION < 3
#define __Pyx_BUILTIN_MODULE_NAME "__builtin__" #define __Pyx_BUILTIN_MODULE_NAME "__builtin__"
#define __Pyx_PyCode_New(a, k, l, s, f, code, c, n, v, fv, cell, fn, name, fli ne, lnos)\ #define __Pyx_PyCode_New(a, k, l, s, f, code, c, n, v, fv, cell, fn, name, fli ne, lnos)\
PyCode_New(a+k, l, s, f, code, c, n, v, fv, cell, fn, name, fline, lno s) PyCode_New(a+k, l, s, f, code, c, n, v, fv, cell, fn, name, fline, lno s)
#define __Pyx_DefaultClassType PyClass_Type #define __Pyx_DefaultClassType PyClass_Type
#else #else
#define __Pyx_BUILTIN_MODULE_NAME "builtins" #define __Pyx_BUILTIN_MODULE_NAME "builtins"
#if PY_VERSION_HEX < 0x030800A4 #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, fli ne, lnos)\ #define __Pyx_PyCode_New(a, k, l, s, f, code, c, n, v, fv, cell, fn, name, fli ne, lnos)\
PyCode_New(a, k, l, s, f, code, c, n, v, fv, cell, fn, name, fline, ln PyCode_New(a, 0, k, l, s, f, code, c, n, v, fv, cell, fn, name, fline,
os) lnos)
#elif PY_VERSION_HEX >= 0x030800B2
#define __Pyx_PyCode_New(a, p, k, l, s, f, code, c, n, v, fv, cell, fn, name,
fline, lnos)\
PyCode_NewWithPosOnlyArgs(a, p, k, l, s, f, code, c, n, v, fv, cell, f
n, name, fline, lnos)
#else #else
#define __Pyx_PyCode_New(a, k, l, s, f, code, c, n, v, fv, cell, fn, name, fli ne, lnos)\ #define __Pyx_PyCode_New(a, k, l, s, f, code, c, n, v, fv, cell, fn, name, fli ne, lnos)\
PyCode_New(a, 0, 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, ln os)
#endif #endif
#define __Pyx_DefaultClassType PyType_Type #define __Pyx_DefaultClassType PyType_Type
#endif #endif
#ifndef Py_TPFLAGS_CHECKTYPES #ifndef Py_TPFLAGS_CHECKTYPES
#define Py_TPFLAGS_CHECKTYPES 0 #define Py_TPFLAGS_CHECKTYPES 0
#endif #endif
#ifndef Py_TPFLAGS_HAVE_INDEX #ifndef Py_TPFLAGS_HAVE_INDEX
#define Py_TPFLAGS_HAVE_INDEX 0 #define Py_TPFLAGS_HAVE_INDEX 0
#endif #endif
#ifndef Py_TPFLAGS_HAVE_NEWBUFFER #ifndef Py_TPFLAGS_HAVE_NEWBUFFER
skipping to change at line 1454 skipping to change at line 1451
/* RaiseArgTupleInvalid.proto */ /* RaiseArgTupleInvalid.proto */
static void __Pyx_RaiseArgtupleInvalid(const char* func_name, int exact, static void __Pyx_RaiseArgtupleInvalid(const char* func_name, int exact,
Py_ssize_t num_min, Py_ssize_t num_max, Py_ssize_t num_found); Py_ssize_t num_min, Py_ssize_t num_max, Py_ssize_t num_found);
/* PyFunctionFastCall.proto */ /* PyFunctionFastCall.proto */
#if CYTHON_FAST_PYCALL #if CYTHON_FAST_PYCALL
#define __Pyx_PyFunction_FastCall(func, args, nargs)\ #define __Pyx_PyFunction_FastCall(func, args, nargs)\
__Pyx_PyFunction_FastCallDict((func), (args), (nargs), NULL) __Pyx_PyFunction_FastCallDict((func), (args), (nargs), NULL)
#if 1 || PY_VERSION_HEX < 0x030600B1 #if 1 || PY_VERSION_HEX < 0x030600B1
static PyObject *__Pyx_PyFunction_FastCallDict(PyObject *func, PyObject **args, int nargs, PyObject *kwargs); static PyObject *__Pyx_PyFunction_FastCallDict(PyObject *func, PyObject **args, Py_ssize_t nargs, PyObject *kwargs);
#else #else
#define __Pyx_PyFunction_FastCallDict(func, args, nargs, kwargs) _PyFunction_Fas tCallDict(func, args, nargs, kwargs) #define __Pyx_PyFunction_FastCallDict(func, args, nargs, kwargs) _PyFunction_Fas tCallDict(func, args, nargs, kwargs)
#endif #endif
#define __Pyx_BUILD_ASSERT_EXPR(cond)\ #define __Pyx_BUILD_ASSERT_EXPR(cond)\
(sizeof(char [1 - 2*!(cond)]) - 1) (sizeof(char [1 - 2*!(cond)]) - 1)
#ifndef Py_MEMBER_SIZE #ifndef Py_MEMBER_SIZE
#define Py_MEMBER_SIZE(type, member) sizeof(((type *)0)->member) #define Py_MEMBER_SIZE(type, member) sizeof(((type *)0)->member)
#endif #endif
static size_t __pyx_pyframe_localsplus_offset = 0; static size_t __pyx_pyframe_localsplus_offset = 0;
#include "frameobject.h" #include "frameobject.h"
skipping to change at line 6149 skipping to change at line 6146
} }
#if PY_MAJOR_VERSION >= 3 #if PY_MAJOR_VERSION >= 3
{ {
PyObject *modules = PyImport_GetModuleDict(); if (unlikely(!modules)) __PYX_ ERR(0, 1, __pyx_L1_error) PyObject *modules = PyImport_GetModuleDict(); if (unlikely(!modules)) __PYX_ ERR(0, 1, __pyx_L1_error)
if (!PyDict_GetItemString(modules, "numpy.random.sfc64")) { if (!PyDict_GetItemString(modules, "numpy.random.sfc64")) {
if (unlikely(PyDict_SetItemString(modules, "numpy.random.sfc64", __pyx_m) < 0)) __PYX_ERR(0, 1, __pyx_L1_error) if (unlikely(PyDict_SetItemString(modules, "numpy.random.sfc64", __pyx_m) < 0)) __PYX_ERR(0, 1, __pyx_L1_error)
} }
} }
#endif #endif
/*--- Builtin init code ---*/ /*--- Builtin init code ---*/
if (__Pyx_InitCachedBuiltins() < 0) __PYX_ERR(0, 1, __pyx_L1_error) if (__Pyx_InitCachedBuiltins() < 0) goto __pyx_L1_error;
/*--- Constants init code ---*/ /*--- Constants init code ---*/
if (__Pyx_InitCachedConstants() < 0) __PYX_ERR(0, 1, __pyx_L1_error) if (__Pyx_InitCachedConstants() < 0) goto __pyx_L1_error;
/*--- Global type/function init code ---*/ /*--- Global type/function init code ---*/
(void)__Pyx_modinit_global_init_code(); (void)__Pyx_modinit_global_init_code();
(void)__Pyx_modinit_variable_export_code(); (void)__Pyx_modinit_variable_export_code();
(void)__Pyx_modinit_function_export_code(); (void)__Pyx_modinit_function_export_code();
if (unlikely(__Pyx_modinit_type_init_code() != 0)) goto __pyx_L1_error; if (unlikely(__Pyx_modinit_type_init_code() != 0)) goto __pyx_L1_error;
if (unlikely(__Pyx_modinit_type_import_code() != 0)) goto __pyx_L1_error; if (unlikely(__Pyx_modinit_type_import_code() != 0)) goto __pyx_L1_error;
if (unlikely(__Pyx_modinit_variable_import_code() != 0)) goto __pyx_L1_error; if (unlikely(__Pyx_modinit_variable_import_code() != 0)) goto __pyx_L1_error;
(void)__Pyx_modinit_function_import_code(); (void)__Pyx_modinit_function_import_code();
/*--- Execution code ---*/ /*--- Execution code ---*/
#if defined(__Pyx_Generator_USED) || defined(__Pyx_Coroutine_USED) #if defined(__Pyx_Generator_USED) || defined(__Pyx_Coroutine_USED)
skipping to change at line 6451 skipping to change at line 6448
Py_INCREF(*args); Py_INCREF(*args);
fastlocals[i] = *args++; fastlocals[i] = *args++;
} }
result = PyEval_EvalFrameEx(f,0); result = PyEval_EvalFrameEx(f,0);
++tstate->recursion_depth; ++tstate->recursion_depth;
Py_DECREF(f); Py_DECREF(f);
--tstate->recursion_depth; --tstate->recursion_depth;
return result; return result;
} }
#if 1 || PY_VERSION_HEX < 0x030600B1 #if 1 || PY_VERSION_HEX < 0x030600B1
static PyObject *__Pyx_PyFunction_FastCallDict(PyObject *func, PyObject **args, int nargs, PyObject *kwargs) { static PyObject *__Pyx_PyFunction_FastCallDict(PyObject *func, PyObject **args, Py_ssize_t nargs, PyObject *kwargs) {
PyCodeObject *co = (PyCodeObject *)PyFunction_GET_CODE(func); PyCodeObject *co = (PyCodeObject *)PyFunction_GET_CODE(func);
PyObject *globals = PyFunction_GET_GLOBALS(func); PyObject *globals = PyFunction_GET_GLOBALS(func);
PyObject *argdefs = PyFunction_GET_DEFAULTS(func); PyObject *argdefs = PyFunction_GET_DEFAULTS(func);
PyObject *closure; PyObject *closure;
#if PY_MAJOR_VERSION >= 3 #if PY_MAJOR_VERSION >= 3
PyObject *kwdefs; PyObject *kwdefs;
#endif #endif
PyObject *kwtuple, **k; PyObject *kwtuple, **k;
PyObject **d; PyObject **d;
Py_ssize_t nd; Py_ssize_t nd;
skipping to change at line 6522 skipping to change at line 6519
if (argdefs != NULL) { if (argdefs != NULL) {
d = &PyTuple_GET_ITEM(argdefs, 0); d = &PyTuple_GET_ITEM(argdefs, 0);
nd = Py_SIZE(argdefs); nd = Py_SIZE(argdefs);
} }
else { else {
d = NULL; d = NULL;
nd = 0; nd = 0;
} }
#if PY_MAJOR_VERSION >= 3 #if PY_MAJOR_VERSION >= 3
result = PyEval_EvalCodeEx((PyObject*)co, globals, (PyObject *)NULL, result = PyEval_EvalCodeEx((PyObject*)co, globals, (PyObject *)NULL,
args, nargs, args, (int)nargs,
k, (int)nk, k, (int)nk,
d, (int)nd, kwdefs, closure); d, (int)nd, kwdefs, closure);
#else #else
result = PyEval_EvalCodeEx(co, globals, (PyObject *)NULL, result = PyEval_EvalCodeEx(co, globals, (PyObject *)NULL,
args, nargs, args, (int)nargs,
k, (int)nk, k, (int)nk,
d, (int)nd, closure); d, (int)nd, closure);
#endif #endif
Py_XDECREF(kwtuple); Py_XDECREF(kwtuple);
done: done:
Py_LeaveRecursiveCall(); Py_LeaveRecursiveCall();
return result; return result;
} }
#endif #endif
#endif #endif
 End of changes. 11 change blocks. 
18 lines changed or deleted 13 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)