Login
[x]
Log in using an account from:
Fedora Account System
Red Hat Associate
Red Hat Customer
Or login using a Red Hat Bugzilla account
Forgot Password
Login:
Hide Forgot
Create an Account
Red Hat Bugzilla – Attachment 705347 Details for
Bug 918005
Cannot build numpy1.6.1
[?]
New
Simple Search
Advanced Search
My Links
Browse
Requests
Reports
Current State
Search
Tabular reports
Graphical reports
Duplicates
Other Reports
User Changes
Plotly Reports
Bug Status
Bug Severity
Non-Defaults
|
Product Dashboard
Help
Page Help!
Bug Writing Guidelines
What's new
Browser Support Policy
5.0.4.rh83 Release notes
FAQ
Guides index
User guide
Web Services
Contact
Legal
This site requires JavaScript to be enabled to function correctly, please enable it.
ccPoS7wS.out
ccPoS7wS.out (text/plain), 5.14 MB, created by
Wenting Gu
on 2013-03-05 09:45:57 UTC
(
hide
)
Description:
ccPoS7wS.out
Filename:
MIME Type:
Creator:
Wenting Gu
Created:
2013-03-05 09:45:57 UTC
Size:
5.14 MB
patch
obsolete
>// /usr/libexec/gcc/x86_64-redhat-linux/3.4.5/cc1 -quiet -I. -IInclude -I./Include -I/home/work/.jumbo/include -Inumpy/core/include -Ibuild/src.linux-x86_64-2.7/numpy/core/include/numpy -Inumpy/core/src/private -Inumpy/core/src -Inumpy/core -Inumpy/core/src/npymath -Inumpy/core/src/multiarray -Inumpy/core/src/umath -Inumpy/core/include -I/home/work/.jumbo/include/python2.7 -Ibuild/src.linux-x86_64-2.7/numpy/core/src/multiarray -Ibuild/src.linux-x86_64-2.7/numpy/core/src/umath -D_REENTRANT -DNDEBUG numpy/core/src/multiarray/multiarraymodule_onefile.c -quiet -dumpbase multiarraymodule_onefile.c -mtune=k8 -auxbase-strip build/temp.linux-x86_64-2.7/numpy/core/src/multiarray/multiarraymodule_onefile.o -g -O2 -O2 -fno-strict-aliasing -fPIC -o - -frandom-seed=0 ># 1 "numpy/core/src/multiarray/multiarraymodule_onefile.c" ># 1 "/home/work/numpy-1.6.1//" ># 1 "<built-in>" ># 1 "<command line>" ># 1 "numpy/core/src/multiarray/multiarraymodule_onefile.c" > > > > > > > ># 1 "numpy/core/src/multiarray/common.c" 1 > ># 1 "/home/work/.jumbo/include/python2.7/Python.h" 1 > > > > > > ># 1 "/home/work/.jumbo/include/python2.7/patchlevel.h" 1 ># 8 "/home/work/.jumbo/include/python2.7/Python.h" 2 ># 1 "/home/work/.jumbo/include/python2.7/pyconfig.h" 1 ># 9 "/home/work/.jumbo/include/python2.7/Python.h" 2 ># 1 "/home/work/.jumbo/include/python2.7/pymacconfig.h" 1 ># 10 "/home/work/.jumbo/include/python2.7/Python.h" 2 ># 19 "/home/work/.jumbo/include/python2.7/Python.h" ># 1 "/usr/lib/gcc/x86_64-redhat-linux/3.4.5/include/limits.h" 1 3 4 ># 11 "/usr/lib/gcc/x86_64-redhat-linux/3.4.5/include/limits.h" 3 4 ># 1 "/usr/lib/gcc/x86_64-redhat-linux/3.4.5/include/syslimits.h" 1 3 4 > > > > > > ># 1 "/usr/lib/gcc/x86_64-redhat-linux/3.4.5/include/limits.h" 1 3 4 ># 122 "/usr/lib/gcc/x86_64-redhat-linux/3.4.5/include/limits.h" 3 4 ># 1 "/usr/include/limits.h" 1 3 4 ># 26 "/usr/include/limits.h" 3 4 ># 1 "/usr/include/features.h" 1 3 4 ># 319 "/usr/include/features.h" 3 4 ># 1 "/usr/include/sys/cdefs.h" 1 3 4 ># 320 "/usr/include/features.h" 2 3 4 ># 342 "/usr/include/features.h" 3 4 ># 1 "/usr/include/gnu/stubs.h" 1 3 4 ># 343 "/usr/include/features.h" 2 3 4 ># 27 "/usr/include/limits.h" 2 3 4 ># 144 "/usr/include/limits.h" 3 4 ># 1 "/usr/include/bits/posix1_lim.h" 1 3 4 ># 153 "/usr/include/bits/posix1_lim.h" 3 4 ># 1 "/usr/include/bits/local_lim.h" 1 3 4 ># 36 "/usr/include/bits/local_lim.h" 3 4 ># 1 "/usr/include/linux/limits.h" 1 3 4 ># 37 "/usr/include/bits/local_lim.h" 2 3 4 ># 154 "/usr/include/bits/posix1_lim.h" 2 3 4 ># 145 "/usr/include/limits.h" 2 3 4 > > > ># 1 "/usr/include/bits/posix2_lim.h" 1 3 4 ># 149 "/usr/include/limits.h" 2 3 4 > > > ># 1 "/usr/include/bits/xopen_lim.h" 1 3 4 ># 34 "/usr/include/bits/xopen_lim.h" 3 4 ># 1 "/usr/include/bits/stdio_lim.h" 1 3 4 ># 35 "/usr/include/bits/xopen_lim.h" 2 3 4 ># 153 "/usr/include/limits.h" 2 3 4 ># 123 "/usr/lib/gcc/x86_64-redhat-linux/3.4.5/include/limits.h" 2 3 4 ># 8 "/usr/lib/gcc/x86_64-redhat-linux/3.4.5/include/syslimits.h" 2 3 4 ># 12 "/usr/lib/gcc/x86_64-redhat-linux/3.4.5/include/limits.h" 2 3 4 ># 20 "/home/work/.jumbo/include/python2.7/Python.h" 2 ># 33 "/home/work/.jumbo/include/python2.7/Python.h" ># 1 "/usr/include/stdio.h" 1 3 4 ># 30 "/usr/include/stdio.h" 3 4 > > > > ># 1 "/usr/lib/gcc/x86_64-redhat-linux/3.4.5/include/stddef.h" 1 3 4 ># 213 "/usr/lib/gcc/x86_64-redhat-linux/3.4.5/include/stddef.h" 3 4 >typedef long unsigned int size_t; ># 35 "/usr/include/stdio.h" 2 3 4 > ># 1 "/usr/include/bits/types.h" 1 3 4 ># 28 "/usr/include/bits/types.h" 3 4 ># 1 "/usr/include/bits/wordsize.h" 1 3 4 ># 29 "/usr/include/bits/types.h" 2 3 4 > > ># 1 "/usr/lib/gcc/x86_64-redhat-linux/3.4.5/include/stddef.h" 1 3 4 ># 32 "/usr/include/bits/types.h" 2 3 4 > > >typedef unsigned char __u_char; >typedef unsigned short int __u_short; >typedef unsigned int __u_int; >typedef unsigned long int __u_long; > > >typedef signed char __int8_t; >typedef unsigned char __uint8_t; >typedef signed short int __int16_t; >typedef unsigned short int __uint16_t; >typedef signed int __int32_t; >typedef unsigned int __uint32_t; > >typedef signed long int __int64_t; >typedef unsigned long int __uint64_t; > > > > > > > >typedef long int __quad_t; >typedef unsigned long int __u_quad_t; ># 129 "/usr/include/bits/types.h" 3 4 ># 1 "/usr/include/bits/typesizes.h" 1 3 4 ># 130 "/usr/include/bits/types.h" 2 3 4 > > > > > > >__extension__ typedef unsigned long int __dev_t; >__extension__ typedef unsigned int __uid_t; >__extension__ typedef unsigned int __gid_t; >__extension__ typedef unsigned long int __ino_t; >__extension__ typedef unsigned long int __ino64_t; >__extension__ typedef unsigned int __mode_t; >__extension__ typedef unsigned long int __nlink_t; >__extension__ typedef long int __off_t; >__extension__ typedef long int __off64_t; >__extension__ typedef int __pid_t; >__extension__ typedef struct { int __val[2]; } __fsid_t; >__extension__ typedef long int __clock_t; >__extension__ typedef unsigned long int __rlim_t; >__extension__ typedef unsigned long int __rlim64_t; >__extension__ typedef unsigned int __id_t; >__extension__ typedef long int __time_t; >__extension__ typedef unsigned int __useconds_t; >__extension__ typedef long int __suseconds_t; > >__extension__ typedef int __daddr_t; >__extension__ typedef long int __swblk_t; >__extension__ typedef int __key_t; > > >__extension__ typedef int __clockid_t; > > >__extension__ typedef int __timer_t; > > >__extension__ typedef long int __blksize_t; > > > > >__extension__ typedef long int __blkcnt_t; >__extension__ typedef long int __blkcnt64_t; > > >__extension__ typedef unsigned long int __fsblkcnt_t; >__extension__ typedef unsigned long int __fsblkcnt64_t; > > >__extension__ typedef unsigned long int __fsfilcnt_t; >__extension__ typedef unsigned long int __fsfilcnt64_t; > >__extension__ typedef long int __ssize_t; > > > >typedef __off64_t __loff_t; >typedef __quad_t *__qaddr_t; >typedef char *__caddr_t; > > >__extension__ typedef long int __intptr_t; > > >__extension__ typedef unsigned int __socklen_t; ># 37 "/usr/include/stdio.h" 2 3 4 > > > > > > > > > >typedef struct _IO_FILE FILE; > > > > > ># 62 "/usr/include/stdio.h" 3 4 >typedef struct _IO_FILE __FILE; ># 72 "/usr/include/stdio.h" 3 4 ># 1 "/usr/include/libio.h" 1 3 4 ># 32 "/usr/include/libio.h" 3 4 ># 1 "/usr/include/_G_config.h" 1 3 4 ># 14 "/usr/include/_G_config.h" 3 4 ># 1 "/usr/lib/gcc/x86_64-redhat-linux/3.4.5/include/stddef.h" 1 3 4 ># 325 "/usr/lib/gcc/x86_64-redhat-linux/3.4.5/include/stddef.h" 3 4 >typedef int wchar_t; ># 354 "/usr/lib/gcc/x86_64-redhat-linux/3.4.5/include/stddef.h" 3 4 >typedef unsigned int wint_t; ># 15 "/usr/include/_G_config.h" 2 3 4 ># 24 "/usr/include/_G_config.h" 3 4 ># 1 "/usr/include/wchar.h" 1 3 4 ># 48 "/usr/include/wchar.h" 3 4 ># 1 "/usr/lib/gcc/x86_64-redhat-linux/3.4.5/include/stddef.h" 1 3 4 ># 49 "/usr/include/wchar.h" 2 3 4 > ># 1 "/usr/include/bits/wchar.h" 1 3 4 ># 51 "/usr/include/wchar.h" 2 3 4 ># 76 "/usr/include/wchar.h" 3 4 >typedef struct >{ > int __count; > union > { > wint_t __wch; > char __wchb[4]; > } __value; >} __mbstate_t; ># 25 "/usr/include/_G_config.h" 2 3 4 > >typedef struct >{ > __off_t __pos; > __mbstate_t __state; >} _G_fpos_t; >typedef struct >{ > __off64_t __pos; > __mbstate_t __state; >} _G_fpos64_t; ># 44 "/usr/include/_G_config.h" 3 4 ># 1 "/usr/include/gconv.h" 1 3 4 ># 28 "/usr/include/gconv.h" 3 4 ># 1 "/usr/include/wchar.h" 1 3 4 ># 48 "/usr/include/wchar.h" 3 4 ># 1 "/usr/lib/gcc/x86_64-redhat-linux/3.4.5/include/stddef.h" 1 3 4 ># 49 "/usr/include/wchar.h" 2 3 4 ># 29 "/usr/include/gconv.h" 2 3 4 > > ># 1 "/usr/lib/gcc/x86_64-redhat-linux/3.4.5/include/stddef.h" 1 3 4 ># 32 "/usr/include/gconv.h" 2 3 4 > > > > > >enum >{ > __GCONV_OK = 0, > __GCONV_NOCONV, > __GCONV_NODB, > __GCONV_NOMEM, > > __GCONV_EMPTY_INPUT, > __GCONV_FULL_OUTPUT, > __GCONV_ILLEGAL_INPUT, > __GCONV_INCOMPLETE_INPUT, > > __GCONV_ILLEGAL_DESCRIPTOR, > __GCONV_INTERNAL_ERROR >}; > > > >enum >{ > __GCONV_IS_LAST = 0x0001, > __GCONV_IGNORE_ERRORS = 0x0002 >}; > > > >struct __gconv_step; >struct __gconv_step_data; >struct __gconv_loaded_object; >struct __gconv_trans_data; > > > >typedef int (*__gconv_fct) (struct __gconv_step *, struct __gconv_step_data *, > __const unsigned char **, __const unsigned char *, > unsigned char **, size_t *, int, int); > > >typedef wint_t (*__gconv_btowc_fct) (struct __gconv_step *, unsigned char); > > >typedef int (*__gconv_init_fct) (struct __gconv_step *); >typedef void (*__gconv_end_fct) (struct __gconv_step *); > > > >typedef int (*__gconv_trans_fct) (struct __gconv_step *, > struct __gconv_step_data *, void *, > __const unsigned char *, > __const unsigned char **, > __const unsigned char *, unsigned char **, > size_t *); > > >typedef int (*__gconv_trans_context_fct) (void *, __const unsigned char *, > __const unsigned char *, > unsigned char *, unsigned char *); > > >typedef int (*__gconv_trans_query_fct) (__const char *, __const char ***, > size_t *); > > >typedef int (*__gconv_trans_init_fct) (void **, const char *); >typedef void (*__gconv_trans_end_fct) (void *); > >struct __gconv_trans_data >{ > > __gconv_trans_fct __trans_fct; > __gconv_trans_context_fct __trans_context_fct; > __gconv_trans_end_fct __trans_end_fct; > void *__data; > struct __gconv_trans_data *__next; >}; > > > >struct __gconv_step >{ > struct __gconv_loaded_object *__shlib_handle; > __const char *__modname; > > int __counter; > > char *__from_name; > char *__to_name; > > __gconv_fct __fct; > __gconv_btowc_fct __btowc_fct; > __gconv_init_fct __init_fct; > __gconv_end_fct __end_fct; > > > > int __min_needed_from; > int __max_needed_from; > int __min_needed_to; > int __max_needed_to; > > > int __stateful; > > void *__data; >}; > > > >struct __gconv_step_data >{ > unsigned char *__outbuf; > unsigned char *__outbufend; > > > > int __flags; > > > > int __invocation_counter; > > > > int __internal_use; > > __mbstate_t *__statep; > __mbstate_t __state; > > > > struct __gconv_trans_data *__trans; >}; > > > >typedef struct __gconv_info >{ > size_t __nsteps; > struct __gconv_step *__steps; > __extension__ struct __gconv_step_data __data []; >} *__gconv_t; ># 45 "/usr/include/_G_config.h" 2 3 4 >typedef union >{ > struct __gconv_info __cd; > struct > { > struct __gconv_info __cd; > struct __gconv_step_data __data; > } __combined; >} _G_iconv_t; > >typedef int _G_int16_t __attribute__ ((__mode__ (__HI__))); >typedef int _G_int32_t __attribute__ ((__mode__ (__SI__))); >typedef unsigned int _G_uint16_t __attribute__ ((__mode__ (__HI__))); >typedef unsigned int _G_uint32_t __attribute__ ((__mode__ (__SI__))); ># 33 "/usr/include/libio.h" 2 3 4 ># 53 "/usr/include/libio.h" 3 4 ># 1 "/usr/lib/gcc/x86_64-redhat-linux/3.4.5/include/stdarg.h" 1 3 4 ># 43 "/usr/lib/gcc/x86_64-redhat-linux/3.4.5/include/stdarg.h" 3 4 >typedef __builtin_va_list __gnuc_va_list; ># 54 "/usr/include/libio.h" 2 3 4 ># 166 "/usr/include/libio.h" 3 4 >struct _IO_jump_t; struct _IO_FILE; ># 176 "/usr/include/libio.h" 3 4 >typedef void _IO_lock_t; > > > > > >struct _IO_marker { > struct _IO_marker *_next; > struct _IO_FILE *_sbuf; > > > > int _pos; ># 199 "/usr/include/libio.h" 3 4 >}; > > >enum __codecvt_result >{ > __codecvt_ok, > __codecvt_partial, > __codecvt_error, > __codecvt_noconv >}; ># 267 "/usr/include/libio.h" 3 4 >struct _IO_FILE { > int _flags; > > > > > char* _IO_read_ptr; > char* _IO_read_end; > char* _IO_read_base; > char* _IO_write_base; > char* _IO_write_ptr; > char* _IO_write_end; > char* _IO_buf_base; > char* _IO_buf_end; > > char *_IO_save_base; > char *_IO_backup_base; > char *_IO_save_end; > > struct _IO_marker *_markers; > > struct _IO_FILE *_chain; > > int _fileno; > > > > int _flags2; > > __off_t _old_offset; > > > > unsigned short _cur_column; > signed char _vtable_offset; > char _shortbuf[1]; > > > > _IO_lock_t *_lock; ># 315 "/usr/include/libio.h" 3 4 > __off64_t _offset; > > > > > > void *__pad1; > void *__pad2; > > int _mode; > > char _unused2[15 * sizeof (int) - 2 * sizeof (void *)]; > >}; > > >typedef struct _IO_FILE _IO_FILE; > > >struct _IO_FILE_plus; > >extern struct _IO_FILE_plus _IO_2_1_stdin_; >extern struct _IO_FILE_plus _IO_2_1_stdout_; >extern struct _IO_FILE_plus _IO_2_1_stderr_; ># 354 "/usr/include/libio.h" 3 4 >typedef __ssize_t __io_read_fn (void *__cookie, char *__buf, size_t __nbytes); > > > > > > > >typedef __ssize_t __io_write_fn (void *__cookie, __const char *__buf, > size_t __n); > > > > > > > >typedef int __io_seek_fn (void *__cookie, __off64_t *__pos, int __w); > > >typedef int __io_close_fn (void *__cookie); > > > > >typedef __io_read_fn cookie_read_function_t; >typedef __io_write_fn cookie_write_function_t; >typedef __io_seek_fn cookie_seek_function_t; >typedef __io_close_fn cookie_close_function_t; > > >typedef struct >{ > __io_read_fn *read; > __io_write_fn *write; > __io_seek_fn *seek; > __io_close_fn *close; >} _IO_cookie_io_functions_t; >typedef _IO_cookie_io_functions_t cookie_io_functions_t; > >struct _IO_cookie_file; > > >extern void _IO_cookie_init (struct _IO_cookie_file *__cfile, int __read_write, > void *__cookie, _IO_cookie_io_functions_t __fns); > > > > > > > >extern int __underflow (_IO_FILE *) __attribute__ ((__nothrow__)); >extern int __uflow (_IO_FILE *) __attribute__ ((__nothrow__)); >extern int __overflow (_IO_FILE *, int) __attribute__ ((__nothrow__)); >extern wint_t __wunderflow (_IO_FILE *) __attribute__ ((__nothrow__)); >extern wint_t __wuflow (_IO_FILE *) __attribute__ ((__nothrow__)); >extern wint_t __woverflow (_IO_FILE *, wint_t) __attribute__ ((__nothrow__)); ># 444 "/usr/include/libio.h" 3 4 >extern int _IO_getc (_IO_FILE *__fp) __attribute__ ((__nothrow__)); >extern int _IO_putc (int __c, _IO_FILE *__fp) __attribute__ ((__nothrow__)); >extern int _IO_feof (_IO_FILE *__fp) __attribute__ ((__nothrow__)); >extern int _IO_ferror (_IO_FILE *__fp) __attribute__ ((__nothrow__)); > >extern int _IO_peekc_locked (_IO_FILE *__fp) __attribute__ ((__nothrow__)); > > > > > >extern void _IO_flockfile (_IO_FILE *) __attribute__ ((__nothrow__)); >extern void _IO_funlockfile (_IO_FILE *) __attribute__ ((__nothrow__)); >extern int _IO_ftrylockfile (_IO_FILE *) __attribute__ ((__nothrow__)); ># 474 "/usr/include/libio.h" 3 4 >extern int _IO_vfscanf (_IO_FILE * __restrict, const char * __restrict, > __gnuc_va_list, int *__restrict) __attribute__ ((__nothrow__)); >extern int _IO_vfprintf (_IO_FILE *__restrict, const char *__restrict, > __gnuc_va_list) __attribute__ ((__nothrow__)); >extern __ssize_t _IO_padn (_IO_FILE *, int, __ssize_t) __attribute__ ((__nothrow__)); >extern size_t _IO_sgetn (_IO_FILE *, void *, size_t) __attribute__ ((__nothrow__)); > >extern __off64_t _IO_seekoff (_IO_FILE *, __off64_t, int, int) __attribute__ ((__nothrow__)); >extern __off64_t _IO_seekpos (_IO_FILE *, __off64_t, int) __attribute__ ((__nothrow__)); > >extern void _IO_free_backup_area (_IO_FILE *) __attribute__ ((__nothrow__)); ># 73 "/usr/include/stdio.h" 2 3 4 > > > > >typedef __gnuc_va_list va_list; ># 86 "/usr/include/stdio.h" 3 4 > > > > >typedef _G_fpos64_t fpos_t; > > > >typedef _G_fpos64_t fpos64_t; ># 138 "/usr/include/stdio.h" 3 4 ># 1 "/usr/include/bits/stdio_lim.h" 1 3 4 ># 139 "/usr/include/stdio.h" 2 3 4 > > > >extern struct _IO_FILE *stdin; >extern struct _IO_FILE *stdout; >extern struct _IO_FILE *stderr; > > > > > > > > > >extern int remove (__const char *__filename) __attribute__ ((__nothrow__)); > >extern int rename (__const char *__old, __const char *__new) __attribute__ ((__nothrow__)); > > > > ># 169 "/usr/include/stdio.h" 3 4 >extern FILE *tmpfile (void) __asm__ ("" "tmpfile64"); > > > > > > >extern FILE *tmpfile64 (void); > > > >extern char *tmpnam (char *__s) __attribute__ ((__nothrow__)); > > > > > >extern char *tmpnam_r (char *__s) __attribute__ ((__nothrow__)); ># 198 "/usr/include/stdio.h" 3 4 >extern char *tempnam (__const char *__dir, __const char *__pfx) > __attribute__ ((__nothrow__)) __attribute__ ((__malloc__)); > > > > > > > > >extern int fclose (FILE *__stream); > > > > >extern int fflush (FILE *__stream); > ># 223 "/usr/include/stdio.h" 3 4 >extern int fflush_unlocked (FILE *__stream); ># 233 "/usr/include/stdio.h" 3 4 >extern int fcloseall (void); > > > > ># 254 "/usr/include/stdio.h" 3 4 >extern FILE *fopen (__const char *__restrict __filename, __const char *__restrict __modes) __asm__ ("" "fopen64"); > >extern FILE *freopen (__const char *__restrict __filename, __const char *__restrict __modes, FILE *__restrict __stream) __asm__ ("" "freopen64"); > > > > > > > > > >extern FILE *fopen64 (__const char *__restrict __filename, > __const char *__restrict __modes); >extern FILE *freopen64 (__const char *__restrict __filename, > __const char *__restrict __modes, > FILE *__restrict __stream); > > > > >extern FILE *fdopen (int __fd, __const char *__modes) __attribute__ ((__nothrow__)); > > > > > >extern FILE *fopencookie (void *__restrict __magic_cookie, > __const char *__restrict __modes, > _IO_cookie_io_functions_t __io_funcs) __attribute__ ((__nothrow__)); > > >extern FILE *fmemopen (void *__s, size_t __len, __const char *__modes) __attribute__ ((__nothrow__)); > > > > >extern FILE *open_memstream (char **__restrict __bufloc, > size_t *__restrict __sizeloc) __attribute__ ((__nothrow__)); > > > > > > >extern void setbuf (FILE *__restrict __stream, char *__restrict __buf) __attribute__ ((__nothrow__)); > > > >extern int setvbuf (FILE *__restrict __stream, char *__restrict __buf, > int __modes, size_t __n) __attribute__ ((__nothrow__)); > > > > > >extern void setbuffer (FILE *__restrict __stream, char *__restrict __buf, > size_t __size) __attribute__ ((__nothrow__)); > > >extern void setlinebuf (FILE *__stream) __attribute__ ((__nothrow__)); > > > > > > > > >extern int fprintf (FILE *__restrict __stream, > __const char *__restrict __format, ...); > > > > >extern int printf (__const char *__restrict __format, ...); > >extern int sprintf (char *__restrict __s, > __const char *__restrict __format, ...) __attribute__ ((__nothrow__)); > > > > > >extern int vfprintf (FILE *__restrict __s, __const char *__restrict __format, > __gnuc_va_list __arg); > > > > >extern int vprintf (__const char *__restrict __format, __gnuc_va_list __arg); > >extern int vsprintf (char *__restrict __s, __const char *__restrict __format, > __gnuc_va_list __arg) __attribute__ ((__nothrow__)); > > > > > >extern int snprintf (char *__restrict __s, size_t __maxlen, > __const char *__restrict __format, ...) > __attribute__ ((__nothrow__)) __attribute__ ((__format__ (__printf__, 3, 4))); > >extern int vsnprintf (char *__restrict __s, size_t __maxlen, > __const char *__restrict __format, __gnuc_va_list __arg) > __attribute__ ((__nothrow__)) __attribute__ ((__format__ (__printf__, 3, 0))); > > > > > > >extern int vasprintf (char **__restrict __ptr, __const char *__restrict __f, > __gnuc_va_list __arg) > __attribute__ ((__nothrow__)) __attribute__ ((__format__ (__printf__, 2, 0))); >extern int __asprintf (char **__restrict __ptr, > __const char *__restrict __fmt, ...) > __attribute__ ((__nothrow__)) __attribute__ ((__format__ (__printf__, 2, 3))); >extern int asprintf (char **__restrict __ptr, > __const char *__restrict __fmt, ...) > __attribute__ ((__nothrow__)) __attribute__ ((__format__ (__printf__, 2, 3))); > > > > > > > >extern int vdprintf (int __fd, __const char *__restrict __fmt, > __gnuc_va_list __arg) > __attribute__ ((__format__ (__printf__, 2, 0))); >extern int dprintf (int __fd, __const char *__restrict __fmt, ...) > __attribute__ ((__format__ (__printf__, 2, 3))); > > > > > > > > >extern int fscanf (FILE *__restrict __stream, > __const char *__restrict __format, ...); > > > > >extern int scanf (__const char *__restrict __format, ...); > >extern int sscanf (__const char *__restrict __s, > __const char *__restrict __format, ...) __attribute__ ((__nothrow__)); > > > > > > > > >extern int vfscanf (FILE *__restrict __s, __const char *__restrict __format, > __gnuc_va_list __arg) > __attribute__ ((__format__ (__scanf__, 2, 0))); > > > > > >extern int vscanf (__const char *__restrict __format, __gnuc_va_list __arg) > __attribute__ ((__format__ (__scanf__, 1, 0))); > > >extern int vsscanf (__const char *__restrict __s, > __const char *__restrict __format, __gnuc_va_list __arg) > __attribute__ ((__nothrow__)) __attribute__ ((__format__ (__scanf__, 2, 0))); > > > > > > > > > >extern int fgetc (FILE *__stream); >extern int getc (FILE *__stream); > > > > > >extern int getchar (void); > ># 456 "/usr/include/stdio.h" 3 4 >extern int getc_unlocked (FILE *__stream); >extern int getchar_unlocked (void); ># 467 "/usr/include/stdio.h" 3 4 >extern int fgetc_unlocked (FILE *__stream); > > > > > > > > > > > >extern int fputc (int __c, FILE *__stream); >extern int putc (int __c, FILE *__stream); > > > > > >extern int putchar (int __c); > ># 500 "/usr/include/stdio.h" 3 4 >extern int fputc_unlocked (int __c, FILE *__stream); > > > > > > > >extern int putc_unlocked (int __c, FILE *__stream); >extern int putchar_unlocked (int __c); > > > > > > >extern int getw (FILE *__stream); > > >extern int putw (int __w, FILE *__stream); > > > > > > > > >extern char *fgets (char *__restrict __s, int __n, FILE *__restrict __stream); > > > > > > >extern char *gets (char *__s); > ># 545 "/usr/include/stdio.h" 3 4 >extern char *fgets_unlocked (char *__restrict __s, int __n, > FILE *__restrict __stream); ># 561 "/usr/include/stdio.h" 3 4 >extern __ssize_t __getdelim (char **__restrict __lineptr, > size_t *__restrict __n, int __delimiter, > FILE *__restrict __stream); >extern __ssize_t getdelim (char **__restrict __lineptr, > size_t *__restrict __n, int __delimiter, > FILE *__restrict __stream); > > > > > > > >extern __ssize_t getline (char **__restrict __lineptr, > size_t *__restrict __n, > FILE *__restrict __stream); > > > > > > > > >extern int fputs (__const char *__restrict __s, FILE *__restrict __stream); > > > > > >extern int puts (__const char *__s); > > > > > > >extern int ungetc (int __c, FILE *__stream); > > > > > > >extern size_t fread (void *__restrict __ptr, size_t __size, > size_t __n, FILE *__restrict __stream); > > > > >extern size_t fwrite (__const void *__restrict __ptr, size_t __size, > size_t __n, FILE *__restrict __s); > ># 622 "/usr/include/stdio.h" 3 4 >extern int fputs_unlocked (__const char *__restrict __s, > FILE *__restrict __stream); ># 633 "/usr/include/stdio.h" 3 4 >extern size_t fread_unlocked (void *__restrict __ptr, size_t __size, > size_t __n, FILE *__restrict __stream); >extern size_t fwrite_unlocked (__const void *__restrict __ptr, size_t __size, > size_t __n, FILE *__restrict __stream); > > > > > > > > >extern int fseek (FILE *__stream, long int __off, int __whence); > > > > >extern long int ftell (FILE *__stream); > > > > >extern void rewind (FILE *__stream); > ># 677 "/usr/include/stdio.h" 3 4 >extern int fseeko (FILE *__stream, __off64_t __off, int __whence) __asm__ ("" "fseeko64"); > > >extern __off64_t ftello (FILE *__stream) __asm__ ("" "ftello64"); > > > > > > > > ># 702 "/usr/include/stdio.h" 3 4 >extern int fgetpos (FILE *__restrict __stream, fpos_t *__restrict __pos) __asm__ ("" "fgetpos64"); > >extern int fsetpos (FILE *__stream, __const fpos_t *__pos) __asm__ ("" "fsetpos64"); > > > > > > > > > >extern int fseeko64 (FILE *__stream, __off64_t __off, int __whence); >extern __off64_t ftello64 (FILE *__stream); >extern int fgetpos64 (FILE *__restrict __stream, fpos64_t *__restrict __pos); >extern int fsetpos64 (FILE *__stream, __const fpos64_t *__pos); > > > > >extern void clearerr (FILE *__stream) __attribute__ ((__nothrow__)); > >extern int feof (FILE *__stream) __attribute__ ((__nothrow__)); > >extern int ferror (FILE *__stream) __attribute__ ((__nothrow__)); > > > > >extern void clearerr_unlocked (FILE *__stream) __attribute__ ((__nothrow__)); >extern int feof_unlocked (FILE *__stream) __attribute__ ((__nothrow__)); >extern int ferror_unlocked (FILE *__stream) __attribute__ ((__nothrow__)); > > > > > > > > >extern void perror (__const char *__s); > > > > > > ># 1 "/usr/include/bits/sys_errlist.h" 1 3 4 ># 27 "/usr/include/bits/sys_errlist.h" 3 4 >extern int sys_nerr; >extern __const char *__const sys_errlist[]; > > >extern int _sys_nerr; >extern __const char *__const _sys_errlist[]; ># 750 "/usr/include/stdio.h" 2 3 4 > > > > >extern int fileno (FILE *__stream) __attribute__ ((__nothrow__)); > > > > >extern int fileno_unlocked (FILE *__stream) __attribute__ ((__nothrow__)); ># 769 "/usr/include/stdio.h" 3 4 >extern FILE *popen (__const char *__command, __const char *__modes); > > > > > >extern int pclose (FILE *__stream); > > > > > >extern char *ctermid (char *__s) __attribute__ ((__nothrow__)); > > > > > >extern char *cuserid (char *__s); > > > > >struct obstack; > > >extern int obstack_printf (struct obstack *__restrict __obstack, > __const char *__restrict __format, ...) > __attribute__ ((__nothrow__)) __attribute__ ((__format__ (__printf__, 2, 3))); >extern int obstack_vprintf (struct obstack *__restrict __obstack, > __const char *__restrict __format, > __gnuc_va_list __args) > __attribute__ ((__nothrow__)) __attribute__ ((__format__ (__printf__, 2, 0))); > > > > > > > >extern void flockfile (FILE *__stream) __attribute__ ((__nothrow__)); > > > >extern int ftrylockfile (FILE *__stream) __attribute__ ((__nothrow__)); > > >extern void funlockfile (FILE *__stream) __attribute__ ((__nothrow__)); ># 830 "/usr/include/stdio.h" 3 4 ># 1 "/usr/include/bits/stdio.h" 1 3 4 ># 33 "/usr/include/bits/stdio.h" 3 4 >extern __inline int >vprintf (__const char *__restrict __fmt, __gnuc_va_list __arg) >{ > return vfprintf (stdout, __fmt, __arg); >} > > >extern __inline int >getchar (void) >{ > return _IO_getc (stdin); >} > > > > >extern __inline int >getc_unlocked (FILE *__fp) >{ > return (__builtin_expect ((__fp)->_IO_read_ptr >= (__fp)->_IO_read_end, 0) ? __uflow (__fp) : *(unsigned char *) (__fp)->_IO_read_ptr++); >} > > >extern __inline int >getchar_unlocked (void) >{ > return (__builtin_expect ((stdin)->_IO_read_ptr >= (stdin)->_IO_read_end, 0) ? __uflow (stdin) : *(unsigned char *) (stdin)->_IO_read_ptr++); >} > > > > >extern __inline int >putchar (int __c) >{ > return _IO_putc (__c, stdout); >} > > > > >extern __inline int >fputc_unlocked (int __c, FILE *__stream) >{ > return (__builtin_expect ((__stream)->_IO_write_ptr >= (__stream)->_IO_write_end, 0) ? __overflow (__stream, (unsigned char) (__c)) : (unsigned char) (*(__stream)->_IO_write_ptr++ = (__c))); >} > > > > > >extern __inline int >putc_unlocked (int __c, FILE *__stream) >{ > return (__builtin_expect ((__stream)->_IO_write_ptr >= (__stream)->_IO_write_end, 0) ? __overflow (__stream, (unsigned char) (__c)) : (unsigned char) (*(__stream)->_IO_write_ptr++ = (__c))); >} > > >extern __inline int >putchar_unlocked (int __c) >{ > return (__builtin_expect ((stdout)->_IO_write_ptr >= (stdout)->_IO_write_end, 0) ? __overflow (stdout, (unsigned char) (__c)) : (unsigned char) (*(stdout)->_IO_write_ptr++ = (__c))); >} > > > > > >extern __inline __ssize_t >getline (char **__lineptr, size_t *__n, FILE *__stream) >{ > return __getdelim (__lineptr, __n, '\n', __stream); >} > > > > > >extern __inline int >__attribute__ ((__nothrow__)) feof_unlocked (FILE *__stream) >{ > return (((__stream)->_flags & 0x10) != 0); >} > > >extern __inline int >__attribute__ ((__nothrow__)) ferror_unlocked (FILE *__stream) >{ > return (((__stream)->_flags & 0x20) != 0); >} ># 831 "/usr/include/stdio.h" 2 3 4 > > > > > > ># 34 "/home/work/.jumbo/include/python2.7/Python.h" 2 > > > > ># 1 "/usr/include/string.h" 1 3 4 ># 28 "/usr/include/string.h" 3 4 > > > > > ># 1 "/usr/lib/gcc/x86_64-redhat-linux/3.4.5/include/stddef.h" 1 3 4 ># 34 "/usr/include/string.h" 2 3 4 > > > > >extern void *memcpy (void *__restrict __dest, > __const void *__restrict __src, size_t __n) > __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1, 2))); > > >extern void *memmove (void *__dest, __const void *__src, size_t __n) > __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1, 2))); > > > > > > >extern void *memccpy (void *__restrict __dest, __const void *__restrict __src, > int __c, size_t __n) > __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1, 2))); > > > > > >extern void *memset (void *__s, int __c, size_t __n) __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1))); > > >extern int memcmp (__const void *__s1, __const void *__s2, size_t __n) > __attribute__ ((__nothrow__)) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1, 2))); > > >extern void *memchr (__const void *__s, int __c, size_t __n) > __attribute__ ((__nothrow__)) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1))); > > > > > >extern void *rawmemchr (__const void *__s, int __c) > __attribute__ ((__nothrow__)) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1))); > > >extern void *memrchr (__const void *__s, int __c, size_t __n) > __attribute__ ((__nothrow__)) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1))); > > > > > >extern char *strcpy (char *__restrict __dest, __const char *__restrict __src) > __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1, 2))); > >extern char *strncpy (char *__restrict __dest, > __const char *__restrict __src, size_t __n) > __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1, 2))); > > >extern char *strcat (char *__restrict __dest, __const char *__restrict __src) > __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1, 2))); > >extern char *strncat (char *__restrict __dest, __const char *__restrict __src, > size_t __n) __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1, 2))); > > >extern int strcmp (__const char *__s1, __const char *__s2) > __attribute__ ((__nothrow__)) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1, 2))); > >extern int strncmp (__const char *__s1, __const char *__s2, size_t __n) > __attribute__ ((__nothrow__)) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1, 2))); > > >extern int strcoll (__const char *__s1, __const char *__s2) > __attribute__ ((__nothrow__)) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1, 2))); > >extern size_t strxfrm (char *__restrict __dest, > __const char *__restrict __src, size_t __n) > __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (2))); > > > > > > ># 1 "/usr/include/xlocale.h" 1 3 4 ># 28 "/usr/include/xlocale.h" 3 4 >typedef struct __locale_struct >{ > > struct locale_data *__locales[13]; > > > const unsigned short int *__ctype_b; > const int *__ctype_tolower; > const int *__ctype_toupper; > > > const char *__names[13]; >} *__locale_t; ># 119 "/usr/include/string.h" 2 3 4 > > >extern int strcoll_l (__const char *__s1, __const char *__s2, __locale_t __l) > __attribute__ ((__nothrow__)) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1, 2, 3))); > >extern size_t strxfrm_l (char *__dest, __const char *__src, size_t __n, > __locale_t __l) __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (2, 4))); > > > > >extern char *strdup (__const char *__s) > __attribute__ ((__nothrow__)) __attribute__ ((__malloc__)) __attribute__ ((__nonnull__ (1))); > > > > > > >extern char *strndup (__const char *__string, size_t __n) > __attribute__ ((__nothrow__)) __attribute__ ((__malloc__)) __attribute__ ((__nonnull__ (1))); ># 165 "/usr/include/string.h" 3 4 > > >extern char *strchr (__const char *__s, int __c) > __attribute__ ((__nothrow__)) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1))); > >extern char *strrchr (__const char *__s, int __c) > __attribute__ ((__nothrow__)) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1))); > > > > > >extern char *strchrnul (__const char *__s, int __c) > __attribute__ ((__nothrow__)) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1))); > > > > > >extern size_t strcspn (__const char *__s, __const char *__reject) > __attribute__ ((__nothrow__)) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1, 2))); > > >extern size_t strspn (__const char *__s, __const char *__accept) > __attribute__ ((__nothrow__)) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1, 2))); > >extern char *strpbrk (__const char *__s, __const char *__accept) > __attribute__ ((__nothrow__)) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1, 2))); > >extern char *strstr (__const char *__haystack, __const char *__needle) > __attribute__ ((__nothrow__)) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1, 2))); > > > >extern char *strtok (char *__restrict __s, __const char *__restrict __delim) > __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (2))); > > > > >extern char *__strtok_r (char *__restrict __s, > __const char *__restrict __delim, > char **__restrict __save_ptr) > __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (2, 3))); > >extern char *strtok_r (char *__restrict __s, __const char *__restrict __delim, > char **__restrict __save_ptr) > __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (2, 3))); > > > > >extern char *strcasestr (__const char *__haystack, __const char *__needle) > __attribute__ ((__nothrow__)) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1, 2))); > > > > > > >extern void *memmem (__const void *__haystack, size_t __haystacklen, > __const void *__needle, size_t __needlelen) > __attribute__ ((__nothrow__)) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1, 3))); > > > >extern void *__mempcpy (void *__restrict __dest, > __const void *__restrict __src, size_t __n) > __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1, 2))); >extern void *mempcpy (void *__restrict __dest, > __const void *__restrict __src, size_t __n) > __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1, 2))); > > > > > >extern size_t strlen (__const char *__s) > __attribute__ ((__nothrow__)) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1))); > > > > > >extern size_t strnlen (__const char *__string, size_t __maxlen) > __attribute__ ((__nothrow__)) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1))); > > > > > >extern char *strerror (int __errnum) __attribute__ ((__nothrow__)); > ># 281 "/usr/include/string.h" 3 4 >extern char *strerror_r (int __errnum, char *__buf, size_t __buflen) > __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (2))); > > > > > >extern void __bzero (void *__s, size_t __n) __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1))); > > > >extern void bcopy (__const void *__src, void *__dest, size_t __n) > __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1, 2))); > > >extern void bzero (void *__s, size_t __n) __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1))); > > >extern int bcmp (__const void *__s1, __const void *__s2, size_t __n) > __attribute__ ((__nothrow__)) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1, 2))); > > >extern char *index (__const char *__s, int __c) > __attribute__ ((__nothrow__)) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1))); > > >extern char *rindex (__const char *__s, int __c) > __attribute__ ((__nothrow__)) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1))); > > > >extern int ffs (int __i) __attribute__ ((__nothrow__)) __attribute__ ((__const__)); > > > > >extern int ffsl (long int __l) __attribute__ ((__nothrow__)) __attribute__ ((__const__)); > >__extension__ extern int ffsll (long long int __ll) > __attribute__ ((__nothrow__)) __attribute__ ((__const__)); > > > > >extern int strcasecmp (__const char *__s1, __const char *__s2) > __attribute__ ((__nothrow__)) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1, 2))); > > >extern int strncasecmp (__const char *__s1, __const char *__s2, size_t __n) > __attribute__ ((__nothrow__)) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1, 2))); > > > > > >extern int strcasecmp_l (__const char *__s1, __const char *__s2, > __locale_t __loc) > __attribute__ ((__nothrow__)) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1, 2, 3))); > >extern int strncasecmp_l (__const char *__s1, __const char *__s2, > size_t __n, __locale_t __loc) > __attribute__ ((__nothrow__)) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1, 2, 4))); > > > > > >extern char *strsep (char **__restrict __stringp, > __const char *__restrict __delim) > __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1, 2))); > > > > >extern int strverscmp (__const char *__s1, __const char *__s2) > __attribute__ ((__nothrow__)) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1, 2))); > > >extern char *strsignal (int __sig) __attribute__ ((__nothrow__)); > > >extern char *__stpcpy (char *__restrict __dest, __const char *__restrict __src) > __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1, 2))); >extern char *stpcpy (char *__restrict __dest, __const char *__restrict __src) > __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1, 2))); > > > >extern char *__stpncpy (char *__restrict __dest, > __const char *__restrict __src, size_t __n) > __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1, 2))); >extern char *stpncpy (char *__restrict __dest, > __const char *__restrict __src, size_t __n) > __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1, 2))); > > >extern char *strfry (char *__string) __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1))); > > >extern void *memfrob (void *__s, size_t __n) __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1))); > > > > > > >extern char *basename (__const char *__filename) __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1))); ># 414 "/usr/include/string.h" 3 4 ># 1 "/usr/include/bits/string.h" 1 3 4 ># 415 "/usr/include/string.h" 2 3 4 > > ># 1 "/usr/include/bits/string2.h" 1 3 4 ># 52 "/usr/include/bits/string2.h" 3 4 ># 1 "/usr/include/endian.h" 1 3 4 ># 37 "/usr/include/endian.h" 3 4 ># 1 "/usr/include/bits/endian.h" 1 3 4 ># 38 "/usr/include/endian.h" 2 3 4 ># 53 "/usr/include/bits/string2.h" 2 3 4 ># 394 "/usr/include/bits/string2.h" 3 4 >extern void *__rawmemchr (const void *__s, int __c); ># 969 "/usr/include/bits/string2.h" 3 4 >extern __inline size_t __strcspn_c1 (__const char *__s, int __reject); >extern __inline size_t >__strcspn_c1 (__const char *__s, int __reject) >{ > register size_t __result = 0; > while (__s[__result] != '\0' && __s[__result] != __reject) > ++__result; > return __result; >} > >extern __inline size_t __strcspn_c2 (__const char *__s, int __reject1, > int __reject2); >extern __inline size_t >__strcspn_c2 (__const char *__s, int __reject1, int __reject2) >{ > register size_t __result = 0; > while (__s[__result] != '\0' && __s[__result] != __reject1 > && __s[__result] != __reject2) > ++__result; > return __result; >} > >extern __inline size_t __strcspn_c3 (__const char *__s, int __reject1, > int __reject2, int __reject3); >extern __inline size_t >__strcspn_c3 (__const char *__s, int __reject1, int __reject2, > int __reject3) >{ > register size_t __result = 0; > while (__s[__result] != '\0' && __s[__result] != __reject1 > && __s[__result] != __reject2 && __s[__result] != __reject3) > ++__result; > return __result; >} ># 1045 "/usr/include/bits/string2.h" 3 4 >extern __inline size_t __strspn_c1 (__const char *__s, int __accept); >extern __inline size_t >__strspn_c1 (__const char *__s, int __accept) >{ > register size_t __result = 0; > > while (__s[__result] == __accept) > ++__result; > return __result; >} > >extern __inline size_t __strspn_c2 (__const char *__s, int __accept1, > int __accept2); >extern __inline size_t >__strspn_c2 (__const char *__s, int __accept1, int __accept2) >{ > register size_t __result = 0; > > while (__s[__result] == __accept1 || __s[__result] == __accept2) > ++__result; > return __result; >} > >extern __inline size_t __strspn_c3 (__const char *__s, int __accept1, > int __accept2, int __accept3); >extern __inline size_t >__strspn_c3 (__const char *__s, int __accept1, int __accept2, int __accept3) >{ > register size_t __result = 0; > > while (__s[__result] == __accept1 || __s[__result] == __accept2 > || __s[__result] == __accept3) > ++__result; > return __result; >} ># 1121 "/usr/include/bits/string2.h" 3 4 >extern __inline char *__strpbrk_c2 (__const char *__s, int __accept1, > int __accept2); >extern __inline char * >__strpbrk_c2 (__const char *__s, int __accept1, int __accept2) >{ > > while (*__s != '\0' && *__s != __accept1 && *__s != __accept2) > ++__s; > return *__s == '\0' ? ((void *)0) : (char *) (size_t) __s; >} > >extern __inline char *__strpbrk_c3 (__const char *__s, int __accept1, > int __accept2, int __accept3); >extern __inline char * >__strpbrk_c3 (__const char *__s, int __accept1, int __accept2, > int __accept3) >{ > > while (*__s != '\0' && *__s != __accept1 && *__s != __accept2 > && *__s != __accept3) > ++__s; > return *__s == '\0' ? ((void *)0) : (char *) (size_t) __s; >} ># 1173 "/usr/include/bits/string2.h" 3 4 >extern __inline char *__strtok_r_1c (char *__s, char __sep, char **__nextp); >extern __inline char * >__strtok_r_1c (char *__s, char __sep, char **__nextp) >{ > char *__result; > if (__s == ((void *)0)) > __s = *__nextp; > while (*__s == __sep) > ++__s; > __result = ((void *)0); > if (*__s != '\0') > { > __result = __s++; > while (*__s != '\0') > if (*__s++ == __sep) > { > __s[-1] = '\0'; > break; > } > *__nextp = __s; > } > return __result; >} ># 1205 "/usr/include/bits/string2.h" 3 4 >extern char *__strsep_g (char **__stringp, __const char *__delim); ># 1223 "/usr/include/bits/string2.h" 3 4 >extern __inline char *__strsep_1c (char **__s, char __reject); >extern __inline char * >__strsep_1c (char **__s, char __reject) >{ > register char *__retval = *__s; > if (__retval != ((void *)0) && (*__s = (__extension__ (__builtin_constant_p (__reject) && !__builtin_constant_p (__retval) && (__reject) == '\0' ? (char *) __rawmemchr (__retval, __reject) : __builtin_strchr (__retval, __reject)))) != ((void *)0)) > *(*__s)++ = '\0'; > return __retval; >} > >extern __inline char *__strsep_2c (char **__s, char __reject1, char __reject2); >extern __inline char * >__strsep_2c (char **__s, char __reject1, char __reject2) >{ > register char *__retval = *__s; > if (__retval != ((void *)0)) > { > register char *__cp = __retval; > while (1) > { > if (*__cp == '\0') > { > __cp = ((void *)0); > break; > } > if (*__cp == __reject1 || *__cp == __reject2) > { > *__cp++ = '\0'; > break; > } > ++__cp; > } > *__s = __cp; > } > return __retval; >} > >extern __inline char *__strsep_3c (char **__s, char __reject1, char __reject2, > char __reject3); >extern __inline char * >__strsep_3c (char **__s, char __reject1, char __reject2, char __reject3) >{ > register char *__retval = *__s; > if (__retval != ((void *)0)) > { > register char *__cp = __retval; > while (1) > { > if (*__cp == '\0') > { > __cp = ((void *)0); > break; > } > if (*__cp == __reject1 || *__cp == __reject2 || *__cp == __reject3) > { > *__cp++ = '\0'; > break; > } > ++__cp; > } > *__s = __cp; > } > return __retval; >} ># 1299 "/usr/include/bits/string2.h" 3 4 ># 1 "/usr/include/stdlib.h" 1 3 4 ># 33 "/usr/include/stdlib.h" 3 4 ># 1 "/usr/lib/gcc/x86_64-redhat-linux/3.4.5/include/stddef.h" 1 3 4 ># 34 "/usr/include/stdlib.h" 2 3 4 > > ># 582 "/usr/include/stdlib.h" 3 4 > > >extern void *malloc (size_t __size) __attribute__ ((__nothrow__)) __attribute__ ((__malloc__)); > >extern void *calloc (size_t __nmemb, size_t __size) > __attribute__ ((__nothrow__)) __attribute__ ((__malloc__)); > ># 961 "/usr/include/stdlib.h" 3 4 > ># 1300 "/usr/include/bits/string2.h" 2 3 4 > > > > >extern char *__strdup (__const char *__string) __attribute__ ((__nothrow__)) __attribute__ ((__malloc__)); ># 1323 "/usr/include/bits/string2.h" 3 4 >extern char *__strndup (__const char *__string, size_t __n) > __attribute__ ((__nothrow__)) __attribute__ ((__malloc__)); ># 418 "/usr/include/string.h" 2 3 4 ># 426 "/usr/include/string.h" 3 4 > ># 39 "/home/work/.jumbo/include/python2.7/Python.h" 2 > ># 1 "/usr/include/errno.h" 1 3 4 ># 32 "/usr/include/errno.h" 3 4 > > > > ># 1 "/usr/include/bits/errno.h" 1 3 4 ># 25 "/usr/include/bits/errno.h" 3 4 ># 1 "/usr/include/linux/errno.h" 1 3 4 > > > ># 1 "/usr/include/asm/errno.h" 1 3 4 > > > ># 1 "/usr/include/asm-x86_64/errno.h" 1 3 4 ># 5 "/usr/include/asm/errno.h" 2 3 4 ># 5 "/usr/include/linux/errno.h" 2 3 4 ># 26 "/usr/include/bits/errno.h" 2 3 4 ># 38 "/usr/include/bits/errno.h" 3 4 >extern int *__errno_location (void) __attribute__ ((__nothrow__)) __attribute__ ((__const__)); ># 37 "/usr/include/errno.h" 2 3 4 ># 55 "/usr/include/errno.h" 3 4 >extern char *program_invocation_name, *program_invocation_short_name; > > > > ># 69 "/usr/include/errno.h" 3 4 >typedef int error_t; ># 41 "/home/work/.jumbo/include/python2.7/Python.h" 2 > ># 1 "/usr/include/stdlib.h" 1 3 4 ># 33 "/usr/include/stdlib.h" 3 4 ># 1 "/usr/lib/gcc/x86_64-redhat-linux/3.4.5/include/stddef.h" 1 3 4 ># 34 "/usr/include/stdlib.h" 2 3 4 > > > > > > > > ># 1 "/usr/include/bits/waitflags.h" 1 3 4 ># 43 "/usr/include/stdlib.h" 2 3 4 ># 1 "/usr/include/bits/waitstatus.h" 1 3 4 ># 67 "/usr/include/bits/waitstatus.h" 3 4 >union wait > { > int w_status; > struct > { > > unsigned int __w_termsig:7; > unsigned int __w_coredump:1; > unsigned int __w_retcode:8; > unsigned int:16; > > > > > > > > } __wait_terminated; > struct > { > > unsigned int __w_stopval:8; > unsigned int __w_stopsig:8; > unsigned int:16; > > > > > > > } __wait_stopped; > }; ># 44 "/usr/include/stdlib.h" 2 3 4 ># 68 "/usr/include/stdlib.h" 3 4 >typedef union > { > union wait *__uptr; > int *__iptr; > } __WAIT_STATUS __attribute__ ((__transparent_union__)); ># 96 "/usr/include/stdlib.h" 3 4 > > >typedef struct > { > int quot; > int rem; > } div_t; > > > >typedef struct > { > long int quot; > long int rem; > } ldiv_t; > > > > > > > >__extension__ typedef struct > { > long long int quot; > long long int rem; > } lldiv_t; > > ># 140 "/usr/include/stdlib.h" 3 4 >extern size_t __ctype_get_mb_cur_max (void) __attribute__ ((__nothrow__)); > > > > >extern double atof (__const char *__nptr) > __attribute__ ((__nothrow__)) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1))); > >extern int atoi (__const char *__nptr) > __attribute__ ((__nothrow__)) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1))); > >extern long int atol (__const char *__nptr) > __attribute__ ((__nothrow__)) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1))); > > > > > >__extension__ extern long long int atoll (__const char *__nptr) > __attribute__ ((__nothrow__)) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1))); > > > > > >extern double strtod (__const char *__restrict __nptr, > char **__restrict __endptr) __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1))); > > > > > >extern float strtof (__const char *__restrict __nptr, > char **__restrict __endptr) __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1))); > >extern long double strtold (__const char *__restrict __nptr, > char **__restrict __endptr) > __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1))); > > > > > >extern long int strtol (__const char *__restrict __nptr, > char **__restrict __endptr, int __base) > __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1))); > >extern unsigned long int strtoul (__const char *__restrict __nptr, > char **__restrict __endptr, int __base) > __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1))); > > > > >__extension__ >extern long long int strtoq (__const char *__restrict __nptr, > char **__restrict __endptr, int __base) > __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1))); > >__extension__ >extern unsigned long long int strtouq (__const char *__restrict __nptr, > char **__restrict __endptr, int __base) > __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1))); > > > > > >__extension__ >extern long long int strtoll (__const char *__restrict __nptr, > char **__restrict __endptr, int __base) > __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1))); > >__extension__ >extern unsigned long long int strtoull (__const char *__restrict __nptr, > char **__restrict __endptr, int __base) > __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1))); > ># 239 "/usr/include/stdlib.h" 3 4 >extern long int strtol_l (__const char *__restrict __nptr, > char **__restrict __endptr, int __base, > __locale_t __loc) __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1, 4))); > >extern unsigned long int strtoul_l (__const char *__restrict __nptr, > char **__restrict __endptr, > int __base, __locale_t __loc) > __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1, 4))); > >__extension__ >extern long long int strtoll_l (__const char *__restrict __nptr, > char **__restrict __endptr, int __base, > __locale_t __loc) > __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1, 4))); > >__extension__ >extern unsigned long long int strtoull_l (__const char *__restrict __nptr, > char **__restrict __endptr, > int __base, __locale_t __loc) > __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1, 4))); > >extern double strtod_l (__const char *__restrict __nptr, > char **__restrict __endptr, __locale_t __loc) > __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1, 3))); > >extern float strtof_l (__const char *__restrict __nptr, > char **__restrict __endptr, __locale_t __loc) > __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1, 3))); > >extern long double strtold_l (__const char *__restrict __nptr, > char **__restrict __endptr, > __locale_t __loc) __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1, 3))); > > > > > > >extern double __strtod_internal (__const char *__restrict __nptr, > char **__restrict __endptr, int __group) > __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1))); >extern float __strtof_internal (__const char *__restrict __nptr, > char **__restrict __endptr, int __group) > __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1))); >extern long double __strtold_internal (__const char *__restrict __nptr, > char **__restrict __endptr, > int __group) __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1))); > >extern long int __strtol_internal (__const char *__restrict __nptr, > char **__restrict __endptr, > int __base, int __group) > __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1))); > > > >extern unsigned long int __strtoul_internal (__const char *__restrict __nptr, > char **__restrict __endptr, > int __base, int __group) > __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1))); > > > > >__extension__ >extern long long int __strtoll_internal (__const char *__restrict __nptr, > char **__restrict __endptr, > int __base, int __group) > __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1))); > > > >__extension__ >extern unsigned long long int __strtoull_internal (__const char * > __restrict __nptr, > char **__restrict __endptr, > int __base, int __group) > __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1))); > > > > > > > > >extern __inline double >__attribute__ ((__nothrow__)) strtod (__const char *__restrict __nptr, char **__restrict __endptr) >{ > return __strtod_internal (__nptr, __endptr, 0); >} >extern __inline long int >__attribute__ ((__nothrow__)) strtol (__const char *__restrict __nptr, char **__restrict __endptr, int __base) > >{ > return __strtol_internal (__nptr, __endptr, __base, 0); >} >extern __inline unsigned long int >__attribute__ ((__nothrow__)) strtoul (__const char *__restrict __nptr, char **__restrict __endptr, int __base) > >{ > return __strtoul_internal (__nptr, __endptr, __base, 0); >} > > > > >extern __inline float >__attribute__ ((__nothrow__)) strtof (__const char *__restrict __nptr, char **__restrict __endptr) >{ > return __strtof_internal (__nptr, __endptr, 0); >} >extern __inline long double >__attribute__ ((__nothrow__)) strtold (__const char *__restrict __nptr, char **__restrict __endptr) >{ > return __strtold_internal (__nptr, __endptr, 0); >} > > > > >__extension__ extern __inline long long int >__attribute__ ((__nothrow__)) strtoq (__const char *__restrict __nptr, char **__restrict __endptr, int __base) > >{ > return __strtoll_internal (__nptr, __endptr, __base, 0); >} >__extension__ extern __inline unsigned long long int >__attribute__ ((__nothrow__)) strtouq (__const char *__restrict __nptr, char **__restrict __endptr, int __base) > >{ > return __strtoull_internal (__nptr, __endptr, __base, 0); >} > > > > >__extension__ extern __inline long long int >__attribute__ ((__nothrow__)) strtoll (__const char *__restrict __nptr, char **__restrict __endptr, int __base) > >{ > return __strtoll_internal (__nptr, __endptr, __base, 0); >} >__extension__ extern __inline unsigned long long int >__attribute__ ((__nothrow__)) strtoull (__const char * __restrict __nptr, char **__restrict __endptr, int __base) > >{ > return __strtoull_internal (__nptr, __endptr, __base, 0); >} > > > > >extern __inline double >__attribute__ ((__nothrow__)) atof (__const char *__nptr) >{ > return strtod (__nptr, (char **) ((void *)0)); >} >extern __inline int >__attribute__ ((__nothrow__)) atoi (__const char *__nptr) >{ > return (int) strtol (__nptr, (char **) ((void *)0), 10); >} >extern __inline long int >__attribute__ ((__nothrow__)) atol (__const char *__nptr) >{ > return strtol (__nptr, (char **) ((void *)0), 10); >} > > > > >__extension__ extern __inline long long int >__attribute__ ((__nothrow__)) atoll (__const char *__nptr) >{ > return strtoll (__nptr, (char **) ((void *)0), 10); >} > ># 424 "/usr/include/stdlib.h" 3 4 >extern char *l64a (long int __n) __attribute__ ((__nothrow__)); > > >extern long int a64l (__const char *__s) > __attribute__ ((__nothrow__)) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1))); > > > > ># 1 "/usr/include/sys/types.h" 1 3 4 ># 29 "/usr/include/sys/types.h" 3 4 > > > > > > >typedef __u_char u_char; >typedef __u_short u_short; >typedef __u_int u_int; >typedef __u_long u_long; >typedef __quad_t quad_t; >typedef __u_quad_t u_quad_t; >typedef __fsid_t fsid_t; > > > > >typedef __loff_t loff_t; > > > > > >typedef __ino64_t ino_t; > > > > >typedef __ino64_t ino64_t; > > > > >typedef __dev_t dev_t; > > > > >typedef __gid_t gid_t; > > > > >typedef __mode_t mode_t; > > > > >typedef __nlink_t nlink_t; > > > > >typedef __uid_t uid_t; > > > > > > > >typedef __off64_t off_t; > > > > >typedef __off64_t off64_t; > > > > >typedef __pid_t pid_t; > > > > >typedef __id_t id_t; > > > > >typedef __ssize_t ssize_t; > > > > > >typedef __daddr_t daddr_t; >typedef __caddr_t caddr_t; > > > > > >typedef __key_t key_t; ># 133 "/usr/include/sys/types.h" 3 4 ># 1 "/usr/include/time.h" 1 3 4 ># 58 "/usr/include/time.h" 3 4 > > >typedef __clock_t clock_t; > > > ># 74 "/usr/include/time.h" 3 4 > > >typedef __time_t time_t; > > > ># 92 "/usr/include/time.h" 3 4 >typedef __clockid_t clockid_t; ># 104 "/usr/include/time.h" 3 4 >typedef __timer_t timer_t; ># 134 "/usr/include/sys/types.h" 2 3 4 > > > >typedef __useconds_t useconds_t; > > > >typedef __suseconds_t suseconds_t; > > > > > ># 1 "/usr/lib/gcc/x86_64-redhat-linux/3.4.5/include/stddef.h" 1 3 4 ># 148 "/usr/include/sys/types.h" 2 3 4 > > > >typedef unsigned long int ulong; >typedef unsigned short int ushort; >typedef unsigned int uint; ># 191 "/usr/include/sys/types.h" 3 4 >typedef int int8_t __attribute__ ((__mode__ (__QI__))); >typedef int int16_t __attribute__ ((__mode__ (__HI__))); >typedef int int32_t __attribute__ ((__mode__ (__SI__))); >typedef int int64_t __attribute__ ((__mode__ (__DI__))); > > >typedef unsigned int u_int8_t __attribute__ ((__mode__ (__QI__))); >typedef unsigned int u_int16_t __attribute__ ((__mode__ (__HI__))); >typedef unsigned int u_int32_t __attribute__ ((__mode__ (__SI__))); >typedef unsigned int u_int64_t __attribute__ ((__mode__ (__DI__))); > >typedef int register_t __attribute__ ((__mode__ (__word__))); ># 216 "/usr/include/sys/types.h" 3 4 ># 1 "/usr/include/sys/select.h" 1 3 4 ># 31 "/usr/include/sys/select.h" 3 4 ># 1 "/usr/include/bits/select.h" 1 3 4 ># 32 "/usr/include/sys/select.h" 2 3 4 > > ># 1 "/usr/include/bits/sigset.h" 1 3 4 ># 23 "/usr/include/bits/sigset.h" 3 4 >typedef int __sig_atomic_t; > > > > >typedef struct > { > unsigned long int __val[(1024 / (8 * sizeof (unsigned long int)))]; > } __sigset_t; ># 35 "/usr/include/sys/select.h" 2 3 4 > > > >typedef __sigset_t sigset_t; > > > > > ># 1 "/usr/include/time.h" 1 3 4 ># 118 "/usr/include/time.h" 3 4 >struct timespec > { > __time_t tv_sec; > long int tv_nsec; > }; ># 45 "/usr/include/sys/select.h" 2 3 4 > ># 1 "/usr/include/bits/time.h" 1 3 4 ># 69 "/usr/include/bits/time.h" 3 4 >struct timeval > { > __time_t tv_sec; > __suseconds_t tv_usec; > }; ># 47 "/usr/include/sys/select.h" 2 3 4 ># 55 "/usr/include/sys/select.h" 3 4 >typedef long int __fd_mask; ># 67 "/usr/include/sys/select.h" 3 4 >typedef struct > { > > > > __fd_mask fds_bits[1024 / (8 * sizeof (__fd_mask))]; > > > > > > } fd_set; > > > > > > >typedef __fd_mask fd_mask; ># 99 "/usr/include/sys/select.h" 3 4 > ># 109 "/usr/include/sys/select.h" 3 4 >extern int select (int __nfds, fd_set *__restrict __readfds, > fd_set *__restrict __writefds, > fd_set *__restrict __exceptfds, > struct timeval *__restrict __timeout); ># 121 "/usr/include/sys/select.h" 3 4 >extern int pselect (int __nfds, fd_set *__restrict __readfds, > fd_set *__restrict __writefds, > fd_set *__restrict __exceptfds, > const struct timespec *__restrict __timeout, > const __sigset_t *__restrict __sigmask); > > > ># 217 "/usr/include/sys/types.h" 2 3 4 > > ># 1 "/usr/include/sys/sysmacros.h" 1 3 4 ># 29 "/usr/include/sys/sysmacros.h" 3 4 >__extension__ >extern __inline unsigned int gnu_dev_major (unsigned long long int __dev) > __attribute__ ((__nothrow__)); >__extension__ >extern __inline unsigned int gnu_dev_minor (unsigned long long int __dev) > __attribute__ ((__nothrow__)); >__extension__ >extern __inline unsigned long long int gnu_dev_makedev (unsigned int __major, > unsigned int __minor) > __attribute__ ((__nothrow__)); > > >__extension__ extern __inline unsigned int >__attribute__ ((__nothrow__)) gnu_dev_major (unsigned long long int __dev) >{ > return ((__dev >> 8) & 0xfff) | ((unsigned int) (__dev >> 32) & ~0xfff); >} > >__extension__ extern __inline unsigned int >__attribute__ ((__nothrow__)) gnu_dev_minor (unsigned long long int __dev) >{ > return (__dev & 0xff) | ((unsigned int) (__dev >> 12) & ~0xff); >} > >__extension__ extern __inline unsigned long long int >__attribute__ ((__nothrow__)) gnu_dev_makedev (unsigned int __major, unsigned int __minor) >{ > return ((__minor & 0xff) | ((__major & 0xfff) << 8) > | (((unsigned long long int) (__minor & ~0xff)) << 12) > | (((unsigned long long int) (__major & ~0xfff)) << 32)); >} ># 220 "/usr/include/sys/types.h" 2 3 4 > > > > >typedef __blksize_t blksize_t; ># 244 "/usr/include/sys/types.h" 3 4 >typedef __blkcnt64_t blkcnt_t; > > > >typedef __fsblkcnt64_t fsblkcnt_t; > > > >typedef __fsfilcnt64_t fsfilcnt_t; > > > > > >typedef __blkcnt64_t blkcnt64_t; >typedef __fsblkcnt64_t fsblkcnt64_t; >typedef __fsfilcnt64_t fsfilcnt64_t; > > > > > ># 1 "/usr/include/bits/pthreadtypes.h" 1 3 4 ># 23 "/usr/include/bits/pthreadtypes.h" 3 4 ># 1 "/usr/include/bits/sched.h" 1 3 4 ># 83 "/usr/include/bits/sched.h" 3 4 >struct __sched_param > { > int __sched_priority; > }; ># 24 "/usr/include/bits/pthreadtypes.h" 2 3 4 > > >struct _pthread_fastlock >{ > long int __status; > int __spinlock; > >}; > > > >typedef struct _pthread_descr_struct *_pthread_descr; > > > > > >typedef struct __pthread_attr_s >{ > int __detachstate; > int __schedpolicy; > struct __sched_param __schedparam; > int __inheritsched; > int __scope; > size_t __guardsize; > int __stackaddr_set; > void *__stackaddr; > size_t __stacksize; >} pthread_attr_t; > > > > > >__extension__ typedef long long __pthread_cond_align_t; > > > > >typedef struct >{ > struct _pthread_fastlock __c_lock; > _pthread_descr __c_waiting; > char __padding[48 - sizeof (struct _pthread_fastlock) > - sizeof (_pthread_descr) - sizeof (__pthread_cond_align_t)]; > __pthread_cond_align_t __align; >} pthread_cond_t; > > > >typedef struct >{ > int __dummy; >} pthread_condattr_t; > > >typedef unsigned int pthread_key_t; > > > > > >typedef struct >{ > int __m_reserved; > int __m_count; > _pthread_descr __m_owner; > int __m_kind; > struct _pthread_fastlock __m_lock; >} pthread_mutex_t; > > > >typedef struct >{ > int __mutexkind; >} pthread_mutexattr_t; > > > >typedef int pthread_once_t; > > > > >typedef struct _pthread_rwlock_t >{ > struct _pthread_fastlock __rw_lock; > int __rw_readers; > _pthread_descr __rw_writer; > _pthread_descr __rw_read_waiting; > _pthread_descr __rw_write_waiting; > int __rw_kind; > int __rw_pshared; >} pthread_rwlock_t; > > > >typedef struct >{ > int __lockkind; > int __pshared; >} pthread_rwlockattr_t; > > > > >typedef volatile int pthread_spinlock_t; > > >typedef struct { > struct _pthread_fastlock __ba_lock; > int __ba_required; > int __ba_present; > _pthread_descr __ba_waiting; >} pthread_barrier_t; > > >typedef struct { > int __pshared; >} pthread_barrierattr_t; > > > > > >typedef unsigned long int pthread_t; ># 267 "/usr/include/sys/types.h" 2 3 4 > > > ># 434 "/usr/include/stdlib.h" 2 3 4 > > > > > > >extern long int random (void) __attribute__ ((__nothrow__)); > > >extern void srandom (unsigned int __seed) __attribute__ ((__nothrow__)); > > > > > >extern char *initstate (unsigned int __seed, char *__statebuf, > size_t __statelen) __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (2))); > > > >extern char *setstate (char *__statebuf) __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1))); > > > > > > > >struct random_data > { > int32_t *fptr; > int32_t *rptr; > int32_t *state; > int rand_type; > int rand_deg; > int rand_sep; > int32_t *end_ptr; > }; > >extern int random_r (struct random_data *__restrict __buf, > int32_t *__restrict __result) __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1, 2))); > >extern int srandom_r (unsigned int __seed, struct random_data *__buf) > __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (2))); > >extern int initstate_r (unsigned int __seed, char *__restrict __statebuf, > size_t __statelen, > struct random_data *__restrict __buf) > __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (2, 4))); > >extern int setstate_r (char *__restrict __statebuf, > struct random_data *__restrict __buf) > __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1, 2))); > > > > > > >extern int rand (void) __attribute__ ((__nothrow__)); > >extern void srand (unsigned int __seed) __attribute__ ((__nothrow__)); > > > > >extern int rand_r (unsigned int *__seed) __attribute__ ((__nothrow__)); > > > > > > > >extern double drand48 (void) __attribute__ ((__nothrow__)); >extern double erand48 (unsigned short int __xsubi[3]) __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1))); > > >extern long int lrand48 (void) __attribute__ ((__nothrow__)); >extern long int nrand48 (unsigned short int __xsubi[3]) > __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1))); > > >extern long int mrand48 (void) __attribute__ ((__nothrow__)); >extern long int jrand48 (unsigned short int __xsubi[3]) > __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1))); > > >extern void srand48 (long int __seedval) __attribute__ ((__nothrow__)); >extern unsigned short int *seed48 (unsigned short int __seed16v[3]) > __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1))); >extern void lcong48 (unsigned short int __param[7]) __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1))); > > > > > >struct drand48_data > { > unsigned short int __x[3]; > unsigned short int __old_x[3]; > unsigned short int __c; > unsigned short int __init; > unsigned long long int __a; > }; > > >extern int drand48_r (struct drand48_data *__restrict __buffer, > double *__restrict __result) __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1, 2))); >extern int erand48_r (unsigned short int __xsubi[3], > struct drand48_data *__restrict __buffer, > double *__restrict __result) __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1, 2))); > > >extern int lrand48_r (struct drand48_data *__restrict __buffer, > long int *__restrict __result) > __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1, 2))); >extern int nrand48_r (unsigned short int __xsubi[3], > struct drand48_data *__restrict __buffer, > long int *__restrict __result) > __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1, 2))); > > >extern int mrand48_r (struct drand48_data *__restrict __buffer, > long int *__restrict __result) > __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1, 2))); >extern int jrand48_r (unsigned short int __xsubi[3], > struct drand48_data *__restrict __buffer, > long int *__restrict __result) > __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1, 2))); > > >extern int srand48_r (long int __seedval, struct drand48_data *__buffer) > __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (2))); > >extern int seed48_r (unsigned short int __seed16v[3], > struct drand48_data *__buffer) __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1, 2))); > >extern int lcong48_r (unsigned short int __param[7], > struct drand48_data *__buffer) > __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1, 2))); ># 592 "/usr/include/stdlib.h" 3 4 > > > >extern void *realloc (void *__ptr, size_t __size) __attribute__ ((__nothrow__)) __attribute__ ((__malloc__)); > >extern void free (void *__ptr) __attribute__ ((__nothrow__)); > > > > >extern void cfree (void *__ptr) __attribute__ ((__nothrow__)); > > > ># 1 "/usr/include/alloca.h" 1 3 4 ># 25 "/usr/include/alloca.h" 3 4 ># 1 "/usr/lib/gcc/x86_64-redhat-linux/3.4.5/include/stddef.h" 1 3 4 ># 26 "/usr/include/alloca.h" 2 3 4 > > > > > > > >extern void *alloca (size_t __size) __attribute__ ((__nothrow__)); > > > > > > ># 607 "/usr/include/stdlib.h" 2 3 4 > > > > >extern void *valloc (size_t __size) __attribute__ ((__nothrow__)) __attribute__ ((__malloc__)); > > > > >extern int posix_memalign (void **__memptr, size_t __alignment, size_t __size) > __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1))); > > > > >extern void abort (void) __attribute__ ((__nothrow__)) __attribute__ ((__noreturn__)); > > > >extern int atexit (void (*__func) (void)) __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1))); > > > > > >extern int on_exit (void (*__func) (int __status, void *__arg), void *__arg) > __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1))); > > > > > > >extern void exit (int __status) __attribute__ ((__nothrow__)) __attribute__ ((__noreturn__)); > > > > > > >extern void _Exit (int __status) __attribute__ ((__nothrow__)) __attribute__ ((__noreturn__)); > > > > > > >extern char *getenv (__const char *__name) __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1))); > > > > >extern char *__secure_getenv (__const char *__name) __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1))); > > > > > >extern int putenv (char *__string) __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1))); > > > > > >extern int setenv (__const char *__name, __const char *__value, int __replace) > __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (2))); > > >extern int unsetenv (__const char *__name) __attribute__ ((__nothrow__)); > > > > > > >extern int clearenv (void) __attribute__ ((__nothrow__)); ># 691 "/usr/include/stdlib.h" 3 4 >extern char *mktemp (char *__template) __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1))); ># 705 "/usr/include/stdlib.h" 3 4 >extern int mkstemp (char *__template) __asm__ ("" "mkstemp64") __attribute__ ((__nonnull__ (1))); > > > > > >extern int mkstemp64 (char *__template) __attribute__ ((__nonnull__ (1))); ># 721 "/usr/include/stdlib.h" 3 4 >extern char *mkdtemp (char *__template) __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1))); > > > > > > > > >extern int system (__const char *__command); > > > > > > > >extern char *canonicalize_file_name (__const char *__name) > __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1))); ># 749 "/usr/include/stdlib.h" 3 4 >extern char *realpath (__const char *__restrict __name, > char *__restrict __resolved) __attribute__ ((__nothrow__)); > > > > > > >typedef int (*__compar_fn_t) (__const void *, __const void *); > > >typedef __compar_fn_t comparison_fn_t; > > > > > > >extern void *bsearch (__const void *__key, __const void *__base, > size_t __nmemb, size_t __size, __compar_fn_t __compar) > __attribute__ ((__nonnull__ (1, 2, 5))); > > > >extern void qsort (void *__base, size_t __nmemb, size_t __size, > __compar_fn_t __compar) __attribute__ ((__nonnull__ (1, 4))); > > > >extern int abs (int __x) __attribute__ ((__nothrow__)) __attribute__ ((__const__)); >extern long int labs (long int __x) __attribute__ ((__nothrow__)) __attribute__ ((__const__)); > > > >__extension__ extern long long int llabs (long long int __x) > __attribute__ ((__nothrow__)) __attribute__ ((__const__)); > > > > > > > >extern div_t div (int __numer, int __denom) > __attribute__ ((__nothrow__)) __attribute__ ((__const__)); >extern ldiv_t ldiv (long int __numer, long int __denom) > __attribute__ ((__nothrow__)) __attribute__ ((__const__)); > > > > >__extension__ extern lldiv_t lldiv (long long int __numer, > long long int __denom) > __attribute__ ((__nothrow__)) __attribute__ ((__const__)); > ># 814 "/usr/include/stdlib.h" 3 4 >extern char *ecvt (double __value, int __ndigit, int *__restrict __decpt, > int *__restrict __sign) __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (3, 4))); > > > > >extern char *fcvt (double __value, int __ndigit, int *__restrict __decpt, > int *__restrict __sign) __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (3, 4))); > > > > >extern char *gcvt (double __value, int __ndigit, char *__buf) > __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (3))); > > > > >extern char *qecvt (long double __value, int __ndigit, > int *__restrict __decpt, int *__restrict __sign) > __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (3, 4))); >extern char *qfcvt (long double __value, int __ndigit, > int *__restrict __decpt, int *__restrict __sign) > __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (3, 4))); >extern char *qgcvt (long double __value, int __ndigit, char *__buf) > __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (3))); > > > > >extern int ecvt_r (double __value, int __ndigit, int *__restrict __decpt, > int *__restrict __sign, char *__restrict __buf, > size_t __len) __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (3, 4, 5))); >extern int fcvt_r (double __value, int __ndigit, int *__restrict __decpt, > int *__restrict __sign, char *__restrict __buf, > size_t __len) __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (3, 4, 5))); > >extern int qecvt_r (long double __value, int __ndigit, > int *__restrict __decpt, int *__restrict __sign, > char *__restrict __buf, size_t __len) > __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (3, 4, 5))); >extern int qfcvt_r (long double __value, int __ndigit, > int *__restrict __decpt, int *__restrict __sign, > char *__restrict __buf, size_t __len) > __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (3, 4, 5))); > > > > > > > >extern int mblen (__const char *__s, size_t __n) __attribute__ ((__nothrow__)); > > >extern int mbtowc (wchar_t *__restrict __pwc, > __const char *__restrict __s, size_t __n) __attribute__ ((__nothrow__)); > > >extern int wctomb (char *__s, wchar_t __wchar) __attribute__ ((__nothrow__)); > > > >extern size_t mbstowcs (wchar_t *__restrict __pwcs, > __const char *__restrict __s, size_t __n) __attribute__ ((__nothrow__)); > >extern size_t wcstombs (char *__restrict __s, > __const wchar_t *__restrict __pwcs, size_t __n) > __attribute__ ((__nothrow__)); > > > > > > > > >extern int rpmatch (__const char *__response) __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1))); ># 902 "/usr/include/stdlib.h" 3 4 >extern int getsubopt (char **__restrict __optionp, > char *__const *__restrict __tokens, > char **__restrict __valuep) > __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1, 2, 3))); > > > > > >extern void setkey (__const char *__key) __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1))); > > > > > > > >extern int posix_openpt (int __oflag); > > > > > > > >extern int grantpt (int __fd) __attribute__ ((__nothrow__)); > > > >extern int unlockpt (int __fd) __attribute__ ((__nothrow__)); > > > > >extern char *ptsname (int __fd) __attribute__ ((__nothrow__)); > > > > > > >extern int ptsname_r (int __fd, char *__buf, size_t __buflen) > __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (2))); > > >extern int getpt (void); > > > > > > >extern int getloadavg (double __loadavg[], int __nelem) > __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1))); > > > > > > ># 43 "/home/work/.jumbo/include/python2.7/Python.h" 2 > ># 1 "/usr/include/unistd.h" 1 3 4 ># 28 "/usr/include/unistd.h" 3 4 > ># 171 "/usr/include/unistd.h" 3 4 ># 1 "/usr/include/bits/posix_opt.h" 1 3 4 ># 172 "/usr/include/unistd.h" 2 3 4 > > > ># 1 "/usr/include/bits/environments.h" 1 3 4 ># 23 "/usr/include/bits/environments.h" 3 4 ># 1 "/usr/include/bits/wordsize.h" 1 3 4 ># 24 "/usr/include/bits/environments.h" 2 3 4 ># 176 "/usr/include/unistd.h" 2 3 4 ># 195 "/usr/include/unistd.h" 3 4 ># 1 "/usr/lib/gcc/x86_64-redhat-linux/3.4.5/include/stddef.h" 1 3 4 ># 196 "/usr/include/unistd.h" 2 3 4 ># 236 "/usr/include/unistd.h" 3 4 >typedef __intptr_t intptr_t; > > > > > > >typedef __socklen_t socklen_t; ># 256 "/usr/include/unistd.h" 3 4 >extern int access (__const char *__name, int __type) __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1))); > > > > >extern int euidaccess (__const char *__name, int __type) > __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1))); ># 290 "/usr/include/unistd.h" 3 4 >extern __off64_t lseek (int __fd, __off64_t __offset, int __whence) __asm__ ("" "lseek64") __attribute__ ((__nothrow__)); > > > > > > > >extern __off64_t lseek64 (int __fd, __off64_t __offset, int __whence) __attribute__ ((__nothrow__)); > > > > > > >extern int close (int __fd); > > > > > > >extern ssize_t read (int __fd, void *__buf, size_t __nbytes); > > > > > >extern ssize_t write (int __fd, __const void *__buf, size_t __n); ># 340 "/usr/include/unistd.h" 3 4 >extern ssize_t pread (int __fd, void *__buf, size_t __nbytes, __off64_t __offset) __asm__ ("" "pread64"); > > >extern ssize_t pwrite (int __fd, __const void *__buf, size_t __nbytes, __off64_t __offset) __asm__ ("" "pwrite64"); ># 356 "/usr/include/unistd.h" 3 4 >extern ssize_t pread64 (int __fd, void *__buf, size_t __nbytes, > __off64_t __offset); > > >extern ssize_t pwrite64 (int __fd, __const void *__buf, size_t __n, > __off64_t __offset); > > > > > > > >extern int pipe (int __pipedes[2]) __attribute__ ((__nothrow__)); ># 378 "/usr/include/unistd.h" 3 4 >extern unsigned int alarm (unsigned int __seconds) __attribute__ ((__nothrow__)); ># 390 "/usr/include/unistd.h" 3 4 >extern unsigned int sleep (unsigned int __seconds); > > > > > > >extern __useconds_t ualarm (__useconds_t __value, __useconds_t __interval) > __attribute__ ((__nothrow__)); > > > > > > >extern int usleep (__useconds_t __useconds); ># 414 "/usr/include/unistd.h" 3 4 >extern int pause (void); > > > >extern int chown (__const char *__file, __uid_t __owner, __gid_t __group) > __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1))); > > > >extern int fchown (int __fd, __uid_t __owner, __gid_t __group) __attribute__ ((__nothrow__)); > > > > >extern int lchown (__const char *__file, __uid_t __owner, __gid_t __group) > __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1))); > > > > >extern int chdir (__const char *__path) __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1))); > > > >extern int fchdir (int __fd) __attribute__ ((__nothrow__)); ># 448 "/usr/include/unistd.h" 3 4 >extern char *getcwd (char *__buf, size_t __size) __attribute__ ((__nothrow__)); > > > > > >extern char *get_current_dir_name (void) __attribute__ ((__nothrow__)); > > > > > > >extern char *getwd (char *__buf) __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1))); > > > > >extern int dup (int __fd) __attribute__ ((__nothrow__)); > > >extern int dup2 (int __fd, int __fd2) __attribute__ ((__nothrow__)); > > >extern char **__environ; > >extern char **environ; > > > > > >extern int execve (__const char *__path, char *__const __argv[], > char *__const __envp[]) __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1))); > > > > >extern int fexecve (int __fd, char *__const __argv[], char *__const __envp[]) > __attribute__ ((__nothrow__)); > > > > >extern int execv (__const char *__path, char *__const __argv[]) > __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1))); > > > >extern int execle (__const char *__path, __const char *__arg, ...) > __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1))); > > > >extern int execl (__const char *__path, __const char *__arg, ...) > __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1))); > > > >extern int execvp (__const char *__file, char *__const __argv[]) > __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1))); > > > > >extern int execlp (__const char *__file, __const char *__arg, ...) > __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1))); > > > > >extern int nice (int __inc) __attribute__ ((__nothrow__)); > > > > >extern void _exit (int __status) __attribute__ ((__noreturn__)); > > > > > ># 1 "/usr/include/bits/confname.h" 1 3 4 ># 26 "/usr/include/bits/confname.h" 3 4 >enum > { > _PC_LINK_MAX, > > _PC_MAX_CANON, > > _PC_MAX_INPUT, > > _PC_NAME_MAX, > > _PC_PATH_MAX, > > _PC_PIPE_BUF, > > _PC_CHOWN_RESTRICTED, > > _PC_NO_TRUNC, > > _PC_VDISABLE, > > _PC_SYNC_IO, > > _PC_ASYNC_IO, > > _PC_PRIO_IO, > > _PC_SOCK_MAXBUF, > > _PC_FILESIZEBITS, > > _PC_REC_INCR_XFER_SIZE, > > _PC_REC_MAX_XFER_SIZE, > > _PC_REC_MIN_XFER_SIZE, > > _PC_REC_XFER_ALIGN, > > _PC_ALLOC_SIZE_MIN, > > _PC_SYMLINK_MAX, > > _PC_2_SYMLINKS > > }; > > >enum > { > _SC_ARG_MAX, > > _SC_CHILD_MAX, > > _SC_CLK_TCK, > > _SC_NGROUPS_MAX, > > _SC_OPEN_MAX, > > _SC_STREAM_MAX, > > _SC_TZNAME_MAX, > > _SC_JOB_CONTROL, > > _SC_SAVED_IDS, > > _SC_REALTIME_SIGNALS, > > _SC_PRIORITY_SCHEDULING, > > _SC_TIMERS, > > _SC_ASYNCHRONOUS_IO, > > _SC_PRIORITIZED_IO, > > _SC_SYNCHRONIZED_IO, > > _SC_FSYNC, > > _SC_MAPPED_FILES, > > _SC_MEMLOCK, > > _SC_MEMLOCK_RANGE, > > _SC_MEMORY_PROTECTION, > > _SC_MESSAGE_PASSING, > > _SC_SEMAPHORES, > > _SC_SHARED_MEMORY_OBJECTS, > > _SC_AIO_LISTIO_MAX, > > _SC_AIO_MAX, > > _SC_AIO_PRIO_DELTA_MAX, > > _SC_DELAYTIMER_MAX, > > _SC_MQ_OPEN_MAX, > > _SC_MQ_PRIO_MAX, > > _SC_VERSION, > > _SC_PAGESIZE, > > > _SC_RTSIG_MAX, > > _SC_SEM_NSEMS_MAX, > > _SC_SEM_VALUE_MAX, > > _SC_SIGQUEUE_MAX, > > _SC_TIMER_MAX, > > > > > _SC_BC_BASE_MAX, > > _SC_BC_DIM_MAX, > > _SC_BC_SCALE_MAX, > > _SC_BC_STRING_MAX, > > _SC_COLL_WEIGHTS_MAX, > > _SC_EQUIV_CLASS_MAX, > > _SC_EXPR_NEST_MAX, > > _SC_LINE_MAX, > > _SC_RE_DUP_MAX, > > _SC_CHARCLASS_NAME_MAX, > > > _SC_2_VERSION, > > _SC_2_C_BIND, > > _SC_2_C_DEV, > > _SC_2_FORT_DEV, > > _SC_2_FORT_RUN, > > _SC_2_SW_DEV, > > _SC_2_LOCALEDEF, > > > _SC_PII, > > _SC_PII_XTI, > > _SC_PII_SOCKET, > > _SC_PII_INTERNET, > > _SC_PII_OSI, > > _SC_POLL, > > _SC_SELECT, > > _SC_UIO_MAXIOV, > > _SC_IOV_MAX = _SC_UIO_MAXIOV, > > _SC_PII_INTERNET_STREAM, > > _SC_PII_INTERNET_DGRAM, > > _SC_PII_OSI_COTS, > > _SC_PII_OSI_CLTS, > > _SC_PII_OSI_M, > > _SC_T_IOV_MAX, > > > > _SC_THREADS, > > _SC_THREAD_SAFE_FUNCTIONS, > > _SC_GETGR_R_SIZE_MAX, > > _SC_GETPW_R_SIZE_MAX, > > _SC_LOGIN_NAME_MAX, > > _SC_TTY_NAME_MAX, > > _SC_THREAD_DESTRUCTOR_ITERATIONS, > > _SC_THREAD_KEYS_MAX, > > _SC_THREAD_STACK_MIN, > > _SC_THREAD_THREADS_MAX, > > _SC_THREAD_ATTR_STACKADDR, > > _SC_THREAD_ATTR_STACKSIZE, > > _SC_THREAD_PRIORITY_SCHEDULING, > > _SC_THREAD_PRIO_INHERIT, > > _SC_THREAD_PRIO_PROTECT, > > _SC_THREAD_PROCESS_SHARED, > > > _SC_NPROCESSORS_CONF, > > _SC_NPROCESSORS_ONLN, > > _SC_PHYS_PAGES, > > _SC_AVPHYS_PAGES, > > _SC_ATEXIT_MAX, > > _SC_PASS_MAX, > > > _SC_XOPEN_VERSION, > > _SC_XOPEN_XCU_VERSION, > > _SC_XOPEN_UNIX, > > _SC_XOPEN_CRYPT, > > _SC_XOPEN_ENH_I18N, > > _SC_XOPEN_SHM, > > > _SC_2_CHAR_TERM, > > _SC_2_C_VERSION, > > _SC_2_UPE, > > > _SC_XOPEN_XPG2, > > _SC_XOPEN_XPG3, > > _SC_XOPEN_XPG4, > > > _SC_CHAR_BIT, > > _SC_CHAR_MAX, > > _SC_CHAR_MIN, > > _SC_INT_MAX, > > _SC_INT_MIN, > > _SC_LONG_BIT, > > _SC_WORD_BIT, > > _SC_MB_LEN_MAX, > > _SC_NZERO, > > _SC_SSIZE_MAX, > > _SC_SCHAR_MAX, > > _SC_SCHAR_MIN, > > _SC_SHRT_MAX, > > _SC_SHRT_MIN, > > _SC_UCHAR_MAX, > > _SC_UINT_MAX, > > _SC_ULONG_MAX, > > _SC_USHRT_MAX, > > > _SC_NL_ARGMAX, > > _SC_NL_LANGMAX, > > _SC_NL_MSGMAX, > > _SC_NL_NMAX, > > _SC_NL_SETMAX, > > _SC_NL_TEXTMAX, > > > _SC_XBS5_ILP32_OFF32, > > _SC_XBS5_ILP32_OFFBIG, > > _SC_XBS5_LP64_OFF64, > > _SC_XBS5_LPBIG_OFFBIG, > > > _SC_XOPEN_LEGACY, > > _SC_XOPEN_REALTIME, > > _SC_XOPEN_REALTIME_THREADS, > > > _SC_ADVISORY_INFO, > > _SC_BARRIERS, > > _SC_BASE, > > _SC_C_LANG_SUPPORT, > > _SC_C_LANG_SUPPORT_R, > > _SC_CLOCK_SELECTION, > > _SC_CPUTIME, > > _SC_THREAD_CPUTIME, > > _SC_DEVICE_IO, > > _SC_DEVICE_SPECIFIC, > > _SC_DEVICE_SPECIFIC_R, > > _SC_FD_MGMT, > > _SC_FIFO, > > _SC_PIPE, > > _SC_FILE_ATTRIBUTES, > > _SC_FILE_LOCKING, > > _SC_FILE_SYSTEM, > > _SC_MONOTONIC_CLOCK, > > _SC_MULTI_PROCESS, > > _SC_SINGLE_PROCESS, > > _SC_NETWORKING, > > _SC_READER_WRITER_LOCKS, > > _SC_SPIN_LOCKS, > > _SC_REGEXP, > > _SC_REGEX_VERSION, > > _SC_SHELL, > > _SC_SIGNALS, > > _SC_SPAWN, > > _SC_SPORADIC_SERVER, > > _SC_THREAD_SPORADIC_SERVER, > > _SC_SYSTEM_DATABASE, > > _SC_SYSTEM_DATABASE_R, > > _SC_TIMEOUTS, > > _SC_TYPED_MEMORY_OBJECTS, > > _SC_USER_GROUPS, > > _SC_USER_GROUPS_R, > > _SC_2_PBS, > > _SC_2_PBS_ACCOUNTING, > > _SC_2_PBS_LOCATE, > > _SC_2_PBS_MESSAGE, > > _SC_2_PBS_TRACK, > > _SC_SYMLOOP_MAX, > > _SC_STREAMS, > > _SC_2_PBS_CHECKPOINT, > > > _SC_V6_ILP32_OFF32, > > _SC_V6_ILP32_OFFBIG, > > _SC_V6_LP64_OFF64, > > _SC_V6_LPBIG_OFFBIG, > > > _SC_HOST_NAME_MAX, > > _SC_TRACE, > > _SC_TRACE_EVENT_FILTER, > > _SC_TRACE_INHERIT, > > _SC_TRACE_LOG, > > > _SC_LEVEL1_ICACHE_SIZE, > > _SC_LEVEL1_ICACHE_ASSOC, > > _SC_LEVEL1_ICACHE_LINESIZE, > > _SC_LEVEL1_DCACHE_SIZE, > > _SC_LEVEL1_DCACHE_ASSOC, > > _SC_LEVEL1_DCACHE_LINESIZE, > > _SC_LEVEL2_CACHE_SIZE, > > _SC_LEVEL2_CACHE_ASSOC, > > _SC_LEVEL2_CACHE_LINESIZE, > > _SC_LEVEL3_CACHE_SIZE, > > _SC_LEVEL3_CACHE_ASSOC, > > _SC_LEVEL3_CACHE_LINESIZE, > > _SC_LEVEL4_CACHE_SIZE, > > _SC_LEVEL4_CACHE_ASSOC, > > _SC_LEVEL4_CACHE_LINESIZE, > > > > _SC_IPV6 = _SC_LEVEL1_ICACHE_SIZE + 50, > > _SC_RAW_SOCKETS > > }; > > >enum > { > _CS_PATH, > > > _CS_V6_WIDTH_RESTRICTED_ENVS, > > > _CS_GNU_LIBC_VERSION, > > _CS_GNU_LIBPTHREAD_VERSION, > > > _CS_LFS_CFLAGS = 1000, > > _CS_LFS_LDFLAGS, > > _CS_LFS_LIBS, > > _CS_LFS_LINTFLAGS, > > _CS_LFS64_CFLAGS, > > _CS_LFS64_LDFLAGS, > > _CS_LFS64_LIBS, > > _CS_LFS64_LINTFLAGS, > > > _CS_XBS5_ILP32_OFF32_CFLAGS = 1100, > > _CS_XBS5_ILP32_OFF32_LDFLAGS, > > _CS_XBS5_ILP32_OFF32_LIBS, > > _CS_XBS5_ILP32_OFF32_LINTFLAGS, > > _CS_XBS5_ILP32_OFFBIG_CFLAGS, > > _CS_XBS5_ILP32_OFFBIG_LDFLAGS, > > _CS_XBS5_ILP32_OFFBIG_LIBS, > > _CS_XBS5_ILP32_OFFBIG_LINTFLAGS, > > _CS_XBS5_LP64_OFF64_CFLAGS, > > _CS_XBS5_LP64_OFF64_LDFLAGS, > > _CS_XBS5_LP64_OFF64_LIBS, > > _CS_XBS5_LP64_OFF64_LINTFLAGS, > > _CS_XBS5_LPBIG_OFFBIG_CFLAGS, > > _CS_XBS5_LPBIG_OFFBIG_LDFLAGS, > > _CS_XBS5_LPBIG_OFFBIG_LIBS, > > _CS_XBS5_LPBIG_OFFBIG_LINTFLAGS, > > > _CS_POSIX_V6_ILP32_OFF32_CFLAGS, > > _CS_POSIX_V6_ILP32_OFF32_LDFLAGS, > > _CS_POSIX_V6_ILP32_OFF32_LIBS, > > _CS_POSIX_V6_ILP32_OFF32_LINTFLAGS, > > _CS_POSIX_V6_ILP32_OFFBIG_CFLAGS, > > _CS_POSIX_V6_ILP32_OFFBIG_LDFLAGS, > > _CS_POSIX_V6_ILP32_OFFBIG_LIBS, > > _CS_POSIX_V6_ILP32_OFFBIG_LINTFLAGS, > > _CS_POSIX_V6_LP64_OFF64_CFLAGS, > > _CS_POSIX_V6_LP64_OFF64_LDFLAGS, > > _CS_POSIX_V6_LP64_OFF64_LIBS, > > _CS_POSIX_V6_LP64_OFF64_LINTFLAGS, > > _CS_POSIX_V6_LPBIG_OFFBIG_CFLAGS, > > _CS_POSIX_V6_LPBIG_OFFBIG_LDFLAGS, > > _CS_POSIX_V6_LPBIG_OFFBIG_LIBS, > > _CS_POSIX_V6_LPBIG_OFFBIG_LINTFLAGS > > }; ># 531 "/usr/include/unistd.h" 2 3 4 > > >extern long int pathconf (__const char *__path, int __name) > __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1))); > > >extern long int fpathconf (int __fd, int __name) __attribute__ ((__nothrow__)); > > >extern long int sysconf (int __name) __attribute__ ((__nothrow__)) __attribute__ ((__const__)); > > > >extern size_t confstr (int __name, char *__buf, size_t __len) __attribute__ ((__nothrow__)); > > > > >extern __pid_t getpid (void) __attribute__ ((__nothrow__)); > > >extern __pid_t getppid (void) __attribute__ ((__nothrow__)); > > > > >extern __pid_t getpgrp (void) __attribute__ ((__nothrow__)); ># 567 "/usr/include/unistd.h" 3 4 >extern __pid_t __getpgid (__pid_t __pid) __attribute__ ((__nothrow__)); > >extern __pid_t getpgid (__pid_t __pid) __attribute__ ((__nothrow__)); > > > > > > >extern int setpgid (__pid_t __pid, __pid_t __pgid) __attribute__ ((__nothrow__)); ># 593 "/usr/include/unistd.h" 3 4 >extern int setpgrp (void) __attribute__ ((__nothrow__)); ># 610 "/usr/include/unistd.h" 3 4 >extern __pid_t setsid (void) __attribute__ ((__nothrow__)); > > > >extern __pid_t getsid (__pid_t __pid) __attribute__ ((__nothrow__)); > > > >extern __uid_t getuid (void) __attribute__ ((__nothrow__)); > > >extern __uid_t geteuid (void) __attribute__ ((__nothrow__)); > > >extern __gid_t getgid (void) __attribute__ ((__nothrow__)); > > >extern __gid_t getegid (void) __attribute__ ((__nothrow__)); > > > > >extern int getgroups (int __size, __gid_t __list[]) __attribute__ ((__nothrow__)); > > > >extern int group_member (__gid_t __gid) __attribute__ ((__nothrow__)); > > > > > > >extern int setuid (__uid_t __uid) __attribute__ ((__nothrow__)); > > > > >extern int setreuid (__uid_t __ruid, __uid_t __euid) __attribute__ ((__nothrow__)); > > > > >extern int seteuid (__uid_t __uid) __attribute__ ((__nothrow__)); > > > > > > >extern int setgid (__gid_t __gid) __attribute__ ((__nothrow__)); > > > > >extern int setregid (__gid_t __rgid, __gid_t __egid) __attribute__ ((__nothrow__)); > > > > >extern int setegid (__gid_t __gid) __attribute__ ((__nothrow__)); > > > > > >extern int getresuid (__uid_t *__euid, __uid_t *__ruid, __uid_t *__suid); > > > >extern int getresgid (__gid_t *__egid, __gid_t *__rgid, __gid_t *__sgid); > > > >extern int setresuid (__uid_t __euid, __uid_t __ruid, __uid_t __suid); > > > >extern int setresgid (__gid_t __egid, __gid_t __rgid, __gid_t __sgid); > > > > > > >extern __pid_t fork (void) __attribute__ ((__nothrow__)); > > > > > > >extern __pid_t vfork (void) __attribute__ ((__nothrow__)); > > > > > >extern char *ttyname (int __fd) __attribute__ ((__nothrow__)); > > > >extern int ttyname_r (int __fd, char *__buf, size_t __buflen) > __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (2))); > > > >extern int isatty (int __fd) __attribute__ ((__nothrow__)); > > > > > >extern int ttyslot (void) __attribute__ ((__nothrow__)); > > > > >extern int link (__const char *__from, __const char *__to) > __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1, 2))); > > > >extern int symlink (__const char *__from, __const char *__to) > __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1, 2))); > > > > >extern int readlink (__const char *__restrict __path, char *__restrict __buf, > size_t __len) __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1, 2))); > > > >extern int unlink (__const char *__name) __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1))); > > >extern int rmdir (__const char *__path) __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1))); > > > >extern __pid_t tcgetpgrp (int __fd) __attribute__ ((__nothrow__)); > > >extern int tcsetpgrp (int __fd, __pid_t __pgrp_id) __attribute__ ((__nothrow__)); > > > > > > >extern char *getlogin (void); > > > > > > > >extern int getlogin_r (char *__name, size_t __name_len) __attribute__ ((__nonnull__ (1))); > > > > >extern int setlogin (__const char *__name) __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1))); ># 783 "/usr/include/unistd.h" 3 4 ># 1 "/usr/include/getopt.h" 1 3 4 ># 59 "/usr/include/getopt.h" 3 4 >extern char *optarg; ># 73 "/usr/include/getopt.h" 3 4 >extern int optind; > > > > >extern int opterr; > > > >extern int optopt; ># 152 "/usr/include/getopt.h" 3 4 >extern int getopt (int ___argc, char *const *___argv, const char *__shortopts) > __attribute__ ((__nothrow__)); ># 784 "/usr/include/unistd.h" 2 3 4 > > > > > > > >extern int gethostname (char *__name, size_t __len) __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1))); > > > > > > >extern int sethostname (__const char *__name, size_t __len) > __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1))); > > > >extern int sethostid (long int __id) __attribute__ ((__nothrow__)); > > > > > >extern int getdomainname (char *__name, size_t __len) > __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1))); >extern int setdomainname (__const char *__name, size_t __len) > __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1))); > > > > > >extern int vhangup (void) __attribute__ ((__nothrow__)); > > >extern int revoke (__const char *__file) __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1))); > > > > > > > >extern int profil (unsigned short int *__sample_buffer, size_t __size, > size_t __offset, unsigned int __scale) > __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1))); > > > > > >extern int acct (__const char *__name) __attribute__ ((__nothrow__)); > > > >extern char *getusershell (void) __attribute__ ((__nothrow__)); >extern void endusershell (void) __attribute__ ((__nothrow__)); >extern void setusershell (void) __attribute__ ((__nothrow__)); > > > > > >extern int daemon (int __nochdir, int __noclose) __attribute__ ((__nothrow__)); > > > > > > >extern int chroot (__const char *__path) __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1))); > > > >extern char *getpass (__const char *__prompt) __attribute__ ((__nonnull__ (1))); ># 869 "/usr/include/unistd.h" 3 4 >extern int fsync (int __fd); > > > > > > >extern long int gethostid (void); > > >extern void sync (void) __attribute__ ((__nothrow__)); > > > > >extern int getpagesize (void) __attribute__ ((__nothrow__)) __attribute__ ((__const__)); > > > > >extern int getdtablesize (void) __attribute__ ((__nothrow__)); ># 898 "/usr/include/unistd.h" 3 4 >extern int truncate (__const char *__file, __off64_t __length) __asm__ ("" "truncate64") __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1))); > > > > > > > >extern int truncate64 (__const char *__file, __off64_t __length) > __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1))); ># 919 "/usr/include/unistd.h" 3 4 >extern int ftruncate (int __fd, __off64_t __length) __asm__ ("" "ftruncate64") __attribute__ ((__nothrow__)); > > > > > > >extern int ftruncate64 (int __fd, __off64_t __length) __attribute__ ((__nothrow__)); ># 936 "/usr/include/unistd.h" 3 4 >extern int brk (void *__addr) __attribute__ ((__nothrow__)); > > > > > >extern void *sbrk (intptr_t __delta) __attribute__ ((__nothrow__)); ># 957 "/usr/include/unistd.h" 3 4 >extern long int syscall (long int __sysno, ...) __attribute__ ((__nothrow__)); ># 983 "/usr/include/unistd.h" 3 4 >extern int lockf (int __fd, int __cmd, __off64_t __len) __asm__ ("" "lockf64"); > > > > > > >extern int lockf64 (int __fd, int __cmd, __off64_t __len); ># 1011 "/usr/include/unistd.h" 3 4 >extern int fdatasync (int __fildes) __attribute__ ((__nothrow__)); > > > > > > > >extern char *crypt (__const char *__key, __const char *__salt) > __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1, 2))); > > > >extern void encrypt (char *__block, int __edflag) __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1))); > > > > > > >extern void swab (__const void *__restrict __from, void *__restrict __to, > ssize_t __n) __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1, 2))); > > > > > > > >extern char *ctermid (char *__s) __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1))); > > > ># 45 "/home/work/.jumbo/include/python2.7/Python.h" 2 ># 56 "/home/work/.jumbo/include/python2.7/Python.h" ># 1 "/usr/include/assert.h" 1 3 4 ># 57 "/home/work/.jumbo/include/python2.7/Python.h" 2 > ># 1 "/home/work/.jumbo/include/python2.7/pyport.h" 1 ># 9 "/home/work/.jumbo/include/python2.7/pyport.h" ># 1 "/usr/include/inttypes.h" 1 3 4 ># 28 "/usr/include/inttypes.h" 3 4 ># 1 "/usr/include/stdint.h" 1 3 4 ># 28 "/usr/include/stdint.h" 3 4 ># 1 "/usr/include/bits/wordsize.h" 1 3 4 ># 29 "/usr/include/stdint.h" 2 3 4 ># 49 "/usr/include/stdint.h" 3 4 >typedef unsigned char uint8_t; >typedef unsigned short int uint16_t; > >typedef unsigned int uint32_t; > > > >typedef unsigned long int uint64_t; ># 66 "/usr/include/stdint.h" 3 4 >typedef signed char int_least8_t; >typedef short int int_least16_t; >typedef int int_least32_t; > >typedef long int int_least64_t; > > > > > > >typedef unsigned char uint_least8_t; >typedef unsigned short int uint_least16_t; >typedef unsigned int uint_least32_t; > >typedef unsigned long int uint_least64_t; ># 91 "/usr/include/stdint.h" 3 4 >typedef signed char int_fast8_t; > >typedef long int int_fast16_t; >typedef long int int_fast32_t; >typedef long int int_fast64_t; ># 104 "/usr/include/stdint.h" 3 4 >typedef unsigned char uint_fast8_t; > >typedef unsigned long int uint_fast16_t; >typedef unsigned long int uint_fast32_t; >typedef unsigned long int uint_fast64_t; ># 123 "/usr/include/stdint.h" 3 4 >typedef unsigned long int uintptr_t; ># 135 "/usr/include/stdint.h" 3 4 >typedef long int intmax_t; >typedef unsigned long int uintmax_t; ># 29 "/usr/include/inttypes.h" 2 3 4 > > > > > > >typedef int __gwchar_t; ># 274 "/usr/include/inttypes.h" 3 4 > > > > > >typedef struct > { > long int quot; > long int rem; > } imaxdiv_t; ># 298 "/usr/include/inttypes.h" 3 4 >extern intmax_t imaxabs (intmax_t __n) __attribute__ ((__nothrow__)) __attribute__ ((__const__)); > > >extern imaxdiv_t imaxdiv (intmax_t __numer, intmax_t __denom) > __attribute__ ((__nothrow__)) __attribute__ ((__const__)); > > >extern intmax_t strtoimax (__const char *__restrict __nptr, > char **__restrict __endptr, int __base) __attribute__ ((__nothrow__)); > > >extern uintmax_t strtoumax (__const char *__restrict __nptr, > char ** __restrict __endptr, int __base) __attribute__ ((__nothrow__)); > > >extern intmax_t wcstoimax (__const __gwchar_t *__restrict __nptr, > __gwchar_t **__restrict __endptr, int __base) > __attribute__ ((__nothrow__)); > > >extern uintmax_t wcstoumax (__const __gwchar_t *__restrict __nptr, > __gwchar_t ** __restrict __endptr, int __base) > __attribute__ ((__nothrow__)); ># 333 "/usr/include/inttypes.h" 3 4 >extern __inline intmax_t >__attribute__ ((__nothrow__)) strtoimax (__const char *__restrict nptr, char **__restrict endptr, int base) > >{ > return __strtol_internal (nptr, endptr, base, 0); >} ># 348 "/usr/include/inttypes.h" 3 4 >extern __inline uintmax_t >__attribute__ ((__nothrow__)) strtoumax (__const char *__restrict nptr, char **__restrict endptr, int base) > >{ > return __strtoul_internal (nptr, endptr, base, 0); >} > > > >extern long int __wcstol_internal (__const __gwchar_t * __restrict __nptr, > __gwchar_t **__restrict __endptr, > int __base, int __group) __attribute__ ((__nothrow__)); > > >extern __inline intmax_t >__attribute__ ((__nothrow__)) wcstoimax (__const __gwchar_t *__restrict nptr, __gwchar_t **__restrict endptr, int base) > >{ > return __wcstol_internal (nptr, endptr, base, 0); >} > > > > >extern unsigned long int __wcstoul_internal (__const __gwchar_t * > __restrict __nptr, > __gwchar_t ** > __restrict __endptr, > int __base, int __group) __attribute__ ((__nothrow__)); > > >extern __inline uintmax_t >__attribute__ ((__nothrow__)) wcstoumax (__const __gwchar_t *__restrict nptr, __gwchar_t **__restrict endptr, int base) > >{ > return __wcstoul_internal (nptr, endptr, base, 0); >} ># 459 "/usr/include/inttypes.h" 3 4 > ># 10 "/home/work/.jumbo/include/python2.7/pyport.h" 2 ># 146 "/home/work/.jumbo/include/python2.7/pyport.h" >typedef uintptr_t Py_uintptr_t; >typedef intptr_t Py_intptr_t; ># 170 "/home/work/.jumbo/include/python2.7/pyport.h" >typedef ssize_t Py_ssize_t; ># 312 "/home/work/.jumbo/include/python2.7/pyport.h" ># 1 "/usr/include/math.h" 1 3 4 ># 29 "/usr/include/math.h" 3 4 > > > > ># 1 "/usr/include/bits/huge_val.h" 1 3 4 ># 34 "/usr/include/math.h" 2 3 4 > ># 1 "/usr/include/bits/huge_valf.h" 1 3 4 ># 36 "/usr/include/math.h" 2 3 4 ># 1 "/usr/include/bits/huge_vall.h" 1 3 4 ># 37 "/usr/include/math.h" 2 3 4 > > ># 1 "/usr/include/bits/inf.h" 1 3 4 ># 40 "/usr/include/math.h" 2 3 4 > > ># 1 "/usr/include/bits/nan.h" 1 3 4 ># 43 "/usr/include/math.h" 2 3 4 > > > ># 1 "/usr/include/bits/mathdef.h" 1 3 4 ># 26 "/usr/include/bits/mathdef.h" 3 4 ># 1 "/usr/include/bits/wordsize.h" 1 3 4 ># 27 "/usr/include/bits/mathdef.h" 2 3 4 > > > > >typedef float float_t; >typedef double double_t; ># 47 "/usr/include/math.h" 2 3 4 ># 70 "/usr/include/math.h" 3 4 ># 1 "/usr/include/bits/mathcalls.h" 1 3 4 ># 53 "/usr/include/bits/mathcalls.h" 3 4 > > >extern double acos (double __x) __attribute__ ((__nothrow__)); extern double __acos (double __x) __attribute__ ((__nothrow__)); > >extern double asin (double __x) __attribute__ ((__nothrow__)); extern double __asin (double __x) __attribute__ ((__nothrow__)); > >extern double atan (double __x) __attribute__ ((__nothrow__)); extern double __atan (double __x) __attribute__ ((__nothrow__)); > >extern double atan2 (double __y, double __x) __attribute__ ((__nothrow__)); extern double __atan2 (double __y, double __x) __attribute__ ((__nothrow__)); > > >extern double cos (double __x) __attribute__ ((__nothrow__)); extern double __cos (double __x) __attribute__ ((__nothrow__)); > >extern double sin (double __x) __attribute__ ((__nothrow__)); extern double __sin (double __x) __attribute__ ((__nothrow__)); > >extern double tan (double __x) __attribute__ ((__nothrow__)); extern double __tan (double __x) __attribute__ ((__nothrow__)); > > > > >extern double cosh (double __x) __attribute__ ((__nothrow__)); extern double __cosh (double __x) __attribute__ ((__nothrow__)); > >extern double sinh (double __x) __attribute__ ((__nothrow__)); extern double __sinh (double __x) __attribute__ ((__nothrow__)); > >extern double tanh (double __x) __attribute__ ((__nothrow__)); extern double __tanh (double __x) __attribute__ ((__nothrow__)); > > > > >extern void sincos (double __x, double *__sinx, double *__cosx) __attribute__ ((__nothrow__)); extern void __sincos (double __x, double *__sinx, double *__cosx) __attribute__ ((__nothrow__)); > > > > > > >extern double acosh (double __x) __attribute__ ((__nothrow__)); extern double __acosh (double __x) __attribute__ ((__nothrow__)); > >extern double asinh (double __x) __attribute__ ((__nothrow__)); extern double __asinh (double __x) __attribute__ ((__nothrow__)); > >extern double atanh (double __x) __attribute__ ((__nothrow__)); extern double __atanh (double __x) __attribute__ ((__nothrow__)); > > > > > > > >extern double exp (double __x) __attribute__ ((__nothrow__)); extern double __exp (double __x) __attribute__ ((__nothrow__)); > > >extern double frexp (double __x, int *__exponent) __attribute__ ((__nothrow__)); extern double __frexp (double __x, int *__exponent) __attribute__ ((__nothrow__)); > > >extern double ldexp (double __x, int __exponent) __attribute__ ((__nothrow__)); extern double __ldexp (double __x, int __exponent) __attribute__ ((__nothrow__)); > > >extern double log (double __x) __attribute__ ((__nothrow__)); extern double __log (double __x) __attribute__ ((__nothrow__)); > > >extern double log10 (double __x) __attribute__ ((__nothrow__)); extern double __log10 (double __x) __attribute__ ((__nothrow__)); > > >extern double modf (double __x, double *__iptr) __attribute__ ((__nothrow__)); extern double __modf (double __x, double *__iptr) __attribute__ ((__nothrow__)); > > > > >extern double exp10 (double __x) __attribute__ ((__nothrow__)); extern double __exp10 (double __x) __attribute__ ((__nothrow__)); > >extern double pow10 (double __x) __attribute__ ((__nothrow__)); extern double __pow10 (double __x) __attribute__ ((__nothrow__)); > > > > > >extern double expm1 (double __x) __attribute__ ((__nothrow__)); extern double __expm1 (double __x) __attribute__ ((__nothrow__)); > > >extern double log1p (double __x) __attribute__ ((__nothrow__)); extern double __log1p (double __x) __attribute__ ((__nothrow__)); > > >extern double logb (double __x) __attribute__ ((__nothrow__)); extern double __logb (double __x) __attribute__ ((__nothrow__)); > > > > > > >extern double exp2 (double __x) __attribute__ ((__nothrow__)); extern double __exp2 (double __x) __attribute__ ((__nothrow__)); > > >extern double log2 (double __x) __attribute__ ((__nothrow__)); extern double __log2 (double __x) __attribute__ ((__nothrow__)); > > > > > > > > >extern double pow (double __x, double __y) __attribute__ ((__nothrow__)); extern double __pow (double __x, double __y) __attribute__ ((__nothrow__)); > > >extern double sqrt (double __x) __attribute__ ((__nothrow__)); extern double __sqrt (double __x) __attribute__ ((__nothrow__)); > > > > > >extern double hypot (double __x, double __y) __attribute__ ((__nothrow__)); extern double __hypot (double __x, double __y) __attribute__ ((__nothrow__)); > > > > > > >extern double cbrt (double __x) __attribute__ ((__nothrow__)); extern double __cbrt (double __x) __attribute__ ((__nothrow__)); > > > > > > > > >extern double ceil (double __x) __attribute__ ((__nothrow__)) __attribute__ ((__const__)); extern double __ceil (double __x) __attribute__ ((__nothrow__)) __attribute__ ((__const__)); > > >extern double fabs (double __x) __attribute__ ((__nothrow__)) __attribute__ ((__const__)); extern double __fabs (double __x) __attribute__ ((__nothrow__)) __attribute__ ((__const__)); > > >extern double floor (double __x) __attribute__ ((__nothrow__)) __attribute__ ((__const__)); extern double __floor (double __x) __attribute__ ((__nothrow__)) __attribute__ ((__const__)); > > >extern double fmod (double __x, double __y) __attribute__ ((__nothrow__)); extern double __fmod (double __x, double __y) __attribute__ ((__nothrow__)); > > > > >extern int __isinf (double __value) __attribute__ ((__nothrow__)) __attribute__ ((__const__)); > > >extern int __finite (double __value) __attribute__ ((__nothrow__)) __attribute__ ((__const__)); > > > > > >extern int isinf (double __value) __attribute__ ((__nothrow__)) __attribute__ ((__const__)); > > >extern int finite (double __value) __attribute__ ((__nothrow__)) __attribute__ ((__const__)); > > >extern double drem (double __x, double __y) __attribute__ ((__nothrow__)); extern double __drem (double __x, double __y) __attribute__ ((__nothrow__)); > > > >extern double significand (double __x) __attribute__ ((__nothrow__)); extern double __significand (double __x) __attribute__ ((__nothrow__)); > > > > > >extern double copysign (double __x, double __y) __attribute__ ((__nothrow__)) __attribute__ ((__const__)); extern double __copysign (double __x, double __y) __attribute__ ((__nothrow__)) __attribute__ ((__const__)); > > > > > > >extern double nan (__const char *__tagb) __attribute__ ((__nothrow__)) __attribute__ ((__const__)); extern double __nan (__const char *__tagb) __attribute__ ((__nothrow__)) __attribute__ ((__const__)); > > > > > >extern int __isnan (double __value) __attribute__ ((__nothrow__)) __attribute__ ((__const__)); > > > >extern int isnan (double __value) __attribute__ ((__nothrow__)) __attribute__ ((__const__)); > > >extern double j0 (double) __attribute__ ((__nothrow__)); extern double __j0 (double) __attribute__ ((__nothrow__)); >extern double j1 (double) __attribute__ ((__nothrow__)); extern double __j1 (double) __attribute__ ((__nothrow__)); >extern double jn (int, double) __attribute__ ((__nothrow__)); extern double __jn (int, double) __attribute__ ((__nothrow__)); >extern double y0 (double) __attribute__ ((__nothrow__)); extern double __y0 (double) __attribute__ ((__nothrow__)); >extern double y1 (double) __attribute__ ((__nothrow__)); extern double __y1 (double) __attribute__ ((__nothrow__)); >extern double yn (int, double) __attribute__ ((__nothrow__)); extern double __yn (int, double) __attribute__ ((__nothrow__)); > > > > > > >extern double erf (double) __attribute__ ((__nothrow__)); extern double __erf (double) __attribute__ ((__nothrow__)); >extern double erfc (double) __attribute__ ((__nothrow__)); extern double __erfc (double) __attribute__ ((__nothrow__)); >extern double lgamma (double) __attribute__ ((__nothrow__)); extern double __lgamma (double) __attribute__ ((__nothrow__)); > > > > > > >extern double tgamma (double) __attribute__ ((__nothrow__)); extern double __tgamma (double) __attribute__ ((__nothrow__)); > > > > > >extern double gamma (double) __attribute__ ((__nothrow__)); extern double __gamma (double) __attribute__ ((__nothrow__)); > > > > > > >extern double lgamma_r (double, int *__signgamp) __attribute__ ((__nothrow__)); extern double __lgamma_r (double, int *__signgamp) __attribute__ ((__nothrow__)); > > > > > > > >extern double rint (double __x) __attribute__ ((__nothrow__)); extern double __rint (double __x) __attribute__ ((__nothrow__)); > > >extern double nextafter (double __x, double __y) __attribute__ ((__nothrow__)) __attribute__ ((__const__)); extern double __nextafter (double __x, double __y) __attribute__ ((__nothrow__)) __attribute__ ((__const__)); > >extern double nexttoward (double __x, long double __y) __attribute__ ((__nothrow__)) __attribute__ ((__const__)); extern double __nexttoward (double __x, long double __y) __attribute__ ((__nothrow__)) __attribute__ ((__const__)); > > > >extern double remainder (double __x, double __y) __attribute__ ((__nothrow__)); extern double __remainder (double __x, double __y) __attribute__ ((__nothrow__)); > > > >extern double scalbn (double __x, int __n) __attribute__ ((__nothrow__)); extern double __scalbn (double __x, int __n) __attribute__ ((__nothrow__)); > > > >extern int ilogb (double __x) __attribute__ ((__nothrow__)); extern int __ilogb (double __x) __attribute__ ((__nothrow__)); > > > > >extern double scalbln (double __x, long int __n) __attribute__ ((__nothrow__)); extern double __scalbln (double __x, long int __n) __attribute__ ((__nothrow__)); > > > >extern double nearbyint (double __x) __attribute__ ((__nothrow__)); extern double __nearbyint (double __x) __attribute__ ((__nothrow__)); > > > >extern double round (double __x) __attribute__ ((__nothrow__)) __attribute__ ((__const__)); extern double __round (double __x) __attribute__ ((__nothrow__)) __attribute__ ((__const__)); > > > >extern double trunc (double __x) __attribute__ ((__nothrow__)) __attribute__ ((__const__)); extern double __trunc (double __x) __attribute__ ((__nothrow__)) __attribute__ ((__const__)); > > > > >extern double remquo (double __x, double __y, int *__quo) __attribute__ ((__nothrow__)); extern double __remquo (double __x, double __y, int *__quo) __attribute__ ((__nothrow__)); > > > > > > >extern long int lrint (double __x) __attribute__ ((__nothrow__)); extern long int __lrint (double __x) __attribute__ ((__nothrow__)); >extern long long int llrint (double __x) __attribute__ ((__nothrow__)); extern long long int __llrint (double __x) __attribute__ ((__nothrow__)); > > > >extern long int lround (double __x) __attribute__ ((__nothrow__)); extern long int __lround (double __x) __attribute__ ((__nothrow__)); >extern long long int llround (double __x) __attribute__ ((__nothrow__)); extern long long int __llround (double __x) __attribute__ ((__nothrow__)); > > > >extern double fdim (double __x, double __y) __attribute__ ((__nothrow__)); extern double __fdim (double __x, double __y) __attribute__ ((__nothrow__)); > > >extern double fmax (double __x, double __y) __attribute__ ((__nothrow__)); extern double __fmax (double __x, double __y) __attribute__ ((__nothrow__)); > > >extern double fmin (double __x, double __y) __attribute__ ((__nothrow__)); extern double __fmin (double __x, double __y) __attribute__ ((__nothrow__)); > > > >extern int __fpclassify (double __value) __attribute__ ((__nothrow__)) > __attribute__ ((__const__)); > > >extern int __signbit (double __value) __attribute__ ((__nothrow__)) > __attribute__ ((__const__)); > > > >extern double fma (double __x, double __y, double __z) __attribute__ ((__nothrow__)); extern double __fma (double __x, double __y, double __z) __attribute__ ((__nothrow__)); > > > > >extern double scalb (double __x, double __n) __attribute__ ((__nothrow__)); extern double __scalb (double __x, double __n) __attribute__ ((__nothrow__)); ># 71 "/usr/include/math.h" 2 3 4 ># 93 "/usr/include/math.h" 3 4 ># 1 "/usr/include/bits/mathcalls.h" 1 3 4 ># 53 "/usr/include/bits/mathcalls.h" 3 4 > > >extern float acosf (float __x) __attribute__ ((__nothrow__)); extern float __acosf (float __x) __attribute__ ((__nothrow__)); > >extern float asinf (float __x) __attribute__ ((__nothrow__)); extern float __asinf (float __x) __attribute__ ((__nothrow__)); > >extern float atanf (float __x) __attribute__ ((__nothrow__)); extern float __atanf (float __x) __attribute__ ((__nothrow__)); > >extern float atan2f (float __y, float __x) __attribute__ ((__nothrow__)); extern float __atan2f (float __y, float __x) __attribute__ ((__nothrow__)); > > >extern float cosf (float __x) __attribute__ ((__nothrow__)); extern float __cosf (float __x) __attribute__ ((__nothrow__)); > >extern float sinf (float __x) __attribute__ ((__nothrow__)); extern float __sinf (float __x) __attribute__ ((__nothrow__)); > >extern float tanf (float __x) __attribute__ ((__nothrow__)); extern float __tanf (float __x) __attribute__ ((__nothrow__)); > > > > >extern float coshf (float __x) __attribute__ ((__nothrow__)); extern float __coshf (float __x) __attribute__ ((__nothrow__)); > >extern float sinhf (float __x) __attribute__ ((__nothrow__)); extern float __sinhf (float __x) __attribute__ ((__nothrow__)); > >extern float tanhf (float __x) __attribute__ ((__nothrow__)); extern float __tanhf (float __x) __attribute__ ((__nothrow__)); > > > > >extern void sincosf (float __x, float *__sinx, float *__cosx) __attribute__ ((__nothrow__)); extern void __sincosf (float __x, float *__sinx, float *__cosx) __attribute__ ((__nothrow__)); > > > > > > >extern float acoshf (float __x) __attribute__ ((__nothrow__)); extern float __acoshf (float __x) __attribute__ ((__nothrow__)); > >extern float asinhf (float __x) __attribute__ ((__nothrow__)); extern float __asinhf (float __x) __attribute__ ((__nothrow__)); > >extern float atanhf (float __x) __attribute__ ((__nothrow__)); extern float __atanhf (float __x) __attribute__ ((__nothrow__)); > > > > > > > >extern float expf (float __x) __attribute__ ((__nothrow__)); extern float __expf (float __x) __attribute__ ((__nothrow__)); > > >extern float frexpf (float __x, int *__exponent) __attribute__ ((__nothrow__)); extern float __frexpf (float __x, int *__exponent) __attribute__ ((__nothrow__)); > > >extern float ldexpf (float __x, int __exponent) __attribute__ ((__nothrow__)); extern float __ldexpf (float __x, int __exponent) __attribute__ ((__nothrow__)); > > >extern float logf (float __x) __attribute__ ((__nothrow__)); extern float __logf (float __x) __attribute__ ((__nothrow__)); > > >extern float log10f (float __x) __attribute__ ((__nothrow__)); extern float __log10f (float __x) __attribute__ ((__nothrow__)); > > >extern float modff (float __x, float *__iptr) __attribute__ ((__nothrow__)); extern float __modff (float __x, float *__iptr) __attribute__ ((__nothrow__)); > > > > >extern float exp10f (float __x) __attribute__ ((__nothrow__)); extern float __exp10f (float __x) __attribute__ ((__nothrow__)); > >extern float pow10f (float __x) __attribute__ ((__nothrow__)); extern float __pow10f (float __x) __attribute__ ((__nothrow__)); > > > > > >extern float expm1f (float __x) __attribute__ ((__nothrow__)); extern float __expm1f (float __x) __attribute__ ((__nothrow__)); > > >extern float log1pf (float __x) __attribute__ ((__nothrow__)); extern float __log1pf (float __x) __attribute__ ((__nothrow__)); > > >extern float logbf (float __x) __attribute__ ((__nothrow__)); extern float __logbf (float __x) __attribute__ ((__nothrow__)); > > > > > > >extern float exp2f (float __x) __attribute__ ((__nothrow__)); extern float __exp2f (float __x) __attribute__ ((__nothrow__)); > > >extern float log2f (float __x) __attribute__ ((__nothrow__)); extern float __log2f (float __x) __attribute__ ((__nothrow__)); > > > > > > > > >extern float powf (float __x, float __y) __attribute__ ((__nothrow__)); extern float __powf (float __x, float __y) __attribute__ ((__nothrow__)); > > >extern float sqrtf (float __x) __attribute__ ((__nothrow__)); extern float __sqrtf (float __x) __attribute__ ((__nothrow__)); > > > > > >extern float hypotf (float __x, float __y) __attribute__ ((__nothrow__)); extern float __hypotf (float __x, float __y) __attribute__ ((__nothrow__)); > > > > > > >extern float cbrtf (float __x) __attribute__ ((__nothrow__)); extern float __cbrtf (float __x) __attribute__ ((__nothrow__)); > > > > > > > > >extern float ceilf (float __x) __attribute__ ((__nothrow__)) __attribute__ ((__const__)); extern float __ceilf (float __x) __attribute__ ((__nothrow__)) __attribute__ ((__const__)); > > >extern float fabsf (float __x) __attribute__ ((__nothrow__)) __attribute__ ((__const__)); extern float __fabsf (float __x) __attribute__ ((__nothrow__)) __attribute__ ((__const__)); > > >extern float floorf (float __x) __attribute__ ((__nothrow__)) __attribute__ ((__const__)); extern float __floorf (float __x) __attribute__ ((__nothrow__)) __attribute__ ((__const__)); > > >extern float fmodf (float __x, float __y) __attribute__ ((__nothrow__)); extern float __fmodf (float __x, float __y) __attribute__ ((__nothrow__)); > > > > >extern int __isinff (float __value) __attribute__ ((__nothrow__)) __attribute__ ((__const__)); > > >extern int __finitef (float __value) __attribute__ ((__nothrow__)) __attribute__ ((__const__)); > > > > > >extern int isinff (float __value) __attribute__ ((__nothrow__)) __attribute__ ((__const__)); > > >extern int finitef (float __value) __attribute__ ((__nothrow__)) __attribute__ ((__const__)); > > >extern float dremf (float __x, float __y) __attribute__ ((__nothrow__)); extern float __dremf (float __x, float __y) __attribute__ ((__nothrow__)); > > > >extern float significandf (float __x) __attribute__ ((__nothrow__)); extern float __significandf (float __x) __attribute__ ((__nothrow__)); > > > > > >extern float copysignf (float __x, float __y) __attribute__ ((__nothrow__)) __attribute__ ((__const__)); extern float __copysignf (float __x, float __y) __attribute__ ((__nothrow__)) __attribute__ ((__const__)); > > > > > > >extern float nanf (__const char *__tagb) __attribute__ ((__nothrow__)) __attribute__ ((__const__)); extern float __nanf (__const char *__tagb) __attribute__ ((__nothrow__)) __attribute__ ((__const__)); > > > > > >extern int __isnanf (float __value) __attribute__ ((__nothrow__)) __attribute__ ((__const__)); > > > >extern int isnanf (float __value) __attribute__ ((__nothrow__)) __attribute__ ((__const__)); > > >extern float j0f (float) __attribute__ ((__nothrow__)); extern float __j0f (float) __attribute__ ((__nothrow__)); >extern float j1f (float) __attribute__ ((__nothrow__)); extern float __j1f (float) __attribute__ ((__nothrow__)); >extern float jnf (int, float) __attribute__ ((__nothrow__)); extern float __jnf (int, float) __attribute__ ((__nothrow__)); >extern float y0f (float) __attribute__ ((__nothrow__)); extern float __y0f (float) __attribute__ ((__nothrow__)); >extern float y1f (float) __attribute__ ((__nothrow__)); extern float __y1f (float) __attribute__ ((__nothrow__)); >extern float ynf (int, float) __attribute__ ((__nothrow__)); extern float __ynf (int, float) __attribute__ ((__nothrow__)); > > > > > > >extern float erff (float) __attribute__ ((__nothrow__)); extern float __erff (float) __attribute__ ((__nothrow__)); >extern float erfcf (float) __attribute__ ((__nothrow__)); extern float __erfcf (float) __attribute__ ((__nothrow__)); >extern float lgammaf (float) __attribute__ ((__nothrow__)); extern float __lgammaf (float) __attribute__ ((__nothrow__)); > > > > > > >extern float tgammaf (float) __attribute__ ((__nothrow__)); extern float __tgammaf (float) __attribute__ ((__nothrow__)); > > > > > >extern float gammaf (float) __attribute__ ((__nothrow__)); extern float __gammaf (float) __attribute__ ((__nothrow__)); > > > > > > >extern float lgammaf_r (float, int *__signgamp) __attribute__ ((__nothrow__)); extern float __lgammaf_r (float, int *__signgamp) __attribute__ ((__nothrow__)); > > > > > > > >extern float rintf (float __x) __attribute__ ((__nothrow__)); extern float __rintf (float __x) __attribute__ ((__nothrow__)); > > >extern float nextafterf (float __x, float __y) __attribute__ ((__nothrow__)) __attribute__ ((__const__)); extern float __nextafterf (float __x, float __y) __attribute__ ((__nothrow__)) __attribute__ ((__const__)); > >extern float nexttowardf (float __x, long double __y) __attribute__ ((__nothrow__)) __attribute__ ((__const__)); extern float __nexttowardf (float __x, long double __y) __attribute__ ((__nothrow__)) __attribute__ ((__const__)); > > > >extern float remainderf (float __x, float __y) __attribute__ ((__nothrow__)); extern float __remainderf (float __x, float __y) __attribute__ ((__nothrow__)); > > > >extern float scalbnf (float __x, int __n) __attribute__ ((__nothrow__)); extern float __scalbnf (float __x, int __n) __attribute__ ((__nothrow__)); > > > >extern int ilogbf (float __x) __attribute__ ((__nothrow__)); extern int __ilogbf (float __x) __attribute__ ((__nothrow__)); > > > > >extern float scalblnf (float __x, long int __n) __attribute__ ((__nothrow__)); extern float __scalblnf (float __x, long int __n) __attribute__ ((__nothrow__)); > > > >extern float nearbyintf (float __x) __attribute__ ((__nothrow__)); extern float __nearbyintf (float __x) __attribute__ ((__nothrow__)); > > > >extern float roundf (float __x) __attribute__ ((__nothrow__)) __attribute__ ((__const__)); extern float __roundf (float __x) __attribute__ ((__nothrow__)) __attribute__ ((__const__)); > > > >extern float truncf (float __x) __attribute__ ((__nothrow__)) __attribute__ ((__const__)); extern float __truncf (float __x) __attribute__ ((__nothrow__)) __attribute__ ((__const__)); > > > > >extern float remquof (float __x, float __y, int *__quo) __attribute__ ((__nothrow__)); extern float __remquof (float __x, float __y, int *__quo) __attribute__ ((__nothrow__)); > > > > > > >extern long int lrintf (float __x) __attribute__ ((__nothrow__)); extern long int __lrintf (float __x) __attribute__ ((__nothrow__)); >extern long long int llrintf (float __x) __attribute__ ((__nothrow__)); extern long long int __llrintf (float __x) __attribute__ ((__nothrow__)); > > > >extern long int lroundf (float __x) __attribute__ ((__nothrow__)); extern long int __lroundf (float __x) __attribute__ ((__nothrow__)); >extern long long int llroundf (float __x) __attribute__ ((__nothrow__)); extern long long int __llroundf (float __x) __attribute__ ((__nothrow__)); > > > >extern float fdimf (float __x, float __y) __attribute__ ((__nothrow__)); extern float __fdimf (float __x, float __y) __attribute__ ((__nothrow__)); > > >extern float fmaxf (float __x, float __y) __attribute__ ((__nothrow__)); extern float __fmaxf (float __x, float __y) __attribute__ ((__nothrow__)); > > >extern float fminf (float __x, float __y) __attribute__ ((__nothrow__)); extern float __fminf (float __x, float __y) __attribute__ ((__nothrow__)); > > > >extern int __fpclassifyf (float __value) __attribute__ ((__nothrow__)) > __attribute__ ((__const__)); > > >extern int __signbitf (float __value) __attribute__ ((__nothrow__)) > __attribute__ ((__const__)); > > > >extern float fmaf (float __x, float __y, float __z) __attribute__ ((__nothrow__)); extern float __fmaf (float __x, float __y, float __z) __attribute__ ((__nothrow__)); > > > > >extern float scalbf (float __x, float __n) __attribute__ ((__nothrow__)); extern float __scalbf (float __x, float __n) __attribute__ ((__nothrow__)); ># 94 "/usr/include/math.h" 2 3 4 ># 114 "/usr/include/math.h" 3 4 ># 1 "/usr/include/bits/mathcalls.h" 1 3 4 ># 53 "/usr/include/bits/mathcalls.h" 3 4 > > >extern long double acosl (long double __x) __attribute__ ((__nothrow__)); extern long double __acosl (long double __x) __attribute__ ((__nothrow__)); > >extern long double asinl (long double __x) __attribute__ ((__nothrow__)); extern long double __asinl (long double __x) __attribute__ ((__nothrow__)); > >extern long double atanl (long double __x) __attribute__ ((__nothrow__)); extern long double __atanl (long double __x) __attribute__ ((__nothrow__)); > >extern long double atan2l (long double __y, long double __x) __attribute__ ((__nothrow__)); extern long double __atan2l (long double __y, long double __x) __attribute__ ((__nothrow__)); > > >extern long double cosl (long double __x) __attribute__ ((__nothrow__)); extern long double __cosl (long double __x) __attribute__ ((__nothrow__)); > >extern long double sinl (long double __x) __attribute__ ((__nothrow__)); extern long double __sinl (long double __x) __attribute__ ((__nothrow__)); > >extern long double tanl (long double __x) __attribute__ ((__nothrow__)); extern long double __tanl (long double __x) __attribute__ ((__nothrow__)); > > > > >extern long double coshl (long double __x) __attribute__ ((__nothrow__)); extern long double __coshl (long double __x) __attribute__ ((__nothrow__)); > >extern long double sinhl (long double __x) __attribute__ ((__nothrow__)); extern long double __sinhl (long double __x) __attribute__ ((__nothrow__)); > >extern long double tanhl (long double __x) __attribute__ ((__nothrow__)); extern long double __tanhl (long double __x) __attribute__ ((__nothrow__)); > > > > >extern void sincosl (long double __x, long double *__sinx, long double *__cosx) __attribute__ ((__nothrow__)); extern void __sincosl (long double __x, long double *__sinx, long double *__cosx) __attribute__ ((__nothrow__)); > > > > > > >extern long double acoshl (long double __x) __attribute__ ((__nothrow__)); extern long double __acoshl (long double __x) __attribute__ ((__nothrow__)); > >extern long double asinhl (long double __x) __attribute__ ((__nothrow__)); extern long double __asinhl (long double __x) __attribute__ ((__nothrow__)); > >extern long double atanhl (long double __x) __attribute__ ((__nothrow__)); extern long double __atanhl (long double __x) __attribute__ ((__nothrow__)); > > > > > > > >extern long double expl (long double __x) __attribute__ ((__nothrow__)); extern long double __expl (long double __x) __attribute__ ((__nothrow__)); > > >extern long double frexpl (long double __x, int *__exponent) __attribute__ ((__nothrow__)); extern long double __frexpl (long double __x, int *__exponent) __attribute__ ((__nothrow__)); > > >extern long double ldexpl (long double __x, int __exponent) __attribute__ ((__nothrow__)); extern long double __ldexpl (long double __x, int __exponent) __attribute__ ((__nothrow__)); > > >extern long double logl (long double __x) __attribute__ ((__nothrow__)); extern long double __logl (long double __x) __attribute__ ((__nothrow__)); > > >extern long double log10l (long double __x) __attribute__ ((__nothrow__)); extern long double __log10l (long double __x) __attribute__ ((__nothrow__)); > > >extern long double modfl (long double __x, long double *__iptr) __attribute__ ((__nothrow__)); extern long double __modfl (long double __x, long double *__iptr) __attribute__ ((__nothrow__)); > > > > >extern long double exp10l (long double __x) __attribute__ ((__nothrow__)); extern long double __exp10l (long double __x) __attribute__ ((__nothrow__)); > >extern long double pow10l (long double __x) __attribute__ ((__nothrow__)); extern long double __pow10l (long double __x) __attribute__ ((__nothrow__)); > > > > > >extern long double expm1l (long double __x) __attribute__ ((__nothrow__)); extern long double __expm1l (long double __x) __attribute__ ((__nothrow__)); > > >extern long double log1pl (long double __x) __attribute__ ((__nothrow__)); extern long double __log1pl (long double __x) __attribute__ ((__nothrow__)); > > >extern long double logbl (long double __x) __attribute__ ((__nothrow__)); extern long double __logbl (long double __x) __attribute__ ((__nothrow__)); > > > > > > >extern long double exp2l (long double __x) __attribute__ ((__nothrow__)); extern long double __exp2l (long double __x) __attribute__ ((__nothrow__)); > > >extern long double log2l (long double __x) __attribute__ ((__nothrow__)); extern long double __log2l (long double __x) __attribute__ ((__nothrow__)); > > > > > > > > >extern long double powl (long double __x, long double __y) __attribute__ ((__nothrow__)); extern long double __powl (long double __x, long double __y) __attribute__ ((__nothrow__)); > > >extern long double sqrtl (long double __x) __attribute__ ((__nothrow__)); extern long double __sqrtl (long double __x) __attribute__ ((__nothrow__)); > > > > > >extern long double hypotl (long double __x, long double __y) __attribute__ ((__nothrow__)); extern long double __hypotl (long double __x, long double __y) __attribute__ ((__nothrow__)); > > > > > > >extern long double cbrtl (long double __x) __attribute__ ((__nothrow__)); extern long double __cbrtl (long double __x) __attribute__ ((__nothrow__)); > > > > > > > > >extern long double ceill (long double __x) __attribute__ ((__nothrow__)) __attribute__ ((__const__)); extern long double __ceill (long double __x) __attribute__ ((__nothrow__)) __attribute__ ((__const__)); > > >extern long double fabsl (long double __x) __attribute__ ((__nothrow__)) __attribute__ ((__const__)); extern long double __fabsl (long double __x) __attribute__ ((__nothrow__)) __attribute__ ((__const__)); > > >extern long double floorl (long double __x) __attribute__ ((__nothrow__)) __attribute__ ((__const__)); extern long double __floorl (long double __x) __attribute__ ((__nothrow__)) __attribute__ ((__const__)); > > >extern long double fmodl (long double __x, long double __y) __attribute__ ((__nothrow__)); extern long double __fmodl (long double __x, long double __y) __attribute__ ((__nothrow__)); > > > > >extern int __isinfl (long double __value) __attribute__ ((__nothrow__)) __attribute__ ((__const__)); > > >extern int __finitel (long double __value) __attribute__ ((__nothrow__)) __attribute__ ((__const__)); > > > > > >extern int isinfl (long double __value) __attribute__ ((__nothrow__)) __attribute__ ((__const__)); > > >extern int finitel (long double __value) __attribute__ ((__nothrow__)) __attribute__ ((__const__)); > > >extern long double dreml (long double __x, long double __y) __attribute__ ((__nothrow__)); extern long double __dreml (long double __x, long double __y) __attribute__ ((__nothrow__)); > > > >extern long double significandl (long double __x) __attribute__ ((__nothrow__)); extern long double __significandl (long double __x) __attribute__ ((__nothrow__)); > > > > > >extern long double copysignl (long double __x, long double __y) __attribute__ ((__nothrow__)) __attribute__ ((__const__)); extern long double __copysignl (long double __x, long double __y) __attribute__ ((__nothrow__)) __attribute__ ((__const__)); > > > > > > >extern long double nanl (__const char *__tagb) __attribute__ ((__nothrow__)) __attribute__ ((__const__)); extern long double __nanl (__const char *__tagb) __attribute__ ((__nothrow__)) __attribute__ ((__const__)); > > > > > >extern int __isnanl (long double __value) __attribute__ ((__nothrow__)) __attribute__ ((__const__)); > > > >extern int isnanl (long double __value) __attribute__ ((__nothrow__)) __attribute__ ((__const__)); > > >extern long double j0l (long double) __attribute__ ((__nothrow__)); extern long double __j0l (long double) __attribute__ ((__nothrow__)); >extern long double j1l (long double) __attribute__ ((__nothrow__)); extern long double __j1l (long double) __attribute__ ((__nothrow__)); >extern long double jnl (int, long double) __attribute__ ((__nothrow__)); extern long double __jnl (int, long double) __attribute__ ((__nothrow__)); >extern long double y0l (long double) __attribute__ ((__nothrow__)); extern long double __y0l (long double) __attribute__ ((__nothrow__)); >extern long double y1l (long double) __attribute__ ((__nothrow__)); extern long double __y1l (long double) __attribute__ ((__nothrow__)); >extern long double ynl (int, long double) __attribute__ ((__nothrow__)); extern long double __ynl (int, long double) __attribute__ ((__nothrow__)); > > > > > > >extern long double erfl (long double) __attribute__ ((__nothrow__)); extern long double __erfl (long double) __attribute__ ((__nothrow__)); >extern long double erfcl (long double) __attribute__ ((__nothrow__)); extern long double __erfcl (long double) __attribute__ ((__nothrow__)); >extern long double lgammal (long double) __attribute__ ((__nothrow__)); extern long double __lgammal (long double) __attribute__ ((__nothrow__)); > > > > > > >extern long double tgammal (long double) __attribute__ ((__nothrow__)); extern long double __tgammal (long double) __attribute__ ((__nothrow__)); > > > > > >extern long double gammal (long double) __attribute__ ((__nothrow__)); extern long double __gammal (long double) __attribute__ ((__nothrow__)); > > > > > > >extern long double lgammal_r (long double, int *__signgamp) __attribute__ ((__nothrow__)); extern long double __lgammal_r (long double, int *__signgamp) __attribute__ ((__nothrow__)); > > > > > > > >extern long double rintl (long double __x) __attribute__ ((__nothrow__)); extern long double __rintl (long double __x) __attribute__ ((__nothrow__)); > > >extern long double nextafterl (long double __x, long double __y) __attribute__ ((__nothrow__)) __attribute__ ((__const__)); extern long double __nextafterl (long double __x, long double __y) __attribute__ ((__nothrow__)) __attribute__ ((__const__)); > >extern long double nexttowardl (long double __x, long double __y) __attribute__ ((__nothrow__)) __attribute__ ((__const__)); extern long double __nexttowardl (long double __x, long double __y) __attribute__ ((__nothrow__)) __attribute__ ((__const__)); > > > >extern long double remainderl (long double __x, long double __y) __attribute__ ((__nothrow__)); extern long double __remainderl (long double __x, long double __y) __attribute__ ((__nothrow__)); > > > >extern long double scalbnl (long double __x, int __n) __attribute__ ((__nothrow__)); extern long double __scalbnl (long double __x, int __n) __attribute__ ((__nothrow__)); > > > >extern int ilogbl (long double __x) __attribute__ ((__nothrow__)); extern int __ilogbl (long double __x) __attribute__ ((__nothrow__)); > > > > >extern long double scalblnl (long double __x, long int __n) __attribute__ ((__nothrow__)); extern long double __scalblnl (long double __x, long int __n) __attribute__ ((__nothrow__)); > > > >extern long double nearbyintl (long double __x) __attribute__ ((__nothrow__)); extern long double __nearbyintl (long double __x) __attribute__ ((__nothrow__)); > > > >extern long double roundl (long double __x) __attribute__ ((__nothrow__)) __attribute__ ((__const__)); extern long double __roundl (long double __x) __attribute__ ((__nothrow__)) __attribute__ ((__const__)); > > > >extern long double truncl (long double __x) __attribute__ ((__nothrow__)) __attribute__ ((__const__)); extern long double __truncl (long double __x) __attribute__ ((__nothrow__)) __attribute__ ((__const__)); > > > > >extern long double remquol (long double __x, long double __y, int *__quo) __attribute__ ((__nothrow__)); extern long double __remquol (long double __x, long double __y, int *__quo) __attribute__ ((__nothrow__)); > > > > > > >extern long int lrintl (long double __x) __attribute__ ((__nothrow__)); extern long int __lrintl (long double __x) __attribute__ ((__nothrow__)); >extern long long int llrintl (long double __x) __attribute__ ((__nothrow__)); extern long long int __llrintl (long double __x) __attribute__ ((__nothrow__)); > > > >extern long int lroundl (long double __x) __attribute__ ((__nothrow__)); extern long int __lroundl (long double __x) __attribute__ ((__nothrow__)); >extern long long int llroundl (long double __x) __attribute__ ((__nothrow__)); extern long long int __llroundl (long double __x) __attribute__ ((__nothrow__)); > > > >extern long double fdiml (long double __x, long double __y) __attribute__ ((__nothrow__)); extern long double __fdiml (long double __x, long double __y) __attribute__ ((__nothrow__)); > > >extern long double fmaxl (long double __x, long double __y) __attribute__ ((__nothrow__)); extern long double __fmaxl (long double __x, long double __y) __attribute__ ((__nothrow__)); > > >extern long double fminl (long double __x, long double __y) __attribute__ ((__nothrow__)); extern long double __fminl (long double __x, long double __y) __attribute__ ((__nothrow__)); > > > >extern int __fpclassifyl (long double __value) __attribute__ ((__nothrow__)) > __attribute__ ((__const__)); > > >extern int __signbitl (long double __value) __attribute__ ((__nothrow__)) > __attribute__ ((__const__)); > > > >extern long double fmal (long double __x, long double __y, long double __z) __attribute__ ((__nothrow__)); extern long double __fmal (long double __x, long double __y, long double __z) __attribute__ ((__nothrow__)); > > > > >extern long double scalbl (long double __x, long double __n) __attribute__ ((__nothrow__)); extern long double __scalbl (long double __x, long double __n) __attribute__ ((__nothrow__)); ># 115 "/usr/include/math.h" 2 3 4 ># 130 "/usr/include/math.h" 3 4 >extern int signgam; ># 171 "/usr/include/math.h" 3 4 >enum > { > FP_NAN, > > FP_INFINITE, > > FP_ZERO, > > FP_SUBNORMAL, > > FP_NORMAL > > }; ># 257 "/usr/include/math.h" 3 4 >typedef enum >{ > _IEEE_ = -1, > _SVID_, > _XOPEN_, > _POSIX_, > _ISOC_ >} _LIB_VERSION_TYPE; > > > > >extern _LIB_VERSION_TYPE _LIB_VERSION; ># 282 "/usr/include/math.h" 3 4 >struct exception > > { > int type; > char *name; > double arg1; > double arg2; > double retval; > }; > > > > >extern int matherr (struct exception *__exc); ># 382 "/usr/include/math.h" 3 4 ># 1 "/usr/include/bits/mathinline.h" 1 3 4 ># 35 "/usr/include/bits/mathinline.h" 3 4 >extern __inline int >__attribute__ ((__nothrow__)) __signbitf (float __x) >{ > __extension__ union { float __f; int __i; } __u = { __f: __x }; > return __u.__i < 0; >} >extern __inline int >__attribute__ ((__nothrow__)) __signbit (double __x) >{ > __extension__ union { double __d; int __i[2]; } __u = { __d: __x }; > return __u.__i[1] < 0; >} >extern __inline int >__attribute__ ((__nothrow__)) __signbitl (long double __x) >{ > __extension__ union { long double __l; int __i[3]; } __u = { __l: __x }; > return (__u.__i[2] & 0x8000) != 0; >} ># 383 "/usr/include/math.h" 2 3 4 ># 438 "/usr/include/math.h" 3 4 > ># 313 "/home/work/.jumbo/include/python2.7/pyport.h" 2 > > > > > > ># 1 "/usr/include/sys/time.h" 1 3 4 ># 26 "/usr/include/sys/time.h" 3 4 ># 1 "/usr/include/time.h" 1 3 4 ># 27 "/usr/include/sys/time.h" 2 3 4 > ># 1 "/usr/include/bits/time.h" 1 3 4 ># 29 "/usr/include/sys/time.h" 2 3 4 ># 38 "/usr/include/sys/time.h" 3 4 > ># 56 "/usr/include/sys/time.h" 3 4 >struct timezone > { > int tz_minuteswest; > int tz_dsttime; > }; > >typedef struct timezone *__restrict __timezone_ptr_t; ># 72 "/usr/include/sys/time.h" 3 4 >extern int gettimeofday (struct timeval *__restrict __tv, > __timezone_ptr_t __tz) __attribute__ ((__nothrow__)); > > > > >extern int settimeofday (__const struct timeval *__tv, > __const struct timezone *__tz) __attribute__ ((__nothrow__)); > > > > > >extern int adjtime (__const struct timeval *__delta, > struct timeval *__olddelta) __attribute__ ((__nothrow__)); > > > > >enum __itimer_which > { > > ITIMER_REAL = 0, > > > ITIMER_VIRTUAL = 1, > > > > ITIMER_PROF = 2 > > }; > > > >struct itimerval > { > > struct timeval it_interval; > > struct timeval it_value; > }; > > > > >typedef enum __itimer_which __itimer_which_t; > > > > > > >extern int getitimer (__itimer_which_t __which, > struct itimerval *__value) __attribute__ ((__nothrow__)); > > > > >extern int setitimer (__itimer_which_t __which, > __const struct itimerval *__restrict __new, > struct itimerval *__restrict __old) __attribute__ ((__nothrow__)); > > > > >extern int utimes (__const char *__file, __const struct timeval __tvp[2]) > __attribute__ ((__nothrow__)); > > > >extern int lutimes (__const char *__file, __const struct timeval __tvp[2]) > __attribute__ ((__nothrow__)); > > >extern int futimes (int __fd, __const struct timeval __tvp[2]) __attribute__ ((__nothrow__)); ># 181 "/usr/include/sys/time.h" 3 4 > ># 320 "/home/work/.jumbo/include/python2.7/pyport.h" 2 ># 1 "/usr/include/time.h" 1 3 4 ># 30 "/usr/include/time.h" 3 4 > > > > > > > > ># 1 "/usr/lib/gcc/x86_64-redhat-linux/3.4.5/include/stddef.h" 1 3 4 ># 39 "/usr/include/time.h" 2 3 4 > > > ># 1 "/usr/include/bits/time.h" 1 3 4 ># 43 "/usr/include/time.h" 2 3 4 ># 129 "/usr/include/time.h" 3 4 > > >struct tm >{ > int tm_sec; > int tm_min; > int tm_hour; > int tm_mday; > int tm_mon; > int tm_year; > int tm_wday; > int tm_yday; > int tm_isdst; > > > long int tm_gmtoff; > __const char *tm_zone; > > > > >}; > > > > > > > > >struct itimerspec > { > struct timespec it_interval; > struct timespec it_value; > }; > > >struct sigevent; ># 178 "/usr/include/time.h" 3 4 > > > >extern clock_t clock (void) __attribute__ ((__nothrow__)); > > >extern time_t time (time_t *__timer) __attribute__ ((__nothrow__)); > > >extern double difftime (time_t __time1, time_t __time0) > __attribute__ ((__nothrow__)) __attribute__ ((__const__)); > > >extern time_t mktime (struct tm *__tp) __attribute__ ((__nothrow__)); > > > > > >extern size_t strftime (char *__restrict __s, size_t __maxsize, > __const char *__restrict __format, > __const struct tm *__restrict __tp) __attribute__ ((__nothrow__)); > > > > > >extern char *strptime (__const char *__restrict __s, > __const char *__restrict __fmt, struct tm *__tp) > __attribute__ ((__nothrow__)); > > > > > > > >extern size_t strftime_l (char *__restrict __s, size_t __maxsize, > __const char *__restrict __format, > __const struct tm *__restrict __tp, > __locale_t __loc) __attribute__ ((__nothrow__)); > >extern char *strptime_l (__const char *__restrict __s, > __const char *__restrict __fmt, struct tm *__tp, > __locale_t __loc) __attribute__ ((__nothrow__)); > > > > > > >extern struct tm *gmtime (__const time_t *__timer) __attribute__ ((__nothrow__)); > > > >extern struct tm *localtime (__const time_t *__timer) __attribute__ ((__nothrow__)); > > > > > >extern struct tm *gmtime_r (__const time_t *__restrict __timer, > struct tm *__restrict __tp) __attribute__ ((__nothrow__)); > > > >extern struct tm *localtime_r (__const time_t *__restrict __timer, > struct tm *__restrict __tp) __attribute__ ((__nothrow__)); > > > > > >extern char *asctime (__const struct tm *__tp) __attribute__ ((__nothrow__)); > > >extern char *ctime (__const time_t *__timer) __attribute__ ((__nothrow__)); > > > > > > > >extern char *asctime_r (__const struct tm *__restrict __tp, > char *__restrict __buf) __attribute__ ((__nothrow__)); > > >extern char *ctime_r (__const time_t *__restrict __timer, > char *__restrict __buf) __attribute__ ((__nothrow__)); > > > > >extern char *__tzname[2]; >extern int __daylight; >extern long int __timezone; > > > > >extern char *tzname[2]; > > > >extern void tzset (void) __attribute__ ((__nothrow__)); > > > >extern int daylight; >extern long int timezone; > > > > > >extern int stime (__const time_t *__when) __attribute__ ((__nothrow__)); ># 309 "/usr/include/time.h" 3 4 >extern time_t timegm (struct tm *__tp) __attribute__ ((__nothrow__)); > > >extern time_t timelocal (struct tm *__tp) __attribute__ ((__nothrow__)); > > >extern int dysize (int __year) __attribute__ ((__nothrow__)) __attribute__ ((__const__)); ># 324 "/usr/include/time.h" 3 4 >extern int nanosleep (__const struct timespec *__requested_time, > struct timespec *__remaining); > > > >extern int clock_getres (clockid_t __clock_id, struct timespec *__res) __attribute__ ((__nothrow__)); > > >extern int clock_gettime (clockid_t __clock_id, struct timespec *__tp) __attribute__ ((__nothrow__)); > > >extern int clock_settime (clockid_t __clock_id, __const struct timespec *__tp) > __attribute__ ((__nothrow__)); > > > > > > >extern int clock_nanosleep (clockid_t __clock_id, int __flags, > __const struct timespec *__req, > struct timespec *__rem); > > >extern int clock_getcpuclockid (pid_t __pid, clockid_t *__clock_id) __attribute__ ((__nothrow__)); > > > > >extern int timer_create (clockid_t __clock_id, > struct sigevent *__restrict __evp, > timer_t *__restrict __timerid) __attribute__ ((__nothrow__)); > > >extern int timer_delete (timer_t __timerid) __attribute__ ((__nothrow__)); > > >extern int timer_settime (timer_t __timerid, int __flags, > __const struct itimerspec *__restrict __value, > struct itimerspec *__restrict __ovalue) __attribute__ ((__nothrow__)); > > >extern int timer_gettime (timer_t __timerid, struct itimerspec *__value) > __attribute__ ((__nothrow__)); > > >extern int timer_getoverrun (timer_t __timerid) __attribute__ ((__nothrow__)); ># 386 "/usr/include/time.h" 3 4 >extern int getdate_err; ># 395 "/usr/include/time.h" 3 4 >extern struct tm *getdate (__const char *__string); ># 409 "/usr/include/time.h" 3 4 >extern int getdate_r (__const char *__restrict __string, > struct tm *__restrict __resbufp); > > > ># 321 "/home/work/.jumbo/include/python2.7/pyport.h" 2 ># 377 "/home/work/.jumbo/include/python2.7/pyport.h" ># 1 "/usr/include/sys/stat.h" 1 3 4 ># 103 "/usr/include/sys/stat.h" 3 4 > > ># 1 "/usr/include/bits/stat.h" 1 3 4 ># 43 "/usr/include/bits/stat.h" 3 4 >struct stat > { > __dev_t st_dev; > > > > > __ino_t st_ino; > > > > > > > > __nlink_t st_nlink; > __mode_t st_mode; > > __uid_t st_uid; > __gid_t st_gid; > > int pad0; > > __dev_t st_rdev; > > > > > __off_t st_size; > > > > __blksize_t st_blksize; > > __blkcnt_t st_blocks; ># 88 "/usr/include/bits/stat.h" 3 4 > struct timespec st_atim; > struct timespec st_mtim; > struct timespec st_ctim; ># 103 "/usr/include/bits/stat.h" 3 4 > long int __unused[3]; ># 112 "/usr/include/bits/stat.h" 3 4 > }; > > > >struct stat64 > { > __dev_t st_dev; > > __ino64_t st_ino; > __nlink_t st_nlink; > __mode_t st_mode; > > > > > > > __uid_t st_uid; > __gid_t st_gid; > > int pad0; > __dev_t st_rdev; > __off_t st_size; > > > > > > __blksize_t st_blksize; > __blkcnt64_t st_blocks; > > > > > > > > struct timespec st_atim; > struct timespec st_mtim; > struct timespec st_ctim; ># 164 "/usr/include/bits/stat.h" 3 4 > long int __unused[3]; > > > > }; ># 106 "/usr/include/sys/stat.h" 2 3 4 ># 215 "/usr/include/sys/stat.h" 3 4 >extern int stat (__const char *__restrict __file, struct stat *__restrict __buf) __asm__ ("" "stat64") __attribute__ ((__nothrow__)) > > __attribute__ ((__nonnull__ (1, 2))); >extern int fstat (int __fd, struct stat *__buf) __asm__ ("" "fstat64") __attribute__ ((__nothrow__)) > __attribute__ ((__nonnull__ (2))); > > > > > > >extern int stat64 (__const char *__restrict __file, > struct stat64 *__restrict __buf) __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1, 2))); >extern int fstat64 (int __fd, struct stat64 *__buf) __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (2))); ># 239 "/usr/include/sys/stat.h" 3 4 >extern int lstat (__const char *__restrict __file, struct stat *__restrict __buf) __asm__ ("" "lstat64") __attribute__ ((__nothrow__)) > > > __attribute__ ((__nonnull__ (1, 2))); > > > > > >extern int lstat64 (__const char *__restrict __file, > struct stat64 *__restrict __buf) > __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1, 2))); > > > > > >extern int chmod (__const char *__file, __mode_t __mode) > __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1))); > > > > > >extern int lchmod (__const char *__file, __mode_t __mode) > __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1))); > > > > >extern int fchmod (int __fd, __mode_t __mode) __attribute__ ((__nothrow__)); > > > > > >extern __mode_t umask (__mode_t __mask) __attribute__ ((__nothrow__)); > > > > >extern __mode_t getumask (void) __attribute__ ((__nothrow__)); > > > >extern int mkdir (__const char *__path, __mode_t __mode) > __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1))); > > > > > >extern int mknod (__const char *__path, __mode_t __mode, __dev_t __dev) > __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1))); > > > > >extern int mkfifo (__const char *__path, __mode_t __mode) > __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1))); ># 332 "/usr/include/sys/stat.h" 3 4 >extern int __fxstat (int __ver, int __fildes, struct stat *__stat_buf) __asm__ ("" "__fxstat64") __attribute__ ((__nothrow__)) > > __attribute__ ((__nonnull__ (3))); >extern int __xstat (int __ver, __const char *__filename, struct stat *__stat_buf) __asm__ ("" "__xstat64") __attribute__ ((__nothrow__)) > > __attribute__ ((__nonnull__ (2, 3))); >extern int __lxstat (int __ver, __const char *__filename, struct stat *__stat_buf) __asm__ ("" "__lxstat64") __attribute__ ((__nothrow__)) > > __attribute__ ((__nonnull__ (2, 3))); ># 350 "/usr/include/sys/stat.h" 3 4 >extern int __fxstat64 (int __ver, int __fildes, struct stat64 *__stat_buf) > __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (3))); >extern int __xstat64 (int __ver, __const char *__filename, > struct stat64 *__stat_buf) __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (2, 3))); >extern int __lxstat64 (int __ver, __const char *__filename, > struct stat64 *__stat_buf) __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (2, 3))); > >extern int __xmknod (int __ver, __const char *__path, __mode_t __mode, > __dev_t *__dev) __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (2, 4))); > > > > >extern __inline__ int >__attribute__ ((__nothrow__)) stat (__const char *__path, struct stat *__statbuf) >{ > return __xstat (1, __path, __statbuf); >} > > >extern __inline__ int >__attribute__ ((__nothrow__)) lstat (__const char *__path, struct stat *__statbuf) >{ > return __lxstat (1, __path, __statbuf); >} > > >extern __inline__ int >__attribute__ ((__nothrow__)) fstat (int __fd, struct stat *__statbuf) >{ > return __fxstat (1, __fd, __statbuf); >} > > >extern __inline__ int >__attribute__ ((__nothrow__)) mknod (__const char *__path, __mode_t __mode, __dev_t __dev) >{ > return __xmknod (0, __path, __mode, &__dev); >} > > > > > >extern __inline__ int >__attribute__ ((__nothrow__)) stat64 (__const char *__path, struct stat64 *__statbuf) >{ > return __xstat64 (1, __path, __statbuf); >} > > >extern __inline__ int >__attribute__ ((__nothrow__)) lstat64 (__const char *__path, struct stat64 *__statbuf) >{ > return __lxstat64 (1, __path, __statbuf); >} > > >extern __inline__ int >__attribute__ ((__nothrow__)) fstat64 (int __fd, struct stat64 *__statbuf) >{ > return __fxstat64 (1, __fd, __statbuf); >} > > > > > ># 378 "/home/work/.jumbo/include/python2.7/pyport.h" 2 ># 59 "/home/work/.jumbo/include/python2.7/Python.h" 2 ># 77 "/home/work/.jumbo/include/python2.7/Python.h" ># 1 "/home/work/.jumbo/include/python2.7/pymath.h" 1 ># 80 "/home/work/.jumbo/include/python2.7/pymath.h" >unsigned short _Py_get_387controlword(void); >void _Py_set_387controlword(unsigned short); ># 78 "/home/work/.jumbo/include/python2.7/Python.h" 2 ># 1 "/home/work/.jumbo/include/python2.7/pymem.h" 1 ># 52 "/home/work/.jumbo/include/python2.7/pymem.h" >void * PyMem_Malloc(size_t); >void * PyMem_Realloc(void *, size_t); >void PyMem_Free(void *); ># 79 "/home/work/.jumbo/include/python2.7/Python.h" 2 > ># 1 "/home/work/.jumbo/include/python2.7/object.h" 1 ># 106 "/home/work/.jumbo/include/python2.7/object.h" >typedef struct _object { > Py_ssize_t ob_refcnt; struct _typeobject *ob_type; >} PyObject; > >typedef struct { > Py_ssize_t ob_refcnt; struct _typeobject *ob_type; Py_ssize_t ob_size; >} PyVarObject; ># 133 "/home/work/.jumbo/include/python2.7/object.h" >typedef PyObject * (*unaryfunc)(PyObject *); >typedef PyObject * (*binaryfunc)(PyObject *, PyObject *); >typedef PyObject * (*ternaryfunc)(PyObject *, PyObject *, PyObject *); >typedef int (*inquiry)(PyObject *); >typedef Py_ssize_t (*lenfunc)(PyObject *); >typedef int (*coercion)(PyObject **, PyObject **); >typedef PyObject *(*intargfunc)(PyObject *, int) __attribute__((__deprecated__)); >typedef PyObject *(*intintargfunc)(PyObject *, int, int) __attribute__((__deprecated__)); >typedef PyObject *(*ssizeargfunc)(PyObject *, Py_ssize_t); >typedef PyObject *(*ssizessizeargfunc)(PyObject *, Py_ssize_t, Py_ssize_t); >typedef int(*intobjargproc)(PyObject *, int, PyObject *); >typedef int(*intintobjargproc)(PyObject *, int, int, PyObject *); >typedef int(*ssizeobjargproc)(PyObject *, Py_ssize_t, PyObject *); >typedef int(*ssizessizeobjargproc)(PyObject *, Py_ssize_t, Py_ssize_t, PyObject *); >typedef int(*objobjargproc)(PyObject *, PyObject *, PyObject *); > > > > >typedef int (*getreadbufferproc)(PyObject *, int, void **); >typedef int (*getwritebufferproc)(PyObject *, int, void **); >typedef int (*getsegcountproc)(PyObject *, int *); >typedef int (*getcharbufferproc)(PyObject *, int, char **); > >typedef Py_ssize_t (*readbufferproc)(PyObject *, Py_ssize_t, void **); >typedef Py_ssize_t (*writebufferproc)(PyObject *, Py_ssize_t, void **); >typedef Py_ssize_t (*segcountproc)(PyObject *, Py_ssize_t *); >typedef Py_ssize_t (*charbufferproc)(PyObject *, Py_ssize_t, char **); > > > >typedef struct bufferinfo { > void *buf; > PyObject *obj; > Py_ssize_t len; > Py_ssize_t itemsize; > > int readonly; > int ndim; > char *format; > Py_ssize_t *shape; > Py_ssize_t *strides; > Py_ssize_t *suboffsets; > Py_ssize_t smalltable[2]; > > void *internal; >} Py_buffer; > >typedef int (*getbufferproc)(PyObject *, Py_buffer *, int); >typedef void (*releasebufferproc)(PyObject *, Py_buffer *); ># 215 "/home/work/.jumbo/include/python2.7/object.h" >typedef int (*objobjproc)(PyObject *, PyObject *); >typedef int (*visitproc)(PyObject *, void *); >typedef int (*traverseproc)(PyObject *, visitproc, void *); > >typedef struct { ># 228 "/home/work/.jumbo/include/python2.7/object.h" > binaryfunc nb_add; > binaryfunc nb_subtract; > binaryfunc nb_multiply; > binaryfunc nb_divide; > binaryfunc nb_remainder; > binaryfunc nb_divmod; > ternaryfunc nb_power; > unaryfunc nb_negative; > unaryfunc nb_positive; > unaryfunc nb_absolute; > inquiry nb_nonzero; > unaryfunc nb_invert; > binaryfunc nb_lshift; > binaryfunc nb_rshift; > binaryfunc nb_and; > binaryfunc nb_xor; > binaryfunc nb_or; > coercion nb_coerce; > unaryfunc nb_int; > unaryfunc nb_long; > unaryfunc nb_float; > unaryfunc nb_oct; > unaryfunc nb_hex; > > binaryfunc nb_inplace_add; > binaryfunc nb_inplace_subtract; > binaryfunc nb_inplace_multiply; > binaryfunc nb_inplace_divide; > binaryfunc nb_inplace_remainder; > ternaryfunc nb_inplace_power; > binaryfunc nb_inplace_lshift; > binaryfunc nb_inplace_rshift; > binaryfunc nb_inplace_and; > binaryfunc nb_inplace_xor; > binaryfunc nb_inplace_or; > > > > binaryfunc nb_floor_divide; > binaryfunc nb_true_divide; > binaryfunc nb_inplace_floor_divide; > binaryfunc nb_inplace_true_divide; > > > unaryfunc nb_index; >} PyNumberMethods; > >typedef struct { > lenfunc sq_length; > binaryfunc sq_concat; > ssizeargfunc sq_repeat; > ssizeargfunc sq_item; > ssizessizeargfunc sq_slice; > ssizeobjargproc sq_ass_item; > ssizessizeobjargproc sq_ass_slice; > objobjproc sq_contains; > > binaryfunc sq_inplace_concat; > ssizeargfunc sq_inplace_repeat; >} PySequenceMethods; > >typedef struct { > lenfunc mp_length; > binaryfunc mp_subscript; > objobjargproc mp_ass_subscript; >} PyMappingMethods; > >typedef struct { > readbufferproc bf_getreadbuffer; > writebufferproc bf_getwritebuffer; > segcountproc bf_getsegcount; > charbufferproc bf_getcharbuffer; > getbufferproc bf_getbuffer; > releasebufferproc bf_releasebuffer; >} PyBufferProcs; > > >typedef void (*freefunc)(void *); >typedef void (*destructor)(PyObject *); >typedef int (*printfunc)(PyObject *, FILE *, int); >typedef PyObject *(*getattrfunc)(PyObject *, char *); >typedef PyObject *(*getattrofunc)(PyObject *, PyObject *); >typedef int (*setattrfunc)(PyObject *, char *, PyObject *); >typedef int (*setattrofunc)(PyObject *, PyObject *, PyObject *); >typedef int (*cmpfunc)(PyObject *, PyObject *); >typedef PyObject *(*reprfunc)(PyObject *); >typedef long (*hashfunc)(PyObject *); >typedef PyObject *(*richcmpfunc) (PyObject *, PyObject *, int); >typedef PyObject *(*getiterfunc) (PyObject *); >typedef PyObject *(*iternextfunc) (PyObject *); >typedef PyObject *(*descrgetfunc) (PyObject *, PyObject *, PyObject *); >typedef int (*descrsetfunc) (PyObject *, PyObject *, PyObject *); >typedef int (*initproc)(PyObject *, PyObject *, PyObject *); >typedef PyObject *(*newfunc)(struct _typeobject *, PyObject *, PyObject *); >typedef PyObject *(*allocfunc)(struct _typeobject *, Py_ssize_t); > >typedef struct _typeobject { > Py_ssize_t ob_refcnt; struct _typeobject *ob_type; Py_ssize_t ob_size; > const char *tp_name; > Py_ssize_t tp_basicsize, tp_itemsize; > > > > destructor tp_dealloc; > printfunc tp_print; > getattrfunc tp_getattr; > setattrfunc tp_setattr; > cmpfunc tp_compare; > reprfunc tp_repr; > > > > PyNumberMethods *tp_as_number; > PySequenceMethods *tp_as_sequence; > PyMappingMethods *tp_as_mapping; > > > > hashfunc tp_hash; > ternaryfunc tp_call; > reprfunc tp_str; > getattrofunc tp_getattro; > setattrofunc tp_setattro; > > > PyBufferProcs *tp_as_buffer; > > > long tp_flags; > > const char *tp_doc; > > > > traverseproc tp_traverse; > > > inquiry tp_clear; > > > > richcmpfunc tp_richcompare; > > > Py_ssize_t tp_weaklistoffset; > > > > getiterfunc tp_iter; > iternextfunc tp_iternext; > > > struct PyMethodDef *tp_methods; > struct PyMemberDef *tp_members; > struct PyGetSetDef *tp_getset; > struct _typeobject *tp_base; > PyObject *tp_dict; > descrgetfunc tp_descr_get; > descrsetfunc tp_descr_set; > Py_ssize_t tp_dictoffset; > initproc tp_init; > allocfunc tp_alloc; > newfunc tp_new; > freefunc tp_free; > inquiry tp_is_gc; > PyObject *tp_bases; > PyObject *tp_mro; > PyObject *tp_cache; > PyObject *tp_subclasses; > PyObject *tp_weaklist; > destructor tp_del; > > > unsigned int tp_version_tag; ># 411 "/home/work/.jumbo/include/python2.7/object.h" >} PyTypeObject; > > > >typedef struct _heaptypeobject { > > > PyTypeObject ht_type; > PyNumberMethods as_number; > PyMappingMethods as_mapping; > PySequenceMethods as_sequence; > > > > > PyBufferProcs as_buffer; > PyObject *ht_name, *ht_slots; > >} PyHeapTypeObject; > > > > > > > >int PyType_IsSubtype(PyTypeObject *, PyTypeObject *); > > > >extern PyTypeObject PyType_Type; >extern PyTypeObject PyBaseObject_Type; >extern PyTypeObject PySuper_Type; > > > > > >int PyType_Ready(PyTypeObject *); >PyObject * PyType_GenericAlloc(PyTypeObject *, Py_ssize_t); >PyObject * PyType_GenericNew(PyTypeObject *, > PyObject *, PyObject *); >PyObject * _PyType_Lookup(PyTypeObject *, PyObject *); >PyObject * _PyObject_LookupSpecial(PyObject *, char *, PyObject **); >unsigned int PyType_ClearCache(void); >void PyType_Modified(PyTypeObject *); > > >int PyObject_Print(PyObject *, FILE *, int); >void _PyObject_Dump(PyObject *); >PyObject * PyObject_Repr(PyObject *); >PyObject * _PyObject_Str(PyObject *); >PyObject * PyObject_Str(PyObject *); > > >PyObject * PyObject_Unicode(PyObject *); > >int PyObject_Compare(PyObject *, PyObject *); >PyObject * PyObject_RichCompare(PyObject *, PyObject *, int); >int PyObject_RichCompareBool(PyObject *, PyObject *, int); >PyObject * PyObject_GetAttrString(PyObject *, const char *); >int PyObject_SetAttrString(PyObject *, const char *, PyObject *); >int PyObject_HasAttrString(PyObject *, const char *); >PyObject * PyObject_GetAttr(PyObject *, PyObject *); >int PyObject_SetAttr(PyObject *, PyObject *, PyObject *); >int PyObject_HasAttr(PyObject *, PyObject *); >PyObject ** _PyObject_GetDictPtr(PyObject *); >PyObject * PyObject_SelfIter(PyObject *); >PyObject * _PyObject_NextNotImplemented(PyObject *); >PyObject * PyObject_GenericGetAttr(PyObject *, PyObject *); >int PyObject_GenericSetAttr(PyObject *, > PyObject *, PyObject *); >long PyObject_Hash(PyObject *); >long PyObject_HashNotImplemented(PyObject *); >int PyObject_IsTrue(PyObject *); >int PyObject_Not(PyObject *); >int PyCallable_Check(PyObject *); >int PyNumber_Coerce(PyObject **, PyObject **); >int PyNumber_CoerceEx(PyObject **, PyObject **); > >void PyObject_ClearWeakRefs(PyObject *); > > >extern int _PyObject_SlotCompare(PyObject *, PyObject *); > > >PyObject * >_PyObject_GenericGetAttrWithDict(PyObject *, PyObject *, PyObject *); >int >_PyObject_GenericSetAttrWithDict(PyObject *, PyObject *, > PyObject *, PyObject *); > > > > > > > >PyObject * PyObject_Dir(PyObject *); > > > >int Py_ReprEnter(PyObject *); >void Py_ReprLeave(PyObject *); > > >long _Py_HashDouble(double); >long _Py_HashPointer(void*); > >typedef struct { > long prefix; > long suffix; >} _Py_HashSecret_t; >extern _Py_HashSecret_t _Py_HashSecret; ># 829 "/home/work/.jumbo/include/python2.7/object.h" >void Py_IncRef(PyObject *); >void Py_DecRef(PyObject *); > > > > > > > >extern PyObject _Py_NoneStruct; ># 848 "/home/work/.jumbo/include/python2.7/object.h" >extern PyObject _Py_NotImplementedStruct; ># 862 "/home/work/.jumbo/include/python2.7/object.h" >extern int _Py_SwappedOp[]; ># 974 "/home/work/.jumbo/include/python2.7/object.h" >void _PyTrash_deposit_object(PyObject*); >void _PyTrash_destroy_chain(void); >extern int _PyTrash_delete_nesting; >extern PyObject * _PyTrash_delete_later; ># 81 "/home/work/.jumbo/include/python2.7/Python.h" 2 ># 1 "/home/work/.jumbo/include/python2.7/objimpl.h" 1 ># 97 "/home/work/.jumbo/include/python2.7/objimpl.h" >void * PyObject_Malloc(size_t); >void * PyObject_Realloc(void *, size_t); >void PyObject_Free(void *); ># 150 "/home/work/.jumbo/include/python2.7/objimpl.h" >PyObject * PyObject_Init(PyObject *, PyTypeObject *); >PyVarObject * PyObject_InitVar(PyVarObject *, > PyTypeObject *, Py_ssize_t); >PyObject * _PyObject_New(PyTypeObject *); >PyVarObject * _PyObject_NewVar(PyTypeObject *, Py_ssize_t); ># 235 "/home/work/.jumbo/include/python2.7/objimpl.h" >Py_ssize_t PyGC_Collect(void); ># 244 "/home/work/.jumbo/include/python2.7/objimpl.h" >PyVarObject * _PyObject_GC_Resize(PyVarObject *, Py_ssize_t); > > > > > > > >typedef union _gc_head { > struct { > union _gc_head *gc_next; > union _gc_head *gc_prev; > Py_ssize_t gc_refs; > } gc; > long double dummy; >} PyGC_Head; > >extern PyGC_Head *_PyGC_generation0; ># 306 "/home/work/.jumbo/include/python2.7/objimpl.h" >PyObject * _PyObject_GC_Malloc(size_t); >PyObject * _PyObject_GC_New(PyTypeObject *); >PyVarObject * _PyObject_GC_NewVar(PyTypeObject *, Py_ssize_t); >void PyObject_GC_Track(void *); >void PyObject_GC_UnTrack(void *); >void PyObject_GC_Del(void *); ># 82 "/home/work/.jumbo/include/python2.7/Python.h" 2 > ># 1 "/home/work/.jumbo/include/python2.7/pydebug.h" 1 > > > > > > > >extern int Py_DebugFlag; >extern int Py_VerboseFlag; >extern int Py_InteractiveFlag; >extern int Py_InspectFlag; >extern int Py_OptimizeFlag; >extern int Py_NoSiteFlag; >extern int Py_BytesWarningFlag; >extern int Py_UseClassExceptionsFlag; >extern int Py_FrozenFlag; >extern int Py_TabcheckFlag; >extern int Py_UnicodeFlag; >extern int Py_IgnoreEnvironmentFlag; >extern int Py_DivisionWarningFlag; >extern int Py_DontWriteBytecodeFlag; >extern int Py_NoUserSiteDirectory; > > > >extern int _Py_QnewFlag; > >extern int Py_Py3kWarningFlag; >extern int Py_HashRandomizationFlag; > > > > > > >void Py_FatalError(const char *message); ># 84 "/home/work/.jumbo/include/python2.7/Python.h" 2 > ># 1 "/home/work/.jumbo/include/python2.7/unicodeobject.h" 1 > > > ># 1 "/usr/lib/gcc/x86_64-redhat-linux/3.4.5/include/stdarg.h" 1 3 4 ># 5 "/home/work/.jumbo/include/python2.7/unicodeobject.h" 2 ># 57 "/home/work/.jumbo/include/python2.7/unicodeobject.h" ># 1 "/usr/include/ctype.h" 1 3 4 ># 30 "/usr/include/ctype.h" 3 4 > ># 48 "/usr/include/ctype.h" 3 4 >enum >{ > _ISupper = ((0) < 8 ? ((1 << (0)) << 8) : ((1 << (0)) >> 8)), > _ISlower = ((1) < 8 ? ((1 << (1)) << 8) : ((1 << (1)) >> 8)), > _ISalpha = ((2) < 8 ? ((1 << (2)) << 8) : ((1 << (2)) >> 8)), > _ISdigit = ((3) < 8 ? ((1 << (3)) << 8) : ((1 << (3)) >> 8)), > _ISxdigit = ((4) < 8 ? ((1 << (4)) << 8) : ((1 << (4)) >> 8)), > _ISspace = ((5) < 8 ? ((1 << (5)) << 8) : ((1 << (5)) >> 8)), > _ISprint = ((6) < 8 ? ((1 << (6)) << 8) : ((1 << (6)) >> 8)), > _ISgraph = ((7) < 8 ? ((1 << (7)) << 8) : ((1 << (7)) >> 8)), > _ISblank = ((8) < 8 ? ((1 << (8)) << 8) : ((1 << (8)) >> 8)), > _IScntrl = ((9) < 8 ? ((1 << (9)) << 8) : ((1 << (9)) >> 8)), > _ISpunct = ((10) < 8 ? ((1 << (10)) << 8) : ((1 << (10)) >> 8)), > _ISalnum = ((11) < 8 ? ((1 << (11)) << 8) : ((1 << (11)) >> 8)) >}; ># 81 "/usr/include/ctype.h" 3 4 >extern __const unsigned short int **__ctype_b_loc (void) > __attribute__ ((__const)); >extern __const __int32_t **__ctype_tolower_loc (void) > __attribute__ ((__const)); >extern __const __int32_t **__ctype_toupper_loc (void) > __attribute__ ((__const)); ># 96 "/usr/include/ctype.h" 3 4 > > > > > > >extern int isalnum (int) __attribute__ ((__nothrow__)); >extern int isalpha (int) __attribute__ ((__nothrow__)); >extern int iscntrl (int) __attribute__ ((__nothrow__)); >extern int isdigit (int) __attribute__ ((__nothrow__)); >extern int islower (int) __attribute__ ((__nothrow__)); >extern int isgraph (int) __attribute__ ((__nothrow__)); >extern int isprint (int) __attribute__ ((__nothrow__)); >extern int ispunct (int) __attribute__ ((__nothrow__)); >extern int isspace (int) __attribute__ ((__nothrow__)); >extern int isupper (int) __attribute__ ((__nothrow__)); >extern int isxdigit (int) __attribute__ ((__nothrow__)); > > > >extern int tolower (int __c) __attribute__ ((__nothrow__)); > > >extern int toupper (int __c) __attribute__ ((__nothrow__)); > > > > > > > > >extern int isblank (int) __attribute__ ((__nothrow__)); > > > > > > >extern int isctype (int __c, int __mask) __attribute__ ((__nothrow__)); > > > > > > >extern int isascii (int __c) __attribute__ ((__nothrow__)); > > > >extern int toascii (int __c) __attribute__ ((__nothrow__)); > > > >extern int _toupper (int) __attribute__ ((__nothrow__)); >extern int _tolower (int) __attribute__ ((__nothrow__)); ># 190 "/usr/include/ctype.h" 3 4 >extern __inline int >__attribute__ ((__nothrow__)) tolower (int __c) >{ > return __c >= -128 && __c < 256 ? (*__ctype_tolower_loc ())[__c] : __c; >} > >extern __inline int >__attribute__ ((__nothrow__)) toupper (int __c) >{ > return __c >= -128 && __c < 256 ? (*__ctype_toupper_loc ())[__c] : __c; >} ># 247 "/usr/include/ctype.h" 3 4 >extern int isalnum_l (int, __locale_t) __attribute__ ((__nothrow__)); >extern int isalpha_l (int, __locale_t) __attribute__ ((__nothrow__)); >extern int iscntrl_l (int, __locale_t) __attribute__ ((__nothrow__)); >extern int isdigit_l (int, __locale_t) __attribute__ ((__nothrow__)); >extern int islower_l (int, __locale_t) __attribute__ ((__nothrow__)); >extern int isgraph_l (int, __locale_t) __attribute__ ((__nothrow__)); >extern int isprint_l (int, __locale_t) __attribute__ ((__nothrow__)); >extern int ispunct_l (int, __locale_t) __attribute__ ((__nothrow__)); >extern int isspace_l (int, __locale_t) __attribute__ ((__nothrow__)); >extern int isupper_l (int, __locale_t) __attribute__ ((__nothrow__)); >extern int isxdigit_l (int, __locale_t) __attribute__ ((__nothrow__)); > >extern int isblank_l (int, __locale_t) __attribute__ ((__nothrow__)); > > > >extern int __tolower_l (int __c, __locale_t __l) __attribute__ ((__nothrow__)); >extern int tolower_l (int __c, __locale_t __l) __attribute__ ((__nothrow__)); > > >extern int __toupper_l (int __c, __locale_t __l) __attribute__ ((__nothrow__)); >extern int toupper_l (int __c, __locale_t __l) __attribute__ ((__nothrow__)); ># 323 "/usr/include/ctype.h" 3 4 > ># 58 "/home/work/.jumbo/include/python2.7/unicodeobject.h" 2 ># 120 "/home/work/.jumbo/include/python2.7/unicodeobject.h" ># 1 "/usr/include/wchar.h" 1 3 4 ># 48 "/usr/include/wchar.h" 3 4 ># 1 "/usr/lib/gcc/x86_64-redhat-linux/3.4.5/include/stddef.h" 1 3 4 ># 49 "/usr/include/wchar.h" 2 3 4 ># 93 "/usr/include/wchar.h" 3 4 > > >typedef __mbstate_t mbstate_t; > > > ># 118 "/usr/include/wchar.h" 3 4 > > > > > >struct tm; > > > > > > > > > >extern wchar_t *wcscpy (wchar_t *__restrict __dest, > __const wchar_t *__restrict __src) __attribute__ ((__nothrow__)); > >extern wchar_t *wcsncpy (wchar_t *__restrict __dest, > __const wchar_t *__restrict __src, size_t __n) > __attribute__ ((__nothrow__)); > > >extern wchar_t *wcscat (wchar_t *__restrict __dest, > __const wchar_t *__restrict __src) __attribute__ ((__nothrow__)); > >extern wchar_t *wcsncat (wchar_t *__restrict __dest, > __const wchar_t *__restrict __src, size_t __n) > __attribute__ ((__nothrow__)); > > >extern int wcscmp (__const wchar_t *__s1, __const wchar_t *__s2) > __attribute__ ((__nothrow__)) __attribute__ ((__pure__)); > >extern int wcsncmp (__const wchar_t *__s1, __const wchar_t *__s2, size_t __n) > __attribute__ ((__nothrow__)) __attribute__ ((__pure__)); > > > > >extern int wcscasecmp (__const wchar_t *__s1, __const wchar_t *__s2) __attribute__ ((__nothrow__)); > > >extern int wcsncasecmp (__const wchar_t *__s1, __const wchar_t *__s2, > size_t __n) __attribute__ ((__nothrow__)); > > > > > >extern int wcscasecmp_l (__const wchar_t *__s1, __const wchar_t *__s2, > __locale_t __loc) __attribute__ ((__nothrow__)); > >extern int wcsncasecmp_l (__const wchar_t *__s1, __const wchar_t *__s2, > size_t __n, __locale_t __loc) __attribute__ ((__nothrow__)); > > > > > >extern int wcscoll (__const wchar_t *__s1, __const wchar_t *__s2) __attribute__ ((__nothrow__)); > > > >extern size_t wcsxfrm (wchar_t *__restrict __s1, > __const wchar_t *__restrict __s2, size_t __n) __attribute__ ((__nothrow__)); > > > > > > > > >extern int wcscoll_l (__const wchar_t *__s1, __const wchar_t *__s2, > __locale_t __loc) __attribute__ ((__nothrow__)); > > > > >extern size_t wcsxfrm_l (wchar_t *__s1, __const wchar_t *__s2, > size_t __n, __locale_t __loc) __attribute__ ((__nothrow__)); > > >extern wchar_t *wcsdup (__const wchar_t *__s) __attribute__ ((__nothrow__)) __attribute__ ((__malloc__)); > > > > >extern wchar_t *wcschr (__const wchar_t *__wcs, wchar_t __wc) > __attribute__ ((__nothrow__)) __attribute__ ((__pure__)); > >extern wchar_t *wcsrchr (__const wchar_t *__wcs, wchar_t __wc) > __attribute__ ((__nothrow__)) __attribute__ ((__pure__)); > > > > > >extern wchar_t *wcschrnul (__const wchar_t *__s, wchar_t __wc) > __attribute__ ((__nothrow__)) __attribute__ ((__pure__)); > > > > > >extern size_t wcscspn (__const wchar_t *__wcs, __const wchar_t *__reject) > __attribute__ ((__nothrow__)) __attribute__ ((__pure__)); > > >extern size_t wcsspn (__const wchar_t *__wcs, __const wchar_t *__accept) > __attribute__ ((__nothrow__)) __attribute__ ((__pure__)); > >extern wchar_t *wcspbrk (__const wchar_t *__wcs, __const wchar_t *__accept) > __attribute__ ((__nothrow__)) __attribute__ ((__pure__)); > >extern wchar_t *wcsstr (__const wchar_t *__haystack, __const wchar_t *__needle) > __attribute__ ((__nothrow__)) __attribute__ ((__pure__)); > > >extern wchar_t *wcstok (wchar_t *__restrict __s, > __const wchar_t *__restrict __delim, > wchar_t **__restrict __ptr) __attribute__ ((__nothrow__)); > > >extern size_t wcslen (__const wchar_t *__s) __attribute__ ((__nothrow__)) __attribute__ ((__pure__)); > > > > >extern wchar_t *wcswcs (__const wchar_t *__haystack, __const wchar_t *__needle) > __attribute__ ((__nothrow__)) __attribute__ ((__pure__)); > > > > >extern size_t wcsnlen (__const wchar_t *__s, size_t __maxlen) > __attribute__ ((__nothrow__)) __attribute__ ((__pure__)); > > > > > >extern wchar_t *wmemchr (__const wchar_t *__s, wchar_t __c, size_t __n) > __attribute__ ((__nothrow__)) __attribute__ ((__pure__)); > > >extern int wmemcmp (__const wchar_t *__restrict __s1, > __const wchar_t *__restrict __s2, size_t __n) > __attribute__ ((__nothrow__)) __attribute__ ((__pure__)); > > >extern wchar_t *wmemcpy (wchar_t *__restrict __s1, > __const wchar_t *__restrict __s2, size_t __n) __attribute__ ((__nothrow__)); > > > >extern wchar_t *wmemmove (wchar_t *__s1, __const wchar_t *__s2, size_t __n) > __attribute__ ((__nothrow__)); > > >extern wchar_t *wmemset (wchar_t *__s, wchar_t __c, size_t __n) __attribute__ ((__nothrow__)); > > > > > >extern wchar_t *wmempcpy (wchar_t *__restrict __s1, > __const wchar_t *__restrict __s2, size_t __n) > __attribute__ ((__nothrow__)); > > > > > > >extern wint_t btowc (int __c) __attribute__ ((__nothrow__)); > > > >extern int wctob (wint_t __c) __attribute__ ((__nothrow__)); > > > >extern int mbsinit (__const mbstate_t *__ps) __attribute__ ((__nothrow__)) __attribute__ ((__pure__)); > > > >extern size_t mbrtowc (wchar_t *__restrict __pwc, > __const char *__restrict __s, size_t __n, > mbstate_t *__p) __attribute__ ((__nothrow__)); > > >extern size_t wcrtomb (char *__restrict __s, wchar_t __wc, > mbstate_t *__restrict __ps) __attribute__ ((__nothrow__)); > > >extern size_t __mbrlen (__const char *__restrict __s, size_t __n, > mbstate_t *__restrict __ps) __attribute__ ((__nothrow__)); >extern size_t mbrlen (__const char *__restrict __s, size_t __n, > mbstate_t *__restrict __ps) __attribute__ ((__nothrow__)); > > > > >extern __inline size_t >__attribute__ ((__nothrow__)) mbrlen (__const char *__restrict __s, size_t __n, mbstate_t *__restrict __ps) > >{ return (__ps != ((void *)0) > ? mbrtowc (((void *)0), __s, __n, __ps) : __mbrlen (__s, __n, ((void *)0))); } > > > > > >extern size_t mbsrtowcs (wchar_t *__restrict __dst, > __const char **__restrict __src, size_t __len, > mbstate_t *__restrict __ps) __attribute__ ((__nothrow__)); > > > >extern size_t wcsrtombs (char *__restrict __dst, > __const wchar_t **__restrict __src, size_t __len, > mbstate_t *__restrict __ps) __attribute__ ((__nothrow__)); > > > > > > >extern size_t mbsnrtowcs (wchar_t *__restrict __dst, > __const char **__restrict __src, size_t __nmc, > size_t __len, mbstate_t *__restrict __ps) __attribute__ ((__nothrow__)); > > > >extern size_t wcsnrtombs (char *__restrict __dst, > __const wchar_t **__restrict __src, > size_t __nwc, size_t __len, > mbstate_t *__restrict __ps) __attribute__ ((__nothrow__)); > > > > > > >extern int wcwidth (wchar_t __c) __attribute__ ((__nothrow__)); > > > >extern int wcswidth (__const wchar_t *__s, size_t __n) __attribute__ ((__nothrow__)); > > > > > > >extern double wcstod (__const wchar_t *__restrict __nptr, > wchar_t **__restrict __endptr) __attribute__ ((__nothrow__)); > > > >extern float wcstof (__const wchar_t *__restrict __nptr, > wchar_t **__restrict __endptr) __attribute__ ((__nothrow__)); >extern long double wcstold (__const wchar_t *__restrict __nptr, > wchar_t **__restrict __endptr) __attribute__ ((__nothrow__)); > > > > > >extern long int wcstol (__const wchar_t *__restrict __nptr, > wchar_t **__restrict __endptr, int __base) __attribute__ ((__nothrow__)); > > > >extern unsigned long int wcstoul (__const wchar_t *__restrict __nptr, > wchar_t **__restrict __endptr, int __base) > __attribute__ ((__nothrow__)); > > > > >__extension__ >extern long long int wcstoll (__const wchar_t *__restrict __nptr, > wchar_t **__restrict __endptr, int __base) > __attribute__ ((__nothrow__)); > > > >__extension__ >extern unsigned long long int wcstoull (__const wchar_t *__restrict __nptr, > wchar_t **__restrict __endptr, > int __base) __attribute__ ((__nothrow__)); > > > > > > >__extension__ >extern long long int wcstoq (__const wchar_t *__restrict __nptr, > wchar_t **__restrict __endptr, int __base) > __attribute__ ((__nothrow__)); > > > >__extension__ >extern unsigned long long int wcstouq (__const wchar_t *__restrict __nptr, > wchar_t **__restrict __endptr, > int __base) __attribute__ ((__nothrow__)); ># 449 "/usr/include/wchar.h" 3 4 >extern long int wcstol_l (__const wchar_t *__restrict __nptr, > wchar_t **__restrict __endptr, int __base, > __locale_t __loc) __attribute__ ((__nothrow__)); > >extern unsigned long int wcstoul_l (__const wchar_t *__restrict __nptr, > wchar_t **__restrict __endptr, > int __base, __locale_t __loc) __attribute__ ((__nothrow__)); > >__extension__ >extern long long int wcstoll_l (__const wchar_t *__restrict __nptr, > wchar_t **__restrict __endptr, > int __base, __locale_t __loc) __attribute__ ((__nothrow__)); > >__extension__ >extern unsigned long long int wcstoull_l (__const wchar_t *__restrict __nptr, > wchar_t **__restrict __endptr, > int __base, __locale_t __loc) > __attribute__ ((__nothrow__)); > >extern double wcstod_l (__const wchar_t *__restrict __nptr, > wchar_t **__restrict __endptr, __locale_t __loc) > __attribute__ ((__nothrow__)); > >extern float wcstof_l (__const wchar_t *__restrict __nptr, > wchar_t **__restrict __endptr, __locale_t __loc) > __attribute__ ((__nothrow__)); > >extern long double wcstold_l (__const wchar_t *__restrict __nptr, > wchar_t **__restrict __endptr, > __locale_t __loc) __attribute__ ((__nothrow__)); > > > > > >extern double __wcstod_internal (__const wchar_t *__restrict __nptr, > wchar_t **__restrict __endptr, int __group) > __attribute__ ((__nothrow__)); >extern float __wcstof_internal (__const wchar_t *__restrict __nptr, > wchar_t **__restrict __endptr, int __group) > __attribute__ ((__nothrow__)); >extern long double __wcstold_internal (__const wchar_t *__restrict __nptr, > wchar_t **__restrict __endptr, > int __group) __attribute__ ((__nothrow__)); ># 507 "/usr/include/wchar.h" 3 4 >__extension__ >extern long long int __wcstoll_internal (__const wchar_t *__restrict __nptr, > wchar_t **__restrict __endptr, > int __base, int __group) __attribute__ ((__nothrow__)); > > > >__extension__ >extern unsigned long long int __wcstoull_internal (__const wchar_t * > __restrict __nptr, > wchar_t ** > __restrict __endptr, > int __base, > int __group) __attribute__ ((__nothrow__)); > > > > > > > > >extern __inline double >__attribute__ ((__nothrow__)) wcstod (__const wchar_t *__restrict __nptr, wchar_t **__restrict __endptr) > >{ return __wcstod_internal (__nptr, __endptr, 0); } >extern __inline long int >__attribute__ ((__nothrow__)) wcstol (__const wchar_t *__restrict __nptr, wchar_t **__restrict __endptr, int __base) > >{ return __wcstol_internal (__nptr, __endptr, __base, 0); } >extern __inline unsigned long int >__attribute__ ((__nothrow__)) wcstoul (__const wchar_t *__restrict __nptr, wchar_t **__restrict __endptr, int __base) > >{ return __wcstoul_internal (__nptr, __endptr, __base, 0); } > > > >extern __inline float >__attribute__ ((__nothrow__)) wcstof (__const wchar_t *__restrict __nptr, wchar_t **__restrict __endptr) > >{ return __wcstof_internal (__nptr, __endptr, 0); } >extern __inline long double >__attribute__ ((__nothrow__)) wcstold (__const wchar_t *__restrict __nptr, wchar_t **__restrict __endptr) > >{ return __wcstold_internal (__nptr, __endptr, 0); } > > >__extension__ >extern __inline long long int >__attribute__ ((__nothrow__)) wcstoq (__const wchar_t *__restrict __nptr, wchar_t **__restrict __endptr, int __base) > >{ return __wcstoll_internal (__nptr, __endptr, __base, 0); } >__extension__ >extern __inline unsigned long long int >__attribute__ ((__nothrow__)) wcstouq (__const wchar_t *__restrict __nptr, wchar_t **__restrict __endptr, int __base) > >{ return __wcstoull_internal (__nptr, __endptr, __base, 0); } > > > > > > > >extern wchar_t *wcpcpy (wchar_t *__dest, __const wchar_t *__src) __attribute__ ((__nothrow__)); > > > >extern wchar_t *wcpncpy (wchar_t *__dest, __const wchar_t *__src, size_t __n) > __attribute__ ((__nothrow__)); > > > > > > > > >extern int fwide (__FILE *__fp, int __mode) __attribute__ ((__nothrow__)); > > > > > > >extern int fwprintf (__FILE *__restrict __stream, > __const wchar_t *__restrict __format, ...) > ; > > > > >extern int wprintf (__const wchar_t *__restrict __format, ...) > ; > >extern int swprintf (wchar_t *__restrict __s, size_t __n, > __const wchar_t *__restrict __format, ...) > __attribute__ ((__nothrow__)) ; > > > > > >extern int vfwprintf (__FILE *__restrict __s, > __const wchar_t *__restrict __format, > __gnuc_va_list __arg) > ; > > > > >extern int vwprintf (__const wchar_t *__restrict __format, > __gnuc_va_list __arg) > ; > > >extern int vswprintf (wchar_t *__restrict __s, size_t __n, > __const wchar_t *__restrict __format, > __gnuc_va_list __arg) > __attribute__ ((__nothrow__)) ; > > > > > > >extern int fwscanf (__FILE *__restrict __stream, > __const wchar_t *__restrict __format, ...) > ; > > > > >extern int wscanf (__const wchar_t *__restrict __format, ...) > ; > >extern int swscanf (__const wchar_t *__restrict __s, > __const wchar_t *__restrict __format, ...) > __attribute__ ((__nothrow__)) ; > > > > > > > > > > > >extern int vfwscanf (__FILE *__restrict __s, > __const wchar_t *__restrict __format, > __gnuc_va_list __arg) > ; > > > > >extern int vwscanf (__const wchar_t *__restrict __format, > __gnuc_va_list __arg) > ; > >extern int vswscanf (__const wchar_t *__restrict __s, > __const wchar_t *__restrict __format, > __gnuc_va_list __arg) > __attribute__ ((__nothrow__)) ; > > > > > > > > > > >extern wint_t fgetwc (__FILE *__stream); >extern wint_t getwc (__FILE *__stream); > > > > > >extern wint_t getwchar (void); > > > > > > >extern wint_t fputwc (wchar_t __wc, __FILE *__stream); >extern wint_t putwc (wchar_t __wc, __FILE *__stream); > > > > > >extern wint_t putwchar (wchar_t __wc); > > > > > > > >extern wchar_t *fgetws (wchar_t *__restrict __ws, int __n, > __FILE *__restrict __stream); > > > > > >extern int fputws (__const wchar_t *__restrict __ws, > __FILE *__restrict __stream); > > > > > > >extern wint_t ungetwc (wint_t __wc, __FILE *__stream); > ># 739 "/usr/include/wchar.h" 3 4 >extern wint_t getwc_unlocked (__FILE *__stream); >extern wint_t getwchar_unlocked (void); > > > > > > > >extern wint_t fgetwc_unlocked (__FILE *__stream); > > > > > > > >extern wint_t fputwc_unlocked (wchar_t __wc, __FILE *__stream); ># 765 "/usr/include/wchar.h" 3 4 >extern wint_t putwc_unlocked (wchar_t __wc, __FILE *__stream); >extern wint_t putwchar_unlocked (wchar_t __wc); ># 775 "/usr/include/wchar.h" 3 4 >extern wchar_t *fgetws_unlocked (wchar_t *__restrict __ws, int __n, > __FILE *__restrict __stream); > > > > > > > >extern int fputws_unlocked (__const wchar_t *__restrict __ws, > __FILE *__restrict __stream); > > > > > > > >extern size_t wcsftime (wchar_t *__restrict __s, size_t __maxsize, > __const wchar_t *__restrict __format, > __const struct tm *__restrict __tp) __attribute__ ((__nothrow__)); > > > > > > > >extern size_t wcsftime_l (wchar_t *__restrict __s, size_t __maxsize, > __const wchar_t *__restrict __format, > __const struct tm *__restrict __tp, > __locale_t __loc) __attribute__ ((__nothrow__)); ># 820 "/usr/include/wchar.h" 3 4 > ># 121 "/home/work/.jumbo/include/python2.7/unicodeobject.h" 2 > > > > > > > >typedef unsigned int Py_UCS4; ># 137 "/home/work/.jumbo/include/python2.7/unicodeobject.h" >typedef Py_UCS4 Py_UNICODE; ># 415 "/home/work/.jumbo/include/python2.7/unicodeobject.h" >typedef struct { > Py_ssize_t ob_refcnt; struct _typeobject *ob_type; > Py_ssize_t length; > Py_UNICODE *str; > long hash; > PyObject *defenc; > > >} PyUnicodeObject; > >extern PyTypeObject PyUnicode_Type; ># 464 "/home/work/.jumbo/include/python2.7/unicodeobject.h" >PyObject* PyUnicodeUCS4_FromUnicode( > const Py_UNICODE *u, > Py_ssize_t size > ); > > >PyObject* PyUnicodeUCS4_FromStringAndSize( > const char *u, > Py_ssize_t size > ); > > > >PyObject* PyUnicodeUCS4_FromString( > const char *u > ); > > > > >Py_UNICODE * PyUnicodeUCS4_AsUnicode( > PyObject *unicode > ); > > > >Py_ssize_t PyUnicodeUCS4_GetSize( > PyObject *unicode > ); > > >Py_UNICODE PyUnicodeUCS4_GetMax(void); ># 511 "/home/work/.jumbo/include/python2.7/unicodeobject.h" >int PyUnicodeUCS4_Resize( > PyObject **unicode, > Py_ssize_t length > ); ># 533 "/home/work/.jumbo/include/python2.7/unicodeobject.h" >PyObject* PyUnicodeUCS4_FromEncodedObject( > register PyObject *obj, > const char *encoding, > const char *errors > ); ># 552 "/home/work/.jumbo/include/python2.7/unicodeobject.h" >PyObject* PyUnicodeUCS4_FromObject( > register PyObject *obj > ); > >PyObject * PyUnicodeUCS4_FromFormatV(const char*, va_list); >PyObject * PyUnicodeUCS4_FromFormat(const char*, ...); > > > >PyObject * _PyUnicode_FormatAdvanced(PyObject *obj, > Py_UNICODE *format_spec, > Py_ssize_t format_spec_len); ># 574 "/home/work/.jumbo/include/python2.7/unicodeobject.h" >PyObject* PyUnicodeUCS4_FromWideChar( > register const wchar_t *w, > Py_ssize_t size > ); ># 591 "/home/work/.jumbo/include/python2.7/unicodeobject.h" >Py_ssize_t PyUnicodeUCS4_AsWideChar( > PyUnicodeObject *unicode, > register wchar_t *w, > Py_ssize_t size > ); ># 609 "/home/work/.jumbo/include/python2.7/unicodeobject.h" >PyObject* PyUnicodeUCS4_FromOrdinal(int ordinal); ># 620 "/home/work/.jumbo/include/python2.7/unicodeobject.h" >int PyUnicodeUCS4_ClearFreelist(void); ># 656 "/home/work/.jumbo/include/python2.7/unicodeobject.h" >PyObject * _PyUnicodeUCS4_AsDefaultEncodedString( > PyObject *, const char *); ># 668 "/home/work/.jumbo/include/python2.7/unicodeobject.h" >const char* PyUnicodeUCS4_GetDefaultEncoding(void); > > > > > > > >int PyUnicodeUCS4_SetDefaultEncoding( > const char *encoding > ); > > > > > > >PyObject* PyUnicodeUCS4_Decode( > const char *s, > Py_ssize_t size, > const char *encoding, > const char *errors > ); > > > > >PyObject* PyUnicodeUCS4_Encode( > const Py_UNICODE *s, > Py_ssize_t size, > const char *encoding, > const char *errors > ); > > > > >PyObject* PyUnicodeUCS4_AsEncodedObject( > PyObject *unicode, > const char *encoding, > const char *errors > ); > > > > >PyObject* PyUnicodeUCS4_AsEncodedString( > PyObject *unicode, > const char *encoding, > const char *errors > ); > >PyObject* PyUnicode_BuildEncodingMap( > PyObject* string > ); > > > > >PyObject* PyUnicode_DecodeUTF7( > const char *string, > Py_ssize_t length, > const char *errors > ); > >PyObject* PyUnicode_DecodeUTF7Stateful( > const char *string, > Py_ssize_t length, > const char *errors, > Py_ssize_t *consumed > ); > >PyObject* PyUnicode_EncodeUTF7( > const Py_UNICODE *data, > Py_ssize_t length, > int base64SetO, > int base64WhiteSpace, > const char *errors > ); > > > >PyObject* PyUnicodeUCS4_DecodeUTF8( > const char *string, > Py_ssize_t length, > const char *errors > ); > >PyObject* PyUnicodeUCS4_DecodeUTF8Stateful( > const char *string, > Py_ssize_t length, > const char *errors, > Py_ssize_t *consumed > ); > >PyObject* PyUnicodeUCS4_AsUTF8String( > PyObject *unicode > ); > >PyObject* PyUnicodeUCS4_EncodeUTF8( > const Py_UNICODE *data, > Py_ssize_t length, > const char *errors > ); ># 798 "/home/work/.jumbo/include/python2.7/unicodeobject.h" >PyObject* PyUnicodeUCS4_DecodeUTF32( > const char *string, > Py_ssize_t length, > const char *errors, > int *byteorder > > > ); > >PyObject* PyUnicodeUCS4_DecodeUTF32Stateful( > const char *string, > Py_ssize_t length, > const char *errors, > int *byteorder, > > > Py_ssize_t *consumed > ); > > > > >PyObject* PyUnicodeUCS4_AsUTF32String( > PyObject *unicode > ); ># 840 "/home/work/.jumbo/include/python2.7/unicodeobject.h" >PyObject* PyUnicodeUCS4_EncodeUTF32( > const Py_UNICODE *data, > Py_ssize_t length, > const char *errors, > int byteorder > ); ># 872 "/home/work/.jumbo/include/python2.7/unicodeobject.h" >PyObject* PyUnicodeUCS4_DecodeUTF16( > const char *string, > Py_ssize_t length, > const char *errors, > int *byteorder > > > ); > >PyObject* PyUnicodeUCS4_DecodeUTF16Stateful( > const char *string, > Py_ssize_t length, > const char *errors, > int *byteorder, > > > Py_ssize_t *consumed > ); > > > > >PyObject* PyUnicodeUCS4_AsUTF16String( > PyObject *unicode > ); ># 918 "/home/work/.jumbo/include/python2.7/unicodeobject.h" >PyObject* PyUnicodeUCS4_EncodeUTF16( > const Py_UNICODE *data, > Py_ssize_t length, > const char *errors, > int byteorder > ); > > > >PyObject* PyUnicodeUCS4_DecodeUnicodeEscape( > const char *string, > Py_ssize_t length, > const char *errors > ); > >PyObject* PyUnicodeUCS4_AsUnicodeEscapeString( > PyObject *unicode > ); > >PyObject* PyUnicodeUCS4_EncodeUnicodeEscape( > const Py_UNICODE *data, > Py_ssize_t length > ); > > > >PyObject* PyUnicodeUCS4_DecodeRawUnicodeEscape( > const char *string, > Py_ssize_t length, > const char *errors > ); > >PyObject* PyUnicodeUCS4_AsRawUnicodeEscapeString( > PyObject *unicode > ); > >PyObject* PyUnicodeUCS4_EncodeRawUnicodeEscape( > const Py_UNICODE *data, > Py_ssize_t length > ); > > > > > >PyObject *_PyUnicode_DecodeUnicodeInternal( > const char *string, > Py_ssize_t length, > const char *errors > ); > > > > > > > >PyObject* PyUnicodeUCS4_DecodeLatin1( > const char *string, > Py_ssize_t length, > const char *errors > ); > >PyObject* PyUnicodeUCS4_AsLatin1String( > PyObject *unicode > ); > >PyObject* PyUnicodeUCS4_EncodeLatin1( > const Py_UNICODE *data, > Py_ssize_t length, > const char *errors > ); > > > > > > > >PyObject* PyUnicodeUCS4_DecodeASCII( > const char *string, > Py_ssize_t length, > const char *errors > ); > >PyObject* PyUnicodeUCS4_AsASCIIString( > PyObject *unicode > ); > >PyObject* PyUnicodeUCS4_EncodeASCII( > const Py_UNICODE *data, > Py_ssize_t length, > const char *errors > ); ># 1035 "/home/work/.jumbo/include/python2.7/unicodeobject.h" >PyObject* PyUnicodeUCS4_DecodeCharmap( > const char *string, > Py_ssize_t length, > PyObject *mapping, > > const char *errors > ); > >PyObject* PyUnicodeUCS4_AsCharmapString( > PyObject *unicode, > PyObject *mapping > > ); > >PyObject* PyUnicodeUCS4_EncodeCharmap( > const Py_UNICODE *data, > Py_ssize_t length, > PyObject *mapping, > > const char *errors > ); ># 1070 "/home/work/.jumbo/include/python2.7/unicodeobject.h" >PyObject * PyUnicodeUCS4_TranslateCharmap( > const Py_UNICODE *data, > Py_ssize_t length, > PyObject *table, > const char *errors > ); ># 1130 "/home/work/.jumbo/include/python2.7/unicodeobject.h" >int PyUnicodeUCS4_EncodeDecimal( > Py_UNICODE *s, > Py_ssize_t length, > char *output, > const char *errors > ); ># 1145 "/home/work/.jumbo/include/python2.7/unicodeobject.h" >PyObject* PyUnicodeUCS4_Concat( > PyObject *left, > PyObject *right > ); ># 1161 "/home/work/.jumbo/include/python2.7/unicodeobject.h" >PyObject* PyUnicodeUCS4_Split( > PyObject *s, > PyObject *sep, > Py_ssize_t maxsplit > ); > > > > > > >PyObject* PyUnicodeUCS4_Splitlines( > PyObject *s, > int keepends > ); > > > >PyObject* PyUnicodeUCS4_Partition( > PyObject *s, > PyObject *sep > ); > > > > >PyObject* PyUnicodeUCS4_RPartition( > PyObject *s, > PyObject *sep > ); ># 1205 "/home/work/.jumbo/include/python2.7/unicodeobject.h" >PyObject* PyUnicodeUCS4_RSplit( > PyObject *s, > PyObject *sep, > Py_ssize_t maxsplit > ); ># 1223 "/home/work/.jumbo/include/python2.7/unicodeobject.h" >PyObject * PyUnicodeUCS4_Translate( > PyObject *str, > PyObject *table, > const char *errors > ); > > > > >PyObject* PyUnicodeUCS4_Join( > PyObject *separator, > PyObject *seq > ); > > > > >Py_ssize_t PyUnicodeUCS4_Tailmatch( > PyObject *str, > PyObject *substr, > Py_ssize_t start, > Py_ssize_t end, > int direction > ); > > > > > >Py_ssize_t PyUnicodeUCS4_Find( > PyObject *str, > PyObject *substr, > Py_ssize_t start, > Py_ssize_t end, > int direction > ); > > > >Py_ssize_t PyUnicodeUCS4_Count( > PyObject *str, > PyObject *substr, > Py_ssize_t start, > Py_ssize_t end > ); > > > > >PyObject * PyUnicodeUCS4_Replace( > PyObject *str, > PyObject *substr, > PyObject *replstr, > Py_ssize_t maxcount > > ); > > > > >int PyUnicodeUCS4_Compare( > PyObject *left, > PyObject *right > ); ># 1304 "/home/work/.jumbo/include/python2.7/unicodeobject.h" >PyObject * PyUnicodeUCS4_RichCompare( > PyObject *left, > PyObject *right, > int op > ); > > > > >PyObject * PyUnicodeUCS4_Format( > PyObject *format, > PyObject *args > ); > > > > > > > >int PyUnicodeUCS4_Contains( > PyObject *container, > PyObject *element > ); > > >PyObject * _PyUnicode_XStrip( > PyUnicodeObject *self, > int striptype, > PyObject *sepobj > ); > > > > > >extern const unsigned char _Py_ascii_whitespace[]; ># 1349 "/home/work/.jumbo/include/python2.7/unicodeobject.h" >int _PyUnicodeUCS4_IsLowercase( > Py_UNICODE ch > ); > >int _PyUnicodeUCS4_IsUppercase( > Py_UNICODE ch > ); > >int _PyUnicodeUCS4_IsTitlecase( > Py_UNICODE ch > ); > >int _PyUnicodeUCS4_IsWhitespace( > const Py_UNICODE ch > ); > >int _PyUnicodeUCS4_IsLinebreak( > const Py_UNICODE ch > ); > >Py_UNICODE _PyUnicodeUCS4_ToLowercase( > Py_UNICODE ch > ); > >Py_UNICODE _PyUnicodeUCS4_ToUppercase( > Py_UNICODE ch > ); > >Py_UNICODE _PyUnicodeUCS4_ToTitlecase( > Py_UNICODE ch > ); > >int _PyUnicodeUCS4_ToDecimalDigit( > Py_UNICODE ch > ); > >int _PyUnicodeUCS4_ToDigit( > Py_UNICODE ch > ); > >double _PyUnicodeUCS4_ToNumeric( > Py_UNICODE ch > ); > >int _PyUnicodeUCS4_IsDecimalDigit( > Py_UNICODE ch > ); > >int _PyUnicodeUCS4_IsDigit( > Py_UNICODE ch > ); > >int _PyUnicodeUCS4_IsNumeric( > Py_UNICODE ch > ); > >int _PyUnicodeUCS4_IsAlpha( > Py_UNICODE ch > ); ># 86 "/home/work/.jumbo/include/python2.7/Python.h" 2 ># 1 "/home/work/.jumbo/include/python2.7/intobject.h" 1 ># 23 "/home/work/.jumbo/include/python2.7/intobject.h" >typedef struct { > Py_ssize_t ob_refcnt; struct _typeobject *ob_type; > long ob_ival; >} PyIntObject; > >extern PyTypeObject PyInt_Type; > > > > > >PyObject * PyInt_FromString(char*, char**, int); > >PyObject * PyInt_FromUnicode(Py_UNICODE*, Py_ssize_t, int); > >PyObject * PyInt_FromLong(long); >PyObject * PyInt_FromSize_t(size_t); >PyObject * PyInt_FromSsize_t(Py_ssize_t); >long PyInt_AsLong(PyObject *); >Py_ssize_t PyInt_AsSsize_t(PyObject *); >unsigned long PyInt_AsUnsignedLongMask(PyObject *); > >unsigned long long PyInt_AsUnsignedLongLongMask(PyObject *); > > >long PyInt_GetMax(void); ># 59 "/home/work/.jumbo/include/python2.7/intobject.h" >unsigned long PyOS_strtoul(char *, char **, int); >long PyOS_strtol(char *, char **, int); > > >int PyInt_ClearFreeList(void); > > > > > >PyObject* _PyInt_Format(PyIntObject* v, int base, int newstyle); > > > >PyObject * _PyInt_FormatAdvanced(PyObject *obj, > char *format_spec, > Py_ssize_t format_spec_len); ># 87 "/home/work/.jumbo/include/python2.7/Python.h" 2 ># 1 "/home/work/.jumbo/include/python2.7/boolobject.h" 1 ># 10 "/home/work/.jumbo/include/python2.7/boolobject.h" >typedef PyIntObject PyBoolObject; > >extern PyTypeObject PyBool_Type; > > > > > > > >extern PyIntObject _Py_ZeroStruct, _Py_TrueStruct; ># 31 "/home/work/.jumbo/include/python2.7/boolobject.h" >PyObject * PyBool_FromLong(long); ># 88 "/home/work/.jumbo/include/python2.7/Python.h" 2 ># 1 "/home/work/.jumbo/include/python2.7/longobject.h" 1 ># 10 "/home/work/.jumbo/include/python2.7/longobject.h" >typedef struct _longobject PyLongObject; > >extern PyTypeObject PyLong_Type; > > > > > >PyObject * PyLong_FromLong(long); >PyObject * PyLong_FromUnsignedLong(unsigned long); >PyObject * PyLong_FromDouble(double); >PyObject * PyLong_FromSize_t(size_t); >PyObject * PyLong_FromSsize_t(Py_ssize_t); >long PyLong_AsLong(PyObject *); >long PyLong_AsLongAndOverflow(PyObject *, int *); >unsigned long PyLong_AsUnsignedLong(PyObject *); >unsigned long PyLong_AsUnsignedLongMask(PyObject *); >Py_ssize_t PyLong_AsSsize_t(PyObject *); >PyObject * PyLong_GetInfo(void); > > > > > >extern int _PyLong_DigitValue[256]; > > > > > > > >double _PyLong_Frexp(PyLongObject *a, Py_ssize_t *e); > >double PyLong_AsDouble(PyObject *); >PyObject * PyLong_FromVoidPtr(void *); >void * PyLong_AsVoidPtr(PyObject *); > > >PyObject * PyLong_FromLongLong(long long); >PyObject * PyLong_FromUnsignedLongLong(unsigned long long); >long long PyLong_AsLongLong(PyObject *); >unsigned long long PyLong_AsUnsignedLongLong(PyObject *); >unsigned long long PyLong_AsUnsignedLongLongMask(PyObject *); >long long PyLong_AsLongLongAndOverflow(PyObject *, int *); > > >PyObject * PyLong_FromString(char *, char **, int); > >PyObject * PyLong_FromUnicode(Py_UNICODE*, Py_ssize_t, int); > > > > > > >int _PyLong_Sign(PyObject *v); ># 76 "/home/work/.jumbo/include/python2.7/longobject.h" >size_t _PyLong_NumBits(PyObject *v); ># 91 "/home/work/.jumbo/include/python2.7/longobject.h" >PyObject * _PyLong_FromByteArray( > const unsigned char* bytes, size_t n, > int little_endian, int is_signed); ># 114 "/home/work/.jumbo/include/python2.7/longobject.h" >int _PyLong_AsByteArray(PyLongObject* v, > unsigned char* bytes, size_t n, > int little_endian, int is_signed); > > > > > > >PyObject * _PyLong_Format(PyObject *aa, int base, int addL, int newstyle); > > > >PyObject * _PyLong_FormatAdvanced(PyObject *obj, > char *format_spec, > Py_ssize_t format_spec_len); ># 89 "/home/work/.jumbo/include/python2.7/Python.h" 2 ># 1 "/home/work/.jumbo/include/python2.7/floatobject.h" 1 ># 14 "/home/work/.jumbo/include/python2.7/floatobject.h" >typedef struct { > Py_ssize_t ob_refcnt; struct _typeobject *ob_type; > double ob_fval; >} PyFloatObject; > >extern PyTypeObject PyFloat_Type; ># 41 "/home/work/.jumbo/include/python2.7/floatobject.h" >double PyFloat_GetMax(void); >double PyFloat_GetMin(void); >PyObject * PyFloat_GetInfo(void); > > > > >PyObject * PyFloat_FromString(PyObject*, char** junk); > > >PyObject * PyFloat_FromDouble(double); > > > >double PyFloat_AsDouble(PyObject *); > > > > > > >void PyFloat_AsReprString(char*, PyFloatObject *v); > > > > > > >void PyFloat_AsString(char*, PyFloatObject *v); ># 103 "/home/work/.jumbo/include/python2.7/floatobject.h" >int _PyFloat_Pack4(double x, unsigned char *p, int le); >int _PyFloat_Pack8(double x, unsigned char *p, int le); > > >int _PyFloat_Digits(char *buf, double v, int *signum); >void _PyFloat_DigitsInit(void); ># 118 "/home/work/.jumbo/include/python2.7/floatobject.h" >double _PyFloat_Unpack4(const unsigned char *p, int le); >double _PyFloat_Unpack8(const unsigned char *p, int le); > > >int PyFloat_ClearFreeList(void); > > > >PyObject * _PyFloat_FormatAdvanced(PyObject *obj, > char *format_spec, > Py_ssize_t format_spec_len); > > > > >PyObject * _Py_double_round(double x, int ndigits); ># 90 "/home/work/.jumbo/include/python2.7/Python.h" 2 > ># 1 "/home/work/.jumbo/include/python2.7/complexobject.h" 1 ># 9 "/home/work/.jumbo/include/python2.7/complexobject.h" >typedef struct { > double real; > double imag; >} Py_complex; ># 24 "/home/work/.jumbo/include/python2.7/complexobject.h" >Py_complex _Py_c_sum(Py_complex, Py_complex); >Py_complex _Py_c_diff(Py_complex, Py_complex); >Py_complex _Py_c_neg(Py_complex); >Py_complex _Py_c_prod(Py_complex, Py_complex); >Py_complex _Py_c_quot(Py_complex, Py_complex); >Py_complex _Py_c_pow(Py_complex, Py_complex); >double _Py_c_abs(Py_complex); ># 40 "/home/work/.jumbo/include/python2.7/complexobject.h" >typedef struct { > Py_ssize_t ob_refcnt; struct _typeobject *ob_type; > Py_complex cval; >} PyComplexObject; > >extern PyTypeObject PyComplex_Type; > > > > >PyObject * PyComplex_FromCComplex(Py_complex); >PyObject * PyComplex_FromDoubles(double real, double imag); > >double PyComplex_RealAsDouble(PyObject *op); >double PyComplex_ImagAsDouble(PyObject *op); >Py_complex PyComplex_AsCComplex(PyObject *op); > > > >PyObject * _PyComplex_FormatAdvanced(PyObject *obj, > char *format_spec, > Py_ssize_t format_spec_len); ># 92 "/home/work/.jumbo/include/python2.7/Python.h" 2 > ># 1 "/home/work/.jumbo/include/python2.7/rangeobject.h" 1 ># 21 "/home/work/.jumbo/include/python2.7/rangeobject.h" >extern PyTypeObject PyRange_Type; ># 94 "/home/work/.jumbo/include/python2.7/Python.h" 2 ># 1 "/home/work/.jumbo/include/python2.7/stringobject.h" 1 ># 35 "/home/work/.jumbo/include/python2.7/stringobject.h" >typedef struct { > Py_ssize_t ob_refcnt; struct _typeobject *ob_type; Py_ssize_t ob_size; > long ob_shash; > int ob_sstate; > char ob_sval[1]; ># 49 "/home/work/.jumbo/include/python2.7/stringobject.h" >} PyStringObject; > > > > > >extern PyTypeObject PyBaseString_Type; >extern PyTypeObject PyString_Type; > > > > > >PyObject * PyString_FromStringAndSize(const char *, Py_ssize_t); >PyObject * PyString_FromString(const char *); >PyObject * PyString_FromFormatV(const char*, va_list) > __attribute__((format(printf, 1, 0))); >PyObject * PyString_FromFormat(const char*, ...) > __attribute__((format(printf, 1, 2))); >Py_ssize_t PyString_Size(PyObject *); >char * PyString_AsString(PyObject *); >PyObject * PyString_Repr(PyObject *, int); >void PyString_Concat(PyObject **, PyObject *); >void PyString_ConcatAndDel(PyObject **, PyObject *); >int _PyString_Resize(PyObject **, Py_ssize_t); >int _PyString_Eq(PyObject *, PyObject*); >PyObject * PyString_Format(PyObject *, PyObject *); >PyObject * _PyString_FormatLong(PyObject*, int, int, > int, char**, int*); >PyObject * PyString_DecodeEscape(const char *, Py_ssize_t, > const char *, Py_ssize_t, > const char *); > >void PyString_InternInPlace(PyObject **); >void PyString_InternImmortal(PyObject **); >PyObject * PyString_InternFromString(const char *); >void _Py_ReleaseInternedStrings(void); ># 96 "/home/work/.jumbo/include/python2.7/stringobject.h" >PyObject * _PyString_Join(PyObject *sep, PyObject *x); > > > > > > >PyObject* PyString_Decode( > const char *s, > Py_ssize_t size, > const char *encoding, > const char *errors > ); > > > > >PyObject* PyString_Encode( > const char *s, > Py_ssize_t size, > const char *encoding, > const char *errors > ); > > > > >PyObject* PyString_AsEncodedObject( > PyObject *str, > const char *encoding, > const char *errors > ); ># 137 "/home/work/.jumbo/include/python2.7/stringobject.h" >PyObject* PyString_AsEncodedString( > PyObject *str, > const char *encoding, > const char *errors > ); > > > > >PyObject* PyString_AsDecodedObject( > PyObject *str, > const char *encoding, > const char *errors > ); ># 160 "/home/work/.jumbo/include/python2.7/stringobject.h" >PyObject* PyString_AsDecodedString( > PyObject *str, > const char *encoding, > const char *errors > ); > > > > > > > >int PyString_AsStringAndSize( > register PyObject *obj, > register char **s, > register Py_ssize_t *len > > > ); > > > > > >Py_ssize_t _PyString_InsertThousandsGroupingLocale(char *buffer, > Py_ssize_t n_buffer, > char *digits, > Py_ssize_t n_digits, > Py_ssize_t min_width); > > > > >Py_ssize_t _PyString_InsertThousandsGrouping(char *buffer, > Py_ssize_t n_buffer, > char *digits, > Py_ssize_t n_digits, > Py_ssize_t min_width, > const char *grouping, > const char *thousands_sep); > > > >PyObject * _PyBytes_FormatAdvanced(PyObject *obj, > char *format_spec, > Py_ssize_t format_spec_len); ># 95 "/home/work/.jumbo/include/python2.7/Python.h" 2 ># 1 "/home/work/.jumbo/include/python2.7/memoryobject.h" 1 ># 9 "/home/work/.jumbo/include/python2.7/memoryobject.h" >extern PyTypeObject PyMemoryView_Type; ># 19 "/home/work/.jumbo/include/python2.7/memoryobject.h" >PyObject * PyMemoryView_GetContiguous(PyObject *base, > int buffertype, > char fort); ># 54 "/home/work/.jumbo/include/python2.7/memoryobject.h" >PyObject * PyMemoryView_FromObject(PyObject *base); > >PyObject * PyMemoryView_FromBuffer(Py_buffer *info); > > > > > > > >typedef struct { > Py_ssize_t ob_refcnt; struct _typeobject *ob_type; > PyObject *base; > Py_buffer view; >} PyMemoryViewObject; ># 96 "/home/work/.jumbo/include/python2.7/Python.h" 2 ># 1 "/home/work/.jumbo/include/python2.7/bufferobject.h" 1 ># 13 "/home/work/.jumbo/include/python2.7/bufferobject.h" >extern PyTypeObject PyBuffer_Type; > > > > > >PyObject * PyBuffer_FromObject(PyObject *base, > Py_ssize_t offset, Py_ssize_t size); >PyObject * PyBuffer_FromReadWriteObject(PyObject *base, > Py_ssize_t offset, > Py_ssize_t size); > >PyObject * PyBuffer_FromMemory(void *ptr, Py_ssize_t size); >PyObject * PyBuffer_FromReadWriteMemory(void *ptr, Py_ssize_t size); > >PyObject * PyBuffer_New(Py_ssize_t size); ># 97 "/home/work/.jumbo/include/python2.7/Python.h" 2 ># 1 "/home/work/.jumbo/include/python2.7/bytesobject.h" 1 ># 98 "/home/work/.jumbo/include/python2.7/Python.h" 2 ># 1 "/home/work/.jumbo/include/python2.7/bytearrayobject.h" 1 ># 22 "/home/work/.jumbo/include/python2.7/bytearrayobject.h" >typedef struct { > Py_ssize_t ob_refcnt; struct _typeobject *ob_type; Py_ssize_t ob_size; > > int ob_exports; > Py_ssize_t ob_alloc; > char *ob_bytes; >} PyByteArrayObject; > > >extern PyTypeObject PyByteArray_Type; >extern PyTypeObject PyByteArrayIter_Type; > > > > > > >PyObject * PyByteArray_FromObject(PyObject *); >PyObject * PyByteArray_Concat(PyObject *, PyObject *); >PyObject * PyByteArray_FromStringAndSize(const char *, Py_ssize_t); >Py_ssize_t PyByteArray_Size(PyObject *); >char * PyByteArray_AsString(PyObject *); >int PyByteArray_Resize(PyObject *, Py_ssize_t); > > > > > > > >extern char _PyByteArray_empty_string[]; ># 99 "/home/work/.jumbo/include/python2.7/Python.h" 2 ># 1 "/home/work/.jumbo/include/python2.7/tupleobject.h" 1 ># 24 "/home/work/.jumbo/include/python2.7/tupleobject.h" >typedef struct { > Py_ssize_t ob_refcnt; struct _typeobject *ob_type; Py_ssize_t ob_size; > PyObject *ob_item[1]; > > > > > >} PyTupleObject; > >extern PyTypeObject PyTuple_Type; > > > > > >PyObject * PyTuple_New(Py_ssize_t size); >Py_ssize_t PyTuple_Size(PyObject *); >PyObject * PyTuple_GetItem(PyObject *, Py_ssize_t); >int PyTuple_SetItem(PyObject *, Py_ssize_t, PyObject *); >PyObject * PyTuple_GetSlice(PyObject *, Py_ssize_t, Py_ssize_t); >int _PyTuple_Resize(PyObject **, Py_ssize_t); >PyObject * PyTuple_Pack(Py_ssize_t, ...); >void _PyTuple_MaybeUntrack(PyObject *); ># 56 "/home/work/.jumbo/include/python2.7/tupleobject.h" >int PyTuple_ClearFreeList(void); ># 100 "/home/work/.jumbo/include/python2.7/Python.h" 2 ># 1 "/home/work/.jumbo/include/python2.7/listobject.h" 1 ># 22 "/home/work/.jumbo/include/python2.7/listobject.h" >typedef struct { > Py_ssize_t ob_refcnt; struct _typeobject *ob_type; Py_ssize_t ob_size; > > PyObject **ob_item; ># 38 "/home/work/.jumbo/include/python2.7/listobject.h" > Py_ssize_t allocated; >} PyListObject; > >extern PyTypeObject PyList_Type; > > > > > >PyObject * PyList_New(Py_ssize_t size); >Py_ssize_t PyList_Size(PyObject *); >PyObject * PyList_GetItem(PyObject *, Py_ssize_t); >int PyList_SetItem(PyObject *, Py_ssize_t, PyObject *); >int PyList_Insert(PyObject *, Py_ssize_t, PyObject *); >int PyList_Append(PyObject *, PyObject *); >PyObject * PyList_GetSlice(PyObject *, Py_ssize_t, Py_ssize_t); >int PyList_SetSlice(PyObject *, Py_ssize_t, Py_ssize_t, PyObject *); >int PyList_Sort(PyObject *); >int PyList_Reverse(PyObject *); >PyObject * PyList_AsTuple(PyObject *); >PyObject * _PyList_Extend(PyListObject *, PyObject *); ># 101 "/home/work/.jumbo/include/python2.7/Python.h" 2 ># 1 "/home/work/.jumbo/include/python2.7/dictobject.h" 1 ># 50 "/home/work/.jumbo/include/python2.7/dictobject.h" >typedef struct { > > > > > Py_ssize_t me_hash; > PyObject *me_key; > PyObject *me_value; >} PyDictEntry; ># 69 "/home/work/.jumbo/include/python2.7/dictobject.h" >typedef struct _dictobject PyDictObject; >struct _dictobject { > Py_ssize_t ob_refcnt; struct _typeobject *ob_type; > Py_ssize_t ma_fill; > Py_ssize_t ma_used; > > > > > > Py_ssize_t ma_mask; > > > > > > > PyDictEntry *ma_table; > PyDictEntry *(*ma_lookup)(PyDictObject *mp, PyObject *key, long hash); > PyDictEntry ma_smalltable[8]; >}; > >extern PyTypeObject PyDict_Type; >extern PyTypeObject PyDictIterKey_Type; >extern PyTypeObject PyDictIterValue_Type; >extern PyTypeObject PyDictIterItem_Type; >extern PyTypeObject PyDictKeys_Type; >extern PyTypeObject PyDictItems_Type; >extern PyTypeObject PyDictValues_Type; ># 109 "/home/work/.jumbo/include/python2.7/dictobject.h" >PyObject * PyDict_New(void); >PyObject * PyDict_GetItem(PyObject *mp, PyObject *key); >int PyDict_SetItem(PyObject *mp, PyObject *key, PyObject *item); >int PyDict_DelItem(PyObject *mp, PyObject *key); >void PyDict_Clear(PyObject *mp); >int PyDict_Next( > PyObject *mp, Py_ssize_t *pos, PyObject **key, PyObject **value); >int _PyDict_Next( > PyObject *mp, Py_ssize_t *pos, PyObject **key, PyObject **value, long *hash); >PyObject * PyDict_Keys(PyObject *mp); >PyObject * PyDict_Values(PyObject *mp); >PyObject * PyDict_Items(PyObject *mp); >Py_ssize_t PyDict_Size(PyObject *mp); >PyObject * PyDict_Copy(PyObject *mp); >int PyDict_Contains(PyObject *mp, PyObject *key); >int _PyDict_Contains(PyObject *mp, PyObject *key, long hash); >PyObject * _PyDict_NewPresized(Py_ssize_t minused); >void _PyDict_MaybeUntrack(PyObject *mp); > > >int PyDict_Update(PyObject *mp, PyObject *other); > > > > > > >int PyDict_Merge(PyObject *mp, > PyObject *other, > int override); > > > > > > >int PyDict_MergeFromSeq2(PyObject *d, > PyObject *seq2, > int override); > >PyObject * PyDict_GetItemString(PyObject *dp, const char *key); >int PyDict_SetItemString(PyObject *dp, const char *key, PyObject *item); >int PyDict_DelItemString(PyObject *dp, const char *key); ># 102 "/home/work/.jumbo/include/python2.7/Python.h" 2 ># 1 "/home/work/.jumbo/include/python2.7/enumobject.h" 1 ># 10 "/home/work/.jumbo/include/python2.7/enumobject.h" >extern PyTypeObject PyEnum_Type; >extern PyTypeObject PyReversed_Type; ># 103 "/home/work/.jumbo/include/python2.7/Python.h" 2 ># 1 "/home/work/.jumbo/include/python2.7/setobject.h" 1 ># 24 "/home/work/.jumbo/include/python2.7/setobject.h" >typedef struct { > long hash; > PyObject *key; >} setentry; > > > > > > >typedef struct _setobject PySetObject; >struct _setobject { > Py_ssize_t ob_refcnt; struct _typeobject *ob_type; > > Py_ssize_t fill; > Py_ssize_t used; > > > > > > Py_ssize_t mask; > > > > > > setentry *table; > setentry *(*lookup)(PySetObject *so, PyObject *key, long hash); > setentry smalltable[8]; > > long hash; > PyObject *weakreflist; >}; > >extern PyTypeObject PySet_Type; >extern PyTypeObject PyFrozenSet_Type; ># 83 "/home/work/.jumbo/include/python2.7/setobject.h" >PyObject * PySet_New(PyObject *); >PyObject * PyFrozenSet_New(PyObject *); >Py_ssize_t PySet_Size(PyObject *anyset); > >int PySet_Clear(PyObject *set); >int PySet_Contains(PyObject *anyset, PyObject *key); >int PySet_Discard(PyObject *set, PyObject *key); >int PySet_Add(PyObject *set, PyObject *key); >int _PySet_Next(PyObject *set, Py_ssize_t *pos, PyObject **key); >int _PySet_NextEntry(PyObject *set, Py_ssize_t *pos, PyObject **key, long *hash); >PyObject * PySet_Pop(PyObject *set); >int _PySet_Update(PyObject *set, PyObject *iterable); ># 104 "/home/work/.jumbo/include/python2.7/Python.h" 2 ># 1 "/home/work/.jumbo/include/python2.7/methodobject.h" 1 ># 14 "/home/work/.jumbo/include/python2.7/methodobject.h" >extern PyTypeObject PyCFunction_Type; > > > >typedef PyObject *(*PyCFunction)(PyObject *, PyObject *); >typedef PyObject *(*PyCFunctionWithKeywords)(PyObject *, PyObject *, > PyObject *); >typedef PyObject *(*PyNoArgsFunction)(PyObject *); > >PyCFunction PyCFunction_GetFunction(PyObject *); >PyObject * PyCFunction_GetSelf(PyObject *); >int PyCFunction_GetFlags(PyObject *); ># 35 "/home/work/.jumbo/include/python2.7/methodobject.h" >PyObject * PyCFunction_Call(PyObject *, PyObject *, PyObject *); > >struct PyMethodDef { > const char *ml_name; > PyCFunction ml_meth; > int ml_flags; > > const char *ml_doc; >}; >typedef struct PyMethodDef PyMethodDef; > >PyObject * Py_FindMethod(PyMethodDef[], PyObject *, const char *); > > >PyObject * PyCFunction_NewEx(PyMethodDef *, PyObject *, > PyObject *); ># 73 "/home/work/.jumbo/include/python2.7/methodobject.h" >typedef struct PyMethodChain { > PyMethodDef *methods; > struct PyMethodChain *link; >} PyMethodChain; > >PyObject * Py_FindMethodInChain(PyMethodChain *, PyObject *, > const char *); > >typedef struct { > Py_ssize_t ob_refcnt; struct _typeobject *ob_type; > PyMethodDef *m_ml; > PyObject *m_self; > PyObject *m_module; >} PyCFunctionObject; > >int PyCFunction_ClearFreeList(void); ># 105 "/home/work/.jumbo/include/python2.7/Python.h" 2 ># 1 "/home/work/.jumbo/include/python2.7/moduleobject.h" 1 ># 10 "/home/work/.jumbo/include/python2.7/moduleobject.h" >extern PyTypeObject PyModule_Type; > > > > >PyObject * PyModule_New(const char *); >PyObject * PyModule_GetDict(PyObject *); >char * PyModule_GetName(PyObject *); >char * PyModule_GetFilename(PyObject *); >void _PyModule_Clear(PyObject *); ># 106 "/home/work/.jumbo/include/python2.7/Python.h" 2 ># 1 "/home/work/.jumbo/include/python2.7/funcobject.h" 1 ># 21 "/home/work/.jumbo/include/python2.7/funcobject.h" >typedef struct { > Py_ssize_t ob_refcnt; struct _typeobject *ob_type; > PyObject *func_code; > PyObject *func_globals; > PyObject *func_defaults; > PyObject *func_closure; > PyObject *func_doc; > PyObject *func_name; > PyObject *func_dict; > PyObject *func_weakreflist; > PyObject *func_module; > > > > > > >} PyFunctionObject; > >extern PyTypeObject PyFunction_Type; > > > >PyObject * PyFunction_New(PyObject *, PyObject *); >PyObject * PyFunction_GetCode(PyObject *); >PyObject * PyFunction_GetGlobals(PyObject *); >PyObject * PyFunction_GetModule(PyObject *); >PyObject * PyFunction_GetDefaults(PyObject *); >int PyFunction_SetDefaults(PyObject *, PyObject *); >PyObject * PyFunction_GetClosure(PyObject *); >int PyFunction_SetClosure(PyObject *, PyObject *); ># 67 "/home/work/.jumbo/include/python2.7/funcobject.h" >extern PyTypeObject PyClassMethod_Type; >extern PyTypeObject PyStaticMethod_Type; > >PyObject * PyClassMethod_New(PyObject *); >PyObject * PyStaticMethod_New(PyObject *); ># 107 "/home/work/.jumbo/include/python2.7/Python.h" 2 ># 1 "/home/work/.jumbo/include/python2.7/classobject.h" 1 ># 12 "/home/work/.jumbo/include/python2.7/classobject.h" >typedef struct { > Py_ssize_t ob_refcnt; struct _typeobject *ob_type; > PyObject *cl_bases; > PyObject *cl_dict; > PyObject *cl_name; > > PyObject *cl_getattr; > PyObject *cl_setattr; > PyObject *cl_delattr; > PyObject *cl_weakreflist; >} PyClassObject; > >typedef struct { > Py_ssize_t ob_refcnt; struct _typeobject *ob_type; > PyClassObject *in_class; > PyObject *in_dict; > PyObject *in_weakreflist; >} PyInstanceObject; > >typedef struct { > Py_ssize_t ob_refcnt; struct _typeobject *ob_type; > PyObject *im_func; > PyObject *im_self; > PyObject *im_class; > PyObject *im_weakreflist; >} PyMethodObject; > >extern PyTypeObject PyClass_Type, PyInstance_Type, PyMethod_Type; > > > > > >PyObject * PyClass_New(PyObject *, PyObject *, PyObject *); >PyObject * PyInstance_New(PyObject *, PyObject *, > PyObject *); >PyObject * PyInstance_NewRaw(PyObject *, PyObject *); >PyObject * PyMethod_New(PyObject *, PyObject *, PyObject *); > >PyObject * PyMethod_Function(PyObject *); >PyObject * PyMethod_Self(PyObject *); >PyObject * PyMethod_Class(PyObject *); ># 65 "/home/work/.jumbo/include/python2.7/classobject.h" >PyObject * _PyInstance_Lookup(PyObject *pinst, PyObject *name); ># 76 "/home/work/.jumbo/include/python2.7/classobject.h" >int PyClass_IsSubclass(PyObject *, PyObject *); > >int PyMethod_ClearFreeList(void); ># 108 "/home/work/.jumbo/include/python2.7/Python.h" 2 ># 1 "/home/work/.jumbo/include/python2.7/fileobject.h" 1 ># 10 "/home/work/.jumbo/include/python2.7/fileobject.h" >typedef struct { > Py_ssize_t ob_refcnt; struct _typeobject *ob_type; > FILE *f_fp; > PyObject *f_name; > PyObject *f_mode; > int (*f_close)(FILE *); > int f_softspace; > int f_binary; > > char* f_buf; > char* f_bufend; > char* f_bufptr; > char *f_setbuf; > int f_univ_newline; > int f_newlinetypes; > int f_skipnextlf; > PyObject *f_encoding; > PyObject *f_errors; > PyObject *weakreflist; > int unlocked_count; > > int readable; > int writable; >} PyFileObject; > >extern PyTypeObject PyFile_Type; > > > > >PyObject * PyFile_FromString(char *, char *); >void PyFile_SetBufSize(PyObject *, int); >int PyFile_SetEncoding(PyObject *, const char *); >int PyFile_SetEncodingAndErrors(PyObject *, const char *, char *errors); >PyObject * PyFile_FromFile(FILE *, char *, char *, > int (*)(FILE *)); >FILE * PyFile_AsFile(PyObject *); >void PyFile_IncUseCount(PyFileObject *); >void PyFile_DecUseCount(PyFileObject *); >PyObject * PyFile_Name(PyObject *); >PyObject * PyFile_GetLine(PyObject *, int); >int PyFile_WriteObject(PyObject *, PyObject *, int); >int PyFile_SoftSpace(PyObject *, int); >int PyFile_WriteString(const char *, PyObject *); >int PyObject_AsFileDescriptor(PyObject *); > > > > >extern const char * Py_FileSystemDefaultEncoding; > > > > > >char *Py_UniversalNewlineFgets(char *, int, FILE*, PyObject *); >size_t Py_UniversalNewlineFread(char *, size_t, FILE *, PyObject *); > > > > >int _PyFile_SanitizeMode(char *mode); ># 109 "/home/work/.jumbo/include/python2.7/Python.h" 2 ># 1 "/home/work/.jumbo/include/python2.7/cobject.h" 1 ># 43 "/home/work/.jumbo/include/python2.7/cobject.h" >extern PyTypeObject PyCObject_Type; ># 53 "/home/work/.jumbo/include/python2.7/cobject.h" >PyObject * PyCObject_FromVoidPtr( > void *cobj, void (*destruct)(void*)); > > > > > > > >PyObject * PyCObject_FromVoidPtrAndDesc( > void *cobj, void *desc, void (*destruct)(void*,void*)); > > >void * PyCObject_AsVoidPtr(PyObject *); > > >void * PyCObject_GetDesc(PyObject *); > > >void * PyCObject_Import(char *module_name, char *cobject_name); > > >int PyCObject_SetVoidPtr(PyObject *self, void *cobj); > > >typedef struct { > Py_ssize_t ob_refcnt; struct _typeobject *ob_type; > void *cobject; > void *desc; > void (*destructor)(void *); >} PyCObject; ># 110 "/home/work/.jumbo/include/python2.7/Python.h" 2 ># 1 "/home/work/.jumbo/include/python2.7/pycapsule.h" 1 ># 21 "/home/work/.jumbo/include/python2.7/pycapsule.h" >extern PyTypeObject PyCapsule_Type; > >typedef void (*PyCapsule_Destructor)(PyObject *); > > > > >PyObject * PyCapsule_New( > void *pointer, > const char *name, > PyCapsule_Destructor destructor); > >void * PyCapsule_GetPointer(PyObject *capsule, const char *name); > >PyCapsule_Destructor PyCapsule_GetDestructor(PyObject *capsule); > >const char * PyCapsule_GetName(PyObject *capsule); > >void * PyCapsule_GetContext(PyObject *capsule); > >int PyCapsule_IsValid(PyObject *capsule, const char *name); > >int PyCapsule_SetPointer(PyObject *capsule, void *pointer); > >int PyCapsule_SetDestructor(PyObject *capsule, PyCapsule_Destructor destructor); > >int PyCapsule_SetName(PyObject *capsule, const char *name); > >int PyCapsule_SetContext(PyObject *capsule, void *context); > >void * PyCapsule_Import(const char *name, int no_block); ># 111 "/home/work/.jumbo/include/python2.7/Python.h" 2 ># 1 "/home/work/.jumbo/include/python2.7/traceback.h" 1 > > > > > > > >struct _frame; > > > >typedef struct _traceback { > Py_ssize_t ob_refcnt; struct _typeobject *ob_type; > struct _traceback *tb_next; > struct _frame *tb_frame; > int tb_lasti; > int tb_lineno; >} PyTracebackObject; > >int PyTraceBack_Here(struct _frame *); >int PyTraceBack_Print(PyObject *, PyObject *); >int _Py_DisplaySourceLine(PyObject *, const char *, int, int); > > >extern PyTypeObject PyTraceBack_Type; ># 112 "/home/work/.jumbo/include/python2.7/Python.h" 2 ># 1 "/home/work/.jumbo/include/python2.7/sliceobject.h" 1 ># 9 "/home/work/.jumbo/include/python2.7/sliceobject.h" >extern PyObject _Py_EllipsisObject; ># 22 "/home/work/.jumbo/include/python2.7/sliceobject.h" >typedef struct { > Py_ssize_t ob_refcnt; struct _typeobject *ob_type; > PyObject *start, *stop, *step; >} PySliceObject; > >extern PyTypeObject PySlice_Type; >extern PyTypeObject PyEllipsis_Type; > > > >PyObject * PySlice_New(PyObject* start, PyObject* stop, > PyObject* step); >PyObject * _PySlice_FromIndices(Py_ssize_t start, Py_ssize_t stop); >int PySlice_GetIndices(PySliceObject *r, Py_ssize_t length, > Py_ssize_t *start, Py_ssize_t *stop, Py_ssize_t *step); >int PySlice_GetIndicesEx(PySliceObject *r, Py_ssize_t length, > Py_ssize_t *start, Py_ssize_t *stop, > Py_ssize_t *step, Py_ssize_t *slicelength); ># 113 "/home/work/.jumbo/include/python2.7/Python.h" 2 ># 1 "/home/work/.jumbo/include/python2.7/cellobject.h" 1 ># 9 "/home/work/.jumbo/include/python2.7/cellobject.h" >typedef struct { > Py_ssize_t ob_refcnt; struct _typeobject *ob_type; > PyObject *ob_ref; >} PyCellObject; > >extern PyTypeObject PyCell_Type; > > > >PyObject * PyCell_New(PyObject *); >PyObject * PyCell_Get(PyObject *); >int PyCell_Set(PyObject *, PyObject *); ># 114 "/home/work/.jumbo/include/python2.7/Python.h" 2 ># 1 "/home/work/.jumbo/include/python2.7/iterobject.h" 1 > > > > > > > >extern PyTypeObject PySeqIter_Type; > > > >PyObject * PySeqIter_New(PyObject *); > >extern PyTypeObject PyCallIter_Type; > > > >PyObject * PyCallIter_New(PyObject *, PyObject *); ># 115 "/home/work/.jumbo/include/python2.7/Python.h" 2 ># 1 "/home/work/.jumbo/include/python2.7/genobject.h" 1 ># 10 "/home/work/.jumbo/include/python2.7/genobject.h" >struct _frame; > >typedef struct { > Py_ssize_t ob_refcnt; struct _typeobject *ob_type; > > > > struct _frame *gi_frame; > > > int gi_running; > > > PyObject *gi_code; > > > PyObject *gi_weakreflist; >} PyGenObject; > >extern PyTypeObject PyGen_Type; > > > > >PyObject * PyGen_New(struct _frame *); >int PyGen_NeedsFinalizing(PyGenObject *); ># 116 "/home/work/.jumbo/include/python2.7/Python.h" 2 ># 1 "/home/work/.jumbo/include/python2.7/descrobject.h" 1 > > > > > > > >typedef PyObject *(*getter)(PyObject *, void *); >typedef int (*setter)(PyObject *, PyObject *, void *); > >typedef struct PyGetSetDef { > char *name; > getter get; > setter set; > char *doc; > void *closure; >} PyGetSetDef; > >typedef PyObject *(*wrapperfunc)(PyObject *self, PyObject *args, > void *wrapped); > >typedef PyObject *(*wrapperfunc_kwds)(PyObject *self, PyObject *args, > void *wrapped, PyObject *kwds); > >struct wrapperbase { > char *name; > int offset; > void *function; > wrapperfunc wrapper; > char *doc; > int flags; > PyObject *name_strobj; >}; ># 45 "/home/work/.jumbo/include/python2.7/descrobject.h" >typedef struct { > Py_ssize_t ob_refcnt; struct _typeobject *ob_type; PyTypeObject *d_type; PyObject *d_name; >} PyDescrObject; > >typedef struct { > Py_ssize_t ob_refcnt; struct _typeobject *ob_type; PyTypeObject *d_type; PyObject *d_name; > PyMethodDef *d_method; >} PyMethodDescrObject; > >typedef struct { > Py_ssize_t ob_refcnt; struct _typeobject *ob_type; PyTypeObject *d_type; PyObject *d_name; > struct PyMemberDef *d_member; >} PyMemberDescrObject; > >typedef struct { > Py_ssize_t ob_refcnt; struct _typeobject *ob_type; PyTypeObject *d_type; PyObject *d_name; > PyGetSetDef *d_getset; >} PyGetSetDescrObject; > >typedef struct { > Py_ssize_t ob_refcnt; struct _typeobject *ob_type; PyTypeObject *d_type; PyObject *d_name; > struct wrapperbase *d_base; > void *d_wrapped; >} PyWrapperDescrObject; > >extern PyTypeObject PyWrapperDescr_Type; >extern PyTypeObject PyDictProxy_Type; >extern PyTypeObject PyGetSetDescr_Type; >extern PyTypeObject PyMemberDescr_Type; > >PyObject * PyDescr_NewMethod(PyTypeObject *, PyMethodDef *); >PyObject * PyDescr_NewClassMethod(PyTypeObject *, PyMethodDef *); >PyObject * PyDescr_NewMember(PyTypeObject *, > struct PyMemberDef *); >PyObject * PyDescr_NewGetSet(PyTypeObject *, > struct PyGetSetDef *); >PyObject * PyDescr_NewWrapper(PyTypeObject *, > struct wrapperbase *, void *); > > >PyObject * PyDictProxy_New(PyObject *); >PyObject * PyWrapper_New(PyObject *, PyObject *); > > >extern PyTypeObject PyProperty_Type; ># 117 "/home/work/.jumbo/include/python2.7/Python.h" 2 ># 1 "/home/work/.jumbo/include/python2.7/warnings.h" 1 > > > > > > >void _PyWarnings_Init(void); > >int PyErr_WarnEx(PyObject *, const char *, Py_ssize_t); >int PyErr_WarnExplicit(PyObject *, const char *, const char *, int, > const char *, PyObject *); ># 118 "/home/work/.jumbo/include/python2.7/Python.h" 2 ># 1 "/home/work/.jumbo/include/python2.7/weakrefobject.h" 1 ># 10 "/home/work/.jumbo/include/python2.7/weakrefobject.h" >typedef struct _PyWeakReference PyWeakReference; > > > > >struct _PyWeakReference { > Py_ssize_t ob_refcnt; struct _typeobject *ob_type; > > > > > > PyObject *wr_object; > > > PyObject *wr_callback; > > > > > long hash; > > > > > > > PyWeakReference *wr_prev; > PyWeakReference *wr_next; >}; > >extern PyTypeObject _PyWeakref_RefType; >extern PyTypeObject _PyWeakref_ProxyType; >extern PyTypeObject _PyWeakref_CallableProxyType; ># 59 "/home/work/.jumbo/include/python2.7/weakrefobject.h" >PyObject * PyWeakref_NewRef(PyObject *ob, > PyObject *callback); >PyObject * PyWeakref_NewProxy(PyObject *ob, > PyObject *callback); >PyObject * PyWeakref_GetObject(PyObject *ref); > >Py_ssize_t _PyWeakref_GetWeakrefCount(PyWeakReference *head); > >void _PyWeakref_ClearRef(PyWeakReference *self); ># 119 "/home/work/.jumbo/include/python2.7/Python.h" 2 > ># 1 "/home/work/.jumbo/include/python2.7/codecs.h" 1 ># 26 "/home/work/.jumbo/include/python2.7/codecs.h" >int PyCodec_Register( > PyObject *search_function > ); ># 48 "/home/work/.jumbo/include/python2.7/codecs.h" >PyObject * _PyCodec_Lookup( > const char *encoding > ); ># 62 "/home/work/.jumbo/include/python2.7/codecs.h" >PyObject * PyCodec_Encode( > PyObject *object, > const char *encoding, > const char *errors > ); ># 78 "/home/work/.jumbo/include/python2.7/codecs.h" >PyObject * PyCodec_Decode( > PyObject *object, > const char *encoding, > const char *errors > ); ># 94 "/home/work/.jumbo/include/python2.7/codecs.h" >PyObject * PyCodec_Encoder( > const char *encoding > ); > > > >PyObject * PyCodec_Decoder( > const char *encoding > ); > > > >PyObject * PyCodec_IncrementalEncoder( > const char *encoding, > const char *errors > ); > > > >PyObject * PyCodec_IncrementalDecoder( > const char *encoding, > const char *errors > ); > > > >PyObject * PyCodec_StreamReader( > const char *encoding, > PyObject *stream, > const char *errors > ); > > > >PyObject * PyCodec_StreamWriter( > const char *encoding, > PyObject *stream, > const char *errors > ); ># 142 "/home/work/.jumbo/include/python2.7/codecs.h" >int PyCodec_RegisterError(const char *name, PyObject *error); > > > > >PyObject * PyCodec_LookupError(const char *name); > > >PyObject * PyCodec_StrictErrors(PyObject *exc); > > >PyObject * PyCodec_IgnoreErrors(PyObject *exc); > > >PyObject * PyCodec_ReplaceErrors(PyObject *exc); > > >PyObject * PyCodec_XMLCharRefReplaceErrors(PyObject *exc); > > >PyObject * PyCodec_BackslashReplaceErrors(PyObject *exc); ># 121 "/home/work/.jumbo/include/python2.7/Python.h" 2 ># 1 "/home/work/.jumbo/include/python2.7/pyerrors.h" 1 ># 9 "/home/work/.jumbo/include/python2.7/pyerrors.h" >typedef struct { > Py_ssize_t ob_refcnt; struct _typeobject *ob_type; > PyObject *dict; > PyObject *args; > PyObject *message; >} PyBaseExceptionObject; > >typedef struct { > Py_ssize_t ob_refcnt; struct _typeobject *ob_type; > PyObject *dict; > PyObject *args; > PyObject *message; > PyObject *msg; > PyObject *filename; > PyObject *lineno; > PyObject *offset; > PyObject *text; > PyObject *print_file_and_line; >} PySyntaxErrorObject; > > >typedef struct { > Py_ssize_t ob_refcnt; struct _typeobject *ob_type; > PyObject *dict; > PyObject *args; > PyObject *message; > PyObject *encoding; > PyObject *object; > Py_ssize_t start; > Py_ssize_t end; > PyObject *reason; >} PyUnicodeErrorObject; > > >typedef struct { > Py_ssize_t ob_refcnt; struct _typeobject *ob_type; > PyObject *dict; > PyObject *args; > PyObject *message; > PyObject *code; >} PySystemExitObject; > >typedef struct { > Py_ssize_t ob_refcnt; struct _typeobject *ob_type; > PyObject *dict; > PyObject *args; > PyObject *message; > PyObject *myerrno; > PyObject *strerror; > PyObject *filename; >} PyEnvironmentErrorObject; ># 76 "/home/work/.jumbo/include/python2.7/pyerrors.h" >void PyErr_SetNone(PyObject *); >void PyErr_SetObject(PyObject *, PyObject *); >void PyErr_SetString(PyObject *, const char *); >PyObject * PyErr_Occurred(void); >void PyErr_Clear(void); >void PyErr_Fetch(PyObject **, PyObject **, PyObject **); >void PyErr_Restore(PyObject *, PyObject *, PyObject *); ># 91 "/home/work/.jumbo/include/python2.7/pyerrors.h" >int PyErr_GivenExceptionMatches(PyObject *, PyObject *); >int PyErr_ExceptionMatches(PyObject *); >void PyErr_NormalizeException(PyObject**, PyObject**, PyObject**); ># 118 "/home/work/.jumbo/include/python2.7/pyerrors.h" >extern PyObject * PyExc_BaseException; >extern PyObject * PyExc_Exception; >extern PyObject * PyExc_StopIteration; >extern PyObject * PyExc_GeneratorExit; >extern PyObject * PyExc_StandardError; >extern PyObject * PyExc_ArithmeticError; >extern PyObject * PyExc_LookupError; > >extern PyObject * PyExc_AssertionError; >extern PyObject * PyExc_AttributeError; >extern PyObject * PyExc_EOFError; >extern PyObject * PyExc_FloatingPointError; >extern PyObject * PyExc_EnvironmentError; >extern PyObject * PyExc_IOError; >extern PyObject * PyExc_OSError; >extern PyObject * PyExc_ImportError; >extern PyObject * PyExc_IndexError; >extern PyObject * PyExc_KeyError; >extern PyObject * PyExc_KeyboardInterrupt; >extern PyObject * PyExc_MemoryError; >extern PyObject * PyExc_NameError; >extern PyObject * PyExc_OverflowError; >extern PyObject * PyExc_RuntimeError; >extern PyObject * PyExc_NotImplementedError; >extern PyObject * PyExc_SyntaxError; >extern PyObject * PyExc_IndentationError; >extern PyObject * PyExc_TabError; >extern PyObject * PyExc_ReferenceError; >extern PyObject * PyExc_SystemError; >extern PyObject * PyExc_SystemExit; >extern PyObject * PyExc_TypeError; >extern PyObject * PyExc_UnboundLocalError; >extern PyObject * PyExc_UnicodeError; >extern PyObject * PyExc_UnicodeEncodeError; >extern PyObject * PyExc_UnicodeDecodeError; >extern PyObject * PyExc_UnicodeTranslateError; >extern PyObject * PyExc_ValueError; >extern PyObject * PyExc_ZeroDivisionError; > > > > > > > >extern PyObject * PyExc_BufferError; > >extern PyObject * PyExc_MemoryErrorInst; >extern PyObject * PyExc_RecursionErrorInst; > > >extern PyObject * PyExc_Warning; >extern PyObject * PyExc_UserWarning; >extern PyObject * PyExc_DeprecationWarning; >extern PyObject * PyExc_PendingDeprecationWarning; >extern PyObject * PyExc_SyntaxWarning; >extern PyObject * PyExc_RuntimeWarning; >extern PyObject * PyExc_FutureWarning; >extern PyObject * PyExc_ImportWarning; >extern PyObject * PyExc_UnicodeWarning; >extern PyObject * PyExc_BytesWarning; > > > > >int PyErr_BadArgument(void); >PyObject * PyErr_NoMemory(void); >PyObject * PyErr_SetFromErrno(PyObject *); >PyObject * PyErr_SetFromErrnoWithFilenameObject( > PyObject *, PyObject *); >PyObject * PyErr_SetFromErrnoWithFilename( > PyObject *, const char *); > > > > > >PyObject * PyErr_Format(PyObject *, const char *, ...) > __attribute__((format(printf, 2, 3))); ># 216 "/home/work/.jumbo/include/python2.7/pyerrors.h" >void PyErr_BadInternalCall(void); >void _PyErr_BadInternalCall(char *filename, int lineno); > > > > > >PyObject * PyErr_NewException( > char *name, PyObject *base, PyObject *dict); >PyObject * PyErr_NewExceptionWithDoc( > char *name, char *doc, PyObject *base, PyObject *dict); >void PyErr_WriteUnraisable(PyObject *); > > >int PyErr_CheckSignals(void); >void PyErr_SetInterrupt(void); > > >int PySignal_SetWakeupFd(int fd); > > >void PyErr_SyntaxLocation(const char *, int); >PyObject * PyErr_ProgramText(const char *, int); > > > > > > >PyObject * PyUnicodeDecodeError_Create( > const char *, const char *, Py_ssize_t, Py_ssize_t, Py_ssize_t, const char *); > > >PyObject * PyUnicodeEncodeError_Create( > const char *, const Py_UNICODE *, Py_ssize_t, Py_ssize_t, Py_ssize_t, const char *); > > >PyObject * PyUnicodeTranslateError_Create( > const Py_UNICODE *, Py_ssize_t, Py_ssize_t, Py_ssize_t, const char *); > > >PyObject * PyUnicodeEncodeError_GetEncoding(PyObject *); >PyObject * PyUnicodeDecodeError_GetEncoding(PyObject *); > > >PyObject * PyUnicodeEncodeError_GetObject(PyObject *); >PyObject * PyUnicodeDecodeError_GetObject(PyObject *); >PyObject * PyUnicodeTranslateError_GetObject(PyObject *); > > > >int PyUnicodeEncodeError_GetStart(PyObject *, Py_ssize_t *); >int PyUnicodeDecodeError_GetStart(PyObject *, Py_ssize_t *); >int PyUnicodeTranslateError_GetStart(PyObject *, Py_ssize_t *); > > > >int PyUnicodeEncodeError_SetStart(PyObject *, Py_ssize_t); >int PyUnicodeDecodeError_SetStart(PyObject *, Py_ssize_t); >int PyUnicodeTranslateError_SetStart(PyObject *, Py_ssize_t); > > > >int PyUnicodeEncodeError_GetEnd(PyObject *, Py_ssize_t *); >int PyUnicodeDecodeError_GetEnd(PyObject *, Py_ssize_t *); >int PyUnicodeTranslateError_GetEnd(PyObject *, Py_ssize_t *); > > > >int PyUnicodeEncodeError_SetEnd(PyObject *, Py_ssize_t); >int PyUnicodeDecodeError_SetEnd(PyObject *, Py_ssize_t); >int PyUnicodeTranslateError_SetEnd(PyObject *, Py_ssize_t); > > >PyObject * PyUnicodeEncodeError_GetReason(PyObject *); >PyObject * PyUnicodeDecodeError_GetReason(PyObject *); >PyObject * PyUnicodeTranslateError_GetReason(PyObject *); > > > >int PyUnicodeEncodeError_SetReason( > PyObject *, const char *); >int PyUnicodeDecodeError_SetReason( > PyObject *, const char *); >int PyUnicodeTranslateError_SetReason( > PyObject *, const char *); ># 320 "/home/work/.jumbo/include/python2.7/pyerrors.h" >int PyOS_snprintf(char *str, size_t size, const char *format, ...) > __attribute__((format(printf, 3, 4))); >int PyOS_vsnprintf(char *str, size_t size, const char *format, va_list va) > __attribute__((format(printf, 3, 0))); ># 122 "/home/work/.jumbo/include/python2.7/Python.h" 2 > ># 1 "/home/work/.jumbo/include/python2.7/pystate.h" 1 ># 13 "/home/work/.jumbo/include/python2.7/pystate.h" >struct _ts; >struct _is; > >typedef struct _is { > > struct _is *next; > struct _ts *tstate_head; > > PyObject *modules; > PyObject *sysdict; > PyObject *builtins; > PyObject *modules_reloading; > > PyObject *codec_search_path; > PyObject *codec_search_cache; > PyObject *codec_error_registry; > > > int dlopenflags; > > > > > >} PyInterpreterState; > > > > >struct _frame; > > >typedef int (*Py_tracefunc)(PyObject *, struct _frame *, int, PyObject *); ># 56 "/home/work/.jumbo/include/python2.7/pystate.h" >typedef struct _ts { > > > struct _ts *next; > PyInterpreterState *interp; > > struct _frame *frame; > int recursion_depth; > > > > int tracing; > int use_tracing; > > Py_tracefunc c_profilefunc; > Py_tracefunc c_tracefunc; > PyObject *c_profileobj; > PyObject *c_traceobj; > > PyObject *curexc_type; > PyObject *curexc_value; > PyObject *curexc_traceback; > > PyObject *exc_type; > PyObject *exc_value; > PyObject *exc_traceback; > > PyObject *dict; > > > > > > > > int tick_counter; > > int gilstate_counter; > > PyObject *async_exc; > long thread_id; > > > >} PyThreadState; > > >PyInterpreterState * PyInterpreterState_New(void); >void PyInterpreterState_Clear(PyInterpreterState *); >void PyInterpreterState_Delete(PyInterpreterState *); > >PyThreadState * PyThreadState_New(PyInterpreterState *); >PyThreadState * _PyThreadState_Prealloc(PyInterpreterState *); >void _PyThreadState_Init(PyThreadState *); >void PyThreadState_Clear(PyThreadState *); >void PyThreadState_Delete(PyThreadState *); > >void PyThreadState_DeleteCurrent(void); > > >PyThreadState * PyThreadState_Get(void); >PyThreadState * PyThreadState_Swap(PyThreadState *); >PyObject * PyThreadState_GetDict(void); >int PyThreadState_SetAsyncExc(long, PyObject *); > > > > >extern PyThreadState * _PyThreadState_Current; > > > > > > > >typedef > enum {PyGILState_LOCKED, PyGILState_UNLOCKED} > PyGILState_STATE; ># 157 "/home/work/.jumbo/include/python2.7/pystate.h" >PyGILState_STATE PyGILState_Ensure(void); ># 167 "/home/work/.jumbo/include/python2.7/pystate.h" >void PyGILState_Release(PyGILState_STATE); > > > > > > > >PyThreadState * PyGILState_GetThisThreadState(void); > > > > >PyObject * _PyThread_CurrentFrames(void); > > > >PyInterpreterState * PyInterpreterState_Head(void); >PyInterpreterState * PyInterpreterState_Next(PyInterpreterState *); >PyThreadState * PyInterpreterState_ThreadHead(PyInterpreterState *); >PyThreadState * PyThreadState_Next(PyThreadState *); > >typedef struct _frame *(*PyThreadFrameGetter)(PyThreadState *self_); > > >extern PyThreadFrameGetter _PyThreadState_GetFrame; ># 124 "/home/work/.jumbo/include/python2.7/Python.h" 2 > ># 1 "/home/work/.jumbo/include/python2.7/pyarena.h" 1 ># 11 "/home/work/.jumbo/include/python2.7/pyarena.h" > typedef struct _arena PyArena; ># 35 "/home/work/.jumbo/include/python2.7/pyarena.h" > PyArena * PyArena_New(void); > void PyArena_Free(PyArena *); ># 50 "/home/work/.jumbo/include/python2.7/pyarena.h" > void * PyArena_Malloc(PyArena *, size_t size); > > > > > > int PyArena_AddPyObject(PyArena *, PyObject *); ># 126 "/home/work/.jumbo/include/python2.7/Python.h" 2 ># 1 "/home/work/.jumbo/include/python2.7/modsupport.h" 1 ># 26 "/home/work/.jumbo/include/python2.7/modsupport.h" >int _PyArg_Parse_SizeT(PyObject *, const char *, ...); >int _PyArg_ParseTuple_SizeT(PyObject *, const char *, ...) ; >int _PyArg_ParseTupleAndKeywords_SizeT(PyObject *, PyObject *, > const char *, char **, ...); >int PyArg_UnpackTuple(PyObject *, const char *, Py_ssize_t, Py_ssize_t, ...); >PyObject * _Py_BuildValue_SizeT(const char *, ...); >PyObject * _Py_BuildValue_SizeT(const char *, ...); >int _PyArg_NoKeywords(const char *funcname, PyObject *kw); > >int _PyArg_VaParse_SizeT(PyObject *, const char *, va_list); >int _PyArg_VaParseTupleAndKeywords_SizeT(PyObject *, PyObject *, > const char *, char **, va_list); >PyObject * _Py_VaBuildValue_SizeT(const char *, va_list); > >int PyModule_AddObject(PyObject *, const char *, PyObject *); >int PyModule_AddIntConstant(PyObject *, const char *, long); >int PyModule_AddStringConstant(PyObject *, const char *, const char *); ># 117 "/home/work/.jumbo/include/python2.7/modsupport.h" >PyObject * Py_InitModule4_64(const char *name, PyMethodDef *methods, > const char *doc, PyObject *self, > int apiver); ># 129 "/home/work/.jumbo/include/python2.7/modsupport.h" >extern char * _Py_PackageContext; ># 127 "/home/work/.jumbo/include/python2.7/Python.h" 2 ># 1 "/home/work/.jumbo/include/python2.7/pythonrun.h" 1 ># 18 "/home/work/.jumbo/include/python2.7/pythonrun.h" >typedef struct { > int cf_flags; >} PyCompilerFlags; > >void Py_SetProgramName(char *); >char * Py_GetProgramName(void); > >void Py_SetPythonHome(char *); >char * Py_GetPythonHome(void); > >void Py_Initialize(void); >void Py_InitializeEx(int); >void Py_Finalize(void); >int Py_IsInitialized(void); >PyThreadState * Py_NewInterpreter(void); >void Py_EndInterpreter(PyThreadState *); > >int PyRun_AnyFileFlags(FILE *, const char *, PyCompilerFlags *); >int PyRun_AnyFileExFlags(FILE *, const char *, int, PyCompilerFlags *); >int PyRun_SimpleStringFlags(const char *, PyCompilerFlags *); >int PyRun_SimpleFileExFlags(FILE *, const char *, int, PyCompilerFlags *); >int PyRun_InteractiveOneFlags(FILE *, const char *, PyCompilerFlags *); >int PyRun_InteractiveLoopFlags(FILE *, const char *, PyCompilerFlags *); > >struct _mod * PyParser_ASTFromString(const char *, const char *, > int, PyCompilerFlags *flags, > PyArena *); >struct _mod * PyParser_ASTFromFile(FILE *, const char *, int, > char *, char *, > PyCompilerFlags *, int *, > PyArena *); > > > > >struct _node * PyParser_SimpleParseStringFlags(const char *, int, > int); >struct _node * PyParser_SimpleParseFileFlags(FILE *, const char *, > int, int); > >PyObject * PyRun_StringFlags(const char *, int, PyObject *, > PyObject *, PyCompilerFlags *); > >PyObject * PyRun_FileExFlags(FILE *, const char *, int, > PyObject *, PyObject *, int, > PyCompilerFlags *); > > >PyObject * Py_CompileStringFlags(const char *, const char *, int, > PyCompilerFlags *); >struct symtable * Py_SymtableString(const char *, const char *, int); > >void PyErr_Print(void); >void PyErr_PrintEx(int); >void PyErr_Display(PyObject *, PyObject *, PyObject *); > >int Py_AtExit(void (*func)(void)); > >void Py_Exit(int); > >int Py_FdIsInteractive(FILE *, const char *); > > >int Py_Main(int argc, char **argv); ># 103 "/home/work/.jumbo/include/python2.7/pythonrun.h" >char * Py_GetProgramFullPath(void); >char * Py_GetPrefix(void); >char * Py_GetExecPrefix(void); >char * Py_GetPath(void); > > >const char * Py_GetVersion(void); >const char * Py_GetPlatform(void); >const char * Py_GetCopyright(void); >const char * Py_GetCompiler(void); >const char * Py_GetBuildInfo(void); >const char * _Py_svnversion(void); >const char * Py_SubversionRevision(void); >const char * Py_SubversionShortBranch(void); >const char * _Py_hgidentifier(void); >const char * _Py_hgversion(void); > > >PyObject * _PyBuiltin_Init(void); >PyObject * _PySys_Init(void); >void _PyImport_Init(void); >void _PyExc_Init(void); >void _PyImportHooks_Init(void); >int _PyFrame_Init(void); >int _PyInt_Init(void); >int _PyLong_Init(void); >void _PyFloat_Init(void); >int PyByteArray_Init(void); >void _PyRandom_Init(void); > > >void _PyExc_Fini(void); >void _PyImport_Fini(void); >void PyMethod_Fini(void); >void PyFrame_Fini(void); >void PyCFunction_Fini(void); >void PyDict_Fini(void); >void PyTuple_Fini(void); >void PyList_Fini(void); >void PySet_Fini(void); >void PyString_Fini(void); >void PyInt_Fini(void); >void PyFloat_Fini(void); >void PyOS_FiniInterrupts(void); >void PyByteArray_Fini(void); > > >char * PyOS_Readline(FILE *, FILE *, char *); >extern int (*PyOS_InputHook)(void); >extern char *(*PyOS_ReadlineFunctionPointer)(FILE *, FILE *, char *); >extern PyThreadState* _PyOS_ReadlineTState; ># 171 "/home/work/.jumbo/include/python2.7/pythonrun.h" >typedef void (*PyOS_sighandler_t)(int); >PyOS_sighandler_t PyOS_getsig(int); >PyOS_sighandler_t PyOS_setsig(int, PyOS_sighandler_t); > > >int _PyOS_URandom (void *buffer, Py_ssize_t size); ># 128 "/home/work/.jumbo/include/python2.7/Python.h" 2 ># 1 "/home/work/.jumbo/include/python2.7/ceval.h" 1 ># 10 "/home/work/.jumbo/include/python2.7/ceval.h" >PyObject * PyEval_CallObjectWithKeywords( > PyObject *, PyObject *, PyObject *); > > > > > >PyObject * PyEval_CallFunction(PyObject *obj, > const char *format, ...); >PyObject * PyEval_CallMethod(PyObject *obj, > const char *methodname, > const char *format, ...); > >void PyEval_SetProfile(Py_tracefunc, PyObject *); >void PyEval_SetTrace(Py_tracefunc, PyObject *); > >struct _frame; > >PyObject * PyEval_GetBuiltins(void); >PyObject * PyEval_GetGlobals(void); >PyObject * PyEval_GetLocals(void); >struct _frame * PyEval_GetFrame(void); >int PyEval_GetRestricted(void); > > > > >int PyEval_MergeCompilerFlags(PyCompilerFlags *cf); > >int Py_FlushLine(void); > >int Py_AddPendingCall(int (*func)(void *), void *arg); >int Py_MakePendingCalls(void); > > >void Py_SetRecursionLimit(int); >int Py_GetRecursionLimit(void); > > > > > > >int _Py_CheckRecursiveCall(char *where); >extern int _Py_CheckRecursionLimit; > > > > > > >const char * PyEval_GetFuncName(PyObject *); >const char * PyEval_GetFuncDesc(PyObject *); > >PyObject * PyEval_GetCallStats(PyObject *); >PyObject * PyEval_EvalFrame(struct _frame *); >PyObject * PyEval_EvalFrameEx(struct _frame *f, int exc); > > >extern volatile int _Py_Ticker; >extern int _Py_CheckInterval; ># 117 "/home/work/.jumbo/include/python2.7/ceval.h" >PyThreadState * PyEval_SaveThread(void); >void PyEval_RestoreThread(PyThreadState *); > > > >int PyEval_ThreadsInitialized(void); >void PyEval_InitThreads(void); >void PyEval_AcquireLock(void); >void PyEval_ReleaseLock(void); >void PyEval_AcquireThread(PyThreadState *tstate); >void PyEval_ReleaseThread(PyThreadState *tstate); >void PyEval_ReInitThreads(void); ># 147 "/home/work/.jumbo/include/python2.7/ceval.h" >int _PyEval_SliceIndex(PyObject *, Py_ssize_t *); ># 129 "/home/work/.jumbo/include/python2.7/Python.h" 2 ># 1 "/home/work/.jumbo/include/python2.7/sysmodule.h" 1 ># 10 "/home/work/.jumbo/include/python2.7/sysmodule.h" >PyObject * PySys_GetObject(char *); >int PySys_SetObject(char *, PyObject *); >FILE * PySys_GetFile(char *, FILE *); >void PySys_SetArgv(int, char **); >void PySys_SetArgvEx(int, char **, int); >void PySys_SetPath(char *); > >void PySys_WriteStdout(const char *format, ...) > __attribute__((format(printf, 1, 2))); >void PySys_WriteStderr(const char *format, ...) > __attribute__((format(printf, 1, 2))); > >extern PyObject * _PySys_TraceFunc, *_PySys_ProfileFunc; >extern int _PySys_CheckInterval; > >void PySys_ResetWarnOptions(void); >void PySys_AddWarnOption(char *); >int PySys_HasWarnOptions(void); ># 130 "/home/work/.jumbo/include/python2.7/Python.h" 2 ># 1 "/home/work/.jumbo/include/python2.7/intrcheck.h" 1 > > > > > > > >int PyOS_InterruptOccurred(void); >void PyOS_InitInterrupts(void); >void PyOS_AfterFork(void); ># 131 "/home/work/.jumbo/include/python2.7/Python.h" 2 ># 1 "/home/work/.jumbo/include/python2.7/import.h" 1 ># 10 "/home/work/.jumbo/include/python2.7/import.h" >long PyImport_GetMagicNumber(void); >PyObject * PyImport_ExecCodeModule(char *name, PyObject *co); >PyObject * PyImport_ExecCodeModuleEx( > char *name, PyObject *co, char *pathname); >PyObject * PyImport_GetModuleDict(void); >PyObject * PyImport_AddModule(const char *name); >PyObject * PyImport_ImportModule(const char *name); >PyObject * PyImport_ImportModuleNoBlock(const char *); >PyObject * PyImport_ImportModuleLevel(char *name, > PyObject *globals, PyObject *locals, PyObject *fromlist, int level); > > > > >PyObject * PyImport_GetImporter(PyObject *path); >PyObject * PyImport_Import(PyObject *name); >PyObject * PyImport_ReloadModule(PyObject *m); >void PyImport_Cleanup(void); >int PyImport_ImportFrozenModule(char *); > > >void _PyImport_AcquireLock(void); >int _PyImport_ReleaseLock(void); > > > > > >struct filedescr * _PyImport_FindModule( > const char *, PyObject *, char *, size_t, FILE **, PyObject **); >int _PyImport_IsScript(struct filedescr *); >void _PyImport_ReInitLock(void); > >PyObject *_PyImport_FindExtension(char *, char *); >PyObject *_PyImport_FixupExtension(char *, char *); > >struct _inittab { > char *name; > void (*initfunc)(void); >}; > >extern PyTypeObject PyNullImporter_Type; >extern struct _inittab * PyImport_Inittab; > >int PyImport_AppendInittab(const char *name, void (*initfunc)(void)); >int PyImport_ExtendInittab(struct _inittab *newtab); > >struct _frozen { > char *name; > unsigned char *code; > int size; >}; > > > > >extern struct _frozen * PyImport_FrozenModules; ># 132 "/home/work/.jumbo/include/python2.7/Python.h" 2 > ># 1 "/home/work/.jumbo/include/python2.7/abstract.h" 1 ># 231 "/home/work/.jumbo/include/python2.7/abstract.h" > int PyObject_Cmp(PyObject *o1, PyObject *o2, int *result); ># 304 "/home/work/.jumbo/include/python2.7/abstract.h" > PyObject * PyObject_Call(PyObject *callable_object, > PyObject *args, PyObject *kw); ># 314 "/home/work/.jumbo/include/python2.7/abstract.h" > PyObject * PyObject_CallObject(PyObject *callable_object, > PyObject *args); ># 326 "/home/work/.jumbo/include/python2.7/abstract.h" > PyObject * _PyObject_CallFunction_SizeT(PyObject *callable_object, > char *format, ...); ># 340 "/home/work/.jumbo/include/python2.7/abstract.h" > PyObject * _PyObject_CallMethod_SizeT(PyObject *o, char *m, > char *format, ...); ># 352 "/home/work/.jumbo/include/python2.7/abstract.h" > PyObject * _PyObject_CallFunction_SizeT(PyObject *callable, > char *format, ...); > PyObject * _PyObject_CallMethod_SizeT(PyObject *o, > char *name, > char *format, ...); > > PyObject * PyObject_CallFunctionObjArgs(PyObject *callable, > ...); ># 370 "/home/work/.jumbo/include/python2.7/abstract.h" > PyObject * PyObject_CallMethodObjArgs(PyObject *o, > PyObject *m, ...); ># 413 "/home/work/.jumbo/include/python2.7/abstract.h" > PyObject * PyObject_Type(PyObject *o); > > > > > > > > Py_ssize_t PyObject_Size(PyObject *o); ># 433 "/home/work/.jumbo/include/python2.7/abstract.h" > Py_ssize_t PyObject_Length(PyObject *o); > > > Py_ssize_t _PyObject_LengthHint(PyObject *o, Py_ssize_t); > > > > > > > > PyObject * PyObject_GetItem(PyObject *o, PyObject *key); ># 453 "/home/work/.jumbo/include/python2.7/abstract.h" > int PyObject_SetItem(PyObject *o, PyObject *key, PyObject *v); > > > > > > > > int PyObject_DelItemString(PyObject *o, char *key); > > > > > > > > int PyObject_DelItem(PyObject *o, PyObject *key); > > > > > > > int PyObject_AsCharBuffer(PyObject *obj, > const char **buffer, > Py_ssize_t *buffer_len); ># 492 "/home/work/.jumbo/include/python2.7/abstract.h" > int PyObject_CheckReadBuffer(PyObject *obj); ># 501 "/home/work/.jumbo/include/python2.7/abstract.h" > int PyObject_AsReadBuffer(PyObject *obj, > const void **buffer, > Py_ssize_t *buffer_len); ># 517 "/home/work/.jumbo/include/python2.7/abstract.h" > int PyObject_AsWriteBuffer(PyObject *obj, > void **buffer, > Py_ssize_t *buffer_len); ># 542 "/home/work/.jumbo/include/python2.7/abstract.h" > int PyObject_GetBuffer(PyObject *obj, Py_buffer *view, > int flags); ># 552 "/home/work/.jumbo/include/python2.7/abstract.h" > void * PyBuffer_GetPointer(Py_buffer *view, Py_ssize_t *indices); > > > > > > int PyBuffer_SizeFromFormat(const char *); > > > > > > > int PyBuffer_ToContiguous(void *buf, Py_buffer *view, > Py_ssize_t len, char fort); > > int PyBuffer_FromContiguous(Py_buffer *view, void *buf, > Py_ssize_t len, char fort); ># 588 "/home/work/.jumbo/include/python2.7/abstract.h" > int PyObject_CopyData(PyObject *dest, PyObject *src); > > > > > int PyBuffer_IsContiguous(Py_buffer *view, char fort); > > > void PyBuffer_FillContiguousStrides(int ndims, > Py_ssize_t *shape, > Py_ssize_t *strides, > int itemsize, > char fort); > > > > > > > > int PyBuffer_FillInfo(Py_buffer *view, PyObject *o, void *buf, > Py_ssize_t len, int readonly, > int flags); > > > > > > > > void PyBuffer_Release(Py_buffer *view); > > > > > PyObject * PyObject_Format(PyObject* obj, > PyObject *format_spec); > > > > > > > > PyObject * PyObject_GetIter(PyObject *); ># 642 "/home/work/.jumbo/include/python2.7/abstract.h" > PyObject * PyIter_Next(PyObject *); > > > > > > > > int PyNumber_Check(PyObject *o); ># 660 "/home/work/.jumbo/include/python2.7/abstract.h" > PyObject * PyNumber_Add(PyObject *o1, PyObject *o2); ># 669 "/home/work/.jumbo/include/python2.7/abstract.h" > PyObject * PyNumber_Subtract(PyObject *o1, PyObject *o2); ># 678 "/home/work/.jumbo/include/python2.7/abstract.h" > PyObject * PyNumber_Multiply(PyObject *o1, PyObject *o2); ># 688 "/home/work/.jumbo/include/python2.7/abstract.h" > PyObject * PyNumber_Divide(PyObject *o1, PyObject *o2); ># 697 "/home/work/.jumbo/include/python2.7/abstract.h" > PyObject * PyNumber_FloorDivide(PyObject *o1, PyObject *o2); ># 707 "/home/work/.jumbo/include/python2.7/abstract.h" > PyObject * PyNumber_TrueDivide(PyObject *o1, PyObject *o2); ># 717 "/home/work/.jumbo/include/python2.7/abstract.h" > PyObject * PyNumber_Remainder(PyObject *o1, PyObject *o2); ># 727 "/home/work/.jumbo/include/python2.7/abstract.h" > PyObject * PyNumber_Divmod(PyObject *o1, PyObject *o2); ># 737 "/home/work/.jumbo/include/python2.7/abstract.h" > PyObject * PyNumber_Power(PyObject *o1, PyObject *o2, > PyObject *o3); ># 747 "/home/work/.jumbo/include/python2.7/abstract.h" > PyObject * PyNumber_Negative(PyObject *o); > > > > > > > > PyObject * PyNumber_Positive(PyObject *o); > > > > > > > > PyObject * PyNumber_Absolute(PyObject *o); > > > > > > > > PyObject * PyNumber_Invert(PyObject *o); ># 781 "/home/work/.jumbo/include/python2.7/abstract.h" > PyObject * PyNumber_Lshift(PyObject *o1, PyObject *o2); ># 791 "/home/work/.jumbo/include/python2.7/abstract.h" > PyObject * PyNumber_Rshift(PyObject *o1, PyObject *o2); ># 800 "/home/work/.jumbo/include/python2.7/abstract.h" > PyObject * PyNumber_And(PyObject *o1, PyObject *o2); ># 810 "/home/work/.jumbo/include/python2.7/abstract.h" > PyObject * PyNumber_Xor(PyObject *o1, PyObject *o2); ># 820 "/home/work/.jumbo/include/python2.7/abstract.h" > PyObject * PyNumber_Or(PyObject *o1, PyObject *o2); ># 853 "/home/work/.jumbo/include/python2.7/abstract.h" > PyObject * PyNumber_Index(PyObject *o); > > > > > > > Py_ssize_t PyNumber_AsSsize_t(PyObject *o, PyObject *exc); ># 871 "/home/work/.jumbo/include/python2.7/abstract.h" > PyObject * _PyNumber_ConvertIntegralToInt( > PyObject *integral, > const char* error_format); ># 883 "/home/work/.jumbo/include/python2.7/abstract.h" > PyObject * PyNumber_Int(PyObject *o); ># 892 "/home/work/.jumbo/include/python2.7/abstract.h" > PyObject * PyNumber_Long(PyObject *o); ># 901 "/home/work/.jumbo/include/python2.7/abstract.h" > PyObject * PyNumber_Float(PyObject *o); ># 911 "/home/work/.jumbo/include/python2.7/abstract.h" > PyObject * PyNumber_InPlaceAdd(PyObject *o1, PyObject *o2); ># 920 "/home/work/.jumbo/include/python2.7/abstract.h" > PyObject * PyNumber_InPlaceSubtract(PyObject *o1, PyObject *o2); ># 929 "/home/work/.jumbo/include/python2.7/abstract.h" > PyObject * PyNumber_InPlaceMultiply(PyObject *o1, PyObject *o2); ># 938 "/home/work/.jumbo/include/python2.7/abstract.h" > PyObject * PyNumber_InPlaceDivide(PyObject *o1, PyObject *o2); ># 947 "/home/work/.jumbo/include/python2.7/abstract.h" > PyObject * PyNumber_InPlaceFloorDivide(PyObject *o1, > PyObject *o2); ># 958 "/home/work/.jumbo/include/python2.7/abstract.h" > PyObject * PyNumber_InPlaceTrueDivide(PyObject *o1, > PyObject *o2); ># 969 "/home/work/.jumbo/include/python2.7/abstract.h" > PyObject * PyNumber_InPlaceRemainder(PyObject *o1, PyObject *o2); ># 978 "/home/work/.jumbo/include/python2.7/abstract.h" > PyObject * PyNumber_InPlacePower(PyObject *o1, PyObject *o2, > PyObject *o3); ># 988 "/home/work/.jumbo/include/python2.7/abstract.h" > PyObject * PyNumber_InPlaceLshift(PyObject *o1, PyObject *o2); ># 997 "/home/work/.jumbo/include/python2.7/abstract.h" > PyObject * PyNumber_InPlaceRshift(PyObject *o1, PyObject *o2); ># 1006 "/home/work/.jumbo/include/python2.7/abstract.h" > PyObject * PyNumber_InPlaceAnd(PyObject *o1, PyObject *o2); ># 1015 "/home/work/.jumbo/include/python2.7/abstract.h" > PyObject * PyNumber_InPlaceXor(PyObject *o1, PyObject *o2); ># 1024 "/home/work/.jumbo/include/python2.7/abstract.h" > PyObject * PyNumber_InPlaceOr(PyObject *o1, PyObject *o2); ># 1034 "/home/work/.jumbo/include/python2.7/abstract.h" > PyObject * PyNumber_ToBase(PyObject *n, int base); ># 1045 "/home/work/.jumbo/include/python2.7/abstract.h" > int PySequence_Check(PyObject *o); ># 1055 "/home/work/.jumbo/include/python2.7/abstract.h" > Py_ssize_t PySequence_Size(PyObject *o); ># 1064 "/home/work/.jumbo/include/python2.7/abstract.h" > Py_ssize_t PySequence_Length(PyObject *o); > > > > PyObject * PySequence_Concat(PyObject *o1, PyObject *o2); ># 1077 "/home/work/.jumbo/include/python2.7/abstract.h" > PyObject * PySequence_Repeat(PyObject *o, Py_ssize_t count); ># 1086 "/home/work/.jumbo/include/python2.7/abstract.h" > PyObject * PySequence_GetItem(PyObject *o, Py_ssize_t i); > > > > > > > PyObject * PySequence_GetSlice(PyObject *o, Py_ssize_t i1, Py_ssize_t i2); ># 1102 "/home/work/.jumbo/include/python2.7/abstract.h" > int PySequence_SetItem(PyObject *o, Py_ssize_t i, PyObject *v); ># 1111 "/home/work/.jumbo/include/python2.7/abstract.h" > int PySequence_DelItem(PyObject *o, Py_ssize_t i); > > > > > > > > int PySequence_SetSlice(PyObject *o, Py_ssize_t i1, Py_ssize_t i2, > PyObject *v); > > > > > > > > int PySequence_DelSlice(PyObject *o, Py_ssize_t i1, Py_ssize_t i2); > > > > > > > > PyObject * PySequence_Tuple(PyObject *o); > > > > > > > > PyObject * PySequence_List(PyObject *o); > > > > > > PyObject * PySequence_Fast(PyObject *o, const char* m); ># 1186 "/home/work/.jumbo/include/python2.7/abstract.h" > Py_ssize_t PySequence_Count(PyObject *o, PyObject *value); ># 1195 "/home/work/.jumbo/include/python2.7/abstract.h" > int PySequence_Contains(PyObject *seq, PyObject *ob); ># 1204 "/home/work/.jumbo/include/python2.7/abstract.h" > Py_ssize_t _PySequence_IterSearch(PyObject *seq, > PyObject *obj, int operation); ># 1219 "/home/work/.jumbo/include/python2.7/abstract.h" > int PySequence_In(PyObject *o, PyObject *value); ># 1230 "/home/work/.jumbo/include/python2.7/abstract.h" > Py_ssize_t PySequence_Index(PyObject *o, PyObject *value); ># 1240 "/home/work/.jumbo/include/python2.7/abstract.h" > PyObject * PySequence_InPlaceConcat(PyObject *o1, PyObject *o2); ># 1249 "/home/work/.jumbo/include/python2.7/abstract.h" > PyObject * PySequence_InPlaceRepeat(PyObject *o, Py_ssize_t count); ># 1260 "/home/work/.jumbo/include/python2.7/abstract.h" > int PyMapping_Check(PyObject *o); ># 1269 "/home/work/.jumbo/include/python2.7/abstract.h" > Py_ssize_t PyMapping_Size(PyObject *o); ># 1279 "/home/work/.jumbo/include/python2.7/abstract.h" > Py_ssize_t PyMapping_Length(PyObject *o); ># 1303 "/home/work/.jumbo/include/python2.7/abstract.h" > int PyMapping_HasKeyString(PyObject *o, char *key); ># 1313 "/home/work/.jumbo/include/python2.7/abstract.h" > int PyMapping_HasKey(PyObject *o, PyObject *key); ># 1356 "/home/work/.jumbo/include/python2.7/abstract.h" > PyObject * PyMapping_GetItemString(PyObject *o, char *key); > > > > > > > > int PyMapping_SetItemString(PyObject *o, char *key, > PyObject *value); ># 1374 "/home/work/.jumbo/include/python2.7/abstract.h" >int PyObject_IsInstance(PyObject *object, PyObject *typeorclass); > > >int PyObject_IsSubclass(PyObject *object, PyObject *typeorclass); > > > >int _PyObject_RealIsInstance(PyObject *inst, PyObject *cls); > >int _PyObject_RealIsSubclass(PyObject *derived, PyObject *cls); > > > >void _Py_add_one_to_index_F(int nd, Py_ssize_t *index, > const Py_ssize_t *shape); >void _Py_add_one_to_index_C(int nd, Py_ssize_t *index, > const Py_ssize_t *shape); ># 134 "/home/work/.jumbo/include/python2.7/Python.h" 2 > ># 1 "/home/work/.jumbo/include/python2.7/compile.h" 1 > > > > ># 1 "/home/work/.jumbo/include/python2.7/code.h" 1 ># 10 "/home/work/.jumbo/include/python2.7/code.h" >typedef struct { > Py_ssize_t ob_refcnt; struct _typeobject *ob_type; > int co_argcount; > int co_nlocals; > int co_stacksize; > int co_flags; > PyObject *co_code; > PyObject *co_consts; > PyObject *co_names; > PyObject *co_varnames; > PyObject *co_freevars; > PyObject *co_cellvars; > > PyObject *co_filename; > PyObject *co_name; > int co_firstlineno; > PyObject *co_lnotab; > > void *co_zombieframe; > PyObject *co_weakreflist; >} PyCodeObject; ># 65 "/home/work/.jumbo/include/python2.7/code.h" >extern PyTypeObject PyCode_Type; > > > > > >PyCodeObject * PyCode_New( > int, int, int, int, PyObject *, PyObject *, PyObject *, PyObject *, > PyObject *, PyObject *, PyObject *, PyObject *, int, PyObject *); > > > >PyCodeObject * >PyCode_NewEmpty(const char *filename, const char *funcname, int firstlineno); > > > > >int PyCode_Addr2Line(PyCodeObject *, int); > > > > > > >typedef struct _addr_pair { > int ap_lower; > int ap_upper; >} PyAddrPair; > > > > >int _PyCode_CheckLineNumber(PyCodeObject* co, > int lasti, PyAddrPair *bounds); > >PyObject* PyCode_Optimize(PyObject *code, PyObject* consts, > PyObject *names, PyObject *lineno_obj); ># 6 "/home/work/.jumbo/include/python2.7/compile.h" 2 > > > > > > >struct _node; >PyCodeObject * PyNode_Compile(struct _node *, const char *); > > > >typedef struct { > int ff_features; > int ff_lineno; >} PyFutureFeatures; ># 31 "/home/work/.jumbo/include/python2.7/compile.h" >struct _mod; >PyCodeObject * PyAST_Compile(struct _mod *, const char *, > PyCompilerFlags *, PyArena *); >PyFutureFeatures * PyFuture_FromAST(struct _mod *, const char *); ># 136 "/home/work/.jumbo/include/python2.7/Python.h" 2 ># 1 "/home/work/.jumbo/include/python2.7/eval.h" 1 ># 10 "/home/work/.jumbo/include/python2.7/eval.h" >PyObject * PyEval_EvalCode(PyCodeObject *, PyObject *, PyObject *); > >PyObject * PyEval_EvalCodeEx(PyCodeObject *co, > PyObject *globals, > PyObject *locals, > PyObject **args, int argc, > PyObject **kwds, int kwdc, > PyObject **defs, int defc, > PyObject *closure); > >PyObject * _PyEval_CallTracing(PyObject *func, PyObject *args); ># 137 "/home/work/.jumbo/include/python2.7/Python.h" 2 > ># 1 "/home/work/.jumbo/include/python2.7/pyctype.h" 1 ># 12 "/home/work/.jumbo/include/python2.7/pyctype.h" >extern const unsigned int _Py_ctype_table[256]; ># 25 "/home/work/.jumbo/include/python2.7/pyctype.h" >extern const unsigned char _Py_ctype_tolower[256]; >extern const unsigned char _Py_ctype_toupper[256]; ># 139 "/home/work/.jumbo/include/python2.7/Python.h" 2 ># 1 "/home/work/.jumbo/include/python2.7/pystrtod.h" 1 ># 9 "/home/work/.jumbo/include/python2.7/pystrtod.h" >double PyOS_ascii_strtod(const char *str, char **ptr); >double PyOS_ascii_atof(const char *str); > > >char * PyOS_ascii_formatd(char *buffer, size_t buf_len, > const char *format, double d); >double PyOS_string_to_double(const char *str, > char **endptr, > PyObject *overflow_exception); > > > >char * PyOS_double_to_string(double val, > char format_code, > int precision, > int flags, > int *type); > >double _Py_parse_inf_or_nan(const char *p, char **endptr); ># 140 "/home/work/.jumbo/include/python2.7/Python.h" 2 ># 1 "/home/work/.jumbo/include/python2.7/pystrcmp.h" 1 > > > > > > > >int PyOS_mystrnicmp(const char *, const char *, Py_ssize_t); >int PyOS_mystricmp(const char *, const char *); ># 141 "/home/work/.jumbo/include/python2.7/Python.h" 2 ># 1 "/home/work/.jumbo/include/python2.7/dtoa.h" 1 > > > > > >double _Py_dg_strtod(const char *str, char **ptr); >char * _Py_dg_dtoa(double d, int mode, int ndigits, > int *decpt, int *sign, char **rve); >void _Py_dg_freedtoa(char *s); ># 142 "/home/work/.jumbo/include/python2.7/Python.h" 2 > > >PyObject* _Py_Mangle(PyObject *p, PyObject *name); ># 156 "/home/work/.jumbo/include/python2.7/Python.h" ># 1 "/home/work/.jumbo/include/python2.7/pyfpe.h" 1 ># 157 "/home/work/.jumbo/include/python2.7/Python.h" 2 ># 3 "numpy/core/src/multiarray/common.c" 2 > > > ># 1 "numpy/core/include/numpy/arrayobject.h" 1 ># 14 "numpy/core/include/numpy/arrayobject.h" ># 1 "numpy/core/include/numpy/ndarrayobject.h" 1 ># 17 "numpy/core/include/numpy/ndarrayobject.h" ># 1 "numpy/core/include/numpy/ndarraytypes.h" 1 > > > > ># 1 "numpy/core/include/numpy/numpyconfig.h" 1 > > > ># 1 "build/src.linux-x86_64-2.7/numpy/core/include/numpy/_numpyconfig.h" 1 ># 5 "numpy/core/include/numpy/numpyconfig.h" 2 ># 6 "numpy/core/include/numpy/ndarraytypes.h" 2 > ># 1 "numpy/core/include/numpy/npy_common.h" 1 ># 20 "numpy/core/include/numpy/npy_common.h" >enum { > NPY_CPU_UNKNOWN_ENDIAN, > NPY_CPU_LITTLE, > NPY_CPU_BIG >}; ># 44 "numpy/core/include/numpy/npy_common.h" >typedef long long npy_longlong; >typedef unsigned long long npy_ulonglong; ># 71 "numpy/core/include/numpy/npy_common.h" >typedef unsigned char npy_bool; ># 80 "numpy/core/include/numpy/npy_common.h" > typedef long double npy_longdouble; ># 89 "numpy/core/include/numpy/npy_common.h" >typedef signed char npy_byte; >typedef unsigned char npy_ubyte; >typedef unsigned short npy_ushort; >typedef unsigned int npy_uint; >typedef unsigned long npy_ulong; > > >typedef float npy_float; >typedef double npy_double; >typedef short npy_short; >typedef int npy_int; >typedef long npy_long; ># 130 "numpy/core/include/numpy/npy_common.h" >typedef struct { double real, imag; } npy_cdouble; > > > > > > >typedef struct { float real, imag; } npy_cfloat; > > > > > > >typedef struct { npy_longdouble real, imag; } npy_clongdouble; ># 187 "numpy/core/include/numpy/npy_common.h" ># 1 "/usr/lib/gcc/x86_64-redhat-linux/3.4.5/include/limits.h" 1 3 4 ># 188 "numpy/core/include/numpy/npy_common.h" 2 ># 258 "numpy/core/include/numpy/npy_common.h" > typedef long npy_int64; > typedef unsigned long npy_uint64; ># 410 "numpy/core/include/numpy/npy_common.h" > typedef int npy_int32; > typedef unsigned int npy_uint32; > typedef unsigned int npy_ucs4; ># 467 "numpy/core/include/numpy/npy_common.h" > typedef short npy_int16; > typedef unsigned short npy_uint16; ># 525 "numpy/core/include/numpy/npy_common.h" > typedef signed char npy_int8; > typedef unsigned char npy_uint8; ># 610 "numpy/core/include/numpy/npy_common.h" > typedef double npy_float64; > typedef npy_cdouble npy_complex128; ># 666 "numpy/core/include/numpy/npy_common.h" > typedef float npy_float32; > typedef npy_cfloat npy_complex64; ># 731 "numpy/core/include/numpy/npy_common.h" >typedef npy_uint16 npy_half; >typedef npy_half npy_float16; ># 790 "numpy/core/include/numpy/npy_common.h" > typedef npy_longdouble npy_float128; > typedef npy_clongdouble npy_complex256; ># 813 "numpy/core/include/numpy/npy_common.h" >typedef npy_int64 npy_timedelta; >typedef npy_int64 npy_datetime; ># 8 "numpy/core/include/numpy/ndarraytypes.h" 2 ># 1 "numpy/core/include/numpy/npy_endian.h" 1 ># 9 "numpy/core/include/numpy/ndarraytypes.h" 2 ># 1 "numpy/core/include/numpy/npy_cpu.h" 1 ># 10 "numpy/core/include/numpy/ndarraytypes.h" 2 ># 1 "numpy/core/include/numpy/utils.h" 1 ># 11 "numpy/core/include/numpy/ndarraytypes.h" 2 ># 62 "numpy/core/include/numpy/ndarraytypes.h" >enum NPY_TYPES { NPY_BOOL=0, > NPY_BYTE, NPY_UBYTE, > NPY_SHORT, NPY_USHORT, > NPY_INT, NPY_UINT, > NPY_LONG, NPY_ULONG, > NPY_LONGLONG, NPY_ULONGLONG, > NPY_FLOAT, NPY_DOUBLE, NPY_LONGDOUBLE, > NPY_CFLOAT, NPY_CDOUBLE, NPY_CLONGDOUBLE, > NPY_OBJECT=17, > NPY_STRING, NPY_UNICODE, > NPY_VOID, > > > > > NPY_DATETIME, NPY_TIMEDELTA, NPY_HALF, > > NPY_NTYPES, > NPY_NOTYPE, > NPY_CHAR, > NPY_USERDEF=256, > > > NPY_NTYPES_ABI_COMPATIBLE=21 >}; ># 115 "numpy/core/include/numpy/ndarraytypes.h" >enum NPY_TYPECHAR { NPY_BOOLLTR = '?', > NPY_BYTELTR = 'b', > NPY_UBYTELTR = 'B', > NPY_SHORTLTR = 'h', > NPY_USHORTLTR = 'H', > NPY_INTLTR = 'i', > NPY_UINTLTR = 'I', > NPY_LONGLTR = 'l', > NPY_ULONGLTR = 'L', > NPY_LONGLONGLTR = 'q', > NPY_ULONGLONGLTR = 'Q', > NPY_HALFLTR = 'e', > NPY_FLOATLTR = 'f', > NPY_DOUBLELTR = 'd', > NPY_LONGDOUBLELTR = 'g', > NPY_CFLOATLTR = 'F', > NPY_CDOUBLELTR = 'D', > NPY_CLONGDOUBLELTR = 'G', > NPY_OBJECTLTR = 'O', > NPY_STRINGLTR = 'S', > NPY_STRINGLTR2 = 'a', > NPY_UNICODELTR = 'U', > NPY_VOIDLTR = 'V', > NPY_DATETIMELTR = 'M', > NPY_TIMEDELTALTR = 'm', > NPY_CHARLTR = 'c', > > > > > > > > NPY_INTPLTR = 'p', > NPY_UINTPLTR = 'P', > > NPY_GENBOOLLTR ='b', > NPY_SIGNEDLTR = 'i', > NPY_UNSIGNEDLTR = 'u', > NPY_FLOATINGLTR = 'f', > NPY_COMPLEXLTR = 'c' >}; > >typedef enum { > NPY_QUICKSORT=0, > NPY_HEAPSORT=1, > NPY_MERGESORT=2 >} NPY_SORTKIND; > > > >typedef enum { > NPY_SEARCHLEFT=0, > NPY_SEARCHRIGHT=1 >} NPY_SEARCHSIDE; > > > >typedef enum { > NPY_NOSCALAR=-1, > NPY_BOOL_SCALAR, > NPY_INTPOS_SCALAR, > NPY_INTNEG_SCALAR, > NPY_FLOAT_SCALAR, > NPY_COMPLEX_SCALAR, > NPY_OBJECT_SCALAR >} NPY_SCALARKIND; > > > >typedef enum { > > NPY_ANYORDER=-1, > > NPY_CORDER=0, > > NPY_FORTRANORDER=1, > > NPY_KEEPORDER=2 >} NPY_ORDER; > > >typedef enum { > > NPY_NO_CASTING=0, > > NPY_EQUIV_CASTING=1, > > NPY_SAFE_CASTING=2, > > NPY_SAME_KIND_CASTING=3, > > NPY_UNSAFE_CASTING=4 >} NPY_CASTING; > >typedef enum { > NPY_CLIP=0, > NPY_WRAP=1, > NPY_RAISE=2 >} NPY_CLIPMODE; > >typedef enum { > NPY_FR_Y, > NPY_FR_M, > NPY_FR_W, > NPY_FR_B, > NPY_FR_D, > NPY_FR_h, > NPY_FR_m, > NPY_FR_s, > NPY_FR_ms, > NPY_FR_us, > NPY_FR_ns, > NPY_FR_ps, > NPY_FR_fs, > NPY_FR_as >} NPY_DATETIMEUNIT; ># 256 "numpy/core/include/numpy/ndarraytypes.h" >typedef Py_intptr_t npy_intp; >typedef Py_uintptr_t npy_uintp; ># 374 "numpy/core/include/numpy/ndarraytypes.h" >struct _PyArray_Descr; > > >typedef PyObject * (PyArray_GetItemFunc) (void *, void *); >typedef int (PyArray_SetItemFunc)(PyObject *, void *, void *); > >typedef void (PyArray_CopySwapNFunc)(void *, npy_intp, void *, npy_intp, > npy_intp, int, void *); > >typedef void (PyArray_CopySwapFunc)(void *, void *, int, void *); >typedef npy_bool (PyArray_NonzeroFunc)(void *, void *); > > > > > > > >typedef int (PyArray_CompareFunc)(const void *, const void *, void *); >typedef int (PyArray_ArgFunc)(void*, npy_intp, npy_intp*, void *); > >typedef void (PyArray_DotFunc)(void *, npy_intp, void *, npy_intp, void *, > npy_intp, void *); > >typedef void (PyArray_VectorUnaryFunc)(void *, void *, npy_intp, void *, > void *); > > > > > >typedef int (PyArray_ScanFunc)(FILE *fp, void *dptr, > char *ignore, struct _PyArray_Descr *); >typedef int (PyArray_FromStrFunc)(char *s, void *dptr, char **endptr, > struct _PyArray_Descr *); > >typedef int (PyArray_FillFunc)(void *, npy_intp, void *); > >typedef int (PyArray_SortFunc)(void *, npy_intp, void *); >typedef int (PyArray_ArgSortFunc)(void *, npy_intp *, npy_intp, void *); > >typedef int (PyArray_FillWithScalarFunc)(void *, npy_intp, void *, void *); > >typedef int (PyArray_ScalarKindFunc)(void *); > >typedef void (PyArray_FastClipFunc)(void *in, npy_intp n_in, void *min, > void *max, void *out); >typedef void (PyArray_FastPutmaskFunc)(void *in, void *mask, npy_intp n_in, > void *values, npy_intp nv); >typedef int (PyArray_FastTakeFunc)(void *dest, void *src, npy_intp *indarray, > npy_intp nindarray, npy_intp n_outer, > npy_intp m_middle, npy_intp nelem, > NPY_CLIPMODE clipmode); > >typedef struct { > npy_intp *ptr; > int len; >} PyArray_Dims; > >typedef struct { > > > > > > > PyArray_VectorUnaryFunc *cast[NPY_NTYPES_ABI_COMPATIBLE]; > > > > > > > > PyArray_GetItemFunc *getitem; > PyArray_SetItemFunc *setitem; > > > > > > PyArray_CopySwapNFunc *copyswapn; > PyArray_CopySwapFunc *copyswap; > > > > > > PyArray_CompareFunc *compare; > > > > > > PyArray_ArgFunc *argmax; > > > > > > PyArray_DotFunc *dotfunc; > > > > > > > PyArray_ScanFunc *scanfunc; > > > > > > PyArray_FromStrFunc *fromstr; > > > > > > > PyArray_NonzeroFunc *nonzero; > > > > > > PyArray_FillFunc *fill; > > > > > > PyArray_FillWithScalarFunc *fillwithscalar; > > > > > > PyArray_SortFunc *sort[(NPY_MERGESORT + 1)]; > PyArray_ArgSortFunc *argsort[(NPY_MERGESORT + 1)]; > > > > > > > > PyObject *castdict; > > > > > > > PyArray_ScalarKindFunc *scalarkind; > int **cancastscalarkindto; > int *cancastto; > > PyArray_FastClipFunc *fastclip; > PyArray_FastPutmaskFunc *fastputmask; > PyArray_FastTakeFunc *fasttake; >} PyArray_ArrFuncs; ># 572 "numpy/core/include/numpy/ndarraytypes.h" >typedef struct _PyArray_Descr { > Py_ssize_t ob_refcnt; struct _typeobject *ob_type; > PyTypeObject *typeobj; > > > > > > char kind; > char type; > char byteorder; > > > > char flags; > int type_num; > int elsize; > int alignment; > struct _arr_descr *subarray; > > > > > > PyObject *fields; > > > > > PyObject *names; > > > > > PyArray_ArrFuncs *f; > > > > > PyObject *metadata; >} PyArray_Descr; > >typedef struct _arr_descr { > PyArray_Descr *base; > PyObject *shape; >} PyArray_ArrayDescr; > > > > > > > >typedef struct PyArrayObject { > Py_ssize_t ob_refcnt; struct _typeobject *ob_type; > char *data; > int nd; > npy_intp *dimensions; > npy_intp *strides; > > > > PyObject *base; ># 649 "numpy/core/include/numpy/ndarraytypes.h" > PyArray_Descr *descr; > int flags; > PyObject *weakreflist; >} PyArrayObject; > > > > > > >typedef struct PyArrayFlagsObject { > Py_ssize_t ob_refcnt; struct _typeobject *ob_type; > PyObject *arr; > int flags; >} PyArrayFlagsObject; > > > >typedef struct { > Py_ssize_t ob_refcnt; struct _typeobject *ob_type; > PyObject *base; > void *ptr; > npy_intp len; > int flags; >} PyArray_Chunk; > > >typedef struct { > NPY_DATETIMEUNIT base; > int num; > int den; > > > > int events; >} PyArray_DatetimeMetaData; > >typedef struct { > npy_longlong year; > int month, day, hour, min, sec, us, ps, as; >} npy_datetimestruct; > >typedef struct { > npy_longlong day; > int sec, us, ps, as; >} npy_timedeltastruct; ># 709 "numpy/core/include/numpy/ndarraytypes.h" >typedef int (PyArray_FinalizeFunc)(PyArrayObject *, PyObject *); ># 878 "numpy/core/include/numpy/ndarraytypes.h" >typedef struct NpyIter_InternalOnly NpyIter; > > >typedef int (NpyIter_IterNextFunc)(NpyIter *iter); >typedef void (NpyIter_GetMultiIndexFunc)(NpyIter *iter, > npy_intp *outcoords); ># 948 "numpy/core/include/numpy/ndarraytypes.h" >typedef struct PyArrayIterObject_tag PyArrayIterObject; > > > > > >typedef char* (*npy_iter_get_dataptr_t)(PyArrayIterObject* iter, npy_intp*); > >struct PyArrayIterObject_tag { > Py_ssize_t ob_refcnt; struct _typeobject *ob_type; > int nd_m1; > npy_intp index, size; > npy_intp coordinates[32]; > npy_intp dims_m1[32]; > npy_intp strides[32]; > npy_intp backstrides[32]; > npy_intp factors[32]; > PyArrayObject *ao; > char *dataptr; > npy_bool contiguous; > > npy_intp bounds[32][2]; > npy_intp limits[32][2]; > npy_intp limits_sizes[32]; > npy_iter_get_dataptr_t translate; >} ; ># 1108 "numpy/core/include/numpy/ndarraytypes.h" >typedef struct { > Py_ssize_t ob_refcnt; struct _typeobject *ob_type; > int numiter; > npy_intp size; > npy_intp index; > int nd; > npy_intp dimensions[32]; > PyArrayIterObject *iters[32]; >} PyArrayMultiIterObject; ># 1162 "numpy/core/include/numpy/ndarraytypes.h" >typedef struct { > Py_ssize_t ob_refcnt; struct _typeobject *ob_type; > > > > > > int numiter; > > npy_intp size; > > npy_intp index; > int nd; > npy_intp dimensions[32]; > PyArrayIterObject *iters[32]; > > PyArrayIterObject *ait; > > > > PyArrayIterObject *subspace; > > > > > > int iteraxes[32]; > > > > > npy_intp bscoord[32]; > > PyObject *indexobj; > int consec; > char *dataptr; > >} PyArrayMapIterObject; > >enum { > NPY_NEIGHBORHOOD_ITER_ZERO_PADDING, > NPY_NEIGHBORHOOD_ITER_ONE_PADDING, > NPY_NEIGHBORHOOD_ITER_CONSTANT_PADDING, > NPY_NEIGHBORHOOD_ITER_CIRCULAR_PADDING, > NPY_NEIGHBORHOOD_ITER_MIRROR_PADDING >}; > >typedef struct { > Py_ssize_t ob_refcnt; struct _typeobject *ob_type; > > > > > int nd_m1; > npy_intp index, size; > npy_intp coordinates[32]; > npy_intp dims_m1[32]; > npy_intp strides[32]; > npy_intp backstrides[32]; > npy_intp factors[32]; > PyArrayObject *ao; > char *dataptr; > npy_bool contiguous; > > npy_intp bounds[32][2]; > npy_intp limits[32][2]; > npy_intp limits_sizes[32]; > npy_iter_get_dataptr_t translate; > > > > > npy_intp nd; > > > npy_intp dimensions[32]; > > > > > > PyArrayIterObject* _internal_iter; > > > > > char* constant; > > int mode; >} PyArrayNeighborhoodIterObject; > > > > > > >static inline int >PyArrayNeighborhoodIter_Reset(PyArrayNeighborhoodIterObject* iter); >static inline int >PyArrayNeighborhoodIter_Next(PyArrayNeighborhoodIterObject* iter); ># 1272 "numpy/core/include/numpy/ndarraytypes.h" ># 1 "numpy/core/include/numpy/_neighborhood_iterator_imp.h" 1 > > > > > > >static inline int >_PyArrayNeighborhoodIter_IncrCoord(PyArrayNeighborhoodIterObject* iter); ># 37 "numpy/core/include/numpy/_neighborhood_iterator_imp.h" >static inline int >_PyArrayNeighborhoodIter_IncrCoord(PyArrayNeighborhoodIterObject* iter) >{ > npy_intp i, wb; > > for (i = iter->nd - 1; i >= 0; --i) { > wb = iter->coordinates[i] < iter->bounds[i][1]; if (wb) { iter->coordinates[i] += 1; return 0; } else { iter->coordinates[i] = iter->bounds[i][0]; } > } > > return 0; >} > > > > >static inline int >_PyArrayNeighborhoodIter_IncrCoord2D(PyArrayNeighborhoodIterObject* iter) >{ > npy_intp wb; > > wb = iter->coordinates[1] < iter->bounds[1][1]; if (wb) { iter->coordinates[1] += 1; return 0; } else { iter->coordinates[1] = iter->bounds[1][0]; } > wb = iter->coordinates[0] < iter->bounds[0][1]; if (wb) { iter->coordinates[0] += 1; return 0; } else { iter->coordinates[0] = iter->bounds[0][0]; } > > return 0; >} > > > > > >static inline int >PyArrayNeighborhoodIter_Next(PyArrayNeighborhoodIterObject* iter) >{ > _PyArrayNeighborhoodIter_IncrCoord (iter); > iter->dataptr = iter->translate((PyArrayIterObject*)iter, iter->coordinates); > > return 0; >} > > > > >static inline int >PyArrayNeighborhoodIter_Reset(PyArrayNeighborhoodIterObject* iter) >{ > npy_intp i; > > for (i = 0; i < iter->nd; ++i) { > iter->coordinates[i] = iter->bounds[i][0]; > } > iter->dataptr = iter->translate((PyArrayIterObject*)iter, iter->coordinates); > > return 0; >} ># 1273 "numpy/core/include/numpy/ndarraytypes.h" 2 ># 1453 "numpy/core/include/numpy/ndarraytypes.h" >typedef struct { > int two; > > > > > int nd; > > char typekind; > > > > > int itemsize; > > int flags; ># 1477 "numpy/core/include/numpy/ndarraytypes.h" > npy_intp *shape; > > > > > npy_intp *strides; > > void *data; > > PyObject *descr; > > > >} PyArrayInterface; ># 18 "numpy/core/include/numpy/ndarrayobject.h" 2 ># 26 "numpy/core/include/numpy/ndarrayobject.h" ># 1 "build/src.linux-x86_64-2.7/numpy/core/include/numpy/__multiarray_api.h" 1 > > > >typedef struct { > Py_ssize_t ob_refcnt; struct _typeobject *ob_type; > npy_bool obval; >} PyBoolScalarObject; > > > > > > >static PyTypeObject PyArrayMapIter_Type; >static PyTypeObject PyArrayNeighborhoodIter_Type; >static PyBoolScalarObject _PyArrayScalar_BoolValues[2]; > > >static unsigned int PyArray_GetNDArrayCVersion (void); > > > > > static PyTypeObject PyBigArray_Type; > > > > > > static PyTypeObject PyArray_Type; > > > > > > static PyTypeObject PyArrayDescr_Type; > > > > > > static PyTypeObject PyArrayFlags_Type; > > > > > > static PyTypeObject PyArrayIter_Type; > > > > > > static PyTypeObject PyArrayMultiIter_Type; > > > > > > static int NPY_NUMUSERTYPES; > > > > > > static PyTypeObject PyBoolArrType_Type; > > > > > >static PyBoolScalarObject _PyArrayScalar_BoolValues[2]; > > > > > > static PyTypeObject PyGenericArrType_Type; > > > > > > static PyTypeObject PyNumberArrType_Type; > > > > > > static PyTypeObject PyIntegerArrType_Type; > > > > > > static PyTypeObject PySignedIntegerArrType_Type; > > > > > > static PyTypeObject PyUnsignedIntegerArrType_Type; > > > > > > static PyTypeObject PyInexactArrType_Type; > > > > > > static PyTypeObject PyFloatingArrType_Type; > > > > > > static PyTypeObject PyComplexFloatingArrType_Type; > > > > > > static PyTypeObject PyFlexibleArrType_Type; > > > > > > static PyTypeObject PyCharacterArrType_Type; > > > > > > static PyTypeObject PyByteArrType_Type; > > > > > > static PyTypeObject PyShortArrType_Type; > > > > > > static PyTypeObject PyIntArrType_Type; > > > > > > static PyTypeObject PyLongArrType_Type; > > > > > > static PyTypeObject PyLongLongArrType_Type; > > > > > > static PyTypeObject PyUByteArrType_Type; > > > > > > static PyTypeObject PyUShortArrType_Type; > > > > > > static PyTypeObject PyUIntArrType_Type; > > > > > > static PyTypeObject PyULongArrType_Type; > > > > > > static PyTypeObject PyULongLongArrType_Type; > > > > > > static PyTypeObject PyFloatArrType_Type; > > > > > > static PyTypeObject PyDoubleArrType_Type; > > > > > > static PyTypeObject PyLongDoubleArrType_Type; > > > > > > static PyTypeObject PyCFloatArrType_Type; > > > > > > static PyTypeObject PyCDoubleArrType_Type; > > > > > > static PyTypeObject PyCLongDoubleArrType_Type; > > > > > > static PyTypeObject PyObjectArrType_Type; > > > > > > static PyTypeObject PyStringArrType_Type; > > > > > > static PyTypeObject PyUnicodeArrType_Type; > > > > > > static PyTypeObject PyVoidArrType_Type; > > >static int PyArray_SetNumericOps (PyObject *); > >static PyObject * PyArray_GetNumericOps (void); > >static int PyArray_INCREF (PyArrayObject *); > >static int PyArray_XDECREF (PyArrayObject *); > >static void PyArray_SetStringFunction (PyObject *, int); > >static PyArray_Descr * PyArray_DescrFromType (int); > >static PyObject * PyArray_TypeObjectFromType (int); > >static char * PyArray_Zero (PyArrayObject *); > >static char * PyArray_One (PyArrayObject *); > >static PyObject * PyArray_CastToType (PyArrayObject *, PyArray_Descr *, int); > >static int PyArray_CastTo (PyArrayObject *, PyArrayObject *); > >static int PyArray_CastAnyTo (PyArrayObject *, PyArrayObject *); > >static int PyArray_CanCastSafely (int, int); > >static npy_bool PyArray_CanCastTo (PyArray_Descr *, PyArray_Descr *); > >static int PyArray_ObjectType (PyObject *, int); > >static PyArray_Descr * PyArray_DescrFromObject (PyObject *, PyArray_Descr *); > >static PyArrayObject ** PyArray_ConvertToCommonType (PyObject *, int *); > >static PyArray_Descr * PyArray_DescrFromScalar (PyObject *); > >static PyArray_Descr * PyArray_DescrFromTypeObject (PyObject *); > >static npy_intp PyArray_Size (PyObject *); > >static PyObject * PyArray_Scalar (void *, PyArray_Descr *, PyObject *); > >static PyObject * PyArray_FromScalar (PyObject *, PyArray_Descr *); > >static void PyArray_ScalarAsCtype (PyObject *, void *); > >static int PyArray_CastScalarToCtype (PyObject *, void *, PyArray_Descr *); > >static int PyArray_CastScalarDirect (PyObject *, PyArray_Descr *, void *, int); > >static PyObject * PyArray_ScalarFromObject (PyObject *); > >static PyArray_VectorUnaryFunc * PyArray_GetCastFunc (PyArray_Descr *, int); > >static PyObject * PyArray_FromDims (int, int *, int); > >static PyObject * PyArray_FromDimsAndDataAndDescr (int, int *, PyArray_Descr *, char *); > >static PyObject * PyArray_FromAny (PyObject *, PyArray_Descr *, int, int, int, PyObject *); > >static PyObject * PyArray_EnsureArray (PyObject *); > >static PyObject * PyArray_EnsureAnyArray (PyObject *); > >static PyObject * PyArray_FromFile (FILE *, PyArray_Descr *, npy_intp, char *); > >static PyObject * PyArray_FromString (char *, npy_intp, PyArray_Descr *, npy_intp, char *); > >static PyObject * PyArray_FromBuffer (PyObject *, PyArray_Descr *, npy_intp, npy_intp); > >static PyObject * PyArray_FromIter (PyObject *, PyArray_Descr *, npy_intp); > >static PyObject * PyArray_Return (PyArrayObject *); > >static PyObject * PyArray_GetField (PyArrayObject *, PyArray_Descr *, int); > >static int PyArray_SetField (PyArrayObject *, PyArray_Descr *, int, PyObject *); > >static PyObject * PyArray_Byteswap (PyArrayObject *, npy_bool); > >static PyObject * PyArray_Resize (PyArrayObject *, PyArray_Dims *, int, NPY_ORDER); > >static int PyArray_MoveInto (PyArrayObject *, PyArrayObject *); > >static int PyArray_CopyInto (PyArrayObject *, PyArrayObject *); > >static int PyArray_CopyAnyInto (PyArrayObject *, PyArrayObject *); > >static int PyArray_CopyObject (PyArrayObject *, PyObject *); > >static PyObject * PyArray_NewCopy (PyArrayObject *, NPY_ORDER); > >static PyObject * PyArray_ToList (PyArrayObject *); > >static PyObject * PyArray_ToString (PyArrayObject *, NPY_ORDER); > >static int PyArray_ToFile (PyArrayObject *, FILE *, char *, char *); > >static int PyArray_Dump (PyObject *, PyObject *, int); > >static PyObject * PyArray_Dumps (PyObject *, int); > >static int PyArray_ValidType (int); > >static void PyArray_UpdateFlags (PyArrayObject *, int); > >static PyObject * PyArray_New (PyTypeObject *, int, npy_intp *, int, npy_intp *, void *, int, int, PyObject *); > >static PyObject * PyArray_NewFromDescr (PyTypeObject *, PyArray_Descr *, int, npy_intp *, npy_intp *, void *, int, PyObject *); > >static PyArray_Descr * PyArray_DescrNew (PyArray_Descr *); > >static PyArray_Descr * PyArray_DescrNewFromType (int); > >static double PyArray_GetPriority (PyObject *, double); > >static PyObject * PyArray_IterNew (PyObject *); > >static PyObject * PyArray_MultiIterNew (int, ...); > >static int PyArray_PyIntAsInt (PyObject *); > >static npy_intp PyArray_PyIntAsIntp (PyObject *); > >static int PyArray_Broadcast (PyArrayMultiIterObject *); > >static void PyArray_FillObjectArray (PyArrayObject *, PyObject *); > >static int PyArray_FillWithScalar (PyArrayObject *, PyObject *); > >static npy_bool PyArray_CheckStrides (int, int, npy_intp, npy_intp, npy_intp *, npy_intp *); > >static PyArray_Descr * PyArray_DescrNewByteorder (PyArray_Descr *, char); > >static PyObject * PyArray_IterAllButAxis (PyObject *, int *); > >static PyObject * PyArray_CheckFromAny (PyObject *, PyArray_Descr *, int, int, int, PyObject *); > >static PyObject * PyArray_FromArray (PyArrayObject *, PyArray_Descr *, int); > >static PyObject * PyArray_FromInterface (PyObject *); > >static PyObject * PyArray_FromStructInterface (PyObject *); > >static PyObject * PyArray_FromArrayAttr (PyObject *, PyArray_Descr *, PyObject *); > >static NPY_SCALARKIND PyArray_ScalarKind (int, PyArrayObject **); > >static int PyArray_CanCoerceScalar (int, int, NPY_SCALARKIND); > >static PyObject * PyArray_NewFlagsObject (PyObject *); > >static npy_bool PyArray_CanCastScalar (PyTypeObject *, PyTypeObject *); > >static int PyArray_CompareUCS4 (npy_ucs4 *, npy_ucs4 *, size_t); > >static int PyArray_RemoveSmallest (PyArrayMultiIterObject *); > >static int PyArray_ElementStrides (PyObject *); > >static void PyArray_Item_INCREF (char *, PyArray_Descr *); > >static void PyArray_Item_XDECREF (char *, PyArray_Descr *); > >static PyObject * PyArray_FieldNames (PyObject *); > >static PyObject * PyArray_Transpose (PyArrayObject *, PyArray_Dims *); > >static PyObject * PyArray_TakeFrom (PyArrayObject *, PyObject *, int, PyArrayObject *, NPY_CLIPMODE); > >static PyObject * PyArray_PutTo (PyArrayObject *, PyObject*, PyObject *, NPY_CLIPMODE); > >static PyObject * PyArray_PutMask (PyArrayObject *, PyObject*, PyObject*); > >static PyObject * PyArray_Repeat (PyArrayObject *, PyObject *, int); > >static PyObject * PyArray_Choose (PyArrayObject *, PyObject *, PyArrayObject *, NPY_CLIPMODE); > >static int PyArray_Sort (PyArrayObject *, int, NPY_SORTKIND); > >static PyObject * PyArray_ArgSort (PyArrayObject *, int, NPY_SORTKIND); > >static PyObject * PyArray_SearchSorted (PyArrayObject *, PyObject *, NPY_SEARCHSIDE); > >static PyObject * PyArray_ArgMax (PyArrayObject *, int, PyArrayObject *); > >static PyObject * PyArray_ArgMin (PyArrayObject *, int, PyArrayObject *); > >static PyObject * PyArray_Reshape (PyArrayObject *, PyObject *); > >static PyObject * PyArray_Newshape (PyArrayObject *, PyArray_Dims *, NPY_ORDER); > >static PyObject * PyArray_Squeeze (PyArrayObject *); > >static PyObject * PyArray_View (PyArrayObject *, PyArray_Descr *, PyTypeObject *); > >static PyObject * PyArray_SwapAxes (PyArrayObject *, int, int); > >static PyObject * PyArray_Max (PyArrayObject *, int, PyArrayObject *); > >static PyObject * PyArray_Min (PyArrayObject *, int, PyArrayObject *); > >static PyObject * PyArray_Ptp (PyArrayObject *, int, PyArrayObject *); > >static PyObject * PyArray_Mean (PyArrayObject *, int, int, PyArrayObject *); > >static PyObject * PyArray_Trace (PyArrayObject *, int, int, int, int, PyArrayObject *); > >static PyObject * PyArray_Diagonal (PyArrayObject *, int, int, int); > >static PyObject * PyArray_Clip (PyArrayObject *, PyObject *, PyObject *, PyArrayObject *); > >static PyObject * PyArray_Conjugate (PyArrayObject *, PyArrayObject *); > >static PyObject * PyArray_Nonzero (PyArrayObject *); > >static PyObject * PyArray_Std (PyArrayObject *, int, int, PyArrayObject *, int); > >static PyObject * PyArray_Sum (PyArrayObject *, int, int, PyArrayObject *); > >static PyObject * PyArray_CumSum (PyArrayObject *, int, int, PyArrayObject *); > >static PyObject * PyArray_Prod (PyArrayObject *, int, int, PyArrayObject *); > >static PyObject * PyArray_CumProd (PyArrayObject *, int, int, PyArrayObject *); > >static PyObject * PyArray_All (PyArrayObject *, int, PyArrayObject *); > >static PyObject * PyArray_Any (PyArrayObject *, int, PyArrayObject *); > >static PyObject * PyArray_Compress (PyArrayObject *, PyObject *, int, PyArrayObject *); > >static PyObject * PyArray_Flatten (PyArrayObject *, NPY_ORDER); > >static PyObject * PyArray_Ravel (PyArrayObject *, NPY_ORDER); > >static npy_intp PyArray_MultiplyList (npy_intp *, int); > >static int PyArray_MultiplyIntList (int *, int); > >static void * PyArray_GetPtr (PyArrayObject *, npy_intp*); > >static int PyArray_CompareLists (npy_intp *, npy_intp *, int); > >static int PyArray_AsCArray (PyObject **, void *, npy_intp *, int, PyArray_Descr*); > >static int PyArray_As1D (PyObject **, char **, int *, int); > >static int PyArray_As2D (PyObject **, char ***, int *, int *, int); > >static int PyArray_Free (PyObject *, void *); > >static int PyArray_Converter (PyObject *, PyObject **); > >static int PyArray_IntpFromSequence (PyObject *, npy_intp *, int); > >static PyObject * PyArray_Concatenate (PyObject *, int); > >static PyObject * PyArray_InnerProduct (PyObject *, PyObject *); > >static PyObject * PyArray_MatrixProduct (PyObject *, PyObject *); > >static PyObject * PyArray_CopyAndTranspose (PyObject *); > >static PyObject * PyArray_Correlate (PyObject *, PyObject *, int); > >static int PyArray_TypestrConvert (int, int); > >static int PyArray_DescrConverter (PyObject *, PyArray_Descr **); > >static int PyArray_DescrConverter2 (PyObject *, PyArray_Descr **); > >static int PyArray_IntpConverter (PyObject *, PyArray_Dims *); > >static int PyArray_BufferConverter (PyObject *, PyArray_Chunk *); > >static int PyArray_AxisConverter (PyObject *, int *); > >static int PyArray_BoolConverter (PyObject *, npy_bool *); > >static int PyArray_ByteorderConverter (PyObject *, char *); > >static int PyArray_OrderConverter (PyObject *, NPY_ORDER *); > >static unsigned char PyArray_EquivTypes (PyArray_Descr *, PyArray_Descr *); > >static PyObject * PyArray_Zeros (int, npy_intp *, PyArray_Descr *, int); > >static PyObject * PyArray_Empty (int, npy_intp *, PyArray_Descr *, int); > >static PyObject * PyArray_Where (PyObject *, PyObject *, PyObject *); > >static PyObject * PyArray_Arange (double, double, double, int); > >static PyObject * PyArray_ArangeObj (PyObject *, PyObject *, PyObject *, PyArray_Descr *); > >static int PyArray_SortkindConverter (PyObject *, NPY_SORTKIND *); > >static PyObject * PyArray_LexSort (PyObject *, int); > >static PyObject * PyArray_Round (PyArrayObject *, int, PyArrayObject *); > >static unsigned char PyArray_EquivTypenums (int, int); > >static int PyArray_RegisterDataType (PyArray_Descr *); > >static int PyArray_RegisterCastFunc (PyArray_Descr *, int, PyArray_VectorUnaryFunc *); > >static int PyArray_RegisterCanCast (PyArray_Descr *, int, NPY_SCALARKIND); > >static void PyArray_InitArrFuncs (PyArray_ArrFuncs *); > >static PyObject * PyArray_IntTupleFromIntp (int, npy_intp *); > >static int PyArray_TypeNumFromName (char *); > >static int PyArray_ClipmodeConverter (PyObject *, NPY_CLIPMODE *); > >static int PyArray_OutputConverter (PyObject *, PyArrayObject **); > >static PyObject * PyArray_BroadcastToShape (PyObject *, npy_intp *, int); > >static void _PyArray_SigintHandler (int); > >static void* _PyArray_GetSigintBuf (void); > >static int PyArray_DescrAlignConverter (PyObject *, PyArray_Descr **); > >static int PyArray_DescrAlignConverter2 (PyObject *, PyArray_Descr **); > >static int PyArray_SearchsideConverter (PyObject *, void *); > >static PyObject * PyArray_CheckAxis (PyArrayObject *, int *, int); > >static npy_intp PyArray_OverflowMultiplyList (npy_intp *, int); > >static int PyArray_CompareString (char *, char *, size_t); > >static PyObject * PyArray_MultiIterFromObjects (PyObject **, int, int, ...); > >static int PyArray_GetEndianness (void); > >static unsigned int PyArray_GetNDArrayCFeatureVersion (void); > >static PyObject * PyArray_Correlate2 (PyObject *, PyObject *, int); > >static PyObject* PyArray_NeighborhoodIterNew (PyArrayIterObject *, npy_intp *, int, PyArrayObject*); > > > > > static PyTypeObject PyTimeIntegerArrType_Type; > > > > > > static PyTypeObject PyDatetimeArrType_Type; > > > > > > static PyTypeObject PyTimedeltaArrType_Type; > > > > > > static PyTypeObject PyHalfArrType_Type; > > > > > > static PyTypeObject NpyIter_Type; > > >static void PyArray_SetDatetimeParseFunction (PyObject *); > >static void PyArray_DatetimeToDatetimeStruct (npy_datetime, NPY_DATETIMEUNIT, npy_datetimestruct *); > >static void PyArray_TimedeltaToTimedeltaStruct (npy_timedelta, NPY_DATETIMEUNIT, npy_timedeltastruct *); > >static npy_datetime PyArray_DatetimeStructToDatetime (NPY_DATETIMEUNIT, npy_datetimestruct *); > >static npy_datetime PyArray_TimedeltaStructToTimedelta (NPY_DATETIMEUNIT, npy_timedeltastruct *); > >static NpyIter * NpyIter_New (PyArrayObject *, npy_uint32, NPY_ORDER, NPY_CASTING, PyArray_Descr*); > >static NpyIter * NpyIter_MultiNew (int, PyArrayObject **, npy_uint32, NPY_ORDER, NPY_CASTING, npy_uint32 *, PyArray_Descr **); > >static NpyIter * NpyIter_AdvancedNew (int, PyArrayObject **, npy_uint32, NPY_ORDER, NPY_CASTING, npy_uint32 *, PyArray_Descr **, int, int **, npy_intp *, npy_intp); > >static NpyIter * NpyIter_Copy (NpyIter *); > >static int NpyIter_Deallocate (NpyIter *); > >static npy_bool NpyIter_HasDelayedBufAlloc (NpyIter *); > >static npy_bool NpyIter_HasExternalLoop (NpyIter *); > >static int NpyIter_EnableExternalLoop (NpyIter *); > >static npy_intp * NpyIter_GetInnerStrideArray (NpyIter *); > >static npy_intp * NpyIter_GetInnerLoopSizePtr (NpyIter *); > >static int NpyIter_Reset (NpyIter *, char **); > >static int NpyIter_ResetBasePointers (NpyIter *, char **, char **); > >static int NpyIter_ResetToIterIndexRange (NpyIter *, npy_intp, npy_intp, char **); > >static int NpyIter_GetNDim (NpyIter *); > >static int NpyIter_GetNOp (NpyIter *); > >static NpyIter_IterNextFunc * NpyIter_GetIterNext (NpyIter *, char **); > >static npy_intp NpyIter_GetIterSize (NpyIter *); > >static void NpyIter_GetIterIndexRange (NpyIter *, npy_intp *, npy_intp *); > >static npy_intp NpyIter_GetIterIndex (NpyIter *); > >static int NpyIter_GotoIterIndex (NpyIter *, npy_intp); > >static npy_bool NpyIter_HasMultiIndex (NpyIter *); > >static int NpyIter_GetShape (NpyIter *, npy_intp *); > >static NpyIter_GetMultiIndexFunc * NpyIter_GetGetMultiIndex (NpyIter *, char **); > >static int NpyIter_GotoMultiIndex (NpyIter *, npy_intp *); > >static int NpyIter_RemoveMultiIndex (NpyIter *); > >static npy_bool NpyIter_HasIndex (NpyIter *); > >static npy_bool NpyIter_IsBuffered (NpyIter *); > >static npy_bool NpyIter_IsGrowInner (NpyIter *); > >static npy_intp NpyIter_GetBufferSize (NpyIter *); > >static npy_intp * NpyIter_GetIndexPtr (NpyIter *); > >static int NpyIter_GotoIndex (NpyIter *, npy_intp); > >static char ** NpyIter_GetDataPtrArray (NpyIter *); > >static PyArray_Descr ** NpyIter_GetDescrArray (NpyIter *); > >static PyArrayObject ** NpyIter_GetOperandArray (NpyIter *); > >static PyArrayObject * NpyIter_GetIterView (NpyIter *, npy_intp); > >static void NpyIter_GetReadFlags (NpyIter *, char *); > >static void NpyIter_GetWriteFlags (NpyIter *, char *); > >static void NpyIter_DebugPrint (NpyIter *); > >static npy_bool NpyIter_IterationNeedsAPI (NpyIter *); > >static void NpyIter_GetInnerFixedStrideArray (NpyIter *, npy_intp *); > >static int NpyIter_RemoveAxis (NpyIter *, int); > >static npy_intp * NpyIter_GetAxisStrideArray (NpyIter *, int); > >static npy_bool NpyIter_RequiresBuffering (NpyIter *); > >static char ** NpyIter_GetInitialDataPtrArray (NpyIter *); > >static int NpyIter_CreateCompatibleStrides (NpyIter *, npy_intp, npy_intp *); > >static int PyArray_CastingConverter (PyObject *, NPY_CASTING *); > >static npy_intp PyArray_CountNonzero (PyArrayObject *); > >static PyArray_Descr * PyArray_PromoteTypes (PyArray_Descr *, PyArray_Descr *); > >static PyArray_Descr * PyArray_MinScalarType (PyArrayObject *); > >static PyArray_Descr * PyArray_ResultType (npy_intp, PyArrayObject **, npy_intp, PyArray_Descr **); > >static npy_bool PyArray_CanCastArrayTo (PyArrayObject *, PyArray_Descr *, NPY_CASTING); > >static npy_bool PyArray_CanCastTypeTo (PyArray_Descr *, PyArray_Descr *, NPY_CASTING); > >static PyArrayObject * PyArray_EinsteinSum (char *, npy_intp, PyArrayObject **, PyArray_Descr *, NPY_ORDER, NPY_CASTING, PyArrayObject *); > >static PyObject * PyArray_NewLikeArray (PyArrayObject *, NPY_ORDER, PyArray_Descr *, int); > >static int PyArray_GetArrayParamsFromObject (PyObject *, PyArray_Descr *, npy_bool, PyArray_Descr **, int *, npy_intp *, PyArrayObject **, PyObject *); > >static int PyArray_ConvertClipmodeSequence (PyObject *, NPY_CLIPMODE *, int); > >static PyObject * PyArray_MatrixProduct2 (PyObject *, PyObject *, PyArrayObject*); ># 27 "numpy/core/include/numpy/ndarrayobject.h" 2 ># 207 "numpy/core/include/numpy/ndarrayobject.h" ># 1 "numpy/core/include/numpy/old_defines.h" 1 ># 208 "numpy/core/include/numpy/ndarrayobject.h" 2 ># 15 "numpy/core/include/numpy/arrayobject.h" 2 > ># 1 "numpy/core/include/numpy/noprefix.h" 1 ># 17 "numpy/core/include/numpy/arrayobject.h" 2 > > ># 1 "numpy/core/include/numpy/npy_interrupt.h" 1 ># 83 "numpy/core/include/numpy/npy_interrupt.h" ># 1 "/usr/include/setjmp.h" 1 3 4 ># 28 "/usr/include/setjmp.h" 3 4 > > ># 1 "/usr/include/bits/setjmp.h" 1 3 4 ># 27 "/usr/include/bits/setjmp.h" 3 4 ># 1 "/usr/include/bits/wordsize.h" 1 3 4 ># 28 "/usr/include/bits/setjmp.h" 2 3 4 ># 62 "/usr/include/bits/setjmp.h" 3 4 >typedef long int __jmp_buf[8]; ># 31 "/usr/include/setjmp.h" 2 3 4 ># 1 "/usr/include/bits/sigset.h" 1 3 4 ># 32 "/usr/include/setjmp.h" 2 3 4 > > > > >typedef struct __jmp_buf_tag > { > > > > > __jmp_buf __jmpbuf; > int __mask_was_saved; > __sigset_t __saved_mask; > } jmp_buf[1]; > > > > >extern int setjmp (jmp_buf __env) __attribute__ ((__nothrow__)); > > > > > > > >extern int __sigsetjmp (struct __jmp_buf_tag __env[1], int __savemask) __attribute__ ((__nothrow__)); > > > > >extern int _setjmp (struct __jmp_buf_tag __env[1]) __attribute__ ((__nothrow__)); ># 76 "/usr/include/setjmp.h" 3 4 > > > > >extern void longjmp (struct __jmp_buf_tag __env[1], int __val) > __attribute__ ((__nothrow__)) __attribute__ ((__noreturn__)); > > > > > > > >extern void _longjmp (struct __jmp_buf_tag __env[1], int __val) > __attribute__ ((__nothrow__)) __attribute__ ((__noreturn__)); > > > > > > > >typedef struct __jmp_buf_tag sigjmp_buf[1]; ># 108 "/usr/include/setjmp.h" 3 4 >extern void siglongjmp (sigjmp_buf __env, int __val) > __attribute__ ((__nothrow__)) __attribute__ ((__noreturn__)); > > > ># 84 "numpy/core/include/numpy/npy_interrupt.h" 2 ># 1 "/usr/include/signal.h" 1 3 4 ># 31 "/usr/include/signal.h" 3 4 > > ># 1 "/usr/include/bits/sigset.h" 1 3 4 ># 103 "/usr/include/bits/sigset.h" 3 4 >extern int __sigismember (__const __sigset_t *, int); >extern int __sigaddset (__sigset_t *, int); >extern int __sigdelset (__sigset_t *, int); ># 117 "/usr/include/bits/sigset.h" 3 4 >extern __inline int __sigismember (__const __sigset_t *__set, int __sig) { unsigned long int __mask = (((unsigned long int) 1) << (((__sig) - 1) % (8 * sizeof (unsigned long int)))); unsigned long int __word = (((__sig) - 1) / (8 * sizeof (unsigned long int))); return (__set->__val[__word] & __mask) ? 1 : 0; } >extern __inline int __sigaddset ( __sigset_t *__set, int __sig) { unsigned long int __mask = (((unsigned long int) 1) << (((__sig) - 1) % (8 * sizeof (unsigned long int)))); unsigned long int __word = (((__sig) - 1) / (8 * sizeof (unsigned long int))); return ((__set->__val[__word] |= __mask), 0); } >extern __inline int __sigdelset ( __sigset_t *__set, int __sig) { unsigned long int __mask = (((unsigned long int) 1) << (((__sig) - 1) % (8 * sizeof (unsigned long int)))); unsigned long int __word = (((__sig) - 1) / (8 * sizeof (unsigned long int))); return ((__set->__val[__word] &= ~__mask), 0); } ># 34 "/usr/include/signal.h" 2 3 4 > > > > > > > >typedef __sig_atomic_t sig_atomic_t; > ># 58 "/usr/include/signal.h" 3 4 ># 1 "/usr/include/bits/signum.h" 1 3 4 ># 59 "/usr/include/signal.h" 2 3 4 ># 75 "/usr/include/signal.h" 3 4 >typedef void (*__sighandler_t) (int); > > > > >extern __sighandler_t __sysv_signal (int __sig, __sighandler_t __handler) > __attribute__ ((__nothrow__)); > >extern __sighandler_t sysv_signal (int __sig, __sighandler_t __handler) > __attribute__ ((__nothrow__)); > > > > > > > >extern __sighandler_t signal (int __sig, __sighandler_t __handler) > __attribute__ ((__nothrow__)); ># 104 "/usr/include/signal.h" 3 4 > > > > > >extern __sighandler_t bsd_signal (int __sig, __sighandler_t __handler) > __attribute__ ((__nothrow__)); > > > > > > >extern int kill (__pid_t __pid, int __sig) __attribute__ ((__nothrow__)); > > > > > > >extern int killpg (__pid_t __pgrp, int __sig) __attribute__ ((__nothrow__)); > > > > >extern int raise (int __sig) __attribute__ ((__nothrow__)); > > > > >extern __sighandler_t ssignal (int __sig, __sighandler_t __handler) > __attribute__ ((__nothrow__)); >extern int gsignal (int __sig) __attribute__ ((__nothrow__)); > > > > >extern void psignal (int __sig, __const char *__s); ># 153 "/usr/include/signal.h" 3 4 >extern int __sigpause (int __sig_or_mask, int __is_sig); ># 162 "/usr/include/signal.h" 3 4 >extern int sigpause (int __sig) __asm__ ("__xpg_sigpause"); ># 181 "/usr/include/signal.h" 3 4 >extern int sigblock (int __mask) __attribute__ ((__nothrow__)) __attribute__ ((__deprecated__)); > > >extern int sigsetmask (int __mask) __attribute__ ((__nothrow__)) __attribute__ ((__deprecated__)); > > >extern int siggetmask (void) __attribute__ ((__nothrow__)) __attribute__ ((__deprecated__)); ># 196 "/usr/include/signal.h" 3 4 >typedef __sighandler_t sighandler_t; > > > > >typedef __sighandler_t sig_t; ># 212 "/usr/include/signal.h" 3 4 ># 1 "/usr/include/bits/siginfo.h" 1 3 4 ># 25 "/usr/include/bits/siginfo.h" 3 4 ># 1 "/usr/include/bits/wordsize.h" 1 3 4 ># 26 "/usr/include/bits/siginfo.h" 2 3 4 > > > > > > > >typedef union sigval > { > int sival_int; > void *sival_ptr; > } sigval_t; ># 51 "/usr/include/bits/siginfo.h" 3 4 >typedef struct siginfo > { > int si_signo; > int si_errno; > > int si_code; > > union > { > int _pad[((128 / sizeof (int)) - 4)]; > > > struct > { > __pid_t si_pid; > __uid_t si_uid; > } _kill; > > > struct > { > int si_tid; > int si_overrun; > sigval_t si_sigval; > } _timer; > > > struct > { > __pid_t si_pid; > __uid_t si_uid; > sigval_t si_sigval; > } _rt; > > > struct > { > __pid_t si_pid; > __uid_t si_uid; > int si_status; > __clock_t si_utime; > __clock_t si_stime; > } _sigchld; > > > struct > { > void *si_addr; > } _sigfault; > > > struct > { > long int si_band; > int si_fd; > } _sigpoll; > } _sifields; > } siginfo_t; ># 129 "/usr/include/bits/siginfo.h" 3 4 >enum >{ > SI_ASYNCNL = -60, > > SI_TKILL = -6, > > SI_SIGIO, > > SI_ASYNCIO, > > SI_MESGQ, > > SI_TIMER, > > SI_QUEUE, > > SI_USER, > > SI_KERNEL = 0x80 > >}; > > > >enum >{ > ILL_ILLOPC = 1, > > ILL_ILLOPN, > > ILL_ILLADR, > > ILL_ILLTRP, > > ILL_PRVOPC, > > ILL_PRVREG, > > ILL_COPROC, > > ILL_BADSTK > >}; > > >enum >{ > FPE_INTDIV = 1, > > FPE_INTOVF, > > FPE_FLTDIV, > > FPE_FLTOVF, > > FPE_FLTUND, > > FPE_FLTRES, > > FPE_FLTINV, > > FPE_FLTSUB > >}; > > >enum >{ > SEGV_MAPERR = 1, > > SEGV_ACCERR > >}; > > >enum >{ > BUS_ADRALN = 1, > > BUS_ADRERR, > > BUS_OBJERR > >}; > > >enum >{ > TRAP_BRKPT = 1, > > TRAP_TRACE > >}; > > >enum >{ > CLD_EXITED = 1, > > CLD_KILLED, > > CLD_DUMPED, > > CLD_TRAPPED, > > CLD_STOPPED, > > CLD_CONTINUED > >}; > > >enum >{ > POLL_IN = 1, > > POLL_OUT, > > POLL_MSG, > > POLL_ERR, > > POLL_PRI, > > POLL_HUP > >}; ># 273 "/usr/include/bits/siginfo.h" 3 4 >typedef struct sigevent > { > sigval_t sigev_value; > int sigev_signo; > int sigev_notify; > > union > { > int _pad[((64 / sizeof (int)) - 4)]; > > > > __pid_t _tid; > > struct > { > void (*_function) (sigval_t); > void *_attribute; > } _sigev_thread; > } _sigev_un; > } sigevent_t; > > > > > > >enum >{ > SIGEV_SIGNAL = 0, > > SIGEV_NONE, > > SIGEV_THREAD, > > > SIGEV_THREAD_ID = 4 > >}; ># 213 "/usr/include/signal.h" 2 3 4 > > > >extern int sigemptyset (sigset_t *__set) __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1))); > > >extern int sigfillset (sigset_t *__set) __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1))); > > >extern int sigaddset (sigset_t *__set, int __signo) __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1))); > > >extern int sigdelset (sigset_t *__set, int __signo) __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1))); > > >extern int sigismember (__const sigset_t *__set, int __signo) > __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1))); > > > >extern int sigisemptyset (__const sigset_t *__set) __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1))); > > >extern int sigandset (sigset_t *__set, __const sigset_t *__left, > __const sigset_t *__right) __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1, 2, 3))); > > >extern int sigorset (sigset_t *__set, __const sigset_t *__left, > __const sigset_t *__right) __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1, 2, 3))); > > > > ># 1 "/usr/include/bits/sigaction.h" 1 3 4 ># 25 "/usr/include/bits/sigaction.h" 3 4 >struct sigaction > { > > > union > { > > __sighandler_t sa_handler; > > void (*sa_sigaction) (int, siginfo_t *, void *); > } > __sigaction_handler; > > > > > > > > __sigset_t sa_mask; > > > int sa_flags; > > > void (*sa_restorer) (void); > }; ># 247 "/usr/include/signal.h" 2 3 4 > > >extern int sigprocmask (int __how, __const sigset_t *__restrict __set, > sigset_t *__restrict __oset) __attribute__ ((__nothrow__)); > > > > > > >extern int sigsuspend (__const sigset_t *__set) __attribute__ ((__nonnull__ (1))); > > >extern int sigaction (int __sig, __const struct sigaction *__restrict __act, > struct sigaction *__restrict __oact) __attribute__ ((__nothrow__)); > > >extern int sigpending (sigset_t *__set) __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1))); > > > > > > >extern int sigwait (__const sigset_t *__restrict __set, int *__restrict __sig) > __attribute__ ((__nonnull__ (1, 2))); > > > > > > >extern int sigwaitinfo (__const sigset_t *__restrict __set, > siginfo_t *__restrict __info) __attribute__ ((__nonnull__ (1))); > > > > > > >extern int sigtimedwait (__const sigset_t *__restrict __set, > siginfo_t *__restrict __info, > __const struct timespec *__restrict __timeout) > __attribute__ ((__nonnull__ (1))); > > > >extern int sigqueue (__pid_t __pid, int __sig, __const union sigval __val) > __attribute__ ((__nothrow__)); ># 304 "/usr/include/signal.h" 3 4 >extern __const char *__const _sys_siglist[65]; >extern __const char *__const sys_siglist[65]; > > >struct sigvec > { > __sighandler_t sv_handler; > int sv_mask; > > int sv_flags; > > }; ># 328 "/usr/include/signal.h" 3 4 >extern int sigvec (int __sig, __const struct sigvec *__vec, > struct sigvec *__ovec) __attribute__ ((__nothrow__)); > > > ># 1 "/usr/include/bits/sigcontext.h" 1 3 4 ># 26 "/usr/include/bits/sigcontext.h" 3 4 ># 1 "/usr/include/bits/wordsize.h" 1 3 4 ># 27 "/usr/include/bits/sigcontext.h" 2 3 4 > >struct _fpreg >{ > unsigned short significand[4]; > unsigned short exponent; >}; > >struct _fpxreg >{ > unsigned short significand[4]; > unsigned short exponent; > unsigned short padding[3]; >}; > >struct _xmmreg >{ > __uint32_t element[4]; >}; ># 101 "/usr/include/bits/sigcontext.h" 3 4 >struct _fpstate >{ > > __uint16_t cwd; > __uint16_t swd; > __uint16_t ftw; > __uint16_t fop; > __uint64_t rip; > __uint64_t rdp; > __uint32_t mxcsr; > __uint32_t mxcr_mask; > struct _fpxreg _st[8]; > struct _xmmreg _xmm[16]; > __uint32_t padding[24]; >}; > >struct sigcontext >{ > unsigned long r8; > unsigned long r9; > unsigned long r10; > unsigned long r11; > unsigned long r12; > unsigned long r13; > unsigned long r14; > unsigned long r15; > unsigned long rdi; > unsigned long rsi; > unsigned long rbp; > unsigned long rbx; > unsigned long rdx; > unsigned long rax; > unsigned long rcx; > unsigned long rsp; > unsigned long rip; > unsigned long eflags; > unsigned short cs; > unsigned short gs; > unsigned short fs; > unsigned short __pad0; > unsigned long err; > unsigned long trapno; > unsigned long oldmask; > unsigned long cr2; > struct _fpstate * fpstate; > unsigned long __reserved1 [8]; >}; ># 334 "/usr/include/signal.h" 2 3 4 > > >extern int sigreturn (struct sigcontext *__scp) __attribute__ ((__nothrow__)); ># 346 "/usr/include/signal.h" 3 4 >extern int siginterrupt (int __sig, int __interrupt) __attribute__ ((__nothrow__)); > ># 1 "/usr/include/bits/sigstack.h" 1 3 4 ># 26 "/usr/include/bits/sigstack.h" 3 4 >struct sigstack > { > void *ss_sp; > int ss_onstack; > }; > > > >enum >{ > SS_ONSTACK = 1, > > SS_DISABLE > >}; ># 50 "/usr/include/bits/sigstack.h" 3 4 >typedef struct sigaltstack > { > void *ss_sp; > int ss_flags; > size_t ss_size; > } stack_t; ># 349 "/usr/include/signal.h" 2 3 4 > > ># 1 "/usr/include/sys/ucontext.h" 1 3 4 ># 23 "/usr/include/sys/ucontext.h" 3 4 ># 1 "/usr/include/signal.h" 1 3 4 ># 24 "/usr/include/sys/ucontext.h" 2 3 4 ># 1 "/usr/include/bits/wordsize.h" 1 3 4 ># 25 "/usr/include/sys/ucontext.h" 2 3 4 ># 33 "/usr/include/sys/ucontext.h" 3 4 >typedef long int greg_t; > > > > > >typedef greg_t gregset_t[23]; > > > >enum >{ > REG_R8 = 0, > > REG_R9, > > REG_R10, > > REG_R11, > > REG_R12, > > REG_R13, > > REG_R14, > > REG_R15, > > REG_RDI, > > REG_RSI, > > REG_RBP, > > REG_RBX, > > REG_RDX, > > REG_RAX, > > REG_RCX, > > REG_RSP, > > REG_RIP, > > REG_EFL, > > REG_CSGSFS, > > REG_ERR, > > REG_TRAPNO, > > REG_OLDMASK, > > REG_CR2 > >}; > > >struct _libc_fpxreg >{ > unsigned short int significand[4]; > unsigned short int exponent; > unsigned short int padding[3]; >}; > >struct _libc_xmmreg >{ > __uint32_t element[4]; >}; > >struct _libc_fpstate >{ > > __uint16_t cwd; > __uint16_t swd; > __uint16_t ftw; > __uint16_t fop; > __uint64_t rip; > __uint64_t rdp; > __uint32_t mxcsr; > __uint32_t mxcr_mask; > struct _libc_fpxreg _st[8]; > struct _libc_xmmreg _xmm[16]; > __uint32_t padding[24]; >}; > > >typedef struct _libc_fpstate *fpregset_t; > > >typedef struct > { > gregset_t gregs; > > fpregset_t fpregs; > unsigned long __reserved1 [8]; >} mcontext_t; > > >typedef struct ucontext > { > unsigned long int uc_flags; > struct ucontext *uc_link; > stack_t uc_stack; > mcontext_t uc_mcontext; > __sigset_t uc_sigmask; > struct _libc_fpstate __fpregs_mem; > } ucontext_t; ># 352 "/usr/include/signal.h" 2 3 4 > > > > > >extern int sigstack (struct sigstack *__ss, struct sigstack *__oss) > __attribute__ ((__nothrow__)) __attribute__ ((__deprecated__)); > > > >extern int sigaltstack (__const struct sigaltstack *__restrict __ss, > struct sigaltstack *__restrict __oss) __attribute__ ((__nothrow__)); > > > > > > > >extern int sighold (int __sig) __attribute__ ((__nothrow__)); > > >extern int sigrelse (int __sig) __attribute__ ((__nothrow__)); > > >extern int sigignore (int __sig) __attribute__ ((__nothrow__)); > > >extern __sighandler_t sigset (int __sig, __sighandler_t __disp) __attribute__ ((__nothrow__)); > > > > > ># 1 "/usr/include/bits/pthreadtypes.h" 1 3 4 ># 387 "/usr/include/signal.h" 2 3 4 ># 1 "/usr/include/bits/sigthread.h" 1 3 4 ># 31 "/usr/include/bits/sigthread.h" 3 4 >extern int pthread_sigmask (int __how, > __const __sigset_t *__restrict __newmask, > __sigset_t *__restrict __oldmask)__attribute__ ((__nothrow__)); > > >extern int pthread_kill (pthread_t __threadid, int __signo) __attribute__ ((__nothrow__)); ># 388 "/usr/include/signal.h" 2 3 4 > > > > > > >extern int __libc_current_sigrtmin (void) __attribute__ ((__nothrow__)); > >extern int __libc_current_sigrtmax (void) __attribute__ ((__nothrow__)); > > > > ># 85 "numpy/core/include/numpy/npy_interrupt.h" 2 ># 20 "numpy/core/include/numpy/arrayobject.h" 2 ># 7 "numpy/core/src/multiarray/common.c" 2 > ># 1 "numpy/core/src/private/npy_config.h" 1 > > > ># 1 "build/src.linux-x86_64-2.7/numpy/core/include/numpy/config.h" 1 ># 5 "numpy/core/src/private/npy_config.h" 2 ># 9 "numpy/core/src/multiarray/common.c" 2 ># 1 "numpy/core/include/numpy/npy_3kcompat.h" 1 ># 22 "numpy/core/include/numpy/npy_3kcompat.h" ># 1 "numpy/core/include/numpy/npy_common.h" 1 ># 23 "numpy/core/include/numpy/npy_3kcompat.h" 2 ># 1 "numpy/core/include/numpy/ndarrayobject.h" 1 ># 24 "numpy/core/include/numpy/npy_3kcompat.h" 2 ># 121 "numpy/core/include/numpy/npy_3kcompat.h" >static inline void >PyUnicode_ConcatAndDel(PyObject **left, PyObject *right) >{ > PyObject *newobj; > newobj = PyUnicodeUCS4_Concat(*left, right); > do { if ( --((PyObject*)(*left))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(*left)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(*left)))); } while (0); > do { if ( --((PyObject*)(right))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(right)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(right)))); } while (0); > *left = newobj; >} > >static inline void >PyUnicode_Concat2(PyObject **left, PyObject *right) >{ > PyObject *newobj; > newobj = PyUnicodeUCS4_Concat(*left, right); > do { if ( --((PyObject*)(*left))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(*left)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(*left)))); } while (0); > *left = newobj; >} ># 250 "numpy/core/include/numpy/npy_3kcompat.h" >static inline PyObject* >npy_PyFile_OpenFile(PyObject *filename, char *mode) >{ > PyObject *open; > open = PyDict_GetItemString(PyEval_GetBuiltins(), "open"); > if (open == ((void *)0)) { > return ((void *)0); > } > return _PyObject_CallFunction_SizeT(open, "Os", filename, mode); >} ># 359 "numpy/core/include/numpy/npy_3kcompat.h" >static inline PyObject * >NpyCapsule_FromVoidPtr(void *ptr, void (*dtor)(void *)) >{ > return PyCObject_FromVoidPtr(ptr, dtor); >} > >static inline PyObject * >NpyCapsule_FromVoidPtrAndDesc(void *ptr, void* context, > void (*dtor)(void *, void *)) >{ > return PyCObject_FromVoidPtrAndDesc(ptr, context, dtor); >} > >static inline void * >NpyCapsule_AsVoidPtr(PyObject *ptr) >{ > return PyCObject_AsVoidPtr(ptr); >} > >static inline void * >NpyCapsule_GetDesc(PyObject *obj) >{ > return PyCObject_GetDesc(obj); >} > >static inline int >NpyCapsule_Check(PyObject *ptr) >{ > return ((((PyObject*)(ptr))->ob_type) == &PyCObject_Type); >} > >static void >simple_capsule_dtor(void *ptr) >{ > PyMem_Free(ptr); >} ># 10 "numpy/core/src/multiarray/common.c" 2 > ># 1 "numpy/core/src/multiarray/usertypes.h" 1 > > > > > > >static PyArray_Descr **userdescrs; > > >static void >PyArray_InitArrFuncs(PyArray_ArrFuncs *f); > >static int >PyArray_RegisterCanCast(PyArray_Descr *descr, int totype, > NPY_SCALARKIND scalar); > >static int >PyArray_RegisterDataType(PyArray_Descr *descr); > >static int >PyArray_RegisterCastFunc(PyArray_Descr *descr, int totype, > PyArray_VectorUnaryFunc *castfunc); ># 12 "numpy/core/src/multiarray/common.c" 2 > ># 1 "numpy/core/src/multiarray/common.h" 1 > > > > > >static PyArray_Descr * >_array_find_type(PyObject *op, PyArray_Descr *minitype, int max); > >static PyArray_Descr * >_array_find_python_scalar_type(PyObject *op); > >static PyArray_Descr * >_array_typedescr_fromstr(char *str); > >static char * >index2ptr(PyArrayObject *mp, npy_intp i); > >static int >_zerofill(PyArrayObject *ret); > >static int >_IsAligned(PyArrayObject *ap); > >static npy_bool >_IsWriteable(PyArrayObject *ap); ># 14 "numpy/core/src/multiarray/common.c" 2 ># 1 "numpy/core/src/multiarray/buffer.h" 1 > > > > > > >static PyBufferProcs array_as_buffer; > > >static void >_array_dealloc_buffer_info(PyArrayObject *self); > >static PyArray_Descr* >_descriptor_from_pep3118_format(char *s); ># 15 "numpy/core/src/multiarray/common.c" 2 > > >static PyArray_Descr * >_array_find_python_scalar_type(PyObject *op) >{ > if (((((PyObject*)(op))->ob_type) == (&PyFloat_Type) || PyType_IsSubtype((((PyObject*)(op))->ob_type), (&PyFloat_Type)))) { > return PyArray_DescrFromType(NPY_DOUBLE); > } > else if (((((PyObject*)(op))->ob_type) == (&PyComplex_Type) || PyType_IsSubtype((((PyObject*)(op))->ob_type), (&PyComplex_Type)))) { > return PyArray_DescrFromType(NPY_CDOUBLE); > } > else if (((((op)->ob_type)->tp_flags & ((1L<<23))) != 0)) { > > if (((((PyObject*)(op))->ob_type) == &PyBool_Type)) { > return PyArray_DescrFromType(NPY_BOOL); > } > else { > return PyArray_DescrFromType(NPY_LONG); > } > } > else if (((((((PyObject*)(op))->ob_type))->tp_flags & ((1L<<24))) != 0)) { > > if ((PyLong_AsLongLong(op) == -1) && PyErr_Occurred()) { > PyErr_Clear(); > return PyArray_DescrFromType(NPY_OBJECT); > } > return PyArray_DescrFromType(NPY_LONGLONG); > } > return ((void *)0); >} > >static PyArray_Descr * >_use_default_type(PyObject *op) >{ > int typenum, l; > PyObject *type; > > typenum = -1; > l = 0; > type = (PyObject *)(((PyObject*)(op))->ob_type); > while (l < NPY_NUMUSERTYPES) { > if (type == (PyObject *)(userdescrs[l]->typeobj)) { > typenum = l + NPY_USERDEF; > break; > } > l++; > } > if (typenum == -1) { > typenum = NPY_OBJECT; > } > return PyArray_DescrFromType(typenum); >} ># 77 "numpy/core/src/multiarray/common.c" >static PyArray_Descr * >_array_find_type(PyObject *op, PyArray_Descr *minitype, int max) >{ > int l; > PyObject *ip; > PyArray_Descr *chktype = ((void *)0); > PyArray_Descr *outtype; > > Py_buffer buffer_view; > > > > > > > > if (((((PyObject*)(op))->ob_type) == (&PyArray_Type) || PyType_IsSubtype((((PyObject*)(op))->ob_type), (&PyArray_Type)))) { > chktype = (((PyArrayObject *)(op))->descr); > ( ((PyObject*)(chktype))->ob_refcnt++); > if (minitype == ((void *)0)) { > return chktype; > } > ( ((PyObject*)(minitype))->ob_refcnt++); > goto finish; > } > > if ((((((PyObject*)(op))->ob_type) == (&PyGenericArrType_Type) || PyType_IsSubtype((((PyObject*)(op))->ob_type), (&PyGenericArrType_Type))))) { > chktype = PyArray_DescrFromScalar(op); > if (minitype == ((void *)0)) { > return chktype; > } > ( ((PyObject*)(minitype))->ob_refcnt++); > goto finish; > } > > if (minitype == ((void *)0)) { > minitype = PyArray_DescrFromType(NPY_BOOL); > } > else { > ( ((PyObject*)(minitype))->ob_refcnt++); > } > if (max < 0) { > goto deflt; > } > chktype = _array_find_python_scalar_type(op); > if (chktype) { > goto finish; > } > > if (((((((PyObject*)(op))->ob_type))->tp_flags & ((1L<<27))) != 0)) { > chktype = PyArray_DescrNewFromType(NPY_STRING); > chktype->elsize = (((PyVarObject*)(op))->ob_size); > goto finish; > } > > if (((((((PyObject*)(op))->ob_type))->tp_flags & ((1L<<28))) != 0)) { > chktype = PyArray_DescrNewFromType(NPY_UNICODE); > chktype->elsize = (((PyUnicodeObject *)(op))->length * sizeof(Py_UNICODE)); > > > > goto finish; > } > > > > memset(&buffer_view, 0, sizeof(Py_buffer)); > if (PyObject_GetBuffer(op, &buffer_view, 0x0004|(0x0010 | 0x0008)) == 0 || > PyObject_GetBuffer(op, &buffer_view, 0x0004) == 0) { > > PyErr_Clear(); > chktype = _descriptor_from_pep3118_format(buffer_view.format); > PyBuffer_Release(&buffer_view); > if (chktype) { > goto finish; > } > } > else if (PyObject_GetBuffer(op, &buffer_view, (0x0010 | 0x0008)) == 0 || > PyObject_GetBuffer(op, &buffer_view, 0) == 0) { > > PyErr_Clear(); > chktype = PyArray_DescrNewFromType(NPY_VOID); > chktype->elsize = buffer_view.itemsize; > PyBuffer_Release(&buffer_view); > goto finish; > } > else { > PyErr_Clear(); > } > > > if ((ip=PyObject_GetAttrString(op, "__array_interface__"))!=((void *)0)) { > if (((((((PyObject*)(ip))->ob_type))->tp_flags & ((1L<<29))) != 0)) { > PyObject *new; > new = PyDict_GetItemString(ip, "typestr"); > if (new && ((((((PyObject*)(new))->ob_type))->tp_flags & ((1L<<27))) != 0)) { > chktype =_array_typedescr_fromstr((((PyStringObject *)(new))->ob_sval)); > } > } > do { if ( --((PyObject*)(ip))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(ip)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(ip)))); } while (0); > if (chktype) { > goto finish; > } > } > else { > PyErr_Clear(); > } > if ((ip=PyObject_GetAttrString(op, "__array_struct__")) != ((void *)0)) { > PyArrayInterface *inter; > char buf[40]; > > if (NpyCapsule_Check(ip)) { > inter = (PyArrayInterface *)NpyCapsule_AsVoidPtr(ip); > if (inter->two == 2) { > PyOS_snprintf(buf, sizeof(buf), > "|%c%d", inter->typekind, inter->itemsize); > chktype = _array_typedescr_fromstr(buf); > } > } > do { if ( --((PyObject*)(ip))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(ip)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(ip)))); } while (0); > if (chktype) { > goto finish; > } > } > else { > PyErr_Clear(); > } > > > if (((((PyObject*)(op))->ob_type) == &PyBuffer_Type)) { > chktype = PyArray_DescrNewFromType(NPY_VOID); > chktype->elsize = (((PyObject*)(op))->ob_type)->tp_as_sequence->sq_length(op); > PyErr_Clear(); > goto finish; > } > > > if (PyObject_HasAttrString(op, "__array__")) { > ip = _PyObject_CallMethod_SizeT(op, "__array__", ((void *)0)); > if(ip && ((((PyObject*)(ip))->ob_type) == (&PyArray_Type) || PyType_IsSubtype((((PyObject*)(ip))->ob_type), (&PyArray_Type)))) { > chktype = (((PyArrayObject *)(ip))->descr); > ( ((PyObject*)(chktype))->ob_refcnt++); > do { if ( --((PyObject*)(ip))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(ip)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(ip)))); } while (0); > goto finish; > } > do { if ((ip) == ((void *)0)) ; else do { if ( --((PyObject*)(ip))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(ip)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(ip)))); } while (0); } while (0); > if (PyErr_Occurred()) PyErr_Clear(); > } > > > > > if (((op)->ob_type == &PyInstance_Type)) { > goto deflt; > } > > if (PySequence_Check(op)) { > l = PyObject_Size(op); > if (l < 0 && PyErr_Occurred()) { > PyErr_Clear(); > goto deflt; > } > if (l == 0 && minitype->type_num == NPY_BOOL) { > do { if ( --((PyObject*)(minitype))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(minitype)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(minitype)))); } while (0); > minitype = PyArray_DescrFromType(NPY_DOUBLE); > if (minitype == ((void *)0)) { > return ((void *)0); > } > } > while (--l >= 0) { > PyArray_Descr *newtype; > ip = PySequence_GetItem(op, l); > if (ip==((void *)0)) { > PyErr_Clear(); > goto deflt; > } > chktype = _array_find_type(ip, minitype, max-1); > if (chktype == ((void *)0)) { > do { if ( --((PyObject*)(minitype))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(minitype)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(minitype)))); } while (0); > return ((void *)0); > } > newtype = PyArray_PromoteTypes(chktype, minitype); > do { if ( --((PyObject*)(minitype))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(minitype)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(minitype)))); } while (0); > minitype = newtype; > do { if ( --((PyObject*)(chktype))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(chktype)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(chktype)))); } while (0); > do { if ( --((PyObject*)(ip))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(ip)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(ip)))); } while (0); > } > chktype = minitype; > ( ((PyObject*)(minitype))->ob_refcnt++); > goto finish; > } > > > deflt: > chktype = _use_default_type(op); > > finish: > outtype = PyArray_PromoteTypes(chktype, minitype); > do { if ( --((PyObject*)(chktype))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(chktype)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(chktype)))); } while (0); > do { if ( --((PyObject*)(minitype))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(minitype)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(minitype)))); } while (0); > if (outtype == ((void *)0)) { > return ((void *)0); > } > > > > > if (outtype->type_num == NPY_VOID && > minitype->type_num != NPY_VOID) { > do { if ( --((PyObject*)(outtype))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(outtype)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(outtype)))); } while (0); > return PyArray_DescrFromType(NPY_OBJECT); > } > return outtype; >} > > >static PyArray_Descr * >_array_typedescr_fromstr(char *str) >{ > PyArray_Descr *descr; > int type_num; > char typechar; > int size; > char msg[] = "unsupported typestring"; > int swap; > char swapchar; > > swapchar = str[0]; > str += 1; > > typechar = str[0]; > size = atoi(str + 1); > switch (typechar) { > case 'b': > if (size == sizeof(npy_bool)) { > type_num = NPY_BOOL; > } > else { > PyErr_SetString(PyExc_ValueError, msg); > return ((void *)0); > } > break; > case 'u': > if (size == sizeof(npy_uintp)) { > type_num = NPY_ULONG; > } > else if (size == sizeof(char)) { > type_num = NPY_UBYTE; > } > else if (size == sizeof(short)) { > type_num = NPY_USHORT; > } > else if (size == sizeof(npy_ulong)) { > type_num = NPY_ULONG; > } > else if (size == sizeof(int)) { > type_num = NPY_UINT; > } > else if (size == sizeof(npy_ulonglong)) { > type_num = NPY_ULONGLONG; > } > else { > PyErr_SetString(PyExc_ValueError, msg); > return ((void *)0); > } > break; > case 'i': > if (size == sizeof(npy_intp)) { > type_num = NPY_LONG; > } > else if (size == sizeof(char)) { > type_num = NPY_BYTE; > } > else if (size == sizeof(short)) { > type_num = NPY_SHORT; > } > else if (size == sizeof(long)) { > type_num = NPY_LONG; > } > else if (size == sizeof(int)) { > type_num = NPY_INT; > } > else if (size == sizeof(npy_longlong)) { > type_num = NPY_LONGLONG; > } > else { > PyErr_SetString(PyExc_ValueError, msg); > return ((void *)0); > } > break; > case 'f': > if (size == sizeof(float)) { > type_num = NPY_FLOAT; > } > else if (size == sizeof(double)) { > type_num = NPY_DOUBLE; > } > else if (size == sizeof(npy_longdouble)) { > type_num = NPY_LONGDOUBLE; > } > else { > PyErr_SetString(PyExc_ValueError, msg); > return ((void *)0); > } > break; > case 'c': > if (size == sizeof(float)*2) { > type_num = NPY_CFLOAT; > } > else if (size == sizeof(double)*2) { > type_num = NPY_CDOUBLE; > } > else if (size == sizeof(npy_longdouble)*2) { > type_num = NPY_CLONGDOUBLE; > } > else { > PyErr_SetString(PyExc_ValueError, msg); > return ((void *)0); > } > break; > case 'O': > if (size == sizeof(PyObject *)) { > type_num = NPY_OBJECT; > } > else { > PyErr_SetString(PyExc_ValueError, msg); > return ((void *)0); > } > break; > case NPY_STRINGLTR: > type_num = NPY_STRING; > break; > case NPY_UNICODELTR: > type_num = NPY_UNICODE; > size <<= 2; > break; > case 'V': > type_num = NPY_VOID; > break; > default: > PyErr_SetString(PyExc_ValueError, msg); > return ((void *)0); > } > > descr = PyArray_DescrFromType(type_num); > if (descr == ((void *)0)) { > return ((void *)0); > } > swap = !((swapchar) != '>'); > if (descr->elsize == 0 || swap) { > > do { PyArray_Descr *_new_; _new_ = PyArray_DescrNew(descr); do { if ((descr) == ((void *)0)) ; else do { if ( --((PyObject*)(descr))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(descr)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(descr)))); } while (0); } while (0); descr = _new_; } while(0); > if (descr==((void *)0)) { > return ((void *)0); > } > if (descr->elsize == 0) { > descr->elsize = size; > } > if (swap) { > descr->byteorder = swapchar; > } > } > return descr; >} > >static char * >index2ptr(PyArrayObject *mp, npy_intp i) >{ > npy_intp dim0; > > if (mp->nd == 0) { > PyErr_SetString(PyExc_IndexError, "0-d arrays can't be indexed"); > return ((void *)0); > } > dim0 = mp->dimensions[0]; > if (i < 0) { > i += dim0; > } > if (i == 0 && dim0 > 0) { > return mp->data; > } > if (i > 0 && i < dim0) { > return mp->data+i*mp->strides[0]; > } > PyErr_SetString(PyExc_IndexError,"index out of bounds"); > return ((void *)0); >} > >static int >_zerofill(PyArrayObject *ret) >{ > if ((((ret->descr)->flags & (0x01)) == (0x01))) { > PyObject *zero = PyInt_FromLong(0); > PyArray_FillObjectArray(ret, zero); > do { if ( --((PyObject*)(zero))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(zero)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(zero)))); } while (0); > if (PyErr_Occurred()) { > do { if ( --((PyObject*)(ret))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(ret)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(ret)))); } while (0); > return -1; > } > } > else { > npy_intp n = ((((PyArrayObject *)(ret))->descr->elsize) * PyArray_MultiplyList((((PyArrayObject *)(ret))->dimensions), (((PyArrayObject *)(ret))->nd))); > memset(ret->data, 0, n); > } > return 0; >} > >static int >_IsAligned(PyArrayObject *ap) >{ > int i, alignment, aligned = 1; > npy_intp ptr; ># 497 "numpy/core/src/multiarray/common.c" > alignment = ap->descr->alignment; > if (alignment == 1) { > return 1; > } > ptr = (npy_intp) ap->data; > aligned = (ptr % alignment) == 0; > for (i = 0; i < ap->nd; i++) { > aligned &= ((ap->strides[i] % alignment) == 0); > } > return aligned != 0; >} > >static npy_bool >_IsWriteable(PyArrayObject *ap) >{ > PyObject *base=ap->base; > void *dummy; > Py_ssize_t n; > > > if ((base == ((void *)0)) || (ap->flags & 0x0004)) { > return 1; > } ># 530 "numpy/core/src/multiarray/common.c" > while(((((PyObject*)(base))->ob_type) == (&PyArray_Type) || PyType_IsSubtype((((PyObject*)(base))->ob_type), (&PyArray_Type)))) { > if (((((PyArrayObject *)(base))->flags & (0x0004)) == (0x0004))) { > return (npy_bool) (((((PyArrayObject *)(base))->flags & (0x0400)) == (0x0400))); > } > base = (((PyArrayObject *)(base))->base); > } > > > > > > > if (((((((PyObject*)(base))->ob_type))->tp_flags & ((1L<<27))) != 0)) { > return 1; > } > if (PyObject_AsWriteBuffer(base, &dummy, &n) < 0) { > return 0; > } > return 1; >} ># 9 "numpy/core/src/multiarray/multiarraymodule_onefile.c" 2 > ># 1 "build/src.linux-x86_64-2.7/numpy/core/src/multiarray/scalartypes.c" 1 ># 1 "numpy/core/src/multiarray/scalartypes.c.src" ># 1 "numpy/core/src/multiarray/scalartypes.c.src" > > > ># 1 "/home/work/.jumbo/include/python2.7/structmember.h" 1 ># 10 "/home/work/.jumbo/include/python2.7/structmember.h" ># 1 "/usr/lib/gcc/x86_64-redhat-linux/3.4.5/include/stddef.h" 1 3 4 ># 151 "/usr/lib/gcc/x86_64-redhat-linux/3.4.5/include/stddef.h" 3 4 >typedef long int ptrdiff_t; ># 11 "/home/work/.jumbo/include/python2.7/structmember.h" 2 ># 28 "/home/work/.jumbo/include/python2.7/structmember.h" >struct memberlist { > > char *name; > int type; > int offset; > int flags; >}; > >typedef struct PyMemberDef { > > char *name; > int type; > Py_ssize_t offset; > int flags; > char *doc; >} PyMemberDef; ># 88 "/home/work/.jumbo/include/python2.7/structmember.h" >PyObject * PyMember_Get(const char *, struct memberlist *, const char *); >int PyMember_Set(char *, struct memberlist *, const char *, PyObject *); > > >PyObject * PyMember_GetOne(const char *, struct PyMemberDef *); >int PyMember_SetOne(char *, struct PyMemberDef *, PyObject *); ># 5 "numpy/core/src/multiarray/scalartypes.c.src" 2 > > > > > ># 1 "numpy/core/include/numpy/arrayobject.h" 1 ># 11 "numpy/core/src/multiarray/scalartypes.c.src" 2 ># 1 "numpy/core/include/numpy/npy_math.h" 1 > > > > ># 1 "numpy/core/include/numpy/npy_common.h" 1 ># 6 "numpy/core/include/numpy/npy_math.h" 2 > > > > > > > >inline static float __npy_inff(void) >{ > const union { npy_uint32 __i; float __f;} __bint = {0x7f800000UL}; > return __bint.__f; >} > >inline static float __npy_nanf(void) >{ > const union { npy_uint32 __i; float __f;} __bint = {0x7fc00000UL}; > return __bint.__f; >} > >inline static float __npy_pzerof(void) >{ > const union { npy_uint32 __i; float __f;} __bint = {0x00000000UL}; > return __bint.__f; >} > >inline static float __npy_nzerof(void) >{ > const union { npy_uint32 __i; float __f;} __bint = {0x80000000UL}; > return __bint.__f; >} ># 100 "numpy/core/include/numpy/npy_math.h" >double npy_sin(double x); >double npy_cos(double x); >double npy_tan(double x); >double npy_sinh(double x); >double npy_cosh(double x); >double npy_tanh(double x); > >double npy_asin(double x); >double npy_acos(double x); >double npy_atan(double x); >double npy_aexp(double x); >double npy_alog(double x); >double npy_asqrt(double x); >double npy_afabs(double x); > >double npy_log(double x); >double npy_log10(double x); >double npy_exp(double x); >double npy_sqrt(double x); > >double npy_fabs(double x); >double npy_ceil(double x); >double npy_fmod(double x, double y); >double npy_floor(double x); > >double npy_expm1(double x); >double npy_log1p(double x); >double npy_hypot(double x, double y); >double npy_acosh(double x); >double npy_asinh(double xx); >double npy_atanh(double x); >double npy_rint(double x); >double npy_trunc(double x); >double npy_exp2(double x); >double npy_log2(double x); > >double npy_atan2(double x, double y); >double npy_pow(double x, double y); >double npy_modf(double x, double* y); > >double npy_copysign(double x, double y); >double npy_nextafter(double x, double y); >double npy_spacing(double x); ># 193 "numpy/core/include/numpy/npy_math.h" >float npy_sinf(float x); >float npy_cosf(float x); >float npy_tanf(float x); >float npy_sinhf(float x); >float npy_coshf(float x); >float npy_tanhf(float x); >float npy_fabsf(float x); >float npy_floorf(float x); >float npy_ceilf(float x); >float npy_rintf(float x); >float npy_truncf(float x); >float npy_sqrtf(float x); >float npy_log10f(float x); >float npy_logf(float x); >float npy_expf(float x); >float npy_expm1f(float x); >float npy_asinf(float x); >float npy_acosf(float x); >float npy_atanf(float x); >float npy_asinhf(float x); >float npy_acoshf(float x); >float npy_atanhf(float x); >float npy_log1pf(float x); >float npy_exp2f(float x); >float npy_log2f(float x); > >float npy_atan2f(float x, float y); >float npy_hypotf(float x, float y); >float npy_powf(float x, float y); >float npy_fmodf(float x, float y); > >float npy_modff(float x, float* y); > >float npy_copysignf(float x, float y); >float npy_nextafterf(float x, float y); >float npy_spacingf(float x); > > > > > >npy_longdouble npy_sinl(npy_longdouble x); >npy_longdouble npy_cosl(npy_longdouble x); >npy_longdouble npy_tanl(npy_longdouble x); >npy_longdouble npy_sinhl(npy_longdouble x); >npy_longdouble npy_coshl(npy_longdouble x); >npy_longdouble npy_tanhl(npy_longdouble x); >npy_longdouble npy_fabsl(npy_longdouble x); >npy_longdouble npy_floorl(npy_longdouble x); >npy_longdouble npy_ceill(npy_longdouble x); >npy_longdouble npy_rintl(npy_longdouble x); >npy_longdouble npy_truncl(npy_longdouble x); >npy_longdouble npy_sqrtl(npy_longdouble x); >npy_longdouble npy_log10l(npy_longdouble x); >npy_longdouble npy_logl(npy_longdouble x); >npy_longdouble npy_expl(npy_longdouble x); >npy_longdouble npy_expm1l(npy_longdouble x); >npy_longdouble npy_asinl(npy_longdouble x); >npy_longdouble npy_acosl(npy_longdouble x); >npy_longdouble npy_atanl(npy_longdouble x); >npy_longdouble npy_asinhl(npy_longdouble x); >npy_longdouble npy_acoshl(npy_longdouble x); >npy_longdouble npy_atanhl(npy_longdouble x); >npy_longdouble npy_log1pl(npy_longdouble x); >npy_longdouble npy_exp2l(npy_longdouble x); >npy_longdouble npy_log2l(npy_longdouble x); > >npy_longdouble npy_atan2l(npy_longdouble x, npy_longdouble y); >npy_longdouble npy_hypotl(npy_longdouble x, npy_longdouble y); >npy_longdouble npy_powl(npy_longdouble x, npy_longdouble y); >npy_longdouble npy_fmodl(npy_longdouble x, npy_longdouble y); > >npy_longdouble npy_modfl(npy_longdouble x, npy_longdouble* y); > >npy_longdouble npy_copysignl(npy_longdouble x, npy_longdouble y); >npy_longdouble npy_nextafterl(npy_longdouble x, npy_longdouble y); >npy_longdouble npy_spacingl(npy_longdouble x); > > > > >double npy_deg2rad(double x); >double npy_rad2deg(double x); >double npy_logaddexp(double x, double y); >double npy_logaddexp2(double x, double y); > >float npy_deg2radf(float x); >float npy_rad2degf(float x); >float npy_logaddexpf(float x, float y); >float npy_logaddexp2f(float x, float y); > >npy_longdouble npy_deg2radl(npy_longdouble x); >npy_longdouble npy_rad2degl(npy_longdouble x); >npy_longdouble npy_logaddexpl(npy_longdouble x, npy_longdouble y); >npy_longdouble npy_logaddexp2l(npy_longdouble x, npy_longdouble y); ># 317 "numpy/core/include/numpy/npy_math.h" >static inline npy_cdouble npy_cpack(double x, double y) >{ > union { npy_cdouble z; double a[2]; } z1;; z1.a[0] = (x); z1.a[1] = (y); return z1.z;; >} > >static inline npy_cfloat npy_cpackf(float x, float y) >{ > union { npy_cfloat z; float a[2]; } z1;; z1.a[0] = (x); z1.a[1] = (y); return z1.z;; >} > >static inline npy_clongdouble npy_cpackl(npy_longdouble x, npy_longdouble y) >{ > union { npy_clongdouble z; npy_longdouble a[2]; } z1;; z1.a[0] = (x); z1.a[1] = (y); return z1.z;; >} ># 349 "numpy/core/include/numpy/npy_math.h" >static inline double npy_creal(npy_cdouble z) >{ > union { npy_cdouble z; double a[2]; } __z_repr; __z_repr.z = z; return __z_repr.a[0];; >} > >static inline double npy_cimag(npy_cdouble z) >{ > union { npy_cdouble z; double a[2]; } __z_repr; __z_repr.z = z; return __z_repr.a[1];; >} > >static inline float npy_crealf(npy_cfloat z) >{ > union { npy_cfloat z; float a[2]; } __z_repr; __z_repr.z = z; return __z_repr.a[0];; >} > >static inline float npy_cimagf(npy_cfloat z) >{ > union { npy_cfloat z; float a[2]; } __z_repr; __z_repr.z = z; return __z_repr.a[1];; >} > >static inline npy_longdouble npy_creall(npy_clongdouble z) >{ > union { npy_clongdouble z; npy_longdouble a[2]; } __z_repr; __z_repr.z = z; return __z_repr.a[0];; >} > >static inline npy_longdouble npy_cimagl(npy_clongdouble z) >{ > union { npy_clongdouble z; npy_longdouble a[2]; } __z_repr; __z_repr.z = z; return __z_repr.a[1];; >} > > > > > >double npy_cabs(npy_cdouble z); >double npy_carg(npy_cdouble z); > >npy_cdouble npy_cexp(npy_cdouble z); >npy_cdouble npy_clog(npy_cdouble z); >npy_cdouble npy_cpow(npy_cdouble x, npy_cdouble y); > >npy_cdouble npy_csqrt(npy_cdouble z); > >npy_cdouble npy_ccos(npy_cdouble z); >npy_cdouble npy_csin(npy_cdouble z); > > > > >float npy_cabsf(npy_cfloat z); >float npy_cargf(npy_cfloat z); > >npy_cfloat npy_cexpf(npy_cfloat z); >npy_cfloat npy_clogf(npy_cfloat z); >npy_cfloat npy_cpowf(npy_cfloat x, npy_cfloat y); > >npy_cfloat npy_csqrtf(npy_cfloat z); > >npy_cfloat npy_ccosf(npy_cfloat z); >npy_cfloat npy_csinf(npy_cfloat z); > > > > >npy_longdouble npy_cabsl(npy_clongdouble z); >npy_longdouble npy_cargl(npy_clongdouble z); > >npy_clongdouble npy_cexpl(npy_clongdouble z); >npy_clongdouble npy_clogl(npy_clongdouble z); >npy_clongdouble npy_cpowl(npy_clongdouble x, npy_clongdouble y); > >npy_clongdouble npy_csqrtl(npy_clongdouble z); > >npy_clongdouble npy_ccosl(npy_clongdouble z); >npy_clongdouble npy_csinl(npy_clongdouble z); > > > > > > >void npy_set_floatstatus_divbyzero(void); >void npy_set_floatstatus_overflow(void); >void npy_set_floatstatus_underflow(void); >void npy_set_floatstatus_invalid(void); ># 12 "numpy/core/src/multiarray/scalartypes.c.src" 2 ># 1 "numpy/core/include/numpy/halffloat.h" 1 > > > > ># 1 "numpy/core/include/numpy/ndarraytypes.h" 1 ># 6 "numpy/core/include/numpy/halffloat.h" 2 ># 1 "numpy/core/include/numpy/npy_math.h" 1 ># 7 "numpy/core/include/numpy/halffloat.h" 2 ># 17 "numpy/core/include/numpy/halffloat.h" >float npy_half_to_float(npy_half h); >double npy_half_to_double(npy_half h); >npy_half npy_float_to_half(float f); >npy_half npy_double_to_half(double d); > >int npy_half_eq(npy_half h1, npy_half h2); >int npy_half_ne(npy_half h1, npy_half h2); >int npy_half_le(npy_half h1, npy_half h2); >int npy_half_lt(npy_half h1, npy_half h2); >int npy_half_ge(npy_half h1, npy_half h2); >int npy_half_gt(npy_half h1, npy_half h2); > >int npy_half_eq_nonan(npy_half h1, npy_half h2); >int npy_half_lt_nonan(npy_half h1, npy_half h2); >int npy_half_le_nonan(npy_half h1, npy_half h2); > >int npy_half_iszero(npy_half h); >int npy_half_isnan(npy_half h); >int npy_half_isinf(npy_half h); >int npy_half_isfinite(npy_half h); >int npy_half_signbit(npy_half h); >npy_half npy_half_copysign(npy_half x, npy_half y); >npy_half npy_half_spacing(npy_half h); >npy_half npy_half_nextafter(npy_half x, npy_half y); ># 59 "numpy/core/include/numpy/halffloat.h" >npy_uint16 npy_floatbits_to_halfbits(npy_uint32 f); >npy_uint16 npy_doublebits_to_halfbits(npy_uint64 d); >npy_uint32 npy_halfbits_to_floatbits(npy_uint16 h); >npy_uint64 npy_halfbits_to_doublebits(npy_uint16 h); ># 13 "numpy/core/src/multiarray/scalartypes.c.src" 2 ># 1 "numpy/core/include/numpy/arrayscalars.h" 1 ># 12 "numpy/core/include/numpy/arrayscalars.h" >typedef struct { > Py_ssize_t ob_refcnt; struct _typeobject *ob_type; > signed char obval; >} PyByteScalarObject; > > >typedef struct { > Py_ssize_t ob_refcnt; struct _typeobject *ob_type; > short obval; >} PyShortScalarObject; > > >typedef struct { > Py_ssize_t ob_refcnt; struct _typeobject *ob_type; > int obval; >} PyIntScalarObject; > > >typedef struct { > Py_ssize_t ob_refcnt; struct _typeobject *ob_type; > long obval; >} PyLongScalarObject; > > >typedef struct { > Py_ssize_t ob_refcnt; struct _typeobject *ob_type; > npy_longlong obval; >} PyLongLongScalarObject; > > >typedef struct { > Py_ssize_t ob_refcnt; struct _typeobject *ob_type; > unsigned char obval; >} PyUByteScalarObject; > > >typedef struct { > Py_ssize_t ob_refcnt; struct _typeobject *ob_type; > unsigned short obval; >} PyUShortScalarObject; > > >typedef struct { > Py_ssize_t ob_refcnt; struct _typeobject *ob_type; > unsigned int obval; >} PyUIntScalarObject; > > >typedef struct { > Py_ssize_t ob_refcnt; struct _typeobject *ob_type; > unsigned long obval; >} PyULongScalarObject; > > >typedef struct { > Py_ssize_t ob_refcnt; struct _typeobject *ob_type; > npy_ulonglong obval; >} PyULongLongScalarObject; > > >typedef struct { > Py_ssize_t ob_refcnt; struct _typeobject *ob_type; > npy_half obval; >} PyHalfScalarObject; > > >typedef struct { > Py_ssize_t ob_refcnt; struct _typeobject *ob_type; > float obval; >} PyFloatScalarObject; > > >typedef struct { > Py_ssize_t ob_refcnt; struct _typeobject *ob_type; > double obval; >} PyDoubleScalarObject; > > >typedef struct { > Py_ssize_t ob_refcnt; struct _typeobject *ob_type; > npy_longdouble obval; >} PyLongDoubleScalarObject; > > >typedef struct { > Py_ssize_t ob_refcnt; struct _typeobject *ob_type; > npy_cfloat obval; >} PyCFloatScalarObject; > > >typedef struct { > Py_ssize_t ob_refcnt; struct _typeobject *ob_type; > npy_cdouble obval; >} PyCDoubleScalarObject; > > >typedef struct { > Py_ssize_t ob_refcnt; struct _typeobject *ob_type; > npy_clongdouble obval; >} PyCLongDoubleScalarObject; > > >typedef struct { > Py_ssize_t ob_refcnt; struct _typeobject *ob_type; > PyObject * obval; >} PyObjectScalarObject; > >typedef struct { > Py_ssize_t ob_refcnt; struct _typeobject *ob_type; > npy_datetime obval; > PyArray_DatetimeMetaData obmeta; >} PyDatetimeScalarObject; > >typedef struct { > Py_ssize_t ob_refcnt; struct _typeobject *ob_type; > npy_timedelta obval; > PyArray_DatetimeMetaData obmeta; >} PyTimedeltaScalarObject; > > >typedef struct { > Py_ssize_t ob_refcnt; struct _typeobject *ob_type; > char obval; >} PyScalarObject; > > > > >typedef struct { > Py_ssize_t ob_refcnt; struct _typeobject *ob_type; Py_ssize_t ob_size; > char *obval; > PyArray_Descr *descr; > int flags; > PyObject *base; >} PyVoidScalarObject; ># 14 "numpy/core/src/multiarray/scalartypes.c.src" 2 > ># 1 "numpy/core/include/numpy/npy_3kcompat.h" 1 ># 16 "numpy/core/src/multiarray/scalartypes.c.src" 2 > ># 1 "numpy/core/src/private/npy_config.h" 1 ># 18 "numpy/core/src/multiarray/scalartypes.c.src" 2 ># 1 "numpy/core/src/multiarray/mapping.h" 1 > > > > > > >static PyMappingMethods array_as_mapping; > > >static PyObject * >array_big_item(PyArrayObject *self, npy_intp i); > >static Py_ssize_t >array_length(PyArrayObject *self); > >static PyObject * >array_item_nice(PyArrayObject *self, Py_ssize_t i); > >static PyObject * >array_subscript(PyArrayObject *self, PyObject *op); > >static int >array_ass_big_item(PyArrayObject *self, npy_intp i, PyObject *v); ># 40 "numpy/core/src/multiarray/mapping.h" >static PyObject * >add_new_axes_0d(PyArrayObject *, int); > >static int >count_new_axes_0d(PyObject *tuple); > > > > > >static void >PyArray_MapIterReset(PyArrayMapIterObject *mit); > >static void >PyArray_MapIterNext(PyArrayMapIterObject *mit); > >static void >PyArray_MapIterBind(PyArrayMapIterObject *, PyArrayObject *); > >static PyObject* >PyArray_MapIterNew(PyObject *, int, int); ># 19 "numpy/core/src/multiarray/scalartypes.c.src" 2 ># 1 "numpy/core/src/multiarray/ctors.h" 1 > > > >static PyObject * >PyArray_NewFromDescr(PyTypeObject *subtype, PyArray_Descr *descr, int nd, > npy_intp *dims, npy_intp *strides, void *data, > int flags, PyObject *obj); > >static PyObject *PyArray_New(PyTypeObject *, int nd, npy_intp *, > int, npy_intp *, void *, int, int, PyObject *); > >static PyObject * >PyArray_FromAny(PyObject *op, PyArray_Descr *newtype, int min_depth, > int max_depth, int flags, PyObject *context); > >static PyObject * >PyArray_CheckFromAny(PyObject *op, PyArray_Descr *descr, int min_depth, > int max_depth, int requires, PyObject *context); > >static PyObject * >PyArray_FromArray(PyArrayObject *arr, PyArray_Descr *newtype, int flags); > >static PyObject * >PyArray_FromStructInterface(PyObject *input); > >static PyObject * >PyArray_FromInterface(PyObject *input); > >static PyObject * >PyArray_FromArrayAttr(PyObject *op, PyArray_Descr *typecode, > PyObject *context); > >static PyObject * >PyArray_EnsureArray(PyObject *op); > >static PyObject * >PyArray_EnsureAnyArray(PyObject *op); > >static int >PyArray_MoveInto(PyArrayObject *dest, PyArrayObject *src); > >static int >PyArray_CopyAnyInto(PyArrayObject *dest, PyArrayObject *src); > >static PyObject * >PyArray_CheckAxis(PyArrayObject *arr, int *axis, int flags); > > >static int >PyArray_CopyAnyIntoOrdered(PyArrayObject *dst, PyArrayObject *src, > NPY_ORDER order); > > >static size_t >_array_fill_strides(npy_intp *strides, npy_intp *dims, int nd, size_t itemsize, > int inflag, int *objflags); > >static void >_unaligned_strided_byte_copy(char *dst, npy_intp outstrides, char *src, > npy_intp instrides, npy_intp N, int elsize); > >static void >_strided_byte_swap(void *p, npy_intp stride, npy_intp n, int size); > >static void >copy_and_swap(void *dst, void *src, int itemsize, npy_intp numitems, > npy_intp srcstrides, int swap); > >static void >byte_swap_vector(void *p, npy_intp n, int size); > >static int >PyArray_AssignFromSequence(PyArrayObject *self, PyObject *v); ># 20 "numpy/core/src/multiarray/scalartypes.c.src" 2 ># 1 "numpy/core/src/multiarray/usertypes.h" 1 ># 21 "numpy/core/src/multiarray/scalartypes.c.src" 2 ># 1 "numpy/core/src/multiarray/numpyos.h" 1 > > > >static char* >NumPyOS_ascii_formatd(char *buffer, size_t buf_size, > const char *format, > double val, int decimal); > >static char* >NumPyOS_ascii_formatf(char *buffer, size_t buf_size, > const char *format, > float val, int decimal); > >static char* >NumPyOS_ascii_formatl(char *buffer, size_t buf_size, > const char *format, > long double val, int decimal); > >static double >NumPyOS_ascii_strtod(const char *s, char** endptr); > >static int >NumPyOS_ascii_ftolf(FILE *fp, double *value); > >static int >NumPyOS_ascii_isspace(char c); ># 22 "numpy/core/src/multiarray/scalartypes.c.src" 2 ># 1 "numpy/core/src/multiarray/common.h" 1 ># 23 "numpy/core/src/multiarray/scalartypes.c.src" 2 ># 1 "numpy/core/src/multiarray/scalartypes.h" 1 ># 17 "numpy/core/src/multiarray/scalartypes.h" >static unsigned char >_npy_can_cast_safely_table[NPY_NTYPES][NPY_NTYPES]; >static signed char >_npy_scalar_kinds_table[NPY_NTYPES]; >static signed char >_npy_type_promotion_table[NPY_NTYPES][NPY_NTYPES]; >static signed char >_npy_smallest_type_of_kind_table[(NPY_OBJECT_SCALAR + 1)]; >static signed char >_npy_next_larger_type_table[NPY_NTYPES]; > > >static void >initialize_casting_tables(void); > >static void >initialize_numeric_types(void); > >static void >format_longdouble(char *buf, size_t buflen, npy_longdouble val, unsigned int prec); > > > > > >static void >gentype_struct_free(void *ptr, void *arg); > > >static int >_typenum_fromtypeobj(PyObject *type, int user); > >static void * >scalar_value(PyObject *scalar, PyArray_Descr *descr); ># 24 "numpy/core/src/multiarray/scalartypes.c.src" 2 > >static PyBoolScalarObject _PyArrayScalar_BoolValues[] = { > { 1, &PyBoolArrType_Type, 0}, > { 1, &PyBoolArrType_Type, 1}, >}; ># 41 "numpy/core/src/multiarray/scalartypes.c.src" >static PyTypeObject PyNumberArrType_Type = { > > > > 1, ((void *)0), > 0, > > "numpy.number", > sizeof(PyObject), > 0, > > 0, > 0, > 0, > 0, > > > > 0, > > 0, > 0, > 0, > 0, > 0, > 0, > 0, > 0, > 0, > 0, > 0, > 0, > 0, > 0, > 0, > 0, > 0, > 0, > 0, > 0, > 0, > 0, > 0, > 0, > 0, > 0, > 0, > 0, > 0, > 0, > 0, > 0, > 0, > 0, > 0, > 0, > 0, > > 0, > >}; ># 41 "numpy/core/src/multiarray/scalartypes.c.src" >static PyTypeObject PyIntegerArrType_Type = { > > > > 1, ((void *)0), > 0, > > "numpy.integer", > sizeof(PyObject), > 0, > > 0, > 0, > 0, > 0, > > > > 0, > > 0, > 0, > 0, > 0, > 0, > 0, > 0, > 0, > 0, > 0, > 0, > 0, > 0, > 0, > 0, > 0, > 0, > 0, > 0, > 0, > 0, > 0, > 0, > 0, > 0, > 0, > 0, > 0, > 0, > 0, > 0, > 0, > 0, > 0, > 0, > 0, > 0, > > 0, > >}; ># 41 "numpy/core/src/multiarray/scalartypes.c.src" >static PyTypeObject PySignedIntegerArrType_Type = { > > > > 1, ((void *)0), > 0, > > "numpy.signedinteger", > sizeof(PyObject), > 0, > > 0, > 0, > 0, > 0, > > > > 0, > > 0, > 0, > 0, > 0, > 0, > 0, > 0, > 0, > 0, > 0, > 0, > 0, > 0, > 0, > 0, > 0, > 0, > 0, > 0, > 0, > 0, > 0, > 0, > 0, > 0, > 0, > 0, > 0, > 0, > 0, > 0, > 0, > 0, > 0, > 0, > 0, > 0, > > 0, > >}; ># 41 "numpy/core/src/multiarray/scalartypes.c.src" >static PyTypeObject PyUnsignedIntegerArrType_Type = { > > > > 1, ((void *)0), > 0, > > "numpy.unsignedinteger", > sizeof(PyObject), > 0, > > 0, > 0, > 0, > 0, > > > > 0, > > 0, > 0, > 0, > 0, > 0, > 0, > 0, > 0, > 0, > 0, > 0, > 0, > 0, > 0, > 0, > 0, > 0, > 0, > 0, > 0, > 0, > 0, > 0, > 0, > 0, > 0, > 0, > 0, > 0, > 0, > 0, > 0, > 0, > 0, > 0, > 0, > 0, > > 0, > >}; ># 41 "numpy/core/src/multiarray/scalartypes.c.src" >static PyTypeObject PyInexactArrType_Type = { > > > > 1, ((void *)0), > 0, > > "numpy.inexact", > sizeof(PyObject), > 0, > > 0, > 0, > 0, > 0, > > > > 0, > > 0, > 0, > 0, > 0, > 0, > 0, > 0, > 0, > 0, > 0, > 0, > 0, > 0, > 0, > 0, > 0, > 0, > 0, > 0, > 0, > 0, > 0, > 0, > 0, > 0, > 0, > 0, > 0, > 0, > 0, > 0, > 0, > 0, > 0, > 0, > 0, > 0, > > 0, > >}; ># 41 "numpy/core/src/multiarray/scalartypes.c.src" >static PyTypeObject PyFloatingArrType_Type = { > > > > 1, ((void *)0), > 0, > > "numpy.floating", > sizeof(PyObject), > 0, > > 0, > 0, > 0, > 0, > > > > 0, > > 0, > 0, > 0, > 0, > 0, > 0, > 0, > 0, > 0, > 0, > 0, > 0, > 0, > 0, > 0, > 0, > 0, > 0, > 0, > 0, > 0, > 0, > 0, > 0, > 0, > 0, > 0, > 0, > 0, > 0, > 0, > 0, > 0, > 0, > 0, > 0, > 0, > > 0, > >}; ># 41 "numpy/core/src/multiarray/scalartypes.c.src" >static PyTypeObject PyComplexFloatingArrType_Type = { > > > > 1, ((void *)0), > 0, > > "numpy.complexfloating", > sizeof(PyObject), > 0, > > 0, > 0, > 0, > 0, > > > > 0, > > 0, > 0, > 0, > 0, > 0, > 0, > 0, > 0, > 0, > 0, > 0, > 0, > 0, > 0, > 0, > 0, > 0, > 0, > 0, > 0, > 0, > 0, > 0, > 0, > 0, > 0, > 0, > 0, > 0, > 0, > 0, > 0, > 0, > 0, > 0, > 0, > 0, > > 0, > >}; ># 41 "numpy/core/src/multiarray/scalartypes.c.src" >static PyTypeObject PyFlexibleArrType_Type = { > > > > 1, ((void *)0), > 0, > > "numpy.flexible", > sizeof(PyObject), > 0, > > 0, > 0, > 0, > 0, > > > > 0, > > 0, > 0, > 0, > 0, > 0, > 0, > 0, > 0, > 0, > 0, > 0, > 0, > 0, > 0, > 0, > 0, > 0, > 0, > 0, > 0, > 0, > 0, > 0, > 0, > 0, > 0, > 0, > 0, > 0, > 0, > 0, > 0, > 0, > 0, > 0, > 0, > 0, > > 0, > >}; ># 41 "numpy/core/src/multiarray/scalartypes.c.src" >static PyTypeObject PyCharacterArrType_Type = { > > > > 1, ((void *)0), > 0, > > "numpy.character", > sizeof(PyObject), > 0, > > 0, > 0, > 0, > 0, > > > > 0, > > 0, > 0, > 0, > 0, > 0, > 0, > 0, > 0, > 0, > 0, > 0, > 0, > 0, > 0, > 0, > 0, > 0, > 0, > 0, > 0, > 0, > 0, > 0, > 0, > 0, > 0, > 0, > 0, > 0, > 0, > 0, > 0, > 0, > 0, > 0, > 0, > 0, > > 0, > >}; ># 41 "numpy/core/src/multiarray/scalartypes.c.src" >static PyTypeObject PyTimeIntegerArrType_Type = { > > > > 1, ((void *)0), > 0, > > "numpy.timeinteger", > sizeof(PyObject), > 0, > > 0, > 0, > 0, > 0, > > > > 0, > > 0, > 0, > 0, > 0, > 0, > 0, > 0, > 0, > 0, > 0, > 0, > 0, > 0, > 0, > 0, > 0, > 0, > 0, > 0, > 0, > 0, > 0, > 0, > 0, > 0, > 0, > 0, > 0, > 0, > 0, > 0, > 0, > 0, > 0, > 0, > 0, > 0, > > 0, > >}; > > >static PyObject * >gentype_alloc(PyTypeObject *type, Py_ssize_t nitems) >{ > PyObject *obj; > const size_t size = (size_t) ( ( (type)->tp_basicsize + (nitems + 1)*(type)->tp_itemsize + (8 - 1) ) & ~(8 - 1) ); > > obj = (PyObject *)PyMem_Malloc(size); > memset(obj, 0, size); > if (type->tp_itemsize == 0) { > ( (((PyObject*)(obj))->ob_type) = (type), ( (((PyObject*)((PyObject *)(obj)))->ob_refcnt) = 1), (obj) ); > } > else { > (void) ( (((PyVarObject*)((PyVarObject *)obj))->ob_size) = (nitems), ( (((PyObject*)(((PyVarObject *)obj)))->ob_type) = ((type)), ( (((PyObject*)((PyObject *)(((PyVarObject *)obj))))->ob_refcnt) = 1), (((PyVarObject *)obj)) ) ); > } > return obj; >} > >static void >gentype_dealloc(PyObject *v) >{ > (((PyObject*)(v))->ob_type)->tp_free(v); >} > > >static PyObject * >gentype_power(PyObject *m1, PyObject *m2, PyObject *(__NPY_UNUSED_TAGGEDm3) __attribute__ ((__unused__))) >{ > PyObject *arr, *ret, *arg2; > char *msg="unsupported operand type(s) for ** or pow()"; > > if (!(((((PyObject*)(m1))->ob_type) == (&PyGenericArrType_Type) || PyType_IsSubtype((((PyObject*)(m1))->ob_type), (&PyGenericArrType_Type))))) { > if (((((PyObject*)(m1))->ob_type) == (&PyArray_Type) || PyType_IsSubtype((((PyObject*)(m1))->ob_type), (&PyArray_Type)))) { > ret = (((PyObject*)(m1))->ob_type)->tp_as_number->nb_power(m1,m2, (&_Py_NoneStruct)); > } > else { > if (!(((((PyObject*)(m2))->ob_type) == (&PyGenericArrType_Type) || PyType_IsSubtype((((PyObject*)(m2))->ob_type), (&PyGenericArrType_Type))))) { > PyErr_SetString(PyExc_TypeError, msg); > return ((void *)0); > } > arr = PyArray_FromScalar(m2, ((void *)0)); > if (arr == ((void *)0)) { > return ((void *)0); > } > ret = (((PyObject*)(arr))->ob_type)->tp_as_number->nb_power(m1, arr, (&_Py_NoneStruct)); > do { if ( --((PyObject*)(arr))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(arr)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(arr)))); } while (0); > } > return ret; > } > if (!(((((PyObject*)(m2))->ob_type) == (&PyGenericArrType_Type) || PyType_IsSubtype((((PyObject*)(m2))->ob_type), (&PyGenericArrType_Type))))) { > if (((((PyObject*)(m2))->ob_type) == (&PyArray_Type) || PyType_IsSubtype((((PyObject*)(m2))->ob_type), (&PyArray_Type)))) { > ret = (((PyObject*)(m2))->ob_type)->tp_as_number->nb_power(m1,m2, (&_Py_NoneStruct)); > } > else { > if (!(((((PyObject*)(m1))->ob_type) == (&PyGenericArrType_Type) || PyType_IsSubtype((((PyObject*)(m1))->ob_type), (&PyGenericArrType_Type))))) { > PyErr_SetString(PyExc_TypeError, msg); > return ((void *)0); > } > arr = PyArray_FromScalar(m1, ((void *)0)); > if (arr == ((void *)0)) { > return ((void *)0); > } > ret = (((PyObject*)(arr))->ob_type)->tp_as_number->nb_power(arr, m2, (&_Py_NoneStruct)); > do { if ( --((PyObject*)(arr))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(arr)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(arr)))); } while (0); > } > return ret; > } > arr = arg2 = ((void *)0); > arr = PyArray_FromScalar(m1, ((void *)0)); > arg2 = PyArray_FromScalar(m2, ((void *)0)); > if (arr == ((void *)0) || arg2 == ((void *)0)) { > do { if ((arr) == ((void *)0)) ; else do { if ( --((PyObject*)(arr))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(arr)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(arr)))); } while (0); } while (0); > do { if ((arg2) == ((void *)0)) ; else do { if ( --((PyObject*)(arg2))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(arg2)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(arg2)))); } while (0); } while (0); > return ((void *)0); > } > ret = (((PyObject*)(arr))->ob_type)->tp_as_number->nb_power(arr, arg2, (&_Py_NoneStruct)); > do { if ( --((PyObject*)(arr))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(arr)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(arr)))); } while (0); > do { if ( --((PyObject*)(arg2))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(arg2)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(arg2)))); } while (0); > return ret; >} > >static PyObject * >gentype_generic_method(PyObject *self, PyObject *args, PyObject *kwds, > char *str) >{ > PyObject *arr, *meth, *ret; > > arr = PyArray_FromScalar(self, ((void *)0)); > if (arr == ((void *)0)) { > return ((void *)0); > } > meth = PyObject_GetAttrString(arr, str); > if (meth == ((void *)0)) { > do { if ( --((PyObject*)(arr))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(arr)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(arr)))); } while (0); > return ((void *)0); > } > if (kwds == ((void *)0)) { > ret = PyObject_CallObject(meth, args); > } > else { > ret = PyObject_Call(meth, args, kwds); > } > do { if ( --((PyObject*)(meth))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(meth)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(meth)))); } while (0); > do { if ( --((PyObject*)(arr))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(arr)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(arr)))); } while (0); > if (ret && ((((PyObject*)(ret))->ob_type) == (&PyArray_Type) || PyType_IsSubtype((((PyObject*)(ret))->ob_type), (&PyArray_Type)))) { > return PyArray_Return((PyArrayObject *)ret); > } > else { > return ret; > } >} ># 220 "numpy/core/src/multiarray/scalartypes.c.src" >static PyObject * >gentype_add(PyObject *m1, PyObject *m2) >{ > return PyArray_Type.tp_as_number->nb_add(m1, m2); >} ># 220 "numpy/core/src/multiarray/scalartypes.c.src" >static PyObject * >gentype_subtract(PyObject *m1, PyObject *m2) >{ > return PyArray_Type.tp_as_number->nb_subtract(m1, m2); >} ># 220 "numpy/core/src/multiarray/scalartypes.c.src" >static PyObject * >gentype_remainder(PyObject *m1, PyObject *m2) >{ > return PyArray_Type.tp_as_number->nb_remainder(m1, m2); >} ># 220 "numpy/core/src/multiarray/scalartypes.c.src" >static PyObject * >gentype_divmod(PyObject *m1, PyObject *m2) >{ > return PyArray_Type.tp_as_number->nb_divmod(m1, m2); >} ># 220 "numpy/core/src/multiarray/scalartypes.c.src" >static PyObject * >gentype_lshift(PyObject *m1, PyObject *m2) >{ > return PyArray_Type.tp_as_number->nb_lshift(m1, m2); >} ># 220 "numpy/core/src/multiarray/scalartypes.c.src" >static PyObject * >gentype_rshift(PyObject *m1, PyObject *m2) >{ > return PyArray_Type.tp_as_number->nb_rshift(m1, m2); >} ># 220 "numpy/core/src/multiarray/scalartypes.c.src" >static PyObject * >gentype_and(PyObject *m1, PyObject *m2) >{ > return PyArray_Type.tp_as_number->nb_and(m1, m2); >} ># 220 "numpy/core/src/multiarray/scalartypes.c.src" >static PyObject * >gentype_xor(PyObject *m1, PyObject *m2) >{ > return PyArray_Type.tp_as_number->nb_xor(m1, m2); >} ># 220 "numpy/core/src/multiarray/scalartypes.c.src" >static PyObject * >gentype_or(PyObject *m1, PyObject *m2) >{ > return PyArray_Type.tp_as_number->nb_or(m1, m2); >} ># 220 "numpy/core/src/multiarray/scalartypes.c.src" >static PyObject * >gentype_floor_divide(PyObject *m1, PyObject *m2) >{ > return PyArray_Type.tp_as_number->nb_floor_divide(m1, m2); >} ># 220 "numpy/core/src/multiarray/scalartypes.c.src" >static PyObject * >gentype_true_divide(PyObject *m1, PyObject *m2) >{ > return PyArray_Type.tp_as_number->nb_true_divide(m1, m2); >} ># 233 "numpy/core/src/multiarray/scalartypes.c.src" >static PyObject * >gentype_divide(PyObject *m1, PyObject *m2) >{ > return PyArray_Type.tp_as_number->nb_divide(m1, m2); >} > > > >static PyObject * >gentype_multiply(PyObject *m1, PyObject *m2) >{ > PyObject *ret = ((void *)0); > long repeat; > > if (!(((((PyObject*)(m1))->ob_type) == (&PyGenericArrType_Type) || PyType_IsSubtype((((PyObject*)(m1))->ob_type), (&PyGenericArrType_Type)))) && > (((((PyObject*)(m1))->ob_type)->tp_as_number == ((void *)0)) || > ((((PyObject*)(m1))->ob_type)->tp_as_number->nb_multiply == ((void *)0)))) { > > repeat = PyInt_AsLong(m2); > if (repeat == -1 && PyErr_Occurred()) { > return ((void *)0); > } > ret = PySequence_Repeat(m1, (int) repeat); > } > else if (!(((((PyObject*)(m2))->ob_type) == (&PyGenericArrType_Type) || PyType_IsSubtype((((PyObject*)(m2))->ob_type), (&PyGenericArrType_Type)))) && > (((((PyObject*)(m2))->ob_type)->tp_as_number == ((void *)0)) || > ((((PyObject*)(m2))->ob_type)->tp_as_number->nb_multiply == ((void *)0)))) { > > repeat = PyInt_AsLong(m1); > if (repeat == -1 && PyErr_Occurred()) { > return ((void *)0); > } > ret = PySequence_Repeat(m2, (int) repeat); > } > if (ret == ((void *)0)) { > PyErr_Clear(); > ret = PyArray_Type.tp_as_number->nb_multiply(m1, m2); > } > return ret; >} ># 278 "numpy/core/src/multiarray/scalartypes.c.src" >static PyObject * >gentype_positive(PyObject *m1) >{ > PyObject *arr, *ret; > > arr = PyArray_FromScalar(m1, ((void *)0)); > if (arr == ((void *)0)) { > return ((void *)0); > } > ret = (((PyObject*)(arr))->ob_type)->tp_as_number->nb_positive(arr); > do { if ( --((PyObject*)(arr))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(arr)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(arr)))); } while (0); > return ret; >} ># 278 "numpy/core/src/multiarray/scalartypes.c.src" >static PyObject * >gentype_negative(PyObject *m1) >{ > PyObject *arr, *ret; > > arr = PyArray_FromScalar(m1, ((void *)0)); > if (arr == ((void *)0)) { > return ((void *)0); > } > ret = (((PyObject*)(arr))->ob_type)->tp_as_number->nb_negative(arr); > do { if ( --((PyObject*)(arr))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(arr)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(arr)))); } while (0); > return ret; >} ># 278 "numpy/core/src/multiarray/scalartypes.c.src" >static PyObject * >gentype_absolute(PyObject *m1) >{ > PyObject *arr, *ret; > > arr = PyArray_FromScalar(m1, ((void *)0)); > if (arr == ((void *)0)) { > return ((void *)0); > } > ret = (((PyObject*)(arr))->ob_type)->tp_as_number->nb_absolute(arr); > do { if ( --((PyObject*)(arr))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(arr)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(arr)))); } while (0); > return ret; >} ># 278 "numpy/core/src/multiarray/scalartypes.c.src" >static PyObject * >gentype_invert(PyObject *m1) >{ > PyObject *arr, *ret; > > arr = PyArray_FromScalar(m1, ((void *)0)); > if (arr == ((void *)0)) { > return ((void *)0); > } > ret = (((PyObject*)(arr))->ob_type)->tp_as_number->nb_invert(arr); > do { if ( --((PyObject*)(arr))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(arr)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(arr)))); } while (0); > return ret; >} ># 278 "numpy/core/src/multiarray/scalartypes.c.src" >static PyObject * >gentype_int(PyObject *m1) >{ > PyObject *arr, *ret; > > arr = PyArray_FromScalar(m1, ((void *)0)); > if (arr == ((void *)0)) { > return ((void *)0); > } > ret = (((PyObject*)(arr))->ob_type)->tp_as_number->nb_int(arr); > do { if ( --((PyObject*)(arr))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(arr)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(arr)))); } while (0); > return ret; >} ># 278 "numpy/core/src/multiarray/scalartypes.c.src" >static PyObject * >gentype_float(PyObject *m1) >{ > PyObject *arr, *ret; > > arr = PyArray_FromScalar(m1, ((void *)0)); > if (arr == ((void *)0)) { > return ((void *)0); > } > ret = (((PyObject*)(arr))->ob_type)->tp_as_number->nb_float(arr); > do { if ( --((PyObject*)(arr))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(arr)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(arr)))); } while (0); > return ret; >} ># 298 "numpy/core/src/multiarray/scalartypes.c.src" >static PyObject * >gentype_long(PyObject *m1) >{ > PyObject *arr, *ret; > > arr = PyArray_FromScalar(m1, ((void *)0)); > if (arr == ((void *)0)) { > return ((void *)0); > } > ret = (((PyObject*)(arr))->ob_type)->tp_as_number->nb_long(arr); > do { if ( --((PyObject*)(arr))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(arr)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(arr)))); } while (0); > return ret; >} ># 298 "numpy/core/src/multiarray/scalartypes.c.src" >static PyObject * >gentype_oct(PyObject *m1) >{ > PyObject *arr, *ret; > > arr = PyArray_FromScalar(m1, ((void *)0)); > if (arr == ((void *)0)) { > return ((void *)0); > } > ret = (((PyObject*)(arr))->ob_type)->tp_as_number->nb_oct(arr); > do { if ( --((PyObject*)(arr))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(arr)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(arr)))); } while (0); > return ret; >} ># 298 "numpy/core/src/multiarray/scalartypes.c.src" >static PyObject * >gentype_hex(PyObject *m1) >{ > PyObject *arr, *ret; > > arr = PyArray_FromScalar(m1, ((void *)0)); > if (arr == ((void *)0)) { > return ((void *)0); > } > ret = (((PyObject*)(arr))->ob_type)->tp_as_number->nb_hex(arr); > do { if ( --((PyObject*)(arr))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(arr)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(arr)))); } while (0); > return ret; >} > > > >static int >gentype_nonzero_number(PyObject *m1) >{ > PyObject *arr; > int ret; > > arr = PyArray_FromScalar(m1, ((void *)0)); > if (arr == ((void *)0)) { > return -1; > } > > > > ret = (((PyObject*)(arr))->ob_type)->tp_as_number->nb_nonzero(arr); > > do { if ( --((PyObject*)(arr))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(arr)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(arr)))); } while (0); > return ret; >} > >static PyObject * >gentype_str(PyObject *self) >{ > PyArrayObject *arr; > PyObject *ret; > > arr = (PyArrayObject *)PyArray_FromScalar(self, ((void *)0)); > if (arr == ((void *)0)) { > return ((void *)0); > } > ret = PyObject_Str((PyObject *)arr); > do { if ( --((PyObject*)(arr))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(arr)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(arr)))); } while (0); > return ret; >} > > >static PyObject * >gentype_repr(PyObject *self) >{ > PyArrayObject *arr; > PyObject *ret; > > arr = (PyArrayObject *)PyArray_FromScalar(self, ((void *)0)); > if (arr == ((void *)0)) { > return ((void *)0); > } > ret = PyObject_Str((PyObject *)arr); > do { if ( --((PyObject*)(arr))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(arr)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(arr)))); } while (0); > return ret; >} ># 374 "numpy/core/src/multiarray/scalartypes.c.src" > > > > >static void >format_float(char *buf, size_t buflen, float val, unsigned int prec) >{ > > char format[64], *res; > size_t i, cnt; > > PyOS_snprintf(format, sizeof(format), "%%.%i" "g", prec); > res = NumPyOS_ascii_formatf(buf, buflen, format, val, 0); > if (res == ((void *)0)) { > fprintf(stderr, "Error while formatting\n"); > return; > } > > > cnt = strlen(buf); > for (i = (val < 0) ? 1 : 0; i < cnt; ++i) { > if (!((*__ctype_b_loc ())[(int) ((((unsigned char)((buf[i]) & 0xff))))] & (unsigned short int) _ISdigit)) { > break; > } > } > if (i == cnt && buflen >= cnt + 3) { > strcpy(&buf[cnt],".0"); > } >} > >static void >format_cfloat(char *buf, size_t buflen, npy_cfloat val, unsigned int prec) >{ > > char format[64]; > char *res; > > > > > > if (val.real == 0.0 && (sizeof ((val.real)) == sizeof (float) ? __signbitf ((val.real)) : sizeof ((val.real)) == sizeof (double) ? __signbit ((val.real)) : __signbitl ((val.real))) == 0) { > > > > PyOS_snprintf(format, sizeof(format), "%%.%i" "g", prec); > res = NumPyOS_ascii_formatf(buf, buflen-1, format, val.imag, 0); > if (res == ((void *)0)) { > fprintf(stderr, "Error while formatting\n"); > return; > } > > if (!(sizeof ((val.imag)) == sizeof (float) ? __finitef ((val.imag)) : sizeof ((val.imag)) == sizeof (double) ? __finite ((val.imag)) : __finitel ((val.imag)))) { > __builtin_strncat (buf, "*", 1); > } > > __builtin_strncat (buf, "j", 1); > } > else { > char re[64], im[64]; > if ((sizeof ((val.real)) == sizeof (float) ? __finitef ((val.real)) : sizeof ((val.real)) == sizeof (double) ? __finite ((val.real)) : __finitel ((val.real)))) { > PyOS_snprintf(format, sizeof(format), "%%.%i" "g", prec); > res = NumPyOS_ascii_formatf(re, sizeof(re), format, val.real, 0); > if (res == ((void *)0)) { > fprintf(stderr, "Error while formatting\n"); > return; > } > } else { > if ((sizeof ((val.real)) == sizeof (float) ? __isnanf ((val.real)) : sizeof ((val.real)) == sizeof (double) ? __isnan ((val.real)) : __isnanl ((val.real)))) { > strcpy(re, "nan"); > } else if (val.real > 0){ > strcpy(re, "inf"); > } else { > strcpy(re, "-inf"); > } > } > > > if ((sizeof ((val.imag)) == sizeof (float) ? __finitef ((val.imag)) : sizeof ((val.imag)) == sizeof (double) ? __finite ((val.imag)) : __finitel ((val.imag)))) { > PyOS_snprintf(format, sizeof(format), "%%+.%i" "g", prec); > res = NumPyOS_ascii_formatf(im, sizeof(im), format, val.imag, 0); > if (res == ((void *)0)) { > fprintf(stderr, "Error while formatting\n"); > return; > } > } else { > if ((sizeof ((val.imag)) == sizeof (float) ? __isnanf ((val.imag)) : sizeof ((val.imag)) == sizeof (double) ? __isnan ((val.imag)) : __isnanl ((val.imag)))) { > strcpy(im, "+nan"); > } else if (val.imag > 0){ > strcpy(im, "+inf"); > } else { > strcpy(im, "-inf"); > } > > if (!(sizeof ((val.imag)) == sizeof (float) ? __finitef ((val.imag)) : sizeof ((val.imag)) == sizeof (double) ? __finite ((val.imag)) : __finitel ((val.imag)))) { > __builtin_strncat (im, "*", 1); > } > > } > PyOS_snprintf(buf, buflen, "(%s%sj)", re, im); > } >} ># 374 "numpy/core/src/multiarray/scalartypes.c.src" > > > > >static void >format_double(char *buf, size_t buflen, double val, unsigned int prec) >{ > > char format[64], *res; > size_t i, cnt; > > PyOS_snprintf(format, sizeof(format), "%%.%i" "g", prec); > res = NumPyOS_ascii_formatd(buf, buflen, format, val, 0); > if (res == ((void *)0)) { > fprintf(stderr, "Error while formatting\n"); > return; > } > > > cnt = strlen(buf); > for (i = (val < 0) ? 1 : 0; i < cnt; ++i) { > if (!((*__ctype_b_loc ())[(int) ((((unsigned char)((buf[i]) & 0xff))))] & (unsigned short int) _ISdigit)) { > break; > } > } > if (i == cnt && buflen >= cnt + 3) { > strcpy(&buf[cnt],".0"); > } >} > >static void >format_cdouble(char *buf, size_t buflen, npy_cdouble val, unsigned int prec) >{ > > char format[64]; > char *res; > > > > > > if (val.real == 0.0 && (sizeof ((val.real)) == sizeof (float) ? __signbitf ((val.real)) : sizeof ((val.real)) == sizeof (double) ? __signbit ((val.real)) : __signbitl ((val.real))) == 0) { > > > > PyOS_snprintf(format, sizeof(format), "%%.%i" "g", prec); > res = NumPyOS_ascii_formatd(buf, buflen-1, format, val.imag, 0); > if (res == ((void *)0)) { > fprintf(stderr, "Error while formatting\n"); > return; > } > > if (!(sizeof ((val.imag)) == sizeof (float) ? __finitef ((val.imag)) : sizeof ((val.imag)) == sizeof (double) ? __finite ((val.imag)) : __finitel ((val.imag)))) { > __builtin_strncat (buf, "*", 1); > } > > __builtin_strncat (buf, "j", 1); > } > else { > char re[64], im[64]; > if ((sizeof ((val.real)) == sizeof (float) ? __finitef ((val.real)) : sizeof ((val.real)) == sizeof (double) ? __finite ((val.real)) : __finitel ((val.real)))) { > PyOS_snprintf(format, sizeof(format), "%%.%i" "g", prec); > res = NumPyOS_ascii_formatd(re, sizeof(re), format, val.real, 0); > if (res == ((void *)0)) { > fprintf(stderr, "Error while formatting\n"); > return; > } > } else { > if ((sizeof ((val.real)) == sizeof (float) ? __isnanf ((val.real)) : sizeof ((val.real)) == sizeof (double) ? __isnan ((val.real)) : __isnanl ((val.real)))) { > strcpy(re, "nan"); > } else if (val.real > 0){ > strcpy(re, "inf"); > } else { > strcpy(re, "-inf"); > } > } > > > if ((sizeof ((val.imag)) == sizeof (float) ? __finitef ((val.imag)) : sizeof ((val.imag)) == sizeof (double) ? __finite ((val.imag)) : __finitel ((val.imag)))) { > PyOS_snprintf(format, sizeof(format), "%%+.%i" "g", prec); > res = NumPyOS_ascii_formatd(im, sizeof(im), format, val.imag, 0); > if (res == ((void *)0)) { > fprintf(stderr, "Error while formatting\n"); > return; > } > } else { > if ((sizeof ((val.imag)) == sizeof (float) ? __isnanf ((val.imag)) : sizeof ((val.imag)) == sizeof (double) ? __isnan ((val.imag)) : __isnanl ((val.imag)))) { > strcpy(im, "+nan"); > } else if (val.imag > 0){ > strcpy(im, "+inf"); > } else { > strcpy(im, "-inf"); > } > > if (!(sizeof ((val.imag)) == sizeof (float) ? __finitef ((val.imag)) : sizeof ((val.imag)) == sizeof (double) ? __finite ((val.imag)) : __finitel ((val.imag)))) { > __builtin_strncat (im, "*", 1); > } > > } > PyOS_snprintf(buf, buflen, "(%s%sj)", re, im); > } >} ># 374 "numpy/core/src/multiarray/scalartypes.c.src" > > > > >static void >format_longdouble(char *buf, size_t buflen, npy_longdouble val, unsigned int prec) >{ > > char format[64], *res; > size_t i, cnt; > > PyOS_snprintf(format, sizeof(format), "%%.%i" "Lg", prec); > res = NumPyOS_ascii_formatl(buf, buflen, format, val, 0); > if (res == ((void *)0)) { > fprintf(stderr, "Error while formatting\n"); > return; > } > > > cnt = strlen(buf); > for (i = (val < 0) ? 1 : 0; i < cnt; ++i) { > if (!((*__ctype_b_loc ())[(int) ((((unsigned char)((buf[i]) & 0xff))))] & (unsigned short int) _ISdigit)) { > break; > } > } > if (i == cnt && buflen >= cnt + 3) { > strcpy(&buf[cnt],".0"); > } >} > >static void >format_clongdouble(char *buf, size_t buflen, npy_clongdouble val, unsigned int prec) >{ > > char format[64]; > char *res; > > > > > > if (val.real == 0.0 && (sizeof ((val.real)) == sizeof (float) ? __signbitf ((val.real)) : sizeof ((val.real)) == sizeof (double) ? __signbit ((val.real)) : __signbitl ((val.real))) == 0) { > > > > PyOS_snprintf(format, sizeof(format), "%%.%i" "Lg", prec); > res = NumPyOS_ascii_formatl(buf, buflen-1, format, val.imag, 0); > if (res == ((void *)0)) { > fprintf(stderr, "Error while formatting\n"); > return; > } > > if (!(sizeof ((val.imag)) == sizeof (float) ? __finitef ((val.imag)) : sizeof ((val.imag)) == sizeof (double) ? __finite ((val.imag)) : __finitel ((val.imag)))) { > __builtin_strncat (buf, "*", 1); > } > > __builtin_strncat (buf, "j", 1); > } > else { > char re[64], im[64]; > if ((sizeof ((val.real)) == sizeof (float) ? __finitef ((val.real)) : sizeof ((val.real)) == sizeof (double) ? __finite ((val.real)) : __finitel ((val.real)))) { > PyOS_snprintf(format, sizeof(format), "%%.%i" "Lg", prec); > res = NumPyOS_ascii_formatl(re, sizeof(re), format, val.real, 0); > if (res == ((void *)0)) { > fprintf(stderr, "Error while formatting\n"); > return; > } > } else { > if ((sizeof ((val.real)) == sizeof (float) ? __isnanf ((val.real)) : sizeof ((val.real)) == sizeof (double) ? __isnan ((val.real)) : __isnanl ((val.real)))) { > strcpy(re, "nan"); > } else if (val.real > 0){ > strcpy(re, "inf"); > } else { > strcpy(re, "-inf"); > } > } > > > if ((sizeof ((val.imag)) == sizeof (float) ? __finitef ((val.imag)) : sizeof ((val.imag)) == sizeof (double) ? __finite ((val.imag)) : __finitel ((val.imag)))) { > PyOS_snprintf(format, sizeof(format), "%%+.%i" "Lg", prec); > res = NumPyOS_ascii_formatl(im, sizeof(im), format, val.imag, 0); > if (res == ((void *)0)) { > fprintf(stderr, "Error while formatting\n"); > return; > } > } else { > if ((sizeof ((val.imag)) == sizeof (float) ? __isnanf ((val.imag)) : sizeof ((val.imag)) == sizeof (double) ? __isnan ((val.imag)) : __isnanl ((val.imag)))) { > strcpy(im, "+nan"); > } else if (val.imag > 0){ > strcpy(im, "+inf"); > } else { > strcpy(im, "-inf"); > } > > if (!(sizeof ((val.imag)) == sizeof (float) ? __finitef ((val.imag)) : sizeof ((val.imag)) == sizeof (double) ? __finite ((val.imag)) : __finitel ((val.imag)))) { > __builtin_strncat (im, "*", 1); > } > > } > PyOS_snprintf(buf, buflen, "(%s%sj)", re, im); > } >} > > > > > > >static void >format_half(char *buf, size_t buflen, npy_half val, unsigned int prec) >{ > format_float(buf, buflen, npy_half_to_float(val), prec); >} ># 502 "numpy/core/src/multiarray/scalartypes.c.src" >static PyObject * >stringtype_repr(PyObject *self) >{ > const char *dptr, *ip; > int len; > PyObject *new; > PyObject *ret; > > ip = dptr = (((PyStringObject *)(self))->ob_sval); > len = (((PyVarObject*)(self))->ob_size); > dptr += len-1; > while(len > 0 && *dptr-- == 0) { > len--; > } > new = PyString_FromStringAndSize(ip, len); > if (new == ((void *)0)) { > return PyString_FromString(""); > } > ret = PyString_Type.tp_repr(new); > do { if ( --((PyObject*)(new))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(new)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(new)))); } while (0); > return ret; >} ># 502 "numpy/core/src/multiarray/scalartypes.c.src" >static PyObject * >stringtype_str(PyObject *self) >{ > const char *dptr, *ip; > int len; > PyObject *new; > PyObject *ret; > > ip = dptr = (((PyStringObject *)(self))->ob_sval); > len = (((PyVarObject*)(self))->ob_size); > dptr += len-1; > while(len > 0 && *dptr-- == 0) { > len--; > } > new = PyString_FromStringAndSize(ip, len); > if (new == ((void *)0)) { > return PyString_FromString(""); > } > ret = PyString_Type.tp_str(new); > do { if ( --((PyObject*)(new))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(new)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(new)))); } while (0); > return ret; >} ># 502 "numpy/core/src/multiarray/scalartypes.c.src" >static PyObject * >unicodetype_repr(PyObject *self) >{ > const Py_UNICODE *dptr, *ip; > int len; > PyObject *new; > PyObject *ret; > > ip = dptr = (((PyUnicodeObject *)(self))->str); > len = (((PyUnicodeObject *)(self))->length); > dptr += len-1; > while(len > 0 && *dptr-- == 0) { > len--; > } > new = PyUnicodeUCS4_FromUnicode(ip, len); > if (new == ((void *)0)) { > return PyString_FromString(""); > } > ret = PyUnicode_Type.tp_repr(new); > do { if ( --((PyObject*)(new))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(new)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(new)))); } while (0); > return ret; >} ># 502 "numpy/core/src/multiarray/scalartypes.c.src" >static PyObject * >unicodetype_str(PyObject *self) >{ > const Py_UNICODE *dptr, *ip; > int len; > PyObject *new; > PyObject *ret; > > ip = dptr = (((PyUnicodeObject *)(self))->str); > len = (((PyUnicodeObject *)(self))->length); > dptr += len-1; > while(len > 0 && *dptr-- == 0) { > len--; > } > new = PyUnicodeUCS4_FromUnicode(ip, len); > if (new == ((void *)0)) { > return PyString_FromString(""); > } > ret = PyUnicode_Type.tp_str(new); > do { if ( --((PyObject*)(new))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(new)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(new)))); } while (0); > return ret; >} ># 553 "numpy/core/src/multiarray/scalartypes.c.src" ># 557 "numpy/core/src/multiarray/scalartypes.c.src" > > > >static PyObject * >halftype_str(PyObject *self) >{ > char buf[100]; > npy_half val = ((PyHalfScalarObject *)self)->obval; > > format_half(buf, sizeof(buf), val, 5); > return PyString_FromString(buf); >} ># 557 "numpy/core/src/multiarray/scalartypes.c.src" > > > >static PyObject * >halftype_repr(PyObject *self) >{ > char buf[100]; > npy_half val = ((PyHalfScalarObject *)self)->obval; > > format_half(buf, sizeof(buf), val, 5); > return PyString_FromString(buf); >} ># 553 "numpy/core/src/multiarray/scalartypes.c.src" ># 557 "numpy/core/src/multiarray/scalartypes.c.src" > > > >static PyObject * >floattype_str(PyObject *self) >{ > char buf[100]; > npy_float val = ((PyFloatScalarObject *)self)->obval; > > format_float(buf, sizeof(buf), val, 6); > return PyString_FromString(buf); >} > > >static PyObject * >cfloattype_str(PyObject *self) >{ > char buf[202]; > npy_cfloat val = ((PyCFloatScalarObject *)self)->obval; > > format_cfloat(buf, sizeof(buf), val, 6); > return PyString_FromString(buf); >} ># 557 "numpy/core/src/multiarray/scalartypes.c.src" > > > >static PyObject * >floattype_repr(PyObject *self) >{ > char buf[100]; > npy_float val = ((PyFloatScalarObject *)self)->obval; > > format_float(buf, sizeof(buf), val, 8); > return PyString_FromString(buf); >} > > >static PyObject * >cfloattype_repr(PyObject *self) >{ > char buf[202]; > npy_cfloat val = ((PyCFloatScalarObject *)self)->obval; > > format_cfloat(buf, sizeof(buf), val, 8); > return PyString_FromString(buf); >} ># 553 "numpy/core/src/multiarray/scalartypes.c.src" ># 557 "numpy/core/src/multiarray/scalartypes.c.src" > > > >static PyObject * >doubletype_str(PyObject *self) >{ > char buf[100]; > npy_double val = ((PyDoubleScalarObject *)self)->obval; > > format_double(buf, sizeof(buf), val, 12); > return PyString_FromString(buf); >} > > >static PyObject * >cdoubletype_str(PyObject *self) >{ > char buf[202]; > npy_cdouble val = ((PyCDoubleScalarObject *)self)->obval; > > format_cdouble(buf, sizeof(buf), val, 12); > return PyString_FromString(buf); >} ># 557 "numpy/core/src/multiarray/scalartypes.c.src" > > > >static PyObject * >doubletype_repr(PyObject *self) >{ > char buf[100]; > npy_double val = ((PyDoubleScalarObject *)self)->obval; > > format_double(buf, sizeof(buf), val, 17); > return PyString_FromString(buf); >} > > >static PyObject * >cdoubletype_repr(PyObject *self) >{ > char buf[202]; > npy_cdouble val = ((PyCDoubleScalarObject *)self)->obval; > > format_cdouble(buf, sizeof(buf), val, 17); > return PyString_FromString(buf); >} ># 553 "numpy/core/src/multiarray/scalartypes.c.src" ># 557 "numpy/core/src/multiarray/scalartypes.c.src" > > > >static PyObject * >longdoubletype_str(PyObject *self) >{ > char buf[100]; > npy_longdouble val = ((PyLongDoubleScalarObject *)self)->obval; > > format_longdouble(buf, sizeof(buf), val, 12); > return PyString_FromString(buf); >} > > >static PyObject * >clongdoubletype_str(PyObject *self) >{ > char buf[202]; > npy_clongdouble val = ((PyCLongDoubleScalarObject *)self)->obval; > > format_clongdouble(buf, sizeof(buf), val, 12); > return PyString_FromString(buf); >} ># 557 "numpy/core/src/multiarray/scalartypes.c.src" > > > >static PyObject * >longdoubletype_repr(PyObject *self) >{ > char buf[100]; > npy_longdouble val = ((PyLongDoubleScalarObject *)self)->obval; > > format_longdouble(buf, sizeof(buf), val, 20); > return PyString_FromString(buf); >} > > >static PyObject * >clongdoubletype_repr(PyObject *self) >{ > char buf[202]; > npy_clongdouble val = ((PyCLongDoubleScalarObject *)self)->obval; > > format_clongdouble(buf, sizeof(buf), val, 20); > return PyString_FromString(buf); >} ># 596 "numpy/core/src/multiarray/scalartypes.c.src" > >static int >halftype_print(PyObject *v, FILE *fp, int flags) >{ > char buf[100]; > npy_half val = ((PyHalfScalarObject *)v)->obval; > > format_half(buf, sizeof(buf), val, > (flags & 1) ? 5 : 5); > { PyThreadState *_save; _save = PyEval_SaveThread(); > fputs(buf, fp); > PyEval_RestoreThread(_save); } > return 0; >} ># 596 "numpy/core/src/multiarray/scalartypes.c.src" > >static int >floattype_print(PyObject *v, FILE *fp, int flags) >{ > char buf[100]; > npy_float val = ((PyFloatScalarObject *)v)->obval; > > format_float(buf, sizeof(buf), val, > (flags & 1) ? 6 : 8); > { PyThreadState *_save; _save = PyEval_SaveThread(); > fputs(buf, fp); > PyEval_RestoreThread(_save); } > return 0; >} > > >static int >cfloattype_print(PyObject *v, FILE *fp, int flags) >{ > > char buf[202]; > npy_cfloat val = ((PyCFloatScalarObject *)v)->obval; > > format_cfloat(buf, sizeof(buf), val, > (flags & 1) ? 6 : 8); > { PyThreadState *_save; _save = PyEval_SaveThread(); > fputs(buf, fp); > PyEval_RestoreThread(_save); } > return 0; >} ># 596 "numpy/core/src/multiarray/scalartypes.c.src" > >static int >doubletype_print(PyObject *v, FILE *fp, int flags) >{ > char buf[100]; > npy_double val = ((PyDoubleScalarObject *)v)->obval; > > format_double(buf, sizeof(buf), val, > (flags & 1) ? 12 : 17); > { PyThreadState *_save; _save = PyEval_SaveThread(); > fputs(buf, fp); > PyEval_RestoreThread(_save); } > return 0; >} > > >static int >cdoubletype_print(PyObject *v, FILE *fp, int flags) >{ > > char buf[202]; > npy_cdouble val = ((PyCDoubleScalarObject *)v)->obval; > > format_cdouble(buf, sizeof(buf), val, > (flags & 1) ? 12 : 17); > { PyThreadState *_save; _save = PyEval_SaveThread(); > fputs(buf, fp); > PyEval_RestoreThread(_save); } > return 0; >} ># 596 "numpy/core/src/multiarray/scalartypes.c.src" > >static int >longdoubletype_print(PyObject *v, FILE *fp, int flags) >{ > char buf[100]; > npy_longdouble val = ((PyLongDoubleScalarObject *)v)->obval; > > format_longdouble(buf, sizeof(buf), val, > (flags & 1) ? 12 : 20); > { PyThreadState *_save; _save = PyEval_SaveThread(); > fputs(buf, fp); > PyEval_RestoreThread(_save); } > return 0; >} > > >static int >clongdoubletype_print(PyObject *v, FILE *fp, int flags) >{ > > char buf[202]; > npy_clongdouble val = ((PyCLongDoubleScalarObject *)v)->obval; > > format_clongdouble(buf, sizeof(buf), val, > (flags & 1) ? 12 : 20); > { PyThreadState *_save; _save = PyEval_SaveThread(); > fputs(buf, fp); > PyEval_RestoreThread(_save); } > return 0; >} ># 644 "numpy/core/src/multiarray/scalartypes.c.src" >static PyObject * >longdoubletype_int(PyObject *self) >{ > double dval; > PyObject *obj, *ret; > > dval = (double)(((PyLongDoubleScalarObject *)self)->obval); > obj = PyLong_FromDouble(dval); > ret = (((PyObject*)(obj))->ob_type)->tp_as_number->nb_int(obj); > do { if ( --((PyObject*)(obj))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(obj)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(obj)))); } while (0); > return ret; >} ># 644 "numpy/core/src/multiarray/scalartypes.c.src" >static PyObject * >longdoubletype_float(PyObject *self) >{ > double dval; > PyObject *obj, *ret; > > dval = (double)(((PyLongDoubleScalarObject *)self)->obval); > obj = PyFloat_FromDouble(dval); > ret = (((PyObject*)(obj))->ob_type)->tp_as_number->nb_float(obj); > do { if ( --((PyObject*)(obj))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(obj)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(obj)))); } while (0); > return ret; >} ># 644 "numpy/core/src/multiarray/scalartypes.c.src" >static PyObject * >clongdoubletype_int(PyObject *self) >{ > double dval; > PyObject *obj, *ret; > > dval = (double)(((PyCLongDoubleScalarObject *)self)->obval).real; > obj = PyLong_FromDouble(dval); > ret = (((PyObject*)(obj))->ob_type)->tp_as_number->nb_int(obj); > do { if ( --((PyObject*)(obj))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(obj)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(obj)))); } while (0); > return ret; >} ># 644 "numpy/core/src/multiarray/scalartypes.c.src" >static PyObject * >clongdoubletype_float(PyObject *self) >{ > double dval; > PyObject *obj, *ret; > > dval = (double)(((PyCLongDoubleScalarObject *)self)->obval).real; > obj = PyFloat_FromDouble(dval); > ret = (((PyObject*)(obj))->ob_type)->tp_as_number->nb_float(obj); > do { if ( --((PyObject*)(obj))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(obj)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(obj)))); } while (0); > return ret; >} ># 668 "numpy/core/src/multiarray/scalartypes.c.src" >static PyObject * >longdoubletype_long(PyObject *self) >{ > double dval; > PyObject *obj, *ret; > > dval = (double)(((PyLongDoubleScalarObject *)self)->obval); > obj = PyLong_FromDouble(dval); > ret = (((PyObject*)(obj))->ob_type)->tp_as_number->nb_long(obj); > do { if ( --((PyObject*)(obj))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(obj)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(obj)))); } while (0); > return ret; >} ># 668 "numpy/core/src/multiarray/scalartypes.c.src" >static PyObject * >longdoubletype_hex(PyObject *self) >{ > double dval; > PyObject *obj, *ret; > > dval = (double)(((PyLongDoubleScalarObject *)self)->obval); > obj = PyLong_FromDouble(dval); > ret = (((PyObject*)(obj))->ob_type)->tp_as_number->nb_hex(obj); > do { if ( --((PyObject*)(obj))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(obj)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(obj)))); } while (0); > return ret; >} ># 668 "numpy/core/src/multiarray/scalartypes.c.src" >static PyObject * >longdoubletype_oct(PyObject *self) >{ > double dval; > PyObject *obj, *ret; > > dval = (double)(((PyLongDoubleScalarObject *)self)->obval); > obj = PyLong_FromDouble(dval); > ret = (((PyObject*)(obj))->ob_type)->tp_as_number->nb_oct(obj); > do { if ( --((PyObject*)(obj))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(obj)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(obj)))); } while (0); > return ret; >} ># 668 "numpy/core/src/multiarray/scalartypes.c.src" >static PyObject * >clongdoubletype_long(PyObject *self) >{ > double dval; > PyObject *obj, *ret; > > dval = (double)(((PyCLongDoubleScalarObject *)self)->obval).real; > obj = PyLong_FromDouble(dval); > ret = (((PyObject*)(obj))->ob_type)->tp_as_number->nb_long(obj); > do { if ( --((PyObject*)(obj))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(obj)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(obj)))); } while (0); > return ret; >} ># 668 "numpy/core/src/multiarray/scalartypes.c.src" >static PyObject * >clongdoubletype_hex(PyObject *self) >{ > double dval; > PyObject *obj, *ret; > > dval = (double)(((PyCLongDoubleScalarObject *)self)->obval).real; > obj = PyLong_FromDouble(dval); > ret = (((PyObject*)(obj))->ob_type)->tp_as_number->nb_hex(obj); > do { if ( --((PyObject*)(obj))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(obj)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(obj)))); } while (0); > return ret; >} ># 668 "numpy/core/src/multiarray/scalartypes.c.src" >static PyObject * >clongdoubletype_oct(PyObject *self) >{ > double dval; > PyObject *obj, *ret; > > dval = (double)(((PyCLongDoubleScalarObject *)self)->obval).real; > obj = PyLong_FromDouble(dval); > ret = (((PyObject*)(obj))->ob_type)->tp_as_number->nb_oct(obj); > do { if ( --((PyObject*)(obj))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(obj)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(obj)))); } while (0); > return ret; >} > > > > >static PyNumberMethods gentype_as_number = { > (binaryfunc)gentype_add, > (binaryfunc)gentype_subtract, > (binaryfunc)gentype_multiply, > > > (binaryfunc)gentype_divide, > > (binaryfunc)gentype_remainder, > (binaryfunc)gentype_divmod, > (ternaryfunc)gentype_power, > (unaryfunc)gentype_negative, > (unaryfunc)gentype_positive, > (unaryfunc)gentype_absolute, > (inquiry)gentype_nonzero_number, > (unaryfunc)gentype_invert, > (binaryfunc)gentype_lshift, > (binaryfunc)gentype_rshift, > (binaryfunc)gentype_and, > (binaryfunc)gentype_xor, > (binaryfunc)gentype_or, > > > 0, > > (unaryfunc)gentype_int, > > > > (unaryfunc)gentype_long, > > (unaryfunc)gentype_float, > > > (unaryfunc)gentype_oct, > (unaryfunc)gentype_hex, > > 0, > 0, > 0, > > > 0, > > 0, > 0, > 0, > 0, > 0, > 0, > 0, > (binaryfunc)gentype_floor_divide, > (binaryfunc)gentype_true_divide, > 0, > 0, > > (unaryfunc)((void *)0), > >}; > > >static PyObject * >gentype_richcompare(PyObject *self, PyObject *other, int cmp_op) >{ > PyObject *arr, *ret; > > arr = PyArray_FromScalar(self, ((void *)0)); > if (arr == ((void *)0)) { > return ((void *)0); > } > ret = (((PyObject*)(arr))->ob_type)->tp_richcompare(arr, other, cmp_op); > do { if ( --((PyObject*)(arr))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(arr)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(arr)))); } while (0); > return ret; >} > >static PyObject * >gentype_ndim_get(PyObject *(__NPY_UNUSED_TAGGEDself) __attribute__ ((__unused__))) >{ > return PyInt_FromLong(0); >} > >static PyObject * >gentype_flags_get(PyObject *(__NPY_UNUSED_TAGGEDself) __attribute__ ((__unused__))) >{ > return PyArray_NewFlagsObject(((void *)0)); >} > >static PyObject * >voidtype_flags_get(PyVoidScalarObject *self) >{ > PyObject *flagobj; > flagobj = PyArrayFlags_Type.tp_alloc(&PyArrayFlags_Type, 0); > if (flagobj == ((void *)0)) { > return ((void *)0); > } > ((PyArrayFlagsObject *)flagobj)->arr = ((void *)0); > ((PyArrayFlagsObject *)flagobj)->flags = self->flags; > return flagobj; >} > >static PyObject * >voidtype_dtypedescr_get(PyVoidScalarObject *self) >{ > ( ((PyObject*)(self->descr))->ob_refcnt++); > return (PyObject *)self->descr; >} > > >static PyObject * >gentype_data_get(PyObject *self) >{ > > > > return PyBuffer_FromObject(self, 0, (-1)); > >} > > >static PyObject * >gentype_itemsize_get(PyObject *self) >{ > PyArray_Descr *typecode; > PyObject *ret; > int elsize; > > typecode = PyArray_DescrFromScalar(self); > elsize = typecode->elsize; > > > > > > ret = PyInt_FromLong((long) elsize); > do { if ( --((PyObject*)(typecode))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(typecode)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(typecode)))); } while (0); > return ret; >} > >static PyObject * >gentype_size_get(PyObject *(__NPY_UNUSED_TAGGEDself) __attribute__ ((__unused__))) >{ > return PyInt_FromLong(1); >} ># 843 "numpy/core/src/multiarray/scalartypes.c.src" >static void >gentype_struct_free(void *ptr, void *arg) >{ > PyArrayInterface *arrif = (PyArrayInterface *)ptr; > do { if ( --((PyObject*)((PyObject *)arg))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)((PyObject *)arg)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)((PyObject *)arg)))); } while (0); > do { if ((arrif->descr) == ((void *)0)) ; else do { if ( --((PyObject*)(arrif->descr))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(arrif->descr)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(arrif->descr)))); } while (0); } while (0); > PyMem_Free(arrif->shape); > PyMem_Free(arrif); >} > > >static PyObject * >gentype_struct_get(PyObject *self) >{ > PyArrayObject *arr; > PyArrayInterface *inter; > PyObject *ret; > > arr = (PyArrayObject *)PyArray_FromScalar(self, ((void *)0)); > inter = (PyArrayInterface *)PyMem_Malloc(sizeof(PyArrayInterface)); > inter->two = 2; > inter->nd = 0; > inter->flags = arr->flags; > inter->flags &= ~(0x1000 | 0x0004); > inter->flags |= 0x0200; > inter->typekind = arr->descr->kind; > inter->itemsize = arr->descr->elsize; > inter->strides = ((void *)0); > inter->shape = ((void *)0); > inter->data = arr->data; > inter->descr = ((void *)0); > > ret = NpyCapsule_FromVoidPtrAndDesc(inter, arr, gentype_struct_free); > return ret; >} > >static PyObject * >gentype_priority_get(PyObject *(__NPY_UNUSED_TAGGEDself) __attribute__ ((__unused__))) >{ > return PyFloat_FromDouble(-1000000.0); >} > >static PyObject * >gentype_shape_get(PyObject *(__NPY_UNUSED_TAGGEDself) __attribute__ ((__unused__))) >{ > return PyTuple_New(0); >} > > >static PyObject * >gentype_interface_get(PyObject *self) >{ > PyArrayObject *arr; > PyObject *inter; > > arr = (PyArrayObject *)PyArray_FromScalar(self, ((void *)0)); > if (arr == ((void *)0)) { > return ((void *)0); > } > inter = PyObject_GetAttrString((PyObject *)arr, "__array_interface__"); > if (inter != ((void *)0)) { > PyDict_SetItemString(inter, "__ref", (PyObject *)arr); > } > do { if ( --((PyObject*)(arr))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(arr)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(arr)))); } while (0); > return inter; >} > > > >static PyObject * >gentype_typedescr_get(PyObject *self) >{ > return (PyObject *)PyArray_DescrFromScalar(self); >} > > >static PyObject * >gentype_base_get(PyObject *(__NPY_UNUSED_TAGGEDself) __attribute__ ((__unused__))) >{ > ( ((PyObject*)((&_Py_NoneStruct)))->ob_refcnt++); > return (&_Py_NoneStruct); >} > > >static PyArray_Descr * >_realdescr_fromcomplexscalar(PyObject *self, int *typenum) >{ > if ((((((PyObject*)(self))->ob_type) == (&PyCDoubleArrType_Type) || PyType_IsSubtype((((PyObject*)(self))->ob_type), (&PyCDoubleArrType_Type))))) { > *typenum = NPY_CDOUBLE; > return PyArray_DescrFromType(NPY_DOUBLE); > } > if ((((((PyObject*)(self))->ob_type) == (&PyCFloatArrType_Type) || PyType_IsSubtype((((PyObject*)(self))->ob_type), (&PyCFloatArrType_Type))))) { > *typenum = NPY_CFLOAT; > return PyArray_DescrFromType(NPY_FLOAT); > } > if ((((((PyObject*)(self))->ob_type) == (&PyCLongDoubleArrType_Type) || PyType_IsSubtype((((PyObject*)(self))->ob_type), (&PyCLongDoubleArrType_Type))))) { > *typenum = NPY_CLONGDOUBLE; > return PyArray_DescrFromType(NPY_LONGDOUBLE); > } > return ((void *)0); >} > >static PyObject * >gentype_real_get(PyObject *self) >{ > PyArray_Descr *typecode; > PyObject *ret; > int typenum; > > if ((((((PyObject*)(self))->ob_type) == (&PyComplexFloatingArrType_Type) || PyType_IsSubtype((((PyObject*)(self))->ob_type), (&PyComplexFloatingArrType_Type))))) { > void *ptr; > typecode = _realdescr_fromcomplexscalar(self, &typenum); > ptr = scalar_value(self, ((void *)0)); > ret = PyArray_Scalar(ptr, typecode, ((void *)0)); > do { if ( --((PyObject*)(typecode))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(typecode)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(typecode)))); } while (0); > return ret; > } > else if ((((((PyObject*)(self))->ob_type) == (&PyObjectArrType_Type) || PyType_IsSubtype((((PyObject*)(self))->ob_type), (&PyObjectArrType_Type))))) { > PyObject *obj = ((PyObjectScalarObject *)self)->obval; > ret = PyObject_GetAttrString(obj, "real"); > if (ret != ((void *)0)) { > return ret; > } > PyErr_Clear(); > } > ( ((PyObject*)(self))->ob_refcnt++); > return (PyObject *)self; >} > >static PyObject * >gentype_imag_get(PyObject *self) >{ > PyArray_Descr *typecode=((void *)0); > PyObject *ret; > int typenum; > > if ((((((PyObject*)(self))->ob_type) == (&PyComplexFloatingArrType_Type) || PyType_IsSubtype((((PyObject*)(self))->ob_type), (&PyComplexFloatingArrType_Type))))) { > char *ptr; > typecode = _realdescr_fromcomplexscalar(self, &typenum); > ptr = (char *)scalar_value(self, ((void *)0)); > ret = PyArray_Scalar(ptr + typecode->elsize, typecode, ((void *)0)); > } > else if ((((((PyObject*)(self))->ob_type) == (&PyObjectArrType_Type) || PyType_IsSubtype((((PyObject*)(self))->ob_type), (&PyObjectArrType_Type))))) { > PyObject *obj = ((PyObjectScalarObject *)self)->obval; > PyArray_Descr *newtype; > ret = PyObject_GetAttrString(obj, "imag"); > if (ret == ((void *)0)) { > PyErr_Clear(); > obj = PyInt_FromLong(0); > newtype = PyArray_DescrFromType(NPY_OBJECT); > ret = PyArray_Scalar((char *)&obj, newtype, ((void *)0)); > do { if ( --((PyObject*)(newtype))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(newtype)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(newtype)))); } while (0); > do { if ( --((PyObject*)(obj))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(obj)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(obj)))); } while (0); > } > } > else { > char *temp; > int elsize; > typecode = PyArray_DescrFromScalar(self); > elsize = typecode->elsize; > temp = ((char *)malloc(elsize)); > memset(temp, '\0', elsize); > ret = PyArray_Scalar(temp, typecode, ((void *)0)); > free(temp); > } > > do { if ((typecode) == ((void *)0)) ; else do { if ( --((PyObject*)(typecode))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(typecode)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(typecode)))); } while (0); } while (0); > return ret; >} > >static PyObject * >gentype_flat_get(PyObject *self) >{ > PyObject *ret, *arr; > > arr = PyArray_FromScalar(self, ((void *)0)); > if (arr == ((void *)0)) { > return ((void *)0); > } > ret = PyArray_IterNew(arr); > do { if ( --((PyObject*)(arr))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(arr)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(arr)))); } while (0); > return ret; >} > > >static PyObject * >gentype_transpose_get(PyObject *self) >{ > ( ((PyObject*)(self))->ob_refcnt++); > return self; >} > > >static PyGetSetDef gentype_getsets[] = { > {"ndim", > (getter)gentype_ndim_get, > (setter) 0, > "number of array dimensions", > ((void *)0)}, > {"flags", > (getter)gentype_flags_get, > (setter)0, > "integer value of flags", > ((void *)0)}, > {"shape", > (getter)gentype_shape_get, > (setter)0, > "tuple of array dimensions", > ((void *)0)}, > {"strides", > (getter)gentype_shape_get, > (setter) 0, > "tuple of bytes steps in each dimension", > ((void *)0)}, > {"data", > (getter)gentype_data_get, > (setter) 0, > "pointer to start of data", > ((void *)0)}, > {"itemsize", > (getter)gentype_itemsize_get, > (setter)0, > "length of one element in bytes", > ((void *)0)}, > {"size", > (getter)gentype_size_get, > (setter)0, > "number of elements in the gentype", > ((void *)0)}, > {"nbytes", > (getter)gentype_itemsize_get, > (setter)0, > "length of item in bytes", > ((void *)0)}, > {"base", > (getter)gentype_base_get, > (setter)0, > "base object", > ((void *)0)}, > {"dtype", > (getter)gentype_typedescr_get, > ((void *)0), > "get array data-descriptor", > ((void *)0)}, > {"real", > (getter)gentype_real_get, > (setter)0, > "real part of scalar", > ((void *)0)}, > {"imag", > (getter)gentype_imag_get, > (setter)0, > "imaginary part of scalar", > ((void *)0)}, > {"flat", > (getter)gentype_flat_get, > (setter)0, > "a 1-d view of scalar", > ((void *)0)}, > {"T", > (getter)gentype_transpose_get, > (setter)0, > "transpose", > ((void *)0)}, > {"__array_interface__", > (getter)gentype_interface_get, > ((void *)0), > "Array protocol: Python side", > ((void *)0)}, > {"__array_struct__", > (getter)gentype_struct_get, > ((void *)0), > "Array protocol: struct", > ((void *)0)}, > {"__array_priority__", > (getter)gentype_priority_get, > ((void *)0), > "Array priority.", > ((void *)0)}, > {((void *)0), ((void *)0), ((void *)0), ((void *)0), ((void *)0)} >}; > > > > >static char doc_getarray[] = "sc.__array__(|type) return 0-dim array"; > >static PyObject * >gentype_getarray(PyObject *scalar, PyObject *args) >{ > PyArray_Descr *outcode=((void *)0); > PyObject *ret; > > if (!_PyArg_ParseTuple_SizeT(args, "|O&", &PyArray_DescrConverter, > &outcode)) { > do { if ((outcode) == ((void *)0)) ; else do { if ( --((PyObject*)(outcode))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(outcode)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(outcode)))); } while (0); } while (0); > return ((void *)0); > } > ret = PyArray_FromScalar(scalar, outcode); > return ret; >} > >static char doc_sc_wraparray[] = "sc.__array_wrap__(obj) return scalar from array"; > >static PyObject * >gentype_wraparray(PyObject *(__NPY_UNUSED_TAGGEDscalar) __attribute__ ((__unused__)), PyObject *args) >{ > PyObject *arr; > > if (PyTuple_Size(args) < 1) { > PyErr_SetString(PyExc_TypeError, > "only accepts 1 argument."); > return ((void *)0); > } > arr = (((PyTupleObject *)(args))->ob_item[0]); > if (!((((PyObject*)(arr))->ob_type) == (&PyArray_Type) || PyType_IsSubtype((((PyObject*)(arr))->ob_type), (&PyArray_Type)))) { > PyErr_SetString(PyExc_TypeError, > "can only be called with ndarray object"); > return ((void *)0); > } > > return PyArray_Scalar(((void *)(((PyArrayObject *)(arr))->data)), (((PyArrayObject *)(arr))->descr), arr); >} ># 1177 "numpy/core/src/multiarray/scalartypes.c.src" >static PyObject * >gentype_tolist(PyObject *self, PyObject *args) >{ > return gentype_generic_method(self, args, ((void *)0), "tolist"); >} ># 1177 "numpy/core/src/multiarray/scalartypes.c.src" >static PyObject * >gentype_item(PyObject *self, PyObject *args) >{ > return gentype_generic_method(self, args, ((void *)0), "item"); >} ># 1177 "numpy/core/src/multiarray/scalartypes.c.src" >static PyObject * >gentype_tostring(PyObject *self, PyObject *args) >{ > return gentype_generic_method(self, args, ((void *)0), "tostring"); >} ># 1177 "numpy/core/src/multiarray/scalartypes.c.src" >static PyObject * >gentype_astype(PyObject *self, PyObject *args) >{ > return gentype_generic_method(self, args, ((void *)0), "astype"); >} ># 1177 "numpy/core/src/multiarray/scalartypes.c.src" >static PyObject * >gentype_copy(PyObject *self, PyObject *args) >{ > return gentype_generic_method(self, args, ((void *)0), "copy"); >} ># 1177 "numpy/core/src/multiarray/scalartypes.c.src" >static PyObject * >gentype___deepcopy__(PyObject *self, PyObject *args) >{ > return gentype_generic_method(self, args, ((void *)0), "__deepcopy__"); >} ># 1177 "numpy/core/src/multiarray/scalartypes.c.src" >static PyObject * >gentype_searchsorted(PyObject *self, PyObject *args) >{ > return gentype_generic_method(self, args, ((void *)0), "searchsorted"); >} ># 1177 "numpy/core/src/multiarray/scalartypes.c.src" >static PyObject * >gentype_view(PyObject *self, PyObject *args) >{ > return gentype_generic_method(self, args, ((void *)0), "view"); >} ># 1177 "numpy/core/src/multiarray/scalartypes.c.src" >static PyObject * >gentype_swapaxes(PyObject *self, PyObject *args) >{ > return gentype_generic_method(self, args, ((void *)0), "swapaxes"); >} ># 1177 "numpy/core/src/multiarray/scalartypes.c.src" >static PyObject * >gentype_conj(PyObject *self, PyObject *args) >{ > return gentype_generic_method(self, args, ((void *)0), "conj"); >} ># 1177 "numpy/core/src/multiarray/scalartypes.c.src" >static PyObject * >gentype_conjugate(PyObject *self, PyObject *args) >{ > return gentype_generic_method(self, args, ((void *)0), "conjugate"); >} ># 1177 "numpy/core/src/multiarray/scalartypes.c.src" >static PyObject * >gentype_nonzero(PyObject *self, PyObject *args) >{ > return gentype_generic_method(self, args, ((void *)0), "nonzero"); >} ># 1177 "numpy/core/src/multiarray/scalartypes.c.src" >static PyObject * >gentype_flatten(PyObject *self, PyObject *args) >{ > return gentype_generic_method(self, args, ((void *)0), "flatten"); >} ># 1177 "numpy/core/src/multiarray/scalartypes.c.src" >static PyObject * >gentype_ravel(PyObject *self, PyObject *args) >{ > return gentype_generic_method(self, args, ((void *)0), "ravel"); >} ># 1177 "numpy/core/src/multiarray/scalartypes.c.src" >static PyObject * >gentype_fill(PyObject *self, PyObject *args) >{ > return gentype_generic_method(self, args, ((void *)0), "fill"); >} ># 1177 "numpy/core/src/multiarray/scalartypes.c.src" >static PyObject * >gentype_transpose(PyObject *self, PyObject *args) >{ > return gentype_generic_method(self, args, ((void *)0), "transpose"); >} ># 1177 "numpy/core/src/multiarray/scalartypes.c.src" >static PyObject * >gentype_newbyteorder(PyObject *self, PyObject *args) >{ > return gentype_generic_method(self, args, ((void *)0), "newbyteorder"); >} > > >static PyObject * >gentype_itemset(PyObject *(__NPY_UNUSED_TAGGEDself) __attribute__ ((__unused__)), PyObject *(__NPY_UNUSED_TAGGEDargs) __attribute__ ((__unused__))) >{ > PyErr_SetString(PyExc_ValueError, "array-scalars are immutable"); > return ((void *)0); >} > >static PyObject * >gentype_squeeze(PyObject *self, PyObject *args) >{ > if (!_PyArg_ParseTuple_SizeT(args, "")) { > return ((void *)0); > } > ( ((PyObject*)(self))->ob_refcnt++); > return self; >} > >static Py_ssize_t >gentype_getreadbuf(PyObject *, Py_ssize_t, void **); > >static PyObject * >gentype_byteswap(PyObject *self, PyObject *args) >{ > npy_bool inplace=0; > > if (!_PyArg_ParseTuple_SizeT(args, "|O&", PyArray_BoolConverter, &inplace)) { > return ((void *)0); > } > if (inplace) { > PyErr_SetString(PyExc_ValueError, > "cannot byteswap a scalar in-place"); > return ((void *)0); > } > else { > > char *data; > PyArray_Descr *descr; > PyObject *new; > char *newmem; > > gentype_getreadbuf(self, 0, (void **)&data); > descr = PyArray_DescrFromScalar(self); > newmem = PyMem_Malloc(descr->elsize); > if (newmem == ((void *)0)) { > do { if ( --((PyObject*)(descr))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(descr)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(descr)))); } while (0); > return PyErr_NoMemory(); > } > else { > descr->f->copyswap(newmem, data, 1, ((void *)0)); > } > new = PyArray_Scalar(newmem, descr, ((void *)0)); > PyMem_Free(newmem); > do { if ( --((PyObject*)(descr))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(descr)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(descr)))); } while (0); > return new; > } >} ># 1253 "numpy/core/src/multiarray/scalartypes.c.src" >static PyObject * >gentype_take(PyObject *self, PyObject *args, PyObject *kwds) >{ > return gentype_generic_method(self, args, kwds, "take"); >} ># 1253 "numpy/core/src/multiarray/scalartypes.c.src" >static PyObject * >gentype_getfield(PyObject *self, PyObject *args, PyObject *kwds) >{ > return gentype_generic_method(self, args, kwds, "getfield"); >} ># 1253 "numpy/core/src/multiarray/scalartypes.c.src" >static PyObject * >gentype_put(PyObject *self, PyObject *args, PyObject *kwds) >{ > return gentype_generic_method(self, args, kwds, "put"); >} ># 1253 "numpy/core/src/multiarray/scalartypes.c.src" >static PyObject * >gentype_repeat(PyObject *self, PyObject *args, PyObject *kwds) >{ > return gentype_generic_method(self, args, kwds, "repeat"); >} ># 1253 "numpy/core/src/multiarray/scalartypes.c.src" >static PyObject * >gentype_tofile(PyObject *self, PyObject *args, PyObject *kwds) >{ > return gentype_generic_method(self, args, kwds, "tofile"); >} ># 1253 "numpy/core/src/multiarray/scalartypes.c.src" >static PyObject * >gentype_mean(PyObject *self, PyObject *args, PyObject *kwds) >{ > return gentype_generic_method(self, args, kwds, "mean"); >} ># 1253 "numpy/core/src/multiarray/scalartypes.c.src" >static PyObject * >gentype_trace(PyObject *self, PyObject *args, PyObject *kwds) >{ > return gentype_generic_method(self, args, kwds, "trace"); >} ># 1253 "numpy/core/src/multiarray/scalartypes.c.src" >static PyObject * >gentype_diagonal(PyObject *self, PyObject *args, PyObject *kwds) >{ > return gentype_generic_method(self, args, kwds, "diagonal"); >} ># 1253 "numpy/core/src/multiarray/scalartypes.c.src" >static PyObject * >gentype_clip(PyObject *self, PyObject *args, PyObject *kwds) >{ > return gentype_generic_method(self, args, kwds, "clip"); >} ># 1253 "numpy/core/src/multiarray/scalartypes.c.src" >static PyObject * >gentype_std(PyObject *self, PyObject *args, PyObject *kwds) >{ > return gentype_generic_method(self, args, kwds, "std"); >} ># 1253 "numpy/core/src/multiarray/scalartypes.c.src" >static PyObject * >gentype_var(PyObject *self, PyObject *args, PyObject *kwds) >{ > return gentype_generic_method(self, args, kwds, "var"); >} ># 1253 "numpy/core/src/multiarray/scalartypes.c.src" >static PyObject * >gentype_sum(PyObject *self, PyObject *args, PyObject *kwds) >{ > return gentype_generic_method(self, args, kwds, "sum"); >} ># 1253 "numpy/core/src/multiarray/scalartypes.c.src" >static PyObject * >gentype_cumsum(PyObject *self, PyObject *args, PyObject *kwds) >{ > return gentype_generic_method(self, args, kwds, "cumsum"); >} ># 1253 "numpy/core/src/multiarray/scalartypes.c.src" >static PyObject * >gentype_prod(PyObject *self, PyObject *args, PyObject *kwds) >{ > return gentype_generic_method(self, args, kwds, "prod"); >} ># 1253 "numpy/core/src/multiarray/scalartypes.c.src" >static PyObject * >gentype_cumprod(PyObject *self, PyObject *args, PyObject *kwds) >{ > return gentype_generic_method(self, args, kwds, "cumprod"); >} ># 1253 "numpy/core/src/multiarray/scalartypes.c.src" >static PyObject * >gentype_compress(PyObject *self, PyObject *args, PyObject *kwds) >{ > return gentype_generic_method(self, args, kwds, "compress"); >} ># 1253 "numpy/core/src/multiarray/scalartypes.c.src" >static PyObject * >gentype_sort(PyObject *self, PyObject *args, PyObject *kwds) >{ > return gentype_generic_method(self, args, kwds, "sort"); >} ># 1253 "numpy/core/src/multiarray/scalartypes.c.src" >static PyObject * >gentype_argsort(PyObject *self, PyObject *args, PyObject *kwds) >{ > return gentype_generic_method(self, args, kwds, "argsort"); >} ># 1253 "numpy/core/src/multiarray/scalartypes.c.src" >static PyObject * >gentype_round(PyObject *self, PyObject *args, PyObject *kwds) >{ > return gentype_generic_method(self, args, kwds, "round"); >} ># 1253 "numpy/core/src/multiarray/scalartypes.c.src" >static PyObject * >gentype_argmax(PyObject *self, PyObject *args, PyObject *kwds) >{ > return gentype_generic_method(self, args, kwds, "argmax"); >} ># 1253 "numpy/core/src/multiarray/scalartypes.c.src" >static PyObject * >gentype_argmin(PyObject *self, PyObject *args, PyObject *kwds) >{ > return gentype_generic_method(self, args, kwds, "argmin"); >} ># 1253 "numpy/core/src/multiarray/scalartypes.c.src" >static PyObject * >gentype_max(PyObject *self, PyObject *args, PyObject *kwds) >{ > return gentype_generic_method(self, args, kwds, "max"); >} ># 1253 "numpy/core/src/multiarray/scalartypes.c.src" >static PyObject * >gentype_min(PyObject *self, PyObject *args, PyObject *kwds) >{ > return gentype_generic_method(self, args, kwds, "min"); >} ># 1253 "numpy/core/src/multiarray/scalartypes.c.src" >static PyObject * >gentype_ptp(PyObject *self, PyObject *args, PyObject *kwds) >{ > return gentype_generic_method(self, args, kwds, "ptp"); >} ># 1253 "numpy/core/src/multiarray/scalartypes.c.src" >static PyObject * >gentype_any(PyObject *self, PyObject *args, PyObject *kwds) >{ > return gentype_generic_method(self, args, kwds, "any"); >} ># 1253 "numpy/core/src/multiarray/scalartypes.c.src" >static PyObject * >gentype_all(PyObject *self, PyObject *args, PyObject *kwds) >{ > return gentype_generic_method(self, args, kwds, "all"); >} ># 1253 "numpy/core/src/multiarray/scalartypes.c.src" >static PyObject * >gentype_resize(PyObject *self, PyObject *args, PyObject *kwds) >{ > return gentype_generic_method(self, args, kwds, "resize"); >} ># 1253 "numpy/core/src/multiarray/scalartypes.c.src" >static PyObject * >gentype_reshape(PyObject *self, PyObject *args, PyObject *kwds) >{ > return gentype_generic_method(self, args, kwds, "reshape"); >} ># 1253 "numpy/core/src/multiarray/scalartypes.c.src" >static PyObject * >gentype_choose(PyObject *self, PyObject *args, PyObject *kwds) >{ > return gentype_generic_method(self, args, kwds, "choose"); >} > > >static PyObject * >voidtype_getfield(PyVoidScalarObject *self, PyObject *args, PyObject *kwds) >{ > PyObject *ret, *newargs; > > newargs = PyTuple_GetSlice(args, 0, 2); > if (newargs == ((void *)0)) { > return ((void *)0); > } > ret = gentype_generic_method((PyObject *)self, newargs, kwds, "getfield"); > do { if ( --((PyObject*)(newargs))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(newargs)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(newargs)))); } while (0); > if (!ret) { > return ret; > } > if ((((((PyObject*)(ret))->ob_type) == (&PyGenericArrType_Type) || PyType_IsSubtype((((PyObject*)(ret))->ob_type), (&PyGenericArrType_Type)))) && (!(((((PyObject*)(ret))->ob_type) == (&PyVoidArrType_Type) || PyType_IsSubtype((((PyObject*)(ret))->ob_type), (&PyVoidArrType_Type)))))) { > > PyArray_Descr *new; > void *ptr; > if (!((self->descr->byteorder) != '>')) { > new = PyArray_DescrFromScalar(ret); > ptr = scalar_value(ret, new); > byte_swap_vector(ptr, 1, new->elsize); > do { if ( --((PyObject*)(new))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(new)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(new)))); } while (0); > } > } > return ret; >} > >static PyObject * >gentype_setfield(PyObject *(__NPY_UNUSED_TAGGEDself) __attribute__ ((__unused__)), PyObject *(__NPY_UNUSED_TAGGEDargs) __attribute__ ((__unused__)), PyObject *(__NPY_UNUSED_TAGGEDkwds) __attribute__ ((__unused__))) >{ > PyErr_SetString(PyExc_TypeError, > "Can't set fields in a non-void array scalar."); > return ((void *)0); >} > >static PyObject * >voidtype_setfield(PyVoidScalarObject *self, PyObject *args, PyObject *kwds) >{ > PyArray_Descr *typecode = ((void *)0); > int offset = 0; > PyObject *value, *src; > int mysize; > char *dptr; > static char *kwlist[] = {"value", "dtype", "offset", 0}; > > if ((self->flags & 0x0400) != 0x0400) { > PyErr_SetString(PyExc_RuntimeError, "Can't write to memory"); > return ((void *)0); > } > if (!_PyArg_ParseTupleAndKeywords_SizeT(args, kwds, "OO&|i", kwlist, > &value, > PyArray_DescrConverter, > &typecode, &offset)) { > do { if ((typecode) == ((void *)0)) ; else do { if ( --((PyObject*)(typecode))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(typecode)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(typecode)))); } while (0); } while (0); > return ((void *)0); > } > > mysize = (((PyVarObject*)(self))->ob_size); > > if (offset < 0 || (offset + typecode->elsize) > mysize) { > PyErr_Format(PyExc_ValueError, > "Need 0 <= offset <= %d for requested type " "but received offset = %d", > > mysize-typecode->elsize, offset); > do { if ( --((PyObject*)(typecode))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(typecode)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(typecode)))); } while (0); > return ((void *)0); > } > > dptr = self->obval + offset; > > if (typecode->type_num == NPY_OBJECT) { > PyObject *temp; > ( ((PyObject*)(value))->ob_refcnt++); > (*((PyObject **)(&temp)) = *((PyObject **)(dptr))); > do { if ((temp) == ((void *)0)) ; else do { if ( --((PyObject*)(temp))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(temp)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(temp)))); } while (0); } while (0); > (*((PyObject **)(dptr)) = *((PyObject **)(&value))); > do { if ( --((PyObject*)(typecode))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(typecode)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(typecode)))); } while (0); > } > else { > > src = PyArray_FromAny(value, typecode, 0, 0, (0x0001 | (0x0100 | 0x0400)), ((void *)0)); > if (src == ((void *)0)) { > return ((void *)0); > } > typecode->f->copyswap(dptr, ((void *)(((PyArrayObject *)(src))->data)), > !((self->descr->byteorder) != '>'), > src); > do { if ( --((PyObject*)(src))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(src)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(src)))); } while (0); > } > ( ((PyObject*)((&_Py_NoneStruct)))->ob_refcnt++); > return (&_Py_NoneStruct); >} > > >static PyObject * >gentype_reduce(PyObject *self, PyObject *(__NPY_UNUSED_TAGGEDargs) __attribute__ ((__unused__))) >{ > PyObject *ret = ((void *)0), *obj = ((void *)0), *mod = ((void *)0); > const char *buffer; > Py_ssize_t buflen; > > > ret = PyTuple_New(2); > if (ret == ((void *)0)) { > return ((void *)0); > } ># 1375 "numpy/core/src/multiarray/scalartypes.c.src" > if (PyObject_AsReadBuffer(self, (const void **)&buffer, &buflen)<0) { > do { if ( --((PyObject*)(ret))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(ret)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(ret)))); } while (0); > return ((void *)0); > } > mod = PyImport_ImportModule("numpy.core.multiarray"); > if (mod == ((void *)0)) { > return ((void *)0); > } > obj = PyObject_GetAttrString(mod, "scalar"); > do { if ( --((PyObject*)(mod))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(mod)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(mod)))); } while (0); > if (obj == ((void *)0)) { > return ((void *)0); > } > (((PyTupleObject *)(ret))->ob_item[0] = obj); > obj = PyObject_GetAttrString((PyObject *)self, "dtype"); > if ((((((PyObject*)(self))->ob_type) == (&PyObjectArrType_Type) || PyType_IsSubtype((((PyObject*)(self))->ob_type), (&PyObjectArrType_Type))))) { > mod = ((PyObjectScalarObject *)self)->obval; > (((PyTupleObject *)(ret))->ob_item[1] = _Py_BuildValue_SizeT("NO", obj, mod)); > } > else { ># 1421 "numpy/core/src/multiarray/scalartypes.c.src" > mod = PyString_FromStringAndSize(buffer, buflen); > if (mod == ((void *)0)) { > do { if ( --((PyObject*)(ret))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(ret)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(ret)))); } while (0); > > > > > return ((void *)0); > > } > (((PyTupleObject *)(ret))->ob_item[1] = _Py_BuildValue_SizeT("NN", obj, mod)); > > > > > > } > return ret; >} > > >static PyObject * >gentype_setstate(PyObject *(__NPY_UNUSED_TAGGEDself) __attribute__ ((__unused__)), PyObject *(__NPY_UNUSED_TAGGEDargs) __attribute__ ((__unused__))) >{ > ( ((PyObject*)((&_Py_NoneStruct)))->ob_refcnt++); > return ((&_Py_NoneStruct)); >} > >static PyObject * >gentype_dump(PyObject *self, PyObject *args) >{ > PyObject *file = ((void *)0); > int ret; > > if (!_PyArg_ParseTuple_SizeT(args, "O", &file)) { > return ((void *)0); > } > ret = PyArray_Dump(self, file, 2); > if (ret < 0) { > return ((void *)0); > } > ( ((PyObject*)((&_Py_NoneStruct)))->ob_refcnt++); > return (&_Py_NoneStruct); >} > >static PyObject * >gentype_dumps(PyObject *self, PyObject *args) >{ > if (!_PyArg_ParseTuple_SizeT(args, "")) { > return ((void *)0); > } > return PyArray_Dumps(self, 2); >} > > > >static PyObject * >gentype_setflags(PyObject *(__NPY_UNUSED_TAGGEDself) __attribute__ ((__unused__)), PyObject *(__NPY_UNUSED_TAGGEDargs) __attribute__ ((__unused__)), > PyObject *(__NPY_UNUSED_TAGGEDkwds) __attribute__ ((__unused__))) >{ > ( ((PyObject*)((&_Py_NoneStruct)))->ob_refcnt++); > return (&_Py_NoneStruct); >} ># 1492 "numpy/core/src/multiarray/scalartypes.c.src" >static PyObject * >cfloat_complex(PyObject *self, PyObject *(__NPY_UNUSED_TAGGEDargs) __attribute__ ((__unused__)), > PyObject *(__NPY_UNUSED_TAGGEDkwds) __attribute__ ((__unused__))) >{ > return PyComplex_FromDoubles(((PyCFloatScalarObject *)self)->obval.real, > ((PyCFloatScalarObject *)self)->obval.imag); >} ># 1492 "numpy/core/src/multiarray/scalartypes.c.src" >static PyObject * >clongdouble_complex(PyObject *self, PyObject *(__NPY_UNUSED_TAGGEDargs) __attribute__ ((__unused__)), > PyObject *(__NPY_UNUSED_TAGGEDkwds) __attribute__ ((__unused__))) >{ > return PyComplex_FromDoubles(((PyCLongDoubleScalarObject *)self)->obval.real, > ((PyCLongDoubleScalarObject *)self)->obval.imag); >} > > > > > >static PyMethodDef gentype_methods[] = { > {"tolist", > (PyCFunction)gentype_tolist, > 0x0001, ((void *)0)}, > {"item", > (PyCFunction)gentype_item, > 0x0001, ((void *)0)}, > {"itemset", > (PyCFunction)gentype_itemset, > 0x0001, ((void *)0)}, > {"tofile", > (PyCFunction)gentype_tofile, > 0x0001 | 0x0002, ((void *)0)}, > {"tostring", > (PyCFunction)gentype_tostring, > 0x0001, ((void *)0)}, > {"byteswap", > (PyCFunction)gentype_byteswap, > 0x0001, ((void *)0)}, > {"astype", > (PyCFunction)gentype_astype, > 0x0001, ((void *)0)}, > {"getfield", > (PyCFunction)gentype_getfield, > 0x0001 | 0x0002, ((void *)0)}, > {"setfield", > (PyCFunction)gentype_setfield, > 0x0001 | 0x0002, ((void *)0)}, > {"copy", > (PyCFunction)gentype_copy, > 0x0001, ((void *)0)}, > {"resize", > (PyCFunction)gentype_resize, > 0x0001 | 0x0002, ((void *)0)}, > {"__array__", > (PyCFunction)gentype_getarray, > 0x0001, doc_getarray}, > {"__array_wrap__", > (PyCFunction)gentype_wraparray, > 0x0001, doc_sc_wraparray}, > > > {"__copy__", > (PyCFunction)gentype_copy, > 0x0001, ((void *)0)}, > {"__deepcopy__", > (PyCFunction)gentype___deepcopy__, > 0x0001, ((void *)0)}, > > {"__reduce__", > (PyCFunction) gentype_reduce, > 0x0001, ((void *)0)}, > > {"__setstate__", > (PyCFunction) gentype_setstate, > 0x0001, ((void *)0)}, > > {"dumps", > (PyCFunction) gentype_dumps, > 0x0001, ((void *)0)}, > {"dump", > (PyCFunction) gentype_dump, > 0x0001, ((void *)0)}, > > > {"fill", > (PyCFunction)gentype_fill, > 0x0001, ((void *)0)}, > {"transpose", > (PyCFunction)gentype_transpose, > 0x0001, ((void *)0)}, > {"take", > (PyCFunction)gentype_take, > 0x0001 | 0x0002, ((void *)0)}, > {"put", > (PyCFunction)gentype_put, > 0x0001 | 0x0002, ((void *)0)}, > {"repeat", > (PyCFunction)gentype_repeat, > 0x0001 | 0x0002, ((void *)0)}, > {"choose", > (PyCFunction)gentype_choose, > 0x0001 | 0x0002, ((void *)0)}, > {"sort", > (PyCFunction)gentype_sort, > 0x0001 | 0x0002, ((void *)0)}, > {"argsort", > (PyCFunction)gentype_argsort, > 0x0001 | 0x0002, ((void *)0)}, > {"searchsorted", > (PyCFunction)gentype_searchsorted, > 0x0001, ((void *)0)}, > {"argmax", > (PyCFunction)gentype_argmax, > 0x0001 | 0x0002, ((void *)0)}, > {"argmin", > (PyCFunction)gentype_argmin, > 0x0001 | 0x0002, ((void *)0)}, > {"reshape", > (PyCFunction)gentype_reshape, > 0x0001 | 0x0002, ((void *)0)}, > {"squeeze", > (PyCFunction)gentype_squeeze, > 0x0001, ((void *)0)}, > {"view", > (PyCFunction)gentype_view, > 0x0001, ((void *)0)}, > {"swapaxes", > (PyCFunction)gentype_swapaxes, > 0x0001, ((void *)0)}, > {"max", > (PyCFunction)gentype_max, > 0x0001 | 0x0002, ((void *)0)}, > {"min", > (PyCFunction)gentype_min, > 0x0001 | 0x0002, ((void *)0)}, > {"ptp", > (PyCFunction)gentype_ptp, > 0x0001 | 0x0002, ((void *)0)}, > {"mean", > (PyCFunction)gentype_mean, > 0x0001 | 0x0002, ((void *)0)}, > {"trace", > (PyCFunction)gentype_trace, > 0x0001 | 0x0002, ((void *)0)}, > {"diagonal", > (PyCFunction)gentype_diagonal, > 0x0001 | 0x0002, ((void *)0)}, > {"clip", > (PyCFunction)gentype_clip, > 0x0001 | 0x0002, ((void *)0)}, > {"conj", > (PyCFunction)gentype_conj, > 0x0001, ((void *)0)}, > {"conjugate", > (PyCFunction)gentype_conjugate, > 0x0001, ((void *)0)}, > {"nonzero", > (PyCFunction)gentype_nonzero, > 0x0001, ((void *)0)}, > {"std", > (PyCFunction)gentype_std, > 0x0001 | 0x0002, ((void *)0)}, > {"var", > (PyCFunction)gentype_var, > 0x0001 | 0x0002, ((void *)0)}, > {"sum", > (PyCFunction)gentype_sum, > 0x0001 | 0x0002, ((void *)0)}, > {"cumsum", > (PyCFunction)gentype_cumsum, > 0x0001 | 0x0002, ((void *)0)}, > {"prod", > (PyCFunction)gentype_prod, > 0x0001 | 0x0002, ((void *)0)}, > {"cumprod", > (PyCFunction)gentype_cumprod, > 0x0001 | 0x0002, ((void *)0)}, > {"all", > (PyCFunction)gentype_all, > 0x0001 | 0x0002, ((void *)0)}, > {"any", > (PyCFunction)gentype_any, > 0x0001 | 0x0002, ((void *)0)}, > {"compress", > (PyCFunction)gentype_compress, > 0x0001 | 0x0002, ((void *)0)}, > {"flatten", > (PyCFunction)gentype_flatten, > 0x0001, ((void *)0)}, > {"ravel", > (PyCFunction)gentype_ravel, > 0x0001, ((void *)0)}, > {"round", > (PyCFunction)gentype_round, > 0x0001 | 0x0002, ((void *)0)}, > > > > > > > {"setflags", > (PyCFunction)gentype_setflags, > 0x0001 | 0x0002, ((void *)0)}, > {"newbyteorder", > (PyCFunction)gentype_newbyteorder, > 0x0001, ((void *)0)}, > {((void *)0), ((void *)0), 0, ((void *)0)} >}; > > >static PyGetSetDef voidtype_getsets[] = { > {"flags", > (getter)voidtype_flags_get, > (setter)0, > "integer value of flags", > ((void *)0)}, > {"dtype", > (getter)voidtype_dtypedescr_get, > (setter)0, > "dtype object", > ((void *)0)}, > {((void *)0), ((void *)0), ((void *)0), ((void *)0), ((void *)0)} >}; > >static PyMethodDef voidtype_methods[] = { > {"getfield", > (PyCFunction)voidtype_getfield, > 0x0001 | 0x0002, ((void *)0)}, > {"setfield", > (PyCFunction)voidtype_setfield, > 0x0001 | 0x0002, ((void *)0)}, > {((void *)0), ((void *)0), 0, ((void *)0)} >}; ># 1723 "numpy/core/src/multiarray/scalartypes.c.src" >static PyMethodDef cfloattype_methods[] = { > {"__complex__", > (PyCFunction)cfloat_complex, > 0x0001 | 0x0002, ((void *)0)}, > {((void *)0), ((void *)0), 0, ((void *)0)} >}; ># 1723 "numpy/core/src/multiarray/scalartypes.c.src" >static PyMethodDef clongdoubletype_methods[] = { > {"__complex__", > (PyCFunction)clongdouble_complex, > 0x0001 | 0x0002, ((void *)0)}, > {((void *)0), ((void *)0), 0, ((void *)0)} >}; > > > > >static Py_ssize_t >voidtype_length(PyVoidScalarObject *self) >{ > if (!self->descr->names) { > return 0; > } > else { > return (Py_ssize_t) (((PyVarObject*)(self->descr->names))->ob_size); > } >} > >static PyObject * >voidtype_item(PyVoidScalarObject *self, Py_ssize_t n) >{ > npy_intp m; > PyObject *flist=((void *)0), *fieldinfo; > > if (!((((PyArray_Descr *)(self->descr))->names != ((void *)0)))) { > PyErr_SetString(PyExc_IndexError, > "can't index void scalar without fields"); > return ((void *)0); > } > flist = self->descr->names; > m = (((PyVarObject*)(flist))->ob_size); > if (n < 0) { > n += m; > } > if (n < 0 || n >= m) { > PyErr_Format(PyExc_IndexError, "invalid index (%d)", (int) n); > return ((void *)0); > } > fieldinfo = PyDict_GetItem(self->descr->fields, > (((PyTupleObject *)(flist))->ob_item[n])); > return voidtype_getfield(self, fieldinfo, ((void *)0)); >} > > > >static PyObject * >voidtype_subscript(PyVoidScalarObject *self, PyObject *ind) >{ > npy_intp n; > PyObject *fieldinfo; > > if (!((((PyArray_Descr *)(self->descr))->names != ((void *)0)))) { > PyErr_SetString(PyExc_IndexError, > "can't index void scalar without fields"); > return ((void *)0); > } > > > > > if (((((((PyObject*)(ind))->ob_type))->tp_flags & ((1L<<27))) != 0) || ((((((PyObject*)(ind))->ob_type))->tp_flags & ((1L<<28))) != 0)) { > > > fieldinfo = PyDict_GetItem(self->descr->fields, ind); > if (!fieldinfo) { > goto fail; > } > return voidtype_getfield(self, fieldinfo, ((void *)0)); > } > > > n = PyArray_PyIntAsIntp(ind); > if ((((n) == -1) && PyErr_Occurred())) { > goto fail; > } > return voidtype_item(self, (Py_ssize_t)n); > >fail: > PyErr_SetString(PyExc_IndexError, "invalid index"); > return ((void *)0); >} > >static int >voidtype_ass_item(PyVoidScalarObject *self, Py_ssize_t n, PyObject *val) >{ > npy_intp m; > PyObject *flist=((void *)0), *fieldinfo, *newtup; > PyObject *res; > > if (!((((PyArray_Descr *)(self->descr))->names != ((void *)0)))) { > PyErr_SetString(PyExc_IndexError, > "can't index void scalar without fields"); > return -1; > } > > flist = self->descr->names; > m = (((PyVarObject*)(flist))->ob_size); > if (n < 0) { > n += m; > } > if (n < 0 || n >= m) { > goto fail; > } > fieldinfo = PyDict_GetItem(self->descr->fields, > (((PyTupleObject *)(flist))->ob_item[n])); > newtup = _Py_BuildValue_SizeT("(OOO)", val, > (((PyTupleObject *)(fieldinfo))->ob_item[0]), > (((PyTupleObject *)(fieldinfo))->ob_item[1])); > res = voidtype_setfield(self, newtup, ((void *)0)); > do { if ( --((PyObject*)(newtup))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(newtup)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(newtup)))); } while (0); > if (!res) { > return -1; > } > do { if ( --((PyObject*)(res))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(res)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(res)))); } while (0); > return 0; > >fail: > PyErr_Format(PyExc_IndexError, "invalid index (%d)", (int) n); > return -1; >} > >static int >voidtype_ass_subscript(PyVoidScalarObject *self, PyObject *ind, PyObject *val) >{ > npy_intp n; > char *msg = "invalid index"; > PyObject *fieldinfo, *newtup; > PyObject *res; > > if (!(((PyArray_Descr *)(self->descr))->names != ((void *)0))) { > PyErr_SetString(PyExc_IndexError, > "can't index void scalar without fields"); > return -1; > } > > > > > if (((((((PyObject*)(ind))->ob_type))->tp_flags & ((1L<<27))) != 0) || ((((((PyObject*)(ind))->ob_type))->tp_flags & ((1L<<28))) != 0)) { > > > fieldinfo = PyDict_GetItem(self->descr->fields, ind); > if (!fieldinfo) { > goto fail; > } > newtup = _Py_BuildValue_SizeT("(OOO)", val, > (((PyTupleObject *)(fieldinfo))->ob_item[0]), > (((PyTupleObject *)(fieldinfo))->ob_item[1])); > res = voidtype_setfield(self, newtup, ((void *)0)); > do { if ( --((PyObject*)(newtup))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(newtup)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(newtup)))); } while (0); > if (!res) { > return -1; > } > do { if ( --((PyObject*)(res))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(res)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(res)))); } while (0); > return 0; > } > > > n = PyArray_PyIntAsIntp(ind); > if ((((n) == -1) && PyErr_Occurred())) { > goto fail; > } > return voidtype_ass_item(self, (Py_ssize_t)n, val); > >fail: > PyErr_SetString(PyExc_IndexError, msg); > return -1; >} > >static PyMappingMethods voidtype_as_mapping = { > > (lenfunc)voidtype_length, > > > > (binaryfunc)voidtype_subscript, > (objobjargproc)voidtype_ass_subscript, >}; > > >static PySequenceMethods voidtype_as_sequence = { > > (lenfunc)voidtype_length, > 0, > 0, > (ssizeargfunc)voidtype_item, > 0, > (ssizeobjargproc)voidtype_ass_item, ># 1922 "numpy/core/src/multiarray/scalartypes.c.src" > 0, > 0, > 0, > 0, >}; > > >static Py_ssize_t >gentype_getreadbuf(PyObject *self, Py_ssize_t segment, void **ptrptr) >{ > int numbytes; > PyArray_Descr *outcode; > > if (segment != 0) { > PyErr_SetString(PyExc_SystemError, > "Accessing non-existent array segment"); > return -1; > } > > outcode = PyArray_DescrFromScalar(self); > numbytes = outcode->elsize; > *ptrptr = (void *)scalar_value(self, outcode); > > > > > > > do { if ( --((PyObject*)(outcode))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(outcode)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(outcode)))); } while (0); > return numbytes; >} > >static Py_ssize_t >gentype_getsegcount(PyObject *self, Py_ssize_t *lenp) >{ > PyArray_Descr *outcode; > > outcode = PyArray_DescrFromScalar(self); > if (lenp) { > *lenp = outcode->elsize; > > > > > > } > do { if ( --((PyObject*)(outcode))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(outcode)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(outcode)))); } while (0); > return 1; >} > >static Py_ssize_t >gentype_getcharbuf(PyObject *self, Py_ssize_t segment, char **ptrptr) >{ > if ((((((PyObject*)(self))->ob_type) == (&PyStringArrType_Type) || PyType_IsSubtype((((PyObject*)(self))->ob_type), (&PyStringArrType_Type)))) || > (((((PyObject*)(self))->ob_type) == (&PyUnicodeArrType_Type) || PyType_IsSubtype((((PyObject*)(self))->ob_type), (&PyUnicodeArrType_Type))))) { > return gentype_getreadbuf(self, segment, (void **)ptrptr); > } > else { > PyErr_SetString(PyExc_TypeError, > "Non-character array cannot be interpreted " "as character buffer."); > > return -1; > } >} > > > >static int >gentype_getbuffer(PyObject *self, Py_buffer *view, int flags) >{ > Py_ssize_t len; > void *buf; > > > > len = gentype_getreadbuf(self, 0, &buf); > return PyBuffer_FillInfo(view, self, buf, len, 1, flags); >} > > > > > >static PyBufferProcs gentype_as_buffer = { > > gentype_getreadbuf, > ((void *)0), > gentype_getsegcount, > gentype_getcharbuf, > > > gentype_getbuffer, > ((void *)0), > >}; ># 2027 "numpy/core/src/multiarray/scalartypes.c.src" >static PyTypeObject PyGenericArrType_Type = { > > > > 1, ((void *)0), > 0, > > "numpy.generic", > sizeof(PyObject), > 0, > > 0, > 0, > 0, > 0, > > > > 0, > > 0, > 0, > 0, > 0, > 0, > 0, > 0, > 0, > 0, > 0, > 0, > 0, > 0, > 0, > 0, > 0, > 0, > 0, > 0, > 0, > 0, > 0, > 0, > 0, > 0, > 0, > 0, > 0, > 0, > 0, > 0, > 0, > 0, > 0, > 0, > 0, > 0, > > 0, > >}; > >static void >void_dealloc(PyVoidScalarObject *v) >{ > if (v->flags & 0x0004) { > free(v->obval); > } > do { if ((v->descr) == ((void *)0)) ; else do { if ( --((PyObject*)(v->descr))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(v->descr)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(v->descr)))); } while (0); } while (0); > do { if ((v->base) == ((void *)0)) ; else do { if ( --((PyObject*)(v->base))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(v->base)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(v->base)))); } while (0); } while (0); > (((PyObject*)(v))->ob_type)->tp_free(v); >} > >static void >object_arrtype_dealloc(PyObject *v) >{ > do { if ((((PyObjectScalarObject *)v)->obval) == ((void *)0)) ; else do { if ( --((PyObject*)(((PyObjectScalarObject *)v)->obval))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(((PyObjectScalarObject *)v)->obval)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(((PyObjectScalarObject *)v)->obval)))); } while (0); } while (0); > (((PyObject*)(v))->ob_type)->tp_free(v); >} ># 2142 "numpy/core/src/multiarray/scalartypes.c.src" ># 2150 "numpy/core/src/multiarray/scalartypes.c.src" >static PyObject * >byte_arrtype_new(PyTypeObject *(type), PyObject *args, PyObject *(__NPY_UNUSED_TAGGEDkwds) __attribute__ ((__unused__))) >{ > PyObject *obj = ((void *)0); > PyObject *robj; > PyObject *arr; > PyArray_Descr *typecode = ((void *)0); > > int itemsize; > void *dest, *src; > > > > > > > > > if (!_PyArg_ParseTuple_SizeT(args, "|O", &obj)) { > return ((void *)0); > } > typecode = PyArray_DescrFromType(NPY_BYTE); > > > > > if (obj == ((void *)0)) { > > char *mem = malloc(sizeof(npy_byte)); > > memset(mem, 0, sizeof(npy_byte)); > robj = PyArray_Scalar(mem, typecode, ((void *)0)); > free(mem); > > > > > > > do { if ( --((PyObject*)(typecode))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(typecode)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(typecode)))); } while (0); > goto finish; > } > > > > > > arr = PyArray_FromAny(obj, typecode, 0, 0, 0x0010, ((void *)0)); > if ((arr == ((void *)0)) || ((((PyArrayObject *)(arr))->nd) > 0)) { > return arr; > } > > robj = PyArray_Scalar(((void *)(((PyArrayObject *)(arr))->data)), (((PyArrayObject *)((PyArrayObject *)arr))->descr), (PyObject *)(PyArrayObject *)arr); > do { if ( --((PyObject*)(arr))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(arr)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(arr)))); } while (0); > >finish: ># 2215 "numpy/core/src/multiarray/scalartypes.c.src" > if ((robj == ((void *)0)) || ((((PyObject*)(robj))->ob_type) == type)) { > return robj; > } ># 2226 "numpy/core/src/multiarray/scalartypes.c.src" > if (type->tp_itemsize) { > itemsize = (((PyVarObject*)(robj))->ob_size); > } > else { > itemsize = 0; > } > obj = type->tp_alloc(type, itemsize); > if (obj == ((void *)0)) { > do { if ( --((PyObject*)(robj))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(robj)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(robj)))); } while (0); > return ((void *)0); > } > > typecode = PyArray_DescrFromType(NPY_BYTE); > dest = scalar_value(obj, typecode); > src = scalar_value(robj, typecode); > do { if ( --((PyObject*)(typecode))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(typecode)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(typecode)))); } while (0); > > *((npy_byte *)dest) = *((npy_byte *)src); > > > > > > > > do { if ( --((PyObject*)(robj))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(robj)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(robj)))); } while (0); > return obj; > >} ># 2142 "numpy/core/src/multiarray/scalartypes.c.src" ># 2150 "numpy/core/src/multiarray/scalartypes.c.src" >static PyObject * >short_arrtype_new(PyTypeObject *(type), PyObject *args, PyObject *(__NPY_UNUSED_TAGGEDkwds) __attribute__ ((__unused__))) >{ > PyObject *obj = ((void *)0); > PyObject *robj; > PyObject *arr; > PyArray_Descr *typecode = ((void *)0); > > int itemsize; > void *dest, *src; > > > > > > > > > if (!_PyArg_ParseTuple_SizeT(args, "|O", &obj)) { > return ((void *)0); > } > typecode = PyArray_DescrFromType(NPY_SHORT); > > > > > if (obj == ((void *)0)) { > > char *mem = malloc(sizeof(npy_short)); > > memset(mem, 0, sizeof(npy_short)); > robj = PyArray_Scalar(mem, typecode, ((void *)0)); > free(mem); > > > > > > > do { if ( --((PyObject*)(typecode))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(typecode)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(typecode)))); } while (0); > goto finish; > } > > > > > > arr = PyArray_FromAny(obj, typecode, 0, 0, 0x0010, ((void *)0)); > if ((arr == ((void *)0)) || ((((PyArrayObject *)(arr))->nd) > 0)) { > return arr; > } > > robj = PyArray_Scalar(((void *)(((PyArrayObject *)(arr))->data)), (((PyArrayObject *)((PyArrayObject *)arr))->descr), (PyObject *)(PyArrayObject *)arr); > do { if ( --((PyObject*)(arr))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(arr)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(arr)))); } while (0); > >finish: ># 2215 "numpy/core/src/multiarray/scalartypes.c.src" > if ((robj == ((void *)0)) || ((((PyObject*)(robj))->ob_type) == type)) { > return robj; > } ># 2226 "numpy/core/src/multiarray/scalartypes.c.src" > if (type->tp_itemsize) { > itemsize = (((PyVarObject*)(robj))->ob_size); > } > else { > itemsize = 0; > } > obj = type->tp_alloc(type, itemsize); > if (obj == ((void *)0)) { > do { if ( --((PyObject*)(robj))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(robj)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(robj)))); } while (0); > return ((void *)0); > } > > typecode = PyArray_DescrFromType(NPY_SHORT); > dest = scalar_value(obj, typecode); > src = scalar_value(robj, typecode); > do { if ( --((PyObject*)(typecode))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(typecode)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(typecode)))); } while (0); > > *((npy_short *)dest) = *((npy_short *)src); > > > > > > > > do { if ( --((PyObject*)(robj))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(robj)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(robj)))); } while (0); > return obj; > >} ># 2142 "numpy/core/src/multiarray/scalartypes.c.src" ># 2150 "numpy/core/src/multiarray/scalartypes.c.src" >static PyObject * >int_arrtype_new(PyTypeObject *(type), PyObject *args, PyObject *(kwds)) >{ > PyObject *obj = ((void *)0); > PyObject *robj; > PyObject *arr; > PyArray_Descr *typecode = ((void *)0); > > int itemsize; > void *dest, *src; > > > > > > > if (type->tp_bases && ((((PyVarObject*)(type->tp_bases))->ob_size)==2)) { PyTypeObject *sup; sup = (PyTypeObject *)(((PyTupleObject *)(type->tp_bases))->ob_item[1]); robj = sup->tp_new(type, args, kwds); if (robj != ((void *)0)) goto finish; if ((((PyVarObject*)(args))->ob_size)!=1) return ((void *)0); PyErr_Clear(); } > > if (!_PyArg_ParseTuple_SizeT(args, "|O", &obj)) { > return ((void *)0); > } > typecode = PyArray_DescrFromType(NPY_INT); > > > > > if (obj == ((void *)0)) { > > char *mem = malloc(sizeof(npy_int)); > > memset(mem, 0, sizeof(npy_int)); > robj = PyArray_Scalar(mem, typecode, ((void *)0)); > free(mem); > > > > > > > do { if ( --((PyObject*)(typecode))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(typecode)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(typecode)))); } while (0); > goto finish; > } > > > > > > arr = PyArray_FromAny(obj, typecode, 0, 0, 0x0010, ((void *)0)); > if ((arr == ((void *)0)) || ((((PyArrayObject *)(arr))->nd) > 0)) { > return arr; > } > > robj = PyArray_Scalar(((void *)(((PyArrayObject *)(arr))->data)), (((PyArrayObject *)((PyArrayObject *)arr))->descr), (PyObject *)(PyArrayObject *)arr); > do { if ( --((PyObject*)(arr))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(arr)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(arr)))); } while (0); > >finish: ># 2215 "numpy/core/src/multiarray/scalartypes.c.src" > if ((robj == ((void *)0)) || ((((PyObject*)(robj))->ob_type) == type)) { > return robj; > } ># 2226 "numpy/core/src/multiarray/scalartypes.c.src" > if (type->tp_itemsize) { > itemsize = (((PyVarObject*)(robj))->ob_size); > } > else { > itemsize = 0; > } > obj = type->tp_alloc(type, itemsize); > if (obj == ((void *)0)) { > do { if ( --((PyObject*)(robj))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(robj)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(robj)))); } while (0); > return ((void *)0); > } > > typecode = PyArray_DescrFromType(NPY_INT); > dest = scalar_value(obj, typecode); > src = scalar_value(robj, typecode); > do { if ( --((PyObject*)(typecode))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(typecode)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(typecode)))); } while (0); > > *((npy_int *)dest) = *((npy_int *)src); > > > > > > > > do { if ( --((PyObject*)(robj))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(robj)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(robj)))); } while (0); > return obj; > >} ># 2142 "numpy/core/src/multiarray/scalartypes.c.src" ># 2150 "numpy/core/src/multiarray/scalartypes.c.src" >static PyObject * >long_arrtype_new(PyTypeObject *(type), PyObject *args, PyObject *(kwds)) >{ > PyObject *obj = ((void *)0); > PyObject *robj; > PyObject *arr; > PyArray_Descr *typecode = ((void *)0); > > int itemsize; > void *dest, *src; > > > > > > > if (type->tp_bases && ((((PyVarObject*)(type->tp_bases))->ob_size)==2)) { PyTypeObject *sup; sup = (PyTypeObject *)(((PyTupleObject *)(type->tp_bases))->ob_item[1]); robj = sup->tp_new(type, args, kwds); if (robj != ((void *)0)) goto finish; if ((((PyVarObject*)(args))->ob_size)!=1) return ((void *)0); PyErr_Clear(); } > > if (!_PyArg_ParseTuple_SizeT(args, "|O", &obj)) { > return ((void *)0); > } > typecode = PyArray_DescrFromType(NPY_LONG); > > > > > if (obj == ((void *)0)) { > > char *mem = malloc(sizeof(npy_long)); > > memset(mem, 0, sizeof(npy_long)); > robj = PyArray_Scalar(mem, typecode, ((void *)0)); > free(mem); > > > > > > > do { if ( --((PyObject*)(typecode))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(typecode)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(typecode)))); } while (0); > goto finish; > } > > > > > > arr = PyArray_FromAny(obj, typecode, 0, 0, 0x0010, ((void *)0)); > if ((arr == ((void *)0)) || ((((PyArrayObject *)(arr))->nd) > 0)) { > return arr; > } > > robj = PyArray_Scalar(((void *)(((PyArrayObject *)(arr))->data)), (((PyArrayObject *)((PyArrayObject *)arr))->descr), (PyObject *)(PyArrayObject *)arr); > do { if ( --((PyObject*)(arr))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(arr)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(arr)))); } while (0); > >finish: ># 2215 "numpy/core/src/multiarray/scalartypes.c.src" > if ((robj == ((void *)0)) || ((((PyObject*)(robj))->ob_type) == type)) { > return robj; > } ># 2226 "numpy/core/src/multiarray/scalartypes.c.src" > if (type->tp_itemsize) { > itemsize = (((PyVarObject*)(robj))->ob_size); > } > else { > itemsize = 0; > } > obj = type->tp_alloc(type, itemsize); > if (obj == ((void *)0)) { > do { if ( --((PyObject*)(robj))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(robj)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(robj)))); } while (0); > return ((void *)0); > } > > typecode = PyArray_DescrFromType(NPY_LONG); > dest = scalar_value(obj, typecode); > src = scalar_value(robj, typecode); > do { if ( --((PyObject*)(typecode))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(typecode)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(typecode)))); } while (0); > > *((npy_long *)dest) = *((npy_long *)src); > > > > > > > > do { if ( --((PyObject*)(robj))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(robj)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(robj)))); } while (0); > return obj; > >} ># 2142 "numpy/core/src/multiarray/scalartypes.c.src" ># 2150 "numpy/core/src/multiarray/scalartypes.c.src" >static PyObject * >longlong_arrtype_new(PyTypeObject *(type), PyObject *args, PyObject *(kwds)) >{ > PyObject *obj = ((void *)0); > PyObject *robj; > PyObject *arr; > PyArray_Descr *typecode = ((void *)0); > > int itemsize; > void *dest, *src; > > > > > > > if (type->tp_bases && ((((PyVarObject*)(type->tp_bases))->ob_size)==2)) { PyTypeObject *sup; sup = (PyTypeObject *)(((PyTupleObject *)(type->tp_bases))->ob_item[1]); robj = sup->tp_new(type, args, kwds); if (robj != ((void *)0)) goto finish; if ((((PyVarObject*)(args))->ob_size)!=1) return ((void *)0); PyErr_Clear(); } > > if (!_PyArg_ParseTuple_SizeT(args, "|O", &obj)) { > return ((void *)0); > } > typecode = PyArray_DescrFromType(NPY_LONGLONG); > > > > > if (obj == ((void *)0)) { > > char *mem = malloc(sizeof(npy_longlong)); > > memset(mem, 0, sizeof(npy_longlong)); > robj = PyArray_Scalar(mem, typecode, ((void *)0)); > free(mem); > > > > > > > do { if ( --((PyObject*)(typecode))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(typecode)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(typecode)))); } while (0); > goto finish; > } > > > > > > arr = PyArray_FromAny(obj, typecode, 0, 0, 0x0010, ((void *)0)); > if ((arr == ((void *)0)) || ((((PyArrayObject *)(arr))->nd) > 0)) { > return arr; > } > > robj = PyArray_Scalar(((void *)(((PyArrayObject *)(arr))->data)), (((PyArrayObject *)((PyArrayObject *)arr))->descr), (PyObject *)(PyArrayObject *)arr); > do { if ( --((PyObject*)(arr))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(arr)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(arr)))); } while (0); > >finish: ># 2215 "numpy/core/src/multiarray/scalartypes.c.src" > if ((robj == ((void *)0)) || ((((PyObject*)(robj))->ob_type) == type)) { > return robj; > } ># 2226 "numpy/core/src/multiarray/scalartypes.c.src" > if (type->tp_itemsize) { > itemsize = (((PyVarObject*)(robj))->ob_size); > } > else { > itemsize = 0; > } > obj = type->tp_alloc(type, itemsize); > if (obj == ((void *)0)) { > do { if ( --((PyObject*)(robj))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(robj)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(robj)))); } while (0); > return ((void *)0); > } > > typecode = PyArray_DescrFromType(NPY_LONGLONG); > dest = scalar_value(obj, typecode); > src = scalar_value(robj, typecode); > do { if ( --((PyObject*)(typecode))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(typecode)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(typecode)))); } while (0); > > *((npy_longlong *)dest) = *((npy_longlong *)src); > > > > > > > > do { if ( --((PyObject*)(robj))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(robj)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(robj)))); } while (0); > return obj; > >} ># 2142 "numpy/core/src/multiarray/scalartypes.c.src" ># 2150 "numpy/core/src/multiarray/scalartypes.c.src" >static PyObject * >ubyte_arrtype_new(PyTypeObject *(type), PyObject *args, PyObject *(__NPY_UNUSED_TAGGEDkwds) __attribute__ ((__unused__))) >{ > PyObject *obj = ((void *)0); > PyObject *robj; > PyObject *arr; > PyArray_Descr *typecode = ((void *)0); > > int itemsize; > void *dest, *src; > > > > > > > > > if (!_PyArg_ParseTuple_SizeT(args, "|O", &obj)) { > return ((void *)0); > } > typecode = PyArray_DescrFromType(NPY_UBYTE); > > > > > if (obj == ((void *)0)) { > > char *mem = malloc(sizeof(npy_ubyte)); > > memset(mem, 0, sizeof(npy_ubyte)); > robj = PyArray_Scalar(mem, typecode, ((void *)0)); > free(mem); > > > > > > > do { if ( --((PyObject*)(typecode))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(typecode)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(typecode)))); } while (0); > goto finish; > } > > > > > > arr = PyArray_FromAny(obj, typecode, 0, 0, 0x0010, ((void *)0)); > if ((arr == ((void *)0)) || ((((PyArrayObject *)(arr))->nd) > 0)) { > return arr; > } > > robj = PyArray_Scalar(((void *)(((PyArrayObject *)(arr))->data)), (((PyArrayObject *)((PyArrayObject *)arr))->descr), (PyObject *)(PyArrayObject *)arr); > do { if ( --((PyObject*)(arr))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(arr)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(arr)))); } while (0); > >finish: ># 2215 "numpy/core/src/multiarray/scalartypes.c.src" > if ((robj == ((void *)0)) || ((((PyObject*)(robj))->ob_type) == type)) { > return robj; > } ># 2226 "numpy/core/src/multiarray/scalartypes.c.src" > if (type->tp_itemsize) { > itemsize = (((PyVarObject*)(robj))->ob_size); > } > else { > itemsize = 0; > } > obj = type->tp_alloc(type, itemsize); > if (obj == ((void *)0)) { > do { if ( --((PyObject*)(robj))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(robj)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(robj)))); } while (0); > return ((void *)0); > } > > typecode = PyArray_DescrFromType(NPY_UBYTE); > dest = scalar_value(obj, typecode); > src = scalar_value(robj, typecode); > do { if ( --((PyObject*)(typecode))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(typecode)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(typecode)))); } while (0); > > *((npy_ubyte *)dest) = *((npy_ubyte *)src); > > > > > > > > do { if ( --((PyObject*)(robj))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(robj)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(robj)))); } while (0); > return obj; > >} ># 2142 "numpy/core/src/multiarray/scalartypes.c.src" ># 2150 "numpy/core/src/multiarray/scalartypes.c.src" >static PyObject * >ushort_arrtype_new(PyTypeObject *(type), PyObject *args, PyObject *(__NPY_UNUSED_TAGGEDkwds) __attribute__ ((__unused__))) >{ > PyObject *obj = ((void *)0); > PyObject *robj; > PyObject *arr; > PyArray_Descr *typecode = ((void *)0); > > int itemsize; > void *dest, *src; > > > > > > > > > if (!_PyArg_ParseTuple_SizeT(args, "|O", &obj)) { > return ((void *)0); > } > typecode = PyArray_DescrFromType(NPY_USHORT); > > > > > if (obj == ((void *)0)) { > > char *mem = malloc(sizeof(npy_ushort)); > > memset(mem, 0, sizeof(npy_ushort)); > robj = PyArray_Scalar(mem, typecode, ((void *)0)); > free(mem); > > > > > > > do { if ( --((PyObject*)(typecode))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(typecode)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(typecode)))); } while (0); > goto finish; > } > > > > > > arr = PyArray_FromAny(obj, typecode, 0, 0, 0x0010, ((void *)0)); > if ((arr == ((void *)0)) || ((((PyArrayObject *)(arr))->nd) > 0)) { > return arr; > } > > robj = PyArray_Scalar(((void *)(((PyArrayObject *)(arr))->data)), (((PyArrayObject *)((PyArrayObject *)arr))->descr), (PyObject *)(PyArrayObject *)arr); > do { if ( --((PyObject*)(arr))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(arr)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(arr)))); } while (0); > >finish: ># 2215 "numpy/core/src/multiarray/scalartypes.c.src" > if ((robj == ((void *)0)) || ((((PyObject*)(robj))->ob_type) == type)) { > return robj; > } ># 2226 "numpy/core/src/multiarray/scalartypes.c.src" > if (type->tp_itemsize) { > itemsize = (((PyVarObject*)(robj))->ob_size); > } > else { > itemsize = 0; > } > obj = type->tp_alloc(type, itemsize); > if (obj == ((void *)0)) { > do { if ( --((PyObject*)(robj))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(robj)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(robj)))); } while (0); > return ((void *)0); > } > > typecode = PyArray_DescrFromType(NPY_USHORT); > dest = scalar_value(obj, typecode); > src = scalar_value(robj, typecode); > do { if ( --((PyObject*)(typecode))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(typecode)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(typecode)))); } while (0); > > *((npy_ushort *)dest) = *((npy_ushort *)src); > > > > > > > > do { if ( --((PyObject*)(robj))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(robj)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(robj)))); } while (0); > return obj; > >} ># 2142 "numpy/core/src/multiarray/scalartypes.c.src" ># 2150 "numpy/core/src/multiarray/scalartypes.c.src" >static PyObject * >uint_arrtype_new(PyTypeObject *(type), PyObject *args, PyObject *(__NPY_UNUSED_TAGGEDkwds) __attribute__ ((__unused__))) >{ > PyObject *obj = ((void *)0); > PyObject *robj; > PyObject *arr; > PyArray_Descr *typecode = ((void *)0); > > int itemsize; > void *dest, *src; > > > > > > > > > if (!_PyArg_ParseTuple_SizeT(args, "|O", &obj)) { > return ((void *)0); > } > typecode = PyArray_DescrFromType(NPY_UINT); > > > > > if (obj == ((void *)0)) { > > char *mem = malloc(sizeof(npy_uint)); > > memset(mem, 0, sizeof(npy_uint)); > robj = PyArray_Scalar(mem, typecode, ((void *)0)); > free(mem); > > > > > > > do { if ( --((PyObject*)(typecode))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(typecode)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(typecode)))); } while (0); > goto finish; > } > > > > > > arr = PyArray_FromAny(obj, typecode, 0, 0, 0x0010, ((void *)0)); > if ((arr == ((void *)0)) || ((((PyArrayObject *)(arr))->nd) > 0)) { > return arr; > } > > robj = PyArray_Scalar(((void *)(((PyArrayObject *)(arr))->data)), (((PyArrayObject *)((PyArrayObject *)arr))->descr), (PyObject *)(PyArrayObject *)arr); > do { if ( --((PyObject*)(arr))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(arr)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(arr)))); } while (0); > >finish: ># 2215 "numpy/core/src/multiarray/scalartypes.c.src" > if ((robj == ((void *)0)) || ((((PyObject*)(robj))->ob_type) == type)) { > return robj; > } ># 2226 "numpy/core/src/multiarray/scalartypes.c.src" > if (type->tp_itemsize) { > itemsize = (((PyVarObject*)(robj))->ob_size); > } > else { > itemsize = 0; > } > obj = type->tp_alloc(type, itemsize); > if (obj == ((void *)0)) { > do { if ( --((PyObject*)(robj))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(robj)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(robj)))); } while (0); > return ((void *)0); > } > > typecode = PyArray_DescrFromType(NPY_UINT); > dest = scalar_value(obj, typecode); > src = scalar_value(robj, typecode); > do { if ( --((PyObject*)(typecode))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(typecode)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(typecode)))); } while (0); > > *((npy_uint *)dest) = *((npy_uint *)src); > > > > > > > > do { if ( --((PyObject*)(robj))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(robj)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(robj)))); } while (0); > return obj; > >} ># 2142 "numpy/core/src/multiarray/scalartypes.c.src" ># 2150 "numpy/core/src/multiarray/scalartypes.c.src" >static PyObject * >ulong_arrtype_new(PyTypeObject *(type), PyObject *args, PyObject *(__NPY_UNUSED_TAGGEDkwds) __attribute__ ((__unused__))) >{ > PyObject *obj = ((void *)0); > PyObject *robj; > PyObject *arr; > PyArray_Descr *typecode = ((void *)0); > > int itemsize; > void *dest, *src; > > > > > > > > > if (!_PyArg_ParseTuple_SizeT(args, "|O", &obj)) { > return ((void *)0); > } > typecode = PyArray_DescrFromType(NPY_ULONG); > > > > > if (obj == ((void *)0)) { > > char *mem = malloc(sizeof(npy_ulong)); > > memset(mem, 0, sizeof(npy_ulong)); > robj = PyArray_Scalar(mem, typecode, ((void *)0)); > free(mem); > > > > > > > do { if ( --((PyObject*)(typecode))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(typecode)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(typecode)))); } while (0); > goto finish; > } > > > > > > arr = PyArray_FromAny(obj, typecode, 0, 0, 0x0010, ((void *)0)); > if ((arr == ((void *)0)) || ((((PyArrayObject *)(arr))->nd) > 0)) { > return arr; > } > > robj = PyArray_Scalar(((void *)(((PyArrayObject *)(arr))->data)), (((PyArrayObject *)((PyArrayObject *)arr))->descr), (PyObject *)(PyArrayObject *)arr); > do { if ( --((PyObject*)(arr))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(arr)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(arr)))); } while (0); > >finish: ># 2215 "numpy/core/src/multiarray/scalartypes.c.src" > if ((robj == ((void *)0)) || ((((PyObject*)(robj))->ob_type) == type)) { > return robj; > } ># 2226 "numpy/core/src/multiarray/scalartypes.c.src" > if (type->tp_itemsize) { > itemsize = (((PyVarObject*)(robj))->ob_size); > } > else { > itemsize = 0; > } > obj = type->tp_alloc(type, itemsize); > if (obj == ((void *)0)) { > do { if ( --((PyObject*)(robj))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(robj)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(robj)))); } while (0); > return ((void *)0); > } > > typecode = PyArray_DescrFromType(NPY_ULONG); > dest = scalar_value(obj, typecode); > src = scalar_value(robj, typecode); > do { if ( --((PyObject*)(typecode))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(typecode)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(typecode)))); } while (0); > > *((npy_ulong *)dest) = *((npy_ulong *)src); > > > > > > > > do { if ( --((PyObject*)(robj))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(robj)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(robj)))); } while (0); > return obj; > >} ># 2142 "numpy/core/src/multiarray/scalartypes.c.src" ># 2150 "numpy/core/src/multiarray/scalartypes.c.src" >static PyObject * >ulonglong_arrtype_new(PyTypeObject *(type), PyObject *args, PyObject *(__NPY_UNUSED_TAGGEDkwds) __attribute__ ((__unused__))) >{ > PyObject *obj = ((void *)0); > PyObject *robj; > PyObject *arr; > PyArray_Descr *typecode = ((void *)0); > > int itemsize; > void *dest, *src; > > > > > > > > > if (!_PyArg_ParseTuple_SizeT(args, "|O", &obj)) { > return ((void *)0); > } > typecode = PyArray_DescrFromType(NPY_ULONGLONG); > > > > > if (obj == ((void *)0)) { > > char *mem = malloc(sizeof(npy_ulonglong)); > > memset(mem, 0, sizeof(npy_ulonglong)); > robj = PyArray_Scalar(mem, typecode, ((void *)0)); > free(mem); > > > > > > > do { if ( --((PyObject*)(typecode))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(typecode)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(typecode)))); } while (0); > goto finish; > } > > > > > > arr = PyArray_FromAny(obj, typecode, 0, 0, 0x0010, ((void *)0)); > if ((arr == ((void *)0)) || ((((PyArrayObject *)(arr))->nd) > 0)) { > return arr; > } > > robj = PyArray_Scalar(((void *)(((PyArrayObject *)(arr))->data)), (((PyArrayObject *)((PyArrayObject *)arr))->descr), (PyObject *)(PyArrayObject *)arr); > do { if ( --((PyObject*)(arr))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(arr)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(arr)))); } while (0); > >finish: ># 2215 "numpy/core/src/multiarray/scalartypes.c.src" > if ((robj == ((void *)0)) || ((((PyObject*)(robj))->ob_type) == type)) { > return robj; > } ># 2226 "numpy/core/src/multiarray/scalartypes.c.src" > if (type->tp_itemsize) { > itemsize = (((PyVarObject*)(robj))->ob_size); > } > else { > itemsize = 0; > } > obj = type->tp_alloc(type, itemsize); > if (obj == ((void *)0)) { > do { if ( --((PyObject*)(robj))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(robj)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(robj)))); } while (0); > return ((void *)0); > } > > typecode = PyArray_DescrFromType(NPY_ULONGLONG); > dest = scalar_value(obj, typecode); > src = scalar_value(robj, typecode); > do { if ( --((PyObject*)(typecode))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(typecode)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(typecode)))); } while (0); > > *((npy_ulonglong *)dest) = *((npy_ulonglong *)src); > > > > > > > > do { if ( --((PyObject*)(robj))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(robj)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(robj)))); } while (0); > return obj; > >} ># 2142 "numpy/core/src/multiarray/scalartypes.c.src" ># 2150 "numpy/core/src/multiarray/scalartypes.c.src" >static PyObject * >half_arrtype_new(PyTypeObject *(type), PyObject *args, PyObject *(__NPY_UNUSED_TAGGEDkwds) __attribute__ ((__unused__))) >{ > PyObject *obj = ((void *)0); > PyObject *robj; > PyObject *arr; > PyArray_Descr *typecode = ((void *)0); > > int itemsize; > void *dest, *src; > > > > > > > > > if (!_PyArg_ParseTuple_SizeT(args, "|O", &obj)) { > return ((void *)0); > } > typecode = PyArray_DescrFromType(NPY_HALF); > > > > > if (obj == ((void *)0)) { > > char *mem = malloc(sizeof(npy_half)); > > memset(mem, 0, sizeof(npy_half)); > robj = PyArray_Scalar(mem, typecode, ((void *)0)); > free(mem); > > > > > > > do { if ( --((PyObject*)(typecode))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(typecode)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(typecode)))); } while (0); > goto finish; > } > > > > > > arr = PyArray_FromAny(obj, typecode, 0, 0, 0x0010, ((void *)0)); > if ((arr == ((void *)0)) || ((((PyArrayObject *)(arr))->nd) > 0)) { > return arr; > } > > robj = PyArray_Scalar(((void *)(((PyArrayObject *)(arr))->data)), (((PyArrayObject *)((PyArrayObject *)arr))->descr), (PyObject *)(PyArrayObject *)arr); > do { if ( --((PyObject*)(arr))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(arr)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(arr)))); } while (0); > >finish: ># 2215 "numpy/core/src/multiarray/scalartypes.c.src" > if ((robj == ((void *)0)) || ((((PyObject*)(robj))->ob_type) == type)) { > return robj; > } ># 2226 "numpy/core/src/multiarray/scalartypes.c.src" > if (type->tp_itemsize) { > itemsize = (((PyVarObject*)(robj))->ob_size); > } > else { > itemsize = 0; > } > obj = type->tp_alloc(type, itemsize); > if (obj == ((void *)0)) { > do { if ( --((PyObject*)(robj))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(robj)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(robj)))); } while (0); > return ((void *)0); > } > > typecode = PyArray_DescrFromType(NPY_HALF); > dest = scalar_value(obj, typecode); > src = scalar_value(robj, typecode); > do { if ( --((PyObject*)(typecode))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(typecode)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(typecode)))); } while (0); > > *((npy_half *)dest) = *((npy_half *)src); > > > > > > > > do { if ( --((PyObject*)(robj))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(robj)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(robj)))); } while (0); > return obj; > >} ># 2142 "numpy/core/src/multiarray/scalartypes.c.src" ># 2150 "numpy/core/src/multiarray/scalartypes.c.src" >static PyObject * >float_arrtype_new(PyTypeObject *(type), PyObject *args, PyObject *(__NPY_UNUSED_TAGGEDkwds) __attribute__ ((__unused__))) >{ > PyObject *obj = ((void *)0); > PyObject *robj; > PyObject *arr; > PyArray_Descr *typecode = ((void *)0); > > int itemsize; > void *dest, *src; > > > > > > > > > if (!_PyArg_ParseTuple_SizeT(args, "|O", &obj)) { > return ((void *)0); > } > typecode = PyArray_DescrFromType(NPY_FLOAT); > > > > > if (obj == ((void *)0)) { > > char *mem = malloc(sizeof(npy_float)); > > memset(mem, 0, sizeof(npy_float)); > robj = PyArray_Scalar(mem, typecode, ((void *)0)); > free(mem); > > > > > > > do { if ( --((PyObject*)(typecode))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(typecode)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(typecode)))); } while (0); > goto finish; > } > > > > > > arr = PyArray_FromAny(obj, typecode, 0, 0, 0x0010, ((void *)0)); > if ((arr == ((void *)0)) || ((((PyArrayObject *)(arr))->nd) > 0)) { > return arr; > } > > robj = PyArray_Scalar(((void *)(((PyArrayObject *)(arr))->data)), (((PyArrayObject *)((PyArrayObject *)arr))->descr), (PyObject *)(PyArrayObject *)arr); > do { if ( --((PyObject*)(arr))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(arr)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(arr)))); } while (0); > >finish: ># 2215 "numpy/core/src/multiarray/scalartypes.c.src" > if ((robj == ((void *)0)) || ((((PyObject*)(robj))->ob_type) == type)) { > return robj; > } ># 2226 "numpy/core/src/multiarray/scalartypes.c.src" > if (type->tp_itemsize) { > itemsize = (((PyVarObject*)(robj))->ob_size); > } > else { > itemsize = 0; > } > obj = type->tp_alloc(type, itemsize); > if (obj == ((void *)0)) { > do { if ( --((PyObject*)(robj))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(robj)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(robj)))); } while (0); > return ((void *)0); > } > > typecode = PyArray_DescrFromType(NPY_FLOAT); > dest = scalar_value(obj, typecode); > src = scalar_value(robj, typecode); > do { if ( --((PyObject*)(typecode))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(typecode)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(typecode)))); } while (0); > > *((npy_float *)dest) = *((npy_float *)src); > > > > > > > > do { if ( --((PyObject*)(robj))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(robj)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(robj)))); } while (0); > return obj; > >} ># 2142 "numpy/core/src/multiarray/scalartypes.c.src" ># 2150 "numpy/core/src/multiarray/scalartypes.c.src" >static PyObject * >double_arrtype_new(PyTypeObject *(type), PyObject *args, PyObject *(kwds)) >{ > PyObject *obj = ((void *)0); > PyObject *robj; > PyObject *arr; > PyArray_Descr *typecode = ((void *)0); > > int itemsize; > void *dest, *src; > > > > > > > if (type->tp_bases && ((((PyVarObject*)(type->tp_bases))->ob_size)==2)) { PyTypeObject *sup; sup = (PyTypeObject *)(((PyTupleObject *)(type->tp_bases))->ob_item[1]); robj = sup->tp_new(type, args, kwds); if (robj != ((void *)0)) goto finish; if ((((PyVarObject*)(args))->ob_size)!=1) return ((void *)0); PyErr_Clear(); } > > if (!_PyArg_ParseTuple_SizeT(args, "|O", &obj)) { > return ((void *)0); > } > typecode = PyArray_DescrFromType(NPY_DOUBLE); > > > > > if (obj == ((void *)0)) { > > char *mem = malloc(sizeof(npy_double)); > > memset(mem, 0, sizeof(npy_double)); > robj = PyArray_Scalar(mem, typecode, ((void *)0)); > free(mem); > > > > > > > do { if ( --((PyObject*)(typecode))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(typecode)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(typecode)))); } while (0); > goto finish; > } > > > > > > arr = PyArray_FromAny(obj, typecode, 0, 0, 0x0010, ((void *)0)); > if ((arr == ((void *)0)) || ((((PyArrayObject *)(arr))->nd) > 0)) { > return arr; > } > > robj = PyArray_Scalar(((void *)(((PyArrayObject *)(arr))->data)), (((PyArrayObject *)((PyArrayObject *)arr))->descr), (PyObject *)(PyArrayObject *)arr); > do { if ( --((PyObject*)(arr))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(arr)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(arr)))); } while (0); > >finish: ># 2215 "numpy/core/src/multiarray/scalartypes.c.src" > if ((robj == ((void *)0)) || ((((PyObject*)(robj))->ob_type) == type)) { > return robj; > } ># 2226 "numpy/core/src/multiarray/scalartypes.c.src" > if (type->tp_itemsize) { > itemsize = (((PyVarObject*)(robj))->ob_size); > } > else { > itemsize = 0; > } > obj = type->tp_alloc(type, itemsize); > if (obj == ((void *)0)) { > do { if ( --((PyObject*)(robj))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(robj)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(robj)))); } while (0); > return ((void *)0); > } > > typecode = PyArray_DescrFromType(NPY_DOUBLE); > dest = scalar_value(obj, typecode); > src = scalar_value(robj, typecode); > do { if ( --((PyObject*)(typecode))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(typecode)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(typecode)))); } while (0); > > *((npy_double *)dest) = *((npy_double *)src); > > > > > > > > do { if ( --((PyObject*)(robj))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(robj)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(robj)))); } while (0); > return obj; > >} ># 2142 "numpy/core/src/multiarray/scalartypes.c.src" ># 2150 "numpy/core/src/multiarray/scalartypes.c.src" >static PyObject * >longdouble_arrtype_new(PyTypeObject *(type), PyObject *args, PyObject *(__NPY_UNUSED_TAGGEDkwds) __attribute__ ((__unused__))) >{ > PyObject *obj = ((void *)0); > PyObject *robj; > PyObject *arr; > PyArray_Descr *typecode = ((void *)0); > > int itemsize; > void *dest, *src; > > > > > > > > > if (!_PyArg_ParseTuple_SizeT(args, "|O", &obj)) { > return ((void *)0); > } > typecode = PyArray_DescrFromType(NPY_LONGDOUBLE); > > > > > if (obj == ((void *)0)) { > > char *mem = malloc(sizeof(npy_longdouble)); > > memset(mem, 0, sizeof(npy_longdouble)); > robj = PyArray_Scalar(mem, typecode, ((void *)0)); > free(mem); > > > > > > > do { if ( --((PyObject*)(typecode))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(typecode)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(typecode)))); } while (0); > goto finish; > } > > > > > > arr = PyArray_FromAny(obj, typecode, 0, 0, 0x0010, ((void *)0)); > if ((arr == ((void *)0)) || ((((PyArrayObject *)(arr))->nd) > 0)) { > return arr; > } > > robj = PyArray_Scalar(((void *)(((PyArrayObject *)(arr))->data)), (((PyArrayObject *)((PyArrayObject *)arr))->descr), (PyObject *)(PyArrayObject *)arr); > do { if ( --((PyObject*)(arr))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(arr)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(arr)))); } while (0); > >finish: ># 2215 "numpy/core/src/multiarray/scalartypes.c.src" > if ((robj == ((void *)0)) || ((((PyObject*)(robj))->ob_type) == type)) { > return robj; > } ># 2226 "numpy/core/src/multiarray/scalartypes.c.src" > if (type->tp_itemsize) { > itemsize = (((PyVarObject*)(robj))->ob_size); > } > else { > itemsize = 0; > } > obj = type->tp_alloc(type, itemsize); > if (obj == ((void *)0)) { > do { if ( --((PyObject*)(robj))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(robj)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(robj)))); } while (0); > return ((void *)0); > } > > typecode = PyArray_DescrFromType(NPY_LONGDOUBLE); > dest = scalar_value(obj, typecode); > src = scalar_value(robj, typecode); > do { if ( --((PyObject*)(typecode))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(typecode)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(typecode)))); } while (0); > > *((npy_longdouble *)dest) = *((npy_longdouble *)src); > > > > > > > > do { if ( --((PyObject*)(robj))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(robj)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(robj)))); } while (0); > return obj; > >} ># 2142 "numpy/core/src/multiarray/scalartypes.c.src" ># 2150 "numpy/core/src/multiarray/scalartypes.c.src" >static PyObject * >cfloat_arrtype_new(PyTypeObject *(type), PyObject *args, PyObject *(__NPY_UNUSED_TAGGEDkwds) __attribute__ ((__unused__))) >{ > PyObject *obj = ((void *)0); > PyObject *robj; > PyObject *arr; > PyArray_Descr *typecode = ((void *)0); > > int itemsize; > void *dest, *src; > > > > > > > > > if (!_PyArg_ParseTuple_SizeT(args, "|O", &obj)) { > return ((void *)0); > } > typecode = PyArray_DescrFromType(NPY_CFLOAT); > > > > > if (obj == ((void *)0)) { > > char *mem = malloc(sizeof(npy_cfloat)); > > memset(mem, 0, sizeof(npy_cfloat)); > robj = PyArray_Scalar(mem, typecode, ((void *)0)); > free(mem); > > > > > > > do { if ( --((PyObject*)(typecode))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(typecode)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(typecode)))); } while (0); > goto finish; > } > > > > > > arr = PyArray_FromAny(obj, typecode, 0, 0, 0x0010, ((void *)0)); > if ((arr == ((void *)0)) || ((((PyArrayObject *)(arr))->nd) > 0)) { > return arr; > } > > robj = PyArray_Scalar(((void *)(((PyArrayObject *)(arr))->data)), (((PyArrayObject *)((PyArrayObject *)arr))->descr), (PyObject *)(PyArrayObject *)arr); > do { if ( --((PyObject*)(arr))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(arr)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(arr)))); } while (0); > >finish: ># 2215 "numpy/core/src/multiarray/scalartypes.c.src" > if ((robj == ((void *)0)) || ((((PyObject*)(robj))->ob_type) == type)) { > return robj; > } ># 2226 "numpy/core/src/multiarray/scalartypes.c.src" > if (type->tp_itemsize) { > itemsize = (((PyVarObject*)(robj))->ob_size); > } > else { > itemsize = 0; > } > obj = type->tp_alloc(type, itemsize); > if (obj == ((void *)0)) { > do { if ( --((PyObject*)(robj))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(robj)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(robj)))); } while (0); > return ((void *)0); > } > > typecode = PyArray_DescrFromType(NPY_CFLOAT); > dest = scalar_value(obj, typecode); > src = scalar_value(robj, typecode); > do { if ( --((PyObject*)(typecode))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(typecode)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(typecode)))); } while (0); > > *((npy_cfloat *)dest) = *((npy_cfloat *)src); > > > > > > > > do { if ( --((PyObject*)(robj))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(robj)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(robj)))); } while (0); > return obj; > >} ># 2142 "numpy/core/src/multiarray/scalartypes.c.src" ># 2150 "numpy/core/src/multiarray/scalartypes.c.src" >static PyObject * >cdouble_arrtype_new(PyTypeObject *(type), PyObject *args, PyObject *(__NPY_UNUSED_TAGGEDkwds) __attribute__ ((__unused__))) >{ > PyObject *obj = ((void *)0); > PyObject *robj; > PyObject *arr; > PyArray_Descr *typecode = ((void *)0); > > int itemsize; > void *dest, *src; > > > > > > > > > if (!_PyArg_ParseTuple_SizeT(args, "|O", &obj)) { > return ((void *)0); > } > typecode = PyArray_DescrFromType(NPY_CDOUBLE); > > > > > if (obj == ((void *)0)) { > > char *mem = malloc(sizeof(npy_cdouble)); > > memset(mem, 0, sizeof(npy_cdouble)); > robj = PyArray_Scalar(mem, typecode, ((void *)0)); > free(mem); > > > > > > > do { if ( --((PyObject*)(typecode))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(typecode)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(typecode)))); } while (0); > goto finish; > } > > > > > > arr = PyArray_FromAny(obj, typecode, 0, 0, 0x0010, ((void *)0)); > if ((arr == ((void *)0)) || ((((PyArrayObject *)(arr))->nd) > 0)) { > return arr; > } > > robj = PyArray_Scalar(((void *)(((PyArrayObject *)(arr))->data)), (((PyArrayObject *)((PyArrayObject *)arr))->descr), (PyObject *)(PyArrayObject *)arr); > do { if ( --((PyObject*)(arr))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(arr)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(arr)))); } while (0); > >finish: ># 2215 "numpy/core/src/multiarray/scalartypes.c.src" > if ((robj == ((void *)0)) || ((((PyObject*)(robj))->ob_type) == type)) { > return robj; > } ># 2226 "numpy/core/src/multiarray/scalartypes.c.src" > if (type->tp_itemsize) { > itemsize = (((PyVarObject*)(robj))->ob_size); > } > else { > itemsize = 0; > } > obj = type->tp_alloc(type, itemsize); > if (obj == ((void *)0)) { > do { if ( --((PyObject*)(robj))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(robj)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(robj)))); } while (0); > return ((void *)0); > } > > typecode = PyArray_DescrFromType(NPY_CDOUBLE); > dest = scalar_value(obj, typecode); > src = scalar_value(robj, typecode); > do { if ( --((PyObject*)(typecode))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(typecode)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(typecode)))); } while (0); > > *((npy_cdouble *)dest) = *((npy_cdouble *)src); > > > > > > > > do { if ( --((PyObject*)(robj))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(robj)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(robj)))); } while (0); > return obj; > >} ># 2142 "numpy/core/src/multiarray/scalartypes.c.src" ># 2150 "numpy/core/src/multiarray/scalartypes.c.src" >static PyObject * >clongdouble_arrtype_new(PyTypeObject *(type), PyObject *args, PyObject *(__NPY_UNUSED_TAGGEDkwds) __attribute__ ((__unused__))) >{ > PyObject *obj = ((void *)0); > PyObject *robj; > PyObject *arr; > PyArray_Descr *typecode = ((void *)0); > > int itemsize; > void *dest, *src; > > > > > > > > > if (!_PyArg_ParseTuple_SizeT(args, "|O", &obj)) { > return ((void *)0); > } > typecode = PyArray_DescrFromType(NPY_CLONGDOUBLE); > > > > > if (obj == ((void *)0)) { > > char *mem = malloc(sizeof(npy_clongdouble)); > > memset(mem, 0, sizeof(npy_clongdouble)); > robj = PyArray_Scalar(mem, typecode, ((void *)0)); > free(mem); > > > > > > > do { if ( --((PyObject*)(typecode))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(typecode)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(typecode)))); } while (0); > goto finish; > } > > > > > > arr = PyArray_FromAny(obj, typecode, 0, 0, 0x0010, ((void *)0)); > if ((arr == ((void *)0)) || ((((PyArrayObject *)(arr))->nd) > 0)) { > return arr; > } > > robj = PyArray_Scalar(((void *)(((PyArrayObject *)(arr))->data)), (((PyArrayObject *)((PyArrayObject *)arr))->descr), (PyObject *)(PyArrayObject *)arr); > do { if ( --((PyObject*)(arr))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(arr)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(arr)))); } while (0); > >finish: ># 2215 "numpy/core/src/multiarray/scalartypes.c.src" > if ((robj == ((void *)0)) || ((((PyObject*)(robj))->ob_type) == type)) { > return robj; > } ># 2226 "numpy/core/src/multiarray/scalartypes.c.src" > if (type->tp_itemsize) { > itemsize = (((PyVarObject*)(robj))->ob_size); > } > else { > itemsize = 0; > } > obj = type->tp_alloc(type, itemsize); > if (obj == ((void *)0)) { > do { if ( --((PyObject*)(robj))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(robj)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(robj)))); } while (0); > return ((void *)0); > } > > typecode = PyArray_DescrFromType(NPY_CLONGDOUBLE); > dest = scalar_value(obj, typecode); > src = scalar_value(robj, typecode); > do { if ( --((PyObject*)(typecode))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(typecode)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(typecode)))); } while (0); > > *((npy_clongdouble *)dest) = *((npy_clongdouble *)src); > > > > > > > > do { if ( --((PyObject*)(robj))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(robj)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(robj)))); } while (0); > return obj; > >} ># 2142 "numpy/core/src/multiarray/scalartypes.c.src" ># 2150 "numpy/core/src/multiarray/scalartypes.c.src" >static PyObject * >string_arrtype_new(PyTypeObject *(type), PyObject *args, PyObject *(kwds)) >{ > PyObject *obj = ((void *)0); > PyObject *robj; > PyObject *arr; > PyArray_Descr *typecode = ((void *)0); > > int itemsize; > void *dest, *src; > > > > > > > if (type->tp_bases && ((((PyVarObject*)(type->tp_bases))->ob_size)==2)) { PyTypeObject *sup; sup = (PyTypeObject *)(((PyTupleObject *)(type->tp_bases))->ob_item[0]); robj = sup->tp_new(type, args, kwds); if (robj != ((void *)0)) goto finish; if ((((PyVarObject*)(args))->ob_size)!=1) return ((void *)0); PyErr_Clear(); } > > if (!_PyArg_ParseTuple_SizeT(args, "|O", &obj)) { > return ((void *)0); > } > typecode = PyArray_DescrFromType(NPY_STRING); > > > > > if (obj == ((void *)0)) { > > > > > > > > robj = PyArray_Scalar(((void *)0), typecode, ((void *)0)); > > > > > do { if ( --((PyObject*)(typecode))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(typecode)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(typecode)))); } while (0); > goto finish; > } > > > > > > arr = PyArray_FromAny(obj, typecode, 0, 0, 0x0010, ((void *)0)); > if ((arr == ((void *)0)) || ((((PyArrayObject *)(arr))->nd) > 0)) { > return arr; > } > > robj = PyArray_Scalar(((void *)(((PyArrayObject *)(arr))->data)), (((PyArrayObject *)((PyArrayObject *)arr))->descr), (PyObject *)(PyArrayObject *)arr); > do { if ( --((PyObject*)(arr))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(arr)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(arr)))); } while (0); > >finish: ># 2215 "numpy/core/src/multiarray/scalartypes.c.src" > if ((robj == ((void *)0)) || ((((PyObject*)(robj))->ob_type) == type)) { > return robj; > } ># 2226 "numpy/core/src/multiarray/scalartypes.c.src" > if (type->tp_itemsize) { > itemsize = (((PyVarObject*)(robj))->ob_size); > } > else { > itemsize = 0; > } > obj = type->tp_alloc(type, itemsize); > if (obj == ((void *)0)) { > do { if ( --((PyObject*)(robj))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(robj)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(robj)))); } while (0); > return ((void *)0); > } > > typecode = PyArray_DescrFromType(NPY_STRING); > dest = scalar_value(obj, typecode); > src = scalar_value(robj, typecode); > do { if ( --((PyObject*)(typecode))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(typecode)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(typecode)))); } while (0); > > > > if (itemsize == 0) { > itemsize = ((PyUnicodeObject *)robj)->length * sizeof(Py_UNICODE); > } > memcpy(dest, src, itemsize); > > > do { if ( --((PyObject*)(robj))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(robj)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(robj)))); } while (0); > return obj; > >} ># 2142 "numpy/core/src/multiarray/scalartypes.c.src" ># 2150 "numpy/core/src/multiarray/scalartypes.c.src" >static PyObject * >unicode_arrtype_new(PyTypeObject *(type), PyObject *args, PyObject *(kwds)) >{ > PyObject *obj = ((void *)0); > PyObject *robj; > PyObject *arr; > PyArray_Descr *typecode = ((void *)0); > > int itemsize; > void *dest, *src; > > > > > > > if (type->tp_bases && ((((PyVarObject*)(type->tp_bases))->ob_size)==2)) { PyTypeObject *sup; sup = (PyTypeObject *)(((PyTupleObject *)(type->tp_bases))->ob_item[0]); robj = sup->tp_new(type, args, kwds); if (robj != ((void *)0)) goto finish; if ((((PyVarObject*)(args))->ob_size)!=1) return ((void *)0); PyErr_Clear(); } > > if (!_PyArg_ParseTuple_SizeT(args, "|O", &obj)) { > return ((void *)0); > } > typecode = PyArray_DescrFromType(NPY_UNICODE); > > > > > if (obj == ((void *)0)) { > > > > > > > > robj = PyArray_Scalar(((void *)0), typecode, ((void *)0)); > > > > > do { if ( --((PyObject*)(typecode))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(typecode)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(typecode)))); } while (0); > goto finish; > } > > > > > > arr = PyArray_FromAny(obj, typecode, 0, 0, 0x0010, ((void *)0)); > if ((arr == ((void *)0)) || ((((PyArrayObject *)(arr))->nd) > 0)) { > return arr; > } > > robj = PyArray_Scalar(((void *)(((PyArrayObject *)(arr))->data)), (((PyArrayObject *)((PyArrayObject *)arr))->descr), (PyObject *)(PyArrayObject *)arr); > do { if ( --((PyObject*)(arr))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(arr)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(arr)))); } while (0); > >finish: ># 2215 "numpy/core/src/multiarray/scalartypes.c.src" > if ((robj == ((void *)0)) || ((((PyObject*)(robj))->ob_type) == type)) { > return robj; > } ># 2226 "numpy/core/src/multiarray/scalartypes.c.src" > if (type->tp_itemsize) { > itemsize = (((PyVarObject*)(robj))->ob_size); > } > else { > itemsize = 0; > } > obj = type->tp_alloc(type, itemsize); > if (obj == ((void *)0)) { > do { if ( --((PyObject*)(robj))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(robj)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(robj)))); } while (0); > return ((void *)0); > } > > typecode = PyArray_DescrFromType(NPY_UNICODE); > dest = scalar_value(obj, typecode); > src = scalar_value(robj, typecode); > do { if ( --((PyObject*)(typecode))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(typecode)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(typecode)))); } while (0); > > > > if (itemsize == 0) { > itemsize = ((PyUnicodeObject *)robj)->length * sizeof(Py_UNICODE); > } > memcpy(dest, src, itemsize); > > > do { if ( --((PyObject*)(robj))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(robj)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(robj)))); } while (0); > return obj; > >} ># 2142 "numpy/core/src/multiarray/scalartypes.c.src" ># 2150 "numpy/core/src/multiarray/scalartypes.c.src" >static PyObject * >object_arrtype_new(PyTypeObject *(__NPY_UNUSED_TAGGEDtype) __attribute__ ((__unused__)), PyObject *args, PyObject *(__NPY_UNUSED_TAGGEDkwds) __attribute__ ((__unused__))) >{ > PyObject *obj = ((void *)0); > PyObject *robj; > PyObject *arr; > PyArray_Descr *typecode = ((void *)0); ># 2166 "numpy/core/src/multiarray/scalartypes.c.src" > > > if (!_PyArg_ParseTuple_SizeT(args, "|O", &obj)) { > return ((void *)0); > } > typecode = PyArray_DescrFromType(NPY_OBJECT); > > > > > if (obj == ((void *)0)) { ># 2186 "numpy/core/src/multiarray/scalartypes.c.src" > ( ((PyObject*)((&_Py_NoneStruct)))->ob_refcnt++); > robj = (&_Py_NoneStruct); > > do { if ( --((PyObject*)(typecode))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(typecode)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(typecode)))); } while (0); > goto finish; > } > > > > > > arr = PyArray_FromAny(obj, typecode, 0, 0, 0x0010, ((void *)0)); > if ((arr == ((void *)0)) || ((((PyArrayObject *)(arr))->nd) > 0)) { > return arr; > } > > robj = PyArray_Scalar(((void *)(((PyArrayObject *)(arr))->data)), (((PyArrayObject *)((PyArrayObject *)arr))->descr), (PyObject *)(PyArrayObject *)arr); > do { if ( --((PyObject*)(arr))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(arr)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(arr)))); } while (0); > >finish: > > > > > > > return robj; ># 2254 "numpy/core/src/multiarray/scalartypes.c.src" >} ># 2142 "numpy/core/src/multiarray/scalartypes.c.src" ># 2150 "numpy/core/src/multiarray/scalartypes.c.src" >static PyObject * >datetime_arrtype_new(PyTypeObject *(type), PyObject *args, PyObject *(__NPY_UNUSED_TAGGEDkwds) __attribute__ ((__unused__))) >{ > PyObject *obj = ((void *)0); > PyObject *robj; > PyObject *arr; > PyArray_Descr *typecode = ((void *)0); > > int itemsize; > void *dest, *src; > > > > > > > > > if (!_PyArg_ParseTuple_SizeT(args, "|O", &obj)) { > return ((void *)0); > } > typecode = PyArray_DescrFromType(NPY_DATETIME); > > > > > if (obj == ((void *)0)) { > > char *mem = malloc(sizeof(npy_datetime)); > > memset(mem, 0, sizeof(npy_datetime)); > robj = PyArray_Scalar(mem, typecode, ((void *)0)); > free(mem); > > > > > > > do { if ( --((PyObject*)(typecode))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(typecode)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(typecode)))); } while (0); > goto finish; > } > > > > > > arr = PyArray_FromAny(obj, typecode, 0, 0, 0x0010, ((void *)0)); > if ((arr == ((void *)0)) || ((((PyArrayObject *)(arr))->nd) > 0)) { > return arr; > } > > robj = PyArray_Scalar(((void *)(((PyArrayObject *)(arr))->data)), (((PyArrayObject *)((PyArrayObject *)arr))->descr), (PyObject *)(PyArrayObject *)arr); > do { if ( --((PyObject*)(arr))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(arr)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(arr)))); } while (0); > >finish: ># 2215 "numpy/core/src/multiarray/scalartypes.c.src" > if ((robj == ((void *)0)) || ((((PyObject*)(robj))->ob_type) == type)) { > return robj; > } ># 2226 "numpy/core/src/multiarray/scalartypes.c.src" > if (type->tp_itemsize) { > itemsize = (((PyVarObject*)(robj))->ob_size); > } > else { > itemsize = 0; > } > obj = type->tp_alloc(type, itemsize); > if (obj == ((void *)0)) { > do { if ( --((PyObject*)(robj))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(robj)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(robj)))); } while (0); > return ((void *)0); > } > > typecode = PyArray_DescrFromType(NPY_DATETIME); > dest = scalar_value(obj, typecode); > src = scalar_value(robj, typecode); > do { if ( --((PyObject*)(typecode))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(typecode)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(typecode)))); } while (0); > > *((npy_datetime *)dest) = *((npy_datetime *)src); > > > > > > > > do { if ( --((PyObject*)(robj))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(robj)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(robj)))); } while (0); > return obj; > >} ># 2142 "numpy/core/src/multiarray/scalartypes.c.src" ># 2150 "numpy/core/src/multiarray/scalartypes.c.src" >static PyObject * >timedelta_arrtype_new(PyTypeObject *(type), PyObject *args, PyObject *(__NPY_UNUSED_TAGGEDkwds) __attribute__ ((__unused__))) >{ > PyObject *obj = ((void *)0); > PyObject *robj; > PyObject *arr; > PyArray_Descr *typecode = ((void *)0); > > int itemsize; > void *dest, *src; > > > > > > > > > if (!_PyArg_ParseTuple_SizeT(args, "|O", &obj)) { > return ((void *)0); > } > typecode = PyArray_DescrFromType(NPY_TIMEDELTA); > > > > > if (obj == ((void *)0)) { > > char *mem = malloc(sizeof(npy_timedelta)); > > memset(mem, 0, sizeof(npy_timedelta)); > robj = PyArray_Scalar(mem, typecode, ((void *)0)); > free(mem); > > > > > > > do { if ( --((PyObject*)(typecode))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(typecode)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(typecode)))); } while (0); > goto finish; > } > > > > > > arr = PyArray_FromAny(obj, typecode, 0, 0, 0x0010, ((void *)0)); > if ((arr == ((void *)0)) || ((((PyArrayObject *)(arr))->nd) > 0)) { > return arr; > } > > robj = PyArray_Scalar(((void *)(((PyArrayObject *)(arr))->data)), (((PyArrayObject *)((PyArrayObject *)arr))->descr), (PyObject *)(PyArrayObject *)arr); > do { if ( --((PyObject*)(arr))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(arr)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(arr)))); } while (0); > >finish: ># 2215 "numpy/core/src/multiarray/scalartypes.c.src" > if ((robj == ((void *)0)) || ((((PyObject*)(robj))->ob_type) == type)) { > return robj; > } ># 2226 "numpy/core/src/multiarray/scalartypes.c.src" > if (type->tp_itemsize) { > itemsize = (((PyVarObject*)(robj))->ob_size); > } > else { > itemsize = 0; > } > obj = type->tp_alloc(type, itemsize); > if (obj == ((void *)0)) { > do { if ( --((PyObject*)(robj))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(robj)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(robj)))); } while (0); > return ((void *)0); > } > > typecode = PyArray_DescrFromType(NPY_TIMEDELTA); > dest = scalar_value(obj, typecode); > src = scalar_value(robj, typecode); > do { if ( --((PyObject*)(typecode))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(typecode)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(typecode)))); } while (0); > > *((npy_timedelta *)dest) = *((npy_timedelta *)src); > > > > > > > > do { if ( --((PyObject*)(robj))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(robj)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(robj)))); } while (0); > return obj; > >} ># 2263 "numpy/core/src/multiarray/scalartypes.c.src" >static PyObject * >bool_arrtype_new(PyTypeObject *(__NPY_UNUSED_TAGGEDtype) __attribute__ ((__unused__)), PyObject *args, PyObject *(__NPY_UNUSED_TAGGEDkwds) __attribute__ ((__unused__))) >{ > PyObject *obj = ((void *)0); > PyObject *arr; > > if (!_PyArg_ParseTuple_SizeT(args, "|O", &obj)) { > return ((void *)0); > } > if (obj == ((void *)0)) { > return ( ((PyObject*)(((PyObject *)(&(_PyArrayScalar_BoolValues[0])))))->ob_refcnt++), ((PyObject *)(&(_PyArrayScalar_BoolValues[0]))); > } > if (obj == ((PyObject *) &_Py_ZeroStruct)) { > return ( ((PyObject*)(((PyObject *)(&(_PyArrayScalar_BoolValues[0])))))->ob_refcnt++), ((PyObject *)(&(_PyArrayScalar_BoolValues[0]))); > } > if (obj == ((PyObject *) &_Py_TrueStruct)) { > return ( ((PyObject*)(((PyObject *)(&(_PyArrayScalar_BoolValues[1])))))->ob_refcnt++), ((PyObject *)(&(_PyArrayScalar_BoolValues[1]))); > } > arr = PyArray_FromAny(obj, PyArray_DescrFromType(NPY_BOOL), 0, 0, (((0x0010) & 0x0020) ? ((0x0010) | (0x0001 | (0x0100 | 0x0400))) : (0x0010)), ((void *)0)); > if (arr && 0 == (((PyArrayObject *)(arr))->nd)) { > npy_bool val = *((npy_bool *)((void *)(((PyArrayObject *)(arr))->data))); > do { if ( --((PyObject*)(arr))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(arr)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(arr)))); } while (0); > return ( ((PyObject*)(((PyObject *)(&(_PyArrayScalar_BoolValues[((val)!=0)])))))->ob_refcnt++), ((PyObject *)(&(_PyArrayScalar_BoolValues[((val)!=0)]))); > } > return PyArray_Return((PyArrayObject *)arr); >} > >static PyObject * >bool_arrtype_and(PyObject *a, PyObject *b) >{ > if ((((((PyObject*)(a))->ob_type) == (&PyBoolArrType_Type) || PyType_IsSubtype((((PyObject*)(a))->ob_type), (&PyBoolArrType_Type)))) && (((((PyObject*)(b))->ob_type) == (&PyBoolArrType_Type) || PyType_IsSubtype((((PyObject*)(b))->ob_type), (&PyBoolArrType_Type))))) { > return ( ((PyObject*)(((PyObject *)(&(_PyArrayScalar_BoolValues[(((a == ((PyObject *)(&(_PyArrayScalar_BoolValues[1]))))&(b == ((PyObject *)(&(_PyArrayScalar_BoolValues[1])))))!=0)])))))->ob_refcnt++), ((PyObject *)(&(_PyArrayScalar_BoolValues[(((a == ((PyObject *)(&(_PyArrayScalar_BoolValues[1]))))&(b == ((PyObject *)(&(_PyArrayScalar_BoolValues[1])))))!=0)]))); > > } > return PyGenericArrType_Type.tp_as_number->nb_and(a, b); >} > >static PyObject * >bool_arrtype_or(PyObject *a, PyObject *b) >{ > if ((((((PyObject*)(a))->ob_type) == (&PyBoolArrType_Type) || PyType_IsSubtype((((PyObject*)(a))->ob_type), (&PyBoolArrType_Type)))) && (((((PyObject*)(b))->ob_type) == (&PyBoolArrType_Type) || PyType_IsSubtype((((PyObject*)(b))->ob_type), (&PyBoolArrType_Type))))) { > return ( ((PyObject*)(((PyObject *)(&(_PyArrayScalar_BoolValues[(((a == ((PyObject *)(&(_PyArrayScalar_BoolValues[1]))))|(b == ((PyObject *)(&(_PyArrayScalar_BoolValues[1])))))!=0)])))))->ob_refcnt++), ((PyObject *)(&(_PyArrayScalar_BoolValues[(((a == ((PyObject *)(&(_PyArrayScalar_BoolValues[1]))))|(b == ((PyObject *)(&(_PyArrayScalar_BoolValues[1])))))!=0)]))); > > } > return PyGenericArrType_Type.tp_as_number->nb_or(a, b); >} > >static PyObject * >bool_arrtype_xor(PyObject *a, PyObject *b) >{ > if ((((((PyObject*)(a))->ob_type) == (&PyBoolArrType_Type) || PyType_IsSubtype((((PyObject*)(a))->ob_type), (&PyBoolArrType_Type)))) && (((((PyObject*)(b))->ob_type) == (&PyBoolArrType_Type) || PyType_IsSubtype((((PyObject*)(b))->ob_type), (&PyBoolArrType_Type))))) { > return ( ((PyObject*)(((PyObject *)(&(_PyArrayScalar_BoolValues[(((a == ((PyObject *)(&(_PyArrayScalar_BoolValues[1]))))^(b == ((PyObject *)(&(_PyArrayScalar_BoolValues[1])))))!=0)])))))->ob_refcnt++), ((PyObject *)(&(_PyArrayScalar_BoolValues[(((a == ((PyObject *)(&(_PyArrayScalar_BoolValues[1]))))^(b == ((PyObject *)(&(_PyArrayScalar_BoolValues[1])))))!=0)]))); > > } > return PyGenericArrType_Type.tp_as_number->nb_xor(a, b); >} > >static int >bool_arrtype_nonzero(PyObject *a) >{ > return a == ((PyObject *)(&(_PyArrayScalar_BoolValues[1]))); >} ># 2335 "numpy/core/src/multiarray/scalartypes.c.src" >static PyNumberMethods byte_arrtype_as_number; >static PyObject * >byte_index(PyObject *self) >{ > return PyInt_FromLong(((PyByteScalarObject *)self)->obval); >} ># 2335 "numpy/core/src/multiarray/scalartypes.c.src" >static PyNumberMethods short_arrtype_as_number; >static PyObject * >short_index(PyObject *self) >{ > return PyInt_FromLong(((PyShortScalarObject *)self)->obval); >} ># 2335 "numpy/core/src/multiarray/scalartypes.c.src" >static PyNumberMethods int_arrtype_as_number; >static PyObject * >int_index(PyObject *self) >{ > return PyInt_FromLong(((PyIntScalarObject *)self)->obval); >} ># 2335 "numpy/core/src/multiarray/scalartypes.c.src" >static PyNumberMethods long_arrtype_as_number; >static PyObject * >long_index(PyObject *self) >{ > return PyInt_FromLong(((PyLongScalarObject *)self)->obval); >} ># 2335 "numpy/core/src/multiarray/scalartypes.c.src" >static PyNumberMethods ubyte_arrtype_as_number; >static PyObject * >ubyte_index(PyObject *self) >{ > return PyInt_FromLong(((PyUByteScalarObject *)self)->obval); >} ># 2335 "numpy/core/src/multiarray/scalartypes.c.src" >static PyNumberMethods ushort_arrtype_as_number; >static PyObject * >ushort_index(PyObject *self) >{ > return PyInt_FromLong(((PyUShortScalarObject *)self)->obval); >} ># 2335 "numpy/core/src/multiarray/scalartypes.c.src" >static PyNumberMethods longlong_arrtype_as_number; >static PyObject * >longlong_index(PyObject *self) >{ > return PyLong_FromLongLong(((PyLongLongScalarObject *)self)->obval); >} ># 2335 "numpy/core/src/multiarray/scalartypes.c.src" >static PyNumberMethods uint_arrtype_as_number; >static PyObject * >uint_index(PyObject *self) >{ > return PyLong_FromUnsignedLong(((PyUIntScalarObject *)self)->obval); >} ># 2335 "numpy/core/src/multiarray/scalartypes.c.src" >static PyNumberMethods ulong_arrtype_as_number; >static PyObject * >ulong_index(PyObject *self) >{ > return PyLong_FromUnsignedLong(((PyULongScalarObject *)self)->obval); >} ># 2335 "numpy/core/src/multiarray/scalartypes.c.src" >static PyNumberMethods ulonglong_arrtype_as_number; >static PyObject * >ulonglong_index(PyObject *self) >{ > return PyLong_FromUnsignedLongLong(((PyULongLongScalarObject *)self)->obval); >} > > >static PyObject * >bool_index(PyObject *a) >{ > return PyInt_FromLong(((PyBoolScalarObject *)a)->obval); >} > > > >static PyNumberMethods bool_arrtype_as_number = { > 0, > 0, > 0, > > > 0, > > 0, > 0, > 0, > 0, > 0, > 0, > (inquiry)bool_arrtype_nonzero, > 0, > 0, > 0, > (binaryfunc)bool_arrtype_and, > (binaryfunc)bool_arrtype_xor, > (binaryfunc)bool_arrtype_or, > > > 0, > > 0, > > > > 0, > > 0, > > > 0, > 0, > > > 0, > 0, > 0, > > > 0, > > 0, > 0, > 0, > 0, > 0, > 0, > 0, > > > 0, > 0, > 0, > 0, > > > 0, > >}; > >static PyObject * >void_arrtype_new(PyTypeObject *type, PyObject *args, PyObject *(__NPY_UNUSED_TAGGEDkwds) __attribute__ ((__unused__))) >{ > PyObject *obj, *arr; > npy_ulonglong memu = 1; > PyObject *new = ((void *)0); > char *destptr; > > if (!_PyArg_ParseTuple_SizeT(args, "O", &obj)) { > return ((void *)0); > } > > > > > if (((((((PyObject*)(obj))->ob_type))->tp_flags & ((1L<<24))) != 0) || ((((obj)->ob_type)->tp_flags & ((1L<<23))) != 0) || > (((((PyObject*)(obj))->ob_type) == (&PyIntegerArrType_Type) || PyType_IsSubtype((((PyObject*)(obj))->ob_type), (&PyIntegerArrType_Type)))) || > (((((PyObject*)(obj))->ob_type) == (&PyArray_Type) || PyType_IsSubtype((((PyObject*)(obj))->ob_type), (&PyArray_Type))) && (((PyArrayObject *)(obj))->nd)==0 && > ((((((PyArrayObject *)(obj))->descr->type_num)) >= NPY_BYTE) && (((((PyArrayObject *)(obj))->descr->type_num)) <= NPY_ULONGLONG)))) { > > > > new = (((PyObject*)(obj))->ob_type)->tp_as_number->nb_long(obj); > > } > if (new && ((((((PyObject*)(new))->ob_type))->tp_flags & ((1L<<24))) != 0)) { > PyObject *ret; > memu = PyLong_AsUnsignedLongLong(new); > do { if ( --((PyObject*)(new))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(new)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(new)))); } while (0); > if (PyErr_Occurred() || (memu > 2147483647)) { > PyErr_Clear(); > PyErr_Format(PyExc_OverflowError, > "size must be smaller than %d", > (int) 2147483647); > return ((void *)0); > } > destptr = ((char *)malloc((int) memu)); > if (destptr == ((void *)0)) { > return PyErr_NoMemory(); > } > ret = type->tp_alloc(type, 0); > if (ret == ((void *)0)) { > free(destptr); > return PyErr_NoMemory(); > } > ((PyVoidScalarObject *)ret)->obval = destptr; > (((PyVarObject*)((PyVoidScalarObject *)ret))->ob_size) = (int) memu; > ((PyVoidScalarObject *)ret)->descr = > PyArray_DescrNewFromType(NPY_VOID); > ((PyVoidScalarObject *)ret)->descr->elsize = (int) memu; > ((PyVoidScalarObject *)ret)->flags = (0x0100 | 0x0400) | 0x0004; > ((PyVoidScalarObject *)ret)->base = ((void *)0); > memset(destptr, '\0', (size_t) memu); > return ret; > } > > arr = PyArray_FromAny(obj, PyArray_DescrFromType(NPY_VOID), 0, 0, (((0x0010) & 0x0020) ? ((0x0010) | (0x0001 | (0x0100 | 0x0400))) : (0x0010)), ((void *)0)); > return PyArray_Return((PyArrayObject *)arr); >} ># 2482 "numpy/core/src/multiarray/scalartypes.c.src" >static long >bool_arrtype_hash(PyObject *obj) >{ > return (long)(((PyBoolScalarObject *)obj)->obval); >} ># 2482 "numpy/core/src/multiarray/scalartypes.c.src" >static long >ubyte_arrtype_hash(PyObject *obj) >{ > return (long)(((PyUByteScalarObject *)obj)->obval); >} ># 2482 "numpy/core/src/multiarray/scalartypes.c.src" >static long >ushort_arrtype_hash(PyObject *obj) >{ > return (long)(((PyUShortScalarObject *)obj)->obval); >} ># 2493 "numpy/core/src/multiarray/scalartypes.c.src" >static long >byte_arrtype_hash(PyObject *obj) >{ > long x = (long)(((PyByteScalarObject *)obj)->obval); > if (x == -1) { > x = -2; > } > return x; >} ># 2493 "numpy/core/src/multiarray/scalartypes.c.src" >static long >short_arrtype_hash(PyObject *obj) >{ > long x = (long)(((PyShortScalarObject *)obj)->obval); > if (x == -1) { > x = -2; > } > return x; >} ># 2493 "numpy/core/src/multiarray/scalartypes.c.src" >static long >uint_arrtype_hash(PyObject *obj) >{ > long x = (long)(((PyUIntScalarObject *)obj)->obval); > if (x == -1) { > x = -2; > } > return x; >} ># 2493 "numpy/core/src/multiarray/scalartypes.c.src" >static long >ulong_arrtype_hash(PyObject *obj) >{ > long x = (long)(((PyULongScalarObject *)obj)->obval); > if (x == -1) { > x = -2; > } > return x; >} > > > >static long >int_arrtype_hash(PyObject *obj) >{ > long x = (long)(((PyIntScalarObject *)obj)->obval); > if (x == -1) { > x = -2; > } > return x; >} ># 2521 "numpy/core/src/multiarray/scalartypes.c.src" ># 2548 "numpy/core/src/multiarray/scalartypes.c.src" >static long >longlong_arrtype_hash(PyObject *obj) >{ > long x = (long)(((PyLongLongScalarObject *)obj)->obval); > if (x == -1) { > x = -2; > } > return x; >} ># 2521 "numpy/core/src/multiarray/scalartypes.c.src" ># 2548 "numpy/core/src/multiarray/scalartypes.c.src" >static long >ulonglong_arrtype_hash(PyObject *obj) >{ > long x = (long)(((PyULongLongScalarObject *)obj)->obval); > if (x == -1) { > x = -2; > } > return x; >} ># 2566 "numpy/core/src/multiarray/scalartypes.c.src" > >static long >datetime_arrtype_hash(PyObject *obj) >{ > long x = (long)(((PyDatetimeScalarObject *)obj)->obval); > if (x == -1) { > x = -2; > } > return x; >} ># 2566 "numpy/core/src/multiarray/scalartypes.c.src" > >static long >timedelta_arrtype_hash(PyObject *obj) >{ > long x = (long)(((PyTimedeltaScalarObject *)obj)->obval); > if (x == -1) { > x = -2; > } > return x; >} ># 2611 "numpy/core/src/multiarray/scalartypes.c.src" >static long >float_arrtype_hash(PyObject *obj) >{ > return _Py_HashDouble((double) ((PyFloatScalarObject *)obj)->obval); >} > > >static long >cfloat_arrtype_hash(PyObject *obj) >{ > long hashreal, hashimag, combined; > hashreal = _Py_HashDouble((double) > (((PyCFloatScalarObject *)obj)->obval).real); > > if (hashreal == -1) { > return -1; > } > hashimag = _Py_HashDouble((double) > (((PyCFloatScalarObject *)obj)->obval).imag); > if (hashimag == -1) { > return -1; > } > combined = hashreal + 1000003 * hashimag; > if (combined == -1) { > combined = -2; > } > return combined; >} ># 2611 "numpy/core/src/multiarray/scalartypes.c.src" >static long >longdouble_arrtype_hash(PyObject *obj) >{ > return _Py_HashDouble((double) ((PyLongDoubleScalarObject *)obj)->obval); >} > > >static long >clongdouble_arrtype_hash(PyObject *obj) >{ > long hashreal, hashimag, combined; > hashreal = _Py_HashDouble((double) > (((PyCLongDoubleScalarObject *)obj)->obval).real); > > if (hashreal == -1) { > return -1; > } > hashimag = _Py_HashDouble((double) > (((PyCLongDoubleScalarObject *)obj)->obval).imag); > if (hashimag == -1) { > return -1; > } > combined = hashreal + 1000003 * hashimag; > if (combined == -1) { > combined = -2; > } > return combined; >} > > >static long >half_arrtype_hash(PyObject *obj) >{ > return _Py_HashDouble(npy_half_to_double(((PyHalfScalarObject *)obj)->obval)); >} > >static long >object_arrtype_hash(PyObject *obj) >{ > return PyObject_Hash(((PyObjectScalarObject *)obj)->obval); >} > > >static long >void_arrtype_hash(PyObject *obj) >{ > return _Py_HashPointer((void *)(((PyVoidScalarObject *)obj)->obval)); >} > > >static PyObject * >object_arrtype_getattro(PyObjectScalarObject *obj, PyObject *attr) { > PyObject *res; > > > > res = PyObject_GenericGetAttr(obj->obval, attr); > if (res) { > return res; > } > PyErr_Clear(); > return PyObject_GenericGetAttr((PyObject *)obj, attr); >} > >static int >object_arrtype_setattro(PyObjectScalarObject *obj, PyObject *attr, PyObject *val) { > int res; > > > res = PyObject_GenericSetAttr(obj->obval, attr, val); > if (res >= 0) { > return res; > } > PyErr_Clear(); > return PyObject_GenericSetAttr((PyObject *)obj, attr, val); >} > >static PyObject * >object_arrtype_concat(PyObjectScalarObject *self, PyObject *other) >{ > return PySequence_Concat(self->obval, other); >} > >static Py_ssize_t >object_arrtype_length(PyObjectScalarObject *self) >{ > return PyObject_Size(self->obval); >} > >static PyObject * >object_arrtype_repeat(PyObjectScalarObject *self, Py_ssize_t count) >{ > return PySequence_Repeat(self->obval, count); >} > >static PyObject * >object_arrtype_subscript(PyObjectScalarObject *self, PyObject *key) >{ > return PyObject_GetItem(self->obval, key); >} > >static int >object_arrtype_ass_subscript(PyObjectScalarObject *self, PyObject *key, > PyObject *value) >{ > return PyObject_SetItem(self->obval, key, value); >} > >static int >object_arrtype_contains(PyObjectScalarObject *self, PyObject *ob) >{ > return PySequence_Contains(self->obval, ob); >} > >static PyObject * >object_arrtype_inplace_concat(PyObjectScalarObject *self, PyObject *o) >{ > return PySequence_InPlaceConcat(self->obval, o); >} > >static PyObject * >object_arrtype_inplace_repeat(PyObjectScalarObject *self, Py_ssize_t count) >{ > return PySequence_InPlaceRepeat(self->obval, count); >} > >static PySequenceMethods object_arrtype_as_sequence = { > > (lenfunc)object_arrtype_length, > (binaryfunc)object_arrtype_concat, > (ssizeargfunc)object_arrtype_repeat, > 0, > 0, > 0, > 0, > (objobjproc)object_arrtype_contains, > (binaryfunc)object_arrtype_inplace_concat, > (ssizeargfunc)object_arrtype_inplace_repeat, ># 2761 "numpy/core/src/multiarray/scalartypes.c.src" >}; > >static PyMappingMethods object_arrtype_as_mapping = { > > (lenfunc)object_arrtype_length, > (binaryfunc)object_arrtype_subscript, > (objobjargproc)object_arrtype_ass_subscript, > > > > > >}; > > >static Py_ssize_t >object_arrtype_getsegcount(PyObjectScalarObject *self, Py_ssize_t *lenp) >{ > Py_ssize_t newlen; > int cnt; > PyBufferProcs *pb = (((PyObject*)(self->obval))->ob_type)->tp_as_buffer; > > if (pb == ((void *)0) || > pb->bf_getsegcount == ((void *)0) || > (cnt = (*pb->bf_getsegcount)(self->obval, &newlen)) != 1) { > return 0; > } > if (lenp) { > *lenp = newlen; > } > return cnt; >} > >static Py_ssize_t >object_arrtype_getreadbuf(PyObjectScalarObject *self, Py_ssize_t segment, void **ptrptr) >{ > PyBufferProcs *pb = (((PyObject*)(self->obval))->ob_type)->tp_as_buffer; > > if (pb == ((void *)0) || > pb->bf_getreadbuffer == ((void *)0) || > pb->bf_getsegcount == ((void *)0)) { > PyErr_SetString(PyExc_TypeError, > "expected a readable buffer object"); > return -1; > } > return (*pb->bf_getreadbuffer)(self->obval, segment, ptrptr); >} > >static Py_ssize_t >object_arrtype_getwritebuf(PyObjectScalarObject *self, Py_ssize_t segment, void **ptrptr) >{ > PyBufferProcs *pb = (((PyObject*)(self->obval))->ob_type)->tp_as_buffer; > > if (pb == ((void *)0) || > pb->bf_getwritebuffer == ((void *)0) || > pb->bf_getsegcount == ((void *)0)) { > PyErr_SetString(PyExc_TypeError, > "expected a writeable buffer object"); > return -1; > } > return (*pb->bf_getwritebuffer)(self->obval, segment, ptrptr); >} > >static Py_ssize_t >object_arrtype_getcharbuf(PyObjectScalarObject *self, Py_ssize_t segment, > char **ptrptr) >{ > PyBufferProcs *pb = (((PyObject*)(self->obval))->ob_type)->tp_as_buffer; > > if (pb == ((void *)0) || > pb->bf_getcharbuffer == ((void *)0) || > pb->bf_getsegcount == ((void *)0)) { > PyErr_SetString(PyExc_TypeError, > "expected a character buffer object"); > return -1; > } > return (*pb->bf_getcharbuffer)(self->obval, segment, ptrptr); >} > > > >static int >object_arrtype_getbuffer(PyObjectScalarObject *self, Py_buffer *view, int flags) >{ > PyBufferProcs *pb = (((PyObject*)(self->obval))->ob_type)->tp_as_buffer; > if (pb == ((void *)0) || pb->bf_getbuffer == ((void *)0)) { > PyErr_SetString(PyExc_TypeError, > "expected a readable buffer object"); > return -1; > } > return (*pb->bf_getbuffer)(self->obval, view, flags); >} > >static void >object_arrtype_releasebuffer(PyObjectScalarObject *self, Py_buffer *view) >{ > PyBufferProcs *pb = (((PyObject*)(self->obval))->ob_type)->tp_as_buffer; > if (pb == ((void *)0)) { > PyErr_SetString(PyExc_TypeError, > "expected a readable buffer object"); > return; > } > if (pb->bf_releasebuffer != ((void *)0)) { > (*pb->bf_releasebuffer)(self->obval, view); > } >} > > >static PyBufferProcs object_arrtype_as_buffer = { > > > (readbufferproc)object_arrtype_getreadbuf, > (writebufferproc)object_arrtype_getwritebuf, > (segcountproc)object_arrtype_getsegcount, > (charbufferproc)object_arrtype_getcharbuf, ># 2884 "numpy/core/src/multiarray/scalartypes.c.src" > (getbufferproc)object_arrtype_getbuffer, > (releasebufferproc)object_arrtype_releasebuffer, > >}; > >static PyObject * >object_arrtype_call(PyObjectScalarObject *obj, PyObject *args, PyObject *kwds) >{ > return PyObject_Call(obj->obval, args, kwds); >} > >static PyTypeObject PyObjectArrType_Type = { > > > > 1, ((void *)0), > 0, > > "numpy.object_", > sizeof(PyObjectScalarObject), > 0, > (destructor)object_arrtype_dealloc, > 0, > 0, > 0, > > > > 0, > > 0, > 0, > &object_arrtype_as_sequence, > &object_arrtype_as_mapping, > 0, > (ternaryfunc)object_arrtype_call, > 0, > (getattrofunc)object_arrtype_getattro, > (setattrofunc)object_arrtype_setattro, > &object_arrtype_as_buffer, > 0, > 0, > 0, > 0, > 0, > 0, > 0, > 0, > 0, > 0, > 0, > 0, > 0, > 0, > 0, > 0, > 0, > 0, > 0, > 0, > 0, > 0, > 0, > 0, > 0, > 0, > 0, > > 0, > >}; > >static PyObject * >gen_arrtype_subscript(PyObject *self, PyObject *key) >{ > > > > > > > > PyObject *res, *ret; > int N; > > if (key == (&_Py_EllipsisObject) || key == (&_Py_NoneStruct) || > ((((((PyObject*)(key))->ob_type))->tp_flags & ((1L<<26))) != 0)) { > res = PyArray_FromScalar(self, ((void *)0)); > } > else { > PyErr_SetString(PyExc_IndexError, > "invalid index to scalar variable."); > return ((void *)0); > } > if (key == (&_Py_EllipsisObject)) { > return res; > } > if (key == (&_Py_NoneStruct)) { > ret = add_new_axes_0d((PyArrayObject *)res, 1); > do { if ( --((PyObject*)(res))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(res)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(res)))); } while (0); > return ret; > } > > N = count_new_axes_0d(key); > if (N < 0) { > return ((void *)0); > } > ret = add_new_axes_0d((PyArrayObject *)res, N); > do { if ( --((PyObject*)(res))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(res)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(res)))); } while (0); > return ret; >} ># 3012 "numpy/core/src/multiarray/scalartypes.c.src" >static PyTypeObject PyBoolArrType_Type = { > > > > 1, ((void *)0), > 0, > > "numpy." "bool" "_", > sizeof(PyBoolScalarObject), > 0, > 0, > 0, > 0, > 0, > > > > 0, > > 0, > 0, > 0, > 0, > 0, > 0, > 0, > 0, > 0, > 0, > 0, > 0, > 0, > 0, > 0, > 0, > 0, > 0, > 0, > 0, > 0, > 0, > 0, > 0, > 0, > 0, > 0, > 0, > 0, > 0, > 0, > 0, > 0, > 0, > 0, > 0, > 0, > > 0, > >}; ># 3012 "numpy/core/src/multiarray/scalartypes.c.src" >static PyTypeObject PyStringArrType_Type = { > > > > 1, ((void *)0), > 0, > > "numpy." "string" "_", > sizeof(PyStringObject), > 0, > 0, > 0, > 0, > 0, > > > > 0, > > 0, > 0, > 0, > 0, > 0, > 0, > 0, > 0, > 0, > 0, > 0, > 0, > 0, > 0, > 0, > 0, > 0, > 0, > 0, > 0, > 0, > 0, > 0, > 0, > 0, > 0, > 0, > 0, > 0, > 0, > 0, > 0, > 0, > 0, > 0, > 0, > 0, > > 0, > >}; ># 3012 "numpy/core/src/multiarray/scalartypes.c.src" >static PyTypeObject PyUnicodeArrType_Type = { > > > > 1, ((void *)0), > 0, > > "numpy." "unicode" "_", > sizeof(PyUnicodeObject), > 0, > 0, > 0, > 0, > 0, > > > > 0, > > 0, > 0, > 0, > 0, > 0, > 0, > 0, > 0, > 0, > 0, > 0, > 0, > 0, > 0, > 0, > 0, > 0, > 0, > 0, > 0, > 0, > 0, > 0, > 0, > 0, > 0, > 0, > 0, > 0, > 0, > 0, > 0, > 0, > 0, > 0, > 0, > 0, > > 0, > >}; ># 3012 "numpy/core/src/multiarray/scalartypes.c.src" >static PyTypeObject PyVoidArrType_Type = { > > > > 1, ((void *)0), > 0, > > "numpy." "void" "", > sizeof(PyVoidScalarObject), > 0, > 0, > 0, > 0, > 0, > > > > 0, > > 0, > 0, > 0, > 0, > 0, > 0, > 0, > 0, > 0, > 0, > 0, > 0, > 0, > 0, > 0, > 0, > 0, > 0, > 0, > 0, > 0, > 0, > 0, > 0, > 0, > 0, > 0, > 0, > 0, > 0, > 0, > 0, > 0, > 0, > 0, > 0, > 0, > > 0, > >}; ># 3086 "numpy/core/src/multiarray/scalartypes.c.src" ># 3103 "numpy/core/src/multiarray/scalartypes.c.src" >static PyTypeObject PyByteArrType_Type = { > > > > 1, ((void *)0), > 0, > > "numpy.int" "8", > sizeof(PyByteScalarObject), > 0, > 0, > 0, > 0, > 0, > > > > 0, > > 0, > 0, > 0, > 0, > 0, > 0, > 0, > 0, > 0, > 0, > 0, > 0, > 0, > 0, > 0, > 0, > 0, > 0, > 0, > 0, > 0, > 0, > 0, > 0, > 0, > 0, > 0, > 0, > 0, > 0, > 0, > 0, > 0, > 0, > 0, > 0, > 0, > > 0, > >}; ># 3086 "numpy/core/src/multiarray/scalartypes.c.src" ># 3103 "numpy/core/src/multiarray/scalartypes.c.src" >static PyTypeObject PyShortArrType_Type = { > > > > 1, ((void *)0), > 0, > > "numpy.int" "16", > sizeof(PyShortScalarObject), > 0, > 0, > 0, > 0, > 0, > > > > 0, > > 0, > 0, > 0, > 0, > 0, > 0, > 0, > 0, > 0, > 0, > 0, > 0, > 0, > 0, > 0, > 0, > 0, > 0, > 0, > 0, > 0, > 0, > 0, > 0, > 0, > 0, > 0, > 0, > 0, > 0, > 0, > 0, > 0, > 0, > 0, > 0, > 0, > > 0, > >}; ># 3086 "numpy/core/src/multiarray/scalartypes.c.src" ># 3103 "numpy/core/src/multiarray/scalartypes.c.src" >static PyTypeObject PyIntArrType_Type = { > > > > 1, ((void *)0), > 0, > > "numpy.int" "32", > sizeof(PyIntScalarObject), > 0, > 0, > 0, > 0, > 0, > > > > 0, > > 0, > 0, > 0, > 0, > 0, > 0, > 0, > 0, > 0, > 0, > 0, > 0, > 0, > 0, > 0, > 0, > 0, > 0, > 0, > 0, > 0, > 0, > 0, > 0, > 0, > 0, > 0, > 0, > 0, > 0, > 0, > 0, > 0, > 0, > 0, > 0, > 0, > > 0, > >}; ># 3086 "numpy/core/src/multiarray/scalartypes.c.src" ># 3103 "numpy/core/src/multiarray/scalartypes.c.src" >static PyTypeObject PyLongArrType_Type = { > > > > 1, ((void *)0), > 0, > > "numpy.int" "64", > sizeof(PyLongScalarObject), > 0, > 0, > 0, > 0, > 0, > > > > 0, > > 0, > 0, > 0, > 0, > 0, > 0, > 0, > 0, > 0, > 0, > 0, > 0, > 0, > 0, > 0, > 0, > 0, > 0, > 0, > 0, > 0, > 0, > 0, > 0, > 0, > 0, > 0, > 0, > 0, > 0, > 0, > 0, > 0, > 0, > 0, > 0, > 0, > > 0, > >}; ># 3086 "numpy/core/src/multiarray/scalartypes.c.src" ># 3103 "numpy/core/src/multiarray/scalartypes.c.src" >static PyTypeObject PyLongLongArrType_Type = { > > > > 1, ((void *)0), > 0, > > "numpy.int" "64", > sizeof(PyLongLongScalarObject), > 0, > 0, > 0, > 0, > 0, > > > > 0, > > 0, > 0, > 0, > 0, > 0, > 0, > 0, > 0, > 0, > 0, > 0, > 0, > 0, > 0, > 0, > 0, > 0, > 0, > 0, > 0, > 0, > 0, > 0, > 0, > 0, > 0, > 0, > 0, > 0, > 0, > 0, > 0, > 0, > 0, > 0, > 0, > 0, > > 0, > >}; ># 3086 "numpy/core/src/multiarray/scalartypes.c.src" ># 3103 "numpy/core/src/multiarray/scalartypes.c.src" >static PyTypeObject PyUByteArrType_Type = { > > > > 1, ((void *)0), > 0, > > "numpy.uint" "8", > sizeof(PyUByteScalarObject), > 0, > 0, > 0, > 0, > 0, > > > > 0, > > 0, > 0, > 0, > 0, > 0, > 0, > 0, > 0, > 0, > 0, > 0, > 0, > 0, > 0, > 0, > 0, > 0, > 0, > 0, > 0, > 0, > 0, > 0, > 0, > 0, > 0, > 0, > 0, > 0, > 0, > 0, > 0, > 0, > 0, > 0, > 0, > 0, > > 0, > >}; ># 3086 "numpy/core/src/multiarray/scalartypes.c.src" ># 3103 "numpy/core/src/multiarray/scalartypes.c.src" >static PyTypeObject PyUShortArrType_Type = { > > > > 1, ((void *)0), > 0, > > "numpy.uint" "16", > sizeof(PyUShortScalarObject), > 0, > 0, > 0, > 0, > 0, > > > > 0, > > 0, > 0, > 0, > 0, > 0, > 0, > 0, > 0, > 0, > 0, > 0, > 0, > 0, > 0, > 0, > 0, > 0, > 0, > 0, > 0, > 0, > 0, > 0, > 0, > 0, > 0, > 0, > 0, > 0, > 0, > 0, > 0, > 0, > 0, > 0, > 0, > 0, > > 0, > >}; ># 3086 "numpy/core/src/multiarray/scalartypes.c.src" ># 3103 "numpy/core/src/multiarray/scalartypes.c.src" >static PyTypeObject PyUIntArrType_Type = { > > > > 1, ((void *)0), > 0, > > "numpy.uint" "32", > sizeof(PyUIntScalarObject), > 0, > 0, > 0, > 0, > 0, > > > > 0, > > 0, > 0, > 0, > 0, > 0, > 0, > 0, > 0, > 0, > 0, > 0, > 0, > 0, > 0, > 0, > 0, > 0, > 0, > 0, > 0, > 0, > 0, > 0, > 0, > 0, > 0, > 0, > 0, > 0, > 0, > 0, > 0, > 0, > 0, > 0, > 0, > 0, > > 0, > >}; ># 3086 "numpy/core/src/multiarray/scalartypes.c.src" ># 3103 "numpy/core/src/multiarray/scalartypes.c.src" >static PyTypeObject PyULongArrType_Type = { > > > > 1, ((void *)0), > 0, > > "numpy.uint" "64", > sizeof(PyULongScalarObject), > 0, > 0, > 0, > 0, > 0, > > > > 0, > > 0, > 0, > 0, > 0, > 0, > 0, > 0, > 0, > 0, > 0, > 0, > 0, > 0, > 0, > 0, > 0, > 0, > 0, > 0, > 0, > 0, > 0, > 0, > 0, > 0, > 0, > 0, > 0, > 0, > 0, > 0, > 0, > 0, > 0, > 0, > 0, > 0, > > 0, > >}; ># 3086 "numpy/core/src/multiarray/scalartypes.c.src" ># 3103 "numpy/core/src/multiarray/scalartypes.c.src" >static PyTypeObject PyULongLongArrType_Type = { > > > > 1, ((void *)0), > 0, > > "numpy.uint" "64", > sizeof(PyULongLongScalarObject), > 0, > 0, > 0, > 0, > 0, > > > > 0, > > 0, > 0, > 0, > 0, > 0, > 0, > 0, > 0, > 0, > 0, > 0, > 0, > 0, > 0, > 0, > 0, > 0, > 0, > 0, > 0, > 0, > 0, > 0, > 0, > 0, > 0, > 0, > 0, > 0, > 0, > 0, > 0, > 0, > 0, > 0, > 0, > 0, > > 0, > >}; ># 3086 "numpy/core/src/multiarray/scalartypes.c.src" ># 3103 "numpy/core/src/multiarray/scalartypes.c.src" >static PyTypeObject PyHalfArrType_Type = { > > > > 1, ((void *)0), > 0, > > "numpy.float" "16", > sizeof(PyHalfScalarObject), > 0, > 0, > 0, > 0, > 0, > > > > 0, > > 0, > 0, > 0, > 0, > 0, > 0, > 0, > 0, > 0, > 0, > 0, > 0, > 0, > 0, > 0, > 0, > 0, > 0, > 0, > 0, > 0, > 0, > 0, > 0, > 0, > 0, > 0, > 0, > 0, > 0, > 0, > 0, > 0, > 0, > 0, > 0, > 0, > > 0, > >}; ># 3086 "numpy/core/src/multiarray/scalartypes.c.src" ># 3103 "numpy/core/src/multiarray/scalartypes.c.src" >static PyTypeObject PyFloatArrType_Type = { > > > > 1, ((void *)0), > 0, > > "numpy.float" "32", > sizeof(PyFloatScalarObject), > 0, > 0, > 0, > 0, > 0, > > > > 0, > > 0, > 0, > 0, > 0, > 0, > 0, > 0, > 0, > 0, > 0, > 0, > 0, > 0, > 0, > 0, > 0, > 0, > 0, > 0, > 0, > 0, > 0, > 0, > 0, > 0, > 0, > 0, > 0, > 0, > 0, > 0, > 0, > 0, > 0, > 0, > 0, > 0, > > 0, > >}; ># 3086 "numpy/core/src/multiarray/scalartypes.c.src" ># 3103 "numpy/core/src/multiarray/scalartypes.c.src" >static PyTypeObject PyDoubleArrType_Type = { > > > > 1, ((void *)0), > 0, > > "numpy.float" "64", > sizeof(PyDoubleScalarObject), > 0, > 0, > 0, > 0, > 0, > > > > 0, > > 0, > 0, > 0, > 0, > 0, > 0, > 0, > 0, > 0, > 0, > 0, > 0, > 0, > 0, > 0, > 0, > 0, > 0, > 0, > 0, > 0, > 0, > 0, > 0, > 0, > 0, > 0, > 0, > 0, > 0, > 0, > 0, > 0, > 0, > 0, > 0, > 0, > > 0, > >}; ># 3086 "numpy/core/src/multiarray/scalartypes.c.src" ># 3103 "numpy/core/src/multiarray/scalartypes.c.src" >static PyTypeObject PyLongDoubleArrType_Type = { > > > > 1, ((void *)0), > 0, > > "numpy.float" "128", > sizeof(PyLongDoubleScalarObject), > 0, > 0, > 0, > 0, > 0, > > > > 0, > > 0, > 0, > 0, > 0, > 0, > 0, > 0, > 0, > 0, > 0, > 0, > 0, > 0, > 0, > 0, > 0, > 0, > 0, > 0, > 0, > 0, > 0, > 0, > 0, > 0, > 0, > 0, > 0, > 0, > 0, > 0, > 0, > 0, > 0, > 0, > 0, > 0, > > 0, > >}; ># 3086 "numpy/core/src/multiarray/scalartypes.c.src" ># 3103 "numpy/core/src/multiarray/scalartypes.c.src" >static PyTypeObject PyDatetimeArrType_Type = { > > > > 1, ((void *)0), > 0, > > "numpy.datetime" "64", > sizeof(PyDatetimeScalarObject), > 0, > 0, > 0, > 0, > 0, > > > > 0, > > 0, > 0, > 0, > 0, > 0, > 0, > 0, > 0, > 0, > 0, > 0, > 0, > 0, > 0, > 0, > 0, > 0, > 0, > 0, > 0, > 0, > 0, > 0, > 0, > 0, > 0, > 0, > 0, > 0, > 0, > 0, > 0, > 0, > 0, > 0, > 0, > 0, > > 0, > >}; ># 3086 "numpy/core/src/multiarray/scalartypes.c.src" ># 3103 "numpy/core/src/multiarray/scalartypes.c.src" >static PyTypeObject PyTimedeltaArrType_Type = { > > > > 1, ((void *)0), > 0, > > "numpy.timedelta" "64", > sizeof(PyTimedeltaScalarObject), > 0, > 0, > 0, > 0, > 0, > > > > 0, > > 0, > 0, > 0, > 0, > 0, > 0, > 0, > 0, > 0, > 0, > 0, > 0, > 0, > 0, > 0, > 0, > 0, > 0, > 0, > 0, > 0, > 0, > 0, > 0, > 0, > 0, > 0, > 0, > 0, > 0, > 0, > 0, > 0, > 0, > 0, > 0, > 0, > > 0, > >}; > > > > > >static PyMappingMethods gentype_as_mapping = { > ((void *)0), > (binaryfunc)gen_arrtype_subscript, > ((void *)0) >}; ># 3180 "numpy/core/src/multiarray/scalartypes.c.src" ># 3205 "numpy/core/src/multiarray/scalartypes.c.src" >static PyTypeObject PyCFloatArrType_Type = { > > > > 1, 0, > 0, > > "numpy.complex" "64", > sizeof(PyCFloatScalarObject), > 0, > 0, > 0, > 0, > 0, > > > > 0, > > 0, > 0, > 0, > 0, > 0, > 0, > 0, > 0, > 0, > 0, > ( (1L<<0) | (1L<<1) | (1L<<3) | (1L<<5) | (1L<<6) | (1L<<7) | (1L<<8) | 0 | (1L<<17) | 0), > "Composed of two " "32" " bit floats", > 0, > 0, > 0, > 0, > 0, > 0, > 0, > 0, > 0, > 0, > 0, > 0, > 0, > 0, > 0, > 0, > 0, > 0, > 0, > 0, > 0, > 0, > 0, > 0, > 0, > > 0, > >}; ># 3180 "numpy/core/src/multiarray/scalartypes.c.src" ># 3205 "numpy/core/src/multiarray/scalartypes.c.src" >static PyTypeObject PyCDoubleArrType_Type = { > > > > 1, 0, > 0, > > "numpy.complex" "128", > sizeof(PyCDoubleScalarObject), > 0, > 0, > 0, > 0, > 0, > > > > 0, > > 0, > 0, > 0, > 0, > 0, > 0, > 0, > 0, > 0, > 0, > ( (1L<<0) | (1L<<1) | (1L<<3) | (1L<<5) | (1L<<6) | (1L<<7) | (1L<<8) | 0 | (1L<<17) | 0), > "Composed of two " "64" " bit floats", > 0, > 0, > 0, > 0, > 0, > 0, > 0, > 0, > 0, > 0, > 0, > 0, > 0, > 0, > 0, > 0, > 0, > 0, > 0, > 0, > 0, > 0, > 0, > 0, > 0, > > 0, > >}; ># 3180 "numpy/core/src/multiarray/scalartypes.c.src" ># 3205 "numpy/core/src/multiarray/scalartypes.c.src" >static PyTypeObject PyCLongDoubleArrType_Type = { > > > > 1, 0, > 0, > > "numpy.complex" "256", > sizeof(PyCLongDoubleScalarObject), > 0, > 0, > 0, > 0, > 0, > > > > 0, > > 0, > 0, > 0, > 0, > 0, > 0, > 0, > 0, > 0, > 0, > ( (1L<<0) | (1L<<1) | (1L<<3) | (1L<<5) | (1L<<6) | (1L<<7) | (1L<<8) | 0 | (1L<<17) | 0), > "Composed of two " "128" " bit floats", > 0, > 0, > 0, > 0, > 0, > 0, > 0, > 0, > 0, > 0, > 0, > 0, > 0, > 0, > 0, > 0, > 0, > 0, > 0, > 0, > 0, > 0, > 0, > 0, > 0, > > 0, > >}; ># 3309 "numpy/core/src/multiarray/scalartypes.c.src" >static void >initialize_casting_tables(void) >{ > int i, j; > > _npy_smallest_type_of_kind_table[NPY_BOOL_SCALAR] = NPY_BOOL; > _npy_smallest_type_of_kind_table[NPY_INTPOS_SCALAR] = NPY_UBYTE; > _npy_smallest_type_of_kind_table[NPY_INTNEG_SCALAR] = NPY_BYTE; > _npy_smallest_type_of_kind_table[NPY_FLOAT_SCALAR] = NPY_HALF; > _npy_smallest_type_of_kind_table[NPY_COMPLEX_SCALAR] = NPY_CFLOAT; > _npy_smallest_type_of_kind_table[NPY_OBJECT_SCALAR] = NPY_OBJECT; > > > memset(_npy_scalar_kinds_table, NPY_OBJECT_SCALAR, > sizeof(_npy_scalar_kinds_table)); > > memset(_npy_next_larger_type_table, -1, > sizeof(_npy_next_larger_type_table)); ># 3340 "numpy/core/src/multiarray/scalartypes.c.src" > _npy_scalar_kinds_table[NPY_BOOL] = NPY_BOOL_SCALAR; > _npy_next_larger_type_table[NPY_BOOL] = -1; ># 3340 "numpy/core/src/multiarray/scalartypes.c.src" > _npy_scalar_kinds_table[NPY_BYTE] = NPY_INTNEG_SCALAR; > _npy_next_larger_type_table[NPY_BYTE] = NPY_SHORT; ># 3340 "numpy/core/src/multiarray/scalartypes.c.src" > _npy_scalar_kinds_table[NPY_UBYTE] = NPY_INTPOS_SCALAR; > _npy_next_larger_type_table[NPY_UBYTE] = NPY_USHORT; ># 3340 "numpy/core/src/multiarray/scalartypes.c.src" > _npy_scalar_kinds_table[NPY_SHORT] = NPY_INTNEG_SCALAR; > _npy_next_larger_type_table[NPY_SHORT] = NPY_INT; ># 3340 "numpy/core/src/multiarray/scalartypes.c.src" > _npy_scalar_kinds_table[NPY_USHORT] = NPY_INTPOS_SCALAR; > _npy_next_larger_type_table[NPY_USHORT] = NPY_UINT; ># 3340 "numpy/core/src/multiarray/scalartypes.c.src" > _npy_scalar_kinds_table[NPY_INT] = NPY_INTNEG_SCALAR; > _npy_next_larger_type_table[NPY_INT] = NPY_LONG; ># 3340 "numpy/core/src/multiarray/scalartypes.c.src" > _npy_scalar_kinds_table[NPY_UINT] = NPY_INTPOS_SCALAR; > _npy_next_larger_type_table[NPY_UINT] = NPY_ULONG; ># 3340 "numpy/core/src/multiarray/scalartypes.c.src" > _npy_scalar_kinds_table[NPY_LONG] = NPY_INTNEG_SCALAR; > _npy_next_larger_type_table[NPY_LONG] = NPY_LONGLONG; ># 3340 "numpy/core/src/multiarray/scalartypes.c.src" > _npy_scalar_kinds_table[NPY_ULONG] = NPY_INTPOS_SCALAR; > _npy_next_larger_type_table[NPY_ULONG] = NPY_ULONGLONG; ># 3340 "numpy/core/src/multiarray/scalartypes.c.src" > _npy_scalar_kinds_table[NPY_LONGLONG] = NPY_INTNEG_SCALAR; > _npy_next_larger_type_table[NPY_LONGLONG] = -1; ># 3340 "numpy/core/src/multiarray/scalartypes.c.src" > _npy_scalar_kinds_table[NPY_ULONGLONG] = NPY_INTPOS_SCALAR; > _npy_next_larger_type_table[NPY_ULONGLONG] = -1; ># 3340 "numpy/core/src/multiarray/scalartypes.c.src" > _npy_scalar_kinds_table[NPY_HALF] = NPY_FLOAT_SCALAR; > _npy_next_larger_type_table[NPY_HALF] = NPY_FLOAT; ># 3340 "numpy/core/src/multiarray/scalartypes.c.src" > _npy_scalar_kinds_table[NPY_FLOAT] = NPY_FLOAT_SCALAR; > _npy_next_larger_type_table[NPY_FLOAT] = NPY_DOUBLE; ># 3340 "numpy/core/src/multiarray/scalartypes.c.src" > _npy_scalar_kinds_table[NPY_DOUBLE] = NPY_FLOAT_SCALAR; > _npy_next_larger_type_table[NPY_DOUBLE] = NPY_LONGDOUBLE; ># 3340 "numpy/core/src/multiarray/scalartypes.c.src" > _npy_scalar_kinds_table[NPY_LONGDOUBLE] = NPY_FLOAT_SCALAR; > _npy_next_larger_type_table[NPY_LONGDOUBLE] = -1; ># 3340 "numpy/core/src/multiarray/scalartypes.c.src" > _npy_scalar_kinds_table[NPY_CFLOAT] = NPY_COMPLEX_SCALAR; > _npy_next_larger_type_table[NPY_CFLOAT] = NPY_CDOUBLE; ># 3340 "numpy/core/src/multiarray/scalartypes.c.src" > _npy_scalar_kinds_table[NPY_CDOUBLE] = NPY_COMPLEX_SCALAR; > _npy_next_larger_type_table[NPY_CDOUBLE] = NPY_CLONGDOUBLE; ># 3340 "numpy/core/src/multiarray/scalartypes.c.src" > _npy_scalar_kinds_table[NPY_CLONGDOUBLE] = NPY_COMPLEX_SCALAR; > _npy_next_larger_type_table[NPY_CLONGDOUBLE] = -1; > > > memset(_npy_can_cast_safely_table, 0, sizeof(_npy_can_cast_safely_table)); > > for (i = 0; i < NPY_NTYPES; ++i) { > > _npy_can_cast_safely_table[i][i] = 1; > > _npy_can_cast_safely_table[NPY_BOOL][i] = 1; > > if (i != NPY_DATETIME && i != NPY_TIMEDELTA) { > > _npy_can_cast_safely_table[i][NPY_OBJECT] = 1; > > _npy_can_cast_safely_table[i][NPY_VOID] = 1; > } > } > > _npy_can_cast_safely_table[NPY_STRING][NPY_UNICODE] = 1; ># 3387 "numpy/core/src/multiarray/scalartypes.c.src" > > > > _npy_can_cast_safely_table[(NPY_BYTE)][NPY_STRING] = 1; > _npy_can_cast_safely_table[(NPY_BYTE)][NPY_UNICODE] = 1; ># 3413 "numpy/core/src/multiarray/scalartypes.c.src" ># 3426 "numpy/core/src/multiarray/scalartypes.c.src" > _npy_can_cast_safely_table[(NPY_BYTE)][(NPY_BYTE)] = 1; ># 3413 "numpy/core/src/multiarray/scalartypes.c.src" ># 3413 "numpy/core/src/multiarray/scalartypes.c.src" ># 3426 "numpy/core/src/multiarray/scalartypes.c.src" > _npy_can_cast_safely_table[(NPY_BYTE)][(NPY_SHORT)] = 1; ># 3413 "numpy/core/src/multiarray/scalartypes.c.src" ># 3413 "numpy/core/src/multiarray/scalartypes.c.src" ># 3426 "numpy/core/src/multiarray/scalartypes.c.src" > _npy_can_cast_safely_table[(NPY_BYTE)][(NPY_INT)] = 1; ># 3413 "numpy/core/src/multiarray/scalartypes.c.src" ># 3413 "numpy/core/src/multiarray/scalartypes.c.src" ># 3426 "numpy/core/src/multiarray/scalartypes.c.src" > _npy_can_cast_safely_table[(NPY_BYTE)][(NPY_LONG)] = 1; ># 3413 "numpy/core/src/multiarray/scalartypes.c.src" ># 3413 "numpy/core/src/multiarray/scalartypes.c.src" ># 3426 "numpy/core/src/multiarray/scalartypes.c.src" > _npy_can_cast_safely_table[(NPY_BYTE)][(NPY_LONGLONG)] = 1; ># 3413 "numpy/core/src/multiarray/scalartypes.c.src" ># 3413 "numpy/core/src/multiarray/scalartypes.c.src" ># 3429 "numpy/core/src/multiarray/scalartypes.c.src" > _npy_can_cast_safely_table[(NPY_BYTE)][(NPY_HALF)] = 1; ># 3413 "numpy/core/src/multiarray/scalartypes.c.src" ># 3429 "numpy/core/src/multiarray/scalartypes.c.src" > _npy_can_cast_safely_table[(NPY_BYTE)][(NPY_FLOAT)] = 1; ># 3413 "numpy/core/src/multiarray/scalartypes.c.src" ># 3429 "numpy/core/src/multiarray/scalartypes.c.src" > _npy_can_cast_safely_table[(NPY_BYTE)][(NPY_DOUBLE)] = 1; ># 3413 "numpy/core/src/multiarray/scalartypes.c.src" ># 3429 "numpy/core/src/multiarray/scalartypes.c.src" > _npy_can_cast_safely_table[(NPY_BYTE)][(NPY_LONGDOUBLE)] = 1; ># 3413 "numpy/core/src/multiarray/scalartypes.c.src" ># 3435 "numpy/core/src/multiarray/scalartypes.c.src" > _npy_can_cast_safely_table[(NPY_BYTE)][(NPY_CFLOAT)] = 1; ># 3413 "numpy/core/src/multiarray/scalartypes.c.src" ># 3435 "numpy/core/src/multiarray/scalartypes.c.src" > _npy_can_cast_safely_table[(NPY_BYTE)][(NPY_CDOUBLE)] = 1; ># 3413 "numpy/core/src/multiarray/scalartypes.c.src" ># 3435 "numpy/core/src/multiarray/scalartypes.c.src" > _npy_can_cast_safely_table[(NPY_BYTE)][(NPY_CLONGDOUBLE)] = 1; ># 3387 "numpy/core/src/multiarray/scalartypes.c.src" > > > > _npy_can_cast_safely_table[(NPY_UBYTE)][NPY_STRING] = 1; > _npy_can_cast_safely_table[(NPY_UBYTE)][NPY_UNICODE] = 1; ># 3413 "numpy/core/src/multiarray/scalartypes.c.src" ># 3413 "numpy/core/src/multiarray/scalartypes.c.src" ># 3448 "numpy/core/src/multiarray/scalartypes.c.src" > _npy_can_cast_safely_table[(NPY_UBYTE)][(NPY_UBYTE)] = 1; ># 3413 "numpy/core/src/multiarray/scalartypes.c.src" ># 3445 "numpy/core/src/multiarray/scalartypes.c.src" > _npy_can_cast_safely_table[(NPY_UBYTE)][(NPY_SHORT)] = 1; ># 3413 "numpy/core/src/multiarray/scalartypes.c.src" ># 3448 "numpy/core/src/multiarray/scalartypes.c.src" > _npy_can_cast_safely_table[(NPY_UBYTE)][(NPY_USHORT)] = 1; ># 3413 "numpy/core/src/multiarray/scalartypes.c.src" ># 3445 "numpy/core/src/multiarray/scalartypes.c.src" > _npy_can_cast_safely_table[(NPY_UBYTE)][(NPY_INT)] = 1; ># 3413 "numpy/core/src/multiarray/scalartypes.c.src" ># 3448 "numpy/core/src/multiarray/scalartypes.c.src" > _npy_can_cast_safely_table[(NPY_UBYTE)][(NPY_UINT)] = 1; ># 3413 "numpy/core/src/multiarray/scalartypes.c.src" ># 3445 "numpy/core/src/multiarray/scalartypes.c.src" > _npy_can_cast_safely_table[(NPY_UBYTE)][(NPY_LONG)] = 1; ># 3413 "numpy/core/src/multiarray/scalartypes.c.src" ># 3448 "numpy/core/src/multiarray/scalartypes.c.src" > _npy_can_cast_safely_table[(NPY_UBYTE)][(NPY_ULONG)] = 1; ># 3413 "numpy/core/src/multiarray/scalartypes.c.src" ># 3445 "numpy/core/src/multiarray/scalartypes.c.src" > _npy_can_cast_safely_table[(NPY_UBYTE)][(NPY_LONGLONG)] = 1; ># 3413 "numpy/core/src/multiarray/scalartypes.c.src" ># 3448 "numpy/core/src/multiarray/scalartypes.c.src" > _npy_can_cast_safely_table[(NPY_UBYTE)][(NPY_ULONGLONG)] = 1; ># 3413 "numpy/core/src/multiarray/scalartypes.c.src" ># 3451 "numpy/core/src/multiarray/scalartypes.c.src" > _npy_can_cast_safely_table[(NPY_UBYTE)][(NPY_HALF)] = 1; ># 3413 "numpy/core/src/multiarray/scalartypes.c.src" ># 3451 "numpy/core/src/multiarray/scalartypes.c.src" > _npy_can_cast_safely_table[(NPY_UBYTE)][(NPY_FLOAT)] = 1; ># 3413 "numpy/core/src/multiarray/scalartypes.c.src" ># 3451 "numpy/core/src/multiarray/scalartypes.c.src" > _npy_can_cast_safely_table[(NPY_UBYTE)][(NPY_DOUBLE)] = 1; ># 3413 "numpy/core/src/multiarray/scalartypes.c.src" ># 3451 "numpy/core/src/multiarray/scalartypes.c.src" > _npy_can_cast_safely_table[(NPY_UBYTE)][(NPY_LONGDOUBLE)] = 1; ># 3413 "numpy/core/src/multiarray/scalartypes.c.src" ># 3457 "numpy/core/src/multiarray/scalartypes.c.src" > _npy_can_cast_safely_table[(NPY_UBYTE)][(NPY_CFLOAT)] = 1; ># 3413 "numpy/core/src/multiarray/scalartypes.c.src" ># 3457 "numpy/core/src/multiarray/scalartypes.c.src" > _npy_can_cast_safely_table[(NPY_UBYTE)][(NPY_CDOUBLE)] = 1; ># 3413 "numpy/core/src/multiarray/scalartypes.c.src" ># 3457 "numpy/core/src/multiarray/scalartypes.c.src" > _npy_can_cast_safely_table[(NPY_UBYTE)][(NPY_CLONGDOUBLE)] = 1; ># 3387 "numpy/core/src/multiarray/scalartypes.c.src" > > > > _npy_can_cast_safely_table[(NPY_SHORT)][NPY_STRING] = 1; > _npy_can_cast_safely_table[(NPY_SHORT)][NPY_UNICODE] = 1; ># 3413 "numpy/core/src/multiarray/scalartypes.c.src" ># 3413 "numpy/core/src/multiarray/scalartypes.c.src" ># 3413 "numpy/core/src/multiarray/scalartypes.c.src" ># 3426 "numpy/core/src/multiarray/scalartypes.c.src" > _npy_can_cast_safely_table[(NPY_SHORT)][(NPY_SHORT)] = 1; ># 3413 "numpy/core/src/multiarray/scalartypes.c.src" ># 3413 "numpy/core/src/multiarray/scalartypes.c.src" ># 3426 "numpy/core/src/multiarray/scalartypes.c.src" > _npy_can_cast_safely_table[(NPY_SHORT)][(NPY_INT)] = 1; ># 3413 "numpy/core/src/multiarray/scalartypes.c.src" ># 3413 "numpy/core/src/multiarray/scalartypes.c.src" ># 3426 "numpy/core/src/multiarray/scalartypes.c.src" > _npy_can_cast_safely_table[(NPY_SHORT)][(NPY_LONG)] = 1; ># 3413 "numpy/core/src/multiarray/scalartypes.c.src" ># 3413 "numpy/core/src/multiarray/scalartypes.c.src" ># 3426 "numpy/core/src/multiarray/scalartypes.c.src" > _npy_can_cast_safely_table[(NPY_SHORT)][(NPY_LONGLONG)] = 1; ># 3413 "numpy/core/src/multiarray/scalartypes.c.src" ># 3413 "numpy/core/src/multiarray/scalartypes.c.src" ># 3413 "numpy/core/src/multiarray/scalartypes.c.src" ># 3429 "numpy/core/src/multiarray/scalartypes.c.src" > _npy_can_cast_safely_table[(NPY_SHORT)][(NPY_FLOAT)] = 1; ># 3413 "numpy/core/src/multiarray/scalartypes.c.src" ># 3429 "numpy/core/src/multiarray/scalartypes.c.src" > _npy_can_cast_safely_table[(NPY_SHORT)][(NPY_DOUBLE)] = 1; ># 3413 "numpy/core/src/multiarray/scalartypes.c.src" ># 3429 "numpy/core/src/multiarray/scalartypes.c.src" > _npy_can_cast_safely_table[(NPY_SHORT)][(NPY_LONGDOUBLE)] = 1; ># 3413 "numpy/core/src/multiarray/scalartypes.c.src" ># 3435 "numpy/core/src/multiarray/scalartypes.c.src" > _npy_can_cast_safely_table[(NPY_SHORT)][(NPY_CFLOAT)] = 1; ># 3413 "numpy/core/src/multiarray/scalartypes.c.src" ># 3435 "numpy/core/src/multiarray/scalartypes.c.src" > _npy_can_cast_safely_table[(NPY_SHORT)][(NPY_CDOUBLE)] = 1; ># 3413 "numpy/core/src/multiarray/scalartypes.c.src" ># 3435 "numpy/core/src/multiarray/scalartypes.c.src" > _npy_can_cast_safely_table[(NPY_SHORT)][(NPY_CLONGDOUBLE)] = 1; ># 3387 "numpy/core/src/multiarray/scalartypes.c.src" > > > > _npy_can_cast_safely_table[(NPY_USHORT)][NPY_STRING] = 1; > _npy_can_cast_safely_table[(NPY_USHORT)][NPY_UNICODE] = 1; ># 3413 "numpy/core/src/multiarray/scalartypes.c.src" ># 3413 "numpy/core/src/multiarray/scalartypes.c.src" ># 3413 "numpy/core/src/multiarray/scalartypes.c.src" ># 3413 "numpy/core/src/multiarray/scalartypes.c.src" ># 3448 "numpy/core/src/multiarray/scalartypes.c.src" > _npy_can_cast_safely_table[(NPY_USHORT)][(NPY_USHORT)] = 1; ># 3413 "numpy/core/src/multiarray/scalartypes.c.src" ># 3445 "numpy/core/src/multiarray/scalartypes.c.src" > _npy_can_cast_safely_table[(NPY_USHORT)][(NPY_INT)] = 1; ># 3413 "numpy/core/src/multiarray/scalartypes.c.src" ># 3448 "numpy/core/src/multiarray/scalartypes.c.src" > _npy_can_cast_safely_table[(NPY_USHORT)][(NPY_UINT)] = 1; ># 3413 "numpy/core/src/multiarray/scalartypes.c.src" ># 3445 "numpy/core/src/multiarray/scalartypes.c.src" > _npy_can_cast_safely_table[(NPY_USHORT)][(NPY_LONG)] = 1; ># 3413 "numpy/core/src/multiarray/scalartypes.c.src" ># 3448 "numpy/core/src/multiarray/scalartypes.c.src" > _npy_can_cast_safely_table[(NPY_USHORT)][(NPY_ULONG)] = 1; ># 3413 "numpy/core/src/multiarray/scalartypes.c.src" ># 3445 "numpy/core/src/multiarray/scalartypes.c.src" > _npy_can_cast_safely_table[(NPY_USHORT)][(NPY_LONGLONG)] = 1; ># 3413 "numpy/core/src/multiarray/scalartypes.c.src" ># 3448 "numpy/core/src/multiarray/scalartypes.c.src" > _npy_can_cast_safely_table[(NPY_USHORT)][(NPY_ULONGLONG)] = 1; ># 3413 "numpy/core/src/multiarray/scalartypes.c.src" ># 3413 "numpy/core/src/multiarray/scalartypes.c.src" ># 3451 "numpy/core/src/multiarray/scalartypes.c.src" > _npy_can_cast_safely_table[(NPY_USHORT)][(NPY_FLOAT)] = 1; ># 3413 "numpy/core/src/multiarray/scalartypes.c.src" ># 3451 "numpy/core/src/multiarray/scalartypes.c.src" > _npy_can_cast_safely_table[(NPY_USHORT)][(NPY_DOUBLE)] = 1; ># 3413 "numpy/core/src/multiarray/scalartypes.c.src" ># 3451 "numpy/core/src/multiarray/scalartypes.c.src" > _npy_can_cast_safely_table[(NPY_USHORT)][(NPY_LONGDOUBLE)] = 1; ># 3413 "numpy/core/src/multiarray/scalartypes.c.src" ># 3457 "numpy/core/src/multiarray/scalartypes.c.src" > _npy_can_cast_safely_table[(NPY_USHORT)][(NPY_CFLOAT)] = 1; ># 3413 "numpy/core/src/multiarray/scalartypes.c.src" ># 3457 "numpy/core/src/multiarray/scalartypes.c.src" > _npy_can_cast_safely_table[(NPY_USHORT)][(NPY_CDOUBLE)] = 1; ># 3413 "numpy/core/src/multiarray/scalartypes.c.src" ># 3457 "numpy/core/src/multiarray/scalartypes.c.src" > _npy_can_cast_safely_table[(NPY_USHORT)][(NPY_CLONGDOUBLE)] = 1; ># 3387 "numpy/core/src/multiarray/scalartypes.c.src" > > > > _npy_can_cast_safely_table[(NPY_INT)][NPY_STRING] = 1; > _npy_can_cast_safely_table[(NPY_INT)][NPY_UNICODE] = 1; ># 3413 "numpy/core/src/multiarray/scalartypes.c.src" ># 3413 "numpy/core/src/multiarray/scalartypes.c.src" ># 3413 "numpy/core/src/multiarray/scalartypes.c.src" ># 3413 "numpy/core/src/multiarray/scalartypes.c.src" ># 3413 "numpy/core/src/multiarray/scalartypes.c.src" ># 3426 "numpy/core/src/multiarray/scalartypes.c.src" > _npy_can_cast_safely_table[(NPY_INT)][(NPY_INT)] = 1; ># 3413 "numpy/core/src/multiarray/scalartypes.c.src" ># 3413 "numpy/core/src/multiarray/scalartypes.c.src" ># 3426 "numpy/core/src/multiarray/scalartypes.c.src" > _npy_can_cast_safely_table[(NPY_INT)][(NPY_LONG)] = 1; ># 3413 "numpy/core/src/multiarray/scalartypes.c.src" ># 3413 "numpy/core/src/multiarray/scalartypes.c.src" ># 3426 "numpy/core/src/multiarray/scalartypes.c.src" > _npy_can_cast_safely_table[(NPY_INT)][(NPY_LONGLONG)] = 1; ># 3413 "numpy/core/src/multiarray/scalartypes.c.src" ># 3413 "numpy/core/src/multiarray/scalartypes.c.src" ># 3413 "numpy/core/src/multiarray/scalartypes.c.src" ># 3413 "numpy/core/src/multiarray/scalartypes.c.src" ># 3429 "numpy/core/src/multiarray/scalartypes.c.src" > _npy_can_cast_safely_table[(NPY_INT)][(NPY_DOUBLE)] = 1; ># 3413 "numpy/core/src/multiarray/scalartypes.c.src" ># 3429 "numpy/core/src/multiarray/scalartypes.c.src" > _npy_can_cast_safely_table[(NPY_INT)][(NPY_LONGDOUBLE)] = 1; ># 3413 "numpy/core/src/multiarray/scalartypes.c.src" ># 3413 "numpy/core/src/multiarray/scalartypes.c.src" ># 3435 "numpy/core/src/multiarray/scalartypes.c.src" > _npy_can_cast_safely_table[(NPY_INT)][(NPY_CDOUBLE)] = 1; ># 3413 "numpy/core/src/multiarray/scalartypes.c.src" ># 3435 "numpy/core/src/multiarray/scalartypes.c.src" > _npy_can_cast_safely_table[(NPY_INT)][(NPY_CLONGDOUBLE)] = 1; ># 3387 "numpy/core/src/multiarray/scalartypes.c.src" > > > > _npy_can_cast_safely_table[(NPY_UINT)][NPY_STRING] = 1; > _npy_can_cast_safely_table[(NPY_UINT)][NPY_UNICODE] = 1; ># 3413 "numpy/core/src/multiarray/scalartypes.c.src" ># 3413 "numpy/core/src/multiarray/scalartypes.c.src" ># 3413 "numpy/core/src/multiarray/scalartypes.c.src" ># 3413 "numpy/core/src/multiarray/scalartypes.c.src" ># 3413 "numpy/core/src/multiarray/scalartypes.c.src" ># 3413 "numpy/core/src/multiarray/scalartypes.c.src" ># 3448 "numpy/core/src/multiarray/scalartypes.c.src" > _npy_can_cast_safely_table[(NPY_UINT)][(NPY_UINT)] = 1; ># 3413 "numpy/core/src/multiarray/scalartypes.c.src" ># 3445 "numpy/core/src/multiarray/scalartypes.c.src" > _npy_can_cast_safely_table[(NPY_UINT)][(NPY_LONG)] = 1; ># 3413 "numpy/core/src/multiarray/scalartypes.c.src" ># 3448 "numpy/core/src/multiarray/scalartypes.c.src" > _npy_can_cast_safely_table[(NPY_UINT)][(NPY_ULONG)] = 1; ># 3413 "numpy/core/src/multiarray/scalartypes.c.src" ># 3445 "numpy/core/src/multiarray/scalartypes.c.src" > _npy_can_cast_safely_table[(NPY_UINT)][(NPY_LONGLONG)] = 1; ># 3413 "numpy/core/src/multiarray/scalartypes.c.src" ># 3448 "numpy/core/src/multiarray/scalartypes.c.src" > _npy_can_cast_safely_table[(NPY_UINT)][(NPY_ULONGLONG)] = 1; ># 3413 "numpy/core/src/multiarray/scalartypes.c.src" ># 3413 "numpy/core/src/multiarray/scalartypes.c.src" ># 3413 "numpy/core/src/multiarray/scalartypes.c.src" ># 3451 "numpy/core/src/multiarray/scalartypes.c.src" > _npy_can_cast_safely_table[(NPY_UINT)][(NPY_DOUBLE)] = 1; ># 3413 "numpy/core/src/multiarray/scalartypes.c.src" ># 3451 "numpy/core/src/multiarray/scalartypes.c.src" > _npy_can_cast_safely_table[(NPY_UINT)][(NPY_LONGDOUBLE)] = 1; ># 3413 "numpy/core/src/multiarray/scalartypes.c.src" ># 3413 "numpy/core/src/multiarray/scalartypes.c.src" ># 3457 "numpy/core/src/multiarray/scalartypes.c.src" > _npy_can_cast_safely_table[(NPY_UINT)][(NPY_CDOUBLE)] = 1; ># 3413 "numpy/core/src/multiarray/scalartypes.c.src" ># 3457 "numpy/core/src/multiarray/scalartypes.c.src" > _npy_can_cast_safely_table[(NPY_UINT)][(NPY_CLONGDOUBLE)] = 1; ># 3387 "numpy/core/src/multiarray/scalartypes.c.src" > > > > _npy_can_cast_safely_table[(NPY_LONG)][NPY_STRING] = 1; > _npy_can_cast_safely_table[(NPY_LONG)][NPY_UNICODE] = 1; ># 3413 "numpy/core/src/multiarray/scalartypes.c.src" ># 3413 "numpy/core/src/multiarray/scalartypes.c.src" ># 3413 "numpy/core/src/multiarray/scalartypes.c.src" ># 3413 "numpy/core/src/multiarray/scalartypes.c.src" ># 3413 "numpy/core/src/multiarray/scalartypes.c.src" ># 3413 "numpy/core/src/multiarray/scalartypes.c.src" ># 3413 "numpy/core/src/multiarray/scalartypes.c.src" ># 3426 "numpy/core/src/multiarray/scalartypes.c.src" > _npy_can_cast_safely_table[(NPY_LONG)][(NPY_LONG)] = 1; ># 3413 "numpy/core/src/multiarray/scalartypes.c.src" ># 3413 "numpy/core/src/multiarray/scalartypes.c.src" ># 3426 "numpy/core/src/multiarray/scalartypes.c.src" > _npy_can_cast_safely_table[(NPY_LONG)][(NPY_LONGLONG)] = 1; ># 3413 "numpy/core/src/multiarray/scalartypes.c.src" ># 3413 "numpy/core/src/multiarray/scalartypes.c.src" ># 3413 "numpy/core/src/multiarray/scalartypes.c.src" ># 3413 "numpy/core/src/multiarray/scalartypes.c.src" ># 3432 "numpy/core/src/multiarray/scalartypes.c.src" > _npy_can_cast_safely_table[(NPY_LONG)][(NPY_DOUBLE)] = 1; ># 3413 "numpy/core/src/multiarray/scalartypes.c.src" ># 3432 "numpy/core/src/multiarray/scalartypes.c.src" > _npy_can_cast_safely_table[(NPY_LONG)][(NPY_LONGDOUBLE)] = 1; ># 3413 "numpy/core/src/multiarray/scalartypes.c.src" ># 3413 "numpy/core/src/multiarray/scalartypes.c.src" ># 3438 "numpy/core/src/multiarray/scalartypes.c.src" > _npy_can_cast_safely_table[(NPY_LONG)][(NPY_CDOUBLE)] = 1; ># 3413 "numpy/core/src/multiarray/scalartypes.c.src" ># 3438 "numpy/core/src/multiarray/scalartypes.c.src" > _npy_can_cast_safely_table[(NPY_LONG)][(NPY_CLONGDOUBLE)] = 1; ># 3387 "numpy/core/src/multiarray/scalartypes.c.src" > > > > _npy_can_cast_safely_table[(NPY_ULONG)][NPY_STRING] = 1; > _npy_can_cast_safely_table[(NPY_ULONG)][NPY_UNICODE] = 1; ># 3413 "numpy/core/src/multiarray/scalartypes.c.src" ># 3413 "numpy/core/src/multiarray/scalartypes.c.src" ># 3413 "numpy/core/src/multiarray/scalartypes.c.src" ># 3413 "numpy/core/src/multiarray/scalartypes.c.src" ># 3413 "numpy/core/src/multiarray/scalartypes.c.src" ># 3413 "numpy/core/src/multiarray/scalartypes.c.src" ># 3413 "numpy/core/src/multiarray/scalartypes.c.src" ># 3413 "numpy/core/src/multiarray/scalartypes.c.src" ># 3448 "numpy/core/src/multiarray/scalartypes.c.src" > _npy_can_cast_safely_table[(NPY_ULONG)][(NPY_ULONG)] = 1; ># 3413 "numpy/core/src/multiarray/scalartypes.c.src" ># 3413 "numpy/core/src/multiarray/scalartypes.c.src" ># 3448 "numpy/core/src/multiarray/scalartypes.c.src" > _npy_can_cast_safely_table[(NPY_ULONG)][(NPY_ULONGLONG)] = 1; ># 3413 "numpy/core/src/multiarray/scalartypes.c.src" ># 3413 "numpy/core/src/multiarray/scalartypes.c.src" ># 3413 "numpy/core/src/multiarray/scalartypes.c.src" ># 3454 "numpy/core/src/multiarray/scalartypes.c.src" > _npy_can_cast_safely_table[(NPY_ULONG)][(NPY_DOUBLE)] = 1; ># 3413 "numpy/core/src/multiarray/scalartypes.c.src" ># 3454 "numpy/core/src/multiarray/scalartypes.c.src" > _npy_can_cast_safely_table[(NPY_ULONG)][(NPY_LONGDOUBLE)] = 1; ># 3413 "numpy/core/src/multiarray/scalartypes.c.src" ># 3413 "numpy/core/src/multiarray/scalartypes.c.src" ># 3460 "numpy/core/src/multiarray/scalartypes.c.src" > _npy_can_cast_safely_table[(NPY_ULONG)][(NPY_CDOUBLE)] = 1; ># 3413 "numpy/core/src/multiarray/scalartypes.c.src" ># 3460 "numpy/core/src/multiarray/scalartypes.c.src" > _npy_can_cast_safely_table[(NPY_ULONG)][(NPY_CLONGDOUBLE)] = 1; ># 3387 "numpy/core/src/multiarray/scalartypes.c.src" > > > > _npy_can_cast_safely_table[(NPY_LONGLONG)][NPY_STRING] = 1; > _npy_can_cast_safely_table[(NPY_LONGLONG)][NPY_UNICODE] = 1; ># 3413 "numpy/core/src/multiarray/scalartypes.c.src" ># 3413 "numpy/core/src/multiarray/scalartypes.c.src" ># 3413 "numpy/core/src/multiarray/scalartypes.c.src" ># 3413 "numpy/core/src/multiarray/scalartypes.c.src" ># 3413 "numpy/core/src/multiarray/scalartypes.c.src" ># 3413 "numpy/core/src/multiarray/scalartypes.c.src" ># 3413 "numpy/core/src/multiarray/scalartypes.c.src" ># 3426 "numpy/core/src/multiarray/scalartypes.c.src" > _npy_can_cast_safely_table[(NPY_LONGLONG)][(NPY_LONG)] = 1; ># 3413 "numpy/core/src/multiarray/scalartypes.c.src" ># 3413 "numpy/core/src/multiarray/scalartypes.c.src" ># 3426 "numpy/core/src/multiarray/scalartypes.c.src" > _npy_can_cast_safely_table[(NPY_LONGLONG)][(NPY_LONGLONG)] = 1; ># 3413 "numpy/core/src/multiarray/scalartypes.c.src" ># 3413 "numpy/core/src/multiarray/scalartypes.c.src" ># 3413 "numpy/core/src/multiarray/scalartypes.c.src" ># 3413 "numpy/core/src/multiarray/scalartypes.c.src" ># 3432 "numpy/core/src/multiarray/scalartypes.c.src" > _npy_can_cast_safely_table[(NPY_LONGLONG)][(NPY_DOUBLE)] = 1; ># 3413 "numpy/core/src/multiarray/scalartypes.c.src" ># 3432 "numpy/core/src/multiarray/scalartypes.c.src" > _npy_can_cast_safely_table[(NPY_LONGLONG)][(NPY_LONGDOUBLE)] = 1; ># 3413 "numpy/core/src/multiarray/scalartypes.c.src" ># 3413 "numpy/core/src/multiarray/scalartypes.c.src" ># 3438 "numpy/core/src/multiarray/scalartypes.c.src" > _npy_can_cast_safely_table[(NPY_LONGLONG)][(NPY_CDOUBLE)] = 1; ># 3413 "numpy/core/src/multiarray/scalartypes.c.src" ># 3438 "numpy/core/src/multiarray/scalartypes.c.src" > _npy_can_cast_safely_table[(NPY_LONGLONG)][(NPY_CLONGDOUBLE)] = 1; ># 3387 "numpy/core/src/multiarray/scalartypes.c.src" > > > > _npy_can_cast_safely_table[(NPY_ULONGLONG)][NPY_STRING] = 1; > _npy_can_cast_safely_table[(NPY_ULONGLONG)][NPY_UNICODE] = 1; ># 3413 "numpy/core/src/multiarray/scalartypes.c.src" ># 3413 "numpy/core/src/multiarray/scalartypes.c.src" ># 3413 "numpy/core/src/multiarray/scalartypes.c.src" ># 3413 "numpy/core/src/multiarray/scalartypes.c.src" ># 3413 "numpy/core/src/multiarray/scalartypes.c.src" ># 3413 "numpy/core/src/multiarray/scalartypes.c.src" ># 3413 "numpy/core/src/multiarray/scalartypes.c.src" ># 3413 "numpy/core/src/multiarray/scalartypes.c.src" ># 3448 "numpy/core/src/multiarray/scalartypes.c.src" > _npy_can_cast_safely_table[(NPY_ULONGLONG)][(NPY_ULONG)] = 1; ># 3413 "numpy/core/src/multiarray/scalartypes.c.src" ># 3413 "numpy/core/src/multiarray/scalartypes.c.src" ># 3448 "numpy/core/src/multiarray/scalartypes.c.src" > _npy_can_cast_safely_table[(NPY_ULONGLONG)][(NPY_ULONGLONG)] = 1; ># 3413 "numpy/core/src/multiarray/scalartypes.c.src" ># 3413 "numpy/core/src/multiarray/scalartypes.c.src" ># 3413 "numpy/core/src/multiarray/scalartypes.c.src" ># 3454 "numpy/core/src/multiarray/scalartypes.c.src" > _npy_can_cast_safely_table[(NPY_ULONGLONG)][(NPY_DOUBLE)] = 1; ># 3413 "numpy/core/src/multiarray/scalartypes.c.src" ># 3454 "numpy/core/src/multiarray/scalartypes.c.src" > _npy_can_cast_safely_table[(NPY_ULONGLONG)][(NPY_LONGDOUBLE)] = 1; ># 3413 "numpy/core/src/multiarray/scalartypes.c.src" ># 3413 "numpy/core/src/multiarray/scalartypes.c.src" ># 3460 "numpy/core/src/multiarray/scalartypes.c.src" > _npy_can_cast_safely_table[(NPY_ULONGLONG)][(NPY_CDOUBLE)] = 1; ># 3413 "numpy/core/src/multiarray/scalartypes.c.src" ># 3460 "numpy/core/src/multiarray/scalartypes.c.src" > _npy_can_cast_safely_table[(NPY_ULONGLONG)][(NPY_CLONGDOUBLE)] = 1; ># 3387 "numpy/core/src/multiarray/scalartypes.c.src" > > > > _npy_can_cast_safely_table[(NPY_HALF)][NPY_STRING] = 1; > _npy_can_cast_safely_table[(NPY_HALF)][NPY_UNICODE] = 1; ># 3413 "numpy/core/src/multiarray/scalartypes.c.src" ># 3413 "numpy/core/src/multiarray/scalartypes.c.src" ># 3413 "numpy/core/src/multiarray/scalartypes.c.src" ># 3413 "numpy/core/src/multiarray/scalartypes.c.src" ># 3413 "numpy/core/src/multiarray/scalartypes.c.src" ># 3413 "numpy/core/src/multiarray/scalartypes.c.src" ># 3413 "numpy/core/src/multiarray/scalartypes.c.src" ># 3413 "numpy/core/src/multiarray/scalartypes.c.src" ># 3413 "numpy/core/src/multiarray/scalartypes.c.src" ># 3413 "numpy/core/src/multiarray/scalartypes.c.src" ># 3413 "numpy/core/src/multiarray/scalartypes.c.src" ># 3468 "numpy/core/src/multiarray/scalartypes.c.src" > _npy_can_cast_safely_table[(NPY_HALF)][(NPY_HALF)] = 1; ># 3413 "numpy/core/src/multiarray/scalartypes.c.src" ># 3468 "numpy/core/src/multiarray/scalartypes.c.src" > _npy_can_cast_safely_table[(NPY_HALF)][(NPY_FLOAT)] = 1; ># 3413 "numpy/core/src/multiarray/scalartypes.c.src" ># 3468 "numpy/core/src/multiarray/scalartypes.c.src" > _npy_can_cast_safely_table[(NPY_HALF)][(NPY_DOUBLE)] = 1; ># 3413 "numpy/core/src/multiarray/scalartypes.c.src" ># 3468 "numpy/core/src/multiarray/scalartypes.c.src" > _npy_can_cast_safely_table[(NPY_HALF)][(NPY_LONGDOUBLE)] = 1; ># 3413 "numpy/core/src/multiarray/scalartypes.c.src" ># 3471 "numpy/core/src/multiarray/scalartypes.c.src" > _npy_can_cast_safely_table[(NPY_HALF)][(NPY_CFLOAT)] = 1; ># 3413 "numpy/core/src/multiarray/scalartypes.c.src" ># 3471 "numpy/core/src/multiarray/scalartypes.c.src" > _npy_can_cast_safely_table[(NPY_HALF)][(NPY_CDOUBLE)] = 1; ># 3413 "numpy/core/src/multiarray/scalartypes.c.src" ># 3471 "numpy/core/src/multiarray/scalartypes.c.src" > _npy_can_cast_safely_table[(NPY_HALF)][(NPY_CLONGDOUBLE)] = 1; ># 3387 "numpy/core/src/multiarray/scalartypes.c.src" > > > > _npy_can_cast_safely_table[(NPY_FLOAT)][NPY_STRING] = 1; > _npy_can_cast_safely_table[(NPY_FLOAT)][NPY_UNICODE] = 1; ># 3413 "numpy/core/src/multiarray/scalartypes.c.src" ># 3413 "numpy/core/src/multiarray/scalartypes.c.src" ># 3413 "numpy/core/src/multiarray/scalartypes.c.src" ># 3413 "numpy/core/src/multiarray/scalartypes.c.src" ># 3413 "numpy/core/src/multiarray/scalartypes.c.src" ># 3413 "numpy/core/src/multiarray/scalartypes.c.src" ># 3413 "numpy/core/src/multiarray/scalartypes.c.src" ># 3413 "numpy/core/src/multiarray/scalartypes.c.src" ># 3413 "numpy/core/src/multiarray/scalartypes.c.src" ># 3413 "numpy/core/src/multiarray/scalartypes.c.src" ># 3413 "numpy/core/src/multiarray/scalartypes.c.src" ># 3413 "numpy/core/src/multiarray/scalartypes.c.src" ># 3468 "numpy/core/src/multiarray/scalartypes.c.src" > _npy_can_cast_safely_table[(NPY_FLOAT)][(NPY_FLOAT)] = 1; ># 3413 "numpy/core/src/multiarray/scalartypes.c.src" ># 3468 "numpy/core/src/multiarray/scalartypes.c.src" > _npy_can_cast_safely_table[(NPY_FLOAT)][(NPY_DOUBLE)] = 1; ># 3413 "numpy/core/src/multiarray/scalartypes.c.src" ># 3468 "numpy/core/src/multiarray/scalartypes.c.src" > _npy_can_cast_safely_table[(NPY_FLOAT)][(NPY_LONGDOUBLE)] = 1; ># 3413 "numpy/core/src/multiarray/scalartypes.c.src" ># 3471 "numpy/core/src/multiarray/scalartypes.c.src" > _npy_can_cast_safely_table[(NPY_FLOAT)][(NPY_CFLOAT)] = 1; ># 3413 "numpy/core/src/multiarray/scalartypes.c.src" ># 3471 "numpy/core/src/multiarray/scalartypes.c.src" > _npy_can_cast_safely_table[(NPY_FLOAT)][(NPY_CDOUBLE)] = 1; ># 3413 "numpy/core/src/multiarray/scalartypes.c.src" ># 3471 "numpy/core/src/multiarray/scalartypes.c.src" > _npy_can_cast_safely_table[(NPY_FLOAT)][(NPY_CLONGDOUBLE)] = 1; ># 3387 "numpy/core/src/multiarray/scalartypes.c.src" > > > > _npy_can_cast_safely_table[(NPY_DOUBLE)][NPY_STRING] = 1; > _npy_can_cast_safely_table[(NPY_DOUBLE)][NPY_UNICODE] = 1; ># 3413 "numpy/core/src/multiarray/scalartypes.c.src" ># 3413 "numpy/core/src/multiarray/scalartypes.c.src" ># 3413 "numpy/core/src/multiarray/scalartypes.c.src" ># 3413 "numpy/core/src/multiarray/scalartypes.c.src" ># 3413 "numpy/core/src/multiarray/scalartypes.c.src" ># 3413 "numpy/core/src/multiarray/scalartypes.c.src" ># 3413 "numpy/core/src/multiarray/scalartypes.c.src" ># 3413 "numpy/core/src/multiarray/scalartypes.c.src" ># 3413 "numpy/core/src/multiarray/scalartypes.c.src" ># 3413 "numpy/core/src/multiarray/scalartypes.c.src" ># 3413 "numpy/core/src/multiarray/scalartypes.c.src" ># 3413 "numpy/core/src/multiarray/scalartypes.c.src" ># 3413 "numpy/core/src/multiarray/scalartypes.c.src" ># 3468 "numpy/core/src/multiarray/scalartypes.c.src" > _npy_can_cast_safely_table[(NPY_DOUBLE)][(NPY_DOUBLE)] = 1; ># 3413 "numpy/core/src/multiarray/scalartypes.c.src" ># 3468 "numpy/core/src/multiarray/scalartypes.c.src" > _npy_can_cast_safely_table[(NPY_DOUBLE)][(NPY_LONGDOUBLE)] = 1; ># 3413 "numpy/core/src/multiarray/scalartypes.c.src" ># 3413 "numpy/core/src/multiarray/scalartypes.c.src" ># 3471 "numpy/core/src/multiarray/scalartypes.c.src" > _npy_can_cast_safely_table[(NPY_DOUBLE)][(NPY_CDOUBLE)] = 1; ># 3413 "numpy/core/src/multiarray/scalartypes.c.src" ># 3471 "numpy/core/src/multiarray/scalartypes.c.src" > _npy_can_cast_safely_table[(NPY_DOUBLE)][(NPY_CLONGDOUBLE)] = 1; ># 3387 "numpy/core/src/multiarray/scalartypes.c.src" > > > > _npy_can_cast_safely_table[(NPY_LONGDOUBLE)][NPY_STRING] = 1; > _npy_can_cast_safely_table[(NPY_LONGDOUBLE)][NPY_UNICODE] = 1; ># 3413 "numpy/core/src/multiarray/scalartypes.c.src" ># 3413 "numpy/core/src/multiarray/scalartypes.c.src" ># 3413 "numpy/core/src/multiarray/scalartypes.c.src" ># 3413 "numpy/core/src/multiarray/scalartypes.c.src" ># 3413 "numpy/core/src/multiarray/scalartypes.c.src" ># 3413 "numpy/core/src/multiarray/scalartypes.c.src" ># 3413 "numpy/core/src/multiarray/scalartypes.c.src" ># 3413 "numpy/core/src/multiarray/scalartypes.c.src" ># 3413 "numpy/core/src/multiarray/scalartypes.c.src" ># 3413 "numpy/core/src/multiarray/scalartypes.c.src" ># 3413 "numpy/core/src/multiarray/scalartypes.c.src" ># 3413 "numpy/core/src/multiarray/scalartypes.c.src" ># 3413 "numpy/core/src/multiarray/scalartypes.c.src" ># 3413 "numpy/core/src/multiarray/scalartypes.c.src" ># 3468 "numpy/core/src/multiarray/scalartypes.c.src" > _npy_can_cast_safely_table[(NPY_LONGDOUBLE)][(NPY_LONGDOUBLE)] = 1; ># 3413 "numpy/core/src/multiarray/scalartypes.c.src" ># 3413 "numpy/core/src/multiarray/scalartypes.c.src" ># 3413 "numpy/core/src/multiarray/scalartypes.c.src" ># 3471 "numpy/core/src/multiarray/scalartypes.c.src" > _npy_can_cast_safely_table[(NPY_LONGDOUBLE)][(NPY_CLONGDOUBLE)] = 1; ># 3387 "numpy/core/src/multiarray/scalartypes.c.src" > > > > _npy_can_cast_safely_table[(NPY_CFLOAT)][NPY_STRING] = 1; > _npy_can_cast_safely_table[(NPY_CFLOAT)][NPY_UNICODE] = 1; ># 3413 "numpy/core/src/multiarray/scalartypes.c.src" ># 3413 "numpy/core/src/multiarray/scalartypes.c.src" ># 3413 "numpy/core/src/multiarray/scalartypes.c.src" ># 3413 "numpy/core/src/multiarray/scalartypes.c.src" ># 3413 "numpy/core/src/multiarray/scalartypes.c.src" ># 3413 "numpy/core/src/multiarray/scalartypes.c.src" ># 3413 "numpy/core/src/multiarray/scalartypes.c.src" ># 3413 "numpy/core/src/multiarray/scalartypes.c.src" ># 3413 "numpy/core/src/multiarray/scalartypes.c.src" ># 3413 "numpy/core/src/multiarray/scalartypes.c.src" ># 3413 "numpy/core/src/multiarray/scalartypes.c.src" ># 3413 "numpy/core/src/multiarray/scalartypes.c.src" ># 3413 "numpy/core/src/multiarray/scalartypes.c.src" ># 3413 "numpy/core/src/multiarray/scalartypes.c.src" ># 3413 "numpy/core/src/multiarray/scalartypes.c.src" ># 3478 "numpy/core/src/multiarray/scalartypes.c.src" > _npy_can_cast_safely_table[(NPY_CFLOAT)][(NPY_CFLOAT)] = 1; ># 3413 "numpy/core/src/multiarray/scalartypes.c.src" ># 3478 "numpy/core/src/multiarray/scalartypes.c.src" > _npy_can_cast_safely_table[(NPY_CFLOAT)][(NPY_CDOUBLE)] = 1; ># 3413 "numpy/core/src/multiarray/scalartypes.c.src" ># 3478 "numpy/core/src/multiarray/scalartypes.c.src" > _npy_can_cast_safely_table[(NPY_CFLOAT)][(NPY_CLONGDOUBLE)] = 1; ># 3387 "numpy/core/src/multiarray/scalartypes.c.src" > > > > _npy_can_cast_safely_table[(NPY_CDOUBLE)][NPY_STRING] = 1; > _npy_can_cast_safely_table[(NPY_CDOUBLE)][NPY_UNICODE] = 1; ># 3413 "numpy/core/src/multiarray/scalartypes.c.src" ># 3413 "numpy/core/src/multiarray/scalartypes.c.src" ># 3413 "numpy/core/src/multiarray/scalartypes.c.src" ># 3413 "numpy/core/src/multiarray/scalartypes.c.src" ># 3413 "numpy/core/src/multiarray/scalartypes.c.src" ># 3413 "numpy/core/src/multiarray/scalartypes.c.src" ># 3413 "numpy/core/src/multiarray/scalartypes.c.src" ># 3413 "numpy/core/src/multiarray/scalartypes.c.src" ># 3413 "numpy/core/src/multiarray/scalartypes.c.src" ># 3413 "numpy/core/src/multiarray/scalartypes.c.src" ># 3413 "numpy/core/src/multiarray/scalartypes.c.src" ># 3413 "numpy/core/src/multiarray/scalartypes.c.src" ># 3413 "numpy/core/src/multiarray/scalartypes.c.src" ># 3413 "numpy/core/src/multiarray/scalartypes.c.src" ># 3413 "numpy/core/src/multiarray/scalartypes.c.src" ># 3413 "numpy/core/src/multiarray/scalartypes.c.src" ># 3478 "numpy/core/src/multiarray/scalartypes.c.src" > _npy_can_cast_safely_table[(NPY_CDOUBLE)][(NPY_CDOUBLE)] = 1; ># 3413 "numpy/core/src/multiarray/scalartypes.c.src" ># 3478 "numpy/core/src/multiarray/scalartypes.c.src" > _npy_can_cast_safely_table[(NPY_CDOUBLE)][(NPY_CLONGDOUBLE)] = 1; ># 3387 "numpy/core/src/multiarray/scalartypes.c.src" > > > > _npy_can_cast_safely_table[(NPY_CLONGDOUBLE)][NPY_STRING] = 1; > _npy_can_cast_safely_table[(NPY_CLONGDOUBLE)][NPY_UNICODE] = 1; ># 3413 "numpy/core/src/multiarray/scalartypes.c.src" ># 3413 "numpy/core/src/multiarray/scalartypes.c.src" ># 3413 "numpy/core/src/multiarray/scalartypes.c.src" ># 3413 "numpy/core/src/multiarray/scalartypes.c.src" ># 3413 "numpy/core/src/multiarray/scalartypes.c.src" ># 3413 "numpy/core/src/multiarray/scalartypes.c.src" ># 3413 "numpy/core/src/multiarray/scalartypes.c.src" ># 3413 "numpy/core/src/multiarray/scalartypes.c.src" ># 3413 "numpy/core/src/multiarray/scalartypes.c.src" ># 3413 "numpy/core/src/multiarray/scalartypes.c.src" ># 3413 "numpy/core/src/multiarray/scalartypes.c.src" ># 3413 "numpy/core/src/multiarray/scalartypes.c.src" ># 3413 "numpy/core/src/multiarray/scalartypes.c.src" ># 3413 "numpy/core/src/multiarray/scalartypes.c.src" ># 3413 "numpy/core/src/multiarray/scalartypes.c.src" ># 3413 "numpy/core/src/multiarray/scalartypes.c.src" ># 3413 "numpy/core/src/multiarray/scalartypes.c.src" ># 3478 "numpy/core/src/multiarray/scalartypes.c.src" > _npy_can_cast_safely_table[(NPY_CLONGDOUBLE)][(NPY_CLONGDOUBLE)] = 1; ># 3497 "numpy/core/src/multiarray/scalartypes.c.src" > for (i = 0; i < NPY_NTYPES; ++i) { > _npy_type_promotion_table[i][i] = i; > > if (i == NPY_STRING || i == NPY_UNICODE || i == NPY_VOID) { > > _npy_type_promotion_table[i][i] = -1; > for (j = i+1; j < NPY_NTYPES; ++j) { > _npy_type_promotion_table[i][j] = -1; > _npy_type_promotion_table[j][i] = -1; > } > > _npy_type_promotion_table[i][NPY_OBJECT] = NPY_OBJECT; > _npy_type_promotion_table[NPY_OBJECT][i] = NPY_OBJECT; > } > else { > for (j = i+1; j < NPY_NTYPES; ++j) { > > if (j == NPY_STRING || j == NPY_UNICODE || j == NPY_VOID) { > _npy_type_promotion_table[i][j] = -1; > _npy_type_promotion_table[j][i] = -1; > } > else if (_npy_can_cast_safely_table[i][j]) { > _npy_type_promotion_table[i][j] = j; > _npy_type_promotion_table[j][i] = j; > } > else if (_npy_can_cast_safely_table[j][i]) { > _npy_type_promotion_table[i][j] = i; > _npy_type_promotion_table[j][i] = i; > } > else { > int k, iskind, jskind, skind; > iskind = _npy_scalar_kinds_table[i]; > jskind = _npy_scalar_kinds_table[j]; > > if (iskind == NPY_NOSCALAR || jskind == NPY_NOSCALAR) { > k = -1; > } > else { > > if (iskind > jskind) { > skind = iskind; > k = i; > } > else { > skind = jskind; > k = j; > } > for (;;) { > > k = _npy_next_larger_type_table[k]; > > > if (k < 0) { > ++skind; > > if (skind < (NPY_OBJECT_SCALAR + 1)) { > k = _npy_smallest_type_of_kind_table[skind]; > } > else { > k = -1; > break; > } > } > > if (_npy_can_cast_safely_table[i][k] && > _npy_can_cast_safely_table[j][k]) { > break; > } > } > } > _npy_type_promotion_table[i][j] = k; > _npy_type_promotion_table[j][i] = k; > } > } > } > } > > _npy_type_promotion_table[NPY_DATETIME][NPY_TIMEDELTA] = NPY_DATETIME; > _npy_type_promotion_table[NPY_TIMEDELTA][NPY_DATETIME] = NPY_DATETIME; >} > > >static PyNumberMethods longdoubletype_as_number; >static PyNumberMethods clongdoubletype_as_number; > > >static void >initialize_numeric_types(void) >{ > PyGenericArrType_Type.tp_dealloc = (destructor)gentype_dealloc; > PyGenericArrType_Type.tp_as_number = &gentype_as_number; > PyGenericArrType_Type.tp_as_buffer = &gentype_as_buffer; > PyGenericArrType_Type.tp_as_mapping = &gentype_as_mapping; > PyGenericArrType_Type.tp_flags = ( (1L<<0) | (1L<<1) | (1L<<3) | (1L<<5) | (1L<<6) | (1L<<7) | (1L<<8) | 0 | (1L<<17) | 0) | (1L<<10) | (1L<<4); > PyGenericArrType_Type.tp_methods = gentype_methods; > PyGenericArrType_Type.tp_getset = gentype_getsets; > PyGenericArrType_Type.tp_new = ((void *)0); > PyGenericArrType_Type.tp_alloc = gentype_alloc; > PyGenericArrType_Type.tp_free = PyMem_Free; > PyGenericArrType_Type.tp_repr = gentype_repr; > PyGenericArrType_Type.tp_str = gentype_str; > PyGenericArrType_Type.tp_richcompare = gentype_richcompare; > > PyBoolArrType_Type.tp_as_number = &bool_arrtype_as_number; ># 3612 "numpy/core/src/multiarray/scalartypes.c.src" > PyByteArrType_Type.tp_as_number = &byte_arrtype_as_number; > PyByteArrType_Type.tp_as_number->nb_index = (unaryfunc)byte_index; ># 3612 "numpy/core/src/multiarray/scalartypes.c.src" > PyShortArrType_Type.tp_as_number = &short_arrtype_as_number; > PyShortArrType_Type.tp_as_number->nb_index = (unaryfunc)short_index; ># 3612 "numpy/core/src/multiarray/scalartypes.c.src" > PyIntArrType_Type.tp_as_number = &int_arrtype_as_number; > PyIntArrType_Type.tp_as_number->nb_index = (unaryfunc)int_index; ># 3612 "numpy/core/src/multiarray/scalartypes.c.src" > PyLongArrType_Type.tp_as_number = &long_arrtype_as_number; > PyLongArrType_Type.tp_as_number->nb_index = (unaryfunc)long_index; ># 3612 "numpy/core/src/multiarray/scalartypes.c.src" > PyLongLongArrType_Type.tp_as_number = &longlong_arrtype_as_number; > PyLongLongArrType_Type.tp_as_number->nb_index = (unaryfunc)longlong_index; ># 3612 "numpy/core/src/multiarray/scalartypes.c.src" > PyUByteArrType_Type.tp_as_number = &ubyte_arrtype_as_number; > PyUByteArrType_Type.tp_as_number->nb_index = (unaryfunc)ubyte_index; ># 3612 "numpy/core/src/multiarray/scalartypes.c.src" > PyUShortArrType_Type.tp_as_number = &ushort_arrtype_as_number; > PyUShortArrType_Type.tp_as_number->nb_index = (unaryfunc)ushort_index; ># 3612 "numpy/core/src/multiarray/scalartypes.c.src" > PyUIntArrType_Type.tp_as_number = &uint_arrtype_as_number; > PyUIntArrType_Type.tp_as_number->nb_index = (unaryfunc)uint_index; ># 3612 "numpy/core/src/multiarray/scalartypes.c.src" > PyULongArrType_Type.tp_as_number = &ulong_arrtype_as_number; > PyULongArrType_Type.tp_as_number->nb_index = (unaryfunc)ulong_index; ># 3612 "numpy/core/src/multiarray/scalartypes.c.src" > PyULongLongArrType_Type.tp_as_number = &ulonglong_arrtype_as_number; > PyULongLongArrType_Type.tp_as_number->nb_index = (unaryfunc)ulonglong_index; > > > PyBoolArrType_Type.tp_as_number->nb_index = (unaryfunc)bool_index; > > > PyStringArrType_Type.tp_alloc = ((void *)0); > PyStringArrType_Type.tp_free = ((void *)0); > > PyStringArrType_Type.tp_repr = stringtype_repr; > PyStringArrType_Type.tp_str = stringtype_str; > > PyUnicodeArrType_Type.tp_repr = unicodetype_repr; > PyUnicodeArrType_Type.tp_str = unicodetype_str; > > PyVoidArrType_Type.tp_methods = voidtype_methods; > PyVoidArrType_Type.tp_getset = voidtype_getsets; > PyVoidArrType_Type.tp_as_mapping = &voidtype_as_mapping; > PyVoidArrType_Type.tp_as_sequence = &voidtype_as_sequence; ># 3637 "numpy/core/src/multiarray/scalartypes.c.src" > PyNumberArrType_Type.tp_flags = ( (1L<<0) | (1L<<1) | (1L<<3) | (1L<<5) | (1L<<6) | (1L<<7) | (1L<<8) | 0 | (1L<<17) | 0) | (1L<<10) | (1L<<4); ># 3637 "numpy/core/src/multiarray/scalartypes.c.src" > PyIntegerArrType_Type.tp_flags = ( (1L<<0) | (1L<<1) | (1L<<3) | (1L<<5) | (1L<<6) | (1L<<7) | (1L<<8) | 0 | (1L<<17) | 0) | (1L<<10) | (1L<<4); ># 3637 "numpy/core/src/multiarray/scalartypes.c.src" > PySignedIntegerArrType_Type.tp_flags = ( (1L<<0) | (1L<<1) | (1L<<3) | (1L<<5) | (1L<<6) | (1L<<7) | (1L<<8) | 0 | (1L<<17) | 0) | (1L<<10) | (1L<<4); ># 3637 "numpy/core/src/multiarray/scalartypes.c.src" > PyUnsignedIntegerArrType_Type.tp_flags = ( (1L<<0) | (1L<<1) | (1L<<3) | (1L<<5) | (1L<<6) | (1L<<7) | (1L<<8) | 0 | (1L<<17) | 0) | (1L<<10) | (1L<<4); ># 3637 "numpy/core/src/multiarray/scalartypes.c.src" > PyInexactArrType_Type.tp_flags = ( (1L<<0) | (1L<<1) | (1L<<3) | (1L<<5) | (1L<<6) | (1L<<7) | (1L<<8) | 0 | (1L<<17) | 0) | (1L<<10) | (1L<<4); ># 3637 "numpy/core/src/multiarray/scalartypes.c.src" > PyFloatingArrType_Type.tp_flags = ( (1L<<0) | (1L<<1) | (1L<<3) | (1L<<5) | (1L<<6) | (1L<<7) | (1L<<8) | 0 | (1L<<17) | 0) | (1L<<10) | (1L<<4); ># 3637 "numpy/core/src/multiarray/scalartypes.c.src" > PyComplexFloatingArrType_Type.tp_flags = ( (1L<<0) | (1L<<1) | (1L<<3) | (1L<<5) | (1L<<6) | (1L<<7) | (1L<<8) | 0 | (1L<<17) | 0) | (1L<<10) | (1L<<4); ># 3637 "numpy/core/src/multiarray/scalartypes.c.src" > PyFlexibleArrType_Type.tp_flags = ( (1L<<0) | (1L<<1) | (1L<<3) | (1L<<5) | (1L<<6) | (1L<<7) | (1L<<8) | 0 | (1L<<17) | 0) | (1L<<10) | (1L<<4); ># 3637 "numpy/core/src/multiarray/scalartypes.c.src" > PyCharacterArrType_Type.tp_flags = ( (1L<<0) | (1L<<1) | (1L<<3) | (1L<<5) | (1L<<6) | (1L<<7) | (1L<<8) | 0 | (1L<<17) | 0) | (1L<<10) | (1L<<4); ># 3637 "numpy/core/src/multiarray/scalartypes.c.src" > PyTimeIntegerArrType_Type.tp_flags = ( (1L<<0) | (1L<<1) | (1L<<3) | (1L<<5) | (1L<<6) | (1L<<7) | (1L<<8) | 0 | (1L<<17) | 0) | (1L<<10) | (1L<<4); ># 3650 "numpy/core/src/multiarray/scalartypes.c.src" > PyBoolArrType_Type.tp_flags = ( (1L<<0) | (1L<<1) | (1L<<3) | (1L<<5) | (1L<<6) | (1L<<7) | (1L<<8) | 0 | (1L<<17) | 0) | (1L<<10) | (1L<<4); > PyBoolArrType_Type.tp_new = bool_arrtype_new; > PyBoolArrType_Type.tp_richcompare = gentype_richcompare; ># 3650 "numpy/core/src/multiarray/scalartypes.c.src" > PyByteArrType_Type.tp_flags = ( (1L<<0) | (1L<<1) | (1L<<3) | (1L<<5) | (1L<<6) | (1L<<7) | (1L<<8) | 0 | (1L<<17) | 0) | (1L<<10) | (1L<<4); > PyByteArrType_Type.tp_new = byte_arrtype_new; > PyByteArrType_Type.tp_richcompare = gentype_richcompare; ># 3650 "numpy/core/src/multiarray/scalartypes.c.src" > PyShortArrType_Type.tp_flags = ( (1L<<0) | (1L<<1) | (1L<<3) | (1L<<5) | (1L<<6) | (1L<<7) | (1L<<8) | 0 | (1L<<17) | 0) | (1L<<10) | (1L<<4); > PyShortArrType_Type.tp_new = short_arrtype_new; > PyShortArrType_Type.tp_richcompare = gentype_richcompare; ># 3650 "numpy/core/src/multiarray/scalartypes.c.src" > PyIntArrType_Type.tp_flags = ( (1L<<0) | (1L<<1) | (1L<<3) | (1L<<5) | (1L<<6) | (1L<<7) | (1L<<8) | 0 | (1L<<17) | 0) | (1L<<10) | (1L<<4); > PyIntArrType_Type.tp_new = int_arrtype_new; > PyIntArrType_Type.tp_richcompare = gentype_richcompare; ># 3650 "numpy/core/src/multiarray/scalartypes.c.src" > PyLongArrType_Type.tp_flags = ( (1L<<0) | (1L<<1) | (1L<<3) | (1L<<5) | (1L<<6) | (1L<<7) | (1L<<8) | 0 | (1L<<17) | 0) | (1L<<10) | (1L<<4); > PyLongArrType_Type.tp_new = long_arrtype_new; > PyLongArrType_Type.tp_richcompare = gentype_richcompare; ># 3650 "numpy/core/src/multiarray/scalartypes.c.src" > PyLongLongArrType_Type.tp_flags = ( (1L<<0) | (1L<<1) | (1L<<3) | (1L<<5) | (1L<<6) | (1L<<7) | (1L<<8) | 0 | (1L<<17) | 0) | (1L<<10) | (1L<<4); > PyLongLongArrType_Type.tp_new = longlong_arrtype_new; > PyLongLongArrType_Type.tp_richcompare = gentype_richcompare; ># 3650 "numpy/core/src/multiarray/scalartypes.c.src" > PyUByteArrType_Type.tp_flags = ( (1L<<0) | (1L<<1) | (1L<<3) | (1L<<5) | (1L<<6) | (1L<<7) | (1L<<8) | 0 | (1L<<17) | 0) | (1L<<10) | (1L<<4); > PyUByteArrType_Type.tp_new = ubyte_arrtype_new; > PyUByteArrType_Type.tp_richcompare = gentype_richcompare; ># 3650 "numpy/core/src/multiarray/scalartypes.c.src" > PyUShortArrType_Type.tp_flags = ( (1L<<0) | (1L<<1) | (1L<<3) | (1L<<5) | (1L<<6) | (1L<<7) | (1L<<8) | 0 | (1L<<17) | 0) | (1L<<10) | (1L<<4); > PyUShortArrType_Type.tp_new = ushort_arrtype_new; > PyUShortArrType_Type.tp_richcompare = gentype_richcompare; ># 3650 "numpy/core/src/multiarray/scalartypes.c.src" > PyUIntArrType_Type.tp_flags = ( (1L<<0) | (1L<<1) | (1L<<3) | (1L<<5) | (1L<<6) | (1L<<7) | (1L<<8) | 0 | (1L<<17) | 0) | (1L<<10) | (1L<<4); > PyUIntArrType_Type.tp_new = uint_arrtype_new; > PyUIntArrType_Type.tp_richcompare = gentype_richcompare; ># 3650 "numpy/core/src/multiarray/scalartypes.c.src" > PyULongArrType_Type.tp_flags = ( (1L<<0) | (1L<<1) | (1L<<3) | (1L<<5) | (1L<<6) | (1L<<7) | (1L<<8) | 0 | (1L<<17) | 0) | (1L<<10) | (1L<<4); > PyULongArrType_Type.tp_new = ulong_arrtype_new; > PyULongArrType_Type.tp_richcompare = gentype_richcompare; ># 3650 "numpy/core/src/multiarray/scalartypes.c.src" > PyULongLongArrType_Type.tp_flags = ( (1L<<0) | (1L<<1) | (1L<<3) | (1L<<5) | (1L<<6) | (1L<<7) | (1L<<8) | 0 | (1L<<17) | 0) | (1L<<10) | (1L<<4); > PyULongLongArrType_Type.tp_new = ulonglong_arrtype_new; > PyULongLongArrType_Type.tp_richcompare = gentype_richcompare; ># 3650 "numpy/core/src/multiarray/scalartypes.c.src" > PyHalfArrType_Type.tp_flags = ( (1L<<0) | (1L<<1) | (1L<<3) | (1L<<5) | (1L<<6) | (1L<<7) | (1L<<8) | 0 | (1L<<17) | 0) | (1L<<10) | (1L<<4); > PyHalfArrType_Type.tp_new = half_arrtype_new; > PyHalfArrType_Type.tp_richcompare = gentype_richcompare; ># 3650 "numpy/core/src/multiarray/scalartypes.c.src" > PyFloatArrType_Type.tp_flags = ( (1L<<0) | (1L<<1) | (1L<<3) | (1L<<5) | (1L<<6) | (1L<<7) | (1L<<8) | 0 | (1L<<17) | 0) | (1L<<10) | (1L<<4); > PyFloatArrType_Type.tp_new = float_arrtype_new; > PyFloatArrType_Type.tp_richcompare = gentype_richcompare; ># 3650 "numpy/core/src/multiarray/scalartypes.c.src" > PyDoubleArrType_Type.tp_flags = ( (1L<<0) | (1L<<1) | (1L<<3) | (1L<<5) | (1L<<6) | (1L<<7) | (1L<<8) | 0 | (1L<<17) | 0) | (1L<<10) | (1L<<4); > PyDoubleArrType_Type.tp_new = double_arrtype_new; > PyDoubleArrType_Type.tp_richcompare = gentype_richcompare; ># 3650 "numpy/core/src/multiarray/scalartypes.c.src" > PyLongDoubleArrType_Type.tp_flags = ( (1L<<0) | (1L<<1) | (1L<<3) | (1L<<5) | (1L<<6) | (1L<<7) | (1L<<8) | 0 | (1L<<17) | 0) | (1L<<10) | (1L<<4); > PyLongDoubleArrType_Type.tp_new = longdouble_arrtype_new; > PyLongDoubleArrType_Type.tp_richcompare = gentype_richcompare; ># 3650 "numpy/core/src/multiarray/scalartypes.c.src" > PyCFloatArrType_Type.tp_flags = ( (1L<<0) | (1L<<1) | (1L<<3) | (1L<<5) | (1L<<6) | (1L<<7) | (1L<<8) | 0 | (1L<<17) | 0) | (1L<<10) | (1L<<4); > PyCFloatArrType_Type.tp_new = cfloat_arrtype_new; > PyCFloatArrType_Type.tp_richcompare = gentype_richcompare; ># 3650 "numpy/core/src/multiarray/scalartypes.c.src" > PyCDoubleArrType_Type.tp_flags = ( (1L<<0) | (1L<<1) | (1L<<3) | (1L<<5) | (1L<<6) | (1L<<7) | (1L<<8) | 0 | (1L<<17) | 0) | (1L<<10) | (1L<<4); > PyCDoubleArrType_Type.tp_new = cdouble_arrtype_new; > PyCDoubleArrType_Type.tp_richcompare = gentype_richcompare; ># 3650 "numpy/core/src/multiarray/scalartypes.c.src" > PyCLongDoubleArrType_Type.tp_flags = ( (1L<<0) | (1L<<1) | (1L<<3) | (1L<<5) | (1L<<6) | (1L<<7) | (1L<<8) | 0 | (1L<<17) | 0) | (1L<<10) | (1L<<4); > PyCLongDoubleArrType_Type.tp_new = clongdouble_arrtype_new; > PyCLongDoubleArrType_Type.tp_richcompare = gentype_richcompare; ># 3650 "numpy/core/src/multiarray/scalartypes.c.src" > PyStringArrType_Type.tp_flags = ( (1L<<0) | (1L<<1) | (1L<<3) | (1L<<5) | (1L<<6) | (1L<<7) | (1L<<8) | 0 | (1L<<17) | 0) | (1L<<10) | (1L<<4); > PyStringArrType_Type.tp_new = string_arrtype_new; > PyStringArrType_Type.tp_richcompare = gentype_richcompare; ># 3650 "numpy/core/src/multiarray/scalartypes.c.src" > PyUnicodeArrType_Type.tp_flags = ( (1L<<0) | (1L<<1) | (1L<<3) | (1L<<5) | (1L<<6) | (1L<<7) | (1L<<8) | 0 | (1L<<17) | 0) | (1L<<10) | (1L<<4); > PyUnicodeArrType_Type.tp_new = unicode_arrtype_new; > PyUnicodeArrType_Type.tp_richcompare = gentype_richcompare; ># 3650 "numpy/core/src/multiarray/scalartypes.c.src" > PyVoidArrType_Type.tp_flags = ( (1L<<0) | (1L<<1) | (1L<<3) | (1L<<5) | (1L<<6) | (1L<<7) | (1L<<8) | 0 | (1L<<17) | 0) | (1L<<10) | (1L<<4); > PyVoidArrType_Type.tp_new = void_arrtype_new; > PyVoidArrType_Type.tp_richcompare = gentype_richcompare; ># 3650 "numpy/core/src/multiarray/scalartypes.c.src" > PyObjectArrType_Type.tp_flags = ( (1L<<0) | (1L<<1) | (1L<<3) | (1L<<5) | (1L<<6) | (1L<<7) | (1L<<8) | 0 | (1L<<17) | 0) | (1L<<10) | (1L<<4); > PyObjectArrType_Type.tp_new = object_arrtype_new; > PyObjectArrType_Type.tp_richcompare = gentype_richcompare; ># 3650 "numpy/core/src/multiarray/scalartypes.c.src" > PyDatetimeArrType_Type.tp_flags = ( (1L<<0) | (1L<<1) | (1L<<3) | (1L<<5) | (1L<<6) | (1L<<7) | (1L<<8) | 0 | (1L<<17) | 0) | (1L<<10) | (1L<<4); > PyDatetimeArrType_Type.tp_new = datetime_arrtype_new; > PyDatetimeArrType_Type.tp_richcompare = gentype_richcompare; ># 3650 "numpy/core/src/multiarray/scalartypes.c.src" > PyTimedeltaArrType_Type.tp_flags = ( (1L<<0) | (1L<<1) | (1L<<3) | (1L<<5) | (1L<<6) | (1L<<7) | (1L<<8) | 0 | (1L<<17) | 0) | (1L<<10) | (1L<<4); > PyTimedeltaArrType_Type.tp_new = timedelta_arrtype_new; > PyTimedeltaArrType_Type.tp_richcompare = gentype_richcompare; ># 3663 "numpy/core/src/multiarray/scalartypes.c.src" > PyBoolArrType_Type.tp_hash = bool_arrtype_hash; ># 3663 "numpy/core/src/multiarray/scalartypes.c.src" > PyByteArrType_Type.tp_hash = byte_arrtype_hash; ># 3663 "numpy/core/src/multiarray/scalartypes.c.src" > PyShortArrType_Type.tp_hash = short_arrtype_hash; ># 3663 "numpy/core/src/multiarray/scalartypes.c.src" > PyUByteArrType_Type.tp_hash = ubyte_arrtype_hash; ># 3663 "numpy/core/src/multiarray/scalartypes.c.src" > PyUShortArrType_Type.tp_hash = ushort_arrtype_hash; ># 3663 "numpy/core/src/multiarray/scalartypes.c.src" > PyUIntArrType_Type.tp_hash = uint_arrtype_hash; ># 3663 "numpy/core/src/multiarray/scalartypes.c.src" > PyULongArrType_Type.tp_hash = ulong_arrtype_hash; ># 3663 "numpy/core/src/multiarray/scalartypes.c.src" > PyULongLongArrType_Type.tp_hash = ulonglong_arrtype_hash; ># 3663 "numpy/core/src/multiarray/scalartypes.c.src" > PyHalfArrType_Type.tp_hash = half_arrtype_hash; ># 3663 "numpy/core/src/multiarray/scalartypes.c.src" > PyFloatArrType_Type.tp_hash = float_arrtype_hash; ># 3663 "numpy/core/src/multiarray/scalartypes.c.src" > PyLongDoubleArrType_Type.tp_hash = longdouble_arrtype_hash; ># 3663 "numpy/core/src/multiarray/scalartypes.c.src" > PyCFloatArrType_Type.tp_hash = cfloat_arrtype_hash; ># 3663 "numpy/core/src/multiarray/scalartypes.c.src" > PyCLongDoubleArrType_Type.tp_hash = clongdouble_arrtype_hash; ># 3663 "numpy/core/src/multiarray/scalartypes.c.src" > PyVoidArrType_Type.tp_hash = void_arrtype_hash; ># 3663 "numpy/core/src/multiarray/scalartypes.c.src" > PyObjectArrType_Type.tp_hash = object_arrtype_hash; ># 3663 "numpy/core/src/multiarray/scalartypes.c.src" > PyDatetimeArrType_Type.tp_hash = datetime_arrtype_hash; ># 3663 "numpy/core/src/multiarray/scalartypes.c.src" > PyTimedeltaArrType_Type.tp_hash = timedelta_arrtype_hash; ># 3670 "numpy/core/src/multiarray/scalartypes.c.src" > PyCFloatArrType_Type.tp_methods = cfloattype_methods; ># 3670 "numpy/core/src/multiarray/scalartypes.c.src" > PyCLongDoubleArrType_Type.tp_methods = clongdoubletype_methods; > > > > > PyIntArrType_Type.tp_hash = int_arrtype_hash; ># 3691 "numpy/core/src/multiarray/scalartypes.c.src" > PyHalfArrType_Type.tp_repr = halftype_repr; > > PyFloatArrType_Type.tp_repr = floattype_repr; > PyCFloatArrType_Type.tp_repr = cfloattype_repr; > > PyDoubleArrType_Type.tp_repr = doubletype_repr; > PyCDoubleArrType_Type.tp_repr = cdoubletype_repr; ># 3691 "numpy/core/src/multiarray/scalartypes.c.src" > PyHalfArrType_Type.tp_str = halftype_str; > > PyFloatArrType_Type.tp_str = floattype_str; > PyCFloatArrType_Type.tp_str = cfloattype_str; > > PyDoubleArrType_Type.tp_str = doubletype_str; > PyCDoubleArrType_Type.tp_str = cdoubletype_str; > > > PyHalfArrType_Type.tp_print = halftype_print; > PyFloatArrType_Type.tp_print = floattype_print; > PyDoubleArrType_Type.tp_print = doubletype_print; > PyLongDoubleArrType_Type.tp_print = longdoubletype_print; > > PyCFloatArrType_Type.tp_print = cfloattype_print; > PyCDoubleArrType_Type.tp_print = cdoubletype_print; > PyCLongDoubleArrType_Type.tp_print = clongdoubletype_print; > > > > > > PyLongDoubleArrType_Type.tp_as_number = &longdoubletype_as_number; > PyCLongDoubleArrType_Type.tp_as_number = &clongdoubletype_as_number; ># 3720 "numpy/core/src/multiarray/scalartypes.c.src" > PyLongDoubleArrType_Type.tp_as_number->nb_int = longdoubletype_int; > PyCLongDoubleArrType_Type.tp_as_number->nb_int = clongdoubletype_int; ># 3720 "numpy/core/src/multiarray/scalartypes.c.src" > PyLongDoubleArrType_Type.tp_as_number->nb_float = longdoubletype_float; > PyCLongDoubleArrType_Type.tp_as_number->nb_float = clongdoubletype_float; ># 3720 "numpy/core/src/multiarray/scalartypes.c.src" > PyLongDoubleArrType_Type.tp_repr = longdoubletype_repr; > PyCLongDoubleArrType_Type.tp_repr = clongdoubletype_repr; ># 3720 "numpy/core/src/multiarray/scalartypes.c.src" > PyLongDoubleArrType_Type.tp_str = longdoubletype_str; > PyCLongDoubleArrType_Type.tp_str = clongdoubletype_str; ># 3729 "numpy/core/src/multiarray/scalartypes.c.src" > PyLongDoubleArrType_Type.tp_as_number->nb_long = longdoubletype_long; > PyCLongDoubleArrType_Type.tp_as_number->nb_long = clongdoubletype_long; ># 3729 "numpy/core/src/multiarray/scalartypes.c.src" > PyLongDoubleArrType_Type.tp_as_number->nb_hex = longdoubletype_hex; > PyCLongDoubleArrType_Type.tp_as_number->nb_hex = clongdoubletype_hex; ># 3729 "numpy/core/src/multiarray/scalartypes.c.src" > PyLongDoubleArrType_Type.tp_as_number->nb_oct = longdoubletype_oct; > PyCLongDoubleArrType_Type.tp_as_number->nb_oct = clongdoubletype_oct; > > > > > PyStringArrType_Type.tp_itemsize = sizeof(char); > PyVoidArrType_Type.tp_dealloc = (destructor) void_dealloc; > > PyArrayIter_Type.tp_iter = PyObject_SelfIter; > PyArrayMapIter_Type.tp_iter = PyObject_SelfIter; >} > > > >static PyTypeObject *typeobjects[] = { > &PyBoolArrType_Type, > &PyByteArrType_Type, > &PyUByteArrType_Type, > &PyShortArrType_Type, > &PyUShortArrType_Type, > &PyIntArrType_Type, > &PyUIntArrType_Type, > &PyLongArrType_Type, > &PyULongArrType_Type, > &PyLongLongArrType_Type, > &PyULongLongArrType_Type, > &PyFloatArrType_Type, > &PyDoubleArrType_Type, > &PyLongDoubleArrType_Type, > &PyCFloatArrType_Type, > &PyCDoubleArrType_Type, > &PyCLongDoubleArrType_Type, > &PyObjectArrType_Type, > &PyStringArrType_Type, > &PyUnicodeArrType_Type, > &PyVoidArrType_Type, > &PyDatetimeArrType_Type, > &PyTimedeltaArrType_Type, > &PyHalfArrType_Type >}; > >static int >_typenum_fromtypeobj(PyObject *type, int user) >{ > int typenum, i; > > typenum = NPY_NOTYPE; > i = 0; > while(i < NPY_NTYPES) { > if (type == (PyObject *)typeobjects[i]) { > typenum = i; > break; > } > i++; > } > > if (!user) { > return typenum; > } > > i = 0; > while (i < NPY_NUMUSERTYPES) { > if (type == (PyObject *)(userdescrs[i]->typeobj)) { > typenum = i + NPY_USERDEF; > break; > } > i++; > } > return typenum; >} ># 11 "numpy/core/src/multiarray/multiarraymodule_onefile.c" 2 ># 1 "numpy/core/src/multiarray/scalarapi.c" 1 > > ># 1 "/home/work/.jumbo/include/python2.7/structmember.h" 1 ># 4 "numpy/core/src/multiarray/scalarapi.c" 2 > > > > ># 1 "numpy/core/include/numpy/arrayscalars.h" 1 ># 9 "numpy/core/src/multiarray/scalarapi.c" 2 > > > > > > > ># 1 "numpy/core/src/multiarray/ctors.h" 1 ># 17 "numpy/core/src/multiarray/scalarapi.c" 2 ># 1 "numpy/core/src/multiarray/descriptor.h" 1 > > > >static PyObject *arraydescr_protocol_typestr_get(PyArray_Descr *); >static PyObject *arraydescr_protocol_descr_get(PyArray_Descr *self); > >static PyObject * >array_set_typeDict(PyObject *(__NPY_UNUSED_TAGGEDignored) __attribute__ ((__unused__)), PyObject *args); > >static PyArray_Descr * >_arraydescr_fromobj(PyObject *obj); ># 18 "numpy/core/src/multiarray/scalarapi.c" 2 ># 1 "numpy/core/src/multiarray/scalartypes.h" 1 ># 19 "numpy/core/src/multiarray/scalarapi.c" 2 > > > >static PyArray_Descr * >_descr_from_subtype(PyObject *type) >{ > PyObject *mro; > mro = ((PyTypeObject *)type)->tp_mro; > if ((((PyVarObject*)(mro))->ob_size) < 2) { > return PyArray_DescrFromType(NPY_OBJECT); > } > return PyArray_DescrFromTypeObject((((PyTupleObject *)(mro))->ob_item[1])); >} > >static void * >scalar_value(PyObject *scalar, PyArray_Descr *descr) >{ > int type_num; > int align; > npy_intp memloc; > if (descr == ((void *)0)) { > descr = PyArray_DescrFromScalar(scalar); > type_num = descr->type_num; > do { if ( --((PyObject*)(descr))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(descr)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(descr)))); } while (0); > } > else { > type_num = descr->type_num; > } > switch (type_num) { > > case NPY_BOOL: return &(((PyBoolScalarObject *)scalar)->obval); > case NPY_BYTE: return &(((PyByteScalarObject *)scalar)->obval); > case NPY_UBYTE: return &(((PyUByteScalarObject *)scalar)->obval); > case NPY_SHORT: return &(((PyShortScalarObject *)scalar)->obval); > case NPY_USHORT: return &(((PyUShortScalarObject *)scalar)->obval); > case NPY_INT: return &(((PyIntScalarObject *)scalar)->obval); > case NPY_UINT: return &(((PyUIntScalarObject *)scalar)->obval); > case NPY_LONG: return &(((PyLongScalarObject *)scalar)->obval); > case NPY_ULONG: return &(((PyULongScalarObject *)scalar)->obval); > case NPY_LONGLONG: return &(((PyLongLongScalarObject *)scalar)->obval); > case NPY_ULONGLONG: return &(((PyULongLongScalarObject *)scalar)->obval); > case NPY_HALF: return &(((PyHalfScalarObject *)scalar)->obval); > case NPY_FLOAT: return &(((PyFloatScalarObject *)scalar)->obval); > case NPY_DOUBLE: return &(((PyDoubleScalarObject *)scalar)->obval); > case NPY_LONGDOUBLE: return &(((PyLongDoubleScalarObject *)scalar)->obval); > case NPY_CFLOAT: return &(((PyCFloatScalarObject *)scalar)->obval); > case NPY_CDOUBLE: return &(((PyCDoubleScalarObject *)scalar)->obval); > case NPY_CLONGDOUBLE: return &(((PyCLongDoubleScalarObject *)scalar)->obval); > case NPY_OBJECT: return &(((PyObjectScalarObject *)scalar)->obval); > case NPY_DATETIME: return &(((PyDatetimeScalarObject *)scalar)->obval); > case NPY_TIMEDELTA: return &(((PyTimedeltaScalarObject *)scalar)->obval); > > case NPY_STRING: > return (void *)(((PyStringObject *)(scalar))->ob_sval); > case NPY_UNICODE: > return (void *)((const char *)((PyUnicodeObject *)(scalar))->str); > case NPY_VOID: > return ((PyVoidScalarObject *)scalar)->obval; > } ># 89 "numpy/core/src/multiarray/scalarapi.c" > if (PyObject_IsInstance(scalar, (PyObject *)&PyNumberArrType_Type)) { > if (PyObject_IsInstance(scalar, (PyObject *)&PyIntegerArrType_Type)) { > if (PyObject_IsInstance(scalar, (PyObject *)&PySignedIntegerArrType_Type)) { > if (PyObject_IsInstance(scalar, (PyObject *)&PyByteArrType_Type)) return &(((PyByteScalarObject *)scalar)->obval); > if (PyObject_IsInstance(scalar, (PyObject *)&PyShortArrType_Type)) return &(((PyShortScalarObject *)scalar)->obval); > if (PyObject_IsInstance(scalar, (PyObject *)&PyIntArrType_Type)) return &(((PyIntScalarObject *)scalar)->obval); > if (PyObject_IsInstance(scalar, (PyObject *)&PyLongArrType_Type)) return &(((PyLongScalarObject *)scalar)->obval); > if (PyObject_IsInstance(scalar, (PyObject *)&PyLongLongArrType_Type)) return &(((PyLongLongScalarObject *)scalar)->obval); > if (PyObject_IsInstance(scalar, (PyObject *)&PyTimeIntegerArrType_Type)) { > if (PyObject_IsInstance(scalar, (PyObject *)&PyDatetimeArrType_Type)) return &(((PyDatetimeScalarObject *)scalar)->obval); > if (PyObject_IsInstance(scalar, (PyObject *)&PyTimedeltaArrType_Type)) return &(((PyTimedeltaScalarObject *)scalar)->obval); > } > } > else { > > if (PyObject_IsInstance(scalar, (PyObject *)&PyUByteArrType_Type)) return &(((PyUByteScalarObject *)scalar)->obval); > if (PyObject_IsInstance(scalar, (PyObject *)&PyUShortArrType_Type)) return &(((PyUShortScalarObject *)scalar)->obval); > if (PyObject_IsInstance(scalar, (PyObject *)&PyUIntArrType_Type)) return &(((PyUIntScalarObject *)scalar)->obval); > if (PyObject_IsInstance(scalar, (PyObject *)&PyULongArrType_Type)) return &(((PyULongScalarObject *)scalar)->obval); > if (PyObject_IsInstance(scalar, (PyObject *)&PyULongLongArrType_Type)) return &(((PyULongLongScalarObject *)scalar)->obval); > } > } > else { > > if (PyObject_IsInstance(scalar, (PyObject *)&PyFloatingArrType_Type)) { > if (PyObject_IsInstance(scalar, (PyObject *)&PyHalfArrType_Type)) return &(((PyHalfScalarObject *)scalar)->obval); > if (PyObject_IsInstance(scalar, (PyObject *)&PyFloatArrType_Type)) return &(((PyFloatScalarObject *)scalar)->obval); > if (PyObject_IsInstance(scalar, (PyObject *)&PyDoubleArrType_Type)) return &(((PyDoubleScalarObject *)scalar)->obval); > if (PyObject_IsInstance(scalar, (PyObject *)&PyLongDoubleArrType_Type)) return &(((PyLongDoubleScalarObject *)scalar)->obval); > } > else { > > if (PyObject_IsInstance(scalar, (PyObject *)&PyCFloatArrType_Type)) return &(((PyCFloatScalarObject *)scalar)->obval); > if (PyObject_IsInstance(scalar, (PyObject *)&PyCDoubleArrType_Type)) return &(((PyCDoubleScalarObject *)scalar)->obval); > if (PyObject_IsInstance(scalar, (PyObject *)&PyCLongDoubleArrType_Type)) return &(((PyCLongDoubleScalarObject *)scalar)->obval); > } > } > } > else if ((PyObject_IsInstance(scalar, (PyObject *)&PyBoolArrType_Type))) { > return &(((PyBoolScalarObject *)scalar)->obval); > } > else if ((PyObject_IsInstance(scalar, (PyObject *)&PyFlexibleArrType_Type))) { > if ((PyObject_IsInstance(scalar, (PyObject *)&PyStringArrType_Type))) { > return (void *)(((PyStringObject *)(scalar))->ob_sval); > } > if ((PyObject_IsInstance(scalar, (PyObject *)&PyUnicodeArrType_Type))) { > return (void *)((const char *)((PyUnicodeObject *)(scalar))->str); > } > if ((PyObject_IsInstance(scalar, (PyObject *)&PyVoidArrType_Type))) { > return ((PyVoidScalarObject *)scalar)->obval; > } > } > else { > if (PyObject_IsInstance(scalar, (PyObject *)&PyObjectArrType_Type)) return &(((PyObjectScalarObject *)scalar)->obval); > } > > > > > > > memloc = (npy_intp)scalar; > memloc += sizeof(PyObject); > > align = descr->alignment; > if (align > 1) { > memloc = ((memloc + align - 1)/align)*align; > } > return (void *)memloc; > > > >} ># 170 "numpy/core/src/multiarray/scalarapi.c" >static void >PyArray_ScalarAsCtype(PyObject *scalar, void *ctypeptr) >{ > PyArray_Descr *typecode; > void *newptr; > typecode = PyArray_DescrFromScalar(scalar); > newptr = scalar_value(scalar, typecode); > > if (((((typecode->type_num) >=NPY_STRING) && ((typecode->type_num) <=NPY_VOID)) || (((typecode->type_num) >= NPY_USERDEF) && ((typecode->type_num) < NPY_USERDEF+ NPY_NUMUSERTYPES)))) { > void **ct = (void **)ctypeptr; > *ct = newptr; > } > else { > memcpy(ctypeptr, newptr, typecode->elsize); > } > do { if ( --((PyObject*)(typecode))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(typecode)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(typecode)))); } while (0); > return; >} ># 198 "numpy/core/src/multiarray/scalarapi.c" >static int >PyArray_CastScalarToCtype(PyObject *scalar, void *ctypeptr, > PyArray_Descr *outcode) >{ > PyArray_Descr* descr; > PyArray_VectorUnaryFunc* castfunc; > > descr = PyArray_DescrFromScalar(scalar); > castfunc = PyArray_GetCastFunc(descr, outcode->type_num); > if (castfunc == ((void *)0)) { > return -1; > } > if (((((descr->type_num) >=NPY_STRING) && ((descr->type_num) <=NPY_VOID)) || (((descr->type_num) >= NPY_USERDEF) && ((descr->type_num) < NPY_USERDEF+ NPY_NUMUSERTYPES))) || > ((((outcode->type_num) >=NPY_STRING) && ((outcode->type_num) <=NPY_VOID)) || (((outcode->type_num) >= NPY_USERDEF) && ((outcode->type_num) < NPY_USERDEF+ NPY_NUMUSERTYPES)))) { > PyArrayObject *ain, *aout; > > ain = (PyArrayObject *)PyArray_FromScalar(scalar, ((void *)0)); > if (ain == ((void *)0)) { > do { if ( --((PyObject*)(descr))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(descr)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(descr)))); } while (0); > return -1; > } > aout = (PyArrayObject *) > PyArray_NewFromDescr(&PyArray_Type, > outcode, > 0, ((void *)0), > ((void *)0), ctypeptr, > (0x0001 | (0x0100 | 0x0400)), ((void *)0)); > if (aout == ((void *)0)) { > do { if ( --((PyObject*)(ain))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(ain)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(ain)))); } while (0); > return -1; > } > castfunc(ain->data, aout->data, 1, ain, aout); > do { if ( --((PyObject*)(ain))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(ain)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(ain)))); } while (0); > do { if ( --((PyObject*)(aout))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(aout)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(aout)))); } while (0); > } > else { > castfunc(scalar_value(scalar, descr), ctypeptr, 1, ((void *)0), ((void *)0)); > } > do { if ( --((PyObject*)(descr))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(descr)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(descr)))); } while (0); > return 0; >} > > > > >static int >PyArray_CastScalarDirect(PyObject *scalar, PyArray_Descr *indescr, > void *ctypeptr, int outtype) >{ > PyArray_VectorUnaryFunc* castfunc; > void *ptr; > castfunc = PyArray_GetCastFunc(indescr, outtype); > if (castfunc == ((void *)0)) { > return -1; > } > ptr = scalar_value(scalar, indescr); > castfunc(ptr, ctypeptr, 1, ((void *)0), ((void *)0)); > return 0; >} ># 268 "numpy/core/src/multiarray/scalarapi.c" >static PyObject * >PyArray_FromScalar(PyObject *scalar, PyArray_Descr *outcode) >{ > PyArray_Descr *typecode; > PyObject *r; > char *memptr; > PyObject *ret; > > > typecode = PyArray_DescrFromScalar(scalar); > if ((typecode->type_num == NPY_VOID) && > !(((PyVoidScalarObject *)scalar)->flags & 0x0004) && > outcode == ((void *)0)) { > r = PyArray_NewFromDescr(&PyArray_Type, > typecode, > 0, ((void *)0), ((void *)0), > ((PyVoidScalarObject *)scalar)->obval, > ((PyVoidScalarObject *)scalar)->flags, > ((void *)0)); > (((PyArrayObject *)(r))->base) = (PyObject *)scalar; > ( ((PyObject*)(scalar))->ob_refcnt++); > return r; > } > > r = PyArray_NewFromDescr(&PyArray_Type, > typecode, > 0, ((void *)0), > ((void *)0), ((void *)0), 0, ((void *)0)); > if (r==((void *)0)) { > do { if ((outcode) == ((void *)0)) ; else do { if ( --((PyObject*)(outcode))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(outcode)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(outcode)))); } while (0); } while (0); > return ((void *)0); > } > if ((((typecode)->flags & (0x40)) == (0x40))) { > if (typecode->f->setitem(scalar, ((void *)(((PyArrayObject *)(r))->data)), r) < 0) { > do { if ((outcode) == ((void *)0)) ; else do { if ( --((PyObject*)(outcode))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(outcode)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(outcode)))); } while (0); } while (0); do { if ( --((PyObject*)(r))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(r)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(r)))); } while (0); > return ((void *)0); > } > goto finish; > } > > memptr = scalar_value(scalar, typecode); ># 319 "numpy/core/src/multiarray/scalarapi.c" > { > memcpy(((void *)(((PyArrayObject *)(r))->data)), memptr, (((PyArrayObject *)(r))->descr->elsize)); > if ((((typecode)->flags & (0x01)) == (0x01))) { > > PyArray_Item_INCREF(memptr, typecode); > } > } > >finish: > if (outcode == ((void *)0)) { > return r; > } > if (outcode->type_num == typecode->type_num) { > if (!((((typecode->type_num) >=NPY_STRING) && ((typecode->type_num) <=NPY_VOID)) || (((typecode->type_num) >= NPY_USERDEF) && ((typecode->type_num) < NPY_USERDEF+ NPY_NUMUSERTYPES))) > || (outcode->elsize == typecode->elsize)) { > return r; > } > } > > > ret = PyArray_CastToType((PyArrayObject *)r, outcode, 0); > do { if ( --((PyObject*)(r))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(r)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(r)))); } while (0); > return ret; >} > > > > > > > >static PyObject * >PyArray_ScalarFromObject(PyObject *object) >{ > PyObject *ret=((void *)0); > if ((((((PyObject*)(object))->ob_type) == (&PyArray_Type) || PyType_IsSubtype((((PyObject*)(object))->ob_type), (&PyArray_Type))) && ((((PyArrayObject *)(object))->nd) == 0))) { > return PyArray_Scalar(((void *)(((PyArrayObject *)(object))->data)), (((PyArrayObject *)(object))->descr), (PyObject *)object); > } > > > > > if (((((PyObject*)(object))->ob_type) == &PyBool_Type)) { > if (object == ((PyObject *) &_Py_TrueStruct)) { > return ( ((PyObject*)(((PyObject *)(&(_PyArrayScalar_BoolValues[1])))))->ob_refcnt++), ((PyObject *)(&(_PyArrayScalar_BoolValues[1]))); > } > else { > return ( ((PyObject*)(((PyObject *)(&(_PyArrayScalar_BoolValues[0])))))->ob_refcnt++), ((PyObject *)(&(_PyArrayScalar_BoolValues[0]))); > } > } > else if (((((object)->ob_type)->tp_flags & ((1L<<23))) != 0)) { > ret = PyLongArrType_Type.tp_alloc(&PyLongArrType_Type, 0); > if (ret == ((void *)0)) { > return ((void *)0); > } > ((PyLongScalarObject *)ret)->obval = (((PyIntObject *)(object))->ob_ival); > } > else if (((((PyObject*)(object))->ob_type) == (&PyFloat_Type) || PyType_IsSubtype((((PyObject*)(object))->ob_type), (&PyFloat_Type)))) { > ret = PyDoubleArrType_Type.tp_alloc(&PyDoubleArrType_Type, 0); > if (ret == ((void *)0)) { > return ((void *)0); > } > ((PyDoubleScalarObject *)ret)->obval = (((PyFloatObject *)(object))->ob_fval); > } > else if (((((PyObject*)(object))->ob_type) == (&PyComplex_Type) || PyType_IsSubtype((((PyObject*)(object))->ob_type), (&PyComplex_Type)))) { > ret = PyCDoubleArrType_Type.tp_alloc(&PyCDoubleArrType_Type, 0); > if (ret == ((void *)0)) { > return ((void *)0); > } > ((PyCDoubleScalarObject *)ret)->obval.real = PyComplex_RealAsDouble(object); > ((PyCDoubleScalarObject *)ret)->obval.imag = PyComplex_ImagAsDouble(object); > } > else if (((((((PyObject*)(object))->ob_type))->tp_flags & ((1L<<24))) != 0)) { > npy_longlong val; > val = PyLong_AsLongLong(object); > if (val==-1 && PyErr_Occurred()) { > PyErr_Clear(); > return ((void *)0); > } > ret = PyLongLongArrType_Type.tp_alloc(&PyLongLongArrType_Type, 0); > if (ret == ((void *)0)) { > return ((void *)0); > } > ((PyLongLongScalarObject *)ret)->obval = val; > } > return ret; >} > > > > >static PyArray_Descr * >PyArray_DescrFromTypeObject(PyObject *type) >{ > int typenum; > PyArray_Descr *new, *conv = ((void *)0); > > > typenum = _typenum_fromtypeobj(type,1); > if (typenum != NPY_NOTYPE) { > new = PyArray_DescrFromType(typenum); > return new; > } > > > if ((type == (PyObject *) &PyNumberArrType_Type) || > (type == (PyObject *) &PyInexactArrType_Type) || > (type == (PyObject *) &PyFloatingArrType_Type)) { > typenum = NPY_DOUBLE; > } > else if (type == (PyObject *)&PyComplexFloatingArrType_Type) { > typenum = NPY_CDOUBLE; > } > else if ((type == (PyObject *)&PyIntegerArrType_Type) || > (type == (PyObject *)&PySignedIntegerArrType_Type)) { > typenum = NPY_LONG; > } > else if (type == (PyObject *) &PyUnsignedIntegerArrType_Type) { > typenum = NPY_ULONG; > } > else if (type == (PyObject *) &PyCharacterArrType_Type) { > typenum = NPY_STRING; > } > else if ((type == (PyObject *) &PyGenericArrType_Type) || > (type == (PyObject *) &PyFlexibleArrType_Type)) { > typenum = NPY_VOID; > } > > if (typenum != NPY_NOTYPE) { > return PyArray_DescrFromType(typenum); > } > > > > > > > > if (PyType_IsSubtype((PyTypeObject *)type, &PyVoidArrType_Type)) { > new = PyArray_DescrNewFromType(NPY_VOID); > conv = _arraydescr_fromobj(type); > if (conv) { > new->fields = conv->fields; > ( ((PyObject*)(new->fields))->ob_refcnt++); > new->names = conv->names; > ( ((PyObject*)(new->names))->ob_refcnt++); > new->elsize = conv->elsize; > new->subarray = conv->subarray; > conv->subarray = ((void *)0); > do { if ( --((PyObject*)(conv))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(conv)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(conv)))); } while (0); > } > do { if ((new->typeobj) == ((void *)0)) ; else do { if ( --((PyObject*)(new->typeobj))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(new->typeobj)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(new->typeobj)))); } while (0); } while (0); > new->typeobj = (PyTypeObject *)type; > ( ((PyObject*)(type))->ob_refcnt++); > return new; > } > return _descr_from_subtype(type); >} > > > > >static PyObject * >PyArray_FieldNames(PyObject *fields) >{ > PyObject *tup; > PyObject *ret; > PyObject *_numpy_internal; > > if (!((((((PyObject*)(fields))->ob_type))->tp_flags & ((1L<<29))) != 0)) { > PyErr_SetString(PyExc_TypeError, > "Fields must be a dictionary"); > return ((void *)0); > } > _numpy_internal = PyImport_ImportModule("numpy.core._internal"); > if (_numpy_internal == ((void *)0)) { > return ((void *)0); > } > tup = _PyObject_CallMethod_SizeT(_numpy_internal, "_makenames_list", "O", fields); > do { if ( --((PyObject*)(_numpy_internal))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(_numpy_internal)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(_numpy_internal)))); } while (0); > if (tup == ((void *)0)) { > return ((void *)0); > } > ret = (((PyTupleObject *)(tup))->ob_item[0]); > ret = PySequence_Tuple(ret); > do { if ( --((PyObject*)(tup))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(tup)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(tup)))); } while (0); > return ret; >} > > > > > > >static PyArray_Descr * >PyArray_DescrFromScalar(PyObject *sc) >{ > int type_num; > PyArray_Descr *descr; > > if ((((((PyObject*)(sc))->ob_type) == (&PyVoidArrType_Type) || PyType_IsSubtype((((PyObject*)(sc))->ob_type), (&PyVoidArrType_Type))))) { > descr = ((PyVoidScalarObject *)sc)->descr; > ( ((PyObject*)(descr))->ob_refcnt++); > return descr; > } > > if ((((((PyObject*)(sc))->ob_type) == (&PyTimeIntegerArrType_Type) || PyType_IsSubtype((((PyObject*)(sc))->ob_type), (&PyTimeIntegerArrType_Type))))) { > PyObject *cobj; > PyArray_DatetimeMetaData *dt_data; > > dt_data = PyMem_Malloc(sizeof(PyArray_DatetimeMetaData)); > if ((((((PyObject*)(sc))->ob_type) == (&PyDatetimeArrType_Type) || PyType_IsSubtype((((PyObject*)(sc))->ob_type), (&PyDatetimeArrType_Type))))) { > descr = PyArray_DescrNewFromType(NPY_DATETIME); > memcpy(dt_data, &((PyDatetimeScalarObject *)sc)->obmeta, > sizeof(PyArray_DatetimeMetaData)); > } > else { > > descr = PyArray_DescrNewFromType(NPY_TIMEDELTA); > memcpy(dt_data, &((PyTimedeltaScalarObject *)sc)->obmeta, > sizeof(PyArray_DatetimeMetaData)); > } > cobj = NpyCapsule_FromVoidPtr((void *)dt_data, simple_capsule_dtor); > > > if (descr == ((void *)0)) { > do { if ( --((PyObject*)(cobj))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(cobj)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(cobj)))); } while (0); > return ((void *)0); > } > do { if ((descr->metadata) == ((void *)0)) ; else do { if ( --((PyObject*)(descr->metadata))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(descr->metadata)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(descr->metadata)))); } while (0); } while (0); > if ((descr->metadata = PyDict_New()) == ((void *)0)) { > do { if ( --((PyObject*)(descr))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(descr)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(descr)))); } while (0); > do { if ( --((PyObject*)(cobj))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(cobj)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(cobj)))); } while (0); > return ((void *)0); > } > > > PyDict_SetItemString(descr->metadata, "__frequency__", cobj); > do { if ( --((PyObject*)(cobj))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(cobj)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(cobj)))); } while (0); > return descr; > } > > descr = PyArray_DescrFromTypeObject((PyObject *)(((PyObject*)(sc))->ob_type)); > if (descr->elsize == 0) { > do { PyArray_Descr *_new_; _new_ = PyArray_DescrNew(descr); do { if ((descr) == ((void *)0)) ; else do { if ( --((PyObject*)(descr))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(descr)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(descr)))); } while (0); } while (0); descr = _new_; } while(0); > type_num = descr->type_num; > if (type_num == NPY_STRING) { > descr->elsize = (((PyVarObject*)(sc))->ob_size); > } > else if (type_num == NPY_UNICODE) { > descr->elsize = (((PyUnicodeObject *)(sc))->length * sizeof(Py_UNICODE)); > > > > } > else { > descr->elsize = (((PyVarObject*)((PyVoidScalarObject *)sc))->ob_size); > descr->fields = PyObject_GetAttrString(sc, "fields"); > if (!descr->fields > || !((((((PyObject*)(descr->fields))->ob_type))->tp_flags & ((1L<<29))) != 0) > || (descr->fields == (&_Py_NoneStruct))) { > do { if ((descr->fields) == ((void *)0)) ; else do { if ( --((PyObject*)(descr->fields))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(descr->fields)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(descr->fields)))); } while (0); } while (0); > descr->fields = ((void *)0); > } > if (descr->fields) { > descr->names = PyArray_FieldNames(descr->fields); > } > PyErr_Clear(); > } > } > return descr; >} > > > > > > >static PyObject * >PyArray_TypeObjectFromType(int type) >{ > PyArray_Descr *descr; > PyObject *obj; > > descr = PyArray_DescrFromType(type); > if (descr == ((void *)0)) { > return ((void *)0); > } > obj = (PyObject *)descr->typeobj; > do { if ((obj) == ((void *)0)) ; else ( ((PyObject*)(obj))->ob_refcnt++); } while (0); > do { if ( --((PyObject*)(descr))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(descr)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(descr)))); } while (0); > return obj; >} > > > > > >static PyObject * >PyArray_Scalar(void *data, PyArray_Descr *descr, PyObject *base) >{ > PyTypeObject *type; > PyObject *obj; > void *destptr; > PyArray_CopySwapFunc *copyswap; > int type_num; > int itemsize; > int swap; > > type_num = descr->type_num; > if (type_num == NPY_BOOL) { > return ( ((PyObject*)(((PyObject *)(&(_PyArrayScalar_BoolValues[((*(npy_bool*)data)!=0)])))))->ob_refcnt++), ((PyObject *)(&(_PyArrayScalar_BoolValues[((*(npy_bool*)data)!=0)]))); > } > else if ((((descr)->flags & (0x20)) == (0x20))) { > return descr->f->getitem(data, base); > } > itemsize = descr->elsize; > copyswap = descr->f->copyswap; > type = descr->typeobj; > swap = !((descr->byteorder) != '>'); > if (((type_num) == NPY_STRING) || ((type_num) == NPY_UNICODE)) { > > char *dptr = data; > > dptr += itemsize - 1; > while(itemsize && *dptr-- == 0) { > itemsize--; > } > if (type_num == NPY_UNICODE && itemsize) { > > > > > itemsize = (((itemsize - 1) >> 2) + 1) << 2; > } > } > if (type->tp_itemsize != 0) { > > obj = type->tp_alloc(type, itemsize); > } > else { > obj = type->tp_alloc(type, 0); > } > if (obj == ((void *)0)) { > return ((void *)0); > } > if ((((type_num) >=NPY_DATETIME) && ((type_num) <=NPY_TIMEDELTA))) { > > > > > PyObject *cobj; > PyArray_DatetimeMetaData *dt_data; > cobj = PyDict_GetItemString(descr->metadata, "__frequency__"); > > > > > dt_data = NpyCapsule_AsVoidPtr(cobj); > memcpy(&(((PyDatetimeScalarObject *)obj)->obmeta), dt_data, > sizeof(PyArray_DatetimeMetaData)); > } > if ((((type_num) >=NPY_STRING) && ((type_num) <=NPY_VOID))) { > if (type_num == NPY_STRING) { > destptr = (((PyStringObject *)(obj))->ob_sval); > ((PyStringObject *)obj)->ob_shash = -1; > > ((PyStringObject *)obj)->ob_sstate = 0; > > memcpy(destptr, data, itemsize); > return obj; > } > else if (type_num == NPY_UNICODE) { > PyUnicodeObject *uni = (PyUnicodeObject*)obj; > size_t length = itemsize >> 2; > > > > > > > uni->str = ((void *)0); > destptr = ( ((size_t)(length+1) > ((Py_ssize_t)(((size_t)-1)>>1)) / sizeof(Py_UNICODE)) ? ((void *)0) : ( (Py_UNICODE *) ((size_t)((length+1) * sizeof(Py_UNICODE)) > (size_t)((Py_ssize_t)(((size_t)-1)>>1)) ? ((void *)0) : malloc(((length+1) * sizeof(Py_UNICODE)) ? ((length+1) * sizeof(Py_UNICODE)) : 1)) ) ); > if (destptr == ((void *)0)) { > do { if ( --((PyObject*)(obj))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(obj)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(obj)))); } while (0); > return PyErr_NoMemory(); > } > uni->str = (Py_UNICODE *)destptr; > uni->str[0] = 0; > uni->str[length] = 0; > uni->length = length; > uni->hash = -1; > uni->defenc = ((void *)0); > > memcpy(destptr, data, itemsize); > if (swap) { > byte_swap_vector(destptr, length, 4); > } ># 749 "numpy/core/src/multiarray/scalarapi.c" > return obj; > } > else { > PyVoidScalarObject *vobj = (PyVoidScalarObject *)obj; > vobj->base = ((void *)0); > vobj->descr = descr; > ( ((PyObject*)(descr))->ob_refcnt++); > vobj->obval = ((void *)0); > (((PyVarObject*)(vobj))->ob_size) = itemsize; > vobj->flags = (0x0100 | 0x0400) | 0x0004; > swap = 0; > if (descr->names) { > if (base) { > ( ((PyObject*)(base))->ob_refcnt++); > vobj->base = base; > vobj->flags = (((PyArrayObject *)(base))->flags); > vobj->flags &= ~0x0004; > vobj->obval = data; > return obj; > } > } > destptr = ((char *)malloc(itemsize)); > if (destptr == ((void *)0)) { > do { if ( --((PyObject*)(obj))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(obj)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(obj)))); } while (0); > return PyErr_NoMemory(); > } > vobj->obval = destptr; > } > } > else { > destptr = scalar_value(obj, descr); > } > > copyswap(destptr, data, swap, base); > return obj; >} ># 793 "numpy/core/src/multiarray/scalarapi.c" >static PyObject * >PyArray_Return(PyArrayObject *mp) >{ > > if (mp == ((void *)0)) { > return ((void *)0); > } > if (PyErr_Occurred()) { > do { if ((mp) == ((void *)0)) ; else do { if ( --((PyObject*)(mp))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(mp)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(mp)))); } while (0); } while (0); > return ((void *)0); > } > if (!((((PyObject*)(mp))->ob_type) == (&PyArray_Type) || PyType_IsSubtype((((PyObject*)(mp))->ob_type), (&PyArray_Type)))) { > return (PyObject *)mp; > } > if (mp->nd == 0) { > PyObject *ret; > ret = PyArray_Scalar(mp->data, (((PyArrayObject *)(mp))->descr), (PyObject *)mp); > do { if ( --((PyObject*)(mp))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(mp)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(mp)))); } while (0); > return ret; > } > else { > return (PyObject *)mp; > } >} ># 12 "numpy/core/src/multiarray/multiarraymodule_onefile.c" 2 > ># 1 "numpy/core/src/multiarray/datetime.c" 1 > > ># 1 "/home/work/.jumbo/include/python2.7/datetime.h" 1 ># 34 "/home/work/.jumbo/include/python2.7/datetime.h" >typedef struct >{ > Py_ssize_t ob_refcnt; struct _typeobject *ob_type; > long hashcode; > int days; > int seconds; > int microseconds; >} PyDateTime_Delta; > >typedef struct >{ > Py_ssize_t ob_refcnt; struct _typeobject *ob_type; >} PyDateTime_TZInfo; ># 61 "/home/work/.jumbo/include/python2.7/datetime.h" >typedef struct >{ > Py_ssize_t ob_refcnt; struct _typeobject *ob_type; long hashcode; char hastzinfo; >} _PyDateTime_BaseTZInfo; ># 76 "/home/work/.jumbo/include/python2.7/datetime.h" >typedef struct >{ > Py_ssize_t ob_refcnt; struct _typeobject *ob_type; long hashcode; char hastzinfo; unsigned char data[6]; >} _PyDateTime_BaseTime; > >typedef struct >{ > Py_ssize_t ob_refcnt; struct _typeobject *ob_type; long hashcode; char hastzinfo; unsigned char data[6]; > PyObject *tzinfo; >} PyDateTime_Time; > > > > > > > >typedef struct >{ > Py_ssize_t ob_refcnt; struct _typeobject *ob_type; long hashcode; char hastzinfo; > unsigned char data[4]; >} PyDateTime_Date; > > > > > >typedef struct >{ > Py_ssize_t ob_refcnt; struct _typeobject *ob_type; long hashcode; char hastzinfo; unsigned char data[10]; >} _PyDateTime_BaseDateTime; > >typedef struct >{ > Py_ssize_t ob_refcnt; struct _typeobject *ob_type; long hashcode; char hastzinfo; unsigned char data[10]; > PyObject *tzinfo; >} PyDateTime_DateTime; ># 140 "/home/work/.jumbo/include/python2.7/datetime.h" >typedef struct { > > PyTypeObject *DateType; > PyTypeObject *DateTimeType; > PyTypeObject *TimeType; > PyTypeObject *DeltaType; > PyTypeObject *TZInfoType; > > > PyObject *(*Date_FromDate)(int, int, int, PyTypeObject*); > PyObject *(*DateTime_FromDateAndTime)(int, int, int, int, int, int, int, > PyObject*, PyTypeObject*); > PyObject *(*Time_FromTime)(int, int, int, int, PyObject*, PyTypeObject*); > PyObject *(*Delta_FromDelta)(int, int, int, int, PyTypeObject*); > > > PyObject *(*DateTime_FromTimestamp)(PyObject*, PyObject*, PyObject*); > PyObject *(*Date_FromTimestamp)(PyObject*, PyObject*); > >} PyDateTime_CAPI; ># 188 "/home/work/.jumbo/include/python2.7/datetime.h" >static PyDateTime_CAPI *PyDateTimeAPI = ((void *)0); ># 4 "numpy/core/src/multiarray/datetime.c" 2 > > > > > ># 1 "numpy/core/include/numpy/ndarrayobject.h" 1 ># 10 "numpy/core/src/multiarray/datetime.c" 2 > > > > > ># 1 "numpy/core/src/multiarray/_datetime.h" 1 > > > >static void >PyArray_DatetimeToDatetimeStruct(npy_datetime val, NPY_DATETIMEUNIT fr, > npy_datetimestruct *result); > >static void >PyArray_TimedeltaToTimedeltaStruct(npy_timedelta val, NPY_DATETIMEUNIT fr, > npy_timedeltastruct *result); > >static npy_datetime >PyArray_DatetimeStructToDatetime(NPY_DATETIMEUNIT fr, npy_datetimestruct *d); > >static npy_datetime >PyArray_TimedeltaStructToTimedelta(NPY_DATETIMEUNIT fr, npy_timedeltastruct *d); ># 16 "numpy/core/src/multiarray/datetime.c" 2 ># 25 "numpy/core/src/multiarray/datetime.c" >typedef struct { > int year, month, day; >} ymdstruct; > >typedef struct { > int hour, min, sec; >} hmsstruct; ># 49 "numpy/core/src/multiarray/datetime.c" >static int month_offset[2][13] = { > { 0, 31, 59, 90, 120, 151, 181, 212, 243, 273, 304, 334, 365 }, > { 0, 31, 60, 91, 121, 152, 182, 213, 244, 274, 305, 335, 366 } >}; > > >static int days_in_month[2][12] = { > { 31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31 }, > { 31, 29, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31 } >}; > > >static int >is_leapyear(long year) >{ > return (year % 4 == 0) && ((year % 100 != 0) || (year % 400 == 0)); >} > > > > > > >static int >day_of_week(npy_longlong absdate) >{ > > absdate += 4; > > if (absdate >= 0) { > return absdate % 7; > } > else { > return 6 + (absdate + 1) % 7; > } >} > > > > > >static npy_longlong >year_offset(npy_longlong year) >{ > > year--; > if (year >= 0 || -1/4 == -1) > return (year-1969)*365 + year/4 - year/100 + year/400 - 477; > else > return (year-1969)*365 + (year-3)/4 - (year-99)/100 + (year-399)/400 - 477; >} ># 108 "numpy/core/src/multiarray/datetime.c" >static npy_longlong >days_from_ymd(int year, int month, int day) >{ > > > int leap; > npy_longlong yearoffset, absdate; > > > leap = is_leapyear(year); > > > if (month < 0) month += 13; > {if (!(month >= 1 && month <= 12)) {PyErr_Format(PyExc_ValueError,"month out of range (1-12): %i",month);goto onError;}}; > > > > > > if (day < 0) day += days_in_month[leap][month - 1] + 1; > {if (!(day >= 1 && day <= days_in_month[leap][month - 1])) {PyErr_Format(PyExc_ValueError,"day out of range: %i",day);goto onError;}}; ># 137 "numpy/core/src/multiarray/datetime.c" > yearoffset = year_offset(year); > > if (PyErr_Occurred()) goto onError; > > > > > > absdate = day-1 + month_offset[leap][month - 1] + yearoffset; > > return absdate; > > onError: > return 0; > >} ># 172 "numpy/core/src/multiarray/datetime.c" >static ymdstruct >days_to_ymdstruct(npy_datetime dlong) >{ > ymdstruct ymd; > long year; > npy_longlong yearoffset; > int leap, dayoffset; > int month = 1, day = 1; > int *monthoffset; > > dlong += 1; > > > year = 1970 + dlong / 365.2425; > > > while (1) { > > yearoffset = year_offset(year); > > > > > > if (yearoffset >= dlong) { > year--; > continue; > } > > dayoffset = dlong - yearoffset; > leap = is_leapyear(year); > > > if (dayoffset > 365 && !leap) { > year++; > continue; > } > break; > } > > > monthoffset = month_offset[leap]; > for (month = 1; month < 13; month++) { > if (monthoffset[month] >= dayoffset) > break; > } > day = dayoffset - month_offset[leap][month-1]; > > ymd.year = year; > ymd.month = month; > ymd.day = day; > > return ymd; >} > > > > > > >static hmsstruct >seconds_to_hmsstruct(npy_longlong dlong) >{ > int hour, minute, second; > hmsstruct hms; > > hour = dlong / 3600; > minute = (dlong % 3600) / 60; > second = dlong - (hour*3600 + minute*60); > > hms.hour = hour; > hms.min = minute; > hms.sec = second; > > return hms; >} ># 266 "numpy/core/src/multiarray/datetime.c" >static npy_datetime >PyArray_DatetimeStructToDatetime(NPY_DATETIMEUNIT fr, npy_datetimestruct *d) >{ > npy_datetime ret; > npy_longlong days = 0; > > if (fr > NPY_FR_M) { > days = days_from_ymd(d->year, d->month, d->day); > } > if (fr == NPY_FR_Y) { > ret = d->year - 1970; > } > else if (fr == NPY_FR_M) { > ret = (d->year - 1970) * 12 + d->month - 1; > } > else if (fr == NPY_FR_W) { > > if (days >= 0) { > ret = days / 7; > } > else { > ret = (days - 6) / 7; > } > } > else if (fr == NPY_FR_B) { > npy_longlong x; > int dotw = day_of_week(days); > > if (dotw > 4) { > > ret = 0; > } > else { > if (days >= 0) { > > x = days - 4; > } > else { > x = days - 2; > } > ret = 2 + (x / 7) * 5 + x % 7; > } > } > else if (fr == NPY_FR_D) { > ret = days; > } > else if (fr == NPY_FR_h) { > ret = days * 24 + d->hour; > } > else if (fr == NPY_FR_m) { > ret = days * 1440 + d->hour * 60 + d->min; > } > else if (fr == NPY_FR_s) { > ret = days * (npy_int64)(86400) + > ( ((d->hour)*3600 + (d->min)*60 + (d->sec)) * (npy_int64)(1)); > } > else if (fr == NPY_FR_ms) { > ret = days * (npy_int64)(86400000) > + ( ((d->hour)*3600 + (d->min)*60 + (d->sec)) * (npy_int64)(1000)) > + (d->us / 1000); > } > else if (fr == NPY_FR_us) { > npy_int64 num = 86400 * 1000; > num *= (npy_int64)(1000); > ret = days * num + ( ((d->hour)*3600 + (d->min)*60 + (d->sec)) * (npy_int64)(1000000)) > + d->us; > } > else if (fr == NPY_FR_ns) { > npy_int64 num = 86400 * 1000; > num *= (npy_int64)(1000 * 1000); > ret = days * num + ( ((d->hour)*3600 + (d->min)*60 + (d->sec)) * (npy_int64)(1000000000)) > + d->us * (npy_int64)(1000) + (d->ps / 1000); > } > else if (fr == NPY_FR_ps) { > npy_int64 num2 = 1000 * 1000; > npy_int64 num1; > > num2 *= (npy_int64)(1000 * 1000); > num1 = (npy_int64)(86400) * num2; > ret = days * num1 + ( ((d->hour)*3600 + (d->min)*60 + (d->sec)) * (npy_int64)(num2)) > + d->us * (npy_int64)(1000000) + d->ps; > } > else if (fr == NPY_FR_fs) { > > npy_int64 num2 = 1000000; > num2 *= (npy_int64)(1000000); > num2 *= (npy_int64)(1000); > > > if (days >= 0) { > ret = ( ((d->hour)*3600 + (d->min)*60 + (d->sec)) * (npy_int64)(1)); > } > else { > ret = ((d->hour - 24)*3600 + d->min*60 + d->sec); > } > ret = ret * num2 + d->us * (npy_int64)(1000000000) > + d->ps * (npy_int64)(1000) + (d->as / 1000); > } > else if (fr == NPY_FR_as) { > > npy_int64 num1, num2; > > num1 = 1000000; > num1 *= (npy_int64)(1000000); > num2 = num1 * (npy_int64)(1000000); > > if (days >= 0) { > ret = d->sec; > } > else { > ret = d->sec - 60; > } > ret = ret * num2 + d->us * num1 + d->ps * (npy_int64)(1000000) > + d->as; > } > else { > > PyErr_SetString(PyExc_ValueError, "invalid internal frequency"); > ret = -1; > } > > return ret; >} ># 398 "numpy/core/src/multiarray/datetime.c" >static npy_datetime >PyArray_TimedeltaStructToTimedelta(NPY_DATETIMEUNIT fr, npy_timedeltastruct *d) >{ > npy_datetime ret; > > if (fr == NPY_FR_Y) { > ret = d->day / 365.2425; > } > else if (fr == NPY_FR_M) { > ret = d->day / 30.436875; > } > else if (fr == NPY_FR_W) { > > if (d->day >= 0) { > ret = d->day / 7; > } > else { > ret = (d->day - 6) / 7; > } > } > else if (fr == NPY_FR_B) { > > > > > > > ret = (d->day / 7) * 5 + d->day % 7; > } > else if (fr == NPY_FR_D) { > ret = d->day; > } > else if (fr == NPY_FR_h) { > ret = d->day + d->sec / 3600; > } > else if (fr == NPY_FR_m) { > ret = d->day * (npy_int64)(1440) + d->sec / 60; > } > else if (fr == NPY_FR_s) { > ret = d->day * (npy_int64)(86400) + d->sec; > } > else if (fr == NPY_FR_ms) { > ret = d->day * (npy_int64)(86400000) + d->sec * 1000 + d->us / 1000; > } > else if (fr == NPY_FR_us) { > npy_int64 num = 86400000; > num *= (npy_int64)(1000); > ret = d->day * num + d->sec * (npy_int64)(1000000) + d->us; > } > else if (fr == NPY_FR_ns) { > npy_int64 num = 86400000; > num *= (npy_int64)(1000000); > ret = d->day * num + d->sec * (npy_int64)(1000000000) > + d->us * (npy_int64)(1000) + (d->ps / 1000); > } > else if (fr == NPY_FR_ps) { > npy_int64 num2, num1; > > num2 = 1000000; > num2 *= (npy_int64)(1000000); > num1 = (npy_int64)(86400) * num2; > > ret = d->day * num1 + d->sec * num2 + d->us * (npy_int64)(1000000) > + d->ps; > } > else if (fr == NPY_FR_fs) { > > npy_int64 num2 = 1000000000; > num2 *= (npy_int64)(1000000); > ret = d->sec * num2 + d->us * (npy_int64)(1000000000) > + d->ps * (npy_int64)(1000) + (d->as / 1000); > } > else if (fr == NPY_FR_as) { > > npy_int64 num1, num2; > > num1 = 1000000; > num1 *= (npy_int64)(1000000); > num2 = num1 * (npy_int64)(1000000); > ret = d->sec * num2 + d->us * num1 + d->ps * (npy_int64)(1000000) > + d->as; > } > else { > > PyErr_SetString(PyExc_ValueError, "invalid internal frequency"); > ret = -1; > } > > return ret; >} > > > > > > >static void >PyArray_DatetimeToDatetimeStruct(npy_datetime val, NPY_DATETIMEUNIT fr, > npy_datetimestruct *result) >{ > int year = 1970, month = 1, day = 1, > hour = 0, min = 0, sec = 0, > us = 0, ps = 0, as = 0; > > npy_int64 tmp; > ymdstruct ymd; > hmsstruct hms; > > > > > > > if (fr == NPY_FR_Y) { > year = 1970 + val; > } > else if (fr == NPY_FR_M) { > if (val >= 0) { > year = 1970 + val / 12; > month = val % 12 + 1; > } > else { > year = 1969 + (val + 1) / 12; > month = 12 + (val + 1)% 12; > } > } > else if (fr == NPY_FR_W) { > > ymd = days_to_ymdstruct(val * 7); > year = ymd.year; > month = ymd.month; > day = ymd.day; > } > else if (fr == NPY_FR_B) { > > npy_longlong absdays; ># 543 "numpy/core/src/multiarray/datetime.c" > if (val >= 0) { > absdays = 7 * ((val + 3) / 5) + ((val + 3) % 5) - 3; > } > else { > > absdays = 7 * ((val - 1) / 5) + ((val - 1) % 5) + 1; > } > ymd = days_to_ymdstruct(absdays); > year = ymd.year; > month = ymd.month; > day = ymd.day; > } > else if (fr == NPY_FR_D) { > ymd = days_to_ymdstruct(val); > year = ymd.year; > month = ymd.month; > day = ymd.day; > } > else if (fr == NPY_FR_h) { > if (val >= 0) { > ymd = days_to_ymdstruct(val / 24); > hour = val % 24; > } > else { > ymd = days_to_ymdstruct((val - 23) / 24); > hour = 23 + (val + 1) % 24; > } > year = ymd.year; > month = ymd.month; > day = ymd.day; > } > else if (fr == NPY_FR_m) { > if (val >= 0) { > ymd = days_to_ymdstruct(val / 1440); > min = val % 1440; > } > else { > ymd = days_to_ymdstruct((val - 1439) / 1440); > min = 1439 + (val + 1) % 1440; > } > hms = seconds_to_hmsstruct(min * 60); > year = ymd.year; > month = ymd.month; > day = ymd.day; > hour = hms.hour; > min = hms.min; > } > else if (fr == NPY_FR_s) { > if (val >= 0) { > ymd = days_to_ymdstruct(val / 86400); > sec = val % 86400; > } > else { > ymd = days_to_ymdstruct((val - 86399) / 86400); > sec = 86399 + (val + 1) % 86400; > } > hms = seconds_to_hmsstruct(sec); > year = ymd.year; > month = ymd.month; > day = ymd.day; > hour = hms.hour; > min = hms.min; > sec = hms.sec; > } > else if (fr == NPY_FR_ms) { > if (val >= 0) { > ymd = days_to_ymdstruct(val / 86400000); > tmp = val % 86400000; > } > else { > ymd = days_to_ymdstruct((val - 86399999) / 86400000); > tmp = 86399999 + (val + 1) % 86399999; > } > hms = seconds_to_hmsstruct(tmp / 1000); > us = (tmp % 1000)*1000; > year = ymd.year; > month = ymd.month; > day = ymd.day; > hour = hms.hour; > min = hms.min; > sec = hms.sec; > } > else if (fr == NPY_FR_us) { > npy_int64 num1, num2; > num1 = 86400000; > num1 *= 1000; > num2 = num1 - 1; > if (val >= 0) { > ymd = days_to_ymdstruct(val / num1); > tmp = val % num1; > } > else { > ymd = days_to_ymdstruct((val - num2)/ num1); > tmp = num2 + (val + 1) % num1; > } > hms = seconds_to_hmsstruct(tmp / 1000000); > us = tmp % 1000000; > year = ymd.year; > month = ymd.month; > day = ymd.day; > hour = hms.hour; > min = hms.min; > sec = hms.sec; > } > else if (fr == NPY_FR_ns) { > npy_int64 num1, num2, num3; > num1 = 86400000; > num1 *= 1000000000; > num2 = num1 - 1; > num3 = 1000000; > num3 *= 1000000; > if (val >= 0) { > ymd = days_to_ymdstruct(val / num1); > tmp = val % num1; > } > else { > ymd = days_to_ymdstruct((val - num2)/ num1); > tmp = num2 + (val + 1) % num1; > } > hms = seconds_to_hmsstruct(tmp / 1000000000); > tmp = tmp % 1000000000; > us = tmp / 1000; > ps = (tmp % 1000) * (npy_int64)(1000); > year = ymd.year; > month = ymd.month; > day = ymd.day; > hour = hms.hour; > min = hms.min; > sec = hms.sec; > } > else if (fr == NPY_FR_ps) { > npy_int64 num1, num2, num3; > num3 = 1000000000; > num3 *= (npy_int64)(1000); > num1 = (npy_int64)(86400) * num3; > num2 = num1 - 1; > > if (val >= 0) { > ymd = days_to_ymdstruct(val / num1); > tmp = val % num1; > } > else { > ymd = days_to_ymdstruct((val - num2) / num1); > tmp = num2 + (val + 1) % num1; > } > hms = seconds_to_hmsstruct(tmp / num3); > tmp = tmp % num3; > us = tmp / 1000000; > ps = tmp % 1000000; > year = ymd.year; > month = ymd.month; > day = ymd.day; > hour = hms.hour; > min = hms.min; > sec = hms.sec; > } > else if (fr == NPY_FR_fs) { > > npy_int64 num1, num2; > num1 = 1000000000; > num1 *= (npy_int64)(1000); > num2 = num1 * (npy_int64)(1000); > > if (val >= 0) { > sec = val / num2; > tmp = val % num2; > hms = seconds_to_hmsstruct(sec); > hour = hms.hour; > min = hms.min; > sec = hms.sec; > } > else { > > year = 1969; > day = 31; > month = 12; > sec = (val - (num2-1))/num2; > tmp = (num2-1) + (val + 1) % num2; > if (sec == 0) { > > hour = 23; > min = 59; > sec = 59; > } > else { > hour = 24 + (sec - 3599)/3600; > sec = 3599 + (sec+1)%3600; > min = sec / 60; > sec = sec % 60; > } > } > us = tmp / 1000000000; > tmp = tmp % 1000000000; > ps = tmp / 1000; > as = (tmp % 1000) * (npy_int64)(1000); > } > else if (fr == NPY_FR_as) { > > npy_int64 num1, num2, num3; > num1 = 1000000; > num2 = num1 * (npy_int64)(1000000); > num3 = num2 * (npy_int64)(1000000); > if (val >= 0) { > hour = 0; > min = 0; > sec = val / num3; > tmp = val % num3; > } > else { > year = 1969; > day = 31; > month = 12; > hour = 23; > min = 59; > sec = 60 + (val - (num3-1)) / num3; > tmp = (num3-1) + (val+1) % num3; > } > us = tmp / num2; > tmp = tmp % num2; > ps = tmp / num1; > as = tmp % num1; > } > else { > PyErr_SetString(PyExc_RuntimeError, "invalid internal time resolution"); > } > > result->year = year; > result->month = month; > result->day = day; > result->hour = hour; > result->min = min; > result->sec = sec; > result->us = us; > result->ps = ps; > result->as = as; > > return; >} ># 790 "numpy/core/src/multiarray/datetime.c" >static void >PyArray_TimedeltaToTimedeltaStruct(npy_timedelta val, NPY_DATETIMEUNIT fr, > npy_timedeltastruct *result) >{ > npy_longlong day=0; > int sec=0, us=0, ps=0, as=0; > npy_bool negative=0; > > > > > > > > if (val < 0) { > val = -val; > negative = 1; > } > if (fr == NPY_FR_Y) { > day = val * 365.2425; > } > else if (fr == NPY_FR_M) { > day = val * 30.436875; > } > else if (fr == NPY_FR_W) { > day = val * 7; > } > else if (fr == NPY_FR_B) { > > day = (val * 7) / 5; > } > else if (fr == NPY_FR_D) { > day = val; > } > else if (fr == NPY_FR_h) { > day = val / 24; > sec = (val % 24)*3600; > } > else if (fr == NPY_FR_m) { > day = val / 1440; > sec = (val % 1440)*60; > } > else if (fr == NPY_FR_s) { > day = val / (86400); > sec = val % 86400; > } > else if (fr == NPY_FR_ms) { > day = val / 86400000; > val = val % 86400000; > sec = val / 1000; > us = (val % 1000)*1000; > } > else if (fr == NPY_FR_us) { > npy_int64 num1; > num1 = 86400000; > num1 *= 1000; > day = val / num1; > us = val % num1; > sec = us / 1000000; > us = us % 1000000; > } > else if (fr == NPY_FR_ns) { > npy_int64 num1; > num1 = 86400000; > num1 *= 1000000; > day = val / num1; > val = val % num1; > sec = val / 1000000000; > val = val % 1000000000; > us = val / 1000; > ps = (val % 1000) * (npy_int64)(1000); > } > else if (fr == NPY_FR_ps) { > npy_int64 num1, num2; > num2 = 1000000000; > num2 *= (npy_int64)(1000); > num1 = (npy_int64)(86400) * num2; > > day = val / num1; > ps = val % num1; > sec = ps / num2; > ps = ps % num2; > us = ps / 1000000; > ps = ps % 1000000; > } > else if (fr == NPY_FR_fs) { > > npy_int64 num1, num2; > num1 = 1000000000; > num2 = num1 * (npy_int64)(1000000); > > day = 0; > sec = val / num2; > val = val % num2; > us = val / num1; > val = val % num1; > ps = val / 1000; > as = (val % 1000) * (npy_int64)(1000); > } > else if (fr == NPY_FR_as) { > > npy_int64 num1, num2, num3; > num1 = 1000000; > num2 = num1 * (npy_int64)(1000000); > num3 = num2 * (npy_int64)(1000000); > day = 0; > sec = val / num3; > as = val % num3; > us = as / num2; > as = as % num2; > ps = as / num1; > as = as % num1; > } > else { > PyErr_SetString(PyExc_RuntimeError, "invalid internal time resolution"); > } > > if (negative) { > result->day = -day; > result->sec = -sec; > result->us = -us; > result->ps = -ps; > result->as = -as; > } > else { > result->day = day; > result->sec = sec; > result->us = us; > result->ps = ps; > result->as = as; > } > return; >} ># 14 "numpy/core/src/multiarray/multiarraymodule_onefile.c" 2 ># 1 "build/src.linux-x86_64-2.7/numpy/core/src/multiarray/arraytypes.c" 1 ># 1 "numpy/core/src/multiarray/arraytypes.c.src" ># 1 "numpy/core/src/multiarray/arraytypes.c.src" ># 21 "numpy/core/src/multiarray/arraytypes.c.src" ># 1 "numpy/core/src/multiarray/_datetime.h" 1 ># 22 "numpy/core/src/multiarray/arraytypes.c.src" 2 ># 32 "numpy/core/src/multiarray/arraytypes.c.src" >static double >MyPyFloat_AsDouble(PyObject *obj) >{ > double ret = 0; > PyObject *num; > > if (obj == (&_Py_NoneStruct)) { > return ((npy_double)__npy_nanf()); > } > num = PyNumber_Float(obj); > if (num == ((void *)0)) { > return ((npy_double)__npy_nanf()); > } > ret = PyFloat_AsDouble(num); > do { if ( --((PyObject*)(num))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(num)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(num)))); } while (0); > return ret; >} > >static npy_half >MyPyFloat_AsHalf(PyObject *obj) >{ > return npy_double_to_half(MyPyFloat_AsDouble(obj)); >} > >static PyObject * >MyPyFloat_FromHalf(npy_half h) >{ > return PyFloat_FromDouble(npy_half_to_double(h)); >} ># 67 "numpy/core/src/multiarray/arraytypes.c.src" >static long >MyPyLong_AsLong (PyObject *obj) >{ > long ret; > PyObject *num = PyNumber_Long(obj); > > if (num == ((void *)0)) { > return -1; > } > ret = PyLong_AsLong(num); > do { if ( --((PyObject*)(num))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(num)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(num)))); } while (0); > return ret; >} > >static npy_ulong >MyPyLong_AsUnsignedLong (PyObject *obj) >{ > npy_ulong ret; > PyObject *num = PyNumber_Long(obj); > > if (num == ((void *)0)) { > return -1; > } > ret = PyLong_AsUnsignedLong(num); > if (PyErr_Occurred()) { > PyErr_Clear(); > ret = PyLong_AsLong(num); > } > do { if ( --((PyObject*)(num))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(num)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(num)))); } while (0); > return ret; >} ># 67 "numpy/core/src/multiarray/arraytypes.c.src" >static npy_longlong >MyPyLong_AsLongLong (PyObject *obj) >{ > npy_longlong ret; > PyObject *num = PyNumber_Long(obj); > > if (num == ((void *)0)) { > return -1; > } > ret = PyLong_AsLongLong(num); > do { if ( --((PyObject*)(num))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(num)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(num)))); } while (0); > return ret; >} > >static npy_ulonglong >MyPyLong_AsUnsignedLongLong (PyObject *obj) >{ > npy_ulonglong ret; > PyObject *num = PyNumber_Long(obj); > > if (num == ((void *)0)) { > return -1; > } > ret = PyLong_AsUnsignedLongLong(num); > if (PyErr_Occurred()) { > PyErr_Clear(); > ret = PyLong_AsLongLong(num); > } > do { if ( --((PyObject*)(num))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(num)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(num)))); } while (0); > return ret; >} ># 109 "numpy/core/src/multiarray/arraytypes.c.src" >static char * _SEQUENCE_MESSAGE = "error setting an array element with a sequence"; ># 127 "numpy/core/src/multiarray/arraytypes.c.src" >static PyObject * >BOOL_getitem(char *ip, PyArrayObject *ap) { > npy_bool t1; > > if ((ap == ((void *)0)) || (((((PyArrayObject *)(ap))->flags & (0x0100)) == (0x0100)) && (((((PyArrayObject *)(ap))->descr)->byteorder) != '>'))) { > t1 = *((npy_bool *)ip); > return PyBool_FromLong((long)t1); > } > else { > ap->descr->f->copyswap(&t1, ip, !(((((PyArrayObject *)(ap))->descr)->byteorder) != '>'), ap); > return PyBool_FromLong((long)t1); > } >} > >static int >BOOL_setitem(PyObject *op, char *ov, PyArrayObject *ap) { > npy_bool temp; > > if ((((((PyObject*)(op))->ob_type) == (&PyBoolArrType_Type) || PyType_IsSubtype((((PyObject*)(op))->ob_type), (&PyBoolArrType_Type))))) { > temp = ((PyBoolScalarObject *)op)->obval; > } > else { > temp = (npy_bool)PyObject_IsTrue(op); > } > if (PyErr_Occurred()) { > if (PySequence_Check(op) && !((((((PyObject*)(op))->ob_type))->tp_flags & ((1L<<27))) != 0) && > !((((((PyObject*)(op))->ob_type))->tp_flags & ((1L<<28))) != 0)) { > PyErr_Clear(); > PyErr_SetString(PyExc_ValueError, > "setting an array element with a sequence."); > } > return -1; > } > if (ap == ((void *)0) || (((((PyArrayObject *)(ap))->flags & ((0x0100 | 0x0400))) == ((0x0100 | 0x0400))) && (((((PyArrayObject *)(ap))->descr)->byteorder) != '>'))) > *((npy_bool *)ov)=temp; > else { > ap->descr->f->copyswap(ov, &temp, !(((((PyArrayObject *)(ap))->descr)->byteorder) != '>'), ap); > } > return 0; >} ># 127 "numpy/core/src/multiarray/arraytypes.c.src" >static PyObject * >BYTE_getitem(char *ip, PyArrayObject *ap) { > npy_byte t1; > > if ((ap == ((void *)0)) || (((((PyArrayObject *)(ap))->flags & (0x0100)) == (0x0100)) && (((((PyArrayObject *)(ap))->descr)->byteorder) != '>'))) { > t1 = *((npy_byte *)ip); > return PyInt_FromLong((long)t1); > } > else { > ap->descr->f->copyswap(&t1, ip, !(((((PyArrayObject *)(ap))->descr)->byteorder) != '>'), ap); > return PyInt_FromLong((long)t1); > } >} > >static int >BYTE_setitem(PyObject *op, char *ov, PyArrayObject *ap) { > npy_byte temp; > > if ((((((PyObject*)(op))->ob_type) == (&PyByteArrType_Type) || PyType_IsSubtype((((PyObject*)(op))->ob_type), (&PyByteArrType_Type))))) { > temp = ((PyByteScalarObject *)op)->obval; > } > else { > temp = (npy_byte)MyPyLong_AsLong(op); > } > if (PyErr_Occurred()) { > if (PySequence_Check(op) && !((((((PyObject*)(op))->ob_type))->tp_flags & ((1L<<27))) != 0) && > !((((((PyObject*)(op))->ob_type))->tp_flags & ((1L<<28))) != 0)) { > PyErr_Clear(); > PyErr_SetString(PyExc_ValueError, > "setting an array element with a sequence."); > } > return -1; > } > if (ap == ((void *)0) || (((((PyArrayObject *)(ap))->flags & ((0x0100 | 0x0400))) == ((0x0100 | 0x0400))) && (((((PyArrayObject *)(ap))->descr)->byteorder) != '>'))) > *((npy_byte *)ov)=temp; > else { > ap->descr->f->copyswap(ov, &temp, !(((((PyArrayObject *)(ap))->descr)->byteorder) != '>'), ap); > } > return 0; >} ># 127 "numpy/core/src/multiarray/arraytypes.c.src" >static PyObject * >UBYTE_getitem(char *ip, PyArrayObject *ap) { > npy_ubyte t1; > > if ((ap == ((void *)0)) || (((((PyArrayObject *)(ap))->flags & (0x0100)) == (0x0100)) && (((((PyArrayObject *)(ap))->descr)->byteorder) != '>'))) { > t1 = *((npy_ubyte *)ip); > return PyInt_FromLong((long)t1); > } > else { > ap->descr->f->copyswap(&t1, ip, !(((((PyArrayObject *)(ap))->descr)->byteorder) != '>'), ap); > return PyInt_FromLong((long)t1); > } >} > >static int >UBYTE_setitem(PyObject *op, char *ov, PyArrayObject *ap) { > npy_ubyte temp; > > if ((((((PyObject*)(op))->ob_type) == (&PyUByteArrType_Type) || PyType_IsSubtype((((PyObject*)(op))->ob_type), (&PyUByteArrType_Type))))) { > temp = ((PyUByteScalarObject *)op)->obval; > } > else { > temp = (npy_ubyte)MyPyLong_AsLong(op); > } > if (PyErr_Occurred()) { > if (PySequence_Check(op) && !((((((PyObject*)(op))->ob_type))->tp_flags & ((1L<<27))) != 0) && > !((((((PyObject*)(op))->ob_type))->tp_flags & ((1L<<28))) != 0)) { > PyErr_Clear(); > PyErr_SetString(PyExc_ValueError, > "setting an array element with a sequence."); > } > return -1; > } > if (ap == ((void *)0) || (((((PyArrayObject *)(ap))->flags & ((0x0100 | 0x0400))) == ((0x0100 | 0x0400))) && (((((PyArrayObject *)(ap))->descr)->byteorder) != '>'))) > *((npy_ubyte *)ov)=temp; > else { > ap->descr->f->copyswap(ov, &temp, !(((((PyArrayObject *)(ap))->descr)->byteorder) != '>'), ap); > } > return 0; >} ># 127 "numpy/core/src/multiarray/arraytypes.c.src" >static PyObject * >SHORT_getitem(char *ip, PyArrayObject *ap) { > short t1; > > if ((ap == ((void *)0)) || (((((PyArrayObject *)(ap))->flags & (0x0100)) == (0x0100)) && (((((PyArrayObject *)(ap))->descr)->byteorder) != '>'))) { > t1 = *((short *)ip); > return PyInt_FromLong((long)t1); > } > else { > ap->descr->f->copyswap(&t1, ip, !(((((PyArrayObject *)(ap))->descr)->byteorder) != '>'), ap); > return PyInt_FromLong((long)t1); > } >} > >static int >SHORT_setitem(PyObject *op, char *ov, PyArrayObject *ap) { > short temp; > > if ((((((PyObject*)(op))->ob_type) == (&PyShortArrType_Type) || PyType_IsSubtype((((PyObject*)(op))->ob_type), (&PyShortArrType_Type))))) { > temp = ((PyShortScalarObject *)op)->obval; > } > else { > temp = (short)MyPyLong_AsLong(op); > } > if (PyErr_Occurred()) { > if (PySequence_Check(op) && !((((((PyObject*)(op))->ob_type))->tp_flags & ((1L<<27))) != 0) && > !((((((PyObject*)(op))->ob_type))->tp_flags & ((1L<<28))) != 0)) { > PyErr_Clear(); > PyErr_SetString(PyExc_ValueError, > "setting an array element with a sequence."); > } > return -1; > } > if (ap == ((void *)0) || (((((PyArrayObject *)(ap))->flags & ((0x0100 | 0x0400))) == ((0x0100 | 0x0400))) && (((((PyArrayObject *)(ap))->descr)->byteorder) != '>'))) > *((short *)ov)=temp; > else { > ap->descr->f->copyswap(ov, &temp, !(((((PyArrayObject *)(ap))->descr)->byteorder) != '>'), ap); > } > return 0; >} ># 127 "numpy/core/src/multiarray/arraytypes.c.src" >static PyObject * >USHORT_getitem(char *ip, PyArrayObject *ap) { > npy_ushort t1; > > if ((ap == ((void *)0)) || (((((PyArrayObject *)(ap))->flags & (0x0100)) == (0x0100)) && (((((PyArrayObject *)(ap))->descr)->byteorder) != '>'))) { > t1 = *((npy_ushort *)ip); > return PyInt_FromLong((long)t1); > } > else { > ap->descr->f->copyswap(&t1, ip, !(((((PyArrayObject *)(ap))->descr)->byteorder) != '>'), ap); > return PyInt_FromLong((long)t1); > } >} > >static int >USHORT_setitem(PyObject *op, char *ov, PyArrayObject *ap) { > npy_ushort temp; > > if ((((((PyObject*)(op))->ob_type) == (&PyUShortArrType_Type) || PyType_IsSubtype((((PyObject*)(op))->ob_type), (&PyUShortArrType_Type))))) { > temp = ((PyUShortScalarObject *)op)->obval; > } > else { > temp = (npy_ushort)MyPyLong_AsLong(op); > } > if (PyErr_Occurred()) { > if (PySequence_Check(op) && !((((((PyObject*)(op))->ob_type))->tp_flags & ((1L<<27))) != 0) && > !((((((PyObject*)(op))->ob_type))->tp_flags & ((1L<<28))) != 0)) { > PyErr_Clear(); > PyErr_SetString(PyExc_ValueError, > "setting an array element with a sequence."); > } > return -1; > } > if (ap == ((void *)0) || (((((PyArrayObject *)(ap))->flags & ((0x0100 | 0x0400))) == ((0x0100 | 0x0400))) && (((((PyArrayObject *)(ap))->descr)->byteorder) != '>'))) > *((npy_ushort *)ov)=temp; > else { > ap->descr->f->copyswap(ov, &temp, !(((((PyArrayObject *)(ap))->descr)->byteorder) != '>'), ap); > } > return 0; >} ># 127 "numpy/core/src/multiarray/arraytypes.c.src" >static PyObject * >INT_getitem(char *ip, PyArrayObject *ap) { > int t1; > > if ((ap == ((void *)0)) || (((((PyArrayObject *)(ap))->flags & (0x0100)) == (0x0100)) && (((((PyArrayObject *)(ap))->descr)->byteorder) != '>'))) { > t1 = *((int *)ip); > return PyInt_FromLong((long)t1); > } > else { > ap->descr->f->copyswap(&t1, ip, !(((((PyArrayObject *)(ap))->descr)->byteorder) != '>'), ap); > return PyInt_FromLong((long)t1); > } >} > >static int >INT_setitem(PyObject *op, char *ov, PyArrayObject *ap) { > int temp; > > if ((((((PyObject*)(op))->ob_type) == (&PyIntArrType_Type) || PyType_IsSubtype((((PyObject*)(op))->ob_type), (&PyIntArrType_Type))))) { > temp = ((PyIntScalarObject *)op)->obval; > } > else { > temp = (int)MyPyLong_AsLong(op); > } > if (PyErr_Occurred()) { > if (PySequence_Check(op) && !((((((PyObject*)(op))->ob_type))->tp_flags & ((1L<<27))) != 0) && > !((((((PyObject*)(op))->ob_type))->tp_flags & ((1L<<28))) != 0)) { > PyErr_Clear(); > PyErr_SetString(PyExc_ValueError, > "setting an array element with a sequence."); > } > return -1; > } > if (ap == ((void *)0) || (((((PyArrayObject *)(ap))->flags & ((0x0100 | 0x0400))) == ((0x0100 | 0x0400))) && (((((PyArrayObject *)(ap))->descr)->byteorder) != '>'))) > *((int *)ov)=temp; > else { > ap->descr->f->copyswap(ov, &temp, !(((((PyArrayObject *)(ap))->descr)->byteorder) != '>'), ap); > } > return 0; >} ># 127 "numpy/core/src/multiarray/arraytypes.c.src" >static PyObject * >LONG_getitem(char *ip, PyArrayObject *ap) { > long t1; > > if ((ap == ((void *)0)) || (((((PyArrayObject *)(ap))->flags & (0x0100)) == (0x0100)) && (((((PyArrayObject *)(ap))->descr)->byteorder) != '>'))) { > t1 = *((long *)ip); > return PyInt_FromLong((long)t1); > } > else { > ap->descr->f->copyswap(&t1, ip, !(((((PyArrayObject *)(ap))->descr)->byteorder) != '>'), ap); > return PyInt_FromLong((long)t1); > } >} > >static int >LONG_setitem(PyObject *op, char *ov, PyArrayObject *ap) { > long temp; > > if ((((((PyObject*)(op))->ob_type) == (&PyLongArrType_Type) || PyType_IsSubtype((((PyObject*)(op))->ob_type), (&PyLongArrType_Type))))) { > temp = ((PyLongScalarObject *)op)->obval; > } > else { > temp = (long)MyPyLong_AsLong(op); > } > if (PyErr_Occurred()) { > if (PySequence_Check(op) && !((((((PyObject*)(op))->ob_type))->tp_flags & ((1L<<27))) != 0) && > !((((((PyObject*)(op))->ob_type))->tp_flags & ((1L<<28))) != 0)) { > PyErr_Clear(); > PyErr_SetString(PyExc_ValueError, > "setting an array element with a sequence."); > } > return -1; > } > if (ap == ((void *)0) || (((((PyArrayObject *)(ap))->flags & ((0x0100 | 0x0400))) == ((0x0100 | 0x0400))) && (((((PyArrayObject *)(ap))->descr)->byteorder) != '>'))) > *((long *)ov)=temp; > else { > ap->descr->f->copyswap(ov, &temp, !(((((PyArrayObject *)(ap))->descr)->byteorder) != '>'), ap); > } > return 0; >} ># 127 "numpy/core/src/multiarray/arraytypes.c.src" >static PyObject * >UINT_getitem(char *ip, PyArrayObject *ap) { > npy_uint t1; > > if ((ap == ((void *)0)) || (((((PyArrayObject *)(ap))->flags & (0x0100)) == (0x0100)) && (((((PyArrayObject *)(ap))->descr)->byteorder) != '>'))) { > t1 = *((npy_uint *)ip); > return PyLong_FromUnsignedLong((npy_ulong)t1); > } > else { > ap->descr->f->copyswap(&t1, ip, !(((((PyArrayObject *)(ap))->descr)->byteorder) != '>'), ap); > return PyLong_FromUnsignedLong((npy_ulong)t1); > } >} > >static int >UINT_setitem(PyObject *op, char *ov, PyArrayObject *ap) { > npy_uint temp; > > if ((((((PyObject*)(op))->ob_type) == (&PyUIntArrType_Type) || PyType_IsSubtype((((PyObject*)(op))->ob_type), (&PyUIntArrType_Type))))) { > temp = ((PyUIntScalarObject *)op)->obval; > } > else { > temp = (npy_uint)MyPyLong_AsUnsignedLong(op); > } > if (PyErr_Occurred()) { > if (PySequence_Check(op) && !((((((PyObject*)(op))->ob_type))->tp_flags & ((1L<<27))) != 0) && > !((((((PyObject*)(op))->ob_type))->tp_flags & ((1L<<28))) != 0)) { > PyErr_Clear(); > PyErr_SetString(PyExc_ValueError, > "setting an array element with a sequence."); > } > return -1; > } > if (ap == ((void *)0) || (((((PyArrayObject *)(ap))->flags & ((0x0100 | 0x0400))) == ((0x0100 | 0x0400))) && (((((PyArrayObject *)(ap))->descr)->byteorder) != '>'))) > *((npy_uint *)ov)=temp; > else { > ap->descr->f->copyswap(ov, &temp, !(((((PyArrayObject *)(ap))->descr)->byteorder) != '>'), ap); > } > return 0; >} ># 127 "numpy/core/src/multiarray/arraytypes.c.src" >static PyObject * >ULONG_getitem(char *ip, PyArrayObject *ap) { > npy_ulong t1; > > if ((ap == ((void *)0)) || (((((PyArrayObject *)(ap))->flags & (0x0100)) == (0x0100)) && (((((PyArrayObject *)(ap))->descr)->byteorder) != '>'))) { > t1 = *((npy_ulong *)ip); > return PyLong_FromUnsignedLong((npy_ulong)t1); > } > else { > ap->descr->f->copyswap(&t1, ip, !(((((PyArrayObject *)(ap))->descr)->byteorder) != '>'), ap); > return PyLong_FromUnsignedLong((npy_ulong)t1); > } >} > >static int >ULONG_setitem(PyObject *op, char *ov, PyArrayObject *ap) { > npy_ulong temp; > > if ((((((PyObject*)(op))->ob_type) == (&PyULongArrType_Type) || PyType_IsSubtype((((PyObject*)(op))->ob_type), (&PyULongArrType_Type))))) { > temp = ((PyULongScalarObject *)op)->obval; > } > else { > temp = (npy_ulong)MyPyLong_AsUnsignedLong(op); > } > if (PyErr_Occurred()) { > if (PySequence_Check(op) && !((((((PyObject*)(op))->ob_type))->tp_flags & ((1L<<27))) != 0) && > !((((((PyObject*)(op))->ob_type))->tp_flags & ((1L<<28))) != 0)) { > PyErr_Clear(); > PyErr_SetString(PyExc_ValueError, > "setting an array element with a sequence."); > } > return -1; > } > if (ap == ((void *)0) || (((((PyArrayObject *)(ap))->flags & ((0x0100 | 0x0400))) == ((0x0100 | 0x0400))) && (((((PyArrayObject *)(ap))->descr)->byteorder) != '>'))) > *((npy_ulong *)ov)=temp; > else { > ap->descr->f->copyswap(ov, &temp, !(((((PyArrayObject *)(ap))->descr)->byteorder) != '>'), ap); > } > return 0; >} ># 127 "numpy/core/src/multiarray/arraytypes.c.src" >static PyObject * >LONGLONG_getitem(char *ip, PyArrayObject *ap) { > npy_longlong t1; > > if ((ap == ((void *)0)) || (((((PyArrayObject *)(ap))->flags & (0x0100)) == (0x0100)) && (((((PyArrayObject *)(ap))->descr)->byteorder) != '>'))) { > t1 = *((npy_longlong *)ip); > return PyLong_FromLongLong((npy_longlong)t1); > } > else { > ap->descr->f->copyswap(&t1, ip, !(((((PyArrayObject *)(ap))->descr)->byteorder) != '>'), ap); > return PyLong_FromLongLong((npy_longlong)t1); > } >} > >static int >LONGLONG_setitem(PyObject *op, char *ov, PyArrayObject *ap) { > npy_longlong temp; > > if ((((((PyObject*)(op))->ob_type) == (&PyLongLongArrType_Type) || PyType_IsSubtype((((PyObject*)(op))->ob_type), (&PyLongLongArrType_Type))))) { > temp = ((PyLongLongScalarObject *)op)->obval; > } > else { > temp = (npy_longlong)MyPyLong_AsLongLong(op); > } > if (PyErr_Occurred()) { > if (PySequence_Check(op) && !((((((PyObject*)(op))->ob_type))->tp_flags & ((1L<<27))) != 0) && > !((((((PyObject*)(op))->ob_type))->tp_flags & ((1L<<28))) != 0)) { > PyErr_Clear(); > PyErr_SetString(PyExc_ValueError, > "setting an array element with a sequence."); > } > return -1; > } > if (ap == ((void *)0) || (((((PyArrayObject *)(ap))->flags & ((0x0100 | 0x0400))) == ((0x0100 | 0x0400))) && (((((PyArrayObject *)(ap))->descr)->byteorder) != '>'))) > *((npy_longlong *)ov)=temp; > else { > ap->descr->f->copyswap(ov, &temp, !(((((PyArrayObject *)(ap))->descr)->byteorder) != '>'), ap); > } > return 0; >} ># 127 "numpy/core/src/multiarray/arraytypes.c.src" >static PyObject * >ULONGLONG_getitem(char *ip, PyArrayObject *ap) { > npy_ulonglong t1; > > if ((ap == ((void *)0)) || (((((PyArrayObject *)(ap))->flags & (0x0100)) == (0x0100)) && (((((PyArrayObject *)(ap))->descr)->byteorder) != '>'))) { > t1 = *((npy_ulonglong *)ip); > return PyLong_FromUnsignedLongLong((npy_ulonglong)t1); > } > else { > ap->descr->f->copyswap(&t1, ip, !(((((PyArrayObject *)(ap))->descr)->byteorder) != '>'), ap); > return PyLong_FromUnsignedLongLong((npy_ulonglong)t1); > } >} > >static int >ULONGLONG_setitem(PyObject *op, char *ov, PyArrayObject *ap) { > npy_ulonglong temp; > > if ((((((PyObject*)(op))->ob_type) == (&PyULongLongArrType_Type) || PyType_IsSubtype((((PyObject*)(op))->ob_type), (&PyULongLongArrType_Type))))) { > temp = ((PyULongLongScalarObject *)op)->obval; > } > else { > temp = (npy_ulonglong)MyPyLong_AsUnsignedLongLong(op); > } > if (PyErr_Occurred()) { > if (PySequence_Check(op) && !((((((PyObject*)(op))->ob_type))->tp_flags & ((1L<<27))) != 0) && > !((((((PyObject*)(op))->ob_type))->tp_flags & ((1L<<28))) != 0)) { > PyErr_Clear(); > PyErr_SetString(PyExc_ValueError, > "setting an array element with a sequence."); > } > return -1; > } > if (ap == ((void *)0) || (((((PyArrayObject *)(ap))->flags & ((0x0100 | 0x0400))) == ((0x0100 | 0x0400))) && (((((PyArrayObject *)(ap))->descr)->byteorder) != '>'))) > *((npy_ulonglong *)ov)=temp; > else { > ap->descr->f->copyswap(ov, &temp, !(((((PyArrayObject *)(ap))->descr)->byteorder) != '>'), ap); > } > return 0; >} ># 127 "numpy/core/src/multiarray/arraytypes.c.src" >static PyObject * >HALF_getitem(char *ip, PyArrayObject *ap) { > npy_half t1; > > if ((ap == ((void *)0)) || (((((PyArrayObject *)(ap))->flags & (0x0100)) == (0x0100)) && (((((PyArrayObject *)(ap))->descr)->byteorder) != '>'))) { > t1 = *((npy_half *)ip); > return MyPyFloat_FromHalf((npy_half)t1); > } > else { > ap->descr->f->copyswap(&t1, ip, !(((((PyArrayObject *)(ap))->descr)->byteorder) != '>'), ap); > return MyPyFloat_FromHalf((npy_half)t1); > } >} > >static int >HALF_setitem(PyObject *op, char *ov, PyArrayObject *ap) { > npy_half temp; > > if ((((((PyObject*)(op))->ob_type) == (&PyHalfArrType_Type) || PyType_IsSubtype((((PyObject*)(op))->ob_type), (&PyHalfArrType_Type))))) { > temp = ((PyHalfScalarObject *)op)->obval; > } > else { > temp = (npy_half)MyPyFloat_AsHalf(op); > } > if (PyErr_Occurred()) { > if (PySequence_Check(op) && !((((((PyObject*)(op))->ob_type))->tp_flags & ((1L<<27))) != 0) && > !((((((PyObject*)(op))->ob_type))->tp_flags & ((1L<<28))) != 0)) { > PyErr_Clear(); > PyErr_SetString(PyExc_ValueError, > "setting an array element with a sequence."); > } > return -1; > } > if (ap == ((void *)0) || (((((PyArrayObject *)(ap))->flags & ((0x0100 | 0x0400))) == ((0x0100 | 0x0400))) && (((((PyArrayObject *)(ap))->descr)->byteorder) != '>'))) > *((npy_half *)ov)=temp; > else { > ap->descr->f->copyswap(ov, &temp, !(((((PyArrayObject *)(ap))->descr)->byteorder) != '>'), ap); > } > return 0; >} ># 127 "numpy/core/src/multiarray/arraytypes.c.src" >static PyObject * >FLOAT_getitem(char *ip, PyArrayObject *ap) { > float t1; > > if ((ap == ((void *)0)) || (((((PyArrayObject *)(ap))->flags & (0x0100)) == (0x0100)) && (((((PyArrayObject *)(ap))->descr)->byteorder) != '>'))) { > t1 = *((float *)ip); > return PyFloat_FromDouble((float)t1); > } > else { > ap->descr->f->copyswap(&t1, ip, !(((((PyArrayObject *)(ap))->descr)->byteorder) != '>'), ap); > return PyFloat_FromDouble((float)t1); > } >} > >static int >FLOAT_setitem(PyObject *op, char *ov, PyArrayObject *ap) { > float temp; > > if ((((((PyObject*)(op))->ob_type) == (&PyFloatArrType_Type) || PyType_IsSubtype((((PyObject*)(op))->ob_type), (&PyFloatArrType_Type))))) { > temp = ((PyFloatScalarObject *)op)->obval; > } > else { > temp = (float)MyPyFloat_AsDouble(op); > } > if (PyErr_Occurred()) { > if (PySequence_Check(op) && !((((((PyObject*)(op))->ob_type))->tp_flags & ((1L<<27))) != 0) && > !((((((PyObject*)(op))->ob_type))->tp_flags & ((1L<<28))) != 0)) { > PyErr_Clear(); > PyErr_SetString(PyExc_ValueError, > "setting an array element with a sequence."); > } > return -1; > } > if (ap == ((void *)0) || (((((PyArrayObject *)(ap))->flags & ((0x0100 | 0x0400))) == ((0x0100 | 0x0400))) && (((((PyArrayObject *)(ap))->descr)->byteorder) != '>'))) > *((float *)ov)=temp; > else { > ap->descr->f->copyswap(ov, &temp, !(((((PyArrayObject *)(ap))->descr)->byteorder) != '>'), ap); > } > return 0; >} ># 127 "numpy/core/src/multiarray/arraytypes.c.src" >static PyObject * >DOUBLE_getitem(char *ip, PyArrayObject *ap) { > double t1; > > if ((ap == ((void *)0)) || (((((PyArrayObject *)(ap))->flags & (0x0100)) == (0x0100)) && (((((PyArrayObject *)(ap))->descr)->byteorder) != '>'))) { > t1 = *((double *)ip); > return PyFloat_FromDouble((double)t1); > } > else { > ap->descr->f->copyswap(&t1, ip, !(((((PyArrayObject *)(ap))->descr)->byteorder) != '>'), ap); > return PyFloat_FromDouble((double)t1); > } >} > >static int >DOUBLE_setitem(PyObject *op, char *ov, PyArrayObject *ap) { > double temp; > > if ((((((PyObject*)(op))->ob_type) == (&PyDoubleArrType_Type) || PyType_IsSubtype((((PyObject*)(op))->ob_type), (&PyDoubleArrType_Type))))) { > temp = ((PyDoubleScalarObject *)op)->obval; > } > else { > temp = (double)MyPyFloat_AsDouble(op); > } > if (PyErr_Occurred()) { > if (PySequence_Check(op) && !((((((PyObject*)(op))->ob_type))->tp_flags & ((1L<<27))) != 0) && > !((((((PyObject*)(op))->ob_type))->tp_flags & ((1L<<28))) != 0)) { > PyErr_Clear(); > PyErr_SetString(PyExc_ValueError, > "setting an array element with a sequence."); > } > return -1; > } > if (ap == ((void *)0) || (((((PyArrayObject *)(ap))->flags & ((0x0100 | 0x0400))) == ((0x0100 | 0x0400))) && (((((PyArrayObject *)(ap))->descr)->byteorder) != '>'))) > *((double *)ov)=temp; > else { > ap->descr->f->copyswap(ov, &temp, !(((((PyArrayObject *)(ap))->descr)->byteorder) != '>'), ap); > } > return 0; >} ># 175 "numpy/core/src/multiarray/arraytypes.c.src" >static PyObject * >CFLOAT_getitem(char *ip, PyArrayObject *ap) { > float t1, t2; > > if ((ap == ((void *)0)) || (((((PyArrayObject *)(ap))->flags & (0x0100)) == (0x0100)) && (((((PyArrayObject *)(ap))->descr)->byteorder) != '>'))) { > return PyComplex_FromDoubles((double)((float *)ip)[0], > (double)((float *)ip)[1]); > } > else { > int size = sizeof(float); > npy_bool swap = !(((((PyArrayObject *)(ap))->descr)->byteorder) != '>'); > copy_and_swap(&t1, ip, size, 1, 0, swap); > copy_and_swap(&t2, ip + size, size, 1, 0, swap); > return PyComplex_FromDoubles((double)t1, (double)t2); > } >} ># 175 "numpy/core/src/multiarray/arraytypes.c.src" >static PyObject * >CDOUBLE_getitem(char *ip, PyArrayObject *ap) { > double t1, t2; > > if ((ap == ((void *)0)) || (((((PyArrayObject *)(ap))->flags & (0x0100)) == (0x0100)) && (((((PyArrayObject *)(ap))->descr)->byteorder) != '>'))) { > return PyComplex_FromDoubles((double)((double *)ip)[0], > (double)((double *)ip)[1]); > } > else { > int size = sizeof(double); > npy_bool swap = !(((((PyArrayObject *)(ap))->descr)->byteorder) != '>'); > copy_and_swap(&t1, ip, size, 1, 0, swap); > copy_and_swap(&t2, ip + size, size, 1, 0, swap); > return PyComplex_FromDoubles((double)t1, (double)t2); > } >} ># 202 "numpy/core/src/multiarray/arraytypes.c.src" >static int >CFLOAT_setitem(PyObject *op, char *ov, PyArrayObject *ap) >{ > Py_complex oop; > PyObject *op2; > npy_cfloat temp; > int rsize; > > if (!((((((PyObject*)(op))->ob_type) == (&PyCFloatArrType_Type) || PyType_IsSubtype((((PyObject*)(op))->ob_type), (&PyCFloatArrType_Type)))))) { > if (((((PyObject*)(op))->ob_type) == (&PyArray_Type) || PyType_IsSubtype((((PyObject*)(op))->ob_type), (&PyArray_Type))) && ((((PyArrayObject *)(op))->nd) == 0)) { > op2 = ((PyArrayObject *)op)->descr->f->getitem > (((PyArrayObject *)op)->data, (PyArrayObject *)op); > } > else { > op2 = op; ( ((PyObject*)(op))->ob_refcnt++); > } > if (op2 == (&_Py_NoneStruct)) { > oop.real = ((npy_double)__npy_nanf()); > oop.imag = ((npy_double)__npy_nanf()); > } > else { > oop = PyComplex_AsCComplex (op2); > } > do { if ( --((PyObject*)(op2))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(op2)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(op2)))); } while (0); > if (PyErr_Occurred()) { > return -1; > } > temp.real = (float) oop.real; > temp.imag = (float) oop.imag; > } > else { > temp = ((PyCFloatScalarObject *)op)->obval; > } > memcpy(ov, &temp, ap->descr->elsize); > if (!(((((PyArrayObject *)(ap))->descr)->byteorder) != '>')) { > byte_swap_vector(ov, 2, sizeof(float)); > } > rsize = sizeof(float); > copy_and_swap(ov, &temp, rsize, 2, rsize, !(((((PyArrayObject *)(ap))->descr)->byteorder) != '>')); > return 0; >} ># 202 "numpy/core/src/multiarray/arraytypes.c.src" >static int >CDOUBLE_setitem(PyObject *op, char *ov, PyArrayObject *ap) >{ > Py_complex oop; > PyObject *op2; > npy_cdouble temp; > int rsize; > > if (!((((((PyObject*)(op))->ob_type) == (&PyCDoubleArrType_Type) || PyType_IsSubtype((((PyObject*)(op))->ob_type), (&PyCDoubleArrType_Type)))))) { > if (((((PyObject*)(op))->ob_type) == (&PyArray_Type) || PyType_IsSubtype((((PyObject*)(op))->ob_type), (&PyArray_Type))) && ((((PyArrayObject *)(op))->nd) == 0)) { > op2 = ((PyArrayObject *)op)->descr->f->getitem > (((PyArrayObject *)op)->data, (PyArrayObject *)op); > } > else { > op2 = op; ( ((PyObject*)(op))->ob_refcnt++); > } > if (op2 == (&_Py_NoneStruct)) { > oop.real = ((npy_double)__npy_nanf()); > oop.imag = ((npy_double)__npy_nanf()); > } > else { > oop = PyComplex_AsCComplex (op2); > } > do { if ( --((PyObject*)(op2))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(op2)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(op2)))); } while (0); > if (PyErr_Occurred()) { > return -1; > } > temp.real = (double) oop.real; > temp.imag = (double) oop.imag; > } > else { > temp = ((PyCDoubleScalarObject *)op)->obval; > } > memcpy(ov, &temp, ap->descr->elsize); > if (!(((((PyArrayObject *)(ap))->descr)->byteorder) != '>')) { > byte_swap_vector(ov, 2, sizeof(double)); > } > rsize = sizeof(double); > copy_and_swap(ov, &temp, rsize, 2, rsize, !(((((PyArrayObject *)(ap))->descr)->byteorder) != '>')); > return 0; >} ># 202 "numpy/core/src/multiarray/arraytypes.c.src" >static int >CLONGDOUBLE_setitem(PyObject *op, char *ov, PyArrayObject *ap) >{ > Py_complex oop; > PyObject *op2; > npy_clongdouble temp; > int rsize; > > if (!((((((PyObject*)(op))->ob_type) == (&PyCLongDoubleArrType_Type) || PyType_IsSubtype((((PyObject*)(op))->ob_type), (&PyCLongDoubleArrType_Type)))))) { > if (((((PyObject*)(op))->ob_type) == (&PyArray_Type) || PyType_IsSubtype((((PyObject*)(op))->ob_type), (&PyArray_Type))) && ((((PyArrayObject *)(op))->nd) == 0)) { > op2 = ((PyArrayObject *)op)->descr->f->getitem > (((PyArrayObject *)op)->data, (PyArrayObject *)op); > } > else { > op2 = op; ( ((PyObject*)(op))->ob_refcnt++); > } > if (op2 == (&_Py_NoneStruct)) { > oop.real = ((npy_double)__npy_nanf()); > oop.imag = ((npy_double)__npy_nanf()); > } > else { > oop = PyComplex_AsCComplex (op2); > } > do { if ( --((PyObject*)(op2))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(op2)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(op2)))); } while (0); > if (PyErr_Occurred()) { > return -1; > } > temp.real = (npy_longdouble) oop.real; > temp.imag = (npy_longdouble) oop.imag; > } > else { > temp = ((PyCLongDoubleScalarObject *)op)->obval; > } > memcpy(ov, &temp, ap->descr->elsize); > if (!(((((PyArrayObject *)(ap))->descr)->byteorder) != '>')) { > byte_swap_vector(ov, 2, sizeof(npy_longdouble)); > } > rsize = sizeof(npy_longdouble); > copy_and_swap(ov, &temp, rsize, 2, rsize, !(((((PyArrayObject *)(ap))->descr)->byteorder) != '>')); > return 0; >} > > > > > > > >static PyObject * >LONGDOUBLE_getitem(char *ip, PyArrayObject *ap) >{ > return PyArray_Scalar(ip, ap->descr, ((void *)0)); >} > >static int >LONGDOUBLE_setitem(PyObject *op, char *ov, PyArrayObject *ap) { > > npy_longdouble temp; > > if ((((((PyObject*)(op))->ob_type) == (&PyLongDoubleArrType_Type) || PyType_IsSubtype((((PyObject*)(op))->ob_type), (&PyLongDoubleArrType_Type))))) { > temp = ((PyLongDoubleScalarObject *)op)->obval; > } > else { > temp = (npy_longdouble) MyPyFloat_AsDouble(op); > } > if (PyErr_Occurred()) { > return -1; > } > if (ap == ((void *)0) || (((((PyArrayObject *)(ap))->flags & ((0x0100 | 0x0400))) == ((0x0100 | 0x0400))) && (((((PyArrayObject *)(ap))->descr)->byteorder) != '>'))) { > *((npy_longdouble *)ov) = temp; > } > else { > copy_and_swap(ov, &temp, ap->descr->elsize, 1, 0, > !(((((PyArrayObject *)(ap))->descr)->byteorder) != '>')); > } > return 0; >} > >static PyObject * >CLONGDOUBLE_getitem(char *ip, PyArrayObject *ap) >{ > return PyArray_Scalar(ip, ap->descr, ((void *)0)); >} > > >static PyObject * >UNICODE_getitem(char *ip, PyArrayObject *ap) >{ > npy_intp elsize = ap->descr->elsize; > npy_intp mysize = elsize/sizeof(npy_ucs4); > int alloc = 0; > npy_ucs4 *buffer = ((void *)0); > PyUnicodeObject *obj; > npy_intp i; > > if (!(((((PyArrayObject *)(ap))->flags & (0x0100)) == (0x0100)) && (((((PyArrayObject *)(ap))->descr)->byteorder) != '>'))) { > buffer = malloc(elsize); > if (buffer == ((void *)0)) { > PyErr_NoMemory(); > goto fail; > } > alloc = 1; > memcpy(buffer, ip, elsize); > if (!(((((PyArrayObject *)(ap))->descr)->byteorder) != '>')) { > byte_swap_vector(buffer, mysize, sizeof(npy_ucs4)); > } > } > else { > buffer = (npy_ucs4 *)ip; > } > for (i = mysize; i > 0 && buffer[--i] == 0; mysize = i); > > > obj = (PyUnicodeObject *)PyUnicodeUCS4_FromUnicode(buffer, mysize); ># 330 "numpy/core/src/multiarray/arraytypes.c.src" > if (alloc) { > free(buffer); > } > return (PyObject *)obj; > >fail: > if (alloc) { > free(buffer); > } > return ((void *)0); >} > >static int >UNICODE_setitem(PyObject *op, char *ov, PyArrayObject *ap) >{ > PyObject *temp; > Py_UNICODE *ptr; > int datalen; > > > > > if (!((((((PyObject*)(op))->ob_type))->tp_flags & ((1L<<27))) != 0) && !((((((PyObject*)(op))->ob_type))->tp_flags & ((1L<<28))) != 0) && > PySequence_Check(op) && PySequence_Size(op) > 0) { > PyErr_SetString(PyExc_ValueError, > "setting an array element with a sequence"); > return -1; > } > > if (PyErr_Occurred()) { > PyErr_Clear(); > } ># 372 "numpy/core/src/multiarray/arraytypes.c.src" > if ((temp=PyObject_Unicode(op)) == ((void *)0)) { > > return -1; > } > ptr = (((PyUnicodeObject *)(temp))->str); > if ((ptr == ((void *)0)) || (PyErr_Occurred())) { > do { if ( --((PyObject*)(temp))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(temp)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(temp)))); } while (0); > return -1; > } > datalen = (((PyUnicodeObject *)(temp))->length * sizeof(Py_UNICODE)); > > > memcpy(ov, ptr, (((ap->descr->elsize)<(datalen))?(ap->descr->elsize):(datalen))); ># 406 "numpy/core/src/multiarray/arraytypes.c.src" > if (ap->descr->elsize > datalen) { > memset(ov + datalen, 0, (ap->descr->elsize - datalen)); > } > if (!(((((PyArrayObject *)(ap))->descr)->byteorder) != '>')) { > byte_swap_vector(ov, ap->descr->elsize >> 2, 4); > } > do { if ( --((PyObject*)(temp))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(temp)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(temp)))); } while (0); > return 0; >} > > > > > > >static PyObject * >STRING_getitem(char *ip, PyArrayObject *ap) >{ > > char *ptr; > int size = ap->descr->elsize; > > ptr = ip + size - 1; > while (*ptr-- == '\0' && size > 0) { > size--; > } > return PyString_FromStringAndSize(ip,size); >} > >static int >STRING_setitem(PyObject *op, char *ov, PyArrayObject *ap) >{ > char *ptr; > Py_ssize_t len; > PyObject *temp = ((void *)0); > > > if (((((PyObject*)(op))->ob_type) == (&PyArray_Type) || PyType_IsSubtype((((PyObject*)(op))->ob_type), (&PyArray_Type))) && (((PyArrayObject *)(op))->nd) == 0) { > temp = PyArray_Scalar(((void *)(((PyArrayObject *)(op))->data)), (((PyArrayObject *)(op))->descr), (PyObject *)op); > if (temp == ((void *)0)) { > return -1; > } > else { > int res = STRING_setitem(temp, ov, ap); > do { if ( --((PyObject*)(temp))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(temp)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(temp)))); } while (0); > return res; > } > } > > if (!((((((PyObject*)(op))->ob_type))->tp_flags & ((1L<<27))) != 0) && !((((((PyObject*)(op))->ob_type))->tp_flags & ((1L<<28))) != 0) > && PySequence_Check(op) && PySequence_Size(op) != 0) { > PyErr_SetString(PyExc_ValueError, > "cannot set an array element with a sequence"); > return -1; > } ># 487 "numpy/core/src/multiarray/arraytypes.c.src" > if ((temp = PyObject_Str(op)) == ((void *)0)) { > return -1; > } > > if (PyString_AsStringAndSize(temp, &ptr, &len) == -1) { > do { if ( --((PyObject*)(temp))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(temp)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(temp)))); } while (0); > return -1; > } > memcpy(ov, ptr, (((ap->descr->elsize)<(len))?(ap->descr->elsize):(len))); > > > > > if (ap->descr->elsize > len) { > memset(ov + len, 0, (ap->descr->elsize - len)); > } > do { if ( --((PyObject*)(temp))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(temp)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(temp)))); } while (0); > return 0; >} > > > > > >static PyObject * >OBJECT_getitem(char *ip, PyArrayObject *ap) >{ > PyObject *obj; > (*((PyObject **)(&obj)) = *((PyObject **)(ip))); > if (obj == ((void *)0)) { > ( ((PyObject*)((&_Py_NoneStruct)))->ob_refcnt++); > return (&_Py_NoneStruct); > } > else { > ( ((PyObject*)(obj))->ob_refcnt++); > return obj; > } >} > > >static int >OBJECT_setitem(PyObject *op, char *ov, PyArrayObject *ap) >{ > PyObject *obj; > > (*((PyObject **)(&obj)) = *((PyObject **)(ov))); > do { if ((obj) == ((void *)0)) ; else do { if ( --((PyObject*)(obj))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(obj)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(obj)))); } while (0); } while (0); > > ( ((PyObject*)(op))->ob_refcnt++); > (*((PyObject **)(ov)) = *((PyObject **)(&op))); > > return PyErr_Occurred() ? -1 : 0; >} > > > >static PyObject * >VOID_getitem(char *ip, PyArrayObject *ap) >{ > PyObject *u = ((void *)0); > PyArray_Descr* descr; > int itemsize; > > descr = ap->descr; > if (descr->names != ((void *)0)) { > PyObject *key; > PyObject *names; > int i, n; > PyObject *ret; > PyObject *tup, *title; > PyArray_Descr *new; > int offset; > int savedflags; > > > names = descr->names; > n = (((PyVarObject*)(names))->ob_size); > ret = PyTuple_New(n); > savedflags = ap->flags; > for (i = 0; i < n; i++) { > key = (((PyTupleObject *)(names))->ob_item[i]); > tup = PyDict_GetItem(descr->fields, key); > if (!_PyArg_ParseTuple_SizeT(tup, "Oi|O", &new, &offset, &title)) { > do { if ( --((PyObject*)(ret))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(ret)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(ret)))); } while (0); > ap->descr = descr; > return ((void *)0); > } > ap->descr = new; > > if ((new->alignment > 1) > && ((((npy_intp)(ip+offset)) % new->alignment) != 0)) { > ap->flags &= ~0x0100; > } > else { > ap->flags |= 0x0100; > } > (((PyTupleObject *)(ret))->ob_item[i] = new->f->getitem(ip+offset, ap)); > ap->flags = savedflags; > } > ap->descr = descr; > return ret; > } > > if (descr->subarray) { > > PyArray_Dims shape = {((void *)0), -1}; > PyObject *ret; > > if (!(PyArray_IntpConverter(descr->subarray->shape, &shape))) { > PyMem_Free(shape.ptr); > PyErr_SetString(PyExc_ValueError, > "invalid shape in fixed-type tuple."); > return ((void *)0); > } > ( ((PyObject*)(descr->subarray->base))->ob_refcnt++); > ret = PyArray_NewFromDescr(&PyArray_Type, > descr->subarray->base, shape.len, shape.ptr, > ((void *)0), ip, ap->flags&(~0x0002), ((void *)0)); > PyMem_Free(shape.ptr); > if (!ret) { > return ((void *)0); > } > (((PyArrayObject *)(ret))->base) = (PyObject *)ap; > ( ((PyObject*)(ap))->ob_refcnt++); > PyArray_UpdateFlags((PyArrayObject *)ret, (0x0001 | 0x0002 | 0x0100)); > return ret; > } > > if ((((descr)->flags & (0x01)) == (0x01)) > || (((descr)->flags & (0x04)) == (0x04))) { > PyErr_SetString(PyExc_ValueError, > "tried to get void-array with object members as buffer."); > return ((void *)0); > } > itemsize = ap->descr->elsize; ># 644 "numpy/core/src/multiarray/arraytypes.c.src" > if (((((PyArrayObject *)(ap))->flags & (0x0400)) == (0x0400))) { > u = PyBuffer_FromReadWriteMemory(ip, itemsize); > } > else { > u = PyBuffer_FromMemory(ip, itemsize); > } > > if (u == ((void *)0)) { > goto fail; > } > return u; > >fail: > return ((void *)0); >} > > >static int PyArray_CopyObject(PyArrayObject *, PyObject *); > >static int >VOID_setitem(PyObject *op, char *ip, PyArrayObject *ap) >{ > PyArray_Descr* descr; > int itemsize=ap->descr->elsize; > int res; > > descr = ap->descr; > if (descr->names && ((((((PyObject*)(op))->ob_type))->tp_flags & ((1L<<26))) != 0)) { > PyObject *key; > PyObject *names; > int i, n; > PyObject *tup, *title; > PyArray_Descr *new; > int offset; > int savedflags; > > res = -1; > > names = descr->names; > n = (((PyVarObject*)(names))->ob_size); > if ((((PyVarObject*)(op))->ob_size) != n) { > PyErr_SetString(PyExc_ValueError, > "size of tuple must match number of fields."); > return -1; > } > savedflags = ap->flags; > for (i = 0; i < n; i++) { > key = (((PyTupleObject *)(names))->ob_item[i]); > tup = PyDict_GetItem(descr->fields, key); > if (!_PyArg_ParseTuple_SizeT(tup, "Oi|O", &new, &offset, &title)) { > ap->descr = descr; > return -1; > } > ap->descr = new; > > if ((new->alignment > 1) > && ((((npy_intp)(ip+offset)) % new->alignment) != 0)) { > ap->flags &= ~0x0100; > } > else { > ap->flags |= 0x0100; > } > res = new->f->setitem((((PyTupleObject *)(op))->ob_item[i]), ip+offset, ap); > ap->flags = savedflags; > if (res < 0) { > break; > } > } > ap->descr = descr; > return res; > } > > if (descr->subarray) { > > PyArray_Dims shape = {((void *)0), -1}; > PyObject *ret; > if (!(PyArray_IntpConverter(descr->subarray->shape, &shape))) { > PyMem_Free(shape.ptr); > PyErr_SetString(PyExc_ValueError, > "invalid shape in fixed-type tuple."); > return -1; > } > ( ((PyObject*)(descr->subarray->base))->ob_refcnt++); > ret = PyArray_NewFromDescr(&PyArray_Type, > descr->subarray->base, shape.len, shape.ptr, > ((void *)0), ip, ap->flags, ((void *)0)); > PyMem_Free(shape.ptr); > if (!ret) { > return -1; > } > (((PyArrayObject *)(ret))->base) = (PyObject *)ap; > ( ((PyObject*)(ap))->ob_refcnt++); > PyArray_UpdateFlags((PyArrayObject *)ret, (0x0001 | 0x0002 | 0x0100)); > res = PyArray_CopyObject((PyArrayObject *)ret, op); > do { if ( --((PyObject*)(ret))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(ret)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(ret)))); } while (0); > return res; > } > > > { > const void *buffer; > Py_ssize_t buflen; > if ((((descr)->flags & (0x01)) == (0x01)) > || (((descr)->flags & (0x04)) == (0x04))) { > PyErr_SetString(PyExc_ValueError, > "Setting void-array with object members using buffer."); > return -1; > } > res = PyObject_AsReadBuffer(op, &buffer, &buflen); > if (res == -1) { > goto fail; > } > memcpy(ip, buffer, (((buflen)<(itemsize))?(buflen):(itemsize))); > if (itemsize > buflen) { > memset(ip + buflen, 0, itemsize - buflen); > } > } > return 0; > >fail: > return -1; >} ># 789 "numpy/core/src/multiarray/arraytypes.c.src" >static PyObject * >PyDateTime_FromNormalized(npy_datetime val, NPY_DATETIMEUNIT base) >{ > npy_datetimestruct ydate; > > > PyDateTimeAPI = (PyDateTime_CAPI *)PyCapsule_Import("datetime.datetime_CAPI", 0); > > > PyArray_DatetimeToDatetimeStruct(val, base, &ydate); > > > return PyDateTimeAPI->DateTime_FromDateAndTime(ydate.year, ydate.month, ydate.day, ydate.hour, ydate.min, ydate.sec, ydate.us, (&_Py_NoneStruct), PyDateTimeAPI->DateTimeType); > > >} > > > > > > >static PyObject * >PyTimeDelta_FromNormalized(npy_timedelta val, NPY_DATETIMEUNIT base) >{ > npy_timedeltastruct td; > > PyDateTimeAPI = (PyDateTime_CAPI *)PyCapsule_Import("datetime.datetime_CAPI", 0); > PyArray_TimedeltaToTimedeltaStruct(val, base, &td); > > > return PyDateTimeAPI->Delta_FromDelta(td.day, td.sec, td.us, 1, PyDateTimeAPI->DeltaType); >} > > >static PyObject * >PyDateTime_FromInt64(npy_datetime val, PyArray_Descr *descr) >{ > PyArray_DatetimeMetaData *meta; > > meta = ((descr->metadata == ((void *)0)) ? ((void *)0) : ((PyArray_DatetimeMetaData *)(PyCObject_AsVoidPtr( PyDict_GetItemString(descr->metadata, "__frequency__"))))); > if (meta == ((void *)0)) { > PyErr_SetString(PyExc_RuntimeError, > "metadata not set for descriptor"); > return ((void *)0); > } > > if (meta->events > 1) { > int events, rem, div; > PyObject *obj; > > obj = PyTuple_New(2); > events = meta->events; > div = val/events; > rem = val % events; > (((PyTupleObject *)(obj))->ob_item[1] = PyInt_FromLong(rem)); > > meta->events = 1; > (((PyTupleObject *)(obj))->ob_item[0] = PyDateTime_FromInt64(div, descr)); > meta->events = events; > if (PyErr_Occurred()) { > do { if ( --((PyObject*)(obj))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(obj)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(obj)))); } while (0); > return ((void *)0); > } > return obj; > } ># 866 "numpy/core/src/multiarray/arraytypes.c.src" > return PyDateTime_FromNormalized(val*meta->num, meta->base); >} > > >static PyObject * >PyTimeDelta_FromInt64(npy_timedelta val, PyArray_Descr *descr) >{ > PyArray_DatetimeMetaData *meta; > meta = ((descr->metadata == ((void *)0)) ? ((void *)0) : ((PyArray_DatetimeMetaData *)(PyCObject_AsVoidPtr( PyDict_GetItemString(descr->metadata, "__frequency__"))))); > if (meta == ((void *)0)) { > PyErr_SetString(PyExc_RuntimeError, > "metadata not set for descriptor"); > return ((void *)0); > } > > if (meta->events > 1) { > int events, rem, div; > PyObject *obj; > > obj = PyTuple_New(2); > events = meta->events; > div = val/events; > rem = val % events; > (((PyTupleObject *)(obj))->ob_item[1] = PyInt_FromLong(rem)); > > meta->events = 1; > (((PyTupleObject *)(obj))->ob_item[0] = PyTimeDelta_FromInt64(div, descr)); > meta->events = events; > if (PyErr_Occurred()) { > do { if ( --((PyObject*)(obj))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(obj)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(obj)))); } while (0); > return ((void *)0); > } > return obj; > } > > > return PyTimeDelta_FromNormalized(val*meta->num, meta->base); >} > > > >static npy_datetime >PyDateTime_AsNormalized(PyObject *obj, NPY_DATETIMEUNIT base) >{ > npy_datetimestruct ydate; > > > PyDateTimeAPI = (PyDateTime_CAPI *)PyCapsule_Import("datetime.datetime_CAPI", 0); > > if (!((((PyObject*)(obj))->ob_type) == (PyDateTimeAPI->DateTimeType) || PyType_IsSubtype((((PyObject*)(obj))->ob_type), (PyDateTimeAPI->DateTimeType))) && !((((PyObject*)(obj))->ob_type) == (PyDateTimeAPI->DateType) || PyType_IsSubtype((((PyObject*)(obj))->ob_type), (PyDateTimeAPI->DateType)))) { > PyErr_SetString(PyExc_ValueError, > "Must be a datetime.date or datetime.datetime object"); > return -1; > } > > ydate.year = ((((PyDateTime_Date*)obj)->data[0] << 8) | ((PyDateTime_Date*)obj)->data[1]); > ydate.month = (((PyDateTime_Date*)obj)->data[2]); > ydate.day = (((PyDateTime_Date*)obj)->data[3]); > > if (((((PyObject*)(obj))->ob_type) == (PyDateTimeAPI->DateTimeType) || PyType_IsSubtype((((PyObject*)(obj))->ob_type), (PyDateTimeAPI->DateTimeType)))) { > ydate.hour = (((PyDateTime_DateTime*)obj)->data[4]); > ydate.min = (((PyDateTime_DateTime*)obj)->data[5]); > ydate.sec = (((PyDateTime_DateTime*)obj)->data[6]); > ydate.us = ((((PyDateTime_DateTime*)obj)->data[7] << 16) | (((PyDateTime_DateTime*)obj)->data[8] << 8) | ((PyDateTime_DateTime*)obj)->data[9]); > } > else { > ydate.hour = 0; > ydate.min = 0; > ydate.sec = 0; > ydate.us = 0; > } > > ydate.ps = 0; > ydate.as = 0; > > > return PyArray_DatetimeStructToDatetime(base, &ydate); >} > >static npy_timedelta >PyTimeDelta_AsNormalized(PyObject *obj, NPY_DATETIMEUNIT base) >{ > npy_timedeltastruct td; > > PyDateTimeAPI = (PyDateTime_CAPI *)PyCapsule_Import("datetime.datetime_CAPI", 0); > > if (!((((PyObject*)(obj))->ob_type) == (PyDateTimeAPI->DeltaType) || PyType_IsSubtype((((PyObject*)(obj))->ob_type), (PyDateTimeAPI->DeltaType)))) { > PyErr_SetString(PyExc_ValueError, > "Must be a datetime.timedelta object"); > return -1; > } > > td.day = ((PyDateTime_Delta *)obj)->days; > td.sec = ((PyDateTime_Delta *)obj)->seconds; > td.us = ((PyDateTime_Delta *)obj)->microseconds; > td.ps = 0; > td.as = 0; > > return PyArray_TimedeltaStructToTimedelta(base, &td); >} ># 974 "numpy/core/src/multiarray/arraytypes.c.src" >static npy_datetime >PyDateTime_AsInt64(PyObject *obj, PyArray_Descr *descr) >{ > PyArray_DatetimeMetaData *meta; > npy_datetime res; > > meta = ((descr->metadata == ((void *)0)) ? ((void *)0) : ((PyArray_DatetimeMetaData *)(PyCObject_AsVoidPtr( PyDict_GetItemString(descr->metadata, "__frequency__"))))); > if (meta == ((void *)0)) { > PyErr_SetString(PyExc_RuntimeError, > "metadata not set for descriptor"); > return -1; > } > > > if (meta->events > 1) { > npy_datetime tmp; > int events; > > if (!((((((PyObject*)(obj))->ob_type))->tp_flags & ((1L<<26))) != 0) || (((PyVarObject*)(obj))->ob_size) != 2) { > PyErr_SetString(PyExc_ValueError, > "need a 2-tuple on setting if events > 1"); > return -1; > } > > > events = meta->events; > meta->events = 1; > tmp = PyDateTime_AsInt64((((PyTupleObject *)(obj))->ob_item[0]), descr); > meta->events = events; > if (PyErr_Occurred()) { > return -1; > } > > tmp *= events; > tmp += MyPyLong_AsLongLong((((PyTupleObject *)(obj))->ob_item[1])); > if (PyErr_Occurred()) { > return -1; > } > return tmp; > } > > res = PyDateTime_AsNormalized(obj, meta->base); > return res/meta->num; >} > > >static npy_timedelta >PyTimeDelta_AsInt64(PyObject *obj, PyArray_Descr *descr) >{ > PyArray_DatetimeMetaData *meta; > npy_timedelta res; > > meta = ((descr->metadata == ((void *)0)) ? ((void *)0) : ((PyArray_DatetimeMetaData *)(PyCObject_AsVoidPtr( PyDict_GetItemString(descr->metadata, "__frequency__"))))); > if (meta == ((void *)0)) { > PyErr_SetString(PyExc_RuntimeError, > "metadata not set for descriptor"); > return -1; > } > > if (meta->events > 1) { > npy_timedelta tmp; > int events; > > if (!((((((PyObject*)(obj))->ob_type))->tp_flags & ((1L<<26))) != 0) || (((PyVarObject*)(obj))->ob_size) != 2) { > PyErr_SetString(PyExc_ValueError, > "need a 2-tuple on setting if events > 1"); > return -1; > } > > events = meta->events; > meta->events = 1; > tmp = PyTimeDelta_AsInt64((((PyTupleObject *)(obj))->ob_item[0]), descr); > meta->events = events; > if (PyErr_Occurred()) { > return -1; > } > > tmp *= events; > tmp += MyPyLong_AsLongLong((((PyTupleObject *)(obj))->ob_item[1])); > if (PyErr_Occurred()) { > return -1; > } > return tmp; > } > > res = PyTimeDelta_AsNormalized(obj, meta->base); > return res / meta->num; >} ># 1089 "numpy/core/src/multiarray/arraytypes.c.src" >static PyObject * >DATETIME_getitem(char *ip, PyArrayObject *ap) { > npy_datetime t1; > > if ((ap == ((void *)0)) || (((((PyArrayObject *)(ap))->flags & (0x0100)) == (0x0100)) && (((((PyArrayObject *)(ap))->descr)->byteorder) != '>'))) { > t1 = *((npy_datetime *)ip); > return PyDateTime_FromInt64((npy_datetime)t1, ap->descr); > } > else { > ap->descr->f->copyswap(&t1, ip, !(((((PyArrayObject *)(ap))->descr)->byteorder) != '>'), ap); > return PyDateTime_FromInt64((npy_datetime)t1, ap->descr); > } >} > > >static PyObject * >TIMEDELTA_getitem(char *ip, PyArrayObject *ap) { > npy_timedelta t1; > > if ((ap == ((void *)0)) || (((((PyArrayObject *)(ap))->flags & (0x0100)) == (0x0100)) && (((((PyArrayObject *)(ap))->descr)->byteorder) != '>'))) { > t1 = *((npy_timedelta *)ip); > return PyTimeDelta_FromInt64((npy_timedelta)t1, ap->descr); > } > else { > ap->descr->f->copyswap(&t1, ip, !(((((PyArrayObject *)(ap))->descr)->byteorder) != '>'), ap); > return PyTimeDelta_FromInt64((npy_timedelta)t1, ap->descr); > } >} ># 1129 "numpy/core/src/multiarray/arraytypes.c.src" >static int >DATETIME_setitem(PyObject *op, char *ov, PyArrayObject *ap) { > > npy_datetime temp; > > if ((((((PyObject*)(op))->ob_type) == (&PyDatetimeArrType_Type) || PyType_IsSubtype((((PyObject*)(op))->ob_type), (&PyDatetimeArrType_Type))))) { > > temp = ((PyDatetimeScalarObject *)op)->obval; > } > > > > else if (((((((PyObject*)(op))->ob_type))->tp_flags & ((1L<<27))) != 0) || ((((((PyObject*)(op))->ob_type))->tp_flags & ((1L<<28))) != 0)) { > > > > > > > PyObject *res, *module; > > module = PyImport_ImportModule("numpy.core._mx_datetime_parser"); > if (module == ((void *)0)) { return -1; } > res = _PyObject_CallMethod_SizeT(module, "datetime_from_string", "O", op); > do { if ( --((PyObject*)(module))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(module)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(module)))); } while (0); > if (res == ((void *)0)) { return -1; } > temp = PyDateTime_AsInt64(res, ap->descr); > do { if ( --((PyObject*)(res))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(res)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(res)))); } while (0); > if (PyErr_Occurred()) return -1; > } > else if (((((op)->ob_type)->tp_flags & ((1L<<23))) != 0)) { > temp = (((PyIntObject *)(op))->ob_ival); > } > else if (((((((PyObject*)(op))->ob_type))->tp_flags & ((1L<<24))) != 0)) { > temp = PyLong_AsLongLong(op); > } > else { > temp = PyDateTime_AsInt64(op, ap->descr); > } > if (PyErr_Occurred()) { > if (PySequence_Check(op)) { > PyErr_Clear(); > PyErr_SetString(PyExc_ValueError, _SEQUENCE_MESSAGE); > } > return -1; > } > if (ap == ((void *)0) || (((((PyArrayObject *)(ap))->flags & ((0x0100 | 0x0400))) == ((0x0100 | 0x0400))) && (((((PyArrayObject *)(ap))->descr)->byteorder) != '>'))) > *((npy_datetime *)ov)=temp; > else { > ap->descr->f->copyswap(ov, &temp, !(((((PyArrayObject *)(ap))->descr)->byteorder) != '>'), ap); > } > return 0; >} ># 1191 "numpy/core/src/multiarray/arraytypes.c.src" >static int >TIMEDELTA_setitem(PyObject *op, char *ov, PyArrayObject *ap) { > > npy_timedelta temp; > > if ((((((PyObject*)(op))->ob_type) == (&PyTimedeltaArrType_Type) || PyType_IsSubtype((((PyObject*)(op))->ob_type), (&PyTimedeltaArrType_Type))))) { > temp = ((PyTimedeltaScalarObject *)op)->obval; > } > else if (((((op)->ob_type)->tp_flags & ((1L<<23))) != 0)) { > temp = (((PyIntObject *)(op))->ob_ival); > } > else if (((((((PyObject*)(op))->ob_type))->tp_flags & ((1L<<24))) != 0)) { > temp = PyLong_AsLongLong(op); > } > else { > temp = PyTimeDelta_AsInt64(op, ap->descr); > } > if (PyErr_Occurred()) { > if (PySequence_Check(op)) { > PyErr_Clear(); > PyErr_SetString(PyExc_ValueError, _SEQUENCE_MESSAGE); > } > return -1; > } > if (ap == ((void *)0) || (((((PyArrayObject *)(ap))->flags & ((0x0100 | 0x0400))) == ((0x0100 | 0x0400))) && (((((PyArrayObject *)(ap))->descr)->byteorder) != '>'))) > *((npy_timedelta *)ov)=temp; > else { > ap->descr->f->copyswap(ov, &temp, !(((((PyArrayObject *)(ap))->descr)->byteorder) != '>'), ap); > } > return 0; >} ># 1243 "numpy/core/src/multiarray/arraytypes.c.src" ># 1253 "numpy/core/src/multiarray/arraytypes.c.src" >static void >BYTE_to_BYTE(npy_byte *ip, npy_byte *op, npy_intp n, > PyArrayObject *(__NPY_UNUSED_TAGGEDaip) __attribute__ ((__unused__)), PyArrayObject *(__NPY_UNUSED_TAGGEDaop) __attribute__ ((__unused__))) >{ > while (n--) { > *op++ = (npy_byte)*ip++; > } >} ># 1253 "numpy/core/src/multiarray/arraytypes.c.src" >static void >UBYTE_to_BYTE(npy_ubyte *ip, npy_byte *op, npy_intp n, > PyArrayObject *(__NPY_UNUSED_TAGGEDaip) __attribute__ ((__unused__)), PyArrayObject *(__NPY_UNUSED_TAGGEDaop) __attribute__ ((__unused__))) >{ > while (n--) { > *op++ = (npy_byte)*ip++; > } >} ># 1253 "numpy/core/src/multiarray/arraytypes.c.src" >static void >SHORT_to_BYTE(short *ip, npy_byte *op, npy_intp n, > PyArrayObject *(__NPY_UNUSED_TAGGEDaip) __attribute__ ((__unused__)), PyArrayObject *(__NPY_UNUSED_TAGGEDaop) __attribute__ ((__unused__))) >{ > while (n--) { > *op++ = (npy_byte)*ip++; > } >} ># 1253 "numpy/core/src/multiarray/arraytypes.c.src" >static void >USHORT_to_BYTE(npy_ushort *ip, npy_byte *op, npy_intp n, > PyArrayObject *(__NPY_UNUSED_TAGGEDaip) __attribute__ ((__unused__)), PyArrayObject *(__NPY_UNUSED_TAGGEDaop) __attribute__ ((__unused__))) >{ > while (n--) { > *op++ = (npy_byte)*ip++; > } >} ># 1253 "numpy/core/src/multiarray/arraytypes.c.src" >static void >INT_to_BYTE(int *ip, npy_byte *op, npy_intp n, > PyArrayObject *(__NPY_UNUSED_TAGGEDaip) __attribute__ ((__unused__)), PyArrayObject *(__NPY_UNUSED_TAGGEDaop) __attribute__ ((__unused__))) >{ > while (n--) { > *op++ = (npy_byte)*ip++; > } >} ># 1253 "numpy/core/src/multiarray/arraytypes.c.src" >static void >UINT_to_BYTE(npy_uint *ip, npy_byte *op, npy_intp n, > PyArrayObject *(__NPY_UNUSED_TAGGEDaip) __attribute__ ((__unused__)), PyArrayObject *(__NPY_UNUSED_TAGGEDaop) __attribute__ ((__unused__))) >{ > while (n--) { > *op++ = (npy_byte)*ip++; > } >} ># 1253 "numpy/core/src/multiarray/arraytypes.c.src" >static void >LONG_to_BYTE(long *ip, npy_byte *op, npy_intp n, > PyArrayObject *(__NPY_UNUSED_TAGGEDaip) __attribute__ ((__unused__)), PyArrayObject *(__NPY_UNUSED_TAGGEDaop) __attribute__ ((__unused__))) >{ > while (n--) { > *op++ = (npy_byte)*ip++; > } >} ># 1253 "numpy/core/src/multiarray/arraytypes.c.src" >static void >ULONG_to_BYTE(npy_ulong *ip, npy_byte *op, npy_intp n, > PyArrayObject *(__NPY_UNUSED_TAGGEDaip) __attribute__ ((__unused__)), PyArrayObject *(__NPY_UNUSED_TAGGEDaop) __attribute__ ((__unused__))) >{ > while (n--) { > *op++ = (npy_byte)*ip++; > } >} ># 1253 "numpy/core/src/multiarray/arraytypes.c.src" >static void >LONGLONG_to_BYTE(npy_longlong *ip, npy_byte *op, npy_intp n, > PyArrayObject *(__NPY_UNUSED_TAGGEDaip) __attribute__ ((__unused__)), PyArrayObject *(__NPY_UNUSED_TAGGEDaop) __attribute__ ((__unused__))) >{ > while (n--) { > *op++ = (npy_byte)*ip++; > } >} ># 1253 "numpy/core/src/multiarray/arraytypes.c.src" >static void >ULONGLONG_to_BYTE(npy_ulonglong *ip, npy_byte *op, npy_intp n, > PyArrayObject *(__NPY_UNUSED_TAGGEDaip) __attribute__ ((__unused__)), PyArrayObject *(__NPY_UNUSED_TAGGEDaop) __attribute__ ((__unused__))) >{ > while (n--) { > *op++ = (npy_byte)*ip++; > } >} ># 1253 "numpy/core/src/multiarray/arraytypes.c.src" >static void >FLOAT_to_BYTE(float *ip, npy_byte *op, npy_intp n, > PyArrayObject *(__NPY_UNUSED_TAGGEDaip) __attribute__ ((__unused__)), PyArrayObject *(__NPY_UNUSED_TAGGEDaop) __attribute__ ((__unused__))) >{ > while (n--) { > *op++ = (npy_byte)*ip++; > } >} ># 1253 "numpy/core/src/multiarray/arraytypes.c.src" >static void >DOUBLE_to_BYTE(double *ip, npy_byte *op, npy_intp n, > PyArrayObject *(__NPY_UNUSED_TAGGEDaip) __attribute__ ((__unused__)), PyArrayObject *(__NPY_UNUSED_TAGGEDaop) __attribute__ ((__unused__))) >{ > while (n--) { > *op++ = (npy_byte)*ip++; > } >} ># 1253 "numpy/core/src/multiarray/arraytypes.c.src" >static void >LONGDOUBLE_to_BYTE(npy_longdouble *ip, npy_byte *op, npy_intp n, > PyArrayObject *(__NPY_UNUSED_TAGGEDaip) __attribute__ ((__unused__)), PyArrayObject *(__NPY_UNUSED_TAGGEDaop) __attribute__ ((__unused__))) >{ > while (n--) { > *op++ = (npy_byte)*ip++; > } >} ># 1253 "numpy/core/src/multiarray/arraytypes.c.src" >static void >DATETIME_to_BYTE(npy_datetime *ip, npy_byte *op, npy_intp n, > PyArrayObject *(__NPY_UNUSED_TAGGEDaip) __attribute__ ((__unused__)), PyArrayObject *(__NPY_UNUSED_TAGGEDaop) __attribute__ ((__unused__))) >{ > while (n--) { > *op++ = (npy_byte)*ip++; > } >} ># 1253 "numpy/core/src/multiarray/arraytypes.c.src" >static void >TIMEDELTA_to_BYTE(npy_timedelta *ip, npy_byte *op, npy_intp n, > PyArrayObject *(__NPY_UNUSED_TAGGEDaip) __attribute__ ((__unused__)), PyArrayObject *(__NPY_UNUSED_TAGGEDaop) __attribute__ ((__unused__))) >{ > while (n--) { > *op++ = (npy_byte)*ip++; > } >} ># 1268 "numpy/core/src/multiarray/arraytypes.c.src" >static void >CFLOAT_to_BYTE(float *ip, npy_byte *op, npy_intp n, > PyArrayObject *(__NPY_UNUSED_TAGGEDaip) __attribute__ ((__unused__)), PyArrayObject *(__NPY_UNUSED_TAGGEDaop) __attribute__ ((__unused__))) >{ > while (n--) { > *op++ = (npy_byte)*ip; > ip += 2; > } >} ># 1268 "numpy/core/src/multiarray/arraytypes.c.src" >static void >CDOUBLE_to_BYTE(double *ip, npy_byte *op, npy_intp n, > PyArrayObject *(__NPY_UNUSED_TAGGEDaip) __attribute__ ((__unused__)), PyArrayObject *(__NPY_UNUSED_TAGGEDaop) __attribute__ ((__unused__))) >{ > while (n--) { > *op++ = (npy_byte)*ip; > ip += 2; > } >} ># 1268 "numpy/core/src/multiarray/arraytypes.c.src" >static void >CLONGDOUBLE_to_BYTE(npy_longdouble *ip, npy_byte *op, npy_intp n, > PyArrayObject *(__NPY_UNUSED_TAGGEDaip) __attribute__ ((__unused__)), PyArrayObject *(__NPY_UNUSED_TAGGEDaop) __attribute__ ((__unused__))) >{ > while (n--) { > *op++ = (npy_byte)*ip; > ip += 2; > } >} ># 1243 "numpy/core/src/multiarray/arraytypes.c.src" ># 1253 "numpy/core/src/multiarray/arraytypes.c.src" >static void >BYTE_to_UBYTE(npy_byte *ip, npy_ubyte *op, npy_intp n, > PyArrayObject *(__NPY_UNUSED_TAGGEDaip) __attribute__ ((__unused__)), PyArrayObject *(__NPY_UNUSED_TAGGEDaop) __attribute__ ((__unused__))) >{ > while (n--) { > *op++ = (npy_ubyte)*ip++; > } >} ># 1253 "numpy/core/src/multiarray/arraytypes.c.src" >static void >UBYTE_to_UBYTE(npy_ubyte *ip, npy_ubyte *op, npy_intp n, > PyArrayObject *(__NPY_UNUSED_TAGGEDaip) __attribute__ ((__unused__)), PyArrayObject *(__NPY_UNUSED_TAGGEDaop) __attribute__ ((__unused__))) >{ > while (n--) { > *op++ = (npy_ubyte)*ip++; > } >} ># 1253 "numpy/core/src/multiarray/arraytypes.c.src" >static void >SHORT_to_UBYTE(short *ip, npy_ubyte *op, npy_intp n, > PyArrayObject *(__NPY_UNUSED_TAGGEDaip) __attribute__ ((__unused__)), PyArrayObject *(__NPY_UNUSED_TAGGEDaop) __attribute__ ((__unused__))) >{ > while (n--) { > *op++ = (npy_ubyte)*ip++; > } >} ># 1253 "numpy/core/src/multiarray/arraytypes.c.src" >static void >USHORT_to_UBYTE(npy_ushort *ip, npy_ubyte *op, npy_intp n, > PyArrayObject *(__NPY_UNUSED_TAGGEDaip) __attribute__ ((__unused__)), PyArrayObject *(__NPY_UNUSED_TAGGEDaop) __attribute__ ((__unused__))) >{ > while (n--) { > *op++ = (npy_ubyte)*ip++; > } >} ># 1253 "numpy/core/src/multiarray/arraytypes.c.src" >static void >INT_to_UBYTE(int *ip, npy_ubyte *op, npy_intp n, > PyArrayObject *(__NPY_UNUSED_TAGGEDaip) __attribute__ ((__unused__)), PyArrayObject *(__NPY_UNUSED_TAGGEDaop) __attribute__ ((__unused__))) >{ > while (n--) { > *op++ = (npy_ubyte)*ip++; > } >} ># 1253 "numpy/core/src/multiarray/arraytypes.c.src" >static void >UINT_to_UBYTE(npy_uint *ip, npy_ubyte *op, npy_intp n, > PyArrayObject *(__NPY_UNUSED_TAGGEDaip) __attribute__ ((__unused__)), PyArrayObject *(__NPY_UNUSED_TAGGEDaop) __attribute__ ((__unused__))) >{ > while (n--) { > *op++ = (npy_ubyte)*ip++; > } >} ># 1253 "numpy/core/src/multiarray/arraytypes.c.src" >static void >LONG_to_UBYTE(long *ip, npy_ubyte *op, npy_intp n, > PyArrayObject *(__NPY_UNUSED_TAGGEDaip) __attribute__ ((__unused__)), PyArrayObject *(__NPY_UNUSED_TAGGEDaop) __attribute__ ((__unused__))) >{ > while (n--) { > *op++ = (npy_ubyte)*ip++; > } >} ># 1253 "numpy/core/src/multiarray/arraytypes.c.src" >static void >ULONG_to_UBYTE(npy_ulong *ip, npy_ubyte *op, npy_intp n, > PyArrayObject *(__NPY_UNUSED_TAGGEDaip) __attribute__ ((__unused__)), PyArrayObject *(__NPY_UNUSED_TAGGEDaop) __attribute__ ((__unused__))) >{ > while (n--) { > *op++ = (npy_ubyte)*ip++; > } >} ># 1253 "numpy/core/src/multiarray/arraytypes.c.src" >static void >LONGLONG_to_UBYTE(npy_longlong *ip, npy_ubyte *op, npy_intp n, > PyArrayObject *(__NPY_UNUSED_TAGGEDaip) __attribute__ ((__unused__)), PyArrayObject *(__NPY_UNUSED_TAGGEDaop) __attribute__ ((__unused__))) >{ > while (n--) { > *op++ = (npy_ubyte)*ip++; > } >} ># 1253 "numpy/core/src/multiarray/arraytypes.c.src" >static void >ULONGLONG_to_UBYTE(npy_ulonglong *ip, npy_ubyte *op, npy_intp n, > PyArrayObject *(__NPY_UNUSED_TAGGEDaip) __attribute__ ((__unused__)), PyArrayObject *(__NPY_UNUSED_TAGGEDaop) __attribute__ ((__unused__))) >{ > while (n--) { > *op++ = (npy_ubyte)*ip++; > } >} ># 1253 "numpy/core/src/multiarray/arraytypes.c.src" >static void >FLOAT_to_UBYTE(float *ip, npy_ubyte *op, npy_intp n, > PyArrayObject *(__NPY_UNUSED_TAGGEDaip) __attribute__ ((__unused__)), PyArrayObject *(__NPY_UNUSED_TAGGEDaop) __attribute__ ((__unused__))) >{ > while (n--) { > *op++ = (npy_ubyte)*ip++; > } >} ># 1253 "numpy/core/src/multiarray/arraytypes.c.src" >static void >DOUBLE_to_UBYTE(double *ip, npy_ubyte *op, npy_intp n, > PyArrayObject *(__NPY_UNUSED_TAGGEDaip) __attribute__ ((__unused__)), PyArrayObject *(__NPY_UNUSED_TAGGEDaop) __attribute__ ((__unused__))) >{ > while (n--) { > *op++ = (npy_ubyte)*ip++; > } >} ># 1253 "numpy/core/src/multiarray/arraytypes.c.src" >static void >LONGDOUBLE_to_UBYTE(npy_longdouble *ip, npy_ubyte *op, npy_intp n, > PyArrayObject *(__NPY_UNUSED_TAGGEDaip) __attribute__ ((__unused__)), PyArrayObject *(__NPY_UNUSED_TAGGEDaop) __attribute__ ((__unused__))) >{ > while (n--) { > *op++ = (npy_ubyte)*ip++; > } >} ># 1253 "numpy/core/src/multiarray/arraytypes.c.src" >static void >DATETIME_to_UBYTE(npy_datetime *ip, npy_ubyte *op, npy_intp n, > PyArrayObject *(__NPY_UNUSED_TAGGEDaip) __attribute__ ((__unused__)), PyArrayObject *(__NPY_UNUSED_TAGGEDaop) __attribute__ ((__unused__))) >{ > while (n--) { > *op++ = (npy_ubyte)*ip++; > } >} ># 1253 "numpy/core/src/multiarray/arraytypes.c.src" >static void >TIMEDELTA_to_UBYTE(npy_timedelta *ip, npy_ubyte *op, npy_intp n, > PyArrayObject *(__NPY_UNUSED_TAGGEDaip) __attribute__ ((__unused__)), PyArrayObject *(__NPY_UNUSED_TAGGEDaop) __attribute__ ((__unused__))) >{ > while (n--) { > *op++ = (npy_ubyte)*ip++; > } >} ># 1268 "numpy/core/src/multiarray/arraytypes.c.src" >static void >CFLOAT_to_UBYTE(float *ip, npy_ubyte *op, npy_intp n, > PyArrayObject *(__NPY_UNUSED_TAGGEDaip) __attribute__ ((__unused__)), PyArrayObject *(__NPY_UNUSED_TAGGEDaop) __attribute__ ((__unused__))) >{ > while (n--) { > *op++ = (npy_ubyte)*ip; > ip += 2; > } >} ># 1268 "numpy/core/src/multiarray/arraytypes.c.src" >static void >CDOUBLE_to_UBYTE(double *ip, npy_ubyte *op, npy_intp n, > PyArrayObject *(__NPY_UNUSED_TAGGEDaip) __attribute__ ((__unused__)), PyArrayObject *(__NPY_UNUSED_TAGGEDaop) __attribute__ ((__unused__))) >{ > while (n--) { > *op++ = (npy_ubyte)*ip; > ip += 2; > } >} ># 1268 "numpy/core/src/multiarray/arraytypes.c.src" >static void >CLONGDOUBLE_to_UBYTE(npy_longdouble *ip, npy_ubyte *op, npy_intp n, > PyArrayObject *(__NPY_UNUSED_TAGGEDaip) __attribute__ ((__unused__)), PyArrayObject *(__NPY_UNUSED_TAGGEDaop) __attribute__ ((__unused__))) >{ > while (n--) { > *op++ = (npy_ubyte)*ip; > ip += 2; > } >} ># 1243 "numpy/core/src/multiarray/arraytypes.c.src" ># 1253 "numpy/core/src/multiarray/arraytypes.c.src" >static void >BYTE_to_SHORT(npy_byte *ip, short *op, npy_intp n, > PyArrayObject *(__NPY_UNUSED_TAGGEDaip) __attribute__ ((__unused__)), PyArrayObject *(__NPY_UNUSED_TAGGEDaop) __attribute__ ((__unused__))) >{ > while (n--) { > *op++ = (short)*ip++; > } >} ># 1253 "numpy/core/src/multiarray/arraytypes.c.src" >static void >UBYTE_to_SHORT(npy_ubyte *ip, short *op, npy_intp n, > PyArrayObject *(__NPY_UNUSED_TAGGEDaip) __attribute__ ((__unused__)), PyArrayObject *(__NPY_UNUSED_TAGGEDaop) __attribute__ ((__unused__))) >{ > while (n--) { > *op++ = (short)*ip++; > } >} ># 1253 "numpy/core/src/multiarray/arraytypes.c.src" >static void >SHORT_to_SHORT(short *ip, short *op, npy_intp n, > PyArrayObject *(__NPY_UNUSED_TAGGEDaip) __attribute__ ((__unused__)), PyArrayObject *(__NPY_UNUSED_TAGGEDaop) __attribute__ ((__unused__))) >{ > while (n--) { > *op++ = (short)*ip++; > } >} ># 1253 "numpy/core/src/multiarray/arraytypes.c.src" >static void >USHORT_to_SHORT(npy_ushort *ip, short *op, npy_intp n, > PyArrayObject *(__NPY_UNUSED_TAGGEDaip) __attribute__ ((__unused__)), PyArrayObject *(__NPY_UNUSED_TAGGEDaop) __attribute__ ((__unused__))) >{ > while (n--) { > *op++ = (short)*ip++; > } >} ># 1253 "numpy/core/src/multiarray/arraytypes.c.src" >static void >INT_to_SHORT(int *ip, short *op, npy_intp n, > PyArrayObject *(__NPY_UNUSED_TAGGEDaip) __attribute__ ((__unused__)), PyArrayObject *(__NPY_UNUSED_TAGGEDaop) __attribute__ ((__unused__))) >{ > while (n--) { > *op++ = (short)*ip++; > } >} ># 1253 "numpy/core/src/multiarray/arraytypes.c.src" >static void >UINT_to_SHORT(npy_uint *ip, short *op, npy_intp n, > PyArrayObject *(__NPY_UNUSED_TAGGEDaip) __attribute__ ((__unused__)), PyArrayObject *(__NPY_UNUSED_TAGGEDaop) __attribute__ ((__unused__))) >{ > while (n--) { > *op++ = (short)*ip++; > } >} ># 1253 "numpy/core/src/multiarray/arraytypes.c.src" >static void >LONG_to_SHORT(long *ip, short *op, npy_intp n, > PyArrayObject *(__NPY_UNUSED_TAGGEDaip) __attribute__ ((__unused__)), PyArrayObject *(__NPY_UNUSED_TAGGEDaop) __attribute__ ((__unused__))) >{ > while (n--) { > *op++ = (short)*ip++; > } >} ># 1253 "numpy/core/src/multiarray/arraytypes.c.src" >static void >ULONG_to_SHORT(npy_ulong *ip, short *op, npy_intp n, > PyArrayObject *(__NPY_UNUSED_TAGGEDaip) __attribute__ ((__unused__)), PyArrayObject *(__NPY_UNUSED_TAGGEDaop) __attribute__ ((__unused__))) >{ > while (n--) { > *op++ = (short)*ip++; > } >} ># 1253 "numpy/core/src/multiarray/arraytypes.c.src" >static void >LONGLONG_to_SHORT(npy_longlong *ip, short *op, npy_intp n, > PyArrayObject *(__NPY_UNUSED_TAGGEDaip) __attribute__ ((__unused__)), PyArrayObject *(__NPY_UNUSED_TAGGEDaop) __attribute__ ((__unused__))) >{ > while (n--) { > *op++ = (short)*ip++; > } >} ># 1253 "numpy/core/src/multiarray/arraytypes.c.src" >static void >ULONGLONG_to_SHORT(npy_ulonglong *ip, short *op, npy_intp n, > PyArrayObject *(__NPY_UNUSED_TAGGEDaip) __attribute__ ((__unused__)), PyArrayObject *(__NPY_UNUSED_TAGGEDaop) __attribute__ ((__unused__))) >{ > while (n--) { > *op++ = (short)*ip++; > } >} ># 1253 "numpy/core/src/multiarray/arraytypes.c.src" >static void >FLOAT_to_SHORT(float *ip, short *op, npy_intp n, > PyArrayObject *(__NPY_UNUSED_TAGGEDaip) __attribute__ ((__unused__)), PyArrayObject *(__NPY_UNUSED_TAGGEDaop) __attribute__ ((__unused__))) >{ > while (n--) { > *op++ = (short)*ip++; > } >} ># 1253 "numpy/core/src/multiarray/arraytypes.c.src" >static void >DOUBLE_to_SHORT(double *ip, short *op, npy_intp n, > PyArrayObject *(__NPY_UNUSED_TAGGEDaip) __attribute__ ((__unused__)), PyArrayObject *(__NPY_UNUSED_TAGGEDaop) __attribute__ ((__unused__))) >{ > while (n--) { > *op++ = (short)*ip++; > } >} ># 1253 "numpy/core/src/multiarray/arraytypes.c.src" >static void >LONGDOUBLE_to_SHORT(npy_longdouble *ip, short *op, npy_intp n, > PyArrayObject *(__NPY_UNUSED_TAGGEDaip) __attribute__ ((__unused__)), PyArrayObject *(__NPY_UNUSED_TAGGEDaop) __attribute__ ((__unused__))) >{ > while (n--) { > *op++ = (short)*ip++; > } >} ># 1253 "numpy/core/src/multiarray/arraytypes.c.src" >static void >DATETIME_to_SHORT(npy_datetime *ip, short *op, npy_intp n, > PyArrayObject *(__NPY_UNUSED_TAGGEDaip) __attribute__ ((__unused__)), PyArrayObject *(__NPY_UNUSED_TAGGEDaop) __attribute__ ((__unused__))) >{ > while (n--) { > *op++ = (short)*ip++; > } >} ># 1253 "numpy/core/src/multiarray/arraytypes.c.src" >static void >TIMEDELTA_to_SHORT(npy_timedelta *ip, short *op, npy_intp n, > PyArrayObject *(__NPY_UNUSED_TAGGEDaip) __attribute__ ((__unused__)), PyArrayObject *(__NPY_UNUSED_TAGGEDaop) __attribute__ ((__unused__))) >{ > while (n--) { > *op++ = (short)*ip++; > } >} ># 1268 "numpy/core/src/multiarray/arraytypes.c.src" >static void >CFLOAT_to_SHORT(float *ip, short *op, npy_intp n, > PyArrayObject *(__NPY_UNUSED_TAGGEDaip) __attribute__ ((__unused__)), PyArrayObject *(__NPY_UNUSED_TAGGEDaop) __attribute__ ((__unused__))) >{ > while (n--) { > *op++ = (short)*ip; > ip += 2; > } >} ># 1268 "numpy/core/src/multiarray/arraytypes.c.src" >static void >CDOUBLE_to_SHORT(double *ip, short *op, npy_intp n, > PyArrayObject *(__NPY_UNUSED_TAGGEDaip) __attribute__ ((__unused__)), PyArrayObject *(__NPY_UNUSED_TAGGEDaop) __attribute__ ((__unused__))) >{ > while (n--) { > *op++ = (short)*ip; > ip += 2; > } >} ># 1268 "numpy/core/src/multiarray/arraytypes.c.src" >static void >CLONGDOUBLE_to_SHORT(npy_longdouble *ip, short *op, npy_intp n, > PyArrayObject *(__NPY_UNUSED_TAGGEDaip) __attribute__ ((__unused__)), PyArrayObject *(__NPY_UNUSED_TAGGEDaop) __attribute__ ((__unused__))) >{ > while (n--) { > *op++ = (short)*ip; > ip += 2; > } >} ># 1243 "numpy/core/src/multiarray/arraytypes.c.src" ># 1253 "numpy/core/src/multiarray/arraytypes.c.src" >static void >BYTE_to_USHORT(npy_byte *ip, npy_ushort *op, npy_intp n, > PyArrayObject *(__NPY_UNUSED_TAGGEDaip) __attribute__ ((__unused__)), PyArrayObject *(__NPY_UNUSED_TAGGEDaop) __attribute__ ((__unused__))) >{ > while (n--) { > *op++ = (npy_ushort)*ip++; > } >} ># 1253 "numpy/core/src/multiarray/arraytypes.c.src" >static void >UBYTE_to_USHORT(npy_ubyte *ip, npy_ushort *op, npy_intp n, > PyArrayObject *(__NPY_UNUSED_TAGGEDaip) __attribute__ ((__unused__)), PyArrayObject *(__NPY_UNUSED_TAGGEDaop) __attribute__ ((__unused__))) >{ > while (n--) { > *op++ = (npy_ushort)*ip++; > } >} ># 1253 "numpy/core/src/multiarray/arraytypes.c.src" >static void >SHORT_to_USHORT(short *ip, npy_ushort *op, npy_intp n, > PyArrayObject *(__NPY_UNUSED_TAGGEDaip) __attribute__ ((__unused__)), PyArrayObject *(__NPY_UNUSED_TAGGEDaop) __attribute__ ((__unused__))) >{ > while (n--) { > *op++ = (npy_ushort)*ip++; > } >} ># 1253 "numpy/core/src/multiarray/arraytypes.c.src" >static void >USHORT_to_USHORT(npy_ushort *ip, npy_ushort *op, npy_intp n, > PyArrayObject *(__NPY_UNUSED_TAGGEDaip) __attribute__ ((__unused__)), PyArrayObject *(__NPY_UNUSED_TAGGEDaop) __attribute__ ((__unused__))) >{ > while (n--) { > *op++ = (npy_ushort)*ip++; > } >} ># 1253 "numpy/core/src/multiarray/arraytypes.c.src" >static void >INT_to_USHORT(int *ip, npy_ushort *op, npy_intp n, > PyArrayObject *(__NPY_UNUSED_TAGGEDaip) __attribute__ ((__unused__)), PyArrayObject *(__NPY_UNUSED_TAGGEDaop) __attribute__ ((__unused__))) >{ > while (n--) { > *op++ = (npy_ushort)*ip++; > } >} ># 1253 "numpy/core/src/multiarray/arraytypes.c.src" >static void >UINT_to_USHORT(npy_uint *ip, npy_ushort *op, npy_intp n, > PyArrayObject *(__NPY_UNUSED_TAGGEDaip) __attribute__ ((__unused__)), PyArrayObject *(__NPY_UNUSED_TAGGEDaop) __attribute__ ((__unused__))) >{ > while (n--) { > *op++ = (npy_ushort)*ip++; > } >} ># 1253 "numpy/core/src/multiarray/arraytypes.c.src" >static void >LONG_to_USHORT(long *ip, npy_ushort *op, npy_intp n, > PyArrayObject *(__NPY_UNUSED_TAGGEDaip) __attribute__ ((__unused__)), PyArrayObject *(__NPY_UNUSED_TAGGEDaop) __attribute__ ((__unused__))) >{ > while (n--) { > *op++ = (npy_ushort)*ip++; > } >} ># 1253 "numpy/core/src/multiarray/arraytypes.c.src" >static void >ULONG_to_USHORT(npy_ulong *ip, npy_ushort *op, npy_intp n, > PyArrayObject *(__NPY_UNUSED_TAGGEDaip) __attribute__ ((__unused__)), PyArrayObject *(__NPY_UNUSED_TAGGEDaop) __attribute__ ((__unused__))) >{ > while (n--) { > *op++ = (npy_ushort)*ip++; > } >} ># 1253 "numpy/core/src/multiarray/arraytypes.c.src" >static void >LONGLONG_to_USHORT(npy_longlong *ip, npy_ushort *op, npy_intp n, > PyArrayObject *(__NPY_UNUSED_TAGGEDaip) __attribute__ ((__unused__)), PyArrayObject *(__NPY_UNUSED_TAGGEDaop) __attribute__ ((__unused__))) >{ > while (n--) { > *op++ = (npy_ushort)*ip++; > } >} ># 1253 "numpy/core/src/multiarray/arraytypes.c.src" >static void >ULONGLONG_to_USHORT(npy_ulonglong *ip, npy_ushort *op, npy_intp n, > PyArrayObject *(__NPY_UNUSED_TAGGEDaip) __attribute__ ((__unused__)), PyArrayObject *(__NPY_UNUSED_TAGGEDaop) __attribute__ ((__unused__))) >{ > while (n--) { > *op++ = (npy_ushort)*ip++; > } >} ># 1253 "numpy/core/src/multiarray/arraytypes.c.src" >static void >FLOAT_to_USHORT(float *ip, npy_ushort *op, npy_intp n, > PyArrayObject *(__NPY_UNUSED_TAGGEDaip) __attribute__ ((__unused__)), PyArrayObject *(__NPY_UNUSED_TAGGEDaop) __attribute__ ((__unused__))) >{ > while (n--) { > *op++ = (npy_ushort)*ip++; > } >} ># 1253 "numpy/core/src/multiarray/arraytypes.c.src" >static void >DOUBLE_to_USHORT(double *ip, npy_ushort *op, npy_intp n, > PyArrayObject *(__NPY_UNUSED_TAGGEDaip) __attribute__ ((__unused__)), PyArrayObject *(__NPY_UNUSED_TAGGEDaop) __attribute__ ((__unused__))) >{ > while (n--) { > *op++ = (npy_ushort)*ip++; > } >} ># 1253 "numpy/core/src/multiarray/arraytypes.c.src" >static void >LONGDOUBLE_to_USHORT(npy_longdouble *ip, npy_ushort *op, npy_intp n, > PyArrayObject *(__NPY_UNUSED_TAGGEDaip) __attribute__ ((__unused__)), PyArrayObject *(__NPY_UNUSED_TAGGEDaop) __attribute__ ((__unused__))) >{ > while (n--) { > *op++ = (npy_ushort)*ip++; > } >} ># 1253 "numpy/core/src/multiarray/arraytypes.c.src" >static void >DATETIME_to_USHORT(npy_datetime *ip, npy_ushort *op, npy_intp n, > PyArrayObject *(__NPY_UNUSED_TAGGEDaip) __attribute__ ((__unused__)), PyArrayObject *(__NPY_UNUSED_TAGGEDaop) __attribute__ ((__unused__))) >{ > while (n--) { > *op++ = (npy_ushort)*ip++; > } >} ># 1253 "numpy/core/src/multiarray/arraytypes.c.src" >static void >TIMEDELTA_to_USHORT(npy_timedelta *ip, npy_ushort *op, npy_intp n, > PyArrayObject *(__NPY_UNUSED_TAGGEDaip) __attribute__ ((__unused__)), PyArrayObject *(__NPY_UNUSED_TAGGEDaop) __attribute__ ((__unused__))) >{ > while (n--) { > *op++ = (npy_ushort)*ip++; > } >} ># 1268 "numpy/core/src/multiarray/arraytypes.c.src" >static void >CFLOAT_to_USHORT(float *ip, npy_ushort *op, npy_intp n, > PyArrayObject *(__NPY_UNUSED_TAGGEDaip) __attribute__ ((__unused__)), PyArrayObject *(__NPY_UNUSED_TAGGEDaop) __attribute__ ((__unused__))) >{ > while (n--) { > *op++ = (npy_ushort)*ip; > ip += 2; > } >} ># 1268 "numpy/core/src/multiarray/arraytypes.c.src" >static void >CDOUBLE_to_USHORT(double *ip, npy_ushort *op, npy_intp n, > PyArrayObject *(__NPY_UNUSED_TAGGEDaip) __attribute__ ((__unused__)), PyArrayObject *(__NPY_UNUSED_TAGGEDaop) __attribute__ ((__unused__))) >{ > while (n--) { > *op++ = (npy_ushort)*ip; > ip += 2; > } >} ># 1268 "numpy/core/src/multiarray/arraytypes.c.src" >static void >CLONGDOUBLE_to_USHORT(npy_longdouble *ip, npy_ushort *op, npy_intp n, > PyArrayObject *(__NPY_UNUSED_TAGGEDaip) __attribute__ ((__unused__)), PyArrayObject *(__NPY_UNUSED_TAGGEDaop) __attribute__ ((__unused__))) >{ > while (n--) { > *op++ = (npy_ushort)*ip; > ip += 2; > } >} ># 1243 "numpy/core/src/multiarray/arraytypes.c.src" ># 1253 "numpy/core/src/multiarray/arraytypes.c.src" >static void >BYTE_to_INT(npy_byte *ip, int *op, npy_intp n, > PyArrayObject *(__NPY_UNUSED_TAGGEDaip) __attribute__ ((__unused__)), PyArrayObject *(__NPY_UNUSED_TAGGEDaop) __attribute__ ((__unused__))) >{ > while (n--) { > *op++ = (int)*ip++; > } >} ># 1253 "numpy/core/src/multiarray/arraytypes.c.src" >static void >UBYTE_to_INT(npy_ubyte *ip, int *op, npy_intp n, > PyArrayObject *(__NPY_UNUSED_TAGGEDaip) __attribute__ ((__unused__)), PyArrayObject *(__NPY_UNUSED_TAGGEDaop) __attribute__ ((__unused__))) >{ > while (n--) { > *op++ = (int)*ip++; > } >} ># 1253 "numpy/core/src/multiarray/arraytypes.c.src" >static void >SHORT_to_INT(short *ip, int *op, npy_intp n, > PyArrayObject *(__NPY_UNUSED_TAGGEDaip) __attribute__ ((__unused__)), PyArrayObject *(__NPY_UNUSED_TAGGEDaop) __attribute__ ((__unused__))) >{ > while (n--) { > *op++ = (int)*ip++; > } >} ># 1253 "numpy/core/src/multiarray/arraytypes.c.src" >static void >USHORT_to_INT(npy_ushort *ip, int *op, npy_intp n, > PyArrayObject *(__NPY_UNUSED_TAGGEDaip) __attribute__ ((__unused__)), PyArrayObject *(__NPY_UNUSED_TAGGEDaop) __attribute__ ((__unused__))) >{ > while (n--) { > *op++ = (int)*ip++; > } >} ># 1253 "numpy/core/src/multiarray/arraytypes.c.src" >static void >INT_to_INT(int *ip, int *op, npy_intp n, > PyArrayObject *(__NPY_UNUSED_TAGGEDaip) __attribute__ ((__unused__)), PyArrayObject *(__NPY_UNUSED_TAGGEDaop) __attribute__ ((__unused__))) >{ > while (n--) { > *op++ = (int)*ip++; > } >} ># 1253 "numpy/core/src/multiarray/arraytypes.c.src" >static void >UINT_to_INT(npy_uint *ip, int *op, npy_intp n, > PyArrayObject *(__NPY_UNUSED_TAGGEDaip) __attribute__ ((__unused__)), PyArrayObject *(__NPY_UNUSED_TAGGEDaop) __attribute__ ((__unused__))) >{ > while (n--) { > *op++ = (int)*ip++; > } >} ># 1253 "numpy/core/src/multiarray/arraytypes.c.src" >static void >LONG_to_INT(long *ip, int *op, npy_intp n, > PyArrayObject *(__NPY_UNUSED_TAGGEDaip) __attribute__ ((__unused__)), PyArrayObject *(__NPY_UNUSED_TAGGEDaop) __attribute__ ((__unused__))) >{ > while (n--) { > *op++ = (int)*ip++; > } >} ># 1253 "numpy/core/src/multiarray/arraytypes.c.src" >static void >ULONG_to_INT(npy_ulong *ip, int *op, npy_intp n, > PyArrayObject *(__NPY_UNUSED_TAGGEDaip) __attribute__ ((__unused__)), PyArrayObject *(__NPY_UNUSED_TAGGEDaop) __attribute__ ((__unused__))) >{ > while (n--) { > *op++ = (int)*ip++; > } >} ># 1253 "numpy/core/src/multiarray/arraytypes.c.src" >static void >LONGLONG_to_INT(npy_longlong *ip, int *op, npy_intp n, > PyArrayObject *(__NPY_UNUSED_TAGGEDaip) __attribute__ ((__unused__)), PyArrayObject *(__NPY_UNUSED_TAGGEDaop) __attribute__ ((__unused__))) >{ > while (n--) { > *op++ = (int)*ip++; > } >} ># 1253 "numpy/core/src/multiarray/arraytypes.c.src" >static void >ULONGLONG_to_INT(npy_ulonglong *ip, int *op, npy_intp n, > PyArrayObject *(__NPY_UNUSED_TAGGEDaip) __attribute__ ((__unused__)), PyArrayObject *(__NPY_UNUSED_TAGGEDaop) __attribute__ ((__unused__))) >{ > while (n--) { > *op++ = (int)*ip++; > } >} ># 1253 "numpy/core/src/multiarray/arraytypes.c.src" >static void >FLOAT_to_INT(float *ip, int *op, npy_intp n, > PyArrayObject *(__NPY_UNUSED_TAGGEDaip) __attribute__ ((__unused__)), PyArrayObject *(__NPY_UNUSED_TAGGEDaop) __attribute__ ((__unused__))) >{ > while (n--) { > *op++ = (int)*ip++; > } >} ># 1253 "numpy/core/src/multiarray/arraytypes.c.src" >static void >DOUBLE_to_INT(double *ip, int *op, npy_intp n, > PyArrayObject *(__NPY_UNUSED_TAGGEDaip) __attribute__ ((__unused__)), PyArrayObject *(__NPY_UNUSED_TAGGEDaop) __attribute__ ((__unused__))) >{ > while (n--) { > *op++ = (int)*ip++; > } >} ># 1253 "numpy/core/src/multiarray/arraytypes.c.src" >static void >LONGDOUBLE_to_INT(npy_longdouble *ip, int *op, npy_intp n, > PyArrayObject *(__NPY_UNUSED_TAGGEDaip) __attribute__ ((__unused__)), PyArrayObject *(__NPY_UNUSED_TAGGEDaop) __attribute__ ((__unused__))) >{ > while (n--) { > *op++ = (int)*ip++; > } >} ># 1253 "numpy/core/src/multiarray/arraytypes.c.src" >static void >DATETIME_to_INT(npy_datetime *ip, int *op, npy_intp n, > PyArrayObject *(__NPY_UNUSED_TAGGEDaip) __attribute__ ((__unused__)), PyArrayObject *(__NPY_UNUSED_TAGGEDaop) __attribute__ ((__unused__))) >{ > while (n--) { > *op++ = (int)*ip++; > } >} ># 1253 "numpy/core/src/multiarray/arraytypes.c.src" >static void >TIMEDELTA_to_INT(npy_timedelta *ip, int *op, npy_intp n, > PyArrayObject *(__NPY_UNUSED_TAGGEDaip) __attribute__ ((__unused__)), PyArrayObject *(__NPY_UNUSED_TAGGEDaop) __attribute__ ((__unused__))) >{ > while (n--) { > *op++ = (int)*ip++; > } >} ># 1268 "numpy/core/src/multiarray/arraytypes.c.src" >static void >CFLOAT_to_INT(float *ip, int *op, npy_intp n, > PyArrayObject *(__NPY_UNUSED_TAGGEDaip) __attribute__ ((__unused__)), PyArrayObject *(__NPY_UNUSED_TAGGEDaop) __attribute__ ((__unused__))) >{ > while (n--) { > *op++ = (int)*ip; > ip += 2; > } >} ># 1268 "numpy/core/src/multiarray/arraytypes.c.src" >static void >CDOUBLE_to_INT(double *ip, int *op, npy_intp n, > PyArrayObject *(__NPY_UNUSED_TAGGEDaip) __attribute__ ((__unused__)), PyArrayObject *(__NPY_UNUSED_TAGGEDaop) __attribute__ ((__unused__))) >{ > while (n--) { > *op++ = (int)*ip; > ip += 2; > } >} ># 1268 "numpy/core/src/multiarray/arraytypes.c.src" >static void >CLONGDOUBLE_to_INT(npy_longdouble *ip, int *op, npy_intp n, > PyArrayObject *(__NPY_UNUSED_TAGGEDaip) __attribute__ ((__unused__)), PyArrayObject *(__NPY_UNUSED_TAGGEDaop) __attribute__ ((__unused__))) >{ > while (n--) { > *op++ = (int)*ip; > ip += 2; > } >} ># 1243 "numpy/core/src/multiarray/arraytypes.c.src" ># 1253 "numpy/core/src/multiarray/arraytypes.c.src" >static void >BYTE_to_UINT(npy_byte *ip, npy_uint *op, npy_intp n, > PyArrayObject *(__NPY_UNUSED_TAGGEDaip) __attribute__ ((__unused__)), PyArrayObject *(__NPY_UNUSED_TAGGEDaop) __attribute__ ((__unused__))) >{ > while (n--) { > *op++ = (npy_uint)*ip++; > } >} ># 1253 "numpy/core/src/multiarray/arraytypes.c.src" >static void >UBYTE_to_UINT(npy_ubyte *ip, npy_uint *op, npy_intp n, > PyArrayObject *(__NPY_UNUSED_TAGGEDaip) __attribute__ ((__unused__)), PyArrayObject *(__NPY_UNUSED_TAGGEDaop) __attribute__ ((__unused__))) >{ > while (n--) { > *op++ = (npy_uint)*ip++; > } >} ># 1253 "numpy/core/src/multiarray/arraytypes.c.src" >static void >SHORT_to_UINT(short *ip, npy_uint *op, npy_intp n, > PyArrayObject *(__NPY_UNUSED_TAGGEDaip) __attribute__ ((__unused__)), PyArrayObject *(__NPY_UNUSED_TAGGEDaop) __attribute__ ((__unused__))) >{ > while (n--) { > *op++ = (npy_uint)*ip++; > } >} ># 1253 "numpy/core/src/multiarray/arraytypes.c.src" >static void >USHORT_to_UINT(npy_ushort *ip, npy_uint *op, npy_intp n, > PyArrayObject *(__NPY_UNUSED_TAGGEDaip) __attribute__ ((__unused__)), PyArrayObject *(__NPY_UNUSED_TAGGEDaop) __attribute__ ((__unused__))) >{ > while (n--) { > *op++ = (npy_uint)*ip++; > } >} ># 1253 "numpy/core/src/multiarray/arraytypes.c.src" >static void >INT_to_UINT(int *ip, npy_uint *op, npy_intp n, > PyArrayObject *(__NPY_UNUSED_TAGGEDaip) __attribute__ ((__unused__)), PyArrayObject *(__NPY_UNUSED_TAGGEDaop) __attribute__ ((__unused__))) >{ > while (n--) { > *op++ = (npy_uint)*ip++; > } >} ># 1253 "numpy/core/src/multiarray/arraytypes.c.src" >static void >UINT_to_UINT(npy_uint *ip, npy_uint *op, npy_intp n, > PyArrayObject *(__NPY_UNUSED_TAGGEDaip) __attribute__ ((__unused__)), PyArrayObject *(__NPY_UNUSED_TAGGEDaop) __attribute__ ((__unused__))) >{ > while (n--) { > *op++ = (npy_uint)*ip++; > } >} ># 1253 "numpy/core/src/multiarray/arraytypes.c.src" >static void >LONG_to_UINT(long *ip, npy_uint *op, npy_intp n, > PyArrayObject *(__NPY_UNUSED_TAGGEDaip) __attribute__ ((__unused__)), PyArrayObject *(__NPY_UNUSED_TAGGEDaop) __attribute__ ((__unused__))) >{ > while (n--) { > *op++ = (npy_uint)*ip++; > } >} ># 1253 "numpy/core/src/multiarray/arraytypes.c.src" >static void >ULONG_to_UINT(npy_ulong *ip, npy_uint *op, npy_intp n, > PyArrayObject *(__NPY_UNUSED_TAGGEDaip) __attribute__ ((__unused__)), PyArrayObject *(__NPY_UNUSED_TAGGEDaop) __attribute__ ((__unused__))) >{ > while (n--) { > *op++ = (npy_uint)*ip++; > } >} ># 1253 "numpy/core/src/multiarray/arraytypes.c.src" >static void >LONGLONG_to_UINT(npy_longlong *ip, npy_uint *op, npy_intp n, > PyArrayObject *(__NPY_UNUSED_TAGGEDaip) __attribute__ ((__unused__)), PyArrayObject *(__NPY_UNUSED_TAGGEDaop) __attribute__ ((__unused__))) >{ > while (n--) { > *op++ = (npy_uint)*ip++; > } >} ># 1253 "numpy/core/src/multiarray/arraytypes.c.src" >static void >ULONGLONG_to_UINT(npy_ulonglong *ip, npy_uint *op, npy_intp n, > PyArrayObject *(__NPY_UNUSED_TAGGEDaip) __attribute__ ((__unused__)), PyArrayObject *(__NPY_UNUSED_TAGGEDaop) __attribute__ ((__unused__))) >{ > while (n--) { > *op++ = (npy_uint)*ip++; > } >} ># 1253 "numpy/core/src/multiarray/arraytypes.c.src" >static void >FLOAT_to_UINT(float *ip, npy_uint *op, npy_intp n, > PyArrayObject *(__NPY_UNUSED_TAGGEDaip) __attribute__ ((__unused__)), PyArrayObject *(__NPY_UNUSED_TAGGEDaop) __attribute__ ((__unused__))) >{ > while (n--) { > *op++ = (npy_uint)*ip++; > } >} ># 1253 "numpy/core/src/multiarray/arraytypes.c.src" >static void >DOUBLE_to_UINT(double *ip, npy_uint *op, npy_intp n, > PyArrayObject *(__NPY_UNUSED_TAGGEDaip) __attribute__ ((__unused__)), PyArrayObject *(__NPY_UNUSED_TAGGEDaop) __attribute__ ((__unused__))) >{ > while (n--) { > *op++ = (npy_uint)*ip++; > } >} ># 1253 "numpy/core/src/multiarray/arraytypes.c.src" >static void >LONGDOUBLE_to_UINT(npy_longdouble *ip, npy_uint *op, npy_intp n, > PyArrayObject *(__NPY_UNUSED_TAGGEDaip) __attribute__ ((__unused__)), PyArrayObject *(__NPY_UNUSED_TAGGEDaop) __attribute__ ((__unused__))) >{ > while (n--) { > *op++ = (npy_uint)*ip++; > } >} ># 1253 "numpy/core/src/multiarray/arraytypes.c.src" >static void >DATETIME_to_UINT(npy_datetime *ip, npy_uint *op, npy_intp n, > PyArrayObject *(__NPY_UNUSED_TAGGEDaip) __attribute__ ((__unused__)), PyArrayObject *(__NPY_UNUSED_TAGGEDaop) __attribute__ ((__unused__))) >{ > while (n--) { > *op++ = (npy_uint)*ip++; > } >} ># 1253 "numpy/core/src/multiarray/arraytypes.c.src" >static void >TIMEDELTA_to_UINT(npy_timedelta *ip, npy_uint *op, npy_intp n, > PyArrayObject *(__NPY_UNUSED_TAGGEDaip) __attribute__ ((__unused__)), PyArrayObject *(__NPY_UNUSED_TAGGEDaop) __attribute__ ((__unused__))) >{ > while (n--) { > *op++ = (npy_uint)*ip++; > } >} ># 1268 "numpy/core/src/multiarray/arraytypes.c.src" >static void >CFLOAT_to_UINT(float *ip, npy_uint *op, npy_intp n, > PyArrayObject *(__NPY_UNUSED_TAGGEDaip) __attribute__ ((__unused__)), PyArrayObject *(__NPY_UNUSED_TAGGEDaop) __attribute__ ((__unused__))) >{ > while (n--) { > *op++ = (npy_uint)*ip; > ip += 2; > } >} ># 1268 "numpy/core/src/multiarray/arraytypes.c.src" >static void >CDOUBLE_to_UINT(double *ip, npy_uint *op, npy_intp n, > PyArrayObject *(__NPY_UNUSED_TAGGEDaip) __attribute__ ((__unused__)), PyArrayObject *(__NPY_UNUSED_TAGGEDaop) __attribute__ ((__unused__))) >{ > while (n--) { > *op++ = (npy_uint)*ip; > ip += 2; > } >} ># 1268 "numpy/core/src/multiarray/arraytypes.c.src" >static void >CLONGDOUBLE_to_UINT(npy_longdouble *ip, npy_uint *op, npy_intp n, > PyArrayObject *(__NPY_UNUSED_TAGGEDaip) __attribute__ ((__unused__)), PyArrayObject *(__NPY_UNUSED_TAGGEDaop) __attribute__ ((__unused__))) >{ > while (n--) { > *op++ = (npy_uint)*ip; > ip += 2; > } >} ># 1243 "numpy/core/src/multiarray/arraytypes.c.src" ># 1253 "numpy/core/src/multiarray/arraytypes.c.src" >static void >BYTE_to_LONG(npy_byte *ip, long *op, npy_intp n, > PyArrayObject *(__NPY_UNUSED_TAGGEDaip) __attribute__ ((__unused__)), PyArrayObject *(__NPY_UNUSED_TAGGEDaop) __attribute__ ((__unused__))) >{ > while (n--) { > *op++ = (long)*ip++; > } >} ># 1253 "numpy/core/src/multiarray/arraytypes.c.src" >static void >UBYTE_to_LONG(npy_ubyte *ip, long *op, npy_intp n, > PyArrayObject *(__NPY_UNUSED_TAGGEDaip) __attribute__ ((__unused__)), PyArrayObject *(__NPY_UNUSED_TAGGEDaop) __attribute__ ((__unused__))) >{ > while (n--) { > *op++ = (long)*ip++; > } >} ># 1253 "numpy/core/src/multiarray/arraytypes.c.src" >static void >SHORT_to_LONG(short *ip, long *op, npy_intp n, > PyArrayObject *(__NPY_UNUSED_TAGGEDaip) __attribute__ ((__unused__)), PyArrayObject *(__NPY_UNUSED_TAGGEDaop) __attribute__ ((__unused__))) >{ > while (n--) { > *op++ = (long)*ip++; > } >} ># 1253 "numpy/core/src/multiarray/arraytypes.c.src" >static void >USHORT_to_LONG(npy_ushort *ip, long *op, npy_intp n, > PyArrayObject *(__NPY_UNUSED_TAGGEDaip) __attribute__ ((__unused__)), PyArrayObject *(__NPY_UNUSED_TAGGEDaop) __attribute__ ((__unused__))) >{ > while (n--) { > *op++ = (long)*ip++; > } >} ># 1253 "numpy/core/src/multiarray/arraytypes.c.src" >static void >INT_to_LONG(int *ip, long *op, npy_intp n, > PyArrayObject *(__NPY_UNUSED_TAGGEDaip) __attribute__ ((__unused__)), PyArrayObject *(__NPY_UNUSED_TAGGEDaop) __attribute__ ((__unused__))) >{ > while (n--) { > *op++ = (long)*ip++; > } >} ># 1253 "numpy/core/src/multiarray/arraytypes.c.src" >static void >UINT_to_LONG(npy_uint *ip, long *op, npy_intp n, > PyArrayObject *(__NPY_UNUSED_TAGGEDaip) __attribute__ ((__unused__)), PyArrayObject *(__NPY_UNUSED_TAGGEDaop) __attribute__ ((__unused__))) >{ > while (n--) { > *op++ = (long)*ip++; > } >} ># 1253 "numpy/core/src/multiarray/arraytypes.c.src" >static void >LONG_to_LONG(long *ip, long *op, npy_intp n, > PyArrayObject *(__NPY_UNUSED_TAGGEDaip) __attribute__ ((__unused__)), PyArrayObject *(__NPY_UNUSED_TAGGEDaop) __attribute__ ((__unused__))) >{ > while (n--) { > *op++ = (long)*ip++; > } >} ># 1253 "numpy/core/src/multiarray/arraytypes.c.src" >static void >ULONG_to_LONG(npy_ulong *ip, long *op, npy_intp n, > PyArrayObject *(__NPY_UNUSED_TAGGEDaip) __attribute__ ((__unused__)), PyArrayObject *(__NPY_UNUSED_TAGGEDaop) __attribute__ ((__unused__))) >{ > while (n--) { > *op++ = (long)*ip++; > } >} ># 1253 "numpy/core/src/multiarray/arraytypes.c.src" >static void >LONGLONG_to_LONG(npy_longlong *ip, long *op, npy_intp n, > PyArrayObject *(__NPY_UNUSED_TAGGEDaip) __attribute__ ((__unused__)), PyArrayObject *(__NPY_UNUSED_TAGGEDaop) __attribute__ ((__unused__))) >{ > while (n--) { > *op++ = (long)*ip++; > } >} ># 1253 "numpy/core/src/multiarray/arraytypes.c.src" >static void >ULONGLONG_to_LONG(npy_ulonglong *ip, long *op, npy_intp n, > PyArrayObject *(__NPY_UNUSED_TAGGEDaip) __attribute__ ((__unused__)), PyArrayObject *(__NPY_UNUSED_TAGGEDaop) __attribute__ ((__unused__))) >{ > while (n--) { > *op++ = (long)*ip++; > } >} ># 1253 "numpy/core/src/multiarray/arraytypes.c.src" >static void >FLOAT_to_LONG(float *ip, long *op, npy_intp n, > PyArrayObject *(__NPY_UNUSED_TAGGEDaip) __attribute__ ((__unused__)), PyArrayObject *(__NPY_UNUSED_TAGGEDaop) __attribute__ ((__unused__))) >{ > while (n--) { > *op++ = (long)*ip++; > } >} ># 1253 "numpy/core/src/multiarray/arraytypes.c.src" >static void >DOUBLE_to_LONG(double *ip, long *op, npy_intp n, > PyArrayObject *(__NPY_UNUSED_TAGGEDaip) __attribute__ ((__unused__)), PyArrayObject *(__NPY_UNUSED_TAGGEDaop) __attribute__ ((__unused__))) >{ > while (n--) { > *op++ = (long)*ip++; > } >} ># 1253 "numpy/core/src/multiarray/arraytypes.c.src" >static void >LONGDOUBLE_to_LONG(npy_longdouble *ip, long *op, npy_intp n, > PyArrayObject *(__NPY_UNUSED_TAGGEDaip) __attribute__ ((__unused__)), PyArrayObject *(__NPY_UNUSED_TAGGEDaop) __attribute__ ((__unused__))) >{ > while (n--) { > *op++ = (long)*ip++; > } >} ># 1253 "numpy/core/src/multiarray/arraytypes.c.src" >static void >DATETIME_to_LONG(npy_datetime *ip, long *op, npy_intp n, > PyArrayObject *(__NPY_UNUSED_TAGGEDaip) __attribute__ ((__unused__)), PyArrayObject *(__NPY_UNUSED_TAGGEDaop) __attribute__ ((__unused__))) >{ > while (n--) { > *op++ = (long)*ip++; > } >} ># 1253 "numpy/core/src/multiarray/arraytypes.c.src" >static void >TIMEDELTA_to_LONG(npy_timedelta *ip, long *op, npy_intp n, > PyArrayObject *(__NPY_UNUSED_TAGGEDaip) __attribute__ ((__unused__)), PyArrayObject *(__NPY_UNUSED_TAGGEDaop) __attribute__ ((__unused__))) >{ > while (n--) { > *op++ = (long)*ip++; > } >} ># 1268 "numpy/core/src/multiarray/arraytypes.c.src" >static void >CFLOAT_to_LONG(float *ip, long *op, npy_intp n, > PyArrayObject *(__NPY_UNUSED_TAGGEDaip) __attribute__ ((__unused__)), PyArrayObject *(__NPY_UNUSED_TAGGEDaop) __attribute__ ((__unused__))) >{ > while (n--) { > *op++ = (long)*ip; > ip += 2; > } >} ># 1268 "numpy/core/src/multiarray/arraytypes.c.src" >static void >CDOUBLE_to_LONG(double *ip, long *op, npy_intp n, > PyArrayObject *(__NPY_UNUSED_TAGGEDaip) __attribute__ ((__unused__)), PyArrayObject *(__NPY_UNUSED_TAGGEDaop) __attribute__ ((__unused__))) >{ > while (n--) { > *op++ = (long)*ip; > ip += 2; > } >} ># 1268 "numpy/core/src/multiarray/arraytypes.c.src" >static void >CLONGDOUBLE_to_LONG(npy_longdouble *ip, long *op, npy_intp n, > PyArrayObject *(__NPY_UNUSED_TAGGEDaip) __attribute__ ((__unused__)), PyArrayObject *(__NPY_UNUSED_TAGGEDaop) __attribute__ ((__unused__))) >{ > while (n--) { > *op++ = (long)*ip; > ip += 2; > } >} ># 1243 "numpy/core/src/multiarray/arraytypes.c.src" ># 1253 "numpy/core/src/multiarray/arraytypes.c.src" >static void >BYTE_to_ULONG(npy_byte *ip, npy_ulong *op, npy_intp n, > PyArrayObject *(__NPY_UNUSED_TAGGEDaip) __attribute__ ((__unused__)), PyArrayObject *(__NPY_UNUSED_TAGGEDaop) __attribute__ ((__unused__))) >{ > while (n--) { > *op++ = (npy_ulong)*ip++; > } >} ># 1253 "numpy/core/src/multiarray/arraytypes.c.src" >static void >UBYTE_to_ULONG(npy_ubyte *ip, npy_ulong *op, npy_intp n, > PyArrayObject *(__NPY_UNUSED_TAGGEDaip) __attribute__ ((__unused__)), PyArrayObject *(__NPY_UNUSED_TAGGEDaop) __attribute__ ((__unused__))) >{ > while (n--) { > *op++ = (npy_ulong)*ip++; > } >} ># 1253 "numpy/core/src/multiarray/arraytypes.c.src" >static void >SHORT_to_ULONG(short *ip, npy_ulong *op, npy_intp n, > PyArrayObject *(__NPY_UNUSED_TAGGEDaip) __attribute__ ((__unused__)), PyArrayObject *(__NPY_UNUSED_TAGGEDaop) __attribute__ ((__unused__))) >{ > while (n--) { > *op++ = (npy_ulong)*ip++; > } >} ># 1253 "numpy/core/src/multiarray/arraytypes.c.src" >static void >USHORT_to_ULONG(npy_ushort *ip, npy_ulong *op, npy_intp n, > PyArrayObject *(__NPY_UNUSED_TAGGEDaip) __attribute__ ((__unused__)), PyArrayObject *(__NPY_UNUSED_TAGGEDaop) __attribute__ ((__unused__))) >{ > while (n--) { > *op++ = (npy_ulong)*ip++; > } >} ># 1253 "numpy/core/src/multiarray/arraytypes.c.src" >static void >INT_to_ULONG(int *ip, npy_ulong *op, npy_intp n, > PyArrayObject *(__NPY_UNUSED_TAGGEDaip) __attribute__ ((__unused__)), PyArrayObject *(__NPY_UNUSED_TAGGEDaop) __attribute__ ((__unused__))) >{ > while (n--) { > *op++ = (npy_ulong)*ip++; > } >} ># 1253 "numpy/core/src/multiarray/arraytypes.c.src" >static void >UINT_to_ULONG(npy_uint *ip, npy_ulong *op, npy_intp n, > PyArrayObject *(__NPY_UNUSED_TAGGEDaip) __attribute__ ((__unused__)), PyArrayObject *(__NPY_UNUSED_TAGGEDaop) __attribute__ ((__unused__))) >{ > while (n--) { > *op++ = (npy_ulong)*ip++; > } >} ># 1253 "numpy/core/src/multiarray/arraytypes.c.src" >static void >LONG_to_ULONG(long *ip, npy_ulong *op, npy_intp n, > PyArrayObject *(__NPY_UNUSED_TAGGEDaip) __attribute__ ((__unused__)), PyArrayObject *(__NPY_UNUSED_TAGGEDaop) __attribute__ ((__unused__))) >{ > while (n--) { > *op++ = (npy_ulong)*ip++; > } >} ># 1253 "numpy/core/src/multiarray/arraytypes.c.src" >static void >ULONG_to_ULONG(npy_ulong *ip, npy_ulong *op, npy_intp n, > PyArrayObject *(__NPY_UNUSED_TAGGEDaip) __attribute__ ((__unused__)), PyArrayObject *(__NPY_UNUSED_TAGGEDaop) __attribute__ ((__unused__))) >{ > while (n--) { > *op++ = (npy_ulong)*ip++; > } >} ># 1253 "numpy/core/src/multiarray/arraytypes.c.src" >static void >LONGLONG_to_ULONG(npy_longlong *ip, npy_ulong *op, npy_intp n, > PyArrayObject *(__NPY_UNUSED_TAGGEDaip) __attribute__ ((__unused__)), PyArrayObject *(__NPY_UNUSED_TAGGEDaop) __attribute__ ((__unused__))) >{ > while (n--) { > *op++ = (npy_ulong)*ip++; > } >} ># 1253 "numpy/core/src/multiarray/arraytypes.c.src" >static void >ULONGLONG_to_ULONG(npy_ulonglong *ip, npy_ulong *op, npy_intp n, > PyArrayObject *(__NPY_UNUSED_TAGGEDaip) __attribute__ ((__unused__)), PyArrayObject *(__NPY_UNUSED_TAGGEDaop) __attribute__ ((__unused__))) >{ > while (n--) { > *op++ = (npy_ulong)*ip++; > } >} ># 1253 "numpy/core/src/multiarray/arraytypes.c.src" >static void >FLOAT_to_ULONG(float *ip, npy_ulong *op, npy_intp n, > PyArrayObject *(__NPY_UNUSED_TAGGEDaip) __attribute__ ((__unused__)), PyArrayObject *(__NPY_UNUSED_TAGGEDaop) __attribute__ ((__unused__))) >{ > while (n--) { > *op++ = (npy_ulong)*ip++; > } >} ># 1253 "numpy/core/src/multiarray/arraytypes.c.src" >static void >DOUBLE_to_ULONG(double *ip, npy_ulong *op, npy_intp n, > PyArrayObject *(__NPY_UNUSED_TAGGEDaip) __attribute__ ((__unused__)), PyArrayObject *(__NPY_UNUSED_TAGGEDaop) __attribute__ ((__unused__))) >{ > while (n--) { > *op++ = (npy_ulong)*ip++; > } >} ># 1253 "numpy/core/src/multiarray/arraytypes.c.src" >static void >LONGDOUBLE_to_ULONG(npy_longdouble *ip, npy_ulong *op, npy_intp n, > PyArrayObject *(__NPY_UNUSED_TAGGEDaip) __attribute__ ((__unused__)), PyArrayObject *(__NPY_UNUSED_TAGGEDaop) __attribute__ ((__unused__))) >{ > while (n--) { > *op++ = (npy_ulong)*ip++; > } >} ># 1253 "numpy/core/src/multiarray/arraytypes.c.src" >static void >DATETIME_to_ULONG(npy_datetime *ip, npy_ulong *op, npy_intp n, > PyArrayObject *(__NPY_UNUSED_TAGGEDaip) __attribute__ ((__unused__)), PyArrayObject *(__NPY_UNUSED_TAGGEDaop) __attribute__ ((__unused__))) >{ > while (n--) { > *op++ = (npy_ulong)*ip++; > } >} ># 1253 "numpy/core/src/multiarray/arraytypes.c.src" >static void >TIMEDELTA_to_ULONG(npy_timedelta *ip, npy_ulong *op, npy_intp n, > PyArrayObject *(__NPY_UNUSED_TAGGEDaip) __attribute__ ((__unused__)), PyArrayObject *(__NPY_UNUSED_TAGGEDaop) __attribute__ ((__unused__))) >{ > while (n--) { > *op++ = (npy_ulong)*ip++; > } >} ># 1268 "numpy/core/src/multiarray/arraytypes.c.src" >static void >CFLOAT_to_ULONG(float *ip, npy_ulong *op, npy_intp n, > PyArrayObject *(__NPY_UNUSED_TAGGEDaip) __attribute__ ((__unused__)), PyArrayObject *(__NPY_UNUSED_TAGGEDaop) __attribute__ ((__unused__))) >{ > while (n--) { > *op++ = (npy_ulong)*ip; > ip += 2; > } >} ># 1268 "numpy/core/src/multiarray/arraytypes.c.src" >static void >CDOUBLE_to_ULONG(double *ip, npy_ulong *op, npy_intp n, > PyArrayObject *(__NPY_UNUSED_TAGGEDaip) __attribute__ ((__unused__)), PyArrayObject *(__NPY_UNUSED_TAGGEDaop) __attribute__ ((__unused__))) >{ > while (n--) { > *op++ = (npy_ulong)*ip; > ip += 2; > } >} ># 1268 "numpy/core/src/multiarray/arraytypes.c.src" >static void >CLONGDOUBLE_to_ULONG(npy_longdouble *ip, npy_ulong *op, npy_intp n, > PyArrayObject *(__NPY_UNUSED_TAGGEDaip) __attribute__ ((__unused__)), PyArrayObject *(__NPY_UNUSED_TAGGEDaop) __attribute__ ((__unused__))) >{ > while (n--) { > *op++ = (npy_ulong)*ip; > ip += 2; > } >} ># 1243 "numpy/core/src/multiarray/arraytypes.c.src" ># 1253 "numpy/core/src/multiarray/arraytypes.c.src" >static void >BYTE_to_LONGLONG(npy_byte *ip, npy_longlong *op, npy_intp n, > PyArrayObject *(__NPY_UNUSED_TAGGEDaip) __attribute__ ((__unused__)), PyArrayObject *(__NPY_UNUSED_TAGGEDaop) __attribute__ ((__unused__))) >{ > while (n--) { > *op++ = (npy_longlong)*ip++; > } >} ># 1253 "numpy/core/src/multiarray/arraytypes.c.src" >static void >UBYTE_to_LONGLONG(npy_ubyte *ip, npy_longlong *op, npy_intp n, > PyArrayObject *(__NPY_UNUSED_TAGGEDaip) __attribute__ ((__unused__)), PyArrayObject *(__NPY_UNUSED_TAGGEDaop) __attribute__ ((__unused__))) >{ > while (n--) { > *op++ = (npy_longlong)*ip++; > } >} ># 1253 "numpy/core/src/multiarray/arraytypes.c.src" >static void >SHORT_to_LONGLONG(short *ip, npy_longlong *op, npy_intp n, > PyArrayObject *(__NPY_UNUSED_TAGGEDaip) __attribute__ ((__unused__)), PyArrayObject *(__NPY_UNUSED_TAGGEDaop) __attribute__ ((__unused__))) >{ > while (n--) { > *op++ = (npy_longlong)*ip++; > } >} ># 1253 "numpy/core/src/multiarray/arraytypes.c.src" >static void >USHORT_to_LONGLONG(npy_ushort *ip, npy_longlong *op, npy_intp n, > PyArrayObject *(__NPY_UNUSED_TAGGEDaip) __attribute__ ((__unused__)), PyArrayObject *(__NPY_UNUSED_TAGGEDaop) __attribute__ ((__unused__))) >{ > while (n--) { > *op++ = (npy_longlong)*ip++; > } >} ># 1253 "numpy/core/src/multiarray/arraytypes.c.src" >static void >INT_to_LONGLONG(int *ip, npy_longlong *op, npy_intp n, > PyArrayObject *(__NPY_UNUSED_TAGGEDaip) __attribute__ ((__unused__)), PyArrayObject *(__NPY_UNUSED_TAGGEDaop) __attribute__ ((__unused__))) >{ > while (n--) { > *op++ = (npy_longlong)*ip++; > } >} ># 1253 "numpy/core/src/multiarray/arraytypes.c.src" >static void >UINT_to_LONGLONG(npy_uint *ip, npy_longlong *op, npy_intp n, > PyArrayObject *(__NPY_UNUSED_TAGGEDaip) __attribute__ ((__unused__)), PyArrayObject *(__NPY_UNUSED_TAGGEDaop) __attribute__ ((__unused__))) >{ > while (n--) { > *op++ = (npy_longlong)*ip++; > } >} ># 1253 "numpy/core/src/multiarray/arraytypes.c.src" >static void >LONG_to_LONGLONG(long *ip, npy_longlong *op, npy_intp n, > PyArrayObject *(__NPY_UNUSED_TAGGEDaip) __attribute__ ((__unused__)), PyArrayObject *(__NPY_UNUSED_TAGGEDaop) __attribute__ ((__unused__))) >{ > while (n--) { > *op++ = (npy_longlong)*ip++; > } >} ># 1253 "numpy/core/src/multiarray/arraytypes.c.src" >static void >ULONG_to_LONGLONG(npy_ulong *ip, npy_longlong *op, npy_intp n, > PyArrayObject *(__NPY_UNUSED_TAGGEDaip) __attribute__ ((__unused__)), PyArrayObject *(__NPY_UNUSED_TAGGEDaop) __attribute__ ((__unused__))) >{ > while (n--) { > *op++ = (npy_longlong)*ip++; > } >} ># 1253 "numpy/core/src/multiarray/arraytypes.c.src" >static void >LONGLONG_to_LONGLONG(npy_longlong *ip, npy_longlong *op, npy_intp n, > PyArrayObject *(__NPY_UNUSED_TAGGEDaip) __attribute__ ((__unused__)), PyArrayObject *(__NPY_UNUSED_TAGGEDaop) __attribute__ ((__unused__))) >{ > while (n--) { > *op++ = (npy_longlong)*ip++; > } >} ># 1253 "numpy/core/src/multiarray/arraytypes.c.src" >static void >ULONGLONG_to_LONGLONG(npy_ulonglong *ip, npy_longlong *op, npy_intp n, > PyArrayObject *(__NPY_UNUSED_TAGGEDaip) __attribute__ ((__unused__)), PyArrayObject *(__NPY_UNUSED_TAGGEDaop) __attribute__ ((__unused__))) >{ > while (n--) { > *op++ = (npy_longlong)*ip++; > } >} ># 1253 "numpy/core/src/multiarray/arraytypes.c.src" >static void >FLOAT_to_LONGLONG(float *ip, npy_longlong *op, npy_intp n, > PyArrayObject *(__NPY_UNUSED_TAGGEDaip) __attribute__ ((__unused__)), PyArrayObject *(__NPY_UNUSED_TAGGEDaop) __attribute__ ((__unused__))) >{ > while (n--) { > *op++ = (npy_longlong)*ip++; > } >} ># 1253 "numpy/core/src/multiarray/arraytypes.c.src" >static void >DOUBLE_to_LONGLONG(double *ip, npy_longlong *op, npy_intp n, > PyArrayObject *(__NPY_UNUSED_TAGGEDaip) __attribute__ ((__unused__)), PyArrayObject *(__NPY_UNUSED_TAGGEDaop) __attribute__ ((__unused__))) >{ > while (n--) { > *op++ = (npy_longlong)*ip++; > } >} ># 1253 "numpy/core/src/multiarray/arraytypes.c.src" >static void >LONGDOUBLE_to_LONGLONG(npy_longdouble *ip, npy_longlong *op, npy_intp n, > PyArrayObject *(__NPY_UNUSED_TAGGEDaip) __attribute__ ((__unused__)), PyArrayObject *(__NPY_UNUSED_TAGGEDaop) __attribute__ ((__unused__))) >{ > while (n--) { > *op++ = (npy_longlong)*ip++; > } >} ># 1253 "numpy/core/src/multiarray/arraytypes.c.src" >static void >DATETIME_to_LONGLONG(npy_datetime *ip, npy_longlong *op, npy_intp n, > PyArrayObject *(__NPY_UNUSED_TAGGEDaip) __attribute__ ((__unused__)), PyArrayObject *(__NPY_UNUSED_TAGGEDaop) __attribute__ ((__unused__))) >{ > while (n--) { > *op++ = (npy_longlong)*ip++; > } >} ># 1253 "numpy/core/src/multiarray/arraytypes.c.src" >static void >TIMEDELTA_to_LONGLONG(npy_timedelta *ip, npy_longlong *op, npy_intp n, > PyArrayObject *(__NPY_UNUSED_TAGGEDaip) __attribute__ ((__unused__)), PyArrayObject *(__NPY_UNUSED_TAGGEDaop) __attribute__ ((__unused__))) >{ > while (n--) { > *op++ = (npy_longlong)*ip++; > } >} ># 1268 "numpy/core/src/multiarray/arraytypes.c.src" >static void >CFLOAT_to_LONGLONG(float *ip, npy_longlong *op, npy_intp n, > PyArrayObject *(__NPY_UNUSED_TAGGEDaip) __attribute__ ((__unused__)), PyArrayObject *(__NPY_UNUSED_TAGGEDaop) __attribute__ ((__unused__))) >{ > while (n--) { > *op++ = (npy_longlong)*ip; > ip += 2; > } >} ># 1268 "numpy/core/src/multiarray/arraytypes.c.src" >static void >CDOUBLE_to_LONGLONG(double *ip, npy_longlong *op, npy_intp n, > PyArrayObject *(__NPY_UNUSED_TAGGEDaip) __attribute__ ((__unused__)), PyArrayObject *(__NPY_UNUSED_TAGGEDaop) __attribute__ ((__unused__))) >{ > while (n--) { > *op++ = (npy_longlong)*ip; > ip += 2; > } >} ># 1268 "numpy/core/src/multiarray/arraytypes.c.src" >static void >CLONGDOUBLE_to_LONGLONG(npy_longdouble *ip, npy_longlong *op, npy_intp n, > PyArrayObject *(__NPY_UNUSED_TAGGEDaip) __attribute__ ((__unused__)), PyArrayObject *(__NPY_UNUSED_TAGGEDaop) __attribute__ ((__unused__))) >{ > while (n--) { > *op++ = (npy_longlong)*ip; > ip += 2; > } >} ># 1243 "numpy/core/src/multiarray/arraytypes.c.src" ># 1253 "numpy/core/src/multiarray/arraytypes.c.src" >static void >BYTE_to_ULONGLONG(npy_byte *ip, npy_ulonglong *op, npy_intp n, > PyArrayObject *(__NPY_UNUSED_TAGGEDaip) __attribute__ ((__unused__)), PyArrayObject *(__NPY_UNUSED_TAGGEDaop) __attribute__ ((__unused__))) >{ > while (n--) { > *op++ = (npy_ulonglong)*ip++; > } >} ># 1253 "numpy/core/src/multiarray/arraytypes.c.src" >static void >UBYTE_to_ULONGLONG(npy_ubyte *ip, npy_ulonglong *op, npy_intp n, > PyArrayObject *(__NPY_UNUSED_TAGGEDaip) __attribute__ ((__unused__)), PyArrayObject *(__NPY_UNUSED_TAGGEDaop) __attribute__ ((__unused__))) >{ > while (n--) { > *op++ = (npy_ulonglong)*ip++; > } >} ># 1253 "numpy/core/src/multiarray/arraytypes.c.src" >static void >SHORT_to_ULONGLONG(short *ip, npy_ulonglong *op, npy_intp n, > PyArrayObject *(__NPY_UNUSED_TAGGEDaip) __attribute__ ((__unused__)), PyArrayObject *(__NPY_UNUSED_TAGGEDaop) __attribute__ ((__unused__))) >{ > while (n--) { > *op++ = (npy_ulonglong)*ip++; > } >} ># 1253 "numpy/core/src/multiarray/arraytypes.c.src" >static void >USHORT_to_ULONGLONG(npy_ushort *ip, npy_ulonglong *op, npy_intp n, > PyArrayObject *(__NPY_UNUSED_TAGGEDaip) __attribute__ ((__unused__)), PyArrayObject *(__NPY_UNUSED_TAGGEDaop) __attribute__ ((__unused__))) >{ > while (n--) { > *op++ = (npy_ulonglong)*ip++; > } >} ># 1253 "numpy/core/src/multiarray/arraytypes.c.src" >static void >INT_to_ULONGLONG(int *ip, npy_ulonglong *op, npy_intp n, > PyArrayObject *(__NPY_UNUSED_TAGGEDaip) __attribute__ ((__unused__)), PyArrayObject *(__NPY_UNUSED_TAGGEDaop) __attribute__ ((__unused__))) >{ > while (n--) { > *op++ = (npy_ulonglong)*ip++; > } >} ># 1253 "numpy/core/src/multiarray/arraytypes.c.src" >static void >UINT_to_ULONGLONG(npy_uint *ip, npy_ulonglong *op, npy_intp n, > PyArrayObject *(__NPY_UNUSED_TAGGEDaip) __attribute__ ((__unused__)), PyArrayObject *(__NPY_UNUSED_TAGGEDaop) __attribute__ ((__unused__))) >{ > while (n--) { > *op++ = (npy_ulonglong)*ip++; > } >} ># 1253 "numpy/core/src/multiarray/arraytypes.c.src" >static void >LONG_to_ULONGLONG(long *ip, npy_ulonglong *op, npy_intp n, > PyArrayObject *(__NPY_UNUSED_TAGGEDaip) __attribute__ ((__unused__)), PyArrayObject *(__NPY_UNUSED_TAGGEDaop) __attribute__ ((__unused__))) >{ > while (n--) { > *op++ = (npy_ulonglong)*ip++; > } >} ># 1253 "numpy/core/src/multiarray/arraytypes.c.src" >static void >ULONG_to_ULONGLONG(npy_ulong *ip, npy_ulonglong *op, npy_intp n, > PyArrayObject *(__NPY_UNUSED_TAGGEDaip) __attribute__ ((__unused__)), PyArrayObject *(__NPY_UNUSED_TAGGEDaop) __attribute__ ((__unused__))) >{ > while (n--) { > *op++ = (npy_ulonglong)*ip++; > } >} ># 1253 "numpy/core/src/multiarray/arraytypes.c.src" >static void >LONGLONG_to_ULONGLONG(npy_longlong *ip, npy_ulonglong *op, npy_intp n, > PyArrayObject *(__NPY_UNUSED_TAGGEDaip) __attribute__ ((__unused__)), PyArrayObject *(__NPY_UNUSED_TAGGEDaop) __attribute__ ((__unused__))) >{ > while (n--) { > *op++ = (npy_ulonglong)*ip++; > } >} ># 1253 "numpy/core/src/multiarray/arraytypes.c.src" >static void >ULONGLONG_to_ULONGLONG(npy_ulonglong *ip, npy_ulonglong *op, npy_intp n, > PyArrayObject *(__NPY_UNUSED_TAGGEDaip) __attribute__ ((__unused__)), PyArrayObject *(__NPY_UNUSED_TAGGEDaop) __attribute__ ((__unused__))) >{ > while (n--) { > *op++ = (npy_ulonglong)*ip++; > } >} ># 1253 "numpy/core/src/multiarray/arraytypes.c.src" >static void >FLOAT_to_ULONGLONG(float *ip, npy_ulonglong *op, npy_intp n, > PyArrayObject *(__NPY_UNUSED_TAGGEDaip) __attribute__ ((__unused__)), PyArrayObject *(__NPY_UNUSED_TAGGEDaop) __attribute__ ((__unused__))) >{ > while (n--) { > *op++ = (npy_ulonglong)*ip++; > } >} ># 1253 "numpy/core/src/multiarray/arraytypes.c.src" >static void >DOUBLE_to_ULONGLONG(double *ip, npy_ulonglong *op, npy_intp n, > PyArrayObject *(__NPY_UNUSED_TAGGEDaip) __attribute__ ((__unused__)), PyArrayObject *(__NPY_UNUSED_TAGGEDaop) __attribute__ ((__unused__))) >{ > while (n--) { > *op++ = (npy_ulonglong)*ip++; > } >} ># 1253 "numpy/core/src/multiarray/arraytypes.c.src" >static void >LONGDOUBLE_to_ULONGLONG(npy_longdouble *ip, npy_ulonglong *op, npy_intp n, > PyArrayObject *(__NPY_UNUSED_TAGGEDaip) __attribute__ ((__unused__)), PyArrayObject *(__NPY_UNUSED_TAGGEDaop) __attribute__ ((__unused__))) >{ > while (n--) { > *op++ = (npy_ulonglong)*ip++; > } >} ># 1253 "numpy/core/src/multiarray/arraytypes.c.src" >static void >DATETIME_to_ULONGLONG(npy_datetime *ip, npy_ulonglong *op, npy_intp n, > PyArrayObject *(__NPY_UNUSED_TAGGEDaip) __attribute__ ((__unused__)), PyArrayObject *(__NPY_UNUSED_TAGGEDaop) __attribute__ ((__unused__))) >{ > while (n--) { > *op++ = (npy_ulonglong)*ip++; > } >} ># 1253 "numpy/core/src/multiarray/arraytypes.c.src" >static void >TIMEDELTA_to_ULONGLONG(npy_timedelta *ip, npy_ulonglong *op, npy_intp n, > PyArrayObject *(__NPY_UNUSED_TAGGEDaip) __attribute__ ((__unused__)), PyArrayObject *(__NPY_UNUSED_TAGGEDaop) __attribute__ ((__unused__))) >{ > while (n--) { > *op++ = (npy_ulonglong)*ip++; > } >} ># 1268 "numpy/core/src/multiarray/arraytypes.c.src" >static void >CFLOAT_to_ULONGLONG(float *ip, npy_ulonglong *op, npy_intp n, > PyArrayObject *(__NPY_UNUSED_TAGGEDaip) __attribute__ ((__unused__)), PyArrayObject *(__NPY_UNUSED_TAGGEDaop) __attribute__ ((__unused__))) >{ > while (n--) { > *op++ = (npy_ulonglong)*ip; > ip += 2; > } >} ># 1268 "numpy/core/src/multiarray/arraytypes.c.src" >static void >CDOUBLE_to_ULONGLONG(double *ip, npy_ulonglong *op, npy_intp n, > PyArrayObject *(__NPY_UNUSED_TAGGEDaip) __attribute__ ((__unused__)), PyArrayObject *(__NPY_UNUSED_TAGGEDaop) __attribute__ ((__unused__))) >{ > while (n--) { > *op++ = (npy_ulonglong)*ip; > ip += 2; > } >} ># 1268 "numpy/core/src/multiarray/arraytypes.c.src" >static void >CLONGDOUBLE_to_ULONGLONG(npy_longdouble *ip, npy_ulonglong *op, npy_intp n, > PyArrayObject *(__NPY_UNUSED_TAGGEDaip) __attribute__ ((__unused__)), PyArrayObject *(__NPY_UNUSED_TAGGEDaop) __attribute__ ((__unused__))) >{ > while (n--) { > *op++ = (npy_ulonglong)*ip; > ip += 2; > } >} ># 1243 "numpy/core/src/multiarray/arraytypes.c.src" ># 1253 "numpy/core/src/multiarray/arraytypes.c.src" >static void >BYTE_to_FLOAT(npy_byte *ip, float *op, npy_intp n, > PyArrayObject *(__NPY_UNUSED_TAGGEDaip) __attribute__ ((__unused__)), PyArrayObject *(__NPY_UNUSED_TAGGEDaop) __attribute__ ((__unused__))) >{ > while (n--) { > *op++ = (float)*ip++; > } >} ># 1253 "numpy/core/src/multiarray/arraytypes.c.src" >static void >UBYTE_to_FLOAT(npy_ubyte *ip, float *op, npy_intp n, > PyArrayObject *(__NPY_UNUSED_TAGGEDaip) __attribute__ ((__unused__)), PyArrayObject *(__NPY_UNUSED_TAGGEDaop) __attribute__ ((__unused__))) >{ > while (n--) { > *op++ = (float)*ip++; > } >} ># 1253 "numpy/core/src/multiarray/arraytypes.c.src" >static void >SHORT_to_FLOAT(short *ip, float *op, npy_intp n, > PyArrayObject *(__NPY_UNUSED_TAGGEDaip) __attribute__ ((__unused__)), PyArrayObject *(__NPY_UNUSED_TAGGEDaop) __attribute__ ((__unused__))) >{ > while (n--) { > *op++ = (float)*ip++; > } >} ># 1253 "numpy/core/src/multiarray/arraytypes.c.src" >static void >USHORT_to_FLOAT(npy_ushort *ip, float *op, npy_intp n, > PyArrayObject *(__NPY_UNUSED_TAGGEDaip) __attribute__ ((__unused__)), PyArrayObject *(__NPY_UNUSED_TAGGEDaop) __attribute__ ((__unused__))) >{ > while (n--) { > *op++ = (float)*ip++; > } >} ># 1253 "numpy/core/src/multiarray/arraytypes.c.src" >static void >INT_to_FLOAT(int *ip, float *op, npy_intp n, > PyArrayObject *(__NPY_UNUSED_TAGGEDaip) __attribute__ ((__unused__)), PyArrayObject *(__NPY_UNUSED_TAGGEDaop) __attribute__ ((__unused__))) >{ > while (n--) { > *op++ = (float)*ip++; > } >} ># 1253 "numpy/core/src/multiarray/arraytypes.c.src" >static void >UINT_to_FLOAT(npy_uint *ip, float *op, npy_intp n, > PyArrayObject *(__NPY_UNUSED_TAGGEDaip) __attribute__ ((__unused__)), PyArrayObject *(__NPY_UNUSED_TAGGEDaop) __attribute__ ((__unused__))) >{ > while (n--) { > *op++ = (float)*ip++; > } >} ># 1253 "numpy/core/src/multiarray/arraytypes.c.src" >static void >LONG_to_FLOAT(long *ip, float *op, npy_intp n, > PyArrayObject *(__NPY_UNUSED_TAGGEDaip) __attribute__ ((__unused__)), PyArrayObject *(__NPY_UNUSED_TAGGEDaop) __attribute__ ((__unused__))) >{ > while (n--) { > *op++ = (float)*ip++; > } >} ># 1253 "numpy/core/src/multiarray/arraytypes.c.src" >static void >ULONG_to_FLOAT(npy_ulong *ip, float *op, npy_intp n, > PyArrayObject *(__NPY_UNUSED_TAGGEDaip) __attribute__ ((__unused__)), PyArrayObject *(__NPY_UNUSED_TAGGEDaop) __attribute__ ((__unused__))) >{ > while (n--) { > *op++ = (float)*ip++; > } >} ># 1253 "numpy/core/src/multiarray/arraytypes.c.src" >static void >LONGLONG_to_FLOAT(npy_longlong *ip, float *op, npy_intp n, > PyArrayObject *(__NPY_UNUSED_TAGGEDaip) __attribute__ ((__unused__)), PyArrayObject *(__NPY_UNUSED_TAGGEDaop) __attribute__ ((__unused__))) >{ > while (n--) { > *op++ = (float)*ip++; > } >} ># 1253 "numpy/core/src/multiarray/arraytypes.c.src" >static void >ULONGLONG_to_FLOAT(npy_ulonglong *ip, float *op, npy_intp n, > PyArrayObject *(__NPY_UNUSED_TAGGEDaip) __attribute__ ((__unused__)), PyArrayObject *(__NPY_UNUSED_TAGGEDaop) __attribute__ ((__unused__))) >{ > while (n--) { > *op++ = (float)*ip++; > } >} ># 1253 "numpy/core/src/multiarray/arraytypes.c.src" >static void >FLOAT_to_FLOAT(float *ip, float *op, npy_intp n, > PyArrayObject *(__NPY_UNUSED_TAGGEDaip) __attribute__ ((__unused__)), PyArrayObject *(__NPY_UNUSED_TAGGEDaop) __attribute__ ((__unused__))) >{ > while (n--) { > *op++ = (float)*ip++; > } >} ># 1253 "numpy/core/src/multiarray/arraytypes.c.src" >static void >DOUBLE_to_FLOAT(double *ip, float *op, npy_intp n, > PyArrayObject *(__NPY_UNUSED_TAGGEDaip) __attribute__ ((__unused__)), PyArrayObject *(__NPY_UNUSED_TAGGEDaop) __attribute__ ((__unused__))) >{ > while (n--) { > *op++ = (float)*ip++; > } >} ># 1253 "numpy/core/src/multiarray/arraytypes.c.src" >static void >LONGDOUBLE_to_FLOAT(npy_longdouble *ip, float *op, npy_intp n, > PyArrayObject *(__NPY_UNUSED_TAGGEDaip) __attribute__ ((__unused__)), PyArrayObject *(__NPY_UNUSED_TAGGEDaop) __attribute__ ((__unused__))) >{ > while (n--) { > *op++ = (float)*ip++; > } >} ># 1253 "numpy/core/src/multiarray/arraytypes.c.src" >static void >DATETIME_to_FLOAT(npy_datetime *ip, float *op, npy_intp n, > PyArrayObject *(__NPY_UNUSED_TAGGEDaip) __attribute__ ((__unused__)), PyArrayObject *(__NPY_UNUSED_TAGGEDaop) __attribute__ ((__unused__))) >{ > while (n--) { > *op++ = (float)*ip++; > } >} ># 1253 "numpy/core/src/multiarray/arraytypes.c.src" >static void >TIMEDELTA_to_FLOAT(npy_timedelta *ip, float *op, npy_intp n, > PyArrayObject *(__NPY_UNUSED_TAGGEDaip) __attribute__ ((__unused__)), PyArrayObject *(__NPY_UNUSED_TAGGEDaop) __attribute__ ((__unused__))) >{ > while (n--) { > *op++ = (float)*ip++; > } >} ># 1268 "numpy/core/src/multiarray/arraytypes.c.src" >static void >CFLOAT_to_FLOAT(float *ip, float *op, npy_intp n, > PyArrayObject *(__NPY_UNUSED_TAGGEDaip) __attribute__ ((__unused__)), PyArrayObject *(__NPY_UNUSED_TAGGEDaop) __attribute__ ((__unused__))) >{ > while (n--) { > *op++ = (float)*ip; > ip += 2; > } >} ># 1268 "numpy/core/src/multiarray/arraytypes.c.src" >static void >CDOUBLE_to_FLOAT(double *ip, float *op, npy_intp n, > PyArrayObject *(__NPY_UNUSED_TAGGEDaip) __attribute__ ((__unused__)), PyArrayObject *(__NPY_UNUSED_TAGGEDaop) __attribute__ ((__unused__))) >{ > while (n--) { > *op++ = (float)*ip; > ip += 2; > } >} ># 1268 "numpy/core/src/multiarray/arraytypes.c.src" >static void >CLONGDOUBLE_to_FLOAT(npy_longdouble *ip, float *op, npy_intp n, > PyArrayObject *(__NPY_UNUSED_TAGGEDaip) __attribute__ ((__unused__)), PyArrayObject *(__NPY_UNUSED_TAGGEDaop) __attribute__ ((__unused__))) >{ > while (n--) { > *op++ = (float)*ip; > ip += 2; > } >} ># 1243 "numpy/core/src/multiarray/arraytypes.c.src" ># 1253 "numpy/core/src/multiarray/arraytypes.c.src" >static void >BYTE_to_DOUBLE(npy_byte *ip, double *op, npy_intp n, > PyArrayObject *(__NPY_UNUSED_TAGGEDaip) __attribute__ ((__unused__)), PyArrayObject *(__NPY_UNUSED_TAGGEDaop) __attribute__ ((__unused__))) >{ > while (n--) { > *op++ = (double)*ip++; > } >} ># 1253 "numpy/core/src/multiarray/arraytypes.c.src" >static void >UBYTE_to_DOUBLE(npy_ubyte *ip, double *op, npy_intp n, > PyArrayObject *(__NPY_UNUSED_TAGGEDaip) __attribute__ ((__unused__)), PyArrayObject *(__NPY_UNUSED_TAGGEDaop) __attribute__ ((__unused__))) >{ > while (n--) { > *op++ = (double)*ip++; > } >} ># 1253 "numpy/core/src/multiarray/arraytypes.c.src" >static void >SHORT_to_DOUBLE(short *ip, double *op, npy_intp n, > PyArrayObject *(__NPY_UNUSED_TAGGEDaip) __attribute__ ((__unused__)), PyArrayObject *(__NPY_UNUSED_TAGGEDaop) __attribute__ ((__unused__))) >{ > while (n--) { > *op++ = (double)*ip++; > } >} ># 1253 "numpy/core/src/multiarray/arraytypes.c.src" >static void >USHORT_to_DOUBLE(npy_ushort *ip, double *op, npy_intp n, > PyArrayObject *(__NPY_UNUSED_TAGGEDaip) __attribute__ ((__unused__)), PyArrayObject *(__NPY_UNUSED_TAGGEDaop) __attribute__ ((__unused__))) >{ > while (n--) { > *op++ = (double)*ip++; > } >} ># 1253 "numpy/core/src/multiarray/arraytypes.c.src" >static void >INT_to_DOUBLE(int *ip, double *op, npy_intp n, > PyArrayObject *(__NPY_UNUSED_TAGGEDaip) __attribute__ ((__unused__)), PyArrayObject *(__NPY_UNUSED_TAGGEDaop) __attribute__ ((__unused__))) >{ > while (n--) { > *op++ = (double)*ip++; > } >} ># 1253 "numpy/core/src/multiarray/arraytypes.c.src" >static void >UINT_to_DOUBLE(npy_uint *ip, double *op, npy_intp n, > PyArrayObject *(__NPY_UNUSED_TAGGEDaip) __attribute__ ((__unused__)), PyArrayObject *(__NPY_UNUSED_TAGGEDaop) __attribute__ ((__unused__))) >{ > while (n--) { > *op++ = (double)*ip++; > } >} ># 1253 "numpy/core/src/multiarray/arraytypes.c.src" >static void >LONG_to_DOUBLE(long *ip, double *op, npy_intp n, > PyArrayObject *(__NPY_UNUSED_TAGGEDaip) __attribute__ ((__unused__)), PyArrayObject *(__NPY_UNUSED_TAGGEDaop) __attribute__ ((__unused__))) >{ > while (n--) { > *op++ = (double)*ip++; > } >} ># 1253 "numpy/core/src/multiarray/arraytypes.c.src" >static void >ULONG_to_DOUBLE(npy_ulong *ip, double *op, npy_intp n, > PyArrayObject *(__NPY_UNUSED_TAGGEDaip) __attribute__ ((__unused__)), PyArrayObject *(__NPY_UNUSED_TAGGEDaop) __attribute__ ((__unused__))) >{ > while (n--) { > *op++ = (double)*ip++; > } >} ># 1253 "numpy/core/src/multiarray/arraytypes.c.src" >static void >LONGLONG_to_DOUBLE(npy_longlong *ip, double *op, npy_intp n, > PyArrayObject *(__NPY_UNUSED_TAGGEDaip) __attribute__ ((__unused__)), PyArrayObject *(__NPY_UNUSED_TAGGEDaop) __attribute__ ((__unused__))) >{ > while (n--) { > *op++ = (double)*ip++; > } >} ># 1253 "numpy/core/src/multiarray/arraytypes.c.src" >static void >ULONGLONG_to_DOUBLE(npy_ulonglong *ip, double *op, npy_intp n, > PyArrayObject *(__NPY_UNUSED_TAGGEDaip) __attribute__ ((__unused__)), PyArrayObject *(__NPY_UNUSED_TAGGEDaop) __attribute__ ((__unused__))) >{ > while (n--) { > *op++ = (double)*ip++; > } >} ># 1253 "numpy/core/src/multiarray/arraytypes.c.src" >static void >FLOAT_to_DOUBLE(float *ip, double *op, npy_intp n, > PyArrayObject *(__NPY_UNUSED_TAGGEDaip) __attribute__ ((__unused__)), PyArrayObject *(__NPY_UNUSED_TAGGEDaop) __attribute__ ((__unused__))) >{ > while (n--) { > *op++ = (double)*ip++; > } >} ># 1253 "numpy/core/src/multiarray/arraytypes.c.src" >static void >DOUBLE_to_DOUBLE(double *ip, double *op, npy_intp n, > PyArrayObject *(__NPY_UNUSED_TAGGEDaip) __attribute__ ((__unused__)), PyArrayObject *(__NPY_UNUSED_TAGGEDaop) __attribute__ ((__unused__))) >{ > while (n--) { > *op++ = (double)*ip++; > } >} ># 1253 "numpy/core/src/multiarray/arraytypes.c.src" >static void >LONGDOUBLE_to_DOUBLE(npy_longdouble *ip, double *op, npy_intp n, > PyArrayObject *(__NPY_UNUSED_TAGGEDaip) __attribute__ ((__unused__)), PyArrayObject *(__NPY_UNUSED_TAGGEDaop) __attribute__ ((__unused__))) >{ > while (n--) { > *op++ = (double)*ip++; > } >} ># 1253 "numpy/core/src/multiarray/arraytypes.c.src" >static void >DATETIME_to_DOUBLE(npy_datetime *ip, double *op, npy_intp n, > PyArrayObject *(__NPY_UNUSED_TAGGEDaip) __attribute__ ((__unused__)), PyArrayObject *(__NPY_UNUSED_TAGGEDaop) __attribute__ ((__unused__))) >{ > while (n--) { > *op++ = (double)*ip++; > } >} ># 1253 "numpy/core/src/multiarray/arraytypes.c.src" >static void >TIMEDELTA_to_DOUBLE(npy_timedelta *ip, double *op, npy_intp n, > PyArrayObject *(__NPY_UNUSED_TAGGEDaip) __attribute__ ((__unused__)), PyArrayObject *(__NPY_UNUSED_TAGGEDaop) __attribute__ ((__unused__))) >{ > while (n--) { > *op++ = (double)*ip++; > } >} ># 1268 "numpy/core/src/multiarray/arraytypes.c.src" >static void >CFLOAT_to_DOUBLE(float *ip, double *op, npy_intp n, > PyArrayObject *(__NPY_UNUSED_TAGGEDaip) __attribute__ ((__unused__)), PyArrayObject *(__NPY_UNUSED_TAGGEDaop) __attribute__ ((__unused__))) >{ > while (n--) { > *op++ = (double)*ip; > ip += 2; > } >} ># 1268 "numpy/core/src/multiarray/arraytypes.c.src" >static void >CDOUBLE_to_DOUBLE(double *ip, double *op, npy_intp n, > PyArrayObject *(__NPY_UNUSED_TAGGEDaip) __attribute__ ((__unused__)), PyArrayObject *(__NPY_UNUSED_TAGGEDaop) __attribute__ ((__unused__))) >{ > while (n--) { > *op++ = (double)*ip; > ip += 2; > } >} ># 1268 "numpy/core/src/multiarray/arraytypes.c.src" >static void >CLONGDOUBLE_to_DOUBLE(npy_longdouble *ip, double *op, npy_intp n, > PyArrayObject *(__NPY_UNUSED_TAGGEDaip) __attribute__ ((__unused__)), PyArrayObject *(__NPY_UNUSED_TAGGEDaop) __attribute__ ((__unused__))) >{ > while (n--) { > *op++ = (double)*ip; > ip += 2; > } >} ># 1243 "numpy/core/src/multiarray/arraytypes.c.src" ># 1253 "numpy/core/src/multiarray/arraytypes.c.src" >static void >BYTE_to_LONGDOUBLE(npy_byte *ip, npy_longdouble *op, npy_intp n, > PyArrayObject *(__NPY_UNUSED_TAGGEDaip) __attribute__ ((__unused__)), PyArrayObject *(__NPY_UNUSED_TAGGEDaop) __attribute__ ((__unused__))) >{ > while (n--) { > *op++ = (npy_longdouble)*ip++; > } >} ># 1253 "numpy/core/src/multiarray/arraytypes.c.src" >static void >UBYTE_to_LONGDOUBLE(npy_ubyte *ip, npy_longdouble *op, npy_intp n, > PyArrayObject *(__NPY_UNUSED_TAGGEDaip) __attribute__ ((__unused__)), PyArrayObject *(__NPY_UNUSED_TAGGEDaop) __attribute__ ((__unused__))) >{ > while (n--) { > *op++ = (npy_longdouble)*ip++; > } >} ># 1253 "numpy/core/src/multiarray/arraytypes.c.src" >static void >SHORT_to_LONGDOUBLE(short *ip, npy_longdouble *op, npy_intp n, > PyArrayObject *(__NPY_UNUSED_TAGGEDaip) __attribute__ ((__unused__)), PyArrayObject *(__NPY_UNUSED_TAGGEDaop) __attribute__ ((__unused__))) >{ > while (n--) { > *op++ = (npy_longdouble)*ip++; > } >} ># 1253 "numpy/core/src/multiarray/arraytypes.c.src" >static void >USHORT_to_LONGDOUBLE(npy_ushort *ip, npy_longdouble *op, npy_intp n, > PyArrayObject *(__NPY_UNUSED_TAGGEDaip) __attribute__ ((__unused__)), PyArrayObject *(__NPY_UNUSED_TAGGEDaop) __attribute__ ((__unused__))) >{ > while (n--) { > *op++ = (npy_longdouble)*ip++; > } >} ># 1253 "numpy/core/src/multiarray/arraytypes.c.src" >static void >INT_to_LONGDOUBLE(int *ip, npy_longdouble *op, npy_intp n, > PyArrayObject *(__NPY_UNUSED_TAGGEDaip) __attribute__ ((__unused__)), PyArrayObject *(__NPY_UNUSED_TAGGEDaop) __attribute__ ((__unused__))) >{ > while (n--) { > *op++ = (npy_longdouble)*ip++; > } >} ># 1253 "numpy/core/src/multiarray/arraytypes.c.src" >static void >UINT_to_LONGDOUBLE(npy_uint *ip, npy_longdouble *op, npy_intp n, > PyArrayObject *(__NPY_UNUSED_TAGGEDaip) __attribute__ ((__unused__)), PyArrayObject *(__NPY_UNUSED_TAGGEDaop) __attribute__ ((__unused__))) >{ > while (n--) { > *op++ = (npy_longdouble)*ip++; > } >} ># 1253 "numpy/core/src/multiarray/arraytypes.c.src" >static void >LONG_to_LONGDOUBLE(long *ip, npy_longdouble *op, npy_intp n, > PyArrayObject *(__NPY_UNUSED_TAGGEDaip) __attribute__ ((__unused__)), PyArrayObject *(__NPY_UNUSED_TAGGEDaop) __attribute__ ((__unused__))) >{ > while (n--) { > *op++ = (npy_longdouble)*ip++; > } >} ># 1253 "numpy/core/src/multiarray/arraytypes.c.src" >static void >ULONG_to_LONGDOUBLE(npy_ulong *ip, npy_longdouble *op, npy_intp n, > PyArrayObject *(__NPY_UNUSED_TAGGEDaip) __attribute__ ((__unused__)), PyArrayObject *(__NPY_UNUSED_TAGGEDaop) __attribute__ ((__unused__))) >{ > while (n--) { > *op++ = (npy_longdouble)*ip++; > } >} ># 1253 "numpy/core/src/multiarray/arraytypes.c.src" >static void >LONGLONG_to_LONGDOUBLE(npy_longlong *ip, npy_longdouble *op, npy_intp n, > PyArrayObject *(__NPY_UNUSED_TAGGEDaip) __attribute__ ((__unused__)), PyArrayObject *(__NPY_UNUSED_TAGGEDaop) __attribute__ ((__unused__))) >{ > while (n--) { > *op++ = (npy_longdouble)*ip++; > } >} ># 1253 "numpy/core/src/multiarray/arraytypes.c.src" >static void >ULONGLONG_to_LONGDOUBLE(npy_ulonglong *ip, npy_longdouble *op, npy_intp n, > PyArrayObject *(__NPY_UNUSED_TAGGEDaip) __attribute__ ((__unused__)), PyArrayObject *(__NPY_UNUSED_TAGGEDaop) __attribute__ ((__unused__))) >{ > while (n--) { > *op++ = (npy_longdouble)*ip++; > } >} ># 1253 "numpy/core/src/multiarray/arraytypes.c.src" >static void >FLOAT_to_LONGDOUBLE(float *ip, npy_longdouble *op, npy_intp n, > PyArrayObject *(__NPY_UNUSED_TAGGEDaip) __attribute__ ((__unused__)), PyArrayObject *(__NPY_UNUSED_TAGGEDaop) __attribute__ ((__unused__))) >{ > while (n--) { > *op++ = (npy_longdouble)*ip++; > } >} ># 1253 "numpy/core/src/multiarray/arraytypes.c.src" >static void >DOUBLE_to_LONGDOUBLE(double *ip, npy_longdouble *op, npy_intp n, > PyArrayObject *(__NPY_UNUSED_TAGGEDaip) __attribute__ ((__unused__)), PyArrayObject *(__NPY_UNUSED_TAGGEDaop) __attribute__ ((__unused__))) >{ > while (n--) { > *op++ = (npy_longdouble)*ip++; > } >} ># 1253 "numpy/core/src/multiarray/arraytypes.c.src" >static void >LONGDOUBLE_to_LONGDOUBLE(npy_longdouble *ip, npy_longdouble *op, npy_intp n, > PyArrayObject *(__NPY_UNUSED_TAGGEDaip) __attribute__ ((__unused__)), PyArrayObject *(__NPY_UNUSED_TAGGEDaop) __attribute__ ((__unused__))) >{ > while (n--) { > *op++ = (npy_longdouble)*ip++; > } >} ># 1253 "numpy/core/src/multiarray/arraytypes.c.src" >static void >DATETIME_to_LONGDOUBLE(npy_datetime *ip, npy_longdouble *op, npy_intp n, > PyArrayObject *(__NPY_UNUSED_TAGGEDaip) __attribute__ ((__unused__)), PyArrayObject *(__NPY_UNUSED_TAGGEDaop) __attribute__ ((__unused__))) >{ > while (n--) { > *op++ = (npy_longdouble)*ip++; > } >} ># 1253 "numpy/core/src/multiarray/arraytypes.c.src" >static void >TIMEDELTA_to_LONGDOUBLE(npy_timedelta *ip, npy_longdouble *op, npy_intp n, > PyArrayObject *(__NPY_UNUSED_TAGGEDaip) __attribute__ ((__unused__)), PyArrayObject *(__NPY_UNUSED_TAGGEDaop) __attribute__ ((__unused__))) >{ > while (n--) { > *op++ = (npy_longdouble)*ip++; > } >} ># 1268 "numpy/core/src/multiarray/arraytypes.c.src" >static void >CFLOAT_to_LONGDOUBLE(float *ip, npy_longdouble *op, npy_intp n, > PyArrayObject *(__NPY_UNUSED_TAGGEDaip) __attribute__ ((__unused__)), PyArrayObject *(__NPY_UNUSED_TAGGEDaop) __attribute__ ((__unused__))) >{ > while (n--) { > *op++ = (npy_longdouble)*ip; > ip += 2; > } >} ># 1268 "numpy/core/src/multiarray/arraytypes.c.src" >static void >CDOUBLE_to_LONGDOUBLE(double *ip, npy_longdouble *op, npy_intp n, > PyArrayObject *(__NPY_UNUSED_TAGGEDaip) __attribute__ ((__unused__)), PyArrayObject *(__NPY_UNUSED_TAGGEDaop) __attribute__ ((__unused__))) >{ > while (n--) { > *op++ = (npy_longdouble)*ip; > ip += 2; > } >} ># 1268 "numpy/core/src/multiarray/arraytypes.c.src" >static void >CLONGDOUBLE_to_LONGDOUBLE(npy_longdouble *ip, npy_longdouble *op, npy_intp n, > PyArrayObject *(__NPY_UNUSED_TAGGEDaip) __attribute__ ((__unused__)), PyArrayObject *(__NPY_UNUSED_TAGGEDaop) __attribute__ ((__unused__))) >{ > while (n--) { > *op++ = (npy_longdouble)*ip; > ip += 2; > } >} ># 1243 "numpy/core/src/multiarray/arraytypes.c.src" ># 1253 "numpy/core/src/multiarray/arraytypes.c.src" >static void >BYTE_to_DATETIME(npy_byte *ip, npy_datetime *op, npy_intp n, > PyArrayObject *(__NPY_UNUSED_TAGGEDaip) __attribute__ ((__unused__)), PyArrayObject *(__NPY_UNUSED_TAGGEDaop) __attribute__ ((__unused__))) >{ > while (n--) { > *op++ = (npy_datetime)*ip++; > } >} ># 1253 "numpy/core/src/multiarray/arraytypes.c.src" >static void >UBYTE_to_DATETIME(npy_ubyte *ip, npy_datetime *op, npy_intp n, > PyArrayObject *(__NPY_UNUSED_TAGGEDaip) __attribute__ ((__unused__)), PyArrayObject *(__NPY_UNUSED_TAGGEDaop) __attribute__ ((__unused__))) >{ > while (n--) { > *op++ = (npy_datetime)*ip++; > } >} ># 1253 "numpy/core/src/multiarray/arraytypes.c.src" >static void >SHORT_to_DATETIME(short *ip, npy_datetime *op, npy_intp n, > PyArrayObject *(__NPY_UNUSED_TAGGEDaip) __attribute__ ((__unused__)), PyArrayObject *(__NPY_UNUSED_TAGGEDaop) __attribute__ ((__unused__))) >{ > while (n--) { > *op++ = (npy_datetime)*ip++; > } >} ># 1253 "numpy/core/src/multiarray/arraytypes.c.src" >static void >USHORT_to_DATETIME(npy_ushort *ip, npy_datetime *op, npy_intp n, > PyArrayObject *(__NPY_UNUSED_TAGGEDaip) __attribute__ ((__unused__)), PyArrayObject *(__NPY_UNUSED_TAGGEDaop) __attribute__ ((__unused__))) >{ > while (n--) { > *op++ = (npy_datetime)*ip++; > } >} ># 1253 "numpy/core/src/multiarray/arraytypes.c.src" >static void >INT_to_DATETIME(int *ip, npy_datetime *op, npy_intp n, > PyArrayObject *(__NPY_UNUSED_TAGGEDaip) __attribute__ ((__unused__)), PyArrayObject *(__NPY_UNUSED_TAGGEDaop) __attribute__ ((__unused__))) >{ > while (n--) { > *op++ = (npy_datetime)*ip++; > } >} ># 1253 "numpy/core/src/multiarray/arraytypes.c.src" >static void >UINT_to_DATETIME(npy_uint *ip, npy_datetime *op, npy_intp n, > PyArrayObject *(__NPY_UNUSED_TAGGEDaip) __attribute__ ((__unused__)), PyArrayObject *(__NPY_UNUSED_TAGGEDaop) __attribute__ ((__unused__))) >{ > while (n--) { > *op++ = (npy_datetime)*ip++; > } >} ># 1253 "numpy/core/src/multiarray/arraytypes.c.src" >static void >LONG_to_DATETIME(long *ip, npy_datetime *op, npy_intp n, > PyArrayObject *(__NPY_UNUSED_TAGGEDaip) __attribute__ ((__unused__)), PyArrayObject *(__NPY_UNUSED_TAGGEDaop) __attribute__ ((__unused__))) >{ > while (n--) { > *op++ = (npy_datetime)*ip++; > } >} ># 1253 "numpy/core/src/multiarray/arraytypes.c.src" >static void >ULONG_to_DATETIME(npy_ulong *ip, npy_datetime *op, npy_intp n, > PyArrayObject *(__NPY_UNUSED_TAGGEDaip) __attribute__ ((__unused__)), PyArrayObject *(__NPY_UNUSED_TAGGEDaop) __attribute__ ((__unused__))) >{ > while (n--) { > *op++ = (npy_datetime)*ip++; > } >} ># 1253 "numpy/core/src/multiarray/arraytypes.c.src" >static void >LONGLONG_to_DATETIME(npy_longlong *ip, npy_datetime *op, npy_intp n, > PyArrayObject *(__NPY_UNUSED_TAGGEDaip) __attribute__ ((__unused__)), PyArrayObject *(__NPY_UNUSED_TAGGEDaop) __attribute__ ((__unused__))) >{ > while (n--) { > *op++ = (npy_datetime)*ip++; > } >} ># 1253 "numpy/core/src/multiarray/arraytypes.c.src" >static void >ULONGLONG_to_DATETIME(npy_ulonglong *ip, npy_datetime *op, npy_intp n, > PyArrayObject *(__NPY_UNUSED_TAGGEDaip) __attribute__ ((__unused__)), PyArrayObject *(__NPY_UNUSED_TAGGEDaop) __attribute__ ((__unused__))) >{ > while (n--) { > *op++ = (npy_datetime)*ip++; > } >} ># 1253 "numpy/core/src/multiarray/arraytypes.c.src" >static void >FLOAT_to_DATETIME(float *ip, npy_datetime *op, npy_intp n, > PyArrayObject *(__NPY_UNUSED_TAGGEDaip) __attribute__ ((__unused__)), PyArrayObject *(__NPY_UNUSED_TAGGEDaop) __attribute__ ((__unused__))) >{ > while (n--) { > *op++ = (npy_datetime)*ip++; > } >} ># 1253 "numpy/core/src/multiarray/arraytypes.c.src" >static void >DOUBLE_to_DATETIME(double *ip, npy_datetime *op, npy_intp n, > PyArrayObject *(__NPY_UNUSED_TAGGEDaip) __attribute__ ((__unused__)), PyArrayObject *(__NPY_UNUSED_TAGGEDaop) __attribute__ ((__unused__))) >{ > while (n--) { > *op++ = (npy_datetime)*ip++; > } >} ># 1253 "numpy/core/src/multiarray/arraytypes.c.src" >static void >LONGDOUBLE_to_DATETIME(npy_longdouble *ip, npy_datetime *op, npy_intp n, > PyArrayObject *(__NPY_UNUSED_TAGGEDaip) __attribute__ ((__unused__)), PyArrayObject *(__NPY_UNUSED_TAGGEDaop) __attribute__ ((__unused__))) >{ > while (n--) { > *op++ = (npy_datetime)*ip++; > } >} ># 1253 "numpy/core/src/multiarray/arraytypes.c.src" >static void >DATETIME_to_DATETIME(npy_datetime *ip, npy_datetime *op, npy_intp n, > PyArrayObject *(__NPY_UNUSED_TAGGEDaip) __attribute__ ((__unused__)), PyArrayObject *(__NPY_UNUSED_TAGGEDaop) __attribute__ ((__unused__))) >{ > while (n--) { > *op++ = (npy_datetime)*ip++; > } >} ># 1253 "numpy/core/src/multiarray/arraytypes.c.src" >static void >TIMEDELTA_to_DATETIME(npy_timedelta *ip, npy_datetime *op, npy_intp n, > PyArrayObject *(__NPY_UNUSED_TAGGEDaip) __attribute__ ((__unused__)), PyArrayObject *(__NPY_UNUSED_TAGGEDaop) __attribute__ ((__unused__))) >{ > while (n--) { > *op++ = (npy_datetime)*ip++; > } >} ># 1268 "numpy/core/src/multiarray/arraytypes.c.src" >static void >CFLOAT_to_DATETIME(float *ip, npy_datetime *op, npy_intp n, > PyArrayObject *(__NPY_UNUSED_TAGGEDaip) __attribute__ ((__unused__)), PyArrayObject *(__NPY_UNUSED_TAGGEDaop) __attribute__ ((__unused__))) >{ > while (n--) { > *op++ = (npy_datetime)*ip; > ip += 2; > } >} ># 1268 "numpy/core/src/multiarray/arraytypes.c.src" >static void >CDOUBLE_to_DATETIME(double *ip, npy_datetime *op, npy_intp n, > PyArrayObject *(__NPY_UNUSED_TAGGEDaip) __attribute__ ((__unused__)), PyArrayObject *(__NPY_UNUSED_TAGGEDaop) __attribute__ ((__unused__))) >{ > while (n--) { > *op++ = (npy_datetime)*ip; > ip += 2; > } >} ># 1268 "numpy/core/src/multiarray/arraytypes.c.src" >static void >CLONGDOUBLE_to_DATETIME(npy_longdouble *ip, npy_datetime *op, npy_intp n, > PyArrayObject *(__NPY_UNUSED_TAGGEDaip) __attribute__ ((__unused__)), PyArrayObject *(__NPY_UNUSED_TAGGEDaop) __attribute__ ((__unused__))) >{ > while (n--) { > *op++ = (npy_datetime)*ip; > ip += 2; > } >} ># 1243 "numpy/core/src/multiarray/arraytypes.c.src" ># 1253 "numpy/core/src/multiarray/arraytypes.c.src" >static void >BYTE_to_TIMEDELTA(npy_byte *ip, npy_timedelta *op, npy_intp n, > PyArrayObject *(__NPY_UNUSED_TAGGEDaip) __attribute__ ((__unused__)), PyArrayObject *(__NPY_UNUSED_TAGGEDaop) __attribute__ ((__unused__))) >{ > while (n--) { > *op++ = (npy_timedelta)*ip++; > } >} ># 1253 "numpy/core/src/multiarray/arraytypes.c.src" >static void >UBYTE_to_TIMEDELTA(npy_ubyte *ip, npy_timedelta *op, npy_intp n, > PyArrayObject *(__NPY_UNUSED_TAGGEDaip) __attribute__ ((__unused__)), PyArrayObject *(__NPY_UNUSED_TAGGEDaop) __attribute__ ((__unused__))) >{ > while (n--) { > *op++ = (npy_timedelta)*ip++; > } >} ># 1253 "numpy/core/src/multiarray/arraytypes.c.src" >static void >SHORT_to_TIMEDELTA(short *ip, npy_timedelta *op, npy_intp n, > PyArrayObject *(__NPY_UNUSED_TAGGEDaip) __attribute__ ((__unused__)), PyArrayObject *(__NPY_UNUSED_TAGGEDaop) __attribute__ ((__unused__))) >{ > while (n--) { > *op++ = (npy_timedelta)*ip++; > } >} ># 1253 "numpy/core/src/multiarray/arraytypes.c.src" >static void >USHORT_to_TIMEDELTA(npy_ushort *ip, npy_timedelta *op, npy_intp n, > PyArrayObject *(__NPY_UNUSED_TAGGEDaip) __attribute__ ((__unused__)), PyArrayObject *(__NPY_UNUSED_TAGGEDaop) __attribute__ ((__unused__))) >{ > while (n--) { > *op++ = (npy_timedelta)*ip++; > } >} ># 1253 "numpy/core/src/multiarray/arraytypes.c.src" >static void >INT_to_TIMEDELTA(int *ip, npy_timedelta *op, npy_intp n, > PyArrayObject *(__NPY_UNUSED_TAGGEDaip) __attribute__ ((__unused__)), PyArrayObject *(__NPY_UNUSED_TAGGEDaop) __attribute__ ((__unused__))) >{ > while (n--) { > *op++ = (npy_timedelta)*ip++; > } >} ># 1253 "numpy/core/src/multiarray/arraytypes.c.src" >static void >UINT_to_TIMEDELTA(npy_uint *ip, npy_timedelta *op, npy_intp n, > PyArrayObject *(__NPY_UNUSED_TAGGEDaip) __attribute__ ((__unused__)), PyArrayObject *(__NPY_UNUSED_TAGGEDaop) __attribute__ ((__unused__))) >{ > while (n--) { > *op++ = (npy_timedelta)*ip++; > } >} ># 1253 "numpy/core/src/multiarray/arraytypes.c.src" >static void >LONG_to_TIMEDELTA(long *ip, npy_timedelta *op, npy_intp n, > PyArrayObject *(__NPY_UNUSED_TAGGEDaip) __attribute__ ((__unused__)), PyArrayObject *(__NPY_UNUSED_TAGGEDaop) __attribute__ ((__unused__))) >{ > while (n--) { > *op++ = (npy_timedelta)*ip++; > } >} ># 1253 "numpy/core/src/multiarray/arraytypes.c.src" >static void >ULONG_to_TIMEDELTA(npy_ulong *ip, npy_timedelta *op, npy_intp n, > PyArrayObject *(__NPY_UNUSED_TAGGEDaip) __attribute__ ((__unused__)), PyArrayObject *(__NPY_UNUSED_TAGGEDaop) __attribute__ ((__unused__))) >{ > while (n--) { > *op++ = (npy_timedelta)*ip++; > } >} ># 1253 "numpy/core/src/multiarray/arraytypes.c.src" >static void >LONGLONG_to_TIMEDELTA(npy_longlong *ip, npy_timedelta *op, npy_intp n, > PyArrayObject *(__NPY_UNUSED_TAGGEDaip) __attribute__ ((__unused__)), PyArrayObject *(__NPY_UNUSED_TAGGEDaop) __attribute__ ((__unused__))) >{ > while (n--) { > *op++ = (npy_timedelta)*ip++; > } >} ># 1253 "numpy/core/src/multiarray/arraytypes.c.src" >static void >ULONGLONG_to_TIMEDELTA(npy_ulonglong *ip, npy_timedelta *op, npy_intp n, > PyArrayObject *(__NPY_UNUSED_TAGGEDaip) __attribute__ ((__unused__)), PyArrayObject *(__NPY_UNUSED_TAGGEDaop) __attribute__ ((__unused__))) >{ > while (n--) { > *op++ = (npy_timedelta)*ip++; > } >} ># 1253 "numpy/core/src/multiarray/arraytypes.c.src" >static void >FLOAT_to_TIMEDELTA(float *ip, npy_timedelta *op, npy_intp n, > PyArrayObject *(__NPY_UNUSED_TAGGEDaip) __attribute__ ((__unused__)), PyArrayObject *(__NPY_UNUSED_TAGGEDaop) __attribute__ ((__unused__))) >{ > while (n--) { > *op++ = (npy_timedelta)*ip++; > } >} ># 1253 "numpy/core/src/multiarray/arraytypes.c.src" >static void >DOUBLE_to_TIMEDELTA(double *ip, npy_timedelta *op, npy_intp n, > PyArrayObject *(__NPY_UNUSED_TAGGEDaip) __attribute__ ((__unused__)), PyArrayObject *(__NPY_UNUSED_TAGGEDaop) __attribute__ ((__unused__))) >{ > while (n--) { > *op++ = (npy_timedelta)*ip++; > } >} ># 1253 "numpy/core/src/multiarray/arraytypes.c.src" >static void >LONGDOUBLE_to_TIMEDELTA(npy_longdouble *ip, npy_timedelta *op, npy_intp n, > PyArrayObject *(__NPY_UNUSED_TAGGEDaip) __attribute__ ((__unused__)), PyArrayObject *(__NPY_UNUSED_TAGGEDaop) __attribute__ ((__unused__))) >{ > while (n--) { > *op++ = (npy_timedelta)*ip++; > } >} ># 1253 "numpy/core/src/multiarray/arraytypes.c.src" >static void >DATETIME_to_TIMEDELTA(npy_datetime *ip, npy_timedelta *op, npy_intp n, > PyArrayObject *(__NPY_UNUSED_TAGGEDaip) __attribute__ ((__unused__)), PyArrayObject *(__NPY_UNUSED_TAGGEDaop) __attribute__ ((__unused__))) >{ > while (n--) { > *op++ = (npy_timedelta)*ip++; > } >} ># 1253 "numpy/core/src/multiarray/arraytypes.c.src" >static void >TIMEDELTA_to_TIMEDELTA(npy_timedelta *ip, npy_timedelta *op, npy_intp n, > PyArrayObject *(__NPY_UNUSED_TAGGEDaip) __attribute__ ((__unused__)), PyArrayObject *(__NPY_UNUSED_TAGGEDaop) __attribute__ ((__unused__))) >{ > while (n--) { > *op++ = (npy_timedelta)*ip++; > } >} ># 1268 "numpy/core/src/multiarray/arraytypes.c.src" >static void >CFLOAT_to_TIMEDELTA(float *ip, npy_timedelta *op, npy_intp n, > PyArrayObject *(__NPY_UNUSED_TAGGEDaip) __attribute__ ((__unused__)), PyArrayObject *(__NPY_UNUSED_TAGGEDaop) __attribute__ ((__unused__))) >{ > while (n--) { > *op++ = (npy_timedelta)*ip; > ip += 2; > } >} ># 1268 "numpy/core/src/multiarray/arraytypes.c.src" >static void >CDOUBLE_to_TIMEDELTA(double *ip, npy_timedelta *op, npy_intp n, > PyArrayObject *(__NPY_UNUSED_TAGGEDaip) __attribute__ ((__unused__)), PyArrayObject *(__NPY_UNUSED_TAGGEDaop) __attribute__ ((__unused__))) >{ > while (n--) { > *op++ = (npy_timedelta)*ip; > ip += 2; > } >} ># 1268 "numpy/core/src/multiarray/arraytypes.c.src" >static void >CLONGDOUBLE_to_TIMEDELTA(npy_longdouble *ip, npy_timedelta *op, npy_intp n, > PyArrayObject *(__NPY_UNUSED_TAGGEDaip) __attribute__ ((__unused__)), PyArrayObject *(__NPY_UNUSED_TAGGEDaop) __attribute__ ((__unused__))) >{ > while (n--) { > *op++ = (npy_timedelta)*ip; > ip += 2; > } >} ># 1291 "numpy/core/src/multiarray/arraytypes.c.src" > >static void >BYTE_to_HALF(npy_byte *ip, npy_half *op, npy_intp n, > PyArrayObject *(__NPY_UNUSED_TAGGEDaip) __attribute__ ((__unused__)), PyArrayObject *(__NPY_UNUSED_TAGGEDaop) __attribute__ ((__unused__))) >{ > while (n--) { > *op++ = npy_float_to_half((float)(*ip++)); > } >} > >static void >HALF_to_BYTE(npy_half *ip, npy_byte *op, npy_intp n, > PyArrayObject *(__NPY_UNUSED_TAGGEDaip) __attribute__ ((__unused__)), PyArrayObject *(__NPY_UNUSED_TAGGEDaop) __attribute__ ((__unused__))) >{ > while (n--) { > *op++ = (npy_byte)npy_half_to_float(*ip++); > } >} ># 1291 "numpy/core/src/multiarray/arraytypes.c.src" > >static void >UBYTE_to_HALF(npy_ubyte *ip, npy_half *op, npy_intp n, > PyArrayObject *(__NPY_UNUSED_TAGGEDaip) __attribute__ ((__unused__)), PyArrayObject *(__NPY_UNUSED_TAGGEDaop) __attribute__ ((__unused__))) >{ > while (n--) { > *op++ = npy_float_to_half((float)(*ip++)); > } >} > >static void >HALF_to_UBYTE(npy_half *ip, npy_ubyte *op, npy_intp n, > PyArrayObject *(__NPY_UNUSED_TAGGEDaip) __attribute__ ((__unused__)), PyArrayObject *(__NPY_UNUSED_TAGGEDaop) __attribute__ ((__unused__))) >{ > while (n--) { > *op++ = (npy_ubyte)npy_half_to_float(*ip++); > } >} ># 1291 "numpy/core/src/multiarray/arraytypes.c.src" > >static void >SHORT_to_HALF(short *ip, npy_half *op, npy_intp n, > PyArrayObject *(__NPY_UNUSED_TAGGEDaip) __attribute__ ((__unused__)), PyArrayObject *(__NPY_UNUSED_TAGGEDaop) __attribute__ ((__unused__))) >{ > while (n--) { > *op++ = npy_float_to_half((float)(*ip++)); > } >} > >static void >HALF_to_SHORT(npy_half *ip, short *op, npy_intp n, > PyArrayObject *(__NPY_UNUSED_TAGGEDaip) __attribute__ ((__unused__)), PyArrayObject *(__NPY_UNUSED_TAGGEDaop) __attribute__ ((__unused__))) >{ > while (n--) { > *op++ = (short)npy_half_to_float(*ip++); > } >} ># 1291 "numpy/core/src/multiarray/arraytypes.c.src" > >static void >USHORT_to_HALF(npy_ushort *ip, npy_half *op, npy_intp n, > PyArrayObject *(__NPY_UNUSED_TAGGEDaip) __attribute__ ((__unused__)), PyArrayObject *(__NPY_UNUSED_TAGGEDaop) __attribute__ ((__unused__))) >{ > while (n--) { > *op++ = npy_float_to_half((float)(*ip++)); > } >} > >static void >HALF_to_USHORT(npy_half *ip, npy_ushort *op, npy_intp n, > PyArrayObject *(__NPY_UNUSED_TAGGEDaip) __attribute__ ((__unused__)), PyArrayObject *(__NPY_UNUSED_TAGGEDaop) __attribute__ ((__unused__))) >{ > while (n--) { > *op++ = (npy_ushort)npy_half_to_float(*ip++); > } >} ># 1291 "numpy/core/src/multiarray/arraytypes.c.src" > >static void >INT_to_HALF(int *ip, npy_half *op, npy_intp n, > PyArrayObject *(__NPY_UNUSED_TAGGEDaip) __attribute__ ((__unused__)), PyArrayObject *(__NPY_UNUSED_TAGGEDaop) __attribute__ ((__unused__))) >{ > while (n--) { > *op++ = npy_float_to_half((float)(*ip++)); > } >} > >static void >HALF_to_INT(npy_half *ip, int *op, npy_intp n, > PyArrayObject *(__NPY_UNUSED_TAGGEDaip) __attribute__ ((__unused__)), PyArrayObject *(__NPY_UNUSED_TAGGEDaop) __attribute__ ((__unused__))) >{ > while (n--) { > *op++ = (int)npy_half_to_float(*ip++); > } >} ># 1291 "numpy/core/src/multiarray/arraytypes.c.src" > >static void >UINT_to_HALF(npy_uint *ip, npy_half *op, npy_intp n, > PyArrayObject *(__NPY_UNUSED_TAGGEDaip) __attribute__ ((__unused__)), PyArrayObject *(__NPY_UNUSED_TAGGEDaop) __attribute__ ((__unused__))) >{ > while (n--) { > *op++ = npy_float_to_half((float)(*ip++)); > } >} > >static void >HALF_to_UINT(npy_half *ip, npy_uint *op, npy_intp n, > PyArrayObject *(__NPY_UNUSED_TAGGEDaip) __attribute__ ((__unused__)), PyArrayObject *(__NPY_UNUSED_TAGGEDaop) __attribute__ ((__unused__))) >{ > while (n--) { > *op++ = (npy_uint)npy_half_to_float(*ip++); > } >} ># 1291 "numpy/core/src/multiarray/arraytypes.c.src" > >static void >LONG_to_HALF(long *ip, npy_half *op, npy_intp n, > PyArrayObject *(__NPY_UNUSED_TAGGEDaip) __attribute__ ((__unused__)), PyArrayObject *(__NPY_UNUSED_TAGGEDaop) __attribute__ ((__unused__))) >{ > while (n--) { > *op++ = npy_float_to_half((float)(*ip++)); > } >} > >static void >HALF_to_LONG(npy_half *ip, long *op, npy_intp n, > PyArrayObject *(__NPY_UNUSED_TAGGEDaip) __attribute__ ((__unused__)), PyArrayObject *(__NPY_UNUSED_TAGGEDaop) __attribute__ ((__unused__))) >{ > while (n--) { > *op++ = (long)npy_half_to_float(*ip++); > } >} ># 1291 "numpy/core/src/multiarray/arraytypes.c.src" > >static void >ULONG_to_HALF(npy_ulong *ip, npy_half *op, npy_intp n, > PyArrayObject *(__NPY_UNUSED_TAGGEDaip) __attribute__ ((__unused__)), PyArrayObject *(__NPY_UNUSED_TAGGEDaop) __attribute__ ((__unused__))) >{ > while (n--) { > *op++ = npy_float_to_half((float)(*ip++)); > } >} > >static void >HALF_to_ULONG(npy_half *ip, npy_ulong *op, npy_intp n, > PyArrayObject *(__NPY_UNUSED_TAGGEDaip) __attribute__ ((__unused__)), PyArrayObject *(__NPY_UNUSED_TAGGEDaop) __attribute__ ((__unused__))) >{ > while (n--) { > *op++ = (npy_ulong)npy_half_to_float(*ip++); > } >} ># 1291 "numpy/core/src/multiarray/arraytypes.c.src" > >static void >LONGLONG_to_HALF(npy_longlong *ip, npy_half *op, npy_intp n, > PyArrayObject *(__NPY_UNUSED_TAGGEDaip) __attribute__ ((__unused__)), PyArrayObject *(__NPY_UNUSED_TAGGEDaop) __attribute__ ((__unused__))) >{ > while (n--) { > *op++ = npy_float_to_half((float)(*ip++)); > } >} > >static void >HALF_to_LONGLONG(npy_half *ip, npy_longlong *op, npy_intp n, > PyArrayObject *(__NPY_UNUSED_TAGGEDaip) __attribute__ ((__unused__)), PyArrayObject *(__NPY_UNUSED_TAGGEDaop) __attribute__ ((__unused__))) >{ > while (n--) { > *op++ = (npy_longlong)npy_half_to_float(*ip++); > } >} ># 1291 "numpy/core/src/multiarray/arraytypes.c.src" > >static void >ULONGLONG_to_HALF(npy_ulonglong *ip, npy_half *op, npy_intp n, > PyArrayObject *(__NPY_UNUSED_TAGGEDaip) __attribute__ ((__unused__)), PyArrayObject *(__NPY_UNUSED_TAGGEDaop) __attribute__ ((__unused__))) >{ > while (n--) { > *op++ = npy_float_to_half((float)(*ip++)); > } >} > >static void >HALF_to_ULONGLONG(npy_half *ip, npy_ulonglong *op, npy_intp n, > PyArrayObject *(__NPY_UNUSED_TAGGEDaip) __attribute__ ((__unused__)), PyArrayObject *(__NPY_UNUSED_TAGGEDaop) __attribute__ ((__unused__))) >{ > while (n--) { > *op++ = (npy_ulonglong)npy_half_to_float(*ip++); > } >} ># 1291 "numpy/core/src/multiarray/arraytypes.c.src" > >static void >LONGDOUBLE_to_HALF(npy_longdouble *ip, npy_half *op, npy_intp n, > PyArrayObject *(__NPY_UNUSED_TAGGEDaip) __attribute__ ((__unused__)), PyArrayObject *(__NPY_UNUSED_TAGGEDaop) __attribute__ ((__unused__))) >{ > while (n--) { > *op++ = npy_float_to_half((float)(*ip++)); > } >} > >static void >HALF_to_LONGDOUBLE(npy_half *ip, npy_longdouble *op, npy_intp n, > PyArrayObject *(__NPY_UNUSED_TAGGEDaip) __attribute__ ((__unused__)), PyArrayObject *(__NPY_UNUSED_TAGGEDaop) __attribute__ ((__unused__))) >{ > while (n--) { > *op++ = (npy_longdouble)npy_half_to_float(*ip++); > } >} ># 1291 "numpy/core/src/multiarray/arraytypes.c.src" > >static void >DATETIME_to_HALF(npy_datetime *ip, npy_half *op, npy_intp n, > PyArrayObject *(__NPY_UNUSED_TAGGEDaip) __attribute__ ((__unused__)), PyArrayObject *(__NPY_UNUSED_TAGGEDaop) __attribute__ ((__unused__))) >{ > while (n--) { > *op++ = npy_float_to_half((float)(*ip++)); > } >} > >static void >HALF_to_DATETIME(npy_half *ip, npy_datetime *op, npy_intp n, > PyArrayObject *(__NPY_UNUSED_TAGGEDaip) __attribute__ ((__unused__)), PyArrayObject *(__NPY_UNUSED_TAGGEDaop) __attribute__ ((__unused__))) >{ > while (n--) { > *op++ = (npy_datetime)npy_half_to_float(*ip++); > } >} ># 1291 "numpy/core/src/multiarray/arraytypes.c.src" > >static void >TIMEDELTA_to_HALF(npy_timedelta *ip, npy_half *op, npy_intp n, > PyArrayObject *(__NPY_UNUSED_TAGGEDaip) __attribute__ ((__unused__)), PyArrayObject *(__NPY_UNUSED_TAGGEDaop) __attribute__ ((__unused__))) >{ > while (n--) { > *op++ = npy_float_to_half((float)(*ip++)); > } >} > >static void >HALF_to_TIMEDELTA(npy_half *ip, npy_timedelta *op, npy_intp n, > PyArrayObject *(__NPY_UNUSED_TAGGEDaip) __attribute__ ((__unused__)), PyArrayObject *(__NPY_UNUSED_TAGGEDaop) __attribute__ ((__unused__))) >{ > while (n--) { > *op++ = (npy_timedelta)npy_half_to_float(*ip++); > } >} ># 1324 "numpy/core/src/multiarray/arraytypes.c.src" > >static void >FLOAT_to_HALF(npy_uint32 *ip, npy_half *op, npy_intp n, > PyArrayObject *(__NPY_UNUSED_TAGGEDaip) __attribute__ ((__unused__)), PyArrayObject *(__NPY_UNUSED_TAGGEDaop) __attribute__ ((__unused__))) >{ > while (n--) { > *op++ = npy_floatbits_to_halfbits(*ip); > > > > ip++; > > } >} > >static void >HALF_to_FLOAT(npy_half *ip, npy_uint32 *op, npy_intp n, > PyArrayObject *(__NPY_UNUSED_TAGGEDaip) __attribute__ ((__unused__)), PyArrayObject *(__NPY_UNUSED_TAGGEDaop) __attribute__ ((__unused__))) >{ > while (n--) { > *op++ = npy_halfbits_to_floatbits(*ip++); > > > > } >} ># 1324 "numpy/core/src/multiarray/arraytypes.c.src" > >static void >DOUBLE_to_HALF(npy_uint64 *ip, npy_half *op, npy_intp n, > PyArrayObject *(__NPY_UNUSED_TAGGEDaip) __attribute__ ((__unused__)), PyArrayObject *(__NPY_UNUSED_TAGGEDaop) __attribute__ ((__unused__))) >{ > while (n--) { > *op++ = npy_doublebits_to_halfbits(*ip); > > > > ip++; > > } >} > >static void >HALF_to_DOUBLE(npy_half *ip, npy_uint64 *op, npy_intp n, > PyArrayObject *(__NPY_UNUSED_TAGGEDaip) __attribute__ ((__unused__)), PyArrayObject *(__NPY_UNUSED_TAGGEDaop) __attribute__ ((__unused__))) >{ > while (n--) { > *op++ = npy_halfbits_to_doublebits(*ip++); > > > > } >} ># 1324 "numpy/core/src/multiarray/arraytypes.c.src" > >static void >CFLOAT_to_HALF(npy_uint32 *ip, npy_half *op, npy_intp n, > PyArrayObject *(__NPY_UNUSED_TAGGEDaip) __attribute__ ((__unused__)), PyArrayObject *(__NPY_UNUSED_TAGGEDaop) __attribute__ ((__unused__))) >{ > while (n--) { > *op++ = npy_floatbits_to_halfbits(*ip); > > ip += 2; > > > > } >} > >static void >HALF_to_CFLOAT(npy_half *ip, npy_uint32 *op, npy_intp n, > PyArrayObject *(__NPY_UNUSED_TAGGEDaip) __attribute__ ((__unused__)), PyArrayObject *(__NPY_UNUSED_TAGGEDaop) __attribute__ ((__unused__))) >{ > while (n--) { > *op++ = npy_halfbits_to_floatbits(*ip++); > > *op++ = 0; > > } >} ># 1324 "numpy/core/src/multiarray/arraytypes.c.src" > >static void >CDOUBLE_to_HALF(npy_uint64 *ip, npy_half *op, npy_intp n, > PyArrayObject *(__NPY_UNUSED_TAGGEDaip) __attribute__ ((__unused__)), PyArrayObject *(__NPY_UNUSED_TAGGEDaop) __attribute__ ((__unused__))) >{ > while (n--) { > *op++ = npy_doublebits_to_halfbits(*ip); > > ip += 2; > > > > } >} > >static void >HALF_to_CDOUBLE(npy_half *ip, npy_uint64 *op, npy_intp n, > PyArrayObject *(__NPY_UNUSED_TAGGEDaip) __attribute__ ((__unused__)), PyArrayObject *(__NPY_UNUSED_TAGGEDaop) __attribute__ ((__unused__))) >{ > while (n--) { > *op++ = npy_halfbits_to_doublebits(*ip++); > > *op++ = 0; > > } >} > > > >static void >CLONGDOUBLE_to_HALF(npy_longdouble *ip, npy_half *op, npy_intp n, > PyArrayObject *(__NPY_UNUSED_TAGGEDaip) __attribute__ ((__unused__)), PyArrayObject *(__NPY_UNUSED_TAGGEDaop) __attribute__ ((__unused__))) >{ > while (n--) { > *op++ = npy_double_to_half((double) (*ip++)); > ip += 2; > } >} > >static void >HALF_to_CLONGDOUBLE(npy_half *ip, npy_longdouble *op, npy_intp n, > PyArrayObject *(__NPY_UNUSED_TAGGEDaip) __attribute__ ((__unused__)), PyArrayObject *(__NPY_UNUSED_TAGGEDaop) __attribute__ ((__unused__))) >{ > while (n--) { > *op++ = npy_half_to_double(*ip++); > *op++ = 0; > } >} ># 1382 "numpy/core/src/multiarray/arraytypes.c.src" >static void >BOOL_to_BOOL(npy_bool *ip, npy_bool *op, npy_intp n, > PyArrayObject *(__NPY_UNUSED_TAGGEDaip) __attribute__ ((__unused__)), PyArrayObject *(__NPY_UNUSED_TAGGEDaop) __attribute__ ((__unused__))) >{ > while (n--) { > *op++ = (npy_bool)(*ip++ != 0); > } >} ># 1382 "numpy/core/src/multiarray/arraytypes.c.src" >static void >BYTE_to_BOOL(npy_byte *ip, npy_bool *op, npy_intp n, > PyArrayObject *(__NPY_UNUSED_TAGGEDaip) __attribute__ ((__unused__)), PyArrayObject *(__NPY_UNUSED_TAGGEDaop) __attribute__ ((__unused__))) >{ > while (n--) { > *op++ = (npy_bool)(*ip++ != 0); > } >} ># 1382 "numpy/core/src/multiarray/arraytypes.c.src" >static void >UBYTE_to_BOOL(npy_ubyte *ip, npy_bool *op, npy_intp n, > PyArrayObject *(__NPY_UNUSED_TAGGEDaip) __attribute__ ((__unused__)), PyArrayObject *(__NPY_UNUSED_TAGGEDaop) __attribute__ ((__unused__))) >{ > while (n--) { > *op++ = (npy_bool)(*ip++ != 0); > } >} ># 1382 "numpy/core/src/multiarray/arraytypes.c.src" >static void >SHORT_to_BOOL(short *ip, npy_bool *op, npy_intp n, > PyArrayObject *(__NPY_UNUSED_TAGGEDaip) __attribute__ ((__unused__)), PyArrayObject *(__NPY_UNUSED_TAGGEDaop) __attribute__ ((__unused__))) >{ > while (n--) { > *op++ = (npy_bool)(*ip++ != 0); > } >} ># 1382 "numpy/core/src/multiarray/arraytypes.c.src" >static void >USHORT_to_BOOL(npy_ushort *ip, npy_bool *op, npy_intp n, > PyArrayObject *(__NPY_UNUSED_TAGGEDaip) __attribute__ ((__unused__)), PyArrayObject *(__NPY_UNUSED_TAGGEDaop) __attribute__ ((__unused__))) >{ > while (n--) { > *op++ = (npy_bool)(*ip++ != 0); > } >} ># 1382 "numpy/core/src/multiarray/arraytypes.c.src" >static void >INT_to_BOOL(int *ip, npy_bool *op, npy_intp n, > PyArrayObject *(__NPY_UNUSED_TAGGEDaip) __attribute__ ((__unused__)), PyArrayObject *(__NPY_UNUSED_TAGGEDaop) __attribute__ ((__unused__))) >{ > while (n--) { > *op++ = (npy_bool)(*ip++ != 0); > } >} ># 1382 "numpy/core/src/multiarray/arraytypes.c.src" >static void >UINT_to_BOOL(npy_uint *ip, npy_bool *op, npy_intp n, > PyArrayObject *(__NPY_UNUSED_TAGGEDaip) __attribute__ ((__unused__)), PyArrayObject *(__NPY_UNUSED_TAGGEDaop) __attribute__ ((__unused__))) >{ > while (n--) { > *op++ = (npy_bool)(*ip++ != 0); > } >} ># 1382 "numpy/core/src/multiarray/arraytypes.c.src" >static void >LONG_to_BOOL(long *ip, npy_bool *op, npy_intp n, > PyArrayObject *(__NPY_UNUSED_TAGGEDaip) __attribute__ ((__unused__)), PyArrayObject *(__NPY_UNUSED_TAGGEDaop) __attribute__ ((__unused__))) >{ > while (n--) { > *op++ = (npy_bool)(*ip++ != 0); > } >} ># 1382 "numpy/core/src/multiarray/arraytypes.c.src" >static void >ULONG_to_BOOL(npy_ulong *ip, npy_bool *op, npy_intp n, > PyArrayObject *(__NPY_UNUSED_TAGGEDaip) __attribute__ ((__unused__)), PyArrayObject *(__NPY_UNUSED_TAGGEDaop) __attribute__ ((__unused__))) >{ > while (n--) { > *op++ = (npy_bool)(*ip++ != 0); > } >} ># 1382 "numpy/core/src/multiarray/arraytypes.c.src" >static void >LONGLONG_to_BOOL(npy_longlong *ip, npy_bool *op, npy_intp n, > PyArrayObject *(__NPY_UNUSED_TAGGEDaip) __attribute__ ((__unused__)), PyArrayObject *(__NPY_UNUSED_TAGGEDaop) __attribute__ ((__unused__))) >{ > while (n--) { > *op++ = (npy_bool)(*ip++ != 0); > } >} ># 1382 "numpy/core/src/multiarray/arraytypes.c.src" >static void >ULONGLONG_to_BOOL(npy_ulonglong *ip, npy_bool *op, npy_intp n, > PyArrayObject *(__NPY_UNUSED_TAGGEDaip) __attribute__ ((__unused__)), PyArrayObject *(__NPY_UNUSED_TAGGEDaop) __attribute__ ((__unused__))) >{ > while (n--) { > *op++ = (npy_bool)(*ip++ != 0); > } >} ># 1382 "numpy/core/src/multiarray/arraytypes.c.src" >static void >FLOAT_to_BOOL(float *ip, npy_bool *op, npy_intp n, > PyArrayObject *(__NPY_UNUSED_TAGGEDaip) __attribute__ ((__unused__)), PyArrayObject *(__NPY_UNUSED_TAGGEDaop) __attribute__ ((__unused__))) >{ > while (n--) { > *op++ = (npy_bool)(*ip++ != 0); > } >} ># 1382 "numpy/core/src/multiarray/arraytypes.c.src" >static void >DOUBLE_to_BOOL(double *ip, npy_bool *op, npy_intp n, > PyArrayObject *(__NPY_UNUSED_TAGGEDaip) __attribute__ ((__unused__)), PyArrayObject *(__NPY_UNUSED_TAGGEDaop) __attribute__ ((__unused__))) >{ > while (n--) { > *op++ = (npy_bool)(*ip++ != 0); > } >} ># 1382 "numpy/core/src/multiarray/arraytypes.c.src" >static void >LONGDOUBLE_to_BOOL(npy_longdouble *ip, npy_bool *op, npy_intp n, > PyArrayObject *(__NPY_UNUSED_TAGGEDaip) __attribute__ ((__unused__)), PyArrayObject *(__NPY_UNUSED_TAGGEDaop) __attribute__ ((__unused__))) >{ > while (n--) { > *op++ = (npy_bool)(*ip++ != 0); > } >} ># 1382 "numpy/core/src/multiarray/arraytypes.c.src" >static void >DATETIME_to_BOOL(npy_datetime *ip, npy_bool *op, npy_intp n, > PyArrayObject *(__NPY_UNUSED_TAGGEDaip) __attribute__ ((__unused__)), PyArrayObject *(__NPY_UNUSED_TAGGEDaop) __attribute__ ((__unused__))) >{ > while (n--) { > *op++ = (npy_bool)(*ip++ != 0); > } >} ># 1382 "numpy/core/src/multiarray/arraytypes.c.src" >static void >TIMEDELTA_to_BOOL(npy_timedelta *ip, npy_bool *op, npy_intp n, > PyArrayObject *(__NPY_UNUSED_TAGGEDaip) __attribute__ ((__unused__)), PyArrayObject *(__NPY_UNUSED_TAGGEDaop) __attribute__ ((__unused__))) >{ > while (n--) { > *op++ = (npy_bool)(*ip++ != 0); > } >} > > >static void >HALF_to_BOOL(npy_half *ip, npy_bool *op, npy_intp n, > PyArrayObject *(__NPY_UNUSED_TAGGEDaip) __attribute__ ((__unused__)), PyArrayObject *(__NPY_UNUSED_TAGGEDaop) __attribute__ ((__unused__))) >{ > while (n--) { > *op++ = (npy_bool)(!npy_half_iszero(*ip++)); > } >} ># 1406 "numpy/core/src/multiarray/arraytypes.c.src" >static void >CFLOAT_to_BOOL(npy_cfloat *ip, npy_bool *op, npy_intp n, > PyArrayObject *(__NPY_UNUSED_TAGGEDaip) __attribute__ ((__unused__)), PyArrayObject *(__NPY_UNUSED_TAGGEDaop) __attribute__ ((__unused__))) >{ > while (n--) { > *op = (npy_bool)(((*ip).real != 0) || ((*ip).imag != 0)); > op++; > ip++; > } >} ># 1406 "numpy/core/src/multiarray/arraytypes.c.src" >static void >CDOUBLE_to_BOOL(npy_cdouble *ip, npy_bool *op, npy_intp n, > PyArrayObject *(__NPY_UNUSED_TAGGEDaip) __attribute__ ((__unused__)), PyArrayObject *(__NPY_UNUSED_TAGGEDaop) __attribute__ ((__unused__))) >{ > while (n--) { > *op = (npy_bool)(((*ip).real != 0) || ((*ip).imag != 0)); > op++; > ip++; > } >} ># 1406 "numpy/core/src/multiarray/arraytypes.c.src" >static void >CLONGDOUBLE_to_BOOL(npy_clongdouble *ip, npy_bool *op, npy_intp n, > PyArrayObject *(__NPY_UNUSED_TAGGEDaip) __attribute__ ((__unused__)), PyArrayObject *(__NPY_UNUSED_TAGGEDaop) __attribute__ ((__unused__))) >{ > while (n--) { > *op = (npy_bool)(((*ip).real != 0) || ((*ip).imag != 0)); > op++; > ip++; > } >} ># 1428 "numpy/core/src/multiarray/arraytypes.c.src" >static void >BOOL_to_BYTE(npy_bool *ip, npy_byte *op, npy_intp n, > PyArrayObject *(__NPY_UNUSED_TAGGEDaip) __attribute__ ((__unused__)), PyArrayObject *(__NPY_UNUSED_TAGGEDaop) __attribute__ ((__unused__))) >{ > while (n--) { > *op++ = (npy_byte)((*ip++ != 0) ? 1 : 0); > } >} ># 1428 "numpy/core/src/multiarray/arraytypes.c.src" >static void >BOOL_to_UBYTE(npy_bool *ip, npy_ubyte *op, npy_intp n, > PyArrayObject *(__NPY_UNUSED_TAGGEDaip) __attribute__ ((__unused__)), PyArrayObject *(__NPY_UNUSED_TAGGEDaop) __attribute__ ((__unused__))) >{ > while (n--) { > *op++ = (npy_ubyte)((*ip++ != 0) ? 1 : 0); > } >} ># 1428 "numpy/core/src/multiarray/arraytypes.c.src" >static void >BOOL_to_SHORT(npy_bool *ip, short *op, npy_intp n, > PyArrayObject *(__NPY_UNUSED_TAGGEDaip) __attribute__ ((__unused__)), PyArrayObject *(__NPY_UNUSED_TAGGEDaop) __attribute__ ((__unused__))) >{ > while (n--) { > *op++ = (short)((*ip++ != 0) ? 1 : 0); > } >} ># 1428 "numpy/core/src/multiarray/arraytypes.c.src" >static void >BOOL_to_USHORT(npy_bool *ip, npy_ushort *op, npy_intp n, > PyArrayObject *(__NPY_UNUSED_TAGGEDaip) __attribute__ ((__unused__)), PyArrayObject *(__NPY_UNUSED_TAGGEDaop) __attribute__ ((__unused__))) >{ > while (n--) { > *op++ = (npy_ushort)((*ip++ != 0) ? 1 : 0); > } >} ># 1428 "numpy/core/src/multiarray/arraytypes.c.src" >static void >BOOL_to_INT(npy_bool *ip, int *op, npy_intp n, > PyArrayObject *(__NPY_UNUSED_TAGGEDaip) __attribute__ ((__unused__)), PyArrayObject *(__NPY_UNUSED_TAGGEDaop) __attribute__ ((__unused__))) >{ > while (n--) { > *op++ = (int)((*ip++ != 0) ? 1 : 0); > } >} ># 1428 "numpy/core/src/multiarray/arraytypes.c.src" >static void >BOOL_to_UINT(npy_bool *ip, npy_uint *op, npy_intp n, > PyArrayObject *(__NPY_UNUSED_TAGGEDaip) __attribute__ ((__unused__)), PyArrayObject *(__NPY_UNUSED_TAGGEDaop) __attribute__ ((__unused__))) >{ > while (n--) { > *op++ = (npy_uint)((*ip++ != 0) ? 1 : 0); > } >} ># 1428 "numpy/core/src/multiarray/arraytypes.c.src" >static void >BOOL_to_LONG(npy_bool *ip, long *op, npy_intp n, > PyArrayObject *(__NPY_UNUSED_TAGGEDaip) __attribute__ ((__unused__)), PyArrayObject *(__NPY_UNUSED_TAGGEDaop) __attribute__ ((__unused__))) >{ > while (n--) { > *op++ = (long)((*ip++ != 0) ? 1 : 0); > } >} ># 1428 "numpy/core/src/multiarray/arraytypes.c.src" >static void >BOOL_to_ULONG(npy_bool *ip, npy_ulong *op, npy_intp n, > PyArrayObject *(__NPY_UNUSED_TAGGEDaip) __attribute__ ((__unused__)), PyArrayObject *(__NPY_UNUSED_TAGGEDaop) __attribute__ ((__unused__))) >{ > while (n--) { > *op++ = (npy_ulong)((*ip++ != 0) ? 1 : 0); > } >} ># 1428 "numpy/core/src/multiarray/arraytypes.c.src" >static void >BOOL_to_LONGLONG(npy_bool *ip, npy_longlong *op, npy_intp n, > PyArrayObject *(__NPY_UNUSED_TAGGEDaip) __attribute__ ((__unused__)), PyArrayObject *(__NPY_UNUSED_TAGGEDaop) __attribute__ ((__unused__))) >{ > while (n--) { > *op++ = (npy_longlong)((*ip++ != 0) ? 1 : 0); > } >} ># 1428 "numpy/core/src/multiarray/arraytypes.c.src" >static void >BOOL_to_ULONGLONG(npy_bool *ip, npy_ulonglong *op, npy_intp n, > PyArrayObject *(__NPY_UNUSED_TAGGEDaip) __attribute__ ((__unused__)), PyArrayObject *(__NPY_UNUSED_TAGGEDaop) __attribute__ ((__unused__))) >{ > while (n--) { > *op++ = (npy_ulonglong)((*ip++ != 0) ? 1 : 0); > } >} ># 1428 "numpy/core/src/multiarray/arraytypes.c.src" >static void >BOOL_to_HALF(npy_bool *ip, npy_half *op, npy_intp n, > PyArrayObject *(__NPY_UNUSED_TAGGEDaip) __attribute__ ((__unused__)), PyArrayObject *(__NPY_UNUSED_TAGGEDaop) __attribute__ ((__unused__))) >{ > while (n--) { > *op++ = (npy_half)((*ip++ != 0) ? (0x3c00u) : (0x0000u)); > } >} ># 1428 "numpy/core/src/multiarray/arraytypes.c.src" >static void >BOOL_to_FLOAT(npy_bool *ip, float *op, npy_intp n, > PyArrayObject *(__NPY_UNUSED_TAGGEDaip) __attribute__ ((__unused__)), PyArrayObject *(__NPY_UNUSED_TAGGEDaop) __attribute__ ((__unused__))) >{ > while (n--) { > *op++ = (float)((*ip++ != 0) ? 1 : 0); > } >} ># 1428 "numpy/core/src/multiarray/arraytypes.c.src" >static void >BOOL_to_DOUBLE(npy_bool *ip, double *op, npy_intp n, > PyArrayObject *(__NPY_UNUSED_TAGGEDaip) __attribute__ ((__unused__)), PyArrayObject *(__NPY_UNUSED_TAGGEDaop) __attribute__ ((__unused__))) >{ > while (n--) { > *op++ = (double)((*ip++ != 0) ? 1 : 0); > } >} ># 1428 "numpy/core/src/multiarray/arraytypes.c.src" >static void >BOOL_to_LONGDOUBLE(npy_bool *ip, npy_longdouble *op, npy_intp n, > PyArrayObject *(__NPY_UNUSED_TAGGEDaip) __attribute__ ((__unused__)), PyArrayObject *(__NPY_UNUSED_TAGGEDaop) __attribute__ ((__unused__))) >{ > while (n--) { > *op++ = (npy_longdouble)((*ip++ != 0) ? 1 : 0); > } >} ># 1428 "numpy/core/src/multiarray/arraytypes.c.src" >static void >BOOL_to_DATETIME(npy_bool *ip, npy_datetime *op, npy_intp n, > PyArrayObject *(__NPY_UNUSED_TAGGEDaip) __attribute__ ((__unused__)), PyArrayObject *(__NPY_UNUSED_TAGGEDaop) __attribute__ ((__unused__))) >{ > while (n--) { > *op++ = (npy_datetime)((*ip++ != 0) ? 1 : 0); > } >} ># 1428 "numpy/core/src/multiarray/arraytypes.c.src" >static void >BOOL_to_TIMEDELTA(npy_bool *ip, npy_timedelta *op, npy_intp n, > PyArrayObject *(__NPY_UNUSED_TAGGEDaip) __attribute__ ((__unused__)), PyArrayObject *(__NPY_UNUSED_TAGGEDaop) __attribute__ ((__unused__))) >{ > while (n--) { > *op++ = (npy_timedelta)((*ip++ != 0) ? 1 : 0); > } >} ># 1443 "numpy/core/src/multiarray/arraytypes.c.src" ># 1452 "numpy/core/src/multiarray/arraytypes.c.src" >static void >BOOL_to_CFLOAT(npy_bool *ip, float *op, npy_intp n, > PyArrayObject *(__NPY_UNUSED_TAGGEDaip) __attribute__ ((__unused__)), PyArrayObject *(__NPY_UNUSED_TAGGEDaop) __attribute__ ((__unused__))) >{ > while (n--) { > *op++ = (float)*ip++; > *op++ = 0.0; > } > >} ># 1452 "numpy/core/src/multiarray/arraytypes.c.src" >static void >BYTE_to_CFLOAT(npy_byte *ip, float *op, npy_intp n, > PyArrayObject *(__NPY_UNUSED_TAGGEDaip) __attribute__ ((__unused__)), PyArrayObject *(__NPY_UNUSED_TAGGEDaop) __attribute__ ((__unused__))) >{ > while (n--) { > *op++ = (float)*ip++; > *op++ = 0.0; > } > >} ># 1452 "numpy/core/src/multiarray/arraytypes.c.src" >static void >UBYTE_to_CFLOAT(npy_ubyte *ip, float *op, npy_intp n, > PyArrayObject *(__NPY_UNUSED_TAGGEDaip) __attribute__ ((__unused__)), PyArrayObject *(__NPY_UNUSED_TAGGEDaop) __attribute__ ((__unused__))) >{ > while (n--) { > *op++ = (float)*ip++; > *op++ = 0.0; > } > >} ># 1452 "numpy/core/src/multiarray/arraytypes.c.src" >static void >SHORT_to_CFLOAT(short *ip, float *op, npy_intp n, > PyArrayObject *(__NPY_UNUSED_TAGGEDaip) __attribute__ ((__unused__)), PyArrayObject *(__NPY_UNUSED_TAGGEDaop) __attribute__ ((__unused__))) >{ > while (n--) { > *op++ = (float)*ip++; > *op++ = 0.0; > } > >} ># 1452 "numpy/core/src/multiarray/arraytypes.c.src" >static void >USHORT_to_CFLOAT(npy_ushort *ip, float *op, npy_intp n, > PyArrayObject *(__NPY_UNUSED_TAGGEDaip) __attribute__ ((__unused__)), PyArrayObject *(__NPY_UNUSED_TAGGEDaop) __attribute__ ((__unused__))) >{ > while (n--) { > *op++ = (float)*ip++; > *op++ = 0.0; > } > >} ># 1452 "numpy/core/src/multiarray/arraytypes.c.src" >static void >INT_to_CFLOAT(int *ip, float *op, npy_intp n, > PyArrayObject *(__NPY_UNUSED_TAGGEDaip) __attribute__ ((__unused__)), PyArrayObject *(__NPY_UNUSED_TAGGEDaop) __attribute__ ((__unused__))) >{ > while (n--) { > *op++ = (float)*ip++; > *op++ = 0.0; > } > >} ># 1452 "numpy/core/src/multiarray/arraytypes.c.src" >static void >UINT_to_CFLOAT(npy_uint *ip, float *op, npy_intp n, > PyArrayObject *(__NPY_UNUSED_TAGGEDaip) __attribute__ ((__unused__)), PyArrayObject *(__NPY_UNUSED_TAGGEDaop) __attribute__ ((__unused__))) >{ > while (n--) { > *op++ = (float)*ip++; > *op++ = 0.0; > } > >} ># 1452 "numpy/core/src/multiarray/arraytypes.c.src" >static void >LONG_to_CFLOAT(long *ip, float *op, npy_intp n, > PyArrayObject *(__NPY_UNUSED_TAGGEDaip) __attribute__ ((__unused__)), PyArrayObject *(__NPY_UNUSED_TAGGEDaop) __attribute__ ((__unused__))) >{ > while (n--) { > *op++ = (float)*ip++; > *op++ = 0.0; > } > >} ># 1452 "numpy/core/src/multiarray/arraytypes.c.src" >static void >ULONG_to_CFLOAT(npy_ulong *ip, float *op, npy_intp n, > PyArrayObject *(__NPY_UNUSED_TAGGEDaip) __attribute__ ((__unused__)), PyArrayObject *(__NPY_UNUSED_TAGGEDaop) __attribute__ ((__unused__))) >{ > while (n--) { > *op++ = (float)*ip++; > *op++ = 0.0; > } > >} ># 1452 "numpy/core/src/multiarray/arraytypes.c.src" >static void >LONGLONG_to_CFLOAT(npy_longlong *ip, float *op, npy_intp n, > PyArrayObject *(__NPY_UNUSED_TAGGEDaip) __attribute__ ((__unused__)), PyArrayObject *(__NPY_UNUSED_TAGGEDaop) __attribute__ ((__unused__))) >{ > while (n--) { > *op++ = (float)*ip++; > *op++ = 0.0; > } > >} ># 1452 "numpy/core/src/multiarray/arraytypes.c.src" >static void >ULONGLONG_to_CFLOAT(npy_ulonglong *ip, float *op, npy_intp n, > PyArrayObject *(__NPY_UNUSED_TAGGEDaip) __attribute__ ((__unused__)), PyArrayObject *(__NPY_UNUSED_TAGGEDaop) __attribute__ ((__unused__))) >{ > while (n--) { > *op++ = (float)*ip++; > *op++ = 0.0; > } > >} ># 1452 "numpy/core/src/multiarray/arraytypes.c.src" >static void >FLOAT_to_CFLOAT(float *ip, float *op, npy_intp n, > PyArrayObject *(__NPY_UNUSED_TAGGEDaip) __attribute__ ((__unused__)), PyArrayObject *(__NPY_UNUSED_TAGGEDaop) __attribute__ ((__unused__))) >{ > while (n--) { > *op++ = (float)*ip++; > *op++ = 0.0; > } > >} ># 1452 "numpy/core/src/multiarray/arraytypes.c.src" >static void >DOUBLE_to_CFLOAT(double *ip, float *op, npy_intp n, > PyArrayObject *(__NPY_UNUSED_TAGGEDaip) __attribute__ ((__unused__)), PyArrayObject *(__NPY_UNUSED_TAGGEDaop) __attribute__ ((__unused__))) >{ > while (n--) { > *op++ = (float)*ip++; > *op++ = 0.0; > } > >} ># 1452 "numpy/core/src/multiarray/arraytypes.c.src" >static void >LONGDOUBLE_to_CFLOAT(npy_longdouble *ip, float *op, npy_intp n, > PyArrayObject *(__NPY_UNUSED_TAGGEDaip) __attribute__ ((__unused__)), PyArrayObject *(__NPY_UNUSED_TAGGEDaop) __attribute__ ((__unused__))) >{ > while (n--) { > *op++ = (float)*ip++; > *op++ = 0.0; > } > >} ># 1452 "numpy/core/src/multiarray/arraytypes.c.src" >static void >DATETIME_to_CFLOAT(npy_datetime *ip, float *op, npy_intp n, > PyArrayObject *(__NPY_UNUSED_TAGGEDaip) __attribute__ ((__unused__)), PyArrayObject *(__NPY_UNUSED_TAGGEDaop) __attribute__ ((__unused__))) >{ > while (n--) { > *op++ = (float)*ip++; > *op++ = 0.0; > } > >} ># 1452 "numpy/core/src/multiarray/arraytypes.c.src" >static void >TIMEDELTA_to_CFLOAT(npy_timedelta *ip, float *op, npy_intp n, > PyArrayObject *(__NPY_UNUSED_TAGGEDaip) __attribute__ ((__unused__)), PyArrayObject *(__NPY_UNUSED_TAGGEDaop) __attribute__ ((__unused__))) >{ > while (n--) { > *op++ = (float)*ip++; > *op++ = 0.0; > } > >} ># 1443 "numpy/core/src/multiarray/arraytypes.c.src" ># 1452 "numpy/core/src/multiarray/arraytypes.c.src" >static void >BOOL_to_CDOUBLE(npy_bool *ip, double *op, npy_intp n, > PyArrayObject *(__NPY_UNUSED_TAGGEDaip) __attribute__ ((__unused__)), PyArrayObject *(__NPY_UNUSED_TAGGEDaop) __attribute__ ((__unused__))) >{ > while (n--) { > *op++ = (double)*ip++; > *op++ = 0.0; > } > >} ># 1452 "numpy/core/src/multiarray/arraytypes.c.src" >static void >BYTE_to_CDOUBLE(npy_byte *ip, double *op, npy_intp n, > PyArrayObject *(__NPY_UNUSED_TAGGEDaip) __attribute__ ((__unused__)), PyArrayObject *(__NPY_UNUSED_TAGGEDaop) __attribute__ ((__unused__))) >{ > while (n--) { > *op++ = (double)*ip++; > *op++ = 0.0; > } > >} ># 1452 "numpy/core/src/multiarray/arraytypes.c.src" >static void >UBYTE_to_CDOUBLE(npy_ubyte *ip, double *op, npy_intp n, > PyArrayObject *(__NPY_UNUSED_TAGGEDaip) __attribute__ ((__unused__)), PyArrayObject *(__NPY_UNUSED_TAGGEDaop) __attribute__ ((__unused__))) >{ > while (n--) { > *op++ = (double)*ip++; > *op++ = 0.0; > } > >} ># 1452 "numpy/core/src/multiarray/arraytypes.c.src" >static void >SHORT_to_CDOUBLE(short *ip, double *op, npy_intp n, > PyArrayObject *(__NPY_UNUSED_TAGGEDaip) __attribute__ ((__unused__)), PyArrayObject *(__NPY_UNUSED_TAGGEDaop) __attribute__ ((__unused__))) >{ > while (n--) { > *op++ = (double)*ip++; > *op++ = 0.0; > } > >} ># 1452 "numpy/core/src/multiarray/arraytypes.c.src" >static void >USHORT_to_CDOUBLE(npy_ushort *ip, double *op, npy_intp n, > PyArrayObject *(__NPY_UNUSED_TAGGEDaip) __attribute__ ((__unused__)), PyArrayObject *(__NPY_UNUSED_TAGGEDaop) __attribute__ ((__unused__))) >{ > while (n--) { > *op++ = (double)*ip++; > *op++ = 0.0; > } > >} ># 1452 "numpy/core/src/multiarray/arraytypes.c.src" >static void >INT_to_CDOUBLE(int *ip, double *op, npy_intp n, > PyArrayObject *(__NPY_UNUSED_TAGGEDaip) __attribute__ ((__unused__)), PyArrayObject *(__NPY_UNUSED_TAGGEDaop) __attribute__ ((__unused__))) >{ > while (n--) { > *op++ = (double)*ip++; > *op++ = 0.0; > } > >} ># 1452 "numpy/core/src/multiarray/arraytypes.c.src" >static void >UINT_to_CDOUBLE(npy_uint *ip, double *op, npy_intp n, > PyArrayObject *(__NPY_UNUSED_TAGGEDaip) __attribute__ ((__unused__)), PyArrayObject *(__NPY_UNUSED_TAGGEDaop) __attribute__ ((__unused__))) >{ > while (n--) { > *op++ = (double)*ip++; > *op++ = 0.0; > } > >} ># 1452 "numpy/core/src/multiarray/arraytypes.c.src" >static void >LONG_to_CDOUBLE(long *ip, double *op, npy_intp n, > PyArrayObject *(__NPY_UNUSED_TAGGEDaip) __attribute__ ((__unused__)), PyArrayObject *(__NPY_UNUSED_TAGGEDaop) __attribute__ ((__unused__))) >{ > while (n--) { > *op++ = (double)*ip++; > *op++ = 0.0; > } > >} ># 1452 "numpy/core/src/multiarray/arraytypes.c.src" >static void >ULONG_to_CDOUBLE(npy_ulong *ip, double *op, npy_intp n, > PyArrayObject *(__NPY_UNUSED_TAGGEDaip) __attribute__ ((__unused__)), PyArrayObject *(__NPY_UNUSED_TAGGEDaop) __attribute__ ((__unused__))) >{ > while (n--) { > *op++ = (double)*ip++; > *op++ = 0.0; > } > >} ># 1452 "numpy/core/src/multiarray/arraytypes.c.src" >static void >LONGLONG_to_CDOUBLE(npy_longlong *ip, double *op, npy_intp n, > PyArrayObject *(__NPY_UNUSED_TAGGEDaip) __attribute__ ((__unused__)), PyArrayObject *(__NPY_UNUSED_TAGGEDaop) __attribute__ ((__unused__))) >{ > while (n--) { > *op++ = (double)*ip++; > *op++ = 0.0; > } > >} ># 1452 "numpy/core/src/multiarray/arraytypes.c.src" >static void >ULONGLONG_to_CDOUBLE(npy_ulonglong *ip, double *op, npy_intp n, > PyArrayObject *(__NPY_UNUSED_TAGGEDaip) __attribute__ ((__unused__)), PyArrayObject *(__NPY_UNUSED_TAGGEDaop) __attribute__ ((__unused__))) >{ > while (n--) { > *op++ = (double)*ip++; > *op++ = 0.0; > } > >} ># 1452 "numpy/core/src/multiarray/arraytypes.c.src" >static void >FLOAT_to_CDOUBLE(float *ip, double *op, npy_intp n, > PyArrayObject *(__NPY_UNUSED_TAGGEDaip) __attribute__ ((__unused__)), PyArrayObject *(__NPY_UNUSED_TAGGEDaop) __attribute__ ((__unused__))) >{ > while (n--) { > *op++ = (double)*ip++; > *op++ = 0.0; > } > >} ># 1452 "numpy/core/src/multiarray/arraytypes.c.src" >static void >DOUBLE_to_CDOUBLE(double *ip, double *op, npy_intp n, > PyArrayObject *(__NPY_UNUSED_TAGGEDaip) __attribute__ ((__unused__)), PyArrayObject *(__NPY_UNUSED_TAGGEDaop) __attribute__ ((__unused__))) >{ > while (n--) { > *op++ = (double)*ip++; > *op++ = 0.0; > } > >} ># 1452 "numpy/core/src/multiarray/arraytypes.c.src" >static void >LONGDOUBLE_to_CDOUBLE(npy_longdouble *ip, double *op, npy_intp n, > PyArrayObject *(__NPY_UNUSED_TAGGEDaip) __attribute__ ((__unused__)), PyArrayObject *(__NPY_UNUSED_TAGGEDaop) __attribute__ ((__unused__))) >{ > while (n--) { > *op++ = (double)*ip++; > *op++ = 0.0; > } > >} ># 1452 "numpy/core/src/multiarray/arraytypes.c.src" >static void >DATETIME_to_CDOUBLE(npy_datetime *ip, double *op, npy_intp n, > PyArrayObject *(__NPY_UNUSED_TAGGEDaip) __attribute__ ((__unused__)), PyArrayObject *(__NPY_UNUSED_TAGGEDaop) __attribute__ ((__unused__))) >{ > while (n--) { > *op++ = (double)*ip++; > *op++ = 0.0; > } > >} ># 1452 "numpy/core/src/multiarray/arraytypes.c.src" >static void >TIMEDELTA_to_CDOUBLE(npy_timedelta *ip, double *op, npy_intp n, > PyArrayObject *(__NPY_UNUSED_TAGGEDaip) __attribute__ ((__unused__)), PyArrayObject *(__NPY_UNUSED_TAGGEDaop) __attribute__ ((__unused__))) >{ > while (n--) { > *op++ = (double)*ip++; > *op++ = 0.0; > } > >} ># 1443 "numpy/core/src/multiarray/arraytypes.c.src" ># 1452 "numpy/core/src/multiarray/arraytypes.c.src" >static void >BOOL_to_CLONGDOUBLE(npy_bool *ip, npy_longdouble *op, npy_intp n, > PyArrayObject *(__NPY_UNUSED_TAGGEDaip) __attribute__ ((__unused__)), PyArrayObject *(__NPY_UNUSED_TAGGEDaop) __attribute__ ((__unused__))) >{ > while (n--) { > *op++ = (npy_longdouble)*ip++; > *op++ = 0.0; > } > >} ># 1452 "numpy/core/src/multiarray/arraytypes.c.src" >static void >BYTE_to_CLONGDOUBLE(npy_byte *ip, npy_longdouble *op, npy_intp n, > PyArrayObject *(__NPY_UNUSED_TAGGEDaip) __attribute__ ((__unused__)), PyArrayObject *(__NPY_UNUSED_TAGGEDaop) __attribute__ ((__unused__))) >{ > while (n--) { > *op++ = (npy_longdouble)*ip++; > *op++ = 0.0; > } > >} ># 1452 "numpy/core/src/multiarray/arraytypes.c.src" >static void >UBYTE_to_CLONGDOUBLE(npy_ubyte *ip, npy_longdouble *op, npy_intp n, > PyArrayObject *(__NPY_UNUSED_TAGGEDaip) __attribute__ ((__unused__)), PyArrayObject *(__NPY_UNUSED_TAGGEDaop) __attribute__ ((__unused__))) >{ > while (n--) { > *op++ = (npy_longdouble)*ip++; > *op++ = 0.0; > } > >} ># 1452 "numpy/core/src/multiarray/arraytypes.c.src" >static void >SHORT_to_CLONGDOUBLE(short *ip, npy_longdouble *op, npy_intp n, > PyArrayObject *(__NPY_UNUSED_TAGGEDaip) __attribute__ ((__unused__)), PyArrayObject *(__NPY_UNUSED_TAGGEDaop) __attribute__ ((__unused__))) >{ > while (n--) { > *op++ = (npy_longdouble)*ip++; > *op++ = 0.0; > } > >} ># 1452 "numpy/core/src/multiarray/arraytypes.c.src" >static void >USHORT_to_CLONGDOUBLE(npy_ushort *ip, npy_longdouble *op, npy_intp n, > PyArrayObject *(__NPY_UNUSED_TAGGEDaip) __attribute__ ((__unused__)), PyArrayObject *(__NPY_UNUSED_TAGGEDaop) __attribute__ ((__unused__))) >{ > while (n--) { > *op++ = (npy_longdouble)*ip++; > *op++ = 0.0; > } > >} ># 1452 "numpy/core/src/multiarray/arraytypes.c.src" >static void >INT_to_CLONGDOUBLE(int *ip, npy_longdouble *op, npy_intp n, > PyArrayObject *(__NPY_UNUSED_TAGGEDaip) __attribute__ ((__unused__)), PyArrayObject *(__NPY_UNUSED_TAGGEDaop) __attribute__ ((__unused__))) >{ > while (n--) { > *op++ = (npy_longdouble)*ip++; > *op++ = 0.0; > } > >} ># 1452 "numpy/core/src/multiarray/arraytypes.c.src" >static void >UINT_to_CLONGDOUBLE(npy_uint *ip, npy_longdouble *op, npy_intp n, > PyArrayObject *(__NPY_UNUSED_TAGGEDaip) __attribute__ ((__unused__)), PyArrayObject *(__NPY_UNUSED_TAGGEDaop) __attribute__ ((__unused__))) >{ > while (n--) { > *op++ = (npy_longdouble)*ip++; > *op++ = 0.0; > } > >} ># 1452 "numpy/core/src/multiarray/arraytypes.c.src" >static void >LONG_to_CLONGDOUBLE(long *ip, npy_longdouble *op, npy_intp n, > PyArrayObject *(__NPY_UNUSED_TAGGEDaip) __attribute__ ((__unused__)), PyArrayObject *(__NPY_UNUSED_TAGGEDaop) __attribute__ ((__unused__))) >{ > while (n--) { > *op++ = (npy_longdouble)*ip++; > *op++ = 0.0; > } > >} ># 1452 "numpy/core/src/multiarray/arraytypes.c.src" >static void >ULONG_to_CLONGDOUBLE(npy_ulong *ip, npy_longdouble *op, npy_intp n, > PyArrayObject *(__NPY_UNUSED_TAGGEDaip) __attribute__ ((__unused__)), PyArrayObject *(__NPY_UNUSED_TAGGEDaop) __attribute__ ((__unused__))) >{ > while (n--) { > *op++ = (npy_longdouble)*ip++; > *op++ = 0.0; > } > >} ># 1452 "numpy/core/src/multiarray/arraytypes.c.src" >static void >LONGLONG_to_CLONGDOUBLE(npy_longlong *ip, npy_longdouble *op, npy_intp n, > PyArrayObject *(__NPY_UNUSED_TAGGEDaip) __attribute__ ((__unused__)), PyArrayObject *(__NPY_UNUSED_TAGGEDaop) __attribute__ ((__unused__))) >{ > while (n--) { > *op++ = (npy_longdouble)*ip++; > *op++ = 0.0; > } > >} ># 1452 "numpy/core/src/multiarray/arraytypes.c.src" >static void >ULONGLONG_to_CLONGDOUBLE(npy_ulonglong *ip, npy_longdouble *op, npy_intp n, > PyArrayObject *(__NPY_UNUSED_TAGGEDaip) __attribute__ ((__unused__)), PyArrayObject *(__NPY_UNUSED_TAGGEDaop) __attribute__ ((__unused__))) >{ > while (n--) { > *op++ = (npy_longdouble)*ip++; > *op++ = 0.0; > } > >} ># 1452 "numpy/core/src/multiarray/arraytypes.c.src" >static void >FLOAT_to_CLONGDOUBLE(float *ip, npy_longdouble *op, npy_intp n, > PyArrayObject *(__NPY_UNUSED_TAGGEDaip) __attribute__ ((__unused__)), PyArrayObject *(__NPY_UNUSED_TAGGEDaop) __attribute__ ((__unused__))) >{ > while (n--) { > *op++ = (npy_longdouble)*ip++; > *op++ = 0.0; > } > >} ># 1452 "numpy/core/src/multiarray/arraytypes.c.src" >static void >DOUBLE_to_CLONGDOUBLE(double *ip, npy_longdouble *op, npy_intp n, > PyArrayObject *(__NPY_UNUSED_TAGGEDaip) __attribute__ ((__unused__)), PyArrayObject *(__NPY_UNUSED_TAGGEDaop) __attribute__ ((__unused__))) >{ > while (n--) { > *op++ = (npy_longdouble)*ip++; > *op++ = 0.0; > } > >} ># 1452 "numpy/core/src/multiarray/arraytypes.c.src" >static void >LONGDOUBLE_to_CLONGDOUBLE(npy_longdouble *ip, npy_longdouble *op, npy_intp n, > PyArrayObject *(__NPY_UNUSED_TAGGEDaip) __attribute__ ((__unused__)), PyArrayObject *(__NPY_UNUSED_TAGGEDaop) __attribute__ ((__unused__))) >{ > while (n--) { > *op++ = (npy_longdouble)*ip++; > *op++ = 0.0; > } > >} ># 1452 "numpy/core/src/multiarray/arraytypes.c.src" >static void >DATETIME_to_CLONGDOUBLE(npy_datetime *ip, npy_longdouble *op, npy_intp n, > PyArrayObject *(__NPY_UNUSED_TAGGEDaip) __attribute__ ((__unused__)), PyArrayObject *(__NPY_UNUSED_TAGGEDaop) __attribute__ ((__unused__))) >{ > while (n--) { > *op++ = (npy_longdouble)*ip++; > *op++ = 0.0; > } > >} ># 1452 "numpy/core/src/multiarray/arraytypes.c.src" >static void >TIMEDELTA_to_CLONGDOUBLE(npy_timedelta *ip, npy_longdouble *op, npy_intp n, > PyArrayObject *(__NPY_UNUSED_TAGGEDaip) __attribute__ ((__unused__)), PyArrayObject *(__NPY_UNUSED_TAGGEDaop) __attribute__ ((__unused__))) >{ > while (n--) { > *op++ = (npy_longdouble)*ip++; > *op++ = 0.0; > } > >} ># 1470 "numpy/core/src/multiarray/arraytypes.c.src" ># 1475 "numpy/core/src/multiarray/arraytypes.c.src" >static void >CFLOAT_to_CFLOAT(float *ip, float *op, npy_intp n, > PyArrayObject *(__NPY_UNUSED_TAGGEDaip) __attribute__ ((__unused__)), PyArrayObject *(__NPY_UNUSED_TAGGEDaop) __attribute__ ((__unused__))) >{ > n <<= 1; > while (n--) { > *op++ = (float)*ip++; > } >} ># 1475 "numpy/core/src/multiarray/arraytypes.c.src" >static void >CDOUBLE_to_CFLOAT(double *ip, float *op, npy_intp n, > PyArrayObject *(__NPY_UNUSED_TAGGEDaip) __attribute__ ((__unused__)), PyArrayObject *(__NPY_UNUSED_TAGGEDaop) __attribute__ ((__unused__))) >{ > n <<= 1; > while (n--) { > *op++ = (float)*ip++; > } >} ># 1475 "numpy/core/src/multiarray/arraytypes.c.src" >static void >CLONGDOUBLE_to_CFLOAT(npy_longdouble *ip, float *op, npy_intp n, > PyArrayObject *(__NPY_UNUSED_TAGGEDaip) __attribute__ ((__unused__)), PyArrayObject *(__NPY_UNUSED_TAGGEDaop) __attribute__ ((__unused__))) >{ > n <<= 1; > while (n--) { > *op++ = (float)*ip++; > } >} ># 1470 "numpy/core/src/multiarray/arraytypes.c.src" ># 1475 "numpy/core/src/multiarray/arraytypes.c.src" >static void >CFLOAT_to_CDOUBLE(float *ip, double *op, npy_intp n, > PyArrayObject *(__NPY_UNUSED_TAGGEDaip) __attribute__ ((__unused__)), PyArrayObject *(__NPY_UNUSED_TAGGEDaop) __attribute__ ((__unused__))) >{ > n <<= 1; > while (n--) { > *op++ = (double)*ip++; > } >} ># 1475 "numpy/core/src/multiarray/arraytypes.c.src" >static void >CDOUBLE_to_CDOUBLE(double *ip, double *op, npy_intp n, > PyArrayObject *(__NPY_UNUSED_TAGGEDaip) __attribute__ ((__unused__)), PyArrayObject *(__NPY_UNUSED_TAGGEDaop) __attribute__ ((__unused__))) >{ > n <<= 1; > while (n--) { > *op++ = (double)*ip++; > } >} ># 1475 "numpy/core/src/multiarray/arraytypes.c.src" >static void >CLONGDOUBLE_to_CDOUBLE(npy_longdouble *ip, double *op, npy_intp n, > PyArrayObject *(__NPY_UNUSED_TAGGEDaip) __attribute__ ((__unused__)), PyArrayObject *(__NPY_UNUSED_TAGGEDaop) __attribute__ ((__unused__))) >{ > n <<= 1; > while (n--) { > *op++ = (double)*ip++; > } >} ># 1470 "numpy/core/src/multiarray/arraytypes.c.src" ># 1475 "numpy/core/src/multiarray/arraytypes.c.src" >static void >CFLOAT_to_CLONGDOUBLE(float *ip, npy_longdouble *op, npy_intp n, > PyArrayObject *(__NPY_UNUSED_TAGGEDaip) __attribute__ ((__unused__)), PyArrayObject *(__NPY_UNUSED_TAGGEDaop) __attribute__ ((__unused__))) >{ > n <<= 1; > while (n--) { > *op++ = (npy_longdouble)*ip++; > } >} ># 1475 "numpy/core/src/multiarray/arraytypes.c.src" >static void >CDOUBLE_to_CLONGDOUBLE(double *ip, npy_longdouble *op, npy_intp n, > PyArrayObject *(__NPY_UNUSED_TAGGEDaip) __attribute__ ((__unused__)), PyArrayObject *(__NPY_UNUSED_TAGGEDaop) __attribute__ ((__unused__))) >{ > n <<= 1; > while (n--) { > *op++ = (npy_longdouble)*ip++; > } >} ># 1475 "numpy/core/src/multiarray/arraytypes.c.src" >static void >CLONGDOUBLE_to_CLONGDOUBLE(npy_longdouble *ip, npy_longdouble *op, npy_intp n, > PyArrayObject *(__NPY_UNUSED_TAGGEDaip) __attribute__ ((__unused__)), PyArrayObject *(__NPY_UNUSED_TAGGEDaop) __attribute__ ((__unused__))) >{ > n <<= 1; > while (n--) { > *op++ = (npy_longdouble)*ip++; > } >} ># 1500 "numpy/core/src/multiarray/arraytypes.c.src" >static void >BOOL_to_OBJECT(npy_bool *ip, PyObject **op, npy_intp n, PyArrayObject *aip, > PyArrayObject *(__NPY_UNUSED_TAGGEDaop) __attribute__ ((__unused__))) >{ > npy_intp i; > int skip = 1; > for (i = 0; i < n; i++, ip +=skip, op++) { > do { if ((*op) == ((void *)0)) ; else do { if ( --((PyObject*)(*op))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(*op)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(*op)))); } while (0); } while (0); > *op = BOOL_getitem((char *)ip, aip); > } >} ># 1500 "numpy/core/src/multiarray/arraytypes.c.src" >static void >BYTE_to_OBJECT(npy_byte *ip, PyObject **op, npy_intp n, PyArrayObject *aip, > PyArrayObject *(__NPY_UNUSED_TAGGEDaop) __attribute__ ((__unused__))) >{ > npy_intp i; > int skip = 1; > for (i = 0; i < n; i++, ip +=skip, op++) { > do { if ((*op) == ((void *)0)) ; else do { if ( --((PyObject*)(*op))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(*op)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(*op)))); } while (0); } while (0); > *op = BYTE_getitem((char *)ip, aip); > } >} ># 1500 "numpy/core/src/multiarray/arraytypes.c.src" >static void >UBYTE_to_OBJECT(npy_ubyte *ip, PyObject **op, npy_intp n, PyArrayObject *aip, > PyArrayObject *(__NPY_UNUSED_TAGGEDaop) __attribute__ ((__unused__))) >{ > npy_intp i; > int skip = 1; > for (i = 0; i < n; i++, ip +=skip, op++) { > do { if ((*op) == ((void *)0)) ; else do { if ( --((PyObject*)(*op))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(*op)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(*op)))); } while (0); } while (0); > *op = UBYTE_getitem((char *)ip, aip); > } >} ># 1500 "numpy/core/src/multiarray/arraytypes.c.src" >static void >SHORT_to_OBJECT(short *ip, PyObject **op, npy_intp n, PyArrayObject *aip, > PyArrayObject *(__NPY_UNUSED_TAGGEDaop) __attribute__ ((__unused__))) >{ > npy_intp i; > int skip = 1; > for (i = 0; i < n; i++, ip +=skip, op++) { > do { if ((*op) == ((void *)0)) ; else do { if ( --((PyObject*)(*op))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(*op)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(*op)))); } while (0); } while (0); > *op = SHORT_getitem((char *)ip, aip); > } >} ># 1500 "numpy/core/src/multiarray/arraytypes.c.src" >static void >USHORT_to_OBJECT(npy_ushort *ip, PyObject **op, npy_intp n, PyArrayObject *aip, > PyArrayObject *(__NPY_UNUSED_TAGGEDaop) __attribute__ ((__unused__))) >{ > npy_intp i; > int skip = 1; > for (i = 0; i < n; i++, ip +=skip, op++) { > do { if ((*op) == ((void *)0)) ; else do { if ( --((PyObject*)(*op))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(*op)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(*op)))); } while (0); } while (0); > *op = USHORT_getitem((char *)ip, aip); > } >} ># 1500 "numpy/core/src/multiarray/arraytypes.c.src" >static void >INT_to_OBJECT(int *ip, PyObject **op, npy_intp n, PyArrayObject *aip, > PyArrayObject *(__NPY_UNUSED_TAGGEDaop) __attribute__ ((__unused__))) >{ > npy_intp i; > int skip = 1; > for (i = 0; i < n; i++, ip +=skip, op++) { > do { if ((*op) == ((void *)0)) ; else do { if ( --((PyObject*)(*op))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(*op)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(*op)))); } while (0); } while (0); > *op = INT_getitem((char *)ip, aip); > } >} ># 1500 "numpy/core/src/multiarray/arraytypes.c.src" >static void >UINT_to_OBJECT(npy_uint *ip, PyObject **op, npy_intp n, PyArrayObject *aip, > PyArrayObject *(__NPY_UNUSED_TAGGEDaop) __attribute__ ((__unused__))) >{ > npy_intp i; > int skip = 1; > for (i = 0; i < n; i++, ip +=skip, op++) { > do { if ((*op) == ((void *)0)) ; else do { if ( --((PyObject*)(*op))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(*op)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(*op)))); } while (0); } while (0); > *op = UINT_getitem((char *)ip, aip); > } >} ># 1500 "numpy/core/src/multiarray/arraytypes.c.src" >static void >LONG_to_OBJECT(long *ip, PyObject **op, npy_intp n, PyArrayObject *aip, > PyArrayObject *(__NPY_UNUSED_TAGGEDaop) __attribute__ ((__unused__))) >{ > npy_intp i; > int skip = 1; > for (i = 0; i < n; i++, ip +=skip, op++) { > do { if ((*op) == ((void *)0)) ; else do { if ( --((PyObject*)(*op))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(*op)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(*op)))); } while (0); } while (0); > *op = LONG_getitem((char *)ip, aip); > } >} ># 1500 "numpy/core/src/multiarray/arraytypes.c.src" >static void >ULONG_to_OBJECT(npy_ulong *ip, PyObject **op, npy_intp n, PyArrayObject *aip, > PyArrayObject *(__NPY_UNUSED_TAGGEDaop) __attribute__ ((__unused__))) >{ > npy_intp i; > int skip = 1; > for (i = 0; i < n; i++, ip +=skip, op++) { > do { if ((*op) == ((void *)0)) ; else do { if ( --((PyObject*)(*op))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(*op)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(*op)))); } while (0); } while (0); > *op = ULONG_getitem((char *)ip, aip); > } >} ># 1500 "numpy/core/src/multiarray/arraytypes.c.src" >static void >LONGLONG_to_OBJECT(npy_longlong *ip, PyObject **op, npy_intp n, PyArrayObject *aip, > PyArrayObject *(__NPY_UNUSED_TAGGEDaop) __attribute__ ((__unused__))) >{ > npy_intp i; > int skip = 1; > for (i = 0; i < n; i++, ip +=skip, op++) { > do { if ((*op) == ((void *)0)) ; else do { if ( --((PyObject*)(*op))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(*op)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(*op)))); } while (0); } while (0); > *op = LONGLONG_getitem((char *)ip, aip); > } >} ># 1500 "numpy/core/src/multiarray/arraytypes.c.src" >static void >ULONGLONG_to_OBJECT(npy_ulonglong *ip, PyObject **op, npy_intp n, PyArrayObject *aip, > PyArrayObject *(__NPY_UNUSED_TAGGEDaop) __attribute__ ((__unused__))) >{ > npy_intp i; > int skip = 1; > for (i = 0; i < n; i++, ip +=skip, op++) { > do { if ((*op) == ((void *)0)) ; else do { if ( --((PyObject*)(*op))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(*op)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(*op)))); } while (0); } while (0); > *op = ULONGLONG_getitem((char *)ip, aip); > } >} ># 1500 "numpy/core/src/multiarray/arraytypes.c.src" >static void >HALF_to_OBJECT(npy_half *ip, PyObject **op, npy_intp n, PyArrayObject *aip, > PyArrayObject *(__NPY_UNUSED_TAGGEDaop) __attribute__ ((__unused__))) >{ > npy_intp i; > int skip = 1; > for (i = 0; i < n; i++, ip +=skip, op++) { > do { if ((*op) == ((void *)0)) ; else do { if ( --((PyObject*)(*op))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(*op)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(*op)))); } while (0); } while (0); > *op = HALF_getitem((char *)ip, aip); > } >} ># 1500 "numpy/core/src/multiarray/arraytypes.c.src" >static void >FLOAT_to_OBJECT(float *ip, PyObject **op, npy_intp n, PyArrayObject *aip, > PyArrayObject *(__NPY_UNUSED_TAGGEDaop) __attribute__ ((__unused__))) >{ > npy_intp i; > int skip = 1; > for (i = 0; i < n; i++, ip +=skip, op++) { > do { if ((*op) == ((void *)0)) ; else do { if ( --((PyObject*)(*op))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(*op)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(*op)))); } while (0); } while (0); > *op = FLOAT_getitem((char *)ip, aip); > } >} ># 1500 "numpy/core/src/multiarray/arraytypes.c.src" >static void >DOUBLE_to_OBJECT(double *ip, PyObject **op, npy_intp n, PyArrayObject *aip, > PyArrayObject *(__NPY_UNUSED_TAGGEDaop) __attribute__ ((__unused__))) >{ > npy_intp i; > int skip = 1; > for (i = 0; i < n; i++, ip +=skip, op++) { > do { if ((*op) == ((void *)0)) ; else do { if ( --((PyObject*)(*op))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(*op)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(*op)))); } while (0); } while (0); > *op = DOUBLE_getitem((char *)ip, aip); > } >} ># 1500 "numpy/core/src/multiarray/arraytypes.c.src" >static void >LONGDOUBLE_to_OBJECT(npy_longdouble *ip, PyObject **op, npy_intp n, PyArrayObject *aip, > PyArrayObject *(__NPY_UNUSED_TAGGEDaop) __attribute__ ((__unused__))) >{ > npy_intp i; > int skip = 1; > for (i = 0; i < n; i++, ip +=skip, op++) { > do { if ((*op) == ((void *)0)) ; else do { if ( --((PyObject*)(*op))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(*op)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(*op)))); } while (0); } while (0); > *op = LONGDOUBLE_getitem((char *)ip, aip); > } >} ># 1500 "numpy/core/src/multiarray/arraytypes.c.src" >static void >CFLOAT_to_OBJECT(npy_cfloat *ip, PyObject **op, npy_intp n, PyArrayObject *aip, > PyArrayObject *(__NPY_UNUSED_TAGGEDaop) __attribute__ ((__unused__))) >{ > npy_intp i; > int skip = 1; > for (i = 0; i < n; i++, ip +=skip, op++) { > do { if ((*op) == ((void *)0)) ; else do { if ( --((PyObject*)(*op))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(*op)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(*op)))); } while (0); } while (0); > *op = CFLOAT_getitem((char *)ip, aip); > } >} ># 1500 "numpy/core/src/multiarray/arraytypes.c.src" >static void >CDOUBLE_to_OBJECT(npy_cdouble *ip, PyObject **op, npy_intp n, PyArrayObject *aip, > PyArrayObject *(__NPY_UNUSED_TAGGEDaop) __attribute__ ((__unused__))) >{ > npy_intp i; > int skip = 1; > for (i = 0; i < n; i++, ip +=skip, op++) { > do { if ((*op) == ((void *)0)) ; else do { if ( --((PyObject*)(*op))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(*op)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(*op)))); } while (0); } while (0); > *op = CDOUBLE_getitem((char *)ip, aip); > } >} ># 1500 "numpy/core/src/multiarray/arraytypes.c.src" >static void >CLONGDOUBLE_to_OBJECT(npy_clongdouble *ip, PyObject **op, npy_intp n, PyArrayObject *aip, > PyArrayObject *(__NPY_UNUSED_TAGGEDaop) __attribute__ ((__unused__))) >{ > npy_intp i; > int skip = 1; > for (i = 0; i < n; i++, ip +=skip, op++) { > do { if ((*op) == ((void *)0)) ; else do { if ( --((PyObject*)(*op))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(*op)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(*op)))); } while (0); } while (0); > *op = CLONGDOUBLE_getitem((char *)ip, aip); > } >} ># 1500 "numpy/core/src/multiarray/arraytypes.c.src" >static void >STRING_to_OBJECT(char *ip, PyObject **op, npy_intp n, PyArrayObject *aip, > PyArrayObject *(__NPY_UNUSED_TAGGEDaop) __attribute__ ((__unused__))) >{ > npy_intp i; > int skip = aip->descr->elsize; > for (i = 0; i < n; i++, ip +=skip, op++) { > do { if ((*op) == ((void *)0)) ; else do { if ( --((PyObject*)(*op))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(*op)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(*op)))); } while (0); } while (0); > *op = STRING_getitem((char *)ip, aip); > } >} ># 1500 "numpy/core/src/multiarray/arraytypes.c.src" >static void >UNICODE_to_OBJECT(char *ip, PyObject **op, npy_intp n, PyArrayObject *aip, > PyArrayObject *(__NPY_UNUSED_TAGGEDaop) __attribute__ ((__unused__))) >{ > npy_intp i; > int skip = aip->descr->elsize; > for (i = 0; i < n; i++, ip +=skip, op++) { > do { if ((*op) == ((void *)0)) ; else do { if ( --((PyObject*)(*op))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(*op)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(*op)))); } while (0); } while (0); > *op = UNICODE_getitem((char *)ip, aip); > } >} ># 1500 "numpy/core/src/multiarray/arraytypes.c.src" >static void >VOID_to_OBJECT(char *ip, PyObject **op, npy_intp n, PyArrayObject *aip, > PyArrayObject *(__NPY_UNUSED_TAGGEDaop) __attribute__ ((__unused__))) >{ > npy_intp i; > int skip = aip->descr->elsize; > for (i = 0; i < n; i++, ip +=skip, op++) { > do { if ((*op) == ((void *)0)) ; else do { if ( --((PyObject*)(*op))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(*op)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(*op)))); } while (0); } while (0); > *op = VOID_getitem((char *)ip, aip); > } >} ># 1500 "numpy/core/src/multiarray/arraytypes.c.src" >static void >OBJECT_to_OBJECT(PyObject * *ip, PyObject **op, npy_intp n, PyArrayObject *aip, > PyArrayObject *(__NPY_UNUSED_TAGGEDaop) __attribute__ ((__unused__))) >{ > npy_intp i; > int skip = 1; > for (i = 0; i < n; i++, ip +=skip, op++) { > do { if ((*op) == ((void *)0)) ; else do { if ( --((PyObject*)(*op))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(*op)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(*op)))); } while (0); } while (0); > *op = OBJECT_getitem((char *)ip, aip); > } >} ># 1500 "numpy/core/src/multiarray/arraytypes.c.src" >static void >DATETIME_to_OBJECT(npy_datetime *ip, PyObject **op, npy_intp n, PyArrayObject *aip, > PyArrayObject *(__NPY_UNUSED_TAGGEDaop) __attribute__ ((__unused__))) >{ > npy_intp i; > int skip = 1; > for (i = 0; i < n; i++, ip +=skip, op++) { > do { if ((*op) == ((void *)0)) ; else do { if ( --((PyObject*)(*op))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(*op)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(*op)))); } while (0); } while (0); > *op = DATETIME_getitem((char *)ip, aip); > } >} ># 1500 "numpy/core/src/multiarray/arraytypes.c.src" >static void >TIMEDELTA_to_OBJECT(npy_timedelta *ip, PyObject **op, npy_intp n, PyArrayObject *aip, > PyArrayObject *(__NPY_UNUSED_TAGGEDaop) __attribute__ ((__unused__))) >{ > npy_intp i; > int skip = 1; > for (i = 0; i < n; i++, ip +=skip, op++) { > do { if ((*op) == ((void *)0)) ; else do { if ( --((PyObject*)(*op))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(*op)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(*op)))); } while (0); } while (0); > *op = TIMEDELTA_getitem((char *)ip, aip); > } >} ># 1550 "numpy/core/src/multiarray/arraytypes.c.src" >static void >OBJECT_to_BOOL(PyObject **ip, npy_bool *op, npy_intp n, > PyArrayObject *(__NPY_UNUSED_TAGGEDaip) __attribute__ ((__unused__)), PyArrayObject *aop) >{ > npy_intp i; > int skip = 1; > > for (i = 0; i < n; i++, ip++, op += skip) { > if (*ip == ((void *)0)) { > BOOL_setitem(((PyObject *) &_Py_ZeroStruct), (char *)op, aop); > } > else { > BOOL_setitem(*ip, (char *)op, aop); > } > } >} ># 1550 "numpy/core/src/multiarray/arraytypes.c.src" >static void >OBJECT_to_BYTE(PyObject **ip, npy_byte *op, npy_intp n, > PyArrayObject *(__NPY_UNUSED_TAGGEDaip) __attribute__ ((__unused__)), PyArrayObject *aop) >{ > npy_intp i; > int skip = 1; > > for (i = 0; i < n; i++, ip++, op += skip) { > if (*ip == ((void *)0)) { > BYTE_setitem(((PyObject *) &_Py_ZeroStruct), (char *)op, aop); > } > else { > BYTE_setitem(*ip, (char *)op, aop); > } > } >} ># 1550 "numpy/core/src/multiarray/arraytypes.c.src" >static void >OBJECT_to_UBYTE(PyObject **ip, npy_ubyte *op, npy_intp n, > PyArrayObject *(__NPY_UNUSED_TAGGEDaip) __attribute__ ((__unused__)), PyArrayObject *aop) >{ > npy_intp i; > int skip = 1; > > for (i = 0; i < n; i++, ip++, op += skip) { > if (*ip == ((void *)0)) { > UBYTE_setitem(((PyObject *) &_Py_ZeroStruct), (char *)op, aop); > } > else { > UBYTE_setitem(*ip, (char *)op, aop); > } > } >} ># 1550 "numpy/core/src/multiarray/arraytypes.c.src" >static void >OBJECT_to_SHORT(PyObject **ip, short *op, npy_intp n, > PyArrayObject *(__NPY_UNUSED_TAGGEDaip) __attribute__ ((__unused__)), PyArrayObject *aop) >{ > npy_intp i; > int skip = 1; > > for (i = 0; i < n; i++, ip++, op += skip) { > if (*ip == ((void *)0)) { > SHORT_setitem(((PyObject *) &_Py_ZeroStruct), (char *)op, aop); > } > else { > SHORT_setitem(*ip, (char *)op, aop); > } > } >} ># 1550 "numpy/core/src/multiarray/arraytypes.c.src" >static void >OBJECT_to_USHORT(PyObject **ip, npy_ushort *op, npy_intp n, > PyArrayObject *(__NPY_UNUSED_TAGGEDaip) __attribute__ ((__unused__)), PyArrayObject *aop) >{ > npy_intp i; > int skip = 1; > > for (i = 0; i < n; i++, ip++, op += skip) { > if (*ip == ((void *)0)) { > USHORT_setitem(((PyObject *) &_Py_ZeroStruct), (char *)op, aop); > } > else { > USHORT_setitem(*ip, (char *)op, aop); > } > } >} ># 1550 "numpy/core/src/multiarray/arraytypes.c.src" >static void >OBJECT_to_INT(PyObject **ip, int *op, npy_intp n, > PyArrayObject *(__NPY_UNUSED_TAGGEDaip) __attribute__ ((__unused__)), PyArrayObject *aop) >{ > npy_intp i; > int skip = 1; > > for (i = 0; i < n; i++, ip++, op += skip) { > if (*ip == ((void *)0)) { > INT_setitem(((PyObject *) &_Py_ZeroStruct), (char *)op, aop); > } > else { > INT_setitem(*ip, (char *)op, aop); > } > } >} ># 1550 "numpy/core/src/multiarray/arraytypes.c.src" >static void >OBJECT_to_UINT(PyObject **ip, npy_uint *op, npy_intp n, > PyArrayObject *(__NPY_UNUSED_TAGGEDaip) __attribute__ ((__unused__)), PyArrayObject *aop) >{ > npy_intp i; > int skip = 1; > > for (i = 0; i < n; i++, ip++, op += skip) { > if (*ip == ((void *)0)) { > UINT_setitem(((PyObject *) &_Py_ZeroStruct), (char *)op, aop); > } > else { > UINT_setitem(*ip, (char *)op, aop); > } > } >} ># 1550 "numpy/core/src/multiarray/arraytypes.c.src" >static void >OBJECT_to_LONG(PyObject **ip, long *op, npy_intp n, > PyArrayObject *(__NPY_UNUSED_TAGGEDaip) __attribute__ ((__unused__)), PyArrayObject *aop) >{ > npy_intp i; > int skip = 1; > > for (i = 0; i < n; i++, ip++, op += skip) { > if (*ip == ((void *)0)) { > LONG_setitem(((PyObject *) &_Py_ZeroStruct), (char *)op, aop); > } > else { > LONG_setitem(*ip, (char *)op, aop); > } > } >} ># 1550 "numpy/core/src/multiarray/arraytypes.c.src" >static void >OBJECT_to_ULONG(PyObject **ip, npy_ulong *op, npy_intp n, > PyArrayObject *(__NPY_UNUSED_TAGGEDaip) __attribute__ ((__unused__)), PyArrayObject *aop) >{ > npy_intp i; > int skip = 1; > > for (i = 0; i < n; i++, ip++, op += skip) { > if (*ip == ((void *)0)) { > ULONG_setitem(((PyObject *) &_Py_ZeroStruct), (char *)op, aop); > } > else { > ULONG_setitem(*ip, (char *)op, aop); > } > } >} ># 1550 "numpy/core/src/multiarray/arraytypes.c.src" >static void >OBJECT_to_LONGLONG(PyObject **ip, npy_longlong *op, npy_intp n, > PyArrayObject *(__NPY_UNUSED_TAGGEDaip) __attribute__ ((__unused__)), PyArrayObject *aop) >{ > npy_intp i; > int skip = 1; > > for (i = 0; i < n; i++, ip++, op += skip) { > if (*ip == ((void *)0)) { > LONGLONG_setitem(((PyObject *) &_Py_ZeroStruct), (char *)op, aop); > } > else { > LONGLONG_setitem(*ip, (char *)op, aop); > } > } >} ># 1550 "numpy/core/src/multiarray/arraytypes.c.src" >static void >OBJECT_to_ULONGLONG(PyObject **ip, npy_ulonglong *op, npy_intp n, > PyArrayObject *(__NPY_UNUSED_TAGGEDaip) __attribute__ ((__unused__)), PyArrayObject *aop) >{ > npy_intp i; > int skip = 1; > > for (i = 0; i < n; i++, ip++, op += skip) { > if (*ip == ((void *)0)) { > ULONGLONG_setitem(((PyObject *) &_Py_ZeroStruct), (char *)op, aop); > } > else { > ULONGLONG_setitem(*ip, (char *)op, aop); > } > } >} ># 1550 "numpy/core/src/multiarray/arraytypes.c.src" >static void >OBJECT_to_HALF(PyObject **ip, npy_half *op, npy_intp n, > PyArrayObject *(__NPY_UNUSED_TAGGEDaip) __attribute__ ((__unused__)), PyArrayObject *aop) >{ > npy_intp i; > int skip = 1; > > for (i = 0; i < n; i++, ip++, op += skip) { > if (*ip == ((void *)0)) { > HALF_setitem(((PyObject *) &_Py_ZeroStruct), (char *)op, aop); > } > else { > HALF_setitem(*ip, (char *)op, aop); > } > } >} ># 1550 "numpy/core/src/multiarray/arraytypes.c.src" >static void >OBJECT_to_FLOAT(PyObject **ip, float *op, npy_intp n, > PyArrayObject *(__NPY_UNUSED_TAGGEDaip) __attribute__ ((__unused__)), PyArrayObject *aop) >{ > npy_intp i; > int skip = 1; > > for (i = 0; i < n; i++, ip++, op += skip) { > if (*ip == ((void *)0)) { > FLOAT_setitem(((PyObject *) &_Py_ZeroStruct), (char *)op, aop); > } > else { > FLOAT_setitem(*ip, (char *)op, aop); > } > } >} ># 1550 "numpy/core/src/multiarray/arraytypes.c.src" >static void >OBJECT_to_DOUBLE(PyObject **ip, double *op, npy_intp n, > PyArrayObject *(__NPY_UNUSED_TAGGEDaip) __attribute__ ((__unused__)), PyArrayObject *aop) >{ > npy_intp i; > int skip = 1; > > for (i = 0; i < n; i++, ip++, op += skip) { > if (*ip == ((void *)0)) { > DOUBLE_setitem(((PyObject *) &_Py_ZeroStruct), (char *)op, aop); > } > else { > DOUBLE_setitem(*ip, (char *)op, aop); > } > } >} ># 1550 "numpy/core/src/multiarray/arraytypes.c.src" >static void >OBJECT_to_LONGDOUBLE(PyObject **ip, npy_longdouble *op, npy_intp n, > PyArrayObject *(__NPY_UNUSED_TAGGEDaip) __attribute__ ((__unused__)), PyArrayObject *aop) >{ > npy_intp i; > int skip = 1; > > for (i = 0; i < n; i++, ip++, op += skip) { > if (*ip == ((void *)0)) { > LONGDOUBLE_setitem(((PyObject *) &_Py_ZeroStruct), (char *)op, aop); > } > else { > LONGDOUBLE_setitem(*ip, (char *)op, aop); > } > } >} ># 1550 "numpy/core/src/multiarray/arraytypes.c.src" >static void >OBJECT_to_CFLOAT(PyObject **ip, npy_cfloat *op, npy_intp n, > PyArrayObject *(__NPY_UNUSED_TAGGEDaip) __attribute__ ((__unused__)), PyArrayObject *aop) >{ > npy_intp i; > int skip = 1; > > for (i = 0; i < n; i++, ip++, op += skip) { > if (*ip == ((void *)0)) { > CFLOAT_setitem(((PyObject *) &_Py_ZeroStruct), (char *)op, aop); > } > else { > CFLOAT_setitem(*ip, (char *)op, aop); > } > } >} ># 1550 "numpy/core/src/multiarray/arraytypes.c.src" >static void >OBJECT_to_CDOUBLE(PyObject **ip, npy_cdouble *op, npy_intp n, > PyArrayObject *(__NPY_UNUSED_TAGGEDaip) __attribute__ ((__unused__)), PyArrayObject *aop) >{ > npy_intp i; > int skip = 1; > > for (i = 0; i < n; i++, ip++, op += skip) { > if (*ip == ((void *)0)) { > CDOUBLE_setitem(((PyObject *) &_Py_ZeroStruct), (char *)op, aop); > } > else { > CDOUBLE_setitem(*ip, (char *)op, aop); > } > } >} ># 1550 "numpy/core/src/multiarray/arraytypes.c.src" >static void >OBJECT_to_CLONGDOUBLE(PyObject **ip, npy_clongdouble *op, npy_intp n, > PyArrayObject *(__NPY_UNUSED_TAGGEDaip) __attribute__ ((__unused__)), PyArrayObject *aop) >{ > npy_intp i; > int skip = 1; > > for (i = 0; i < n; i++, ip++, op += skip) { > if (*ip == ((void *)0)) { > CLONGDOUBLE_setitem(((PyObject *) &_Py_ZeroStruct), (char *)op, aop); > } > else { > CLONGDOUBLE_setitem(*ip, (char *)op, aop); > } > } >} ># 1550 "numpy/core/src/multiarray/arraytypes.c.src" >static void >OBJECT_to_STRING(PyObject **ip, char *op, npy_intp n, > PyArrayObject *(aip), PyArrayObject *aop) >{ > npy_intp i; > int skip = aop->descr->elsize; > > for (i = 0; i < n; i++, ip++, op += skip) { > if (*ip == ((void *)0)) { > STRING_setitem(((PyObject *) &_Py_ZeroStruct), (char *)op, aop); > } > else { > STRING_setitem(*ip, (char *)op, aop); > } > } >} ># 1550 "numpy/core/src/multiarray/arraytypes.c.src" >static void >OBJECT_to_UNICODE(PyObject **ip, char *op, npy_intp n, > PyArrayObject *(aip), PyArrayObject *aop) >{ > npy_intp i; > int skip = aop->descr->elsize; > > for (i = 0; i < n; i++, ip++, op += skip) { > if (*ip == ((void *)0)) { > UNICODE_setitem(((PyObject *) &_Py_ZeroStruct), (char *)op, aop); > } > else { > UNICODE_setitem(*ip, (char *)op, aop); > } > } >} ># 1550 "numpy/core/src/multiarray/arraytypes.c.src" >static void >OBJECT_to_VOID(PyObject **ip, char *op, npy_intp n, > PyArrayObject *(aip), PyArrayObject *aop) >{ > npy_intp i; > int skip = aop->descr->elsize; > > for (i = 0; i < n; i++, ip++, op += skip) { > if (*ip == ((void *)0)) { > VOID_setitem(((PyObject *) &_Py_ZeroStruct), (char *)op, aop); > } > else { > VOID_setitem(*ip, (char *)op, aop); > } > } >} ># 1550 "numpy/core/src/multiarray/arraytypes.c.src" >static void >OBJECT_to_DATETIME(PyObject **ip, npy_datetime *op, npy_intp n, > PyArrayObject *(__NPY_UNUSED_TAGGEDaip) __attribute__ ((__unused__)), PyArrayObject *aop) >{ > npy_intp i; > int skip = 1; > > for (i = 0; i < n; i++, ip++, op += skip) { > if (*ip == ((void *)0)) { > DATETIME_setitem(((PyObject *) &_Py_ZeroStruct), (char *)op, aop); > } > else { > DATETIME_setitem(*ip, (char *)op, aop); > } > } >} ># 1550 "numpy/core/src/multiarray/arraytypes.c.src" >static void >OBJECT_to_TIMEDELTA(PyObject **ip, npy_timedelta *op, npy_intp n, > PyArrayObject *(__NPY_UNUSED_TAGGEDaip) __attribute__ ((__unused__)), PyArrayObject *aop) >{ > npy_intp i; > int skip = 1; > > for (i = 0; i < n; i++, ip++, op += skip) { > if (*ip == ((void *)0)) { > TIMEDELTA_setitem(((PyObject *) &_Py_ZeroStruct), (char *)op, aop); > } > else { > TIMEDELTA_setitem(*ip, (char *)op, aop); > } > } >} ># 1579 "numpy/core/src/multiarray/arraytypes.c.src" >static void >STRING_to_BOOL(char *ip, npy_bool *op, npy_intp n, PyArrayObject *aip, > PyArrayObject *aop) >{ > npy_intp i; > PyObject *temp = ((void *)0); > int skip = aip->descr->elsize; > int oskip = 1; > > for (i = 0; i < n; i++, ip+=skip, op+=oskip) { > temp = STRING_getitem((char *)ip, aip); > if (temp == ((void *)0)) { > return; > } > > > { > PyObject *new, *args; > > args = _Py_BuildValue_SizeT("(N)", temp); > > > > new = PyInt_Type.tp_new(&PyInt_Type, args, ((void *)0)); > > > > do { if ( --((PyObject*)(args))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(args)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(args)))); } while (0); > temp = new; > if (temp == ((void *)0)) { > return; > } > } > > if (BOOL_setitem(temp,(char *)op, aop)) { > do { if ( --((PyObject*)(temp))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(temp)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(temp)))); } while (0); > return; > } > do { if ( --((PyObject*)(temp))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(temp)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(temp)))); } while (0); > } >} ># 1579 "numpy/core/src/multiarray/arraytypes.c.src" >static void >STRING_to_BYTE(char *ip, npy_byte *op, npy_intp n, PyArrayObject *aip, > PyArrayObject *aop) >{ > npy_intp i; > PyObject *temp = ((void *)0); > int skip = aip->descr->elsize; > int oskip = 1; > > for (i = 0; i < n; i++, ip+=skip, op+=oskip) { > temp = STRING_getitem((char *)ip, aip); > if (temp == ((void *)0)) { > return; > } > > > { > PyObject *new, *args; > > args = _Py_BuildValue_SizeT("(N)", temp); > > > > new = PyInt_Type.tp_new(&PyInt_Type, args, ((void *)0)); > > > > do { if ( --((PyObject*)(args))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(args)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(args)))); } while (0); > temp = new; > if (temp == ((void *)0)) { > return; > } > } > > if (BYTE_setitem(temp,(char *)op, aop)) { > do { if ( --((PyObject*)(temp))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(temp)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(temp)))); } while (0); > return; > } > do { if ( --((PyObject*)(temp))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(temp)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(temp)))); } while (0); > } >} ># 1579 "numpy/core/src/multiarray/arraytypes.c.src" >static void >STRING_to_UBYTE(char *ip, npy_ubyte *op, npy_intp n, PyArrayObject *aip, > PyArrayObject *aop) >{ > npy_intp i; > PyObject *temp = ((void *)0); > int skip = aip->descr->elsize; > int oskip = 1; > > for (i = 0; i < n; i++, ip+=skip, op+=oskip) { > temp = STRING_getitem((char *)ip, aip); > if (temp == ((void *)0)) { > return; > } > > > { > PyObject *new, *args; > > args = _Py_BuildValue_SizeT("(N)", temp); > > > > new = PyInt_Type.tp_new(&PyInt_Type, args, ((void *)0)); > > > > do { if ( --((PyObject*)(args))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(args)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(args)))); } while (0); > temp = new; > if (temp == ((void *)0)) { > return; > } > } > > if (UBYTE_setitem(temp,(char *)op, aop)) { > do { if ( --((PyObject*)(temp))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(temp)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(temp)))); } while (0); > return; > } > do { if ( --((PyObject*)(temp))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(temp)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(temp)))); } while (0); > } >} ># 1579 "numpy/core/src/multiarray/arraytypes.c.src" >static void >STRING_to_SHORT(char *ip, short *op, npy_intp n, PyArrayObject *aip, > PyArrayObject *aop) >{ > npy_intp i; > PyObject *temp = ((void *)0); > int skip = aip->descr->elsize; > int oskip = 1; > > for (i = 0; i < n; i++, ip+=skip, op+=oskip) { > temp = STRING_getitem((char *)ip, aip); > if (temp == ((void *)0)) { > return; > } > > > { > PyObject *new, *args; > > args = _Py_BuildValue_SizeT("(N)", temp); > > > > new = PyInt_Type.tp_new(&PyInt_Type, args, ((void *)0)); > > > > do { if ( --((PyObject*)(args))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(args)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(args)))); } while (0); > temp = new; > if (temp == ((void *)0)) { > return; > } > } > > if (SHORT_setitem(temp,(char *)op, aop)) { > do { if ( --((PyObject*)(temp))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(temp)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(temp)))); } while (0); > return; > } > do { if ( --((PyObject*)(temp))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(temp)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(temp)))); } while (0); > } >} ># 1579 "numpy/core/src/multiarray/arraytypes.c.src" >static void >STRING_to_USHORT(char *ip, npy_ushort *op, npy_intp n, PyArrayObject *aip, > PyArrayObject *aop) >{ > npy_intp i; > PyObject *temp = ((void *)0); > int skip = aip->descr->elsize; > int oskip = 1; > > for (i = 0; i < n; i++, ip+=skip, op+=oskip) { > temp = STRING_getitem((char *)ip, aip); > if (temp == ((void *)0)) { > return; > } > > > { > PyObject *new, *args; > > args = _Py_BuildValue_SizeT("(N)", temp); > > > > new = PyInt_Type.tp_new(&PyInt_Type, args, ((void *)0)); > > > > do { if ( --((PyObject*)(args))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(args)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(args)))); } while (0); > temp = new; > if (temp == ((void *)0)) { > return; > } > } > > if (USHORT_setitem(temp,(char *)op, aop)) { > do { if ( --((PyObject*)(temp))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(temp)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(temp)))); } while (0); > return; > } > do { if ( --((PyObject*)(temp))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(temp)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(temp)))); } while (0); > } >} ># 1579 "numpy/core/src/multiarray/arraytypes.c.src" >static void >STRING_to_INT(char *ip, int *op, npy_intp n, PyArrayObject *aip, > PyArrayObject *aop) >{ > npy_intp i; > PyObject *temp = ((void *)0); > int skip = aip->descr->elsize; > int oskip = 1; > > for (i = 0; i < n; i++, ip+=skip, op+=oskip) { > temp = STRING_getitem((char *)ip, aip); > if (temp == ((void *)0)) { > return; > } > > > { > PyObject *new, *args; > > args = _Py_BuildValue_SizeT("(N)", temp); > > > > new = PyInt_Type.tp_new(&PyInt_Type, args, ((void *)0)); > > > > do { if ( --((PyObject*)(args))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(args)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(args)))); } while (0); > temp = new; > if (temp == ((void *)0)) { > return; > } > } > > if (INT_setitem(temp,(char *)op, aop)) { > do { if ( --((PyObject*)(temp))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(temp)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(temp)))); } while (0); > return; > } > do { if ( --((PyObject*)(temp))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(temp)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(temp)))); } while (0); > } >} ># 1579 "numpy/core/src/multiarray/arraytypes.c.src" >static void >STRING_to_UINT(char *ip, npy_uint *op, npy_intp n, PyArrayObject *aip, > PyArrayObject *aop) >{ > npy_intp i; > PyObject *temp = ((void *)0); > int skip = aip->descr->elsize; > int oskip = 1; > > for (i = 0; i < n; i++, ip+=skip, op+=oskip) { > temp = STRING_getitem((char *)ip, aip); > if (temp == ((void *)0)) { > return; > } > > > { > PyObject *new, *args; > > args = _Py_BuildValue_SizeT("(N)", temp); > > > > new = PyInt_Type.tp_new(&PyInt_Type, args, ((void *)0)); > > > > do { if ( --((PyObject*)(args))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(args)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(args)))); } while (0); > temp = new; > if (temp == ((void *)0)) { > return; > } > } > > if (UINT_setitem(temp,(char *)op, aop)) { > do { if ( --((PyObject*)(temp))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(temp)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(temp)))); } while (0); > return; > } > do { if ( --((PyObject*)(temp))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(temp)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(temp)))); } while (0); > } >} ># 1579 "numpy/core/src/multiarray/arraytypes.c.src" >static void >STRING_to_LONG(char *ip, long *op, npy_intp n, PyArrayObject *aip, > PyArrayObject *aop) >{ > npy_intp i; > PyObject *temp = ((void *)0); > int skip = aip->descr->elsize; > int oskip = 1; > > for (i = 0; i < n; i++, ip+=skip, op+=oskip) { > temp = STRING_getitem((char *)ip, aip); > if (temp == ((void *)0)) { > return; > } > > > { > PyObject *new, *args; > > args = _Py_BuildValue_SizeT("(N)", temp); > > > > new = PyInt_Type.tp_new(&PyInt_Type, args, ((void *)0)); > > > > do { if ( --((PyObject*)(args))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(args)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(args)))); } while (0); > temp = new; > if (temp == ((void *)0)) { > return; > } > } > > if (LONG_setitem(temp,(char *)op, aop)) { > do { if ( --((PyObject*)(temp))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(temp)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(temp)))); } while (0); > return; > } > do { if ( --((PyObject*)(temp))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(temp)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(temp)))); } while (0); > } >} ># 1579 "numpy/core/src/multiarray/arraytypes.c.src" >static void >STRING_to_ULONG(char *ip, npy_ulong *op, npy_intp n, PyArrayObject *aip, > PyArrayObject *aop) >{ > npy_intp i; > PyObject *temp = ((void *)0); > int skip = aip->descr->elsize; > int oskip = 1; > > for (i = 0; i < n; i++, ip+=skip, op+=oskip) { > temp = STRING_getitem((char *)ip, aip); > if (temp == ((void *)0)) { > return; > } > > > { > PyObject *new, *args; > > args = _Py_BuildValue_SizeT("(N)", temp); > > > > new = PyInt_Type.tp_new(&PyInt_Type, args, ((void *)0)); > > > > do { if ( --((PyObject*)(args))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(args)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(args)))); } while (0); > temp = new; > if (temp == ((void *)0)) { > return; > } > } > > if (ULONG_setitem(temp,(char *)op, aop)) { > do { if ( --((PyObject*)(temp))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(temp)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(temp)))); } while (0); > return; > } > do { if ( --((PyObject*)(temp))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(temp)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(temp)))); } while (0); > } >} ># 1579 "numpy/core/src/multiarray/arraytypes.c.src" >static void >STRING_to_LONGLONG(char *ip, npy_longlong *op, npy_intp n, PyArrayObject *aip, > PyArrayObject *aop) >{ > npy_intp i; > PyObject *temp = ((void *)0); > int skip = aip->descr->elsize; > int oskip = 1; > > for (i = 0; i < n; i++, ip+=skip, op+=oskip) { > temp = STRING_getitem((char *)ip, aip); > if (temp == ((void *)0)) { > return; > } > > > { > PyObject *new, *args; > > args = _Py_BuildValue_SizeT("(N)", temp); > > > > new = PyLong_Type.tp_new(&PyLong_Type, args, ((void *)0)); > > > > do { if ( --((PyObject*)(args))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(args)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(args)))); } while (0); > temp = new; > if (temp == ((void *)0)) { > return; > } > } > > if (LONGLONG_setitem(temp,(char *)op, aop)) { > do { if ( --((PyObject*)(temp))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(temp)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(temp)))); } while (0); > return; > } > do { if ( --((PyObject*)(temp))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(temp)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(temp)))); } while (0); > } >} ># 1579 "numpy/core/src/multiarray/arraytypes.c.src" >static void >STRING_to_ULONGLONG(char *ip, npy_ulonglong *op, npy_intp n, PyArrayObject *aip, > PyArrayObject *aop) >{ > npy_intp i; > PyObject *temp = ((void *)0); > int skip = aip->descr->elsize; > int oskip = 1; > > for (i = 0; i < n; i++, ip+=skip, op+=oskip) { > temp = STRING_getitem((char *)ip, aip); > if (temp == ((void *)0)) { > return; > } > > > { > PyObject *new, *args; > > args = _Py_BuildValue_SizeT("(N)", temp); > > > > new = PyLong_Type.tp_new(&PyLong_Type, args, ((void *)0)); > > > > do { if ( --((PyObject*)(args))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(args)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(args)))); } while (0); > temp = new; > if (temp == ((void *)0)) { > return; > } > } > > if (ULONGLONG_setitem(temp,(char *)op, aop)) { > do { if ( --((PyObject*)(temp))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(temp)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(temp)))); } while (0); > return; > } > do { if ( --((PyObject*)(temp))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(temp)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(temp)))); } while (0); > } >} ># 1579 "numpy/core/src/multiarray/arraytypes.c.src" >static void >STRING_to_HALF(char *ip, npy_half *op, npy_intp n, PyArrayObject *aip, > PyArrayObject *aop) >{ > npy_intp i; > PyObject *temp = ((void *)0); > int skip = aip->descr->elsize; > int oskip = 1; > > for (i = 0; i < n; i++, ip+=skip, op+=oskip) { > temp = STRING_getitem((char *)ip, aip); > if (temp == ((void *)0)) { > return; > } > > > { > PyObject *new, *args; > > args = _Py_BuildValue_SizeT("(N)", temp); > > > > new = PyFloat_Type.tp_new(&PyFloat_Type, args, ((void *)0)); > > > > do { if ( --((PyObject*)(args))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(args)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(args)))); } while (0); > temp = new; > if (temp == ((void *)0)) { > return; > } > } > > if (HALF_setitem(temp,(char *)op, aop)) { > do { if ( --((PyObject*)(temp))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(temp)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(temp)))); } while (0); > return; > } > do { if ( --((PyObject*)(temp))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(temp)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(temp)))); } while (0); > } >} ># 1579 "numpy/core/src/multiarray/arraytypes.c.src" >static void >STRING_to_FLOAT(char *ip, float *op, npy_intp n, PyArrayObject *aip, > PyArrayObject *aop) >{ > npy_intp i; > PyObject *temp = ((void *)0); > int skip = aip->descr->elsize; > int oskip = 1; > > for (i = 0; i < n; i++, ip+=skip, op+=oskip) { > temp = STRING_getitem((char *)ip, aip); > if (temp == ((void *)0)) { > return; > } > > > { > PyObject *new, *args; > > args = _Py_BuildValue_SizeT("(N)", temp); > > > > new = PyFloat_Type.tp_new(&PyFloat_Type, args, ((void *)0)); > > > > do { if ( --((PyObject*)(args))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(args)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(args)))); } while (0); > temp = new; > if (temp == ((void *)0)) { > return; > } > } > > if (FLOAT_setitem(temp,(char *)op, aop)) { > do { if ( --((PyObject*)(temp))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(temp)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(temp)))); } while (0); > return; > } > do { if ( --((PyObject*)(temp))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(temp)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(temp)))); } while (0); > } >} ># 1579 "numpy/core/src/multiarray/arraytypes.c.src" >static void >STRING_to_DOUBLE(char *ip, double *op, npy_intp n, PyArrayObject *aip, > PyArrayObject *aop) >{ > npy_intp i; > PyObject *temp = ((void *)0); > int skip = aip->descr->elsize; > int oskip = 1; > > for (i = 0; i < n; i++, ip+=skip, op+=oskip) { > temp = STRING_getitem((char *)ip, aip); > if (temp == ((void *)0)) { > return; > } > > > { > PyObject *new, *args; > > args = _Py_BuildValue_SizeT("(N)", temp); > > > > new = PyFloat_Type.tp_new(&PyFloat_Type, args, ((void *)0)); > > > > do { if ( --((PyObject*)(args))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(args)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(args)))); } while (0); > temp = new; > if (temp == ((void *)0)) { > return; > } > } > > if (DOUBLE_setitem(temp,(char *)op, aop)) { > do { if ( --((PyObject*)(temp))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(temp)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(temp)))); } while (0); > return; > } > do { if ( --((PyObject*)(temp))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(temp)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(temp)))); } while (0); > } >} ># 1579 "numpy/core/src/multiarray/arraytypes.c.src" >static void >STRING_to_LONGDOUBLE(char *ip, npy_longdouble *op, npy_intp n, PyArrayObject *aip, > PyArrayObject *aop) >{ > npy_intp i; > PyObject *temp = ((void *)0); > int skip = aip->descr->elsize; > int oskip = 1; > > for (i = 0; i < n; i++, ip+=skip, op+=oskip) { > temp = STRING_getitem((char *)ip, aip); > if (temp == ((void *)0)) { > return; > } > > > { > PyObject *new, *args; > > args = _Py_BuildValue_SizeT("(N)", temp); > > > > new = PyFloat_Type.tp_new(&PyFloat_Type, args, ((void *)0)); > > > > do { if ( --((PyObject*)(args))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(args)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(args)))); } while (0); > temp = new; > if (temp == ((void *)0)) { > return; > } > } > > if (LONGDOUBLE_setitem(temp,(char *)op, aop)) { > do { if ( --((PyObject*)(temp))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(temp)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(temp)))); } while (0); > return; > } > do { if ( --((PyObject*)(temp))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(temp)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(temp)))); } while (0); > } >} ># 1579 "numpy/core/src/multiarray/arraytypes.c.src" >static void >STRING_to_CFLOAT(char *ip, npy_cfloat *op, npy_intp n, PyArrayObject *aip, > PyArrayObject *aop) >{ > npy_intp i; > PyObject *temp = ((void *)0); > int skip = aip->descr->elsize; > int oskip = 1; > > for (i = 0; i < n; i++, ip+=skip, op+=oskip) { > temp = STRING_getitem((char *)ip, aip); > if (temp == ((void *)0)) { > return; > } > > > { > PyObject *new, *args; > > args = _Py_BuildValue_SizeT("(N)", temp); > > > > new = PyComplex_Type.tp_new(&PyComplex_Type, args, ((void *)0)); > > > > do { if ( --((PyObject*)(args))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(args)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(args)))); } while (0); > temp = new; > if (temp == ((void *)0)) { > return; > } > } > > if (CFLOAT_setitem(temp,(char *)op, aop)) { > do { if ( --((PyObject*)(temp))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(temp)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(temp)))); } while (0); > return; > } > do { if ( --((PyObject*)(temp))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(temp)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(temp)))); } while (0); > } >} ># 1579 "numpy/core/src/multiarray/arraytypes.c.src" >static void >STRING_to_CDOUBLE(char *ip, npy_cdouble *op, npy_intp n, PyArrayObject *aip, > PyArrayObject *aop) >{ > npy_intp i; > PyObject *temp = ((void *)0); > int skip = aip->descr->elsize; > int oskip = 1; > > for (i = 0; i < n; i++, ip+=skip, op+=oskip) { > temp = STRING_getitem((char *)ip, aip); > if (temp == ((void *)0)) { > return; > } > > > { > PyObject *new, *args; > > args = _Py_BuildValue_SizeT("(N)", temp); > > > > new = PyComplex_Type.tp_new(&PyComplex_Type, args, ((void *)0)); > > > > do { if ( --((PyObject*)(args))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(args)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(args)))); } while (0); > temp = new; > if (temp == ((void *)0)) { > return; > } > } > > if (CDOUBLE_setitem(temp,(char *)op, aop)) { > do { if ( --((PyObject*)(temp))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(temp)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(temp)))); } while (0); > return; > } > do { if ( --((PyObject*)(temp))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(temp)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(temp)))); } while (0); > } >} ># 1579 "numpy/core/src/multiarray/arraytypes.c.src" >static void >STRING_to_CLONGDOUBLE(char *ip, npy_clongdouble *op, npy_intp n, PyArrayObject *aip, > PyArrayObject *aop) >{ > npy_intp i; > PyObject *temp = ((void *)0); > int skip = aip->descr->elsize; > int oskip = 1; > > for (i = 0; i < n; i++, ip+=skip, op+=oskip) { > temp = STRING_getitem((char *)ip, aip); > if (temp == ((void *)0)) { > return; > } > > > { > PyObject *new, *args; > > args = _Py_BuildValue_SizeT("(N)", temp); > > > > new = PyComplex_Type.tp_new(&PyComplex_Type, args, ((void *)0)); > > > > do { if ( --((PyObject*)(args))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(args)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(args)))); } while (0); > temp = new; > if (temp == ((void *)0)) { > return; > } > } > > if (CLONGDOUBLE_setitem(temp,(char *)op, aop)) { > do { if ( --((PyObject*)(temp))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(temp)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(temp)))); } while (0); > return; > } > do { if ( --((PyObject*)(temp))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(temp)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(temp)))); } while (0); > } >} ># 1579 "numpy/core/src/multiarray/arraytypes.c.src" >static void >STRING_to_STRING(char *ip, char *op, npy_intp n, PyArrayObject *aip, > PyArrayObject *aop) >{ > npy_intp i; > PyObject *temp = ((void *)0); > int skip = aip->descr->elsize; > int oskip = aop->descr->elsize; > > for (i = 0; i < n; i++, ip+=skip, op+=oskip) { > temp = STRING_getitem((char *)ip, aip); > if (temp == ((void *)0)) { > return; > } ># 1613 "numpy/core/src/multiarray/arraytypes.c.src" > if (STRING_setitem(temp,(char *)op, aop)) { > do { if ( --((PyObject*)(temp))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(temp)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(temp)))); } while (0); > return; > } > do { if ( --((PyObject*)(temp))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(temp)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(temp)))); } while (0); > } >} ># 1579 "numpy/core/src/multiarray/arraytypes.c.src" >static void >STRING_to_UNICODE(char *ip, char *op, npy_intp n, PyArrayObject *aip, > PyArrayObject *aop) >{ > npy_intp i; > PyObject *temp = ((void *)0); > int skip = aip->descr->elsize; > int oskip = aop->descr->elsize; > > for (i = 0; i < n; i++, ip+=skip, op+=oskip) { > temp = STRING_getitem((char *)ip, aip); > if (temp == ((void *)0)) { > return; > } ># 1613 "numpy/core/src/multiarray/arraytypes.c.src" > if (UNICODE_setitem(temp,(char *)op, aop)) { > do { if ( --((PyObject*)(temp))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(temp)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(temp)))); } while (0); > return; > } > do { if ( --((PyObject*)(temp))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(temp)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(temp)))); } while (0); > } >} ># 1579 "numpy/core/src/multiarray/arraytypes.c.src" >static void >STRING_to_VOID(char *ip, char *op, npy_intp n, PyArrayObject *aip, > PyArrayObject *aop) >{ > npy_intp i; > PyObject *temp = ((void *)0); > int skip = aip->descr->elsize; > int oskip = aop->descr->elsize; > > for (i = 0; i < n; i++, ip+=skip, op+=oskip) { > temp = STRING_getitem((char *)ip, aip); > if (temp == ((void *)0)) { > return; > } ># 1613 "numpy/core/src/multiarray/arraytypes.c.src" > if (VOID_setitem(temp,(char *)op, aop)) { > do { if ( --((PyObject*)(temp))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(temp)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(temp)))); } while (0); > return; > } > do { if ( --((PyObject*)(temp))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(temp)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(temp)))); } while (0); > } >} ># 1579 "numpy/core/src/multiarray/arraytypes.c.src" >static void >STRING_to_DATETIME(char *ip, npy_datetime *op, npy_intp n, PyArrayObject *aip, > PyArrayObject *aop) >{ > npy_intp i; > PyObject *temp = ((void *)0); > int skip = aip->descr->elsize; > int oskip = 1; > > for (i = 0; i < n; i++, ip+=skip, op+=oskip) { > temp = STRING_getitem((char *)ip, aip); > if (temp == ((void *)0)) { > return; > } > > > { > PyObject *new, *args; > > args = _Py_BuildValue_SizeT("(N)", temp); > > > > new = PyLong_Type.tp_new(&PyLong_Type, args, ((void *)0)); > > > > do { if ( --((PyObject*)(args))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(args)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(args)))); } while (0); > temp = new; > if (temp == ((void *)0)) { > return; > } > } > > if (DATETIME_setitem(temp,(char *)op, aop)) { > do { if ( --((PyObject*)(temp))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(temp)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(temp)))); } while (0); > return; > } > do { if ( --((PyObject*)(temp))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(temp)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(temp)))); } while (0); > } >} ># 1579 "numpy/core/src/multiarray/arraytypes.c.src" >static void >STRING_to_TIMEDELTA(char *ip, npy_timedelta *op, npy_intp n, PyArrayObject *aip, > PyArrayObject *aop) >{ > npy_intp i; > PyObject *temp = ((void *)0); > int skip = aip->descr->elsize; > int oskip = 1; > > for (i = 0; i < n; i++, ip+=skip, op+=oskip) { > temp = STRING_getitem((char *)ip, aip); > if (temp == ((void *)0)) { > return; > } > > > { > PyObject *new, *args; > > args = _Py_BuildValue_SizeT("(N)", temp); > > > > new = PyLong_Type.tp_new(&PyLong_Type, args, ((void *)0)); > > > > do { if ( --((PyObject*)(args))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(args)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(args)))); } while (0); > temp = new; > if (temp == ((void *)0)) { > return; > } > } > > if (TIMEDELTA_setitem(temp,(char *)op, aop)) { > do { if ( --((PyObject*)(temp))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(temp)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(temp)))); } while (0); > return; > } > do { if ( --((PyObject*)(temp))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(temp)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(temp)))); } while (0); > } >} ># 1579 "numpy/core/src/multiarray/arraytypes.c.src" >static void >UNICODE_to_BOOL(char *ip, npy_bool *op, npy_intp n, PyArrayObject *aip, > PyArrayObject *aop) >{ > npy_intp i; > PyObject *temp = ((void *)0); > int skip = aip->descr->elsize; > int oskip = 1; > > for (i = 0; i < n; i++, ip+=skip, op+=oskip) { > temp = UNICODE_getitem((char *)ip, aip); > if (temp == ((void *)0)) { > return; > } > > > { > PyObject *new, *args; > > args = _Py_BuildValue_SizeT("(N)", temp); > > > > new = PyInt_Type.tp_new(&PyInt_Type, args, ((void *)0)); > > > > do { if ( --((PyObject*)(args))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(args)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(args)))); } while (0); > temp = new; > if (temp == ((void *)0)) { > return; > } > } > > if (BOOL_setitem(temp,(char *)op, aop)) { > do { if ( --((PyObject*)(temp))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(temp)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(temp)))); } while (0); > return; > } > do { if ( --((PyObject*)(temp))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(temp)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(temp)))); } while (0); > } >} ># 1579 "numpy/core/src/multiarray/arraytypes.c.src" >static void >UNICODE_to_BYTE(char *ip, npy_byte *op, npy_intp n, PyArrayObject *aip, > PyArrayObject *aop) >{ > npy_intp i; > PyObject *temp = ((void *)0); > int skip = aip->descr->elsize; > int oskip = 1; > > for (i = 0; i < n; i++, ip+=skip, op+=oskip) { > temp = UNICODE_getitem((char *)ip, aip); > if (temp == ((void *)0)) { > return; > } > > > { > PyObject *new, *args; > > args = _Py_BuildValue_SizeT("(N)", temp); > > > > new = PyInt_Type.tp_new(&PyInt_Type, args, ((void *)0)); > > > > do { if ( --((PyObject*)(args))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(args)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(args)))); } while (0); > temp = new; > if (temp == ((void *)0)) { > return; > } > } > > if (BYTE_setitem(temp,(char *)op, aop)) { > do { if ( --((PyObject*)(temp))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(temp)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(temp)))); } while (0); > return; > } > do { if ( --((PyObject*)(temp))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(temp)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(temp)))); } while (0); > } >} ># 1579 "numpy/core/src/multiarray/arraytypes.c.src" >static void >UNICODE_to_UBYTE(char *ip, npy_ubyte *op, npy_intp n, PyArrayObject *aip, > PyArrayObject *aop) >{ > npy_intp i; > PyObject *temp = ((void *)0); > int skip = aip->descr->elsize; > int oskip = 1; > > for (i = 0; i < n; i++, ip+=skip, op+=oskip) { > temp = UNICODE_getitem((char *)ip, aip); > if (temp == ((void *)0)) { > return; > } > > > { > PyObject *new, *args; > > args = _Py_BuildValue_SizeT("(N)", temp); > > > > new = PyInt_Type.tp_new(&PyInt_Type, args, ((void *)0)); > > > > do { if ( --((PyObject*)(args))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(args)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(args)))); } while (0); > temp = new; > if (temp == ((void *)0)) { > return; > } > } > > if (UBYTE_setitem(temp,(char *)op, aop)) { > do { if ( --((PyObject*)(temp))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(temp)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(temp)))); } while (0); > return; > } > do { if ( --((PyObject*)(temp))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(temp)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(temp)))); } while (0); > } >} ># 1579 "numpy/core/src/multiarray/arraytypes.c.src" >static void >UNICODE_to_SHORT(char *ip, short *op, npy_intp n, PyArrayObject *aip, > PyArrayObject *aop) >{ > npy_intp i; > PyObject *temp = ((void *)0); > int skip = aip->descr->elsize; > int oskip = 1; > > for (i = 0; i < n; i++, ip+=skip, op+=oskip) { > temp = UNICODE_getitem((char *)ip, aip); > if (temp == ((void *)0)) { > return; > } > > > { > PyObject *new, *args; > > args = _Py_BuildValue_SizeT("(N)", temp); > > > > new = PyInt_Type.tp_new(&PyInt_Type, args, ((void *)0)); > > > > do { if ( --((PyObject*)(args))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(args)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(args)))); } while (0); > temp = new; > if (temp == ((void *)0)) { > return; > } > } > > if (SHORT_setitem(temp,(char *)op, aop)) { > do { if ( --((PyObject*)(temp))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(temp)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(temp)))); } while (0); > return; > } > do { if ( --((PyObject*)(temp))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(temp)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(temp)))); } while (0); > } >} ># 1579 "numpy/core/src/multiarray/arraytypes.c.src" >static void >UNICODE_to_USHORT(char *ip, npy_ushort *op, npy_intp n, PyArrayObject *aip, > PyArrayObject *aop) >{ > npy_intp i; > PyObject *temp = ((void *)0); > int skip = aip->descr->elsize; > int oskip = 1; > > for (i = 0; i < n; i++, ip+=skip, op+=oskip) { > temp = UNICODE_getitem((char *)ip, aip); > if (temp == ((void *)0)) { > return; > } > > > { > PyObject *new, *args; > > args = _Py_BuildValue_SizeT("(N)", temp); > > > > new = PyInt_Type.tp_new(&PyInt_Type, args, ((void *)0)); > > > > do { if ( --((PyObject*)(args))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(args)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(args)))); } while (0); > temp = new; > if (temp == ((void *)0)) { > return; > } > } > > if (USHORT_setitem(temp,(char *)op, aop)) { > do { if ( --((PyObject*)(temp))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(temp)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(temp)))); } while (0); > return; > } > do { if ( --((PyObject*)(temp))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(temp)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(temp)))); } while (0); > } >} ># 1579 "numpy/core/src/multiarray/arraytypes.c.src" >static void >UNICODE_to_INT(char *ip, int *op, npy_intp n, PyArrayObject *aip, > PyArrayObject *aop) >{ > npy_intp i; > PyObject *temp = ((void *)0); > int skip = aip->descr->elsize; > int oskip = 1; > > for (i = 0; i < n; i++, ip+=skip, op+=oskip) { > temp = UNICODE_getitem((char *)ip, aip); > if (temp == ((void *)0)) { > return; > } > > > { > PyObject *new, *args; > > args = _Py_BuildValue_SizeT("(N)", temp); > > > > new = PyInt_Type.tp_new(&PyInt_Type, args, ((void *)0)); > > > > do { if ( --((PyObject*)(args))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(args)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(args)))); } while (0); > temp = new; > if (temp == ((void *)0)) { > return; > } > } > > if (INT_setitem(temp,(char *)op, aop)) { > do { if ( --((PyObject*)(temp))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(temp)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(temp)))); } while (0); > return; > } > do { if ( --((PyObject*)(temp))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(temp)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(temp)))); } while (0); > } >} ># 1579 "numpy/core/src/multiarray/arraytypes.c.src" >static void >UNICODE_to_UINT(char *ip, npy_uint *op, npy_intp n, PyArrayObject *aip, > PyArrayObject *aop) >{ > npy_intp i; > PyObject *temp = ((void *)0); > int skip = aip->descr->elsize; > int oskip = 1; > > for (i = 0; i < n; i++, ip+=skip, op+=oskip) { > temp = UNICODE_getitem((char *)ip, aip); > if (temp == ((void *)0)) { > return; > } > > > { > PyObject *new, *args; > > args = _Py_BuildValue_SizeT("(N)", temp); > > > > new = PyInt_Type.tp_new(&PyInt_Type, args, ((void *)0)); > > > > do { if ( --((PyObject*)(args))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(args)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(args)))); } while (0); > temp = new; > if (temp == ((void *)0)) { > return; > } > } > > if (UINT_setitem(temp,(char *)op, aop)) { > do { if ( --((PyObject*)(temp))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(temp)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(temp)))); } while (0); > return; > } > do { if ( --((PyObject*)(temp))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(temp)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(temp)))); } while (0); > } >} ># 1579 "numpy/core/src/multiarray/arraytypes.c.src" >static void >UNICODE_to_LONG(char *ip, long *op, npy_intp n, PyArrayObject *aip, > PyArrayObject *aop) >{ > npy_intp i; > PyObject *temp = ((void *)0); > int skip = aip->descr->elsize; > int oskip = 1; > > for (i = 0; i < n; i++, ip+=skip, op+=oskip) { > temp = UNICODE_getitem((char *)ip, aip); > if (temp == ((void *)0)) { > return; > } > > > { > PyObject *new, *args; > > args = _Py_BuildValue_SizeT("(N)", temp); > > > > new = PyInt_Type.tp_new(&PyInt_Type, args, ((void *)0)); > > > > do { if ( --((PyObject*)(args))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(args)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(args)))); } while (0); > temp = new; > if (temp == ((void *)0)) { > return; > } > } > > if (LONG_setitem(temp,(char *)op, aop)) { > do { if ( --((PyObject*)(temp))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(temp)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(temp)))); } while (0); > return; > } > do { if ( --((PyObject*)(temp))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(temp)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(temp)))); } while (0); > } >} ># 1579 "numpy/core/src/multiarray/arraytypes.c.src" >static void >UNICODE_to_ULONG(char *ip, npy_ulong *op, npy_intp n, PyArrayObject *aip, > PyArrayObject *aop) >{ > npy_intp i; > PyObject *temp = ((void *)0); > int skip = aip->descr->elsize; > int oskip = 1; > > for (i = 0; i < n; i++, ip+=skip, op+=oskip) { > temp = UNICODE_getitem((char *)ip, aip); > if (temp == ((void *)0)) { > return; > } > > > { > PyObject *new, *args; > > args = _Py_BuildValue_SizeT("(N)", temp); > > > > new = PyInt_Type.tp_new(&PyInt_Type, args, ((void *)0)); > > > > do { if ( --((PyObject*)(args))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(args)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(args)))); } while (0); > temp = new; > if (temp == ((void *)0)) { > return; > } > } > > if (ULONG_setitem(temp,(char *)op, aop)) { > do { if ( --((PyObject*)(temp))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(temp)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(temp)))); } while (0); > return; > } > do { if ( --((PyObject*)(temp))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(temp)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(temp)))); } while (0); > } >} ># 1579 "numpy/core/src/multiarray/arraytypes.c.src" >static void >UNICODE_to_LONGLONG(char *ip, npy_longlong *op, npy_intp n, PyArrayObject *aip, > PyArrayObject *aop) >{ > npy_intp i; > PyObject *temp = ((void *)0); > int skip = aip->descr->elsize; > int oskip = 1; > > for (i = 0; i < n; i++, ip+=skip, op+=oskip) { > temp = UNICODE_getitem((char *)ip, aip); > if (temp == ((void *)0)) { > return; > } > > > { > PyObject *new, *args; > > args = _Py_BuildValue_SizeT("(N)", temp); > > > > new = PyLong_Type.tp_new(&PyLong_Type, args, ((void *)0)); > > > > do { if ( --((PyObject*)(args))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(args)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(args)))); } while (0); > temp = new; > if (temp == ((void *)0)) { > return; > } > } > > if (LONGLONG_setitem(temp,(char *)op, aop)) { > do { if ( --((PyObject*)(temp))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(temp)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(temp)))); } while (0); > return; > } > do { if ( --((PyObject*)(temp))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(temp)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(temp)))); } while (0); > } >} ># 1579 "numpy/core/src/multiarray/arraytypes.c.src" >static void >UNICODE_to_ULONGLONG(char *ip, npy_ulonglong *op, npy_intp n, PyArrayObject *aip, > PyArrayObject *aop) >{ > npy_intp i; > PyObject *temp = ((void *)0); > int skip = aip->descr->elsize; > int oskip = 1; > > for (i = 0; i < n; i++, ip+=skip, op+=oskip) { > temp = UNICODE_getitem((char *)ip, aip); > if (temp == ((void *)0)) { > return; > } > > > { > PyObject *new, *args; > > args = _Py_BuildValue_SizeT("(N)", temp); > > > > new = PyLong_Type.tp_new(&PyLong_Type, args, ((void *)0)); > > > > do { if ( --((PyObject*)(args))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(args)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(args)))); } while (0); > temp = new; > if (temp == ((void *)0)) { > return; > } > } > > if (ULONGLONG_setitem(temp,(char *)op, aop)) { > do { if ( --((PyObject*)(temp))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(temp)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(temp)))); } while (0); > return; > } > do { if ( --((PyObject*)(temp))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(temp)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(temp)))); } while (0); > } >} ># 1579 "numpy/core/src/multiarray/arraytypes.c.src" >static void >UNICODE_to_HALF(char *ip, npy_half *op, npy_intp n, PyArrayObject *aip, > PyArrayObject *aop) >{ > npy_intp i; > PyObject *temp = ((void *)0); > int skip = aip->descr->elsize; > int oskip = 1; > > for (i = 0; i < n; i++, ip+=skip, op+=oskip) { > temp = UNICODE_getitem((char *)ip, aip); > if (temp == ((void *)0)) { > return; > } > > > { > PyObject *new, *args; > > args = _Py_BuildValue_SizeT("(N)", temp); > > > > new = PyFloat_Type.tp_new(&PyFloat_Type, args, ((void *)0)); > > > > do { if ( --((PyObject*)(args))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(args)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(args)))); } while (0); > temp = new; > if (temp == ((void *)0)) { > return; > } > } > > if (HALF_setitem(temp,(char *)op, aop)) { > do { if ( --((PyObject*)(temp))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(temp)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(temp)))); } while (0); > return; > } > do { if ( --((PyObject*)(temp))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(temp)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(temp)))); } while (0); > } >} ># 1579 "numpy/core/src/multiarray/arraytypes.c.src" >static void >UNICODE_to_FLOAT(char *ip, float *op, npy_intp n, PyArrayObject *aip, > PyArrayObject *aop) >{ > npy_intp i; > PyObject *temp = ((void *)0); > int skip = aip->descr->elsize; > int oskip = 1; > > for (i = 0; i < n; i++, ip+=skip, op+=oskip) { > temp = UNICODE_getitem((char *)ip, aip); > if (temp == ((void *)0)) { > return; > } > > > { > PyObject *new, *args; > > args = _Py_BuildValue_SizeT("(N)", temp); > > > > new = PyFloat_Type.tp_new(&PyFloat_Type, args, ((void *)0)); > > > > do { if ( --((PyObject*)(args))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(args)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(args)))); } while (0); > temp = new; > if (temp == ((void *)0)) { > return; > } > } > > if (FLOAT_setitem(temp,(char *)op, aop)) { > do { if ( --((PyObject*)(temp))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(temp)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(temp)))); } while (0); > return; > } > do { if ( --((PyObject*)(temp))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(temp)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(temp)))); } while (0); > } >} ># 1579 "numpy/core/src/multiarray/arraytypes.c.src" >static void >UNICODE_to_DOUBLE(char *ip, double *op, npy_intp n, PyArrayObject *aip, > PyArrayObject *aop) >{ > npy_intp i; > PyObject *temp = ((void *)0); > int skip = aip->descr->elsize; > int oskip = 1; > > for (i = 0; i < n; i++, ip+=skip, op+=oskip) { > temp = UNICODE_getitem((char *)ip, aip); > if (temp == ((void *)0)) { > return; > } > > > { > PyObject *new, *args; > > args = _Py_BuildValue_SizeT("(N)", temp); > > > > new = PyFloat_Type.tp_new(&PyFloat_Type, args, ((void *)0)); > > > > do { if ( --((PyObject*)(args))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(args)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(args)))); } while (0); > temp = new; > if (temp == ((void *)0)) { > return; > } > } > > if (DOUBLE_setitem(temp,(char *)op, aop)) { > do { if ( --((PyObject*)(temp))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(temp)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(temp)))); } while (0); > return; > } > do { if ( --((PyObject*)(temp))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(temp)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(temp)))); } while (0); > } >} ># 1579 "numpy/core/src/multiarray/arraytypes.c.src" >static void >UNICODE_to_LONGDOUBLE(char *ip, npy_longdouble *op, npy_intp n, PyArrayObject *aip, > PyArrayObject *aop) >{ > npy_intp i; > PyObject *temp = ((void *)0); > int skip = aip->descr->elsize; > int oskip = 1; > > for (i = 0; i < n; i++, ip+=skip, op+=oskip) { > temp = UNICODE_getitem((char *)ip, aip); > if (temp == ((void *)0)) { > return; > } > > > { > PyObject *new, *args; > > args = _Py_BuildValue_SizeT("(N)", temp); > > > > new = PyFloat_Type.tp_new(&PyFloat_Type, args, ((void *)0)); > > > > do { if ( --((PyObject*)(args))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(args)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(args)))); } while (0); > temp = new; > if (temp == ((void *)0)) { > return; > } > } > > if (LONGDOUBLE_setitem(temp,(char *)op, aop)) { > do { if ( --((PyObject*)(temp))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(temp)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(temp)))); } while (0); > return; > } > do { if ( --((PyObject*)(temp))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(temp)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(temp)))); } while (0); > } >} ># 1579 "numpy/core/src/multiarray/arraytypes.c.src" >static void >UNICODE_to_CFLOAT(char *ip, npy_cfloat *op, npy_intp n, PyArrayObject *aip, > PyArrayObject *aop) >{ > npy_intp i; > PyObject *temp = ((void *)0); > int skip = aip->descr->elsize; > int oskip = 1; > > for (i = 0; i < n; i++, ip+=skip, op+=oskip) { > temp = UNICODE_getitem((char *)ip, aip); > if (temp == ((void *)0)) { > return; > } > > > { > PyObject *new, *args; > > args = _Py_BuildValue_SizeT("(N)", temp); > > > > new = PyComplex_Type.tp_new(&PyComplex_Type, args, ((void *)0)); > > > > do { if ( --((PyObject*)(args))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(args)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(args)))); } while (0); > temp = new; > if (temp == ((void *)0)) { > return; > } > } > > if (CFLOAT_setitem(temp,(char *)op, aop)) { > do { if ( --((PyObject*)(temp))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(temp)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(temp)))); } while (0); > return; > } > do { if ( --((PyObject*)(temp))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(temp)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(temp)))); } while (0); > } >} ># 1579 "numpy/core/src/multiarray/arraytypes.c.src" >static void >UNICODE_to_CDOUBLE(char *ip, npy_cdouble *op, npy_intp n, PyArrayObject *aip, > PyArrayObject *aop) >{ > npy_intp i; > PyObject *temp = ((void *)0); > int skip = aip->descr->elsize; > int oskip = 1; > > for (i = 0; i < n; i++, ip+=skip, op+=oskip) { > temp = UNICODE_getitem((char *)ip, aip); > if (temp == ((void *)0)) { > return; > } > > > { > PyObject *new, *args; > > args = _Py_BuildValue_SizeT("(N)", temp); > > > > new = PyComplex_Type.tp_new(&PyComplex_Type, args, ((void *)0)); > > > > do { if ( --((PyObject*)(args))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(args)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(args)))); } while (0); > temp = new; > if (temp == ((void *)0)) { > return; > } > } > > if (CDOUBLE_setitem(temp,(char *)op, aop)) { > do { if ( --((PyObject*)(temp))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(temp)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(temp)))); } while (0); > return; > } > do { if ( --((PyObject*)(temp))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(temp)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(temp)))); } while (0); > } >} ># 1579 "numpy/core/src/multiarray/arraytypes.c.src" >static void >UNICODE_to_CLONGDOUBLE(char *ip, npy_clongdouble *op, npy_intp n, PyArrayObject *aip, > PyArrayObject *aop) >{ > npy_intp i; > PyObject *temp = ((void *)0); > int skip = aip->descr->elsize; > int oskip = 1; > > for (i = 0; i < n; i++, ip+=skip, op+=oskip) { > temp = UNICODE_getitem((char *)ip, aip); > if (temp == ((void *)0)) { > return; > } > > > { > PyObject *new, *args; > > args = _Py_BuildValue_SizeT("(N)", temp); > > > > new = PyComplex_Type.tp_new(&PyComplex_Type, args, ((void *)0)); > > > > do { if ( --((PyObject*)(args))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(args)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(args)))); } while (0); > temp = new; > if (temp == ((void *)0)) { > return; > } > } > > if (CLONGDOUBLE_setitem(temp,(char *)op, aop)) { > do { if ( --((PyObject*)(temp))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(temp)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(temp)))); } while (0); > return; > } > do { if ( --((PyObject*)(temp))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(temp)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(temp)))); } while (0); > } >} ># 1579 "numpy/core/src/multiarray/arraytypes.c.src" >static void >UNICODE_to_STRING(char *ip, char *op, npy_intp n, PyArrayObject *aip, > PyArrayObject *aop) >{ > npy_intp i; > PyObject *temp = ((void *)0); > int skip = aip->descr->elsize; > int oskip = aop->descr->elsize; > > for (i = 0; i < n; i++, ip+=skip, op+=oskip) { > temp = UNICODE_getitem((char *)ip, aip); > if (temp == ((void *)0)) { > return; > } ># 1613 "numpy/core/src/multiarray/arraytypes.c.src" > if (STRING_setitem(temp,(char *)op, aop)) { > do { if ( --((PyObject*)(temp))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(temp)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(temp)))); } while (0); > return; > } > do { if ( --((PyObject*)(temp))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(temp)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(temp)))); } while (0); > } >} ># 1579 "numpy/core/src/multiarray/arraytypes.c.src" >static void >UNICODE_to_UNICODE(char *ip, char *op, npy_intp n, PyArrayObject *aip, > PyArrayObject *aop) >{ > npy_intp i; > PyObject *temp = ((void *)0); > int skip = aip->descr->elsize; > int oskip = aop->descr->elsize; > > for (i = 0; i < n; i++, ip+=skip, op+=oskip) { > temp = UNICODE_getitem((char *)ip, aip); > if (temp == ((void *)0)) { > return; > } ># 1613 "numpy/core/src/multiarray/arraytypes.c.src" > if (UNICODE_setitem(temp,(char *)op, aop)) { > do { if ( --((PyObject*)(temp))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(temp)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(temp)))); } while (0); > return; > } > do { if ( --((PyObject*)(temp))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(temp)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(temp)))); } while (0); > } >} ># 1579 "numpy/core/src/multiarray/arraytypes.c.src" >static void >UNICODE_to_VOID(char *ip, char *op, npy_intp n, PyArrayObject *aip, > PyArrayObject *aop) >{ > npy_intp i; > PyObject *temp = ((void *)0); > int skip = aip->descr->elsize; > int oskip = aop->descr->elsize; > > for (i = 0; i < n; i++, ip+=skip, op+=oskip) { > temp = UNICODE_getitem((char *)ip, aip); > if (temp == ((void *)0)) { > return; > } ># 1613 "numpy/core/src/multiarray/arraytypes.c.src" > if (VOID_setitem(temp,(char *)op, aop)) { > do { if ( --((PyObject*)(temp))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(temp)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(temp)))); } while (0); > return; > } > do { if ( --((PyObject*)(temp))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(temp)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(temp)))); } while (0); > } >} ># 1579 "numpy/core/src/multiarray/arraytypes.c.src" >static void >UNICODE_to_DATETIME(char *ip, npy_datetime *op, npy_intp n, PyArrayObject *aip, > PyArrayObject *aop) >{ > npy_intp i; > PyObject *temp = ((void *)0); > int skip = aip->descr->elsize; > int oskip = 1; > > for (i = 0; i < n; i++, ip+=skip, op+=oskip) { > temp = UNICODE_getitem((char *)ip, aip); > if (temp == ((void *)0)) { > return; > } > > > { > PyObject *new, *args; > > args = _Py_BuildValue_SizeT("(N)", temp); > > > > new = PyLong_Type.tp_new(&PyLong_Type, args, ((void *)0)); > > > > do { if ( --((PyObject*)(args))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(args)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(args)))); } while (0); > temp = new; > if (temp == ((void *)0)) { > return; > } > } > > if (DATETIME_setitem(temp,(char *)op, aop)) { > do { if ( --((PyObject*)(temp))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(temp)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(temp)))); } while (0); > return; > } > do { if ( --((PyObject*)(temp))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(temp)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(temp)))); } while (0); > } >} ># 1579 "numpy/core/src/multiarray/arraytypes.c.src" >static void >UNICODE_to_TIMEDELTA(char *ip, npy_timedelta *op, npy_intp n, PyArrayObject *aip, > PyArrayObject *aop) >{ > npy_intp i; > PyObject *temp = ((void *)0); > int skip = aip->descr->elsize; > int oskip = 1; > > for (i = 0; i < n; i++, ip+=skip, op+=oskip) { > temp = UNICODE_getitem((char *)ip, aip); > if (temp == ((void *)0)) { > return; > } > > > { > PyObject *new, *args; > > args = _Py_BuildValue_SizeT("(N)", temp); > > > > new = PyLong_Type.tp_new(&PyLong_Type, args, ((void *)0)); > > > > do { if ( --((PyObject*)(args))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(args)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(args)))); } while (0); > temp = new; > if (temp == ((void *)0)) { > return; > } > } > > if (TIMEDELTA_setitem(temp,(char *)op, aop)) { > do { if ( --((PyObject*)(temp))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(temp)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(temp)))); } while (0); > return; > } > do { if ( --((PyObject*)(temp))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(temp)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(temp)))); } while (0); > } >} ># 1579 "numpy/core/src/multiarray/arraytypes.c.src" >static void >VOID_to_BOOL(char *ip, npy_bool *op, npy_intp n, PyArrayObject *aip, > PyArrayObject *aop) >{ > npy_intp i; > PyObject *temp = ((void *)0); > int skip = aip->descr->elsize; > int oskip = 1; > > for (i = 0; i < n; i++, ip+=skip, op+=oskip) { > temp = VOID_getitem((char *)ip, aip); > if (temp == ((void *)0)) { > return; > } ># 1613 "numpy/core/src/multiarray/arraytypes.c.src" > if (BOOL_setitem(temp,(char *)op, aop)) { > do { if ( --((PyObject*)(temp))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(temp)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(temp)))); } while (0); > return; > } > do { if ( --((PyObject*)(temp))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(temp)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(temp)))); } while (0); > } >} ># 1579 "numpy/core/src/multiarray/arraytypes.c.src" >static void >VOID_to_BYTE(char *ip, npy_byte *op, npy_intp n, PyArrayObject *aip, > PyArrayObject *aop) >{ > npy_intp i; > PyObject *temp = ((void *)0); > int skip = aip->descr->elsize; > int oskip = 1; > > for (i = 0; i < n; i++, ip+=skip, op+=oskip) { > temp = VOID_getitem((char *)ip, aip); > if (temp == ((void *)0)) { > return; > } ># 1613 "numpy/core/src/multiarray/arraytypes.c.src" > if (BYTE_setitem(temp,(char *)op, aop)) { > do { if ( --((PyObject*)(temp))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(temp)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(temp)))); } while (0); > return; > } > do { if ( --((PyObject*)(temp))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(temp)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(temp)))); } while (0); > } >} ># 1579 "numpy/core/src/multiarray/arraytypes.c.src" >static void >VOID_to_UBYTE(char *ip, npy_ubyte *op, npy_intp n, PyArrayObject *aip, > PyArrayObject *aop) >{ > npy_intp i; > PyObject *temp = ((void *)0); > int skip = aip->descr->elsize; > int oskip = 1; > > for (i = 0; i < n; i++, ip+=skip, op+=oskip) { > temp = VOID_getitem((char *)ip, aip); > if (temp == ((void *)0)) { > return; > } ># 1613 "numpy/core/src/multiarray/arraytypes.c.src" > if (UBYTE_setitem(temp,(char *)op, aop)) { > do { if ( --((PyObject*)(temp))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(temp)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(temp)))); } while (0); > return; > } > do { if ( --((PyObject*)(temp))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(temp)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(temp)))); } while (0); > } >} ># 1579 "numpy/core/src/multiarray/arraytypes.c.src" >static void >VOID_to_SHORT(char *ip, short *op, npy_intp n, PyArrayObject *aip, > PyArrayObject *aop) >{ > npy_intp i; > PyObject *temp = ((void *)0); > int skip = aip->descr->elsize; > int oskip = 1; > > for (i = 0; i < n; i++, ip+=skip, op+=oskip) { > temp = VOID_getitem((char *)ip, aip); > if (temp == ((void *)0)) { > return; > } ># 1613 "numpy/core/src/multiarray/arraytypes.c.src" > if (SHORT_setitem(temp,(char *)op, aop)) { > do { if ( --((PyObject*)(temp))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(temp)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(temp)))); } while (0); > return; > } > do { if ( --((PyObject*)(temp))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(temp)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(temp)))); } while (0); > } >} ># 1579 "numpy/core/src/multiarray/arraytypes.c.src" >static void >VOID_to_USHORT(char *ip, npy_ushort *op, npy_intp n, PyArrayObject *aip, > PyArrayObject *aop) >{ > npy_intp i; > PyObject *temp = ((void *)0); > int skip = aip->descr->elsize; > int oskip = 1; > > for (i = 0; i < n; i++, ip+=skip, op+=oskip) { > temp = VOID_getitem((char *)ip, aip); > if (temp == ((void *)0)) { > return; > } ># 1613 "numpy/core/src/multiarray/arraytypes.c.src" > if (USHORT_setitem(temp,(char *)op, aop)) { > do { if ( --((PyObject*)(temp))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(temp)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(temp)))); } while (0); > return; > } > do { if ( --((PyObject*)(temp))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(temp)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(temp)))); } while (0); > } >} ># 1579 "numpy/core/src/multiarray/arraytypes.c.src" >static void >VOID_to_INT(char *ip, int *op, npy_intp n, PyArrayObject *aip, > PyArrayObject *aop) >{ > npy_intp i; > PyObject *temp = ((void *)0); > int skip = aip->descr->elsize; > int oskip = 1; > > for (i = 0; i < n; i++, ip+=skip, op+=oskip) { > temp = VOID_getitem((char *)ip, aip); > if (temp == ((void *)0)) { > return; > } ># 1613 "numpy/core/src/multiarray/arraytypes.c.src" > if (INT_setitem(temp,(char *)op, aop)) { > do { if ( --((PyObject*)(temp))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(temp)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(temp)))); } while (0); > return; > } > do { if ( --((PyObject*)(temp))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(temp)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(temp)))); } while (0); > } >} ># 1579 "numpy/core/src/multiarray/arraytypes.c.src" >static void >VOID_to_UINT(char *ip, npy_uint *op, npy_intp n, PyArrayObject *aip, > PyArrayObject *aop) >{ > npy_intp i; > PyObject *temp = ((void *)0); > int skip = aip->descr->elsize; > int oskip = 1; > > for (i = 0; i < n; i++, ip+=skip, op+=oskip) { > temp = VOID_getitem((char *)ip, aip); > if (temp == ((void *)0)) { > return; > } ># 1613 "numpy/core/src/multiarray/arraytypes.c.src" > if (UINT_setitem(temp,(char *)op, aop)) { > do { if ( --((PyObject*)(temp))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(temp)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(temp)))); } while (0); > return; > } > do { if ( --((PyObject*)(temp))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(temp)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(temp)))); } while (0); > } >} ># 1579 "numpy/core/src/multiarray/arraytypes.c.src" >static void >VOID_to_LONG(char *ip, long *op, npy_intp n, PyArrayObject *aip, > PyArrayObject *aop) >{ > npy_intp i; > PyObject *temp = ((void *)0); > int skip = aip->descr->elsize; > int oskip = 1; > > for (i = 0; i < n; i++, ip+=skip, op+=oskip) { > temp = VOID_getitem((char *)ip, aip); > if (temp == ((void *)0)) { > return; > } ># 1613 "numpy/core/src/multiarray/arraytypes.c.src" > if (LONG_setitem(temp,(char *)op, aop)) { > do { if ( --((PyObject*)(temp))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(temp)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(temp)))); } while (0); > return; > } > do { if ( --((PyObject*)(temp))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(temp)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(temp)))); } while (0); > } >} ># 1579 "numpy/core/src/multiarray/arraytypes.c.src" >static void >VOID_to_ULONG(char *ip, npy_ulong *op, npy_intp n, PyArrayObject *aip, > PyArrayObject *aop) >{ > npy_intp i; > PyObject *temp = ((void *)0); > int skip = aip->descr->elsize; > int oskip = 1; > > for (i = 0; i < n; i++, ip+=skip, op+=oskip) { > temp = VOID_getitem((char *)ip, aip); > if (temp == ((void *)0)) { > return; > } ># 1613 "numpy/core/src/multiarray/arraytypes.c.src" > if (ULONG_setitem(temp,(char *)op, aop)) { > do { if ( --((PyObject*)(temp))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(temp)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(temp)))); } while (0); > return; > } > do { if ( --((PyObject*)(temp))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(temp)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(temp)))); } while (0); > } >} ># 1579 "numpy/core/src/multiarray/arraytypes.c.src" >static void >VOID_to_LONGLONG(char *ip, npy_longlong *op, npy_intp n, PyArrayObject *aip, > PyArrayObject *aop) >{ > npy_intp i; > PyObject *temp = ((void *)0); > int skip = aip->descr->elsize; > int oskip = 1; > > for (i = 0; i < n; i++, ip+=skip, op+=oskip) { > temp = VOID_getitem((char *)ip, aip); > if (temp == ((void *)0)) { > return; > } ># 1613 "numpy/core/src/multiarray/arraytypes.c.src" > if (LONGLONG_setitem(temp,(char *)op, aop)) { > do { if ( --((PyObject*)(temp))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(temp)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(temp)))); } while (0); > return; > } > do { if ( --((PyObject*)(temp))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(temp)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(temp)))); } while (0); > } >} ># 1579 "numpy/core/src/multiarray/arraytypes.c.src" >static void >VOID_to_ULONGLONG(char *ip, npy_ulonglong *op, npy_intp n, PyArrayObject *aip, > PyArrayObject *aop) >{ > npy_intp i; > PyObject *temp = ((void *)0); > int skip = aip->descr->elsize; > int oskip = 1; > > for (i = 0; i < n; i++, ip+=skip, op+=oskip) { > temp = VOID_getitem((char *)ip, aip); > if (temp == ((void *)0)) { > return; > } ># 1613 "numpy/core/src/multiarray/arraytypes.c.src" > if (ULONGLONG_setitem(temp,(char *)op, aop)) { > do { if ( --((PyObject*)(temp))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(temp)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(temp)))); } while (0); > return; > } > do { if ( --((PyObject*)(temp))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(temp)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(temp)))); } while (0); > } >} ># 1579 "numpy/core/src/multiarray/arraytypes.c.src" >static void >VOID_to_HALF(char *ip, npy_half *op, npy_intp n, PyArrayObject *aip, > PyArrayObject *aop) >{ > npy_intp i; > PyObject *temp = ((void *)0); > int skip = aip->descr->elsize; > int oskip = 1; > > for (i = 0; i < n; i++, ip+=skip, op+=oskip) { > temp = VOID_getitem((char *)ip, aip); > if (temp == ((void *)0)) { > return; > } ># 1613 "numpy/core/src/multiarray/arraytypes.c.src" > if (HALF_setitem(temp,(char *)op, aop)) { > do { if ( --((PyObject*)(temp))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(temp)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(temp)))); } while (0); > return; > } > do { if ( --((PyObject*)(temp))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(temp)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(temp)))); } while (0); > } >} ># 1579 "numpy/core/src/multiarray/arraytypes.c.src" >static void >VOID_to_FLOAT(char *ip, float *op, npy_intp n, PyArrayObject *aip, > PyArrayObject *aop) >{ > npy_intp i; > PyObject *temp = ((void *)0); > int skip = aip->descr->elsize; > int oskip = 1; > > for (i = 0; i < n; i++, ip+=skip, op+=oskip) { > temp = VOID_getitem((char *)ip, aip); > if (temp == ((void *)0)) { > return; > } ># 1613 "numpy/core/src/multiarray/arraytypes.c.src" > if (FLOAT_setitem(temp,(char *)op, aop)) { > do { if ( --((PyObject*)(temp))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(temp)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(temp)))); } while (0); > return; > } > do { if ( --((PyObject*)(temp))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(temp)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(temp)))); } while (0); > } >} ># 1579 "numpy/core/src/multiarray/arraytypes.c.src" >static void >VOID_to_DOUBLE(char *ip, double *op, npy_intp n, PyArrayObject *aip, > PyArrayObject *aop) >{ > npy_intp i; > PyObject *temp = ((void *)0); > int skip = aip->descr->elsize; > int oskip = 1; > > for (i = 0; i < n; i++, ip+=skip, op+=oskip) { > temp = VOID_getitem((char *)ip, aip); > if (temp == ((void *)0)) { > return; > } ># 1613 "numpy/core/src/multiarray/arraytypes.c.src" > if (DOUBLE_setitem(temp,(char *)op, aop)) { > do { if ( --((PyObject*)(temp))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(temp)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(temp)))); } while (0); > return; > } > do { if ( --((PyObject*)(temp))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(temp)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(temp)))); } while (0); > } >} ># 1579 "numpy/core/src/multiarray/arraytypes.c.src" >static void >VOID_to_LONGDOUBLE(char *ip, npy_longdouble *op, npy_intp n, PyArrayObject *aip, > PyArrayObject *aop) >{ > npy_intp i; > PyObject *temp = ((void *)0); > int skip = aip->descr->elsize; > int oskip = 1; > > for (i = 0; i < n; i++, ip+=skip, op+=oskip) { > temp = VOID_getitem((char *)ip, aip); > if (temp == ((void *)0)) { > return; > } ># 1613 "numpy/core/src/multiarray/arraytypes.c.src" > if (LONGDOUBLE_setitem(temp,(char *)op, aop)) { > do { if ( --((PyObject*)(temp))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(temp)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(temp)))); } while (0); > return; > } > do { if ( --((PyObject*)(temp))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(temp)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(temp)))); } while (0); > } >} ># 1579 "numpy/core/src/multiarray/arraytypes.c.src" >static void >VOID_to_CFLOAT(char *ip, npy_cfloat *op, npy_intp n, PyArrayObject *aip, > PyArrayObject *aop) >{ > npy_intp i; > PyObject *temp = ((void *)0); > int skip = aip->descr->elsize; > int oskip = 1; > > for (i = 0; i < n; i++, ip+=skip, op+=oskip) { > temp = VOID_getitem((char *)ip, aip); > if (temp == ((void *)0)) { > return; > } ># 1613 "numpy/core/src/multiarray/arraytypes.c.src" > if (CFLOAT_setitem(temp,(char *)op, aop)) { > do { if ( --((PyObject*)(temp))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(temp)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(temp)))); } while (0); > return; > } > do { if ( --((PyObject*)(temp))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(temp)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(temp)))); } while (0); > } >} ># 1579 "numpy/core/src/multiarray/arraytypes.c.src" >static void >VOID_to_CDOUBLE(char *ip, npy_cdouble *op, npy_intp n, PyArrayObject *aip, > PyArrayObject *aop) >{ > npy_intp i; > PyObject *temp = ((void *)0); > int skip = aip->descr->elsize; > int oskip = 1; > > for (i = 0; i < n; i++, ip+=skip, op+=oskip) { > temp = VOID_getitem((char *)ip, aip); > if (temp == ((void *)0)) { > return; > } ># 1613 "numpy/core/src/multiarray/arraytypes.c.src" > if (CDOUBLE_setitem(temp,(char *)op, aop)) { > do { if ( --((PyObject*)(temp))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(temp)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(temp)))); } while (0); > return; > } > do { if ( --((PyObject*)(temp))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(temp)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(temp)))); } while (0); > } >} ># 1579 "numpy/core/src/multiarray/arraytypes.c.src" >static void >VOID_to_CLONGDOUBLE(char *ip, npy_clongdouble *op, npy_intp n, PyArrayObject *aip, > PyArrayObject *aop) >{ > npy_intp i; > PyObject *temp = ((void *)0); > int skip = aip->descr->elsize; > int oskip = 1; > > for (i = 0; i < n; i++, ip+=skip, op+=oskip) { > temp = VOID_getitem((char *)ip, aip); > if (temp == ((void *)0)) { > return; > } ># 1613 "numpy/core/src/multiarray/arraytypes.c.src" > if (CLONGDOUBLE_setitem(temp,(char *)op, aop)) { > do { if ( --((PyObject*)(temp))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(temp)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(temp)))); } while (0); > return; > } > do { if ( --((PyObject*)(temp))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(temp)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(temp)))); } while (0); > } >} ># 1579 "numpy/core/src/multiarray/arraytypes.c.src" >static void >VOID_to_STRING(char *ip, char *op, npy_intp n, PyArrayObject *aip, > PyArrayObject *aop) >{ > npy_intp i; > PyObject *temp = ((void *)0); > int skip = aip->descr->elsize; > int oskip = aop->descr->elsize; > > for (i = 0; i < n; i++, ip+=skip, op+=oskip) { > temp = VOID_getitem((char *)ip, aip); > if (temp == ((void *)0)) { > return; > } ># 1613 "numpy/core/src/multiarray/arraytypes.c.src" > if (STRING_setitem(temp,(char *)op, aop)) { > do { if ( --((PyObject*)(temp))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(temp)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(temp)))); } while (0); > return; > } > do { if ( --((PyObject*)(temp))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(temp)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(temp)))); } while (0); > } >} ># 1579 "numpy/core/src/multiarray/arraytypes.c.src" >static void >VOID_to_UNICODE(char *ip, char *op, npy_intp n, PyArrayObject *aip, > PyArrayObject *aop) >{ > npy_intp i; > PyObject *temp = ((void *)0); > int skip = aip->descr->elsize; > int oskip = aop->descr->elsize; > > for (i = 0; i < n; i++, ip+=skip, op+=oskip) { > temp = VOID_getitem((char *)ip, aip); > if (temp == ((void *)0)) { > return; > } ># 1613 "numpy/core/src/multiarray/arraytypes.c.src" > if (UNICODE_setitem(temp,(char *)op, aop)) { > do { if ( --((PyObject*)(temp))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(temp)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(temp)))); } while (0); > return; > } > do { if ( --((PyObject*)(temp))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(temp)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(temp)))); } while (0); > } >} ># 1579 "numpy/core/src/multiarray/arraytypes.c.src" >static void >VOID_to_VOID(char *ip, char *op, npy_intp n, PyArrayObject *aip, > PyArrayObject *aop) >{ > npy_intp i; > PyObject *temp = ((void *)0); > int skip = aip->descr->elsize; > int oskip = aop->descr->elsize; > > for (i = 0; i < n; i++, ip+=skip, op+=oskip) { > temp = VOID_getitem((char *)ip, aip); > if (temp == ((void *)0)) { > return; > } ># 1613 "numpy/core/src/multiarray/arraytypes.c.src" > if (VOID_setitem(temp,(char *)op, aop)) { > do { if ( --((PyObject*)(temp))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(temp)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(temp)))); } while (0); > return; > } > do { if ( --((PyObject*)(temp))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(temp)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(temp)))); } while (0); > } >} ># 1579 "numpy/core/src/multiarray/arraytypes.c.src" >static void >VOID_to_DATETIME(char *ip, npy_datetime *op, npy_intp n, PyArrayObject *aip, > PyArrayObject *aop) >{ > npy_intp i; > PyObject *temp = ((void *)0); > int skip = aip->descr->elsize; > int oskip = 1; > > for (i = 0; i < n; i++, ip+=skip, op+=oskip) { > temp = VOID_getitem((char *)ip, aip); > if (temp == ((void *)0)) { > return; > } ># 1613 "numpy/core/src/multiarray/arraytypes.c.src" > if (DATETIME_setitem(temp,(char *)op, aop)) { > do { if ( --((PyObject*)(temp))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(temp)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(temp)))); } while (0); > return; > } > do { if ( --((PyObject*)(temp))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(temp)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(temp)))); } while (0); > } >} ># 1579 "numpy/core/src/multiarray/arraytypes.c.src" >static void >VOID_to_TIMEDELTA(char *ip, npy_timedelta *op, npy_intp n, PyArrayObject *aip, > PyArrayObject *aop) >{ > npy_intp i; > PyObject *temp = ((void *)0); > int skip = aip->descr->elsize; > int oskip = 1; > > for (i = 0; i < n; i++, ip+=skip, op+=oskip) { > temp = VOID_getitem((char *)ip, aip); > if (temp == ((void *)0)) { > return; > } ># 1613 "numpy/core/src/multiarray/arraytypes.c.src" > if (TIMEDELTA_setitem(temp,(char *)op, aop)) { > do { if ( --((PyObject*)(temp))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(temp)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(temp)))); } while (0); > return; > } > do { if ( --((PyObject*)(temp))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(temp)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(temp)))); } while (0); > } >} ># 1634 "numpy/core/src/multiarray/arraytypes.c.src" >static void >BOOL_to_STRING(npy_bool *ip, char *op, npy_intp n, PyArrayObject *aip, > PyArrayObject *aop) >{ > npy_intp i; > PyObject *temp = ((void *)0); > int skip = 1; > int oskip = aop->descr->elsize; > for (i = 0; i < n; i++, ip += skip, op += oskip) { > temp = BOOL_getitem((char *)ip, aip); > if (temp == ((void *)0)) { > ( ((PyObject*)(((PyObject *) &_Py_ZeroStruct)))->ob_refcnt++); > temp = ((PyObject *) &_Py_ZeroStruct); > } > if (STRING_setitem(temp,(char *)op, aop)) { > do { if ( --((PyObject*)(temp))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(temp)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(temp)))); } while (0); > return; > } > do { if ( --((PyObject*)(temp))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(temp)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(temp)))); } while (0); > } >} ># 1634 "numpy/core/src/multiarray/arraytypes.c.src" >static void >BYTE_to_STRING(npy_byte *ip, char *op, npy_intp n, PyArrayObject *aip, > PyArrayObject *aop) >{ > npy_intp i; > PyObject *temp = ((void *)0); > int skip = 1; > int oskip = aop->descr->elsize; > for (i = 0; i < n; i++, ip += skip, op += oskip) { > temp = BYTE_getitem((char *)ip, aip); > if (temp == ((void *)0)) { > ( ((PyObject*)(((PyObject *) &_Py_ZeroStruct)))->ob_refcnt++); > temp = ((PyObject *) &_Py_ZeroStruct); > } > if (STRING_setitem(temp,(char *)op, aop)) { > do { if ( --((PyObject*)(temp))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(temp)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(temp)))); } while (0); > return; > } > do { if ( --((PyObject*)(temp))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(temp)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(temp)))); } while (0); > } >} ># 1634 "numpy/core/src/multiarray/arraytypes.c.src" >static void >UBYTE_to_STRING(npy_ubyte *ip, char *op, npy_intp n, PyArrayObject *aip, > PyArrayObject *aop) >{ > npy_intp i; > PyObject *temp = ((void *)0); > int skip = 1; > int oskip = aop->descr->elsize; > for (i = 0; i < n; i++, ip += skip, op += oskip) { > temp = UBYTE_getitem((char *)ip, aip); > if (temp == ((void *)0)) { > ( ((PyObject*)(((PyObject *) &_Py_ZeroStruct)))->ob_refcnt++); > temp = ((PyObject *) &_Py_ZeroStruct); > } > if (STRING_setitem(temp,(char *)op, aop)) { > do { if ( --((PyObject*)(temp))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(temp)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(temp)))); } while (0); > return; > } > do { if ( --((PyObject*)(temp))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(temp)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(temp)))); } while (0); > } >} ># 1634 "numpy/core/src/multiarray/arraytypes.c.src" >static void >SHORT_to_STRING(short *ip, char *op, npy_intp n, PyArrayObject *aip, > PyArrayObject *aop) >{ > npy_intp i; > PyObject *temp = ((void *)0); > int skip = 1; > int oskip = aop->descr->elsize; > for (i = 0; i < n; i++, ip += skip, op += oskip) { > temp = SHORT_getitem((char *)ip, aip); > if (temp == ((void *)0)) { > ( ((PyObject*)(((PyObject *) &_Py_ZeroStruct)))->ob_refcnt++); > temp = ((PyObject *) &_Py_ZeroStruct); > } > if (STRING_setitem(temp,(char *)op, aop)) { > do { if ( --((PyObject*)(temp))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(temp)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(temp)))); } while (0); > return; > } > do { if ( --((PyObject*)(temp))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(temp)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(temp)))); } while (0); > } >} ># 1634 "numpy/core/src/multiarray/arraytypes.c.src" >static void >USHORT_to_STRING(npy_ushort *ip, char *op, npy_intp n, PyArrayObject *aip, > PyArrayObject *aop) >{ > npy_intp i; > PyObject *temp = ((void *)0); > int skip = 1; > int oskip = aop->descr->elsize; > for (i = 0; i < n; i++, ip += skip, op += oskip) { > temp = USHORT_getitem((char *)ip, aip); > if (temp == ((void *)0)) { > ( ((PyObject*)(((PyObject *) &_Py_ZeroStruct)))->ob_refcnt++); > temp = ((PyObject *) &_Py_ZeroStruct); > } > if (STRING_setitem(temp,(char *)op, aop)) { > do { if ( --((PyObject*)(temp))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(temp)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(temp)))); } while (0); > return; > } > do { if ( --((PyObject*)(temp))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(temp)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(temp)))); } while (0); > } >} ># 1634 "numpy/core/src/multiarray/arraytypes.c.src" >static void >INT_to_STRING(int *ip, char *op, npy_intp n, PyArrayObject *aip, > PyArrayObject *aop) >{ > npy_intp i; > PyObject *temp = ((void *)0); > int skip = 1; > int oskip = aop->descr->elsize; > for (i = 0; i < n; i++, ip += skip, op += oskip) { > temp = INT_getitem((char *)ip, aip); > if (temp == ((void *)0)) { > ( ((PyObject*)(((PyObject *) &_Py_ZeroStruct)))->ob_refcnt++); > temp = ((PyObject *) &_Py_ZeroStruct); > } > if (STRING_setitem(temp,(char *)op, aop)) { > do { if ( --((PyObject*)(temp))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(temp)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(temp)))); } while (0); > return; > } > do { if ( --((PyObject*)(temp))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(temp)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(temp)))); } while (0); > } >} ># 1634 "numpy/core/src/multiarray/arraytypes.c.src" >static void >UINT_to_STRING(npy_uint *ip, char *op, npy_intp n, PyArrayObject *aip, > PyArrayObject *aop) >{ > npy_intp i; > PyObject *temp = ((void *)0); > int skip = 1; > int oskip = aop->descr->elsize; > for (i = 0; i < n; i++, ip += skip, op += oskip) { > temp = UINT_getitem((char *)ip, aip); > if (temp == ((void *)0)) { > ( ((PyObject*)(((PyObject *) &_Py_ZeroStruct)))->ob_refcnt++); > temp = ((PyObject *) &_Py_ZeroStruct); > } > if (STRING_setitem(temp,(char *)op, aop)) { > do { if ( --((PyObject*)(temp))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(temp)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(temp)))); } while (0); > return; > } > do { if ( --((PyObject*)(temp))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(temp)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(temp)))); } while (0); > } >} ># 1634 "numpy/core/src/multiarray/arraytypes.c.src" >static void >LONG_to_STRING(long *ip, char *op, npy_intp n, PyArrayObject *aip, > PyArrayObject *aop) >{ > npy_intp i; > PyObject *temp = ((void *)0); > int skip = 1; > int oskip = aop->descr->elsize; > for (i = 0; i < n; i++, ip += skip, op += oskip) { > temp = LONG_getitem((char *)ip, aip); > if (temp == ((void *)0)) { > ( ((PyObject*)(((PyObject *) &_Py_ZeroStruct)))->ob_refcnt++); > temp = ((PyObject *) &_Py_ZeroStruct); > } > if (STRING_setitem(temp,(char *)op, aop)) { > do { if ( --((PyObject*)(temp))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(temp)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(temp)))); } while (0); > return; > } > do { if ( --((PyObject*)(temp))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(temp)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(temp)))); } while (0); > } >} ># 1634 "numpy/core/src/multiarray/arraytypes.c.src" >static void >ULONG_to_STRING(npy_ulong *ip, char *op, npy_intp n, PyArrayObject *aip, > PyArrayObject *aop) >{ > npy_intp i; > PyObject *temp = ((void *)0); > int skip = 1; > int oskip = aop->descr->elsize; > for (i = 0; i < n; i++, ip += skip, op += oskip) { > temp = ULONG_getitem((char *)ip, aip); > if (temp == ((void *)0)) { > ( ((PyObject*)(((PyObject *) &_Py_ZeroStruct)))->ob_refcnt++); > temp = ((PyObject *) &_Py_ZeroStruct); > } > if (STRING_setitem(temp,(char *)op, aop)) { > do { if ( --((PyObject*)(temp))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(temp)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(temp)))); } while (0); > return; > } > do { if ( --((PyObject*)(temp))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(temp)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(temp)))); } while (0); > } >} ># 1634 "numpy/core/src/multiarray/arraytypes.c.src" >static void >LONGLONG_to_STRING(npy_longlong *ip, char *op, npy_intp n, PyArrayObject *aip, > PyArrayObject *aop) >{ > npy_intp i; > PyObject *temp = ((void *)0); > int skip = 1; > int oskip = aop->descr->elsize; > for (i = 0; i < n; i++, ip += skip, op += oskip) { > temp = LONGLONG_getitem((char *)ip, aip); > if (temp == ((void *)0)) { > ( ((PyObject*)(((PyObject *) &_Py_ZeroStruct)))->ob_refcnt++); > temp = ((PyObject *) &_Py_ZeroStruct); > } > if (STRING_setitem(temp,(char *)op, aop)) { > do { if ( --((PyObject*)(temp))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(temp)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(temp)))); } while (0); > return; > } > do { if ( --((PyObject*)(temp))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(temp)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(temp)))); } while (0); > } >} ># 1634 "numpy/core/src/multiarray/arraytypes.c.src" >static void >ULONGLONG_to_STRING(npy_ulonglong *ip, char *op, npy_intp n, PyArrayObject *aip, > PyArrayObject *aop) >{ > npy_intp i; > PyObject *temp = ((void *)0); > int skip = 1; > int oskip = aop->descr->elsize; > for (i = 0; i < n; i++, ip += skip, op += oskip) { > temp = ULONGLONG_getitem((char *)ip, aip); > if (temp == ((void *)0)) { > ( ((PyObject*)(((PyObject *) &_Py_ZeroStruct)))->ob_refcnt++); > temp = ((PyObject *) &_Py_ZeroStruct); > } > if (STRING_setitem(temp,(char *)op, aop)) { > do { if ( --((PyObject*)(temp))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(temp)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(temp)))); } while (0); > return; > } > do { if ( --((PyObject*)(temp))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(temp)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(temp)))); } while (0); > } >} ># 1634 "numpy/core/src/multiarray/arraytypes.c.src" >static void >HALF_to_STRING(npy_half *ip, char *op, npy_intp n, PyArrayObject *aip, > PyArrayObject *aop) >{ > npy_intp i; > PyObject *temp = ((void *)0); > int skip = 1; > int oskip = aop->descr->elsize; > for (i = 0; i < n; i++, ip += skip, op += oskip) { > temp = HALF_getitem((char *)ip, aip); > if (temp == ((void *)0)) { > ( ((PyObject*)(((PyObject *) &_Py_ZeroStruct)))->ob_refcnt++); > temp = ((PyObject *) &_Py_ZeroStruct); > } > if (STRING_setitem(temp,(char *)op, aop)) { > do { if ( --((PyObject*)(temp))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(temp)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(temp)))); } while (0); > return; > } > do { if ( --((PyObject*)(temp))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(temp)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(temp)))); } while (0); > } >} ># 1634 "numpy/core/src/multiarray/arraytypes.c.src" >static void >FLOAT_to_STRING(float *ip, char *op, npy_intp n, PyArrayObject *aip, > PyArrayObject *aop) >{ > npy_intp i; > PyObject *temp = ((void *)0); > int skip = 1; > int oskip = aop->descr->elsize; > for (i = 0; i < n; i++, ip += skip, op += oskip) { > temp = FLOAT_getitem((char *)ip, aip); > if (temp == ((void *)0)) { > ( ((PyObject*)(((PyObject *) &_Py_ZeroStruct)))->ob_refcnt++); > temp = ((PyObject *) &_Py_ZeroStruct); > } > if (STRING_setitem(temp,(char *)op, aop)) { > do { if ( --((PyObject*)(temp))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(temp)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(temp)))); } while (0); > return; > } > do { if ( --((PyObject*)(temp))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(temp)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(temp)))); } while (0); > } >} ># 1634 "numpy/core/src/multiarray/arraytypes.c.src" >static void >DOUBLE_to_STRING(double *ip, char *op, npy_intp n, PyArrayObject *aip, > PyArrayObject *aop) >{ > npy_intp i; > PyObject *temp = ((void *)0); > int skip = 1; > int oskip = aop->descr->elsize; > for (i = 0; i < n; i++, ip += skip, op += oskip) { > temp = DOUBLE_getitem((char *)ip, aip); > if (temp == ((void *)0)) { > ( ((PyObject*)(((PyObject *) &_Py_ZeroStruct)))->ob_refcnt++); > temp = ((PyObject *) &_Py_ZeroStruct); > } > if (STRING_setitem(temp,(char *)op, aop)) { > do { if ( --((PyObject*)(temp))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(temp)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(temp)))); } while (0); > return; > } > do { if ( --((PyObject*)(temp))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(temp)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(temp)))); } while (0); > } >} ># 1634 "numpy/core/src/multiarray/arraytypes.c.src" >static void >LONGDOUBLE_to_STRING(npy_longdouble *ip, char *op, npy_intp n, PyArrayObject *aip, > PyArrayObject *aop) >{ > npy_intp i; > PyObject *temp = ((void *)0); > int skip = 1; > int oskip = aop->descr->elsize; > for (i = 0; i < n; i++, ip += skip, op += oskip) { > temp = LONGDOUBLE_getitem((char *)ip, aip); > if (temp == ((void *)0)) { > ( ((PyObject*)(((PyObject *) &_Py_ZeroStruct)))->ob_refcnt++); > temp = ((PyObject *) &_Py_ZeroStruct); > } > if (STRING_setitem(temp,(char *)op, aop)) { > do { if ( --((PyObject*)(temp))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(temp)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(temp)))); } while (0); > return; > } > do { if ( --((PyObject*)(temp))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(temp)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(temp)))); } while (0); > } >} ># 1634 "numpy/core/src/multiarray/arraytypes.c.src" >static void >CFLOAT_to_STRING(npy_cfloat *ip, char *op, npy_intp n, PyArrayObject *aip, > PyArrayObject *aop) >{ > npy_intp i; > PyObject *temp = ((void *)0); > int skip = 1; > int oskip = aop->descr->elsize; > for (i = 0; i < n; i++, ip += skip, op += oskip) { > temp = CFLOAT_getitem((char *)ip, aip); > if (temp == ((void *)0)) { > ( ((PyObject*)(((PyObject *) &_Py_ZeroStruct)))->ob_refcnt++); > temp = ((PyObject *) &_Py_ZeroStruct); > } > if (STRING_setitem(temp,(char *)op, aop)) { > do { if ( --((PyObject*)(temp))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(temp)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(temp)))); } while (0); > return; > } > do { if ( --((PyObject*)(temp))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(temp)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(temp)))); } while (0); > } >} ># 1634 "numpy/core/src/multiarray/arraytypes.c.src" >static void >CDOUBLE_to_STRING(npy_cdouble *ip, char *op, npy_intp n, PyArrayObject *aip, > PyArrayObject *aop) >{ > npy_intp i; > PyObject *temp = ((void *)0); > int skip = 1; > int oskip = aop->descr->elsize; > for (i = 0; i < n; i++, ip += skip, op += oskip) { > temp = CDOUBLE_getitem((char *)ip, aip); > if (temp == ((void *)0)) { > ( ((PyObject*)(((PyObject *) &_Py_ZeroStruct)))->ob_refcnt++); > temp = ((PyObject *) &_Py_ZeroStruct); > } > if (STRING_setitem(temp,(char *)op, aop)) { > do { if ( --((PyObject*)(temp))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(temp)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(temp)))); } while (0); > return; > } > do { if ( --((PyObject*)(temp))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(temp)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(temp)))); } while (0); > } >} ># 1634 "numpy/core/src/multiarray/arraytypes.c.src" >static void >CLONGDOUBLE_to_STRING(npy_clongdouble *ip, char *op, npy_intp n, PyArrayObject *aip, > PyArrayObject *aop) >{ > npy_intp i; > PyObject *temp = ((void *)0); > int skip = 1; > int oskip = aop->descr->elsize; > for (i = 0; i < n; i++, ip += skip, op += oskip) { > temp = CLONGDOUBLE_getitem((char *)ip, aip); > if (temp == ((void *)0)) { > ( ((PyObject*)(((PyObject *) &_Py_ZeroStruct)))->ob_refcnt++); > temp = ((PyObject *) &_Py_ZeroStruct); > } > if (STRING_setitem(temp,(char *)op, aop)) { > do { if ( --((PyObject*)(temp))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(temp)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(temp)))); } while (0); > return; > } > do { if ( --((PyObject*)(temp))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(temp)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(temp)))); } while (0); > } >} ># 1634 "numpy/core/src/multiarray/arraytypes.c.src" >static void >DATETIME_to_STRING(npy_datetime *ip, char *op, npy_intp n, PyArrayObject *aip, > PyArrayObject *aop) >{ > npy_intp i; > PyObject *temp = ((void *)0); > int skip = 1; > int oskip = aop->descr->elsize; > for (i = 0; i < n; i++, ip += skip, op += oskip) { > temp = DATETIME_getitem((char *)ip, aip); > if (temp == ((void *)0)) { > ( ((PyObject*)(((PyObject *) &_Py_ZeroStruct)))->ob_refcnt++); > temp = ((PyObject *) &_Py_ZeroStruct); > } > if (STRING_setitem(temp,(char *)op, aop)) { > do { if ( --((PyObject*)(temp))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(temp)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(temp)))); } while (0); > return; > } > do { if ( --((PyObject*)(temp))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(temp)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(temp)))); } while (0); > } >} ># 1634 "numpy/core/src/multiarray/arraytypes.c.src" >static void >TIMEDELTA_to_STRING(npy_timedelta *ip, char *op, npy_intp n, PyArrayObject *aip, > PyArrayObject *aop) >{ > npy_intp i; > PyObject *temp = ((void *)0); > int skip = 1; > int oskip = aop->descr->elsize; > for (i = 0; i < n; i++, ip += skip, op += oskip) { > temp = TIMEDELTA_getitem((char *)ip, aip); > if (temp == ((void *)0)) { > ( ((PyObject*)(((PyObject *) &_Py_ZeroStruct)))->ob_refcnt++); > temp = ((PyObject *) &_Py_ZeroStruct); > } > if (STRING_setitem(temp,(char *)op, aop)) { > do { if ( --((PyObject*)(temp))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(temp)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(temp)))); } while (0); > return; > } > do { if ( --((PyObject*)(temp))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(temp)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(temp)))); } while (0); > } >} ># 1634 "numpy/core/src/multiarray/arraytypes.c.src" >static void >BOOL_to_UNICODE(npy_bool *ip, char *op, npy_intp n, PyArrayObject *aip, > PyArrayObject *aop) >{ > npy_intp i; > PyObject *temp = ((void *)0); > int skip = 1; > int oskip = aop->descr->elsize; > for (i = 0; i < n; i++, ip += skip, op += oskip) { > temp = BOOL_getitem((char *)ip, aip); > if (temp == ((void *)0)) { > ( ((PyObject*)(((PyObject *) &_Py_ZeroStruct)))->ob_refcnt++); > temp = ((PyObject *) &_Py_ZeroStruct); > } > if (UNICODE_setitem(temp,(char *)op, aop)) { > do { if ( --((PyObject*)(temp))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(temp)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(temp)))); } while (0); > return; > } > do { if ( --((PyObject*)(temp))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(temp)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(temp)))); } while (0); > } >} ># 1634 "numpy/core/src/multiarray/arraytypes.c.src" >static void >BYTE_to_UNICODE(npy_byte *ip, char *op, npy_intp n, PyArrayObject *aip, > PyArrayObject *aop) >{ > npy_intp i; > PyObject *temp = ((void *)0); > int skip = 1; > int oskip = aop->descr->elsize; > for (i = 0; i < n; i++, ip += skip, op += oskip) { > temp = BYTE_getitem((char *)ip, aip); > if (temp == ((void *)0)) { > ( ((PyObject*)(((PyObject *) &_Py_ZeroStruct)))->ob_refcnt++); > temp = ((PyObject *) &_Py_ZeroStruct); > } > if (UNICODE_setitem(temp,(char *)op, aop)) { > do { if ( --((PyObject*)(temp))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(temp)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(temp)))); } while (0); > return; > } > do { if ( --((PyObject*)(temp))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(temp)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(temp)))); } while (0); > } >} ># 1634 "numpy/core/src/multiarray/arraytypes.c.src" >static void >UBYTE_to_UNICODE(npy_ubyte *ip, char *op, npy_intp n, PyArrayObject *aip, > PyArrayObject *aop) >{ > npy_intp i; > PyObject *temp = ((void *)0); > int skip = 1; > int oskip = aop->descr->elsize; > for (i = 0; i < n; i++, ip += skip, op += oskip) { > temp = UBYTE_getitem((char *)ip, aip); > if (temp == ((void *)0)) { > ( ((PyObject*)(((PyObject *) &_Py_ZeroStruct)))->ob_refcnt++); > temp = ((PyObject *) &_Py_ZeroStruct); > } > if (UNICODE_setitem(temp,(char *)op, aop)) { > do { if ( --((PyObject*)(temp))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(temp)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(temp)))); } while (0); > return; > } > do { if ( --((PyObject*)(temp))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(temp)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(temp)))); } while (0); > } >} ># 1634 "numpy/core/src/multiarray/arraytypes.c.src" >static void >SHORT_to_UNICODE(short *ip, char *op, npy_intp n, PyArrayObject *aip, > PyArrayObject *aop) >{ > npy_intp i; > PyObject *temp = ((void *)0); > int skip = 1; > int oskip = aop->descr->elsize; > for (i = 0; i < n; i++, ip += skip, op += oskip) { > temp = SHORT_getitem((char *)ip, aip); > if (temp == ((void *)0)) { > ( ((PyObject*)(((PyObject *) &_Py_ZeroStruct)))->ob_refcnt++); > temp = ((PyObject *) &_Py_ZeroStruct); > } > if (UNICODE_setitem(temp,(char *)op, aop)) { > do { if ( --((PyObject*)(temp))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(temp)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(temp)))); } while (0); > return; > } > do { if ( --((PyObject*)(temp))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(temp)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(temp)))); } while (0); > } >} ># 1634 "numpy/core/src/multiarray/arraytypes.c.src" >static void >USHORT_to_UNICODE(npy_ushort *ip, char *op, npy_intp n, PyArrayObject *aip, > PyArrayObject *aop) >{ > npy_intp i; > PyObject *temp = ((void *)0); > int skip = 1; > int oskip = aop->descr->elsize; > for (i = 0; i < n; i++, ip += skip, op += oskip) { > temp = USHORT_getitem((char *)ip, aip); > if (temp == ((void *)0)) { > ( ((PyObject*)(((PyObject *) &_Py_ZeroStruct)))->ob_refcnt++); > temp = ((PyObject *) &_Py_ZeroStruct); > } > if (UNICODE_setitem(temp,(char *)op, aop)) { > do { if ( --((PyObject*)(temp))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(temp)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(temp)))); } while (0); > return; > } > do { if ( --((PyObject*)(temp))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(temp)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(temp)))); } while (0); > } >} ># 1634 "numpy/core/src/multiarray/arraytypes.c.src" >static void >INT_to_UNICODE(int *ip, char *op, npy_intp n, PyArrayObject *aip, > PyArrayObject *aop) >{ > npy_intp i; > PyObject *temp = ((void *)0); > int skip = 1; > int oskip = aop->descr->elsize; > for (i = 0; i < n; i++, ip += skip, op += oskip) { > temp = INT_getitem((char *)ip, aip); > if (temp == ((void *)0)) { > ( ((PyObject*)(((PyObject *) &_Py_ZeroStruct)))->ob_refcnt++); > temp = ((PyObject *) &_Py_ZeroStruct); > } > if (UNICODE_setitem(temp,(char *)op, aop)) { > do { if ( --((PyObject*)(temp))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(temp)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(temp)))); } while (0); > return; > } > do { if ( --((PyObject*)(temp))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(temp)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(temp)))); } while (0); > } >} ># 1634 "numpy/core/src/multiarray/arraytypes.c.src" >static void >UINT_to_UNICODE(npy_uint *ip, char *op, npy_intp n, PyArrayObject *aip, > PyArrayObject *aop) >{ > npy_intp i; > PyObject *temp = ((void *)0); > int skip = 1; > int oskip = aop->descr->elsize; > for (i = 0; i < n; i++, ip += skip, op += oskip) { > temp = UINT_getitem((char *)ip, aip); > if (temp == ((void *)0)) { > ( ((PyObject*)(((PyObject *) &_Py_ZeroStruct)))->ob_refcnt++); > temp = ((PyObject *) &_Py_ZeroStruct); > } > if (UNICODE_setitem(temp,(char *)op, aop)) { > do { if ( --((PyObject*)(temp))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(temp)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(temp)))); } while (0); > return; > } > do { if ( --((PyObject*)(temp))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(temp)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(temp)))); } while (0); > } >} ># 1634 "numpy/core/src/multiarray/arraytypes.c.src" >static void >LONG_to_UNICODE(long *ip, char *op, npy_intp n, PyArrayObject *aip, > PyArrayObject *aop) >{ > npy_intp i; > PyObject *temp = ((void *)0); > int skip = 1; > int oskip = aop->descr->elsize; > for (i = 0; i < n; i++, ip += skip, op += oskip) { > temp = LONG_getitem((char *)ip, aip); > if (temp == ((void *)0)) { > ( ((PyObject*)(((PyObject *) &_Py_ZeroStruct)))->ob_refcnt++); > temp = ((PyObject *) &_Py_ZeroStruct); > } > if (UNICODE_setitem(temp,(char *)op, aop)) { > do { if ( --((PyObject*)(temp))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(temp)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(temp)))); } while (0); > return; > } > do { if ( --((PyObject*)(temp))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(temp)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(temp)))); } while (0); > } >} ># 1634 "numpy/core/src/multiarray/arraytypes.c.src" >static void >ULONG_to_UNICODE(npy_ulong *ip, char *op, npy_intp n, PyArrayObject *aip, > PyArrayObject *aop) >{ > npy_intp i; > PyObject *temp = ((void *)0); > int skip = 1; > int oskip = aop->descr->elsize; > for (i = 0; i < n; i++, ip += skip, op += oskip) { > temp = ULONG_getitem((char *)ip, aip); > if (temp == ((void *)0)) { > ( ((PyObject*)(((PyObject *) &_Py_ZeroStruct)))->ob_refcnt++); > temp = ((PyObject *) &_Py_ZeroStruct); > } > if (UNICODE_setitem(temp,(char *)op, aop)) { > do { if ( --((PyObject*)(temp))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(temp)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(temp)))); } while (0); > return; > } > do { if ( --((PyObject*)(temp))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(temp)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(temp)))); } while (0); > } >} ># 1634 "numpy/core/src/multiarray/arraytypes.c.src" >static void >LONGLONG_to_UNICODE(npy_longlong *ip, char *op, npy_intp n, PyArrayObject *aip, > PyArrayObject *aop) >{ > npy_intp i; > PyObject *temp = ((void *)0); > int skip = 1; > int oskip = aop->descr->elsize; > for (i = 0; i < n; i++, ip += skip, op += oskip) { > temp = LONGLONG_getitem((char *)ip, aip); > if (temp == ((void *)0)) { > ( ((PyObject*)(((PyObject *) &_Py_ZeroStruct)))->ob_refcnt++); > temp = ((PyObject *) &_Py_ZeroStruct); > } > if (UNICODE_setitem(temp,(char *)op, aop)) { > do { if ( --((PyObject*)(temp))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(temp)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(temp)))); } while (0); > return; > } > do { if ( --((PyObject*)(temp))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(temp)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(temp)))); } while (0); > } >} ># 1634 "numpy/core/src/multiarray/arraytypes.c.src" >static void >ULONGLONG_to_UNICODE(npy_ulonglong *ip, char *op, npy_intp n, PyArrayObject *aip, > PyArrayObject *aop) >{ > npy_intp i; > PyObject *temp = ((void *)0); > int skip = 1; > int oskip = aop->descr->elsize; > for (i = 0; i < n; i++, ip += skip, op += oskip) { > temp = ULONGLONG_getitem((char *)ip, aip); > if (temp == ((void *)0)) { > ( ((PyObject*)(((PyObject *) &_Py_ZeroStruct)))->ob_refcnt++); > temp = ((PyObject *) &_Py_ZeroStruct); > } > if (UNICODE_setitem(temp,(char *)op, aop)) { > do { if ( --((PyObject*)(temp))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(temp)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(temp)))); } while (0); > return; > } > do { if ( --((PyObject*)(temp))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(temp)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(temp)))); } while (0); > } >} ># 1634 "numpy/core/src/multiarray/arraytypes.c.src" >static void >HALF_to_UNICODE(npy_half *ip, char *op, npy_intp n, PyArrayObject *aip, > PyArrayObject *aop) >{ > npy_intp i; > PyObject *temp = ((void *)0); > int skip = 1; > int oskip = aop->descr->elsize; > for (i = 0; i < n; i++, ip += skip, op += oskip) { > temp = HALF_getitem((char *)ip, aip); > if (temp == ((void *)0)) { > ( ((PyObject*)(((PyObject *) &_Py_ZeroStruct)))->ob_refcnt++); > temp = ((PyObject *) &_Py_ZeroStruct); > } > if (UNICODE_setitem(temp,(char *)op, aop)) { > do { if ( --((PyObject*)(temp))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(temp)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(temp)))); } while (0); > return; > } > do { if ( --((PyObject*)(temp))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(temp)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(temp)))); } while (0); > } >} ># 1634 "numpy/core/src/multiarray/arraytypes.c.src" >static void >FLOAT_to_UNICODE(float *ip, char *op, npy_intp n, PyArrayObject *aip, > PyArrayObject *aop) >{ > npy_intp i; > PyObject *temp = ((void *)0); > int skip = 1; > int oskip = aop->descr->elsize; > for (i = 0; i < n; i++, ip += skip, op += oskip) { > temp = FLOAT_getitem((char *)ip, aip); > if (temp == ((void *)0)) { > ( ((PyObject*)(((PyObject *) &_Py_ZeroStruct)))->ob_refcnt++); > temp = ((PyObject *) &_Py_ZeroStruct); > } > if (UNICODE_setitem(temp,(char *)op, aop)) { > do { if ( --((PyObject*)(temp))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(temp)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(temp)))); } while (0); > return; > } > do { if ( --((PyObject*)(temp))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(temp)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(temp)))); } while (0); > } >} ># 1634 "numpy/core/src/multiarray/arraytypes.c.src" >static void >DOUBLE_to_UNICODE(double *ip, char *op, npy_intp n, PyArrayObject *aip, > PyArrayObject *aop) >{ > npy_intp i; > PyObject *temp = ((void *)0); > int skip = 1; > int oskip = aop->descr->elsize; > for (i = 0; i < n; i++, ip += skip, op += oskip) { > temp = DOUBLE_getitem((char *)ip, aip); > if (temp == ((void *)0)) { > ( ((PyObject*)(((PyObject *) &_Py_ZeroStruct)))->ob_refcnt++); > temp = ((PyObject *) &_Py_ZeroStruct); > } > if (UNICODE_setitem(temp,(char *)op, aop)) { > do { if ( --((PyObject*)(temp))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(temp)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(temp)))); } while (0); > return; > } > do { if ( --((PyObject*)(temp))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(temp)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(temp)))); } while (0); > } >} ># 1634 "numpy/core/src/multiarray/arraytypes.c.src" >static void >LONGDOUBLE_to_UNICODE(npy_longdouble *ip, char *op, npy_intp n, PyArrayObject *aip, > PyArrayObject *aop) >{ > npy_intp i; > PyObject *temp = ((void *)0); > int skip = 1; > int oskip = aop->descr->elsize; > for (i = 0; i < n; i++, ip += skip, op += oskip) { > temp = LONGDOUBLE_getitem((char *)ip, aip); > if (temp == ((void *)0)) { > ( ((PyObject*)(((PyObject *) &_Py_ZeroStruct)))->ob_refcnt++); > temp = ((PyObject *) &_Py_ZeroStruct); > } > if (UNICODE_setitem(temp,(char *)op, aop)) { > do { if ( --((PyObject*)(temp))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(temp)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(temp)))); } while (0); > return; > } > do { if ( --((PyObject*)(temp))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(temp)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(temp)))); } while (0); > } >} ># 1634 "numpy/core/src/multiarray/arraytypes.c.src" >static void >CFLOAT_to_UNICODE(npy_cfloat *ip, char *op, npy_intp n, PyArrayObject *aip, > PyArrayObject *aop) >{ > npy_intp i; > PyObject *temp = ((void *)0); > int skip = 1; > int oskip = aop->descr->elsize; > for (i = 0; i < n; i++, ip += skip, op += oskip) { > temp = CFLOAT_getitem((char *)ip, aip); > if (temp == ((void *)0)) { > ( ((PyObject*)(((PyObject *) &_Py_ZeroStruct)))->ob_refcnt++); > temp = ((PyObject *) &_Py_ZeroStruct); > } > if (UNICODE_setitem(temp,(char *)op, aop)) { > do { if ( --((PyObject*)(temp))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(temp)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(temp)))); } while (0); > return; > } > do { if ( --((PyObject*)(temp))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(temp)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(temp)))); } while (0); > } >} ># 1634 "numpy/core/src/multiarray/arraytypes.c.src" >static void >CDOUBLE_to_UNICODE(npy_cdouble *ip, char *op, npy_intp n, PyArrayObject *aip, > PyArrayObject *aop) >{ > npy_intp i; > PyObject *temp = ((void *)0); > int skip = 1; > int oskip = aop->descr->elsize; > for (i = 0; i < n; i++, ip += skip, op += oskip) { > temp = CDOUBLE_getitem((char *)ip, aip); > if (temp == ((void *)0)) { > ( ((PyObject*)(((PyObject *) &_Py_ZeroStruct)))->ob_refcnt++); > temp = ((PyObject *) &_Py_ZeroStruct); > } > if (UNICODE_setitem(temp,(char *)op, aop)) { > do { if ( --((PyObject*)(temp))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(temp)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(temp)))); } while (0); > return; > } > do { if ( --((PyObject*)(temp))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(temp)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(temp)))); } while (0); > } >} ># 1634 "numpy/core/src/multiarray/arraytypes.c.src" >static void >CLONGDOUBLE_to_UNICODE(npy_clongdouble *ip, char *op, npy_intp n, PyArrayObject *aip, > PyArrayObject *aop) >{ > npy_intp i; > PyObject *temp = ((void *)0); > int skip = 1; > int oskip = aop->descr->elsize; > for (i = 0; i < n; i++, ip += skip, op += oskip) { > temp = CLONGDOUBLE_getitem((char *)ip, aip); > if (temp == ((void *)0)) { > ( ((PyObject*)(((PyObject *) &_Py_ZeroStruct)))->ob_refcnt++); > temp = ((PyObject *) &_Py_ZeroStruct); > } > if (UNICODE_setitem(temp,(char *)op, aop)) { > do { if ( --((PyObject*)(temp))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(temp)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(temp)))); } while (0); > return; > } > do { if ( --((PyObject*)(temp))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(temp)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(temp)))); } while (0); > } >} ># 1634 "numpy/core/src/multiarray/arraytypes.c.src" >static void >DATETIME_to_UNICODE(npy_datetime *ip, char *op, npy_intp n, PyArrayObject *aip, > PyArrayObject *aop) >{ > npy_intp i; > PyObject *temp = ((void *)0); > int skip = 1; > int oskip = aop->descr->elsize; > for (i = 0; i < n; i++, ip += skip, op += oskip) { > temp = DATETIME_getitem((char *)ip, aip); > if (temp == ((void *)0)) { > ( ((PyObject*)(((PyObject *) &_Py_ZeroStruct)))->ob_refcnt++); > temp = ((PyObject *) &_Py_ZeroStruct); > } > if (UNICODE_setitem(temp,(char *)op, aop)) { > do { if ( --((PyObject*)(temp))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(temp)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(temp)))); } while (0); > return; > } > do { if ( --((PyObject*)(temp))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(temp)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(temp)))); } while (0); > } >} ># 1634 "numpy/core/src/multiarray/arraytypes.c.src" >static void >TIMEDELTA_to_UNICODE(npy_timedelta *ip, char *op, npy_intp n, PyArrayObject *aip, > PyArrayObject *aop) >{ > npy_intp i; > PyObject *temp = ((void *)0); > int skip = 1; > int oskip = aop->descr->elsize; > for (i = 0; i < n; i++, ip += skip, op += oskip) { > temp = TIMEDELTA_getitem((char *)ip, aip); > if (temp == ((void *)0)) { > ( ((PyObject*)(((PyObject *) &_Py_ZeroStruct)))->ob_refcnt++); > temp = ((PyObject *) &_Py_ZeroStruct); > } > if (UNICODE_setitem(temp,(char *)op, aop)) { > do { if ( --((PyObject*)(temp))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(temp)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(temp)))); } while (0); > return; > } > do { if ( --((PyObject*)(temp))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(temp)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(temp)))); } while (0); > } >} ># 1634 "numpy/core/src/multiarray/arraytypes.c.src" >static void >BOOL_to_VOID(npy_bool *ip, char *op, npy_intp n, PyArrayObject *aip, > PyArrayObject *aop) >{ > npy_intp i; > PyObject *temp = ((void *)0); > int skip = 1; > int oskip = aop->descr->elsize; > for (i = 0; i < n; i++, ip += skip, op += oskip) { > temp = BOOL_getitem((char *)ip, aip); > if (temp == ((void *)0)) { > ( ((PyObject*)(((PyObject *) &_Py_ZeroStruct)))->ob_refcnt++); > temp = ((PyObject *) &_Py_ZeroStruct); > } > if (VOID_setitem(temp,(char *)op, aop)) { > do { if ( --((PyObject*)(temp))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(temp)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(temp)))); } while (0); > return; > } > do { if ( --((PyObject*)(temp))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(temp)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(temp)))); } while (0); > } >} ># 1634 "numpy/core/src/multiarray/arraytypes.c.src" >static void >BYTE_to_VOID(npy_byte *ip, char *op, npy_intp n, PyArrayObject *aip, > PyArrayObject *aop) >{ > npy_intp i; > PyObject *temp = ((void *)0); > int skip = 1; > int oskip = aop->descr->elsize; > for (i = 0; i < n; i++, ip += skip, op += oskip) { > temp = BYTE_getitem((char *)ip, aip); > if (temp == ((void *)0)) { > ( ((PyObject*)(((PyObject *) &_Py_ZeroStruct)))->ob_refcnt++); > temp = ((PyObject *) &_Py_ZeroStruct); > } > if (VOID_setitem(temp,(char *)op, aop)) { > do { if ( --((PyObject*)(temp))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(temp)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(temp)))); } while (0); > return; > } > do { if ( --((PyObject*)(temp))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(temp)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(temp)))); } while (0); > } >} ># 1634 "numpy/core/src/multiarray/arraytypes.c.src" >static void >UBYTE_to_VOID(npy_ubyte *ip, char *op, npy_intp n, PyArrayObject *aip, > PyArrayObject *aop) >{ > npy_intp i; > PyObject *temp = ((void *)0); > int skip = 1; > int oskip = aop->descr->elsize; > for (i = 0; i < n; i++, ip += skip, op += oskip) { > temp = UBYTE_getitem((char *)ip, aip); > if (temp == ((void *)0)) { > ( ((PyObject*)(((PyObject *) &_Py_ZeroStruct)))->ob_refcnt++); > temp = ((PyObject *) &_Py_ZeroStruct); > } > if (VOID_setitem(temp,(char *)op, aop)) { > do { if ( --((PyObject*)(temp))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(temp)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(temp)))); } while (0); > return; > } > do { if ( --((PyObject*)(temp))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(temp)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(temp)))); } while (0); > } >} ># 1634 "numpy/core/src/multiarray/arraytypes.c.src" >static void >SHORT_to_VOID(short *ip, char *op, npy_intp n, PyArrayObject *aip, > PyArrayObject *aop) >{ > npy_intp i; > PyObject *temp = ((void *)0); > int skip = 1; > int oskip = aop->descr->elsize; > for (i = 0; i < n; i++, ip += skip, op += oskip) { > temp = SHORT_getitem((char *)ip, aip); > if (temp == ((void *)0)) { > ( ((PyObject*)(((PyObject *) &_Py_ZeroStruct)))->ob_refcnt++); > temp = ((PyObject *) &_Py_ZeroStruct); > } > if (VOID_setitem(temp,(char *)op, aop)) { > do { if ( --((PyObject*)(temp))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(temp)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(temp)))); } while (0); > return; > } > do { if ( --((PyObject*)(temp))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(temp)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(temp)))); } while (0); > } >} ># 1634 "numpy/core/src/multiarray/arraytypes.c.src" >static void >USHORT_to_VOID(npy_ushort *ip, char *op, npy_intp n, PyArrayObject *aip, > PyArrayObject *aop) >{ > npy_intp i; > PyObject *temp = ((void *)0); > int skip = 1; > int oskip = aop->descr->elsize; > for (i = 0; i < n; i++, ip += skip, op += oskip) { > temp = USHORT_getitem((char *)ip, aip); > if (temp == ((void *)0)) { > ( ((PyObject*)(((PyObject *) &_Py_ZeroStruct)))->ob_refcnt++); > temp = ((PyObject *) &_Py_ZeroStruct); > } > if (VOID_setitem(temp,(char *)op, aop)) { > do { if ( --((PyObject*)(temp))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(temp)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(temp)))); } while (0); > return; > } > do { if ( --((PyObject*)(temp))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(temp)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(temp)))); } while (0); > } >} ># 1634 "numpy/core/src/multiarray/arraytypes.c.src" >static void >INT_to_VOID(int *ip, char *op, npy_intp n, PyArrayObject *aip, > PyArrayObject *aop) >{ > npy_intp i; > PyObject *temp = ((void *)0); > int skip = 1; > int oskip = aop->descr->elsize; > for (i = 0; i < n; i++, ip += skip, op += oskip) { > temp = INT_getitem((char *)ip, aip); > if (temp == ((void *)0)) { > ( ((PyObject*)(((PyObject *) &_Py_ZeroStruct)))->ob_refcnt++); > temp = ((PyObject *) &_Py_ZeroStruct); > } > if (VOID_setitem(temp,(char *)op, aop)) { > do { if ( --((PyObject*)(temp))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(temp)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(temp)))); } while (0); > return; > } > do { if ( --((PyObject*)(temp))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(temp)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(temp)))); } while (0); > } >} ># 1634 "numpy/core/src/multiarray/arraytypes.c.src" >static void >UINT_to_VOID(npy_uint *ip, char *op, npy_intp n, PyArrayObject *aip, > PyArrayObject *aop) >{ > npy_intp i; > PyObject *temp = ((void *)0); > int skip = 1; > int oskip = aop->descr->elsize; > for (i = 0; i < n; i++, ip += skip, op += oskip) { > temp = UINT_getitem((char *)ip, aip); > if (temp == ((void *)0)) { > ( ((PyObject*)(((PyObject *) &_Py_ZeroStruct)))->ob_refcnt++); > temp = ((PyObject *) &_Py_ZeroStruct); > } > if (VOID_setitem(temp,(char *)op, aop)) { > do { if ( --((PyObject*)(temp))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(temp)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(temp)))); } while (0); > return; > } > do { if ( --((PyObject*)(temp))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(temp)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(temp)))); } while (0); > } >} ># 1634 "numpy/core/src/multiarray/arraytypes.c.src" >static void >LONG_to_VOID(long *ip, char *op, npy_intp n, PyArrayObject *aip, > PyArrayObject *aop) >{ > npy_intp i; > PyObject *temp = ((void *)0); > int skip = 1; > int oskip = aop->descr->elsize; > for (i = 0; i < n; i++, ip += skip, op += oskip) { > temp = LONG_getitem((char *)ip, aip); > if (temp == ((void *)0)) { > ( ((PyObject*)(((PyObject *) &_Py_ZeroStruct)))->ob_refcnt++); > temp = ((PyObject *) &_Py_ZeroStruct); > } > if (VOID_setitem(temp,(char *)op, aop)) { > do { if ( --((PyObject*)(temp))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(temp)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(temp)))); } while (0); > return; > } > do { if ( --((PyObject*)(temp))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(temp)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(temp)))); } while (0); > } >} ># 1634 "numpy/core/src/multiarray/arraytypes.c.src" >static void >ULONG_to_VOID(npy_ulong *ip, char *op, npy_intp n, PyArrayObject *aip, > PyArrayObject *aop) >{ > npy_intp i; > PyObject *temp = ((void *)0); > int skip = 1; > int oskip = aop->descr->elsize; > for (i = 0; i < n; i++, ip += skip, op += oskip) { > temp = ULONG_getitem((char *)ip, aip); > if (temp == ((void *)0)) { > ( ((PyObject*)(((PyObject *) &_Py_ZeroStruct)))->ob_refcnt++); > temp = ((PyObject *) &_Py_ZeroStruct); > } > if (VOID_setitem(temp,(char *)op, aop)) { > do { if ( --((PyObject*)(temp))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(temp)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(temp)))); } while (0); > return; > } > do { if ( --((PyObject*)(temp))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(temp)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(temp)))); } while (0); > } >} ># 1634 "numpy/core/src/multiarray/arraytypes.c.src" >static void >LONGLONG_to_VOID(npy_longlong *ip, char *op, npy_intp n, PyArrayObject *aip, > PyArrayObject *aop) >{ > npy_intp i; > PyObject *temp = ((void *)0); > int skip = 1; > int oskip = aop->descr->elsize; > for (i = 0; i < n; i++, ip += skip, op += oskip) { > temp = LONGLONG_getitem((char *)ip, aip); > if (temp == ((void *)0)) { > ( ((PyObject*)(((PyObject *) &_Py_ZeroStruct)))->ob_refcnt++); > temp = ((PyObject *) &_Py_ZeroStruct); > } > if (VOID_setitem(temp,(char *)op, aop)) { > do { if ( --((PyObject*)(temp))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(temp)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(temp)))); } while (0); > return; > } > do { if ( --((PyObject*)(temp))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(temp)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(temp)))); } while (0); > } >} ># 1634 "numpy/core/src/multiarray/arraytypes.c.src" >static void >ULONGLONG_to_VOID(npy_ulonglong *ip, char *op, npy_intp n, PyArrayObject *aip, > PyArrayObject *aop) >{ > npy_intp i; > PyObject *temp = ((void *)0); > int skip = 1; > int oskip = aop->descr->elsize; > for (i = 0; i < n; i++, ip += skip, op += oskip) { > temp = ULONGLONG_getitem((char *)ip, aip); > if (temp == ((void *)0)) { > ( ((PyObject*)(((PyObject *) &_Py_ZeroStruct)))->ob_refcnt++); > temp = ((PyObject *) &_Py_ZeroStruct); > } > if (VOID_setitem(temp,(char *)op, aop)) { > do { if ( --((PyObject*)(temp))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(temp)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(temp)))); } while (0); > return; > } > do { if ( --((PyObject*)(temp))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(temp)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(temp)))); } while (0); > } >} ># 1634 "numpy/core/src/multiarray/arraytypes.c.src" >static void >HALF_to_VOID(npy_half *ip, char *op, npy_intp n, PyArrayObject *aip, > PyArrayObject *aop) >{ > npy_intp i; > PyObject *temp = ((void *)0); > int skip = 1; > int oskip = aop->descr->elsize; > for (i = 0; i < n; i++, ip += skip, op += oskip) { > temp = HALF_getitem((char *)ip, aip); > if (temp == ((void *)0)) { > ( ((PyObject*)(((PyObject *) &_Py_ZeroStruct)))->ob_refcnt++); > temp = ((PyObject *) &_Py_ZeroStruct); > } > if (VOID_setitem(temp,(char *)op, aop)) { > do { if ( --((PyObject*)(temp))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(temp)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(temp)))); } while (0); > return; > } > do { if ( --((PyObject*)(temp))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(temp)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(temp)))); } while (0); > } >} ># 1634 "numpy/core/src/multiarray/arraytypes.c.src" >static void >FLOAT_to_VOID(float *ip, char *op, npy_intp n, PyArrayObject *aip, > PyArrayObject *aop) >{ > npy_intp i; > PyObject *temp = ((void *)0); > int skip = 1; > int oskip = aop->descr->elsize; > for (i = 0; i < n; i++, ip += skip, op += oskip) { > temp = FLOAT_getitem((char *)ip, aip); > if (temp == ((void *)0)) { > ( ((PyObject*)(((PyObject *) &_Py_ZeroStruct)))->ob_refcnt++); > temp = ((PyObject *) &_Py_ZeroStruct); > } > if (VOID_setitem(temp,(char *)op, aop)) { > do { if ( --((PyObject*)(temp))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(temp)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(temp)))); } while (0); > return; > } > do { if ( --((PyObject*)(temp))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(temp)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(temp)))); } while (0); > } >} ># 1634 "numpy/core/src/multiarray/arraytypes.c.src" >static void >DOUBLE_to_VOID(double *ip, char *op, npy_intp n, PyArrayObject *aip, > PyArrayObject *aop) >{ > npy_intp i; > PyObject *temp = ((void *)0); > int skip = 1; > int oskip = aop->descr->elsize; > for (i = 0; i < n; i++, ip += skip, op += oskip) { > temp = DOUBLE_getitem((char *)ip, aip); > if (temp == ((void *)0)) { > ( ((PyObject*)(((PyObject *) &_Py_ZeroStruct)))->ob_refcnt++); > temp = ((PyObject *) &_Py_ZeroStruct); > } > if (VOID_setitem(temp,(char *)op, aop)) { > do { if ( --((PyObject*)(temp))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(temp)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(temp)))); } while (0); > return; > } > do { if ( --((PyObject*)(temp))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(temp)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(temp)))); } while (0); > } >} ># 1634 "numpy/core/src/multiarray/arraytypes.c.src" >static void >LONGDOUBLE_to_VOID(npy_longdouble *ip, char *op, npy_intp n, PyArrayObject *aip, > PyArrayObject *aop) >{ > npy_intp i; > PyObject *temp = ((void *)0); > int skip = 1; > int oskip = aop->descr->elsize; > for (i = 0; i < n; i++, ip += skip, op += oskip) { > temp = LONGDOUBLE_getitem((char *)ip, aip); > if (temp == ((void *)0)) { > ( ((PyObject*)(((PyObject *) &_Py_ZeroStruct)))->ob_refcnt++); > temp = ((PyObject *) &_Py_ZeroStruct); > } > if (VOID_setitem(temp,(char *)op, aop)) { > do { if ( --((PyObject*)(temp))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(temp)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(temp)))); } while (0); > return; > } > do { if ( --((PyObject*)(temp))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(temp)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(temp)))); } while (0); > } >} ># 1634 "numpy/core/src/multiarray/arraytypes.c.src" >static void >CFLOAT_to_VOID(npy_cfloat *ip, char *op, npy_intp n, PyArrayObject *aip, > PyArrayObject *aop) >{ > npy_intp i; > PyObject *temp = ((void *)0); > int skip = 1; > int oskip = aop->descr->elsize; > for (i = 0; i < n; i++, ip += skip, op += oskip) { > temp = CFLOAT_getitem((char *)ip, aip); > if (temp == ((void *)0)) { > ( ((PyObject*)(((PyObject *) &_Py_ZeroStruct)))->ob_refcnt++); > temp = ((PyObject *) &_Py_ZeroStruct); > } > if (VOID_setitem(temp,(char *)op, aop)) { > do { if ( --((PyObject*)(temp))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(temp)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(temp)))); } while (0); > return; > } > do { if ( --((PyObject*)(temp))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(temp)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(temp)))); } while (0); > } >} ># 1634 "numpy/core/src/multiarray/arraytypes.c.src" >static void >CDOUBLE_to_VOID(npy_cdouble *ip, char *op, npy_intp n, PyArrayObject *aip, > PyArrayObject *aop) >{ > npy_intp i; > PyObject *temp = ((void *)0); > int skip = 1; > int oskip = aop->descr->elsize; > for (i = 0; i < n; i++, ip += skip, op += oskip) { > temp = CDOUBLE_getitem((char *)ip, aip); > if (temp == ((void *)0)) { > ( ((PyObject*)(((PyObject *) &_Py_ZeroStruct)))->ob_refcnt++); > temp = ((PyObject *) &_Py_ZeroStruct); > } > if (VOID_setitem(temp,(char *)op, aop)) { > do { if ( --((PyObject*)(temp))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(temp)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(temp)))); } while (0); > return; > } > do { if ( --((PyObject*)(temp))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(temp)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(temp)))); } while (0); > } >} ># 1634 "numpy/core/src/multiarray/arraytypes.c.src" >static void >CLONGDOUBLE_to_VOID(npy_clongdouble *ip, char *op, npy_intp n, PyArrayObject *aip, > PyArrayObject *aop) >{ > npy_intp i; > PyObject *temp = ((void *)0); > int skip = 1; > int oskip = aop->descr->elsize; > for (i = 0; i < n; i++, ip += skip, op += oskip) { > temp = CLONGDOUBLE_getitem((char *)ip, aip); > if (temp == ((void *)0)) { > ( ((PyObject*)(((PyObject *) &_Py_ZeroStruct)))->ob_refcnt++); > temp = ((PyObject *) &_Py_ZeroStruct); > } > if (VOID_setitem(temp,(char *)op, aop)) { > do { if ( --((PyObject*)(temp))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(temp)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(temp)))); } while (0); > return; > } > do { if ( --((PyObject*)(temp))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(temp)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(temp)))); } while (0); > } >} ># 1634 "numpy/core/src/multiarray/arraytypes.c.src" >static void >DATETIME_to_VOID(npy_datetime *ip, char *op, npy_intp n, PyArrayObject *aip, > PyArrayObject *aop) >{ > npy_intp i; > PyObject *temp = ((void *)0); > int skip = 1; > int oskip = aop->descr->elsize; > for (i = 0; i < n; i++, ip += skip, op += oskip) { > temp = DATETIME_getitem((char *)ip, aip); > if (temp == ((void *)0)) { > ( ((PyObject*)(((PyObject *) &_Py_ZeroStruct)))->ob_refcnt++); > temp = ((PyObject *) &_Py_ZeroStruct); > } > if (VOID_setitem(temp,(char *)op, aop)) { > do { if ( --((PyObject*)(temp))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(temp)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(temp)))); } while (0); > return; > } > do { if ( --((PyObject*)(temp))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(temp)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(temp)))); } while (0); > } >} ># 1634 "numpy/core/src/multiarray/arraytypes.c.src" >static void >TIMEDELTA_to_VOID(npy_timedelta *ip, char *op, npy_intp n, PyArrayObject *aip, > PyArrayObject *aop) >{ > npy_intp i; > PyObject *temp = ((void *)0); > int skip = 1; > int oskip = aop->descr->elsize; > for (i = 0; i < n; i++, ip += skip, op += oskip) { > temp = TIMEDELTA_getitem((char *)ip, aip); > if (temp == ((void *)0)) { > ( ((PyObject*)(((PyObject *) &_Py_ZeroStruct)))->ob_refcnt++); > temp = ((PyObject *) &_Py_ZeroStruct); > } > if (VOID_setitem(temp,(char *)op, aop)) { > do { if ( --((PyObject*)(temp))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(temp)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(temp)))); } while (0); > return; > } > do { if ( --((PyObject*)(temp))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(temp)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(temp)))); } while (0); > } >} ># 1676 "numpy/core/src/multiarray/arraytypes.c.src" >static int >SHORT_scan(FILE *fp, short *ip, void *(__NPY_UNUSED_TAGGEDignore) __attribute__ ((__unused__)), PyArray_Descr *(__NPY_UNUSED_TAGGEDignored) __attribute__ ((__unused__))) >{ > return fscanf(fp, "%""hd", ip); >} ># 1676 "numpy/core/src/multiarray/arraytypes.c.src" >static int >USHORT_scan(FILE *fp, npy_ushort *ip, void *(__NPY_UNUSED_TAGGEDignore) __attribute__ ((__unused__)), PyArray_Descr *(__NPY_UNUSED_TAGGEDignored) __attribute__ ((__unused__))) >{ > return fscanf(fp, "%""hu", ip); >} ># 1676 "numpy/core/src/multiarray/arraytypes.c.src" >static int >INT_scan(FILE *fp, int *ip, void *(__NPY_UNUSED_TAGGEDignore) __attribute__ ((__unused__)), PyArray_Descr *(__NPY_UNUSED_TAGGEDignored) __attribute__ ((__unused__))) >{ > return fscanf(fp, "%""d", ip); >} ># 1676 "numpy/core/src/multiarray/arraytypes.c.src" >static int >UINT_scan(FILE *fp, npy_uint *ip, void *(__NPY_UNUSED_TAGGEDignore) __attribute__ ((__unused__)), PyArray_Descr *(__NPY_UNUSED_TAGGEDignored) __attribute__ ((__unused__))) >{ > return fscanf(fp, "%""u", ip); >} ># 1676 "numpy/core/src/multiarray/arraytypes.c.src" >static int >LONG_scan(FILE *fp, long *ip, void *(__NPY_UNUSED_TAGGEDignore) __attribute__ ((__unused__)), PyArray_Descr *(__NPY_UNUSED_TAGGEDignored) __attribute__ ((__unused__))) >{ > return fscanf(fp, "%""ld", ip); >} ># 1676 "numpy/core/src/multiarray/arraytypes.c.src" >static int >ULONG_scan(FILE *fp, npy_ulong *ip, void *(__NPY_UNUSED_TAGGEDignore) __attribute__ ((__unused__)), PyArray_Descr *(__NPY_UNUSED_TAGGEDignored) __attribute__ ((__unused__))) >{ > return fscanf(fp, "%""lu", ip); >} ># 1676 "numpy/core/src/multiarray/arraytypes.c.src" >static int >LONGLONG_scan(FILE *fp, npy_longlong *ip, void *(__NPY_UNUSED_TAGGEDignore) __attribute__ ((__unused__)), PyArray_Descr *(__NPY_UNUSED_TAGGEDignored) __attribute__ ((__unused__))) >{ > return fscanf(fp, "%""Ld", ip); >} ># 1676 "numpy/core/src/multiarray/arraytypes.c.src" >static int >ULONGLONG_scan(FILE *fp, npy_ulonglong *ip, void *(__NPY_UNUSED_TAGGEDignore) __attribute__ ((__unused__)), PyArray_Descr *(__NPY_UNUSED_TAGGEDignored) __attribute__ ((__unused__))) >{ > return fscanf(fp, "%""Lu", ip); >} ># 1687 "numpy/core/src/multiarray/arraytypes.c.src" >static int >FLOAT_scan(FILE *fp, float *ip, void *(__NPY_UNUSED_TAGGEDignore) __attribute__ ((__unused__)), PyArray_Descr *(__NPY_UNUSED_TAGGEDignored) __attribute__ ((__unused__))) >{ > double result; > int ret; > > ret = NumPyOS_ascii_ftolf(fp, &result); > *ip = (float) result; > return ret; >} ># 1687 "numpy/core/src/multiarray/arraytypes.c.src" >static int >DOUBLE_scan(FILE *fp, double *ip, void *(__NPY_UNUSED_TAGGEDignore) __attribute__ ((__unused__)), PyArray_Descr *(__NPY_UNUSED_TAGGEDignored) __attribute__ ((__unused__))) >{ > double result; > int ret; > > ret = NumPyOS_ascii_ftolf(fp, &result); > *ip = (double) result; > return ret; >} ># 1687 "numpy/core/src/multiarray/arraytypes.c.src" >static int >LONGDOUBLE_scan(FILE *fp, npy_longdouble *ip, void *(__NPY_UNUSED_TAGGEDignore) __attribute__ ((__unused__)), PyArray_Descr *(__NPY_UNUSED_TAGGEDignored) __attribute__ ((__unused__))) >{ > double result; > int ret; > > ret = NumPyOS_ascii_ftolf(fp, &result); > *ip = (npy_longdouble) result; > return ret; >} > > >static int >HALF_scan(FILE *fp, npy_half *ip, void *(__NPY_UNUSED_TAGGEDignore) __attribute__ ((__unused__)), PyArray_Descr *(__NPY_UNUSED_TAGGEDignored) __attribute__ ((__unused__))) >{ > double result; > int ret; > > ret = NumPyOS_ascii_ftolf(fp, &result); > *ip = npy_double_to_half(result); > return ret; >} ># 1716 "numpy/core/src/multiarray/arraytypes.c.src" >static int >BYTE_scan(FILE *fp, npy_byte *ip, void *(__NPY_UNUSED_TAGGEDignore) __attribute__ ((__unused__)), PyArray_Descr *(__NPY_UNUSED_TAGGEDignore2) __attribute__ ((__unused__))) >{ > int temp; > int num; > > num = fscanf(fp, "%""d", &temp); > *ip = (npy_byte) temp; > return num; >} ># 1716 "numpy/core/src/multiarray/arraytypes.c.src" >static int >UBYTE_scan(FILE *fp, npy_ubyte *ip, void *(__NPY_UNUSED_TAGGEDignore) __attribute__ ((__unused__)), PyArray_Descr *(__NPY_UNUSED_TAGGEDignore2) __attribute__ ((__unused__))) >{ > npy_uint temp; > int num; > > num = fscanf(fp, "%""u", &temp); > *ip = (npy_ubyte) temp; > return num; >} > > >static int >BOOL_scan(FILE *fp, npy_bool *ip, void *(__NPY_UNUSED_TAGGEDignore) __attribute__ ((__unused__)), PyArray_Descr *(__NPY_UNUSED_TAGGEDignore2) __attribute__ ((__unused__))) >{ > double result; > int ret; > > ret = NumPyOS_ascii_ftolf(fp, &result); > *ip = (npy_bool) (result != 0.0); > return ret; >} ># 1743 "numpy/core/src/multiarray/arraytypes.c.src" ># 1743 "numpy/core/src/multiarray/arraytypes.c.src" ># 1743 "numpy/core/src/multiarray/arraytypes.c.src" ># 1743 "numpy/core/src/multiarray/arraytypes.c.src" ># 1743 "numpy/core/src/multiarray/arraytypes.c.src" ># 1743 "numpy/core/src/multiarray/arraytypes.c.src" ># 1743 "numpy/core/src/multiarray/arraytypes.c.src" ># 1743 "numpy/core/src/multiarray/arraytypes.c.src" ># 1743 "numpy/core/src/multiarray/arraytypes.c.src" ># 1762 "numpy/core/src/multiarray/arraytypes.c.src" >static int >BYTE_fromstr(char *str, npy_byte *ip, char **endptr, PyArray_Descr *(__NPY_UNUSED_TAGGEDignore) __attribute__ ((__unused__))) >{ > long result; > > result = PyOS_strtol(str, endptr, 10); > *ip = (npy_byte) result; > return 0; >} ># 1762 "numpy/core/src/multiarray/arraytypes.c.src" >static int >UBYTE_fromstr(char *str, npy_ubyte *ip, char **endptr, PyArray_Descr *(__NPY_UNUSED_TAGGEDignore) __attribute__ ((__unused__))) >{ > npy_ulong result; > > result = PyOS_strtoul(str, endptr, 10); > *ip = (npy_ubyte) result; > return 0; >} ># 1762 "numpy/core/src/multiarray/arraytypes.c.src" >static int >SHORT_fromstr(char *str, short *ip, char **endptr, PyArray_Descr *(__NPY_UNUSED_TAGGEDignore) __attribute__ ((__unused__))) >{ > long result; > > result = PyOS_strtol(str, endptr, 10); > *ip = (short) result; > return 0; >} ># 1762 "numpy/core/src/multiarray/arraytypes.c.src" >static int >USHORT_fromstr(char *str, npy_ushort *ip, char **endptr, PyArray_Descr *(__NPY_UNUSED_TAGGEDignore) __attribute__ ((__unused__))) >{ > npy_ulong result; > > result = PyOS_strtoul(str, endptr, 10); > *ip = (npy_ushort) result; > return 0; >} ># 1762 "numpy/core/src/multiarray/arraytypes.c.src" >static int >INT_fromstr(char *str, int *ip, char **endptr, PyArray_Descr *(__NPY_UNUSED_TAGGEDignore) __attribute__ ((__unused__))) >{ > long result; > > result = PyOS_strtol(str, endptr, 10); > *ip = (int) result; > return 0; >} ># 1762 "numpy/core/src/multiarray/arraytypes.c.src" >static int >UINT_fromstr(char *str, npy_uint *ip, char **endptr, PyArray_Descr *(__NPY_UNUSED_TAGGEDignore) __attribute__ ((__unused__))) >{ > npy_ulong result; > > result = PyOS_strtoul(str, endptr, 10); > *ip = (npy_uint) result; > return 0; >} ># 1762 "numpy/core/src/multiarray/arraytypes.c.src" >static int >LONG_fromstr(char *str, long *ip, char **endptr, PyArray_Descr *(__NPY_UNUSED_TAGGEDignore) __attribute__ ((__unused__))) >{ > long result; > > result = PyOS_strtol(str, endptr, 10); > *ip = (long) result; > return 0; >} ># 1762 "numpy/core/src/multiarray/arraytypes.c.src" >static int >ULONG_fromstr(char *str, npy_ulong *ip, char **endptr, PyArray_Descr *(__NPY_UNUSED_TAGGEDignore) __attribute__ ((__unused__))) >{ > npy_ulong result; > > result = PyOS_strtoul(str, endptr, 10); > *ip = (npy_ulong) result; > return 0; >} ># 1762 "numpy/core/src/multiarray/arraytypes.c.src" >static int >LONGLONG_fromstr(char *str, npy_longlong *ip, char **endptr, PyArray_Descr *(__NPY_UNUSED_TAGGEDignore) __attribute__ ((__unused__))) >{ > long result; > > result = PyOS_strtol(str, endptr, 10); > *ip = (npy_longlong) result; > return 0; >} ># 1762 "numpy/core/src/multiarray/arraytypes.c.src" >static int >ULONGLONG_fromstr(char *str, npy_ulonglong *ip, char **endptr, PyArray_Descr *(__NPY_UNUSED_TAGGEDignore) __attribute__ ((__unused__))) >{ > npy_ulong result; > > result = PyOS_strtoul(str, endptr, 10); > *ip = (npy_ulonglong) result; > return 0; >} ># 1762 "numpy/core/src/multiarray/arraytypes.c.src" >static int >DATETIME_fromstr(char *str, npy_datetime *ip, char **endptr, PyArray_Descr *(__NPY_UNUSED_TAGGEDignore) __attribute__ ((__unused__))) >{ > long result; > > result = PyOS_strtol(str, endptr, 10); > *ip = (npy_datetime) result; > return 0; >} ># 1762 "numpy/core/src/multiarray/arraytypes.c.src" >static int >TIMEDELTA_fromstr(char *str, npy_timedelta *ip, char **endptr, PyArray_Descr *(__NPY_UNUSED_TAGGEDignore) __attribute__ ((__unused__))) >{ > long result; > > result = PyOS_strtol(str, endptr, 10); > *ip = (npy_timedelta) result; > return 0; >} ># 1778 "numpy/core/src/multiarray/arraytypes.c.src" >static int >FLOAT_fromstr(char *str, float *ip, char **endptr, PyArray_Descr *(__NPY_UNUSED_TAGGEDignore) __attribute__ ((__unused__))) >{ > double result; > > result = NumPyOS_ascii_strtod(str, endptr); > *ip = (float) result; > return 0; >} ># 1778 "numpy/core/src/multiarray/arraytypes.c.src" >static int >DOUBLE_fromstr(char *str, double *ip, char **endptr, PyArray_Descr *(__NPY_UNUSED_TAGGEDignore) __attribute__ ((__unused__))) >{ > double result; > > result = NumPyOS_ascii_strtod(str, endptr); > *ip = (double) result; > return 0; >} ># 1778 "numpy/core/src/multiarray/arraytypes.c.src" >static int >LONGDOUBLE_fromstr(char *str, npy_longdouble *ip, char **endptr, PyArray_Descr *(__NPY_UNUSED_TAGGEDignore) __attribute__ ((__unused__))) >{ > double result; > > result = NumPyOS_ascii_strtod(str, endptr); > *ip = (npy_longdouble) result; > return 0; >} > > >static int >HALF_fromstr(char *str, npy_half *ip, char **endptr, PyArray_Descr *(__NPY_UNUSED_TAGGEDignore) __attribute__ ((__unused__))) >{ > double result; > > result = NumPyOS_ascii_strtod(str, endptr); > *ip = npy_double_to_half(result); > return 0; >} > >static int >BOOL_fromstr(char *str, npy_bool *ip, char **endptr, PyArray_Descr *(__NPY_UNUSED_TAGGEDignore) __attribute__ ((__unused__))) >{ > double result; > > result = NumPyOS_ascii_strtod(str, endptr); > *ip = (npy_bool) (result != 0.0); > return 0; >} ># 1812 "numpy/core/src/multiarray/arraytypes.c.src" ># 1812 "numpy/core/src/multiarray/arraytypes.c.src" ># 1812 "numpy/core/src/multiarray/arraytypes.c.src" ># 1812 "numpy/core/src/multiarray/arraytypes.c.src" ># 1812 "numpy/core/src/multiarray/arraytypes.c.src" ># 1812 "numpy/core/src/multiarray/arraytypes.c.src" ># 1812 "numpy/core/src/multiarray/arraytypes.c.src" ># 1832 "numpy/core/src/multiarray/arraytypes.c.src" >static void >SHORT_copyswapn (void *dst, npy_intp dstride, void *src, npy_intp sstride, > npy_intp n, int swap, void *(__NPY_UNUSED_TAGGEDarr) __attribute__ ((__unused__))) >{ > if (src != ((void *)0)) { > if (sstride == sizeof(short) && dstride == sizeof(short)) { > memcpy(dst, src, n*sizeof(short)); > } > else { > _unaligned_strided_byte_copy(dst, dstride, src, sstride, > n, sizeof(short)); > } > } > if (swap) { > _strided_byte_swap(dst, dstride, n, sizeof(short)); > } >} > >static void >SHORT_copyswap (void *dst, void *src, int swap, void *(__NPY_UNUSED_TAGGEDarr) __attribute__ ((__unused__))) >{ > > if (src != ((void *)0)) { > > memcpy(dst, src, sizeof(short)); > } > if (swap) { > char *a, *b, c; > > a = (char *)dst; > > b = a + 1; > c = *a; *a++ = *b; *b = c; ># 1913 "numpy/core/src/multiarray/arraytypes.c.src" > } >} ># 1832 "numpy/core/src/multiarray/arraytypes.c.src" >static void >USHORT_copyswapn (void *dst, npy_intp dstride, void *src, npy_intp sstride, > npy_intp n, int swap, void *(__NPY_UNUSED_TAGGEDarr) __attribute__ ((__unused__))) >{ > if (src != ((void *)0)) { > if (sstride == sizeof(npy_ushort) && dstride == sizeof(npy_ushort)) { > memcpy(dst, src, n*sizeof(npy_ushort)); > } > else { > _unaligned_strided_byte_copy(dst, dstride, src, sstride, > n, sizeof(npy_ushort)); > } > } > if (swap) { > _strided_byte_swap(dst, dstride, n, sizeof(npy_ushort)); > } >} > >static void >USHORT_copyswap (void *dst, void *src, int swap, void *(__NPY_UNUSED_TAGGEDarr) __attribute__ ((__unused__))) >{ > > if (src != ((void *)0)) { > > memcpy(dst, src, sizeof(npy_ushort)); > } > if (swap) { > char *a, *b, c; > > a = (char *)dst; > > b = a + 1; > c = *a; *a++ = *b; *b = c; ># 1913 "numpy/core/src/multiarray/arraytypes.c.src" > } >} ># 1832 "numpy/core/src/multiarray/arraytypes.c.src" >static void >INT_copyswapn (void *dst, npy_intp dstride, void *src, npy_intp sstride, > npy_intp n, int swap, void *(__NPY_UNUSED_TAGGEDarr) __attribute__ ((__unused__))) >{ > if (src != ((void *)0)) { > if (sstride == sizeof(int) && dstride == sizeof(int)) { > memcpy(dst, src, n*sizeof(int)); > } > else { > _unaligned_strided_byte_copy(dst, dstride, src, sstride, > n, sizeof(int)); > } > } > if (swap) { > _strided_byte_swap(dst, dstride, n, sizeof(int)); > } >} > >static void >INT_copyswap (void *dst, void *src, int swap, void *(__NPY_UNUSED_TAGGEDarr) __attribute__ ((__unused__))) >{ > > if (src != ((void *)0)) { > > memcpy(dst, src, sizeof(int)); > } > if (swap) { > char *a, *b, c; > > a = (char *)dst; > > > > > b = a + 3; > c = *a; *a++ = *b; *b-- = c; > c = *a; *a++ = *b; *b = c; ># 1913 "numpy/core/src/multiarray/arraytypes.c.src" > } >} ># 1832 "numpy/core/src/multiarray/arraytypes.c.src" >static void >UINT_copyswapn (void *dst, npy_intp dstride, void *src, npy_intp sstride, > npy_intp n, int swap, void *(__NPY_UNUSED_TAGGEDarr) __attribute__ ((__unused__))) >{ > if (src != ((void *)0)) { > if (sstride == sizeof(npy_uint) && dstride == sizeof(npy_uint)) { > memcpy(dst, src, n*sizeof(npy_uint)); > } > else { > _unaligned_strided_byte_copy(dst, dstride, src, sstride, > n, sizeof(npy_uint)); > } > } > if (swap) { > _strided_byte_swap(dst, dstride, n, sizeof(npy_uint)); > } >} > >static void >UINT_copyswap (void *dst, void *src, int swap, void *(__NPY_UNUSED_TAGGEDarr) __attribute__ ((__unused__))) >{ > > if (src != ((void *)0)) { > > memcpy(dst, src, sizeof(npy_uint)); > } > if (swap) { > char *a, *b, c; > > a = (char *)dst; > > > > > b = a + 3; > c = *a; *a++ = *b; *b-- = c; > c = *a; *a++ = *b; *b = c; ># 1913 "numpy/core/src/multiarray/arraytypes.c.src" > } >} ># 1832 "numpy/core/src/multiarray/arraytypes.c.src" >static void >LONG_copyswapn (void *dst, npy_intp dstride, void *src, npy_intp sstride, > npy_intp n, int swap, void *(__NPY_UNUSED_TAGGEDarr) __attribute__ ((__unused__))) >{ > if (src != ((void *)0)) { > if (sstride == sizeof(long) && dstride == sizeof(long)) { > memcpy(dst, src, n*sizeof(long)); > } > else { > _unaligned_strided_byte_copy(dst, dstride, src, sstride, > n, sizeof(long)); > } > } > if (swap) { > _strided_byte_swap(dst, dstride, n, sizeof(long)); > } >} > >static void >LONG_copyswap (void *dst, void *src, int swap, void *(__NPY_UNUSED_TAGGEDarr) __attribute__ ((__unused__))) >{ > > if (src != ((void *)0)) { > > memcpy(dst, src, sizeof(long)); > } > if (swap) { > char *a, *b, c; > > a = (char *)dst; ># 1870 "numpy/core/src/multiarray/arraytypes.c.src" > b = a + 7; > c = *a; *a++ = *b; *b-- = c; > c = *a; *a++ = *b; *b-- = c; > c = *a; *a++ = *b; *b-- = c; > c = *a; *a++ = *b; *b = c; ># 1913 "numpy/core/src/multiarray/arraytypes.c.src" > } >} ># 1832 "numpy/core/src/multiarray/arraytypes.c.src" >static void >ULONG_copyswapn (void *dst, npy_intp dstride, void *src, npy_intp sstride, > npy_intp n, int swap, void *(__NPY_UNUSED_TAGGEDarr) __attribute__ ((__unused__))) >{ > if (src != ((void *)0)) { > if (sstride == sizeof(npy_ulong) && dstride == sizeof(npy_ulong)) { > memcpy(dst, src, n*sizeof(npy_ulong)); > } > else { > _unaligned_strided_byte_copy(dst, dstride, src, sstride, > n, sizeof(npy_ulong)); > } > } > if (swap) { > _strided_byte_swap(dst, dstride, n, sizeof(npy_ulong)); > } >} > >static void >ULONG_copyswap (void *dst, void *src, int swap, void *(__NPY_UNUSED_TAGGEDarr) __attribute__ ((__unused__))) >{ > > if (src != ((void *)0)) { > > memcpy(dst, src, sizeof(npy_ulong)); > } > if (swap) { > char *a, *b, c; > > a = (char *)dst; ># 1870 "numpy/core/src/multiarray/arraytypes.c.src" > b = a + 7; > c = *a; *a++ = *b; *b-- = c; > c = *a; *a++ = *b; *b-- = c; > c = *a; *a++ = *b; *b-- = c; > c = *a; *a++ = *b; *b = c; ># 1913 "numpy/core/src/multiarray/arraytypes.c.src" > } >} ># 1832 "numpy/core/src/multiarray/arraytypes.c.src" >static void >LONGLONG_copyswapn (void *dst, npy_intp dstride, void *src, npy_intp sstride, > npy_intp n, int swap, void *(__NPY_UNUSED_TAGGEDarr) __attribute__ ((__unused__))) >{ > if (src != ((void *)0)) { > if (sstride == sizeof(npy_longlong) && dstride == sizeof(npy_longlong)) { > memcpy(dst, src, n*sizeof(npy_longlong)); > } > else { > _unaligned_strided_byte_copy(dst, dstride, src, sstride, > n, sizeof(npy_longlong)); > } > } > if (swap) { > _strided_byte_swap(dst, dstride, n, sizeof(npy_longlong)); > } >} > >static void >LONGLONG_copyswap (void *dst, void *src, int swap, void *(__NPY_UNUSED_TAGGEDarr) __attribute__ ((__unused__))) >{ > > if (src != ((void *)0)) { > > memcpy(dst, src, sizeof(npy_longlong)); > } > if (swap) { > char *a, *b, c; > > a = (char *)dst; ># 1870 "numpy/core/src/multiarray/arraytypes.c.src" > b = a + 7; > c = *a; *a++ = *b; *b-- = c; > c = *a; *a++ = *b; *b-- = c; > c = *a; *a++ = *b; *b-- = c; > c = *a; *a++ = *b; *b = c; ># 1913 "numpy/core/src/multiarray/arraytypes.c.src" > } >} ># 1832 "numpy/core/src/multiarray/arraytypes.c.src" >static void >ULONGLONG_copyswapn (void *dst, npy_intp dstride, void *src, npy_intp sstride, > npy_intp n, int swap, void *(__NPY_UNUSED_TAGGEDarr) __attribute__ ((__unused__))) >{ > if (src != ((void *)0)) { > if (sstride == sizeof(npy_ulonglong) && dstride == sizeof(npy_ulonglong)) { > memcpy(dst, src, n*sizeof(npy_ulonglong)); > } > else { > _unaligned_strided_byte_copy(dst, dstride, src, sstride, > n, sizeof(npy_ulonglong)); > } > } > if (swap) { > _strided_byte_swap(dst, dstride, n, sizeof(npy_ulonglong)); > } >} > >static void >ULONGLONG_copyswap (void *dst, void *src, int swap, void *(__NPY_UNUSED_TAGGEDarr) __attribute__ ((__unused__))) >{ > > if (src != ((void *)0)) { > > memcpy(dst, src, sizeof(npy_ulonglong)); > } > if (swap) { > char *a, *b, c; > > a = (char *)dst; ># 1870 "numpy/core/src/multiarray/arraytypes.c.src" > b = a + 7; > c = *a; *a++ = *b; *b-- = c; > c = *a; *a++ = *b; *b-- = c; > c = *a; *a++ = *b; *b-- = c; > c = *a; *a++ = *b; *b = c; ># 1913 "numpy/core/src/multiarray/arraytypes.c.src" > } >} ># 1832 "numpy/core/src/multiarray/arraytypes.c.src" >static void >HALF_copyswapn (void *dst, npy_intp dstride, void *src, npy_intp sstride, > npy_intp n, int swap, void *(__NPY_UNUSED_TAGGEDarr) __attribute__ ((__unused__))) >{ > if (src != ((void *)0)) { > if (sstride == sizeof(npy_half) && dstride == sizeof(npy_half)) { > memcpy(dst, src, n*sizeof(npy_half)); > } > else { > _unaligned_strided_byte_copy(dst, dstride, src, sstride, > n, sizeof(npy_half)); > } > } > if (swap) { > _strided_byte_swap(dst, dstride, n, sizeof(npy_half)); > } >} > >static void >HALF_copyswap (void *dst, void *src, int swap, void *(__NPY_UNUSED_TAGGEDarr) __attribute__ ((__unused__))) >{ > > if (src != ((void *)0)) { > > memcpy(dst, src, sizeof(npy_half)); > } > if (swap) { > char *a, *b, c; > > a = (char *)dst; > > b = a + 1; > c = *a; *a++ = *b; *b = c; ># 1913 "numpy/core/src/multiarray/arraytypes.c.src" > } >} ># 1832 "numpy/core/src/multiarray/arraytypes.c.src" >static void >FLOAT_copyswapn (void *dst, npy_intp dstride, void *src, npy_intp sstride, > npy_intp n, int swap, void *(__NPY_UNUSED_TAGGEDarr) __attribute__ ((__unused__))) >{ > if (src != ((void *)0)) { > if (sstride == sizeof(float) && dstride == sizeof(float)) { > memcpy(dst, src, n*sizeof(float)); > } > else { > _unaligned_strided_byte_copy(dst, dstride, src, sstride, > n, sizeof(float)); > } > } > if (swap) { > _strided_byte_swap(dst, dstride, n, sizeof(float)); > } >} > >static void >FLOAT_copyswap (void *dst, void *src, int swap, void *(__NPY_UNUSED_TAGGEDarr) __attribute__ ((__unused__))) >{ > > if (src != ((void *)0)) { > > memcpy(dst, src, sizeof(float)); > } > if (swap) { > char *a, *b, c; > > a = (char *)dst; > > > > > b = a + 3; > c = *a; *a++ = *b; *b-- = c; > c = *a; *a++ = *b; *b = c; ># 1913 "numpy/core/src/multiarray/arraytypes.c.src" > } >} ># 1832 "numpy/core/src/multiarray/arraytypes.c.src" >static void >DOUBLE_copyswapn (void *dst, npy_intp dstride, void *src, npy_intp sstride, > npy_intp n, int swap, void *(__NPY_UNUSED_TAGGEDarr) __attribute__ ((__unused__))) >{ > if (src != ((void *)0)) { > if (sstride == sizeof(double) && dstride == sizeof(double)) { > memcpy(dst, src, n*sizeof(double)); > } > else { > _unaligned_strided_byte_copy(dst, dstride, src, sstride, > n, sizeof(double)); > } > } > if (swap) { > _strided_byte_swap(dst, dstride, n, sizeof(double)); > } >} > >static void >DOUBLE_copyswap (void *dst, void *src, int swap, void *(__NPY_UNUSED_TAGGEDarr) __attribute__ ((__unused__))) >{ > > if (src != ((void *)0)) { > > memcpy(dst, src, sizeof(double)); > } > if (swap) { > char *a, *b, c; > > a = (char *)dst; ># 1870 "numpy/core/src/multiarray/arraytypes.c.src" > b = a + 7; > c = *a; *a++ = *b; *b-- = c; > c = *a; *a++ = *b; *b-- = c; > c = *a; *a++ = *b; *b-- = c; > c = *a; *a++ = *b; *b = c; ># 1913 "numpy/core/src/multiarray/arraytypes.c.src" > } >} ># 1832 "numpy/core/src/multiarray/arraytypes.c.src" >static void >LONGDOUBLE_copyswapn (void *dst, npy_intp dstride, void *src, npy_intp sstride, > npy_intp n, int swap, void *(__NPY_UNUSED_TAGGEDarr) __attribute__ ((__unused__))) >{ > if (src != ((void *)0)) { > if (sstride == sizeof(npy_longdouble) && dstride == sizeof(npy_longdouble)) { > memcpy(dst, src, n*sizeof(npy_longdouble)); > } > else { > _unaligned_strided_byte_copy(dst, dstride, src, sstride, > n, sizeof(npy_longdouble)); > } > } > if (swap) { > _strided_byte_swap(dst, dstride, n, sizeof(npy_longdouble)); > } >} > >static void >LONGDOUBLE_copyswap (void *dst, void *src, int swap, void *(__NPY_UNUSED_TAGGEDarr) __attribute__ ((__unused__))) >{ > > if (src != ((void *)0)) { > > memcpy(dst, src, sizeof(npy_longdouble)); > } > if (swap) { > char *a, *b, c; > > a = (char *)dst; ># 1891 "numpy/core/src/multiarray/arraytypes.c.src" > b = a + 15; > c = *a; *a++ = *b; *b-- = c; > c = *a; *a++ = *b; *b-- = c; > c = *a; *a++ = *b; *b-- = c; > c = *a; *a++ = *b; *b-- = c; > c = *a; *a++ = *b; *b-- = c; > c = *a; *a++ = *b; *b-- = c; > c = *a; *a++ = *b; *b-- = c; > c = *a; *a++ = *b; *b = c; ># 1913 "numpy/core/src/multiarray/arraytypes.c.src" > } >} ># 1832 "numpy/core/src/multiarray/arraytypes.c.src" >static void >DATETIME_copyswapn (void *dst, npy_intp dstride, void *src, npy_intp sstride, > npy_intp n, int swap, void *(__NPY_UNUSED_TAGGEDarr) __attribute__ ((__unused__))) >{ > if (src != ((void *)0)) { > if (sstride == sizeof(npy_datetime) && dstride == sizeof(npy_datetime)) { > memcpy(dst, src, n*sizeof(npy_datetime)); > } > else { > _unaligned_strided_byte_copy(dst, dstride, src, sstride, > n, sizeof(npy_datetime)); > } > } > if (swap) { > _strided_byte_swap(dst, dstride, n, sizeof(npy_datetime)); > } >} > >static void >DATETIME_copyswap (void *dst, void *src, int swap, void *(__NPY_UNUSED_TAGGEDarr) __attribute__ ((__unused__))) >{ > > if (src != ((void *)0)) { > > memcpy(dst, src, sizeof(npy_datetime)); > } > if (swap) { > char *a, *b, c; > > a = (char *)dst; ># 1870 "numpy/core/src/multiarray/arraytypes.c.src" > b = a + 7; > c = *a; *a++ = *b; *b-- = c; > c = *a; *a++ = *b; *b-- = c; > c = *a; *a++ = *b; *b-- = c; > c = *a; *a++ = *b; *b = c; ># 1913 "numpy/core/src/multiarray/arraytypes.c.src" > } >} ># 1832 "numpy/core/src/multiarray/arraytypes.c.src" >static void >TIMEDELTA_copyswapn (void *dst, npy_intp dstride, void *src, npy_intp sstride, > npy_intp n, int swap, void *(__NPY_UNUSED_TAGGEDarr) __attribute__ ((__unused__))) >{ > if (src != ((void *)0)) { > if (sstride == sizeof(npy_timedelta) && dstride == sizeof(npy_timedelta)) { > memcpy(dst, src, n*sizeof(npy_timedelta)); > } > else { > _unaligned_strided_byte_copy(dst, dstride, src, sstride, > n, sizeof(npy_timedelta)); > } > } > if (swap) { > _strided_byte_swap(dst, dstride, n, sizeof(npy_timedelta)); > } >} > >static void >TIMEDELTA_copyswap (void *dst, void *src, int swap, void *(__NPY_UNUSED_TAGGEDarr) __attribute__ ((__unused__))) >{ > > if (src != ((void *)0)) { > > memcpy(dst, src, sizeof(npy_timedelta)); > } > if (swap) { > char *a, *b, c; > > a = (char *)dst; ># 1870 "numpy/core/src/multiarray/arraytypes.c.src" > b = a + 7; > c = *a; *a++ = *b; *b-- = c; > c = *a; *a++ = *b; *b-- = c; > c = *a; *a++ = *b; *b-- = c; > c = *a; *a++ = *b; *b = c; ># 1913 "numpy/core/src/multiarray/arraytypes.c.src" > } >} ># 1923 "numpy/core/src/multiarray/arraytypes.c.src" >static void >BOOL_copyswapn (void *dst, npy_intp dstride, void *src, npy_intp sstride, npy_intp n, > int (__NPY_UNUSED_TAGGEDswap) __attribute__ ((__unused__)), void *(__NPY_UNUSED_TAGGEDarr) __attribute__ ((__unused__))) >{ > if (src != ((void *)0)) { > if (sstride == sizeof(npy_bool) && dstride == sizeof(npy_bool)) { > memcpy(dst, src, n*sizeof(npy_bool)); > } > else { > _unaligned_strided_byte_copy(dst, dstride, src, sstride, > n, sizeof(npy_bool)); > } > } > >} > >static void >BOOL_copyswap (void *dst, void *src, int (__NPY_UNUSED_TAGGEDswap) __attribute__ ((__unused__)), void *(__NPY_UNUSED_TAGGEDarr) __attribute__ ((__unused__))) >{ > if (src != ((void *)0)) { > > memcpy(dst, src, sizeof(npy_bool)); > } > >} ># 1923 "numpy/core/src/multiarray/arraytypes.c.src" >static void >BYTE_copyswapn (void *dst, npy_intp dstride, void *src, npy_intp sstride, npy_intp n, > int (__NPY_UNUSED_TAGGEDswap) __attribute__ ((__unused__)), void *(__NPY_UNUSED_TAGGEDarr) __attribute__ ((__unused__))) >{ > if (src != ((void *)0)) { > if (sstride == sizeof(npy_byte) && dstride == sizeof(npy_byte)) { > memcpy(dst, src, n*sizeof(npy_byte)); > } > else { > _unaligned_strided_byte_copy(dst, dstride, src, sstride, > n, sizeof(npy_byte)); > } > } > >} > >static void >BYTE_copyswap (void *dst, void *src, int (__NPY_UNUSED_TAGGEDswap) __attribute__ ((__unused__)), void *(__NPY_UNUSED_TAGGEDarr) __attribute__ ((__unused__))) >{ > if (src != ((void *)0)) { > > memcpy(dst, src, sizeof(npy_byte)); > } > >} ># 1923 "numpy/core/src/multiarray/arraytypes.c.src" >static void >UBYTE_copyswapn (void *dst, npy_intp dstride, void *src, npy_intp sstride, npy_intp n, > int (__NPY_UNUSED_TAGGEDswap) __attribute__ ((__unused__)), void *(__NPY_UNUSED_TAGGEDarr) __attribute__ ((__unused__))) >{ > if (src != ((void *)0)) { > if (sstride == sizeof(npy_ubyte) && dstride == sizeof(npy_ubyte)) { > memcpy(dst, src, n*sizeof(npy_ubyte)); > } > else { > _unaligned_strided_byte_copy(dst, dstride, src, sstride, > n, sizeof(npy_ubyte)); > } > } > >} > >static void >UBYTE_copyswap (void *dst, void *src, int (__NPY_UNUSED_TAGGEDswap) __attribute__ ((__unused__)), void *(__NPY_UNUSED_TAGGEDarr) __attribute__ ((__unused__))) >{ > if (src != ((void *)0)) { > > memcpy(dst, src, sizeof(npy_ubyte)); > } > >} ># 1959 "numpy/core/src/multiarray/arraytypes.c.src" >static void >CFLOAT_copyswapn (void *dst, npy_intp dstride, void *src, npy_intp sstride, npy_intp n, > int swap, void *(__NPY_UNUSED_TAGGEDarr) __attribute__ ((__unused__))) >{ > > if (src != ((void *)0)) { > > if (sstride == sizeof(npy_cfloat) && dstride == sizeof(npy_cfloat)) { > memcpy(dst, src, n*sizeof(npy_cfloat)); > } > else { > _unaligned_strided_byte_copy(dst, dstride, src, sstride, n, > sizeof(npy_cfloat)); > } > } > > if (swap) { > _strided_byte_swap(dst, dstride, n, 4); > _strided_byte_swap(((char *)dst + 4), dstride, > n, 4); > } >} > >static void >CFLOAT_copyswap (void *dst, void *src, int swap, void *(__NPY_UNUSED_TAGGEDarr) __attribute__ ((__unused__))) >{ > if (src != ((void *)0)) > memcpy(dst, src, sizeof(npy_cfloat)); > > if (swap) { > char *a, *b, c; > a = (char *)dst; > > b = a + 3; > c = *a; *a++ = *b; *b-- = c; > c = *a; *a++ = *b; *b = c; > a += 2; > b = a + 3; > c = *a; *a++ = *b; *b-- = c; > c = *a; *a++ = *b; *b = c; ># 2082 "numpy/core/src/multiarray/arraytypes.c.src" > } >} ># 1959 "numpy/core/src/multiarray/arraytypes.c.src" >static void >CDOUBLE_copyswapn (void *dst, npy_intp dstride, void *src, npy_intp sstride, npy_intp n, > int swap, void *(__NPY_UNUSED_TAGGEDarr) __attribute__ ((__unused__))) >{ > > if (src != ((void *)0)) { > > if (sstride == sizeof(npy_cdouble) && dstride == sizeof(npy_cdouble)) { > memcpy(dst, src, n*sizeof(npy_cdouble)); > } > else { > _unaligned_strided_byte_copy(dst, dstride, src, sstride, n, > sizeof(npy_cdouble)); > } > } > > if (swap) { > _strided_byte_swap(dst, dstride, n, 8); > _strided_byte_swap(((char *)dst + 8), dstride, > n, 8); > } >} > >static void >CDOUBLE_copyswap (void *dst, void *src, int swap, void *(__NPY_UNUSED_TAGGEDarr) __attribute__ ((__unused__))) >{ > if (src != ((void *)0)) > memcpy(dst, src, sizeof(npy_cdouble)); > > if (swap) { > char *a, *b, c; > a = (char *)dst; ># 2000 "numpy/core/src/multiarray/arraytypes.c.src" > b = a + 7; > c = *a; *a++ = *b; *b-- = c; > c = *a; *a++ = *b; *b-- = c; > c = *a; *a++ = *b; *b-- = c; > c = *a; *a++ = *b; *b = c; > a += 4; > b = a + 7; > c = *a; *a++ = *b; *b-- = c; > c = *a; *a++ = *b; *b-- = c; > c = *a; *a++ = *b; *b-- = c; > c = *a; *a++ = *b; *b = c; ># 2082 "numpy/core/src/multiarray/arraytypes.c.src" > } >} ># 1959 "numpy/core/src/multiarray/arraytypes.c.src" >static void >CLONGDOUBLE_copyswapn (void *dst, npy_intp dstride, void *src, npy_intp sstride, npy_intp n, > int swap, void *(__NPY_UNUSED_TAGGEDarr) __attribute__ ((__unused__))) >{ > > if (src != ((void *)0)) { > > if (sstride == sizeof(npy_clongdouble) && dstride == sizeof(npy_clongdouble)) { > memcpy(dst, src, n*sizeof(npy_clongdouble)); > } > else { > _unaligned_strided_byte_copy(dst, dstride, src, sstride, n, > sizeof(npy_clongdouble)); > } > } > > if (swap) { > _strided_byte_swap(dst, dstride, n, 16); > _strided_byte_swap(((char *)dst + 16), dstride, > n, 16); > } >} > >static void >CLONGDOUBLE_copyswap (void *dst, void *src, int swap, void *(__NPY_UNUSED_TAGGEDarr) __attribute__ ((__unused__))) >{ > if (src != ((void *)0)) > memcpy(dst, src, sizeof(npy_clongdouble)); > > if (swap) { > char *a, *b, c; > a = (char *)dst; ># 2042 "numpy/core/src/multiarray/arraytypes.c.src" > b = a + 15; > c = *a; *a++ = *b; *b-- = c; > c = *a; *a++ = *b; *b-- = c; > c = *a; *a++ = *b; *b-- = c; > c = *a; *a++ = *b; *b-- = c; > c = *a; *a++ = *b; *b-- = c; > c = *a; *a++ = *b; *b-- = c; > c = *a; *a++ = *b; *b-- = c; > c = *a; *a++ = *b; *b = c; > a += 8; > b = a + 15; > c = *a; *a++ = *b; *b-- = c; > c = *a; *a++ = *b; *b-- = c; > c = *a; *a++ = *b; *b-- = c; > c = *a; *a++ = *b; *b-- = c; > c = *a; *a++ = *b; *b-- = c; > c = *a; *a++ = *b; *b-- = c; > c = *a; *a++ = *b; *b-- = c; > c = *a; *a++ = *b; *b = c; ># 2082 "numpy/core/src/multiarray/arraytypes.c.src" > } >} > > > >static void >OBJECT_copyswapn (PyObject **dst, npy_intp dstride, PyObject **src, npy_intp sstride, > npy_intp n, int (__NPY_UNUSED_TAGGEDswap) __attribute__ ((__unused__)), void *(__NPY_UNUSED_TAGGEDarr) __attribute__ ((__unused__))) >{ > npy_intp i; > if (src != ((void *)0)) { > if (((((size_t) dst) % (sizeof(PyObject **)))==0) > && ((((size_t) src) % (sizeof(PyObject **)))==0) > && ((((size_t) dstride) % (sizeof(PyObject **)))==0) > && ((((size_t) sstride) % (sizeof(PyObject **)))==0)) { > dstride /= sizeof(PyObject **); > sstride /= sizeof(PyObject **); > for (i = 0; i < n; i++) { > do { if ((*src) == ((void *)0)) ; else ( ((PyObject*)(*src))->ob_refcnt++); } while (0); > do { if ((*dst) == ((void *)0)) ; else do { if ( --((PyObject*)(*dst))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(*dst)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(*dst)))); } while (0); } while (0); > *dst = *src; > dst += dstride; > src += sstride; > } > } > else { > unsigned char *dstp, *srcp; > PyObject *tmp; > dstp = (unsigned char*)dst; > srcp = (unsigned char*)src; > for (i = 0; i < n; i++) { > (*((PyObject **)(&tmp)) = *((PyObject **)(dstp))); > do { if ((tmp) == ((void *)0)) ; else do { if ( --((PyObject*)(tmp))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(tmp)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(tmp)))); } while (0); } while (0); > (*((PyObject **)(&tmp)) = *((PyObject **)(srcp))); > do { if ((tmp) == ((void *)0)) ; else ( ((PyObject*)(tmp))->ob_refcnt++); } while (0); > (*((PyObject **)(dstp)) = *((PyObject **)(srcp))); > dstp += dstride; > srcp += sstride; > } > } > } > > return; >} > >static void >OBJECT_copyswap(PyObject **dst, PyObject **src, int (__NPY_UNUSED_TAGGEDswap) __attribute__ ((__unused__)), void *(__NPY_UNUSED_TAGGEDarr) __attribute__ ((__unused__))) >{ > > if (src != ((void *)0)) { > if (((((size_t) dst) % (sizeof(PyObject **)))==0) && ((((size_t) src) % (sizeof(PyObject **)))==0)) { > do { if ((*src) == ((void *)0)) ; else ( ((PyObject*)(*src))->ob_refcnt++); } while (0); > do { if ((*dst) == ((void *)0)) ; else do { if ( --((PyObject*)(*dst))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(*dst)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(*dst)))); } while (0); } while (0); > *dst = *src; > } > else { > PyObject *tmp; > (*((PyObject **)(&tmp)) = *((PyObject **)(dst))); > do { if ((tmp) == ((void *)0)) ; else do { if ( --((PyObject*)(tmp))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(tmp)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(tmp)))); } while (0); } while (0); > (*((PyObject **)(&tmp)) = *((PyObject **)(src))); > do { if ((tmp) == ((void *)0)) ; else ( ((PyObject*)(tmp))->ob_refcnt++); } while (0); > (*((PyObject **)(dst)) = *((PyObject **)(src))); > } > } >} > > >static void >STRING_copyswapn (char *dst, npy_intp dstride, char *src, npy_intp sstride, > npy_intp n, int (__NPY_UNUSED_TAGGEDswap) __attribute__ ((__unused__)), PyArrayObject *arr) >{ > if (src != ((void *)0) && arr != ((void *)0)) { > int itemsize = arr->descr->elsize; > > if (dstride == itemsize && sstride == itemsize) { > memcpy(dst, src, itemsize * n); > } > else { > _unaligned_strided_byte_copy(dst, dstride, src, sstride, n, > itemsize); > } > } > return; >} > > >static void >VOID_copyswapn (char *dst, npy_intp dstride, char *src, npy_intp sstride, > npy_intp n, int swap, PyArrayObject *arr) >{ > if (arr == ((void *)0)) { > return; > } > if ((((PyArray_Descr *)((((PyArrayObject *)(arr))->descr)))->names != ((void *)0))) { > PyObject *key, *value, *title = ((void *)0); > PyArray_Descr *new, *descr; > int offset; > Py_ssize_t pos = 0; > > descr = arr->descr; > while (PyDict_Next(descr->fields, &pos, &key, &value)) { > if (((((PyVarObject*)((value)))->ob_size)==3) && ((((PyTupleObject *)((value)))->ob_item[2]) == (key))) { > continue; > } > if (!_PyArg_ParseTuple_SizeT(value, "Oi|O", &new, &offset, &title)) { > arr->descr = descr; > return; > } > arr->descr = new; > new->f->copyswapn(dst+offset, dstride, > (src != ((void *)0) ? src+offset : ((void *)0)), > sstride, n, swap, arr); > } > arr->descr = descr; > return; > } > if (swap && arr->descr->subarray != ((void *)0)) { > PyArray_Descr *descr, *new; > npy_intp num; > npy_intp i; > int subitemsize; > char *dstptr, *srcptr; > > descr = arr->descr; > new = descr->subarray->base; > arr->descr = new; > dstptr = dst; > srcptr = src; > subitemsize = new->elsize; > num = descr->elsize / subitemsize; > for (i = 0; i < n; i++) { > new->f->copyswapn(dstptr, subitemsize, srcptr, > subitemsize, num, swap, arr); > dstptr += dstride; > if (srcptr) { > srcptr += sstride; > } > } > arr->descr = descr; > return; > } > if (src != ((void *)0)) { > memcpy(dst, src, arr->descr->elsize * n); > } > return; >} > >static void >VOID_copyswap (char *dst, char *src, int swap, PyArrayObject *arr) >{ > if (arr == ((void *)0)) { > return; > } > if ((((PyArray_Descr *)((((PyArrayObject *)(arr))->descr)))->names != ((void *)0))) { > PyObject *key, *value, *title = ((void *)0); > PyArray_Descr *new, *descr; > int offset; > Py_ssize_t pos = 0; > > descr = arr->descr; > while (PyDict_Next(descr->fields, &pos, &key, &value)) { > if (((((PyVarObject*)((value)))->ob_size)==3) && ((((PyTupleObject *)((value)))->ob_item[2]) == (key))) { > continue; > } > if (!_PyArg_ParseTuple_SizeT(value, "Oi|O", &new, &offset, &title)) { > arr->descr = descr; > return; > } > arr->descr = new; > new->f->copyswap(dst+offset, > (src != ((void *)0) ? src+offset : ((void *)0)), > swap, arr); > } > arr->descr = descr; > return; > } > if (swap && arr->descr->subarray != ((void *)0)) { > PyArray_Descr *descr, *new; > npy_intp num; > int itemsize; > > descr = arr->descr; > new = descr->subarray->base; > arr->descr = new; > itemsize = new->elsize; > num = descr->elsize / itemsize; > new->f->copyswapn(dst, itemsize, src, > itemsize, num, swap, arr); > arr->descr = descr; > return; > } > if (src != ((void *)0)) { > memcpy(dst, src, arr->descr->elsize); > } > return; >} > > >static void >UNICODE_copyswapn (char *dst, npy_intp dstride, char *src, npy_intp sstride, > npy_intp n, int swap, PyArrayObject *arr) >{ > int itemsize; > > if (arr == ((void *)0)) { > return; > } > itemsize = arr->descr->elsize; > if (src != ((void *)0)) { > if (dstride == itemsize && sstride == itemsize) { > memcpy(dst, src, n * itemsize); > } > else { > _unaligned_strided_byte_copy(dst, dstride, src, > sstride, n, itemsize); > } > } > > n *= itemsize; > if (swap) { > char *a, *b, c; > > > n >>= 2; > for (a = (char *)dst; n > 0; n--) { > b = a + 3; > c = *a; > *a++ = *b; > *b-- = c; > c = *a; > *a++ = *b; > *b-- = c; > a += 2; > } > } >} > > >static void >STRING_copyswap(char *dst, char *src, int (__NPY_UNUSED_TAGGEDswap) __attribute__ ((__unused__)), PyArrayObject *arr) >{ > if (src != ((void *)0) && arr != ((void *)0)) { > memcpy(dst, src, arr->descr->elsize); > } >} > >static void >UNICODE_copyswap (char *dst, char *src, int swap, PyArrayObject *arr) >{ > int itemsize; > > if (arr == ((void *)0)) { > return; > } > itemsize = arr->descr->elsize; > if (src != ((void *)0)) { > memcpy(dst, src, itemsize); > } > > if (swap) { > char *a, *b, c; > itemsize >>= 2; > for (a = (char *)dst; itemsize>0; itemsize--) { > b = a + 3; > c = *a; > *a++ = *b; > *b-- = c; > c = *a; > *a++ = *b; > *b-- = c; > a += 2; > } > } >} ># 2377 "numpy/core/src/multiarray/arraytypes.c.src" >static npy_bool >BOOL_nonzero (char *ip, PyArrayObject *ap) >{ > if (ap == ((void *)0) || (((((PyArrayObject *)(ap))->flags & (0x0100)) == (0x0100)) && (((((PyArrayObject *)(ap))->descr)->byteorder) != '>'))) { > npy_bool *ptmp = (npy_bool *)ip; > return (npy_bool) ((*ptmp) != 0); > } > else { > > > > > > npy_bool tmp; > > > > memcpy(&tmp, ip, sizeof(npy_bool)); > > return (npy_bool) ((tmp) != 0); > } >} ># 2377 "numpy/core/src/multiarray/arraytypes.c.src" >static npy_bool >BYTE_nonzero (char *ip, PyArrayObject *ap) >{ > if (ap == ((void *)0) || (((((PyArrayObject *)(ap))->flags & (0x0100)) == (0x0100)) && (((((PyArrayObject *)(ap))->descr)->byteorder) != '>'))) { > npy_byte *ptmp = (npy_byte *)ip; > return (npy_bool) ((*ptmp) != 0); > } > else { > > > > > > npy_byte tmp; > > > > memcpy(&tmp, ip, sizeof(npy_byte)); > > return (npy_bool) ((tmp) != 0); > } >} ># 2377 "numpy/core/src/multiarray/arraytypes.c.src" >static npy_bool >UBYTE_nonzero (char *ip, PyArrayObject *ap) >{ > if (ap == ((void *)0) || (((((PyArrayObject *)(ap))->flags & (0x0100)) == (0x0100)) && (((((PyArrayObject *)(ap))->descr)->byteorder) != '>'))) { > npy_ubyte *ptmp = (npy_ubyte *)ip; > return (npy_bool) ((*ptmp) != 0); > } > else { > > > > > > npy_ubyte tmp; > > > > memcpy(&tmp, ip, sizeof(npy_ubyte)); > > return (npy_bool) ((tmp) != 0); > } >} ># 2377 "numpy/core/src/multiarray/arraytypes.c.src" >static npy_bool >SHORT_nonzero (char *ip, PyArrayObject *ap) >{ > if (ap == ((void *)0) || (((((PyArrayObject *)(ap))->flags & (0x0100)) == (0x0100)) && (((((PyArrayObject *)(ap))->descr)->byteorder) != '>'))) { > short *ptmp = (short *)ip; > return (npy_bool) ((*ptmp) != 0); > } > else { > > > > > > short tmp; > > > > memcpy(&tmp, ip, sizeof(short)); > > return (npy_bool) ((tmp) != 0); > } >} ># 2377 "numpy/core/src/multiarray/arraytypes.c.src" >static npy_bool >USHORT_nonzero (char *ip, PyArrayObject *ap) >{ > if (ap == ((void *)0) || (((((PyArrayObject *)(ap))->flags & (0x0100)) == (0x0100)) && (((((PyArrayObject *)(ap))->descr)->byteorder) != '>'))) { > npy_ushort *ptmp = (npy_ushort *)ip; > return (npy_bool) ((*ptmp) != 0); > } > else { > > > > > > npy_ushort tmp; > > > > memcpy(&tmp, ip, sizeof(npy_ushort)); > > return (npy_bool) ((tmp) != 0); > } >} ># 2377 "numpy/core/src/multiarray/arraytypes.c.src" >static npy_bool >INT_nonzero (char *ip, PyArrayObject *ap) >{ > if (ap == ((void *)0) || (((((PyArrayObject *)(ap))->flags & (0x0100)) == (0x0100)) && (((((PyArrayObject *)(ap))->descr)->byteorder) != '>'))) { > int *ptmp = (int *)ip; > return (npy_bool) ((*ptmp) != 0); > } > else { > > > > > > int tmp; > > > > memcpy(&tmp, ip, sizeof(int)); > > return (npy_bool) ((tmp) != 0); > } >} ># 2377 "numpy/core/src/multiarray/arraytypes.c.src" >static npy_bool >UINT_nonzero (char *ip, PyArrayObject *ap) >{ > if (ap == ((void *)0) || (((((PyArrayObject *)(ap))->flags & (0x0100)) == (0x0100)) && (((((PyArrayObject *)(ap))->descr)->byteorder) != '>'))) { > npy_uint *ptmp = (npy_uint *)ip; > return (npy_bool) ((*ptmp) != 0); > } > else { > > > > > > npy_uint tmp; > > > > memcpy(&tmp, ip, sizeof(npy_uint)); > > return (npy_bool) ((tmp) != 0); > } >} ># 2377 "numpy/core/src/multiarray/arraytypes.c.src" >static npy_bool >LONG_nonzero (char *ip, PyArrayObject *ap) >{ > if (ap == ((void *)0) || (((((PyArrayObject *)(ap))->flags & (0x0100)) == (0x0100)) && (((((PyArrayObject *)(ap))->descr)->byteorder) != '>'))) { > long *ptmp = (long *)ip; > return (npy_bool) ((*ptmp) != 0); > } > else { > > > > > > long tmp; > > > > memcpy(&tmp, ip, sizeof(long)); > > return (npy_bool) ((tmp) != 0); > } >} ># 2377 "numpy/core/src/multiarray/arraytypes.c.src" >static npy_bool >ULONG_nonzero (char *ip, PyArrayObject *ap) >{ > if (ap == ((void *)0) || (((((PyArrayObject *)(ap))->flags & (0x0100)) == (0x0100)) && (((((PyArrayObject *)(ap))->descr)->byteorder) != '>'))) { > npy_ulong *ptmp = (npy_ulong *)ip; > return (npy_bool) ((*ptmp) != 0); > } > else { > > > > > > npy_ulong tmp; > > > > memcpy(&tmp, ip, sizeof(npy_ulong)); > > return (npy_bool) ((tmp) != 0); > } >} ># 2377 "numpy/core/src/multiarray/arraytypes.c.src" >static npy_bool >LONGLONG_nonzero (char *ip, PyArrayObject *ap) >{ > if (ap == ((void *)0) || (((((PyArrayObject *)(ap))->flags & (0x0100)) == (0x0100)) && (((((PyArrayObject *)(ap))->descr)->byteorder) != '>'))) { > npy_longlong *ptmp = (npy_longlong *)ip; > return (npy_bool) ((*ptmp) != 0); > } > else { > > > > > > npy_longlong tmp; > > > > memcpy(&tmp, ip, sizeof(npy_longlong)); > > return (npy_bool) ((tmp) != 0); > } >} ># 2377 "numpy/core/src/multiarray/arraytypes.c.src" >static npy_bool >ULONGLONG_nonzero (char *ip, PyArrayObject *ap) >{ > if (ap == ((void *)0) || (((((PyArrayObject *)(ap))->flags & (0x0100)) == (0x0100)) && (((((PyArrayObject *)(ap))->descr)->byteorder) != '>'))) { > npy_ulonglong *ptmp = (npy_ulonglong *)ip; > return (npy_bool) ((*ptmp) != 0); > } > else { > > > > > > npy_ulonglong tmp; > > > > memcpy(&tmp, ip, sizeof(npy_ulonglong)); > > return (npy_bool) ((tmp) != 0); > } >} ># 2377 "numpy/core/src/multiarray/arraytypes.c.src" >static npy_bool >HALF_nonzero (char *ip, PyArrayObject *ap) >{ > if (ap == ((void *)0) || (((((PyArrayObject *)(ap))->flags & (0x0100)) == (0x0100)) && (((((PyArrayObject *)(ap))->descr)->byteorder) != '>'))) { > npy_half *ptmp = (npy_half *)ip; > return (npy_bool) !npy_half_iszero(*ptmp); > } > else { > > > > > > npy_half tmp; > > ap->descr->f->copyswap(&tmp, ip, !(((((PyArrayObject *)(ap))->descr)->byteorder) != '>'), ap); > > > > return (npy_bool) !npy_half_iszero(tmp); > } >} ># 2377 "numpy/core/src/multiarray/arraytypes.c.src" >static npy_bool >FLOAT_nonzero (char *ip, PyArrayObject *ap) >{ > if (ap == ((void *)0) || (((((PyArrayObject *)(ap))->flags & (0x0100)) == (0x0100)) && (((((PyArrayObject *)(ap))->descr)->byteorder) != '>'))) { > float *ptmp = (float *)ip; > return (npy_bool) ((*ptmp) != 0); > } > else { > > > > > > float tmp; > > ap->descr->f->copyswap(&tmp, ip, !(((((PyArrayObject *)(ap))->descr)->byteorder) != '>'), ap); > > > > return (npy_bool) ((tmp) != 0); > } >} ># 2377 "numpy/core/src/multiarray/arraytypes.c.src" >static npy_bool >DOUBLE_nonzero (char *ip, PyArrayObject *ap) >{ > if (ap == ((void *)0) || (((((PyArrayObject *)(ap))->flags & (0x0100)) == (0x0100)) && (((((PyArrayObject *)(ap))->descr)->byteorder) != '>'))) { > double *ptmp = (double *)ip; > return (npy_bool) ((*ptmp) != 0); > } > else { > > > > > > double tmp; > > ap->descr->f->copyswap(&tmp, ip, !(((((PyArrayObject *)(ap))->descr)->byteorder) != '>'), ap); > > > > return (npy_bool) ((tmp) != 0); > } >} ># 2377 "numpy/core/src/multiarray/arraytypes.c.src" >static npy_bool >LONGDOUBLE_nonzero (char *ip, PyArrayObject *ap) >{ > if (ap == ((void *)0) || (((((PyArrayObject *)(ap))->flags & (0x0100)) == (0x0100)) && (((((PyArrayObject *)(ap))->descr)->byteorder) != '>'))) { > npy_longdouble *ptmp = (npy_longdouble *)ip; > return (npy_bool) ((*ptmp) != 0); > } > else { > > > > > > npy_longdouble tmp; > > ap->descr->f->copyswap(&tmp, ip, !(((((PyArrayObject *)(ap))->descr)->byteorder) != '>'), ap); > > > > return (npy_bool) ((tmp) != 0); > } >} ># 2377 "numpy/core/src/multiarray/arraytypes.c.src" >static npy_bool >DATETIME_nonzero (char *ip, PyArrayObject *ap) >{ > if (ap == ((void *)0) || (((((PyArrayObject *)(ap))->flags & (0x0100)) == (0x0100)) && (((((PyArrayObject *)(ap))->descr)->byteorder) != '>'))) { > npy_datetime *ptmp = (npy_datetime *)ip; > return (npy_bool) ((*ptmp) != 0); > } > else { > > > > > > npy_datetime tmp; > > > > memcpy(&tmp, ip, sizeof(npy_datetime)); > > return (npy_bool) ((tmp) != 0); > } >} ># 2377 "numpy/core/src/multiarray/arraytypes.c.src" >static npy_bool >TIMEDELTA_nonzero (char *ip, PyArrayObject *ap) >{ > if (ap == ((void *)0) || (((((PyArrayObject *)(ap))->flags & (0x0100)) == (0x0100)) && (((((PyArrayObject *)(ap))->descr)->byteorder) != '>'))) { > npy_timedelta *ptmp = (npy_timedelta *)ip; > return (npy_bool) ((*ptmp) != 0); > } > else { > > > > > > npy_timedelta tmp; > > > > memcpy(&tmp, ip, sizeof(npy_timedelta)); > > return (npy_bool) ((tmp) != 0); > } >} ># 2406 "numpy/core/src/multiarray/arraytypes.c.src" >static npy_bool >CFLOAT_nonzero (char *ip, PyArrayObject *ap) >{ > if (ap == ((void *)0) || (((((PyArrayObject *)(ap))->flags & (0x0100)) == (0x0100)) && (((((PyArrayObject *)(ap))->descr)->byteorder) != '>'))) { > npy_cfloat *ptmp = (npy_cfloat *)ip; > return (npy_bool) ((ptmp->real != 0) || (ptmp->imag != 0)); > } > else { > npy_cfloat tmp; > ap->descr->f->copyswap(&tmp, ip, !(((((PyArrayObject *)(ap))->descr)->byteorder) != '>'), ap); > return (npy_bool) ((tmp.real != 0) || (tmp.imag != 0)); > } >} ># 2406 "numpy/core/src/multiarray/arraytypes.c.src" >static npy_bool >CDOUBLE_nonzero (char *ip, PyArrayObject *ap) >{ > if (ap == ((void *)0) || (((((PyArrayObject *)(ap))->flags & (0x0100)) == (0x0100)) && (((((PyArrayObject *)(ap))->descr)->byteorder) != '>'))) { > npy_cdouble *ptmp = (npy_cdouble *)ip; > return (npy_bool) ((ptmp->real != 0) || (ptmp->imag != 0)); > } > else { > npy_cdouble tmp; > ap->descr->f->copyswap(&tmp, ip, !(((((PyArrayObject *)(ap))->descr)->byteorder) != '>'), ap); > return (npy_bool) ((tmp.real != 0) || (tmp.imag != 0)); > } >} ># 2406 "numpy/core/src/multiarray/arraytypes.c.src" >static npy_bool >CLONGDOUBLE_nonzero (char *ip, PyArrayObject *ap) >{ > if (ap == ((void *)0) || (((((PyArrayObject *)(ap))->flags & (0x0100)) == (0x0100)) && (((((PyArrayObject *)(ap))->descr)->byteorder) != '>'))) { > npy_clongdouble *ptmp = (npy_clongdouble *)ip; > return (npy_bool) ((ptmp->real != 0) || (ptmp->imag != 0)); > } > else { > npy_clongdouble tmp; > ap->descr->f->copyswap(&tmp, ip, !(((((PyArrayObject *)(ap))->descr)->byteorder) != '>'), ap); > return (npy_bool) ((tmp.real != 0) || (tmp.imag != 0)); > } >} > > > > > > >static npy_bool >Py_STRING_ISSPACE(char ch) >{ > char white[] = " \t\n\r\v\f"; > int j; > npy_bool space = 0; > > for (j = 0; j < 6; j++) { > if (ch == white[j]) { > space = 1; > break; > } > } > return space; >} > >static npy_bool >STRING_nonzero (char *ip, PyArrayObject *ap) >{ > int len = ap->descr->elsize; > int i; > npy_bool nonz = 0; > > for (i = 0; i < len; i++) { > if (!Py_STRING_ISSPACE(*ip)) { > nonz = 1; > break; > } > ip++; > } > return nonz; >} > > > > > > > >static npy_bool >UNICODE_nonzero (npy_ucs4 *ip, PyArrayObject *ap) >{ > int len = ap->descr->elsize >> 2; > int i; > npy_bool nonz = 0; > char *buffer = ((void *)0); > > if ((!(((((PyArrayObject *)(ap))->descr)->byteorder) != '>')) || (!((((PyArrayObject *)(ap))->flags & (0x0100)) == (0x0100)))) { > buffer = PyMem_Malloc(ap->descr->elsize); > if (buffer == ((void *)0)) { > return nonz; > } > memcpy(buffer, ip, ap->descr->elsize); > if (!(((((PyArrayObject *)(ap))->descr)->byteorder) != '>')) { > byte_swap_vector(buffer, len, 4); > } > ip = (npy_ucs4 *)buffer; > } > > for (i = 0; i < len; i++) { > if (!((*ip) < 128U ? _Py_ascii_whitespace[(*ip)] : _PyUnicodeUCS4_IsWhitespace(*ip))) { > nonz = 1; > break; > } > ip++; > } > PyMem_Free(buffer); > return nonz; >} > >static npy_bool >OBJECT_nonzero (PyObject **ip, PyArrayObject *ap) >{ > > if (((((PyArrayObject *)(ap))->flags & (0x0100)) == (0x0100))) { > if (*ip == ((void *)0)) { > return 0; > } > return (npy_bool) PyObject_IsTrue(*ip); > } > else { > PyObject *obj; > (*((PyObject **)(&obj)) = *((PyObject **)(ip))); > if (obj == ((void *)0)) { > return 0; > } > return (npy_bool) PyObject_IsTrue(obj); > } >} > > > > >static npy_bool >VOID_nonzero (char *ip, PyArrayObject *ap) >{ > int i; > int len; > npy_bool nonz = 0; > > if ((((PyArray_Descr *)((((PyArrayObject *)(ap))->descr)))->names != ((void *)0))) { > PyArray_Descr *descr, *new; > PyObject *key, *value, *title; > int savedflags, offset; > Py_ssize_t pos = 0; > > descr = ap->descr; > savedflags = ap->flags; > while (PyDict_Next(descr->fields, &pos, &key, &value)) { > if (((((PyVarObject*)((value)))->ob_size)==3) && ((((PyTupleObject *)((value)))->ob_item[2]) == (key))) { > continue; > } > if (!_PyArg_ParseTuple_SizeT(value, "Oi|O", &new, &offset, > &title)) { > PyErr_Clear(); > continue; > } > ap->descr = new; > ap->flags = savedflags; > if ((new->alignment > 1) && !((((size_t) ip+offset) % (new->alignment))==0)) { > ap->flags &= ~0x0100; > } > else { > ap->flags |= 0x0100; > } > if (new->f->nonzero(ip+offset, ap)) { > nonz = 1; > break; > } > } > ap->descr = descr; > ap->flags = savedflags; > return nonz; > } > len = ap->descr->elsize; > for (i = 0; i < len; i++) { > if (*ip != '\0') { > nonz = 1; > break; > } > ip++; > } > return nonz; >} ># 2582 "numpy/core/src/multiarray/arraytypes.c.src" >static int >BOOL_compare(npy_bool *ip1, npy_bool *ip2, PyArrayObject *(__NPY_UNUSED_TAGGEDap) __attribute__ ((__unused__))) >{ > return (*ip1 ? (*ip2 ? 0 : 1) : (*ip2 ? -1 : 0)); >} ># 2597 "numpy/core/src/multiarray/arraytypes.c.src" > >static int >BYTE_compare (npy_byte *pa, npy_byte *pb, PyArrayObject *(__NPY_UNUSED_TAGGEDap) __attribute__ ((__unused__))) >{ > const npy_byte a = *pa; > const npy_byte b = *pb; > > return a < b ? -1 : a == b ? 0 : 1; >} ># 2597 "numpy/core/src/multiarray/arraytypes.c.src" > >static int >UBYTE_compare (npy_ubyte *pa, npy_ubyte *pb, PyArrayObject *(__NPY_UNUSED_TAGGEDap) __attribute__ ((__unused__))) >{ > const npy_ubyte a = *pa; > const npy_ubyte b = *pb; > > return a < b ? -1 : a == b ? 0 : 1; >} ># 2597 "numpy/core/src/multiarray/arraytypes.c.src" > >static int >SHORT_compare (short *pa, short *pb, PyArrayObject *(__NPY_UNUSED_TAGGEDap) __attribute__ ((__unused__))) >{ > const short a = *pa; > const short b = *pb; > > return a < b ? -1 : a == b ? 0 : 1; >} ># 2597 "numpy/core/src/multiarray/arraytypes.c.src" > >static int >USHORT_compare (npy_ushort *pa, npy_ushort *pb, PyArrayObject *(__NPY_UNUSED_TAGGEDap) __attribute__ ((__unused__))) >{ > const npy_ushort a = *pa; > const npy_ushort b = *pb; > > return a < b ? -1 : a == b ? 0 : 1; >} ># 2597 "numpy/core/src/multiarray/arraytypes.c.src" > >static int >INT_compare (int *pa, int *pb, PyArrayObject *(__NPY_UNUSED_TAGGEDap) __attribute__ ((__unused__))) >{ > const int a = *pa; > const int b = *pb; > > return a < b ? -1 : a == b ? 0 : 1; >} ># 2597 "numpy/core/src/multiarray/arraytypes.c.src" > >static int >UINT_compare (npy_uint *pa, npy_uint *pb, PyArrayObject *(__NPY_UNUSED_TAGGEDap) __attribute__ ((__unused__))) >{ > const npy_uint a = *pa; > const npy_uint b = *pb; > > return a < b ? -1 : a == b ? 0 : 1; >} ># 2597 "numpy/core/src/multiarray/arraytypes.c.src" > >static int >LONG_compare (long *pa, long *pb, PyArrayObject *(__NPY_UNUSED_TAGGEDap) __attribute__ ((__unused__))) >{ > const long a = *pa; > const long b = *pb; > > return a < b ? -1 : a == b ? 0 : 1; >} ># 2597 "numpy/core/src/multiarray/arraytypes.c.src" > >static int >ULONG_compare (npy_ulong *pa, npy_ulong *pb, PyArrayObject *(__NPY_UNUSED_TAGGEDap) __attribute__ ((__unused__))) >{ > const npy_ulong a = *pa; > const npy_ulong b = *pb; > > return a < b ? -1 : a == b ? 0 : 1; >} ># 2597 "numpy/core/src/multiarray/arraytypes.c.src" > >static int >LONGLONG_compare (npy_longlong *pa, npy_longlong *pb, PyArrayObject *(__NPY_UNUSED_TAGGEDap) __attribute__ ((__unused__))) >{ > const npy_longlong a = *pa; > const npy_longlong b = *pb; > > return a < b ? -1 : a == b ? 0 : 1; >} ># 2597 "numpy/core/src/multiarray/arraytypes.c.src" > >static int >ULONGLONG_compare (npy_ulonglong *pa, npy_ulonglong *pb, PyArrayObject *(__NPY_UNUSED_TAGGEDap) __attribute__ ((__unused__))) >{ > const npy_ulonglong a = *pa; > const npy_ulonglong b = *pb; > > return a < b ? -1 : a == b ? 0 : 1; >} ># 2597 "numpy/core/src/multiarray/arraytypes.c.src" > >static int >DATETIME_compare (npy_datetime *pa, npy_datetime *pb, PyArrayObject *(__NPY_UNUSED_TAGGEDap) __attribute__ ((__unused__))) >{ > const npy_datetime a = *pa; > const npy_datetime b = *pb; > > return a < b ? -1 : a == b ? 0 : 1; >} ># 2597 "numpy/core/src/multiarray/arraytypes.c.src" > >static int >TIMEDELTA_compare (npy_timedelta *pa, npy_timedelta *pb, PyArrayObject *(__NPY_UNUSED_TAGGEDap) __attribute__ ((__unused__))) >{ > const npy_timedelta a = *pa; > const npy_timedelta b = *pb; > > return a < b ? -1 : a == b ? 0 : 1; >} ># 2633 "numpy/core/src/multiarray/arraytypes.c.src" > > > >static int >FLOAT_compare(float *pa, float *pb) >{ > const float a = *pa; > const float b = *pb; > int ret; > > if (((a) < (b) || ((b) != (b) && (a) ==(a)))) { > ret = -1; > } > else if (((b) < (a) || ((a) != (a) && (b) ==(b)))) { > ret = 1; > } > else { > ret = 0; > } > return ret; >} > > >static int >CFLOAT_compare(float *pa, float *pb) >{ > const float ar = pa[0]; > const float ai = pa[1]; > const float br = pb[0]; > const float bi = pb[1]; > int ret; > > if (ar < br) { > if (ai == ai || bi != bi) { > ret = -1; > } > else { > ret = 1; > } > } > else if (br < ar) { > if (bi == bi || ai != ai) { > ret = 1; > } > else { > ret = -1; > } > } > else if (ar == br || (ar != ar && br != br)) { > if (((ai) < (bi) || ((bi) != (bi) && (ai) ==(ai)))) { > ret = -1; > } > else if (((bi) < (ai) || ((ai) != (ai) && (bi) ==(bi)))) { > ret = 1; > } > else { > ret = 0; > } > } > else if (ar == ar) { > ret = -1; > } > else { > ret = 1; > } > > return ret; >} ># 2633 "numpy/core/src/multiarray/arraytypes.c.src" > > > >static int >DOUBLE_compare(double *pa, double *pb) >{ > const double a = *pa; > const double b = *pb; > int ret; > > if (((a) < (b) || ((b) != (b) && (a) ==(a)))) { > ret = -1; > } > else if (((b) < (a) || ((a) != (a) && (b) ==(b)))) { > ret = 1; > } > else { > ret = 0; > } > return ret; >} > > >static int >CDOUBLE_compare(double *pa, double *pb) >{ > const double ar = pa[0]; > const double ai = pa[1]; > const double br = pb[0]; > const double bi = pb[1]; > int ret; > > if (ar < br) { > if (ai == ai || bi != bi) { > ret = -1; > } > else { > ret = 1; > } > } > else if (br < ar) { > if (bi == bi || ai != ai) { > ret = 1; > } > else { > ret = -1; > } > } > else if (ar == br || (ar != ar && br != br)) { > if (((ai) < (bi) || ((bi) != (bi) && (ai) ==(ai)))) { > ret = -1; > } > else if (((bi) < (ai) || ((ai) != (ai) && (bi) ==(bi)))) { > ret = 1; > } > else { > ret = 0; > } > } > else if (ar == ar) { > ret = -1; > } > else { > ret = 1; > } > > return ret; >} ># 2633 "numpy/core/src/multiarray/arraytypes.c.src" > > > >static int >LONGDOUBLE_compare(npy_longdouble *pa, npy_longdouble *pb) >{ > const npy_longdouble a = *pa; > const npy_longdouble b = *pb; > int ret; > > if (((a) < (b) || ((b) != (b) && (a) ==(a)))) { > ret = -1; > } > else if (((b) < (a) || ((a) != (a) && (b) ==(b)))) { > ret = 1; > } > else { > ret = 0; > } > return ret; >} > > >static int >CLONGDOUBLE_compare(npy_longdouble *pa, npy_longdouble *pb) >{ > const npy_longdouble ar = pa[0]; > const npy_longdouble ai = pa[1]; > const npy_longdouble br = pb[0]; > const npy_longdouble bi = pb[1]; > int ret; > > if (ar < br) { > if (ai == ai || bi != bi) { > ret = -1; > } > else { > ret = 1; > } > } > else if (br < ar) { > if (bi == bi || ai != ai) { > ret = 1; > } > else { > ret = -1; > } > } > else if (ar == br || (ar != ar && br != br)) { > if (((ai) < (bi) || ((bi) != (bi) && (ai) ==(ai)))) { > ret = -1; > } > else if (((bi) < (ai) || ((ai) != (ai) && (bi) ==(bi)))) { > ret = 1; > } > else { > ret = 0; > } > } > else if (ar == ar) { > ret = -1; > } > else { > ret = 1; > } > > return ret; >} > > > > > >static int >HALF_compare (npy_half *pa, npy_half *pb, PyArrayObject *(__NPY_UNUSED_TAGGEDap) __attribute__ ((__unused__))) >{ > npy_half a = *pa, b = *pb; > npy_bool a_isnan, b_isnan; > int ret; > > a_isnan = npy_half_isnan(a); > b_isnan = npy_half_isnan(b); > > if (a_isnan) { > ret = b_isnan ? 0 : -1; > } else if (b_isnan) { > ret = 1; > } else if(npy_half_lt_nonan(a, b)) { > ret = -1; > } else if(npy_half_lt_nonan(b, a)) { > ret = 1; > } else { > ret = 0; > } > > return ret; >} > > > > >static int >OBJECT_compare(PyObject **ip1, PyObject **ip2, PyArrayObject *(__NPY_UNUSED_TAGGEDap) __attribute__ ((__unused__))) >{ > > > > > > if ((*ip1 == ((void *)0)) || (*ip2 == ((void *)0))) { > if (ip1 == ip2) { > return 1; > } > if (ip1 == ((void *)0)) { > return -1; > } > return 1; > } ># 2762 "numpy/core/src/multiarray/arraytypes.c.src" > return PyObject_Compare(*ip1, *ip2); > >} > > > > >static int >STRING_compare(char *ip1, char *ip2, PyArrayObject *ap) >{ > const unsigned char *c1 = (unsigned char *)ip1; > const unsigned char *c2 = (unsigned char *)ip2; > const size_t len = ap->descr->elsize; > size_t i; > > for(i = 0; i < len; ++i) { > if (c1[i] != c2[i]) { > return (c1[i] > c2[i]) ? 1 : -1; > } > } > return 0; >} > > > > >static int >UNICODE_compare(npy_ucs4 *ip1, npy_ucs4 *ip2, > PyArrayObject *ap) >{ > int itemsize = ap->descr->elsize; > > if (itemsize < 0) { > return 0; > } > while (itemsize-- > 0) { > npy_ucs4 c1 = *ip1++; > npy_ucs4 c2 = *ip2++; > if (c1 != c2) { > return (c1 < c2) ? -1 : 1; > } > } > return 0; >} ># 2818 "numpy/core/src/multiarray/arraytypes.c.src" >static int >VOID_compare(char *ip1, char *ip2, PyArrayObject *ap) >{ > PyArray_Descr *descr, *new; > PyObject *names, *key; > PyObject *tup, *title; > char *nip1, *nip2; > int i, offset, res = 0, swap=0; > > if (!(((PyArray_Descr *)((((PyArrayObject *)(ap))->descr)))->names != ((void *)0))) { > return STRING_compare(ip1, ip2, ap); > } > descr = ap->descr; > > > > > names = descr->names; > for (i = 0; i < (((PyVarObject*)(names))->ob_size); i++) { > key = (((PyTupleObject *)(names))->ob_item[i]); > tup = PyDict_GetItem(descr->fields, key); > if (!_PyArg_ParseTuple_SizeT(tup, "Oi|O", &new, &offset, &title)) { > goto finish; > } > ap->descr = new; > swap = (!(((((PyArrayObject *)(ap))->descr)->byteorder) != '>')); > nip1 = ip1+offset; > nip2 = ip2+offset; > if ((swap) || (new->alignment > 1)) { > if ((swap) || (((npy_intp)(nip1) % new->alignment) != 0)) { > > nip1 = PyMem_Malloc(new->elsize); > if (nip1 == ((void *)0)) { > goto finish; > } > memcpy(nip1, ip1+offset, new->elsize); > if (swap) > new->f->copyswap(nip1, ((void *)0), swap, ap); > } > if ((swap) || (((npy_intp)(nip2) % new->alignment) != 0)) { > > nip2 = PyMem_Malloc(new->elsize); > if (nip2 == ((void *)0)) { > if (nip1 != ip1+offset) { > PyMem_Free(nip1); > } > goto finish; > } > memcpy(nip2, ip2+offset, new->elsize); > if (swap) > new->f->copyswap(nip2, ((void *)0), swap, ap); > } > } > res = new->f->compare(nip1, nip2, ap); > if ((swap) || (new->alignment > 1)) { > if (nip1 != ip1+offset) { > PyMem_Free(nip1); > } > if (nip2 != ip2+offset) { > PyMem_Free(nip2); > } > } > if (res != 0) { > break; > } > } > >finish: > ap->descr = descr; > return res; >} ># 2913 "numpy/core/src/multiarray/arraytypes.c.src" >static int >BOOL_argmax(npy_bool *ip, npy_intp n, npy_intp *max_ind, PyArrayObject *(__NPY_UNUSED_TAGGEDaip) __attribute__ ((__unused__))) >{ > npy_intp i; > npy_bool mp = *ip; > > > > > *max_ind = 0; ># 2937 "numpy/core/src/multiarray/arraytypes.c.src" > for (i = 1; i < n; i++) { > ip++; ># 2955 "numpy/core/src/multiarray/arraytypes.c.src" > if (!((*ip) <= (mp))) { > mp = *ip; > *max_ind = i; > > > > > > > } > > } > return 0; >} ># 2913 "numpy/core/src/multiarray/arraytypes.c.src" >static int >BYTE_argmax(npy_byte *ip, npy_intp n, npy_intp *max_ind, PyArrayObject *(__NPY_UNUSED_TAGGEDaip) __attribute__ ((__unused__))) >{ > npy_intp i; > npy_byte mp = *ip; > > > > > *max_ind = 0; ># 2937 "numpy/core/src/multiarray/arraytypes.c.src" > for (i = 1; i < n; i++) { > ip++; ># 2955 "numpy/core/src/multiarray/arraytypes.c.src" > if (!((*ip) <= (mp))) { > mp = *ip; > *max_ind = i; > > > > > > > } > > } > return 0; >} ># 2913 "numpy/core/src/multiarray/arraytypes.c.src" >static int >UBYTE_argmax(npy_ubyte *ip, npy_intp n, npy_intp *max_ind, PyArrayObject *(__NPY_UNUSED_TAGGEDaip) __attribute__ ((__unused__))) >{ > npy_intp i; > npy_ubyte mp = *ip; > > > > > *max_ind = 0; ># 2937 "numpy/core/src/multiarray/arraytypes.c.src" > for (i = 1; i < n; i++) { > ip++; ># 2955 "numpy/core/src/multiarray/arraytypes.c.src" > if (!((*ip) <= (mp))) { > mp = *ip; > *max_ind = i; > > > > > > > } > > } > return 0; >} ># 2913 "numpy/core/src/multiarray/arraytypes.c.src" >static int >SHORT_argmax(short *ip, npy_intp n, npy_intp *max_ind, PyArrayObject *(__NPY_UNUSED_TAGGEDaip) __attribute__ ((__unused__))) >{ > npy_intp i; > short mp = *ip; > > > > > *max_ind = 0; ># 2937 "numpy/core/src/multiarray/arraytypes.c.src" > for (i = 1; i < n; i++) { > ip++; ># 2955 "numpy/core/src/multiarray/arraytypes.c.src" > if (!((*ip) <= (mp))) { > mp = *ip; > *max_ind = i; > > > > > > > } > > } > return 0; >} ># 2913 "numpy/core/src/multiarray/arraytypes.c.src" >static int >USHORT_argmax(npy_ushort *ip, npy_intp n, npy_intp *max_ind, PyArrayObject *(__NPY_UNUSED_TAGGEDaip) __attribute__ ((__unused__))) >{ > npy_intp i; > npy_ushort mp = *ip; > > > > > *max_ind = 0; ># 2937 "numpy/core/src/multiarray/arraytypes.c.src" > for (i = 1; i < n; i++) { > ip++; ># 2955 "numpy/core/src/multiarray/arraytypes.c.src" > if (!((*ip) <= (mp))) { > mp = *ip; > *max_ind = i; > > > > > > > } > > } > return 0; >} ># 2913 "numpy/core/src/multiarray/arraytypes.c.src" >static int >INT_argmax(int *ip, npy_intp n, npy_intp *max_ind, PyArrayObject *(__NPY_UNUSED_TAGGEDaip) __attribute__ ((__unused__))) >{ > npy_intp i; > int mp = *ip; > > > > > *max_ind = 0; ># 2937 "numpy/core/src/multiarray/arraytypes.c.src" > for (i = 1; i < n; i++) { > ip++; ># 2955 "numpy/core/src/multiarray/arraytypes.c.src" > if (!((*ip) <= (mp))) { > mp = *ip; > *max_ind = i; > > > > > > > } > > } > return 0; >} ># 2913 "numpy/core/src/multiarray/arraytypes.c.src" >static int >UINT_argmax(npy_uint *ip, npy_intp n, npy_intp *max_ind, PyArrayObject *(__NPY_UNUSED_TAGGEDaip) __attribute__ ((__unused__))) >{ > npy_intp i; > npy_uint mp = *ip; > > > > > *max_ind = 0; ># 2937 "numpy/core/src/multiarray/arraytypes.c.src" > for (i = 1; i < n; i++) { > ip++; ># 2955 "numpy/core/src/multiarray/arraytypes.c.src" > if (!((*ip) <= (mp))) { > mp = *ip; > *max_ind = i; > > > > > > > } > > } > return 0; >} ># 2913 "numpy/core/src/multiarray/arraytypes.c.src" >static int >LONG_argmax(long *ip, npy_intp n, npy_intp *max_ind, PyArrayObject *(__NPY_UNUSED_TAGGEDaip) __attribute__ ((__unused__))) >{ > npy_intp i; > long mp = *ip; > > > > > *max_ind = 0; ># 2937 "numpy/core/src/multiarray/arraytypes.c.src" > for (i = 1; i < n; i++) { > ip++; ># 2955 "numpy/core/src/multiarray/arraytypes.c.src" > if (!((*ip) <= (mp))) { > mp = *ip; > *max_ind = i; > > > > > > > } > > } > return 0; >} ># 2913 "numpy/core/src/multiarray/arraytypes.c.src" >static int >ULONG_argmax(npy_ulong *ip, npy_intp n, npy_intp *max_ind, PyArrayObject *(__NPY_UNUSED_TAGGEDaip) __attribute__ ((__unused__))) >{ > npy_intp i; > npy_ulong mp = *ip; > > > > > *max_ind = 0; ># 2937 "numpy/core/src/multiarray/arraytypes.c.src" > for (i = 1; i < n; i++) { > ip++; ># 2955 "numpy/core/src/multiarray/arraytypes.c.src" > if (!((*ip) <= (mp))) { > mp = *ip; > *max_ind = i; > > > > > > > } > > } > return 0; >} ># 2913 "numpy/core/src/multiarray/arraytypes.c.src" >static int >LONGLONG_argmax(npy_longlong *ip, npy_intp n, npy_intp *max_ind, PyArrayObject *(__NPY_UNUSED_TAGGEDaip) __attribute__ ((__unused__))) >{ > npy_intp i; > npy_longlong mp = *ip; > > > > > *max_ind = 0; ># 2937 "numpy/core/src/multiarray/arraytypes.c.src" > for (i = 1; i < n; i++) { > ip++; ># 2955 "numpy/core/src/multiarray/arraytypes.c.src" > if (!((*ip) <= (mp))) { > mp = *ip; > *max_ind = i; > > > > > > > } > > } > return 0; >} ># 2913 "numpy/core/src/multiarray/arraytypes.c.src" >static int >ULONGLONG_argmax(npy_ulonglong *ip, npy_intp n, npy_intp *max_ind, PyArrayObject *(__NPY_UNUSED_TAGGEDaip) __attribute__ ((__unused__))) >{ > npy_intp i; > npy_ulonglong mp = *ip; > > > > > *max_ind = 0; ># 2937 "numpy/core/src/multiarray/arraytypes.c.src" > for (i = 1; i < n; i++) { > ip++; ># 2955 "numpy/core/src/multiarray/arraytypes.c.src" > if (!((*ip) <= (mp))) { > mp = *ip; > *max_ind = i; > > > > > > > } > > } > return 0; >} ># 2913 "numpy/core/src/multiarray/arraytypes.c.src" >static int >HALF_argmax(npy_half *ip, npy_intp n, npy_intp *max_ind, PyArrayObject *(__NPY_UNUSED_TAGGEDaip) __attribute__ ((__unused__))) >{ > npy_intp i; > npy_half mp = *ip; > > > > > *max_ind = 0; > > > if (npy_half_isnan(mp)) { > > return 0; > } ># 2937 "numpy/core/src/multiarray/arraytypes.c.src" > for (i = 1; i < n; i++) { > ip++; ># 2955 "numpy/core/src/multiarray/arraytypes.c.src" > if (!npy_half_le(*ip, mp)) { > mp = *ip; > *max_ind = i; > > if (npy_half_isnan(mp)) { > > break; > } > > } > > } > return 0; >} ># 2913 "numpy/core/src/multiarray/arraytypes.c.src" >static int >FLOAT_argmax(float *ip, npy_intp n, npy_intp *max_ind, PyArrayObject *(__NPY_UNUSED_TAGGEDaip) __attribute__ ((__unused__))) >{ > npy_intp i; > float mp = *ip; > > > > > *max_ind = 0; > > > if ((sizeof ((mp)) == sizeof (float) ? __isnanf ((mp)) : sizeof ((mp)) == sizeof (double) ? __isnan ((mp)) : __isnanl ((mp)))) { > > return 0; > } ># 2937 "numpy/core/src/multiarray/arraytypes.c.src" > for (i = 1; i < n; i++) { > ip++; ># 2955 "numpy/core/src/multiarray/arraytypes.c.src" > if (!((*ip) <= (mp))) { > mp = *ip; > *max_ind = i; > > if ((sizeof ((mp)) == sizeof (float) ? __isnanf ((mp)) : sizeof ((mp)) == sizeof (double) ? __isnan ((mp)) : __isnanl ((mp)))) { > > break; > } > > } > > } > return 0; >} ># 2913 "numpy/core/src/multiarray/arraytypes.c.src" >static int >DOUBLE_argmax(double *ip, npy_intp n, npy_intp *max_ind, PyArrayObject *(__NPY_UNUSED_TAGGEDaip) __attribute__ ((__unused__))) >{ > npy_intp i; > double mp = *ip; > > > > > *max_ind = 0; > > > if ((sizeof ((mp)) == sizeof (float) ? __isnanf ((mp)) : sizeof ((mp)) == sizeof (double) ? __isnan ((mp)) : __isnanl ((mp)))) { > > return 0; > } ># 2937 "numpy/core/src/multiarray/arraytypes.c.src" > for (i = 1; i < n; i++) { > ip++; ># 2955 "numpy/core/src/multiarray/arraytypes.c.src" > if (!((*ip) <= (mp))) { > mp = *ip; > *max_ind = i; > > if ((sizeof ((mp)) == sizeof (float) ? __isnanf ((mp)) : sizeof ((mp)) == sizeof (double) ? __isnan ((mp)) : __isnanl ((mp)))) { > > break; > } > > } > > } > return 0; >} ># 2913 "numpy/core/src/multiarray/arraytypes.c.src" >static int >LONGDOUBLE_argmax(npy_longdouble *ip, npy_intp n, npy_intp *max_ind, PyArrayObject *(__NPY_UNUSED_TAGGEDaip) __attribute__ ((__unused__))) >{ > npy_intp i; > npy_longdouble mp = *ip; > > > > > *max_ind = 0; > > > if ((sizeof ((mp)) == sizeof (float) ? __isnanf ((mp)) : sizeof ((mp)) == sizeof (double) ? __isnan ((mp)) : __isnanl ((mp)))) { > > return 0; > } ># 2937 "numpy/core/src/multiarray/arraytypes.c.src" > for (i = 1; i < n; i++) { > ip++; ># 2955 "numpy/core/src/multiarray/arraytypes.c.src" > if (!((*ip) <= (mp))) { > mp = *ip; > *max_ind = i; > > if ((sizeof ((mp)) == sizeof (float) ? __isnanf ((mp)) : sizeof ((mp)) == sizeof (double) ? __isnan ((mp)) : __isnanl ((mp)))) { > > break; > } > > } > > } > return 0; >} ># 2913 "numpy/core/src/multiarray/arraytypes.c.src" >static int >CFLOAT_argmax(float *ip, npy_intp n, npy_intp *max_ind, PyArrayObject *(__NPY_UNUSED_TAGGEDaip) __attribute__ ((__unused__))) >{ > npy_intp i; > float mp = *ip; > > float mp_im = ip[1]; > > > *max_ind = 0; > > > if ((sizeof ((mp)) == sizeof (float) ? __isnanf ((mp)) : sizeof ((mp)) == sizeof (double) ? __isnan ((mp)) : __isnanl ((mp)))) { > > return 0; > } > > > if ((sizeof ((mp_im)) == sizeof (float) ? __isnanf ((mp_im)) : sizeof ((mp_im)) == sizeof (double) ? __isnan ((mp_im)) : __isnanl ((mp_im)))) { > > return 0; > } > > > for (i = 1; i < n; i++) { > ip+=2; > > > > > > if ((ip[0] > mp) || ((ip[0] == mp) && (ip[1] > mp_im)) > || (sizeof ((ip[0])) == sizeof (float) ? __isnanf ((ip[0])) : sizeof ((ip[0])) == sizeof (double) ? __isnan ((ip[0])) : __isnanl ((ip[0]))) || (sizeof ((ip[1])) == sizeof (float) ? __isnanf ((ip[1])) : sizeof ((ip[1])) == sizeof (double) ? __isnan ((ip[1])) : __isnanl ((ip[1])))) { > mp = ip[0]; > mp_im = ip[1]; > *max_ind = i; > if ((sizeof ((mp)) == sizeof (float) ? __isnanf ((mp)) : sizeof ((mp)) == sizeof (double) ? __isnan ((mp)) : __isnanl ((mp))) || (sizeof ((mp_im)) == sizeof (float) ? __isnanf ((mp_im)) : sizeof ((mp_im)) == sizeof (double) ? __isnan ((mp_im)) : __isnanl ((mp_im)))) { > > break; > } > } ># 2966 "numpy/core/src/multiarray/arraytypes.c.src" > } > return 0; >} ># 2913 "numpy/core/src/multiarray/arraytypes.c.src" >static int >CDOUBLE_argmax(double *ip, npy_intp n, npy_intp *max_ind, PyArrayObject *(__NPY_UNUSED_TAGGEDaip) __attribute__ ((__unused__))) >{ > npy_intp i; > double mp = *ip; > > double mp_im = ip[1]; > > > *max_ind = 0; > > > if ((sizeof ((mp)) == sizeof (float) ? __isnanf ((mp)) : sizeof ((mp)) == sizeof (double) ? __isnan ((mp)) : __isnanl ((mp)))) { > > return 0; > } > > > if ((sizeof ((mp_im)) == sizeof (float) ? __isnanf ((mp_im)) : sizeof ((mp_im)) == sizeof (double) ? __isnan ((mp_im)) : __isnanl ((mp_im)))) { > > return 0; > } > > > for (i = 1; i < n; i++) { > ip+=2; > > > > > > if ((ip[0] > mp) || ((ip[0] == mp) && (ip[1] > mp_im)) > || (sizeof ((ip[0])) == sizeof (float) ? __isnanf ((ip[0])) : sizeof ((ip[0])) == sizeof (double) ? __isnan ((ip[0])) : __isnanl ((ip[0]))) || (sizeof ((ip[1])) == sizeof (float) ? __isnanf ((ip[1])) : sizeof ((ip[1])) == sizeof (double) ? __isnan ((ip[1])) : __isnanl ((ip[1])))) { > mp = ip[0]; > mp_im = ip[1]; > *max_ind = i; > if ((sizeof ((mp)) == sizeof (float) ? __isnanf ((mp)) : sizeof ((mp)) == sizeof (double) ? __isnan ((mp)) : __isnanl ((mp))) || (sizeof ((mp_im)) == sizeof (float) ? __isnanf ((mp_im)) : sizeof ((mp_im)) == sizeof (double) ? __isnan ((mp_im)) : __isnanl ((mp_im)))) { > > break; > } > } ># 2966 "numpy/core/src/multiarray/arraytypes.c.src" > } > return 0; >} ># 2913 "numpy/core/src/multiarray/arraytypes.c.src" >static int >CLONGDOUBLE_argmax(npy_longdouble *ip, npy_intp n, npy_intp *max_ind, PyArrayObject *(__NPY_UNUSED_TAGGEDaip) __attribute__ ((__unused__))) >{ > npy_intp i; > npy_longdouble mp = *ip; > > npy_longdouble mp_im = ip[1]; > > > *max_ind = 0; > > > if ((sizeof ((mp)) == sizeof (float) ? __isnanf ((mp)) : sizeof ((mp)) == sizeof (double) ? __isnan ((mp)) : __isnanl ((mp)))) { > > return 0; > } > > > if ((sizeof ((mp_im)) == sizeof (float) ? __isnanf ((mp_im)) : sizeof ((mp_im)) == sizeof (double) ? __isnan ((mp_im)) : __isnanl ((mp_im)))) { > > return 0; > } > > > for (i = 1; i < n; i++) { > ip+=2; > > > > > > if ((ip[0] > mp) || ((ip[0] == mp) && (ip[1] > mp_im)) > || (sizeof ((ip[0])) == sizeof (float) ? __isnanf ((ip[0])) : sizeof ((ip[0])) == sizeof (double) ? __isnan ((ip[0])) : __isnanl ((ip[0]))) || (sizeof ((ip[1])) == sizeof (float) ? __isnanf ((ip[1])) : sizeof ((ip[1])) == sizeof (double) ? __isnan ((ip[1])) : __isnanl ((ip[1])))) { > mp = ip[0]; > mp_im = ip[1]; > *max_ind = i; > if ((sizeof ((mp)) == sizeof (float) ? __isnanf ((mp)) : sizeof ((mp)) == sizeof (double) ? __isnan ((mp)) : __isnanl ((mp))) || (sizeof ((mp_im)) == sizeof (float) ? __isnanf ((mp_im)) : sizeof ((mp_im)) == sizeof (double) ? __isnan ((mp_im)) : __isnanl ((mp_im)))) { > > break; > } > } ># 2966 "numpy/core/src/multiarray/arraytypes.c.src" > } > return 0; >} ># 2913 "numpy/core/src/multiarray/arraytypes.c.src" >static int >DATETIME_argmax(npy_datetime *ip, npy_intp n, npy_intp *max_ind, PyArrayObject *(__NPY_UNUSED_TAGGEDaip) __attribute__ ((__unused__))) >{ > npy_intp i; > npy_datetime mp = *ip; > > > > > *max_ind = 0; ># 2937 "numpy/core/src/multiarray/arraytypes.c.src" > for (i = 1; i < n; i++) { > ip++; ># 2955 "numpy/core/src/multiarray/arraytypes.c.src" > if (!((*ip) <= (mp))) { > mp = *ip; > *max_ind = i; > > > > > > > } > > } > return 0; >} ># 2913 "numpy/core/src/multiarray/arraytypes.c.src" >static int >TIMEDELTA_argmax(npy_timedelta *ip, npy_intp n, npy_intp *max_ind, PyArrayObject *(__NPY_UNUSED_TAGGEDaip) __attribute__ ((__unused__))) >{ > npy_intp i; > npy_timedelta mp = *ip; > > > > > *max_ind = 0; ># 2937 "numpy/core/src/multiarray/arraytypes.c.src" > for (i = 1; i < n; i++) { > ip++; ># 2955 "numpy/core/src/multiarray/arraytypes.c.src" > if (!((*ip) <= (mp))) { > mp = *ip; > *max_ind = i; > > > > > > > } > > } > return 0; >} > > > > > >static int >OBJECT_argmax(PyObject **ip, npy_intp n, npy_intp *max_ind, PyArrayObject *(__NPY_UNUSED_TAGGEDaip) __attribute__ ((__unused__))) >{ > npy_intp i; > PyObject *mp = ip[0]; > > *max_ind = 0; > i = 1; > while (i < n && mp == ((void *)0)) { > mp = ip[i]; > i++; > } > for (; i < n; i++) { > ip++; > > > > if (*ip != ((void *)0) && PyObject_Compare(*ip, mp) > 0) { > > mp = *ip; > *max_ind = i; > } > } > return 0; >} ># 3005 "numpy/core/src/multiarray/arraytypes.c.src" >static int >STRING_argmax(char *ip, npy_intp n, npy_intp *max_ind, PyArrayObject *aip) >{ > npy_intp i; > int elsize = aip->descr->elsize; > char *mp = (char *)PyMem_Malloc(elsize); > > if (mp==((void *)0)) return 0; > memcpy(mp, ip, elsize); > *max_ind = 0; > for(i=1; i<n; i++) { > ip += elsize; > if (STRING_compare(ip,mp,aip) > 0) { > memcpy(mp, ip, elsize); > *max_ind=i; > } > } > PyMem_Free(mp); > return 0; >} ># 3005 "numpy/core/src/multiarray/arraytypes.c.src" >static int >UNICODE_argmax(npy_ucs4 *ip, npy_intp n, npy_intp *max_ind, PyArrayObject *aip) >{ > npy_intp i; > int elsize = aip->descr->elsize; > npy_ucs4 *mp = (npy_ucs4 *)PyMem_Malloc(elsize); > > if (mp==((void *)0)) return 0; > memcpy(mp, ip, elsize); > *max_ind = 0; > for(i=1; i<n; i++) { > ip += elsize; > if (UNICODE_compare(ip,mp,aip) > 0) { > memcpy(mp, ip, elsize); > *max_ind=i; > } > } > PyMem_Free(mp); > return 0; >} ># 3041 "numpy/core/src/multiarray/arraytypes.c.src" >static void >BOOL_dot(char *ip1, npy_intp is1, char *ip2, npy_intp is2, char *op, npy_intp n, > void *(__NPY_UNUSED_TAGGEDignore) __attribute__ ((__unused__))) >{ > npy_bool tmp = 0; > npy_intp i; > > for (i = 0; i < n; i++, ip1 += is1, ip2 += is2) { > if ((*((npy_bool *)ip1) != 0) && (*((npy_bool *)ip2) != 0)) { > tmp = 1; > break; > } > } > *((npy_bool *)op) = tmp; >} ># 3069 "numpy/core/src/multiarray/arraytypes.c.src" >static void >BYTE_dot(char *ip1, npy_intp is1, char *ip2, npy_intp is2, char *op, npy_intp n, > void *(__NPY_UNUSED_TAGGEDignore) __attribute__ ((__unused__))) >{ > long tmp = (long)0; > npy_intp i; > > for (i = 0; i < n; i++, ip1 += is1, ip2 += is2) { > tmp += (long)(*((npy_byte *)ip1)) * > (long)(*((npy_byte *)ip2)); > } > *((npy_byte *)op) = (npy_byte) tmp; >} ># 3069 "numpy/core/src/multiarray/arraytypes.c.src" >static void >UBYTE_dot(char *ip1, npy_intp is1, char *ip2, npy_intp is2, char *op, npy_intp n, > void *(__NPY_UNUSED_TAGGEDignore) __attribute__ ((__unused__))) >{ > npy_ulong tmp = (npy_ulong)0; > npy_intp i; > > for (i = 0; i < n; i++, ip1 += is1, ip2 += is2) { > tmp += (npy_ulong)(*((npy_ubyte *)ip1)) * > (npy_ulong)(*((npy_ubyte *)ip2)); > } > *((npy_ubyte *)op) = (npy_ubyte) tmp; >} ># 3069 "numpy/core/src/multiarray/arraytypes.c.src" >static void >SHORT_dot(char *ip1, npy_intp is1, char *ip2, npy_intp is2, char *op, npy_intp n, > void *(__NPY_UNUSED_TAGGEDignore) __attribute__ ((__unused__))) >{ > long tmp = (long)0; > npy_intp i; > > for (i = 0; i < n; i++, ip1 += is1, ip2 += is2) { > tmp += (long)(*((short *)ip1)) * > (long)(*((short *)ip2)); > } > *((short *)op) = (short) tmp; >} ># 3069 "numpy/core/src/multiarray/arraytypes.c.src" >static void >USHORT_dot(char *ip1, npy_intp is1, char *ip2, npy_intp is2, char *op, npy_intp n, > void *(__NPY_UNUSED_TAGGEDignore) __attribute__ ((__unused__))) >{ > npy_ulong tmp = (npy_ulong)0; > npy_intp i; > > for (i = 0; i < n; i++, ip1 += is1, ip2 += is2) { > tmp += (npy_ulong)(*((npy_ushort *)ip1)) * > (npy_ulong)(*((npy_ushort *)ip2)); > } > *((npy_ushort *)op) = (npy_ushort) tmp; >} ># 3069 "numpy/core/src/multiarray/arraytypes.c.src" >static void >INT_dot(char *ip1, npy_intp is1, char *ip2, npy_intp is2, char *op, npy_intp n, > void *(__NPY_UNUSED_TAGGEDignore) __attribute__ ((__unused__))) >{ > long tmp = (long)0; > npy_intp i; > > for (i = 0; i < n; i++, ip1 += is1, ip2 += is2) { > tmp += (long)(*((int *)ip1)) * > (long)(*((int *)ip2)); > } > *((int *)op) = (int) tmp; >} ># 3069 "numpy/core/src/multiarray/arraytypes.c.src" >static void >UINT_dot(char *ip1, npy_intp is1, char *ip2, npy_intp is2, char *op, npy_intp n, > void *(__NPY_UNUSED_TAGGEDignore) __attribute__ ((__unused__))) >{ > npy_ulong tmp = (npy_ulong)0; > npy_intp i; > > for (i = 0; i < n; i++, ip1 += is1, ip2 += is2) { > tmp += (npy_ulong)(*((npy_uint *)ip1)) * > (npy_ulong)(*((npy_uint *)ip2)); > } > *((npy_uint *)op) = (npy_uint) tmp; >} ># 3069 "numpy/core/src/multiarray/arraytypes.c.src" >static void >LONG_dot(char *ip1, npy_intp is1, char *ip2, npy_intp is2, char *op, npy_intp n, > void *(__NPY_UNUSED_TAGGEDignore) __attribute__ ((__unused__))) >{ > long tmp = (long)0; > npy_intp i; > > for (i = 0; i < n; i++, ip1 += is1, ip2 += is2) { > tmp += (long)(*((long *)ip1)) * > (long)(*((long *)ip2)); > } > *((long *)op) = (long) tmp; >} ># 3069 "numpy/core/src/multiarray/arraytypes.c.src" >static void >ULONG_dot(char *ip1, npy_intp is1, char *ip2, npy_intp is2, char *op, npy_intp n, > void *(__NPY_UNUSED_TAGGEDignore) __attribute__ ((__unused__))) >{ > npy_ulong tmp = (npy_ulong)0; > npy_intp i; > > for (i = 0; i < n; i++, ip1 += is1, ip2 += is2) { > tmp += (npy_ulong)(*((npy_ulong *)ip1)) * > (npy_ulong)(*((npy_ulong *)ip2)); > } > *((npy_ulong *)op) = (npy_ulong) tmp; >} ># 3069 "numpy/core/src/multiarray/arraytypes.c.src" >static void >LONGLONG_dot(char *ip1, npy_intp is1, char *ip2, npy_intp is2, char *op, npy_intp n, > void *(__NPY_UNUSED_TAGGEDignore) __attribute__ ((__unused__))) >{ > npy_longlong tmp = (npy_longlong)0; > npy_intp i; > > for (i = 0; i < n; i++, ip1 += is1, ip2 += is2) { > tmp += (npy_longlong)(*((npy_longlong *)ip1)) * > (npy_longlong)(*((npy_longlong *)ip2)); > } > *((npy_longlong *)op) = (npy_longlong) tmp; >} ># 3069 "numpy/core/src/multiarray/arraytypes.c.src" >static void >ULONGLONG_dot(char *ip1, npy_intp is1, char *ip2, npy_intp is2, char *op, npy_intp n, > void *(__NPY_UNUSED_TAGGEDignore) __attribute__ ((__unused__))) >{ > npy_ulonglong tmp = (npy_ulonglong)0; > npy_intp i; > > for (i = 0; i < n; i++, ip1 += is1, ip2 += is2) { > tmp += (npy_ulonglong)(*((npy_ulonglong *)ip1)) * > (npy_ulonglong)(*((npy_ulonglong *)ip2)); > } > *((npy_ulonglong *)op) = (npy_ulonglong) tmp; >} ># 3069 "numpy/core/src/multiarray/arraytypes.c.src" >static void >FLOAT_dot(char *ip1, npy_intp is1, char *ip2, npy_intp is2, char *op, npy_intp n, > void *(__NPY_UNUSED_TAGGEDignore) __attribute__ ((__unused__))) >{ > float tmp = (float)0; > npy_intp i; > > for (i = 0; i < n; i++, ip1 += is1, ip2 += is2) { > tmp += (float)(*((float *)ip1)) * > (float)(*((float *)ip2)); > } > *((float *)op) = (float) tmp; >} ># 3069 "numpy/core/src/multiarray/arraytypes.c.src" >static void >DOUBLE_dot(char *ip1, npy_intp is1, char *ip2, npy_intp is2, char *op, npy_intp n, > void *(__NPY_UNUSED_TAGGEDignore) __attribute__ ((__unused__))) >{ > double tmp = (double)0; > npy_intp i; > > for (i = 0; i < n; i++, ip1 += is1, ip2 += is2) { > tmp += (double)(*((double *)ip1)) * > (double)(*((double *)ip2)); > } > *((double *)op) = (double) tmp; >} ># 3069 "numpy/core/src/multiarray/arraytypes.c.src" >static void >LONGDOUBLE_dot(char *ip1, npy_intp is1, char *ip2, npy_intp is2, char *op, npy_intp n, > void *(__NPY_UNUSED_TAGGEDignore) __attribute__ ((__unused__))) >{ > npy_longdouble tmp = (npy_longdouble)0; > npy_intp i; > > for (i = 0; i < n; i++, ip1 += is1, ip2 += is2) { > tmp += (npy_longdouble)(*((npy_longdouble *)ip1)) * > (npy_longdouble)(*((npy_longdouble *)ip2)); > } > *((npy_longdouble *)op) = (npy_longdouble) tmp; >} ># 3069 "numpy/core/src/multiarray/arraytypes.c.src" >static void >DATETIME_dot(char *ip1, npy_intp is1, char *ip2, npy_intp is2, char *op, npy_intp n, > void *(__NPY_UNUSED_TAGGEDignore) __attribute__ ((__unused__))) >{ > npy_datetime tmp = (npy_datetime)0; > npy_intp i; > > for (i = 0; i < n; i++, ip1 += is1, ip2 += is2) { > tmp += (npy_datetime)(*((npy_datetime *)ip1)) * > (npy_datetime)(*((npy_datetime *)ip2)); > } > *((npy_datetime *)op) = (npy_datetime) tmp; >} ># 3069 "numpy/core/src/multiarray/arraytypes.c.src" >static void >TIMEDELTA_dot(char *ip1, npy_intp is1, char *ip2, npy_intp is2, char *op, npy_intp n, > void *(__NPY_UNUSED_TAGGEDignore) __attribute__ ((__unused__))) >{ > npy_timedelta tmp = (npy_timedelta)0; > npy_intp i; > > for (i = 0; i < n; i++, ip1 += is1, ip2 += is2) { > tmp += (npy_timedelta)(*((npy_timedelta *)ip1)) * > (npy_timedelta)(*((npy_timedelta *)ip2)); > } > *((npy_timedelta *)op) = (npy_timedelta) tmp; >} > > >static void >HALF_dot(char *ip1, npy_intp is1, char *ip2, npy_intp is2, char *op, npy_intp n, > void *(__NPY_UNUSED_TAGGEDignore) __attribute__ ((__unused__))) >{ > float tmp = 0.0f; > npy_intp i; > > for (i = 0; i < n; i++, ip1 += is1, ip2 += is2) { > tmp += npy_half_to_float(*((npy_half *)ip1)) * > npy_half_to_float(*((npy_half *)ip2)); > } > *((npy_half *)op) = npy_float_to_half(tmp); >} ># 3103 "numpy/core/src/multiarray/arraytypes.c.src" >static void CFLOAT_dot(char *ip1, npy_intp is1, char *ip2, npy_intp is2, > char *op, npy_intp n, void *(__NPY_UNUSED_TAGGEDignore) __attribute__ ((__unused__))) >{ > float tmpr = (float)0.0, tmpi=(float)0.0; > npy_intp i; > > for (i = 0; i < n; i++, ip1 += is1, ip2 += is2) { > tmpr += ((float *)ip1)[0] * ((float *)ip2)[0] > - ((float *)ip1)[1] * ((float *)ip2)[1]; > tmpi += ((float *)ip1)[1] * ((float *)ip2)[0] > + ((float *)ip1)[0] * ((float *)ip2)[1]; > } > ((float *)op)[0] = tmpr; ((float *)op)[1] = tmpi; >} ># 3103 "numpy/core/src/multiarray/arraytypes.c.src" >static void CDOUBLE_dot(char *ip1, npy_intp is1, char *ip2, npy_intp is2, > char *op, npy_intp n, void *(__NPY_UNUSED_TAGGEDignore) __attribute__ ((__unused__))) >{ > double tmpr = (double)0.0, tmpi=(double)0.0; > npy_intp i; > > for (i = 0; i < n; i++, ip1 += is1, ip2 += is2) { > tmpr += ((double *)ip1)[0] * ((double *)ip2)[0] > - ((double *)ip1)[1] * ((double *)ip2)[1]; > tmpi += ((double *)ip1)[1] * ((double *)ip2)[0] > + ((double *)ip1)[0] * ((double *)ip2)[1]; > } > ((double *)op)[0] = tmpr; ((double *)op)[1] = tmpi; >} ># 3103 "numpy/core/src/multiarray/arraytypes.c.src" >static void CLONGDOUBLE_dot(char *ip1, npy_intp is1, char *ip2, npy_intp is2, > char *op, npy_intp n, void *(__NPY_UNUSED_TAGGEDignore) __attribute__ ((__unused__))) >{ > npy_longdouble tmpr = (npy_longdouble)0.0, tmpi=(npy_longdouble)0.0; > npy_intp i; > > for (i = 0; i < n; i++, ip1 += is1, ip2 += is2) { > tmpr += ((npy_longdouble *)ip1)[0] * ((npy_longdouble *)ip2)[0] > - ((npy_longdouble *)ip1)[1] * ((npy_longdouble *)ip2)[1]; > tmpi += ((npy_longdouble *)ip1)[1] * ((npy_longdouble *)ip2)[0] > + ((npy_longdouble *)ip1)[0] * ((npy_longdouble *)ip2)[1]; > } > ((npy_longdouble *)op)[0] = tmpr; ((npy_longdouble *)op)[1] = tmpi; >} > > > >static void >OBJECT_dot(char *ip1, npy_intp is1, char *ip2, npy_intp is2, char *op, npy_intp n, > void *(__NPY_UNUSED_TAGGEDignore) __attribute__ ((__unused__))) >{ > > > > > > npy_intp i; > PyObject *tmp1, *tmp2, *tmp = ((void *)0); > PyObject **tmp3; > for (i = 0; i < n; i++, ip1 += is1, ip2 += is2) { > if ((*((PyObject **)ip1) == ((void *)0)) || (*((PyObject **)ip2) == ((void *)0))) { > tmp1 = ((PyObject *) &_Py_ZeroStruct); > ( ((PyObject*)(((PyObject *) &_Py_ZeroStruct)))->ob_refcnt++); > } > else { > tmp1 = PyNumber_Multiply(*((PyObject **)ip1), *((PyObject **)ip2)); > if (!tmp1) { > do { if ((tmp) == ((void *)0)) ; else do { if ( --((PyObject*)(tmp))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(tmp)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(tmp)))); } while (0); } while (0); > return; > } > } > if (i == 0) { > tmp = tmp1; > } > else { > tmp2 = PyNumber_Add(tmp, tmp1); > do { if ((tmp) == ((void *)0)) ; else do { if ( --((PyObject*)(tmp))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(tmp)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(tmp)))); } while (0); } while (0); > do { if ((tmp1) == ((void *)0)) ; else do { if ( --((PyObject*)(tmp1))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(tmp1)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(tmp1)))); } while (0); } while (0); > if (!tmp2) { > return; > } > tmp = tmp2; > } > } > tmp3 = (PyObject**) op; > tmp2 = *tmp3; > *((PyObject **)op) = tmp; > do { if ((tmp2) == ((void *)0)) ; else do { if ( --((PyObject*)(tmp2))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(tmp2)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(tmp2)))); } while (0); } while (0); >} ># 3174 "numpy/core/src/multiarray/arraytypes.c.src" >static void >OBJECT_fill(PyObject **buffer, npy_intp length, void *(__NPY_UNUSED_TAGGEDignored) __attribute__ ((__unused__))) >{ > npy_intp i; > PyObject *start = buffer[0]; > PyObject *delta = buffer[1]; > > delta = PyNumber_Subtract(delta, start); > if (!delta) { > return; > } > start = PyNumber_Add(start, delta); > if (!start) { > goto finish; > } > buffer += 2; > > for (i = 2; i < length; i++, buffer++) { > start = PyNumber_Add(start, delta); > if (!start) { > goto finish; > } > do { if ((*buffer) == ((void *)0)) ; else do { if ( --((PyObject*)(*buffer))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(*buffer)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(*buffer)))); } while (0); } while (0); > *buffer = start; > } > >finish: > do { if ( --((PyObject*)(delta))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(delta)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(delta)))); } while (0); > return; >} ># 3214 "numpy/core/src/multiarray/arraytypes.c.src" >static void >BYTE_fill(npy_byte *buffer, npy_intp length, void *(__NPY_UNUSED_TAGGEDignored) __attribute__ ((__unused__))) >{ > npy_intp i; > npy_byte start = buffer[0]; > npy_byte delta = buffer[1]; > > delta -= start; > for (i = 2; i < length; ++i) { > buffer[i] = start + i*delta; > } >} ># 3214 "numpy/core/src/multiarray/arraytypes.c.src" >static void >UBYTE_fill(npy_ubyte *buffer, npy_intp length, void *(__NPY_UNUSED_TAGGEDignored) __attribute__ ((__unused__))) >{ > npy_intp i; > npy_ubyte start = buffer[0]; > npy_ubyte delta = buffer[1]; > > delta -= start; > for (i = 2; i < length; ++i) { > buffer[i] = start + i*delta; > } >} ># 3214 "numpy/core/src/multiarray/arraytypes.c.src" >static void >SHORT_fill(short *buffer, npy_intp length, void *(__NPY_UNUSED_TAGGEDignored) __attribute__ ((__unused__))) >{ > npy_intp i; > short start = buffer[0]; > short delta = buffer[1]; > > delta -= start; > for (i = 2; i < length; ++i) { > buffer[i] = start + i*delta; > } >} ># 3214 "numpy/core/src/multiarray/arraytypes.c.src" >static void >USHORT_fill(npy_ushort *buffer, npy_intp length, void *(__NPY_UNUSED_TAGGEDignored) __attribute__ ((__unused__))) >{ > npy_intp i; > npy_ushort start = buffer[0]; > npy_ushort delta = buffer[1]; > > delta -= start; > for (i = 2; i < length; ++i) { > buffer[i] = start + i*delta; > } >} ># 3214 "numpy/core/src/multiarray/arraytypes.c.src" >static void >INT_fill(int *buffer, npy_intp length, void *(__NPY_UNUSED_TAGGEDignored) __attribute__ ((__unused__))) >{ > npy_intp i; > int start = buffer[0]; > int delta = buffer[1]; > > delta -= start; > for (i = 2; i < length; ++i) { > buffer[i] = start + i*delta; > } >} ># 3214 "numpy/core/src/multiarray/arraytypes.c.src" >static void >UINT_fill(npy_uint *buffer, npy_intp length, void *(__NPY_UNUSED_TAGGEDignored) __attribute__ ((__unused__))) >{ > npy_intp i; > npy_uint start = buffer[0]; > npy_uint delta = buffer[1]; > > delta -= start; > for (i = 2; i < length; ++i) { > buffer[i] = start + i*delta; > } >} ># 3214 "numpy/core/src/multiarray/arraytypes.c.src" >static void >LONG_fill(long *buffer, npy_intp length, void *(__NPY_UNUSED_TAGGEDignored) __attribute__ ((__unused__))) >{ > npy_intp i; > long start = buffer[0]; > long delta = buffer[1]; > > delta -= start; > for (i = 2; i < length; ++i) { > buffer[i] = start + i*delta; > } >} ># 3214 "numpy/core/src/multiarray/arraytypes.c.src" >static void >ULONG_fill(npy_ulong *buffer, npy_intp length, void *(__NPY_UNUSED_TAGGEDignored) __attribute__ ((__unused__))) >{ > npy_intp i; > npy_ulong start = buffer[0]; > npy_ulong delta = buffer[1]; > > delta -= start; > for (i = 2; i < length; ++i) { > buffer[i] = start + i*delta; > } >} ># 3214 "numpy/core/src/multiarray/arraytypes.c.src" >static void >LONGLONG_fill(npy_longlong *buffer, npy_intp length, void *(__NPY_UNUSED_TAGGEDignored) __attribute__ ((__unused__))) >{ > npy_intp i; > npy_longlong start = buffer[0]; > npy_longlong delta = buffer[1]; > > delta -= start; > for (i = 2; i < length; ++i) { > buffer[i] = start + i*delta; > } >} ># 3214 "numpy/core/src/multiarray/arraytypes.c.src" >static void >ULONGLONG_fill(npy_ulonglong *buffer, npy_intp length, void *(__NPY_UNUSED_TAGGEDignored) __attribute__ ((__unused__))) >{ > npy_intp i; > npy_ulonglong start = buffer[0]; > npy_ulonglong delta = buffer[1]; > > delta -= start; > for (i = 2; i < length; ++i) { > buffer[i] = start + i*delta; > } >} ># 3214 "numpy/core/src/multiarray/arraytypes.c.src" >static void >FLOAT_fill(float *buffer, npy_intp length, void *(__NPY_UNUSED_TAGGEDignored) __attribute__ ((__unused__))) >{ > npy_intp i; > float start = buffer[0]; > float delta = buffer[1]; > > delta -= start; > for (i = 2; i < length; ++i) { > buffer[i] = start + i*delta; > } >} ># 3214 "numpy/core/src/multiarray/arraytypes.c.src" >static void >DOUBLE_fill(double *buffer, npy_intp length, void *(__NPY_UNUSED_TAGGEDignored) __attribute__ ((__unused__))) >{ > npy_intp i; > double start = buffer[0]; > double delta = buffer[1]; > > delta -= start; > for (i = 2; i < length; ++i) { > buffer[i] = start + i*delta; > } >} ># 3214 "numpy/core/src/multiarray/arraytypes.c.src" >static void >LONGDOUBLE_fill(npy_longdouble *buffer, npy_intp length, void *(__NPY_UNUSED_TAGGEDignored) __attribute__ ((__unused__))) >{ > npy_intp i; > npy_longdouble start = buffer[0]; > npy_longdouble delta = buffer[1]; > > delta -= start; > for (i = 2; i < length; ++i) { > buffer[i] = start + i*delta; > } >} ># 3214 "numpy/core/src/multiarray/arraytypes.c.src" >static void >DATETIME_fill(npy_datetime *buffer, npy_intp length, void *(__NPY_UNUSED_TAGGEDignored) __attribute__ ((__unused__))) >{ > npy_intp i; > npy_datetime start = buffer[0]; > npy_datetime delta = buffer[1]; > > delta -= start; > for (i = 2; i < length; ++i) { > buffer[i] = start + i*delta; > } >} ># 3214 "numpy/core/src/multiarray/arraytypes.c.src" >static void >TIMEDELTA_fill(npy_timedelta *buffer, npy_intp length, void *(__NPY_UNUSED_TAGGEDignored) __attribute__ ((__unused__))) >{ > npy_intp i; > npy_timedelta start = buffer[0]; > npy_timedelta delta = buffer[1]; > > delta -= start; > for (i = 2; i < length; ++i) { > buffer[i] = start + i*delta; > } >} > > >static void >HALF_fill(npy_half *buffer, npy_intp length, void *(__NPY_UNUSED_TAGGEDignored) __attribute__ ((__unused__))) >{ > npy_intp i; > float start = npy_half_to_float(buffer[0]); > float delta = npy_half_to_float(buffer[1]); > > delta -= start; > for (i = 2; i < length; ++i) { > buffer[i] = npy_float_to_half(start + i*delta); > } >} ># 3246 "numpy/core/src/multiarray/arraytypes.c.src" >static void >CFLOAT_fill(npy_cfloat *buffer, npy_intp length, void *(__NPY_UNUSED_TAGGEDignore) __attribute__ ((__unused__))) >{ > npy_intp i; > npy_cfloat start; > npy_cfloat delta; > > start.real = buffer->real; > start.imag = buffer->imag; > delta.real = buffer[1].real; > delta.imag = buffer[1].imag; > delta.real -= start.real; > delta.imag -= start.imag; > buffer += 2; > for (i = 2; i < length; i++, buffer++) { > buffer->real = start.real + i*delta.real; > buffer->imag = start.imag + i*delta.imag; > } >} ># 3246 "numpy/core/src/multiarray/arraytypes.c.src" >static void >CDOUBLE_fill(npy_cdouble *buffer, npy_intp length, void *(__NPY_UNUSED_TAGGEDignore) __attribute__ ((__unused__))) >{ > npy_intp i; > npy_cdouble start; > npy_cdouble delta; > > start.real = buffer->real; > start.imag = buffer->imag; > delta.real = buffer[1].real; > delta.imag = buffer[1].imag; > delta.real -= start.real; > delta.imag -= start.imag; > buffer += 2; > for (i = 2; i < length; i++, buffer++) { > buffer->real = start.real + i*delta.real; > buffer->imag = start.imag + i*delta.imag; > } >} ># 3246 "numpy/core/src/multiarray/arraytypes.c.src" >static void >CLONGDOUBLE_fill(npy_clongdouble *buffer, npy_intp length, void *(__NPY_UNUSED_TAGGEDignore) __attribute__ ((__unused__))) >{ > npy_intp i; > npy_clongdouble start; > npy_clongdouble delta; > > start.real = buffer->real; > start.imag = buffer->imag; > delta.real = buffer[1].real; > delta.imag = buffer[1].imag; > delta.real -= start.real; > delta.imag -= start.imag; > buffer += 2; > for (i = 2; i < length; i++, buffer++) { > buffer->real = start.real + i*delta.real; > buffer->imag = start.imag + i*delta.imag; > } >} > > > > >static void >OBJECT_fillwithscalar(PyObject **buffer, npy_intp length, PyObject **value, void *(__NPY_UNUSED_TAGGEDignored) __attribute__ ((__unused__))) >{ > npy_intp i; > PyObject *val = *value; > for (i = 0; i < length; i++) { > do { if ((buffer[i]) == ((void *)0)) ; else do { if ( --((PyObject*)(buffer[i]))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(buffer[i])))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(buffer[i])))); } while (0); } while (0); > do { if ((val) == ((void *)0)) ; else ( ((PyObject*)(val))->ob_refcnt++); } while (0); > buffer[i] = val; > } >} ># 3285 "numpy/core/src/multiarray/arraytypes.c.src" >static void >BOOL_fillwithscalar(npy_bool *buffer, npy_intp length, npy_bool *value, void *(__NPY_UNUSED_TAGGEDignored) __attribute__ ((__unused__))) >{ > memset(buffer, *value, length); >} ># 3285 "numpy/core/src/multiarray/arraytypes.c.src" >static void >BYTE_fillwithscalar(npy_byte *buffer, npy_intp length, npy_byte *value, void *(__NPY_UNUSED_TAGGEDignored) __attribute__ ((__unused__))) >{ > memset(buffer, *value, length); >} ># 3285 "numpy/core/src/multiarray/arraytypes.c.src" >static void >UBYTE_fillwithscalar(npy_ubyte *buffer, npy_intp length, npy_ubyte *value, void *(__NPY_UNUSED_TAGGEDignored) __attribute__ ((__unused__))) >{ > memset(buffer, *value, length); >} ># 3301 "numpy/core/src/multiarray/arraytypes.c.src" >static void >SHORT_fillwithscalar(short *buffer, npy_intp length, short *value, void *(__NPY_UNUSED_TAGGEDignored) __attribute__ ((__unused__))) >{ > npy_intp i; > short val = *value; > > for (i = 0; i < length; ++i) { > buffer[i] = val; > } >} ># 3301 "numpy/core/src/multiarray/arraytypes.c.src" >static void >USHORT_fillwithscalar(npy_ushort *buffer, npy_intp length, npy_ushort *value, void *(__NPY_UNUSED_TAGGEDignored) __attribute__ ((__unused__))) >{ > npy_intp i; > npy_ushort val = *value; > > for (i = 0; i < length; ++i) { > buffer[i] = val; > } >} ># 3301 "numpy/core/src/multiarray/arraytypes.c.src" >static void >INT_fillwithscalar(int *buffer, npy_intp length, int *value, void *(__NPY_UNUSED_TAGGEDignored) __attribute__ ((__unused__))) >{ > npy_intp i; > int val = *value; > > for (i = 0; i < length; ++i) { > buffer[i] = val; > } >} ># 3301 "numpy/core/src/multiarray/arraytypes.c.src" >static void >UINT_fillwithscalar(npy_uint *buffer, npy_intp length, npy_uint *value, void *(__NPY_UNUSED_TAGGEDignored) __attribute__ ((__unused__))) >{ > npy_intp i; > npy_uint val = *value; > > for (i = 0; i < length; ++i) { > buffer[i] = val; > } >} ># 3301 "numpy/core/src/multiarray/arraytypes.c.src" >static void >LONG_fillwithscalar(long *buffer, npy_intp length, long *value, void *(__NPY_UNUSED_TAGGEDignored) __attribute__ ((__unused__))) >{ > npy_intp i; > long val = *value; > > for (i = 0; i < length; ++i) { > buffer[i] = val; > } >} ># 3301 "numpy/core/src/multiarray/arraytypes.c.src" >static void >ULONG_fillwithscalar(npy_ulong *buffer, npy_intp length, npy_ulong *value, void *(__NPY_UNUSED_TAGGEDignored) __attribute__ ((__unused__))) >{ > npy_intp i; > npy_ulong val = *value; > > for (i = 0; i < length; ++i) { > buffer[i] = val; > } >} ># 3301 "numpy/core/src/multiarray/arraytypes.c.src" >static void >LONGLONG_fillwithscalar(npy_longlong *buffer, npy_intp length, npy_longlong *value, void *(__NPY_UNUSED_TAGGEDignored) __attribute__ ((__unused__))) >{ > npy_intp i; > npy_longlong val = *value; > > for (i = 0; i < length; ++i) { > buffer[i] = val; > } >} ># 3301 "numpy/core/src/multiarray/arraytypes.c.src" >static void >ULONGLONG_fillwithscalar(npy_ulonglong *buffer, npy_intp length, npy_ulonglong *value, void *(__NPY_UNUSED_TAGGEDignored) __attribute__ ((__unused__))) >{ > npy_intp i; > npy_ulonglong val = *value; > > for (i = 0; i < length; ++i) { > buffer[i] = val; > } >} ># 3301 "numpy/core/src/multiarray/arraytypes.c.src" >static void >HALF_fillwithscalar(npy_half *buffer, npy_intp length, npy_half *value, void *(__NPY_UNUSED_TAGGEDignored) __attribute__ ((__unused__))) >{ > npy_intp i; > npy_half val = *value; > > for (i = 0; i < length; ++i) { > buffer[i] = val; > } >} ># 3301 "numpy/core/src/multiarray/arraytypes.c.src" >static void >FLOAT_fillwithscalar(float *buffer, npy_intp length, float *value, void *(__NPY_UNUSED_TAGGEDignored) __attribute__ ((__unused__))) >{ > npy_intp i; > float val = *value; > > for (i = 0; i < length; ++i) { > buffer[i] = val; > } >} ># 3301 "numpy/core/src/multiarray/arraytypes.c.src" >static void >DOUBLE_fillwithscalar(double *buffer, npy_intp length, double *value, void *(__NPY_UNUSED_TAGGEDignored) __attribute__ ((__unused__))) >{ > npy_intp i; > double val = *value; > > for (i = 0; i < length; ++i) { > buffer[i] = val; > } >} ># 3301 "numpy/core/src/multiarray/arraytypes.c.src" >static void >LONGDOUBLE_fillwithscalar(npy_longdouble *buffer, npy_intp length, npy_longdouble *value, void *(__NPY_UNUSED_TAGGEDignored) __attribute__ ((__unused__))) >{ > npy_intp i; > npy_longdouble val = *value; > > for (i = 0; i < length; ++i) { > buffer[i] = val; > } >} ># 3301 "numpy/core/src/multiarray/arraytypes.c.src" >static void >CFLOAT_fillwithscalar(npy_cfloat *buffer, npy_intp length, npy_cfloat *value, void *(__NPY_UNUSED_TAGGEDignored) __attribute__ ((__unused__))) >{ > npy_intp i; > npy_cfloat val = *value; > > for (i = 0; i < length; ++i) { > buffer[i] = val; > } >} ># 3301 "numpy/core/src/multiarray/arraytypes.c.src" >static void >CDOUBLE_fillwithscalar(npy_cdouble *buffer, npy_intp length, npy_cdouble *value, void *(__NPY_UNUSED_TAGGEDignored) __attribute__ ((__unused__))) >{ > npy_intp i; > npy_cdouble val = *value; > > for (i = 0; i < length; ++i) { > buffer[i] = val; > } >} ># 3301 "numpy/core/src/multiarray/arraytypes.c.src" >static void >CLONGDOUBLE_fillwithscalar(npy_clongdouble *buffer, npy_intp length, npy_clongdouble *value, void *(__NPY_UNUSED_TAGGEDignored) __attribute__ ((__unused__))) >{ > npy_intp i; > npy_clongdouble val = *value; > > for (i = 0; i < length; ++i) { > buffer[i] = val; > } >} ># 3301 "numpy/core/src/multiarray/arraytypes.c.src" >static void >DATETIME_fillwithscalar(npy_datetime *buffer, npy_intp length, npy_datetime *value, void *(__NPY_UNUSED_TAGGEDignored) __attribute__ ((__unused__))) >{ > npy_intp i; > npy_datetime val = *value; > > for (i = 0; i < length; ++i) { > buffer[i] = val; > } >} ># 3301 "numpy/core/src/multiarray/arraytypes.c.src" >static void >TIMEDELTA_fillwithscalar(npy_timedelta *buffer, npy_intp length, npy_timedelta *value, void *(__NPY_UNUSED_TAGGEDignored) __attribute__ ((__unused__))) >{ > npy_intp i; > npy_timedelta val = *value; > > for (i = 0; i < length; ++i) { > buffer[i] = val; > } >} ># 3342 "numpy/core/src/multiarray/arraytypes.c.src" >static void >BOOL_fastclip(npy_bool *in, npy_intp ni, npy_bool *min, npy_bool *max, npy_bool *out) >{ > npy_intp i; > npy_bool max_val = 0, min_val = 0; > > if (max != ((void *)0)) { > max_val = *max; ># 3359 "numpy/core/src/multiarray/arraytypes.c.src" > } > if (min != ((void *)0)) { > min_val = *min; ># 3370 "numpy/core/src/multiarray/arraytypes.c.src" > } > if (max == ((void *)0)) { > for (i = 0; i < ni; i++) { > if (((in[i]) < (min_val))) { > out[i] = min_val; > } > } > } > else if (min == ((void *)0)) { > for (i = 0; i < ni; i++) { > if (((in[i]) > (max_val))) { > out[i] = max_val; > } > } > } > else { > for (i = 0; i < ni; i++) { > if (((in[i]) < (min_val))) { > out[i] = min_val; > } > else if (((in[i]) > (max_val))) { > out[i] = max_val; > } > } > } >} ># 3342 "numpy/core/src/multiarray/arraytypes.c.src" >static void >BYTE_fastclip(npy_byte *in, npy_intp ni, npy_byte *min, npy_byte *max, npy_byte *out) >{ > npy_intp i; > npy_byte max_val = 0, min_val = 0; > > if (max != ((void *)0)) { > max_val = *max; ># 3359 "numpy/core/src/multiarray/arraytypes.c.src" > } > if (min != ((void *)0)) { > min_val = *min; ># 3370 "numpy/core/src/multiarray/arraytypes.c.src" > } > if (max == ((void *)0)) { > for (i = 0; i < ni; i++) { > if (((in[i]) < (min_val))) { > out[i] = min_val; > } > } > } > else if (min == ((void *)0)) { > for (i = 0; i < ni; i++) { > if (((in[i]) > (max_val))) { > out[i] = max_val; > } > } > } > else { > for (i = 0; i < ni; i++) { > if (((in[i]) < (min_val))) { > out[i] = min_val; > } > else if (((in[i]) > (max_val))) { > out[i] = max_val; > } > } > } >} ># 3342 "numpy/core/src/multiarray/arraytypes.c.src" >static void >UBYTE_fastclip(npy_ubyte *in, npy_intp ni, npy_ubyte *min, npy_ubyte *max, npy_ubyte *out) >{ > npy_intp i; > npy_ubyte max_val = 0, min_val = 0; > > if (max != ((void *)0)) { > max_val = *max; ># 3359 "numpy/core/src/multiarray/arraytypes.c.src" > } > if (min != ((void *)0)) { > min_val = *min; ># 3370 "numpy/core/src/multiarray/arraytypes.c.src" > } > if (max == ((void *)0)) { > for (i = 0; i < ni; i++) { > if (((in[i]) < (min_val))) { > out[i] = min_val; > } > } > } > else if (min == ((void *)0)) { > for (i = 0; i < ni; i++) { > if (((in[i]) > (max_val))) { > out[i] = max_val; > } > } > } > else { > for (i = 0; i < ni; i++) { > if (((in[i]) < (min_val))) { > out[i] = min_val; > } > else if (((in[i]) > (max_val))) { > out[i] = max_val; > } > } > } >} ># 3342 "numpy/core/src/multiarray/arraytypes.c.src" >static void >SHORT_fastclip(short *in, npy_intp ni, short *min, short *max, short *out) >{ > npy_intp i; > short max_val = 0, min_val = 0; > > if (max != ((void *)0)) { > max_val = *max; ># 3359 "numpy/core/src/multiarray/arraytypes.c.src" > } > if (min != ((void *)0)) { > min_val = *min; ># 3370 "numpy/core/src/multiarray/arraytypes.c.src" > } > if (max == ((void *)0)) { > for (i = 0; i < ni; i++) { > if (((in[i]) < (min_val))) { > out[i] = min_val; > } > } > } > else if (min == ((void *)0)) { > for (i = 0; i < ni; i++) { > if (((in[i]) > (max_val))) { > out[i] = max_val; > } > } > } > else { > for (i = 0; i < ni; i++) { > if (((in[i]) < (min_val))) { > out[i] = min_val; > } > else if (((in[i]) > (max_val))) { > out[i] = max_val; > } > } > } >} ># 3342 "numpy/core/src/multiarray/arraytypes.c.src" >static void >USHORT_fastclip(npy_ushort *in, npy_intp ni, npy_ushort *min, npy_ushort *max, npy_ushort *out) >{ > npy_intp i; > npy_ushort max_val = 0, min_val = 0; > > if (max != ((void *)0)) { > max_val = *max; ># 3359 "numpy/core/src/multiarray/arraytypes.c.src" > } > if (min != ((void *)0)) { > min_val = *min; ># 3370 "numpy/core/src/multiarray/arraytypes.c.src" > } > if (max == ((void *)0)) { > for (i = 0; i < ni; i++) { > if (((in[i]) < (min_val))) { > out[i] = min_val; > } > } > } > else if (min == ((void *)0)) { > for (i = 0; i < ni; i++) { > if (((in[i]) > (max_val))) { > out[i] = max_val; > } > } > } > else { > for (i = 0; i < ni; i++) { > if (((in[i]) < (min_val))) { > out[i] = min_val; > } > else if (((in[i]) > (max_val))) { > out[i] = max_val; > } > } > } >} ># 3342 "numpy/core/src/multiarray/arraytypes.c.src" >static void >INT_fastclip(int *in, npy_intp ni, int *min, int *max, int *out) >{ > npy_intp i; > int max_val = 0, min_val = 0; > > if (max != ((void *)0)) { > max_val = *max; ># 3359 "numpy/core/src/multiarray/arraytypes.c.src" > } > if (min != ((void *)0)) { > min_val = *min; ># 3370 "numpy/core/src/multiarray/arraytypes.c.src" > } > if (max == ((void *)0)) { > for (i = 0; i < ni; i++) { > if (((in[i]) < (min_val))) { > out[i] = min_val; > } > } > } > else if (min == ((void *)0)) { > for (i = 0; i < ni; i++) { > if (((in[i]) > (max_val))) { > out[i] = max_val; > } > } > } > else { > for (i = 0; i < ni; i++) { > if (((in[i]) < (min_val))) { > out[i] = min_val; > } > else if (((in[i]) > (max_val))) { > out[i] = max_val; > } > } > } >} ># 3342 "numpy/core/src/multiarray/arraytypes.c.src" >static void >UINT_fastclip(npy_uint *in, npy_intp ni, npy_uint *min, npy_uint *max, npy_uint *out) >{ > npy_intp i; > npy_uint max_val = 0, min_val = 0; > > if (max != ((void *)0)) { > max_val = *max; ># 3359 "numpy/core/src/multiarray/arraytypes.c.src" > } > if (min != ((void *)0)) { > min_val = *min; ># 3370 "numpy/core/src/multiarray/arraytypes.c.src" > } > if (max == ((void *)0)) { > for (i = 0; i < ni; i++) { > if (((in[i]) < (min_val))) { > out[i] = min_val; > } > } > } > else if (min == ((void *)0)) { > for (i = 0; i < ni; i++) { > if (((in[i]) > (max_val))) { > out[i] = max_val; > } > } > } > else { > for (i = 0; i < ni; i++) { > if (((in[i]) < (min_val))) { > out[i] = min_val; > } > else if (((in[i]) > (max_val))) { > out[i] = max_val; > } > } > } >} ># 3342 "numpy/core/src/multiarray/arraytypes.c.src" >static void >LONG_fastclip(long *in, npy_intp ni, long *min, long *max, long *out) >{ > npy_intp i; > long max_val = 0, min_val = 0; > > if (max != ((void *)0)) { > max_val = *max; ># 3359 "numpy/core/src/multiarray/arraytypes.c.src" > } > if (min != ((void *)0)) { > min_val = *min; ># 3370 "numpy/core/src/multiarray/arraytypes.c.src" > } > if (max == ((void *)0)) { > for (i = 0; i < ni; i++) { > if (((in[i]) < (min_val))) { > out[i] = min_val; > } > } > } > else if (min == ((void *)0)) { > for (i = 0; i < ni; i++) { > if (((in[i]) > (max_val))) { > out[i] = max_val; > } > } > } > else { > for (i = 0; i < ni; i++) { > if (((in[i]) < (min_val))) { > out[i] = min_val; > } > else if (((in[i]) > (max_val))) { > out[i] = max_val; > } > } > } >} ># 3342 "numpy/core/src/multiarray/arraytypes.c.src" >static void >ULONG_fastclip(npy_ulong *in, npy_intp ni, npy_ulong *min, npy_ulong *max, npy_ulong *out) >{ > npy_intp i; > npy_ulong max_val = 0, min_val = 0; > > if (max != ((void *)0)) { > max_val = *max; ># 3359 "numpy/core/src/multiarray/arraytypes.c.src" > } > if (min != ((void *)0)) { > min_val = *min; ># 3370 "numpy/core/src/multiarray/arraytypes.c.src" > } > if (max == ((void *)0)) { > for (i = 0; i < ni; i++) { > if (((in[i]) < (min_val))) { > out[i] = min_val; > } > } > } > else if (min == ((void *)0)) { > for (i = 0; i < ni; i++) { > if (((in[i]) > (max_val))) { > out[i] = max_val; > } > } > } > else { > for (i = 0; i < ni; i++) { > if (((in[i]) < (min_val))) { > out[i] = min_val; > } > else if (((in[i]) > (max_val))) { > out[i] = max_val; > } > } > } >} ># 3342 "numpy/core/src/multiarray/arraytypes.c.src" >static void >LONGLONG_fastclip(npy_longlong *in, npy_intp ni, npy_longlong *min, npy_longlong *max, npy_longlong *out) >{ > npy_intp i; > npy_longlong max_val = 0, min_val = 0; > > if (max != ((void *)0)) { > max_val = *max; ># 3359 "numpy/core/src/multiarray/arraytypes.c.src" > } > if (min != ((void *)0)) { > min_val = *min; ># 3370 "numpy/core/src/multiarray/arraytypes.c.src" > } > if (max == ((void *)0)) { > for (i = 0; i < ni; i++) { > if (((in[i]) < (min_val))) { > out[i] = min_val; > } > } > } > else if (min == ((void *)0)) { > for (i = 0; i < ni; i++) { > if (((in[i]) > (max_val))) { > out[i] = max_val; > } > } > } > else { > for (i = 0; i < ni; i++) { > if (((in[i]) < (min_val))) { > out[i] = min_val; > } > else if (((in[i]) > (max_val))) { > out[i] = max_val; > } > } > } >} ># 3342 "numpy/core/src/multiarray/arraytypes.c.src" >static void >ULONGLONG_fastclip(npy_ulonglong *in, npy_intp ni, npy_ulonglong *min, npy_ulonglong *max, npy_ulonglong *out) >{ > npy_intp i; > npy_ulonglong max_val = 0, min_val = 0; > > if (max != ((void *)0)) { > max_val = *max; ># 3359 "numpy/core/src/multiarray/arraytypes.c.src" > } > if (min != ((void *)0)) { > min_val = *min; ># 3370 "numpy/core/src/multiarray/arraytypes.c.src" > } > if (max == ((void *)0)) { > for (i = 0; i < ni; i++) { > if (((in[i]) < (min_val))) { > out[i] = min_val; > } > } > } > else if (min == ((void *)0)) { > for (i = 0; i < ni; i++) { > if (((in[i]) > (max_val))) { > out[i] = max_val; > } > } > } > else { > for (i = 0; i < ni; i++) { > if (((in[i]) < (min_val))) { > out[i] = min_val; > } > else if (((in[i]) > (max_val))) { > out[i] = max_val; > } > } > } >} ># 3342 "numpy/core/src/multiarray/arraytypes.c.src" >static void >HALF_fastclip(npy_half *in, npy_intp ni, npy_half *min, npy_half *max, npy_half *out) >{ > npy_intp i; > npy_half max_val = 0, min_val = 0; > > if (max != ((void *)0)) { > max_val = *max; > > > if (npy_half_isnan(max_val)) { > if (min == ((void *)0)) { > return; > } > max = ((void *)0); > } > > } > if (min != ((void *)0)) { > min_val = *min; > > if (npy_half_isnan(min_val)) { > if (max == ((void *)0)) { > return; > } > min = ((void *)0); > } > > } > if (max == ((void *)0)) { > for (i = 0; i < ni; i++) { > if ((!npy_half_isnan(in[i]) && npy_half_lt_nonan(in[i], min_val))) { > out[i] = min_val; > } > } > } > else if (min == ((void *)0)) { > for (i = 0; i < ni; i++) { > if ((!npy_half_isnan(in[i]) && npy_half_lt_nonan(max_val, in[i]))) { > out[i] = max_val; > } > } > } > else { > for (i = 0; i < ni; i++) { > if ((!npy_half_isnan(in[i]) && npy_half_lt_nonan(in[i], min_val))) { > out[i] = min_val; > } > else if ((!npy_half_isnan(in[i]) && npy_half_lt_nonan(max_val, in[i]))) { > out[i] = max_val; > } > } > } >} ># 3342 "numpy/core/src/multiarray/arraytypes.c.src" >static void >FLOAT_fastclip(float *in, npy_intp ni, float *min, float *max, float *out) >{ > npy_intp i; > float max_val = 0, min_val = 0; > > if (max != ((void *)0)) { > max_val = *max; > > > if ((sizeof ((max_val)) == sizeof (float) ? __isnanf ((max_val)) : sizeof ((max_val)) == sizeof (double) ? __isnan ((max_val)) : __isnanl ((max_val)))) { > if (min == ((void *)0)) { > return; > } > max = ((void *)0); > } > > } > if (min != ((void *)0)) { > min_val = *min; > > if ((sizeof ((min_val)) == sizeof (float) ? __isnanf ((min_val)) : sizeof ((min_val)) == sizeof (double) ? __isnan ((min_val)) : __isnanl ((min_val)))) { > if (max == ((void *)0)) { > return; > } > min = ((void *)0); > } > > } > if (max == ((void *)0)) { > for (i = 0; i < ni; i++) { > if (((in[i]) < (min_val))) { > out[i] = min_val; > } > } > } > else if (min == ((void *)0)) { > for (i = 0; i < ni; i++) { > if (((in[i]) > (max_val))) { > out[i] = max_val; > } > } > } > else { > for (i = 0; i < ni; i++) { > if (((in[i]) < (min_val))) { > out[i] = min_val; > } > else if (((in[i]) > (max_val))) { > out[i] = max_val; > } > } > } >} ># 3342 "numpy/core/src/multiarray/arraytypes.c.src" >static void >DOUBLE_fastclip(double *in, npy_intp ni, double *min, double *max, double *out) >{ > npy_intp i; > double max_val = 0, min_val = 0; > > if (max != ((void *)0)) { > max_val = *max; > > > if ((sizeof ((max_val)) == sizeof (float) ? __isnanf ((max_val)) : sizeof ((max_val)) == sizeof (double) ? __isnan ((max_val)) : __isnanl ((max_val)))) { > if (min == ((void *)0)) { > return; > } > max = ((void *)0); > } > > } > if (min != ((void *)0)) { > min_val = *min; > > if ((sizeof ((min_val)) == sizeof (float) ? __isnanf ((min_val)) : sizeof ((min_val)) == sizeof (double) ? __isnan ((min_val)) : __isnanl ((min_val)))) { > if (max == ((void *)0)) { > return; > } > min = ((void *)0); > } > > } > if (max == ((void *)0)) { > for (i = 0; i < ni; i++) { > if (((in[i]) < (min_val))) { > out[i] = min_val; > } > } > } > else if (min == ((void *)0)) { > for (i = 0; i < ni; i++) { > if (((in[i]) > (max_val))) { > out[i] = max_val; > } > } > } > else { > for (i = 0; i < ni; i++) { > if (((in[i]) < (min_val))) { > out[i] = min_val; > } > else if (((in[i]) > (max_val))) { > out[i] = max_val; > } > } > } >} ># 3342 "numpy/core/src/multiarray/arraytypes.c.src" >static void >LONGDOUBLE_fastclip(npy_longdouble *in, npy_intp ni, npy_longdouble *min, npy_longdouble *max, npy_longdouble *out) >{ > npy_intp i; > npy_longdouble max_val = 0, min_val = 0; > > if (max != ((void *)0)) { > max_val = *max; > > > if ((sizeof ((max_val)) == sizeof (float) ? __isnanf ((max_val)) : sizeof ((max_val)) == sizeof (double) ? __isnan ((max_val)) : __isnanl ((max_val)))) { > if (min == ((void *)0)) { > return; > } > max = ((void *)0); > } > > } > if (min != ((void *)0)) { > min_val = *min; > > if ((sizeof ((min_val)) == sizeof (float) ? __isnanf ((min_val)) : sizeof ((min_val)) == sizeof (double) ? __isnan ((min_val)) : __isnanl ((min_val)))) { > if (max == ((void *)0)) { > return; > } > min = ((void *)0); > } > > } > if (max == ((void *)0)) { > for (i = 0; i < ni; i++) { > if (((in[i]) < (min_val))) { > out[i] = min_val; > } > } > } > else if (min == ((void *)0)) { > for (i = 0; i < ni; i++) { > if (((in[i]) > (max_val))) { > out[i] = max_val; > } > } > } > else { > for (i = 0; i < ni; i++) { > if (((in[i]) < (min_val))) { > out[i] = min_val; > } > else if (((in[i]) > (max_val))) { > out[i] = max_val; > } > } > } >} ># 3342 "numpy/core/src/multiarray/arraytypes.c.src" >static void >DATETIME_fastclip(npy_datetime *in, npy_intp ni, npy_datetime *min, npy_datetime *max, npy_datetime *out) >{ > npy_intp i; > npy_datetime max_val = 0, min_val = 0; > > if (max != ((void *)0)) { > max_val = *max; ># 3359 "numpy/core/src/multiarray/arraytypes.c.src" > } > if (min != ((void *)0)) { > min_val = *min; ># 3370 "numpy/core/src/multiarray/arraytypes.c.src" > } > if (max == ((void *)0)) { > for (i = 0; i < ni; i++) { > if (((in[i]) < (min_val))) { > out[i] = min_val; > } > } > } > else if (min == ((void *)0)) { > for (i = 0; i < ni; i++) { > if (((in[i]) > (max_val))) { > out[i] = max_val; > } > } > } > else { > for (i = 0; i < ni; i++) { > if (((in[i]) < (min_val))) { > out[i] = min_val; > } > else if (((in[i]) > (max_val))) { > out[i] = max_val; > } > } > } >} ># 3342 "numpy/core/src/multiarray/arraytypes.c.src" >static void >TIMEDELTA_fastclip(npy_timedelta *in, npy_intp ni, npy_timedelta *min, npy_timedelta *max, npy_timedelta *out) >{ > npy_intp i; > npy_timedelta max_val = 0, min_val = 0; > > if (max != ((void *)0)) { > max_val = *max; ># 3359 "numpy/core/src/multiarray/arraytypes.c.src" > } > if (min != ((void *)0)) { > min_val = *min; ># 3370 "numpy/core/src/multiarray/arraytypes.c.src" > } > if (max == ((void *)0)) { > for (i = 0; i < ni; i++) { > if (((in[i]) < (min_val))) { > out[i] = min_val; > } > } > } > else if (min == ((void *)0)) { > for (i = 0; i < ni; i++) { > if (((in[i]) > (max_val))) { > out[i] = max_val; > } > } > } > else { > for (i = 0; i < ni; i++) { > if (((in[i]) < (min_val))) { > out[i] = min_val; > } > else if (((in[i]) > (max_val))) { > out[i] = max_val; > } > } > } >} ># 3408 "numpy/core/src/multiarray/arraytypes.c.src" >static void >CFLOAT_fastclip(npy_cfloat *in, npy_intp ni, npy_cfloat *min, npy_cfloat *max, npy_cfloat *out) >{ > npy_intp i; > npy_cfloat max_val, min_val; > > min_val = *min; > max_val = *max; > if (max != ((void *)0)) { > max_val = *max; > } > if (min != ((void *)0)) { > min_val = *min; > } > if (max == ((void *)0)) { > for (i = 0; i < ni; i++) { > if (((((in[i]).real==(min_val).real) ? ((in[i]).imag < (min_val).imag) : ((in[i]).real < (min_val).real)))) { > out[i] = min_val; > } > } > } > else if (min == ((void *)0)) { > for (i = 0; i < ni; i++) { > if (((((in[i]).real==(max_val).real) ? ((in[i]).imag > (max_val).imag) : ((in[i]).real > (max_val).real)))) { > out[i] = max_val; > } > } > } > else { > for (i = 0; i < ni; i++) { > if (((((in[i]).real==(min_val).real) ? ((in[i]).imag < (min_val).imag) : ((in[i]).real < (min_val).real)))) { > out[i] = min_val; > } > else if (((((in[i]).real==(max_val).real) ? ((in[i]).imag > (max_val).imag) : ((in[i]).real > (max_val).real)))) { > out[i] = max_val; > } > } > } >} ># 3408 "numpy/core/src/multiarray/arraytypes.c.src" >static void >CDOUBLE_fastclip(npy_cdouble *in, npy_intp ni, npy_cdouble *min, npy_cdouble *max, npy_cdouble *out) >{ > npy_intp i; > npy_cdouble max_val, min_val; > > min_val = *min; > max_val = *max; > if (max != ((void *)0)) { > max_val = *max; > } > if (min != ((void *)0)) { > min_val = *min; > } > if (max == ((void *)0)) { > for (i = 0; i < ni; i++) { > if (((((in[i]).real==(min_val).real) ? ((in[i]).imag < (min_val).imag) : ((in[i]).real < (min_val).real)))) { > out[i] = min_val; > } > } > } > else if (min == ((void *)0)) { > for (i = 0; i < ni; i++) { > if (((((in[i]).real==(max_val).real) ? ((in[i]).imag > (max_val).imag) : ((in[i]).real > (max_val).real)))) { > out[i] = max_val; > } > } > } > else { > for (i = 0; i < ni; i++) { > if (((((in[i]).real==(min_val).real) ? ((in[i]).imag < (min_val).imag) : ((in[i]).real < (min_val).real)))) { > out[i] = min_val; > } > else if (((((in[i]).real==(max_val).real) ? ((in[i]).imag > (max_val).imag) : ((in[i]).real > (max_val).real)))) { > out[i] = max_val; > } > } > } >} ># 3408 "numpy/core/src/multiarray/arraytypes.c.src" >static void >CLONGDOUBLE_fastclip(npy_clongdouble *in, npy_intp ni, npy_clongdouble *min, npy_clongdouble *max, npy_clongdouble *out) >{ > npy_intp i; > npy_clongdouble max_val, min_val; > > min_val = *min; > max_val = *max; > if (max != ((void *)0)) { > max_val = *max; > } > if (min != ((void *)0)) { > min_val = *min; > } > if (max == ((void *)0)) { > for (i = 0; i < ni; i++) { > if (((((in[i]).real==(min_val).real) ? ((in[i]).imag < (min_val).imag) : ((in[i]).real < (min_val).real)))) { > out[i] = min_val; > } > } > } > else if (min == ((void *)0)) { > for (i = 0; i < ni; i++) { > if (((((in[i]).real==(max_val).real) ? ((in[i]).imag > (max_val).imag) : ((in[i]).real > (max_val).real)))) { > out[i] = max_val; > } > } > } > else { > for (i = 0; i < ni; i++) { > if (((((in[i]).real==(min_val).real) ? ((in[i]).imag < (min_val).imag) : ((in[i]).real < (min_val).real)))) { > out[i] = min_val; > } > else if (((((in[i]).real==(max_val).real) ? ((in[i]).imag > (max_val).imag) : ((in[i]).real > (max_val).real)))) { > out[i] = max_val; > } > } > } >} ># 3469 "numpy/core/src/multiarray/arraytypes.c.src" >static void >BOOL_fastputmask(npy_bool *in, npy_bool *mask, npy_intp ni, npy_bool *vals, npy_intp nv) >{ > npy_intp i; > npy_bool s_val; > > if (nv == 1) { > s_val = *vals; > for (i = 0; i < ni; i++) { > if (mask[i]) { > in[i] = s_val; > } > } > } > else { > for (i = 0; i < ni; i++) { > if (mask[i]) { > in[i] = vals[i%nv]; > } > } > } > return; >} ># 3469 "numpy/core/src/multiarray/arraytypes.c.src" >static void >BYTE_fastputmask(npy_byte *in, npy_bool *mask, npy_intp ni, npy_byte *vals, npy_intp nv) >{ > npy_intp i; > npy_byte s_val; > > if (nv == 1) { > s_val = *vals; > for (i = 0; i < ni; i++) { > if (mask[i]) { > in[i] = s_val; > } > } > } > else { > for (i = 0; i < ni; i++) { > if (mask[i]) { > in[i] = vals[i%nv]; > } > } > } > return; >} ># 3469 "numpy/core/src/multiarray/arraytypes.c.src" >static void >UBYTE_fastputmask(npy_ubyte *in, npy_bool *mask, npy_intp ni, npy_ubyte *vals, npy_intp nv) >{ > npy_intp i; > npy_ubyte s_val; > > if (nv == 1) { > s_val = *vals; > for (i = 0; i < ni; i++) { > if (mask[i]) { > in[i] = s_val; > } > } > } > else { > for (i = 0; i < ni; i++) { > if (mask[i]) { > in[i] = vals[i%nv]; > } > } > } > return; >} ># 3469 "numpy/core/src/multiarray/arraytypes.c.src" >static void >SHORT_fastputmask(short *in, npy_bool *mask, npy_intp ni, short *vals, npy_intp nv) >{ > npy_intp i; > short s_val; > > if (nv == 1) { > s_val = *vals; > for (i = 0; i < ni; i++) { > if (mask[i]) { > in[i] = s_val; > } > } > } > else { > for (i = 0; i < ni; i++) { > if (mask[i]) { > in[i] = vals[i%nv]; > } > } > } > return; >} ># 3469 "numpy/core/src/multiarray/arraytypes.c.src" >static void >USHORT_fastputmask(npy_ushort *in, npy_bool *mask, npy_intp ni, npy_ushort *vals, npy_intp nv) >{ > npy_intp i; > npy_ushort s_val; > > if (nv == 1) { > s_val = *vals; > for (i = 0; i < ni; i++) { > if (mask[i]) { > in[i] = s_val; > } > } > } > else { > for (i = 0; i < ni; i++) { > if (mask[i]) { > in[i] = vals[i%nv]; > } > } > } > return; >} ># 3469 "numpy/core/src/multiarray/arraytypes.c.src" >static void >INT_fastputmask(int *in, npy_bool *mask, npy_intp ni, int *vals, npy_intp nv) >{ > npy_intp i; > int s_val; > > if (nv == 1) { > s_val = *vals; > for (i = 0; i < ni; i++) { > if (mask[i]) { > in[i] = s_val; > } > } > } > else { > for (i = 0; i < ni; i++) { > if (mask[i]) { > in[i] = vals[i%nv]; > } > } > } > return; >} ># 3469 "numpy/core/src/multiarray/arraytypes.c.src" >static void >UINT_fastputmask(npy_uint *in, npy_bool *mask, npy_intp ni, npy_uint *vals, npy_intp nv) >{ > npy_intp i; > npy_uint s_val; > > if (nv == 1) { > s_val = *vals; > for (i = 0; i < ni; i++) { > if (mask[i]) { > in[i] = s_val; > } > } > } > else { > for (i = 0; i < ni; i++) { > if (mask[i]) { > in[i] = vals[i%nv]; > } > } > } > return; >} ># 3469 "numpy/core/src/multiarray/arraytypes.c.src" >static void >LONG_fastputmask(long *in, npy_bool *mask, npy_intp ni, long *vals, npy_intp nv) >{ > npy_intp i; > long s_val; > > if (nv == 1) { > s_val = *vals; > for (i = 0; i < ni; i++) { > if (mask[i]) { > in[i] = s_val; > } > } > } > else { > for (i = 0; i < ni; i++) { > if (mask[i]) { > in[i] = vals[i%nv]; > } > } > } > return; >} ># 3469 "numpy/core/src/multiarray/arraytypes.c.src" >static void >ULONG_fastputmask(npy_ulong *in, npy_bool *mask, npy_intp ni, npy_ulong *vals, npy_intp nv) >{ > npy_intp i; > npy_ulong s_val; > > if (nv == 1) { > s_val = *vals; > for (i = 0; i < ni; i++) { > if (mask[i]) { > in[i] = s_val; > } > } > } > else { > for (i = 0; i < ni; i++) { > if (mask[i]) { > in[i] = vals[i%nv]; > } > } > } > return; >} ># 3469 "numpy/core/src/multiarray/arraytypes.c.src" >static void >LONGLONG_fastputmask(npy_longlong *in, npy_bool *mask, npy_intp ni, npy_longlong *vals, npy_intp nv) >{ > npy_intp i; > npy_longlong s_val; > > if (nv == 1) { > s_val = *vals; > for (i = 0; i < ni; i++) { > if (mask[i]) { > in[i] = s_val; > } > } > } > else { > for (i = 0; i < ni; i++) { > if (mask[i]) { > in[i] = vals[i%nv]; > } > } > } > return; >} ># 3469 "numpy/core/src/multiarray/arraytypes.c.src" >static void >ULONGLONG_fastputmask(npy_ulonglong *in, npy_bool *mask, npy_intp ni, npy_ulonglong *vals, npy_intp nv) >{ > npy_intp i; > npy_ulonglong s_val; > > if (nv == 1) { > s_val = *vals; > for (i = 0; i < ni; i++) { > if (mask[i]) { > in[i] = s_val; > } > } > } > else { > for (i = 0; i < ni; i++) { > if (mask[i]) { > in[i] = vals[i%nv]; > } > } > } > return; >} ># 3469 "numpy/core/src/multiarray/arraytypes.c.src" >static void >HALF_fastputmask(npy_half *in, npy_bool *mask, npy_intp ni, npy_half *vals, npy_intp nv) >{ > npy_intp i; > npy_half s_val; > > if (nv == 1) { > s_val = *vals; > for (i = 0; i < ni; i++) { > if (mask[i]) { > in[i] = s_val; > } > } > } > else { > for (i = 0; i < ni; i++) { > if (mask[i]) { > in[i] = vals[i%nv]; > } > } > } > return; >} ># 3469 "numpy/core/src/multiarray/arraytypes.c.src" >static void >FLOAT_fastputmask(float *in, npy_bool *mask, npy_intp ni, float *vals, npy_intp nv) >{ > npy_intp i; > float s_val; > > if (nv == 1) { > s_val = *vals; > for (i = 0; i < ni; i++) { > if (mask[i]) { > in[i] = s_val; > } > } > } > else { > for (i = 0; i < ni; i++) { > if (mask[i]) { > in[i] = vals[i%nv]; > } > } > } > return; >} ># 3469 "numpy/core/src/multiarray/arraytypes.c.src" >static void >DOUBLE_fastputmask(double *in, npy_bool *mask, npy_intp ni, double *vals, npy_intp nv) >{ > npy_intp i; > double s_val; > > if (nv == 1) { > s_val = *vals; > for (i = 0; i < ni; i++) { > if (mask[i]) { > in[i] = s_val; > } > } > } > else { > for (i = 0; i < ni; i++) { > if (mask[i]) { > in[i] = vals[i%nv]; > } > } > } > return; >} ># 3469 "numpy/core/src/multiarray/arraytypes.c.src" >static void >LONGDOUBLE_fastputmask(npy_longdouble *in, npy_bool *mask, npy_intp ni, npy_longdouble *vals, npy_intp nv) >{ > npy_intp i; > npy_longdouble s_val; > > if (nv == 1) { > s_val = *vals; > for (i = 0; i < ni; i++) { > if (mask[i]) { > in[i] = s_val; > } > } > } > else { > for (i = 0; i < ni; i++) { > if (mask[i]) { > in[i] = vals[i%nv]; > } > } > } > return; >} ># 3469 "numpy/core/src/multiarray/arraytypes.c.src" >static void >CFLOAT_fastputmask(npy_cfloat *in, npy_bool *mask, npy_intp ni, npy_cfloat *vals, npy_intp nv) >{ > npy_intp i; > npy_cfloat s_val; > > if (nv == 1) { > s_val = *vals; > for (i = 0; i < ni; i++) { > if (mask[i]) { > in[i] = s_val; > } > } > } > else { > for (i = 0; i < ni; i++) { > if (mask[i]) { > in[i] = vals[i%nv]; > } > } > } > return; >} ># 3469 "numpy/core/src/multiarray/arraytypes.c.src" >static void >CDOUBLE_fastputmask(npy_cdouble *in, npy_bool *mask, npy_intp ni, npy_cdouble *vals, npy_intp nv) >{ > npy_intp i; > npy_cdouble s_val; > > if (nv == 1) { > s_val = *vals; > for (i = 0; i < ni; i++) { > if (mask[i]) { > in[i] = s_val; > } > } > } > else { > for (i = 0; i < ni; i++) { > if (mask[i]) { > in[i] = vals[i%nv]; > } > } > } > return; >} ># 3469 "numpy/core/src/multiarray/arraytypes.c.src" >static void >CLONGDOUBLE_fastputmask(npy_clongdouble *in, npy_bool *mask, npy_intp ni, npy_clongdouble *vals, npy_intp nv) >{ > npy_intp i; > npy_clongdouble s_val; > > if (nv == 1) { > s_val = *vals; > for (i = 0; i < ni; i++) { > if (mask[i]) { > in[i] = s_val; > } > } > } > else { > for (i = 0; i < ni; i++) { > if (mask[i]) { > in[i] = vals[i%nv]; > } > } > } > return; >} ># 3469 "numpy/core/src/multiarray/arraytypes.c.src" >static void >DATETIME_fastputmask(npy_datetime *in, npy_bool *mask, npy_intp ni, npy_datetime *vals, npy_intp nv) >{ > npy_intp i; > npy_datetime s_val; > > if (nv == 1) { > s_val = *vals; > for (i = 0; i < ni; i++) { > if (mask[i]) { > in[i] = s_val; > } > } > } > else { > for (i = 0; i < ni; i++) { > if (mask[i]) { > in[i] = vals[i%nv]; > } > } > } > return; >} ># 3469 "numpy/core/src/multiarray/arraytypes.c.src" >static void >TIMEDELTA_fastputmask(npy_timedelta *in, npy_bool *mask, npy_intp ni, npy_timedelta *vals, npy_intp nv) >{ > npy_intp i; > npy_timedelta s_val; > > if (nv == 1) { > s_val = *vals; > for (i = 0; i < ni; i++) { > if (mask[i]) { > in[i] = s_val; > } > } > } > else { > for (i = 0; i < ni; i++) { > if (mask[i]) { > in[i] = vals[i%nv]; > } > } > } > return; >} ># 3513 "numpy/core/src/multiarray/arraytypes.c.src" >static int >BOOL_fasttake(npy_bool *dest, npy_bool *src, npy_intp *indarray, > npy_intp nindarray, npy_intp n_outer, > npy_intp m_middle, npy_intp nelem, > NPY_CLIPMODE clipmode) >{ > npy_intp i, j, k, tmp; > > switch(clipmode) { > case NPY_RAISE: > for (i = 0; i < n_outer; i++) { > for (j = 0; j < m_middle; j++) { > tmp = indarray[j]; > if (tmp < 0) { > tmp = tmp+nindarray; > } > if ((tmp < 0) || (tmp >= nindarray)) { > PyErr_SetString(PyExc_IndexError, > "index out of range for array"); > return 1; > } > if (nelem == 1) { > *dest++ = *(src+tmp); > } > else { > for (k = 0; k < nelem; k++) { > *dest++ = *(src + tmp*nelem + k); > } > } > } > src += nelem*nindarray; > } > break; > case NPY_WRAP: > for (i = 0; i < n_outer; i++) { > for (j = 0; j < m_middle; j++) { > tmp = indarray[j]; > if (tmp < 0) { > while (tmp < 0) { > tmp += nindarray; > } > } > else if (tmp >= nindarray) { > while (tmp >= nindarray) { > tmp -= nindarray; > } > } > if (nelem == 1) { > *dest++ = *(src+tmp); > } > else { > for (k = 0; k < nelem; k++) { > *dest++ = *(src+tmp*nelem+k); > } > } > } > src += nelem*nindarray; > } > break; > case NPY_CLIP: > for (i = 0; i < n_outer; i++) { > for (j = 0; j < m_middle; j++) { > tmp = indarray[j]; > if (tmp < 0) { > tmp = 0; > } > else if (tmp >= nindarray) { > tmp = nindarray - 1; > } > if (nelem == 1) { > *dest++ = *(src+tmp); > } > else { > for (k = 0; k < nelem; k++) { > *dest++ = *(src + tmp*nelem + k); > } > } > } > src += nelem*nindarray; > } > break; > } > return 0; >} ># 3513 "numpy/core/src/multiarray/arraytypes.c.src" >static int >BYTE_fasttake(npy_byte *dest, npy_byte *src, npy_intp *indarray, > npy_intp nindarray, npy_intp n_outer, > npy_intp m_middle, npy_intp nelem, > NPY_CLIPMODE clipmode) >{ > npy_intp i, j, k, tmp; > > switch(clipmode) { > case NPY_RAISE: > for (i = 0; i < n_outer; i++) { > for (j = 0; j < m_middle; j++) { > tmp = indarray[j]; > if (tmp < 0) { > tmp = tmp+nindarray; > } > if ((tmp < 0) || (tmp >= nindarray)) { > PyErr_SetString(PyExc_IndexError, > "index out of range for array"); > return 1; > } > if (nelem == 1) { > *dest++ = *(src+tmp); > } > else { > for (k = 0; k < nelem; k++) { > *dest++ = *(src + tmp*nelem + k); > } > } > } > src += nelem*nindarray; > } > break; > case NPY_WRAP: > for (i = 0; i < n_outer; i++) { > for (j = 0; j < m_middle; j++) { > tmp = indarray[j]; > if (tmp < 0) { > while (tmp < 0) { > tmp += nindarray; > } > } > else if (tmp >= nindarray) { > while (tmp >= nindarray) { > tmp -= nindarray; > } > } > if (nelem == 1) { > *dest++ = *(src+tmp); > } > else { > for (k = 0; k < nelem; k++) { > *dest++ = *(src+tmp*nelem+k); > } > } > } > src += nelem*nindarray; > } > break; > case NPY_CLIP: > for (i = 0; i < n_outer; i++) { > for (j = 0; j < m_middle; j++) { > tmp = indarray[j]; > if (tmp < 0) { > tmp = 0; > } > else if (tmp >= nindarray) { > tmp = nindarray - 1; > } > if (nelem == 1) { > *dest++ = *(src+tmp); > } > else { > for (k = 0; k < nelem; k++) { > *dest++ = *(src + tmp*nelem + k); > } > } > } > src += nelem*nindarray; > } > break; > } > return 0; >} ># 3513 "numpy/core/src/multiarray/arraytypes.c.src" >static int >UBYTE_fasttake(npy_ubyte *dest, npy_ubyte *src, npy_intp *indarray, > npy_intp nindarray, npy_intp n_outer, > npy_intp m_middle, npy_intp nelem, > NPY_CLIPMODE clipmode) >{ > npy_intp i, j, k, tmp; > > switch(clipmode) { > case NPY_RAISE: > for (i = 0; i < n_outer; i++) { > for (j = 0; j < m_middle; j++) { > tmp = indarray[j]; > if (tmp < 0) { > tmp = tmp+nindarray; > } > if ((tmp < 0) || (tmp >= nindarray)) { > PyErr_SetString(PyExc_IndexError, > "index out of range for array"); > return 1; > } > if (nelem == 1) { > *dest++ = *(src+tmp); > } > else { > for (k = 0; k < nelem; k++) { > *dest++ = *(src + tmp*nelem + k); > } > } > } > src += nelem*nindarray; > } > break; > case NPY_WRAP: > for (i = 0; i < n_outer; i++) { > for (j = 0; j < m_middle; j++) { > tmp = indarray[j]; > if (tmp < 0) { > while (tmp < 0) { > tmp += nindarray; > } > } > else if (tmp >= nindarray) { > while (tmp >= nindarray) { > tmp -= nindarray; > } > } > if (nelem == 1) { > *dest++ = *(src+tmp); > } > else { > for (k = 0; k < nelem; k++) { > *dest++ = *(src+tmp*nelem+k); > } > } > } > src += nelem*nindarray; > } > break; > case NPY_CLIP: > for (i = 0; i < n_outer; i++) { > for (j = 0; j < m_middle; j++) { > tmp = indarray[j]; > if (tmp < 0) { > tmp = 0; > } > else if (tmp >= nindarray) { > tmp = nindarray - 1; > } > if (nelem == 1) { > *dest++ = *(src+tmp); > } > else { > for (k = 0; k < nelem; k++) { > *dest++ = *(src + tmp*nelem + k); > } > } > } > src += nelem*nindarray; > } > break; > } > return 0; >} ># 3513 "numpy/core/src/multiarray/arraytypes.c.src" >static int >SHORT_fasttake(short *dest, short *src, npy_intp *indarray, > npy_intp nindarray, npy_intp n_outer, > npy_intp m_middle, npy_intp nelem, > NPY_CLIPMODE clipmode) >{ > npy_intp i, j, k, tmp; > > switch(clipmode) { > case NPY_RAISE: > for (i = 0; i < n_outer; i++) { > for (j = 0; j < m_middle; j++) { > tmp = indarray[j]; > if (tmp < 0) { > tmp = tmp+nindarray; > } > if ((tmp < 0) || (tmp >= nindarray)) { > PyErr_SetString(PyExc_IndexError, > "index out of range for array"); > return 1; > } > if (nelem == 1) { > *dest++ = *(src+tmp); > } > else { > for (k = 0; k < nelem; k++) { > *dest++ = *(src + tmp*nelem + k); > } > } > } > src += nelem*nindarray; > } > break; > case NPY_WRAP: > for (i = 0; i < n_outer; i++) { > for (j = 0; j < m_middle; j++) { > tmp = indarray[j]; > if (tmp < 0) { > while (tmp < 0) { > tmp += nindarray; > } > } > else if (tmp >= nindarray) { > while (tmp >= nindarray) { > tmp -= nindarray; > } > } > if (nelem == 1) { > *dest++ = *(src+tmp); > } > else { > for (k = 0; k < nelem; k++) { > *dest++ = *(src+tmp*nelem+k); > } > } > } > src += nelem*nindarray; > } > break; > case NPY_CLIP: > for (i = 0; i < n_outer; i++) { > for (j = 0; j < m_middle; j++) { > tmp = indarray[j]; > if (tmp < 0) { > tmp = 0; > } > else if (tmp >= nindarray) { > tmp = nindarray - 1; > } > if (nelem == 1) { > *dest++ = *(src+tmp); > } > else { > for (k = 0; k < nelem; k++) { > *dest++ = *(src + tmp*nelem + k); > } > } > } > src += nelem*nindarray; > } > break; > } > return 0; >} ># 3513 "numpy/core/src/multiarray/arraytypes.c.src" >static int >USHORT_fasttake(npy_ushort *dest, npy_ushort *src, npy_intp *indarray, > npy_intp nindarray, npy_intp n_outer, > npy_intp m_middle, npy_intp nelem, > NPY_CLIPMODE clipmode) >{ > npy_intp i, j, k, tmp; > > switch(clipmode) { > case NPY_RAISE: > for (i = 0; i < n_outer; i++) { > for (j = 0; j < m_middle; j++) { > tmp = indarray[j]; > if (tmp < 0) { > tmp = tmp+nindarray; > } > if ((tmp < 0) || (tmp >= nindarray)) { > PyErr_SetString(PyExc_IndexError, > "index out of range for array"); > return 1; > } > if (nelem == 1) { > *dest++ = *(src+tmp); > } > else { > for (k = 0; k < nelem; k++) { > *dest++ = *(src + tmp*nelem + k); > } > } > } > src += nelem*nindarray; > } > break; > case NPY_WRAP: > for (i = 0; i < n_outer; i++) { > for (j = 0; j < m_middle; j++) { > tmp = indarray[j]; > if (tmp < 0) { > while (tmp < 0) { > tmp += nindarray; > } > } > else if (tmp >= nindarray) { > while (tmp >= nindarray) { > tmp -= nindarray; > } > } > if (nelem == 1) { > *dest++ = *(src+tmp); > } > else { > for (k = 0; k < nelem; k++) { > *dest++ = *(src+tmp*nelem+k); > } > } > } > src += nelem*nindarray; > } > break; > case NPY_CLIP: > for (i = 0; i < n_outer; i++) { > for (j = 0; j < m_middle; j++) { > tmp = indarray[j]; > if (tmp < 0) { > tmp = 0; > } > else if (tmp >= nindarray) { > tmp = nindarray - 1; > } > if (nelem == 1) { > *dest++ = *(src+tmp); > } > else { > for (k = 0; k < nelem; k++) { > *dest++ = *(src + tmp*nelem + k); > } > } > } > src += nelem*nindarray; > } > break; > } > return 0; >} ># 3513 "numpy/core/src/multiarray/arraytypes.c.src" >static int >INT_fasttake(int *dest, int *src, npy_intp *indarray, > npy_intp nindarray, npy_intp n_outer, > npy_intp m_middle, npy_intp nelem, > NPY_CLIPMODE clipmode) >{ > npy_intp i, j, k, tmp; > > switch(clipmode) { > case NPY_RAISE: > for (i = 0; i < n_outer; i++) { > for (j = 0; j < m_middle; j++) { > tmp = indarray[j]; > if (tmp < 0) { > tmp = tmp+nindarray; > } > if ((tmp < 0) || (tmp >= nindarray)) { > PyErr_SetString(PyExc_IndexError, > "index out of range for array"); > return 1; > } > if (nelem == 1) { > *dest++ = *(src+tmp); > } > else { > for (k = 0; k < nelem; k++) { > *dest++ = *(src + tmp*nelem + k); > } > } > } > src += nelem*nindarray; > } > break; > case NPY_WRAP: > for (i = 0; i < n_outer; i++) { > for (j = 0; j < m_middle; j++) { > tmp = indarray[j]; > if (tmp < 0) { > while (tmp < 0) { > tmp += nindarray; > } > } > else if (tmp >= nindarray) { > while (tmp >= nindarray) { > tmp -= nindarray; > } > } > if (nelem == 1) { > *dest++ = *(src+tmp); > } > else { > for (k = 0; k < nelem; k++) { > *dest++ = *(src+tmp*nelem+k); > } > } > } > src += nelem*nindarray; > } > break; > case NPY_CLIP: > for (i = 0; i < n_outer; i++) { > for (j = 0; j < m_middle; j++) { > tmp = indarray[j]; > if (tmp < 0) { > tmp = 0; > } > else if (tmp >= nindarray) { > tmp = nindarray - 1; > } > if (nelem == 1) { > *dest++ = *(src+tmp); > } > else { > for (k = 0; k < nelem; k++) { > *dest++ = *(src + tmp*nelem + k); > } > } > } > src += nelem*nindarray; > } > break; > } > return 0; >} ># 3513 "numpy/core/src/multiarray/arraytypes.c.src" >static int >UINT_fasttake(npy_uint *dest, npy_uint *src, npy_intp *indarray, > npy_intp nindarray, npy_intp n_outer, > npy_intp m_middle, npy_intp nelem, > NPY_CLIPMODE clipmode) >{ > npy_intp i, j, k, tmp; > > switch(clipmode) { > case NPY_RAISE: > for (i = 0; i < n_outer; i++) { > for (j = 0; j < m_middle; j++) { > tmp = indarray[j]; > if (tmp < 0) { > tmp = tmp+nindarray; > } > if ((tmp < 0) || (tmp >= nindarray)) { > PyErr_SetString(PyExc_IndexError, > "index out of range for array"); > return 1; > } > if (nelem == 1) { > *dest++ = *(src+tmp); > } > else { > for (k = 0; k < nelem; k++) { > *dest++ = *(src + tmp*nelem + k); > } > } > } > src += nelem*nindarray; > } > break; > case NPY_WRAP: > for (i = 0; i < n_outer; i++) { > for (j = 0; j < m_middle; j++) { > tmp = indarray[j]; > if (tmp < 0) { > while (tmp < 0) { > tmp += nindarray; > } > } > else if (tmp >= nindarray) { > while (tmp >= nindarray) { > tmp -= nindarray; > } > } > if (nelem == 1) { > *dest++ = *(src+tmp); > } > else { > for (k = 0; k < nelem; k++) { > *dest++ = *(src+tmp*nelem+k); > } > } > } > src += nelem*nindarray; > } > break; > case NPY_CLIP: > for (i = 0; i < n_outer; i++) { > for (j = 0; j < m_middle; j++) { > tmp = indarray[j]; > if (tmp < 0) { > tmp = 0; > } > else if (tmp >= nindarray) { > tmp = nindarray - 1; > } > if (nelem == 1) { > *dest++ = *(src+tmp); > } > else { > for (k = 0; k < nelem; k++) { > *dest++ = *(src + tmp*nelem + k); > } > } > } > src += nelem*nindarray; > } > break; > } > return 0; >} ># 3513 "numpy/core/src/multiarray/arraytypes.c.src" >static int >LONG_fasttake(long *dest, long *src, npy_intp *indarray, > npy_intp nindarray, npy_intp n_outer, > npy_intp m_middle, npy_intp nelem, > NPY_CLIPMODE clipmode) >{ > npy_intp i, j, k, tmp; > > switch(clipmode) { > case NPY_RAISE: > for (i = 0; i < n_outer; i++) { > for (j = 0; j < m_middle; j++) { > tmp = indarray[j]; > if (tmp < 0) { > tmp = tmp+nindarray; > } > if ((tmp < 0) || (tmp >= nindarray)) { > PyErr_SetString(PyExc_IndexError, > "index out of range for array"); > return 1; > } > if (nelem == 1) { > *dest++ = *(src+tmp); > } > else { > for (k = 0; k < nelem; k++) { > *dest++ = *(src + tmp*nelem + k); > } > } > } > src += nelem*nindarray; > } > break; > case NPY_WRAP: > for (i = 0; i < n_outer; i++) { > for (j = 0; j < m_middle; j++) { > tmp = indarray[j]; > if (tmp < 0) { > while (tmp < 0) { > tmp += nindarray; > } > } > else if (tmp >= nindarray) { > while (tmp >= nindarray) { > tmp -= nindarray; > } > } > if (nelem == 1) { > *dest++ = *(src+tmp); > } > else { > for (k = 0; k < nelem; k++) { > *dest++ = *(src+tmp*nelem+k); > } > } > } > src += nelem*nindarray; > } > break; > case NPY_CLIP: > for (i = 0; i < n_outer; i++) { > for (j = 0; j < m_middle; j++) { > tmp = indarray[j]; > if (tmp < 0) { > tmp = 0; > } > else if (tmp >= nindarray) { > tmp = nindarray - 1; > } > if (nelem == 1) { > *dest++ = *(src+tmp); > } > else { > for (k = 0; k < nelem; k++) { > *dest++ = *(src + tmp*nelem + k); > } > } > } > src += nelem*nindarray; > } > break; > } > return 0; >} ># 3513 "numpy/core/src/multiarray/arraytypes.c.src" >static int >ULONG_fasttake(npy_ulong *dest, npy_ulong *src, npy_intp *indarray, > npy_intp nindarray, npy_intp n_outer, > npy_intp m_middle, npy_intp nelem, > NPY_CLIPMODE clipmode) >{ > npy_intp i, j, k, tmp; > > switch(clipmode) { > case NPY_RAISE: > for (i = 0; i < n_outer; i++) { > for (j = 0; j < m_middle; j++) { > tmp = indarray[j]; > if (tmp < 0) { > tmp = tmp+nindarray; > } > if ((tmp < 0) || (tmp >= nindarray)) { > PyErr_SetString(PyExc_IndexError, > "index out of range for array"); > return 1; > } > if (nelem == 1) { > *dest++ = *(src+tmp); > } > else { > for (k = 0; k < nelem; k++) { > *dest++ = *(src + tmp*nelem + k); > } > } > } > src += nelem*nindarray; > } > break; > case NPY_WRAP: > for (i = 0; i < n_outer; i++) { > for (j = 0; j < m_middle; j++) { > tmp = indarray[j]; > if (tmp < 0) { > while (tmp < 0) { > tmp += nindarray; > } > } > else if (tmp >= nindarray) { > while (tmp >= nindarray) { > tmp -= nindarray; > } > } > if (nelem == 1) { > *dest++ = *(src+tmp); > } > else { > for (k = 0; k < nelem; k++) { > *dest++ = *(src+tmp*nelem+k); > } > } > } > src += nelem*nindarray; > } > break; > case NPY_CLIP: > for (i = 0; i < n_outer; i++) { > for (j = 0; j < m_middle; j++) { > tmp = indarray[j]; > if (tmp < 0) { > tmp = 0; > } > else if (tmp >= nindarray) { > tmp = nindarray - 1; > } > if (nelem == 1) { > *dest++ = *(src+tmp); > } > else { > for (k = 0; k < nelem; k++) { > *dest++ = *(src + tmp*nelem + k); > } > } > } > src += nelem*nindarray; > } > break; > } > return 0; >} ># 3513 "numpy/core/src/multiarray/arraytypes.c.src" >static int >LONGLONG_fasttake(npy_longlong *dest, npy_longlong *src, npy_intp *indarray, > npy_intp nindarray, npy_intp n_outer, > npy_intp m_middle, npy_intp nelem, > NPY_CLIPMODE clipmode) >{ > npy_intp i, j, k, tmp; > > switch(clipmode) { > case NPY_RAISE: > for (i = 0; i < n_outer; i++) { > for (j = 0; j < m_middle; j++) { > tmp = indarray[j]; > if (tmp < 0) { > tmp = tmp+nindarray; > } > if ((tmp < 0) || (tmp >= nindarray)) { > PyErr_SetString(PyExc_IndexError, > "index out of range for array"); > return 1; > } > if (nelem == 1) { > *dest++ = *(src+tmp); > } > else { > for (k = 0; k < nelem; k++) { > *dest++ = *(src + tmp*nelem + k); > } > } > } > src += nelem*nindarray; > } > break; > case NPY_WRAP: > for (i = 0; i < n_outer; i++) { > for (j = 0; j < m_middle; j++) { > tmp = indarray[j]; > if (tmp < 0) { > while (tmp < 0) { > tmp += nindarray; > } > } > else if (tmp >= nindarray) { > while (tmp >= nindarray) { > tmp -= nindarray; > } > } > if (nelem == 1) { > *dest++ = *(src+tmp); > } > else { > for (k = 0; k < nelem; k++) { > *dest++ = *(src+tmp*nelem+k); > } > } > } > src += nelem*nindarray; > } > break; > case NPY_CLIP: > for (i = 0; i < n_outer; i++) { > for (j = 0; j < m_middle; j++) { > tmp = indarray[j]; > if (tmp < 0) { > tmp = 0; > } > else if (tmp >= nindarray) { > tmp = nindarray - 1; > } > if (nelem == 1) { > *dest++ = *(src+tmp); > } > else { > for (k = 0; k < nelem; k++) { > *dest++ = *(src + tmp*nelem + k); > } > } > } > src += nelem*nindarray; > } > break; > } > return 0; >} ># 3513 "numpy/core/src/multiarray/arraytypes.c.src" >static int >ULONGLONG_fasttake(npy_ulonglong *dest, npy_ulonglong *src, npy_intp *indarray, > npy_intp nindarray, npy_intp n_outer, > npy_intp m_middle, npy_intp nelem, > NPY_CLIPMODE clipmode) >{ > npy_intp i, j, k, tmp; > > switch(clipmode) { > case NPY_RAISE: > for (i = 0; i < n_outer; i++) { > for (j = 0; j < m_middle; j++) { > tmp = indarray[j]; > if (tmp < 0) { > tmp = tmp+nindarray; > } > if ((tmp < 0) || (tmp >= nindarray)) { > PyErr_SetString(PyExc_IndexError, > "index out of range for array"); > return 1; > } > if (nelem == 1) { > *dest++ = *(src+tmp); > } > else { > for (k = 0; k < nelem; k++) { > *dest++ = *(src + tmp*nelem + k); > } > } > } > src += nelem*nindarray; > } > break; > case NPY_WRAP: > for (i = 0; i < n_outer; i++) { > for (j = 0; j < m_middle; j++) { > tmp = indarray[j]; > if (tmp < 0) { > while (tmp < 0) { > tmp += nindarray; > } > } > else if (tmp >= nindarray) { > while (tmp >= nindarray) { > tmp -= nindarray; > } > } > if (nelem == 1) { > *dest++ = *(src+tmp); > } > else { > for (k = 0; k < nelem; k++) { > *dest++ = *(src+tmp*nelem+k); > } > } > } > src += nelem*nindarray; > } > break; > case NPY_CLIP: > for (i = 0; i < n_outer; i++) { > for (j = 0; j < m_middle; j++) { > tmp = indarray[j]; > if (tmp < 0) { > tmp = 0; > } > else if (tmp >= nindarray) { > tmp = nindarray - 1; > } > if (nelem == 1) { > *dest++ = *(src+tmp); > } > else { > for (k = 0; k < nelem; k++) { > *dest++ = *(src + tmp*nelem + k); > } > } > } > src += nelem*nindarray; > } > break; > } > return 0; >} ># 3513 "numpy/core/src/multiarray/arraytypes.c.src" >static int >HALF_fasttake(npy_half *dest, npy_half *src, npy_intp *indarray, > npy_intp nindarray, npy_intp n_outer, > npy_intp m_middle, npy_intp nelem, > NPY_CLIPMODE clipmode) >{ > npy_intp i, j, k, tmp; > > switch(clipmode) { > case NPY_RAISE: > for (i = 0; i < n_outer; i++) { > for (j = 0; j < m_middle; j++) { > tmp = indarray[j]; > if (tmp < 0) { > tmp = tmp+nindarray; > } > if ((tmp < 0) || (tmp >= nindarray)) { > PyErr_SetString(PyExc_IndexError, > "index out of range for array"); > return 1; > } > if (nelem == 1) { > *dest++ = *(src+tmp); > } > else { > for (k = 0; k < nelem; k++) { > *dest++ = *(src + tmp*nelem + k); > } > } > } > src += nelem*nindarray; > } > break; > case NPY_WRAP: > for (i = 0; i < n_outer; i++) { > for (j = 0; j < m_middle; j++) { > tmp = indarray[j]; > if (tmp < 0) { > while (tmp < 0) { > tmp += nindarray; > } > } > else if (tmp >= nindarray) { > while (tmp >= nindarray) { > tmp -= nindarray; > } > } > if (nelem == 1) { > *dest++ = *(src+tmp); > } > else { > for (k = 0; k < nelem; k++) { > *dest++ = *(src+tmp*nelem+k); > } > } > } > src += nelem*nindarray; > } > break; > case NPY_CLIP: > for (i = 0; i < n_outer; i++) { > for (j = 0; j < m_middle; j++) { > tmp = indarray[j]; > if (tmp < 0) { > tmp = 0; > } > else if (tmp >= nindarray) { > tmp = nindarray - 1; > } > if (nelem == 1) { > *dest++ = *(src+tmp); > } > else { > for (k = 0; k < nelem; k++) { > *dest++ = *(src + tmp*nelem + k); > } > } > } > src += nelem*nindarray; > } > break; > } > return 0; >} ># 3513 "numpy/core/src/multiarray/arraytypes.c.src" >static int >FLOAT_fasttake(float *dest, float *src, npy_intp *indarray, > npy_intp nindarray, npy_intp n_outer, > npy_intp m_middle, npy_intp nelem, > NPY_CLIPMODE clipmode) >{ > npy_intp i, j, k, tmp; > > switch(clipmode) { > case NPY_RAISE: > for (i = 0; i < n_outer; i++) { > for (j = 0; j < m_middle; j++) { > tmp = indarray[j]; > if (tmp < 0) { > tmp = tmp+nindarray; > } > if ((tmp < 0) || (tmp >= nindarray)) { > PyErr_SetString(PyExc_IndexError, > "index out of range for array"); > return 1; > } > if (nelem == 1) { > *dest++ = *(src+tmp); > } > else { > for (k = 0; k < nelem; k++) { > *dest++ = *(src + tmp*nelem + k); > } > } > } > src += nelem*nindarray; > } > break; > case NPY_WRAP: > for (i = 0; i < n_outer; i++) { > for (j = 0; j < m_middle; j++) { > tmp = indarray[j]; > if (tmp < 0) { > while (tmp < 0) { > tmp += nindarray; > } > } > else if (tmp >= nindarray) { > while (tmp >= nindarray) { > tmp -= nindarray; > } > } > if (nelem == 1) { > *dest++ = *(src+tmp); > } > else { > for (k = 0; k < nelem; k++) { > *dest++ = *(src+tmp*nelem+k); > } > } > } > src += nelem*nindarray; > } > break; > case NPY_CLIP: > for (i = 0; i < n_outer; i++) { > for (j = 0; j < m_middle; j++) { > tmp = indarray[j]; > if (tmp < 0) { > tmp = 0; > } > else if (tmp >= nindarray) { > tmp = nindarray - 1; > } > if (nelem == 1) { > *dest++ = *(src+tmp); > } > else { > for (k = 0; k < nelem; k++) { > *dest++ = *(src + tmp*nelem + k); > } > } > } > src += nelem*nindarray; > } > break; > } > return 0; >} ># 3513 "numpy/core/src/multiarray/arraytypes.c.src" >static int >DOUBLE_fasttake(double *dest, double *src, npy_intp *indarray, > npy_intp nindarray, npy_intp n_outer, > npy_intp m_middle, npy_intp nelem, > NPY_CLIPMODE clipmode) >{ > npy_intp i, j, k, tmp; > > switch(clipmode) { > case NPY_RAISE: > for (i = 0; i < n_outer; i++) { > for (j = 0; j < m_middle; j++) { > tmp = indarray[j]; > if (tmp < 0) { > tmp = tmp+nindarray; > } > if ((tmp < 0) || (tmp >= nindarray)) { > PyErr_SetString(PyExc_IndexError, > "index out of range for array"); > return 1; > } > if (nelem == 1) { > *dest++ = *(src+tmp); > } > else { > for (k = 0; k < nelem; k++) { > *dest++ = *(src + tmp*nelem + k); > } > } > } > src += nelem*nindarray; > } > break; > case NPY_WRAP: > for (i = 0; i < n_outer; i++) { > for (j = 0; j < m_middle; j++) { > tmp = indarray[j]; > if (tmp < 0) { > while (tmp < 0) { > tmp += nindarray; > } > } > else if (tmp >= nindarray) { > while (tmp >= nindarray) { > tmp -= nindarray; > } > } > if (nelem == 1) { > *dest++ = *(src+tmp); > } > else { > for (k = 0; k < nelem; k++) { > *dest++ = *(src+tmp*nelem+k); > } > } > } > src += nelem*nindarray; > } > break; > case NPY_CLIP: > for (i = 0; i < n_outer; i++) { > for (j = 0; j < m_middle; j++) { > tmp = indarray[j]; > if (tmp < 0) { > tmp = 0; > } > else if (tmp >= nindarray) { > tmp = nindarray - 1; > } > if (nelem == 1) { > *dest++ = *(src+tmp); > } > else { > for (k = 0; k < nelem; k++) { > *dest++ = *(src + tmp*nelem + k); > } > } > } > src += nelem*nindarray; > } > break; > } > return 0; >} ># 3513 "numpy/core/src/multiarray/arraytypes.c.src" >static int >LONGDOUBLE_fasttake(npy_longdouble *dest, npy_longdouble *src, npy_intp *indarray, > npy_intp nindarray, npy_intp n_outer, > npy_intp m_middle, npy_intp nelem, > NPY_CLIPMODE clipmode) >{ > npy_intp i, j, k, tmp; > > switch(clipmode) { > case NPY_RAISE: > for (i = 0; i < n_outer; i++) { > for (j = 0; j < m_middle; j++) { > tmp = indarray[j]; > if (tmp < 0) { > tmp = tmp+nindarray; > } > if ((tmp < 0) || (tmp >= nindarray)) { > PyErr_SetString(PyExc_IndexError, > "index out of range for array"); > return 1; > } > if (nelem == 1) { > *dest++ = *(src+tmp); > } > else { > for (k = 0; k < nelem; k++) { > *dest++ = *(src + tmp*nelem + k); > } > } > } > src += nelem*nindarray; > } > break; > case NPY_WRAP: > for (i = 0; i < n_outer; i++) { > for (j = 0; j < m_middle; j++) { > tmp = indarray[j]; > if (tmp < 0) { > while (tmp < 0) { > tmp += nindarray; > } > } > else if (tmp >= nindarray) { > while (tmp >= nindarray) { > tmp -= nindarray; > } > } > if (nelem == 1) { > *dest++ = *(src+tmp); > } > else { > for (k = 0; k < nelem; k++) { > *dest++ = *(src+tmp*nelem+k); > } > } > } > src += nelem*nindarray; > } > break; > case NPY_CLIP: > for (i = 0; i < n_outer; i++) { > for (j = 0; j < m_middle; j++) { > tmp = indarray[j]; > if (tmp < 0) { > tmp = 0; > } > else if (tmp >= nindarray) { > tmp = nindarray - 1; > } > if (nelem == 1) { > *dest++ = *(src+tmp); > } > else { > for (k = 0; k < nelem; k++) { > *dest++ = *(src + tmp*nelem + k); > } > } > } > src += nelem*nindarray; > } > break; > } > return 0; >} ># 3513 "numpy/core/src/multiarray/arraytypes.c.src" >static int >CFLOAT_fasttake(npy_cfloat *dest, npy_cfloat *src, npy_intp *indarray, > npy_intp nindarray, npy_intp n_outer, > npy_intp m_middle, npy_intp nelem, > NPY_CLIPMODE clipmode) >{ > npy_intp i, j, k, tmp; > > switch(clipmode) { > case NPY_RAISE: > for (i = 0; i < n_outer; i++) { > for (j = 0; j < m_middle; j++) { > tmp = indarray[j]; > if (tmp < 0) { > tmp = tmp+nindarray; > } > if ((tmp < 0) || (tmp >= nindarray)) { > PyErr_SetString(PyExc_IndexError, > "index out of range for array"); > return 1; > } > if (nelem == 1) { > *dest++ = *(src+tmp); > } > else { > for (k = 0; k < nelem; k++) { > *dest++ = *(src + tmp*nelem + k); > } > } > } > src += nelem*nindarray; > } > break; > case NPY_WRAP: > for (i = 0; i < n_outer; i++) { > for (j = 0; j < m_middle; j++) { > tmp = indarray[j]; > if (tmp < 0) { > while (tmp < 0) { > tmp += nindarray; > } > } > else if (tmp >= nindarray) { > while (tmp >= nindarray) { > tmp -= nindarray; > } > } > if (nelem == 1) { > *dest++ = *(src+tmp); > } > else { > for (k = 0; k < nelem; k++) { > *dest++ = *(src+tmp*nelem+k); > } > } > } > src += nelem*nindarray; > } > break; > case NPY_CLIP: > for (i = 0; i < n_outer; i++) { > for (j = 0; j < m_middle; j++) { > tmp = indarray[j]; > if (tmp < 0) { > tmp = 0; > } > else if (tmp >= nindarray) { > tmp = nindarray - 1; > } > if (nelem == 1) { > *dest++ = *(src+tmp); > } > else { > for (k = 0; k < nelem; k++) { > *dest++ = *(src + tmp*nelem + k); > } > } > } > src += nelem*nindarray; > } > break; > } > return 0; >} ># 3513 "numpy/core/src/multiarray/arraytypes.c.src" >static int >CDOUBLE_fasttake(npy_cdouble *dest, npy_cdouble *src, npy_intp *indarray, > npy_intp nindarray, npy_intp n_outer, > npy_intp m_middle, npy_intp nelem, > NPY_CLIPMODE clipmode) >{ > npy_intp i, j, k, tmp; > > switch(clipmode) { > case NPY_RAISE: > for (i = 0; i < n_outer; i++) { > for (j = 0; j < m_middle; j++) { > tmp = indarray[j]; > if (tmp < 0) { > tmp = tmp+nindarray; > } > if ((tmp < 0) || (tmp >= nindarray)) { > PyErr_SetString(PyExc_IndexError, > "index out of range for array"); > return 1; > } > if (nelem == 1) { > *dest++ = *(src+tmp); > } > else { > for (k = 0; k < nelem; k++) { > *dest++ = *(src + tmp*nelem + k); > } > } > } > src += nelem*nindarray; > } > break; > case NPY_WRAP: > for (i = 0; i < n_outer; i++) { > for (j = 0; j < m_middle; j++) { > tmp = indarray[j]; > if (tmp < 0) { > while (tmp < 0) { > tmp += nindarray; > } > } > else if (tmp >= nindarray) { > while (tmp >= nindarray) { > tmp -= nindarray; > } > } > if (nelem == 1) { > *dest++ = *(src+tmp); > } > else { > for (k = 0; k < nelem; k++) { > *dest++ = *(src+tmp*nelem+k); > } > } > } > src += nelem*nindarray; > } > break; > case NPY_CLIP: > for (i = 0; i < n_outer; i++) { > for (j = 0; j < m_middle; j++) { > tmp = indarray[j]; > if (tmp < 0) { > tmp = 0; > } > else if (tmp >= nindarray) { > tmp = nindarray - 1; > } > if (nelem == 1) { > *dest++ = *(src+tmp); > } > else { > for (k = 0; k < nelem; k++) { > *dest++ = *(src + tmp*nelem + k); > } > } > } > src += nelem*nindarray; > } > break; > } > return 0; >} ># 3513 "numpy/core/src/multiarray/arraytypes.c.src" >static int >CLONGDOUBLE_fasttake(npy_clongdouble *dest, npy_clongdouble *src, npy_intp *indarray, > npy_intp nindarray, npy_intp n_outer, > npy_intp m_middle, npy_intp nelem, > NPY_CLIPMODE clipmode) >{ > npy_intp i, j, k, tmp; > > switch(clipmode) { > case NPY_RAISE: > for (i = 0; i < n_outer; i++) { > for (j = 0; j < m_middle; j++) { > tmp = indarray[j]; > if (tmp < 0) { > tmp = tmp+nindarray; > } > if ((tmp < 0) || (tmp >= nindarray)) { > PyErr_SetString(PyExc_IndexError, > "index out of range for array"); > return 1; > } > if (nelem == 1) { > *dest++ = *(src+tmp); > } > else { > for (k = 0; k < nelem; k++) { > *dest++ = *(src + tmp*nelem + k); > } > } > } > src += nelem*nindarray; > } > break; > case NPY_WRAP: > for (i = 0; i < n_outer; i++) { > for (j = 0; j < m_middle; j++) { > tmp = indarray[j]; > if (tmp < 0) { > while (tmp < 0) { > tmp += nindarray; > } > } > else if (tmp >= nindarray) { > while (tmp >= nindarray) { > tmp -= nindarray; > } > } > if (nelem == 1) { > *dest++ = *(src+tmp); > } > else { > for (k = 0; k < nelem; k++) { > *dest++ = *(src+tmp*nelem+k); > } > } > } > src += nelem*nindarray; > } > break; > case NPY_CLIP: > for (i = 0; i < n_outer; i++) { > for (j = 0; j < m_middle; j++) { > tmp = indarray[j]; > if (tmp < 0) { > tmp = 0; > } > else if (tmp >= nindarray) { > tmp = nindarray - 1; > } > if (nelem == 1) { > *dest++ = *(src+tmp); > } > else { > for (k = 0; k < nelem; k++) { > *dest++ = *(src + tmp*nelem + k); > } > } > } > src += nelem*nindarray; > } > break; > } > return 0; >} ># 3513 "numpy/core/src/multiarray/arraytypes.c.src" >static int >DATETIME_fasttake(npy_datetime *dest, npy_datetime *src, npy_intp *indarray, > npy_intp nindarray, npy_intp n_outer, > npy_intp m_middle, npy_intp nelem, > NPY_CLIPMODE clipmode) >{ > npy_intp i, j, k, tmp; > > switch(clipmode) { > case NPY_RAISE: > for (i = 0; i < n_outer; i++) { > for (j = 0; j < m_middle; j++) { > tmp = indarray[j]; > if (tmp < 0) { > tmp = tmp+nindarray; > } > if ((tmp < 0) || (tmp >= nindarray)) { > PyErr_SetString(PyExc_IndexError, > "index out of range for array"); > return 1; > } > if (nelem == 1) { > *dest++ = *(src+tmp); > } > else { > for (k = 0; k < nelem; k++) { > *dest++ = *(src + tmp*nelem + k); > } > } > } > src += nelem*nindarray; > } > break; > case NPY_WRAP: > for (i = 0; i < n_outer; i++) { > for (j = 0; j < m_middle; j++) { > tmp = indarray[j]; > if (tmp < 0) { > while (tmp < 0) { > tmp += nindarray; > } > } > else if (tmp >= nindarray) { > while (tmp >= nindarray) { > tmp -= nindarray; > } > } > if (nelem == 1) { > *dest++ = *(src+tmp); > } > else { > for (k = 0; k < nelem; k++) { > *dest++ = *(src+tmp*nelem+k); > } > } > } > src += nelem*nindarray; > } > break; > case NPY_CLIP: > for (i = 0; i < n_outer; i++) { > for (j = 0; j < m_middle; j++) { > tmp = indarray[j]; > if (tmp < 0) { > tmp = 0; > } > else if (tmp >= nindarray) { > tmp = nindarray - 1; > } > if (nelem == 1) { > *dest++ = *(src+tmp); > } > else { > for (k = 0; k < nelem; k++) { > *dest++ = *(src + tmp*nelem + k); > } > } > } > src += nelem*nindarray; > } > break; > } > return 0; >} ># 3513 "numpy/core/src/multiarray/arraytypes.c.src" >static int >TIMEDELTA_fasttake(npy_timedelta *dest, npy_timedelta *src, npy_intp *indarray, > npy_intp nindarray, npy_intp n_outer, > npy_intp m_middle, npy_intp nelem, > NPY_CLIPMODE clipmode) >{ > npy_intp i, j, k, tmp; > > switch(clipmode) { > case NPY_RAISE: > for (i = 0; i < n_outer; i++) { > for (j = 0; j < m_middle; j++) { > tmp = indarray[j]; > if (tmp < 0) { > tmp = tmp+nindarray; > } > if ((tmp < 0) || (tmp >= nindarray)) { > PyErr_SetString(PyExc_IndexError, > "index out of range for array"); > return 1; > } > if (nelem == 1) { > *dest++ = *(src+tmp); > } > else { > for (k = 0; k < nelem; k++) { > *dest++ = *(src + tmp*nelem + k); > } > } > } > src += nelem*nindarray; > } > break; > case NPY_WRAP: > for (i = 0; i < n_outer; i++) { > for (j = 0; j < m_middle; j++) { > tmp = indarray[j]; > if (tmp < 0) { > while (tmp < 0) { > tmp += nindarray; > } > } > else if (tmp >= nindarray) { > while (tmp >= nindarray) { > tmp -= nindarray; > } > } > if (nelem == 1) { > *dest++ = *(src+tmp); > } > else { > for (k = 0; k < nelem; k++) { > *dest++ = *(src+tmp*nelem+k); > } > } > } > src += nelem*nindarray; > } > break; > case NPY_CLIP: > for (i = 0; i < n_outer; i++) { > for (j = 0; j < m_middle; j++) { > tmp = indarray[j]; > if (tmp < 0) { > tmp = 0; > } > else if (tmp >= nindarray) { > tmp = nindarray - 1; > } > if (nelem == 1) { > *dest++ = *(src+tmp); > } > else { > for (k = 0; k < nelem; k++) { > *dest++ = *(src + tmp*nelem + k); > } > } > } > src += nelem*nindarray; > } > break; > } > return 0; >} ># 3626 "numpy/core/src/multiarray/arraytypes.c.src" >static PyArray_ArrFuncs _PyVoid_ArrFuncs = { > { > (PyArray_VectorUnaryFunc*)VOID_to_BOOL, > (PyArray_VectorUnaryFunc*)VOID_to_BYTE, > (PyArray_VectorUnaryFunc*)VOID_to_UBYTE, > (PyArray_VectorUnaryFunc*)VOID_to_SHORT, > (PyArray_VectorUnaryFunc*)VOID_to_USHORT, > (PyArray_VectorUnaryFunc*)VOID_to_INT, > (PyArray_VectorUnaryFunc*)VOID_to_UINT, > (PyArray_VectorUnaryFunc*)VOID_to_LONG, > (PyArray_VectorUnaryFunc*)VOID_to_ULONG, > (PyArray_VectorUnaryFunc*)VOID_to_LONGLONG, > (PyArray_VectorUnaryFunc*)VOID_to_ULONGLONG, > (PyArray_VectorUnaryFunc*)VOID_to_FLOAT, > (PyArray_VectorUnaryFunc*)VOID_to_DOUBLE, > (PyArray_VectorUnaryFunc*)VOID_to_LONGDOUBLE, > (PyArray_VectorUnaryFunc*)VOID_to_CFLOAT, > (PyArray_VectorUnaryFunc*)VOID_to_CDOUBLE, > (PyArray_VectorUnaryFunc*)VOID_to_CLONGDOUBLE, > (PyArray_VectorUnaryFunc*)VOID_to_OBJECT, > (PyArray_VectorUnaryFunc*)VOID_to_STRING, > (PyArray_VectorUnaryFunc*)VOID_to_UNICODE, > (PyArray_VectorUnaryFunc*)VOID_to_VOID > }, > (PyArray_GetItemFunc*)VOID_getitem, > (PyArray_SetItemFunc*)VOID_setitem, > (PyArray_CopySwapNFunc*)VOID_copyswapn, > (PyArray_CopySwapFunc*)VOID_copyswap, > (PyArray_CompareFunc*)VOID_compare, > (PyArray_ArgFunc*)((void *)0), > (PyArray_DotFunc*)((void *)0), > (PyArray_ScanFunc*)((void *)0), > (PyArray_FromStrFunc*)((void *)0), > (PyArray_NonzeroFunc*)VOID_nonzero, > (PyArray_FillFunc*)((void *)0), > (PyArray_FillWithScalarFunc*)((void *)0), > { > ((void *)0), ((void *)0), ((void *)0) > }, > { > ((void *)0), ((void *)0), ((void *)0) > }, > ((void *)0), > (PyArray_ScalarKindFunc*)((void *)0), > ((void *)0), > ((void *)0), > (PyArray_FastClipFunc *)((void *)0), > (PyArray_FastPutmaskFunc *)((void *)0), > (PyArray_FastTakeFunc *)((void *)0) >}; > > > > >static PyArray_Descr VOID_Descr = { > 1, &PyArrayDescr_Type, > &PyVoidArrType_Type, > NPY_VOIDLTR, > NPY_VOIDLTR, > '|', > 0, > NPY_VOID, > 0, > ((size_t) &((struct {char c; char v;} *)0)->v), > ((void *)0), > ((void *)0), > ((void *)0), > &_PyVoid_ArrFuncs, > ((void *)0), >}; ># 3626 "numpy/core/src/multiarray/arraytypes.c.src" >static PyArray_ArrFuncs _PyString_ArrFuncs = { > { > (PyArray_VectorUnaryFunc*)STRING_to_BOOL, > (PyArray_VectorUnaryFunc*)STRING_to_BYTE, > (PyArray_VectorUnaryFunc*)STRING_to_UBYTE, > (PyArray_VectorUnaryFunc*)STRING_to_SHORT, > (PyArray_VectorUnaryFunc*)STRING_to_USHORT, > (PyArray_VectorUnaryFunc*)STRING_to_INT, > (PyArray_VectorUnaryFunc*)STRING_to_UINT, > (PyArray_VectorUnaryFunc*)STRING_to_LONG, > (PyArray_VectorUnaryFunc*)STRING_to_ULONG, > (PyArray_VectorUnaryFunc*)STRING_to_LONGLONG, > (PyArray_VectorUnaryFunc*)STRING_to_ULONGLONG, > (PyArray_VectorUnaryFunc*)STRING_to_FLOAT, > (PyArray_VectorUnaryFunc*)STRING_to_DOUBLE, > (PyArray_VectorUnaryFunc*)STRING_to_LONGDOUBLE, > (PyArray_VectorUnaryFunc*)STRING_to_CFLOAT, > (PyArray_VectorUnaryFunc*)STRING_to_CDOUBLE, > (PyArray_VectorUnaryFunc*)STRING_to_CLONGDOUBLE, > (PyArray_VectorUnaryFunc*)STRING_to_OBJECT, > (PyArray_VectorUnaryFunc*)STRING_to_STRING, > (PyArray_VectorUnaryFunc*)STRING_to_UNICODE, > (PyArray_VectorUnaryFunc*)STRING_to_VOID > }, > (PyArray_GetItemFunc*)STRING_getitem, > (PyArray_SetItemFunc*)STRING_setitem, > (PyArray_CopySwapNFunc*)STRING_copyswapn, > (PyArray_CopySwapFunc*)STRING_copyswap, > (PyArray_CompareFunc*)STRING_compare, > (PyArray_ArgFunc*)STRING_argmax, > (PyArray_DotFunc*)((void *)0), > (PyArray_ScanFunc*)((void *)0), > (PyArray_FromStrFunc*)((void *)0), > (PyArray_NonzeroFunc*)STRING_nonzero, > (PyArray_FillFunc*)((void *)0), > (PyArray_FillWithScalarFunc*)((void *)0), > { > ((void *)0), ((void *)0), ((void *)0) > }, > { > ((void *)0), ((void *)0), ((void *)0) > }, > ((void *)0), > (PyArray_ScalarKindFunc*)((void *)0), > ((void *)0), > ((void *)0), > (PyArray_FastClipFunc *)((void *)0), > (PyArray_FastPutmaskFunc *)((void *)0), > (PyArray_FastTakeFunc *)((void *)0) >}; > > > > >static PyArray_Descr STRING_Descr = { > 1, &PyArrayDescr_Type, > &PyStringArrType_Type, > NPY_STRINGLTR, > NPY_STRINGLTR, > '|', > 0, > NPY_STRING, > 0, > ((size_t) &((struct {char c; char v;} *)0)->v), > ((void *)0), > ((void *)0), > ((void *)0), > &_PyString_ArrFuncs, > ((void *)0), >}; ># 3626 "numpy/core/src/multiarray/arraytypes.c.src" >static PyArray_ArrFuncs _PyUnicode_ArrFuncs = { > { > (PyArray_VectorUnaryFunc*)UNICODE_to_BOOL, > (PyArray_VectorUnaryFunc*)UNICODE_to_BYTE, > (PyArray_VectorUnaryFunc*)UNICODE_to_UBYTE, > (PyArray_VectorUnaryFunc*)UNICODE_to_SHORT, > (PyArray_VectorUnaryFunc*)UNICODE_to_USHORT, > (PyArray_VectorUnaryFunc*)UNICODE_to_INT, > (PyArray_VectorUnaryFunc*)UNICODE_to_UINT, > (PyArray_VectorUnaryFunc*)UNICODE_to_LONG, > (PyArray_VectorUnaryFunc*)UNICODE_to_ULONG, > (PyArray_VectorUnaryFunc*)UNICODE_to_LONGLONG, > (PyArray_VectorUnaryFunc*)UNICODE_to_ULONGLONG, > (PyArray_VectorUnaryFunc*)UNICODE_to_FLOAT, > (PyArray_VectorUnaryFunc*)UNICODE_to_DOUBLE, > (PyArray_VectorUnaryFunc*)UNICODE_to_LONGDOUBLE, > (PyArray_VectorUnaryFunc*)UNICODE_to_CFLOAT, > (PyArray_VectorUnaryFunc*)UNICODE_to_CDOUBLE, > (PyArray_VectorUnaryFunc*)UNICODE_to_CLONGDOUBLE, > (PyArray_VectorUnaryFunc*)UNICODE_to_OBJECT, > (PyArray_VectorUnaryFunc*)UNICODE_to_STRING, > (PyArray_VectorUnaryFunc*)UNICODE_to_UNICODE, > (PyArray_VectorUnaryFunc*)UNICODE_to_VOID > }, > (PyArray_GetItemFunc*)UNICODE_getitem, > (PyArray_SetItemFunc*)UNICODE_setitem, > (PyArray_CopySwapNFunc*)UNICODE_copyswapn, > (PyArray_CopySwapFunc*)UNICODE_copyswap, > (PyArray_CompareFunc*)UNICODE_compare, > (PyArray_ArgFunc*)UNICODE_argmax, > (PyArray_DotFunc*)((void *)0), > (PyArray_ScanFunc*)((void *)0), > (PyArray_FromStrFunc*)((void *)0), > (PyArray_NonzeroFunc*)UNICODE_nonzero, > (PyArray_FillFunc*)((void *)0), > (PyArray_FillWithScalarFunc*)((void *)0), > { > ((void *)0), ((void *)0), ((void *)0) > }, > { > ((void *)0), ((void *)0), ((void *)0) > }, > ((void *)0), > (PyArray_ScalarKindFunc*)((void *)0), > ((void *)0), > ((void *)0), > (PyArray_FastClipFunc *)((void *)0), > (PyArray_FastPutmaskFunc *)((void *)0), > (PyArray_FastTakeFunc *)((void *)0) >}; > > > > >static PyArray_Descr UNICODE_Descr = { > 1, &PyArrayDescr_Type, > &PyUnicodeArrType_Type, > NPY_UNICODELTR, > NPY_UNICODELTR, > '=', > 0, > NPY_UNICODE, > 0, > ((size_t) &((struct {char c; npy_ucs4 v;} *)0)->v), > ((void *)0), > ((void *)0), > ((void *)0), > &_PyUnicode_ArrFuncs, > ((void *)0), >}; ># 3717 "numpy/core/src/multiarray/arraytypes.c.src" >static PyArray_ArrFuncs _PyBool_ArrFuncs = { > { > (PyArray_VectorUnaryFunc*)BOOL_to_BOOL, > (PyArray_VectorUnaryFunc*)BOOL_to_BYTE, > (PyArray_VectorUnaryFunc*)BOOL_to_UBYTE, > (PyArray_VectorUnaryFunc*)BOOL_to_SHORT, > (PyArray_VectorUnaryFunc*)BOOL_to_USHORT, > (PyArray_VectorUnaryFunc*)BOOL_to_INT, > (PyArray_VectorUnaryFunc*)BOOL_to_UINT, > (PyArray_VectorUnaryFunc*)BOOL_to_LONG, > (PyArray_VectorUnaryFunc*)BOOL_to_ULONG, > (PyArray_VectorUnaryFunc*)BOOL_to_LONGLONG, > (PyArray_VectorUnaryFunc*)BOOL_to_ULONGLONG, > (PyArray_VectorUnaryFunc*)BOOL_to_FLOAT, > (PyArray_VectorUnaryFunc*)BOOL_to_DOUBLE, > (PyArray_VectorUnaryFunc*)BOOL_to_LONGDOUBLE, > (PyArray_VectorUnaryFunc*)BOOL_to_CFLOAT, > (PyArray_VectorUnaryFunc*)BOOL_to_CDOUBLE, > (PyArray_VectorUnaryFunc*)BOOL_to_CLONGDOUBLE, > (PyArray_VectorUnaryFunc*)BOOL_to_OBJECT, > (PyArray_VectorUnaryFunc*)BOOL_to_STRING, > (PyArray_VectorUnaryFunc*)BOOL_to_UNICODE, > (PyArray_VectorUnaryFunc*)BOOL_to_VOID > }, > (PyArray_GetItemFunc*)BOOL_getitem, > (PyArray_SetItemFunc*)BOOL_setitem, > (PyArray_CopySwapNFunc*)BOOL_copyswapn, > (PyArray_CopySwapFunc*)BOOL_copyswap, > (PyArray_CompareFunc*)BOOL_compare, > (PyArray_ArgFunc*)BOOL_argmax, > (PyArray_DotFunc*)BOOL_dot, > (PyArray_ScanFunc*)BOOL_scan, > (PyArray_FromStrFunc*)BOOL_fromstr, > (PyArray_NonzeroFunc*)BOOL_nonzero, > (PyArray_FillFunc*)((void *)0), > (PyArray_FillWithScalarFunc*)BOOL_fillwithscalar, > { > ((void *)0), ((void *)0), ((void *)0) > }, > { > ((void *)0), ((void *)0), ((void *)0) > }, > ((void *)0), > (PyArray_ScalarKindFunc*)((void *)0), > ((void *)0), > ((void *)0), > (PyArray_FastClipFunc*)BOOL_fastclip, > (PyArray_FastPutmaskFunc*)BOOL_fastputmask, > (PyArray_FastTakeFunc*)BOOL_fasttake >}; > > > > >static PyArray_Descr BOOL_Descr = { > 1, &PyArrayDescr_Type, > &PyBoolArrType_Type, > NPY_GENBOOLLTR, > NPY_BOOLLTR, > '|', > 0, > NPY_BOOL, > 1*sizeof(npy_bool), > ((size_t) &((struct {char c; npy_bool v;} *)0)->v), > ((void *)0), > ((void *)0), > ((void *)0), > &_PyBool_ArrFuncs, > ((void *)0), >}; ># 3717 "numpy/core/src/multiarray/arraytypes.c.src" >static PyArray_ArrFuncs _PyByte_ArrFuncs = { > { > (PyArray_VectorUnaryFunc*)BYTE_to_BOOL, > (PyArray_VectorUnaryFunc*)BYTE_to_BYTE, > (PyArray_VectorUnaryFunc*)BYTE_to_UBYTE, > (PyArray_VectorUnaryFunc*)BYTE_to_SHORT, > (PyArray_VectorUnaryFunc*)BYTE_to_USHORT, > (PyArray_VectorUnaryFunc*)BYTE_to_INT, > (PyArray_VectorUnaryFunc*)BYTE_to_UINT, > (PyArray_VectorUnaryFunc*)BYTE_to_LONG, > (PyArray_VectorUnaryFunc*)BYTE_to_ULONG, > (PyArray_VectorUnaryFunc*)BYTE_to_LONGLONG, > (PyArray_VectorUnaryFunc*)BYTE_to_ULONGLONG, > (PyArray_VectorUnaryFunc*)BYTE_to_FLOAT, > (PyArray_VectorUnaryFunc*)BYTE_to_DOUBLE, > (PyArray_VectorUnaryFunc*)BYTE_to_LONGDOUBLE, > (PyArray_VectorUnaryFunc*)BYTE_to_CFLOAT, > (PyArray_VectorUnaryFunc*)BYTE_to_CDOUBLE, > (PyArray_VectorUnaryFunc*)BYTE_to_CLONGDOUBLE, > (PyArray_VectorUnaryFunc*)BYTE_to_OBJECT, > (PyArray_VectorUnaryFunc*)BYTE_to_STRING, > (PyArray_VectorUnaryFunc*)BYTE_to_UNICODE, > (PyArray_VectorUnaryFunc*)BYTE_to_VOID > }, > (PyArray_GetItemFunc*)BYTE_getitem, > (PyArray_SetItemFunc*)BYTE_setitem, > (PyArray_CopySwapNFunc*)BYTE_copyswapn, > (PyArray_CopySwapFunc*)BYTE_copyswap, > (PyArray_CompareFunc*)BYTE_compare, > (PyArray_ArgFunc*)BYTE_argmax, > (PyArray_DotFunc*)BYTE_dot, > (PyArray_ScanFunc*)BYTE_scan, > (PyArray_FromStrFunc*)BYTE_fromstr, > (PyArray_NonzeroFunc*)BYTE_nonzero, > (PyArray_FillFunc*)BYTE_fill, > (PyArray_FillWithScalarFunc*)BYTE_fillwithscalar, > { > ((void *)0), ((void *)0), ((void *)0) > }, > { > ((void *)0), ((void *)0), ((void *)0) > }, > ((void *)0), > (PyArray_ScalarKindFunc*)((void *)0), > ((void *)0), > ((void *)0), > (PyArray_FastClipFunc*)BYTE_fastclip, > (PyArray_FastPutmaskFunc*)BYTE_fastputmask, > (PyArray_FastTakeFunc*)BYTE_fasttake >}; > > > > >static PyArray_Descr BYTE_Descr = { > 1, &PyArrayDescr_Type, > &PyByteArrType_Type, > NPY_SIGNEDLTR, > NPY_BYTELTR, > '|', > 0, > NPY_BYTE, > 1*sizeof(npy_byte), > ((size_t) &((struct {char c; npy_byte v;} *)0)->v), > ((void *)0), > ((void *)0), > ((void *)0), > &_PyByte_ArrFuncs, > ((void *)0), >}; ># 3717 "numpy/core/src/multiarray/arraytypes.c.src" >static PyArray_ArrFuncs _PyUByte_ArrFuncs = { > { > (PyArray_VectorUnaryFunc*)UBYTE_to_BOOL, > (PyArray_VectorUnaryFunc*)UBYTE_to_BYTE, > (PyArray_VectorUnaryFunc*)UBYTE_to_UBYTE, > (PyArray_VectorUnaryFunc*)UBYTE_to_SHORT, > (PyArray_VectorUnaryFunc*)UBYTE_to_USHORT, > (PyArray_VectorUnaryFunc*)UBYTE_to_INT, > (PyArray_VectorUnaryFunc*)UBYTE_to_UINT, > (PyArray_VectorUnaryFunc*)UBYTE_to_LONG, > (PyArray_VectorUnaryFunc*)UBYTE_to_ULONG, > (PyArray_VectorUnaryFunc*)UBYTE_to_LONGLONG, > (PyArray_VectorUnaryFunc*)UBYTE_to_ULONGLONG, > (PyArray_VectorUnaryFunc*)UBYTE_to_FLOAT, > (PyArray_VectorUnaryFunc*)UBYTE_to_DOUBLE, > (PyArray_VectorUnaryFunc*)UBYTE_to_LONGDOUBLE, > (PyArray_VectorUnaryFunc*)UBYTE_to_CFLOAT, > (PyArray_VectorUnaryFunc*)UBYTE_to_CDOUBLE, > (PyArray_VectorUnaryFunc*)UBYTE_to_CLONGDOUBLE, > (PyArray_VectorUnaryFunc*)UBYTE_to_OBJECT, > (PyArray_VectorUnaryFunc*)UBYTE_to_STRING, > (PyArray_VectorUnaryFunc*)UBYTE_to_UNICODE, > (PyArray_VectorUnaryFunc*)UBYTE_to_VOID > }, > (PyArray_GetItemFunc*)UBYTE_getitem, > (PyArray_SetItemFunc*)UBYTE_setitem, > (PyArray_CopySwapNFunc*)UBYTE_copyswapn, > (PyArray_CopySwapFunc*)UBYTE_copyswap, > (PyArray_CompareFunc*)UBYTE_compare, > (PyArray_ArgFunc*)UBYTE_argmax, > (PyArray_DotFunc*)UBYTE_dot, > (PyArray_ScanFunc*)UBYTE_scan, > (PyArray_FromStrFunc*)UBYTE_fromstr, > (PyArray_NonzeroFunc*)UBYTE_nonzero, > (PyArray_FillFunc*)UBYTE_fill, > (PyArray_FillWithScalarFunc*)UBYTE_fillwithscalar, > { > ((void *)0), ((void *)0), ((void *)0) > }, > { > ((void *)0), ((void *)0), ((void *)0) > }, > ((void *)0), > (PyArray_ScalarKindFunc*)((void *)0), > ((void *)0), > ((void *)0), > (PyArray_FastClipFunc*)UBYTE_fastclip, > (PyArray_FastPutmaskFunc*)UBYTE_fastputmask, > (PyArray_FastTakeFunc*)UBYTE_fasttake >}; > > > > >static PyArray_Descr UBYTE_Descr = { > 1, &PyArrayDescr_Type, > &PyUByteArrType_Type, > NPY_UNSIGNEDLTR, > NPY_UBYTELTR, > '|', > 0, > NPY_UBYTE, > 1*sizeof(npy_ubyte), > ((size_t) &((struct {char c; npy_ubyte v;} *)0)->v), > ((void *)0), > ((void *)0), > ((void *)0), > &_PyUByte_ArrFuncs, > ((void *)0), >}; ># 3717 "numpy/core/src/multiarray/arraytypes.c.src" >static PyArray_ArrFuncs _PyShort_ArrFuncs = { > { > (PyArray_VectorUnaryFunc*)SHORT_to_BOOL, > (PyArray_VectorUnaryFunc*)SHORT_to_BYTE, > (PyArray_VectorUnaryFunc*)SHORT_to_UBYTE, > (PyArray_VectorUnaryFunc*)SHORT_to_SHORT, > (PyArray_VectorUnaryFunc*)SHORT_to_USHORT, > (PyArray_VectorUnaryFunc*)SHORT_to_INT, > (PyArray_VectorUnaryFunc*)SHORT_to_UINT, > (PyArray_VectorUnaryFunc*)SHORT_to_LONG, > (PyArray_VectorUnaryFunc*)SHORT_to_ULONG, > (PyArray_VectorUnaryFunc*)SHORT_to_LONGLONG, > (PyArray_VectorUnaryFunc*)SHORT_to_ULONGLONG, > (PyArray_VectorUnaryFunc*)SHORT_to_FLOAT, > (PyArray_VectorUnaryFunc*)SHORT_to_DOUBLE, > (PyArray_VectorUnaryFunc*)SHORT_to_LONGDOUBLE, > (PyArray_VectorUnaryFunc*)SHORT_to_CFLOAT, > (PyArray_VectorUnaryFunc*)SHORT_to_CDOUBLE, > (PyArray_VectorUnaryFunc*)SHORT_to_CLONGDOUBLE, > (PyArray_VectorUnaryFunc*)SHORT_to_OBJECT, > (PyArray_VectorUnaryFunc*)SHORT_to_STRING, > (PyArray_VectorUnaryFunc*)SHORT_to_UNICODE, > (PyArray_VectorUnaryFunc*)SHORT_to_VOID > }, > (PyArray_GetItemFunc*)SHORT_getitem, > (PyArray_SetItemFunc*)SHORT_setitem, > (PyArray_CopySwapNFunc*)SHORT_copyswapn, > (PyArray_CopySwapFunc*)SHORT_copyswap, > (PyArray_CompareFunc*)SHORT_compare, > (PyArray_ArgFunc*)SHORT_argmax, > (PyArray_DotFunc*)SHORT_dot, > (PyArray_ScanFunc*)SHORT_scan, > (PyArray_FromStrFunc*)SHORT_fromstr, > (PyArray_NonzeroFunc*)SHORT_nonzero, > (PyArray_FillFunc*)SHORT_fill, > (PyArray_FillWithScalarFunc*)SHORT_fillwithscalar, > { > ((void *)0), ((void *)0), ((void *)0) > }, > { > ((void *)0), ((void *)0), ((void *)0) > }, > ((void *)0), > (PyArray_ScalarKindFunc*)((void *)0), > ((void *)0), > ((void *)0), > (PyArray_FastClipFunc*)SHORT_fastclip, > (PyArray_FastPutmaskFunc*)SHORT_fastputmask, > (PyArray_FastTakeFunc*)SHORT_fasttake >}; > > > > >static PyArray_Descr SHORT_Descr = { > 1, &PyArrayDescr_Type, > &PyShortArrType_Type, > NPY_SIGNEDLTR, > NPY_SHORTLTR, > '=', > 0, > NPY_SHORT, > 1*sizeof(short), > ((size_t) &((struct {char c; short v;} *)0)->v), > ((void *)0), > ((void *)0), > ((void *)0), > &_PyShort_ArrFuncs, > ((void *)0), >}; ># 3717 "numpy/core/src/multiarray/arraytypes.c.src" >static PyArray_ArrFuncs _PyUShort_ArrFuncs = { > { > (PyArray_VectorUnaryFunc*)USHORT_to_BOOL, > (PyArray_VectorUnaryFunc*)USHORT_to_BYTE, > (PyArray_VectorUnaryFunc*)USHORT_to_UBYTE, > (PyArray_VectorUnaryFunc*)USHORT_to_SHORT, > (PyArray_VectorUnaryFunc*)USHORT_to_USHORT, > (PyArray_VectorUnaryFunc*)USHORT_to_INT, > (PyArray_VectorUnaryFunc*)USHORT_to_UINT, > (PyArray_VectorUnaryFunc*)USHORT_to_LONG, > (PyArray_VectorUnaryFunc*)USHORT_to_ULONG, > (PyArray_VectorUnaryFunc*)USHORT_to_LONGLONG, > (PyArray_VectorUnaryFunc*)USHORT_to_ULONGLONG, > (PyArray_VectorUnaryFunc*)USHORT_to_FLOAT, > (PyArray_VectorUnaryFunc*)USHORT_to_DOUBLE, > (PyArray_VectorUnaryFunc*)USHORT_to_LONGDOUBLE, > (PyArray_VectorUnaryFunc*)USHORT_to_CFLOAT, > (PyArray_VectorUnaryFunc*)USHORT_to_CDOUBLE, > (PyArray_VectorUnaryFunc*)USHORT_to_CLONGDOUBLE, > (PyArray_VectorUnaryFunc*)USHORT_to_OBJECT, > (PyArray_VectorUnaryFunc*)USHORT_to_STRING, > (PyArray_VectorUnaryFunc*)USHORT_to_UNICODE, > (PyArray_VectorUnaryFunc*)USHORT_to_VOID > }, > (PyArray_GetItemFunc*)USHORT_getitem, > (PyArray_SetItemFunc*)USHORT_setitem, > (PyArray_CopySwapNFunc*)USHORT_copyswapn, > (PyArray_CopySwapFunc*)USHORT_copyswap, > (PyArray_CompareFunc*)USHORT_compare, > (PyArray_ArgFunc*)USHORT_argmax, > (PyArray_DotFunc*)USHORT_dot, > (PyArray_ScanFunc*)USHORT_scan, > (PyArray_FromStrFunc*)USHORT_fromstr, > (PyArray_NonzeroFunc*)USHORT_nonzero, > (PyArray_FillFunc*)USHORT_fill, > (PyArray_FillWithScalarFunc*)USHORT_fillwithscalar, > { > ((void *)0), ((void *)0), ((void *)0) > }, > { > ((void *)0), ((void *)0), ((void *)0) > }, > ((void *)0), > (PyArray_ScalarKindFunc*)((void *)0), > ((void *)0), > ((void *)0), > (PyArray_FastClipFunc*)USHORT_fastclip, > (PyArray_FastPutmaskFunc*)USHORT_fastputmask, > (PyArray_FastTakeFunc*)USHORT_fasttake >}; > > > > >static PyArray_Descr USHORT_Descr = { > 1, &PyArrayDescr_Type, > &PyUShortArrType_Type, > NPY_UNSIGNEDLTR, > NPY_USHORTLTR, > '=', > 0, > NPY_USHORT, > 1*sizeof(npy_ushort), > ((size_t) &((struct {char c; npy_ushort v;} *)0)->v), > ((void *)0), > ((void *)0), > ((void *)0), > &_PyUShort_ArrFuncs, > ((void *)0), >}; ># 3717 "numpy/core/src/multiarray/arraytypes.c.src" >static PyArray_ArrFuncs _PyInt_ArrFuncs = { > { > (PyArray_VectorUnaryFunc*)INT_to_BOOL, > (PyArray_VectorUnaryFunc*)INT_to_BYTE, > (PyArray_VectorUnaryFunc*)INT_to_UBYTE, > (PyArray_VectorUnaryFunc*)INT_to_SHORT, > (PyArray_VectorUnaryFunc*)INT_to_USHORT, > (PyArray_VectorUnaryFunc*)INT_to_INT, > (PyArray_VectorUnaryFunc*)INT_to_UINT, > (PyArray_VectorUnaryFunc*)INT_to_LONG, > (PyArray_VectorUnaryFunc*)INT_to_ULONG, > (PyArray_VectorUnaryFunc*)INT_to_LONGLONG, > (PyArray_VectorUnaryFunc*)INT_to_ULONGLONG, > (PyArray_VectorUnaryFunc*)INT_to_FLOAT, > (PyArray_VectorUnaryFunc*)INT_to_DOUBLE, > (PyArray_VectorUnaryFunc*)INT_to_LONGDOUBLE, > (PyArray_VectorUnaryFunc*)INT_to_CFLOAT, > (PyArray_VectorUnaryFunc*)INT_to_CDOUBLE, > (PyArray_VectorUnaryFunc*)INT_to_CLONGDOUBLE, > (PyArray_VectorUnaryFunc*)INT_to_OBJECT, > (PyArray_VectorUnaryFunc*)INT_to_STRING, > (PyArray_VectorUnaryFunc*)INT_to_UNICODE, > (PyArray_VectorUnaryFunc*)INT_to_VOID > }, > (PyArray_GetItemFunc*)INT_getitem, > (PyArray_SetItemFunc*)INT_setitem, > (PyArray_CopySwapNFunc*)INT_copyswapn, > (PyArray_CopySwapFunc*)INT_copyswap, > (PyArray_CompareFunc*)INT_compare, > (PyArray_ArgFunc*)INT_argmax, > (PyArray_DotFunc*)INT_dot, > (PyArray_ScanFunc*)INT_scan, > (PyArray_FromStrFunc*)INT_fromstr, > (PyArray_NonzeroFunc*)INT_nonzero, > (PyArray_FillFunc*)INT_fill, > (PyArray_FillWithScalarFunc*)INT_fillwithscalar, > { > ((void *)0), ((void *)0), ((void *)0) > }, > { > ((void *)0), ((void *)0), ((void *)0) > }, > ((void *)0), > (PyArray_ScalarKindFunc*)((void *)0), > ((void *)0), > ((void *)0), > (PyArray_FastClipFunc*)INT_fastclip, > (PyArray_FastPutmaskFunc*)INT_fastputmask, > (PyArray_FastTakeFunc*)INT_fasttake >}; > > > > >static PyArray_Descr INT_Descr = { > 1, &PyArrayDescr_Type, > &PyIntArrType_Type, > NPY_SIGNEDLTR, > NPY_INTLTR, > '=', > 0, > NPY_INT, > 1*sizeof(int), > ((size_t) &((struct {char c; int v;} *)0)->v), > ((void *)0), > ((void *)0), > ((void *)0), > &_PyInt_ArrFuncs, > ((void *)0), >}; ># 3717 "numpy/core/src/multiarray/arraytypes.c.src" >static PyArray_ArrFuncs _PyUInt_ArrFuncs = { > { > (PyArray_VectorUnaryFunc*)UINT_to_BOOL, > (PyArray_VectorUnaryFunc*)UINT_to_BYTE, > (PyArray_VectorUnaryFunc*)UINT_to_UBYTE, > (PyArray_VectorUnaryFunc*)UINT_to_SHORT, > (PyArray_VectorUnaryFunc*)UINT_to_USHORT, > (PyArray_VectorUnaryFunc*)UINT_to_INT, > (PyArray_VectorUnaryFunc*)UINT_to_UINT, > (PyArray_VectorUnaryFunc*)UINT_to_LONG, > (PyArray_VectorUnaryFunc*)UINT_to_ULONG, > (PyArray_VectorUnaryFunc*)UINT_to_LONGLONG, > (PyArray_VectorUnaryFunc*)UINT_to_ULONGLONG, > (PyArray_VectorUnaryFunc*)UINT_to_FLOAT, > (PyArray_VectorUnaryFunc*)UINT_to_DOUBLE, > (PyArray_VectorUnaryFunc*)UINT_to_LONGDOUBLE, > (PyArray_VectorUnaryFunc*)UINT_to_CFLOAT, > (PyArray_VectorUnaryFunc*)UINT_to_CDOUBLE, > (PyArray_VectorUnaryFunc*)UINT_to_CLONGDOUBLE, > (PyArray_VectorUnaryFunc*)UINT_to_OBJECT, > (PyArray_VectorUnaryFunc*)UINT_to_STRING, > (PyArray_VectorUnaryFunc*)UINT_to_UNICODE, > (PyArray_VectorUnaryFunc*)UINT_to_VOID > }, > (PyArray_GetItemFunc*)UINT_getitem, > (PyArray_SetItemFunc*)UINT_setitem, > (PyArray_CopySwapNFunc*)UINT_copyswapn, > (PyArray_CopySwapFunc*)UINT_copyswap, > (PyArray_CompareFunc*)UINT_compare, > (PyArray_ArgFunc*)UINT_argmax, > (PyArray_DotFunc*)UINT_dot, > (PyArray_ScanFunc*)UINT_scan, > (PyArray_FromStrFunc*)UINT_fromstr, > (PyArray_NonzeroFunc*)UINT_nonzero, > (PyArray_FillFunc*)UINT_fill, > (PyArray_FillWithScalarFunc*)UINT_fillwithscalar, > { > ((void *)0), ((void *)0), ((void *)0) > }, > { > ((void *)0), ((void *)0), ((void *)0) > }, > ((void *)0), > (PyArray_ScalarKindFunc*)((void *)0), > ((void *)0), > ((void *)0), > (PyArray_FastClipFunc*)UINT_fastclip, > (PyArray_FastPutmaskFunc*)UINT_fastputmask, > (PyArray_FastTakeFunc*)UINT_fasttake >}; > > > > >static PyArray_Descr UINT_Descr = { > 1, &PyArrayDescr_Type, > &PyUIntArrType_Type, > NPY_UNSIGNEDLTR, > NPY_UINTLTR, > '=', > 0, > NPY_UINT, > 1*sizeof(npy_uint), > ((size_t) &((struct {char c; npy_uint v;} *)0)->v), > ((void *)0), > ((void *)0), > ((void *)0), > &_PyUInt_ArrFuncs, > ((void *)0), >}; ># 3717 "numpy/core/src/multiarray/arraytypes.c.src" >static PyArray_ArrFuncs _PyLong_ArrFuncs = { > { > (PyArray_VectorUnaryFunc*)LONG_to_BOOL, > (PyArray_VectorUnaryFunc*)LONG_to_BYTE, > (PyArray_VectorUnaryFunc*)LONG_to_UBYTE, > (PyArray_VectorUnaryFunc*)LONG_to_SHORT, > (PyArray_VectorUnaryFunc*)LONG_to_USHORT, > (PyArray_VectorUnaryFunc*)LONG_to_INT, > (PyArray_VectorUnaryFunc*)LONG_to_UINT, > (PyArray_VectorUnaryFunc*)LONG_to_LONG, > (PyArray_VectorUnaryFunc*)LONG_to_ULONG, > (PyArray_VectorUnaryFunc*)LONG_to_LONGLONG, > (PyArray_VectorUnaryFunc*)LONG_to_ULONGLONG, > (PyArray_VectorUnaryFunc*)LONG_to_FLOAT, > (PyArray_VectorUnaryFunc*)LONG_to_DOUBLE, > (PyArray_VectorUnaryFunc*)LONG_to_LONGDOUBLE, > (PyArray_VectorUnaryFunc*)LONG_to_CFLOAT, > (PyArray_VectorUnaryFunc*)LONG_to_CDOUBLE, > (PyArray_VectorUnaryFunc*)LONG_to_CLONGDOUBLE, > (PyArray_VectorUnaryFunc*)LONG_to_OBJECT, > (PyArray_VectorUnaryFunc*)LONG_to_STRING, > (PyArray_VectorUnaryFunc*)LONG_to_UNICODE, > (PyArray_VectorUnaryFunc*)LONG_to_VOID > }, > (PyArray_GetItemFunc*)LONG_getitem, > (PyArray_SetItemFunc*)LONG_setitem, > (PyArray_CopySwapNFunc*)LONG_copyswapn, > (PyArray_CopySwapFunc*)LONG_copyswap, > (PyArray_CompareFunc*)LONG_compare, > (PyArray_ArgFunc*)LONG_argmax, > (PyArray_DotFunc*)LONG_dot, > (PyArray_ScanFunc*)LONG_scan, > (PyArray_FromStrFunc*)LONG_fromstr, > (PyArray_NonzeroFunc*)LONG_nonzero, > (PyArray_FillFunc*)LONG_fill, > (PyArray_FillWithScalarFunc*)LONG_fillwithscalar, > { > ((void *)0), ((void *)0), ((void *)0) > }, > { > ((void *)0), ((void *)0), ((void *)0) > }, > ((void *)0), > (PyArray_ScalarKindFunc*)((void *)0), > ((void *)0), > ((void *)0), > (PyArray_FastClipFunc*)LONG_fastclip, > (PyArray_FastPutmaskFunc*)LONG_fastputmask, > (PyArray_FastTakeFunc*)LONG_fasttake >}; > > > > >static PyArray_Descr LONG_Descr = { > 1, &PyArrayDescr_Type, > &PyLongArrType_Type, > NPY_SIGNEDLTR, > NPY_LONGLTR, > '=', > 0, > NPY_LONG, > 1*sizeof(long), > ((size_t) &((struct {char c; long v;} *)0)->v), > ((void *)0), > ((void *)0), > ((void *)0), > &_PyLong_ArrFuncs, > ((void *)0), >}; ># 3717 "numpy/core/src/multiarray/arraytypes.c.src" >static PyArray_ArrFuncs _PyULong_ArrFuncs = { > { > (PyArray_VectorUnaryFunc*)ULONG_to_BOOL, > (PyArray_VectorUnaryFunc*)ULONG_to_BYTE, > (PyArray_VectorUnaryFunc*)ULONG_to_UBYTE, > (PyArray_VectorUnaryFunc*)ULONG_to_SHORT, > (PyArray_VectorUnaryFunc*)ULONG_to_USHORT, > (PyArray_VectorUnaryFunc*)ULONG_to_INT, > (PyArray_VectorUnaryFunc*)ULONG_to_UINT, > (PyArray_VectorUnaryFunc*)ULONG_to_LONG, > (PyArray_VectorUnaryFunc*)ULONG_to_ULONG, > (PyArray_VectorUnaryFunc*)ULONG_to_LONGLONG, > (PyArray_VectorUnaryFunc*)ULONG_to_ULONGLONG, > (PyArray_VectorUnaryFunc*)ULONG_to_FLOAT, > (PyArray_VectorUnaryFunc*)ULONG_to_DOUBLE, > (PyArray_VectorUnaryFunc*)ULONG_to_LONGDOUBLE, > (PyArray_VectorUnaryFunc*)ULONG_to_CFLOAT, > (PyArray_VectorUnaryFunc*)ULONG_to_CDOUBLE, > (PyArray_VectorUnaryFunc*)ULONG_to_CLONGDOUBLE, > (PyArray_VectorUnaryFunc*)ULONG_to_OBJECT, > (PyArray_VectorUnaryFunc*)ULONG_to_STRING, > (PyArray_VectorUnaryFunc*)ULONG_to_UNICODE, > (PyArray_VectorUnaryFunc*)ULONG_to_VOID > }, > (PyArray_GetItemFunc*)ULONG_getitem, > (PyArray_SetItemFunc*)ULONG_setitem, > (PyArray_CopySwapNFunc*)ULONG_copyswapn, > (PyArray_CopySwapFunc*)ULONG_copyswap, > (PyArray_CompareFunc*)ULONG_compare, > (PyArray_ArgFunc*)ULONG_argmax, > (PyArray_DotFunc*)ULONG_dot, > (PyArray_ScanFunc*)ULONG_scan, > (PyArray_FromStrFunc*)ULONG_fromstr, > (PyArray_NonzeroFunc*)ULONG_nonzero, > (PyArray_FillFunc*)ULONG_fill, > (PyArray_FillWithScalarFunc*)ULONG_fillwithscalar, > { > ((void *)0), ((void *)0), ((void *)0) > }, > { > ((void *)0), ((void *)0), ((void *)0) > }, > ((void *)0), > (PyArray_ScalarKindFunc*)((void *)0), > ((void *)0), > ((void *)0), > (PyArray_FastClipFunc*)ULONG_fastclip, > (PyArray_FastPutmaskFunc*)ULONG_fastputmask, > (PyArray_FastTakeFunc*)ULONG_fasttake >}; > > > > >static PyArray_Descr ULONG_Descr = { > 1, &PyArrayDescr_Type, > &PyULongArrType_Type, > NPY_UNSIGNEDLTR, > NPY_ULONGLTR, > '=', > 0, > NPY_ULONG, > 1*sizeof(npy_ulong), > ((size_t) &((struct {char c; npy_ulong v;} *)0)->v), > ((void *)0), > ((void *)0), > ((void *)0), > &_PyULong_ArrFuncs, > ((void *)0), >}; ># 3717 "numpy/core/src/multiarray/arraytypes.c.src" >static PyArray_ArrFuncs _PyLongLong_ArrFuncs = { > { > (PyArray_VectorUnaryFunc*)LONGLONG_to_BOOL, > (PyArray_VectorUnaryFunc*)LONGLONG_to_BYTE, > (PyArray_VectorUnaryFunc*)LONGLONG_to_UBYTE, > (PyArray_VectorUnaryFunc*)LONGLONG_to_SHORT, > (PyArray_VectorUnaryFunc*)LONGLONG_to_USHORT, > (PyArray_VectorUnaryFunc*)LONGLONG_to_INT, > (PyArray_VectorUnaryFunc*)LONGLONG_to_UINT, > (PyArray_VectorUnaryFunc*)LONGLONG_to_LONG, > (PyArray_VectorUnaryFunc*)LONGLONG_to_ULONG, > (PyArray_VectorUnaryFunc*)LONGLONG_to_LONGLONG, > (PyArray_VectorUnaryFunc*)LONGLONG_to_ULONGLONG, > (PyArray_VectorUnaryFunc*)LONGLONG_to_FLOAT, > (PyArray_VectorUnaryFunc*)LONGLONG_to_DOUBLE, > (PyArray_VectorUnaryFunc*)LONGLONG_to_LONGDOUBLE, > (PyArray_VectorUnaryFunc*)LONGLONG_to_CFLOAT, > (PyArray_VectorUnaryFunc*)LONGLONG_to_CDOUBLE, > (PyArray_VectorUnaryFunc*)LONGLONG_to_CLONGDOUBLE, > (PyArray_VectorUnaryFunc*)LONGLONG_to_OBJECT, > (PyArray_VectorUnaryFunc*)LONGLONG_to_STRING, > (PyArray_VectorUnaryFunc*)LONGLONG_to_UNICODE, > (PyArray_VectorUnaryFunc*)LONGLONG_to_VOID > }, > (PyArray_GetItemFunc*)LONGLONG_getitem, > (PyArray_SetItemFunc*)LONGLONG_setitem, > (PyArray_CopySwapNFunc*)LONGLONG_copyswapn, > (PyArray_CopySwapFunc*)LONGLONG_copyswap, > (PyArray_CompareFunc*)LONGLONG_compare, > (PyArray_ArgFunc*)LONGLONG_argmax, > (PyArray_DotFunc*)LONGLONG_dot, > (PyArray_ScanFunc*)LONGLONG_scan, > (PyArray_FromStrFunc*)LONGLONG_fromstr, > (PyArray_NonzeroFunc*)LONGLONG_nonzero, > (PyArray_FillFunc*)LONGLONG_fill, > (PyArray_FillWithScalarFunc*)LONGLONG_fillwithscalar, > { > ((void *)0), ((void *)0), ((void *)0) > }, > { > ((void *)0), ((void *)0), ((void *)0) > }, > ((void *)0), > (PyArray_ScalarKindFunc*)((void *)0), > ((void *)0), > ((void *)0), > (PyArray_FastClipFunc*)LONGLONG_fastclip, > (PyArray_FastPutmaskFunc*)LONGLONG_fastputmask, > (PyArray_FastTakeFunc*)LONGLONG_fasttake >}; > > > > >static PyArray_Descr LONGLONG_Descr = { > 1, &PyArrayDescr_Type, > &PyLongLongArrType_Type, > NPY_SIGNEDLTR, > NPY_LONGLONGLTR, > '=', > 0, > NPY_LONGLONG, > 1*sizeof(npy_longlong), > ((size_t) &((struct {char c; npy_longlong v;} *)0)->v), > ((void *)0), > ((void *)0), > ((void *)0), > &_PyLongLong_ArrFuncs, > ((void *)0), >}; ># 3717 "numpy/core/src/multiarray/arraytypes.c.src" >static PyArray_ArrFuncs _PyULongLong_ArrFuncs = { > { > (PyArray_VectorUnaryFunc*)ULONGLONG_to_BOOL, > (PyArray_VectorUnaryFunc*)ULONGLONG_to_BYTE, > (PyArray_VectorUnaryFunc*)ULONGLONG_to_UBYTE, > (PyArray_VectorUnaryFunc*)ULONGLONG_to_SHORT, > (PyArray_VectorUnaryFunc*)ULONGLONG_to_USHORT, > (PyArray_VectorUnaryFunc*)ULONGLONG_to_INT, > (PyArray_VectorUnaryFunc*)ULONGLONG_to_UINT, > (PyArray_VectorUnaryFunc*)ULONGLONG_to_LONG, > (PyArray_VectorUnaryFunc*)ULONGLONG_to_ULONG, > (PyArray_VectorUnaryFunc*)ULONGLONG_to_LONGLONG, > (PyArray_VectorUnaryFunc*)ULONGLONG_to_ULONGLONG, > (PyArray_VectorUnaryFunc*)ULONGLONG_to_FLOAT, > (PyArray_VectorUnaryFunc*)ULONGLONG_to_DOUBLE, > (PyArray_VectorUnaryFunc*)ULONGLONG_to_LONGDOUBLE, > (PyArray_VectorUnaryFunc*)ULONGLONG_to_CFLOAT, > (PyArray_VectorUnaryFunc*)ULONGLONG_to_CDOUBLE, > (PyArray_VectorUnaryFunc*)ULONGLONG_to_CLONGDOUBLE, > (PyArray_VectorUnaryFunc*)ULONGLONG_to_OBJECT, > (PyArray_VectorUnaryFunc*)ULONGLONG_to_STRING, > (PyArray_VectorUnaryFunc*)ULONGLONG_to_UNICODE, > (PyArray_VectorUnaryFunc*)ULONGLONG_to_VOID > }, > (PyArray_GetItemFunc*)ULONGLONG_getitem, > (PyArray_SetItemFunc*)ULONGLONG_setitem, > (PyArray_CopySwapNFunc*)ULONGLONG_copyswapn, > (PyArray_CopySwapFunc*)ULONGLONG_copyswap, > (PyArray_CompareFunc*)ULONGLONG_compare, > (PyArray_ArgFunc*)ULONGLONG_argmax, > (PyArray_DotFunc*)ULONGLONG_dot, > (PyArray_ScanFunc*)ULONGLONG_scan, > (PyArray_FromStrFunc*)ULONGLONG_fromstr, > (PyArray_NonzeroFunc*)ULONGLONG_nonzero, > (PyArray_FillFunc*)ULONGLONG_fill, > (PyArray_FillWithScalarFunc*)ULONGLONG_fillwithscalar, > { > ((void *)0), ((void *)0), ((void *)0) > }, > { > ((void *)0), ((void *)0), ((void *)0) > }, > ((void *)0), > (PyArray_ScalarKindFunc*)((void *)0), > ((void *)0), > ((void *)0), > (PyArray_FastClipFunc*)ULONGLONG_fastclip, > (PyArray_FastPutmaskFunc*)ULONGLONG_fastputmask, > (PyArray_FastTakeFunc*)ULONGLONG_fasttake >}; > > > > >static PyArray_Descr ULONGLONG_Descr = { > 1, &PyArrayDescr_Type, > &PyULongLongArrType_Type, > NPY_UNSIGNEDLTR, > NPY_ULONGLONGLTR, > '=', > 0, > NPY_ULONGLONG, > 1*sizeof(npy_ulonglong), > ((size_t) &((struct {char c; npy_ulonglong v;} *)0)->v), > ((void *)0), > ((void *)0), > ((void *)0), > &_PyULongLong_ArrFuncs, > ((void *)0), >}; ># 3717 "numpy/core/src/multiarray/arraytypes.c.src" >static PyArray_ArrFuncs _PyHalf_ArrFuncs = { > { > (PyArray_VectorUnaryFunc*)HALF_to_BOOL, > (PyArray_VectorUnaryFunc*)HALF_to_BYTE, > (PyArray_VectorUnaryFunc*)HALF_to_UBYTE, > (PyArray_VectorUnaryFunc*)HALF_to_SHORT, > (PyArray_VectorUnaryFunc*)HALF_to_USHORT, > (PyArray_VectorUnaryFunc*)HALF_to_INT, > (PyArray_VectorUnaryFunc*)HALF_to_UINT, > (PyArray_VectorUnaryFunc*)HALF_to_LONG, > (PyArray_VectorUnaryFunc*)HALF_to_ULONG, > (PyArray_VectorUnaryFunc*)HALF_to_LONGLONG, > (PyArray_VectorUnaryFunc*)HALF_to_ULONGLONG, > (PyArray_VectorUnaryFunc*)HALF_to_FLOAT, > (PyArray_VectorUnaryFunc*)HALF_to_DOUBLE, > (PyArray_VectorUnaryFunc*)HALF_to_LONGDOUBLE, > (PyArray_VectorUnaryFunc*)HALF_to_CFLOAT, > (PyArray_VectorUnaryFunc*)HALF_to_CDOUBLE, > (PyArray_VectorUnaryFunc*)HALF_to_CLONGDOUBLE, > (PyArray_VectorUnaryFunc*)HALF_to_OBJECT, > (PyArray_VectorUnaryFunc*)HALF_to_STRING, > (PyArray_VectorUnaryFunc*)HALF_to_UNICODE, > (PyArray_VectorUnaryFunc*)HALF_to_VOID > }, > (PyArray_GetItemFunc*)HALF_getitem, > (PyArray_SetItemFunc*)HALF_setitem, > (PyArray_CopySwapNFunc*)HALF_copyswapn, > (PyArray_CopySwapFunc*)HALF_copyswap, > (PyArray_CompareFunc*)HALF_compare, > (PyArray_ArgFunc*)HALF_argmax, > (PyArray_DotFunc*)HALF_dot, > (PyArray_ScanFunc*)HALF_scan, > (PyArray_FromStrFunc*)HALF_fromstr, > (PyArray_NonzeroFunc*)HALF_nonzero, > (PyArray_FillFunc*)HALF_fill, > (PyArray_FillWithScalarFunc*)HALF_fillwithscalar, > { > ((void *)0), ((void *)0), ((void *)0) > }, > { > ((void *)0), ((void *)0), ((void *)0) > }, > ((void *)0), > (PyArray_ScalarKindFunc*)((void *)0), > ((void *)0), > ((void *)0), > (PyArray_FastClipFunc*)HALF_fastclip, > (PyArray_FastPutmaskFunc*)HALF_fastputmask, > (PyArray_FastTakeFunc*)HALF_fasttake >}; > > > > >static PyArray_Descr HALF_Descr = { > 1, &PyArrayDescr_Type, > &PyHalfArrType_Type, > NPY_FLOATINGLTR, > NPY_HALFLTR, > '=', > 0, > NPY_HALF, > 1*sizeof(npy_half), > ((size_t) &((struct {char c; npy_half v;} *)0)->v), > ((void *)0), > ((void *)0), > ((void *)0), > &_PyHalf_ArrFuncs, > ((void *)0), >}; ># 3717 "numpy/core/src/multiarray/arraytypes.c.src" >static PyArray_ArrFuncs _PyFloat_ArrFuncs = { > { > (PyArray_VectorUnaryFunc*)FLOAT_to_BOOL, > (PyArray_VectorUnaryFunc*)FLOAT_to_BYTE, > (PyArray_VectorUnaryFunc*)FLOAT_to_UBYTE, > (PyArray_VectorUnaryFunc*)FLOAT_to_SHORT, > (PyArray_VectorUnaryFunc*)FLOAT_to_USHORT, > (PyArray_VectorUnaryFunc*)FLOAT_to_INT, > (PyArray_VectorUnaryFunc*)FLOAT_to_UINT, > (PyArray_VectorUnaryFunc*)FLOAT_to_LONG, > (PyArray_VectorUnaryFunc*)FLOAT_to_ULONG, > (PyArray_VectorUnaryFunc*)FLOAT_to_LONGLONG, > (PyArray_VectorUnaryFunc*)FLOAT_to_ULONGLONG, > (PyArray_VectorUnaryFunc*)FLOAT_to_FLOAT, > (PyArray_VectorUnaryFunc*)FLOAT_to_DOUBLE, > (PyArray_VectorUnaryFunc*)FLOAT_to_LONGDOUBLE, > (PyArray_VectorUnaryFunc*)FLOAT_to_CFLOAT, > (PyArray_VectorUnaryFunc*)FLOAT_to_CDOUBLE, > (PyArray_VectorUnaryFunc*)FLOAT_to_CLONGDOUBLE, > (PyArray_VectorUnaryFunc*)FLOAT_to_OBJECT, > (PyArray_VectorUnaryFunc*)FLOAT_to_STRING, > (PyArray_VectorUnaryFunc*)FLOAT_to_UNICODE, > (PyArray_VectorUnaryFunc*)FLOAT_to_VOID > }, > (PyArray_GetItemFunc*)FLOAT_getitem, > (PyArray_SetItemFunc*)FLOAT_setitem, > (PyArray_CopySwapNFunc*)FLOAT_copyswapn, > (PyArray_CopySwapFunc*)FLOAT_copyswap, > (PyArray_CompareFunc*)FLOAT_compare, > (PyArray_ArgFunc*)FLOAT_argmax, > (PyArray_DotFunc*)FLOAT_dot, > (PyArray_ScanFunc*)FLOAT_scan, > (PyArray_FromStrFunc*)FLOAT_fromstr, > (PyArray_NonzeroFunc*)FLOAT_nonzero, > (PyArray_FillFunc*)FLOAT_fill, > (PyArray_FillWithScalarFunc*)FLOAT_fillwithscalar, > { > ((void *)0), ((void *)0), ((void *)0) > }, > { > ((void *)0), ((void *)0), ((void *)0) > }, > ((void *)0), > (PyArray_ScalarKindFunc*)((void *)0), > ((void *)0), > ((void *)0), > (PyArray_FastClipFunc*)FLOAT_fastclip, > (PyArray_FastPutmaskFunc*)FLOAT_fastputmask, > (PyArray_FastTakeFunc*)FLOAT_fasttake >}; > > > > >static PyArray_Descr FLOAT_Descr = { > 1, &PyArrayDescr_Type, > &PyFloatArrType_Type, > NPY_FLOATINGLTR, > NPY_FLOATLTR, > '=', > 0, > NPY_FLOAT, > 1*sizeof(float), > ((size_t) &((struct {char c; float v;} *)0)->v), > ((void *)0), > ((void *)0), > ((void *)0), > &_PyFloat_ArrFuncs, > ((void *)0), >}; ># 3717 "numpy/core/src/multiarray/arraytypes.c.src" >static PyArray_ArrFuncs _PyDouble_ArrFuncs = { > { > (PyArray_VectorUnaryFunc*)DOUBLE_to_BOOL, > (PyArray_VectorUnaryFunc*)DOUBLE_to_BYTE, > (PyArray_VectorUnaryFunc*)DOUBLE_to_UBYTE, > (PyArray_VectorUnaryFunc*)DOUBLE_to_SHORT, > (PyArray_VectorUnaryFunc*)DOUBLE_to_USHORT, > (PyArray_VectorUnaryFunc*)DOUBLE_to_INT, > (PyArray_VectorUnaryFunc*)DOUBLE_to_UINT, > (PyArray_VectorUnaryFunc*)DOUBLE_to_LONG, > (PyArray_VectorUnaryFunc*)DOUBLE_to_ULONG, > (PyArray_VectorUnaryFunc*)DOUBLE_to_LONGLONG, > (PyArray_VectorUnaryFunc*)DOUBLE_to_ULONGLONG, > (PyArray_VectorUnaryFunc*)DOUBLE_to_FLOAT, > (PyArray_VectorUnaryFunc*)DOUBLE_to_DOUBLE, > (PyArray_VectorUnaryFunc*)DOUBLE_to_LONGDOUBLE, > (PyArray_VectorUnaryFunc*)DOUBLE_to_CFLOAT, > (PyArray_VectorUnaryFunc*)DOUBLE_to_CDOUBLE, > (PyArray_VectorUnaryFunc*)DOUBLE_to_CLONGDOUBLE, > (PyArray_VectorUnaryFunc*)DOUBLE_to_OBJECT, > (PyArray_VectorUnaryFunc*)DOUBLE_to_STRING, > (PyArray_VectorUnaryFunc*)DOUBLE_to_UNICODE, > (PyArray_VectorUnaryFunc*)DOUBLE_to_VOID > }, > (PyArray_GetItemFunc*)DOUBLE_getitem, > (PyArray_SetItemFunc*)DOUBLE_setitem, > (PyArray_CopySwapNFunc*)DOUBLE_copyswapn, > (PyArray_CopySwapFunc*)DOUBLE_copyswap, > (PyArray_CompareFunc*)DOUBLE_compare, > (PyArray_ArgFunc*)DOUBLE_argmax, > (PyArray_DotFunc*)DOUBLE_dot, > (PyArray_ScanFunc*)DOUBLE_scan, > (PyArray_FromStrFunc*)DOUBLE_fromstr, > (PyArray_NonzeroFunc*)DOUBLE_nonzero, > (PyArray_FillFunc*)DOUBLE_fill, > (PyArray_FillWithScalarFunc*)DOUBLE_fillwithscalar, > { > ((void *)0), ((void *)0), ((void *)0) > }, > { > ((void *)0), ((void *)0), ((void *)0) > }, > ((void *)0), > (PyArray_ScalarKindFunc*)((void *)0), > ((void *)0), > ((void *)0), > (PyArray_FastClipFunc*)DOUBLE_fastclip, > (PyArray_FastPutmaskFunc*)DOUBLE_fastputmask, > (PyArray_FastTakeFunc*)DOUBLE_fasttake >}; > > > > >static PyArray_Descr DOUBLE_Descr = { > 1, &PyArrayDescr_Type, > &PyDoubleArrType_Type, > NPY_FLOATINGLTR, > NPY_DOUBLELTR, > '=', > 0, > NPY_DOUBLE, > 1*sizeof(double), > ((size_t) &((struct {char c; double v;} *)0)->v), > ((void *)0), > ((void *)0), > ((void *)0), > &_PyDouble_ArrFuncs, > ((void *)0), >}; ># 3717 "numpy/core/src/multiarray/arraytypes.c.src" >static PyArray_ArrFuncs _PyLongDouble_ArrFuncs = { > { > (PyArray_VectorUnaryFunc*)LONGDOUBLE_to_BOOL, > (PyArray_VectorUnaryFunc*)LONGDOUBLE_to_BYTE, > (PyArray_VectorUnaryFunc*)LONGDOUBLE_to_UBYTE, > (PyArray_VectorUnaryFunc*)LONGDOUBLE_to_SHORT, > (PyArray_VectorUnaryFunc*)LONGDOUBLE_to_USHORT, > (PyArray_VectorUnaryFunc*)LONGDOUBLE_to_INT, > (PyArray_VectorUnaryFunc*)LONGDOUBLE_to_UINT, > (PyArray_VectorUnaryFunc*)LONGDOUBLE_to_LONG, > (PyArray_VectorUnaryFunc*)LONGDOUBLE_to_ULONG, > (PyArray_VectorUnaryFunc*)LONGDOUBLE_to_LONGLONG, > (PyArray_VectorUnaryFunc*)LONGDOUBLE_to_ULONGLONG, > (PyArray_VectorUnaryFunc*)LONGDOUBLE_to_FLOAT, > (PyArray_VectorUnaryFunc*)LONGDOUBLE_to_DOUBLE, > (PyArray_VectorUnaryFunc*)LONGDOUBLE_to_LONGDOUBLE, > (PyArray_VectorUnaryFunc*)LONGDOUBLE_to_CFLOAT, > (PyArray_VectorUnaryFunc*)LONGDOUBLE_to_CDOUBLE, > (PyArray_VectorUnaryFunc*)LONGDOUBLE_to_CLONGDOUBLE, > (PyArray_VectorUnaryFunc*)LONGDOUBLE_to_OBJECT, > (PyArray_VectorUnaryFunc*)LONGDOUBLE_to_STRING, > (PyArray_VectorUnaryFunc*)LONGDOUBLE_to_UNICODE, > (PyArray_VectorUnaryFunc*)LONGDOUBLE_to_VOID > }, > (PyArray_GetItemFunc*)LONGDOUBLE_getitem, > (PyArray_SetItemFunc*)LONGDOUBLE_setitem, > (PyArray_CopySwapNFunc*)LONGDOUBLE_copyswapn, > (PyArray_CopySwapFunc*)LONGDOUBLE_copyswap, > (PyArray_CompareFunc*)LONGDOUBLE_compare, > (PyArray_ArgFunc*)LONGDOUBLE_argmax, > (PyArray_DotFunc*)LONGDOUBLE_dot, > (PyArray_ScanFunc*)LONGDOUBLE_scan, > (PyArray_FromStrFunc*)LONGDOUBLE_fromstr, > (PyArray_NonzeroFunc*)LONGDOUBLE_nonzero, > (PyArray_FillFunc*)LONGDOUBLE_fill, > (PyArray_FillWithScalarFunc*)LONGDOUBLE_fillwithscalar, > { > ((void *)0), ((void *)0), ((void *)0) > }, > { > ((void *)0), ((void *)0), ((void *)0) > }, > ((void *)0), > (PyArray_ScalarKindFunc*)((void *)0), > ((void *)0), > ((void *)0), > (PyArray_FastClipFunc*)LONGDOUBLE_fastclip, > (PyArray_FastPutmaskFunc*)LONGDOUBLE_fastputmask, > (PyArray_FastTakeFunc*)LONGDOUBLE_fasttake >}; > > > > >static PyArray_Descr LONGDOUBLE_Descr = { > 1, &PyArrayDescr_Type, > &PyLongDoubleArrType_Type, > NPY_FLOATINGLTR, > NPY_LONGDOUBLELTR, > '=', > 0, > NPY_LONGDOUBLE, > 1*sizeof(npy_longdouble), > ((size_t) &((struct {char c; npy_longdouble v;} *)0)->v), > ((void *)0), > ((void *)0), > ((void *)0), > &_PyLongDouble_ArrFuncs, > ((void *)0), >}; ># 3717 "numpy/core/src/multiarray/arraytypes.c.src" >static PyArray_ArrFuncs _PyCFloat_ArrFuncs = { > { > (PyArray_VectorUnaryFunc*)CFLOAT_to_BOOL, > (PyArray_VectorUnaryFunc*)CFLOAT_to_BYTE, > (PyArray_VectorUnaryFunc*)CFLOAT_to_UBYTE, > (PyArray_VectorUnaryFunc*)CFLOAT_to_SHORT, > (PyArray_VectorUnaryFunc*)CFLOAT_to_USHORT, > (PyArray_VectorUnaryFunc*)CFLOAT_to_INT, > (PyArray_VectorUnaryFunc*)CFLOAT_to_UINT, > (PyArray_VectorUnaryFunc*)CFLOAT_to_LONG, > (PyArray_VectorUnaryFunc*)CFLOAT_to_ULONG, > (PyArray_VectorUnaryFunc*)CFLOAT_to_LONGLONG, > (PyArray_VectorUnaryFunc*)CFLOAT_to_ULONGLONG, > (PyArray_VectorUnaryFunc*)CFLOAT_to_FLOAT, > (PyArray_VectorUnaryFunc*)CFLOAT_to_DOUBLE, > (PyArray_VectorUnaryFunc*)CFLOAT_to_LONGDOUBLE, > (PyArray_VectorUnaryFunc*)CFLOAT_to_CFLOAT, > (PyArray_VectorUnaryFunc*)CFLOAT_to_CDOUBLE, > (PyArray_VectorUnaryFunc*)CFLOAT_to_CLONGDOUBLE, > (PyArray_VectorUnaryFunc*)CFLOAT_to_OBJECT, > (PyArray_VectorUnaryFunc*)CFLOAT_to_STRING, > (PyArray_VectorUnaryFunc*)CFLOAT_to_UNICODE, > (PyArray_VectorUnaryFunc*)CFLOAT_to_VOID > }, > (PyArray_GetItemFunc*)CFLOAT_getitem, > (PyArray_SetItemFunc*)CFLOAT_setitem, > (PyArray_CopySwapNFunc*)CFLOAT_copyswapn, > (PyArray_CopySwapFunc*)CFLOAT_copyswap, > (PyArray_CompareFunc*)CFLOAT_compare, > (PyArray_ArgFunc*)CFLOAT_argmax, > (PyArray_DotFunc*)CFLOAT_dot, > (PyArray_ScanFunc*)((void *)0), > (PyArray_FromStrFunc*)((void *)0), > (PyArray_NonzeroFunc*)CFLOAT_nonzero, > (PyArray_FillFunc*)CFLOAT_fill, > (PyArray_FillWithScalarFunc*)CFLOAT_fillwithscalar, > { > ((void *)0), ((void *)0), ((void *)0) > }, > { > ((void *)0), ((void *)0), ((void *)0) > }, > ((void *)0), > (PyArray_ScalarKindFunc*)((void *)0), > ((void *)0), > ((void *)0), > (PyArray_FastClipFunc*)CFLOAT_fastclip, > (PyArray_FastPutmaskFunc*)CFLOAT_fastputmask, > (PyArray_FastTakeFunc*)CFLOAT_fasttake >}; > > > > >static PyArray_Descr CFLOAT_Descr = { > 1, &PyArrayDescr_Type, > &PyCFloatArrType_Type, > NPY_COMPLEXLTR, > NPY_CFLOATLTR, > '=', > 0, > NPY_CFLOAT, > 2*sizeof(float), > ((size_t) &((struct {char c; float v;} *)0)->v), > ((void *)0), > ((void *)0), > ((void *)0), > &_PyCFloat_ArrFuncs, > ((void *)0), >}; ># 3717 "numpy/core/src/multiarray/arraytypes.c.src" >static PyArray_ArrFuncs _PyCDouble_ArrFuncs = { > { > (PyArray_VectorUnaryFunc*)CDOUBLE_to_BOOL, > (PyArray_VectorUnaryFunc*)CDOUBLE_to_BYTE, > (PyArray_VectorUnaryFunc*)CDOUBLE_to_UBYTE, > (PyArray_VectorUnaryFunc*)CDOUBLE_to_SHORT, > (PyArray_VectorUnaryFunc*)CDOUBLE_to_USHORT, > (PyArray_VectorUnaryFunc*)CDOUBLE_to_INT, > (PyArray_VectorUnaryFunc*)CDOUBLE_to_UINT, > (PyArray_VectorUnaryFunc*)CDOUBLE_to_LONG, > (PyArray_VectorUnaryFunc*)CDOUBLE_to_ULONG, > (PyArray_VectorUnaryFunc*)CDOUBLE_to_LONGLONG, > (PyArray_VectorUnaryFunc*)CDOUBLE_to_ULONGLONG, > (PyArray_VectorUnaryFunc*)CDOUBLE_to_FLOAT, > (PyArray_VectorUnaryFunc*)CDOUBLE_to_DOUBLE, > (PyArray_VectorUnaryFunc*)CDOUBLE_to_LONGDOUBLE, > (PyArray_VectorUnaryFunc*)CDOUBLE_to_CFLOAT, > (PyArray_VectorUnaryFunc*)CDOUBLE_to_CDOUBLE, > (PyArray_VectorUnaryFunc*)CDOUBLE_to_CLONGDOUBLE, > (PyArray_VectorUnaryFunc*)CDOUBLE_to_OBJECT, > (PyArray_VectorUnaryFunc*)CDOUBLE_to_STRING, > (PyArray_VectorUnaryFunc*)CDOUBLE_to_UNICODE, > (PyArray_VectorUnaryFunc*)CDOUBLE_to_VOID > }, > (PyArray_GetItemFunc*)CDOUBLE_getitem, > (PyArray_SetItemFunc*)CDOUBLE_setitem, > (PyArray_CopySwapNFunc*)CDOUBLE_copyswapn, > (PyArray_CopySwapFunc*)CDOUBLE_copyswap, > (PyArray_CompareFunc*)CDOUBLE_compare, > (PyArray_ArgFunc*)CDOUBLE_argmax, > (PyArray_DotFunc*)CDOUBLE_dot, > (PyArray_ScanFunc*)((void *)0), > (PyArray_FromStrFunc*)((void *)0), > (PyArray_NonzeroFunc*)CDOUBLE_nonzero, > (PyArray_FillFunc*)CDOUBLE_fill, > (PyArray_FillWithScalarFunc*)CDOUBLE_fillwithscalar, > { > ((void *)0), ((void *)0), ((void *)0) > }, > { > ((void *)0), ((void *)0), ((void *)0) > }, > ((void *)0), > (PyArray_ScalarKindFunc*)((void *)0), > ((void *)0), > ((void *)0), > (PyArray_FastClipFunc*)CDOUBLE_fastclip, > (PyArray_FastPutmaskFunc*)CDOUBLE_fastputmask, > (PyArray_FastTakeFunc*)CDOUBLE_fasttake >}; > > > > >static PyArray_Descr CDOUBLE_Descr = { > 1, &PyArrayDescr_Type, > &PyCDoubleArrType_Type, > NPY_COMPLEXLTR, > NPY_CDOUBLELTR, > '=', > 0, > NPY_CDOUBLE, > 2*sizeof(double), > ((size_t) &((struct {char c; double v;} *)0)->v), > ((void *)0), > ((void *)0), > ((void *)0), > &_PyCDouble_ArrFuncs, > ((void *)0), >}; ># 3717 "numpy/core/src/multiarray/arraytypes.c.src" >static PyArray_ArrFuncs _PyCLongDouble_ArrFuncs = { > { > (PyArray_VectorUnaryFunc*)CLONGDOUBLE_to_BOOL, > (PyArray_VectorUnaryFunc*)CLONGDOUBLE_to_BYTE, > (PyArray_VectorUnaryFunc*)CLONGDOUBLE_to_UBYTE, > (PyArray_VectorUnaryFunc*)CLONGDOUBLE_to_SHORT, > (PyArray_VectorUnaryFunc*)CLONGDOUBLE_to_USHORT, > (PyArray_VectorUnaryFunc*)CLONGDOUBLE_to_INT, > (PyArray_VectorUnaryFunc*)CLONGDOUBLE_to_UINT, > (PyArray_VectorUnaryFunc*)CLONGDOUBLE_to_LONG, > (PyArray_VectorUnaryFunc*)CLONGDOUBLE_to_ULONG, > (PyArray_VectorUnaryFunc*)CLONGDOUBLE_to_LONGLONG, > (PyArray_VectorUnaryFunc*)CLONGDOUBLE_to_ULONGLONG, > (PyArray_VectorUnaryFunc*)CLONGDOUBLE_to_FLOAT, > (PyArray_VectorUnaryFunc*)CLONGDOUBLE_to_DOUBLE, > (PyArray_VectorUnaryFunc*)CLONGDOUBLE_to_LONGDOUBLE, > (PyArray_VectorUnaryFunc*)CLONGDOUBLE_to_CFLOAT, > (PyArray_VectorUnaryFunc*)CLONGDOUBLE_to_CDOUBLE, > (PyArray_VectorUnaryFunc*)CLONGDOUBLE_to_CLONGDOUBLE, > (PyArray_VectorUnaryFunc*)CLONGDOUBLE_to_OBJECT, > (PyArray_VectorUnaryFunc*)CLONGDOUBLE_to_STRING, > (PyArray_VectorUnaryFunc*)CLONGDOUBLE_to_UNICODE, > (PyArray_VectorUnaryFunc*)CLONGDOUBLE_to_VOID > }, > (PyArray_GetItemFunc*)CLONGDOUBLE_getitem, > (PyArray_SetItemFunc*)CLONGDOUBLE_setitem, > (PyArray_CopySwapNFunc*)CLONGDOUBLE_copyswapn, > (PyArray_CopySwapFunc*)CLONGDOUBLE_copyswap, > (PyArray_CompareFunc*)CLONGDOUBLE_compare, > (PyArray_ArgFunc*)CLONGDOUBLE_argmax, > (PyArray_DotFunc*)CLONGDOUBLE_dot, > (PyArray_ScanFunc*)((void *)0), > (PyArray_FromStrFunc*)((void *)0), > (PyArray_NonzeroFunc*)CLONGDOUBLE_nonzero, > (PyArray_FillFunc*)CLONGDOUBLE_fill, > (PyArray_FillWithScalarFunc*)CLONGDOUBLE_fillwithscalar, > { > ((void *)0), ((void *)0), ((void *)0) > }, > { > ((void *)0), ((void *)0), ((void *)0) > }, > ((void *)0), > (PyArray_ScalarKindFunc*)((void *)0), > ((void *)0), > ((void *)0), > (PyArray_FastClipFunc*)CLONGDOUBLE_fastclip, > (PyArray_FastPutmaskFunc*)CLONGDOUBLE_fastputmask, > (PyArray_FastTakeFunc*)CLONGDOUBLE_fasttake >}; > > > > >static PyArray_Descr CLONGDOUBLE_Descr = { > 1, &PyArrayDescr_Type, > &PyCLongDoubleArrType_Type, > NPY_COMPLEXLTR, > NPY_CLONGDOUBLELTR, > '=', > 0, > NPY_CLONGDOUBLE, > 2*sizeof(npy_longdouble), > ((size_t) &((struct {char c; npy_longdouble v;} *)0)->v), > ((void *)0), > ((void *)0), > ((void *)0), > &_PyCLongDouble_ArrFuncs, > ((void *)0), >}; ># 3717 "numpy/core/src/multiarray/arraytypes.c.src" >static PyArray_ArrFuncs _PyObject_ArrFuncs = { > { > (PyArray_VectorUnaryFunc*)OBJECT_to_BOOL, > (PyArray_VectorUnaryFunc*)OBJECT_to_BYTE, > (PyArray_VectorUnaryFunc*)OBJECT_to_UBYTE, > (PyArray_VectorUnaryFunc*)OBJECT_to_SHORT, > (PyArray_VectorUnaryFunc*)OBJECT_to_USHORT, > (PyArray_VectorUnaryFunc*)OBJECT_to_INT, > (PyArray_VectorUnaryFunc*)OBJECT_to_UINT, > (PyArray_VectorUnaryFunc*)OBJECT_to_LONG, > (PyArray_VectorUnaryFunc*)OBJECT_to_ULONG, > (PyArray_VectorUnaryFunc*)OBJECT_to_LONGLONG, > (PyArray_VectorUnaryFunc*)OBJECT_to_ULONGLONG, > (PyArray_VectorUnaryFunc*)OBJECT_to_FLOAT, > (PyArray_VectorUnaryFunc*)OBJECT_to_DOUBLE, > (PyArray_VectorUnaryFunc*)OBJECT_to_LONGDOUBLE, > (PyArray_VectorUnaryFunc*)OBJECT_to_CFLOAT, > (PyArray_VectorUnaryFunc*)OBJECT_to_CDOUBLE, > (PyArray_VectorUnaryFunc*)OBJECT_to_CLONGDOUBLE, > (PyArray_VectorUnaryFunc*)OBJECT_to_OBJECT, > (PyArray_VectorUnaryFunc*)OBJECT_to_STRING, > (PyArray_VectorUnaryFunc*)OBJECT_to_UNICODE, > (PyArray_VectorUnaryFunc*)OBJECT_to_VOID > }, > (PyArray_GetItemFunc*)OBJECT_getitem, > (PyArray_SetItemFunc*)OBJECT_setitem, > (PyArray_CopySwapNFunc*)OBJECT_copyswapn, > (PyArray_CopySwapFunc*)OBJECT_copyswap, > (PyArray_CompareFunc*)OBJECT_compare, > (PyArray_ArgFunc*)OBJECT_argmax, > (PyArray_DotFunc*)OBJECT_dot, > (PyArray_ScanFunc*)((void *)0), > (PyArray_FromStrFunc*)((void *)0), > (PyArray_NonzeroFunc*)OBJECT_nonzero, > (PyArray_FillFunc*)OBJECT_fill, > (PyArray_FillWithScalarFunc*)OBJECT_fillwithscalar, > { > ((void *)0), ((void *)0), ((void *)0) > }, > { > ((void *)0), ((void *)0), ((void *)0) > }, > ((void *)0), > (PyArray_ScalarKindFunc*)((void *)0), > ((void *)0), > ((void *)0), > (PyArray_FastClipFunc*)((void *)0), > (PyArray_FastPutmaskFunc*)((void *)0), > (PyArray_FastTakeFunc*)((void *)0) >}; > > > > >static PyArray_Descr OBJECT_Descr = { > 1, &PyArrayDescr_Type, > &PyObjectArrType_Type, > NPY_OBJECTLTR, > NPY_OBJECTLTR, > '|', > (0x02 | 0x20 | 0x04 | 0x01 | 0x08 | 0x10), > NPY_OBJECT, > 1*sizeof(PyObject *), > ((size_t) &((struct {char c; PyObject * v;} *)0)->v), > ((void *)0), > ((void *)0), > ((void *)0), > &_PyObject_ArrFuncs, > ((void *)0), >}; ># 3717 "numpy/core/src/multiarray/arraytypes.c.src" >static PyArray_ArrFuncs _PyDatetime_ArrFuncs = { > { > (PyArray_VectorUnaryFunc*)DATETIME_to_BOOL, > (PyArray_VectorUnaryFunc*)DATETIME_to_BYTE, > (PyArray_VectorUnaryFunc*)DATETIME_to_UBYTE, > (PyArray_VectorUnaryFunc*)DATETIME_to_SHORT, > (PyArray_VectorUnaryFunc*)DATETIME_to_USHORT, > (PyArray_VectorUnaryFunc*)DATETIME_to_INT, > (PyArray_VectorUnaryFunc*)DATETIME_to_UINT, > (PyArray_VectorUnaryFunc*)DATETIME_to_LONG, > (PyArray_VectorUnaryFunc*)DATETIME_to_ULONG, > (PyArray_VectorUnaryFunc*)DATETIME_to_LONGLONG, > (PyArray_VectorUnaryFunc*)DATETIME_to_ULONGLONG, > (PyArray_VectorUnaryFunc*)DATETIME_to_FLOAT, > (PyArray_VectorUnaryFunc*)DATETIME_to_DOUBLE, > (PyArray_VectorUnaryFunc*)DATETIME_to_LONGDOUBLE, > (PyArray_VectorUnaryFunc*)DATETIME_to_CFLOAT, > (PyArray_VectorUnaryFunc*)DATETIME_to_CDOUBLE, > (PyArray_VectorUnaryFunc*)DATETIME_to_CLONGDOUBLE, > (PyArray_VectorUnaryFunc*)DATETIME_to_OBJECT, > (PyArray_VectorUnaryFunc*)DATETIME_to_STRING, > (PyArray_VectorUnaryFunc*)DATETIME_to_UNICODE, > (PyArray_VectorUnaryFunc*)DATETIME_to_VOID > }, > (PyArray_GetItemFunc*)DATETIME_getitem, > (PyArray_SetItemFunc*)DATETIME_setitem, > (PyArray_CopySwapNFunc*)DATETIME_copyswapn, > (PyArray_CopySwapFunc*)DATETIME_copyswap, > (PyArray_CompareFunc*)DATETIME_compare, > (PyArray_ArgFunc*)DATETIME_argmax, > (PyArray_DotFunc*)DATETIME_dot, > (PyArray_ScanFunc*)((void *)0), > (PyArray_FromStrFunc*)DATETIME_fromstr, > (PyArray_NonzeroFunc*)DATETIME_nonzero, > (PyArray_FillFunc*)DATETIME_fill, > (PyArray_FillWithScalarFunc*)DATETIME_fillwithscalar, > { > ((void *)0), ((void *)0), ((void *)0) > }, > { > ((void *)0), ((void *)0), ((void *)0) > }, > ((void *)0), > (PyArray_ScalarKindFunc*)((void *)0), > ((void *)0), > ((void *)0), > (PyArray_FastClipFunc*)DATETIME_fastclip, > (PyArray_FastPutmaskFunc*)DATETIME_fastputmask, > (PyArray_FastTakeFunc*)DATETIME_fasttake >}; > > > > >static PyArray_Descr DATETIME_Descr = { > 1, &PyArrayDescr_Type, > &PyDatetimeArrType_Type, > NPY_DATETIMELTR, > NPY_DATETIMELTR, > '=', > 0, > NPY_DATETIME, > 1*sizeof(npy_datetime), > ((size_t) &((struct {char c; npy_datetime v;} *)0)->v), > ((void *)0), > ((void *)0), > ((void *)0), > &_PyDatetime_ArrFuncs, > ((void *)0), >}; ># 3717 "numpy/core/src/multiarray/arraytypes.c.src" >static PyArray_ArrFuncs _PyTimedelta_ArrFuncs = { > { > (PyArray_VectorUnaryFunc*)TIMEDELTA_to_BOOL, > (PyArray_VectorUnaryFunc*)TIMEDELTA_to_BYTE, > (PyArray_VectorUnaryFunc*)TIMEDELTA_to_UBYTE, > (PyArray_VectorUnaryFunc*)TIMEDELTA_to_SHORT, > (PyArray_VectorUnaryFunc*)TIMEDELTA_to_USHORT, > (PyArray_VectorUnaryFunc*)TIMEDELTA_to_INT, > (PyArray_VectorUnaryFunc*)TIMEDELTA_to_UINT, > (PyArray_VectorUnaryFunc*)TIMEDELTA_to_LONG, > (PyArray_VectorUnaryFunc*)TIMEDELTA_to_ULONG, > (PyArray_VectorUnaryFunc*)TIMEDELTA_to_LONGLONG, > (PyArray_VectorUnaryFunc*)TIMEDELTA_to_ULONGLONG, > (PyArray_VectorUnaryFunc*)TIMEDELTA_to_FLOAT, > (PyArray_VectorUnaryFunc*)TIMEDELTA_to_DOUBLE, > (PyArray_VectorUnaryFunc*)TIMEDELTA_to_LONGDOUBLE, > (PyArray_VectorUnaryFunc*)TIMEDELTA_to_CFLOAT, > (PyArray_VectorUnaryFunc*)TIMEDELTA_to_CDOUBLE, > (PyArray_VectorUnaryFunc*)TIMEDELTA_to_CLONGDOUBLE, > (PyArray_VectorUnaryFunc*)TIMEDELTA_to_OBJECT, > (PyArray_VectorUnaryFunc*)TIMEDELTA_to_STRING, > (PyArray_VectorUnaryFunc*)TIMEDELTA_to_UNICODE, > (PyArray_VectorUnaryFunc*)TIMEDELTA_to_VOID > }, > (PyArray_GetItemFunc*)TIMEDELTA_getitem, > (PyArray_SetItemFunc*)TIMEDELTA_setitem, > (PyArray_CopySwapNFunc*)TIMEDELTA_copyswapn, > (PyArray_CopySwapFunc*)TIMEDELTA_copyswap, > (PyArray_CompareFunc*)TIMEDELTA_compare, > (PyArray_ArgFunc*)TIMEDELTA_argmax, > (PyArray_DotFunc*)TIMEDELTA_dot, > (PyArray_ScanFunc*)((void *)0), > (PyArray_FromStrFunc*)TIMEDELTA_fromstr, > (PyArray_NonzeroFunc*)TIMEDELTA_nonzero, > (PyArray_FillFunc*)TIMEDELTA_fill, > (PyArray_FillWithScalarFunc*)TIMEDELTA_fillwithscalar, > { > ((void *)0), ((void *)0), ((void *)0) > }, > { > ((void *)0), ((void *)0), ((void *)0) > }, > ((void *)0), > (PyArray_ScalarKindFunc*)((void *)0), > ((void *)0), > ((void *)0), > (PyArray_FastClipFunc*)TIMEDELTA_fastclip, > (PyArray_FastPutmaskFunc*)TIMEDELTA_fastputmask, > (PyArray_FastTakeFunc*)TIMEDELTA_fasttake >}; > > > > >static PyArray_Descr TIMEDELTA_Descr = { > 1, &PyArrayDescr_Type, > &PyTimedeltaArrType_Type, > NPY_TIMEDELTALTR, > NPY_TIMEDELTALTR, > '=', > 0, > NPY_TIMEDELTA, > 1*sizeof(npy_timedelta), > ((size_t) &((struct {char c; npy_timedelta v;} *)0)->v), > ((void *)0), > ((void *)0), > ((void *)0), > &_PyTimedelta_ArrFuncs, > ((void *)0), >}; > > > >static void >_init_datetime_descr(PyArray_Descr *descr) >{ > PyArray_DatetimeMetaData *dt_data; > PyObject *cobj; > > dt_data = PyMem_Malloc(sizeof(PyArray_DatetimeMetaData)); > dt_data->base = NPY_FR_us; > dt_data->num = 1; > dt_data->den = 1; > dt_data->events = 1; > > > > > > cobj = NpyCapsule_FromVoidPtr((void *)dt_data, simple_capsule_dtor); > descr->metadata = PyDict_New(); > PyDict_SetItemString(descr->metadata, "__frequency__", cobj); > do { if ( --((PyObject*)(cobj))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(cobj)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(cobj)))); } while (0); > >} > > >static char _letter_to_num[128]; > >static PyArray_Descr *_builtin_descrs[] = { > &BOOL_Descr, > &BYTE_Descr, > &UBYTE_Descr, > &SHORT_Descr, > &USHORT_Descr, > &INT_Descr, > &UINT_Descr, > &LONG_Descr, > &ULONG_Descr, > &LONGLONG_Descr, > &ULONGLONG_Descr, > &FLOAT_Descr, > &DOUBLE_Descr, > &LONGDOUBLE_Descr, > &CFLOAT_Descr, > &CDOUBLE_Descr, > &CLONGDOUBLE_Descr, > &OBJECT_Descr, > &STRING_Descr, > &UNICODE_Descr, > &VOID_Descr, > &DATETIME_Descr, > &TIMEDELTA_Descr, > &HALF_Descr >}; > > > > >static PyArray_Descr * >PyArray_DescrFromType(int type) >{ > PyArray_Descr *ret = ((void *)0); > > if (type < NPY_NTYPES) { > ret = _builtin_descrs[type]; > } > else if (type == NPY_NOTYPE) { > > > > > > return ((void *)0); > } > else if ((type == NPY_CHAR) || (type == NPY_CHARLTR)) { > ret = PyArray_DescrNew(_builtin_descrs[NPY_STRING]); > if (ret == ((void *)0)) { > return ((void *)0); > } > ret->elsize = 1; > ret->type = NPY_CHARLTR; > return ret; > } > else if ((((type) >= NPY_USERDEF) && ((type) < NPY_USERDEF+ NPY_NUMUSERTYPES))) { > ret = userdescrs[type - NPY_USERDEF]; > } > else { > int num = NPY_NTYPES; > if (type < 128) { > num = (int) _letter_to_num[type]; > } > if (num >= NPY_NTYPES) { > ret = ((void *)0); > } > else { > ret = _builtin_descrs[num]; > } > } > if (ret == ((void *)0)) { > PyErr_SetString(PyExc_ValueError, > "Invalid data-type for array"); > } > else { > ( ((PyObject*)(ret))->ob_refcnt++); > } > > > if ((((type) >=NPY_DATETIME) && ((type) <=NPY_TIMEDELTA))) { > if (ret->metadata == ((void *)0)) { > _init_datetime_descr(ret); > } > } > > return ret; >} ># 3912 "numpy/core/src/multiarray/arraytypes.c.src" >static int >set_typeinfo(PyObject *dict) >{ > PyObject *infodict, *s; > int i; > > PyArray_Descr *dtype; > PyObject *cobj, *key; ># 3929 "numpy/core/src/multiarray/arraytypes.c.src" ># 3933 "numpy/core/src/multiarray/arraytypes.c.src" > dtype = _builtin_descrs[NPY_BOOL]; > if (dtype->f->castdict == ((void *)0)) { > dtype->f->castdict = PyDict_New(); > if (dtype->f->castdict == ((void *)0)) { > return -1; > } > } > key = PyInt_FromLong(NPY_HALF); > if (key == ((void *)0)) { > return -1; > } > cobj = NpyCapsule_FromVoidPtr((void *)BOOL_to_HALF, ((void *)0)); > if (cobj == ((void *)0)) { > do { if ( --((PyObject*)(key))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(key)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(key)))); } while (0); > return -1; > } > if (PyDict_SetItem(dtype->f->castdict, key, cobj) < 0) { > do { if ( --((PyObject*)(key))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(key)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(key)))); } while (0); > do { if ( --((PyObject*)(cobj))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(cobj)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(cobj)))); } while (0); > return -1; > } > do { if ( --((PyObject*)(key))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(key)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(key)))); } while (0); > do { if ( --((PyObject*)(cobj))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(cobj)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(cobj)))); } while (0); ># 3933 "numpy/core/src/multiarray/arraytypes.c.src" > dtype = _builtin_descrs[NPY_BOOL]; > if (dtype->f->castdict == ((void *)0)) { > dtype->f->castdict = PyDict_New(); > if (dtype->f->castdict == ((void *)0)) { > return -1; > } > } > key = PyInt_FromLong(NPY_DATETIME); > if (key == ((void *)0)) { > return -1; > } > cobj = NpyCapsule_FromVoidPtr((void *)BOOL_to_DATETIME, ((void *)0)); > if (cobj == ((void *)0)) { > do { if ( --((PyObject*)(key))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(key)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(key)))); } while (0); > return -1; > } > if (PyDict_SetItem(dtype->f->castdict, key, cobj) < 0) { > do { if ( --((PyObject*)(key))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(key)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(key)))); } while (0); > do { if ( --((PyObject*)(cobj))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(cobj)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(cobj)))); } while (0); > return -1; > } > do { if ( --((PyObject*)(key))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(key)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(key)))); } while (0); > do { if ( --((PyObject*)(cobj))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(cobj)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(cobj)))); } while (0); ># 3933 "numpy/core/src/multiarray/arraytypes.c.src" > dtype = _builtin_descrs[NPY_BOOL]; > if (dtype->f->castdict == ((void *)0)) { > dtype->f->castdict = PyDict_New(); > if (dtype->f->castdict == ((void *)0)) { > return -1; > } > } > key = PyInt_FromLong(NPY_TIMEDELTA); > if (key == ((void *)0)) { > return -1; > } > cobj = NpyCapsule_FromVoidPtr((void *)BOOL_to_TIMEDELTA, ((void *)0)); > if (cobj == ((void *)0)) { > do { if ( --((PyObject*)(key))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(key)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(key)))); } while (0); > return -1; > } > if (PyDict_SetItem(dtype->f->castdict, key, cobj) < 0) { > do { if ( --((PyObject*)(key))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(key)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(key)))); } while (0); > do { if ( --((PyObject*)(cobj))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(cobj)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(cobj)))); } while (0); > return -1; > } > do { if ( --((PyObject*)(key))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(key)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(key)))); } while (0); > do { if ( --((PyObject*)(cobj))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(cobj)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(cobj)))); } while (0); ># 3929 "numpy/core/src/multiarray/arraytypes.c.src" ># 3933 "numpy/core/src/multiarray/arraytypes.c.src" > dtype = _builtin_descrs[NPY_BYTE]; > if (dtype->f->castdict == ((void *)0)) { > dtype->f->castdict = PyDict_New(); > if (dtype->f->castdict == ((void *)0)) { > return -1; > } > } > key = PyInt_FromLong(NPY_HALF); > if (key == ((void *)0)) { > return -1; > } > cobj = NpyCapsule_FromVoidPtr((void *)BYTE_to_HALF, ((void *)0)); > if (cobj == ((void *)0)) { > do { if ( --((PyObject*)(key))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(key)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(key)))); } while (0); > return -1; > } > if (PyDict_SetItem(dtype->f->castdict, key, cobj) < 0) { > do { if ( --((PyObject*)(key))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(key)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(key)))); } while (0); > do { if ( --((PyObject*)(cobj))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(cobj)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(cobj)))); } while (0); > return -1; > } > do { if ( --((PyObject*)(key))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(key)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(key)))); } while (0); > do { if ( --((PyObject*)(cobj))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(cobj)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(cobj)))); } while (0); ># 3933 "numpy/core/src/multiarray/arraytypes.c.src" > dtype = _builtin_descrs[NPY_BYTE]; > if (dtype->f->castdict == ((void *)0)) { > dtype->f->castdict = PyDict_New(); > if (dtype->f->castdict == ((void *)0)) { > return -1; > } > } > key = PyInt_FromLong(NPY_DATETIME); > if (key == ((void *)0)) { > return -1; > } > cobj = NpyCapsule_FromVoidPtr((void *)BYTE_to_DATETIME, ((void *)0)); > if (cobj == ((void *)0)) { > do { if ( --((PyObject*)(key))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(key)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(key)))); } while (0); > return -1; > } > if (PyDict_SetItem(dtype->f->castdict, key, cobj) < 0) { > do { if ( --((PyObject*)(key))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(key)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(key)))); } while (0); > do { if ( --((PyObject*)(cobj))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(cobj)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(cobj)))); } while (0); > return -1; > } > do { if ( --((PyObject*)(key))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(key)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(key)))); } while (0); > do { if ( --((PyObject*)(cobj))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(cobj)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(cobj)))); } while (0); ># 3933 "numpy/core/src/multiarray/arraytypes.c.src" > dtype = _builtin_descrs[NPY_BYTE]; > if (dtype->f->castdict == ((void *)0)) { > dtype->f->castdict = PyDict_New(); > if (dtype->f->castdict == ((void *)0)) { > return -1; > } > } > key = PyInt_FromLong(NPY_TIMEDELTA); > if (key == ((void *)0)) { > return -1; > } > cobj = NpyCapsule_FromVoidPtr((void *)BYTE_to_TIMEDELTA, ((void *)0)); > if (cobj == ((void *)0)) { > do { if ( --((PyObject*)(key))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(key)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(key)))); } while (0); > return -1; > } > if (PyDict_SetItem(dtype->f->castdict, key, cobj) < 0) { > do { if ( --((PyObject*)(key))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(key)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(key)))); } while (0); > do { if ( --((PyObject*)(cobj))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(cobj)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(cobj)))); } while (0); > return -1; > } > do { if ( --((PyObject*)(key))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(key)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(key)))); } while (0); > do { if ( --((PyObject*)(cobj))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(cobj)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(cobj)))); } while (0); ># 3929 "numpy/core/src/multiarray/arraytypes.c.src" ># 3933 "numpy/core/src/multiarray/arraytypes.c.src" > dtype = _builtin_descrs[NPY_UBYTE]; > if (dtype->f->castdict == ((void *)0)) { > dtype->f->castdict = PyDict_New(); > if (dtype->f->castdict == ((void *)0)) { > return -1; > } > } > key = PyInt_FromLong(NPY_HALF); > if (key == ((void *)0)) { > return -1; > } > cobj = NpyCapsule_FromVoidPtr((void *)UBYTE_to_HALF, ((void *)0)); > if (cobj == ((void *)0)) { > do { if ( --((PyObject*)(key))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(key)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(key)))); } while (0); > return -1; > } > if (PyDict_SetItem(dtype->f->castdict, key, cobj) < 0) { > do { if ( --((PyObject*)(key))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(key)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(key)))); } while (0); > do { if ( --((PyObject*)(cobj))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(cobj)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(cobj)))); } while (0); > return -1; > } > do { if ( --((PyObject*)(key))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(key)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(key)))); } while (0); > do { if ( --((PyObject*)(cobj))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(cobj)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(cobj)))); } while (0); ># 3933 "numpy/core/src/multiarray/arraytypes.c.src" > dtype = _builtin_descrs[NPY_UBYTE]; > if (dtype->f->castdict == ((void *)0)) { > dtype->f->castdict = PyDict_New(); > if (dtype->f->castdict == ((void *)0)) { > return -1; > } > } > key = PyInt_FromLong(NPY_DATETIME); > if (key == ((void *)0)) { > return -1; > } > cobj = NpyCapsule_FromVoidPtr((void *)UBYTE_to_DATETIME, ((void *)0)); > if (cobj == ((void *)0)) { > do { if ( --((PyObject*)(key))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(key)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(key)))); } while (0); > return -1; > } > if (PyDict_SetItem(dtype->f->castdict, key, cobj) < 0) { > do { if ( --((PyObject*)(key))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(key)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(key)))); } while (0); > do { if ( --((PyObject*)(cobj))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(cobj)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(cobj)))); } while (0); > return -1; > } > do { if ( --((PyObject*)(key))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(key)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(key)))); } while (0); > do { if ( --((PyObject*)(cobj))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(cobj)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(cobj)))); } while (0); ># 3933 "numpy/core/src/multiarray/arraytypes.c.src" > dtype = _builtin_descrs[NPY_UBYTE]; > if (dtype->f->castdict == ((void *)0)) { > dtype->f->castdict = PyDict_New(); > if (dtype->f->castdict == ((void *)0)) { > return -1; > } > } > key = PyInt_FromLong(NPY_TIMEDELTA); > if (key == ((void *)0)) { > return -1; > } > cobj = NpyCapsule_FromVoidPtr((void *)UBYTE_to_TIMEDELTA, ((void *)0)); > if (cobj == ((void *)0)) { > do { if ( --((PyObject*)(key))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(key)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(key)))); } while (0); > return -1; > } > if (PyDict_SetItem(dtype->f->castdict, key, cobj) < 0) { > do { if ( --((PyObject*)(key))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(key)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(key)))); } while (0); > do { if ( --((PyObject*)(cobj))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(cobj)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(cobj)))); } while (0); > return -1; > } > do { if ( --((PyObject*)(key))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(key)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(key)))); } while (0); > do { if ( --((PyObject*)(cobj))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(cobj)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(cobj)))); } while (0); ># 3929 "numpy/core/src/multiarray/arraytypes.c.src" ># 3933 "numpy/core/src/multiarray/arraytypes.c.src" > dtype = _builtin_descrs[NPY_SHORT]; > if (dtype->f->castdict == ((void *)0)) { > dtype->f->castdict = PyDict_New(); > if (dtype->f->castdict == ((void *)0)) { > return -1; > } > } > key = PyInt_FromLong(NPY_HALF); > if (key == ((void *)0)) { > return -1; > } > cobj = NpyCapsule_FromVoidPtr((void *)SHORT_to_HALF, ((void *)0)); > if (cobj == ((void *)0)) { > do { if ( --((PyObject*)(key))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(key)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(key)))); } while (0); > return -1; > } > if (PyDict_SetItem(dtype->f->castdict, key, cobj) < 0) { > do { if ( --((PyObject*)(key))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(key)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(key)))); } while (0); > do { if ( --((PyObject*)(cobj))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(cobj)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(cobj)))); } while (0); > return -1; > } > do { if ( --((PyObject*)(key))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(key)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(key)))); } while (0); > do { if ( --((PyObject*)(cobj))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(cobj)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(cobj)))); } while (0); ># 3933 "numpy/core/src/multiarray/arraytypes.c.src" > dtype = _builtin_descrs[NPY_SHORT]; > if (dtype->f->castdict == ((void *)0)) { > dtype->f->castdict = PyDict_New(); > if (dtype->f->castdict == ((void *)0)) { > return -1; > } > } > key = PyInt_FromLong(NPY_DATETIME); > if (key == ((void *)0)) { > return -1; > } > cobj = NpyCapsule_FromVoidPtr((void *)SHORT_to_DATETIME, ((void *)0)); > if (cobj == ((void *)0)) { > do { if ( --((PyObject*)(key))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(key)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(key)))); } while (0); > return -1; > } > if (PyDict_SetItem(dtype->f->castdict, key, cobj) < 0) { > do { if ( --((PyObject*)(key))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(key)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(key)))); } while (0); > do { if ( --((PyObject*)(cobj))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(cobj)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(cobj)))); } while (0); > return -1; > } > do { if ( --((PyObject*)(key))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(key)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(key)))); } while (0); > do { if ( --((PyObject*)(cobj))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(cobj)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(cobj)))); } while (0); ># 3933 "numpy/core/src/multiarray/arraytypes.c.src" > dtype = _builtin_descrs[NPY_SHORT]; > if (dtype->f->castdict == ((void *)0)) { > dtype->f->castdict = PyDict_New(); > if (dtype->f->castdict == ((void *)0)) { > return -1; > } > } > key = PyInt_FromLong(NPY_TIMEDELTA); > if (key == ((void *)0)) { > return -1; > } > cobj = NpyCapsule_FromVoidPtr((void *)SHORT_to_TIMEDELTA, ((void *)0)); > if (cobj == ((void *)0)) { > do { if ( --((PyObject*)(key))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(key)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(key)))); } while (0); > return -1; > } > if (PyDict_SetItem(dtype->f->castdict, key, cobj) < 0) { > do { if ( --((PyObject*)(key))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(key)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(key)))); } while (0); > do { if ( --((PyObject*)(cobj))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(cobj)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(cobj)))); } while (0); > return -1; > } > do { if ( --((PyObject*)(key))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(key)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(key)))); } while (0); > do { if ( --((PyObject*)(cobj))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(cobj)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(cobj)))); } while (0); ># 3929 "numpy/core/src/multiarray/arraytypes.c.src" ># 3933 "numpy/core/src/multiarray/arraytypes.c.src" > dtype = _builtin_descrs[NPY_USHORT]; > if (dtype->f->castdict == ((void *)0)) { > dtype->f->castdict = PyDict_New(); > if (dtype->f->castdict == ((void *)0)) { > return -1; > } > } > key = PyInt_FromLong(NPY_HALF); > if (key == ((void *)0)) { > return -1; > } > cobj = NpyCapsule_FromVoidPtr((void *)USHORT_to_HALF, ((void *)0)); > if (cobj == ((void *)0)) { > do { if ( --((PyObject*)(key))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(key)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(key)))); } while (0); > return -1; > } > if (PyDict_SetItem(dtype->f->castdict, key, cobj) < 0) { > do { if ( --((PyObject*)(key))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(key)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(key)))); } while (0); > do { if ( --((PyObject*)(cobj))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(cobj)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(cobj)))); } while (0); > return -1; > } > do { if ( --((PyObject*)(key))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(key)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(key)))); } while (0); > do { if ( --((PyObject*)(cobj))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(cobj)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(cobj)))); } while (0); ># 3933 "numpy/core/src/multiarray/arraytypes.c.src" > dtype = _builtin_descrs[NPY_USHORT]; > if (dtype->f->castdict == ((void *)0)) { > dtype->f->castdict = PyDict_New(); > if (dtype->f->castdict == ((void *)0)) { > return -1; > } > } > key = PyInt_FromLong(NPY_DATETIME); > if (key == ((void *)0)) { > return -1; > } > cobj = NpyCapsule_FromVoidPtr((void *)USHORT_to_DATETIME, ((void *)0)); > if (cobj == ((void *)0)) { > do { if ( --((PyObject*)(key))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(key)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(key)))); } while (0); > return -1; > } > if (PyDict_SetItem(dtype->f->castdict, key, cobj) < 0) { > do { if ( --((PyObject*)(key))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(key)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(key)))); } while (0); > do { if ( --((PyObject*)(cobj))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(cobj)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(cobj)))); } while (0); > return -1; > } > do { if ( --((PyObject*)(key))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(key)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(key)))); } while (0); > do { if ( --((PyObject*)(cobj))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(cobj)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(cobj)))); } while (0); ># 3933 "numpy/core/src/multiarray/arraytypes.c.src" > dtype = _builtin_descrs[NPY_USHORT]; > if (dtype->f->castdict == ((void *)0)) { > dtype->f->castdict = PyDict_New(); > if (dtype->f->castdict == ((void *)0)) { > return -1; > } > } > key = PyInt_FromLong(NPY_TIMEDELTA); > if (key == ((void *)0)) { > return -1; > } > cobj = NpyCapsule_FromVoidPtr((void *)USHORT_to_TIMEDELTA, ((void *)0)); > if (cobj == ((void *)0)) { > do { if ( --((PyObject*)(key))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(key)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(key)))); } while (0); > return -1; > } > if (PyDict_SetItem(dtype->f->castdict, key, cobj) < 0) { > do { if ( --((PyObject*)(key))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(key)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(key)))); } while (0); > do { if ( --((PyObject*)(cobj))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(cobj)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(cobj)))); } while (0); > return -1; > } > do { if ( --((PyObject*)(key))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(key)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(key)))); } while (0); > do { if ( --((PyObject*)(cobj))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(cobj)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(cobj)))); } while (0); ># 3929 "numpy/core/src/multiarray/arraytypes.c.src" ># 3933 "numpy/core/src/multiarray/arraytypes.c.src" > dtype = _builtin_descrs[NPY_INT]; > if (dtype->f->castdict == ((void *)0)) { > dtype->f->castdict = PyDict_New(); > if (dtype->f->castdict == ((void *)0)) { > return -1; > } > } > key = PyInt_FromLong(NPY_HALF); > if (key == ((void *)0)) { > return -1; > } > cobj = NpyCapsule_FromVoidPtr((void *)INT_to_HALF, ((void *)0)); > if (cobj == ((void *)0)) { > do { if ( --((PyObject*)(key))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(key)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(key)))); } while (0); > return -1; > } > if (PyDict_SetItem(dtype->f->castdict, key, cobj) < 0) { > do { if ( --((PyObject*)(key))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(key)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(key)))); } while (0); > do { if ( --((PyObject*)(cobj))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(cobj)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(cobj)))); } while (0); > return -1; > } > do { if ( --((PyObject*)(key))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(key)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(key)))); } while (0); > do { if ( --((PyObject*)(cobj))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(cobj)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(cobj)))); } while (0); ># 3933 "numpy/core/src/multiarray/arraytypes.c.src" > dtype = _builtin_descrs[NPY_INT]; > if (dtype->f->castdict == ((void *)0)) { > dtype->f->castdict = PyDict_New(); > if (dtype->f->castdict == ((void *)0)) { > return -1; > } > } > key = PyInt_FromLong(NPY_DATETIME); > if (key == ((void *)0)) { > return -1; > } > cobj = NpyCapsule_FromVoidPtr((void *)INT_to_DATETIME, ((void *)0)); > if (cobj == ((void *)0)) { > do { if ( --((PyObject*)(key))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(key)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(key)))); } while (0); > return -1; > } > if (PyDict_SetItem(dtype->f->castdict, key, cobj) < 0) { > do { if ( --((PyObject*)(key))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(key)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(key)))); } while (0); > do { if ( --((PyObject*)(cobj))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(cobj)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(cobj)))); } while (0); > return -1; > } > do { if ( --((PyObject*)(key))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(key)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(key)))); } while (0); > do { if ( --((PyObject*)(cobj))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(cobj)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(cobj)))); } while (0); ># 3933 "numpy/core/src/multiarray/arraytypes.c.src" > dtype = _builtin_descrs[NPY_INT]; > if (dtype->f->castdict == ((void *)0)) { > dtype->f->castdict = PyDict_New(); > if (dtype->f->castdict == ((void *)0)) { > return -1; > } > } > key = PyInt_FromLong(NPY_TIMEDELTA); > if (key == ((void *)0)) { > return -1; > } > cobj = NpyCapsule_FromVoidPtr((void *)INT_to_TIMEDELTA, ((void *)0)); > if (cobj == ((void *)0)) { > do { if ( --((PyObject*)(key))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(key)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(key)))); } while (0); > return -1; > } > if (PyDict_SetItem(dtype->f->castdict, key, cobj) < 0) { > do { if ( --((PyObject*)(key))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(key)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(key)))); } while (0); > do { if ( --((PyObject*)(cobj))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(cobj)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(cobj)))); } while (0); > return -1; > } > do { if ( --((PyObject*)(key))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(key)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(key)))); } while (0); > do { if ( --((PyObject*)(cobj))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(cobj)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(cobj)))); } while (0); ># 3929 "numpy/core/src/multiarray/arraytypes.c.src" ># 3933 "numpy/core/src/multiarray/arraytypes.c.src" > dtype = _builtin_descrs[NPY_UINT]; > if (dtype->f->castdict == ((void *)0)) { > dtype->f->castdict = PyDict_New(); > if (dtype->f->castdict == ((void *)0)) { > return -1; > } > } > key = PyInt_FromLong(NPY_HALF); > if (key == ((void *)0)) { > return -1; > } > cobj = NpyCapsule_FromVoidPtr((void *)UINT_to_HALF, ((void *)0)); > if (cobj == ((void *)0)) { > do { if ( --((PyObject*)(key))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(key)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(key)))); } while (0); > return -1; > } > if (PyDict_SetItem(dtype->f->castdict, key, cobj) < 0) { > do { if ( --((PyObject*)(key))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(key)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(key)))); } while (0); > do { if ( --((PyObject*)(cobj))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(cobj)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(cobj)))); } while (0); > return -1; > } > do { if ( --((PyObject*)(key))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(key)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(key)))); } while (0); > do { if ( --((PyObject*)(cobj))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(cobj)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(cobj)))); } while (0); ># 3933 "numpy/core/src/multiarray/arraytypes.c.src" > dtype = _builtin_descrs[NPY_UINT]; > if (dtype->f->castdict == ((void *)0)) { > dtype->f->castdict = PyDict_New(); > if (dtype->f->castdict == ((void *)0)) { > return -1; > } > } > key = PyInt_FromLong(NPY_DATETIME); > if (key == ((void *)0)) { > return -1; > } > cobj = NpyCapsule_FromVoidPtr((void *)UINT_to_DATETIME, ((void *)0)); > if (cobj == ((void *)0)) { > do { if ( --((PyObject*)(key))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(key)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(key)))); } while (0); > return -1; > } > if (PyDict_SetItem(dtype->f->castdict, key, cobj) < 0) { > do { if ( --((PyObject*)(key))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(key)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(key)))); } while (0); > do { if ( --((PyObject*)(cobj))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(cobj)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(cobj)))); } while (0); > return -1; > } > do { if ( --((PyObject*)(key))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(key)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(key)))); } while (0); > do { if ( --((PyObject*)(cobj))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(cobj)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(cobj)))); } while (0); ># 3933 "numpy/core/src/multiarray/arraytypes.c.src" > dtype = _builtin_descrs[NPY_UINT]; > if (dtype->f->castdict == ((void *)0)) { > dtype->f->castdict = PyDict_New(); > if (dtype->f->castdict == ((void *)0)) { > return -1; > } > } > key = PyInt_FromLong(NPY_TIMEDELTA); > if (key == ((void *)0)) { > return -1; > } > cobj = NpyCapsule_FromVoidPtr((void *)UINT_to_TIMEDELTA, ((void *)0)); > if (cobj == ((void *)0)) { > do { if ( --((PyObject*)(key))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(key)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(key)))); } while (0); > return -1; > } > if (PyDict_SetItem(dtype->f->castdict, key, cobj) < 0) { > do { if ( --((PyObject*)(key))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(key)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(key)))); } while (0); > do { if ( --((PyObject*)(cobj))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(cobj)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(cobj)))); } while (0); > return -1; > } > do { if ( --((PyObject*)(key))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(key)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(key)))); } while (0); > do { if ( --((PyObject*)(cobj))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(cobj)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(cobj)))); } while (0); ># 3929 "numpy/core/src/multiarray/arraytypes.c.src" ># 3933 "numpy/core/src/multiarray/arraytypes.c.src" > dtype = _builtin_descrs[NPY_LONG]; > if (dtype->f->castdict == ((void *)0)) { > dtype->f->castdict = PyDict_New(); > if (dtype->f->castdict == ((void *)0)) { > return -1; > } > } > key = PyInt_FromLong(NPY_HALF); > if (key == ((void *)0)) { > return -1; > } > cobj = NpyCapsule_FromVoidPtr((void *)LONG_to_HALF, ((void *)0)); > if (cobj == ((void *)0)) { > do { if ( --((PyObject*)(key))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(key)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(key)))); } while (0); > return -1; > } > if (PyDict_SetItem(dtype->f->castdict, key, cobj) < 0) { > do { if ( --((PyObject*)(key))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(key)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(key)))); } while (0); > do { if ( --((PyObject*)(cobj))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(cobj)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(cobj)))); } while (0); > return -1; > } > do { if ( --((PyObject*)(key))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(key)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(key)))); } while (0); > do { if ( --((PyObject*)(cobj))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(cobj)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(cobj)))); } while (0); ># 3933 "numpy/core/src/multiarray/arraytypes.c.src" > dtype = _builtin_descrs[NPY_LONG]; > if (dtype->f->castdict == ((void *)0)) { > dtype->f->castdict = PyDict_New(); > if (dtype->f->castdict == ((void *)0)) { > return -1; > } > } > key = PyInt_FromLong(NPY_DATETIME); > if (key == ((void *)0)) { > return -1; > } > cobj = NpyCapsule_FromVoidPtr((void *)LONG_to_DATETIME, ((void *)0)); > if (cobj == ((void *)0)) { > do { if ( --((PyObject*)(key))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(key)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(key)))); } while (0); > return -1; > } > if (PyDict_SetItem(dtype->f->castdict, key, cobj) < 0) { > do { if ( --((PyObject*)(key))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(key)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(key)))); } while (0); > do { if ( --((PyObject*)(cobj))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(cobj)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(cobj)))); } while (0); > return -1; > } > do { if ( --((PyObject*)(key))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(key)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(key)))); } while (0); > do { if ( --((PyObject*)(cobj))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(cobj)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(cobj)))); } while (0); ># 3933 "numpy/core/src/multiarray/arraytypes.c.src" > dtype = _builtin_descrs[NPY_LONG]; > if (dtype->f->castdict == ((void *)0)) { > dtype->f->castdict = PyDict_New(); > if (dtype->f->castdict == ((void *)0)) { > return -1; > } > } > key = PyInt_FromLong(NPY_TIMEDELTA); > if (key == ((void *)0)) { > return -1; > } > cobj = NpyCapsule_FromVoidPtr((void *)LONG_to_TIMEDELTA, ((void *)0)); > if (cobj == ((void *)0)) { > do { if ( --((PyObject*)(key))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(key)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(key)))); } while (0); > return -1; > } > if (PyDict_SetItem(dtype->f->castdict, key, cobj) < 0) { > do { if ( --((PyObject*)(key))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(key)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(key)))); } while (0); > do { if ( --((PyObject*)(cobj))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(cobj)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(cobj)))); } while (0); > return -1; > } > do { if ( --((PyObject*)(key))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(key)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(key)))); } while (0); > do { if ( --((PyObject*)(cobj))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(cobj)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(cobj)))); } while (0); ># 3929 "numpy/core/src/multiarray/arraytypes.c.src" ># 3933 "numpy/core/src/multiarray/arraytypes.c.src" > dtype = _builtin_descrs[NPY_ULONG]; > if (dtype->f->castdict == ((void *)0)) { > dtype->f->castdict = PyDict_New(); > if (dtype->f->castdict == ((void *)0)) { > return -1; > } > } > key = PyInt_FromLong(NPY_HALF); > if (key == ((void *)0)) { > return -1; > } > cobj = NpyCapsule_FromVoidPtr((void *)ULONG_to_HALF, ((void *)0)); > if (cobj == ((void *)0)) { > do { if ( --((PyObject*)(key))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(key)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(key)))); } while (0); > return -1; > } > if (PyDict_SetItem(dtype->f->castdict, key, cobj) < 0) { > do { if ( --((PyObject*)(key))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(key)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(key)))); } while (0); > do { if ( --((PyObject*)(cobj))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(cobj)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(cobj)))); } while (0); > return -1; > } > do { if ( --((PyObject*)(key))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(key)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(key)))); } while (0); > do { if ( --((PyObject*)(cobj))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(cobj)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(cobj)))); } while (0); ># 3933 "numpy/core/src/multiarray/arraytypes.c.src" > dtype = _builtin_descrs[NPY_ULONG]; > if (dtype->f->castdict == ((void *)0)) { > dtype->f->castdict = PyDict_New(); > if (dtype->f->castdict == ((void *)0)) { > return -1; > } > } > key = PyInt_FromLong(NPY_DATETIME); > if (key == ((void *)0)) { > return -1; > } > cobj = NpyCapsule_FromVoidPtr((void *)ULONG_to_DATETIME, ((void *)0)); > if (cobj == ((void *)0)) { > do { if ( --((PyObject*)(key))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(key)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(key)))); } while (0); > return -1; > } > if (PyDict_SetItem(dtype->f->castdict, key, cobj) < 0) { > do { if ( --((PyObject*)(key))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(key)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(key)))); } while (0); > do { if ( --((PyObject*)(cobj))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(cobj)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(cobj)))); } while (0); > return -1; > } > do { if ( --((PyObject*)(key))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(key)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(key)))); } while (0); > do { if ( --((PyObject*)(cobj))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(cobj)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(cobj)))); } while (0); ># 3933 "numpy/core/src/multiarray/arraytypes.c.src" > dtype = _builtin_descrs[NPY_ULONG]; > if (dtype->f->castdict == ((void *)0)) { > dtype->f->castdict = PyDict_New(); > if (dtype->f->castdict == ((void *)0)) { > return -1; > } > } > key = PyInt_FromLong(NPY_TIMEDELTA); > if (key == ((void *)0)) { > return -1; > } > cobj = NpyCapsule_FromVoidPtr((void *)ULONG_to_TIMEDELTA, ((void *)0)); > if (cobj == ((void *)0)) { > do { if ( --((PyObject*)(key))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(key)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(key)))); } while (0); > return -1; > } > if (PyDict_SetItem(dtype->f->castdict, key, cobj) < 0) { > do { if ( --((PyObject*)(key))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(key)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(key)))); } while (0); > do { if ( --((PyObject*)(cobj))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(cobj)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(cobj)))); } while (0); > return -1; > } > do { if ( --((PyObject*)(key))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(key)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(key)))); } while (0); > do { if ( --((PyObject*)(cobj))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(cobj)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(cobj)))); } while (0); ># 3929 "numpy/core/src/multiarray/arraytypes.c.src" ># 3933 "numpy/core/src/multiarray/arraytypes.c.src" > dtype = _builtin_descrs[NPY_LONGLONG]; > if (dtype->f->castdict == ((void *)0)) { > dtype->f->castdict = PyDict_New(); > if (dtype->f->castdict == ((void *)0)) { > return -1; > } > } > key = PyInt_FromLong(NPY_HALF); > if (key == ((void *)0)) { > return -1; > } > cobj = NpyCapsule_FromVoidPtr((void *)LONGLONG_to_HALF, ((void *)0)); > if (cobj == ((void *)0)) { > do { if ( --((PyObject*)(key))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(key)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(key)))); } while (0); > return -1; > } > if (PyDict_SetItem(dtype->f->castdict, key, cobj) < 0) { > do { if ( --((PyObject*)(key))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(key)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(key)))); } while (0); > do { if ( --((PyObject*)(cobj))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(cobj)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(cobj)))); } while (0); > return -1; > } > do { if ( --((PyObject*)(key))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(key)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(key)))); } while (0); > do { if ( --((PyObject*)(cobj))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(cobj)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(cobj)))); } while (0); ># 3933 "numpy/core/src/multiarray/arraytypes.c.src" > dtype = _builtin_descrs[NPY_LONGLONG]; > if (dtype->f->castdict == ((void *)0)) { > dtype->f->castdict = PyDict_New(); > if (dtype->f->castdict == ((void *)0)) { > return -1; > } > } > key = PyInt_FromLong(NPY_DATETIME); > if (key == ((void *)0)) { > return -1; > } > cobj = NpyCapsule_FromVoidPtr((void *)LONGLONG_to_DATETIME, ((void *)0)); > if (cobj == ((void *)0)) { > do { if ( --((PyObject*)(key))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(key)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(key)))); } while (0); > return -1; > } > if (PyDict_SetItem(dtype->f->castdict, key, cobj) < 0) { > do { if ( --((PyObject*)(key))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(key)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(key)))); } while (0); > do { if ( --((PyObject*)(cobj))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(cobj)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(cobj)))); } while (0); > return -1; > } > do { if ( --((PyObject*)(key))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(key)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(key)))); } while (0); > do { if ( --((PyObject*)(cobj))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(cobj)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(cobj)))); } while (0); ># 3933 "numpy/core/src/multiarray/arraytypes.c.src" > dtype = _builtin_descrs[NPY_LONGLONG]; > if (dtype->f->castdict == ((void *)0)) { > dtype->f->castdict = PyDict_New(); > if (dtype->f->castdict == ((void *)0)) { > return -1; > } > } > key = PyInt_FromLong(NPY_TIMEDELTA); > if (key == ((void *)0)) { > return -1; > } > cobj = NpyCapsule_FromVoidPtr((void *)LONGLONG_to_TIMEDELTA, ((void *)0)); > if (cobj == ((void *)0)) { > do { if ( --((PyObject*)(key))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(key)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(key)))); } while (0); > return -1; > } > if (PyDict_SetItem(dtype->f->castdict, key, cobj) < 0) { > do { if ( --((PyObject*)(key))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(key)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(key)))); } while (0); > do { if ( --((PyObject*)(cobj))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(cobj)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(cobj)))); } while (0); > return -1; > } > do { if ( --((PyObject*)(key))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(key)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(key)))); } while (0); > do { if ( --((PyObject*)(cobj))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(cobj)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(cobj)))); } while (0); ># 3929 "numpy/core/src/multiarray/arraytypes.c.src" ># 3933 "numpy/core/src/multiarray/arraytypes.c.src" > dtype = _builtin_descrs[NPY_ULONGLONG]; > if (dtype->f->castdict == ((void *)0)) { > dtype->f->castdict = PyDict_New(); > if (dtype->f->castdict == ((void *)0)) { > return -1; > } > } > key = PyInt_FromLong(NPY_HALF); > if (key == ((void *)0)) { > return -1; > } > cobj = NpyCapsule_FromVoidPtr((void *)ULONGLONG_to_HALF, ((void *)0)); > if (cobj == ((void *)0)) { > do { if ( --((PyObject*)(key))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(key)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(key)))); } while (0); > return -1; > } > if (PyDict_SetItem(dtype->f->castdict, key, cobj) < 0) { > do { if ( --((PyObject*)(key))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(key)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(key)))); } while (0); > do { if ( --((PyObject*)(cobj))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(cobj)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(cobj)))); } while (0); > return -1; > } > do { if ( --((PyObject*)(key))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(key)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(key)))); } while (0); > do { if ( --((PyObject*)(cobj))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(cobj)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(cobj)))); } while (0); ># 3933 "numpy/core/src/multiarray/arraytypes.c.src" > dtype = _builtin_descrs[NPY_ULONGLONG]; > if (dtype->f->castdict == ((void *)0)) { > dtype->f->castdict = PyDict_New(); > if (dtype->f->castdict == ((void *)0)) { > return -1; > } > } > key = PyInt_FromLong(NPY_DATETIME); > if (key == ((void *)0)) { > return -1; > } > cobj = NpyCapsule_FromVoidPtr((void *)ULONGLONG_to_DATETIME, ((void *)0)); > if (cobj == ((void *)0)) { > do { if ( --((PyObject*)(key))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(key)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(key)))); } while (0); > return -1; > } > if (PyDict_SetItem(dtype->f->castdict, key, cobj) < 0) { > do { if ( --((PyObject*)(key))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(key)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(key)))); } while (0); > do { if ( --((PyObject*)(cobj))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(cobj)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(cobj)))); } while (0); > return -1; > } > do { if ( --((PyObject*)(key))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(key)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(key)))); } while (0); > do { if ( --((PyObject*)(cobj))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(cobj)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(cobj)))); } while (0); ># 3933 "numpy/core/src/multiarray/arraytypes.c.src" > dtype = _builtin_descrs[NPY_ULONGLONG]; > if (dtype->f->castdict == ((void *)0)) { > dtype->f->castdict = PyDict_New(); > if (dtype->f->castdict == ((void *)0)) { > return -1; > } > } > key = PyInt_FromLong(NPY_TIMEDELTA); > if (key == ((void *)0)) { > return -1; > } > cobj = NpyCapsule_FromVoidPtr((void *)ULONGLONG_to_TIMEDELTA, ((void *)0)); > if (cobj == ((void *)0)) { > do { if ( --((PyObject*)(key))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(key)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(key)))); } while (0); > return -1; > } > if (PyDict_SetItem(dtype->f->castdict, key, cobj) < 0) { > do { if ( --((PyObject*)(key))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(key)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(key)))); } while (0); > do { if ( --((PyObject*)(cobj))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(cobj)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(cobj)))); } while (0); > return -1; > } > do { if ( --((PyObject*)(key))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(key)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(key)))); } while (0); > do { if ( --((PyObject*)(cobj))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(cobj)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(cobj)))); } while (0); ># 3929 "numpy/core/src/multiarray/arraytypes.c.src" ># 3933 "numpy/core/src/multiarray/arraytypes.c.src" > dtype = _builtin_descrs[NPY_HALF]; > if (dtype->f->castdict == ((void *)0)) { > dtype->f->castdict = PyDict_New(); > if (dtype->f->castdict == ((void *)0)) { > return -1; > } > } > key = PyInt_FromLong(NPY_HALF); > if (key == ((void *)0)) { > return -1; > } > cobj = NpyCapsule_FromVoidPtr((void *)SHORT_to_SHORT, ((void *)0)); > if (cobj == ((void *)0)) { > do { if ( --((PyObject*)(key))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(key)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(key)))); } while (0); > return -1; > } > if (PyDict_SetItem(dtype->f->castdict, key, cobj) < 0) { > do { if ( --((PyObject*)(key))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(key)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(key)))); } while (0); > do { if ( --((PyObject*)(cobj))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(cobj)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(cobj)))); } while (0); > return -1; > } > do { if ( --((PyObject*)(key))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(key)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(key)))); } while (0); > do { if ( --((PyObject*)(cobj))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(cobj)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(cobj)))); } while (0); ># 3933 "numpy/core/src/multiarray/arraytypes.c.src" > dtype = _builtin_descrs[NPY_HALF]; > if (dtype->f->castdict == ((void *)0)) { > dtype->f->castdict = PyDict_New(); > if (dtype->f->castdict == ((void *)0)) { > return -1; > } > } > key = PyInt_FromLong(NPY_DATETIME); > if (key == ((void *)0)) { > return -1; > } > cobj = NpyCapsule_FromVoidPtr((void *)HALF_to_DATETIME, ((void *)0)); > if (cobj == ((void *)0)) { > do { if ( --((PyObject*)(key))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(key)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(key)))); } while (0); > return -1; > } > if (PyDict_SetItem(dtype->f->castdict, key, cobj) < 0) { > do { if ( --((PyObject*)(key))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(key)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(key)))); } while (0); > do { if ( --((PyObject*)(cobj))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(cobj)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(cobj)))); } while (0); > return -1; > } > do { if ( --((PyObject*)(key))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(key)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(key)))); } while (0); > do { if ( --((PyObject*)(cobj))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(cobj)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(cobj)))); } while (0); ># 3933 "numpy/core/src/multiarray/arraytypes.c.src" > dtype = _builtin_descrs[NPY_HALF]; > if (dtype->f->castdict == ((void *)0)) { > dtype->f->castdict = PyDict_New(); > if (dtype->f->castdict == ((void *)0)) { > return -1; > } > } > key = PyInt_FromLong(NPY_TIMEDELTA); > if (key == ((void *)0)) { > return -1; > } > cobj = NpyCapsule_FromVoidPtr((void *)HALF_to_TIMEDELTA, ((void *)0)); > if (cobj == ((void *)0)) { > do { if ( --((PyObject*)(key))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(key)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(key)))); } while (0); > return -1; > } > if (PyDict_SetItem(dtype->f->castdict, key, cobj) < 0) { > do { if ( --((PyObject*)(key))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(key)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(key)))); } while (0); > do { if ( --((PyObject*)(cobj))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(cobj)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(cobj)))); } while (0); > return -1; > } > do { if ( --((PyObject*)(key))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(key)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(key)))); } while (0); > do { if ( --((PyObject*)(cobj))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(cobj)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(cobj)))); } while (0); ># 3929 "numpy/core/src/multiarray/arraytypes.c.src" ># 3933 "numpy/core/src/multiarray/arraytypes.c.src" > dtype = _builtin_descrs[NPY_FLOAT]; > if (dtype->f->castdict == ((void *)0)) { > dtype->f->castdict = PyDict_New(); > if (dtype->f->castdict == ((void *)0)) { > return -1; > } > } > key = PyInt_FromLong(NPY_HALF); > if (key == ((void *)0)) { > return -1; > } > cobj = NpyCapsule_FromVoidPtr((void *)FLOAT_to_HALF, ((void *)0)); > if (cobj == ((void *)0)) { > do { if ( --((PyObject*)(key))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(key)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(key)))); } while (0); > return -1; > } > if (PyDict_SetItem(dtype->f->castdict, key, cobj) < 0) { > do { if ( --((PyObject*)(key))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(key)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(key)))); } while (0); > do { if ( --((PyObject*)(cobj))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(cobj)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(cobj)))); } while (0); > return -1; > } > do { if ( --((PyObject*)(key))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(key)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(key)))); } while (0); > do { if ( --((PyObject*)(cobj))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(cobj)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(cobj)))); } while (0); ># 3933 "numpy/core/src/multiarray/arraytypes.c.src" > dtype = _builtin_descrs[NPY_FLOAT]; > if (dtype->f->castdict == ((void *)0)) { > dtype->f->castdict = PyDict_New(); > if (dtype->f->castdict == ((void *)0)) { > return -1; > } > } > key = PyInt_FromLong(NPY_DATETIME); > if (key == ((void *)0)) { > return -1; > } > cobj = NpyCapsule_FromVoidPtr((void *)FLOAT_to_DATETIME, ((void *)0)); > if (cobj == ((void *)0)) { > do { if ( --((PyObject*)(key))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(key)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(key)))); } while (0); > return -1; > } > if (PyDict_SetItem(dtype->f->castdict, key, cobj) < 0) { > do { if ( --((PyObject*)(key))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(key)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(key)))); } while (0); > do { if ( --((PyObject*)(cobj))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(cobj)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(cobj)))); } while (0); > return -1; > } > do { if ( --((PyObject*)(key))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(key)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(key)))); } while (0); > do { if ( --((PyObject*)(cobj))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(cobj)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(cobj)))); } while (0); ># 3933 "numpy/core/src/multiarray/arraytypes.c.src" > dtype = _builtin_descrs[NPY_FLOAT]; > if (dtype->f->castdict == ((void *)0)) { > dtype->f->castdict = PyDict_New(); > if (dtype->f->castdict == ((void *)0)) { > return -1; > } > } > key = PyInt_FromLong(NPY_TIMEDELTA); > if (key == ((void *)0)) { > return -1; > } > cobj = NpyCapsule_FromVoidPtr((void *)FLOAT_to_TIMEDELTA, ((void *)0)); > if (cobj == ((void *)0)) { > do { if ( --((PyObject*)(key))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(key)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(key)))); } while (0); > return -1; > } > if (PyDict_SetItem(dtype->f->castdict, key, cobj) < 0) { > do { if ( --((PyObject*)(key))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(key)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(key)))); } while (0); > do { if ( --((PyObject*)(cobj))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(cobj)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(cobj)))); } while (0); > return -1; > } > do { if ( --((PyObject*)(key))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(key)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(key)))); } while (0); > do { if ( --((PyObject*)(cobj))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(cobj)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(cobj)))); } while (0); ># 3929 "numpy/core/src/multiarray/arraytypes.c.src" ># 3933 "numpy/core/src/multiarray/arraytypes.c.src" > dtype = _builtin_descrs[NPY_DOUBLE]; > if (dtype->f->castdict == ((void *)0)) { > dtype->f->castdict = PyDict_New(); > if (dtype->f->castdict == ((void *)0)) { > return -1; > } > } > key = PyInt_FromLong(NPY_HALF); > if (key == ((void *)0)) { > return -1; > } > cobj = NpyCapsule_FromVoidPtr((void *)DOUBLE_to_HALF, ((void *)0)); > if (cobj == ((void *)0)) { > do { if ( --((PyObject*)(key))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(key)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(key)))); } while (0); > return -1; > } > if (PyDict_SetItem(dtype->f->castdict, key, cobj) < 0) { > do { if ( --((PyObject*)(key))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(key)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(key)))); } while (0); > do { if ( --((PyObject*)(cobj))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(cobj)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(cobj)))); } while (0); > return -1; > } > do { if ( --((PyObject*)(key))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(key)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(key)))); } while (0); > do { if ( --((PyObject*)(cobj))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(cobj)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(cobj)))); } while (0); ># 3933 "numpy/core/src/multiarray/arraytypes.c.src" > dtype = _builtin_descrs[NPY_DOUBLE]; > if (dtype->f->castdict == ((void *)0)) { > dtype->f->castdict = PyDict_New(); > if (dtype->f->castdict == ((void *)0)) { > return -1; > } > } > key = PyInt_FromLong(NPY_DATETIME); > if (key == ((void *)0)) { > return -1; > } > cobj = NpyCapsule_FromVoidPtr((void *)DOUBLE_to_DATETIME, ((void *)0)); > if (cobj == ((void *)0)) { > do { if ( --((PyObject*)(key))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(key)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(key)))); } while (0); > return -1; > } > if (PyDict_SetItem(dtype->f->castdict, key, cobj) < 0) { > do { if ( --((PyObject*)(key))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(key)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(key)))); } while (0); > do { if ( --((PyObject*)(cobj))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(cobj)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(cobj)))); } while (0); > return -1; > } > do { if ( --((PyObject*)(key))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(key)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(key)))); } while (0); > do { if ( --((PyObject*)(cobj))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(cobj)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(cobj)))); } while (0); ># 3933 "numpy/core/src/multiarray/arraytypes.c.src" > dtype = _builtin_descrs[NPY_DOUBLE]; > if (dtype->f->castdict == ((void *)0)) { > dtype->f->castdict = PyDict_New(); > if (dtype->f->castdict == ((void *)0)) { > return -1; > } > } > key = PyInt_FromLong(NPY_TIMEDELTA); > if (key == ((void *)0)) { > return -1; > } > cobj = NpyCapsule_FromVoidPtr((void *)DOUBLE_to_TIMEDELTA, ((void *)0)); > if (cobj == ((void *)0)) { > do { if ( --((PyObject*)(key))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(key)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(key)))); } while (0); > return -1; > } > if (PyDict_SetItem(dtype->f->castdict, key, cobj) < 0) { > do { if ( --((PyObject*)(key))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(key)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(key)))); } while (0); > do { if ( --((PyObject*)(cobj))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(cobj)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(cobj)))); } while (0); > return -1; > } > do { if ( --((PyObject*)(key))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(key)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(key)))); } while (0); > do { if ( --((PyObject*)(cobj))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(cobj)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(cobj)))); } while (0); ># 3929 "numpy/core/src/multiarray/arraytypes.c.src" ># 3933 "numpy/core/src/multiarray/arraytypes.c.src" > dtype = _builtin_descrs[NPY_LONGDOUBLE]; > if (dtype->f->castdict == ((void *)0)) { > dtype->f->castdict = PyDict_New(); > if (dtype->f->castdict == ((void *)0)) { > return -1; > } > } > key = PyInt_FromLong(NPY_HALF); > if (key == ((void *)0)) { > return -1; > } > cobj = NpyCapsule_FromVoidPtr((void *)LONGDOUBLE_to_HALF, ((void *)0)); > if (cobj == ((void *)0)) { > do { if ( --((PyObject*)(key))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(key)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(key)))); } while (0); > return -1; > } > if (PyDict_SetItem(dtype->f->castdict, key, cobj) < 0) { > do { if ( --((PyObject*)(key))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(key)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(key)))); } while (0); > do { if ( --((PyObject*)(cobj))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(cobj)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(cobj)))); } while (0); > return -1; > } > do { if ( --((PyObject*)(key))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(key)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(key)))); } while (0); > do { if ( --((PyObject*)(cobj))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(cobj)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(cobj)))); } while (0); ># 3933 "numpy/core/src/multiarray/arraytypes.c.src" > dtype = _builtin_descrs[NPY_LONGDOUBLE]; > if (dtype->f->castdict == ((void *)0)) { > dtype->f->castdict = PyDict_New(); > if (dtype->f->castdict == ((void *)0)) { > return -1; > } > } > key = PyInt_FromLong(NPY_DATETIME); > if (key == ((void *)0)) { > return -1; > } > cobj = NpyCapsule_FromVoidPtr((void *)LONGDOUBLE_to_DATETIME, ((void *)0)); > if (cobj == ((void *)0)) { > do { if ( --((PyObject*)(key))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(key)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(key)))); } while (0); > return -1; > } > if (PyDict_SetItem(dtype->f->castdict, key, cobj) < 0) { > do { if ( --((PyObject*)(key))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(key)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(key)))); } while (0); > do { if ( --((PyObject*)(cobj))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(cobj)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(cobj)))); } while (0); > return -1; > } > do { if ( --((PyObject*)(key))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(key)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(key)))); } while (0); > do { if ( --((PyObject*)(cobj))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(cobj)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(cobj)))); } while (0); ># 3933 "numpy/core/src/multiarray/arraytypes.c.src" > dtype = _builtin_descrs[NPY_LONGDOUBLE]; > if (dtype->f->castdict == ((void *)0)) { > dtype->f->castdict = PyDict_New(); > if (dtype->f->castdict == ((void *)0)) { > return -1; > } > } > key = PyInt_FromLong(NPY_TIMEDELTA); > if (key == ((void *)0)) { > return -1; > } > cobj = NpyCapsule_FromVoidPtr((void *)LONGDOUBLE_to_TIMEDELTA, ((void *)0)); > if (cobj == ((void *)0)) { > do { if ( --((PyObject*)(key))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(key)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(key)))); } while (0); > return -1; > } > if (PyDict_SetItem(dtype->f->castdict, key, cobj) < 0) { > do { if ( --((PyObject*)(key))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(key)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(key)))); } while (0); > do { if ( --((PyObject*)(cobj))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(cobj)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(cobj)))); } while (0); > return -1; > } > do { if ( --((PyObject*)(key))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(key)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(key)))); } while (0); > do { if ( --((PyObject*)(cobj))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(cobj)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(cobj)))); } while (0); ># 3929 "numpy/core/src/multiarray/arraytypes.c.src" ># 3933 "numpy/core/src/multiarray/arraytypes.c.src" > dtype = _builtin_descrs[NPY_CFLOAT]; > if (dtype->f->castdict == ((void *)0)) { > dtype->f->castdict = PyDict_New(); > if (dtype->f->castdict == ((void *)0)) { > return -1; > } > } > key = PyInt_FromLong(NPY_HALF); > if (key == ((void *)0)) { > return -1; > } > cobj = NpyCapsule_FromVoidPtr((void *)CFLOAT_to_HALF, ((void *)0)); > if (cobj == ((void *)0)) { > do { if ( --((PyObject*)(key))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(key)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(key)))); } while (0); > return -1; > } > if (PyDict_SetItem(dtype->f->castdict, key, cobj) < 0) { > do { if ( --((PyObject*)(key))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(key)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(key)))); } while (0); > do { if ( --((PyObject*)(cobj))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(cobj)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(cobj)))); } while (0); > return -1; > } > do { if ( --((PyObject*)(key))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(key)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(key)))); } while (0); > do { if ( --((PyObject*)(cobj))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(cobj)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(cobj)))); } while (0); ># 3933 "numpy/core/src/multiarray/arraytypes.c.src" > dtype = _builtin_descrs[NPY_CFLOAT]; > if (dtype->f->castdict == ((void *)0)) { > dtype->f->castdict = PyDict_New(); > if (dtype->f->castdict == ((void *)0)) { > return -1; > } > } > key = PyInt_FromLong(NPY_DATETIME); > if (key == ((void *)0)) { > return -1; > } > cobj = NpyCapsule_FromVoidPtr((void *)CFLOAT_to_DATETIME, ((void *)0)); > if (cobj == ((void *)0)) { > do { if ( --((PyObject*)(key))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(key)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(key)))); } while (0); > return -1; > } > if (PyDict_SetItem(dtype->f->castdict, key, cobj) < 0) { > do { if ( --((PyObject*)(key))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(key)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(key)))); } while (0); > do { if ( --((PyObject*)(cobj))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(cobj)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(cobj)))); } while (0); > return -1; > } > do { if ( --((PyObject*)(key))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(key)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(key)))); } while (0); > do { if ( --((PyObject*)(cobj))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(cobj)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(cobj)))); } while (0); ># 3933 "numpy/core/src/multiarray/arraytypes.c.src" > dtype = _builtin_descrs[NPY_CFLOAT]; > if (dtype->f->castdict == ((void *)0)) { > dtype->f->castdict = PyDict_New(); > if (dtype->f->castdict == ((void *)0)) { > return -1; > } > } > key = PyInt_FromLong(NPY_TIMEDELTA); > if (key == ((void *)0)) { > return -1; > } > cobj = NpyCapsule_FromVoidPtr((void *)CFLOAT_to_TIMEDELTA, ((void *)0)); > if (cobj == ((void *)0)) { > do { if ( --((PyObject*)(key))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(key)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(key)))); } while (0); > return -1; > } > if (PyDict_SetItem(dtype->f->castdict, key, cobj) < 0) { > do { if ( --((PyObject*)(key))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(key)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(key)))); } while (0); > do { if ( --((PyObject*)(cobj))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(cobj)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(cobj)))); } while (0); > return -1; > } > do { if ( --((PyObject*)(key))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(key)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(key)))); } while (0); > do { if ( --((PyObject*)(cobj))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(cobj)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(cobj)))); } while (0); ># 3929 "numpy/core/src/multiarray/arraytypes.c.src" ># 3933 "numpy/core/src/multiarray/arraytypes.c.src" > dtype = _builtin_descrs[NPY_CDOUBLE]; > if (dtype->f->castdict == ((void *)0)) { > dtype->f->castdict = PyDict_New(); > if (dtype->f->castdict == ((void *)0)) { > return -1; > } > } > key = PyInt_FromLong(NPY_HALF); > if (key == ((void *)0)) { > return -1; > } > cobj = NpyCapsule_FromVoidPtr((void *)CDOUBLE_to_HALF, ((void *)0)); > if (cobj == ((void *)0)) { > do { if ( --((PyObject*)(key))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(key)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(key)))); } while (0); > return -1; > } > if (PyDict_SetItem(dtype->f->castdict, key, cobj) < 0) { > do { if ( --((PyObject*)(key))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(key)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(key)))); } while (0); > do { if ( --((PyObject*)(cobj))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(cobj)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(cobj)))); } while (0); > return -1; > } > do { if ( --((PyObject*)(key))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(key)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(key)))); } while (0); > do { if ( --((PyObject*)(cobj))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(cobj)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(cobj)))); } while (0); ># 3933 "numpy/core/src/multiarray/arraytypes.c.src" > dtype = _builtin_descrs[NPY_CDOUBLE]; > if (dtype->f->castdict == ((void *)0)) { > dtype->f->castdict = PyDict_New(); > if (dtype->f->castdict == ((void *)0)) { > return -1; > } > } > key = PyInt_FromLong(NPY_DATETIME); > if (key == ((void *)0)) { > return -1; > } > cobj = NpyCapsule_FromVoidPtr((void *)CDOUBLE_to_DATETIME, ((void *)0)); > if (cobj == ((void *)0)) { > do { if ( --((PyObject*)(key))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(key)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(key)))); } while (0); > return -1; > } > if (PyDict_SetItem(dtype->f->castdict, key, cobj) < 0) { > do { if ( --((PyObject*)(key))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(key)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(key)))); } while (0); > do { if ( --((PyObject*)(cobj))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(cobj)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(cobj)))); } while (0); > return -1; > } > do { if ( --((PyObject*)(key))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(key)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(key)))); } while (0); > do { if ( --((PyObject*)(cobj))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(cobj)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(cobj)))); } while (0); ># 3933 "numpy/core/src/multiarray/arraytypes.c.src" > dtype = _builtin_descrs[NPY_CDOUBLE]; > if (dtype->f->castdict == ((void *)0)) { > dtype->f->castdict = PyDict_New(); > if (dtype->f->castdict == ((void *)0)) { > return -1; > } > } > key = PyInt_FromLong(NPY_TIMEDELTA); > if (key == ((void *)0)) { > return -1; > } > cobj = NpyCapsule_FromVoidPtr((void *)CDOUBLE_to_TIMEDELTA, ((void *)0)); > if (cobj == ((void *)0)) { > do { if ( --((PyObject*)(key))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(key)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(key)))); } while (0); > return -1; > } > if (PyDict_SetItem(dtype->f->castdict, key, cobj) < 0) { > do { if ( --((PyObject*)(key))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(key)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(key)))); } while (0); > do { if ( --((PyObject*)(cobj))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(cobj)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(cobj)))); } while (0); > return -1; > } > do { if ( --((PyObject*)(key))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(key)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(key)))); } while (0); > do { if ( --((PyObject*)(cobj))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(cobj)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(cobj)))); } while (0); ># 3929 "numpy/core/src/multiarray/arraytypes.c.src" ># 3933 "numpy/core/src/multiarray/arraytypes.c.src" > dtype = _builtin_descrs[NPY_CLONGDOUBLE]; > if (dtype->f->castdict == ((void *)0)) { > dtype->f->castdict = PyDict_New(); > if (dtype->f->castdict == ((void *)0)) { > return -1; > } > } > key = PyInt_FromLong(NPY_HALF); > if (key == ((void *)0)) { > return -1; > } > cobj = NpyCapsule_FromVoidPtr((void *)CLONGDOUBLE_to_HALF, ((void *)0)); > if (cobj == ((void *)0)) { > do { if ( --((PyObject*)(key))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(key)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(key)))); } while (0); > return -1; > } > if (PyDict_SetItem(dtype->f->castdict, key, cobj) < 0) { > do { if ( --((PyObject*)(key))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(key)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(key)))); } while (0); > do { if ( --((PyObject*)(cobj))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(cobj)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(cobj)))); } while (0); > return -1; > } > do { if ( --((PyObject*)(key))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(key)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(key)))); } while (0); > do { if ( --((PyObject*)(cobj))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(cobj)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(cobj)))); } while (0); ># 3933 "numpy/core/src/multiarray/arraytypes.c.src" > dtype = _builtin_descrs[NPY_CLONGDOUBLE]; > if (dtype->f->castdict == ((void *)0)) { > dtype->f->castdict = PyDict_New(); > if (dtype->f->castdict == ((void *)0)) { > return -1; > } > } > key = PyInt_FromLong(NPY_DATETIME); > if (key == ((void *)0)) { > return -1; > } > cobj = NpyCapsule_FromVoidPtr((void *)CLONGDOUBLE_to_DATETIME, ((void *)0)); > if (cobj == ((void *)0)) { > do { if ( --((PyObject*)(key))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(key)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(key)))); } while (0); > return -1; > } > if (PyDict_SetItem(dtype->f->castdict, key, cobj) < 0) { > do { if ( --((PyObject*)(key))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(key)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(key)))); } while (0); > do { if ( --((PyObject*)(cobj))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(cobj)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(cobj)))); } while (0); > return -1; > } > do { if ( --((PyObject*)(key))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(key)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(key)))); } while (0); > do { if ( --((PyObject*)(cobj))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(cobj)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(cobj)))); } while (0); ># 3933 "numpy/core/src/multiarray/arraytypes.c.src" > dtype = _builtin_descrs[NPY_CLONGDOUBLE]; > if (dtype->f->castdict == ((void *)0)) { > dtype->f->castdict = PyDict_New(); > if (dtype->f->castdict == ((void *)0)) { > return -1; > } > } > key = PyInt_FromLong(NPY_TIMEDELTA); > if (key == ((void *)0)) { > return -1; > } > cobj = NpyCapsule_FromVoidPtr((void *)CLONGDOUBLE_to_TIMEDELTA, ((void *)0)); > if (cobj == ((void *)0)) { > do { if ( --((PyObject*)(key))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(key)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(key)))); } while (0); > return -1; > } > if (PyDict_SetItem(dtype->f->castdict, key, cobj) < 0) { > do { if ( --((PyObject*)(key))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(key)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(key)))); } while (0); > do { if ( --((PyObject*)(cobj))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(cobj)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(cobj)))); } while (0); > return -1; > } > do { if ( --((PyObject*)(key))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(key)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(key)))); } while (0); > do { if ( --((PyObject*)(cobj))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(cobj)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(cobj)))); } while (0); ># 3929 "numpy/core/src/multiarray/arraytypes.c.src" ># 3933 "numpy/core/src/multiarray/arraytypes.c.src" > dtype = _builtin_descrs[NPY_OBJECT]; > if (dtype->f->castdict == ((void *)0)) { > dtype->f->castdict = PyDict_New(); > if (dtype->f->castdict == ((void *)0)) { > return -1; > } > } > key = PyInt_FromLong(NPY_HALF); > if (key == ((void *)0)) { > return -1; > } > cobj = NpyCapsule_FromVoidPtr((void *)OBJECT_to_HALF, ((void *)0)); > if (cobj == ((void *)0)) { > do { if ( --((PyObject*)(key))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(key)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(key)))); } while (0); > return -1; > } > if (PyDict_SetItem(dtype->f->castdict, key, cobj) < 0) { > do { if ( --((PyObject*)(key))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(key)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(key)))); } while (0); > do { if ( --((PyObject*)(cobj))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(cobj)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(cobj)))); } while (0); > return -1; > } > do { if ( --((PyObject*)(key))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(key)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(key)))); } while (0); > do { if ( --((PyObject*)(cobj))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(cobj)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(cobj)))); } while (0); ># 3933 "numpy/core/src/multiarray/arraytypes.c.src" > dtype = _builtin_descrs[NPY_OBJECT]; > if (dtype->f->castdict == ((void *)0)) { > dtype->f->castdict = PyDict_New(); > if (dtype->f->castdict == ((void *)0)) { > return -1; > } > } > key = PyInt_FromLong(NPY_DATETIME); > if (key == ((void *)0)) { > return -1; > } > cobj = NpyCapsule_FromVoidPtr((void *)OBJECT_to_DATETIME, ((void *)0)); > if (cobj == ((void *)0)) { > do { if ( --((PyObject*)(key))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(key)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(key)))); } while (0); > return -1; > } > if (PyDict_SetItem(dtype->f->castdict, key, cobj) < 0) { > do { if ( --((PyObject*)(key))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(key)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(key)))); } while (0); > do { if ( --((PyObject*)(cobj))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(cobj)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(cobj)))); } while (0); > return -1; > } > do { if ( --((PyObject*)(key))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(key)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(key)))); } while (0); > do { if ( --((PyObject*)(cobj))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(cobj)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(cobj)))); } while (0); ># 3933 "numpy/core/src/multiarray/arraytypes.c.src" > dtype = _builtin_descrs[NPY_OBJECT]; > if (dtype->f->castdict == ((void *)0)) { > dtype->f->castdict = PyDict_New(); > if (dtype->f->castdict == ((void *)0)) { > return -1; > } > } > key = PyInt_FromLong(NPY_TIMEDELTA); > if (key == ((void *)0)) { > return -1; > } > cobj = NpyCapsule_FromVoidPtr((void *)OBJECT_to_TIMEDELTA, ((void *)0)); > if (cobj == ((void *)0)) { > do { if ( --((PyObject*)(key))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(key)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(key)))); } while (0); > return -1; > } > if (PyDict_SetItem(dtype->f->castdict, key, cobj) < 0) { > do { if ( --((PyObject*)(key))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(key)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(key)))); } while (0); > do { if ( --((PyObject*)(cobj))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(cobj)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(cobj)))); } while (0); > return -1; > } > do { if ( --((PyObject*)(key))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(key)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(key)))); } while (0); > do { if ( --((PyObject*)(cobj))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(cobj)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(cobj)))); } while (0); ># 3929 "numpy/core/src/multiarray/arraytypes.c.src" ># 3933 "numpy/core/src/multiarray/arraytypes.c.src" > dtype = _builtin_descrs[NPY_STRING]; > if (dtype->f->castdict == ((void *)0)) { > dtype->f->castdict = PyDict_New(); > if (dtype->f->castdict == ((void *)0)) { > return -1; > } > } > key = PyInt_FromLong(NPY_HALF); > if (key == ((void *)0)) { > return -1; > } > cobj = NpyCapsule_FromVoidPtr((void *)STRING_to_HALF, ((void *)0)); > if (cobj == ((void *)0)) { > do { if ( --((PyObject*)(key))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(key)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(key)))); } while (0); > return -1; > } > if (PyDict_SetItem(dtype->f->castdict, key, cobj) < 0) { > do { if ( --((PyObject*)(key))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(key)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(key)))); } while (0); > do { if ( --((PyObject*)(cobj))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(cobj)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(cobj)))); } while (0); > return -1; > } > do { if ( --((PyObject*)(key))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(key)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(key)))); } while (0); > do { if ( --((PyObject*)(cobj))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(cobj)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(cobj)))); } while (0); ># 3933 "numpy/core/src/multiarray/arraytypes.c.src" > dtype = _builtin_descrs[NPY_STRING]; > if (dtype->f->castdict == ((void *)0)) { > dtype->f->castdict = PyDict_New(); > if (dtype->f->castdict == ((void *)0)) { > return -1; > } > } > key = PyInt_FromLong(NPY_DATETIME); > if (key == ((void *)0)) { > return -1; > } > cobj = NpyCapsule_FromVoidPtr((void *)STRING_to_DATETIME, ((void *)0)); > if (cobj == ((void *)0)) { > do { if ( --((PyObject*)(key))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(key)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(key)))); } while (0); > return -1; > } > if (PyDict_SetItem(dtype->f->castdict, key, cobj) < 0) { > do { if ( --((PyObject*)(key))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(key)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(key)))); } while (0); > do { if ( --((PyObject*)(cobj))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(cobj)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(cobj)))); } while (0); > return -1; > } > do { if ( --((PyObject*)(key))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(key)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(key)))); } while (0); > do { if ( --((PyObject*)(cobj))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(cobj)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(cobj)))); } while (0); ># 3933 "numpy/core/src/multiarray/arraytypes.c.src" > dtype = _builtin_descrs[NPY_STRING]; > if (dtype->f->castdict == ((void *)0)) { > dtype->f->castdict = PyDict_New(); > if (dtype->f->castdict == ((void *)0)) { > return -1; > } > } > key = PyInt_FromLong(NPY_TIMEDELTA); > if (key == ((void *)0)) { > return -1; > } > cobj = NpyCapsule_FromVoidPtr((void *)STRING_to_TIMEDELTA, ((void *)0)); > if (cobj == ((void *)0)) { > do { if ( --((PyObject*)(key))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(key)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(key)))); } while (0); > return -1; > } > if (PyDict_SetItem(dtype->f->castdict, key, cobj) < 0) { > do { if ( --((PyObject*)(key))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(key)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(key)))); } while (0); > do { if ( --((PyObject*)(cobj))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(cobj)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(cobj)))); } while (0); > return -1; > } > do { if ( --((PyObject*)(key))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(key)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(key)))); } while (0); > do { if ( --((PyObject*)(cobj))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(cobj)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(cobj)))); } while (0); ># 3929 "numpy/core/src/multiarray/arraytypes.c.src" ># 3933 "numpy/core/src/multiarray/arraytypes.c.src" > dtype = _builtin_descrs[NPY_UNICODE]; > if (dtype->f->castdict == ((void *)0)) { > dtype->f->castdict = PyDict_New(); > if (dtype->f->castdict == ((void *)0)) { > return -1; > } > } > key = PyInt_FromLong(NPY_HALF); > if (key == ((void *)0)) { > return -1; > } > cobj = NpyCapsule_FromVoidPtr((void *)UNICODE_to_HALF, ((void *)0)); > if (cobj == ((void *)0)) { > do { if ( --((PyObject*)(key))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(key)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(key)))); } while (0); > return -1; > } > if (PyDict_SetItem(dtype->f->castdict, key, cobj) < 0) { > do { if ( --((PyObject*)(key))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(key)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(key)))); } while (0); > do { if ( --((PyObject*)(cobj))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(cobj)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(cobj)))); } while (0); > return -1; > } > do { if ( --((PyObject*)(key))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(key)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(key)))); } while (0); > do { if ( --((PyObject*)(cobj))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(cobj)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(cobj)))); } while (0); ># 3933 "numpy/core/src/multiarray/arraytypes.c.src" > dtype = _builtin_descrs[NPY_UNICODE]; > if (dtype->f->castdict == ((void *)0)) { > dtype->f->castdict = PyDict_New(); > if (dtype->f->castdict == ((void *)0)) { > return -1; > } > } > key = PyInt_FromLong(NPY_DATETIME); > if (key == ((void *)0)) { > return -1; > } > cobj = NpyCapsule_FromVoidPtr((void *)UNICODE_to_DATETIME, ((void *)0)); > if (cobj == ((void *)0)) { > do { if ( --((PyObject*)(key))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(key)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(key)))); } while (0); > return -1; > } > if (PyDict_SetItem(dtype->f->castdict, key, cobj) < 0) { > do { if ( --((PyObject*)(key))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(key)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(key)))); } while (0); > do { if ( --((PyObject*)(cobj))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(cobj)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(cobj)))); } while (0); > return -1; > } > do { if ( --((PyObject*)(key))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(key)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(key)))); } while (0); > do { if ( --((PyObject*)(cobj))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(cobj)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(cobj)))); } while (0); ># 3933 "numpy/core/src/multiarray/arraytypes.c.src" > dtype = _builtin_descrs[NPY_UNICODE]; > if (dtype->f->castdict == ((void *)0)) { > dtype->f->castdict = PyDict_New(); > if (dtype->f->castdict == ((void *)0)) { > return -1; > } > } > key = PyInt_FromLong(NPY_TIMEDELTA); > if (key == ((void *)0)) { > return -1; > } > cobj = NpyCapsule_FromVoidPtr((void *)UNICODE_to_TIMEDELTA, ((void *)0)); > if (cobj == ((void *)0)) { > do { if ( --((PyObject*)(key))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(key)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(key)))); } while (0); > return -1; > } > if (PyDict_SetItem(dtype->f->castdict, key, cobj) < 0) { > do { if ( --((PyObject*)(key))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(key)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(key)))); } while (0); > do { if ( --((PyObject*)(cobj))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(cobj)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(cobj)))); } while (0); > return -1; > } > do { if ( --((PyObject*)(key))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(key)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(key)))); } while (0); > do { if ( --((PyObject*)(cobj))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(cobj)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(cobj)))); } while (0); ># 3929 "numpy/core/src/multiarray/arraytypes.c.src" ># 3933 "numpy/core/src/multiarray/arraytypes.c.src" > dtype = _builtin_descrs[NPY_VOID]; > if (dtype->f->castdict == ((void *)0)) { > dtype->f->castdict = PyDict_New(); > if (dtype->f->castdict == ((void *)0)) { > return -1; > } > } > key = PyInt_FromLong(NPY_HALF); > if (key == ((void *)0)) { > return -1; > } > cobj = NpyCapsule_FromVoidPtr((void *)VOID_to_HALF, ((void *)0)); > if (cobj == ((void *)0)) { > do { if ( --((PyObject*)(key))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(key)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(key)))); } while (0); > return -1; > } > if (PyDict_SetItem(dtype->f->castdict, key, cobj) < 0) { > do { if ( --((PyObject*)(key))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(key)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(key)))); } while (0); > do { if ( --((PyObject*)(cobj))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(cobj)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(cobj)))); } while (0); > return -1; > } > do { if ( --((PyObject*)(key))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(key)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(key)))); } while (0); > do { if ( --((PyObject*)(cobj))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(cobj)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(cobj)))); } while (0); ># 3933 "numpy/core/src/multiarray/arraytypes.c.src" > dtype = _builtin_descrs[NPY_VOID]; > if (dtype->f->castdict == ((void *)0)) { > dtype->f->castdict = PyDict_New(); > if (dtype->f->castdict == ((void *)0)) { > return -1; > } > } > key = PyInt_FromLong(NPY_DATETIME); > if (key == ((void *)0)) { > return -1; > } > cobj = NpyCapsule_FromVoidPtr((void *)VOID_to_DATETIME, ((void *)0)); > if (cobj == ((void *)0)) { > do { if ( --((PyObject*)(key))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(key)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(key)))); } while (0); > return -1; > } > if (PyDict_SetItem(dtype->f->castdict, key, cobj) < 0) { > do { if ( --((PyObject*)(key))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(key)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(key)))); } while (0); > do { if ( --((PyObject*)(cobj))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(cobj)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(cobj)))); } while (0); > return -1; > } > do { if ( --((PyObject*)(key))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(key)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(key)))); } while (0); > do { if ( --((PyObject*)(cobj))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(cobj)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(cobj)))); } while (0); ># 3933 "numpy/core/src/multiarray/arraytypes.c.src" > dtype = _builtin_descrs[NPY_VOID]; > if (dtype->f->castdict == ((void *)0)) { > dtype->f->castdict = PyDict_New(); > if (dtype->f->castdict == ((void *)0)) { > return -1; > } > } > key = PyInt_FromLong(NPY_TIMEDELTA); > if (key == ((void *)0)) { > return -1; > } > cobj = NpyCapsule_FromVoidPtr((void *)VOID_to_TIMEDELTA, ((void *)0)); > if (cobj == ((void *)0)) { > do { if ( --((PyObject*)(key))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(key)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(key)))); } while (0); > return -1; > } > if (PyDict_SetItem(dtype->f->castdict, key, cobj) < 0) { > do { if ( --((PyObject*)(key))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(key)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(key)))); } while (0); > do { if ( --((PyObject*)(cobj))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(cobj)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(cobj)))); } while (0); > return -1; > } > do { if ( --((PyObject*)(key))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(key)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(key)))); } while (0); > do { if ( --((PyObject*)(cobj))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(cobj)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(cobj)))); } while (0); ># 3929 "numpy/core/src/multiarray/arraytypes.c.src" ># 3933 "numpy/core/src/multiarray/arraytypes.c.src" > dtype = _builtin_descrs[NPY_DATETIME]; > if (dtype->f->castdict == ((void *)0)) { > dtype->f->castdict = PyDict_New(); > if (dtype->f->castdict == ((void *)0)) { > return -1; > } > } > key = PyInt_FromLong(NPY_HALF); > if (key == ((void *)0)) { > return -1; > } > cobj = NpyCapsule_FromVoidPtr((void *)DATETIME_to_HALF, ((void *)0)); > if (cobj == ((void *)0)) { > do { if ( --((PyObject*)(key))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(key)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(key)))); } while (0); > return -1; > } > if (PyDict_SetItem(dtype->f->castdict, key, cobj) < 0) { > do { if ( --((PyObject*)(key))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(key)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(key)))); } while (0); > do { if ( --((PyObject*)(cobj))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(cobj)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(cobj)))); } while (0); > return -1; > } > do { if ( --((PyObject*)(key))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(key)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(key)))); } while (0); > do { if ( --((PyObject*)(cobj))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(cobj)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(cobj)))); } while (0); ># 3933 "numpy/core/src/multiarray/arraytypes.c.src" > dtype = _builtin_descrs[NPY_DATETIME]; > if (dtype->f->castdict == ((void *)0)) { > dtype->f->castdict = PyDict_New(); > if (dtype->f->castdict == ((void *)0)) { > return -1; > } > } > key = PyInt_FromLong(NPY_DATETIME); > if (key == ((void *)0)) { > return -1; > } > cobj = NpyCapsule_FromVoidPtr((void *)DATETIME_to_DATETIME, ((void *)0)); > if (cobj == ((void *)0)) { > do { if ( --((PyObject*)(key))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(key)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(key)))); } while (0); > return -1; > } > if (PyDict_SetItem(dtype->f->castdict, key, cobj) < 0) { > do { if ( --((PyObject*)(key))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(key)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(key)))); } while (0); > do { if ( --((PyObject*)(cobj))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(cobj)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(cobj)))); } while (0); > return -1; > } > do { if ( --((PyObject*)(key))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(key)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(key)))); } while (0); > do { if ( --((PyObject*)(cobj))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(cobj)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(cobj)))); } while (0); ># 3933 "numpy/core/src/multiarray/arraytypes.c.src" > dtype = _builtin_descrs[NPY_DATETIME]; > if (dtype->f->castdict == ((void *)0)) { > dtype->f->castdict = PyDict_New(); > if (dtype->f->castdict == ((void *)0)) { > return -1; > } > } > key = PyInt_FromLong(NPY_TIMEDELTA); > if (key == ((void *)0)) { > return -1; > } > cobj = NpyCapsule_FromVoidPtr((void *)DATETIME_to_TIMEDELTA, ((void *)0)); > if (cobj == ((void *)0)) { > do { if ( --((PyObject*)(key))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(key)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(key)))); } while (0); > return -1; > } > if (PyDict_SetItem(dtype->f->castdict, key, cobj) < 0) { > do { if ( --((PyObject*)(key))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(key)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(key)))); } while (0); > do { if ( --((PyObject*)(cobj))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(cobj)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(cobj)))); } while (0); > return -1; > } > do { if ( --((PyObject*)(key))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(key)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(key)))); } while (0); > do { if ( --((PyObject*)(cobj))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(cobj)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(cobj)))); } while (0); ># 3929 "numpy/core/src/multiarray/arraytypes.c.src" ># 3933 "numpy/core/src/multiarray/arraytypes.c.src" > dtype = _builtin_descrs[NPY_TIMEDELTA]; > if (dtype->f->castdict == ((void *)0)) { > dtype->f->castdict = PyDict_New(); > if (dtype->f->castdict == ((void *)0)) { > return -1; > } > } > key = PyInt_FromLong(NPY_HALF); > if (key == ((void *)0)) { > return -1; > } > cobj = NpyCapsule_FromVoidPtr((void *)TIMEDELTA_to_HALF, ((void *)0)); > if (cobj == ((void *)0)) { > do { if ( --((PyObject*)(key))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(key)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(key)))); } while (0); > return -1; > } > if (PyDict_SetItem(dtype->f->castdict, key, cobj) < 0) { > do { if ( --((PyObject*)(key))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(key)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(key)))); } while (0); > do { if ( --((PyObject*)(cobj))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(cobj)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(cobj)))); } while (0); > return -1; > } > do { if ( --((PyObject*)(key))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(key)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(key)))); } while (0); > do { if ( --((PyObject*)(cobj))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(cobj)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(cobj)))); } while (0); ># 3933 "numpy/core/src/multiarray/arraytypes.c.src" > dtype = _builtin_descrs[NPY_TIMEDELTA]; > if (dtype->f->castdict == ((void *)0)) { > dtype->f->castdict = PyDict_New(); > if (dtype->f->castdict == ((void *)0)) { > return -1; > } > } > key = PyInt_FromLong(NPY_DATETIME); > if (key == ((void *)0)) { > return -1; > } > cobj = NpyCapsule_FromVoidPtr((void *)TIMEDELTA_to_DATETIME, ((void *)0)); > if (cobj == ((void *)0)) { > do { if ( --((PyObject*)(key))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(key)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(key)))); } while (0); > return -1; > } > if (PyDict_SetItem(dtype->f->castdict, key, cobj) < 0) { > do { if ( --((PyObject*)(key))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(key)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(key)))); } while (0); > do { if ( --((PyObject*)(cobj))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(cobj)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(cobj)))); } while (0); > return -1; > } > do { if ( --((PyObject*)(key))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(key)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(key)))); } while (0); > do { if ( --((PyObject*)(cobj))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(cobj)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(cobj)))); } while (0); ># 3933 "numpy/core/src/multiarray/arraytypes.c.src" > dtype = _builtin_descrs[NPY_TIMEDELTA]; > if (dtype->f->castdict == ((void *)0)) { > dtype->f->castdict = PyDict_New(); > if (dtype->f->castdict == ((void *)0)) { > return -1; > } > } > key = PyInt_FromLong(NPY_TIMEDELTA); > if (key == ((void *)0)) { > return -1; > } > cobj = NpyCapsule_FromVoidPtr((void *)TIMEDELTA_to_TIMEDELTA, ((void *)0)); > if (cobj == ((void *)0)) { > do { if ( --((PyObject*)(key))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(key)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(key)))); } while (0); > return -1; > } > if (PyDict_SetItem(dtype->f->castdict, key, cobj) < 0) { > do { if ( --((PyObject*)(key))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(key)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(key)))); } while (0); > do { if ( --((PyObject*)(cobj))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(cobj)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(cobj)))); } while (0); > return -1; > } > do { if ( --((PyObject*)(key))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(key)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(key)))); } while (0); > do { if ( --((PyObject*)(cobj))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(cobj)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(cobj)))); } while (0); > > > > for (i = 0; i < 128; i++) { > _letter_to_num[i] = NPY_NTYPES; > } ># 3970 "numpy/core/src/multiarray/arraytypes.c.src" > _letter_to_num[NPY_BOOLLTR] = NPY_BOOL; ># 3970 "numpy/core/src/multiarray/arraytypes.c.src" > _letter_to_num[NPY_BYTELTR] = NPY_BYTE; ># 3970 "numpy/core/src/multiarray/arraytypes.c.src" > _letter_to_num[NPY_UBYTELTR] = NPY_UBYTE; ># 3970 "numpy/core/src/multiarray/arraytypes.c.src" > _letter_to_num[NPY_SHORTLTR] = NPY_SHORT; ># 3970 "numpy/core/src/multiarray/arraytypes.c.src" > _letter_to_num[NPY_USHORTLTR] = NPY_USHORT; ># 3970 "numpy/core/src/multiarray/arraytypes.c.src" > _letter_to_num[NPY_INTLTR] = NPY_INT; ># 3970 "numpy/core/src/multiarray/arraytypes.c.src" > _letter_to_num[NPY_UINTLTR] = NPY_UINT; ># 3970 "numpy/core/src/multiarray/arraytypes.c.src" > _letter_to_num[NPY_INTPLTR] = NPY_LONG; ># 3970 "numpy/core/src/multiarray/arraytypes.c.src" > _letter_to_num[NPY_UINTPLTR] = NPY_ULONG; ># 3970 "numpy/core/src/multiarray/arraytypes.c.src" > _letter_to_num[NPY_LONGLTR] = NPY_LONG; ># 3970 "numpy/core/src/multiarray/arraytypes.c.src" > _letter_to_num[NPY_ULONGLTR] = NPY_ULONG; ># 3970 "numpy/core/src/multiarray/arraytypes.c.src" > _letter_to_num[NPY_LONGLONGLTR] = NPY_LONGLONG; ># 3970 "numpy/core/src/multiarray/arraytypes.c.src" > _letter_to_num[NPY_ULONGLONGLTR] = NPY_ULONGLONG; ># 3970 "numpy/core/src/multiarray/arraytypes.c.src" > _letter_to_num[NPY_HALFLTR] = NPY_HALF; ># 3970 "numpy/core/src/multiarray/arraytypes.c.src" > _letter_to_num[NPY_FLOATLTR] = NPY_FLOAT; ># 3970 "numpy/core/src/multiarray/arraytypes.c.src" > _letter_to_num[NPY_DOUBLELTR] = NPY_DOUBLE; ># 3970 "numpy/core/src/multiarray/arraytypes.c.src" > _letter_to_num[NPY_LONGDOUBLELTR] = NPY_LONGDOUBLE; ># 3970 "numpy/core/src/multiarray/arraytypes.c.src" > _letter_to_num[NPY_CFLOATLTR] = NPY_CFLOAT; ># 3970 "numpy/core/src/multiarray/arraytypes.c.src" > _letter_to_num[NPY_CDOUBLELTR] = NPY_CDOUBLE; ># 3970 "numpy/core/src/multiarray/arraytypes.c.src" > _letter_to_num[NPY_CLONGDOUBLELTR] = NPY_CLONGDOUBLE; ># 3970 "numpy/core/src/multiarray/arraytypes.c.src" > _letter_to_num[NPY_OBJECTLTR] = NPY_OBJECT; ># 3970 "numpy/core/src/multiarray/arraytypes.c.src" > _letter_to_num[NPY_STRINGLTR] = NPY_STRING; ># 3970 "numpy/core/src/multiarray/arraytypes.c.src" > _letter_to_num[NPY_UNICODELTR] = NPY_UNICODE; ># 3970 "numpy/core/src/multiarray/arraytypes.c.src" > _letter_to_num[NPY_VOIDLTR] = NPY_VOID; ># 3970 "numpy/core/src/multiarray/arraytypes.c.src" > _letter_to_num[NPY_DATETIMELTR] = NPY_DATETIME; ># 3970 "numpy/core/src/multiarray/arraytypes.c.src" > _letter_to_num[NPY_TIMEDELTALTR] = NPY_TIMEDELTA; > > _letter_to_num[NPY_STRINGLTR2] = NPY_STRING; ># 3980 "numpy/core/src/multiarray/arraytypes.c.src" > BOOL_Descr.fields = (&_Py_NoneStruct); ># 3980 "numpy/core/src/multiarray/arraytypes.c.src" > BYTE_Descr.fields = (&_Py_NoneStruct); ># 3980 "numpy/core/src/multiarray/arraytypes.c.src" > UBYTE_Descr.fields = (&_Py_NoneStruct); ># 3980 "numpy/core/src/multiarray/arraytypes.c.src" > SHORT_Descr.fields = (&_Py_NoneStruct); ># 3980 "numpy/core/src/multiarray/arraytypes.c.src" > USHORT_Descr.fields = (&_Py_NoneStruct); ># 3980 "numpy/core/src/multiarray/arraytypes.c.src" > INT_Descr.fields = (&_Py_NoneStruct); ># 3980 "numpy/core/src/multiarray/arraytypes.c.src" > UINT_Descr.fields = (&_Py_NoneStruct); ># 3980 "numpy/core/src/multiarray/arraytypes.c.src" > LONG_Descr.fields = (&_Py_NoneStruct); ># 3980 "numpy/core/src/multiarray/arraytypes.c.src" > ULONG_Descr.fields = (&_Py_NoneStruct); ># 3980 "numpy/core/src/multiarray/arraytypes.c.src" > LONGLONG_Descr.fields = (&_Py_NoneStruct); ># 3980 "numpy/core/src/multiarray/arraytypes.c.src" > ULONGLONG_Descr.fields = (&_Py_NoneStruct); ># 3980 "numpy/core/src/multiarray/arraytypes.c.src" > HALF_Descr.fields = (&_Py_NoneStruct); ># 3980 "numpy/core/src/multiarray/arraytypes.c.src" > FLOAT_Descr.fields = (&_Py_NoneStruct); ># 3980 "numpy/core/src/multiarray/arraytypes.c.src" > DOUBLE_Descr.fields = (&_Py_NoneStruct); ># 3980 "numpy/core/src/multiarray/arraytypes.c.src" > LONGDOUBLE_Descr.fields = (&_Py_NoneStruct); ># 3980 "numpy/core/src/multiarray/arraytypes.c.src" > CFLOAT_Descr.fields = (&_Py_NoneStruct); ># 3980 "numpy/core/src/multiarray/arraytypes.c.src" > CDOUBLE_Descr.fields = (&_Py_NoneStruct); ># 3980 "numpy/core/src/multiarray/arraytypes.c.src" > CLONGDOUBLE_Descr.fields = (&_Py_NoneStruct); ># 3980 "numpy/core/src/multiarray/arraytypes.c.src" > OBJECT_Descr.fields = (&_Py_NoneStruct); ># 3980 "numpy/core/src/multiarray/arraytypes.c.src" > STRING_Descr.fields = (&_Py_NoneStruct); ># 3980 "numpy/core/src/multiarray/arraytypes.c.src" > UNICODE_Descr.fields = (&_Py_NoneStruct); ># 3980 "numpy/core/src/multiarray/arraytypes.c.src" > VOID_Descr.fields = (&_Py_NoneStruct); ># 3980 "numpy/core/src/multiarray/arraytypes.c.src" > DATETIME_Descr.fields = (&_Py_NoneStruct); ># 3980 "numpy/core/src/multiarray/arraytypes.c.src" > TIMEDELTA_Descr.fields = (&_Py_NoneStruct); > > > > infodict = PyDict_New(); > if (infodict == ((void *)0)) return -1; ># 4011 "numpy/core/src/multiarray/arraytypes.c.src" > PyDict_SetItemString(infodict, "BOOL", > > > > s = _Py_BuildValue_SizeT("ciiiiiO", > > NPY_BOOLLTR, > NPY_BOOL, > (sizeof(npy_bool)*8), > ((size_t) &((struct {char c; npy_bool v;} *)0)->v), > 1, > 0, > (PyObject *) &PyBoolArrType_Type)); > do { if ( --((PyObject*)(s))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(s)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(s)))); } while (0); ># 4011 "numpy/core/src/multiarray/arraytypes.c.src" > PyDict_SetItemString(infodict, "BYTE", > > > > s = _Py_BuildValue_SizeT("ciiiiiO", > > NPY_BYTELTR, > NPY_BYTE, > 8, > ((size_t) &((struct {char c; npy_byte v;} *)0)->v), > 127, > (-127 - 1), > (PyObject *) &PyByteArrType_Type)); > do { if ( --((PyObject*)(s))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(s)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(s)))); } while (0); ># 4011 "numpy/core/src/multiarray/arraytypes.c.src" > PyDict_SetItemString(infodict, "UBYTE", > > > > s = _Py_BuildValue_SizeT("ciiiiiO", > > NPY_UBYTELTR, > NPY_UBYTE, > 8, > ((size_t) &((struct {char c; npy_ubyte v;} *)0)->v), > (127 * 2 + 1), > 0, > (PyObject *) &PyUByteArrType_Type)); > do { if ( --((PyObject*)(s))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(s)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(s)))); } while (0); ># 4011 "numpy/core/src/multiarray/arraytypes.c.src" > PyDict_SetItemString(infodict, "SHORT", > > > > s = _Py_BuildValue_SizeT("ciiiiiO", > > NPY_SHORTLTR, > NPY_SHORT, > (2 * 8), > ((size_t) &((struct {char c; short v;} *)0)->v), > 32767, > (-32767 - 1), > (PyObject *) &PyShortArrType_Type)); > do { if ( --((PyObject*)(s))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(s)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(s)))); } while (0); ># 4011 "numpy/core/src/multiarray/arraytypes.c.src" > PyDict_SetItemString(infodict, "USHORT", > > > > s = _Py_BuildValue_SizeT("ciiiiiO", > > NPY_USHORTLTR, > NPY_USHORT, > (2 * 8), > ((size_t) &((struct {char c; npy_ushort v;} *)0)->v), > (32767 * 2 + 1), > 0, > (PyObject *) &PyUShortArrType_Type)); > do { if ( --((PyObject*)(s))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(s)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(s)))); } while (0); ># 4011 "numpy/core/src/multiarray/arraytypes.c.src" > PyDict_SetItemString(infodict, "INT", > > > > s = _Py_BuildValue_SizeT("ciiiiiO", > > NPY_INTLTR, > NPY_INT, > (4 * 8), > ((size_t) &((struct {char c; int v;} *)0)->v), > 2147483647, > (-2147483647 - 1), > (PyObject *) &PyIntArrType_Type)); > do { if ( --((PyObject*)(s))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(s)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(s)))); } while (0); ># 4011 "numpy/core/src/multiarray/arraytypes.c.src" > PyDict_SetItemString(infodict, "UINT", > > > > s = _Py_BuildValue_SizeT("ciiiNiO", > > NPY_UINTLTR, > NPY_UINT, > (4 * 8), > ((size_t) &((struct {char c; npy_uint v;} *)0)->v), > PyLong_FromUnsignedLong((2147483647 * 2U + 1U)), > 0, > (PyObject *) &PyUIntArrType_Type)); > do { if ( --((PyObject*)(s))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(s)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(s)))); } while (0); ># 4011 "numpy/core/src/multiarray/arraytypes.c.src" > PyDict_SetItemString(infodict, "INTP", > > > > s = _Py_BuildValue_SizeT("ciiiNNO", > > NPY_INTPLTR, > NPY_LONG, > 8*8, > ((size_t) &((struct {char c; npy_intp v;} *)0)->v), > PyLong_FromLongLong((npy_longlong) 9223372036854775807L), > PyLong_FromLongLong((npy_longlong) (-9223372036854775807L - 1L)), > (PyObject *) &PyLongArrType_Type)); > do { if ( --((PyObject*)(s))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(s)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(s)))); } while (0); ># 4011 "numpy/core/src/multiarray/arraytypes.c.src" > PyDict_SetItemString(infodict, "UINTP", > > > > s = _Py_BuildValue_SizeT("ciiiNiO", > > NPY_UINTPLTR, > NPY_ULONG, > 8*8, > ((size_t) &((struct {char c; npy_uintp v;} *)0)->v), > PyLong_FromUnsignedLongLong((npy_ulonglong) (9223372036854775807L * 2UL + 1UL)), > 0, > (PyObject *) &PyULongArrType_Type)); > do { if ( --((PyObject*)(s))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(s)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(s)))); } while (0); ># 4011 "numpy/core/src/multiarray/arraytypes.c.src" > PyDict_SetItemString(infodict, "LONG", > > > > s = _Py_BuildValue_SizeT("ciiillO", > > NPY_LONGLTR, > NPY_LONG, > (8 * 8), > ((size_t) &((struct {char c; long v;} *)0)->v), > 9223372036854775807L, > (-9223372036854775807L - 1L), > (PyObject *) &PyLongArrType_Type)); > do { if ( --((PyObject*)(s))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(s)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(s)))); } while (0); ># 4011 "numpy/core/src/multiarray/arraytypes.c.src" > PyDict_SetItemString(infodict, "ULONG", > > > > s = _Py_BuildValue_SizeT("ciiiNiO", > > NPY_ULONGLTR, > NPY_ULONG, > (8 * 8), > ((size_t) &((struct {char c; npy_ulong v;} *)0)->v), > PyLong_FromUnsignedLong((unsigned long) (9223372036854775807L * 2UL + 1UL)), > 0, > (PyObject *) &PyULongArrType_Type)); > do { if ( --((PyObject*)(s))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(s)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(s)))); } while (0); ># 4011 "numpy/core/src/multiarray/arraytypes.c.src" > PyDict_SetItemString(infodict, "LONGLONG", > > > > s = _Py_BuildValue_SizeT("ciiiNNO", > > NPY_LONGLONGLTR, > NPY_LONGLONG, > (8 * 8), > ((size_t) &((struct {char c; npy_longlong v;} *)0)->v), > PyLong_FromLongLong((npy_longlong) (9223372036854775807LL)), > PyLong_FromLongLong((npy_longlong) (-(9223372036854775807LL) - (1LL))), > (PyObject *) &PyLongLongArrType_Type)); > do { if ( --((PyObject*)(s))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(s)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(s)))); } while (0); ># 4011 "numpy/core/src/multiarray/arraytypes.c.src" > PyDict_SetItemString(infodict, "ULONGLONG", > > > > s = _Py_BuildValue_SizeT("ciiiNiO", > > NPY_ULONGLONGLTR, > NPY_ULONGLONG, > (8 * 8), > ((size_t) &((struct {char c; npy_ulonglong v;} *)0)->v), > PyLong_FromUnsignedLongLong((npy_ulonglong) (18446744073709551615ULL)), > 0, > (PyObject *) &PyULongLongArrType_Type)); > do { if ( --((PyObject*)(s))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(s)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(s)))); } while (0); ># 4037 "numpy/core/src/multiarray/arraytypes.c.src" > PyDict_SetItemString(infodict, "HALF", > > > > s = _Py_BuildValue_SizeT("ciiiO", NPY_HALFLTR, > > NPY_HALF, > (2 * 8), > ((size_t) &((struct {char c; npy_half v;} *)0)->v), > (PyObject *) &PyHalfArrType_Type)); > do { if ( --((PyObject*)(s))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(s)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(s)))); } while (0); ># 4037 "numpy/core/src/multiarray/arraytypes.c.src" > PyDict_SetItemString(infodict, "FLOAT", > > > > s = _Py_BuildValue_SizeT("ciiiO", NPY_FLOATLTR, > > NPY_FLOAT, > (4 * 8), > ((size_t) &((struct {char c; float v;} *)0)->v), > (PyObject *) &PyFloatArrType_Type)); > do { if ( --((PyObject*)(s))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(s)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(s)))); } while (0); ># 4037 "numpy/core/src/multiarray/arraytypes.c.src" > PyDict_SetItemString(infodict, "DOUBLE", > > > > s = _Py_BuildValue_SizeT("ciiiO", NPY_DOUBLELTR, > > NPY_DOUBLE, > (8 * 8), > ((size_t) &((struct {char c; double v;} *)0)->v), > (PyObject *) &PyDoubleArrType_Type)); > do { if ( --((PyObject*)(s))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(s)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(s)))); } while (0); ># 4037 "numpy/core/src/multiarray/arraytypes.c.src" > PyDict_SetItemString(infodict, "LONGDOUBLE", > > > > s = _Py_BuildValue_SizeT("ciiiO", NPY_LONGDOUBLELTR, > > NPY_LONGDOUBLE, > (16 * 8), > ((size_t) &((struct {char c; npy_longdouble v;} *)0)->v), > (PyObject *) &PyLongDoubleArrType_Type)); > do { if ( --((PyObject*)(s))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(s)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(s)))); } while (0); ># 4037 "numpy/core/src/multiarray/arraytypes.c.src" > PyDict_SetItemString(infodict, "CFLOAT", > > > > s = _Py_BuildValue_SizeT("ciiiO", NPY_CFLOATLTR, > > NPY_CFLOAT, > 2*(4 * 8), > ((size_t) &((struct {char c; npy_cfloat v;} *)0)->v), > (PyObject *) &PyCFloatArrType_Type)); > do { if ( --((PyObject*)(s))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(s)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(s)))); } while (0); ># 4037 "numpy/core/src/multiarray/arraytypes.c.src" > PyDict_SetItemString(infodict, "CDOUBLE", > > > > s = _Py_BuildValue_SizeT("ciiiO", NPY_CDOUBLELTR, > > NPY_CDOUBLE, > 2*(8 * 8), > ((size_t) &((struct {char c; npy_cdouble v;} *)0)->v), > (PyObject *) &PyCDoubleArrType_Type)); > do { if ( --((PyObject*)(s))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(s)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(s)))); } while (0); ># 4037 "numpy/core/src/multiarray/arraytypes.c.src" > PyDict_SetItemString(infodict, "CLONGDOUBLE", > > > > s = _Py_BuildValue_SizeT("ciiiO", NPY_CLONGDOUBLELTR, > > NPY_CLONGDOUBLE, > 2*(16 * 8), > ((size_t) &((struct {char c; npy_clongdouble v;} *)0)->v), > (PyObject *) &PyCLongDoubleArrType_Type)); > do { if ( --((PyObject*)(s))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(s)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(s)))); } while (0); > > > PyDict_SetItemString(infodict, "OBJECT", > > > > s = _Py_BuildValue_SizeT("ciiiO", NPY_OBJECTLTR, > > NPY_OBJECT, > sizeof(PyObject *) * 8, > ((size_t) &((struct {char c; PyObject * v;} *)0)->v), > (PyObject *) &PyObjectArrType_Type)); > do { if ( --((PyObject*)(s))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(s)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(s)))); } while (0); > PyDict_SetItemString(infodict, "STRING", > > > > s = _Py_BuildValue_SizeT("ciiiO", NPY_STRINGLTR, > > NPY_STRING, > 0, > ((size_t) &((struct {char c; char v;} *)0)->v), > (PyObject *) &PyStringArrType_Type)); > do { if ( --((PyObject*)(s))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(s)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(s)))); } while (0); > PyDict_SetItemString(infodict, "UNICODE", > > > > s = _Py_BuildValue_SizeT("ciiiO", NPY_UNICODELTR, > > NPY_UNICODE, > 0, > ((size_t) &((struct {char c; npy_ucs4 v;} *)0)->v), > (PyObject *) &PyUnicodeArrType_Type)); > do { if ( --((PyObject*)(s))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(s)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(s)))); } while (0); > PyDict_SetItemString(infodict, "VOID", > > > > s = _Py_BuildValue_SizeT("ciiiO", NPY_VOIDLTR, > > NPY_VOID, > 0, > ((size_t) &((struct {char c; char v;} *)0)->v), > (PyObject *) &PyVoidArrType_Type)); > do { if ( --((PyObject*)(s))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(s)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(s)))); } while (0); > PyDict_SetItemString(infodict, "DATETIME", > > > > s = _Py_BuildValue_SizeT("ciiiNNO", NPY_DATETIMELTR, > > NPY_DATETIME, > sizeof(npy_datetime) * 8, > ((size_t) &((struct {char c; npy_datetime v;} *)0)->v), > PyLong_FromLong((9223372036854775807LL)), > PyLong_FromLong((-(9223372036854775807LL) - (1LL))), > (PyObject *) &PyDatetimeArrType_Type)); > do { if ( --((PyObject*)(s))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(s)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(s)))); } while (0); > PyDict_SetItemString(infodict, "TIMEDELTA", > > > > s = _Py_BuildValue_SizeT("ciiiNNO",NPY_TIMEDELTALTR, > > NPY_TIMEDELTA, > sizeof(npy_timedelta) * 8, > ((size_t) &((struct {char c; npy_timedelta v;} *)0)->v), > PyLong_FromLong((9223372036854775807LL)), > PyLong_FromLong((-(9223372036854775807LL) - (1LL))), > (PyObject *)&PyTimedeltaArrType_Type)); > do { if ( --((PyObject*)(s))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(s)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(s)))); } while (0); > > > > > > > ( ((PyObject*)(&PyGenericArrType_Type))->ob_refcnt++); PyDict_SetItemString(infodict, "Generic", (PyObject *)&PyGenericArrType_Type); > ( ((PyObject*)(&PyNumberArrType_Type))->ob_refcnt++); PyDict_SetItemString(infodict, "Number", (PyObject *)&PyNumberArrType_Type); > ( ((PyObject*)(&PyIntegerArrType_Type))->ob_refcnt++); PyDict_SetItemString(infodict, "Integer", (PyObject *)&PyIntegerArrType_Type); > ( ((PyObject*)(&PyInexactArrType_Type))->ob_refcnt++); PyDict_SetItemString(infodict, "Inexact", (PyObject *)&PyInexactArrType_Type); > ( ((PyObject*)(&PySignedIntegerArrType_Type))->ob_refcnt++); PyDict_SetItemString(infodict, "SignedInteger", (PyObject *)&PySignedIntegerArrType_Type); > ( ((PyObject*)(&PyTimeIntegerArrType_Type))->ob_refcnt++); PyDict_SetItemString(infodict, "TimeInteger", (PyObject *)&PyTimeIntegerArrType_Type); > ( ((PyObject*)(&PyUnsignedIntegerArrType_Type))->ob_refcnt++); PyDict_SetItemString(infodict, "UnsignedInteger", (PyObject *)&PyUnsignedIntegerArrType_Type); > ( ((PyObject*)(&PyFloatingArrType_Type))->ob_refcnt++); PyDict_SetItemString(infodict, "Floating", (PyObject *)&PyFloatingArrType_Type); > ( ((PyObject*)(&PyComplexFloatingArrType_Type))->ob_refcnt++); PyDict_SetItemString(infodict, "ComplexFloating", (PyObject *)&PyComplexFloatingArrType_Type); > ( ((PyObject*)(&PyFlexibleArrType_Type))->ob_refcnt++); PyDict_SetItemString(infodict, "Flexible", (PyObject *)&PyFlexibleArrType_Type); > ( ((PyObject*)(&PyCharacterArrType_Type))->ob_refcnt++); PyDict_SetItemString(infodict, "Character", (PyObject *)&PyCharacterArrType_Type); > > > > PyDict_SetItemString(dict, "typeinfo", infodict); > do { if ( --((PyObject*)(infodict))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(infodict)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(infodict)))); } while (0); > return 0; >} ># 15 "numpy/core/src/multiarray/multiarraymodule_onefile.c" 2 > ># 1 "numpy/core/src/multiarray/hashdescr.c" 1 ># 10 "numpy/core/src/multiarray/hashdescr.c" ># 1 "numpy/core/src/multiarray/hashdescr.h" 1 > > > >static long >PyArray_DescrHash(PyObject* odescr); ># 11 "numpy/core/src/multiarray/hashdescr.c" 2 ># 28 "numpy/core/src/multiarray/hashdescr.c" >static int _is_array_descr_builtin(PyArray_Descr* descr); >static int _array_descr_walk(PyArray_Descr* descr, PyObject *l); >static int _array_descr_walk_fields(PyObject* fields, PyObject* l); >static int _array_descr_builtin(PyArray_Descr* descr, PyObject *l); > > > > > static char _normalize_byteorder(char byteorder) > { > switch(byteorder) { > case '=': > if (PyArray_GetEndianness() == NPY_CPU_BIG) { > return '>'; > } else { > return '<'; > } > default: > return byteorder; > } > } > > > > >static int _is_array_descr_builtin(PyArray_Descr* descr) >{ > if (descr->fields != ((void *)0) && descr->fields != (&_Py_NoneStruct)) { > return 0; > } > if (descr->subarray != ((void *)0)) { > return 0; > } > return 1; >} > > > > >static int _array_descr_builtin(PyArray_Descr* descr, PyObject *l) >{ > Py_ssize_t i; > PyObject *t, *item; > char nbyteorder = _normalize_byteorder(descr->byteorder); > > > > > > t = _Py_BuildValue_SizeT("(cciiii)", descr->kind, nbyteorder, > descr->flags, descr->type_num, descr->elsize, > descr->alignment); > > for(i = 0; i < PyTuple_Size(t); ++i) { > item = PyTuple_GetItem(t, i); > if (item == ((void *)0)) { > PyErr_SetString(PyExc_SystemError, > "(Hash) Error while computing builting hash"); > goto clean_t; > } > ( ((PyObject*)(item))->ob_refcnt++); > PyList_Append(l, item); > } > > do { if ( --((PyObject*)(t))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(t)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(t)))); } while (0); > return 0; > >clean_t: > do { if ( --((PyObject*)(t))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(t)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(t)))); } while (0); > return -1; >} > > > > > > > >static int _array_descr_walk_fields(PyObject* fields, PyObject* l) >{ > PyObject *key, *value, *foffset, *fdescr; > Py_ssize_t pos = 0; > int st; > > while (PyDict_Next(fields, &pos, &key, &value)) { > > > > > > if (!((((((PyObject*)(key))->ob_type))->tp_flags & ((1L<<27))) != 0)) { > PyErr_SetString(PyExc_SystemError, > "(Hash) key of dtype dict not a string ???"); > return -1; > } > if (!((((((PyObject*)(value))->ob_type))->tp_flags & ((1L<<26))) != 0)) { > PyErr_SetString(PyExc_SystemError, > "(Hash) value of dtype dict not a dtype ???"); > return -1; > } > if (PyTuple_Size(value) < 2) { > PyErr_SetString(PyExc_SystemError, > "(Hash) Less than 2 items in dtype dict ???"); > return -1; > } > ( ((PyObject*)(key))->ob_refcnt++); > PyList_Append(l, key); > > fdescr = PyTuple_GetItem(value, 0); > if (!(((PyObject*)(fdescr))->ob_type==&PyArrayDescr_Type)) { > PyErr_SetString(PyExc_SystemError, > "(Hash) First item in compound dtype tuple not a descr ???"); > return -1; > } else { > ( ((PyObject*)(fdescr))->ob_refcnt++); > st = _array_descr_walk((PyArray_Descr*)fdescr, l); > do { if ( --((PyObject*)(fdescr))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(fdescr)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(fdescr)))); } while (0); > if (st) { > return -1; > } > } > > foffset = PyTuple_GetItem(value, 1); > if (!((((foffset)->ob_type)->tp_flags & ((1L<<23))) != 0)) { > PyErr_SetString(PyExc_SystemError, > "(Hash) Second item in compound dtype tuple not an int ???"); > return -1; > } else { > ( ((PyObject*)(foffset))->ob_refcnt++); > PyList_Append(l, foffset); > } > } > > return 0; >} > > > > > > >static int _array_descr_walk_subarray(PyArray_ArrayDescr* adescr, PyObject *l) >{ > PyObject *item; > Py_ssize_t i; > int st; > > > > > if (((((((PyObject*)(adescr->shape))->ob_type))->tp_flags & ((1L<<26))) != 0)) { > for(i = 0; i < PyTuple_Size(adescr->shape); ++i) { > item = PyTuple_GetItem(adescr->shape, i); > if (item == ((void *)0)) { > PyErr_SetString(PyExc_SystemError, > "(Hash) Error while getting shape item of subarray dtype ???"); > return -1; > } > ( ((PyObject*)(item))->ob_refcnt++); > PyList_Append(l, item); > } > } else if (((((adescr->shape)->ob_type)->tp_flags & ((1L<<23))) != 0)) { > ( ((PyObject*)(adescr->shape))->ob_refcnt++); > PyList_Append(l, adescr->shape); > } else { > PyErr_SetString(PyExc_SystemError, > "(Hash) Shape of subarray dtype neither a tuple or int ???"); > return -1; > } > > ( ((PyObject*)(adescr->base))->ob_refcnt++); > st = _array_descr_walk(adescr->base, l); > do { if ( --((PyObject*)(adescr->base))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(adescr->base)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(adescr->base)))); } while (0); > > return st; >} > > > > >static int _array_descr_walk(PyArray_Descr* descr, PyObject *l) >{ > int st; > > if (_is_array_descr_builtin(descr)) { > return _array_descr_builtin(descr, l); > } else { > if(descr->fields != ((void *)0) && descr->fields != (&_Py_NoneStruct)) { > if (!((((((PyObject*)(descr->fields))->ob_type))->tp_flags & ((1L<<29))) != 0)) { > PyErr_SetString(PyExc_SystemError, > "(Hash) fields is not a dict ???"); > return -1; > } > st = _array_descr_walk_fields(descr->fields, l); > if (st) { > return -1; > } > } > if(descr->subarray != ((void *)0)) { > st = _array_descr_walk_subarray(descr->subarray, l); > if (st) { > return -1; > } > } > } > > return 0; >} > > > > >static int _PyArray_DescrHashImp(PyArray_Descr *descr, long *hash) >{ > PyObject *l, *tl, *item; > Py_ssize_t i; > int st; > > l = PyList_New(0); > if (l == ((void *)0)) { > return -1; > } > > st = _array_descr_walk(descr, l); > if (st) { > goto clean_l; > } > > > > > > tl = PyTuple_New(PyList_Size(l)); > for(i = 0; i < PyList_Size(l); ++i) { > item = PyList_GetItem(l, i); > if (item == ((void *)0)) { > PyErr_SetString(PyExc_SystemError, > "(Hash) Error while translating the list into a tuple " "(NULL item)"); > > goto clean_tl; > } > PyTuple_SetItem(tl, i, item); > } > > *hash = PyObject_Hash(tl); > if (*hash == -1) { > > > > > > goto clean_tl; > } > do { if ( --((PyObject*)(tl))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(tl)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(tl)))); } while (0); > do { if ( --((PyObject*)(l))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(l)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(l)))); } while (0); > > return 0; > >clean_tl: > do { if ( --((PyObject*)(tl))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(tl)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(tl)))); } while (0); >clean_l: > do { if ( --((PyObject*)(l))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(l)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(l)))); } while (0); > return -1; >} > >static long >PyArray_DescrHash(PyObject* odescr) >{ > PyArray_Descr *descr; > int st; > long hash; > > if (!(((PyObject*)(odescr))->ob_type==&PyArrayDescr_Type)) { > PyErr_SetString(PyExc_ValueError, > "PyArray_DescrHash argument must be a type descriptor"); > return -1; > } > descr = (PyArray_Descr*)odescr; > > st = _PyArray_DescrHashImp(descr, &hash); > if (st) { > return -1; > } > > return hash; >} ># 17 "numpy/core/src/multiarray/multiarraymodule_onefile.c" 2 ># 1 "numpy/core/src/multiarray/numpyos.c" 1 > > > ># 1 "/usr/include/locale.h" 1 3 4 ># 29 "/usr/include/locale.h" 3 4 ># 1 "/usr/lib/gcc/x86_64-redhat-linux/3.4.5/include/stddef.h" 1 3 4 ># 30 "/usr/include/locale.h" 2 3 4 ># 1 "/usr/include/bits/locale.h" 1 3 4 ># 27 "/usr/include/bits/locale.h" 3 4 >enum >{ > __LC_CTYPE = 0, > __LC_NUMERIC = 1, > __LC_TIME = 2, > __LC_COLLATE = 3, > __LC_MONETARY = 4, > __LC_MESSAGES = 5, > __LC_ALL = 6, > __LC_PAPER = 7, > __LC_NAME = 8, > __LC_ADDRESS = 9, > __LC_TELEPHONE = 10, > __LC_MEASUREMENT = 11, > __LC_IDENTIFICATION = 12 >}; ># 31 "/usr/include/locale.h" 2 3 4 > > ># 52 "/usr/include/locale.h" 3 4 >struct lconv >{ > > > char *decimal_point; > char *thousands_sep; > > > > > > char *grouping; > > > > > > char *int_curr_symbol; > char *currency_symbol; > char *mon_decimal_point; > char *mon_thousands_sep; > char *mon_grouping; > char *positive_sign; > char *negative_sign; > char int_frac_digits; > char frac_digits; > > char p_cs_precedes; > > char p_sep_by_space; > > char n_cs_precedes; > > char n_sep_by_space; > > > > > > > char p_sign_posn; > char n_sign_posn; > > > char int_p_cs_precedes; > > char int_p_sep_by_space; > > char int_n_cs_precedes; > > char int_n_sep_by_space; > > > > > > > char int_p_sign_posn; > char int_n_sign_posn; ># 119 "/usr/include/locale.h" 3 4 >}; > > > > > >extern char *setlocale (int __category, __const char *__locale) __attribute__ ((__nothrow__)); > > >extern struct lconv *localeconv (void) __attribute__ ((__nothrow__)); > > ># 148 "/usr/include/locale.h" 3 4 >typedef __locale_t locale_t; > > > > > >extern __locale_t newlocale (int __category_mask, __const char *__locale, > __locale_t __base) __attribute__ ((__nothrow__)); ># 189 "/usr/include/locale.h" 3 4 >extern __locale_t duplocale (__locale_t __dataset) __attribute__ ((__nothrow__)); > > > >extern void freelocale (__locale_t __dataset) __attribute__ ((__nothrow__)); > > > > > > >extern __locale_t uselocale (__locale_t __dataset) __attribute__ ((__nothrow__)); > > > > > > > > ># 5 "numpy/core/src/multiarray/numpyos.c" 2 ># 33 "numpy/core/src/multiarray/numpyos.c" >static void >_ensure_minimum_exponent_length(char* buffer, size_t buf_size) >{ > char *p = __extension__ ({ char __a0, __a1, __a2; (__builtin_constant_p ("eE") && ((size_t)(const void *)(("eE") + 1) - (size_t)(const void *)("eE") == 1) ? ((__builtin_constant_p (buffer) && ((size_t)(const void *)((buffer) + 1) - (size_t)(const void *)(buffer) == 1)) ? __builtin_strpbrk (buffer, "eE") : ((__a0 = ((__const char *) ("eE"))[0], __a0 == '\0') ? ((void) (buffer), (char *) ((void *)0)) : ((__a1 = ((__const char *) ("eE"))[1], __a1 == '\0') ? __builtin_strchr (buffer, __a0) : ((__a2 = ((__const char *) ("eE"))[2], __a2 == '\0') ? __strpbrk_c2 (buffer, __a0, __a1) : (((__const char *) ("eE"))[3] == '\0' ? __strpbrk_c3 (buffer, __a0, __a1, __a2) : __builtin_strpbrk (buffer, "eE")))))) : __builtin_strpbrk (buffer, "eE")); }); > if (p && (*(p + 1) == '-' || *(p + 1) == '+')) { > char *start = p + 2; > int exponent_digit_cnt = 0; > int leading_zero_cnt = 0; > int in_leading_zeros = 1; > int significant_digit_cnt; > > > p += 2; > > > while (*p && ((*__ctype_b_loc ())[(int) ((((unsigned char)((*p) & 0xff))))] & (unsigned short int) _ISdigit)) { > if (in_leading_zeros && *p == '0') { > ++leading_zero_cnt; > } > if (*p != '0') { > in_leading_zeros = 0; > } > ++p; > ++exponent_digit_cnt; > } > > significant_digit_cnt = exponent_digit_cnt - leading_zero_cnt; > if (exponent_digit_cnt == 2) { > > > > > } > else if (exponent_digit_cnt > 2) { > int extra_zeros_cnt; > > > > > > if (significant_digit_cnt < 2) { > significant_digit_cnt = 2; > } > extra_zeros_cnt = exponent_digit_cnt - significant_digit_cnt; > > > > > > ((void) (0)); > > > > > > memmove(start, start + extra_zeros_cnt, significant_digit_cnt + 1); > } > else { > > > > > int zeros = 2 - exponent_digit_cnt; > if (start + zeros + exponent_digit_cnt + 1 < buffer + buf_size) { > memmove(start + zeros, start, exponent_digit_cnt + 1); > memset(start, '0', zeros); > } > } > } >} > > > > > >static void >_ensure_decimal_point(char* buffer, size_t buf_size) >{ > int insert_count = 0; > char* chars_to_insert; > > > char *p = buffer; > if (*p == '-' || *p == '+') > > > > > ++p; > while (*p && ((*__ctype_b_loc ())[(int) ((((unsigned char)((*p) & 0xff))))] & (unsigned short int) _ISdigit)) { > ++p; > } > if (*p == '.') { > if (((*__ctype_b_loc ())[(int) ((((unsigned char)((*(p+1)) & 0xff))))] & (unsigned short int) _ISdigit)) { > > > > > } > else { > > > > > ++p; > chars_to_insert = "0"; > insert_count = 1; > } > } > else { > chars_to_insert = ".0"; > insert_count = 2; > } > if (insert_count) { > size_t buf_len = strlen(buffer); > if (buf_len + insert_count + 1 >= buf_size) { > > > > > > } > else { > memmove(p + insert_count, p, buffer + strlen(buffer) - p + 1); > memcpy(p, chars_to_insert, insert_count); > } > } >} ># 170 "numpy/core/src/multiarray/numpyos.c" >static void >_change_decimal_from_locale_to_dot(char* buffer) >{ > struct lconv *locale_data = localeconv(); > const char *decimal_point = locale_data->decimal_point; > > if (decimal_point[0] != '.' || decimal_point[1] != 0) { > size_t decimal_point_len = strlen(decimal_point); > > if (*buffer == '+' || *buffer == '-') { > buffer++; > } > while (((*__ctype_b_loc ())[(int) ((((unsigned char)((*buffer) & 0xff))))] & (unsigned short int) _ISdigit)) { > buffer++; > } > if ((__extension__ (__builtin_constant_p (decimal_point_len) && ((__builtin_constant_p (buffer) && strlen (buffer) < ((size_t) (decimal_point_len))) || (__builtin_constant_p (decimal_point) && strlen (decimal_point) < ((size_t) (decimal_point_len)))) ? __extension__ ({ size_t __s1_len, __s2_len; (__builtin_constant_p (buffer) && __builtin_constant_p (decimal_point) && (__s1_len = strlen (buffer), __s2_len = strlen (decimal_point), (!((size_t)(const void *)((buffer) + 1) - (size_t)(const void *)(buffer) == 1) || __s1_len >= 4) && (!((size_t)(const void *)((decimal_point) + 1) - (size_t)(const void *)(decimal_point) == 1) || __s2_len >= 4)) ? __builtin_strcmp (buffer, decimal_point) : (__builtin_constant_p (buffer) && ((size_t)(const void *)((buffer) + 1) - (size_t)(const void *)(buffer) == 1) && (__s1_len = strlen (buffer), __s1_len < 4) ? (__builtin_constant_p (decimal_point) && ((size_t)(const void *)((decimal_point) + 1) - (size_t)(const void *)(decimal_point) == 1) ? __builtin_strcmp (buffer, decimal_point) : (__extension__ ({ __const unsigned char *__s2 = (__const unsigned char *) (__const char *) (decimal_point); register int __result = (((__const unsigned char *) (__const char *) (buffer))[0] - __s2[0]); if (__s1_len > 0 && __result == 0) { __result = (((__const unsigned char *) (__const char *) (buffer))[1] - __s2[1]); if (__s1_len > 1 && __result == 0) { __result = (((__const unsigned char *) (__const char *) (buffer))[2] - __s2[2]); if (__s1_len > 2 && __result == 0) __result = (((__const unsigned char *) (__const char *) (buffer))[3] - __s2[3]); } } __result; }))) : (__builtin_constant_p (decimal_point) && ((size_t)(const void *)((decimal_point) + 1) - (size_t)(const void *)(decimal_point) == 1) && (__s2_len = strlen (decimal_point), __s2_len < 4) ? (__builtin_constant_p (buffer) && ((size_t)(const void *)((buffer) + 1) - (size_t)(const void *)(buffer) == 1) ? __builtin_strcmp (buffer, decimal_point) : (__extension__ ({ __const unsigned char *__s1 = (__const unsigned char *) (__const char *) (buffer); register int __result = __s1[0] - ((__const unsigned char *) (__const char *) (decimal_point))[0]; if (__s2_len > 0 && __result == 0) { __result = (__s1[1] - ((__const unsigned char *) (__const char *) (decimal_point))[1]); if (__s2_len > 1 && __result == 0) { __result = (__s1[2] - ((__const unsigned char *) (__const char *) (decimal_point))[2]); if (__s2_len > 2 && __result == 0) __result = (__s1[3] - ((__const unsigned char *) (__const char *) (decimal_point))[3]); } } __result; }))) : __builtin_strcmp (buffer, decimal_point)))); }) : strncmp (buffer, decimal_point, decimal_point_len))) == 0) { > *buffer = '.'; > buffer++; > if (decimal_point_len > 1) { > > size_t rest_len = strlen(buffer + (decimal_point_len - 1)); > memmove(buffer, buffer + (decimal_point_len - 1), rest_len); > buffer[rest_len] = 0; > } > } > } >} > > > > >static int >_check_ascii_format(const char *format) >{ > char format_char; > size_t format_len = strlen(format); > > > format_char = format[format_len - 1]; > > if (format[0] != '%') { > return -1; > } > > > > > > > > if (__extension__ ({ char __a0, __a1, __a2; (__builtin_constant_p ("'l%") && ((size_t)(const void *)(("'l%") + 1) - (size_t)(const void *)("'l%") == 1) ? ((__builtin_constant_p (format + 1) && ((size_t)(const void *)((format + 1) + 1) - (size_t)(const void *)(format + 1) == 1)) ? __builtin_strpbrk (format + 1, "'l%") : ((__a0 = ((__const char *) ("'l%"))[0], __a0 == '\0') ? ((void) (format + 1), (char *) ((void *)0)) : ((__a1 = ((__const char *) ("'l%"))[1], __a1 == '\0') ? __builtin_strchr (format + 1, __a0) : ((__a2 = ((__const char *) ("'l%"))[2], __a2 == '\0') ? __strpbrk_c2 (format + 1, __a0, __a1) : (((__const char *) ("'l%"))[3] == '\0' ? __strpbrk_c3 (format + 1, __a0, __a1, __a2) : __builtin_strpbrk (format + 1, "'l%")))))) : __builtin_strpbrk (format + 1, "'l%")); })) { > return -1; > } > > > > > > > > if (!(format_char == 'e' || format_char == 'E' > || format_char == 'f' || format_char == 'F' > || format_char == 'g' || format_char == 'G')) { > return -1; > } > > return 0; >} > > > > > > > >static char* >_fix_ascii_format(char* buf, size_t buflen, int decimal) >{ > > > > > _change_decimal_from_locale_to_dot(buf); ># 261 "numpy/core/src/multiarray/numpyos.c" > _ensure_minimum_exponent_length(buf, buflen); > > if (decimal != 0) { > _ensure_decimal_point(buf, buflen); > } > > return buf; >} ># 326 "numpy/core/src/multiarray/numpyos.c" >static char* NumPyOS_ascii_formatf(char *buffer, size_t buf_size, const char *format, float val, int decimal) { if ((sizeof ((val)) == sizeof (float) ? __finitef ((val)) : sizeof ((val)) == sizeof (double) ? __finite ((val)) : __finitel ((val)))) { if(_check_ascii_format(format)) { return ((void *)0); } PyOS_snprintf(buffer, buf_size, format, (float)val); return _fix_ascii_format(buffer, buf_size, decimal); } else if ((sizeof ((val)) == sizeof (float) ? __isnanf ((val)) : sizeof ((val)) == sizeof (double) ? __isnan ((val)) : __isnanl ((val)))){ if (buf_size < 4) { return ((void *)0); } strcpy(buffer, "nan"); } else { if ((sizeof ((val)) == sizeof (float) ? __signbitf ((val)) : sizeof ((val)) == sizeof (double) ? __signbit ((val)) : __signbitl ((val)))) { if (buf_size < 5) { return ((void *)0); } strcpy(buffer, "-inf"); } else { if (buf_size < 4) { return ((void *)0); } strcpy(buffer, "inf"); } } return buffer; } >static char* NumPyOS_ascii_formatd(char *buffer, size_t buf_size, const char *format, double val, int decimal) { if ((sizeof ((val)) == sizeof (float) ? __finitef ((val)) : sizeof ((val)) == sizeof (double) ? __finite ((val)) : __finitel ((val)))) { if(_check_ascii_format(format)) { return ((void *)0); } PyOS_snprintf(buffer, buf_size, format, (double)val); return _fix_ascii_format(buffer, buf_size, decimal); } else if ((sizeof ((val)) == sizeof (float) ? __isnanf ((val)) : sizeof ((val)) == sizeof (double) ? __isnan ((val)) : __isnanl ((val)))){ if (buf_size < 4) { return ((void *)0); } strcpy(buffer, "nan"); } else { if ((sizeof ((val)) == sizeof (float) ? __signbitf ((val)) : sizeof ((val)) == sizeof (double) ? __signbit ((val)) : __signbitl ((val)))) { if (buf_size < 5) { return ((void *)0); } strcpy(buffer, "-inf"); } else { if (buf_size < 4) { return ((void *)0); } strcpy(buffer, "inf"); } } return buffer; } > >static char* NumPyOS_ascii_formatl(char *buffer, size_t buf_size, const char *format, long double val, int decimal) { if ((sizeof ((val)) == sizeof (float) ? __finitef ((val)) : sizeof ((val)) == sizeof (double) ? __finite ((val)) : __finitel ((val)))) { if(_check_ascii_format(format)) { return ((void *)0); } PyOS_snprintf(buffer, buf_size, format, (long double)val); return _fix_ascii_format(buffer, buf_size, decimal); } else if ((sizeof ((val)) == sizeof (float) ? __isnanf ((val)) : sizeof ((val)) == sizeof (double) ? __isnan ((val)) : __isnanl ((val)))){ if (buf_size < 4) { return ((void *)0); } strcpy(buffer, "nan"); } else { if ((sizeof ((val)) == sizeof (float) ? __signbitf ((val)) : sizeof ((val)) == sizeof (double) ? __signbit ((val)) : __signbitl ((val)))) { if (buf_size < 5) { return ((void *)0); } strcpy(buffer, "-inf"); } else { if (buf_size < 4) { return ((void *)0); } strcpy(buffer, "inf"); } } return buffer; } ># 339 "numpy/core/src/multiarray/numpyos.c" >static int >NumPyOS_ascii_isspace(char c) >{ > return c == ' ' || c == '\f' || c == '\n' || c == '\r' || c == '\t' > || c == '\v'; >} > > > > > > > >static int >NumPyOS_ascii_isalpha(char c) >{ > return (c >= 'A' && c <= 'Z') || (c >= 'a' && c <= 'z'); >} > > > > > > > >static int >NumPyOS_ascii_isdigit(char c) >{ > return (c >= '0' && c <= '9'); >} > > > > > > > >static int >NumPyOS_ascii_isalnum(char c) >{ > return NumPyOS_ascii_isdigit(c) || NumPyOS_ascii_isalpha(c); >} > > > > > > > >static char >NumPyOS_ascii_tolower(char c) >{ > if (c >= 'A' && c <= 'Z') { > return c + ('a'-'A'); > } > return c; >} > > > > > > > >static int >NumPyOS_ascii_strncasecmp(const char* s1, const char* s2, size_t len) >{ > int diff; > while (len > 0 && *s1 != '\0' && *s2 != '\0') { > diff = ((int)NumPyOS_ascii_tolower(*s1)) - > ((int)NumPyOS_ascii_tolower(*s2)); > if (diff != 0) { > return diff; > } > ++s1; > ++s2; > --len; > } > if (len > 0) { > return ((int)*s1) - ((int)*s2); > } > return 0; >} > > > > > > > >static double >NumPyOS_ascii_strtod_plain(const char *s, char** endptr) >{ > double result; > > PyGILState_STATE __save__; > __save__ = PyGILState_Ensure(); > result = PyOS_string_to_double(s, endptr, ((void *)0)); > if (PyErr_Occurred()) { > if (endptr) { > *endptr = (char*)s; > } > PyErr_Clear(); > } > PyGILState_Release(__save__); > > > > return result; >} > > > > > > >static double >NumPyOS_ascii_strtod(const char *s, char** endptr) >{ > struct lconv *locale_data = localeconv(); > const char *decimal_point = locale_data->decimal_point; > size_t decimal_point_len = strlen(decimal_point); > > char buffer[120 +1]; > const char *p; > char *q; > size_t n; > double result; > > while (NumPyOS_ascii_isspace(*s)) { > ++s; > } > > > > > > > p = s; > result = 1.0; > if (*p == '-') { > result = -1.0; > ++p; > } > else if (*p == '+') { > ++p; > } > if (NumPyOS_ascii_strncasecmp(p, "nan", 3) == 0) { > p += 3; > if (*p == '(') { > ++p; > while (NumPyOS_ascii_isalnum(*p) || *p == '_') { > ++p; > } > if (*p == ')') { > ++p; > } > } > if (endptr != ((void *)0)) { > *endptr = (char*)p; > } > return ((npy_double)__npy_nanf()); > } > else if (NumPyOS_ascii_strncasecmp(p, "inf", 3) == 0) { > p += 3; > if (NumPyOS_ascii_strncasecmp(p, "inity", 5) == 0) { > p += 5; > } > if (endptr != ((void *)0)) { > *endptr = (char*)p; > } > return result*((npy_double)__npy_inff()); > } ># 522 "numpy/core/src/multiarray/numpyos.c" > if (decimal_point[0] != '.' || decimal_point[1] != 0) { > p = s; > if (*p == '+' || *p == '-') { > ++p; > } > while (*p >= '0' && *p <= '9') { > ++p; > } > if ((__extension__ (__builtin_constant_p (decimal_point_len) && ((__builtin_constant_p (p) && strlen (p) < ((size_t) (decimal_point_len))) || (__builtin_constant_p (decimal_point) && strlen (decimal_point) < ((size_t) (decimal_point_len)))) ? __extension__ ({ size_t __s1_len, __s2_len; (__builtin_constant_p (p) && __builtin_constant_p (decimal_point) && (__s1_len = strlen (p), __s2_len = strlen (decimal_point), (!((size_t)(const void *)((p) + 1) - (size_t)(const void *)(p) == 1) || __s1_len >= 4) && (!((size_t)(const void *)((decimal_point) + 1) - (size_t)(const void *)(decimal_point) == 1) || __s2_len >= 4)) ? __builtin_strcmp (p, decimal_point) : (__builtin_constant_p (p) && ((size_t)(const void *)((p) + 1) - (size_t)(const void *)(p) == 1) && (__s1_len = strlen (p), __s1_len < 4) ? (__builtin_constant_p (decimal_point) && ((size_t)(const void *)((decimal_point) + 1) - (size_t)(const void *)(decimal_point) == 1) ? __builtin_strcmp (p, decimal_point) : (__extension__ ({ __const unsigned char *__s2 = (__const unsigned char *) (__const char *) (decimal_point); register int __result = (((__const unsigned char *) (__const char *) (p))[0] - __s2[0]); if (__s1_len > 0 && __result == 0) { __result = (((__const unsigned char *) (__const char *) (p))[1] - __s2[1]); if (__s1_len > 1 && __result == 0) { __result = (((__const unsigned char *) (__const char *) (p))[2] - __s2[2]); if (__s1_len > 2 && __result == 0) __result = (((__const unsigned char *) (__const char *) (p))[3] - __s2[3]); } } __result; }))) : (__builtin_constant_p (decimal_point) && ((size_t)(const void *)((decimal_point) + 1) - (size_t)(const void *)(decimal_point) == 1) && (__s2_len = strlen (decimal_point), __s2_len < 4) ? (__builtin_constant_p (p) && ((size_t)(const void *)((p) + 1) - (size_t)(const void *)(p) == 1) ? __builtin_strcmp (p, decimal_point) : (__extension__ ({ __const unsigned char *__s1 = (__const unsigned char *) (__const char *) (p); register int __result = __s1[0] - ((__const unsigned char *) (__const char *) (decimal_point))[0]; if (__s2_len > 0 && __result == 0) { __result = (__s1[1] - ((__const unsigned char *) (__const char *) (decimal_point))[1]); if (__s2_len > 1 && __result == 0) { __result = (__s1[2] - ((__const unsigned char *) (__const char *) (decimal_point))[2]); if (__s2_len > 2 && __result == 0) __result = (__s1[3] - ((__const unsigned char *) (__const char *) (decimal_point))[3]); } } __result; }))) : __builtin_strcmp (p, decimal_point)))); }) : strncmp (p, decimal_point, decimal_point_len))) == 0) { > n = (size_t)(p - s); > if (n > 120) { > n = 120; > } > memcpy(buffer, s, n); > buffer[n] = '\0'; > result = NumPyOS_ascii_strtod_plain(buffer, &q); > if (endptr != ((void *)0)) { > *endptr = (char*)(s + (q - buffer)); > } > return result; > } > } > > > return NumPyOS_ascii_strtod_plain(s, endptr); >} ># 565 "numpy/core/src/multiarray/numpyos.c" >static int >NumPyOS_ascii_ftolf(FILE *fp, double *value) >{ > char buffer[120 + 1]; > char *endp; > char *p; > int c; > int ok; ># 620 "numpy/core/src/multiarray/numpyos.c" > c = _IO_getc (fp); > if (c == (-1)) { > return (-1); > } > > while (NumPyOS_ascii_isspace(c)) { > c = _IO_getc (fp); > } > > > endp = buffer; > > > do { if (c == '+' || c == '-') do { if (c == (-1) || endp >= buffer + 120) goto buffer_filled; *endp++ = (char)c; c = _IO_getc (fp); } while (0); } while (0); > > > if (c == 'n' || c == 'N') { > do { if (c == (-1) || endp >= buffer + 120) goto buffer_filled; *endp++ = (char)c; c = _IO_getc (fp); } while (0); > do { for (p=("an"); *p!='\0' && (c==*p || c+('a'-'A')==*p); ++p) do { if (c == (-1) || endp >= buffer + 120) goto buffer_filled; *endp++ = (char)c; c = _IO_getc (fp); } while (0); if (*p != '\0') goto buffer_filled; } while (0); > > > if (c == '(') { > do { if (c == (-1) || endp >= buffer + 120) goto buffer_filled; *endp++ = (char)c; c = _IO_getc (fp); } while (0); > while (NumPyOS_ascii_isalnum(c) || c == '_') { do { if (c == (-1) || endp >= buffer + 120) goto buffer_filled; *endp++ = (char)c; c = _IO_getc (fp); } while (0); }; > if (c == ')') { > do { if (c == (-1) || endp >= buffer + 120) goto buffer_filled; *endp++ = (char)c; c = _IO_getc (fp); } while (0); > } > } > goto buffer_filled; > } > else if (c == 'i' || c == 'I') { > do { if (c == (-1) || endp >= buffer + 120) goto buffer_filled; *endp++ = (char)c; c = _IO_getc (fp); } while (0); > do { for (p=("nfinity"); *p!='\0' && (c==*p || c+('a'-'A')==*p); ++p) do { if (c == (-1) || endp >= buffer + 120) goto buffer_filled; *endp++ = (char)c; c = _IO_getc (fp); } while (0); if (*p != '\0') goto buffer_filled; } while (0); > goto buffer_filled; > } > > > while (NumPyOS_ascii_isdigit(c)) { do { if (c == (-1) || endp >= buffer + 120) goto buffer_filled; *endp++ = (char)c; c = _IO_getc (fp); } while (0); }; > > if (c == '.') { > do { if (c == (-1) || endp >= buffer + 120) goto buffer_filled; *endp++ = (char)c; c = _IO_getc (fp); } while (0); > do { ok = 0; while (NumPyOS_ascii_isdigit(c)) { do { if (c == (-1) || endp >= buffer + 120) goto buffer_filled; *endp++ = (char)c; c = _IO_getc (fp); } while (0); ok = 1; } if (!ok) goto buffer_filled; } while (0); > } > > > if (c == 'e' || c == 'E') { > do { if (c == (-1) || endp >= buffer + 120) goto buffer_filled; *endp++ = (char)c; c = _IO_getc (fp); } while (0); > do { if (c == '+' || c == '-') do { if (c == (-1) || endp >= buffer + 120) goto buffer_filled; *endp++ = (char)c; c = _IO_getc (fp); } while (0); } while (0); > do { ok = 0; while (NumPyOS_ascii_isdigit(c)) { do { if (c == (-1) || endp >= buffer + 120) goto buffer_filled; *endp++ = (char)c; c = _IO_getc (fp); } while (0); ok = 1; } if (!ok) goto buffer_filled; } while (0); > } > > goto buffer_filled; > >buffer_filled: > > ungetc(c, fp); > *endp = '\0'; > > > *value = NumPyOS_ascii_strtod(buffer, &p); > > > return (buffer == p) ? 0 : 1; >} ># 18 "numpy/core/src/multiarray/multiarraymodule_onefile.c" 2 > ># 1 "numpy/core/src/multiarray/descriptor.c" 1 ># 21 "numpy/core/src/multiarray/descriptor.c" >static PyObject *typeDict = ((void *)0); > >static PyArray_Descr * >_use_inherit(PyArray_Descr *type, PyObject *newobj, int *errflag); > >static PyArray_Descr * >_arraydescr_fromobj(PyObject *obj) >{ > PyObject *dtypedescr; > PyArray_Descr *new; > int ret; > > dtypedescr = PyObject_GetAttrString(obj, "dtype"); > PyErr_Clear(); > if (dtypedescr) { > ret = PyArray_DescrConverter(dtypedescr, &new); > do { if ( --((PyObject*)(dtypedescr))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(dtypedescr)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(dtypedescr)))); } while (0); > if (ret == 1) { > return new; > } > PyErr_Clear(); > } > > dtypedescr = PyObject_GetAttrString(obj, "_type_"); > PyErr_Clear(); > if (dtypedescr) { > ret = PyArray_DescrConverter(dtypedescr, &new); > do { if ( --((PyObject*)(dtypedescr))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(dtypedescr)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(dtypedescr)))); } while (0); > if (ret == 1) { > PyObject *length; > length = PyObject_GetAttrString(obj, "_length_"); > PyErr_Clear(); > if (length) { > > PyObject *newtup; > PyArray_Descr *derived; > newtup = _Py_BuildValue_SizeT("NO", new, length); > ret = PyArray_DescrConverter(newtup, &derived); > do { if ( --((PyObject*)(newtup))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(newtup)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(newtup)))); } while (0); > if (ret == 1) { > return derived; > } > PyErr_Clear(); > return ((void *)0); > } > return new; > } > PyErr_Clear(); > return ((void *)0); > } > > > > dtypedescr = PyObject_GetAttrString(obj, "_fields_"); > PyErr_Clear(); > if (dtypedescr) { > ret = PyArray_DescrAlignConverter(dtypedescr, &new); > do { if ( --((PyObject*)(dtypedescr))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(dtypedescr)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(dtypedescr)))); } while (0); > if (ret == 1) { > return new; > } > PyErr_Clear(); > } > return ((void *)0); >} > >static PyObject * >array_set_typeDict(PyObject *(__NPY_UNUSED_TAGGEDignored) __attribute__ ((__unused__)), PyObject *args) >{ > PyObject *dict; > > if (!_PyArg_ParseTuple_SizeT(args, "O", &dict)) { > return ((void *)0); > } > > do { if ((typeDict) == ((void *)0)) ; else do { if ( --((PyObject*)(typeDict))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(typeDict)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(typeDict)))); } while (0); } while (0); > typeDict = dict; > > ( ((PyObject*)(dict))->ob_refcnt++); > ( ((PyObject*)((&_Py_NoneStruct)))->ob_refcnt++); > return (&_Py_NoneStruct); >} > >static int >_check_for_commastring(char *type, int len) >{ > int i; > > > if ((type[0] >= '0' > && type[0] <= '9') > || ((len > 1) > && (type[0] == '>' || type[0] == '<' || type[0] == '|' || type[0] == '=') > && (type[1] >= '0' > && type[1] <= '9'))) { > return 1; > } > > if (((len > 1) > && (type[0] == '(' > && type[1] == ')')) > || ((len > 3) > && (type[0] == '>' || type[0] == '<' || type[0] == '|' || type[0] == '=') > && (type[1] == '(' > && type[2] == ')'))) { > return 1; > } > > for (i = 1; i < len; i++) { > if (type[i] == ',') { > return 1; > } > } > return 0; >} > >static int >_check_for_datetime(char *type, int len) >{ > if (len < 1) { > return 0; > } > if (type[1] == '8' && (type[0] == 'M' || type[0] == 'm')) { > return 1; > } > if (len < 10) { > return 0; > } > if ((__extension__ (__builtin_constant_p (10) && ((__builtin_constant_p (type) && strlen (type) < ((size_t) (10))) || (__builtin_constant_p ("datetime64") && strlen ("datetime64") < ((size_t) (10)))) ? __extension__ ({ size_t __s1_len, __s2_len; (__builtin_constant_p (type) && __builtin_constant_p ("datetime64") && (__s1_len = strlen (type), __s2_len = strlen ("datetime64"), (!((size_t)(const void *)((type) + 1) - (size_t)(const void *)(type) == 1) || __s1_len >= 4) && (!((size_t)(const void *)(("datetime64") + 1) - (size_t)(const void *)("datetime64") == 1) || __s2_len >= 4)) ? __builtin_strcmp (type, "datetime64") : (__builtin_constant_p (type) && ((size_t)(const void *)((type) + 1) - (size_t)(const void *)(type) == 1) && (__s1_len = strlen (type), __s1_len < 4) ? (__builtin_constant_p ("datetime64") && ((size_t)(const void *)(("datetime64") + 1) - (size_t)(const void *)("datetime64") == 1) ? __builtin_strcmp (type, "datetime64") : (__extension__ ({ __const unsigned char *__s2 = (__const unsigned char *) (__const char *) ("datetime64"); register int __result = (((__const unsigned char *) (__const char *) (type))[0] - __s2[0]); if (__s1_len > 0 && __result == 0) { __result = (((__const unsigned char *) (__const char *) (type))[1] - __s2[1]); if (__s1_len > 1 && __result == 0) { __result = (((__const unsigned char *) (__const char *) (type))[2] - __s2[2]); if (__s1_len > 2 && __result == 0) __result = (((__const unsigned char *) (__const char *) (type))[3] - __s2[3]); } } __result; }))) : (__builtin_constant_p ("datetime64") && ((size_t)(const void *)(("datetime64") + 1) - (size_t)(const void *)("datetime64") == 1) && (__s2_len = strlen ("datetime64"), __s2_len < 4) ? (__builtin_constant_p (type) && ((size_t)(const void *)((type) + 1) - (size_t)(const void *)(type) == 1) ? __builtin_strcmp (type, "datetime64") : (__extension__ ({ __const unsigned char *__s1 = (__const unsigned char *) (__const char *) (type); register int __result = __s1[0] - ((__const unsigned char *) (__const char *) ("datetime64"))[0]; if (__s2_len > 0 && __result == 0) { __result = (__s1[1] - ((__const unsigned char *) (__const char *) ("datetime64"))[1]); if (__s2_len > 1 && __result == 0) { __result = (__s1[2] - ((__const unsigned char *) (__const char *) ("datetime64"))[2]); if (__s2_len > 2 && __result == 0) __result = (__s1[3] - ((__const unsigned char *) (__const char *) ("datetime64"))[3]); } } __result; }))) : __builtin_strcmp (type, "datetime64")))); }) : strncmp (type, "datetime64", 10))) == 0) { > return 1; > } > if (len < 11) { > return 0; > } > if ((__extension__ (__builtin_constant_p (11) && ((__builtin_constant_p (type) && strlen (type) < ((size_t) (11))) || (__builtin_constant_p ("timedelta64") && strlen ("timedelta64") < ((size_t) (11)))) ? __extension__ ({ size_t __s1_len, __s2_len; (__builtin_constant_p (type) && __builtin_constant_p ("timedelta64") && (__s1_len = strlen (type), __s2_len = strlen ("timedelta64"), (!((size_t)(const void *)((type) + 1) - (size_t)(const void *)(type) == 1) || __s1_len >= 4) && (!((size_t)(const void *)(("timedelta64") + 1) - (size_t)(const void *)("timedelta64") == 1) || __s2_len >= 4)) ? __builtin_strcmp (type, "timedelta64") : (__builtin_constant_p (type) && ((size_t)(const void *)((type) + 1) - (size_t)(const void *)(type) == 1) && (__s1_len = strlen (type), __s1_len < 4) ? (__builtin_constant_p ("timedelta64") && ((size_t)(const void *)(("timedelta64") + 1) - (size_t)(const void *)("timedelta64") == 1) ? __builtin_strcmp (type, "timedelta64") : (__extension__ ({ __const unsigned char *__s2 = (__const unsigned char *) (__const char *) ("timedelta64"); register int __result = (((__const unsigned char *) (__const char *) (type))[0] - __s2[0]); if (__s1_len > 0 && __result == 0) { __result = (((__const unsigned char *) (__const char *) (type))[1] - __s2[1]); if (__s1_len > 1 && __result == 0) { __result = (((__const unsigned char *) (__const char *) (type))[2] - __s2[2]); if (__s1_len > 2 && __result == 0) __result = (((__const unsigned char *) (__const char *) (type))[3] - __s2[3]); } } __result; }))) : (__builtin_constant_p ("timedelta64") && ((size_t)(const void *)(("timedelta64") + 1) - (size_t)(const void *)("timedelta64") == 1) && (__s2_len = strlen ("timedelta64"), __s2_len < 4) ? (__builtin_constant_p (type) && ((size_t)(const void *)((type) + 1) - (size_t)(const void *)(type) == 1) ? __builtin_strcmp (type, "timedelta64") : (__extension__ ({ __const unsigned char *__s1 = (__const unsigned char *) (__const char *) (type); register int __result = __s1[0] - ((__const unsigned char *) (__const char *) ("timedelta64"))[0]; if (__s2_len > 0 && __result == 0) { __result = (__s1[1] - ((__const unsigned char *) (__const char *) ("timedelta64"))[1]); if (__s2_len > 1 && __result == 0) { __result = (__s1[2] - ((__const unsigned char *) (__const char *) ("timedelta64"))[2]); if (__s2_len > 2 && __result == 0) __result = (__s1[3] - ((__const unsigned char *) (__const char *) ("timedelta64"))[3]); } } __result; }))) : __builtin_strcmp (type, "timedelta64")))); }) : strncmp (type, "timedelta64", 11))) == 0) { > return 1; > } > return 0; >} > > > > > >static PyArray_Descr * >_convert_from_tuple(PyObject *obj) >{ > PyArray_Descr *type, *res; > PyObject *val; > int errflag; > > if ((((PyVarObject*)(obj))->ob_size) != 2) { > return ((void *)0); > } > if (!PyArray_DescrConverter((((PyTupleObject *)(obj))->ob_item[0]), &type)) { > return ((void *)0); > } > val = (((PyTupleObject *)(obj))->ob_item[1]); > > res = _use_inherit(type, val, &errflag); > if (res || errflag) { > do { if ( --((PyObject*)(type))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(type)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(type)))); } while (0); > if (res) { > return res; > } > else { > return ((void *)0); > } > } > PyErr_Clear(); > > > > > if (type->elsize == 0) { > > int itemsize = PyArray_PyIntAsInt((((PyTupleObject *)(obj))->ob_item[1])); > > if ((((itemsize) == -1) && PyErr_Occurred())) { > PyErr_SetString(PyExc_ValueError, > "invalid itemsize in generic type tuple"); > goto fail; > } > do { PyArray_Descr *_new_; _new_ = PyArray_DescrNew(type); do { if ((type) == ((void *)0)) ; else do { if ( --((PyObject*)(type))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(type)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(type)))); } while (0); } while (0); type = _new_; } while(0); > if (type->type_num == NPY_UNICODE) { > type->elsize = itemsize << 2; > } > else { > type->elsize = itemsize; > } > } > else if (((((((PyObject*)(val))->ob_type))->tp_flags & ((1L<<29))) != 0)) { > > if (PyDict_Merge(type->metadata, val, 0) == -1) { > do { if ( --((PyObject*)(type))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(type)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(type)))); } while (0); > return ((void *)0); > } > } > else { > > > > > > PyArray_Dims shape = {((void *)0), -1}; > PyArray_Descr *newdescr; > > if (!(PyArray_IntpConverter(val, &shape)) || (shape.len > 32)) { > PyMem_Free(shape.ptr); > PyErr_SetString(PyExc_ValueError, > "invalid shape in fixed-type tuple."); > goto fail; > } > > > > > if ((shape.len == 1 > && shape.ptr[0] == 1 > && PyNumber_Check(val)) > || (shape.len == 0 > && ((((((PyObject*)(val))->ob_type))->tp_flags & ((1L<<26))) != 0))) { > PyMem_Free(shape.ptr); > return type; > } > newdescr = PyArray_DescrNewFromType(NPY_VOID); > if (newdescr == ((void *)0)) { > PyMem_Free(shape.ptr); > goto fail; > } > newdescr->elsize = type->elsize; > newdescr->elsize *= PyArray_MultiplyList(shape.ptr, shape.len); > PyMem_Free(shape.ptr); > newdescr->subarray = PyMem_Malloc(sizeof(PyArray_ArrayDescr)); > newdescr->flags = type->flags; > newdescr->subarray->base = type; > type = ((void *)0); > do { if ((newdescr->fields) == ((void *)0)) ; else do { if ( --((PyObject*)(newdescr->fields))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(newdescr->fields)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(newdescr->fields)))); } while (0); } while (0); > do { if ((newdescr->names) == ((void *)0)) ; else do { if ( --((PyObject*)(newdescr->names))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(newdescr->names)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(newdescr->names)))); } while (0); } while (0); > newdescr->fields = ((void *)0); > newdescr->names = ((void *)0); > > if (((((((PyObject*)(val))->ob_type))->tp_flags & ((1L<<26))) != 0)) { > ( ((PyObject*)(val))->ob_refcnt++); > newdescr->subarray->shape = val; > } else { > newdescr->subarray->shape = _Py_BuildValue_SizeT("(O)", val); > if (newdescr->subarray->shape == ((void *)0)) { > do { if ( --((PyObject*)(newdescr))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(newdescr)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(newdescr)))); } while (0); > goto fail; > } > } > type = newdescr; > } > return type; > > fail: > do { if ((type) == ((void *)0)) ; else do { if ( --((PyObject*)(type))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(type)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(type)))); } while (0); } while (0); > return ((void *)0); >} ># 292 "numpy/core/src/multiarray/descriptor.c" >static PyArray_Descr * >_convert_from_array_descr(PyObject *obj, int align) >{ > int n, i, totalsize; > int ret; > PyObject *fields, *item, *newobj; > PyObject *name, *tup, *title; > PyObject *nameslist; > PyArray_Descr *new; > PyArray_Descr *conv; > int dtypeflags = 0; > int maxalign = 0; > > n = (((PyVarObject*)(obj))->ob_size); > nameslist = PyTuple_New(n); > if (!nameslist) { > return ((void *)0); > } > totalsize = 0; > fields = PyDict_New(); > for (i = 0; i < n; i++) { > item = (((PyListObject *)(obj))->ob_item[i]); > if (!((((((PyObject*)(item))->ob_type))->tp_flags & ((1L<<26))) != 0) || ((((PyVarObject*)(item))->ob_size) < 2)) { > goto fail; > } > name = (((PyTupleObject *)(item))->ob_item[0]); > if (((((((PyObject*)(name))->ob_type))->tp_flags & ((1L<<27))) != 0)) { > title = ((void *)0); > } > else if (((((((PyObject*)(name))->ob_type))->tp_flags & ((1L<<26))) != 0)) { > if ((((PyVarObject*)(name))->ob_size) != 2) { > goto fail; > } > title = (((PyTupleObject *)(name))->ob_item[0]); > name = (((PyTupleObject *)(name))->ob_item[1]); > if (!((((((PyObject*)(name))->ob_type))->tp_flags & ((1L<<27))) != 0)) { > goto fail; > } > } > else { > goto fail; > } > > > ( ((PyObject*)(name))->ob_refcnt++); > > if ((((PyVarObject*)(name))->ob_size) == 0) { > do { if ( --((PyObject*)(name))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(name)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(name)))); } while (0); > if (title == ((void *)0)) { > name = PyString_FromFormat("f%d", i); > } ># 353 "numpy/core/src/multiarray/descriptor.c" > else { > name = title; > ( ((PyObject*)(name))->ob_refcnt++); > } > > } > (((PyTupleObject *)(nameslist))->ob_item[i] = name); > > > > if ((((PyVarObject*)(item))->ob_size) == 2) { > ret = PyArray_DescrConverter((((PyTupleObject *)(item))->ob_item[1]), &conv); > if (ret == 0) { > PyObject_Print((((PyTupleObject *)(item))->ob_item[1]), stderr, 0); > } > } > else if ((((PyVarObject*)(item))->ob_size) == 3) { > newobj = PyTuple_GetSlice(item, 1, 3); > ret = PyArray_DescrConverter(newobj, &conv); > do { if ( --((PyObject*)(newobj))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(newobj)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(newobj)))); } while (0); > } > else { > goto fail; > } > if (ret == 0) { > goto fail; > } > if ((PyDict_GetItem(fields, name) != ((void *)0)) > > > > > > || (title > && (((((((PyObject*)(title))->ob_type))->tp_flags & ((1L<<27))) != 0) || ((((((PyObject*)(title))->ob_type))->tp_flags & ((1L<<28))) != 0)) > && (PyDict_GetItem(fields, title) != ((void *)0)))) { > > PyErr_SetString(PyExc_ValueError, > "two fields with the same name"); > goto fail; > } > dtypeflags |= (conv->flags & (0x08 | 0x02 | 0x01 | 0x10)); > tup = PyTuple_New((title == ((void *)0) ? 2 : 3)); > (((PyTupleObject *)(tup))->ob_item[0] = (PyObject *)conv); > if (align) { > int _align; > > _align = conv->alignment; > if (_align > 1) { > totalsize = ((totalsize + _align - 1)/_align)*_align; > } > maxalign = (((maxalign)>(_align))?(maxalign):(_align)); > } > (((PyTupleObject *)(tup))->ob_item[1] = PyInt_FromLong((long) totalsize)); > > PyDict_SetItem(fields, name, tup); > > > > > > > if (title != ((void *)0)) { > ( ((PyObject*)(title))->ob_refcnt++); > (((PyTupleObject *)(tup))->ob_item[2] = title); > > > > if (((((((PyObject*)(title))->ob_type))->tp_flags & ((1L<<27))) != 0) || ((((((PyObject*)(title))->ob_type))->tp_flags & ((1L<<28))) != 0)) { > > if (PyDict_GetItem(fields, title) != ((void *)0)) { > PyErr_SetString(PyExc_ValueError, > "title already used as a name or title."); > do { if ( --((PyObject*)(tup))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(tup)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(tup)))); } while (0); > goto fail; > } > PyDict_SetItem(fields, title, tup); > } > } > totalsize += conv->elsize; > do { if ( --((PyObject*)(tup))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(tup)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(tup)))); } while (0); > } > new = PyArray_DescrNewFromType(NPY_VOID); > new->fields = fields; > new->names = nameslist; > new->elsize = totalsize; > new->flags=dtypeflags; > if (maxalign > 1) { > totalsize = ((totalsize + maxalign - 1)/maxalign)*maxalign; > } > if (align) { > new->alignment = maxalign; > } > return new; > > fail: > do { if ( --((PyObject*)(fields))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(fields)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(fields)))); } while (0); > do { if ( --((PyObject*)(nameslist))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(nameslist)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(nameslist)))); } while (0); > return ((void *)0); > >} > > > > > > >static PyArray_Descr * >_convert_from_list(PyObject *obj, int align) >{ > int n, i; > int totalsize; > PyObject *fields; > PyArray_Descr *conv = ((void *)0); > PyArray_Descr *new; > PyObject *key, *tup; > PyObject *nameslist = ((void *)0); > int ret; > int maxalign = 0; > int dtypeflags = 0; > > n = (((PyVarObject*)(obj))->ob_size); > > > > > key = (((PyListObject *)(obj))->ob_item[n-1]); > if (((((((PyObject*)(key))->ob_type))->tp_flags & ((1L<<27))) != 0) && (((PyVarObject*)(key))->ob_size) == 0) { > n = n - 1; > } > > totalsize = 0; > if (n == 0) { > return ((void *)0); > } > nameslist = PyTuple_New(n); > if (!nameslist) { > return ((void *)0); > } > fields = PyDict_New(); > for (i = 0; i < n; i++) { > tup = PyTuple_New(2); > key = PyString_FromFormat("f%d", i); > ret = PyArray_DescrConverter((((PyListObject *)(obj))->ob_item[i]), &conv); > if (ret == 0) { > do { if ( --((PyObject*)(tup))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(tup)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(tup)))); } while (0); > do { if ( --((PyObject*)(key))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(key)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(key)))); } while (0); > goto fail; > } > dtypeflags |= (conv->flags & (0x08 | 0x02 | 0x01 | 0x10)); > (((PyTupleObject *)(tup))->ob_item[0] = (PyObject *)conv); > if (align) { > int _align; > > _align = conv->alignment; > if (_align > 1) { > totalsize = ((totalsize + _align - 1)/_align)*_align; > } > maxalign = (((maxalign)>(_align))?(maxalign):(_align)); > } > (((PyTupleObject *)(tup))->ob_item[1] = PyInt_FromLong((long) totalsize)); > PyDict_SetItem(fields, key, tup); > do { if ( --((PyObject*)(tup))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(tup)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(tup)))); } while (0); > (((PyTupleObject *)(nameslist))->ob_item[i] = key); > totalsize += conv->elsize; > } > new = PyArray_DescrNewFromType(NPY_VOID); > new->fields = fields; > new->names = nameslist; > new->flags=dtypeflags; > if (maxalign > 1) { > totalsize = ((totalsize+maxalign-1)/maxalign)*maxalign; > } > if (align) { > new->alignment = maxalign; > } > new->elsize = totalsize; > return new; > > fail: > do { if ( --((PyObject*)(nameslist))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(nameslist)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(nameslist)))); } while (0); > do { if ( --((PyObject*)(fields))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(fields)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(fields)))); } while (0); > return ((void *)0); >} > > >static char *_datetime_strings[] = { > "Y", > "M", > "W", > "B", > "D", > "h", > "m", > "s", > "ms", > "us", > "ns", > "ps", > "fs", > "as" >}; > >static NPY_DATETIMEUNIT > _unit_from_str(char *base) >{ > NPY_DATETIMEUNIT unit; > > if (base == ((void *)0)) { > return NPY_FR_us; > } > > unit = NPY_FR_Y; > while (unit < (NPY_FR_as + 1)) { > if (__extension__ ({ size_t __s1_len, __s2_len; (__builtin_constant_p (base) && __builtin_constant_p (_datetime_strings[unit]) && (__s1_len = strlen (base), __s2_len = strlen (_datetime_strings[unit]), (!((size_t)(const void *)((base) + 1) - (size_t)(const void *)(base) == 1) || __s1_len >= 4) && (!((size_t)(const void *)((_datetime_strings[unit]) + 1) - (size_t)(const void *)(_datetime_strings[unit]) == 1) || __s2_len >= 4)) ? __builtin_strcmp (base, _datetime_strings[unit]) : (__builtin_constant_p (base) && ((size_t)(const void *)((base) + 1) - (size_t)(const void *)(base) == 1) && (__s1_len = strlen (base), __s1_len < 4) ? (__builtin_constant_p (_datetime_strings[unit]) && ((size_t)(const void *)((_datetime_strings[unit]) + 1) - (size_t)(const void *)(_datetime_strings[unit]) == 1) ? __builtin_strcmp (base, _datetime_strings[unit]) : (__extension__ ({ __const unsigned char *__s2 = (__const unsigned char *) (__const char *) (_datetime_strings[unit]); register int __result = (((__const unsigned char *) (__const char *) (base))[0] - __s2[0]); if (__s1_len > 0 && __result == 0) { __result = (((__const unsigned char *) (__const char *) (base))[1] - __s2[1]); if (__s1_len > 1 && __result == 0) { __result = (((__const unsigned char *) (__const char *) (base))[2] - __s2[2]); if (__s1_len > 2 && __result == 0) __result = (((__const unsigned char *) (__const char *) (base))[3] - __s2[3]); } } __result; }))) : (__builtin_constant_p (_datetime_strings[unit]) && ((size_t)(const void *)((_datetime_strings[unit]) + 1) - (size_t)(const void *)(_datetime_strings[unit]) == 1) && (__s2_len = strlen (_datetime_strings[unit]), __s2_len < 4) ? (__builtin_constant_p (base) && ((size_t)(const void *)((base) + 1) - (size_t)(const void *)(base) == 1) ? __builtin_strcmp (base, _datetime_strings[unit]) : (__extension__ ({ __const unsigned char *__s1 = (__const unsigned char *) (__const char *) (base); register int __result = __s1[0] - ((__const unsigned char *) (__const char *) (_datetime_strings[unit]))[0]; if (__s2_len > 0 && __result == 0) { __result = (__s1[1] - ((__const unsigned char *) (__const char *) (_datetime_strings[unit]))[1]); if (__s2_len > 1 && __result == 0) { __result = (__s1[2] - ((__const unsigned char *) (__const char *) (_datetime_strings[unit]))[2]); if (__s2_len > 2 && __result == 0) __result = (__s1[3] - ((__const unsigned char *) (__const char *) (_datetime_strings[unit]))[3]); } } __result; }))) : __builtin_strcmp (base, _datetime_strings[unit])))); }) == 0) { > break; > } > unit++; > } > if (unit == (NPY_FR_as + 1)) { > return NPY_FR_us; > } > > return unit; >} > >static NPY_DATETIMEUNIT _multiples_table[16][4] = { > {12, 52, 365}, > {NPY_FR_M, NPY_FR_W, NPY_FR_D}, > {4, 30, 720}, > {NPY_FR_W, NPY_FR_D, NPY_FR_h}, > {5, 7, 168, 10080}, > {NPY_FR_B, NPY_FR_D, NPY_FR_h, NPY_FR_m}, > {24, 1440, 86400}, > {NPY_FR_h, NPY_FR_m, NPY_FR_s}, > {24, 1440, 86400}, > {NPY_FR_h, NPY_FR_m, NPY_FR_s}, > {60, 3600}, > {NPY_FR_m, NPY_FR_s}, > {60, 60000}, > {NPY_FR_s, NPY_FR_ms}, > {1000, 1000000}, > {0, 0} >}; > > > >static int >_convert_divisor_to_multiple(PyArray_DatetimeMetaData *meta) >{ > int i, num, ind; > NPY_DATETIMEUNIT *totry; > NPY_DATETIMEUNIT *baseunit; > int q, r; > > ind = ((int)meta->base - (int)NPY_FR_Y)*2; > totry = _multiples_table[ind]; > baseunit = _multiples_table[ind + 1]; > > num = 3; > if (meta->base == NPY_FR_W) { > num = 4; > } > else if (meta->base > NPY_FR_D) { > num = 2; > } > if (meta->base >= NPY_FR_s) { > ind = ((int)NPY_FR_s - (int)NPY_FR_Y)*2; > totry = _multiples_table[ind]; > baseunit = _multiples_table[ind + 1]; > baseunit[0] = meta->base + 1; > baseunit[1] = meta->base + 2; > if (meta->base == (NPY_FR_as + 1) - 2) { > num = 1; > } > if (meta->base == (NPY_FR_as + 1) - 1) { > num = 0; > } > } > > for (i = 0; i < num; i++) { > q = totry[i] / meta->den; > r = totry[i] % meta->den; > if (r == 0) { > break; > } > } > if (i == num) { > PyErr_Format(PyExc_ValueError, > "divisor (%d) is not a multiple of a lower-unit", meta->den); > return -1; > } > meta->base = baseunit[i]; > meta->den = 1; > meta->num *= q; > > return 0; >} > > >static PyObject * >_get_datetime_tuple_from_cobj(PyObject *cobj) >{ > PyArray_DatetimeMetaData *dt_data; > PyObject *dt_tuple; > > dt_data = NpyCapsule_AsVoidPtr(cobj); > dt_tuple = PyTuple_New(4); > > (((PyTupleObject *)(dt_tuple))->ob_item[0] = PyString_FromString(_datetime_strings[dt_data->base])); > > (((PyTupleObject *)(dt_tuple))->ob_item[1] = PyInt_FromLong(dt_data->num)); > > (((PyTupleObject *)(dt_tuple))->ob_item[2] = PyInt_FromLong(dt_data->den)); > > (((PyTupleObject *)(dt_tuple))->ob_item[3] = PyInt_FromLong(dt_data->events)); > > > return dt_tuple; >} > >static PyObject * >_convert_datetime_tuple_to_cobj(PyObject *tuple) >{ > PyArray_DatetimeMetaData *dt_data; > PyObject *ret; > > dt_data = PyMem_Malloc(sizeof(PyArray_DatetimeMetaData)); > dt_data->base = _unit_from_str( > PyString_AsString((((PyTupleObject *)(tuple))->ob_item[0]))); > > > dt_data->num = (((PyIntObject *)((((PyTupleObject *)(tuple))->ob_item[1])))->ob_ival); > dt_data->den = (((PyIntObject *)((((PyTupleObject *)(tuple))->ob_item[2])))->ob_ival); > dt_data->events = (((PyIntObject *)((((PyTupleObject *)(tuple))->ob_item[3])))->ob_ival); > > if (dt_data->den > 1) { > if (_convert_divisor_to_multiple(dt_data) < 0) { > return ((void *)0); > } > } > > > > > ret = NpyCapsule_FromVoidPtr((void *)dt_data, simple_capsule_dtor); > return ret; >} > >static PyArray_Descr * >_convert_from_datetime_tuple(PyObject *obj) >{ > PyArray_Descr *new; > PyObject *dt_tuple; > PyObject *dt_cobj; > PyObject *datetime_flag; > > if (!((((((PyObject*)(obj))->ob_type))->tp_flags & ((1L<<26))) != 0) || (((PyVarObject*)(obj))->ob_size)!=2) { > PyErr_SetString(PyExc_RuntimeError, > "_datetimestring is not returning a tuple with length 2"); > return ((void *)0); > } > > dt_tuple = (((PyTupleObject *)(obj))->ob_item[0]); > datetime_flag = (((PyTupleObject *)(obj))->ob_item[1]); > if (!((((((PyObject*)(dt_tuple))->ob_type))->tp_flags & ((1L<<26))) != 0) > || (((PyVarObject*)(dt_tuple))->ob_size) != 4 > || !((((datetime_flag)->ob_type)->tp_flags & ((1L<<23))) != 0)) { > PyErr_SetString(PyExc_RuntimeError, > "_datetimestring is not returning a length 4 tuple" " and an integer"); > > return ((void *)0); > } > > > if (PyObject_IsTrue(datetime_flag)) { > new = PyArray_DescrNewFromType(NPY_DATETIME); > } > else { > new = PyArray_DescrNewFromType(NPY_TIMEDELTA); > } > > if (new == ((void *)0)) { > return ((void *)0); > } > > > > > do { if ((new->metadata) == ((void *)0)) ; else do { if ( --((PyObject*)(new->metadata))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(new->metadata)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(new->metadata)))); } while (0); } while (0); > if ((new->metadata = PyDict_New()) == ((void *)0)) { > return ((void *)0); > } > dt_cobj = _convert_datetime_tuple_to_cobj(dt_tuple); > if (dt_cobj == ((void *)0)) { > > do { if ( --((PyObject*)(new))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(new)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(new)))); } while (0); > return ((void *)0); > } > > > PyDict_SetItemString(new->metadata, "__frequency__", dt_cobj); > do { if ( --((PyObject*)(dt_cobj))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(dt_cobj)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(dt_cobj)))); } while (0); > return new; >} > > >static PyArray_Descr * >_convert_from_datetime(PyObject *obj) >{ > PyObject *tupleobj; > PyArray_Descr *res; > PyObject *_numpy_internal; > > if (!((((((PyObject*)(obj))->ob_type))->tp_flags & ((1L<<27))) != 0)) { > return ((void *)0); > } > _numpy_internal = PyImport_ImportModule("numpy.core._internal"); > if (_numpy_internal == ((void *)0)) { > return ((void *)0); > } > tupleobj = _PyObject_CallMethod_SizeT(_numpy_internal, > "_datetimestring", "O", obj); > do { if ( --((PyObject*)(_numpy_internal))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(_numpy_internal)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(_numpy_internal)))); } while (0); > if (!tupleobj) { > return ((void *)0); > } > > > > > res = _convert_from_datetime_tuple(tupleobj); > do { if ( --((PyObject*)(tupleobj))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(tupleobj)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(tupleobj)))); } while (0); > if (!res && !PyErr_Occurred()) { > PyErr_SetString(PyExc_ValueError, > "invalid data-type"); > return ((void *)0); > } > return res; >} ># 803 "numpy/core/src/multiarray/descriptor.c" >static PyArray_Descr * >_convert_from_commastring(PyObject *obj, int align) >{ > PyObject *listobj; > PyArray_Descr *res; > PyObject *_numpy_internal; > > if (!((((((PyObject*)(obj))->ob_type))->tp_flags & ((1L<<27))) != 0)) { > return ((void *)0); > } > _numpy_internal = PyImport_ImportModule("numpy.core._internal"); > if (_numpy_internal == ((void *)0)) { > return ((void *)0); > } > listobj = _PyObject_CallMethod_SizeT(_numpy_internal, "_commastring", "O", obj); > do { if ( --((PyObject*)(_numpy_internal))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(_numpy_internal)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(_numpy_internal)))); } while (0); > if (!listobj) { > return ((void *)0); > } > if (!((((((PyObject*)(listobj))->ob_type))->tp_flags & ((1L<<25))) != 0) || (((PyVarObject*)(listobj))->ob_size) < 1) { > PyErr_SetString(PyExc_RuntimeError, > "_commastring is not returning a list with len >= 1"); > return ((void *)0); > } > if ((((PyVarObject*)(listobj))->ob_size) == 1) { > if (PyArray_DescrConverter( > (((PyListObject *)(listobj))->ob_item[0]), &res) == 0) { > res = ((void *)0); > } > } > else { > res = _convert_from_list(listobj, align); > } > do { if ( --((PyObject*)(listobj))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(listobj)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(listobj)))); } while (0); > if (!res && !PyErr_Occurred()) { > PyErr_SetString(PyExc_ValueError, > "invalid data-type"); > return ((void *)0); > } > return res; >} > >static int >_is_tuple_of_integers(PyObject *obj) >{ > int i; > > if (!((((((PyObject*)(obj))->ob_type))->tp_flags & ((1L<<26))) != 0)) { > return 0; > } > for (i = 0; i < (((PyVarObject*)(obj))->ob_size); i++) { > if (!((((((((PyTupleObject *)(obj))->ob_item[i]))->ob_type)->tp_flags & ((1L<<23))) != 0) || ((((((PyObject*)((((PyTupleObject *)(obj))->ob_item[i])))->ob_type))->tp_flags & ((1L<<24))) != 0) || (((((PyObject*)(((((PyTupleObject *)(obj))->ob_item[i]))))->ob_type) == (&PyIntegerArrType_Type) || PyType_IsSubtype((((PyObject*)(((((PyTupleObject *)(obj))->ob_item[i]))))->ob_type), (&PyIntegerArrType_Type)))))) { > return 0; > } > } > return 1; >} ># 876 "numpy/core/src/multiarray/descriptor.c" >static PyArray_Descr * >_use_inherit(PyArray_Descr *type, PyObject *newobj, int *errflag) >{ > PyArray_Descr *new; > PyArray_Descr *conv; > > *errflag = 0; > if ((((((PyObject*)(newobj))->ob_type) == (&PyIntegerArrType_Type) || PyType_IsSubtype((((PyObject*)(newobj))->ob_type), (&PyIntegerArrType_Type)))) > || _is_tuple_of_integers(newobj) > || !PyArray_DescrConverter(newobj, &conv)) { > return ((void *)0); > } > *errflag = 1; > new = PyArray_DescrNew(type); > if (new == ((void *)0)) { > goto fail; > } > if (new->elsize && new->elsize != conv->elsize) { > PyErr_SetString(PyExc_ValueError, > "mismatch in size of old and new data-descriptor"); > goto fail; > } > new->elsize = conv->elsize; > if (conv->names) { > new->fields = conv->fields; > do { if ((new->fields) == ((void *)0)) ; else ( ((PyObject*)(new->fields))->ob_refcnt++); } while (0); > new->names = conv->names; > do { if ((new->names) == ((void *)0)) ; else ( ((PyObject*)(new->names))->ob_refcnt++); } while (0); > } > new->flags = conv->flags; > do { if ( --((PyObject*)(conv))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(conv)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(conv)))); } while (0); > *errflag = 0; > return new; > > fail: > do { if ( --((PyObject*)(conv))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(conv)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(conv)))); } while (0); > return ((void *)0); >} ># 952 "numpy/core/src/multiarray/descriptor.c" >static PyArray_Descr * >_use_fields_dict(PyObject *obj, int align) >{ > PyObject *_numpy_internal; > PyArray_Descr *res; > > _numpy_internal = PyImport_ImportModule("numpy.core._internal"); > if (_numpy_internal == ((void *)0)) { > return ((void *)0); > } > res = (PyArray_Descr *)_PyObject_CallMethod_SizeT(_numpy_internal, > "_usefields", "Oi", obj, align); > do { if ( --((PyObject*)(_numpy_internal))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(_numpy_internal)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(_numpy_internal)))); } while (0); > return res; >} > >static PyArray_Descr * >_convert_from_dict(PyObject *obj, int align) >{ > PyArray_Descr *new; > PyObject *fields = ((void *)0); > PyObject *names, *offsets, *descrs, *titles; > PyObject *metadata; > int n, i; > int totalsize; > int maxalign = 0; > int dtypeflags = 0; > > fields = PyDict_New(); > if (fields == ((void *)0)) { > return (PyArray_Descr *)PyErr_NoMemory(); > } > names = PyDict_GetItemString(obj, "names"); > descrs = PyDict_GetItemString(obj, "formats"); > if (!names || !descrs) { > do { if ( --((PyObject*)(fields))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(fields)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(fields)))); } while (0); > return _use_fields_dict(obj, align); > } > n = PyObject_Size(names); > offsets = PyDict_GetItemString(obj, "offsets"); > titles = PyDict_GetItemString(obj, "titles"); > if ((n > PyObject_Size(descrs)) > || (offsets && (n > PyObject_Size(offsets))) > || (titles && (n > PyObject_Size(titles)))) { > PyErr_SetString(PyExc_ValueError, > "all items in the dictionary must have the same length."); > goto fail; > } > > totalsize = 0; > for (i = 0; i < n; i++) { > PyObject *tup, *descr, *index, *item, *name, *off; > int len, ret, _align = 1; > PyArray_Descr *newdescr; > > > len = 2; > item = ((void *)0); > index = PyInt_FromLong(i); > if (titles) { > item=PyObject_GetItem(titles, index); > if (item && item != (&_Py_NoneStruct)) { > len = 3; > } > else { > do { if ((item) == ((void *)0)) ; else do { if ( --((PyObject*)(item))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(item)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(item)))); } while (0); } while (0); > } > PyErr_Clear(); > } > tup = PyTuple_New(len); > descr = PyObject_GetItem(descrs, index); > if (!descr) { > goto fail; > } > ret = PyArray_DescrConverter(descr, &newdescr); > do { if ( --((PyObject*)(descr))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(descr)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(descr)))); } while (0); > if (ret == 0) { > do { if ( --((PyObject*)(tup))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(tup)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(tup)))); } while (0); > do { if ( --((PyObject*)(index))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(index)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(index)))); } while (0); > goto fail; > } > (((PyTupleObject *)(tup))->ob_item[0] = (PyObject *)newdescr); > if (align) { > _align = newdescr->alignment; > maxalign = (((maxalign)>(_align))?(maxalign):(_align)); > } > if (offsets) { > long offset; > off = PyObject_GetItem(offsets, index); > if (!off) { > goto fail; > } > offset = PyInt_AsLong(off); > (((PyTupleObject *)(tup))->ob_item[1] = off); > if (offset < totalsize) { > PyErr_SetString(PyExc_ValueError, > "invalid offset (must be ordered)"); > ret = 0; > } > if (offset > totalsize) { > totalsize = offset; > } > } > else { > if (align && _align > 1) { > totalsize = ((totalsize + _align - 1)/_align)*_align; > } > (((PyTupleObject *)(tup))->ob_item[1] = PyInt_FromLong(totalsize)); > } > if (len == 3) { > (((PyTupleObject *)(tup))->ob_item[2] = item); > } > name = PyObject_GetItem(names, index); > if (!name) { > goto fail; > } > do { if ( --((PyObject*)(index))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(index)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(index)))); } while (0); > > > > if (!(((((((PyObject*)(name))->ob_type))->tp_flags & ((1L<<27))) != 0) || ((((((PyObject*)(name))->ob_type))->tp_flags & ((1L<<28))) != 0))) { > > PyErr_SetString(PyExc_ValueError, > "field names must be strings"); > ret = 0; > } > > > if (PyDict_GetItem(fields, name) != ((void *)0)) { > PyErr_SetString(PyExc_ValueError, > "name already used as a name or title"); > ret = 0; > } > PyDict_SetItem(fields, name, tup); > do { if ( --((PyObject*)(name))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(name)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(name)))); } while (0); > if (len == 3) { > > > > if (((((((PyObject*)(item))->ob_type))->tp_flags & ((1L<<27))) != 0) || ((((((PyObject*)(item))->ob_type))->tp_flags & ((1L<<28))) != 0)) { > > if (PyDict_GetItem(fields, item) != ((void *)0)) { > PyErr_SetString(PyExc_ValueError, > "title already used as a name or title."); > ret=0; > } > PyDict_SetItem(fields, item, tup); > } > } > do { if ( --((PyObject*)(tup))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(tup)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(tup)))); } while (0); > if ((ret == 0) || (newdescr->elsize == 0)) { > goto fail; > } > dtypeflags |= (newdescr->flags & (0x08 | 0x02 | 0x01 | 0x10)); > totalsize += newdescr->elsize; > } > > new = PyArray_DescrNewFromType(NPY_VOID); > if (new == ((void *)0)) { > goto fail; > } > if (maxalign > 1) { > totalsize = ((totalsize + maxalign - 1)/maxalign)*maxalign; > } > if (align) { > new->alignment = maxalign; > } > new->elsize = totalsize; > if (!((((((PyObject*)(names))->ob_type))->tp_flags & ((1L<<26))) != 0)) { > names = PySequence_Tuple(names); > } > else { > ( ((PyObject*)(names))->ob_refcnt++); > } > new->names = names; > new->fields = fields; > new->flags = dtypeflags; > > metadata = PyDict_GetItemString(obj, "metadata"); > > if (new->metadata == ((void *)0)) { > new->metadata = metadata; > do { if ((new->metadata) == ((void *)0)) ; else ( ((PyObject*)(new->metadata))->ob_refcnt++); } while (0); > } > else if (metadata != ((void *)0)) { > if (PyDict_Merge(new->metadata, metadata, 0) == -1) { > do { if ( --((PyObject*)(new))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(new)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(new)))); } while (0); > return ((void *)0); > } > } > return new; > > fail: > do { if ((fields) == ((void *)0)) ; else do { if ( --((PyObject*)(fields))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(fields)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(fields)))); } while (0); } while (0); > return ((void *)0); >} > > > >static PyArray_Descr * >PyArray_DescrNewFromType(int type_num) >{ > PyArray_Descr *old; > PyArray_Descr *new; > > old = PyArray_DescrFromType(type_num); > new = PyArray_DescrNew(old); > do { if ( --((PyObject*)(old))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(old)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(old)))); } while (0); > return new; >} > > > > >static int >PyArray_DescrConverter2(PyObject *obj, PyArray_Descr **at) >{ > if (obj == (&_Py_NoneStruct)) { > *at = ((void *)0); > return 1; > } > else { > return PyArray_DescrConverter(obj, at); > } >} ># 1190 "numpy/core/src/multiarray/descriptor.c" >static int >PyArray_DescrConverter(PyObject *obj, PyArray_Descr **at) >{ > char *type; > int check_num = NPY_NOTYPE + 10; > int len; > PyObject *item; > int elsize = 0; > char endian = '='; > > *at = ((void *)0); > > if (obj == (&_Py_NoneStruct)) { > *at = PyArray_DescrFromType(NPY_DOUBLE); > return 1; > } > if ((((PyObject*)(obj))->ob_type==&PyArrayDescr_Type)) { > *at = (PyArray_Descr *)obj; > ( ((PyObject*)(*at))->ob_refcnt++); > return 1; > } > > if (((((((PyObject*)(obj))->ob_type))->tp_flags & ((1L<<31))) != 0)) { > if (PyType_IsSubtype((PyTypeObject *)obj, &PyGenericArrType_Type)) { > *at = PyArray_DescrFromTypeObject(obj); > if (*at) { > return 1; > } > else { > return 0; > } > } > check_num = NPY_OBJECT; > > if (obj == (PyObject *)(&PyInt_Type)) { > check_num = NPY_LONG; > } > else if (obj == (PyObject *)(&PyLong_Type)) { > check_num = NPY_LONGLONG; > } > > > > > > else if (obj == (PyObject *)(&PyFloat_Type)) { > check_num = NPY_DOUBLE; > } > else if (obj == (PyObject *)(&PyComplex_Type)) { > check_num = NPY_CDOUBLE; > } > else if (obj == (PyObject *)(&PyBool_Type)) { > check_num = NPY_BOOL; > } > else if (obj == (PyObject *)(&PyString_Type)) { > check_num = NPY_STRING; > } > else if (obj == (PyObject *)(&PyUnicode_Type)) { > check_num = NPY_UNICODE; > } > > > > > > else if (obj == (PyObject *)(&PyBuffer_Type)) { > check_num = NPY_VOID; > } > > else { > *at = _arraydescr_fromobj(obj); > if (*at) { > return 1; > } > } > goto finish; > } > > > > if (((((((PyObject*)(obj))->ob_type))->tp_flags & ((1L<<28))) != 0)) { > > int retval; > PyObject *obj2; > obj2 = PyUnicodeUCS4_AsASCIIString(obj); > if (obj2 == ((void *)0)) { > return 0; > } > retval = PyArray_DescrConverter(obj2, at); > do { if ( --((PyObject*)(obj2))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(obj2)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(obj2)))); } while (0); > return retval; > } > > if (((((((PyObject*)(obj))->ob_type))->tp_flags & ((1L<<27))) != 0)) { > > type = (((PyStringObject *)(obj))->ob_sval); > len = (((PyVarObject*)(obj))->ob_size); > if (len <= 0) { > goto fail; > } > > if ((len > 1) && _check_for_datetime(type, len)) { > *at = _convert_from_datetime(obj); > if (*at) { > return 1; > } > return 0; > } > > if (_check_for_commastring(type, len)) { > *at = _convert_from_commastring(obj, 0); > if (*at) { > return 1; > } > return 0; > } > check_num = (int) type[0]; > if ((char) check_num == '>' > || (char) check_num == '<' > || (char) check_num == '|' > || (char) check_num == '=') { > if (len <= 1) { > goto fail; > } > endian = (char) check_num; > type++; len--; > check_num = (int) type[0]; > if (endian == '|') { > endian = '='; > } > } > if (len > 1) { > elsize = atoi(type + 1); > if (elsize == 0) { > check_num = NPY_NOTYPE+10; > } > > > > > > > > else if (check_num == NPY_UNICODELTR) { > elsize <<= 2; > } > > else if ((check_num != NPY_STRINGLTR) > && (check_num != NPY_VOIDLTR) > && (check_num != NPY_STRINGLTR2)) { > check_num = PyArray_TypestrConvert(elsize, check_num); > if (check_num == NPY_NOTYPE) { > check_num += 10; > } > elsize = 0; > } > } > } > else if (((((((PyObject*)(obj))->ob_type))->tp_flags & ((1L<<26))) != 0)) { > > *at = _convert_from_tuple(obj); > if (*at == ((void *)0)){ > if (PyErr_Occurred()) { > return 0; > } > goto fail; > } > return 1; > } > else if (((((((PyObject*)(obj))->ob_type))->tp_flags & ((1L<<25))) != 0)) { > > *at = _convert_from_array_descr(obj,0); > if (*at == ((void *)0)) { > if (PyErr_Occurred()) { > return 0; > } > goto fail; > } > return 1; > } > else if (((((((PyObject*)(obj))->ob_type))->tp_flags & ((1L<<29))) != 0)) { > > *at = _convert_from_dict(obj,0); > if (*at == ((void *)0)) { > if (PyErr_Occurred()) { > return 0; > } > goto fail; > } > return 1; > } > else if (((((PyObject*)(obj))->ob_type) == (&PyArray_Type) || PyType_IsSubtype((((PyObject*)(obj))->ob_type), (&PyArray_Type)))) { > goto fail; > } > else { > *at = _arraydescr_fromobj(obj); > if (*at) { > return 1; > } > if (PyErr_Occurred()) { > return 0; > } > goto fail; > } > if (PyErr_Occurred()) { > goto fail; > } > > > > > > finish: > if ((check_num == NPY_NOTYPE + 10) > || (*at = PyArray_DescrFromType(check_num)) == ((void *)0)) { > PyErr_Clear(); > > if (typeDict != ((void *)0)) { > item = PyDict_GetItem(typeDict, obj); ># 1419 "numpy/core/src/multiarray/descriptor.c" > if (item) { > return PyArray_DescrConverter(item, at); > } > } > goto fail; > } > > if (((*at)->elsize == 0) && (elsize != 0)) { > do { PyArray_Descr *_new_; _new_ = PyArray_DescrNew(*at); do { if ((*at) == ((void *)0)) ; else do { if ( --((PyObject*)(*at))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(*at)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(*at)))); } while (0); } while (0); *at = _new_; } while(0); > (*at)->elsize = elsize; > } > if (endian != '=' && ((endian) != '>')) { > endian = '='; > } > if (endian != '=' && (*at)->byteorder != '|' > && (*at)->byteorder != endian) { > do { PyArray_Descr *_new_; _new_ = PyArray_DescrNew(*at); do { if ((*at) == ((void *)0)) ; else do { if ( --((PyObject*)(*at))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(*at)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(*at)))); } while (0); } while (0); *at = _new_; } while(0); > (*at)->byteorder = endian; > } > return 1; > > fail: > PyErr_SetString(PyExc_TypeError, "data type not understood"); > *at = ((void *)0); > return 0; >} ># 1463 "numpy/core/src/multiarray/descriptor.c" >static PyArray_Descr * >PyArray_DescrNew(PyArray_Descr *base) >{ > PyArray_Descr *new = ( (PyArray_Descr *) _PyObject_New(&PyArrayDescr_Type) ); > > if (new == ((void *)0)) { > return ((void *)0); > } > > memcpy((char *)new + sizeof(PyObject), > (char *)base + sizeof(PyObject), > sizeof(PyArray_Descr) - sizeof(PyObject)); > > if (new->fields == (&_Py_NoneStruct)) { > new->fields = ((void *)0); > } > do { if ((new->fields) == ((void *)0)) ; else ( ((PyObject*)(new->fields))->ob_refcnt++); } while (0); > do { if ((new->names) == ((void *)0)) ; else ( ((PyObject*)(new->names))->ob_refcnt++); } while (0); > if (new->subarray) { > new->subarray = PyMem_Malloc(sizeof(PyArray_ArrayDescr)); > memcpy(new->subarray, base->subarray, sizeof(PyArray_ArrayDescr)); > ( ((PyObject*)(new->subarray->shape))->ob_refcnt++); > ( ((PyObject*)(new->subarray->base))->ob_refcnt++); > } > do { if ((new->typeobj) == ((void *)0)) ; else ( ((PyObject*)(new->typeobj))->ob_refcnt++); } while (0); > do { if ((new->metadata) == ((void *)0)) ; else ( ((PyObject*)(new->metadata))->ob_refcnt++); } while (0); > > return new; >} > > > > > >static void >arraydescr_dealloc(PyArray_Descr *self) >{ > if (self->fields == (&_Py_NoneStruct)) { > fprintf(stderr, "*** Reference count error detected: \n" "an attempt was made to deallocate %d (%c) ***\n", > > self->type_num, self->type); > ( ((PyObject*)(self))->ob_refcnt++); > ( ((PyObject*)(self))->ob_refcnt++); > return; > } > do { if ((self->typeobj) == ((void *)0)) ; else do { if ( --((PyObject*)(self->typeobj))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(self->typeobj)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(self->typeobj)))); } while (0); } while (0); > do { if ((self->names) == ((void *)0)) ; else do { if ( --((PyObject*)(self->names))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(self->names)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(self->names)))); } while (0); } while (0); > do { if ((self->fields) == ((void *)0)) ; else do { if ( --((PyObject*)(self->fields))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(self->fields)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(self->fields)))); } while (0); } while (0); > if (self->subarray) { > do { if ((self->subarray->shape) == ((void *)0)) ; else do { if ( --((PyObject*)(self->subarray->shape))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(self->subarray->shape)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(self->subarray->shape)))); } while (0); } while (0); > do { if ( --((PyObject*)(self->subarray->base))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(self->subarray->base)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(self->subarray->base)))); } while (0); > PyMem_Free(self->subarray); > } > do { if ((self->metadata) == ((void *)0)) ; else do { if ( --((PyObject*)(self->metadata))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(self->metadata)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(self->metadata)))); } while (0); } while (0); > (((PyObject*)(self))->ob_type)->tp_free((PyObject *)self); >} > > > > > > > >static PyMemberDef arraydescr_members[] = { > {"type", > 6, ((size_t) &((PyArray_Descr *)0)->typeobj), 1, ((void *)0)}, > {"kind", > 7, ((size_t) &((PyArray_Descr *)0)->kind), 1, ((void *)0)}, > {"char", > 7, ((size_t) &((PyArray_Descr *)0)->type), 1, ((void *)0)}, > {"num", > 1, ((size_t) &((PyArray_Descr *)0)->type_num), 1, ((void *)0)}, > {"byteorder", > 7, ((size_t) &((PyArray_Descr *)0)->byteorder), 1, ((void *)0)}, > {"itemsize", > 1, ((size_t) &((PyArray_Descr *)0)->elsize), 1, ((void *)0)}, > {"alignment", > 1, ((size_t) &((PyArray_Descr *)0)->alignment), 1, ((void *)0)}, > {"flags", > 1, ((size_t) &((PyArray_Descr *)0)->flags), 1, ((void *)0)}, > {((void *)0), 0, 0, 0, ((void *)0)}, >}; > >static PyObject * >arraydescr_subdescr_get(PyArray_Descr *self) >{ > if (self->subarray == ((void *)0)) { > ( ((PyObject*)((&_Py_NoneStruct)))->ob_refcnt++); > return (&_Py_NoneStruct); > } > return _Py_BuildValue_SizeT("OO", > (PyObject *)self->subarray->base, self->subarray->shape); >} > >static PyObject * >_append_to_datetime_typestr(PyArray_Descr *self, PyObject *ret) >{ > PyObject *tmp; > PyObject *res; > int num, den, events; > char *basestr; > PyArray_DatetimeMetaData *dt_data; > > > if (self->metadata == ((void *)0)) { > return ret; > } > tmp = PyDict_GetItemString(self->metadata, "__frequency__"); > dt_data = NpyCapsule_AsVoidPtr(tmp); > num = dt_data->num; > den = dt_data->den; > events = dt_data->events; > basestr = _datetime_strings[dt_data->base]; > > if (num == 1) { > tmp = PyString_FromString(basestr); > } > else { > tmp = PyString_FromFormat("%d%s", num, basestr); > } > if (den != 1) { > res = PyString_FromFormat("/%d", den); > PyString_ConcatAndDel(&tmp, res); > } > > res = PyString_FromString("["); > PyString_ConcatAndDel(&res, tmp); > PyString_ConcatAndDel(&res, PyString_FromString("]")); > if (events != 1) { > tmp = PyString_FromFormat("//%d", events); > PyString_ConcatAndDel(&res, tmp); > } > PyString_ConcatAndDel(&ret, res); > return ret; >} > >static PyObject * >arraydescr_protocol_typestr_get(PyArray_Descr *self) >{ > char basic_ = self->kind; > char endian = self->byteorder; > int size = self->elsize; > PyObject *ret; > > if (endian == '=') { > endian = '<'; > if (!((endian) != '>')) { > endian = '>'; > } > } > if (self->type_num == NPY_UNICODE) { > size >>= 2; > } > > ret = PyString_FromFormat("%c%c%d", endian, basic_, size); > if ((((((PyArray_Descr*)(self))->type_num) >=NPY_DATETIME) && ((((PyArray_Descr*)(self))->type_num) <=NPY_TIMEDELTA))) { > ret = _append_to_datetime_typestr(self, ret); > } > > return ret; >} > >static PyObject * >arraydescr_typename_get(PyArray_Descr *self) >{ > int len; > PyTypeObject *typeobj = self->typeobj; > PyObject *res; > char *s; > > static int prefix_len = 0; > > if ((((self->type_num) >= NPY_USERDEF) && ((self->type_num) < NPY_USERDEF+ NPY_NUMUSERTYPES))) { > s = strrchr(typeobj->tp_name, '.'); > if (s == ((void *)0)) { > res = PyString_FromString(typeobj->tp_name); > } > else { > res = PyString_FromStringAndSize(s + 1, strlen(s) - 1); > } > return res; > } > else { > if (prefix_len == 0) { > prefix_len = strlen("numpy."); > } > len = strlen(typeobj->tp_name); > if (*(typeobj->tp_name + (len-1)) == '_') { > len -= 1; > } > len -= prefix_len; > res = PyString_FromStringAndSize(typeobj->tp_name+prefix_len, len); > } > if ((((self->type_num) >=NPY_STRING) && ((self->type_num) <=NPY_VOID)) && self->elsize != 0) { > PyObject *p; > p = PyString_FromFormat("%d", self->elsize * 8); > PyString_ConcatAndDel(&res, p); > } > if ((((((PyArray_Descr*)(self))->type_num) >=NPY_DATETIME) && ((((PyArray_Descr*)(self))->type_num) <=NPY_TIMEDELTA))) { > res = _append_to_datetime_typestr(self, res); > } > > return res; >} > >static PyObject * >arraydescr_base_get(PyArray_Descr *self) >{ > if (self->subarray == ((void *)0)) { > ( ((PyObject*)(self))->ob_refcnt++); > return (PyObject *)self; > } > ( ((PyObject*)(self->subarray->base))->ob_refcnt++); > return (PyObject *)(self->subarray->base); >} > >static PyObject * >arraydescr_shape_get(PyArray_Descr *self) >{ > if (self->subarray == ((void *)0)) { > return PyTuple_New(0); > } > > > > > if (((((((PyObject*)(self->subarray->shape))->ob_type))->tp_flags & ((1L<<26))) != 0)) { > ( ((PyObject*)(self->subarray->shape))->ob_refcnt++); > return (PyObject *)(self->subarray->shape); > } > return _Py_BuildValue_SizeT("(O)", self->subarray->shape); >} > >static PyObject * >arraydescr_protocol_descr_get(PyArray_Descr *self) >{ > PyObject *dobj, *res; > PyObject *_numpy_internal; > > if (self->names == ((void *)0)) { > > dobj = PyTuple_New(2); > if (dobj == ((void *)0)) { > return ((void *)0); > } > (((PyTupleObject *)(dobj))->ob_item[0] = PyString_FromString("")); > (((PyTupleObject *)(dobj))->ob_item[1] = arraydescr_protocol_typestr_get(self)); > res = PyList_New(1); > if (res == ((void *)0)) { > do { if ( --((PyObject*)(dobj))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(dobj)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(dobj)))); } while (0); > return ((void *)0); > } > (((PyListObject *)(res))->ob_item[0] = (dobj)); > return res; > } > > _numpy_internal = PyImport_ImportModule("numpy.core._internal"); > if (_numpy_internal == ((void *)0)) { > return ((void *)0); > } > res = _PyObject_CallMethod_SizeT(_numpy_internal, "_array_descr", "O", self); > do { if ( --((PyObject*)(_numpy_internal))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(_numpy_internal)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(_numpy_internal)))); } while (0); > return res; >} > > > > > > >static PyObject * >arraydescr_isbuiltin_get(PyArray_Descr *self) >{ > long val; > val = 0; > if (self->fields == (&_Py_NoneStruct)) { > val = 1; > } > if ((((self->type_num) >= NPY_USERDEF) && ((self->type_num) < NPY_USERDEF+ NPY_NUMUSERTYPES))) { > val = 2; > } > return PyInt_FromLong(val); >} > >static int >_arraydescr_isnative(PyArray_Descr *self) >{ > if (self->names == ((void *)0)) { > return ((self->byteorder) != '>'); > } > else { > PyObject *key, *value, *title = ((void *)0); > PyArray_Descr *new; > int offset; > Py_ssize_t pos = 0; > while (PyDict_Next(self->fields, &pos, &key, &value)) { > if (((((PyVarObject*)((value)))->ob_size)==3) && ((((PyTupleObject *)((value)))->ob_item[2]) == (key))) { > continue; > } > if (!_PyArg_ParseTuple_SizeT(value, "Oi|O", &new, &offset, &title)) { > return -1; > } > if (!_arraydescr_isnative(new)) { > return 0; > } > } > } > return 1; >} ># 1780 "numpy/core/src/multiarray/descriptor.c" >static PyObject * >arraydescr_isnative_get(PyArray_Descr *self) >{ > PyObject *ret; > int retval; > retval = _arraydescr_isnative(self); > if (retval == -1) { > return ((void *)0); > } > ret = retval ? ((PyObject *) &_Py_TrueStruct) : ((PyObject *) &_Py_ZeroStruct); > ( ((PyObject*)(ret))->ob_refcnt++); > return ret; >} > >static PyObject * >arraydescr_fields_get(PyArray_Descr *self) >{ > if (self->names == ((void *)0)) { > ( ((PyObject*)((&_Py_NoneStruct)))->ob_refcnt++); > return (&_Py_NoneStruct); > } > return PyDictProxy_New(self->fields); >} > >static PyObject * >arraydescr_metadata_get(PyArray_Descr *self) >{ > if (self->metadata == ((void *)0)) { > ( ((PyObject*)((&_Py_NoneStruct)))->ob_refcnt++); > return (&_Py_NoneStruct); > } > return PyDictProxy_New(self->metadata); >} > >static PyObject * >arraydescr_hasobject_get(PyArray_Descr *self) >{ > if ((((self)->flags & (0x01)) == (0x01))) { > return ( ((PyObject*)(((PyObject *) &_Py_TrueStruct)))->ob_refcnt++), ((PyObject *) &_Py_TrueStruct); > } > else { > return ( ((PyObject*)(((PyObject *) &_Py_ZeroStruct)))->ob_refcnt++), ((PyObject *) &_Py_ZeroStruct); > } >} > >static PyObject * >arraydescr_names_get(PyArray_Descr *self) >{ > if (self->names == ((void *)0)) { > ( ((PyObject*)((&_Py_NoneStruct)))->ob_refcnt++); > return (&_Py_NoneStruct); > } > ( ((PyObject*)(self->names))->ob_refcnt++); > return self->names; >} > >static int >arraydescr_names_set(PyArray_Descr *self, PyObject *val) >{ > int N = 0; > int i; > PyObject *new_names; > PyObject *new_fields; > if (self->names == ((void *)0)) { > PyErr_SetString(PyExc_ValueError, > "there are no fields defined"); > return -1; > } > > N = (((PyVarObject*)(self->names))->ob_size); > if (!PySequence_Check(val) || PyObject_Size((PyObject *)val) != N) { > PyErr_Format(PyExc_ValueError, > "must replace all names at once with a sequence of length %d", > N); > return -1; > } > > for (i = 0; i < N; i++) { > PyObject *item; > int valid = 1; > item = PySequence_GetItem(val, i); > valid = ((((((PyObject*)(item))->ob_type))->tp_flags & ((1L<<27))) != 0); > do { if ( --((PyObject*)(item))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(item)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(item)))); } while (0); > if (!valid) { > PyErr_Format(PyExc_ValueError, > "item #%d of names is of type %s and not string", > i, (((PyObject*)(item))->ob_type)->tp_name); > return -1; > } > } > > new_names = PySequence_Tuple(val); > new_fields = PyDict_New(); > for (i = 0; i < N; i++) { > PyObject *key; > PyObject *item; > PyObject *new_key; > int ret; > key = (((PyTupleObject *)(self->names))->ob_item[i]); > > item = PyDict_GetItem(self->fields, key); > new_key = (((PyTupleObject *)(new_names))->ob_item[i]); > > ret = PyDict_Contains(new_fields, new_key); > if (ret != 0) { > if (ret < 0) { > PyErr_Clear(); > } > PyErr_SetString(PyExc_ValueError, "Duplicate field names given."); > do { if ( --((PyObject*)(new_names))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(new_names)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(new_names)))); } while (0); > do { if ( --((PyObject*)(new_fields))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(new_fields)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(new_fields)))); } while (0); > return -1; > } > PyDict_SetItem(new_fields, new_key, item); > } > > > do { if ( --((PyObject*)(self->names))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(self->names)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(self->names)))); } while (0); > self->names = new_names; > > > do { if ( --((PyObject*)(self->fields))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(self->fields)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(self->fields)))); } while (0); > self->fields = new_fields; > > return 0; >} > >static PyGetSetDef arraydescr_getsets[] = { > {"subdtype", > (getter)arraydescr_subdescr_get, > ((void *)0), ((void *)0), ((void *)0)}, > {"descr", > (getter)arraydescr_protocol_descr_get, > ((void *)0), ((void *)0), ((void *)0)}, > {"str", > (getter)arraydescr_protocol_typestr_get, > ((void *)0), ((void *)0), ((void *)0)}, > {"name", > (getter)arraydescr_typename_get, > ((void *)0), ((void *)0), ((void *)0)}, > {"base", > (getter)arraydescr_base_get, > ((void *)0), ((void *)0), ((void *)0)}, > {"shape", > (getter)arraydescr_shape_get, > ((void *)0), ((void *)0), ((void *)0)}, > {"isbuiltin", > (getter)arraydescr_isbuiltin_get, > ((void *)0), ((void *)0), ((void *)0)}, > {"isnative", > (getter)arraydescr_isnative_get, > ((void *)0), ((void *)0), ((void *)0)}, > {"fields", > (getter)arraydescr_fields_get, > ((void *)0), ((void *)0), ((void *)0)}, > {"metadata", > (getter)arraydescr_metadata_get, > ((void *)0), ((void *)0), ((void *)0)}, > {"names", > (getter)arraydescr_names_get, > (setter)arraydescr_names_set, > ((void *)0), ((void *)0)}, > {"hasobject", > (getter)arraydescr_hasobject_get, > ((void *)0), ((void *)0), ((void *)0)}, > {((void *)0), ((void *)0), ((void *)0), ((void *)0), ((void *)0)}, >}; > >static int >_invalid_metadata_check(PyObject *metadata) >{ > PyObject *res; > > > res = PyDict_GetItemString(metadata, "__frequency__"); > if (res == ((void *)0)) { > return 0; > } > else { > PyErr_SetString(PyExc_ValueError, > "cannot set " "__frequency__" "in dtype metadata"); > return 1; > } >} > >static PyObject * >arraydescr_new(PyTypeObject *(__NPY_UNUSED_TAGGEDsubtype) __attribute__ ((__unused__)), PyObject *args, PyObject *kwds) >{ > PyObject *odescr, *ometadata=((void *)0); > PyArray_Descr *descr, *conv; > npy_bool align = 0; > npy_bool copy = 0; > npy_bool copied = 0; > static char *kwlist[] = {"dtype", "align", "copy", "metadata", ((void *)0)}; > > if (!_PyArg_ParseTupleAndKeywords_SizeT(args, kwds, "O|O&O&O!", kwlist, > &odescr, PyArray_BoolConverter, &align, > PyArray_BoolConverter, ©, > &PyDict_Type, &ometadata)) { > return ((void *)0); > } > > if ((ometadata != ((void *)0)) && (_invalid_metadata_check(ometadata))) { > return ((void *)0); > } > if (align) { > if (!PyArray_DescrAlignConverter(odescr, &conv)) { > return ((void *)0); > } > } > else if (!PyArray_DescrConverter(odescr, &conv)) { > return ((void *)0); > } > > if (copy && conv->fields == (&_Py_NoneStruct)) { > descr = PyArray_DescrNew(conv); > do { if ( --((PyObject*)(conv))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(conv)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(conv)))); } while (0); > conv = descr; > copied = 1; > } > > if ((ometadata != ((void *)0))) { > > > > > if (!copied) { > descr = PyArray_DescrNew(conv); > do { if ( --((PyObject*)(conv))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(conv)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(conv)))); } while (0); > conv = descr; > } > if ((conv->metadata != ((void *)0))) { > > > > > > odescr = conv->metadata; > conv->metadata = PyDict_Copy(odescr); > > do { if ( --((PyObject*)(odescr))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(odescr)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(odescr)))); } while (0); > > > > > > if (PyDict_Merge(conv->metadata, ometadata, 0) != 0) { > do { if ( --((PyObject*)(conv))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(conv)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(conv)))); } while (0); > return ((void *)0); > } > } > else { > > conv->metadata = PyDict_Copy(ometadata); > } > } > > return (PyObject *)conv; >} > > > > > >static PyObject * >_get_pickleabletype_from_metadata(PyObject *metadata) >{ > PyObject *newdict; > PyObject *newtup, *dt_tuple; > PyObject *cobj; > > newdict = PyDict_Copy(metadata); > PyDict_DelItemString(newdict, "__frequency__"); > newtup = PyTuple_New(2); > (((PyTupleObject *)(newtup))->ob_item[0] = newdict); > > cobj = PyDict_GetItemString(metadata, "__frequency__"); > dt_tuple = _get_datetime_tuple_from_cobj(cobj); > > (((PyTupleObject *)(newtup))->ob_item[1] = dt_tuple); > > return newtup; >} > > > >static PyObject * >arraydescr_reduce(PyArray_Descr *self, PyObject *(__NPY_UNUSED_TAGGEDargs) __attribute__ ((__unused__))) >{ > > > > > > const int version = 4; > PyObject *ret, *mod, *obj; > PyObject *state; > char endian; > int elsize, alignment; > > ret = PyTuple_New(3); > if (ret == ((void *)0)) { > return ((void *)0); > } > mod = PyImport_ImportModule("numpy.core.multiarray"); > if (mod == ((void *)0)) { > do { if ( --((PyObject*)(ret))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(ret)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(ret)))); } while (0); > return ((void *)0); > } > obj = PyObject_GetAttrString(mod, "dtype"); > do { if ( --((PyObject*)(mod))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(mod)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(mod)))); } while (0); > if (obj == ((void *)0)) { > do { if ( --((PyObject*)(ret))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(ret)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(ret)))); } while (0); > return ((void *)0); > } > (((PyTupleObject *)(ret))->ob_item[0] = obj); > if ((((self->type_num) >= NPY_USERDEF) && ((self->type_num) < NPY_USERDEF+ NPY_NUMUSERTYPES)) > || ((self->type_num == NPY_VOID > && self->typeobj != &PyVoidArrType_Type))) { > obj = (PyObject *)self->typeobj; > ( ((PyObject*)(obj))->ob_refcnt++); > } > else { > elsize = self->elsize; > if (self->type_num == NPY_UNICODE) { > elsize >>= 2; > } > obj = PyString_FromFormat("%c%d",self->kind, elsize); > } > (((PyTupleObject *)(ret))->ob_item[1] = _Py_BuildValue_SizeT("(Nii)", obj, 0, 1)); > > > > > > endian = self->byteorder; > if (endian == '=') { > endian = '<'; > if (!((endian) != '>')) { > endian = '>'; > } > } > if (self->metadata) { > state = PyTuple_New(9); > (((PyTupleObject *)(state))->ob_item[0] = PyInt_FromLong(version)); > if ((((((PyArray_Descr*)(self))->type_num) >=NPY_DATETIME) && ((((PyArray_Descr*)(self))->type_num) <=NPY_TIMEDELTA))) { > PyObject *newobj; > > > > > > newobj = _get_pickleabletype_from_metadata(self->metadata); > (((PyTupleObject *)(state))->ob_item[8] = newobj); > } > else { > ( ((PyObject*)(self->metadata))->ob_refcnt++); > (((PyTupleObject *)(state))->ob_item[8] = self->metadata); > } > } > else { > state = PyTuple_New(8); > (((PyTupleObject *)(state))->ob_item[0] = PyInt_FromLong(3)); > } > > (((PyTupleObject *)(state))->ob_item[1] = PyString_FromFormat("%c", endian)); > (((PyTupleObject *)(state))->ob_item[2] = arraydescr_subdescr_get(self)); > if (self->names) { > ( ((PyObject*)(self->names))->ob_refcnt++); > ( ((PyObject*)(self->fields))->ob_refcnt++); > (((PyTupleObject *)(state))->ob_item[3] = self->names); > (((PyTupleObject *)(state))->ob_item[4] = self->fields); > } > else { > (((PyTupleObject *)(state))->ob_item[3] = (&_Py_NoneStruct)); > (((PyTupleObject *)(state))->ob_item[4] = (&_Py_NoneStruct)); > ( ((PyObject*)((&_Py_NoneStruct)))->ob_refcnt++); > ( ((PyObject*)((&_Py_NoneStruct)))->ob_refcnt++); > } > > > if (((((self->type_num) >=NPY_STRING) && ((self->type_num) <=NPY_VOID)) || (((self->type_num) >= NPY_USERDEF) && ((self->type_num) < NPY_USERDEF+ NPY_NUMUSERTYPES)))) { > elsize = self->elsize; > alignment = self->alignment; > } > else { > elsize = -1; > alignment = -1; > } > (((PyTupleObject *)(state))->ob_item[5] = PyInt_FromLong(elsize)); > (((PyTupleObject *)(state))->ob_item[6] = PyInt_FromLong(alignment)); > (((PyTupleObject *)(state))->ob_item[7] = PyInt_FromLong(self->flags)); > > (((PyTupleObject *)(ret))->ob_item[2] = state); > return ret; >} > > > > > >static int >_descr_find_object(PyArray_Descr *self) >{ > if (self->flags > || self->type_num == NPY_OBJECT > || self->kind == 'O') { > return (0x02 | 0x20 | 0x04 | 0x01 | 0x08 | 0x10); > } > if ((((PyArray_Descr *)(self))->names != ((void *)0))) { > PyObject *key, *value, *title = ((void *)0); > PyArray_Descr *new; > int offset; > Py_ssize_t pos = 0; > > while (PyDict_Next(self->fields, &pos, &key, &value)) { > if (((((PyVarObject*)((value)))->ob_size)==3) && ((((PyTupleObject *)((value)))->ob_item[2]) == (key))) { > continue; > } > if (!_PyArg_ParseTuple_SizeT(value, "Oi|O", &new, &offset, &title)) { > PyErr_Clear(); > return 0; > } > if (_descr_find_object(new)) { > new->flags = (0x02 | 0x20 | 0x04 | 0x01 | 0x08 | 0x10); > return (0x02 | 0x20 | 0x04 | 0x01 | 0x08 | 0x10); > } > } > } > return 0; >} > > > > > >static PyObject * >arraydescr_setstate(PyArray_Descr *self, PyObject *args) >{ > int elsize = -1, alignment = -1; > int version = 4; > > > > char endian; > > PyObject *subarray, *fields, *names = ((void *)0), *metadata=((void *)0); > int incref_names = 1; > int dtypeflags = 0; > > if (self->fields == (&_Py_NoneStruct)) { > ( ((PyObject*)((&_Py_NoneStruct)))->ob_refcnt++); > return (&_Py_NoneStruct); > } > if ((((PyVarObject*)(args))->ob_size) != 1 > || !(((((((PyObject*)((((PyTupleObject *)(args))->ob_item[0])))->ob_type))->tp_flags & ((1L<<26))) != 0))) { > _PyErr_BadInternalCall("numpy/core/src/multiarray/descriptor.c", 2236); > return ((void *)0); > } > switch ((((PyVarObject*)((((PyTupleObject *)(args))->ob_item[0])))->ob_size)) { > case 9: > > > > > > if (!_PyArg_ParseTuple_SizeT(args, "(icOOOiiiO)", &version, &endian, > &subarray, &names, &fields, &elsize, > &alignment, &dtypeflags, &metadata)) { > return ((void *)0); > > } > break; > case 8: > > > > > > if (!_PyArg_ParseTuple_SizeT(args, "(icOOOiii)", &version, &endian, > &subarray, &names, &fields, &elsize, > &alignment, &dtypeflags)) { > return ((void *)0); > > } > break; > case 7: > > > > > > if (!_PyArg_ParseTuple_SizeT(args, "(icOOOii)", &version, &endian, > &subarray, &names, &fields, &elsize, > &alignment)) { > return ((void *)0); > > } > break; > case 6: > > > > > > if (!_PyArg_ParseTuple_SizeT(args, "(icOOii)", &version, > &endian, &subarray, &fields, > &elsize, &alignment)) { > PyErr_Clear(); > > } > break; > case 5: > version = 0; > > > > > > if (!_PyArg_ParseTuple_SizeT(args, "(cOOii)", > &endian, &subarray, &fields, &elsize, > &alignment)) { > > return ((void *)0); > } > break; > default: > > if ((((PyVarObject*)((((PyTupleObject *)(args))->ob_item[0])))->ob_size) > 5) { > version = PyInt_AsLong((((PyTupleObject *)(args))->ob_item[0])); > } > else { > version = -1; > } > } > > > > > > if (version < 0 || version > 4) { > PyErr_Format(PyExc_ValueError, > "can't handle version %d of numpy.dtype pickle", > version); > return ((void *)0); > } > > if (version == 1 || version == 0) { > if (fields != (&_Py_NoneStruct)) { > PyObject *key, *list; > key = PyInt_FromLong(-1); > list = PyDict_GetItem(fields, key); > if (!list) { > return ((void *)0); > } > ( ((PyObject*)(list))->ob_refcnt++); > names = list; > PyDict_DelItem(fields, key); > incref_names = 0; > } > else { > names = (&_Py_NoneStruct); > } > } > > > if ((fields == (&_Py_NoneStruct) && names != (&_Py_NoneStruct)) || > (names == (&_Py_NoneStruct) && fields != (&_Py_NoneStruct))) { > PyErr_Format(PyExc_ValueError, > "inconsistent fields and names"); > return ((void *)0); > } > > if (endian != '|' && ((endian) != '>')) { > endian = '='; > } > self->byteorder = endian; > if (self->subarray) { > do { if ((self->subarray->base) == ((void *)0)) ; else do { if ( --((PyObject*)(self->subarray->base))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(self->subarray->base)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(self->subarray->base)))); } while (0); } while (0); > do { if ((self->subarray->shape) == ((void *)0)) ; else do { if ( --((PyObject*)(self->subarray->shape))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(self->subarray->shape)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(self->subarray->shape)))); } while (0); } while (0); > PyMem_Free(self->subarray); > } > self->subarray = ((void *)0); > > if (subarray != (&_Py_NoneStruct)) { > PyObject *subarray_shape; > > > > > > if (!(((((((PyObject*)(subarray))->ob_type))->tp_flags & ((1L<<26))) != 0) && > PyTuple_Size(subarray) == 2 && > (((PyObject*)((((PyTupleObject *)(subarray))->ob_item[0])))->ob_type==&PyArrayDescr_Type))) { > PyErr_Format(PyExc_ValueError, > "incorrect subarray in __setstate__"); > return ((void *)0); > } > subarray_shape = (((PyTupleObject *)(subarray))->ob_item[1]); > if (PyNumber_Check(subarray_shape)) { > PyObject *tmp; > > > > tmp = PyNumber_Int(subarray_shape); > > if (tmp == ((void *)0)) { > return ((void *)0); > } > subarray_shape = _Py_BuildValue_SizeT("(O)", tmp); > do { if ( --((PyObject*)(tmp))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(tmp)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(tmp)))); } while (0); > if (subarray_shape == ((void *)0)) { > return ((void *)0); > } > } > else if (_is_tuple_of_integers(subarray_shape)) { > ( ((PyObject*)(subarray_shape))->ob_refcnt++); > } > else { > PyErr_Format(PyExc_ValueError, > "incorrect subarray shape in __setstate__"); > return ((void *)0); > } > > self->subarray = PyMem_Malloc(sizeof(PyArray_ArrayDescr)); > self->subarray->base = (PyArray_Descr *)(((PyTupleObject *)(subarray))->ob_item[0]); > ( ((PyObject*)(self->subarray->base))->ob_refcnt++); > self->subarray->shape = subarray_shape; > } > > if (fields != (&_Py_NoneStruct)) { > do { if ((self->fields) == ((void *)0)) ; else do { if ( --((PyObject*)(self->fields))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(self->fields)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(self->fields)))); } while (0); } while (0); > self->fields = fields; > ( ((PyObject*)(fields))->ob_refcnt++); > do { if ((self->names) == ((void *)0)) ; else do { if ( --((PyObject*)(self->names))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(self->names)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(self->names)))); } while (0); } while (0); > self->names = names; > if (incref_names) { > ( ((PyObject*)(names))->ob_refcnt++); > } > } > > if (((((self->type_num) >=NPY_STRING) && ((self->type_num) <=NPY_VOID)) || (((self->type_num) >= NPY_USERDEF) && ((self->type_num) < NPY_USERDEF+ NPY_NUMUSERTYPES)))) { > self->elsize = elsize; > self->alignment = alignment; > } > > self->flags = dtypeflags; > if (version < 3) { > self->flags = _descr_find_object(self); > } > > do { if ((self->metadata) == ((void *)0)) ; else do { if ( --((PyObject*)(self->metadata))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(self->metadata)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(self->metadata)))); } while (0); } while (0); > if ((((((PyArray_Descr*)(self))->type_num) >=NPY_DATETIME) && ((((PyArray_Descr*)(self))->type_num) <=NPY_TIMEDELTA)) > && (metadata != (&_Py_NoneStruct)) > && (metadata != ((void *)0))) { > PyObject *cobj; > self->metadata = (((PyTupleObject *)(metadata))->ob_item[0]); > ( ((PyObject*)(self->metadata))->ob_refcnt++); > cobj = _convert_datetime_tuple_to_cobj((((PyTupleObject *)(metadata))->ob_item[1])); > PyDict_SetItemString(self->metadata, "__frequency__", cobj); > do { if ( --((PyObject*)(cobj))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(cobj)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(cobj)))); } while (0); > } > else { > > > > > if (metadata == (&_Py_NoneStruct)) { > metadata = ((void *)0); > } > self->metadata = metadata; > do { if ((metadata) == ((void *)0)) ; else ( ((PyObject*)(metadata))->ob_refcnt++); } while (0); > } > > ( ((PyObject*)((&_Py_NoneStruct)))->ob_refcnt++); > return (&_Py_NoneStruct); >} ># 2470 "numpy/core/src/multiarray/descriptor.c" >static int >PyArray_DescrAlignConverter(PyObject *obj, PyArray_Descr **at) >{ > if (((((((PyObject*)(obj))->ob_type))->tp_flags & ((1L<<29))) != 0)) { > *at = _convert_from_dict(obj, 1); > } > else if (((((((PyObject*)(obj))->ob_type))->tp_flags & ((1L<<27))) != 0)) { > *at = _convert_from_commastring(obj, 1); > } > else if (((((((PyObject*)(obj))->ob_type))->tp_flags & ((1L<<28))) != 0)) { > PyObject *tmp; > tmp = PyUnicodeUCS4_AsASCIIString(obj); > *at = _convert_from_commastring(tmp, 1); > do { if ( --((PyObject*)(tmp))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(tmp)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(tmp)))); } while (0); > } > else if (((((((PyObject*)(obj))->ob_type))->tp_flags & ((1L<<25))) != 0)) { > *at = _convert_from_array_descr(obj, 1); > } > else { > return PyArray_DescrConverter(obj, at); > } > if (*at == ((void *)0)) { > if (!PyErr_Occurred()) { > PyErr_SetString(PyExc_ValueError, > "data-type-descriptor not understood"); > } > return 0; > } > return 1; >} > > > > > > >static int >PyArray_DescrAlignConverter2(PyObject *obj, PyArray_Descr **at) >{ > if (((((((PyObject*)(obj))->ob_type))->tp_flags & ((1L<<29))) != 0)) { > *at = _convert_from_dict(obj, 1); > } > else if (((((((PyObject*)(obj))->ob_type))->tp_flags & ((1L<<27))) != 0)) { > *at = _convert_from_commastring(obj, 1); > } > else if (((((((PyObject*)(obj))->ob_type))->tp_flags & ((1L<<28))) != 0)) { > PyObject *tmp; > tmp = PyUnicodeUCS4_AsASCIIString(obj); > *at = _convert_from_commastring(tmp, 1); > do { if ( --((PyObject*)(tmp))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(tmp)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(tmp)))); } while (0); > } > else if (((((((PyObject*)(obj))->ob_type))->tp_flags & ((1L<<25))) != 0)) { > *at = _convert_from_array_descr(obj, 1); > } > else { > return PyArray_DescrConverter2(obj, at); > } > if (*at == ((void *)0)) { > if (!PyErr_Occurred()) { > PyErr_SetString(PyExc_ValueError, > "data-type-descriptor not understood"); > } > return 0; > } > return 1; >} ># 2557 "numpy/core/src/multiarray/descriptor.c" >static PyArray_Descr * >PyArray_DescrNewByteorder(PyArray_Descr *self, char newendian) >{ > PyArray_Descr *new; > char endian; > > new = PyArray_DescrNew(self); > endian = new->byteorder; > if (endian != '|') { > if (newendian == 's') { > > if ((endian) != '>') { > endian = '>'; > } > else { > endian = '<'; > } > new->byteorder = endian; > } > else if (newendian != '|') { > new->byteorder = newendian; > } > } > if (new->names) { > PyObject *newfields; > PyObject *key, *value; > PyObject *newvalue; > PyObject *old; > PyArray_Descr *newdescr; > Py_ssize_t pos = 0; > int len, i; > > newfields = PyDict_New(); > > while (PyDict_Next(self->fields, &pos, &key, &value)) { > if (((((PyVarObject*)((value)))->ob_size)==3) && ((((PyTupleObject *)((value)))->ob_item[2]) == (key))) { > continue; > } > if (!((((((PyObject*)(key))->ob_type))->tp_flags & ((1L<<27))) != 0) || !((((((PyObject*)(value))->ob_type))->tp_flags & ((1L<<26))) != 0) || > ((len=(((PyVarObject*)(value))->ob_size)) < 2)) { > continue; > } > old = (((PyTupleObject *)(value))->ob_item[0]); > if (!(((PyObject*)(old))->ob_type==&PyArrayDescr_Type)) { > continue; > } > newdescr = PyArray_DescrNewByteorder( > (PyArray_Descr *)old, newendian); > if (newdescr == ((void *)0)) { > do { if ( --((PyObject*)(newfields))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(newfields)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(newfields)))); } while (0); do { if ( --((PyObject*)(new))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(new)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(new)))); } while (0); > return ((void *)0); > } > newvalue = PyTuple_New(len); > (((PyTupleObject *)(newvalue))->ob_item[0] = (PyObject *)newdescr); > for (i = 1; i < len; i++) { > old = (((PyTupleObject *)(value))->ob_item[i]); > ( ((PyObject*)(old))->ob_refcnt++); > (((PyTupleObject *)(newvalue))->ob_item[i] = old); > } > PyDict_SetItem(newfields, key, newvalue); > do { if ( --((PyObject*)(newvalue))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(newvalue)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(newvalue)))); } while (0); > } > do { if ( --((PyObject*)(new->fields))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(new->fields)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(new->fields)))); } while (0); > new->fields = newfields; > } > if (new->subarray) { > do { if ( --((PyObject*)(new->subarray->base))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(new->subarray->base)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(new->subarray->base)))); } while (0); > new->subarray->base = PyArray_DescrNewByteorder( > self->subarray->base, newendian); > } > return new; >} > > >static PyObject * >arraydescr_newbyteorder(PyArray_Descr *self, PyObject *args) >{ > char endian='s'; > > if (!_PyArg_ParseTuple_SizeT(args, "|O&", PyArray_ByteorderConverter, > &endian)) { > return ((void *)0); > } > return (PyObject *)PyArray_DescrNewByteorder(self, endian); >} > >static PyMethodDef arraydescr_methods[] = { > > {"__reduce__", > (PyCFunction)arraydescr_reduce, > 0x0001, ((void *)0)}, > {"__setstate__", > (PyCFunction)arraydescr_setstate, > 0x0001, ((void *)0)}, > {"newbyteorder", > (PyCFunction)arraydescr_newbyteorder, > 0x0001, ((void *)0)}, > {((void *)0), ((void *)0), 0, ((void *)0)} >}; > >static PyObject * >arraydescr_str(PyArray_Descr *self) >{ > PyObject *sub; > > if (self->names) { > PyObject *lst; > lst = arraydescr_protocol_descr_get(self); > if (!lst) { > sub = PyString_FromString("<err>"); > PyErr_Clear(); > } > else { > sub = PyObject_Str(lst); > } > do { if ((lst) == ((void *)0)) ; else do { if ( --((PyObject*)(lst))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(lst)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(lst)))); } while (0); } while (0); > if (self->type_num != NPY_VOID) { > PyObject *p, *t; > t=PyString_FromString("'"); > p = arraydescr_protocol_typestr_get(self); > PyString_Concat(&p, t); > PyString_ConcatAndDel(&t, p); > p = PyString_FromString("("); > PyString_ConcatAndDel(&p, t); > PyString_ConcatAndDel(&p, PyString_FromString(", ")); > PyString_ConcatAndDel(&p, sub); > PyString_ConcatAndDel(&p, PyString_FromString(")")); > sub = p; > } > } > else if (self->subarray) { > PyObject *p; > PyObject *t = PyString_FromString("("); > PyObject *sh; > p = arraydescr_str(self->subarray->base); > if (!self->subarray->base->names && !self->subarray->base->subarray) { > PyObject *tmp=PyString_FromString("'"); > PyString_Concat(&p, tmp); > PyString_ConcatAndDel(&tmp, p); > p = tmp; > } > PyString_ConcatAndDel(&t, p); > PyString_ConcatAndDel(&t, PyString_FromString(",")); > > > > > if (!((((((PyObject*)(self->subarray->shape))->ob_type))->tp_flags & ((1L<<26))) != 0)) { > sh = _Py_BuildValue_SizeT("(O)", self->subarray->shape); > } > else { > sh = self->subarray->shape; > ( ((PyObject*)(sh))->ob_refcnt++); > } > PyString_ConcatAndDel(&t, PyObject_Str(sh)); > do { if ( --((PyObject*)(sh))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(sh)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(sh)))); } while (0); > PyString_ConcatAndDel(&t, PyString_FromString(")")); > sub = t; > } > else if ((((((PyArray_Descr*)(self))->type_num) >=NPY_STRING) && ((((PyArray_Descr*)(self))->type_num) <=NPY_VOID)) || !((self->byteorder) != '>')) { > sub = arraydescr_protocol_typestr_get(self); > } > else { > sub = arraydescr_typename_get(self); > } > return sub; >} > >static PyObject * >arraydescr_repr(PyArray_Descr *self) >{ > PyObject *sub, *s; > s = PyString_FromString("dtype("); > sub = arraydescr_str(self); > if (sub == ((void *)0)) { > return sub; > } > if (!self->names && !self->subarray) { > PyObject *t=PyString_FromString("'"); > PyString_Concat(&sub, t); > PyString_ConcatAndDel(&t, sub); > sub = t; > } > PyString_ConcatAndDel(&s, sub); > sub = PyString_FromString(")"); > PyString_ConcatAndDel(&s, sub); > return s; >} > >static PyObject * >arraydescr_richcompare(PyArray_Descr *self, PyObject *other, int cmp_op) >{ > PyArray_Descr *new = ((void *)0); > PyObject *result = (&_Py_NotImplementedStruct); > if (!(((PyObject*)(other))->ob_type==&PyArrayDescr_Type)) { > if (PyArray_DescrConverter(other, &new) == 0) { > return ((void *)0); > } > } > else { > new = (PyArray_Descr *)other; > ( ((PyObject*)(new))->ob_refcnt++); > } > switch (cmp_op) { > case 0: > if (!PyArray_EquivTypes(self, new) && PyArray_CanCastTo(self, new)) { > result = ((PyObject *) &_Py_TrueStruct); > } > else { > result = ((PyObject *) &_Py_ZeroStruct); > } > break; > case 1: > if (PyArray_CanCastTo(self, new)) { > result = ((PyObject *) &_Py_TrueStruct); > } > else { > result = ((PyObject *) &_Py_ZeroStruct); > } > break; > case 2: > if (PyArray_EquivTypes(self, new)) { > result = ((PyObject *) &_Py_TrueStruct); > } > else { > result = ((PyObject *) &_Py_ZeroStruct); > } > break; > case 3: > if (PyArray_EquivTypes(self, new)) > result = ((PyObject *) &_Py_ZeroStruct); > else > result = ((PyObject *) &_Py_TrueStruct); > break; > case 4: > if (!PyArray_EquivTypes(self, new) && PyArray_CanCastTo(new, self)) { > result = ((PyObject *) &_Py_TrueStruct); > } > else { > result = ((PyObject *) &_Py_ZeroStruct); > } > break; > case 5: > if (PyArray_CanCastTo(new, self)) { > result = ((PyObject *) &_Py_TrueStruct); > } > else { > result = ((PyObject *) &_Py_ZeroStruct); > } > break; > default: > result = (&_Py_NotImplementedStruct); > } > > do { if ((new) == ((void *)0)) ; else do { if ( --((PyObject*)(new))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(new)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(new)))); } while (0); } while (0); > ( ((PyObject*)(result))->ob_refcnt++); > return result; >} > > > > > >static Py_ssize_t >descr_length(PyObject *self0) >{ > PyArray_Descr *self = (PyArray_Descr *)self0; > > if (self->names) { > return (((PyVarObject*)(self->names))->ob_size); > } > else { > return 0; > } >} > >static PyObject * >descr_repeat(PyObject *self, Py_ssize_t length) >{ > PyObject *tup; > PyArray_Descr *new; > if (length < 0) { > return PyErr_Format(PyExc_ValueError, > "Array length must be >= 0, not %""l" "d", length); > } > tup = _Py_BuildValue_SizeT("O" "n", self, length); > if (tup == ((void *)0)) { > return ((void *)0); > } > PyArray_DescrConverter(tup, &new); > do { if ( --((PyObject*)(tup))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(tup)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(tup)))); } while (0); > return (PyObject *)new; >} > >static PyObject * >descr_subscript(PyArray_Descr *self, PyObject *op) >{ > PyObject *retval; > > if (!self->names) { > PyObject *astr = arraydescr_str(self); > > > > > > PyErr_Format(PyExc_KeyError, > "There are no fields in dtype %s.", PyString_AsString(astr)); > do { if ( --((PyObject*)(astr))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(astr)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(astr)))); } while (0); > return ((void *)0); > } > > > > if (((((((PyObject*)(op))->ob_type))->tp_flags & ((1L<<27))) != 0) || ((((((PyObject*)(op))->ob_type))->tp_flags & ((1L<<28))) != 0)) { > > PyObject *obj = PyDict_GetItem(self->fields, op); > PyObject *descr; > PyObject *s; > > if (obj == ((void *)0)) { > if (((((((PyObject*)(op))->ob_type))->tp_flags & ((1L<<28))) != 0)) { > s = PyUnicodeUCS4_AsUnicodeEscapeString(op); > } > else { > s = op; > } > > PyErr_Format(PyExc_KeyError, > "Field named \'%s\' not found.", PyString_AsString(s)); > if (s != op) { > do { if ( --((PyObject*)(s))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(s)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(s)))); } while (0); > } > return ((void *)0); > } > descr = (((PyTupleObject *)(obj))->ob_item[0]); > ( ((PyObject*)(descr))->ob_refcnt++); > retval = descr; > } > else if (((((op)->ob_type)->tp_flags & ((1L<<23))) != 0)) { > PyObject *name; > int size = (((PyVarObject*)(self->names))->ob_size); > int value = PyArray_PyIntAsInt(op); > > if (PyErr_Occurred()) { > return ((void *)0); > } > if (value < 0) { > value += size; > } > if (value < 0 || value >= size) { > PyErr_Format(PyExc_IndexError, > "Field index out of range."); > return ((void *)0); > } > name = (((PyTupleObject *)(self->names))->ob_item[value]); > retval = descr_subscript(self, name); > } > else { > PyErr_SetString(PyExc_ValueError, > "Field key must be an integer, string, or unicode."); > return ((void *)0); > } > return retval; >} > >static PySequenceMethods descr_as_sequence = { > descr_length, > (binaryfunc)((void *)0), > descr_repeat, > ((void *)0), ((void *)0), > ((void *)0), > ((void *)0), > 0, > 0, > 0, >}; > >static PyMappingMethods descr_as_mapping = { > descr_length, > (binaryfunc)descr_subscript, > (objobjargproc)((void *)0), >}; > > > >static PyTypeObject PyArrayDescr_Type = { > > > > 1, ((void *)0), > 0, > > "numpy.dtype", > sizeof(PyArray_Descr), > 0, > > (destructor)arraydescr_dealloc, > 0, > 0, > 0, > > > > 0, > > (reprfunc)arraydescr_repr, > 0, > &descr_as_sequence, > &descr_as_mapping, > 0, > 0, > (reprfunc)arraydescr_str, > 0, > 0, > 0, > ( (1L<<0) | (1L<<1) | (1L<<3) | (1L<<5) | (1L<<6) | (1L<<7) | (1L<<8) | 0 | (1L<<17) | 0), > 0, > 0, > 0, > (richcmpfunc)arraydescr_richcompare, > 0, > 0, > 0, > arraydescr_methods, > arraydescr_members, > arraydescr_getsets, > 0, > 0, > 0, > 0, > 0, > 0, > 0, > arraydescr_new, > 0, > 0, > 0, > 0, > 0, > 0, > 0, > 0, > > 0, > >}; ># 20 "numpy/core/src/multiarray/multiarraymodule_onefile.c" 2 ># 1 "numpy/core/src/multiarray/flagsobject.c" 1 ># 18 "numpy/core/src/multiarray/flagsobject.c" >static int >_IsContiguous(PyArrayObject *ap); > >static int >_IsFortranContiguous(PyArrayObject *ap); > > > > > >static PyObject * >PyArray_NewFlagsObject(PyObject *obj) >{ > PyObject *flagobj; > int flags; > if (obj == ((void *)0)) { > flags = 0x0001 | 0x0004 | 0x0002 | 0x0100; > } > else { > flags = (((PyArrayObject *)(obj))->flags); > } > flagobj = PyArrayFlags_Type.tp_alloc(&PyArrayFlags_Type, 0); > if (flagobj == ((void *)0)) { > return ((void *)0); > } > do { if ((obj) == ((void *)0)) ; else ( ((PyObject*)(obj))->ob_refcnt++); } while (0); > ((PyArrayFlagsObject *)flagobj)->arr = obj; > ((PyArrayFlagsObject *)flagobj)->flags = flags; > return flagobj; >} > > > > >static void >PyArray_UpdateFlags(PyArrayObject *ret, int flagmask) >{ > > if (flagmask & 0x0002) { > if (_IsFortranContiguous(ret)) { > ret->flags |= 0x0002; > if (ret->nd > 1) { > ret->flags &= ~0x0001; > } > } > else { > ret->flags &= ~0x0002; > } > } > if (flagmask & 0x0001) { > if (_IsContiguous(ret)) { > ret->flags |= 0x0001; > if (ret->nd > 1) { > ret->flags &= ~0x0002; > } > } > else { > ret->flags &= ~0x0001; > } > } > if (flagmask & 0x0100) { > if (_IsAligned(ret)) { > ret->flags |= 0x0100; > } > else { > ret->flags &= ~0x0100; > } > } > > > > > if (flagmask & 0x0400) { > if (_IsWriteable(ret)) { > ret->flags |= 0x0400; > } > else { > ret->flags &= ~0x0400; > } > } > return; >} > > > > > > > >static int >_IsContiguous(PyArrayObject *ap) >{ > npy_intp sd; > npy_intp dim; > int i; > > if (ap->nd == 0) { > return 1; > } > sd = ap->descr->elsize; > if (ap->nd == 1) { > return ap->dimensions[0] == 1 || sd == ap->strides[0]; > } > for (i = ap->nd - 1; i >= 0; --i) { > dim = ap->dimensions[i]; > > if (dim == 0) { > return 1; > } > if (ap->strides[i] != sd) { > return 0; > } > sd *= dim; > } > return 1; >} > > > >static int >_IsFortranContiguous(PyArrayObject *ap) >{ > npy_intp sd; > npy_intp dim; > int i; > > if (ap->nd == 0) { > return 1; > } > sd = ap->descr->elsize; > if (ap->nd == 1) { > return ap->dimensions[0] == 1 || sd == ap->strides[0]; > } > for (i = 0; i < ap->nd; ++i) { > dim = ap->dimensions[i]; > > if (dim == 0) { > return 1; > } > if (ap->strides[i] != sd) { > return 0; > } > sd *= dim; > } > return 1; >} > >static void >arrayflags_dealloc(PyArrayFlagsObject *self) >{ > do { if ((self->arr) == ((void *)0)) ; else do { if ( --((PyObject*)(self->arr))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(self->arr)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(self->arr)))); } while (0); } while (0); > (((PyObject*)(self))->ob_type)->tp_free((PyObject *)self); >} ># 183 "numpy/core/src/multiarray/flagsobject.c" >static PyObject * arrayflags_contiguous_get(PyArrayFlagsObject *self) { PyObject *item; item = ((self->flags & (0x0001)) == (0x0001)) ? ((PyObject *) &_Py_TrueStruct) : ((PyObject *) &_Py_ZeroStruct); ( ((PyObject*)(item))->ob_refcnt++); return item; } >static PyObject * arrayflags_fortran_get(PyArrayFlagsObject *self) { PyObject *item; item = ((self->flags & (0x0002)) == (0x0002)) ? ((PyObject *) &_Py_TrueStruct) : ((PyObject *) &_Py_ZeroStruct); ( ((PyObject*)(item))->ob_refcnt++); return item; } >static PyObject * arrayflags_updateifcopy_get(PyArrayFlagsObject *self) { PyObject *item; item = ((self->flags & (0x1000)) == (0x1000)) ? ((PyObject *) &_Py_TrueStruct) : ((PyObject *) &_Py_ZeroStruct); ( ((PyObject*)(item))->ob_refcnt++); return item; } >static PyObject * arrayflags_owndata_get(PyArrayFlagsObject *self) { PyObject *item; item = ((self->flags & (0x0004)) == (0x0004)) ? ((PyObject *) &_Py_TrueStruct) : ((PyObject *) &_Py_ZeroStruct); ( ((PyObject*)(item))->ob_refcnt++); return item; } >static PyObject * arrayflags_aligned_get(PyArrayFlagsObject *self) { PyObject *item; item = ((self->flags & (0x0100)) == (0x0100)) ? ((PyObject *) &_Py_TrueStruct) : ((PyObject *) &_Py_ZeroStruct); ( ((PyObject*)(item))->ob_refcnt++); return item; } >static PyObject * arrayflags_writeable_get(PyArrayFlagsObject *self) { PyObject *item; item = ((self->flags & (0x0400)) == (0x0400)) ? ((PyObject *) &_Py_TrueStruct) : ((PyObject *) &_Py_ZeroStruct); ( ((PyObject*)(item))->ob_refcnt++); return item; } > >static PyObject * arrayflags_behaved_get(PyArrayFlagsObject *self) { PyObject *item; item = ((self->flags & (0x0100|0x0400)) == (0x0100|0x0400)) ? ((PyObject *) &_Py_TrueStruct) : ((PyObject *) &_Py_ZeroStruct); ( ((PyObject*)(item))->ob_refcnt++); return item; } >static PyObject * arrayflags_carray_get(PyArrayFlagsObject *self) { PyObject *item; item = ((self->flags & (0x0100|0x0400|0x0001)) == (0x0100|0x0400|0x0001)) ? ((PyObject *) &_Py_TrueStruct) : ((PyObject *) &_Py_ZeroStruct); ( ((PyObject*)(item))->ob_refcnt++); return item; } > >static PyObject * >arrayflags_forc_get(PyArrayFlagsObject *self) >{ > PyObject *item; > > if (((self->flags & 0x0002) == 0x0002) || > ((self->flags & 0x0001) == 0x0001)) { > item = ((PyObject *) &_Py_TrueStruct); > } > else { > item = ((PyObject *) &_Py_ZeroStruct); > } > ( ((PyObject*)(item))->ob_refcnt++); > return item; >} > >static PyObject * >arrayflags_fnc_get(PyArrayFlagsObject *self) >{ > PyObject *item; > > if (((self->flags & 0x0002) == 0x0002) && > !((self->flags & 0x0001) == 0x0001)) { > item = ((PyObject *) &_Py_TrueStruct); > } > else { > item = ((PyObject *) &_Py_ZeroStruct); > } > ( ((PyObject*)(item))->ob_refcnt++); > return item; >} > >static PyObject * >arrayflags_farray_get(PyArrayFlagsObject *self) >{ > PyObject *item; > > if (((self->flags & (0x0100|0x0400|0x0002)) == > (0x0100|0x0400|0x0002)) && > !((self->flags & 0x0001) == 0x0001)) { > item = ((PyObject *) &_Py_TrueStruct); > } > else { > item = ((PyObject *) &_Py_ZeroStruct); > } > ( ((PyObject*)(item))->ob_refcnt++); > return item; >} > >static PyObject * >arrayflags_num_get(PyArrayFlagsObject *self) >{ > return PyInt_FromLong(self->flags); >} > > >static int >arrayflags_updateifcopy_set(PyArrayFlagsObject *self, PyObject *obj) >{ > PyObject *res; > if (self->arr == ((void *)0)) { > PyErr_SetString(PyExc_ValueError, "Cannot set flags on array scalars."); > return -1; > } > res = _PyObject_CallMethod_SizeT(self->arr, "setflags", "OOO", (&_Py_NoneStruct), (&_Py_NoneStruct), > (PyObject_IsTrue(obj) ? ((PyObject *) &_Py_TrueStruct) : ((PyObject *) &_Py_ZeroStruct))); > if (res == ((void *)0)) { > return -1; > } > do { if ( --((PyObject*)(res))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(res)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(res)))); } while (0); > return 0; >} > >static int >arrayflags_aligned_set(PyArrayFlagsObject *self, PyObject *obj) >{ > PyObject *res; > if (self->arr == ((void *)0)) { > PyErr_SetString(PyExc_ValueError, "Cannot set flags on array scalars."); > return -1; > } > res = _PyObject_CallMethod_SizeT(self->arr, "setflags", "OOO", (&_Py_NoneStruct), > (PyObject_IsTrue(obj) ? ((PyObject *) &_Py_TrueStruct) : ((PyObject *) &_Py_ZeroStruct)), > (&_Py_NoneStruct)); > if (res == ((void *)0)) { > return -1; > } > do { if ( --((PyObject*)(res))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(res)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(res)))); } while (0); > return 0; >} > >static int >arrayflags_writeable_set(PyArrayFlagsObject *self, PyObject *obj) >{ > PyObject *res; > if (self->arr == ((void *)0)) { > PyErr_SetString(PyExc_ValueError, "Cannot set flags on array scalars."); > return -1; > } > res = _PyObject_CallMethod_SizeT(self->arr, "setflags", "OOO", > (PyObject_IsTrue(obj) ? ((PyObject *) &_Py_TrueStruct) : ((PyObject *) &_Py_ZeroStruct)), > (&_Py_NoneStruct), (&_Py_NoneStruct)); > if (res == ((void *)0)) { > return -1; > } > do { if ( --((PyObject*)(res))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(res)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(res)))); } while (0); > return 0; >} > > >static PyGetSetDef arrayflags_getsets[] = { > {"contiguous", > (getter)arrayflags_contiguous_get, > ((void *)0), > ((void *)0), ((void *)0)}, > {"c_contiguous", > (getter)arrayflags_contiguous_get, > ((void *)0), > ((void *)0), ((void *)0)}, > {"f_contiguous", > (getter)arrayflags_fortran_get, > ((void *)0), > ((void *)0), ((void *)0)}, > {"fortran", > (getter)arrayflags_fortran_get, > ((void *)0), > ((void *)0), ((void *)0)}, > {"updateifcopy", > (getter)arrayflags_updateifcopy_get, > (setter)arrayflags_updateifcopy_set, > ((void *)0), ((void *)0)}, > {"owndata", > (getter)arrayflags_owndata_get, > ((void *)0), > ((void *)0), ((void *)0)}, > {"aligned", > (getter)arrayflags_aligned_get, > (setter)arrayflags_aligned_set, > ((void *)0), ((void *)0)}, > {"writeable", > (getter)arrayflags_writeable_get, > (setter)arrayflags_writeable_set, > ((void *)0), ((void *)0)}, > {"fnc", > (getter)arrayflags_fnc_get, > ((void *)0), > ((void *)0), ((void *)0)}, > {"forc", > (getter)arrayflags_forc_get, > ((void *)0), > ((void *)0), ((void *)0)}, > {"behaved", > (getter)arrayflags_behaved_get, > ((void *)0), > ((void *)0), ((void *)0)}, > {"carray", > (getter)arrayflags_carray_get, > ((void *)0), > ((void *)0), ((void *)0)}, > {"farray", > (getter)arrayflags_farray_get, > ((void *)0), > ((void *)0), ((void *)0)}, > {"num", > (getter)arrayflags_num_get, > ((void *)0), > ((void *)0), ((void *)0)}, > {((void *)0), ((void *)0), ((void *)0), ((void *)0), ((void *)0)}, >}; > >static PyObject * >arrayflags_getitem(PyArrayFlagsObject *self, PyObject *ind) >{ > char *key = ((void *)0); > char buf[16]; > int n; > if (((((((PyObject*)(ind))->ob_type))->tp_flags & ((1L<<28))) != 0)) { > PyObject *tmp_str; > tmp_str = PyUnicodeUCS4_AsASCIIString(ind); > if (tmp_str == ((void *)0)) { > return ((void *)0); > } > key = (((PyStringObject *)(tmp_str))->ob_sval); > n = (((PyVarObject*)(tmp_str))->ob_size); > if (n > 16) { > do { if ( --((PyObject*)(tmp_str))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(tmp_str)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(tmp_str)))); } while (0); > goto fail; > } > memcpy(buf, key, n); > do { if ( --((PyObject*)(tmp_str))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(tmp_str)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(tmp_str)))); } while (0); > key = buf; > } > else if (((((((PyObject*)(ind))->ob_type))->tp_flags & ((1L<<27))) != 0)) { > key = (((PyStringObject *)(ind))->ob_sval); > n = (((PyVarObject*)(ind))->ob_size); > } > else { > goto fail; > } > switch(n) { > case 1: > switch(key[0]) { > case 'C': > return arrayflags_contiguous_get(self); > case 'F': > return arrayflags_fortran_get(self); > case 'W': > return arrayflags_writeable_get(self); > case 'B': > return arrayflags_behaved_get(self); > case 'O': > return arrayflags_owndata_get(self); > case 'A': > return arrayflags_aligned_get(self); > case 'U': > return arrayflags_updateifcopy_get(self); > default: > goto fail; > } > break; > case 2: > if ((__extension__ (__builtin_constant_p (n) && ((__builtin_constant_p (key) && strlen (key) < ((size_t) (n))) || (__builtin_constant_p ("CA") && strlen ("CA") < ((size_t) (n)))) ? __extension__ ({ size_t __s1_len, __s2_len; (__builtin_constant_p (key) && __builtin_constant_p ("CA") && (__s1_len = strlen (key), __s2_len = strlen ("CA"), (!((size_t)(const void *)((key) + 1) - (size_t)(const void *)(key) == 1) || __s1_len >= 4) && (!((size_t)(const void *)(("CA") + 1) - (size_t)(const void *)("CA") == 1) || __s2_len >= 4)) ? __builtin_strcmp (key, "CA") : (__builtin_constant_p (key) && ((size_t)(const void *)((key) + 1) - (size_t)(const void *)(key) == 1) && (__s1_len = strlen (key), __s1_len < 4) ? (__builtin_constant_p ("CA") && ((size_t)(const void *)(("CA") + 1) - (size_t)(const void *)("CA") == 1) ? __builtin_strcmp (key, "CA") : (__extension__ ({ __const unsigned char *__s2 = (__const unsigned char *) (__const char *) ("CA"); register int __result = (((__const unsigned char *) (__const char *) (key))[0] - __s2[0]); if (__s1_len > 0 && __result == 0) { __result = (((__const unsigned char *) (__const char *) (key))[1] - __s2[1]); if (__s1_len > 1 && __result == 0) { __result = (((__const unsigned char *) (__const char *) (key))[2] - __s2[2]); if (__s1_len > 2 && __result == 0) __result = (((__const unsigned char *) (__const char *) (key))[3] - __s2[3]); } } __result; }))) : (__builtin_constant_p ("CA") && ((size_t)(const void *)(("CA") + 1) - (size_t)(const void *)("CA") == 1) && (__s2_len = strlen ("CA"), __s2_len < 4) ? (__builtin_constant_p (key) && ((size_t)(const void *)((key) + 1) - (size_t)(const void *)(key) == 1) ? __builtin_strcmp (key, "CA") : (__extension__ ({ __const unsigned char *__s1 = (__const unsigned char *) (__const char *) (key); register int __result = __s1[0] - ((__const unsigned char *) (__const char *) ("CA"))[0]; if (__s2_len > 0 && __result == 0) { __result = (__s1[1] - ((__const unsigned char *) (__const char *) ("CA"))[1]); if (__s2_len > 1 && __result == 0) { __result = (__s1[2] - ((__const unsigned char *) (__const char *) ("CA"))[2]); if (__s2_len > 2 && __result == 0) __result = (__s1[3] - ((__const unsigned char *) (__const char *) ("CA"))[3]); } } __result; }))) : __builtin_strcmp (key, "CA")))); }) : strncmp (key, "CA", n))) == 0) { > return arrayflags_carray_get(self); > } > if ((__extension__ (__builtin_constant_p (n) && ((__builtin_constant_p (key) && strlen (key) < ((size_t) (n))) || (__builtin_constant_p ("FA") && strlen ("FA") < ((size_t) (n)))) ? __extension__ ({ size_t __s1_len, __s2_len; (__builtin_constant_p (key) && __builtin_constant_p ("FA") && (__s1_len = strlen (key), __s2_len = strlen ("FA"), (!((size_t)(const void *)((key) + 1) - (size_t)(const void *)(key) == 1) || __s1_len >= 4) && (!((size_t)(const void *)(("FA") + 1) - (size_t)(const void *)("FA") == 1) || __s2_len >= 4)) ? __builtin_strcmp (key, "FA") : (__builtin_constant_p (key) && ((size_t)(const void *)((key) + 1) - (size_t)(const void *)(key) == 1) && (__s1_len = strlen (key), __s1_len < 4) ? (__builtin_constant_p ("FA") && ((size_t)(const void *)(("FA") + 1) - (size_t)(const void *)("FA") == 1) ? __builtin_strcmp (key, "FA") : (__extension__ ({ __const unsigned char *__s2 = (__const unsigned char *) (__const char *) ("FA"); register int __result = (((__const unsigned char *) (__const char *) (key))[0] - __s2[0]); if (__s1_len > 0 && __result == 0) { __result = (((__const unsigned char *) (__const char *) (key))[1] - __s2[1]); if (__s1_len > 1 && __result == 0) { __result = (((__const unsigned char *) (__const char *) (key))[2] - __s2[2]); if (__s1_len > 2 && __result == 0) __result = (((__const unsigned char *) (__const char *) (key))[3] - __s2[3]); } } __result; }))) : (__builtin_constant_p ("FA") && ((size_t)(const void *)(("FA") + 1) - (size_t)(const void *)("FA") == 1) && (__s2_len = strlen ("FA"), __s2_len < 4) ? (__builtin_constant_p (key) && ((size_t)(const void *)((key) + 1) - (size_t)(const void *)(key) == 1) ? __builtin_strcmp (key, "FA") : (__extension__ ({ __const unsigned char *__s1 = (__const unsigned char *) (__const char *) (key); register int __result = __s1[0] - ((__const unsigned char *) (__const char *) ("FA"))[0]; if (__s2_len > 0 && __result == 0) { __result = (__s1[1] - ((__const unsigned char *) (__const char *) ("FA"))[1]); if (__s2_len > 1 && __result == 0) { __result = (__s1[2] - ((__const unsigned char *) (__const char *) ("FA"))[2]); if (__s2_len > 2 && __result == 0) __result = (__s1[3] - ((__const unsigned char *) (__const char *) ("FA"))[3]); } } __result; }))) : __builtin_strcmp (key, "FA")))); }) : strncmp (key, "FA", n))) == 0) { > return arrayflags_farray_get(self); > } > break; > case 3: > if ((__extension__ (__builtin_constant_p (n) && ((__builtin_constant_p (key) && strlen (key) < ((size_t) (n))) || (__builtin_constant_p ("FNC") && strlen ("FNC") < ((size_t) (n)))) ? __extension__ ({ size_t __s1_len, __s2_len; (__builtin_constant_p (key) && __builtin_constant_p ("FNC") && (__s1_len = strlen (key), __s2_len = strlen ("FNC"), (!((size_t)(const void *)((key) + 1) - (size_t)(const void *)(key) == 1) || __s1_len >= 4) && (!((size_t)(const void *)(("FNC") + 1) - (size_t)(const void *)("FNC") == 1) || __s2_len >= 4)) ? __builtin_strcmp (key, "FNC") : (__builtin_constant_p (key) && ((size_t)(const void *)((key) + 1) - (size_t)(const void *)(key) == 1) && (__s1_len = strlen (key), __s1_len < 4) ? (__builtin_constant_p ("FNC") && ((size_t)(const void *)(("FNC") + 1) - (size_t)(const void *)("FNC") == 1) ? __builtin_strcmp (key, "FNC") : (__extension__ ({ __const unsigned char *__s2 = (__const unsigned char *) (__const char *) ("FNC"); register int __result = (((__const unsigned char *) (__const char *) (key))[0] - __s2[0]); if (__s1_len > 0 && __result == 0) { __result = (((__const unsigned char *) (__const char *) (key))[1] - __s2[1]); if (__s1_len > 1 && __result == 0) { __result = (((__const unsigned char *) (__const char *) (key))[2] - __s2[2]); if (__s1_len > 2 && __result == 0) __result = (((__const unsigned char *) (__const char *) (key))[3] - __s2[3]); } } __result; }))) : (__builtin_constant_p ("FNC") && ((size_t)(const void *)(("FNC") + 1) - (size_t)(const void *)("FNC") == 1) && (__s2_len = strlen ("FNC"), __s2_len < 4) ? (__builtin_constant_p (key) && ((size_t)(const void *)((key) + 1) - (size_t)(const void *)(key) == 1) ? __builtin_strcmp (key, "FNC") : (__extension__ ({ __const unsigned char *__s1 = (__const unsigned char *) (__const char *) (key); register int __result = __s1[0] - ((__const unsigned char *) (__const char *) ("FNC"))[0]; if (__s2_len > 0 && __result == 0) { __result = (__s1[1] - ((__const unsigned char *) (__const char *) ("FNC"))[1]); if (__s2_len > 1 && __result == 0) { __result = (__s1[2] - ((__const unsigned char *) (__const char *) ("FNC"))[2]); if (__s2_len > 2 && __result == 0) __result = (__s1[3] - ((__const unsigned char *) (__const char *) ("FNC"))[3]); } } __result; }))) : __builtin_strcmp (key, "FNC")))); }) : strncmp (key, "FNC", n))) == 0) { > return arrayflags_fnc_get(self); > } > break; > case 4: > if ((__extension__ (__builtin_constant_p (n) && ((__builtin_constant_p (key) && strlen (key) < ((size_t) (n))) || (__builtin_constant_p ("FORC") && strlen ("FORC") < ((size_t) (n)))) ? __extension__ ({ size_t __s1_len, __s2_len; (__builtin_constant_p (key) && __builtin_constant_p ("FORC") && (__s1_len = strlen (key), __s2_len = strlen ("FORC"), (!((size_t)(const void *)((key) + 1) - (size_t)(const void *)(key) == 1) || __s1_len >= 4) && (!((size_t)(const void *)(("FORC") + 1) - (size_t)(const void *)("FORC") == 1) || __s2_len >= 4)) ? __builtin_strcmp (key, "FORC") : (__builtin_constant_p (key) && ((size_t)(const void *)((key) + 1) - (size_t)(const void *)(key) == 1) && (__s1_len = strlen (key), __s1_len < 4) ? (__builtin_constant_p ("FORC") && ((size_t)(const void *)(("FORC") + 1) - (size_t)(const void *)("FORC") == 1) ? __builtin_strcmp (key, "FORC") : (__extension__ ({ __const unsigned char *__s2 = (__const unsigned char *) (__const char *) ("FORC"); register int __result = (((__const unsigned char *) (__const char *) (key))[0] - __s2[0]); if (__s1_len > 0 && __result == 0) { __result = (((__const unsigned char *) (__const char *) (key))[1] - __s2[1]); if (__s1_len > 1 && __result == 0) { __result = (((__const unsigned char *) (__const char *) (key))[2] - __s2[2]); if (__s1_len > 2 && __result == 0) __result = (((__const unsigned char *) (__const char *) (key))[3] - __s2[3]); } } __result; }))) : (__builtin_constant_p ("FORC") && ((size_t)(const void *)(("FORC") + 1) - (size_t)(const void *)("FORC") == 1) && (__s2_len = strlen ("FORC"), __s2_len < 4) ? (__builtin_constant_p (key) && ((size_t)(const void *)((key) + 1) - (size_t)(const void *)(key) == 1) ? __builtin_strcmp (key, "FORC") : (__extension__ ({ __const unsigned char *__s1 = (__const unsigned char *) (__const char *) (key); register int __result = __s1[0] - ((__const unsigned char *) (__const char *) ("FORC"))[0]; if (__s2_len > 0 && __result == 0) { __result = (__s1[1] - ((__const unsigned char *) (__const char *) ("FORC"))[1]); if (__s2_len > 1 && __result == 0) { __result = (__s1[2] - ((__const unsigned char *) (__const char *) ("FORC"))[2]); if (__s2_len > 2 && __result == 0) __result = (__s1[3] - ((__const unsigned char *) (__const char *) ("FORC"))[3]); } } __result; }))) : __builtin_strcmp (key, "FORC")))); }) : strncmp (key, "FORC", n))) == 0) { > return arrayflags_forc_get(self); > } > break; > case 6: > if ((__extension__ (__builtin_constant_p (n) && ((__builtin_constant_p (key) && strlen (key) < ((size_t) (n))) || (__builtin_constant_p ("CARRAY") && strlen ("CARRAY") < ((size_t) (n)))) ? __extension__ ({ size_t __s1_len, __s2_len; (__builtin_constant_p (key) && __builtin_constant_p ("CARRAY") && (__s1_len = strlen (key), __s2_len = strlen ("CARRAY"), (!((size_t)(const void *)((key) + 1) - (size_t)(const void *)(key) == 1) || __s1_len >= 4) && (!((size_t)(const void *)(("CARRAY") + 1) - (size_t)(const void *)("CARRAY") == 1) || __s2_len >= 4)) ? __builtin_strcmp (key, "CARRAY") : (__builtin_constant_p (key) && ((size_t)(const void *)((key) + 1) - (size_t)(const void *)(key) == 1) && (__s1_len = strlen (key), __s1_len < 4) ? (__builtin_constant_p ("CARRAY") && ((size_t)(const void *)(("CARRAY") + 1) - (size_t)(const void *)("CARRAY") == 1) ? __builtin_strcmp (key, "CARRAY") : (__extension__ ({ __const unsigned char *__s2 = (__const unsigned char *) (__const char *) ("CARRAY"); register int __result = (((__const unsigned char *) (__const char *) (key))[0] - __s2[0]); if (__s1_len > 0 && __result == 0) { __result = (((__const unsigned char *) (__const char *) (key))[1] - __s2[1]); if (__s1_len > 1 && __result == 0) { __result = (((__const unsigned char *) (__const char *) (key))[2] - __s2[2]); if (__s1_len > 2 && __result == 0) __result = (((__const unsigned char *) (__const char *) (key))[3] - __s2[3]); } } __result; }))) : (__builtin_constant_p ("CARRAY") && ((size_t)(const void *)(("CARRAY") + 1) - (size_t)(const void *)("CARRAY") == 1) && (__s2_len = strlen ("CARRAY"), __s2_len < 4) ? (__builtin_constant_p (key) && ((size_t)(const void *)((key) + 1) - (size_t)(const void *)(key) == 1) ? __builtin_strcmp (key, "CARRAY") : (__extension__ ({ __const unsigned char *__s1 = (__const unsigned char *) (__const char *) (key); register int __result = __s1[0] - ((__const unsigned char *) (__const char *) ("CARRAY"))[0]; if (__s2_len > 0 && __result == 0) { __result = (__s1[1] - ((__const unsigned char *) (__const char *) ("CARRAY"))[1]); if (__s2_len > 1 && __result == 0) { __result = (__s1[2] - ((__const unsigned char *) (__const char *) ("CARRAY"))[2]); if (__s2_len > 2 && __result == 0) __result = (__s1[3] - ((__const unsigned char *) (__const char *) ("CARRAY"))[3]); } } __result; }))) : __builtin_strcmp (key, "CARRAY")))); }) : strncmp (key, "CARRAY", n))) == 0) { > return arrayflags_carray_get(self); > } > if ((__extension__ (__builtin_constant_p (n) && ((__builtin_constant_p (key) && strlen (key) < ((size_t) (n))) || (__builtin_constant_p ("FARRAY") && strlen ("FARRAY") < ((size_t) (n)))) ? __extension__ ({ size_t __s1_len, __s2_len; (__builtin_constant_p (key) && __builtin_constant_p ("FARRAY") && (__s1_len = strlen (key), __s2_len = strlen ("FARRAY"), (!((size_t)(const void *)((key) + 1) - (size_t)(const void *)(key) == 1) || __s1_len >= 4) && (!((size_t)(const void *)(("FARRAY") + 1) - (size_t)(const void *)("FARRAY") == 1) || __s2_len >= 4)) ? __builtin_strcmp (key, "FARRAY") : (__builtin_constant_p (key) && ((size_t)(const void *)((key) + 1) - (size_t)(const void *)(key) == 1) && (__s1_len = strlen (key), __s1_len < 4) ? (__builtin_constant_p ("FARRAY") && ((size_t)(const void *)(("FARRAY") + 1) - (size_t)(const void *)("FARRAY") == 1) ? __builtin_strcmp (key, "FARRAY") : (__extension__ ({ __const unsigned char *__s2 = (__const unsigned char *) (__const char *) ("FARRAY"); register int __result = (((__const unsigned char *) (__const char *) (key))[0] - __s2[0]); if (__s1_len > 0 && __result == 0) { __result = (((__const unsigned char *) (__const char *) (key))[1] - __s2[1]); if (__s1_len > 1 && __result == 0) { __result = (((__const unsigned char *) (__const char *) (key))[2] - __s2[2]); if (__s1_len > 2 && __result == 0) __result = (((__const unsigned char *) (__const char *) (key))[3] - __s2[3]); } } __result; }))) : (__builtin_constant_p ("FARRAY") && ((size_t)(const void *)(("FARRAY") + 1) - (size_t)(const void *)("FARRAY") == 1) && (__s2_len = strlen ("FARRAY"), __s2_len < 4) ? (__builtin_constant_p (key) && ((size_t)(const void *)((key) + 1) - (size_t)(const void *)(key) == 1) ? __builtin_strcmp (key, "FARRAY") : (__extension__ ({ __const unsigned char *__s1 = (__const unsigned char *) (__const char *) (key); register int __result = __s1[0] - ((__const unsigned char *) (__const char *) ("FARRAY"))[0]; if (__s2_len > 0 && __result == 0) { __result = (__s1[1] - ((__const unsigned char *) (__const char *) ("FARRAY"))[1]); if (__s2_len > 1 && __result == 0) { __result = (__s1[2] - ((__const unsigned char *) (__const char *) ("FARRAY"))[2]); if (__s2_len > 2 && __result == 0) __result = (__s1[3] - ((__const unsigned char *) (__const char *) ("FARRAY"))[3]); } } __result; }))) : __builtin_strcmp (key, "FARRAY")))); }) : strncmp (key, "FARRAY", n))) == 0) { > return arrayflags_farray_get(self); > } > break; > case 7: > if ((__extension__ (__builtin_constant_p (n) && ((__builtin_constant_p (key) && strlen (key) < ((size_t) (n))) || (__builtin_constant_p ("FORTRAN") && strlen ("FORTRAN") < ((size_t) (n)))) ? __extension__ ({ size_t __s1_len, __s2_len; (__builtin_constant_p (key) && __builtin_constant_p ("FORTRAN") && (__s1_len = strlen (key), __s2_len = strlen ("FORTRAN"), (!((size_t)(const void *)((key) + 1) - (size_t)(const void *)(key) == 1) || __s1_len >= 4) && (!((size_t)(const void *)(("FORTRAN") + 1) - (size_t)(const void *)("FORTRAN") == 1) || __s2_len >= 4)) ? __builtin_strcmp (key, "FORTRAN") : (__builtin_constant_p (key) && ((size_t)(const void *)((key) + 1) - (size_t)(const void *)(key) == 1) && (__s1_len = strlen (key), __s1_len < 4) ? (__builtin_constant_p ("FORTRAN") && ((size_t)(const void *)(("FORTRAN") + 1) - (size_t)(const void *)("FORTRAN") == 1) ? __builtin_strcmp (key, "FORTRAN") : (__extension__ ({ __const unsigned char *__s2 = (__const unsigned char *) (__const char *) ("FORTRAN"); register int __result = (((__const unsigned char *) (__const char *) (key))[0] - __s2[0]); if (__s1_len > 0 && __result == 0) { __result = (((__const unsigned char *) (__const char *) (key))[1] - __s2[1]); if (__s1_len > 1 && __result == 0) { __result = (((__const unsigned char *) (__const char *) (key))[2] - __s2[2]); if (__s1_len > 2 && __result == 0) __result = (((__const unsigned char *) (__const char *) (key))[3] - __s2[3]); } } __result; }))) : (__builtin_constant_p ("FORTRAN") && ((size_t)(const void *)(("FORTRAN") + 1) - (size_t)(const void *)("FORTRAN") == 1) && (__s2_len = strlen ("FORTRAN"), __s2_len < 4) ? (__builtin_constant_p (key) && ((size_t)(const void *)((key) + 1) - (size_t)(const void *)(key) == 1) ? __builtin_strcmp (key, "FORTRAN") : (__extension__ ({ __const unsigned char *__s1 = (__const unsigned char *) (__const char *) (key); register int __result = __s1[0] - ((__const unsigned char *) (__const char *) ("FORTRAN"))[0]; if (__s2_len > 0 && __result == 0) { __result = (__s1[1] - ((__const unsigned char *) (__const char *) ("FORTRAN"))[1]); if (__s2_len > 1 && __result == 0) { __result = (__s1[2] - ((__const unsigned char *) (__const char *) ("FORTRAN"))[2]); if (__s2_len > 2 && __result == 0) __result = (__s1[3] - ((__const unsigned char *) (__const char *) ("FORTRAN"))[3]); } } __result; }))) : __builtin_strcmp (key, "FORTRAN")))); }) : strncmp (key, "FORTRAN", n))) == 0) { > return arrayflags_fortran_get(self); > } > if ((__extension__ (__builtin_constant_p (n) && ((__builtin_constant_p (key) && strlen (key) < ((size_t) (n))) || (__builtin_constant_p ("BEHAVED") && strlen ("BEHAVED") < ((size_t) (n)))) ? __extension__ ({ size_t __s1_len, __s2_len; (__builtin_constant_p (key) && __builtin_constant_p ("BEHAVED") && (__s1_len = strlen (key), __s2_len = strlen ("BEHAVED"), (!((size_t)(const void *)((key) + 1) - (size_t)(const void *)(key) == 1) || __s1_len >= 4) && (!((size_t)(const void *)(("BEHAVED") + 1) - (size_t)(const void *)("BEHAVED") == 1) || __s2_len >= 4)) ? __builtin_strcmp (key, "BEHAVED") : (__builtin_constant_p (key) && ((size_t)(const void *)((key) + 1) - (size_t)(const void *)(key) == 1) && (__s1_len = strlen (key), __s1_len < 4) ? (__builtin_constant_p ("BEHAVED") && ((size_t)(const void *)(("BEHAVED") + 1) - (size_t)(const void *)("BEHAVED") == 1) ? __builtin_strcmp (key, "BEHAVED") : (__extension__ ({ __const unsigned char *__s2 = (__const unsigned char *) (__const char *) ("BEHAVED"); register int __result = (((__const unsigned char *) (__const char *) (key))[0] - __s2[0]); if (__s1_len > 0 && __result == 0) { __result = (((__const unsigned char *) (__const char *) (key))[1] - __s2[1]); if (__s1_len > 1 && __result == 0) { __result = (((__const unsigned char *) (__const char *) (key))[2] - __s2[2]); if (__s1_len > 2 && __result == 0) __result = (((__const unsigned char *) (__const char *) (key))[3] - __s2[3]); } } __result; }))) : (__builtin_constant_p ("BEHAVED") && ((size_t)(const void *)(("BEHAVED") + 1) - (size_t)(const void *)("BEHAVED") == 1) && (__s2_len = strlen ("BEHAVED"), __s2_len < 4) ? (__builtin_constant_p (key) && ((size_t)(const void *)((key) + 1) - (size_t)(const void *)(key) == 1) ? __builtin_strcmp (key, "BEHAVED") : (__extension__ ({ __const unsigned char *__s1 = (__const unsigned char *) (__const char *) (key); register int __result = __s1[0] - ((__const unsigned char *) (__const char *) ("BEHAVED"))[0]; if (__s2_len > 0 && __result == 0) { __result = (__s1[1] - ((__const unsigned char *) (__const char *) ("BEHAVED"))[1]); if (__s2_len > 1 && __result == 0) { __result = (__s1[2] - ((__const unsigned char *) (__const char *) ("BEHAVED"))[2]); if (__s2_len > 2 && __result == 0) __result = (__s1[3] - ((__const unsigned char *) (__const char *) ("BEHAVED"))[3]); } } __result; }))) : __builtin_strcmp (key, "BEHAVED")))); }) : strncmp (key, "BEHAVED", n))) == 0) { > return arrayflags_behaved_get(self); > } > if ((__extension__ (__builtin_constant_p (n) && ((__builtin_constant_p (key) && strlen (key) < ((size_t) (n))) || (__builtin_constant_p ("OWNDATA") && strlen ("OWNDATA") < ((size_t) (n)))) ? __extension__ ({ size_t __s1_len, __s2_len; (__builtin_constant_p (key) && __builtin_constant_p ("OWNDATA") && (__s1_len = strlen (key), __s2_len = strlen ("OWNDATA"), (!((size_t)(const void *)((key) + 1) - (size_t)(const void *)(key) == 1) || __s1_len >= 4) && (!((size_t)(const void *)(("OWNDATA") + 1) - (size_t)(const void *)("OWNDATA") == 1) || __s2_len >= 4)) ? __builtin_strcmp (key, "OWNDATA") : (__builtin_constant_p (key) && ((size_t)(const void *)((key) + 1) - (size_t)(const void *)(key) == 1) && (__s1_len = strlen (key), __s1_len < 4) ? (__builtin_constant_p ("OWNDATA") && ((size_t)(const void *)(("OWNDATA") + 1) - (size_t)(const void *)("OWNDATA") == 1) ? __builtin_strcmp (key, "OWNDATA") : (__extension__ ({ __const unsigned char *__s2 = (__const unsigned char *) (__const char *) ("OWNDATA"); register int __result = (((__const unsigned char *) (__const char *) (key))[0] - __s2[0]); if (__s1_len > 0 && __result == 0) { __result = (((__const unsigned char *) (__const char *) (key))[1] - __s2[1]); if (__s1_len > 1 && __result == 0) { __result = (((__const unsigned char *) (__const char *) (key))[2] - __s2[2]); if (__s1_len > 2 && __result == 0) __result = (((__const unsigned char *) (__const char *) (key))[3] - __s2[3]); } } __result; }))) : (__builtin_constant_p ("OWNDATA") && ((size_t)(const void *)(("OWNDATA") + 1) - (size_t)(const void *)("OWNDATA") == 1) && (__s2_len = strlen ("OWNDATA"), __s2_len < 4) ? (__builtin_constant_p (key) && ((size_t)(const void *)((key) + 1) - (size_t)(const void *)(key) == 1) ? __builtin_strcmp (key, "OWNDATA") : (__extension__ ({ __const unsigned char *__s1 = (__const unsigned char *) (__const char *) (key); register int __result = __s1[0] - ((__const unsigned char *) (__const char *) ("OWNDATA"))[0]; if (__s2_len > 0 && __result == 0) { __result = (__s1[1] - ((__const unsigned char *) (__const char *) ("OWNDATA"))[1]); if (__s2_len > 1 && __result == 0) { __result = (__s1[2] - ((__const unsigned char *) (__const char *) ("OWNDATA"))[2]); if (__s2_len > 2 && __result == 0) __result = (__s1[3] - ((__const unsigned char *) (__const char *) ("OWNDATA"))[3]); } } __result; }))) : __builtin_strcmp (key, "OWNDATA")))); }) : strncmp (key, "OWNDATA", n))) == 0) { > return arrayflags_owndata_get(self); > } > if ((__extension__ (__builtin_constant_p (n) && ((__builtin_constant_p (key) && strlen (key) < ((size_t) (n))) || (__builtin_constant_p ("ALIGNED") && strlen ("ALIGNED") < ((size_t) (n)))) ? __extension__ ({ size_t __s1_len, __s2_len; (__builtin_constant_p (key) && __builtin_constant_p ("ALIGNED") && (__s1_len = strlen (key), __s2_len = strlen ("ALIGNED"), (!((size_t)(const void *)((key) + 1) - (size_t)(const void *)(key) == 1) || __s1_len >= 4) && (!((size_t)(const void *)(("ALIGNED") + 1) - (size_t)(const void *)("ALIGNED") == 1) || __s2_len >= 4)) ? __builtin_strcmp (key, "ALIGNED") : (__builtin_constant_p (key) && ((size_t)(const void *)((key) + 1) - (size_t)(const void *)(key) == 1) && (__s1_len = strlen (key), __s1_len < 4) ? (__builtin_constant_p ("ALIGNED") && ((size_t)(const void *)(("ALIGNED") + 1) - (size_t)(const void *)("ALIGNED") == 1) ? __builtin_strcmp (key, "ALIGNED") : (__extension__ ({ __const unsigned char *__s2 = (__const unsigned char *) (__const char *) ("ALIGNED"); register int __result = (((__const unsigned char *) (__const char *) (key))[0] - __s2[0]); if (__s1_len > 0 && __result == 0) { __result = (((__const unsigned char *) (__const char *) (key))[1] - __s2[1]); if (__s1_len > 1 && __result == 0) { __result = (((__const unsigned char *) (__const char *) (key))[2] - __s2[2]); if (__s1_len > 2 && __result == 0) __result = (((__const unsigned char *) (__const char *) (key))[3] - __s2[3]); } } __result; }))) : (__builtin_constant_p ("ALIGNED") && ((size_t)(const void *)(("ALIGNED") + 1) - (size_t)(const void *)("ALIGNED") == 1) && (__s2_len = strlen ("ALIGNED"), __s2_len < 4) ? (__builtin_constant_p (key) && ((size_t)(const void *)((key) + 1) - (size_t)(const void *)(key) == 1) ? __builtin_strcmp (key, "ALIGNED") : (__extension__ ({ __const unsigned char *__s1 = (__const unsigned char *) (__const char *) (key); register int __result = __s1[0] - ((__const unsigned char *) (__const char *) ("ALIGNED"))[0]; if (__s2_len > 0 && __result == 0) { __result = (__s1[1] - ((__const unsigned char *) (__const char *) ("ALIGNED"))[1]); if (__s2_len > 1 && __result == 0) { __result = (__s1[2] - ((__const unsigned char *) (__const char *) ("ALIGNED"))[2]); if (__s2_len > 2 && __result == 0) __result = (__s1[3] - ((__const unsigned char *) (__const char *) ("ALIGNED"))[3]); } } __result; }))) : __builtin_strcmp (key, "ALIGNED")))); }) : strncmp (key, "ALIGNED", n))) == 0) { > return arrayflags_aligned_get(self); > } > break; > case 9: > if ((__extension__ (__builtin_constant_p (n) && ((__builtin_constant_p (key) && strlen (key) < ((size_t) (n))) || (__builtin_constant_p ("WRITEABLE") && strlen ("WRITEABLE") < ((size_t) (n)))) ? __extension__ ({ size_t __s1_len, __s2_len; (__builtin_constant_p (key) && __builtin_constant_p ("WRITEABLE") && (__s1_len = strlen (key), __s2_len = strlen ("WRITEABLE"), (!((size_t)(const void *)((key) + 1) - (size_t)(const void *)(key) == 1) || __s1_len >= 4) && (!((size_t)(const void *)(("WRITEABLE") + 1) - (size_t)(const void *)("WRITEABLE") == 1) || __s2_len >= 4)) ? __builtin_strcmp (key, "WRITEABLE") : (__builtin_constant_p (key) && ((size_t)(const void *)((key) + 1) - (size_t)(const void *)(key) == 1) && (__s1_len = strlen (key), __s1_len < 4) ? (__builtin_constant_p ("WRITEABLE") && ((size_t)(const void *)(("WRITEABLE") + 1) - (size_t)(const void *)("WRITEABLE") == 1) ? __builtin_strcmp (key, "WRITEABLE") : (__extension__ ({ __const unsigned char *__s2 = (__const unsigned char *) (__const char *) ("WRITEABLE"); register int __result = (((__const unsigned char *) (__const char *) (key))[0] - __s2[0]); if (__s1_len > 0 && __result == 0) { __result = (((__const unsigned char *) (__const char *) (key))[1] - __s2[1]); if (__s1_len > 1 && __result == 0) { __result = (((__const unsigned char *) (__const char *) (key))[2] - __s2[2]); if (__s1_len > 2 && __result == 0) __result = (((__const unsigned char *) (__const char *) (key))[3] - __s2[3]); } } __result; }))) : (__builtin_constant_p ("WRITEABLE") && ((size_t)(const void *)(("WRITEABLE") + 1) - (size_t)(const void *)("WRITEABLE") == 1) && (__s2_len = strlen ("WRITEABLE"), __s2_len < 4) ? (__builtin_constant_p (key) && ((size_t)(const void *)((key) + 1) - (size_t)(const void *)(key) == 1) ? __builtin_strcmp (key, "WRITEABLE") : (__extension__ ({ __const unsigned char *__s1 = (__const unsigned char *) (__const char *) (key); register int __result = __s1[0] - ((__const unsigned char *) (__const char *) ("WRITEABLE"))[0]; if (__s2_len > 0 && __result == 0) { __result = (__s1[1] - ((__const unsigned char *) (__const char *) ("WRITEABLE"))[1]); if (__s2_len > 1 && __result == 0) { __result = (__s1[2] - ((__const unsigned char *) (__const char *) ("WRITEABLE"))[2]); if (__s2_len > 2 && __result == 0) __result = (__s1[3] - ((__const unsigned char *) (__const char *) ("WRITEABLE"))[3]); } } __result; }))) : __builtin_strcmp (key, "WRITEABLE")))); }) : strncmp (key, "WRITEABLE", n))) == 0) { > return arrayflags_writeable_get(self); > } > break; > case 10: > if ((__extension__ (__builtin_constant_p (n) && ((__builtin_constant_p (key) && strlen (key) < ((size_t) (n))) || (__builtin_constant_p ("CONTIGUOUS") && strlen ("CONTIGUOUS") < ((size_t) (n)))) ? __extension__ ({ size_t __s1_len, __s2_len; (__builtin_constant_p (key) && __builtin_constant_p ("CONTIGUOUS") && (__s1_len = strlen (key), __s2_len = strlen ("CONTIGUOUS"), (!((size_t)(const void *)((key) + 1) - (size_t)(const void *)(key) == 1) || __s1_len >= 4) && (!((size_t)(const void *)(("CONTIGUOUS") + 1) - (size_t)(const void *)("CONTIGUOUS") == 1) || __s2_len >= 4)) ? __builtin_strcmp (key, "CONTIGUOUS") : (__builtin_constant_p (key) && ((size_t)(const void *)((key) + 1) - (size_t)(const void *)(key) == 1) && (__s1_len = strlen (key), __s1_len < 4) ? (__builtin_constant_p ("CONTIGUOUS") && ((size_t)(const void *)(("CONTIGUOUS") + 1) - (size_t)(const void *)("CONTIGUOUS") == 1) ? __builtin_strcmp (key, "CONTIGUOUS") : (__extension__ ({ __const unsigned char *__s2 = (__const unsigned char *) (__const char *) ("CONTIGUOUS"); register int __result = (((__const unsigned char *) (__const char *) (key))[0] - __s2[0]); if (__s1_len > 0 && __result == 0) { __result = (((__const unsigned char *) (__const char *) (key))[1] - __s2[1]); if (__s1_len > 1 && __result == 0) { __result = (((__const unsigned char *) (__const char *) (key))[2] - __s2[2]); if (__s1_len > 2 && __result == 0) __result = (((__const unsigned char *) (__const char *) (key))[3] - __s2[3]); } } __result; }))) : (__builtin_constant_p ("CONTIGUOUS") && ((size_t)(const void *)(("CONTIGUOUS") + 1) - (size_t)(const void *)("CONTIGUOUS") == 1) && (__s2_len = strlen ("CONTIGUOUS"), __s2_len < 4) ? (__builtin_constant_p (key) && ((size_t)(const void *)((key) + 1) - (size_t)(const void *)(key) == 1) ? __builtin_strcmp (key, "CONTIGUOUS") : (__extension__ ({ __const unsigned char *__s1 = (__const unsigned char *) (__const char *) (key); register int __result = __s1[0] - ((__const unsigned char *) (__const char *) ("CONTIGUOUS"))[0]; if (__s2_len > 0 && __result == 0) { __result = (__s1[1] - ((__const unsigned char *) (__const char *) ("CONTIGUOUS"))[1]); if (__s2_len > 1 && __result == 0) { __result = (__s1[2] - ((__const unsigned char *) (__const char *) ("CONTIGUOUS"))[2]); if (__s2_len > 2 && __result == 0) __result = (__s1[3] - ((__const unsigned char *) (__const char *) ("CONTIGUOUS"))[3]); } } __result; }))) : __builtin_strcmp (key, "CONTIGUOUS")))); }) : strncmp (key, "CONTIGUOUS", n))) == 0) { > return arrayflags_contiguous_get(self); > } > break; > case 12: > if ((__extension__ (__builtin_constant_p (n) && ((__builtin_constant_p (key) && strlen (key) < ((size_t) (n))) || (__builtin_constant_p ("UPDATEIFCOPY") && strlen ("UPDATEIFCOPY") < ((size_t) (n)))) ? __extension__ ({ size_t __s1_len, __s2_len; (__builtin_constant_p (key) && __builtin_constant_p ("UPDATEIFCOPY") && (__s1_len = strlen (key), __s2_len = strlen ("UPDATEIFCOPY"), (!((size_t)(const void *)((key) + 1) - (size_t)(const void *)(key) == 1) || __s1_len >= 4) && (!((size_t)(const void *)(("UPDATEIFCOPY") + 1) - (size_t)(const void *)("UPDATEIFCOPY") == 1) || __s2_len >= 4)) ? __builtin_strcmp (key, "UPDATEIFCOPY") : (__builtin_constant_p (key) && ((size_t)(const void *)((key) + 1) - (size_t)(const void *)(key) == 1) && (__s1_len = strlen (key), __s1_len < 4) ? (__builtin_constant_p ("UPDATEIFCOPY") && ((size_t)(const void *)(("UPDATEIFCOPY") + 1) - (size_t)(const void *)("UPDATEIFCOPY") == 1) ? __builtin_strcmp (key, "UPDATEIFCOPY") : (__extension__ ({ __const unsigned char *__s2 = (__const unsigned char *) (__const char *) ("UPDATEIFCOPY"); register int __result = (((__const unsigned char *) (__const char *) (key))[0] - __s2[0]); if (__s1_len > 0 && __result == 0) { __result = (((__const unsigned char *) (__const char *) (key))[1] - __s2[1]); if (__s1_len > 1 && __result == 0) { __result = (((__const unsigned char *) (__const char *) (key))[2] - __s2[2]); if (__s1_len > 2 && __result == 0) __result = (((__const unsigned char *) (__const char *) (key))[3] - __s2[3]); } } __result; }))) : (__builtin_constant_p ("UPDATEIFCOPY") && ((size_t)(const void *)(("UPDATEIFCOPY") + 1) - (size_t)(const void *)("UPDATEIFCOPY") == 1) && (__s2_len = strlen ("UPDATEIFCOPY"), __s2_len < 4) ? (__builtin_constant_p (key) && ((size_t)(const void *)((key) + 1) - (size_t)(const void *)(key) == 1) ? __builtin_strcmp (key, "UPDATEIFCOPY") : (__extension__ ({ __const unsigned char *__s1 = (__const unsigned char *) (__const char *) (key); register int __result = __s1[0] - ((__const unsigned char *) (__const char *) ("UPDATEIFCOPY"))[0]; if (__s2_len > 0 && __result == 0) { __result = (__s1[1] - ((__const unsigned char *) (__const char *) ("UPDATEIFCOPY"))[1]); if (__s2_len > 1 && __result == 0) { __result = (__s1[2] - ((__const unsigned char *) (__const char *) ("UPDATEIFCOPY"))[2]); if (__s2_len > 2 && __result == 0) __result = (__s1[3] - ((__const unsigned char *) (__const char *) ("UPDATEIFCOPY"))[3]); } } __result; }))) : __builtin_strcmp (key, "UPDATEIFCOPY")))); }) : strncmp (key, "UPDATEIFCOPY", n))) == 0) { > return arrayflags_updateifcopy_get(self); > } > if ((__extension__ (__builtin_constant_p (n) && ((__builtin_constant_p (key) && strlen (key) < ((size_t) (n))) || (__builtin_constant_p ("C_CONTIGUOUS") && strlen ("C_CONTIGUOUS") < ((size_t) (n)))) ? __extension__ ({ size_t __s1_len, __s2_len; (__builtin_constant_p (key) && __builtin_constant_p ("C_CONTIGUOUS") && (__s1_len = strlen (key), __s2_len = strlen ("C_CONTIGUOUS"), (!((size_t)(const void *)((key) + 1) - (size_t)(const void *)(key) == 1) || __s1_len >= 4) && (!((size_t)(const void *)(("C_CONTIGUOUS") + 1) - (size_t)(const void *)("C_CONTIGUOUS") == 1) || __s2_len >= 4)) ? __builtin_strcmp (key, "C_CONTIGUOUS") : (__builtin_constant_p (key) && ((size_t)(const void *)((key) + 1) - (size_t)(const void *)(key) == 1) && (__s1_len = strlen (key), __s1_len < 4) ? (__builtin_constant_p ("C_CONTIGUOUS") && ((size_t)(const void *)(("C_CONTIGUOUS") + 1) - (size_t)(const void *)("C_CONTIGUOUS") == 1) ? __builtin_strcmp (key, "C_CONTIGUOUS") : (__extension__ ({ __const unsigned char *__s2 = (__const unsigned char *) (__const char *) ("C_CONTIGUOUS"); register int __result = (((__const unsigned char *) (__const char *) (key))[0] - __s2[0]); if (__s1_len > 0 && __result == 0) { __result = (((__const unsigned char *) (__const char *) (key))[1] - __s2[1]); if (__s1_len > 1 && __result == 0) { __result = (((__const unsigned char *) (__const char *) (key))[2] - __s2[2]); if (__s1_len > 2 && __result == 0) __result = (((__const unsigned char *) (__const char *) (key))[3] - __s2[3]); } } __result; }))) : (__builtin_constant_p ("C_CONTIGUOUS") && ((size_t)(const void *)(("C_CONTIGUOUS") + 1) - (size_t)(const void *)("C_CONTIGUOUS") == 1) && (__s2_len = strlen ("C_CONTIGUOUS"), __s2_len < 4) ? (__builtin_constant_p (key) && ((size_t)(const void *)((key) + 1) - (size_t)(const void *)(key) == 1) ? __builtin_strcmp (key, "C_CONTIGUOUS") : (__extension__ ({ __const unsigned char *__s1 = (__const unsigned char *) (__const char *) (key); register int __result = __s1[0] - ((__const unsigned char *) (__const char *) ("C_CONTIGUOUS"))[0]; if (__s2_len > 0 && __result == 0) { __result = (__s1[1] - ((__const unsigned char *) (__const char *) ("C_CONTIGUOUS"))[1]); if (__s2_len > 1 && __result == 0) { __result = (__s1[2] - ((__const unsigned char *) (__const char *) ("C_CONTIGUOUS"))[2]); if (__s2_len > 2 && __result == 0) __result = (__s1[3] - ((__const unsigned char *) (__const char *) ("C_CONTIGUOUS"))[3]); } } __result; }))) : __builtin_strcmp (key, "C_CONTIGUOUS")))); }) : strncmp (key, "C_CONTIGUOUS", n))) == 0) { > return arrayflags_contiguous_get(self); > } > if ((__extension__ (__builtin_constant_p (n) && ((__builtin_constant_p (key) && strlen (key) < ((size_t) (n))) || (__builtin_constant_p ("F_CONTIGUOUS") && strlen ("F_CONTIGUOUS") < ((size_t) (n)))) ? __extension__ ({ size_t __s1_len, __s2_len; (__builtin_constant_p (key) && __builtin_constant_p ("F_CONTIGUOUS") && (__s1_len = strlen (key), __s2_len = strlen ("F_CONTIGUOUS"), (!((size_t)(const void *)((key) + 1) - (size_t)(const void *)(key) == 1) || __s1_len >= 4) && (!((size_t)(const void *)(("F_CONTIGUOUS") + 1) - (size_t)(const void *)("F_CONTIGUOUS") == 1) || __s2_len >= 4)) ? __builtin_strcmp (key, "F_CONTIGUOUS") : (__builtin_constant_p (key) && ((size_t)(const void *)((key) + 1) - (size_t)(const void *)(key) == 1) && (__s1_len = strlen (key), __s1_len < 4) ? (__builtin_constant_p ("F_CONTIGUOUS") && ((size_t)(const void *)(("F_CONTIGUOUS") + 1) - (size_t)(const void *)("F_CONTIGUOUS") == 1) ? __builtin_strcmp (key, "F_CONTIGUOUS") : (__extension__ ({ __const unsigned char *__s2 = (__const unsigned char *) (__const char *) ("F_CONTIGUOUS"); register int __result = (((__const unsigned char *) (__const char *) (key))[0] - __s2[0]); if (__s1_len > 0 && __result == 0) { __result = (((__const unsigned char *) (__const char *) (key))[1] - __s2[1]); if (__s1_len > 1 && __result == 0) { __result = (((__const unsigned char *) (__const char *) (key))[2] - __s2[2]); if (__s1_len > 2 && __result == 0) __result = (((__const unsigned char *) (__const char *) (key))[3] - __s2[3]); } } __result; }))) : (__builtin_constant_p ("F_CONTIGUOUS") && ((size_t)(const void *)(("F_CONTIGUOUS") + 1) - (size_t)(const void *)("F_CONTIGUOUS") == 1) && (__s2_len = strlen ("F_CONTIGUOUS"), __s2_len < 4) ? (__builtin_constant_p (key) && ((size_t)(const void *)((key) + 1) - (size_t)(const void *)(key) == 1) ? __builtin_strcmp (key, "F_CONTIGUOUS") : (__extension__ ({ __const unsigned char *__s1 = (__const unsigned char *) (__const char *) (key); register int __result = __s1[0] - ((__const unsigned char *) (__const char *) ("F_CONTIGUOUS"))[0]; if (__s2_len > 0 && __result == 0) { __result = (__s1[1] - ((__const unsigned char *) (__const char *) ("F_CONTIGUOUS"))[1]); if (__s2_len > 1 && __result == 0) { __result = (__s1[2] - ((__const unsigned char *) (__const char *) ("F_CONTIGUOUS"))[2]); if (__s2_len > 2 && __result == 0) __result = (__s1[3] - ((__const unsigned char *) (__const char *) ("F_CONTIGUOUS"))[3]); } } __result; }))) : __builtin_strcmp (key, "F_CONTIGUOUS")))); }) : strncmp (key, "F_CONTIGUOUS", n))) == 0) { > return arrayflags_fortran_get(self); > } > break; > } > > fail: > PyErr_SetString(PyExc_KeyError, "Unknown flag"); > return ((void *)0); >} > >static int >arrayflags_setitem(PyArrayFlagsObject *self, PyObject *ind, PyObject *item) >{ > char *key; > char buf[16]; > int n; > if (((((((PyObject*)(ind))->ob_type))->tp_flags & ((1L<<28))) != 0)) { > PyObject *tmp_str; > tmp_str = PyUnicodeUCS4_AsASCIIString(ind); > key = (((PyStringObject *)(tmp_str))->ob_sval); > n = (((PyVarObject*)(tmp_str))->ob_size); > if (n > 16) n = 16; > memcpy(buf, key, n); > do { if ( --((PyObject*)(tmp_str))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(tmp_str)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(tmp_str)))); } while (0); > key = buf; > } > else if (((((((PyObject*)(ind))->ob_type))->tp_flags & ((1L<<27))) != 0)) { > key = (((PyStringObject *)(ind))->ob_sval); > n = (((PyVarObject*)(ind))->ob_size); > } > else { > goto fail; > } > if (((n==9) && ((__extension__ (__builtin_constant_p (n) && ((__builtin_constant_p (key) && strlen (key) < ((size_t) (n))) || (__builtin_constant_p ("WRITEABLE") && strlen ("WRITEABLE") < ((size_t) (n)))) ? __extension__ ({ size_t __s1_len, __s2_len; (__builtin_constant_p (key) && __builtin_constant_p ("WRITEABLE") && (__s1_len = strlen (key), __s2_len = strlen ("WRITEABLE"), (!((size_t)(const void *)((key) + 1) - (size_t)(const void *)(key) == 1) || __s1_len >= 4) && (!((size_t)(const void *)(("WRITEABLE") + 1) - (size_t)(const void *)("WRITEABLE") == 1) || __s2_len >= 4)) ? __builtin_strcmp (key, "WRITEABLE") : (__builtin_constant_p (key) && ((size_t)(const void *)((key) + 1) - (size_t)(const void *)(key) == 1) && (__s1_len = strlen (key), __s1_len < 4) ? (__builtin_constant_p ("WRITEABLE") && ((size_t)(const void *)(("WRITEABLE") + 1) - (size_t)(const void *)("WRITEABLE") == 1) ? __builtin_strcmp (key, "WRITEABLE") : (__extension__ ({ __const unsigned char *__s2 = (__const unsigned char *) (__const char *) ("WRITEABLE"); register int __result = (((__const unsigned char *) (__const char *) (key))[0] - __s2[0]); if (__s1_len > 0 && __result == 0) { __result = (((__const unsigned char *) (__const char *) (key))[1] - __s2[1]); if (__s1_len > 1 && __result == 0) { __result = (((__const unsigned char *) (__const char *) (key))[2] - __s2[2]); if (__s1_len > 2 && __result == 0) __result = (((__const unsigned char *) (__const char *) (key))[3] - __s2[3]); } } __result; }))) : (__builtin_constant_p ("WRITEABLE") && ((size_t)(const void *)(("WRITEABLE") + 1) - (size_t)(const void *)("WRITEABLE") == 1) && (__s2_len = strlen ("WRITEABLE"), __s2_len < 4) ? (__builtin_constant_p (key) && ((size_t)(const void *)((key) + 1) - (size_t)(const void *)(key) == 1) ? __builtin_strcmp (key, "WRITEABLE") : (__extension__ ({ __const unsigned char *__s1 = (__const unsigned char *) (__const char *) (key); register int __result = __s1[0] - ((__const unsigned char *) (__const char *) ("WRITEABLE"))[0]; if (__s2_len > 0 && __result == 0) { __result = (__s1[1] - ((__const unsigned char *) (__const char *) ("WRITEABLE"))[1]); if (__s2_len > 1 && __result == 0) { __result = (__s1[2] - ((__const unsigned char *) (__const char *) ("WRITEABLE"))[2]); if (__s2_len > 2 && __result == 0) __result = (__s1[3] - ((__const unsigned char *) (__const char *) ("WRITEABLE"))[3]); } } __result; }))) : __builtin_strcmp (key, "WRITEABLE")))); }) : strncmp (key, "WRITEABLE", n))) == 0)) || > ((n==1) && ((__extension__ (__builtin_constant_p (n) && ((__builtin_constant_p (key) && strlen (key) < ((size_t) (n))) || (__builtin_constant_p ("W") && strlen ("W") < ((size_t) (n)))) ? __extension__ ({ size_t __s1_len, __s2_len; (__builtin_constant_p (key) && __builtin_constant_p ("W") && (__s1_len = strlen (key), __s2_len = strlen ("W"), (!((size_t)(const void *)((key) + 1) - (size_t)(const void *)(key) == 1) || __s1_len >= 4) && (!((size_t)(const void *)(("W") + 1) - (size_t)(const void *)("W") == 1) || __s2_len >= 4)) ? __builtin_strcmp (key, "W") : (__builtin_constant_p (key) && ((size_t)(const void *)((key) + 1) - (size_t)(const void *)(key) == 1) && (__s1_len = strlen (key), __s1_len < 4) ? (__builtin_constant_p ("W") && ((size_t)(const void *)(("W") + 1) - (size_t)(const void *)("W") == 1) ? __builtin_strcmp (key, "W") : (__extension__ ({ __const unsigned char *__s2 = (__const unsigned char *) (__const char *) ("W"); register int __result = (((__const unsigned char *) (__const char *) (key))[0] - __s2[0]); if (__s1_len > 0 && __result == 0) { __result = (((__const unsigned char *) (__const char *) (key))[1] - __s2[1]); if (__s1_len > 1 && __result == 0) { __result = (((__const unsigned char *) (__const char *) (key))[2] - __s2[2]); if (__s1_len > 2 && __result == 0) __result = (((__const unsigned char *) (__const char *) (key))[3] - __s2[3]); } } __result; }))) : (__builtin_constant_p ("W") && ((size_t)(const void *)(("W") + 1) - (size_t)(const void *)("W") == 1) && (__s2_len = strlen ("W"), __s2_len < 4) ? (__builtin_constant_p (key) && ((size_t)(const void *)((key) + 1) - (size_t)(const void *)(key) == 1) ? __builtin_strcmp (key, "W") : (__extension__ ({ __const unsigned char *__s1 = (__const unsigned char *) (__const char *) (key); register int __result = __s1[0] - ((__const unsigned char *) (__const char *) ("W"))[0]; if (__s2_len > 0 && __result == 0) { __result = (__s1[1] - ((__const unsigned char *) (__const char *) ("W"))[1]); if (__s2_len > 1 && __result == 0) { __result = (__s1[2] - ((__const unsigned char *) (__const char *) ("W"))[2]); if (__s2_len > 2 && __result == 0) __result = (__s1[3] - ((__const unsigned char *) (__const char *) ("W"))[3]); } } __result; }))) : __builtin_strcmp (key, "W")))); }) : strncmp (key, "W", n))) == 0))) { > return arrayflags_writeable_set(self, item); > } > else if (((n==7) && ((__extension__ (__builtin_constant_p (n) && ((__builtin_constant_p (key) && strlen (key) < ((size_t) (n))) || (__builtin_constant_p ("ALIGNED") && strlen ("ALIGNED") < ((size_t) (n)))) ? __extension__ ({ size_t __s1_len, __s2_len; (__builtin_constant_p (key) && __builtin_constant_p ("ALIGNED") && (__s1_len = strlen (key), __s2_len = strlen ("ALIGNED"), (!((size_t)(const void *)((key) + 1) - (size_t)(const void *)(key) == 1) || __s1_len >= 4) && (!((size_t)(const void *)(("ALIGNED") + 1) - (size_t)(const void *)("ALIGNED") == 1) || __s2_len >= 4)) ? __builtin_strcmp (key, "ALIGNED") : (__builtin_constant_p (key) && ((size_t)(const void *)((key) + 1) - (size_t)(const void *)(key) == 1) && (__s1_len = strlen (key), __s1_len < 4) ? (__builtin_constant_p ("ALIGNED") && ((size_t)(const void *)(("ALIGNED") + 1) - (size_t)(const void *)("ALIGNED") == 1) ? __builtin_strcmp (key, "ALIGNED") : (__extension__ ({ __const unsigned char *__s2 = (__const unsigned char *) (__const char *) ("ALIGNED"); register int __result = (((__const unsigned char *) (__const char *) (key))[0] - __s2[0]); if (__s1_len > 0 && __result == 0) { __result = (((__const unsigned char *) (__const char *) (key))[1] - __s2[1]); if (__s1_len > 1 && __result == 0) { __result = (((__const unsigned char *) (__const char *) (key))[2] - __s2[2]); if (__s1_len > 2 && __result == 0) __result = (((__const unsigned char *) (__const char *) (key))[3] - __s2[3]); } } __result; }))) : (__builtin_constant_p ("ALIGNED") && ((size_t)(const void *)(("ALIGNED") + 1) - (size_t)(const void *)("ALIGNED") == 1) && (__s2_len = strlen ("ALIGNED"), __s2_len < 4) ? (__builtin_constant_p (key) && ((size_t)(const void *)((key) + 1) - (size_t)(const void *)(key) == 1) ? __builtin_strcmp (key, "ALIGNED") : (__extension__ ({ __const unsigned char *__s1 = (__const unsigned char *) (__const char *) (key); register int __result = __s1[0] - ((__const unsigned char *) (__const char *) ("ALIGNED"))[0]; if (__s2_len > 0 && __result == 0) { __result = (__s1[1] - ((__const unsigned char *) (__const char *) ("ALIGNED"))[1]); if (__s2_len > 1 && __result == 0) { __result = (__s1[2] - ((__const unsigned char *) (__const char *) ("ALIGNED"))[2]); if (__s2_len > 2 && __result == 0) __result = (__s1[3] - ((__const unsigned char *) (__const char *) ("ALIGNED"))[3]); } } __result; }))) : __builtin_strcmp (key, "ALIGNED")))); }) : strncmp (key, "ALIGNED", n))) == 0)) || > ((n==1) && ((__extension__ (__builtin_constant_p (n) && ((__builtin_constant_p (key) && strlen (key) < ((size_t) (n))) || (__builtin_constant_p ("A") && strlen ("A") < ((size_t) (n)))) ? __extension__ ({ size_t __s1_len, __s2_len; (__builtin_constant_p (key) && __builtin_constant_p ("A") && (__s1_len = strlen (key), __s2_len = strlen ("A"), (!((size_t)(const void *)((key) + 1) - (size_t)(const void *)(key) == 1) || __s1_len >= 4) && (!((size_t)(const void *)(("A") + 1) - (size_t)(const void *)("A") == 1) || __s2_len >= 4)) ? __builtin_strcmp (key, "A") : (__builtin_constant_p (key) && ((size_t)(const void *)((key) + 1) - (size_t)(const void *)(key) == 1) && (__s1_len = strlen (key), __s1_len < 4) ? (__builtin_constant_p ("A") && ((size_t)(const void *)(("A") + 1) - (size_t)(const void *)("A") == 1) ? __builtin_strcmp (key, "A") : (__extension__ ({ __const unsigned char *__s2 = (__const unsigned char *) (__const char *) ("A"); register int __result = (((__const unsigned char *) (__const char *) (key))[0] - __s2[0]); if (__s1_len > 0 && __result == 0) { __result = (((__const unsigned char *) (__const char *) (key))[1] - __s2[1]); if (__s1_len > 1 && __result == 0) { __result = (((__const unsigned char *) (__const char *) (key))[2] - __s2[2]); if (__s1_len > 2 && __result == 0) __result = (((__const unsigned char *) (__const char *) (key))[3] - __s2[3]); } } __result; }))) : (__builtin_constant_p ("A") && ((size_t)(const void *)(("A") + 1) - (size_t)(const void *)("A") == 1) && (__s2_len = strlen ("A"), __s2_len < 4) ? (__builtin_constant_p (key) && ((size_t)(const void *)((key) + 1) - (size_t)(const void *)(key) == 1) ? __builtin_strcmp (key, "A") : (__extension__ ({ __const unsigned char *__s1 = (__const unsigned char *) (__const char *) (key); register int __result = __s1[0] - ((__const unsigned char *) (__const char *) ("A"))[0]; if (__s2_len > 0 && __result == 0) { __result = (__s1[1] - ((__const unsigned char *) (__const char *) ("A"))[1]); if (__s2_len > 1 && __result == 0) { __result = (__s1[2] - ((__const unsigned char *) (__const char *) ("A"))[2]); if (__s2_len > 2 && __result == 0) __result = (__s1[3] - ((__const unsigned char *) (__const char *) ("A"))[3]); } } __result; }))) : __builtin_strcmp (key, "A")))); }) : strncmp (key, "A", n))) == 0))) { > return arrayflags_aligned_set(self, item); > } > else if (((n==12) && ((__extension__ (__builtin_constant_p (n) && ((__builtin_constant_p (key) && strlen (key) < ((size_t) (n))) || (__builtin_constant_p ("UPDATEIFCOPY") && strlen ("UPDATEIFCOPY") < ((size_t) (n)))) ? __extension__ ({ size_t __s1_len, __s2_len; (__builtin_constant_p (key) && __builtin_constant_p ("UPDATEIFCOPY") && (__s1_len = strlen (key), __s2_len = strlen ("UPDATEIFCOPY"), (!((size_t)(const void *)((key) + 1) - (size_t)(const void *)(key) == 1) || __s1_len >= 4) && (!((size_t)(const void *)(("UPDATEIFCOPY") + 1) - (size_t)(const void *)("UPDATEIFCOPY") == 1) || __s2_len >= 4)) ? __builtin_strcmp (key, "UPDATEIFCOPY") : (__builtin_constant_p (key) && ((size_t)(const void *)((key) + 1) - (size_t)(const void *)(key) == 1) && (__s1_len = strlen (key), __s1_len < 4) ? (__builtin_constant_p ("UPDATEIFCOPY") && ((size_t)(const void *)(("UPDATEIFCOPY") + 1) - (size_t)(const void *)("UPDATEIFCOPY") == 1) ? __builtin_strcmp (key, "UPDATEIFCOPY") : (__extension__ ({ __const unsigned char *__s2 = (__const unsigned char *) (__const char *) ("UPDATEIFCOPY"); register int __result = (((__const unsigned char *) (__const char *) (key))[0] - __s2[0]); if (__s1_len > 0 && __result == 0) { __result = (((__const unsigned char *) (__const char *) (key))[1] - __s2[1]); if (__s1_len > 1 && __result == 0) { __result = (((__const unsigned char *) (__const char *) (key))[2] - __s2[2]); if (__s1_len > 2 && __result == 0) __result = (((__const unsigned char *) (__const char *) (key))[3] - __s2[3]); } } __result; }))) : (__builtin_constant_p ("UPDATEIFCOPY") && ((size_t)(const void *)(("UPDATEIFCOPY") + 1) - (size_t)(const void *)("UPDATEIFCOPY") == 1) && (__s2_len = strlen ("UPDATEIFCOPY"), __s2_len < 4) ? (__builtin_constant_p (key) && ((size_t)(const void *)((key) + 1) - (size_t)(const void *)(key) == 1) ? __builtin_strcmp (key, "UPDATEIFCOPY") : (__extension__ ({ __const unsigned char *__s1 = (__const unsigned char *) (__const char *) (key); register int __result = __s1[0] - ((__const unsigned char *) (__const char *) ("UPDATEIFCOPY"))[0]; if (__s2_len > 0 && __result == 0) { __result = (__s1[1] - ((__const unsigned char *) (__const char *) ("UPDATEIFCOPY"))[1]); if (__s2_len > 1 && __result == 0) { __result = (__s1[2] - ((__const unsigned char *) (__const char *) ("UPDATEIFCOPY"))[2]); if (__s2_len > 2 && __result == 0) __result = (__s1[3] - ((__const unsigned char *) (__const char *) ("UPDATEIFCOPY"))[3]); } } __result; }))) : __builtin_strcmp (key, "UPDATEIFCOPY")))); }) : strncmp (key, "UPDATEIFCOPY", n))) == 0)) || > ((n==1) && ((__extension__ (__builtin_constant_p (n) && ((__builtin_constant_p (key) && strlen (key) < ((size_t) (n))) || (__builtin_constant_p ("U") && strlen ("U") < ((size_t) (n)))) ? __extension__ ({ size_t __s1_len, __s2_len; (__builtin_constant_p (key) && __builtin_constant_p ("U") && (__s1_len = strlen (key), __s2_len = strlen ("U"), (!((size_t)(const void *)((key) + 1) - (size_t)(const void *)(key) == 1) || __s1_len >= 4) && (!((size_t)(const void *)(("U") + 1) - (size_t)(const void *)("U") == 1) || __s2_len >= 4)) ? __builtin_strcmp (key, "U") : (__builtin_constant_p (key) && ((size_t)(const void *)((key) + 1) - (size_t)(const void *)(key) == 1) && (__s1_len = strlen (key), __s1_len < 4) ? (__builtin_constant_p ("U") && ((size_t)(const void *)(("U") + 1) - (size_t)(const void *)("U") == 1) ? __builtin_strcmp (key, "U") : (__extension__ ({ __const unsigned char *__s2 = (__const unsigned char *) (__const char *) ("U"); register int __result = (((__const unsigned char *) (__const char *) (key))[0] - __s2[0]); if (__s1_len > 0 && __result == 0) { __result = (((__const unsigned char *) (__const char *) (key))[1] - __s2[1]); if (__s1_len > 1 && __result == 0) { __result = (((__const unsigned char *) (__const char *) (key))[2] - __s2[2]); if (__s1_len > 2 && __result == 0) __result = (((__const unsigned char *) (__const char *) (key))[3] - __s2[3]); } } __result; }))) : (__builtin_constant_p ("U") && ((size_t)(const void *)(("U") + 1) - (size_t)(const void *)("U") == 1) && (__s2_len = strlen ("U"), __s2_len < 4) ? (__builtin_constant_p (key) && ((size_t)(const void *)((key) + 1) - (size_t)(const void *)(key) == 1) ? __builtin_strcmp (key, "U") : (__extension__ ({ __const unsigned char *__s1 = (__const unsigned char *) (__const char *) (key); register int __result = __s1[0] - ((__const unsigned char *) (__const char *) ("U"))[0]; if (__s2_len > 0 && __result == 0) { __result = (__s1[1] - ((__const unsigned char *) (__const char *) ("U"))[1]); if (__s2_len > 1 && __result == 0) { __result = (__s1[2] - ((__const unsigned char *) (__const char *) ("U"))[2]); if (__s2_len > 2 && __result == 0) __result = (__s1[3] - ((__const unsigned char *) (__const char *) ("U"))[3]); } } __result; }))) : __builtin_strcmp (key, "U")))); }) : strncmp (key, "U", n))) == 0))) { > return arrayflags_updateifcopy_set(self, item); > } > > fail: > PyErr_SetString(PyExc_KeyError, "Unknown flag"); > return -1; >} > >static char * >_torf_(int flags, int val) >{ > if ((flags & val) == val) { > return "True"; > } > else { > return "False"; > } >} > >static PyObject * >arrayflags_print(PyArrayFlagsObject *self) >{ > int fl = self->flags; > > return PyString_FromFormat(" %s : %s\n %s : %s\n %s : %s\n" " %s : %s\n %s : %s\n %s : %s", > > "C_CONTIGUOUS", _torf_(fl, 0x0001), > "F_CONTIGUOUS", _torf_(fl, 0x0002), > "OWNDATA", _torf_(fl, 0x0004), > "WRITEABLE", _torf_(fl, 0x0400), > "ALIGNED", _torf_(fl, 0x0100), > "UPDATEIFCOPY", _torf_(fl, 0x1000)); >} > > >static int >arrayflags_compare(PyArrayFlagsObject *self, PyArrayFlagsObject *other) >{ > if (self->flags == other->flags) { > return 0; > } > else if (self->flags < other->flags) { > return -1; > } > else { > return 1; > } >} > > >static PyObject* >arrayflags_richcompare(PyObject *self, PyObject *other, int cmp_op) >{ > PyObject *result = (&_Py_NotImplementedStruct); > int cmp; > > if (cmp_op != 2 && cmp_op != 3) { > PyErr_SetString(PyExc_TypeError, > "undefined comparison for flag object"); > return ((void *)0); > } > > if (((((PyObject*)(other))->ob_type) == (&PyArrayFlags_Type) || PyType_IsSubtype((((PyObject*)(other))->ob_type), (&PyArrayFlags_Type)))) { > cmp = arrayflags_compare((PyArrayFlagsObject *)self, > (PyArrayFlagsObject *)other); > > if (cmp_op == 2) { > result = (cmp == 0) ? ((PyObject *) &_Py_TrueStruct) : ((PyObject *) &_Py_ZeroStruct); > } > else if (cmp_op == 3) { > result = (cmp != 0) ? ((PyObject *) &_Py_TrueStruct) : ((PyObject *) &_Py_ZeroStruct); > } > } > > ( ((PyObject*)(result))->ob_refcnt++); > return result; >} > >static PyMappingMethods arrayflags_as_mapping = { > > (lenfunc)((void *)0), > > > > (binaryfunc)arrayflags_getitem, > (objobjargproc)arrayflags_setitem, >}; > > >static PyObject * >arrayflags_new(PyTypeObject *(__NPY_UNUSED_TAGGEDself) __attribute__ ((__unused__)), PyObject *args, PyObject *(__NPY_UNUSED_TAGGEDkwds) __attribute__ ((__unused__))) >{ > PyObject *arg=((void *)0); > if (!PyArg_UnpackTuple(args, "flagsobj", 0, 1, &arg)) { > return ((void *)0); > } > if ((arg != ((void *)0)) && ((((PyObject*)(arg))->ob_type) == (&PyArray_Type) || PyType_IsSubtype((((PyObject*)(arg))->ob_type), (&PyArray_Type)))) { > return PyArray_NewFlagsObject(arg); > } > else { > return PyArray_NewFlagsObject(((void *)0)); > } >} > >static PyTypeObject PyArrayFlags_Type = { > > > > 1, ((void *)0), > 0, > > "numpy.flagsobj", > sizeof(PyArrayFlagsObject), > 0, > > (destructor)arrayflags_dealloc, > 0, > 0, > 0, > > > > (cmpfunc)arrayflags_compare, > > (reprfunc)arrayflags_print, > 0, > 0, > &arrayflags_as_mapping, > 0, > 0, > (reprfunc)arrayflags_print, > 0, > 0, > 0, > ( (1L<<0) | (1L<<1) | (1L<<3) | (1L<<5) | (1L<<6) | (1L<<7) | (1L<<8) | 0 | (1L<<17) | 0), > 0, > 0, > 0, > arrayflags_richcompare, > 0, > 0, > 0, > 0, > 0, > arrayflags_getsets, > 0, > 0, > 0, > 0, > 0, > 0, > 0, > arrayflags_new, > 0, > 0, > 0, > 0, > 0, > 0, > 0, > 0, > > 0, > >}; ># 21 "numpy/core/src/multiarray/multiarraymodule_onefile.c" 2 ># 1 "numpy/core/src/multiarray/ctors.c" 1 ># 20 "numpy/core/src/multiarray/ctors.c" ># 1 "numpy/core/src/multiarray/shape.h" 1 > > > >typedef struct { > npy_intp perm, stride; >} _npy_stride_sort_item; > > > > > > > >static void >PyArray_CreateSortedStridePerm(PyArrayObject *arr, > _npy_stride_sort_item *strideperm); ># 21 "numpy/core/src/multiarray/ctors.c" 2 > > > ># 1 "numpy/core/src/multiarray/numpymemoryview.h" 1 ># 26 "numpy/core/src/multiarray/numpymemoryview.h" >static int >_numpymemoryview_init(PyObject **typeobject); ># 25 "numpy/core/src/multiarray/ctors.c" 2 > ># 1 "numpy/core/src/private/lowlevel_strided_loops.h" 1 ># 26 "numpy/core/src/private/lowlevel_strided_loops.h" >typedef void (PyArray_StridedTransferFn)(char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp src_itemsize, > void *transferdata); > > > > > >static void >PyArray_FreeStridedTransferData(void *transferdata); > > > > > >static void * >PyArray_CopyStridedTransferData(void *transferdata); ># 62 "numpy/core/src/private/lowlevel_strided_loops.h" >static PyArray_StridedTransferFn * >PyArray_GetStridedCopyFn(npy_intp aligned, npy_intp src_stride, > npy_intp dst_stride, npy_intp itemsize); ># 76 "numpy/core/src/private/lowlevel_strided_loops.h" >static PyArray_StridedTransferFn * >PyArray_GetStridedCopySwapFn(npy_intp aligned, npy_intp src_stride, > npy_intp dst_stride, npy_intp itemsize); ># 90 "numpy/core/src/private/lowlevel_strided_loops.h" >static PyArray_StridedTransferFn * >PyArray_GetStridedCopySwapPairFn(npy_intp aligned, npy_intp src_stride, > npy_intp dst_stride, npy_intp itemsize); ># 104 "numpy/core/src/private/lowlevel_strided_loops.h" >static int >PyArray_GetStridedZeroPadCopyFn(int aligned, > npy_intp src_stride, npy_intp dst_stride, > npy_intp src_itemsize, npy_intp dst_itemsize, > PyArray_StridedTransferFn **outstransfer, > void **outtransferdata); > > > > > > > >static PyArray_StridedTransferFn * >PyArray_GetStridedNumericCastFn(npy_intp aligned, npy_intp src_stride, > npy_intp dst_stride, > int src_type_num, int dst_type_num); ># 167 "numpy/core/src/private/lowlevel_strided_loops.h" >static int >PyArray_GetDTypeTransferFunction(int aligned, > npy_intp src_stride, npy_intp dst_stride, > PyArray_Descr *src_dtype, PyArray_Descr *dst_dtype, > int move_references, > PyArray_StridedTransferFn **out_stransfer, > void **out_transferdata, > int *out_needs_api); ># 219 "numpy/core/src/private/lowlevel_strided_loops.h" >static npy_intp >PyArray_TransferNDimToStrided(npy_intp ndim, > char *dst, npy_intp dst_stride, > char *src, npy_intp *src_strides, npy_intp src_strides_inc, > npy_intp *coords, npy_intp coords_inc, > npy_intp *shape, npy_intp shape_inc, > npy_intp count, npy_intp src_itemsize, > PyArray_StridedTransferFn *stransfer, > void *transferdata); > >static npy_intp >PyArray_TransferStridedToNDim(npy_intp ndim, > char *dst, npy_intp *dst_strides, npy_intp dst_strides_inc, > char *src, npy_intp src_stride, > npy_intp *coords, npy_intp coords_inc, > npy_intp *shape, npy_intp shape_inc, > npy_intp count, npy_intp src_itemsize, > PyArray_StridedTransferFn *stransfer, > void *transferdata); ># 27 "numpy/core/src/multiarray/ctors.c" 2 ># 36 "numpy/core/src/multiarray/ctors.c" >typedef int (*next_element)(void **, void *, PyArray_Descr *, void *); >typedef int (*skip_separator)(void **, const char *, void *); > >static int >fromstr_next_element(char **s, void *dptr, PyArray_Descr *dtype, > const char *end) >{ > int r = dtype->f->fromstr(*s, dptr, s, dtype); > if (end != ((void *)0) && *s > end) { > return -1; > } > return r; >} > >static int >fromfile_next_element(FILE **fp, void *dptr, PyArray_Descr *dtype, > void *(__NPY_UNUSED_TAGGEDstream_data) __attribute__ ((__unused__))) >{ > > return dtype->f->scanfunc(*fp, dptr, ((void *)0), dtype); >} > > > > > >static char * >swab_separator(char *sep) >{ > int skip_space = 0; > char *s, *start; > > s = start = malloc(strlen(sep)+3); > > if (*sep != '\0' && !((*__ctype_b_loc ())[(int) ((*sep))] & (unsigned short int) _ISspace)) { > *s = ' '; s++; > } > while (*sep != '\0') { > if (((*__ctype_b_loc ())[(int) ((*sep))] & (unsigned short int) _ISspace)) { > if (skip_space) { > sep++; > } > else { > *s = ' '; > s++; > sep++; > skip_space = 1; > } > } > else { > *s = *sep; > s++; > sep++; > skip_space = 0; > } > } > > if (s != start && s[-1] == ' ') { > *s = ' '; > s++; > } > *s = '\0'; > return start; >} ># 112 "numpy/core/src/multiarray/ctors.c" >static int >fromstr_skip_separator(char **s, const char *sep, const char *end) >{ > char *string = *s; > int result = 0; > while (1) { > char c = *string; > if (c == '\0' || (end != ((void *)0) && string >= end)) { > result = -1; > break; > } > else if (*sep == '\0') { > if (string != *s) { > > result = 0; > break; > } > else { > > result = -2; > break; > } > } > else if (*sep == ' ') { > > if (!((*__ctype_b_loc ())[(int) ((c))] & (unsigned short int) _ISspace)) { > sep++; > continue; > } > } > else if (*sep != c) { > result = -2; > break; > } > else { > sep++; > } > string++; > } > *s = string; > return result; >} > >static int >fromfile_skip_separator(FILE **fp, const char *sep, void *(__NPY_UNUSED_TAGGEDstream_data) __attribute__ ((__unused__))) >{ > int result = 0; > const char *sep_start = sep; > > while (1) { > int c = fgetc(*fp); > > if (c == (-1)) { > result = -1; > break; > } > else if (*sep == '\0') { > ungetc(c, *fp); > if (sep != sep_start) { > > result = 0; > break; > } > else { > > result = -2; > break; > } > } > else if (*sep == ' ') { > > if (!((*__ctype_b_loc ())[(int) ((c))] & (unsigned short int) _ISspace)) { > sep++; > sep_start++; > ungetc(c, *fp); > } > else if (sep == sep_start) { > sep_start--; > } > } > else if (*sep != c) { > ungetc(c, *fp); > result = -2; > break; > } > else { > sep++; > } > } > return result; >} ># 212 "numpy/core/src/multiarray/ctors.c" >static int >_update_descr_and_dimensions(PyArray_Descr **des, npy_intp *newdims, > npy_intp *newstrides, int oldnd) >{ > PyArray_Descr *old; > int newnd; > int numnew; > npy_intp *mydim; > int i; > int tuple; > > old = *des; > *des = old->subarray->base; > > > mydim = newdims + oldnd; > tuple = ((((((PyObject*)(old->subarray->shape))->ob_type))->tp_flags & ((1L<<26))) != 0); > if (tuple) { > numnew = (((PyVarObject*)(old->subarray->shape))->ob_size); > } > else { > numnew = 1; > } > > > newnd = oldnd + numnew; > if (newnd > 32) { > goto finish; > } > if (tuple) { > for (i = 0; i < numnew; i++) { > mydim[i] = (npy_intp) PyInt_AsLong( > (((PyTupleObject *)(old->subarray->shape))->ob_item[i])); > } > } > else { > mydim[0] = (npy_intp) PyInt_AsLong(old->subarray->shape); > } > > if (newstrides) { > npy_intp tempsize; > npy_intp *mystrides; > > mystrides = newstrides + oldnd; > > tempsize = (*des)->elsize; > for (i = numnew - 1; i >= 0; i--) { > mystrides[i] = tempsize; > tempsize *= mydim[i] ? mydim[i] : 1; > } > } > > finish: > ( ((PyObject*)(*des))->ob_refcnt++); > do { if ( --((PyObject*)(old))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(old)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(old)))); } while (0); > return newnd; >} > >static void >_unaligned_strided_byte_copy(char *dst, npy_intp outstrides, char *src, > npy_intp instrides, npy_intp N, int elsize) >{ > npy_intp i; > char *tout = dst; > char *tin = src; ># 286 "numpy/core/src/multiarray/ctors.c" > switch(elsize) { > case 8: > for(i=0; i<N; i++) { memcpy(tout, tin, 8); tin += instrides; tout += outstrides; } return; > case 4: > for(i=0; i<N; i++) { memcpy(tout, tin, 4); tin += instrides; tout += outstrides; } return; > case 1: > for(i=0; i<N; i++) { memcpy(tout, tin, 1); tin += instrides; tout += outstrides; } return; > case 2: > for(i=0; i<N; i++) { memcpy(tout, tin, 2); tin += instrides; tout += outstrides; } return; > case 16: > for(i=0; i<N; i++) { memcpy(tout, tin, 16); tin += instrides; tout += outstrides; } return; > default: > for(i=0; i<N; i++) { memcpy(tout, tin, elsize); tin += instrides; tout += outstrides; } return; > } > > >} > >static void >_strided_byte_swap(void *p, npy_intp stride, npy_intp n, int size) >{ > char *a, *b, c = 0; > int j, m; > > switch(size) { > case 1: > break; > case 4: > for (a = (char*)p; n > 0; n--, a += stride - 1) { > b = a + 3; > c = *a; *a++ = *b; *b-- = c; > c = *a; *a = *b; *b = c; > } > break; > case 8: > for (a = (char*)p; n > 0; n--, a += stride - 3) { > b = a + 7; > c = *a; *a++ = *b; *b-- = c; > c = *a; *a++ = *b; *b-- = c; > c = *a; *a++ = *b; *b-- = c; > c = *a; *a = *b; *b = c; > } > break; > case 2: > for (a = (char*)p; n > 0; n--, a += stride) { > b = a + 1; > c = *a; *a = *b; *b = c; > } > break; > default: > m = size/2; > for (a = (char *)p; n > 0; n--, a += stride - m) { > b = a + (size - 1); > for (j = 0; j < m; j++) { > c=*a; *a++ = *b; *b-- = c; > } > } > break; > } >} > >static void >byte_swap_vector(void *p, npy_intp n, int size) >{ > _strided_byte_swap(p, (npy_intp) size, n, size); > return; >} > > >static void >copy_and_swap(void *dst, void *src, int itemsize, npy_intp numitems, > npy_intp srcstrides, int swap) >{ > npy_intp i; > char *s1 = (char *)src; > char *d1 = (char *)dst; > > > if ((numitems == 1) || (itemsize == srcstrides)) { > memcpy(d1, s1, itemsize*numitems); > } > else { > for (i = 0; i < numitems; i++) { > memcpy(d1, s1, itemsize); > d1 += itemsize; > s1 += srcstrides; > } > } > > if (swap) { > byte_swap_vector(d1, numitems, itemsize); > } >} > > >static void >_get_array_memory_extents(PyArrayObject *arr, > npy_uintp *out_start, npy_uintp *out_end) >{ > npy_uintp start, end; > npy_intp idim, ndim = (((PyArrayObject *)(arr))->nd); > npy_intp *dimensions = (((PyArrayObject *)(arr))->dimensions), > *strides = (((PyArrayObject *)(arr))->strides); > > > start = end = (npy_uintp)((void *)(((PyArrayObject *)(arr))->data)); > for (idim = 0; idim < ndim; ++idim) { > npy_intp stride = strides[idim], dim = dimensions[idim]; > > if (dim == 0) { > *out_start = *out_end = (npy_uintp)((void *)(((PyArrayObject *)(arr))->data)); > return; > } > > else { > if (stride > 0) { > end += stride*(dim-1); > } > else if (stride < 0) { > start += stride*(dim-1); > } > } > } > > > *out_start = start; > *out_end = end + arr->descr->elsize; >} > > >static int >_arrays_overlap(PyArrayObject *arr1, PyArrayObject *arr2) >{ > npy_uintp start1 = 0, start2 = 0, end1 = 0, end2 = 0; > > _get_array_memory_extents(arr1, &start1, &end1); > _get_array_memory_extents(arr2, &start2, &end2); > > return (start1 < end2) && (start2 < end1); >} ># 439 "numpy/core/src/multiarray/ctors.c" >static int >PyArray_MoveInto(PyArrayObject *dst, PyArrayObject *src) >{ ># 461 "numpy/core/src/multiarray/ctors.c" > if (((void *)(((PyArrayObject *)(src))->data)) == ((void *)(((PyArrayObject *)(dst))->data)) && > (((PyArrayObject *)(src))->descr) == (((PyArrayObject *)(dst))->descr) && > (((PyArrayObject *)(src))->nd) == (((PyArrayObject *)(dst))->nd) && > PyArray_CompareLists((((PyArrayObject *)(src))->dimensions), > (((PyArrayObject *)(dst))->dimensions), > (((PyArrayObject *)(src))->nd)) && > PyArray_CompareLists((((PyArrayObject *)(src))->strides), > (((PyArrayObject *)(dst))->strides), > (((PyArrayObject *)(src))->nd))) { > > return 0; > } ># 481 "numpy/core/src/multiarray/ctors.c" > if (((((PyArrayObject *)(dst))->nd) == 1 && > (((PyArrayObject *)(src))->nd) == 1 && > ((((PyArrayObject *)(dst))->strides)[0]) > 0 && > ((((PyArrayObject *)(src))->strides)[0]) > 0) || > !_arrays_overlap(dst, src)) { > return PyArray_CopyInto(dst, src); > } > else { > PyArrayObject *tmp; > int ret; > > > > > tmp = (PyArrayObject *)PyArray_NewLikeArray(dst, > NPY_KEEPORDER, ((void *)0), 0); > if (tmp == ((void *)0)) { > return -1; > } > ret = PyArray_CopyInto(tmp, src); > if (ret == 0) { > ret = PyArray_CopyInto(dst, tmp); > } > do { if ( --((PyObject*)(tmp))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(tmp)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(tmp)))); } while (0); > return ret; > } >} > > > > >static int >setArrayFromSequence(PyArrayObject *a, PyObject *s, int dim, npy_intp offset) >{ > Py_ssize_t i, slen; > int res = -1; > > > > > > > > ( ((PyObject*)(s))->ob_refcnt++); > > if (((((PyObject*)(s))->ob_type) == (&PyArray_Type) || PyType_IsSubtype((((PyObject*)(s))->ob_type), (&PyArray_Type))) && !((((PyObject*)(s))->ob_type == &PyArray_Type))) { > > > > > > > s = PyArray_EnsureArray(s); > if (s == ((void *)0)) { > goto fail; > } > } > > if (dim > a->nd) { > PyErr_Format(PyExc_ValueError, > "setArrayFromSequence: sequence/array dimensions mismatch."); > goto fail; > } > > slen = PySequence_Size(s); > if (slen < 0) { > goto fail; > } > > > > > if (slen != a->dimensions[dim] && slen != 1) { > PyErr_Format(PyExc_ValueError, > "cannot copy sequence with size %d to array axis " > "with dimension %d", (int)slen, (int)a->dimensions[dim]); > goto fail; > } > > > if (slen == 1) { > PyObject *o; > npy_intp alen = a->dimensions[dim]; > > o = PySequence_GetItem(s, 0); > if (o == ((void *)0)) { > goto fail; > } > for (i = 0; i < alen; i++) { > if ((a->nd - dim) > 1) { > res = setArrayFromSequence(a, o, dim+1, offset); > } > else { > res = a->descr->f->setitem(o, (a->data + offset), a); > } > if (res < 0) { > do { if ( --((PyObject*)(o))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(o)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(o)))); } while (0); > goto fail; > } > offset += a->strides[dim]; > } > do { if ( --((PyObject*)(o))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(o)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(o)))); } while (0); > } > > else { > for (i = 0; i < slen; i++) { > PyObject *o = PySequence_GetItem(s, i); > if (o == ((void *)0)) { > goto fail; > } > if ((a->nd - dim) > 1) { > res = setArrayFromSequence(a, o, dim+1, offset); > } > else { > res = a->descr->f->setitem(o, (a->data + offset), a); > } > do { if ( --((PyObject*)(o))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(o)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(o)))); } while (0); > if (res < 0) { > goto fail; > } > offset += a->strides[dim]; > } > } > > do { if ( --((PyObject*)(s))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(s)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(s)))); } while (0); > return 0; > > fail: > do { if ( --((PyObject*)(s))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(s)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(s)))); } while (0); > return res; >} > >static int >PyArray_AssignFromSequence(PyArrayObject *self, PyObject *v) >{ > if (!PySequence_Check(v)) { > PyErr_SetString(PyExc_ValueError, > "assignment from non-sequence"); > return -1; > } > if (self->nd == 0) { > PyErr_SetString(PyExc_ValueError, > "assignment to 0-d array"); > return -1; > } > return setArrayFromSequence(self, v, 0, 0); >} > > > > > > >static int >discover_itemsize(PyObject *s, int nd, int *itemsize) >{ > int n, r, i; > > if (((((PyObject*)(s))->ob_type) == (&PyArray_Type) || PyType_IsSubtype((((PyObject*)(s))->ob_type), (&PyArray_Type)))) { > *itemsize = (((*itemsize)>((((PyArrayObject *)(s))->descr->elsize)))?(*itemsize):((((PyArrayObject *)(s))->descr->elsize))); > return 0; > } > > if ((nd == 0) || ((((((PyObject*)(s))->ob_type))->tp_flags & ((1L<<27))) != 0) || > > > > ((((PyObject*)(s))->ob_type) == &PyBuffer_Type) || > > ((((((PyObject*)(s))->ob_type))->tp_flags & ((1L<<28))) != 0)) { > > > n = PyObject_Size(s); > if (n == -1) { > PyErr_Clear(); > } > else { > *itemsize = (((*itemsize)>(n))?(*itemsize):(n)); > } > return 0; > } > > n = PySequence_Size(s); > for (i = 0; i < n; i++) { > PyObject *e = PySequence_GetItem(s,i); > > if (e == ((void *)0)) { > return -1; > } > > r = discover_itemsize(e,nd-1,itemsize); > do { if ( --((PyObject*)(e))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(e)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(e)))); } while (0); > if (r == -1) { > return -1; > } > } > > return 0; >} > > > > > >static int >discover_dimensions(PyObject *s, int *maxndim, npy_intp *d, int check_it, > int stop_at_string, int stop_at_tuple, > int *out_is_object) >{ > PyObject *e; > int r, n, i; > > Py_buffer buffer_view; > > > if (*maxndim == 0) { > return 0; > } > > > if (((((PyObject*)(s))->ob_type) == (&PyArray_Type) || PyType_IsSubtype((((PyObject*)(s))->ob_type), (&PyArray_Type)))) { > if ((((PyArrayObject *)(s))->nd) < *maxndim) { > *maxndim = (((PyArrayObject *)(s))->nd); > } > > for (i=0; i<*maxndim; i++) { > d[i] = ((((PyArrayObject *)(s))->dimensions)[i]); > } > return 0; > } > > > if ((((((PyObject*)(s))->ob_type) == (&PyGenericArrType_Type) || PyType_IsSubtype((((PyObject*)(s))->ob_type), (&PyGenericArrType_Type))))) { > *maxndim = 0; > return 0; > } > > > if (!PySequence_Check(s) || > > > > ((s)->ob_type == &PyInstance_Type) || > > PySequence_Size(s) < 0) { > *maxndim = 0; > PyErr_Clear(); > return 0; > } > > > if (((((((PyObject*)(s))->ob_type))->tp_flags & ((1L<<27))) != 0) || > > > ((((PyObject*)(s))->ob_type) == &PyBuffer_Type) || > > ((((((PyObject*)(s))->ob_type))->tp_flags & ((1L<<28))) != 0)) { > if (stop_at_string) { > *maxndim = 0; > } > else { > d[0] = PySequence_Size(s); > *maxndim = 1; > } > return 0; > } > > > if (stop_at_tuple && ((((((PyObject*)(s))->ob_type))->tp_flags & ((1L<<26))) != 0)) { > *maxndim = 0; > return 0; > } > > > > > memset(&buffer_view, 0, sizeof(Py_buffer)); > if (PyObject_GetBuffer(s, &buffer_view, (0x0010 | 0x0008)) == 0 || > PyObject_GetBuffer(s, &buffer_view, 0x0008) == 0) { > int nd = buffer_view.ndim; > if (nd < *maxndim) { > *maxndim = nd; > } > for (i=0; i<*maxndim; i++) { > d[i] = buffer_view.shape[i]; > } > PyBuffer_Release(&buffer_view); > return 0; > } > else if (PyObject_GetBuffer(s, &buffer_view, 0) == 0) { > d[0] = buffer_view.len; > *maxndim = 1; > PyBuffer_Release(&buffer_view); > return 0; > } > else { > PyErr_Clear(); > } > > > > if ((e = PyObject_GetAttrString(s, "__array_struct__")) != ((void *)0)) { > int nd = -1; > if (NpyCapsule_Check(e)) { > PyArrayInterface *inter; > inter = (PyArrayInterface *)NpyCapsule_AsVoidPtr(e); > if (inter->two == 2) { > nd = inter->nd; > if (nd >= 0) { > if (nd < *maxndim) { > *maxndim = nd; > } > for (i=0; i<*maxndim; i++) { > d[i] = inter->shape[i]; > } > } > } > } > do { if ( --((PyObject*)(e))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(e)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(e)))); } while (0); > if (nd >= 0) { > return 0; > } > } > else { > PyErr_Clear(); > } > > > if ((e = PyObject_GetAttrString(s, "__array_interface__")) != ((void *)0)) { > int nd = -1; > if (((((((PyObject*)(e))->ob_type))->tp_flags & ((1L<<29))) != 0)) { > PyObject *new; > new = PyDict_GetItemString(e, "shape"); > if (new && ((((((PyObject*)(new))->ob_type))->tp_flags & ((1L<<26))) != 0)) { > nd = (((PyVarObject*)(new))->ob_size); > if (nd < *maxndim) { > *maxndim = nd; > } > for (i=0; i<*maxndim; i++) { > > d[i] = PyInt_AsSsize_t((((PyTupleObject *)(new))->ob_item[i])); > > > > if (d[i] < 0) { > PyErr_SetString(PyExc_RuntimeError, > "Invalid shape in __array_interface__"); > do { if ( --((PyObject*)(e))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(e)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(e)))); } while (0); > return -1; > } > } > } > } > do { if ( --((PyObject*)(e))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(e)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(e)))); } while (0); > if (nd >= 0) { > return 0; > } > } > else { > PyErr_Clear(); > } > > n = PySequence_Size(s); > > if (n < 0) { > return -1; > } > > d[0] = n; > > > if (n == 0 || *maxndim == 1) { > *maxndim = 1; > return 0; > } > else { > npy_intp dtmp[32]; > int j, maxndim_m1 = *maxndim - 1; > > if ((e = PySequence_GetItem(s, 0)) == ((void *)0)) { ># 873 "numpy/core/src/multiarray/ctors.c" > if (PyErr_ExceptionMatches(PyExc_KeyError)) { > PyErr_Clear(); > *maxndim = 0; > *out_is_object = 1; > return 0; > } > else { > return -1; > } > } > r = discover_dimensions(e, &maxndim_m1, d + 1, check_it, > stop_at_string, stop_at_tuple, > out_is_object); > do { if ( --((PyObject*)(e))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(e)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(e)))); } while (0); > if (r < 0) { > return r; > } > > > *maxndim = maxndim_m1 + 1; > for (i = 1; i < n; ++i) { > > if ((e = PySequence_GetItem(s, i)) == ((void *)0)) { > > if (PyErr_ExceptionMatches(PyExc_KeyError)) { > PyErr_Clear(); > *maxndim = 0; > *out_is_object = 1; > return 0; > } > else { > return -1; > } > } > r = discover_dimensions(e, &maxndim_m1, dtmp, check_it, > stop_at_string, stop_at_tuple, > out_is_object); > do { if ( --((PyObject*)(e))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(e)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(e)))); } while (0); > if (r < 0) { > return r; > } > > > for (j = 0; j < maxndim_m1; ++j) { > if (dtmp[j] != d[j+1]) { > maxndim_m1 = j; > break; > } > } > } > > > > > if (maxndim_m1 + 1 < *maxndim) { > *out_is_object = 1; > *maxndim = maxndim_m1 + 1; > } > } > > return 0; >} > > > > > > >static PyObject * >PyArray_NewFromDescr(PyTypeObject *subtype, PyArray_Descr *descr, int nd, > npy_intp *dims, npy_intp *strides, void *data, > int flags, PyObject *obj) >{ > PyArrayObject *self; > int i; > size_t sd; > npy_intp largest; > npy_intp size; > > if (descr->subarray) { > PyObject *ret; > npy_intp newdims[2*32]; > npy_intp *newstrides = ((void *)0); > memcpy(newdims, dims, nd*sizeof(npy_intp)); > if (strides) { > newstrides = newdims + 32; > memcpy(newstrides, strides, nd*sizeof(npy_intp)); > } > nd =_update_descr_and_dimensions(&descr, newdims, > newstrides, nd); > ret = PyArray_NewFromDescr(subtype, descr, nd, newdims, > newstrides, > data, flags, obj); > return ret; > } > > if ((unsigned int)nd > (unsigned int)32) { > PyErr_Format(PyExc_ValueError, > "number of dimensions must be within [0, %d]", > 32); > do { if ( --((PyObject*)(descr))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(descr)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(descr)))); } while (0); > return ((void *)0); > } > > > size = 1; > sd = (size_t) descr->elsize; > if (sd == 0) { > if (!(((((PyArray_Descr*)(descr))->type_num) == NPY_STRING) || ((((PyArray_Descr*)(descr))->type_num) == NPY_UNICODE))) { > PyErr_SetString(PyExc_TypeError, "Empty data-type"); > do { if ( --((PyObject*)(descr))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(descr)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(descr)))); } while (0); > return ((void *)0); > } > do { PyArray_Descr *_new_; _new_ = PyArray_DescrNew(descr); do { if ((descr) == ((void *)0)) ; else do { if ( --((PyObject*)(descr))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(descr)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(descr)))); } while (0); } while (0); descr = _new_; } while(0); > if (descr->type_num == NPY_STRING) { > sd = descr->elsize = 1; > } > else { > sd = descr->elsize = sizeof(npy_ucs4); > } > } > > largest = 9223372036854775807L / sd; > for (i = 0; i < nd; i++) { > npy_intp dim = dims[i]; > > if (dim == 0) { > > > > > continue; > } > > if (dim < 0) { > PyErr_SetString(PyExc_ValueError, > "negative dimensions " "are not allowed"); > > do { if ( --((PyObject*)(descr))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(descr)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(descr)))); } while (0); > return ((void *)0); > } > > if (dim > largest) { > PyErr_SetString(PyExc_ValueError, > "array is too big."); > do { if ( --((PyObject*)(descr))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(descr)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(descr)))); } while (0); > return ((void *)0); > } > size *= dim; > largest /= dim; > } > > self = (PyArrayObject *) subtype->tp_alloc(subtype, 0); > if (self == ((void *)0)) { > do { if ( --((PyObject*)(descr))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(descr)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(descr)))); } while (0); > return ((void *)0); > } > self->nd = nd; > self->dimensions = ((void *)0); > self->data = ((void *)0); > if (data == ((void *)0)) { > self->flags = (0x0001 | (0x0100 | 0x0400)); > if (flags) { > self->flags |= 0x0002; > if (nd > 1) { > self->flags &= ~0x0001; > } > flags = 0x0002; > } > } > else { > self->flags = (flags & ~0x1000); > } > self->descr = descr; > self->base = (PyObject *)((void *)0); > self->weakreflist = (PyObject *)((void *)0); > > if (nd > 0) { > self->dimensions = ((npy_intp *)PyMem_Malloc(2*nd*sizeof(npy_intp))); > if (self->dimensions == ((void *)0)) { > PyErr_NoMemory(); > goto fail; > } > self->strides = self->dimensions + nd; > memcpy(self->dimensions, dims, sizeof(npy_intp)*nd); > if (strides == ((void *)0)) { > sd = _array_fill_strides(self->strides, dims, nd, sd, > flags, &(self->flags)); > } > else { > > > > > memcpy(self->strides, strides, sizeof(npy_intp)*nd); > sd *= size; > } > } > else { > self->dimensions = self->strides = ((void *)0); > self->flags |= 0x0002; > } > > if (data == ((void *)0)) { > > > > > > > if (sd == 0) { > sd = descr->elsize; > } > data = ((char *)malloc(sd)); > if (data == ((void *)0)) { > PyErr_NoMemory(); > goto fail; > } > self->flags |= 0x0004; > > > > > > if ((((descr)->flags & (0x08)) == (0x08))) { > memset(data, 0, sd); > } > } > else { > > > > > self->flags &= ~0x0004; > } > self->data = data; > > > > > > if (strides != ((void *)0)) { > PyArray_UpdateFlags(self, (0x0001 | 0x0002 | 0x0100)); > } > > > > > > > if ((subtype != &PyArray_Type)) { > PyObject *res, *func, *args; > > func = PyObject_GetAttrString((PyObject *)self, "__array_finalize__"); > if (func && func != (&_Py_NoneStruct)) { > if (NpyCapsule_Check(func)) { > > PyArray_FinalizeFunc *cfunc; > cfunc = NpyCapsule_AsVoidPtr(func); > do { if ( --((PyObject*)(func))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(func)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(func)))); } while (0); > if (cfunc(self, obj) < 0) { > goto fail; > } > } > else { > args = PyTuple_New(1); > if (obj == ((void *)0)) { > obj=(&_Py_NoneStruct); > } > ( ((PyObject*)(obj))->ob_refcnt++); > (((PyTupleObject *)(args))->ob_item[0] = obj); > res = PyObject_Call(func, args, ((void *)0)); > do { if ( --((PyObject*)(args))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(args)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(args)))); } while (0); > do { if ( --((PyObject*)(func))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(func)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(func)))); } while (0); > if (res == ((void *)0)) { > goto fail; > } > else { > do { if ( --((PyObject*)(res))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(res)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(res)))); } while (0); > } > } > } > else do { if ((func) == ((void *)0)) ; else do { if ( --((PyObject*)(func))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(func)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(func)))); } while (0); } while (0); > } > return (PyObject *)self; > > fail: > do { if ( --((PyObject*)(self))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(self)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(self)))); } while (0); > return ((void *)0); >} ># 1179 "numpy/core/src/multiarray/ctors.c" >static PyObject * >PyArray_NewLikeArray(PyArrayObject *prototype, NPY_ORDER order, > PyArray_Descr *dtype, int subok) >{ > PyObject *ret = ((void *)0); > int ndim = (((PyArrayObject *)(prototype))->nd); > > > if (dtype == ((void *)0)) { > dtype = (((PyArrayObject *)(prototype))->descr); > ( ((PyObject*)(dtype))->ob_refcnt++); > } > > > switch (order) { > case NPY_ANYORDER: > order = (((((PyArrayObject *)(prototype))->flags & (0x0002)) == (0x0002)) && ((((PyArrayObject *)(prototype))->nd) > 1)) ? > NPY_FORTRANORDER : NPY_CORDER; > break; > case NPY_KEEPORDER: > if (((((PyArrayObject *)(prototype))->flags & (0x0001)) == (0x0001)) || ndim <= 1) { > order = NPY_CORDER; > break; > } > else if (((((PyArrayObject *)(prototype))->flags & (0x0002)) == (0x0002))) { > order = NPY_FORTRANORDER; > break; > } > break; > default: > break; > } > > > if (order != NPY_KEEPORDER) { > ret = PyArray_NewFromDescr(subok ? (((PyObject*)(prototype))->ob_type) : &PyArray_Type, > dtype, > ndim, > (((PyArrayObject *)(prototype))->dimensions), > ((void *)0), > ((void *)0), > order, > subok ? (PyObject *)prototype : ((void *)0)); > } > > else { > npy_intp strides[32], stride; > npy_intp *shape = (((PyArrayObject *)(prototype))->dimensions); > _npy_stride_sort_item strideperm[32]; > int i; > > PyArray_CreateSortedStridePerm(prototype, strideperm); > > > stride = dtype->elsize; > for (i = ndim-1; i >= 0; --i) { > npy_intp i_perm = strideperm[i].perm; > strides[i_perm] = stride; > stride *= shape[i_perm]; > } > > > ret = PyArray_NewFromDescr( subok ? (((PyObject*)(prototype))->ob_type) : &PyArray_Type, > dtype, > ndim, > shape, > strides, > ((void *)0), > 0, > subok ? (PyObject *)prototype : ((void *)0)); > } > > return ret; >} > > > > >static PyObject * >PyArray_New(PyTypeObject *subtype, int nd, npy_intp *dims, int type_num, > npy_intp *strides, void *data, int itemsize, int flags, > PyObject *obj) >{ > PyArray_Descr *descr; > PyObject *new; > > descr = PyArray_DescrFromType(type_num); > if (descr == ((void *)0)) { > return ((void *)0); > } > if (descr->elsize == 0) { > if (itemsize < 1) { > PyErr_SetString(PyExc_ValueError, > "data type must provide an itemsize"); > do { if ( --((PyObject*)(descr))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(descr)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(descr)))); } while (0); > return ((void *)0); > } > do { PyArray_Descr *_new_; _new_ = PyArray_DescrNew(descr); do { if ((descr) == ((void *)0)) ; else do { if ( --((PyObject*)(descr))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(descr)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(descr)))); } while (0); } while (0); descr = _new_; } while(0); > descr->elsize = itemsize; > } > new = PyArray_NewFromDescr(subtype, descr, nd, dims, strides, > data, flags, obj); > return new; >} > > >static int >_array_from_buffer_3118(PyObject *obj, PyObject **out) >{ > > > PyObject *memoryview; > Py_buffer *view; > PyArray_Descr *descr = ((void *)0); > PyObject *r; > int nd, flags, k; > Py_ssize_t d; > npy_intp shape[32], strides[32]; > > memoryview = PyMemoryView_FromObject(obj); > if (memoryview == ((void *)0)) { > PyErr_Clear(); > return -1; > } > > view = (&((PyMemoryViewObject *)(memoryview))->view); > if (view->format != ((void *)0)) { > descr = _descriptor_from_pep3118_format(view->format); > if (descr == ((void *)0)) { > PyObject *msg; > msg = PyString_FromFormat("Invalid PEP 3118 format string: '%s'", > view->format); > PyErr_WarnEx(PyExc_RuntimeWarning, (((PyStringObject *)(msg))->ob_sval), 0); > do { if ( --((PyObject*)(msg))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(msg)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(msg)))); } while (0); > goto fail; > } > > > if (descr->elsize != view->itemsize) { > PyErr_WarnEx(PyExc_RuntimeWarning, > "Item size computed from the PEP 3118 buffer format " > "string does not match the actual item size.", > 0); > goto fail; > } > } > else { > descr = PyArray_DescrNewFromType(NPY_STRING); > descr->elsize = view->itemsize; > } > > if (view->shape != ((void *)0)) { > nd = view->ndim; > if (nd >= 32 || nd < 0) { > goto fail; > } > for (k = 0; k < nd; ++k) { > if (k >= 32) { > goto fail; > } > shape[k] = view->shape[k]; > } > if (view->strides != ((void *)0)) { > for (k = 0; k < nd; ++k) { > strides[k] = view->strides[k]; > } > } > else { > d = view->len; > for (k = 0; k < nd; ++k) { > d /= view->shape[k]; > strides[k] = d; > } > } > } > else { > nd = 1; > shape[0] = view->len / view->itemsize; > strides[0] = view->itemsize; > } > > flags = (0x0100 | 0x0400) & (view->readonly ? ~0x0400 : ~0); > r = PyArray_NewFromDescr(&PyArray_Type, descr, > nd, shape, strides, view->buf, > flags, ((void *)0)); > ((PyArrayObject *)r)->base = memoryview; > PyArray_UpdateFlags((PyArrayObject *)r, (0x0001 | 0x0002 | 0x0100)); > > *out = r; > return 0; > >fail: > do { if ((descr) == ((void *)0)) ; else do { if ( --((PyObject*)(descr))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(descr)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(descr)))); } while (0); } while (0); > do { if ( --((PyObject*)(memoryview))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(memoryview)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(memoryview)))); } while (0); > return -1; > > > > >} ># 1436 "numpy/core/src/multiarray/ctors.c" >static int >PyArray_GetArrayParamsFromObject(PyObject *op, > PyArray_Descr *requested_dtype, > npy_bool writeable, > PyArray_Descr **out_dtype, > int *out_ndim, npy_intp *out_dims, > PyArrayObject **out_arr, PyObject *context) >{ > PyObject *tmp; > > > if (((((PyObject*)(op))->ob_type) == (&PyArray_Type) || PyType_IsSubtype((((PyObject*)(op))->ob_type), (&PyArray_Type)))) { > if (writeable && !((((PyArrayObject *)((PyArrayObject *)op))->flags & (0x0400)) == (0x0400))) { > PyErr_SetString(PyExc_RuntimeError, > "cannot write to array"); > return -1; > } > ( ((PyObject*)(op))->ob_refcnt++); > *out_arr = (PyArrayObject *)op; > return 0; > } > > > if ((((((PyObject*)(op))->ob_type) == (&PyGenericArrType_Type) || PyType_IsSubtype((((PyObject*)(op))->ob_type), (&PyGenericArrType_Type))))) { > if (writeable) { > PyErr_SetString(PyExc_RuntimeError, > "cannot write to scalar"); > return -1; > } > *out_dtype = PyArray_DescrFromScalar(op); > if (*out_dtype == ((void *)0)) { > return -1; > } > *out_ndim = 0; > *out_arr = ((void *)0); > return 0; > } > > > *out_dtype = _array_find_python_scalar_type(op); > if (*out_dtype != ((void *)0)) { > if (writeable) { > PyErr_SetString(PyExc_RuntimeError, > "cannot write to scalar"); > do { if ( --((PyObject*)(*out_dtype))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(*out_dtype)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(*out_dtype)))); } while (0); > return -1; > } > *out_ndim = 0; > *out_arr = ((void *)0); > return 0; > } > > > if (!((((((PyObject*)(op))->ob_type))->tp_flags & ((1L<<27))) != 0) && !((((((PyObject*)(op))->ob_type))->tp_flags & ((1L<<28))) != 0) && > _array_from_buffer_3118(op, (PyObject **)out_arr) == 0) { > if (writeable && !((((PyArrayObject *)(*out_arr))->flags & (0x0400)) == (0x0400))) { > PyErr_SetString(PyExc_RuntimeError, > "cannot write to PEP 3118 buffer"); > do { if ( --((PyObject*)(*out_arr))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(*out_arr)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(*out_arr)))); } while (0); > return -1; > } > return (*out_arr) == ((void *)0) ? -1 : 0; > } > > > tmp = PyArray_FromStructInterface(op); > if (tmp == (&_Py_NotImplementedStruct)) { > tmp = PyArray_FromInterface(op); > } > if (tmp != (&_Py_NotImplementedStruct)) { > if (writeable && !((((PyArrayObject *)(tmp))->flags & (0x0400)) == (0x0400))) { > PyErr_SetString(PyExc_RuntimeError, > "cannot write to array interface object"); > do { if ( --((PyObject*)(tmp))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(tmp)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(tmp)))); } while (0); > return -1; > } > *out_arr = (PyArrayObject *)tmp; > return (*out_arr) == ((void *)0) ? -1 : 0; > } ># 1525 "numpy/core/src/multiarray/ctors.c" > if (!writeable) { > tmp = PyArray_FromArrayAttr(op, requested_dtype, context); > if (tmp != (&_Py_NotImplementedStruct)) { > if (writeable && !((((PyArrayObject *)(tmp))->flags & (0x0400)) == (0x0400))) { > PyErr_SetString(PyExc_RuntimeError, > "cannot write to array interface object"); > do { if ( --((PyObject*)(tmp))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(tmp)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(tmp)))); } while (0); > return -1; > } > *out_arr = (PyArrayObject *)tmp; > return (*out_arr) == ((void *)0) ? -1 : 0; > } > } > > > if (!writeable && PySequence_Check(op)) { > int check_it, stop_at_string, stop_at_tuple, is_object; > int type_num, type; > > > > > > if (requested_dtype != ((void *)0) && ( > requested_dtype->type_num == NPY_STRING || > requested_dtype->type_num == NPY_UNICODE || > (requested_dtype->type_num == NPY_VOID && > (requested_dtype->names || requested_dtype->subarray)) || > requested_dtype->type == NPY_CHARLTR || > requested_dtype->type_num == NPY_OBJECT)) { > ( ((PyObject*)(requested_dtype))->ob_refcnt++); > *out_dtype = requested_dtype; > } > else { > *out_dtype = _array_find_type(op, ((void *)0), 32); > if (*out_dtype == ((void *)0)) { > if (PyErr_Occurred() && > PyErr_GivenExceptionMatches(PyErr_Occurred(), > PyExc_MemoryError)) { > return -1; > } > > PyErr_Clear(); > *out_dtype = PyArray_DescrFromType(NPY_OBJECT); > if (*out_dtype == ((void *)0)) { > return -1; > } > } > } > > type_num = (*out_dtype)->type_num; > type = (*out_dtype)->type; > > check_it = (type != NPY_CHARLTR); > stop_at_string = (type_num != NPY_STRING) || > (type == NPY_STRINGLTR); > stop_at_tuple = (type_num == NPY_VOID && > ((*out_dtype)->names || (*out_dtype)->subarray)); > > *out_ndim = 32; > is_object = 0; > if (discover_dimensions(op, out_ndim, out_dims, check_it, > stop_at_string, stop_at_tuple, > &is_object) < 0) { > do { if ( --((PyObject*)(*out_dtype))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(*out_dtype)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(*out_dtype)))); } while (0); > if (PyErr_Occurred()) { > return -1; > } > *out_dtype = PyArray_DescrFromType(NPY_OBJECT); > if (*out_dtype == ((void *)0)) { > return -1; > } > *out_ndim = 0; > *out_arr = ((void *)0); > return 0; > } > > if (is_object) { > do { if ( --((PyObject*)(*out_dtype))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(*out_dtype)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(*out_dtype)))); } while (0); > *out_dtype = PyArray_DescrFromType(NPY_OBJECT); > if (*out_dtype == ((void *)0)) { > return -1; > } > } > > if ((*out_dtype)->type == NPY_CHARLTR && (*out_ndim) > 0 && > out_dims[(*out_ndim) - 1] == 1) { > (*out_ndim) -= 1; > } > > > if ((*out_dtype)->elsize == 0 && > (((((*out_dtype)->type_num) >=NPY_STRING) && (((*out_dtype)->type_num) <=NPY_VOID)) || ((((*out_dtype)->type_num) >= NPY_USERDEF) && (((*out_dtype)->type_num) < NPY_USERDEF+ NPY_NUMUSERTYPES)))) { > int itemsize = 0; > if (discover_itemsize(op, *out_ndim, &itemsize) < 0) { > do { if ( --((PyObject*)(*out_dtype))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(*out_dtype)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(*out_dtype)))); } while (0); > if (PyErr_Occurred() && > PyErr_GivenExceptionMatches(PyErr_Occurred(), > PyExc_MemoryError)) { > return -1; > } > > PyErr_Clear(); > *out_dtype = PyArray_DescrFromType(NPY_OBJECT); > *out_ndim = 0; > *out_arr = ((void *)0); > return 0; > } > if ((*out_dtype)->type_num == NPY_UNICODE) { > itemsize *= 4; > } > > if (itemsize != (*out_dtype)->elsize) { > do { PyArray_Descr *_new_; _new_ = PyArray_DescrNew(*out_dtype); do { if ((*out_dtype) == ((void *)0)) ; else do { if ( --((PyObject*)(*out_dtype))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(*out_dtype)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(*out_dtype)))); } while (0); } while (0); *out_dtype = _new_; } while(0); > (*out_dtype)->elsize = itemsize; > } > } > > *out_arr = ((void *)0); > return 0; > } > > > if (!writeable) { > *out_dtype = PyArray_DescrFromType(NPY_OBJECT); > if (*out_dtype == ((void *)0)) { > return -1; > } > *out_ndim = 0; > *out_arr = ((void *)0); > return 0; > } > > PyErr_SetString(PyExc_RuntimeError, > "object cannot be viewed as a writeable numpy array"); > return -1; >} > > > > > >static PyObject * >PyArray_FromAny(PyObject *op, PyArray_Descr *newtype, int min_depth, > int max_depth, int flags, PyObject *context) >{ > > > > > PyArrayObject *arr = ((void *)0), *ret; > PyArray_Descr *dtype = ((void *)0); > int ndim = 0; > npy_intp dims[32]; > > > if (PyArray_GetArrayParamsFromObject(op, newtype, > 0, &dtype, > &ndim, dims, &arr, context) < 0) { > do { if ((newtype) == ((void *)0)) ; else do { if ( --((PyObject*)(newtype))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(newtype)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(newtype)))); } while (0); } while (0); > ret = ((void *)0); > return ((void *)0); > } > > > if (newtype != ((void *)0) && newtype->elsize == 0) { > do { PyArray_Descr *_new_; _new_ = PyArray_DescrNew(newtype); do { if ((newtype) == ((void *)0)) ; else do { if ( --((PyObject*)(newtype))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(newtype)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(newtype)))); } while (0); } while (0); newtype = _new_; } while(0); > if (newtype == ((void *)0)) { > ret = ((void *)0); > return ((void *)0); > } > if (arr != ((void *)0)) { > dtype = (((PyArrayObject *)(arr))->descr); > } > > if (newtype->type_num == dtype->type_num) { > newtype->elsize = dtype->elsize; > } > else { > switch(newtype->type_num) { > case NPY_STRING: > if (dtype->type_num == NPY_UNICODE) { > newtype->elsize = dtype->elsize >> 2; > } > else { > newtype->elsize = dtype->elsize; > } > break; > case NPY_UNICODE: > newtype->elsize = dtype->elsize << 2; > break; > case NPY_VOID: > newtype->elsize = dtype->elsize; > break; > } > } > } > > > if (arr == ((void *)0)) { > if (flags&0x1000) { > do { if ((newtype) == ((void *)0)) ; else do { if ( --((PyObject*)(newtype))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(newtype)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(newtype)))); } while (0); } while (0); > PyErr_SetString(PyExc_TypeError, > "UPDATEIFCOPY used for non-array input."); > return ((void *)0); > } > else if (min_depth != 0 && ndim < min_depth) { > do { if ( --((PyObject*)(dtype))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(dtype)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(dtype)))); } while (0); > do { if ((newtype) == ((void *)0)) ; else do { if ( --((PyObject*)(newtype))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(newtype)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(newtype)))); } while (0); } while (0); > PyErr_SetString(PyExc_ValueError, > "object of too small depth for desired array"); > ret = ((void *)0); > } > else if (max_depth != 0 && ndim > max_depth) { > do { if ( --((PyObject*)(dtype))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(dtype)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(dtype)))); } while (0); > do { if ((newtype) == ((void *)0)) ; else do { if ( --((PyObject*)(newtype))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(newtype)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(newtype)))); } while (0); } while (0); > PyErr_SetString(PyExc_ValueError, > "object too deep for desired array"); > ret = ((void *)0); > } > else if (ndim == 0 && (((((PyObject*)(op))->ob_type) == (&PyGenericArrType_Type) || PyType_IsSubtype((((PyObject*)(op))->ob_type), (&PyGenericArrType_Type))))) { > ret = (PyArrayObject *)PyArray_FromScalar(op, newtype); > do { if ( --((PyObject*)(dtype))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(dtype)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(dtype)))); } while (0); > } > else { > if (newtype == ((void *)0)) { > newtype = dtype; > } > else { ># 1775 "numpy/core/src/multiarray/ctors.c" > do { if ( --((PyObject*)(dtype))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(dtype)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(dtype)))); } while (0); > } > > > ret = (PyArrayObject *)PyArray_NewFromDescr(&PyArray_Type, newtype, > ndim, dims, > ((void *)0), ((void *)0), > flags&0x0002, ((void *)0)); > if (ret != ((void *)0)) { > if (ndim > 0) { > if (PyArray_AssignFromSequence(ret, op) < 0) { > do { if ( --((PyObject*)(ret))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(ret)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(ret)))); } while (0); > ret = ((void *)0); > } > } > else { > if ((((PyArrayObject *)(ret))->descr)->f->setitem(op, > ((void *)(((PyArrayObject *)(ret))->data)), ret) < 0) { > do { if ( --((PyObject*)(ret))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(ret)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(ret)))); } while (0); > ret = ((void *)0); > } > } > } > } > } > else { > if (min_depth != 0 && (((PyArrayObject *)(arr))->nd) < min_depth) { > PyErr_SetString(PyExc_ValueError, > "object of too small depth for desired array"); > do { if ( --((PyObject*)(arr))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(arr)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(arr)))); } while (0); > ret = ((void *)0); > } > else if (max_depth != 0 && (((PyArrayObject *)(arr))->nd) > max_depth) { > PyErr_SetString(PyExc_ValueError, > "object too deep for desired array"); > do { if ( --((PyObject*)(arr))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(arr)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(arr)))); } while (0); > ret = ((void *)0); > } > else { > ret = (PyArrayObject *)PyArray_FromArray(arr, newtype, flags); > do { if ( --((PyObject*)(arr))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(arr)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(arr)))); } while (0); > } > } > > return (PyObject *)ret; >} ># 1866 "numpy/core/src/multiarray/ctors.c" >static PyObject * >PyArray_CheckFromAny(PyObject *op, PyArray_Descr *descr, int min_depth, > int max_depth, int requires, PyObject *context) >{ > PyObject *obj; > if (requires & 0x0200) { > if (!descr && ((((PyObject*)(op))->ob_type) == (&PyArray_Type) || PyType_IsSubtype((((PyObject*)(op))->ob_type), (&PyArray_Type))) && > !(((((PyArrayObject *)(op))->descr)->byteorder) != '>')) { > descr = PyArray_DescrNew((((PyArrayObject *)(op))->descr)); > } > else if (descr && !((descr->byteorder) != '>')) { > do { PyArray_Descr *_new_; _new_ = PyArray_DescrNew(descr); do { if ((descr) == ((void *)0)) ; else do { if ( --((PyObject*)(descr))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(descr)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(descr)))); } while (0); } while (0); descr = _new_; } while(0); > } > if (descr) { > descr->byteorder = '='; > } > } > > obj = PyArray_FromAny(op, descr, min_depth, max_depth, requires, context); > if (obj == ((void *)0)) { > return ((void *)0); > } > if ((requires & 0x0080) && > !PyArray_ElementStrides(obj)) { > PyObject *new; > new = PyArray_NewCopy((PyArrayObject *)obj, NPY_ANYORDER); > do { if ( --((PyObject*)(obj))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(obj)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(obj)))); } while (0); > obj = new; > } > return obj; >} > > > > >static PyObject * >PyArray_FromArray(PyArrayObject *arr, PyArray_Descr *newtype, int flags) >{ > > PyArrayObject *ret = ((void *)0); > int itemsize; > int copy = 0; > int arrflags; > PyArray_Descr *oldtype; > char *msg = "cannot copy back to a read-only array"; > PyTypeObject *subtype; > > oldtype = (((PyArrayObject *)(arr))->descr); > subtype = (((PyObject*)(arr))->ob_type); > if (newtype == ((void *)0)) { > newtype = oldtype; ( ((PyObject*)(oldtype))->ob_refcnt++); > } > itemsize = newtype->elsize; > if (itemsize == 0) { > do { PyArray_Descr *_new_; _new_ = PyArray_DescrNew(newtype); do { if ((newtype) == ((void *)0)) ; else do { if ( --((PyObject*)(newtype))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(newtype)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(newtype)))); } while (0); } while (0); newtype = _new_; } while(0); > if (newtype == ((void *)0)) { > return ((void *)0); > } > newtype->elsize = oldtype->elsize; > itemsize = newtype->elsize; > } > > > > > > if (!(flags & 0x0010) && !(((PyArrayObject *)(arr))->nd) == 0 && > !PyArray_CanCastTo(oldtype, newtype)) { > do { if ( --((PyObject*)(newtype))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(newtype)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(newtype)))); } while (0); > PyErr_SetString(PyExc_TypeError, > "array cannot be safely cast " "to required type"); > > return ((void *)0); > } > > > if ((flags & 0x0020) || PyArray_EquivTypes(oldtype, newtype)) { > arrflags = arr->flags; > if (arr->nd <= 1 && (flags & 0x0002)) { > flags |= 0x0001; > } > copy = (flags & 0x0020) || > ((flags & 0x0001) && (!(arrflags & 0x0001))) > || ((flags & 0x0100) && (!(arrflags & 0x0100))) > || (arr->nd > 1 && > ((flags & 0x0002) && > (!(arrflags & 0x0002)))) > || ((flags & 0x0400) && (!(arrflags & 0x0400))); > > if (copy) { > if ((flags & 0x1000) && > (!((((PyArrayObject *)(arr))->flags & (0x0400)) == (0x0400)))) { > do { if ( --((PyObject*)(newtype))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(newtype)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(newtype)))); } while (0); > PyErr_SetString(PyExc_ValueError, msg); > return ((void *)0); > } > if ((flags & 0x0040)) { > subtype = &PyArray_Type; > } > ret = (PyArrayObject *) > PyArray_NewFromDescr(subtype, newtype, > arr->nd, > arr->dimensions, > ((void *)0), ((void *)0), > flags & 0x0002, > (PyObject *)arr); > if (ret == ((void *)0)) { > return ((void *)0); > } > if (PyArray_CopyInto(ret, arr) == -1) { > do { if ( --((PyObject*)(ret))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(ret)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(ret)))); } while (0); > return ((void *)0); > } > if (flags & 0x1000) { > ret->flags |= 0x1000; > ret->base = (PyObject *)arr; > (((PyArrayObject *)(ret->base))->flags) &= ~0x0400; > ( ((PyObject*)(arr))->ob_refcnt++); > } > } > > > > > else { > do { if ( --((PyObject*)(newtype))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(newtype)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(newtype)))); } while (0); > if ((flags & 0x0040) && > !(((PyObject*)(arr))->ob_type == &PyArray_Type)) { > ( ((PyObject*)(arr->descr))->ob_refcnt++); > ret = (PyArrayObject *) > PyArray_NewFromDescr(&PyArray_Type, > arr->descr, > arr->nd, > arr->dimensions, > arr->strides, > arr->data, > arr->flags,((void *)0)); > if (ret == ((void *)0)) { > return ((void *)0); > } > ret->base = (PyObject *)arr; > } > else { > ret = arr; > } > ( ((PyObject*)(arr))->ob_refcnt++); > } > } > > > > > > else { > if ((flags & 0x1000) && > (!((((PyArrayObject *)(arr))->flags & (0x0400)) == (0x0400)))) { > do { if ( --((PyObject*)(newtype))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(newtype)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(newtype)))); } while (0); > PyErr_SetString(PyExc_ValueError, msg); > return ((void *)0); > } > if ((flags & 0x0040)) { > subtype = &PyArray_Type; > } > ret = (PyArrayObject *) > PyArray_NewFromDescr(subtype, newtype, > arr->nd, arr->dimensions, > ((void *)0), ((void *)0), > flags & 0x0002, > (PyObject *)arr); > if (ret == ((void *)0)) { > return ((void *)0); > } > if (PyArray_CastTo(ret, arr) < 0) { > do { if ( --((PyObject*)(ret))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(ret)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(ret)))); } while (0); > return ((void *)0); > } > if (flags & 0x1000) { > ret->flags |= 0x1000; > ret->base = (PyObject *)arr; > (((PyArrayObject *)(ret->base))->flags) &= ~0x0400; > ( ((PyObject*)(arr))->ob_refcnt++); > } > } > return (PyObject *)ret; >} > > >static PyObject * >PyArray_FromStructInterface(PyObject *input) >{ > PyArray_Descr *thetype = ((void *)0); > char buf[40]; > PyArrayInterface *inter; > PyObject *attr, *r; > char endian = '<'; > > attr = PyObject_GetAttrString(input, "__array_struct__"); > if (attr == ((void *)0)) { > PyErr_Clear(); > return (&_Py_NotImplementedStruct); > } > if (!NpyCapsule_Check(attr)) { > goto fail; > } > inter = NpyCapsule_AsVoidPtr(attr); > if (inter->two != 2) { > goto fail; > } > if ((inter->flags & 0x0200) != 0x0200) { > endian = '>'; > inter->flags &= ~0x0200; > } > > if (inter->flags & 0x0800) { > if (PyArray_DescrConverter(inter->descr, &thetype) == 0) { > thetype = ((void *)0); > PyErr_Clear(); > } > } > > if (thetype == ((void *)0)) { > PyOS_snprintf(buf, sizeof(buf), > "%c%c%d", endian, inter->typekind, inter->itemsize); > if (!(thetype=_array_typedescr_fromstr(buf))) { > do { if ( --((PyObject*)(attr))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(attr)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(attr)))); } while (0); > return ((void *)0); > } > } > > r = PyArray_NewFromDescr(&PyArray_Type, thetype, > inter->nd, inter->shape, > inter->strides, inter->data, > inter->flags, ((void *)0)); > ( ((PyObject*)(input))->ob_refcnt++); > (((PyArrayObject *)(r))->base) = input; > do { if ( --((PyObject*)(attr))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(attr)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(attr)))); } while (0); > PyArray_UpdateFlags((PyArrayObject *)r, (0x0001 | 0x0002 | 0x0100)); > return r; > > fail: > PyErr_SetString(PyExc_ValueError, "invalid __array_struct__"); > do { if ( --((PyObject*)(attr))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(attr)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(attr)))); } while (0); > return ((void *)0); >} > > > > >static PyObject * >PyArray_FromInterface(PyObject *input) >{ > PyObject *attr = ((void *)0), *item = ((void *)0); > PyObject *tstr = ((void *)0), *shape = ((void *)0); > PyObject *inter = ((void *)0); > PyObject *base = ((void *)0); > PyArrayObject *ret; > PyArray_Descr *type=((void *)0); > char *data; > Py_ssize_t buffer_len; > int res, i, n; > npy_intp dims[32], strides[32]; > int dataflags = (0x0100 | 0x0400); > > > > > > > inter = PyObject_GetAttrString(input, "__array_interface__"); > if (inter == ((void *)0)) { > PyErr_Clear(); > return (&_Py_NotImplementedStruct); > } > if (!((((((PyObject*)(inter))->ob_type))->tp_flags & ((1L<<29))) != 0)) { > do { if ( --((PyObject*)(inter))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(inter)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(inter)))); } while (0); > return (&_Py_NotImplementedStruct); > } > shape = PyDict_GetItemString(inter, "shape"); > if (shape == ((void *)0)) { > do { if ( --((PyObject*)(inter))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(inter)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(inter)))); } while (0); > return (&_Py_NotImplementedStruct); > } > tstr = PyDict_GetItemString(inter, "typestr"); > if (tstr == ((void *)0)) { > do { if ( --((PyObject*)(inter))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(inter)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(inter)))); } while (0); > return (&_Py_NotImplementedStruct); > } > > attr = PyDict_GetItemString(inter, "data"); > base = input; > if ((attr == ((void *)0)) || (attr==(&_Py_NoneStruct)) || (!((((((PyObject*)(attr))->ob_type))->tp_flags & ((1L<<26))) != 0))) { > if (attr && (attr != (&_Py_NoneStruct))) { > item = attr; > } > else { > item = input; > } > res = PyObject_AsWriteBuffer(item, (void **)&data, &buffer_len); > if (res < 0) { > PyErr_Clear(); > res = PyObject_AsReadBuffer( > item, (const void **)&data, &buffer_len); > if (res < 0) { > goto fail; > } > dataflags &= ~0x0400; > } > attr = PyDict_GetItemString(inter, "offset"); > if (attr) { > npy_longlong num = PyLong_AsLongLong(attr); > if ((((num) == -1) && PyErr_Occurred())) { > PyErr_SetString(PyExc_TypeError, > "offset " "must be an integer"); > > goto fail; > } > data += num; > } > base = item; > } > else { > PyObject *dataptr; > if ((((PyVarObject*)(attr))->ob_size) != 2) { > PyErr_SetString(PyExc_TypeError, > "data must return " "a 2-tuple with (data pointer " "integer, read-only flag)"); > > > goto fail; > } > dataptr = (((PyTupleObject *)(attr))->ob_item[0]); > if (((((((PyObject*)(dataptr))->ob_type))->tp_flags & ((1L<<27))) != 0)) { > res = sscanf(PyString_AsString(dataptr), > "%p", (void **)&data); > if (res < 1) { > PyErr_SetString(PyExc_TypeError, > "data string cannot be " "converted"); > > goto fail; > } > } > else if ((((((dataptr)->ob_type)->tp_flags & ((1L<<23))) != 0) || ((((((PyObject*)(dataptr))->ob_type))->tp_flags & ((1L<<24))) != 0))) { > data = PyLong_AsVoidPtr(dataptr); > } > else { > PyErr_SetString(PyExc_TypeError, "first element " "of data tuple must be integer" " or string."); > > > goto fail; > } > if (PyObject_IsTrue((((PyTupleObject *)(attr))->ob_item[1]))) { > dataflags &= ~0x0400; > } > } > attr = tstr; > > > > > > > if (!((((((PyObject*)(attr))->ob_type))->tp_flags & ((1L<<27))) != 0)) { > PyErr_SetString(PyExc_TypeError, "typestr must be a string"); > goto fail; > } > type = _array_typedescr_fromstr((((PyStringObject *)(attr))->ob_sval)); > > > > > > if (type == ((void *)0)) { > goto fail; > } > attr = shape; > if (!((((((PyObject*)(attr))->ob_type))->tp_flags & ((1L<<26))) != 0)) { > PyErr_SetString(PyExc_TypeError, "shape must be a tuple"); > do { if ( --((PyObject*)(type))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(type)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(type)))); } while (0); > goto fail; > } > n = (((PyVarObject*)(attr))->ob_size); > for (i = 0; i < n; i++) { > item = (((PyTupleObject *)(attr))->ob_item[i]); > dims[i] = PyArray_PyIntAsIntp(item); > if ((((dims[i]) == -1) && PyErr_Occurred())) { > break; > } > } > > ret = (PyArrayObject *)PyArray_NewFromDescr(&PyArray_Type, type, > n, dims, > ((void *)0), data, > dataflags, ((void *)0)); > if (ret == ((void *)0)) { > return ((void *)0); > } > ( ((PyObject*)(base))->ob_refcnt++); > ret->base = base; > > attr = PyDict_GetItemString(inter, "strides"); > if (attr != ((void *)0) && attr != (&_Py_NoneStruct)) { > if (!((((((PyObject*)(attr))->ob_type))->tp_flags & ((1L<<26))) != 0)) { > PyErr_SetString(PyExc_TypeError, > "strides must be a tuple"); > do { if ( --((PyObject*)(ret))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(ret)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(ret)))); } while (0); > return ((void *)0); > } > if (n != (((PyVarObject*)(attr))->ob_size)) { > PyErr_SetString(PyExc_ValueError, > "mismatch in length of " "strides and shape"); > > do { if ( --((PyObject*)(ret))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(ret)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(ret)))); } while (0); > return ((void *)0); > } > for (i = 0; i < n; i++) { > item = (((PyTupleObject *)(attr))->ob_item[i]); > strides[i] = PyArray_PyIntAsIntp(item); > if ((((strides[i]) == -1) && PyErr_Occurred())) { > break; > } > } > if (PyErr_Occurred()) { > PyErr_Clear(); > } > memcpy(ret->strides, strides, n*sizeof(npy_intp)); > } > else PyErr_Clear(); > PyArray_UpdateFlags(ret, (0x0001 | 0x0002 | 0x0100)); > do { if ( --((PyObject*)(inter))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(inter)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(inter)))); } while (0); > return (PyObject *)ret; > > fail: > do { if ((inter) == ((void *)0)) ; else do { if ( --((PyObject*)(inter))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(inter)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(inter)))); } while (0); } while (0); > return ((void *)0); >} > > >static PyObject * >PyArray_FromArrayAttr(PyObject *op, PyArray_Descr *typecode, PyObject *context) >{ > PyObject *new; > PyObject *array_meth; > > array_meth = PyObject_GetAttrString(op, "__array__"); > if (array_meth == ((void *)0)) { > PyErr_Clear(); > return (&_Py_NotImplementedStruct); > } > if (context == ((void *)0)) { > if (typecode == ((void *)0)) { > new = _PyObject_CallFunction_SizeT(array_meth, ((void *)0)); > } > else { > new = _PyObject_CallFunction_SizeT(array_meth, "O", typecode); > } > } > else { > if (typecode == ((void *)0)) { > new = _PyObject_CallFunction_SizeT(array_meth, "OO", (&_Py_NoneStruct), context); > if (new == ((void *)0) && PyErr_ExceptionMatches(PyExc_TypeError)) { > PyErr_Clear(); > new = _PyObject_CallFunction_SizeT(array_meth, ""); > } > } > else { > new = _PyObject_CallFunction_SizeT(array_meth, "OO", typecode, context); > if (new == ((void *)0) && PyErr_ExceptionMatches(PyExc_TypeError)) { > PyErr_Clear(); > new = _PyObject_CallFunction_SizeT(array_meth, "O", typecode); > } > } > } > do { if ( --((PyObject*)(array_meth))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(array_meth)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(array_meth)))); } while (0); > if (new == ((void *)0)) { > return ((void *)0); > } > if (!((((PyObject*)(new))->ob_type) == (&PyArray_Type) || PyType_IsSubtype((((PyObject*)(new))->ob_type), (&PyArray_Type)))) { > PyErr_SetString(PyExc_ValueError, > "object __array__ method not " "producing an array"); > > do { if ( --((PyObject*)(new))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(new)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(new)))); } while (0); > return ((void *)0); > } > return new; >} > > > > >static PyArray_Descr * >PyArray_DescrFromObject(PyObject *op, PyArray_Descr *mintype) >{ > return _array_find_type(op, mintype, 32); >} ># 2369 "numpy/core/src/multiarray/ctors.c" >static PyObject * >PyArray_FromDimsAndDataAndDescr(int nd, int *d, > PyArray_Descr *descr, > char *data) >{ > PyObject *ret; > int i; > npy_intp newd[32]; > char msg[] = "PyArray_FromDimsAndDataAndDescr: use PyArray_NewFromDescr."; > > if (PyErr_WarnEx(PyExc_DeprecationWarning,msg,1) < 0) { > return ((void *)0); > } > if (!((descr->byteorder) != '>')) > descr->byteorder = '='; > for (i = 0; i < nd; i++) { > newd[i] = (npy_intp) d[i]; > } > ret = PyArray_NewFromDescr(&PyArray_Type, descr, > nd, newd, > ((void *)0), data, > (data ? (0x0001 | (0x0100 | 0x0400)) : 0), ((void *)0)); > return ret; >} > > > > >static PyObject * >PyArray_FromDims(int nd, int *d, int type) >{ > PyObject *ret; > char msg[] = "PyArray_FromDims: use PyArray_SimpleNew."; > > if (PyErr_WarnEx(PyExc_DeprecationWarning,msg,1) < 0) { > return ((void *)0); > } > ret = PyArray_FromDimsAndDataAndDescr(nd, d, > PyArray_DescrFromType(type), > ((void *)0)); > > > > > > if (ret && ((((PyArrayObject *)(ret))->descr)->type_num != NPY_OBJECT)) { > memset(((void *)(((PyArrayObject *)(ret))->data)), 0, ((((PyArrayObject *)(ret))->descr->elsize) * PyArray_MultiplyList((((PyArrayObject *)(ret))->dimensions), (((PyArrayObject *)(ret))->nd)))); > } > return ret; >} ># 2430 "numpy/core/src/multiarray/ctors.c" >static PyObject * >PyArray_EnsureArray(PyObject *op) >{ > PyObject *new; > > if ((op == ((void *)0)) || ((((PyObject*)(op))->ob_type == &PyArray_Type))) { > new = op; > do { if ((new) == ((void *)0)) ; else ( ((PyObject*)(new))->ob_refcnt++); } while (0); > } > else if (((((PyObject*)(op))->ob_type) == (&PyArray_Type) || PyType_IsSubtype((((PyObject*)(op))->ob_type), (&PyArray_Type)))) { > new = PyArray_View((PyArrayObject *)op, ((void *)0), &PyArray_Type); > } > else if ((((((PyObject*)(op))->ob_type) == (&PyGenericArrType_Type) || PyType_IsSubtype((((PyObject*)(op))->ob_type), (&PyGenericArrType_Type))))) { > new = PyArray_FromScalar(op, ((void *)0)); > } > else { > new = PyArray_FromAny(op, ((void *)0), 0, 0, 0x0040, ((void *)0)); > } > do { if ((op) == ((void *)0)) ; else do { if ( --((PyObject*)(op))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(op)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(op)))); } while (0); } while (0); > return new; >} > > >static PyObject * >PyArray_EnsureAnyArray(PyObject *op) >{ > if (op && ((((PyObject*)(op))->ob_type) == (&PyArray_Type) || PyType_IsSubtype((((PyObject*)(op))->ob_type), (&PyArray_Type)))) { > return op; > } > return PyArray_EnsureArray(op); >} > > >static int >PyArray_CopyAnyIntoOrdered(PyArrayObject *dst, PyArrayObject *src, > NPY_ORDER order) >{ > PyArray_StridedTransferFn *stransfer = ((void *)0); > void *transferdata = ((void *)0); > NpyIter *dst_iter, *src_iter; > > NpyIter_IterNextFunc *dst_iternext, *src_iternext; > char **dst_dataptr, **src_dataptr; > npy_intp dst_stride, src_stride; > npy_intp *dst_countptr, *src_countptr; > > char *dst_data, *src_data; > npy_intp dst_count, src_count, count; > npy_intp src_itemsize; > npy_intp dst_size, src_size; > int needs_api; > > PyThreadState *_save=((void *)0);; > > if (!((((PyArrayObject *)(dst))->flags & (0x0400)) == (0x0400))) { > PyErr_SetString(PyExc_RuntimeError, > "cannot write to array"); > return -1; > } > > > > > > if (order != NPY_ANYORDER && order != NPY_KEEPORDER && > (((PyArrayObject *)(dst))->nd) == (((PyArrayObject *)(src))->nd) && > PyArray_CompareLists((((PyArrayObject *)(dst))->dimensions), (((PyArrayObject *)(src))->dimensions), > (((PyArrayObject *)(dst))->nd))) { > return PyArray_CopyInto(dst, src); > } > > dst_size = PyArray_MultiplyList((((PyArrayObject *)(dst))->dimensions), (((PyArrayObject *)(dst))->nd)); > src_size = PyArray_MultiplyList((((PyArrayObject *)(src))->dimensions), (((PyArrayObject *)(src))->nd)); > if (dst_size != src_size) { > PyErr_SetString(PyExc_ValueError, > "arrays must have the same number of elements" > " for copy"); > return -1; > } > > > if (dst_size == 0) { > return 0; > } > > > > > > > > dst_iter = NpyIter_New(dst, 0x00040000| > 0x00000008| > 0x00001000| > 0x00000020, > order, > NPY_NO_CASTING, > ((void *)0)); > if (dst_iter == ((void *)0)) { > return -1; > } > src_iter = NpyIter_New(src, 0x00020000| > 0x00000008| > 0x00001000| > 0x00000020, > order, > NPY_NO_CASTING, > ((void *)0)); > if (src_iter == ((void *)0)) { > NpyIter_Deallocate(dst_iter); > return -1; > } > > > dst_iternext = NpyIter_GetIterNext(dst_iter, ((void *)0)); > dst_dataptr = NpyIter_GetDataPtrArray(dst_iter); > > dst_stride = *NpyIter_GetInnerStrideArray(dst_iter); > dst_countptr = NpyIter_GetInnerLoopSizePtr(dst_iter); > > src_iternext = NpyIter_GetIterNext(src_iter, ((void *)0)); > src_dataptr = NpyIter_GetDataPtrArray(src_iter); > > src_stride = *NpyIter_GetInnerStrideArray(src_iter); > src_countptr = NpyIter_GetInnerLoopSizePtr(src_iter); > > if (dst_iternext == ((void *)0) || src_iternext == ((void *)0)) { > NpyIter_Deallocate(dst_iter); > NpyIter_Deallocate(src_iter); > return -1; > } > > src_itemsize = (((PyArrayObject *)(src))->descr)->elsize; > > needs_api = NpyIter_IterationNeedsAPI(dst_iter) || > NpyIter_IterationNeedsAPI(src_iter); > > > > > > > > if (PyArray_GetDTypeTransferFunction( > ((((PyArrayObject *)(src))->flags & (0x0100)) == (0x0100)) && ((((PyArrayObject *)(dst))->flags & (0x0100)) == (0x0100)), > src_stride, dst_stride, > (((PyArrayObject *)(src))->descr), (((PyArrayObject *)(dst))->descr), > 0, > &stransfer, &transferdata, > &needs_api) != 1) { > NpyIter_Deallocate(dst_iter); > NpyIter_Deallocate(src_iter); > return -1; > } > > > if (!needs_api) { > _save = PyEval_SaveThread();; > } > > dst_count = *dst_countptr; > src_count = *src_countptr; > dst_data = *dst_dataptr; > src_data = *src_dataptr; > > > > > for(;;) { > > count = (src_count < dst_count) ? src_count : dst_count; > stransfer(dst_data, dst_stride, > src_data, src_stride, > count, src_itemsize, transferdata); > > > if (dst_count == count) { > if (!dst_iternext(dst_iter)) { > break; > } > dst_count = *dst_countptr; > dst_data = *dst_dataptr; > } > else { > dst_count -= count; > dst_data += count*dst_stride; > } > > > if (src_count == count) { > if (!src_iternext(src_iter)) { > break; > } > src_count = *src_countptr; > src_data = *src_dataptr; > } > else { > src_count -= count; > src_data += count*src_stride; > } > } > > if (!needs_api) { > do {if (_save) PyEval_RestoreThread(_save);} while (0);; > } > > PyArray_FreeStridedTransferData(transferdata); > NpyIter_Deallocate(dst_iter); > NpyIter_Deallocate(src_iter); > > return PyErr_Occurred() ? -1 : 0; >} ># 2654 "numpy/core/src/multiarray/ctors.c" >static int >PyArray_CopyAnyInto(PyArrayObject *dst, PyArrayObject *src) >{ > return PyArray_CopyAnyIntoOrdered(dst, src, NPY_CORDER); >} > > > > > > > >static int >PyArray_CopyInto(PyArrayObject *dst, PyArrayObject *src) >{ > PyArray_StridedTransferFn *stransfer = ((void *)0); > void *transferdata = ((void *)0); > PyThreadState *_save=((void *)0);; > > if (!((((PyArrayObject *)(dst))->flags & (0x0400)) == (0x0400))) { > PyErr_SetString(PyExc_RuntimeError, > "cannot write to array"); > return -1; > } > > if ((((PyArrayObject *)(dst))->nd) >= (((PyArrayObject *)(src))->nd) && > ( ( (((PyArrayObject *)(dst))->nd) <= 1 || ((((PyArrayObject *)(dst))->flags & (0x0001)) == (0x0001)) || ((((PyArrayObject *)(dst))->flags & (0x0002)) == (0x0002)) ) && ((((PyArrayObject *)(src))->nd) == 0 || ( (((PyArrayObject *)(dst))->nd) == (((PyArrayObject *)(src))->nd) && PyArray_CompareLists((((PyArrayObject *)(dst))->dimensions), (((PyArrayObject *)(src))->dimensions), (((PyArrayObject *)(dst))->nd)) && (dst->flags&(0x0001|0x0002)) == (src->flags&(0x0001|0x0002)) ) || ((((PyArrayObject *)(dst))->nd) == 0 && ( (((PyArrayObject *)(src))->nd) <= 1 || ((((PyArrayObject *)(src))->flags & (0x0001)) == (0x0001)) || ((((PyArrayObject *)(src))->flags & (0x0002)) == (0x0002)) ) ) ) )) { > char *dst_data, *src_data; > npy_intp count, dst_stride, src_stride, src_itemsize; > > int needs_api = 0; > > { npy_intp size1 = PyArray_MultiplyList((((PyArrayObject *)(dst))->dimensions), (((PyArrayObject *)(dst))->nd)); npy_intp size2 = PyArray_MultiplyList((((PyArrayObject *)(src))->dimensions), (((PyArrayObject *)(src))->nd)); count = ((size1 > size2) || size1 == 0) ? size1 : size2; dst_data = (((PyArrayObject *)(dst))->data); src_data = (((PyArrayObject *)(src))->data); dst_stride = (size1 == 1 ? 0 : (((((PyArrayObject *)(dst))->flags & (0x0002)) == (0x0002)) ? ((((PyArrayObject *)(dst))->strides)[0]) : ((((PyArrayObject *)(dst))->strides)[(((PyArrayObject *)(dst))->nd)-1]))); src_stride = (size2 == 1 ? 0 : (((((PyArrayObject *)(src))->flags & (0x0002)) == (0x0002)) ? ((((PyArrayObject *)(src))->strides)[0]) : ((((PyArrayObject *)(src))->strides)[(((PyArrayObject *)(src))->nd)-1]))); }; > > > > > > > if (dst_data > src_data && src_stride > 0 && dst_stride > 0 && > (dst_data < src_data+src_stride*count) && > (src_data < dst_data+dst_stride*count)) { > dst_data += dst_stride*(count-1); > src_data += src_stride*(count-1); > dst_stride = -dst_stride; > src_stride = -src_stride; > } > > if (PyArray_GetDTypeTransferFunction( > ((((PyArrayObject *)(src))->flags & (0x0100)) == (0x0100)) && ((((PyArrayObject *)(dst))->flags & (0x0100)) == (0x0100)), > src_stride, dst_stride, > (((PyArrayObject *)(src))->descr), (((PyArrayObject *)(dst))->descr), > 0, > &stransfer, &transferdata, > &needs_api) != 1) { > return -1; > } > > src_itemsize = (((PyArrayObject *)(src))->descr)->elsize; > > if (!needs_api) { > _save = PyEval_SaveThread();; > } > > stransfer(dst_data, dst_stride, src_data, src_stride, > count, src_itemsize, transferdata); > > if (!needs_api) { > do {if (_save) PyEval_RestoreThread(_save);} while (0);; > } > > PyArray_FreeStridedTransferData(transferdata); > > return PyErr_Occurred() ? -1 : 0; > } > else { > PyArrayObject *op[2]; > npy_uint32 op_flags[2]; > NpyIter *iter; > > NpyIter_IterNextFunc *iternext; > char **dataptr; > npy_intp *stride; > npy_intp *countptr; > npy_intp src_itemsize; > int needs_api; > > op[0] = dst; > op[1] = src; > > > > > > > op_flags[0] = 0x00040000; > op_flags[1] = 0x00020000; > > iter = NpyIter_MultiNew(2, op, > 0x00000008| > 0x00000020| > 0x00000040, > NPY_KEEPORDER, > NPY_NO_CASTING, > op_flags, > ((void *)0)); > if (iter == ((void *)0)) { > return -1; > } > > iternext = NpyIter_GetIterNext(iter, ((void *)0)); > if (iternext == ((void *)0)) { > NpyIter_Deallocate(iter); > return -1; > } > dataptr = NpyIter_GetDataPtrArray(iter); > stride = NpyIter_GetInnerStrideArray(iter); > countptr = NpyIter_GetInnerLoopSizePtr(iter); > src_itemsize = (((PyArrayObject *)(src))->descr)->elsize; > > needs_api = NpyIter_IterationNeedsAPI(iter); > > > > > > > > if (PyArray_GetDTypeTransferFunction( > ((((PyArrayObject *)(src))->flags & (0x0100)) == (0x0100)) && ((((PyArrayObject *)(dst))->flags & (0x0100)) == (0x0100)), > stride[1], stride[0], > (((PyArrayObject *)(src))->descr), (((PyArrayObject *)(dst))->descr), > 0, > &stransfer, &transferdata, > &needs_api) != 1) { > NpyIter_Deallocate(iter); > return -1; > } > > > if (NpyIter_GetIterSize(iter) != 0) { > if (!needs_api) { > _save = PyEval_SaveThread();; > } > > do { > stransfer(dataptr[0], stride[0], > dataptr[1], stride[1], > *countptr, src_itemsize, transferdata); > } while(iternext(iter)); > > if (!needs_api) { > do {if (_save) PyEval_RestoreThread(_save);} while (0);; > } > } > > PyArray_FreeStridedTransferData(transferdata); > NpyIter_Deallocate(iter); > > return PyErr_Occurred() ? -1 : 0; > } >} ># 2824 "numpy/core/src/multiarray/ctors.c" >static PyObject * >PyArray_CheckAxis(PyArrayObject *arr, int *axis, int flags) >{ > PyObject *temp1, *temp2; > int n = arr->nd; > > if (*axis == 32 || n == 0) { > if (n != 1) { > temp1 = PyArray_Ravel(arr,0); > if (temp1 == ((void *)0)) { > *axis = 0; > return ((void *)0); > } > if (*axis == 32) { > *axis = (((PyArrayObject *)(temp1))->nd)-1; > } > } > else { > temp1 = (PyObject *)arr; > ( ((PyObject*)(temp1))->ob_refcnt++); > *axis = 0; > } > if (!flags && *axis == 0) { > return temp1; > } > } > else { > temp1 = (PyObject *)arr; > ( ((PyObject*)(temp1))->ob_refcnt++); > } > if (flags) { > temp2 = PyArray_CheckFromAny((PyObject *)temp1, ((void *)0), > 0, 0, flags, ((void *)0)); > do { if ( --((PyObject*)(temp1))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(temp1)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(temp1)))); } while (0); > if (temp2 == ((void *)0)) { > return ((void *)0); > } > } > else { > temp2 = (PyObject *)temp1; > } > n = (((PyArrayObject *)(temp2))->nd); > if (*axis < 0) { > *axis += n; > } > if ((*axis < 0) || (*axis >= n)) { > PyErr_Format(PyExc_ValueError, > "axis(=%d) out of bounds", *axis); > do { if ( --((PyObject*)(temp2))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(temp2)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(temp2)))); } while (0); > return ((void *)0); > } > return temp2; >} > > > > > > > >static PyObject * >PyArray_Zeros(int nd, npy_intp *dims, PyArray_Descr *type, int fortran_) >{ > PyArrayObject *ret; > > if (!type) { > type = PyArray_DescrFromType(NPY_DOUBLE); > } > ret = (PyArrayObject *)PyArray_NewFromDescr(&PyArray_Type, > type, > nd, dims, > ((void *)0), ((void *)0), > fortran_, ((void *)0)); > if (ret == ((void *)0)) { > return ((void *)0); > } > if (_zerofill(ret) < 0) { > return ((void *)0); > } > return (PyObject *)ret; > >} > > > > > > > >static PyObject * >PyArray_Empty(int nd, npy_intp *dims, PyArray_Descr *type, int fortran_) >{ > PyArrayObject *ret; > > if (!type) type = PyArray_DescrFromType(NPY_DOUBLE); > ret = (PyArrayObject *)PyArray_NewFromDescr(&PyArray_Type, > type, nd, dims, > ((void *)0), ((void *)0), > fortran_, ((void *)0)); > if (ret == ((void *)0)) { > return ((void *)0); > } > if ((((type)->flags & (0x01)) == (0x01))) { > PyArray_FillObjectArray(ret, (&_Py_NoneStruct)); > if (PyErr_Occurred()) { > do { if ( --((PyObject*)(ret))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(ret)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(ret)))); } while (0); > return ((void *)0); > } > } > return (PyObject *)ret; >} > > > > > > > >static int _safe_ceil_to_intp(double value, npy_intp* ret) >{ > double ivalue; > > ivalue = npy_ceil(value); > if (ivalue < (-9223372036854775807L - 1L) || ivalue > 9223372036854775807L) { > return -1; > } > > *ret = (npy_intp)ivalue; > return 0; >} > > > > > >static PyObject * >PyArray_Arange(double start, double stop, double step, int type_num) >{ > npy_intp length; > PyObject *range; > PyArray_ArrFuncs *funcs; > PyObject *obj; > int ret; > > if (_safe_ceil_to_intp((stop - start)/step, &length)) { > PyErr_SetString(PyExc_OverflowError, > "arange: overflow while computing length"); > } > > if (length <= 0) { > length = 0; > return PyArray_New(&PyArray_Type, 1, &length, type_num, > ((void *)0), ((void *)0), 0, 0, ((void *)0)); > } > range = PyArray_New(&PyArray_Type, 1, &length, type_num, > ((void *)0), ((void *)0), 0, 0, ((void *)0)); > if (range == ((void *)0)) { > return ((void *)0); > } > funcs = (((PyArrayObject *)(range))->descr)->f; > > > > > > obj = PyFloat_FromDouble(start); > ret = funcs->setitem(obj, ((void *)(((PyArrayObject *)(range))->data)), (PyArrayObject *)range); > do { if ( --((PyObject*)(obj))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(obj)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(obj)))); } while (0); > if (ret < 0) { > goto fail; > } > if (length == 1) { > return range; > } > obj = PyFloat_FromDouble(start + step); > ret = funcs->setitem(obj, (((PyArrayObject *)(range))->data)+(((PyArrayObject *)(range))->descr->elsize), > (PyArrayObject *)range); > do { if ( --((PyObject*)(obj))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(obj)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(obj)))); } while (0); > if (ret < 0) { > goto fail; > } > if (length == 2) { > return range; > } > if (!funcs->fill) { > PyErr_SetString(PyExc_ValueError, "no fill-function for data-type."); > do { if ( --((PyObject*)(range))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(range)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(range)))); } while (0); > return ((void *)0); > } > funcs->fill(((void *)(((PyArrayObject *)(range))->data)), length, (PyArrayObject *)range); > if (PyErr_Occurred()) { > goto fail; > } > return range; > > fail: > do { if ( --((PyObject*)(range))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(range)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(range)))); } while (0); > return ((void *)0); >} > > > > >static npy_intp >_calc_length(PyObject *start, PyObject *stop, PyObject *step, PyObject **next, int cmplx) >{ > npy_intp len, tmp; > PyObject *val; > double value; > > *next = PyNumber_Subtract(stop, start); > if (!(*next)) { > if (((((((PyObject*)(stop))->ob_type))->tp_flags & ((1L<<26))) != 0)) { > PyErr_Clear(); > PyErr_SetString(PyExc_TypeError, > "arange: scalar arguments expected " "instead of a tuple."); > > } > return -1; > } > val = PyNumber_TrueDivide(*next, step); > do { if ( --((PyObject*)(*next))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(*next)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(*next)))); } while (0); > *next = ((void *)0); > if (!val) { > return -1; > } > if (cmplx && ((((PyObject*)(val))->ob_type) == (&PyComplex_Type) || PyType_IsSubtype((((PyObject*)(val))->ob_type), (&PyComplex_Type)))) { > value = PyComplex_RealAsDouble(val); > if ((((value) == -1) && PyErr_Occurred())) { > do { if ( --((PyObject*)(val))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(val)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(val)))); } while (0); > return -1; > } > if (_safe_ceil_to_intp(value, &len)) { > do { if ( --((PyObject*)(val))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(val)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(val)))); } while (0); > PyErr_SetString(PyExc_OverflowError, > "arange: overflow while computing length"); > return -1; > } > value = PyComplex_ImagAsDouble(val); > do { if ( --((PyObject*)(val))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(val)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(val)))); } while (0); > if ((((value) == -1) && PyErr_Occurred())) { > return -1; > } > if (_safe_ceil_to_intp(value, &tmp)) { > PyErr_SetString(PyExc_OverflowError, > "arange: overflow while computing length"); > return -1; > } > len = (((len)<(tmp))?(len):(tmp)); > } > else { > value = PyFloat_AsDouble(val); > do { if ( --((PyObject*)(val))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(val)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(val)))); } while (0); > if ((((value) == -1) && PyErr_Occurred())) { > return -1; > } > if (_safe_ceil_to_intp(value, &len)) { > PyErr_SetString(PyExc_OverflowError, > "arange: overflow while computing length"); > return -1; > } > } > if (len > 0) { > *next = PyNumber_Add(start, step); > if (!next) { > return -1; > } > } > return len; >} > > > > > > > >static PyObject * >PyArray_ArangeObj(PyObject *start, PyObject *stop, PyObject *step, PyArray_Descr *dtype) >{ > PyObject *range; > PyArray_ArrFuncs *funcs; > PyObject *next, *err; > npy_intp length; > PyArray_Descr *native = ((void *)0); > int swap; > > if (!dtype) { > PyArray_Descr *deftype; > PyArray_Descr *newtype; > > deftype = PyArray_DescrFromType(NPY_LONG); > newtype = PyArray_DescrFromObject(start, deftype); > do { if ( --((PyObject*)(deftype))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(deftype)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(deftype)))); } while (0); > deftype = newtype; > if (stop && stop != (&_Py_NoneStruct)) { > newtype = PyArray_DescrFromObject(stop, deftype); > do { if ( --((PyObject*)(deftype))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(deftype)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(deftype)))); } while (0); > deftype = newtype; > } > if (step && step != (&_Py_NoneStruct)) { > newtype = PyArray_DescrFromObject(step, deftype); > do { if ( --((PyObject*)(deftype))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(deftype)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(deftype)))); } while (0); > deftype = newtype; > } > dtype = deftype; > } > else { > ( ((PyObject*)(dtype))->ob_refcnt++); > } > if (!step || step == (&_Py_NoneStruct)) { > step = PyInt_FromLong(1); > } > else { > do { if ((step) == ((void *)0)) ; else ( ((PyObject*)(step))->ob_refcnt++); } while (0); > } > if (!stop || stop == (&_Py_NoneStruct)) { > stop = start; > start = PyInt_FromLong(0); > } > else { > ( ((PyObject*)(start))->ob_refcnt++); > } > > length = _calc_length(start, stop, step, &next, > (((dtype->type_num) >= NPY_CFLOAT) && ((dtype->type_num) <= NPY_CLONGDOUBLE))); > err = PyErr_Occurred(); > if (err) { > do { if ( --((PyObject*)(dtype))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(dtype)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(dtype)))); } while (0); > if (err && PyErr_GivenExceptionMatches(err, PyExc_OverflowError)) { > PyErr_SetString(PyExc_ValueError, "Maximum allowed size exceeded"); > } > goto fail; > } > if (length <= 0) { > length = 0; > range = PyArray_NewFromDescr(&PyArray_Type, dtype, 1, &length, ((void *)0), ((void *)0), 0, ((void *)0)); > do { if ( --((PyObject*)(step))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(step)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(step)))); } while (0); > do { if ( --((PyObject*)(start))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(start)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(start)))); } while (0); > return range; > } > > > > > > if (!((dtype->byteorder) != '>')) { > native = PyArray_DescrNewByteorder(dtype, '<'); > swap = 1; > } > else { > native = dtype; > swap = 0; > } > > range = PyArray_NewFromDescr(&PyArray_Type, native, 1, &length, ((void *)0), ((void *)0), 0, ((void *)0)); > if (range == ((void *)0)) { > goto fail; > } > > > > > > funcs = (((PyArrayObject *)(range))->descr)->f; > if (funcs->setitem( > start, ((void *)(((PyArrayObject *)(range))->data)), (PyArrayObject *)range) < 0) { > goto fail; > } > if (length == 1) { > goto finish; > } > if (funcs->setitem(next, (((PyArrayObject *)(range))->data)+(((PyArrayObject *)(range))->descr->elsize), > (PyArrayObject *)range) < 0) { > goto fail; > } > if (length == 2) { > goto finish; > } > if (!funcs->fill) { > PyErr_SetString(PyExc_ValueError, "no fill-function for data-type."); > do { if ( --((PyObject*)(range))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(range)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(range)))); } while (0); > goto fail; > } > funcs->fill(((void *)(((PyArrayObject *)(range))->data)), length, (PyArrayObject *)range); > if (PyErr_Occurred()) { > goto fail; > } > finish: > if (swap) { > PyObject *new; > new = PyArray_Byteswap((PyArrayObject *)range, 1); > do { if ( --((PyObject*)(new))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(new)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(new)))); } while (0); > do { if ( --((PyObject*)((((PyArrayObject *)(range))->descr)))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)((((PyArrayObject *)(range))->descr))))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)((((PyArrayObject *)(range))->descr))))); } while (0); > (((PyArrayObject *)(range))->descr) = dtype; > } > do { if ( --((PyObject*)(start))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(start)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(start)))); } while (0); > do { if ( --((PyObject*)(step))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(step)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(step)))); } while (0); > do { if ( --((PyObject*)(next))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(next)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(next)))); } while (0); > return range; > > fail: > do { if ( --((PyObject*)(start))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(start)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(start)))); } while (0); > do { if ( --((PyObject*)(step))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(step)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(step)))); } while (0); > do { if ((next) == ((void *)0)) ; else do { if ( --((PyObject*)(next))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(next)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(next)))); } while (0); } while (0); > return ((void *)0); >} > >static PyArrayObject * >array_fromfile_binary(FILE *fp, PyArray_Descr *dtype, npy_intp num, size_t *nread) >{ > PyArrayObject *r; > npy_intp start, numbytes; > > if (num < 0) { > int fail = 0; ># 3259 "numpy/core/src/multiarray/ctors.c" > start = (npy_intp)ftell(fp); > if (start < 0) { > fail = 1; > } > if (fseek(fp, 0, 2) < 0) { > fail = 1; > } > numbytes = (npy_intp) ftell(fp); > if (numbytes < 0) { > fail = 1; > } > numbytes -= start; > if (fseek(fp, start, 0) < 0) { > fail = 1; > } > > if (fail) { > PyErr_SetString(PyExc_IOError, > "could not seek in file"); > do { if ( --((PyObject*)(dtype))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(dtype)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(dtype)))); } while (0); > return ((void *)0); > } > num = numbytes / dtype->elsize; > } > r = (PyArrayObject *)PyArray_NewFromDescr(&PyArray_Type, > dtype, > 1, &num, > ((void *)0), ((void *)0), > 0, ((void *)0)); > if (r == ((void *)0)) { > return ((void *)0); > } > { PyThreadState *_save; _save = PyEval_SaveThread();; > *nread = fread(r->data, dtype->elsize, num, fp); > PyEval_RestoreThread(_save); }; > return r; >} > > > > > > >static PyArrayObject * >array_from_text(PyArray_Descr *dtype, npy_intp num, char *sep, size_t *nread, > void *stream, next_element next, skip_separator skip_sep, > void *stream_data) >{ > PyArrayObject *r; > npy_intp i; > char *dptr, *clean_sep, *tmp; > int err = 0; > npy_intp thisbuf = 0; > npy_intp size; > npy_intp bytes, totalbytes; > > size = (num >= 0) ? num : 4096; > r = (PyArrayObject *) > PyArray_NewFromDescr(&PyArray_Type, > dtype, > 1, &size, > ((void *)0), ((void *)0), > 0, ((void *)0)); > if (r == ((void *)0)) { > return ((void *)0); > } > clean_sep = swab_separator(sep); > { PyThreadState *_save; _save = PyEval_SaveThread();; > totalbytes = bytes = size * dtype->elsize; > dptr = r->data; > for (i= 0; num < 0 || i < num; i++) { > if (next(&stream, dptr, dtype, stream_data) < 0) { > break; > } > *nread += 1; > thisbuf += 1; > dptr += dtype->elsize; > if (num < 0 && thisbuf == size) { > totalbytes += bytes; > tmp = ((char *)realloc(r->data,totalbytes)); > if (tmp == ((void *)0)) { > err = 1; > break; > } > r->data = tmp; > dptr = tmp + (totalbytes - bytes); > thisbuf = 0; > } > if (skip_sep(&stream, clean_sep, stream_data) < 0) { > break; > } > } > if (num < 0) { > tmp = ((char *)realloc(r->data,(((*nread)>(1))?(*nread):(1))*dtype->elsize)); > if (tmp == ((void *)0)) { > err = 1; > } > else { > ((((PyArrayObject *)(r))->dimensions)[0]) = *nread; > r->data = tmp; > } > } > PyEval_RestoreThread(_save); }; > free(clean_sep); > if (err == 1) { > PyErr_NoMemory(); > } > if (PyErr_Occurred()) { > do { if ( --((PyObject*)(r))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(r)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(r)))); } while (0); > return ((void *)0); > } > return r; >} ># 3393 "numpy/core/src/multiarray/ctors.c" >static PyObject * >PyArray_FromFile(FILE *fp, PyArray_Descr *dtype, npy_intp num, char *sep) >{ > PyArrayObject *ret; > size_t nread = 0; > > if ((((dtype)->flags & (0x01)) == (0x01))) { > PyErr_SetString(PyExc_ValueError, > "Cannot read into object array"); > do { if ( --((PyObject*)(dtype))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(dtype)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(dtype)))); } while (0); > return ((void *)0); > } > if (dtype->elsize == 0) { > PyErr_SetString(PyExc_ValueError, > "The elements are 0-sized."); > do { if ( --((PyObject*)(dtype))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(dtype)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(dtype)))); } while (0); > return ((void *)0); > } > if ((sep == ((void *)0)) || (strlen(sep) == 0)) { > ret = array_fromfile_binary(fp, dtype, num, &nread); > } > else { > if (dtype->f->scanfunc == ((void *)0)) { > PyErr_SetString(PyExc_ValueError, > "Unable to read character files of that array type"); > do { if ( --((PyObject*)(dtype))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(dtype)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(dtype)))); } while (0); > return ((void *)0); > } > ret = array_from_text(dtype, num, sep, &nread, fp, > (next_element) fromfile_next_element, > (skip_separator) fromfile_skip_separator, ((void *)0)); > } > if (ret == ((void *)0)) { > do { if ( --((PyObject*)(dtype))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(dtype)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(dtype)))); } while (0); > return ((void *)0); > } > if (((npy_intp) nread) < num) { > > const size_t nsize = (((nread)>(1))?(nread):(1))*ret->descr->elsize; > char *tmp; > > if((tmp = ((char *)realloc(ret->data,nsize))) == ((void *)0)) { > do { if ( --((PyObject*)(ret))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(ret)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(ret)))); } while (0); > return PyErr_NoMemory(); > } > ret->data = tmp; > ((((PyArrayObject *)(ret))->dimensions)[0]) = nread; > } > return (PyObject *)ret; >} > > >static PyObject * >PyArray_FromBuffer(PyObject *buf, PyArray_Descr *type, > npy_intp count, npy_intp offset) >{ > PyArrayObject *ret; > char *data; > Py_ssize_t ts; > npy_intp s, n; > int itemsize; > int writeable = 1; > > > if ((((type)->flags & (0x01)) == (0x01))) { > PyErr_SetString(PyExc_ValueError, > "cannot create an OBJECT array from memory" " buffer"); > > do { if ( --((PyObject*)(type))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(type)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(type)))); } while (0); > return ((void *)0); > } > if (type->elsize == 0) { > PyErr_SetString(PyExc_ValueError, > "itemsize cannot be zero in type"); > do { if ( --((PyObject*)(type))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(type)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(type)))); } while (0); > return ((void *)0); > } > if ((((PyObject*)(buf))->ob_type)->tp_as_buffer == ((void *)0) > > > > || ((((PyObject*)(buf))->ob_type)->tp_as_buffer->bf_getwritebuffer == ((void *)0) > && (((PyObject*)(buf))->ob_type)->tp_as_buffer->bf_getreadbuffer == ((void *)0)) > > ) { > PyObject *newbuf; > newbuf = PyObject_GetAttrString(buf, "__buffer__"); > if (newbuf == ((void *)0)) { > do { if ( --((PyObject*)(type))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(type)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(type)))); } while (0); > return ((void *)0); > } > buf = newbuf; > } > else { > ( ((PyObject*)(buf))->ob_refcnt++); > } > > if (PyObject_AsWriteBuffer(buf, (void *)&data, &ts) == -1) { > writeable = 0; > PyErr_Clear(); > if (PyObject_AsReadBuffer(buf, (void *)&data, &ts) == -1) { > do { if ( --((PyObject*)(buf))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(buf)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(buf)))); } while (0); > do { if ( --((PyObject*)(type))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(type)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(type)))); } while (0); > return ((void *)0); > } > } > > if ((offset < 0) || (offset >= ts)) { > PyErr_Format(PyExc_ValueError, > "offset must be non-negative and smaller than buffer " "lenth (%" "l" "d" ")", (npy_intp)ts); > > do { if ( --((PyObject*)(buf))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(buf)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(buf)))); } while (0); > do { if ( --((PyObject*)(type))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(type)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(type)))); } while (0); > return ((void *)0); > } > > data += offset; > s = (npy_intp)ts - offset; > n = (npy_intp)count; > itemsize = type->elsize; > if (n < 0 ) { > if (s % itemsize != 0) { > PyErr_SetString(PyExc_ValueError, > "buffer size must be a multiple" " of element size"); > > do { if ( --((PyObject*)(buf))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(buf)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(buf)))); } while (0); > do { if ( --((PyObject*)(type))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(type)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(type)))); } while (0); > return ((void *)0); > } > n = s/itemsize; > } > else { > if (s < n*itemsize) { > PyErr_SetString(PyExc_ValueError, > "buffer is smaller than requested" " size"); > > do { if ( --((PyObject*)(buf))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(buf)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(buf)))); } while (0); > do { if ( --((PyObject*)(type))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(type)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(type)))); } while (0); > return ((void *)0); > } > } > > if ((ret = (PyArrayObject *)PyArray_NewFromDescr(&PyArray_Type, > type, > 1, &n, > ((void *)0), data, > (0x0001 | (0x0100 | 0x0400)), > ((void *)0))) == ((void *)0)) { > do { if ( --((PyObject*)(buf))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(buf)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(buf)))); } while (0); > return ((void *)0); > } > > if (!writeable) { > ret->flags &= ~0x0400; > } > > ret->base = buf; > PyArray_UpdateFlags(ret, 0x0100); > return (PyObject *)ret; >} ># 3575 "numpy/core/src/multiarray/ctors.c" >static PyObject * >PyArray_FromString(char *data, npy_intp slen, PyArray_Descr *dtype, > npy_intp num, char *sep) >{ > int itemsize; > PyArrayObject *ret; > npy_bool binary; > > if (dtype == ((void *)0)) { > dtype=PyArray_DescrFromType(NPY_DOUBLE); > } > if ((((dtype)->flags & (0x04)) == (0x04)) || > (((dtype)->flags & (0x01)) == (0x01))) { > PyErr_SetString(PyExc_ValueError, > "Cannot create an object array from" " a string"); > > do { if ( --((PyObject*)(dtype))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(dtype)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(dtype)))); } while (0); > return ((void *)0); > } > itemsize = dtype->elsize; > if (itemsize == 0) { > PyErr_SetString(PyExc_ValueError, "zero-valued itemsize"); > do { if ( --((PyObject*)(dtype))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(dtype)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(dtype)))); } while (0); > return ((void *)0); > } > > binary = ((sep == ((void *)0)) || (strlen(sep) == 0)); > if (binary) { > if (num < 0 ) { > if (slen % itemsize != 0) { > PyErr_SetString(PyExc_ValueError, > "string size must be a " "multiple of element size"); > > do { if ( --((PyObject*)(dtype))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(dtype)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(dtype)))); } while (0); > return ((void *)0); > } > num = slen/itemsize; > } > else { > if (slen < num*itemsize) { > PyErr_SetString(PyExc_ValueError, > "string is smaller than " "requested size"); > > do { if ( --((PyObject*)(dtype))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(dtype)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(dtype)))); } while (0); > return ((void *)0); > } > } > ret = (PyArrayObject *) > PyArray_NewFromDescr(&PyArray_Type, dtype, > 1, &num, ((void *)0), ((void *)0), > 0, ((void *)0)); > if (ret == ((void *)0)) { > return ((void *)0); > } > memcpy(ret->data, data, num*dtype->elsize); > } > else { > > size_t nread = 0; > char *end; > > if (dtype->f->scanfunc == ((void *)0)) { > PyErr_SetString(PyExc_ValueError, > "don't know how to read " "character strings with that " "array type"); > > > do { if ( --((PyObject*)(dtype))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(dtype)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(dtype)))); } while (0); > return ((void *)0); > } > if (slen < 0) { > end = ((void *)0); > } > else { > end = data + slen; > } > ret = array_from_text(dtype, num, sep, &nread, > data, > (next_element) fromstr_next_element, > (skip_separator) fromstr_skip_separator, > end); > } > return (PyObject *)ret; >} > > > > > >static PyObject * >PyArray_FromIter(PyObject *obj, PyArray_Descr *dtype, npy_intp count) >{ > PyObject *value; > PyObject *iter = PyObject_GetIter(obj); > PyArrayObject *ret = ((void *)0); > npy_intp i, elsize, elcount; > char *item, *new_data; > > if (iter == ((void *)0)) { > goto done; > } > elcount = (count < 0) ? 0 : count; > if ((elsize=dtype->elsize) == 0) { > PyErr_SetString(PyExc_ValueError, "Must specify length " "when using variable-size data-type."); > > goto done; > } > > > > > > if ((((dtype)->flags & (0x01)) == (0x01))) { > PyErr_SetString(PyExc_ValueError, "cannot create " "object arrays from iterator"); > > goto done; > } > > ret = (PyArrayObject *)PyArray_NewFromDescr(&PyArray_Type, dtype, 1, > &elcount, ((void *)0),((void *)0), 0, ((void *)0)); > dtype = ((void *)0); > if (ret == ((void *)0)) { > goto done; > } > for (i = 0; (i < count || count == -1) && > (value = PyIter_Next(iter)); i++) { > if (i >= elcount) { > > > > > > elcount = (i >> 1) + (i < 4 ? 4 : 2) + i; > if (elcount <= 9223372036854775807L/elsize) { > new_data = ((char *)realloc(ret->data,elcount * elsize)); > } > else { > new_data = ((void *)0); > } > if (new_data == ((void *)0)) { > PyErr_SetString(PyExc_MemoryError, > "cannot allocate array memory"); > do { if ( --((PyObject*)(value))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(value)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(value)))); } while (0); > goto done; > } > ret->data = new_data; > } > ret->dimensions[0] = i + 1; > > if (((item = index2ptr(ret, i)) == ((void *)0)) > || (ret->descr->f->setitem(value, item, ret) == -1)) { > do { if ( --((PyObject*)(value))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(value)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(value)))); } while (0); > goto done; > } > do { if ( --((PyObject*)(value))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(value)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(value)))); } while (0); > } > > if (i < count) { > PyErr_SetString(PyExc_ValueError, "iterator too short"); > goto done; > } > > > > > > if (i == 0) { > i = 1; > } > new_data = ((char *)realloc(ret->data,i * elsize)); > if (new_data == ((void *)0)) { > PyErr_SetString(PyExc_MemoryError, "cannot allocate array memory"); > goto done; > } > ret->data = new_data; > > done: > do { if ((iter) == ((void *)0)) ; else do { if ( --((PyObject*)(iter))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(iter)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(iter)))); } while (0); } while (0); > do { if ((dtype) == ((void *)0)) ; else do { if ( --((PyObject*)(dtype))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(dtype)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(dtype)))); } while (0); } while (0); > if (PyErr_Occurred()) { > do { if ((ret) == ((void *)0)) ; else do { if ( --((PyObject*)(ret))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(ret)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(ret)))); } while (0); } while (0); > return ((void *)0); > } > return (PyObject *)ret; >} ># 3777 "numpy/core/src/multiarray/ctors.c" >static size_t >_array_fill_strides(npy_intp *strides, npy_intp *dims, int nd, size_t itemsize, > int inflag, int *objflags) >{ > int i; > > if ((inflag & (0x0002|0x0001)) == 0x0002) { > for (i = 0; i < nd; i++) { > strides[i] = itemsize; > itemsize *= dims[i] ? dims[i] : 1; > } > if (nd > 1) { > *objflags = ((*objflags)|0x0002) & ~0x0001; > } > else { > *objflags |= (0x0002|0x0001); > } > } > else { > for (i = nd - 1; i >= 0; i--) { > strides[i] = itemsize; > itemsize *= dims[i] ? dims[i] : 1; > } > if (nd > 1) { > *objflags = ((*objflags)|0x0001) & ~0x0002; > } > else { > *objflags |= (0x0001|0x0002); > } > } > return itemsize; >} ># 22 "numpy/core/src/multiarray/multiarraymodule_onefile.c" 2 ># 1 "numpy/core/src/multiarray/iterators.c" 1 ># 14 "numpy/core/src/multiarray/iterators.c" ># 1 "numpy/core/src/multiarray/arrayobject.h" 1 > > > > > > > >static PyObject * >_strings_richcompare(PyArrayObject *self, PyArrayObject *other, int cmp_op, > int rstrip); > >static PyObject * >array_richcompare(PyArrayObject *self, PyObject *other, int cmp_op); ># 15 "numpy/core/src/multiarray/iterators.c" 2 ># 1 "numpy/core/src/multiarray/iterators.h" 1 > > > >static npy_intp >parse_subindex(PyObject *op, npy_intp *step_size, npy_intp *n_steps, npy_intp max); > >static int >parse_index(PyArrayObject *self, PyObject *op, > npy_intp *dimensions, npy_intp *strides, npy_intp *offset_ptr); > >static PyObject >*iter_subscript(PyArrayIterObject *, PyObject *); > >static int >iter_ass_subscript(PyArrayIterObject *, PyObject *, PyObject *); > >static int >slice_GetIndices(PySliceObject *r, npy_intp length, > npy_intp *start, npy_intp *stop, npy_intp *step, > npy_intp *slicelength); ># 16 "numpy/core/src/multiarray/iterators.c" 2 > > > > > > > >static npy_intp >parse_subindex(PyObject *op, npy_intp *step_size, npy_intp *n_steps, npy_intp max) >{ > npy_intp index; > > if (op == (&_Py_NoneStruct)) { > *n_steps = -1; > index = 0; > } > else if (op == (&_Py_EllipsisObject)) { > *n_steps = -2; > index = 0; > } > else if (((((PyObject*)(op))->ob_type) == &PySlice_Type)) { > npy_intp stop; > if (slice_GetIndices((PySliceObject *)op, max, > &index, &stop, step_size, n_steps) < 0) { > if (!PyErr_Occurred()) { > PyErr_SetString(PyExc_IndexError, > "invalid slice"); > } > goto fail; > } > if (*n_steps <= 0) { > *n_steps = 0; > *step_size = 1; > index = 0; > } > } > else { > index = PyArray_PyIntAsIntp(op); > if ((((index) == -1) && PyErr_Occurred())) { > PyErr_SetString(PyExc_IndexError, > "each subindex must be either a " "slice, an integer, Ellipsis, or " "newaxis"); > > > goto fail; > } > *n_steps = -3; > *step_size = 0; > if (index < 0) { > index += max; > } > if (index >= max || index < 0) { > PyErr_SetString(PyExc_IndexError, "invalid index"); > goto fail; > } > } > return index; > > fail: > return -1; >} > > >static int >parse_index(PyArrayObject *self, PyObject *op, > npy_intp *dimensions, npy_intp *strides, npy_intp *offset_ptr) >{ > int i, j, n; > int nd_old, nd_new, n_add, n_pseudo; > npy_intp n_steps, start, offset, step_size; > PyObject *op1 = ((void *)0); > int is_slice; > > if (((((PyObject*)(op))->ob_type) == &PySlice_Type) || op == (&_Py_EllipsisObject) || op == (&_Py_NoneStruct)) { > n = 1; > op1 = op; > ( ((PyObject*)(op))->ob_refcnt++); > > is_slice = 1; > } > else { > if (!PySequence_Check(op)) { > PyErr_SetString(PyExc_IndexError, > "index must be either an int " "or a sequence"); > > return -1; > } > n = PySequence_Size(op); > is_slice = 0; > } > > nd_old = nd_new = 0; > > offset = 0; > for (i = 0; i < n; i++) { > if (!is_slice) { > if (!(op1=PySequence_GetItem(op, i))) { > PyErr_SetString(PyExc_IndexError, > "invalid index"); > return -1; > } > } > start = parse_subindex(op1, &step_size, &n_steps, > nd_old < self->nd ? > self->dimensions[nd_old] : 0); > do { if ( --((PyObject*)(op1))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(op1)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(op1)))); } while (0); > if (start == -1) { > break; > } > if (n_steps == -1) { > dimensions[nd_new] = 1; strides[nd_new] = 0; > nd_new++; > } > else { > if (n_steps == -2) { > for (j = i + 1, n_pseudo = 0; j < n; j++) { > op1 = PySequence_GetItem(op, j); > if (op1 == (&_Py_NoneStruct)) { > n_pseudo++; > } > do { if ( --((PyObject*)(op1))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(op1)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(op1)))); } while (0); > } > n_add = self->nd-(n-i-n_pseudo-1+nd_old); > if (n_add < 0) { > PyErr_SetString(PyExc_IndexError, > "too many indices"); > return -1; > } > for (j = 0; j < n_add; j++) { > dimensions[nd_new] = self->dimensions[nd_old]; > > strides[nd_new] = self->strides[nd_old]; > > nd_new++; nd_old++; > } > } > else { > if (nd_old >= self->nd) { > PyErr_SetString(PyExc_IndexError, > "too many indices"); > return -1; > } > offset += self->strides[nd_old]*start; > nd_old++; > if (n_steps != -3) { > dimensions[nd_new] = n_steps; > strides[nd_new] = step_size * self->strides[nd_old-1]; > > nd_new++; > } > } > } > } > if (i < n) { > return -1; > } > n_add = self->nd-nd_old; > for (j = 0; j < n_add; j++) { > dimensions[nd_new] = self->dimensions[nd_old]; > strides[nd_new] = self->strides[nd_old]; > nd_new++; > nd_old++; > } > *offset_ptr = offset; > return nd_new; >} > >static int >slice_coerce_index(PyObject *o, npy_intp *v) >{ > *v = PyArray_PyIntAsIntp(o); > if ((((*v) == -1) && PyErr_Occurred())) { > PyErr_Clear(); > return 0; > } > return 1; >} > > > >static int >slice_GetIndices(PySliceObject *r, npy_intp length, > npy_intp *start, npy_intp *stop, npy_intp *step, > npy_intp *slicelength) >{ > npy_intp defstop; > > if (r->step == (&_Py_NoneStruct)) { > *step = 1; > } > else { > if (!slice_coerce_index(r->step, step)) { > return -1; > } > if (*step == 0) { > PyErr_SetString(PyExc_ValueError, > "slice step cannot be zero"); > return -1; > } > } > > defstop = *step < 0 ? -1 : length; > if (r->start == (&_Py_NoneStruct)) { > *start = *step < 0 ? length-1 : 0; > } > else { > if (!slice_coerce_index(r->start, start)) { > return -1; > } > if (*start < 0) { > *start += length; > } > if (*start < 0) { > *start = (*step < 0) ? -1 : 0; > } > if (*start >= length) { > *start = (*step < 0) ? length - 1 : length; > } > } > > if (r->stop == (&_Py_NoneStruct)) { > *stop = defstop; > } > else { > if (!slice_coerce_index(r->stop, stop)) { > return -1; > } > if (*stop < 0) { > *stop += length; > } > if (*stop < 0) { > *stop = -1; > } > if (*stop > length) { > *stop = length; > } > } > > if ((*step < 0 && *stop >= *start) || > (*step > 0 && *start >= *stop)) { > *slicelength = 0; > } > else if (*step < 0) { > *slicelength = (*stop - *start + 1) / (*step) + 1; > } > else { > *slicelength = (*stop - *start - 1) / (*step) + 1; > } > > return 0; >} > > > > > > >static char* >get_ptr_simple(PyArrayIterObject* iter, npy_intp *coordinates) >{ > npy_intp i; > char *ret; > > ret = iter->ao->data; > > for(i = 0; i < iter->ao->nd; ++i) { > ret += coordinates[i] * iter->strides[i]; > } > > return ret; >} > > > > > > > >static PyObject * >array_iter_base_init(PyArrayIterObject *it, PyArrayObject *ao) >{ > int nd, i; > > nd = ao->nd; > PyArray_UpdateFlags(ao, 0x0001); > if (((((PyArrayObject *)(ao))->flags & (0x0001)) == (0x0001))) { > it->contiguous = 1; > } > else { > it->contiguous = 0; > } > ( ((PyObject*)(ao))->ob_refcnt++); > it->ao = ao; > it->size = PyArray_MultiplyList((((PyArrayObject *)(ao))->dimensions), (((PyArrayObject *)(ao))->nd)); > it->nd_m1 = nd - 1; > it->factors[nd-1] = 1; > for (i = 0; i < nd; i++) { > it->dims_m1[i] = ao->dimensions[i] - 1; > it->strides[i] = ao->strides[i]; > it->backstrides[i] = it->strides[i] * it->dims_m1[i]; > if (i > 0) { > it->factors[nd-i-1] = it->factors[nd-i] * ao->dimensions[nd-i]; > } > it->bounds[i][0] = 0; > it->bounds[i][1] = ao->dimensions[i] - 1; > it->limits[i][0] = 0; > it->limits[i][1] = ao->dimensions[i] - 1; > it->limits_sizes[i] = it->limits[i][1] - it->limits[i][0] + 1; > } > > it->translate = &get_ptr_simple; > { ((PyArrayIterObject *)(it))->index = 0; ((PyArrayIterObject *)(it))->dataptr = ((PyArrayIterObject *)(it))->ao->data; memset(((PyArrayIterObject *)(it))->coordinates, 0, (((PyArrayIterObject *)(it))->nd_m1+1)*sizeof(npy_intp)); }; > > return (PyObject *)it; >} > >static void >array_iter_base_dealloc(PyArrayIterObject *it) >{ > do { if ((it->ao) == ((void *)0)) ; else do { if ( --((PyObject*)(it->ao))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(it->ao)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(it->ao)))); } while (0); } while (0); >} > > > > >static PyObject * >PyArray_IterNew(PyObject *obj) >{ > PyArrayIterObject *it; > PyArrayObject *ao = (PyArrayObject *)obj; > > if (!((((PyObject*)(ao))->ob_type) == (&PyArray_Type) || PyType_IsSubtype((((PyObject*)(ao))->ob_type), (&PyArray_Type)))) { > _PyErr_BadInternalCall("numpy/core/src/multiarray/iterators.c", 347); > return ((void *)0); > } > > it = (PyArrayIterObject *)PyMem_Malloc(sizeof(PyArrayIterObject)); > PyObject_Init((PyObject *)it, &PyArrayIter_Type); > > if (it == ((void *)0)) { > return ((void *)0); > } > > array_iter_base_init(it, ao); > return (PyObject *)it; >} > > > > >static PyObject * >PyArray_BroadcastToShape(PyObject *obj, npy_intp *dims, int nd) >{ > PyArrayIterObject *it; > int i, diff, j, compat, k; > PyArrayObject *ao = (PyArrayObject *)obj; > > if (ao->nd > nd) { > goto err; > } > compat = 1; > diff = j = nd - ao->nd; > for (i = 0; i < ao->nd; i++, j++) { > if (ao->dimensions[i] == 1) { > continue; > } > if (ao->dimensions[i] != dims[j]) { > compat = 0; > break; > } > } > if (!compat) { > goto err; > } > it = (PyArrayIterObject *)PyMem_Malloc(sizeof(PyArrayIterObject)); > PyObject_Init((PyObject *)it, &PyArrayIter_Type); > > if (it == ((void *)0)) { > return ((void *)0); > } > PyArray_UpdateFlags(ao, 0x0001); > if (((((PyArrayObject *)(ao))->flags & (0x0001)) == (0x0001))) { > it->contiguous = 1; > } > else { > it->contiguous = 0; > } > ( ((PyObject*)(ao))->ob_refcnt++); > it->ao = ao; > it->size = PyArray_MultiplyList(dims, nd); > it->nd_m1 = nd - 1; > it->factors[nd-1] = 1; > for (i = 0; i < nd; i++) { > it->dims_m1[i] = dims[i] - 1; > k = i - diff; > if ((k < 0) || ao->dimensions[k] != dims[i]) { > it->contiguous = 0; > it->strides[i] = 0; > } > else { > it->strides[i] = ao->strides[k]; > } > it->backstrides[i] = it->strides[i] * it->dims_m1[i]; > if (i > 0) { > it->factors[nd-i-1] = it->factors[nd-i] * dims[nd-i]; > } > } > { ((PyArrayIterObject *)(it))->index = 0; ((PyArrayIterObject *)(it))->dataptr = ((PyArrayIterObject *)(it))->ao->data; memset(((PyArrayIterObject *)(it))->coordinates, 0, (((PyArrayIterObject *)(it))->nd_m1+1)*sizeof(npy_intp)); }; > return (PyObject *)it; > > err: > PyErr_SetString(PyExc_ValueError, "array is not broadcastable to " "correct shape"); > > return ((void *)0); >} ># 440 "numpy/core/src/multiarray/iterators.c" >static PyObject * >PyArray_IterAllButAxis(PyObject *obj, int *inaxis) >{ > PyArrayIterObject *it; > int axis; > it = (PyArrayIterObject *)PyArray_IterNew(obj); > if (it == ((void *)0)) { > return ((void *)0); > } > if ((((PyArrayObject *)(obj))->nd)==0) { > return (PyObject *)it; > } > if (*inaxis < 0) { > int i, minaxis = 0; > npy_intp minstride = 0; > i = 0; > while (minstride == 0 && i < (((PyArrayObject *)(obj))->nd)) { > minstride = ((((PyArrayObject *)(obj))->strides)[i]); > i++; > } > for (i = 1; i < (((PyArrayObject *)(obj))->nd); i++) { > if (((((PyArrayObject *)(obj))->strides)[i]) > 0 && > ((((PyArrayObject *)(obj))->strides)[i]) < minstride) { > minaxis = i; > minstride = ((((PyArrayObject *)(obj))->strides)[i]); > } > } > *inaxis = minaxis; > } > axis = *inaxis; > > it->contiguous = 0; > if (it->size != 0) { > it->size /= ((((PyArrayObject *)(obj))->dimensions)[axis]); > } > it->dims_m1[axis] = 0; > it->backstrides[axis] = 0; > > > > > > return (PyObject *)it; >} ># 493 "numpy/core/src/multiarray/iterators.c" >static int >PyArray_RemoveSmallest(PyArrayMultiIterObject *multi) >{ > PyArrayIterObject *it; > int i, j; > int axis; > npy_intp smallest; > npy_intp sumstrides[32]; > > if (multi->nd == 0) { > return -1; > } > for (i = 0; i < multi->nd; i++) { > sumstrides[i] = 0; > for (j = 0; j < multi->numiter; j++) { > sumstrides[i] += multi->iters[j]->strides[i]; > } > } > axis = 0; > smallest = sumstrides[0]; > > for (i = 1; i < multi->nd; i++) { > if (sumstrides[i] < smallest) { > axis = i; > smallest = sumstrides[i]; > } > } > for(i = 0; i < multi->numiter; i++) { > it = multi->iters[i]; > it->contiguous = 0; > if (it->size != 0) { > it->size /= (it->dims_m1[axis]+1); > } > it->dims_m1[axis] = 0; > it->backstrides[axis] = 0; > } > multi->size = multi->iters[0]->size; > return axis; >} > > > >static PyObject * >arrayiter_next(PyArrayIterObject *it) >{ > PyObject *ret; > > if (it->index < it->size) { > ret = PyArray_Scalar(it->dataptr, (((PyArrayObject *)(it->ao))->descr), (PyObject *)it->ao); > { ((PyArrayIterObject *)(it))->index++; if (((PyArrayIterObject *)(it))->nd_m1 == 0) { { (((PyArrayIterObject *)(it)))->dataptr += ((PyArrayIterObject *)(((PyArrayIterObject *)(it))))->strides[0]; (((PyArrayIterObject *)(it)))->coordinates[0]++; }; } else if (((PyArrayIterObject *)(it))->contiguous) ((PyArrayIterObject *)(it))->dataptr += ((PyArrayIterObject *)(it))->ao->descr->elsize; else if (((PyArrayIterObject *)(it))->nd_m1 == 1) { { if ((((PyArrayIterObject *)(it)))->coordinates[1] < (((PyArrayIterObject *)(it)))->dims_m1[1]) { (((PyArrayIterObject *)(it)))->coordinates[1]++; (((PyArrayIterObject *)(it)))->dataptr += (((PyArrayIterObject *)(it)))->strides[1]; } else { (((PyArrayIterObject *)(it)))->coordinates[1] = 0; (((PyArrayIterObject *)(it)))->coordinates[0]++; (((PyArrayIterObject *)(it)))->dataptr += (((PyArrayIterObject *)(it)))->strides[0] - (((PyArrayIterObject *)(it)))->backstrides[1]; } }; } else { int __npy_i; for (__npy_i=((PyArrayIterObject *)(it))->nd_m1; __npy_i >= 0; __npy_i--) { if (((PyArrayIterObject *)(it))->coordinates[__npy_i] < ((PyArrayIterObject *)(it))->dims_m1[__npy_i]) { ((PyArrayIterObject *)(it))->coordinates[__npy_i]++; ((PyArrayIterObject *)(it))->dataptr += ((PyArrayIterObject *)(it))->strides[__npy_i]; break; } else { ((PyArrayIterObject *)(it))->coordinates[__npy_i] = 0; ((PyArrayIterObject *)(it))->dataptr -= ((PyArrayIterObject *)(it))->backstrides[__npy_i]; } } } }; > return ret; > } > return ((void *)0); >} > >static void >arrayiter_dealloc(PyArrayIterObject *it) >{ > array_iter_base_dealloc(it); > PyMem_Free(it); >} > >static Py_ssize_t >iter_length(PyArrayIterObject *self) >{ > return self->size; >} > > >static PyObject * >iter_subscript_Bool(PyArrayIterObject *self, PyArrayObject *ind) >{ > npy_intp index, strides; > int itemsize; > npy_intp count = 0; > char *dptr, *optr; > PyObject *r; > int swap; > PyArray_CopySwapFunc *copyswap; > > > if (ind->nd != 1) { > PyErr_SetString(PyExc_ValueError, > "boolean index array should have 1 dimension"); > return ((void *)0); > } > index = ind->dimensions[0]; > if (index > self->size) { > PyErr_SetString(PyExc_ValueError, > "too many boolean indices"); > return ((void *)0); > } > > strides = ind->strides[0]; > dptr = ind->data; > > while (index--) { > if (*((npy_bool *)dptr) != 0) { > count++; > } > dptr += strides; > } > itemsize = self->ao->descr->elsize; > ( ((PyObject*)(self->ao->descr))->ob_refcnt++); > r = PyArray_NewFromDescr((((PyObject*)(self->ao))->ob_type), > self->ao->descr, 1, &count, > ((void *)0), ((void *)0), > 0, (PyObject *)self->ao); > if (r == ((void *)0)) { > return ((void *)0); > } > > optr = ((void *)(((PyArrayObject *)(r))->data)); > index = ind->dimensions[0]; > dptr = ind->data; > copyswap = self->ao->descr->f->copyswap; > > swap = ((((((PyArrayObject *)(self->ao))->descr)->byteorder) != '>') != (((((PyArrayObject *)(r))->descr)->byteorder) != '>')); > while (index--) { > if (*((npy_bool *)dptr) != 0) { > copyswap(optr, self->dataptr, swap, self->ao); > optr += itemsize; > } > dptr += strides; > { ((PyArrayIterObject *)(self))->index++; if (((PyArrayIterObject *)(self))->nd_m1 == 0) { { (((PyArrayIterObject *)(self)))->dataptr += ((PyArrayIterObject *)(((PyArrayIterObject *)(self))))->strides[0]; (((PyArrayIterObject *)(self)))->coordinates[0]++; }; } else if (((PyArrayIterObject *)(self))->contiguous) ((PyArrayIterObject *)(self))->dataptr += ((PyArrayIterObject *)(self))->ao->descr->elsize; else if (((PyArrayIterObject *)(self))->nd_m1 == 1) { { if ((((PyArrayIterObject *)(self)))->coordinates[1] < (((PyArrayIterObject *)(self)))->dims_m1[1]) { (((PyArrayIterObject *)(self)))->coordinates[1]++; (((PyArrayIterObject *)(self)))->dataptr += (((PyArrayIterObject *)(self)))->strides[1]; } else { (((PyArrayIterObject *)(self)))->coordinates[1] = 0; (((PyArrayIterObject *)(self)))->coordinates[0]++; (((PyArrayIterObject *)(self)))->dataptr += (((PyArrayIterObject *)(self)))->strides[0] - (((PyArrayIterObject *)(self)))->backstrides[1]; } }; } else { int __npy_i; for (__npy_i=((PyArrayIterObject *)(self))->nd_m1; __npy_i >= 0; __npy_i--) { if (((PyArrayIterObject *)(self))->coordinates[__npy_i] < ((PyArrayIterObject *)(self))->dims_m1[__npy_i]) { ((PyArrayIterObject *)(self))->coordinates[__npy_i]++; ((PyArrayIterObject *)(self))->dataptr += ((PyArrayIterObject *)(self))->strides[__npy_i]; break; } else { ((PyArrayIterObject *)(self))->coordinates[__npy_i] = 0; ((PyArrayIterObject *)(self))->dataptr -= ((PyArrayIterObject *)(self))->backstrides[__npy_i]; } } } }; > } > { ((PyArrayIterObject *)(self))->index = 0; ((PyArrayIterObject *)(self))->dataptr = ((PyArrayIterObject *)(self))->ao->data; memset(((PyArrayIterObject *)(self))->coordinates, 0, (((PyArrayIterObject *)(self))->nd_m1+1)*sizeof(npy_intp)); }; > return r; >} > >static PyObject * >iter_subscript_int(PyArrayIterObject *self, PyArrayObject *ind) >{ > npy_intp num; > PyObject *r; > PyArrayIterObject *ind_it; > int itemsize; > int swap; > char *optr; > npy_intp index; > PyArray_CopySwapFunc *copyswap; > > itemsize = self->ao->descr->elsize; > if (ind->nd == 0) { > num = *((npy_intp *)ind->data); > if (num < 0) { > num += self->size; > } > if (num < 0 || num >= self->size) { > PyErr_Format(PyExc_IndexError, > "index %""l" "d"" out of bounds" " 0<=index<%""l" "d", > > num, self->size); > r = ((void *)0); > } > else { > { int __npy_i; npy_intp __npy_ind = (npy_intp) (num); if (__npy_ind < 0) __npy_ind += ((PyArrayIterObject *)(self))->size; ((PyArrayIterObject *)(self))->index = __npy_ind; if (((PyArrayIterObject *)(self))->nd_m1 == 0) { ((PyArrayIterObject *)(self))->dataptr = ((PyArrayIterObject *)(self))->ao->data + __npy_ind * ((PyArrayIterObject *)(self))->strides[0]; } else if (((PyArrayIterObject *)(self))->contiguous) ((PyArrayIterObject *)(self))->dataptr = ((PyArrayIterObject *)(self))->ao->data + __npy_ind * ((PyArrayIterObject *)(self))->ao->descr->elsize; else { ((PyArrayIterObject *)(self))->dataptr = ((PyArrayIterObject *)(self))->ao->data; for (__npy_i = 0; __npy_i<=((PyArrayIterObject *)(self))->nd_m1; __npy_i++) { ((PyArrayIterObject *)(self))->dataptr += (__npy_ind / ((PyArrayIterObject *)(self))->factors[__npy_i]) * ((PyArrayIterObject *)(self))->strides[__npy_i]; __npy_ind %= ((PyArrayIterObject *)(self))->factors[__npy_i]; } } }; > r = PyArray_Scalar(self->dataptr, (((PyArrayObject *)(self->ao))->descr), (PyObject *)self->ao); > } > { ((PyArrayIterObject *)(self))->index = 0; ((PyArrayIterObject *)(self))->dataptr = ((PyArrayIterObject *)(self))->ao->data; memset(((PyArrayIterObject *)(self))->coordinates, 0, (((PyArrayIterObject *)(self))->nd_m1+1)*sizeof(npy_intp)); }; > return r; > } > > ( ((PyObject*)(self->ao->descr))->ob_refcnt++); > r = PyArray_NewFromDescr((((PyObject*)(self->ao))->ob_type), self->ao->descr, > ind->nd, ind->dimensions, > ((void *)0), ((void *)0), > 0, (PyObject *)self->ao); > if (r == ((void *)0)) { > return ((void *)0); > } > optr = ((void *)(((PyArrayObject *)(r))->data)); > ind_it = (PyArrayIterObject *)PyArray_IterNew((PyObject *)ind); > if (ind_it == ((void *)0)) { > do { if ( --((PyObject*)(r))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(r)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(r)))); } while (0); > return ((void *)0); > } > index = ind_it->size; > copyswap = (((PyArrayObject *)(r))->descr)->f->copyswap; > swap = ((((((PyArrayObject *)(r))->descr)->byteorder) != '>') != (((((PyArrayObject *)(self->ao))->descr)->byteorder) != '>')); > while (index--) { > num = *((npy_intp *)(ind_it->dataptr)); > if (num < 0) { > num += self->size; > } > if (num < 0 || num >= self->size) { > PyErr_Format(PyExc_IndexError, > "index %""l" "d"" out of bounds" " 0<=index<%""l" "d", > > num, self->size); > do { if ( --((PyObject*)(ind_it))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(ind_it)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(ind_it)))); } while (0); > do { if ( --((PyObject*)(r))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(r)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(r)))); } while (0); > { ((PyArrayIterObject *)(self))->index = 0; ((PyArrayIterObject *)(self))->dataptr = ((PyArrayIterObject *)(self))->ao->data; memset(((PyArrayIterObject *)(self))->coordinates, 0, (((PyArrayIterObject *)(self))->nd_m1+1)*sizeof(npy_intp)); }; > return ((void *)0); > } > { int __npy_i; npy_intp __npy_ind = (npy_intp) (num); if (__npy_ind < 0) __npy_ind += ((PyArrayIterObject *)(self))->size; ((PyArrayIterObject *)(self))->index = __npy_ind; if (((PyArrayIterObject *)(self))->nd_m1 == 0) { ((PyArrayIterObject *)(self))->dataptr = ((PyArrayIterObject *)(self))->ao->data + __npy_ind * ((PyArrayIterObject *)(self))->strides[0]; } else if (((PyArrayIterObject *)(self))->contiguous) ((PyArrayIterObject *)(self))->dataptr = ((PyArrayIterObject *)(self))->ao->data + __npy_ind * ((PyArrayIterObject *)(self))->ao->descr->elsize; else { ((PyArrayIterObject *)(self))->dataptr = ((PyArrayIterObject *)(self))->ao->data; for (__npy_i = 0; __npy_i<=((PyArrayIterObject *)(self))->nd_m1; __npy_i++) { ((PyArrayIterObject *)(self))->dataptr += (__npy_ind / ((PyArrayIterObject *)(self))->factors[__npy_i]) * ((PyArrayIterObject *)(self))->strides[__npy_i]; __npy_ind %= ((PyArrayIterObject *)(self))->factors[__npy_i]; } } }; > copyswap(optr, self->dataptr, swap, r); > optr += itemsize; > { ((PyArrayIterObject *)(ind_it))->index++; if (((PyArrayIterObject *)(ind_it))->nd_m1 == 0) { { (((PyArrayIterObject *)(ind_it)))->dataptr += ((PyArrayIterObject *)(((PyArrayIterObject *)(ind_it))))->strides[0]; (((PyArrayIterObject *)(ind_it)))->coordinates[0]++; }; } else if (((PyArrayIterObject *)(ind_it))->contiguous) ((PyArrayIterObject *)(ind_it))->dataptr += ((PyArrayIterObject *)(ind_it))->ao->descr->elsize; else if (((PyArrayIterObject *)(ind_it))->nd_m1 == 1) { { if ((((PyArrayIterObject *)(ind_it)))->coordinates[1] < (((PyArrayIterObject *)(ind_it)))->dims_m1[1]) { (((PyArrayIterObject *)(ind_it)))->coordinates[1]++; (((PyArrayIterObject *)(ind_it)))->dataptr += (((PyArrayIterObject *)(ind_it)))->strides[1]; } else { (((PyArrayIterObject *)(ind_it)))->coordinates[1] = 0; (((PyArrayIterObject *)(ind_it)))->coordinates[0]++; (((PyArrayIterObject *)(ind_it)))->dataptr += (((PyArrayIterObject *)(ind_it)))->strides[0] - (((PyArrayIterObject *)(ind_it)))->backstrides[1]; } }; } else { int __npy_i; for (__npy_i=((PyArrayIterObject *)(ind_it))->nd_m1; __npy_i >= 0; __npy_i--) { if (((PyArrayIterObject *)(ind_it))->coordinates[__npy_i] < ((PyArrayIterObject *)(ind_it))->dims_m1[__npy_i]) { ((PyArrayIterObject *)(ind_it))->coordinates[__npy_i]++; ((PyArrayIterObject *)(ind_it))->dataptr += ((PyArrayIterObject *)(ind_it))->strides[__npy_i]; break; } else { ((PyArrayIterObject *)(ind_it))->coordinates[__npy_i] = 0; ((PyArrayIterObject *)(ind_it))->dataptr -= ((PyArrayIterObject *)(ind_it))->backstrides[__npy_i]; } } } }; > } > do { if ( --((PyObject*)(ind_it))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(ind_it)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(ind_it)))); } while (0); > { ((PyArrayIterObject *)(self))->index = 0; ((PyArrayIterObject *)(self))->dataptr = ((PyArrayIterObject *)(self))->ao->data; memset(((PyArrayIterObject *)(self))->coordinates, 0, (((PyArrayIterObject *)(self))->nd_m1+1)*sizeof(npy_intp)); }; > return r; >} > > >static PyObject * >iter_subscript(PyArrayIterObject *self, PyObject *ind) >{ > PyArray_Descr *indtype = ((void *)0); > npy_intp start, step_size; > npy_intp n_steps; > PyObject *r; > char *dptr; > int size; > PyObject *obj = ((void *)0); > PyArray_CopySwapFunc *copyswap; > > if (ind == (&_Py_EllipsisObject)) { > ind = PySlice_New(((void *)0), ((void *)0), ((void *)0)); > obj = iter_subscript(self, ind); > do { if ( --((PyObject*)(ind))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(ind)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(ind)))); } while (0); > return obj; > } > if (((((((PyObject*)(ind))->ob_type))->tp_flags & ((1L<<26))) != 0)) { > int len; > len = (((PyVarObject*)(ind))->ob_size); > if (len > 1) { > goto fail; > } > if (len == 0) { > ( ((PyObject*)(self->ao))->ob_refcnt++); > return (PyObject *)self->ao; > } > ind = (((PyTupleObject *)(ind))->ob_item[0]); > } > > > > > > > { ((PyArrayIterObject *)(self))->index = 0; ((PyArrayIterObject *)(self))->dataptr = ((PyArrayIterObject *)(self))->ao->data; memset(((PyArrayIterObject *)(self))->coordinates, 0, (((PyArrayIterObject *)(self))->nd_m1+1)*sizeof(npy_intp)); }; > > if (((((PyObject*)(ind))->ob_type) == &PyBool_Type)) { > if (PyObject_IsTrue(ind)) { > return PyArray_Scalar(self->dataptr, (((PyArrayObject *)(self->ao))->descr), (PyObject *)self->ao); > } > else { > npy_intp ii = 0; > ( ((PyObject*)(self->ao->descr))->ob_refcnt++); > r = PyArray_NewFromDescr((((PyObject*)(self->ao))->ob_type), > self->ao->descr, > 1, &ii, > ((void *)0), ((void *)0), 0, > (PyObject *)self->ao); > return r; > } > } > > > if (((((((PyObject*)(ind))->ob_type))->tp_flags & ((1L<<24))) != 0) || ((((ind)->ob_type)->tp_flags & ((1L<<23))) != 0) || ((((PyObject*)(ind))->ob_type) == &PySlice_Type)) { > start = parse_subindex(ind, &step_size, &n_steps, > self->size); > if (start == -1) { > goto fail; > } > if (n_steps == -2 || n_steps == -1) { > PyErr_SetString(PyExc_IndexError, > "cannot use Ellipsis or newaxes here"); > goto fail; > } > { int __npy_i; npy_intp __npy_ind = (npy_intp) (start); if (__npy_ind < 0) __npy_ind += ((PyArrayIterObject *)(self))->size; ((PyArrayIterObject *)(self))->index = __npy_ind; if (((PyArrayIterObject *)(self))->nd_m1 == 0) { ((PyArrayIterObject *)(self))->dataptr = ((PyArrayIterObject *)(self))->ao->data + __npy_ind * ((PyArrayIterObject *)(self))->strides[0]; } else if (((PyArrayIterObject *)(self))->contiguous) ((PyArrayIterObject *)(self))->dataptr = ((PyArrayIterObject *)(self))->ao->data + __npy_ind * ((PyArrayIterObject *)(self))->ao->descr->elsize; else { ((PyArrayIterObject *)(self))->dataptr = ((PyArrayIterObject *)(self))->ao->data; for (__npy_i = 0; __npy_i<=((PyArrayIterObject *)(self))->nd_m1; __npy_i++) { ((PyArrayIterObject *)(self))->dataptr += (__npy_ind / ((PyArrayIterObject *)(self))->factors[__npy_i]) * ((PyArrayIterObject *)(self))->strides[__npy_i]; __npy_ind %= ((PyArrayIterObject *)(self))->factors[__npy_i]; } } } > if (n_steps == -3) { > r = PyArray_Scalar(self->dataptr, (((PyArrayObject *)(self->ao))->descr), (PyObject *)self->ao); > { ((PyArrayIterObject *)(self))->index = 0; ((PyArrayIterObject *)(self))->dataptr = ((PyArrayIterObject *)(self))->ao->data; memset(((PyArrayIterObject *)(self))->coordinates, 0, (((PyArrayIterObject *)(self))->nd_m1+1)*sizeof(npy_intp)); }; > return r; > } > size = self->ao->descr->elsize; > ( ((PyObject*)(self->ao->descr))->ob_refcnt++); > r = PyArray_NewFromDescr((((PyObject*)(self->ao))->ob_type), > self->ao->descr, > 1, &n_steps, > ((void *)0), ((void *)0), > 0, (PyObject *)self->ao); > if (r == ((void *)0)) { > goto fail; > } > dptr = ((void *)(((PyArrayObject *)(r))->data)); > copyswap = (((PyArrayObject *)(r))->descr)->f->copyswap; > while (n_steps--) { > copyswap(dptr, self->dataptr, 0, r); > start += step_size; > { int __npy_i; npy_intp __npy_ind = (npy_intp) (start); if (__npy_ind < 0) __npy_ind += ((PyArrayIterObject *)(self))->size; ((PyArrayIterObject *)(self))->index = __npy_ind; if (((PyArrayIterObject *)(self))->nd_m1 == 0) { ((PyArrayIterObject *)(self))->dataptr = ((PyArrayIterObject *)(self))->ao->data + __npy_ind * ((PyArrayIterObject *)(self))->strides[0]; } else if (((PyArrayIterObject *)(self))->contiguous) ((PyArrayIterObject *)(self))->dataptr = ((PyArrayIterObject *)(self))->ao->data + __npy_ind * ((PyArrayIterObject *)(self))->ao->descr->elsize; else { ((PyArrayIterObject *)(self))->dataptr = ((PyArrayIterObject *)(self))->ao->data; for (__npy_i = 0; __npy_i<=((PyArrayIterObject *)(self))->nd_m1; __npy_i++) { ((PyArrayIterObject *)(self))->dataptr += (__npy_ind / ((PyArrayIterObject *)(self))->factors[__npy_i]) * ((PyArrayIterObject *)(self))->strides[__npy_i]; __npy_ind %= ((PyArrayIterObject *)(self))->factors[__npy_i]; } } } > dptr += size; > } > { ((PyArrayIterObject *)(self))->index = 0; ((PyArrayIterObject *)(self))->dataptr = ((PyArrayIterObject *)(self))->ao->data; memset(((PyArrayIterObject *)(self))->coordinates, 0, (((PyArrayIterObject *)(self))->nd_m1+1)*sizeof(npy_intp)); }; > return r; > } > > > indtype = PyArray_DescrFromType(NPY_LONG); > if ((((((PyObject*)(ind))->ob_type) == (&PyIntegerArrType_Type) || PyType_IsSubtype((((PyObject*)(ind))->ob_type), (&PyIntegerArrType_Type)))) || ((((((PyObject*)(ind))->ob_type))->tp_flags & ((1L<<25))) != 0)) { > ( ((PyObject*)(indtype))->ob_refcnt++); > obj = PyArray_FromAny(ind, indtype, 0, 0, 0x0010, ((void *)0)); > if (obj == ((void *)0)) { > goto fail; > } > } > else { > ( ((PyObject*)(ind))->ob_refcnt++); > obj = ind; > } > > if (((((PyObject*)(obj))->ob_type) == (&PyArray_Type) || PyType_IsSubtype((((PyObject*)(obj))->ob_type), (&PyArray_Type)))) { > > if ((((PyArrayObject *)(obj))->descr->type_num)==NPY_BOOL) { > r = iter_subscript_Bool(self, (PyArrayObject *)obj); > do { if ( --((PyObject*)(indtype))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(indtype)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(indtype)))); } while (0); > } > > else if (((((((PyArrayObject *)(obj))->descr->type_num)) >= NPY_BYTE) && (((((PyArrayObject *)(obj))->descr->type_num)) <= NPY_ULONGLONG))) { > PyObject *new; > new = PyArray_FromAny(obj, indtype, 0, 0, > 0x0010 | 0x0100, ((void *)0)); > if (new == ((void *)0)) { > goto fail; > } > do { if ( --((PyObject*)(obj))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(obj)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(obj)))); } while (0); > obj = new; > r = iter_subscript_int(self, (PyArrayObject *)obj); > } > else { > goto fail; > } > do { if ( --((PyObject*)(obj))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(obj)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(obj)))); } while (0); > return r; > } > else { > do { if ( --((PyObject*)(indtype))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(indtype)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(indtype)))); } while (0); > } > > > fail: > if (!PyErr_Occurred()) { > PyErr_SetString(PyExc_IndexError, "unsupported iterator index"); > } > do { if ((indtype) == ((void *)0)) ; else do { if ( --((PyObject*)(indtype))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(indtype)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(indtype)))); } while (0); } while (0); > do { if ((obj) == ((void *)0)) ; else do { if ( --((PyObject*)(obj))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(obj)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(obj)))); } while (0); } while (0); > return ((void *)0); > >} > > >static int >iter_ass_sub_Bool(PyArrayIterObject *self, PyArrayObject *ind, > PyArrayIterObject *val, int swap) >{ > npy_intp index, strides; > char *dptr; > PyArray_CopySwapFunc *copyswap; > > if (ind->nd != 1) { > PyErr_SetString(PyExc_ValueError, > "boolean index array should have 1 dimension"); > return -1; > } > > index = ind->dimensions[0]; > if (index > self->size) { > PyErr_SetString(PyExc_ValueError, > "boolean index array has too many values"); > return -1; > } > > strides = ind->strides[0]; > dptr = ind->data; > { ((PyArrayIterObject *)(self))->index = 0; ((PyArrayIterObject *)(self))->dataptr = ((PyArrayIterObject *)(self))->ao->data; memset(((PyArrayIterObject *)(self))->coordinates, 0, (((PyArrayIterObject *)(self))->nd_m1+1)*sizeof(npy_intp)); }; > > copyswap = self->ao->descr->f->copyswap; > while (index--) { > if (*((npy_bool *)dptr) != 0) { > copyswap(self->dataptr, val->dataptr, swap, self->ao); > { ((PyArrayIterObject *)(val))->index++; if (((PyArrayIterObject *)(val))->nd_m1 == 0) { { (((PyArrayIterObject *)(val)))->dataptr += ((PyArrayIterObject *)(((PyArrayIterObject *)(val))))->strides[0]; (((PyArrayIterObject *)(val)))->coordinates[0]++; }; } else if (((PyArrayIterObject *)(val))->contiguous) ((PyArrayIterObject *)(val))->dataptr += ((PyArrayIterObject *)(val))->ao->descr->elsize; else if (((PyArrayIterObject *)(val))->nd_m1 == 1) { { if ((((PyArrayIterObject *)(val)))->coordinates[1] < (((PyArrayIterObject *)(val)))->dims_m1[1]) { (((PyArrayIterObject *)(val)))->coordinates[1]++; (((PyArrayIterObject *)(val)))->dataptr += (((PyArrayIterObject *)(val)))->strides[1]; } else { (((PyArrayIterObject *)(val)))->coordinates[1] = 0; (((PyArrayIterObject *)(val)))->coordinates[0]++; (((PyArrayIterObject *)(val)))->dataptr += (((PyArrayIterObject *)(val)))->strides[0] - (((PyArrayIterObject *)(val)))->backstrides[1]; } }; } else { int __npy_i; for (__npy_i=((PyArrayIterObject *)(val))->nd_m1; __npy_i >= 0; __npy_i--) { if (((PyArrayIterObject *)(val))->coordinates[__npy_i] < ((PyArrayIterObject *)(val))->dims_m1[__npy_i]) { ((PyArrayIterObject *)(val))->coordinates[__npy_i]++; ((PyArrayIterObject *)(val))->dataptr += ((PyArrayIterObject *)(val))->strides[__npy_i]; break; } else { ((PyArrayIterObject *)(val))->coordinates[__npy_i] = 0; ((PyArrayIterObject *)(val))->dataptr -= ((PyArrayIterObject *)(val))->backstrides[__npy_i]; } } } }; > if (val->index == val->size) { > { ((PyArrayIterObject *)(val))->index = 0; ((PyArrayIterObject *)(val))->dataptr = ((PyArrayIterObject *)(val))->ao->data; memset(((PyArrayIterObject *)(val))->coordinates, 0, (((PyArrayIterObject *)(val))->nd_m1+1)*sizeof(npy_intp)); }; > } > } > dptr += strides; > { ((PyArrayIterObject *)(self))->index++; if (((PyArrayIterObject *)(self))->nd_m1 == 0) { { (((PyArrayIterObject *)(self)))->dataptr += ((PyArrayIterObject *)(((PyArrayIterObject *)(self))))->strides[0]; (((PyArrayIterObject *)(self)))->coordinates[0]++; }; } else if (((PyArrayIterObject *)(self))->contiguous) ((PyArrayIterObject *)(self))->dataptr += ((PyArrayIterObject *)(self))->ao->descr->elsize; else if (((PyArrayIterObject *)(self))->nd_m1 == 1) { { if ((((PyArrayIterObject *)(self)))->coordinates[1] < (((PyArrayIterObject *)(self)))->dims_m1[1]) { (((PyArrayIterObject *)(self)))->coordinates[1]++; (((PyArrayIterObject *)(self)))->dataptr += (((PyArrayIterObject *)(self)))->strides[1]; } else { (((PyArrayIterObject *)(self)))->coordinates[1] = 0; (((PyArrayIterObject *)(self)))->coordinates[0]++; (((PyArrayIterObject *)(self)))->dataptr += (((PyArrayIterObject *)(self)))->strides[0] - (((PyArrayIterObject *)(self)))->backstrides[1]; } }; } else { int __npy_i; for (__npy_i=((PyArrayIterObject *)(self))->nd_m1; __npy_i >= 0; __npy_i--) { if (((PyArrayIterObject *)(self))->coordinates[__npy_i] < ((PyArrayIterObject *)(self))->dims_m1[__npy_i]) { ((PyArrayIterObject *)(self))->coordinates[__npy_i]++; ((PyArrayIterObject *)(self))->dataptr += ((PyArrayIterObject *)(self))->strides[__npy_i]; break; } else { ((PyArrayIterObject *)(self))->coordinates[__npy_i] = 0; ((PyArrayIterObject *)(self))->dataptr -= ((PyArrayIterObject *)(self))->backstrides[__npy_i]; } } } }; > } > { ((PyArrayIterObject *)(self))->index = 0; ((PyArrayIterObject *)(self))->dataptr = ((PyArrayIterObject *)(self))->ao->data; memset(((PyArrayIterObject *)(self))->coordinates, 0, (((PyArrayIterObject *)(self))->nd_m1+1)*sizeof(npy_intp)); }; > return 0; >} > >static int >iter_ass_sub_int(PyArrayIterObject *self, PyArrayObject *ind, > PyArrayIterObject *val, int swap) >{ > npy_intp num; > PyArrayIterObject *ind_it; > npy_intp index; > PyArray_CopySwapFunc *copyswap; > > copyswap = self->ao->descr->f->copyswap; > if (ind->nd == 0) { > num = *((npy_intp *)ind->data); > { int __npy_i; npy_intp __npy_ind = (npy_intp) (num); if (__npy_ind < 0) __npy_ind += ((PyArrayIterObject *)(self))->size; ((PyArrayIterObject *)(self))->index = __npy_ind; if (((PyArrayIterObject *)(self))->nd_m1 == 0) { ((PyArrayIterObject *)(self))->dataptr = ((PyArrayIterObject *)(self))->ao->data + __npy_ind * ((PyArrayIterObject *)(self))->strides[0]; } else if (((PyArrayIterObject *)(self))->contiguous) ((PyArrayIterObject *)(self))->dataptr = ((PyArrayIterObject *)(self))->ao->data + __npy_ind * ((PyArrayIterObject *)(self))->ao->descr->elsize; else { ((PyArrayIterObject *)(self))->dataptr = ((PyArrayIterObject *)(self))->ao->data; for (__npy_i = 0; __npy_i<=((PyArrayIterObject *)(self))->nd_m1; __npy_i++) { ((PyArrayIterObject *)(self))->dataptr += (__npy_ind / ((PyArrayIterObject *)(self))->factors[__npy_i]) * ((PyArrayIterObject *)(self))->strides[__npy_i]; __npy_ind %= ((PyArrayIterObject *)(self))->factors[__npy_i]; } } }; > copyswap(self->dataptr, val->dataptr, swap, self->ao); > return 0; > } > ind_it = (PyArrayIterObject *)PyArray_IterNew((PyObject *)ind); > if (ind_it == ((void *)0)) { > return -1; > } > index = ind_it->size; > while (index--) { > num = *((npy_intp *)(ind_it->dataptr)); > if (num < 0) { > num += self->size; > } > if ((num < 0) || (num >= self->size)) { > PyErr_Format(PyExc_IndexError, > "index %""l" "d"" out of bounds" " 0<=index<%""l" "d", num, > > self->size); > do { if ( --((PyObject*)(ind_it))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(ind_it)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(ind_it)))); } while (0); > return -1; > } > { int __npy_i; npy_intp __npy_ind = (npy_intp) (num); if (__npy_ind < 0) __npy_ind += ((PyArrayIterObject *)(self))->size; ((PyArrayIterObject *)(self))->index = __npy_ind; if (((PyArrayIterObject *)(self))->nd_m1 == 0) { ((PyArrayIterObject *)(self))->dataptr = ((PyArrayIterObject *)(self))->ao->data + __npy_ind * ((PyArrayIterObject *)(self))->strides[0]; } else if (((PyArrayIterObject *)(self))->contiguous) ((PyArrayIterObject *)(self))->dataptr = ((PyArrayIterObject *)(self))->ao->data + __npy_ind * ((PyArrayIterObject *)(self))->ao->descr->elsize; else { ((PyArrayIterObject *)(self))->dataptr = ((PyArrayIterObject *)(self))->ao->data; for (__npy_i = 0; __npy_i<=((PyArrayIterObject *)(self))->nd_m1; __npy_i++) { ((PyArrayIterObject *)(self))->dataptr += (__npy_ind / ((PyArrayIterObject *)(self))->factors[__npy_i]) * ((PyArrayIterObject *)(self))->strides[__npy_i]; __npy_ind %= ((PyArrayIterObject *)(self))->factors[__npy_i]; } } }; > copyswap(self->dataptr, val->dataptr, swap, self->ao); > { ((PyArrayIterObject *)(ind_it))->index++; if (((PyArrayIterObject *)(ind_it))->nd_m1 == 0) { { (((PyArrayIterObject *)(ind_it)))->dataptr += ((PyArrayIterObject *)(((PyArrayIterObject *)(ind_it))))->strides[0]; (((PyArrayIterObject *)(ind_it)))->coordinates[0]++; }; } else if (((PyArrayIterObject *)(ind_it))->contiguous) ((PyArrayIterObject *)(ind_it))->dataptr += ((PyArrayIterObject *)(ind_it))->ao->descr->elsize; else if (((PyArrayIterObject *)(ind_it))->nd_m1 == 1) { { if ((((PyArrayIterObject *)(ind_it)))->coordinates[1] < (((PyArrayIterObject *)(ind_it)))->dims_m1[1]) { (((PyArrayIterObject *)(ind_it)))->coordinates[1]++; (((PyArrayIterObject *)(ind_it)))->dataptr += (((PyArrayIterObject *)(ind_it)))->strides[1]; } else { (((PyArrayIterObject *)(ind_it)))->coordinates[1] = 0; (((PyArrayIterObject *)(ind_it)))->coordinates[0]++; (((PyArrayIterObject *)(ind_it)))->dataptr += (((PyArrayIterObject *)(ind_it)))->strides[0] - (((PyArrayIterObject *)(ind_it)))->backstrides[1]; } }; } else { int __npy_i; for (__npy_i=((PyArrayIterObject *)(ind_it))->nd_m1; __npy_i >= 0; __npy_i--) { if (((PyArrayIterObject *)(ind_it))->coordinates[__npy_i] < ((PyArrayIterObject *)(ind_it))->dims_m1[__npy_i]) { ((PyArrayIterObject *)(ind_it))->coordinates[__npy_i]++; ((PyArrayIterObject *)(ind_it))->dataptr += ((PyArrayIterObject *)(ind_it))->strides[__npy_i]; break; } else { ((PyArrayIterObject *)(ind_it))->coordinates[__npy_i] = 0; ((PyArrayIterObject *)(ind_it))->dataptr -= ((PyArrayIterObject *)(ind_it))->backstrides[__npy_i]; } } } }; > { ((PyArrayIterObject *)(val))->index++; if (((PyArrayIterObject *)(val))->nd_m1 == 0) { { (((PyArrayIterObject *)(val)))->dataptr += ((PyArrayIterObject *)(((PyArrayIterObject *)(val))))->strides[0]; (((PyArrayIterObject *)(val)))->coordinates[0]++; }; } else if (((PyArrayIterObject *)(val))->contiguous) ((PyArrayIterObject *)(val))->dataptr += ((PyArrayIterObject *)(val))->ao->descr->elsize; else if (((PyArrayIterObject *)(val))->nd_m1 == 1) { { if ((((PyArrayIterObject *)(val)))->coordinates[1] < (((PyArrayIterObject *)(val)))->dims_m1[1]) { (((PyArrayIterObject *)(val)))->coordinates[1]++; (((PyArrayIterObject *)(val)))->dataptr += (((PyArrayIterObject *)(val)))->strides[1]; } else { (((PyArrayIterObject *)(val)))->coordinates[1] = 0; (((PyArrayIterObject *)(val)))->coordinates[0]++; (((PyArrayIterObject *)(val)))->dataptr += (((PyArrayIterObject *)(val)))->strides[0] - (((PyArrayIterObject *)(val)))->backstrides[1]; } }; } else { int __npy_i; for (__npy_i=((PyArrayIterObject *)(val))->nd_m1; __npy_i >= 0; __npy_i--) { if (((PyArrayIterObject *)(val))->coordinates[__npy_i] < ((PyArrayIterObject *)(val))->dims_m1[__npy_i]) { ((PyArrayIterObject *)(val))->coordinates[__npy_i]++; ((PyArrayIterObject *)(val))->dataptr += ((PyArrayIterObject *)(val))->strides[__npy_i]; break; } else { ((PyArrayIterObject *)(val))->coordinates[__npy_i] = 0; ((PyArrayIterObject *)(val))->dataptr -= ((PyArrayIterObject *)(val))->backstrides[__npy_i]; } } } }; > if (val->index == val->size) { > { ((PyArrayIterObject *)(val))->index = 0; ((PyArrayIterObject *)(val))->dataptr = ((PyArrayIterObject *)(val))->ao->data; memset(((PyArrayIterObject *)(val))->coordinates, 0, (((PyArrayIterObject *)(val))->nd_m1+1)*sizeof(npy_intp)); }; > } > } > do { if ( --((PyObject*)(ind_it))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(ind_it)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(ind_it)))); } while (0); > return 0; >} > >static int >iter_ass_subscript(PyArrayIterObject *self, PyObject *ind, PyObject *val) >{ > PyObject *arrval = ((void *)0); > PyArrayIterObject *val_it = ((void *)0); > PyArray_Descr *type; > PyArray_Descr *indtype = ((void *)0); > int swap, retval = -1; > npy_intp start, step_size; > npy_intp n_steps; > PyObject *obj = ((void *)0); > PyArray_CopySwapFunc *copyswap; > > > if (ind == (&_Py_EllipsisObject)) { > ind = PySlice_New(((void *)0), ((void *)0), ((void *)0)); > retval = iter_ass_subscript(self, ind, val); > do { if ( --((PyObject*)(ind))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(ind)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(ind)))); } while (0); > return retval; > } > > if (((((((PyObject*)(ind))->ob_type))->tp_flags & ((1L<<26))) != 0)) { > int len; > len = (((PyVarObject*)(ind))->ob_size); > if (len > 1) { > goto finish; > } > ind = (((PyTupleObject *)(ind))->ob_item[0]); > } > > type = self->ao->descr; > > > > > > if (((((PyObject*)(ind))->ob_type) == &PyBool_Type)) { > retval = 0; > if (PyObject_IsTrue(ind)) { > retval = type->f->setitem(val, self->dataptr, self->ao); > } > goto finish; > } > > if (PySequence_Check(ind) || ((((PyObject*)(ind))->ob_type) == &PySlice_Type)) { > goto skip; > } > start = PyArray_PyIntAsIntp(ind); > if (start==-1 && PyErr_Occurred()) { > PyErr_Clear(); > } > else { > if (start < -self->size || start >= self->size) { > PyErr_Format(PyExc_ValueError, > "index (%" "l" "d" ") out of range", start); > > goto finish; > } > retval = 0; > { int __npy_i; npy_intp __npy_ind = (npy_intp) (start); if (__npy_ind < 0) __npy_ind += ((PyArrayIterObject *)(self))->size; ((PyArrayIterObject *)(self))->index = __npy_ind; if (((PyArrayIterObject *)(self))->nd_m1 == 0) { ((PyArrayIterObject *)(self))->dataptr = ((PyArrayIterObject *)(self))->ao->data + __npy_ind * ((PyArrayIterObject *)(self))->strides[0]; } else if (((PyArrayIterObject *)(self))->contiguous) ((PyArrayIterObject *)(self))->dataptr = ((PyArrayIterObject *)(self))->ao->data + __npy_ind * ((PyArrayIterObject *)(self))->ao->descr->elsize; else { ((PyArrayIterObject *)(self))->dataptr = ((PyArrayIterObject *)(self))->ao->data; for (__npy_i = 0; __npy_i<=((PyArrayIterObject *)(self))->nd_m1; __npy_i++) { ((PyArrayIterObject *)(self))->dataptr += (__npy_ind / ((PyArrayIterObject *)(self))->factors[__npy_i]) * ((PyArrayIterObject *)(self))->strides[__npy_i]; __npy_ind %= ((PyArrayIterObject *)(self))->factors[__npy_i]; } } }; > retval = type->f->setitem(val, self->dataptr, self->ao); > { ((PyArrayIterObject *)(self))->index = 0; ((PyArrayIterObject *)(self))->dataptr = ((PyArrayIterObject *)(self))->ao->data; memset(((PyArrayIterObject *)(self))->coordinates, 0, (((PyArrayIterObject *)(self))->nd_m1+1)*sizeof(npy_intp)); }; > if (retval < 0) { > PyErr_SetString(PyExc_ValueError, > "Error setting single item of array."); > } > goto finish; > } > > skip: > ( ((PyObject*)(type))->ob_refcnt++); > arrval = PyArray_FromAny(val, type, 0, 0, 0, ((void *)0)); > if (arrval == ((void *)0)) { > return -1; > } > val_it = (PyArrayIterObject *)PyArray_IterNew(arrval); > if (val_it == ((void *)0)) { > goto finish; > } > if (val_it->size == 0) { > retval = 0; > goto finish; > } > > copyswap = (((PyArrayObject *)(arrval))->descr)->f->copyswap; > swap = ((((((PyArrayObject *)(self->ao))->descr)->byteorder) != '>')!=(((((PyArrayObject *)(arrval))->descr)->byteorder) != '>')); > > > if (((((PyObject*)(ind))->ob_type) == &PySlice_Type)) { > start = parse_subindex(ind, &step_size, &n_steps, self->size); > if (start == -1) { > goto finish; > } > if (n_steps == -2 || n_steps == -1) { > PyErr_SetString(PyExc_IndexError, > "cannot use Ellipsis or newaxes here"); > goto finish; > } > { int __npy_i; npy_intp __npy_ind = (npy_intp) (start); if (__npy_ind < 0) __npy_ind += ((PyArrayIterObject *)(self))->size; ((PyArrayIterObject *)(self))->index = __npy_ind; if (((PyArrayIterObject *)(self))->nd_m1 == 0) { ((PyArrayIterObject *)(self))->dataptr = ((PyArrayIterObject *)(self))->ao->data + __npy_ind * ((PyArrayIterObject *)(self))->strides[0]; } else if (((PyArrayIterObject *)(self))->contiguous) ((PyArrayIterObject *)(self))->dataptr = ((PyArrayIterObject *)(self))->ao->data + __npy_ind * ((PyArrayIterObject *)(self))->ao->descr->elsize; else { ((PyArrayIterObject *)(self))->dataptr = ((PyArrayIterObject *)(self))->ao->data; for (__npy_i = 0; __npy_i<=((PyArrayIterObject *)(self))->nd_m1; __npy_i++) { ((PyArrayIterObject *)(self))->dataptr += (__npy_ind / ((PyArrayIterObject *)(self))->factors[__npy_i]) * ((PyArrayIterObject *)(self))->strides[__npy_i]; __npy_ind %= ((PyArrayIterObject *)(self))->factors[__npy_i]; } } }; > if (n_steps == -3) { > > copyswap(self->dataptr, ((void *)(((PyArrayObject *)(arrval))->data)), swap, arrval); > { ((PyArrayIterObject *)(self))->index = 0; ((PyArrayIterObject *)(self))->dataptr = ((PyArrayIterObject *)(self))->ao->data; memset(((PyArrayIterObject *)(self))->coordinates, 0, (((PyArrayIterObject *)(self))->nd_m1+1)*sizeof(npy_intp)); }; > retval = 0; > goto finish; > } > while (n_steps--) { > copyswap(self->dataptr, val_it->dataptr, swap, arrval); > start += step_size; > { int __npy_i; npy_intp __npy_ind = (npy_intp) (start); if (__npy_ind < 0) __npy_ind += ((PyArrayIterObject *)(self))->size; ((PyArrayIterObject *)(self))->index = __npy_ind; if (((PyArrayIterObject *)(self))->nd_m1 == 0) { ((PyArrayIterObject *)(self))->dataptr = ((PyArrayIterObject *)(self))->ao->data + __npy_ind * ((PyArrayIterObject *)(self))->strides[0]; } else if (((PyArrayIterObject *)(self))->contiguous) ((PyArrayIterObject *)(self))->dataptr = ((PyArrayIterObject *)(self))->ao->data + __npy_ind * ((PyArrayIterObject *)(self))->ao->descr->elsize; else { ((PyArrayIterObject *)(self))->dataptr = ((PyArrayIterObject *)(self))->ao->data; for (__npy_i = 0; __npy_i<=((PyArrayIterObject *)(self))->nd_m1; __npy_i++) { ((PyArrayIterObject *)(self))->dataptr += (__npy_ind / ((PyArrayIterObject *)(self))->factors[__npy_i]) * ((PyArrayIterObject *)(self))->strides[__npy_i]; __npy_ind %= ((PyArrayIterObject *)(self))->factors[__npy_i]; } } }; > { ((PyArrayIterObject *)(val_it))->index++; if (((PyArrayIterObject *)(val_it))->nd_m1 == 0) { { (((PyArrayIterObject *)(val_it)))->dataptr += ((PyArrayIterObject *)(((PyArrayIterObject *)(val_it))))->strides[0]; (((PyArrayIterObject *)(val_it)))->coordinates[0]++; }; } else if (((PyArrayIterObject *)(val_it))->contiguous) ((PyArrayIterObject *)(val_it))->dataptr += ((PyArrayIterObject *)(val_it))->ao->descr->elsize; else if (((PyArrayIterObject *)(val_it))->nd_m1 == 1) { { if ((((PyArrayIterObject *)(val_it)))->coordinates[1] < (((PyArrayIterObject *)(val_it)))->dims_m1[1]) { (((PyArrayIterObject *)(val_it)))->coordinates[1]++; (((PyArrayIterObject *)(val_it)))->dataptr += (((PyArrayIterObject *)(val_it)))->strides[1]; } else { (((PyArrayIterObject *)(val_it)))->coordinates[1] = 0; (((PyArrayIterObject *)(val_it)))->coordinates[0]++; (((PyArrayIterObject *)(val_it)))->dataptr += (((PyArrayIterObject *)(val_it)))->strides[0] - (((PyArrayIterObject *)(val_it)))->backstrides[1]; } }; } else { int __npy_i; for (__npy_i=((PyArrayIterObject *)(val_it))->nd_m1; __npy_i >= 0; __npy_i--) { if (((PyArrayIterObject *)(val_it))->coordinates[__npy_i] < ((PyArrayIterObject *)(val_it))->dims_m1[__npy_i]) { ((PyArrayIterObject *)(val_it))->coordinates[__npy_i]++; ((PyArrayIterObject *)(val_it))->dataptr += ((PyArrayIterObject *)(val_it))->strides[__npy_i]; break; } else { ((PyArrayIterObject *)(val_it))->coordinates[__npy_i] = 0; ((PyArrayIterObject *)(val_it))->dataptr -= ((PyArrayIterObject *)(val_it))->backstrides[__npy_i]; } } } }; > if (val_it->index == val_it->size) { > { ((PyArrayIterObject *)(val_it))->index = 0; ((PyArrayIterObject *)(val_it))->dataptr = ((PyArrayIterObject *)(val_it))->ao->data; memset(((PyArrayIterObject *)(val_it))->coordinates, 0, (((PyArrayIterObject *)(val_it))->nd_m1+1)*sizeof(npy_intp)); }; > } > } > { ((PyArrayIterObject *)(self))->index = 0; ((PyArrayIterObject *)(self))->dataptr = ((PyArrayIterObject *)(self))->ao->data; memset(((PyArrayIterObject *)(self))->coordinates, 0, (((PyArrayIterObject *)(self))->nd_m1+1)*sizeof(npy_intp)); }; > retval = 0; > goto finish; > } > > > indtype = PyArray_DescrFromType(NPY_LONG); > if (((((((PyObject*)(ind))->ob_type))->tp_flags & ((1L<<25))) != 0)) { > ( ((PyObject*)(indtype))->ob_refcnt++); > obj = PyArray_FromAny(ind, indtype, 0, 0, 0x0010, ((void *)0)); > } > else { > ( ((PyObject*)(ind))->ob_refcnt++); > obj = ind; > } > > if (obj != ((void *)0) && ((((PyObject*)(obj))->ob_type) == (&PyArray_Type) || PyType_IsSubtype((((PyObject*)(obj))->ob_type), (&PyArray_Type)))) { > > if ((((PyArrayObject *)(obj))->descr->type_num)==NPY_BOOL) { > if (iter_ass_sub_Bool(self, (PyArrayObject *)obj, > val_it, swap) < 0) { > goto finish; > } > retval=0; > } > > else if (((((((PyArrayObject *)(obj))->descr->type_num)) >= NPY_BYTE) && (((((PyArrayObject *)(obj))->descr->type_num)) <= NPY_ULONGLONG))) { > PyObject *new; > ( ((PyObject*)(indtype))->ob_refcnt++); > new = PyArray_CheckFromAny(obj, indtype, 0, 0, > 0x0010 | (0x0100 | 0x0400 | 0x0200), ((void *)0)); > do { if ( --((PyObject*)(obj))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(obj)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(obj)))); } while (0); > obj = new; > if (new == ((void *)0)) { > goto finish; > } > if (iter_ass_sub_int(self, (PyArrayObject *)obj, > val_it, swap) < 0) { > goto finish; > } > retval = 0; > } > } > > finish: > if (!PyErr_Occurred() && retval < 0) { > PyErr_SetString(PyExc_IndexError, "unsupported iterator index"); > } > do { if ((indtype) == ((void *)0)) ; else do { if ( --((PyObject*)(indtype))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(indtype)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(indtype)))); } while (0); } while (0); > do { if ((obj) == ((void *)0)) ; else do { if ( --((PyObject*)(obj))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(obj)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(obj)))); } while (0); } while (0); > do { if ((val_it) == ((void *)0)) ; else do { if ( --((PyObject*)(val_it))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(val_it)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(val_it)))); } while (0); } while (0); > do { if ((arrval) == ((void *)0)) ; else do { if ( --((PyObject*)(arrval))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(arrval)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(arrval)))); } while (0); } while (0); > return retval; > >} > > >static PyMappingMethods iter_as_mapping = { > > (lenfunc)iter_length, > > > > (binaryfunc)iter_subscript, > (objobjargproc)iter_ass_subscript, >}; > > > >static PyObject * >iter_array(PyArrayIterObject *it, PyObject *(__NPY_UNUSED_TAGGEDop) __attribute__ ((__unused__))) >{ > > PyObject *r; > npy_intp size; ># 1134 "numpy/core/src/multiarray/iterators.c" > size = PyArray_MultiplyList((((PyArrayObject *)(it->ao))->dimensions), (((PyArrayObject *)(it->ao))->nd)); > ( ((PyObject*)(it->ao->descr))->ob_refcnt++); > if (((((PyArrayObject *)(it->ao))->flags & (0x0001)) == (0x0001))) { > r = PyArray_NewFromDescr(&PyArray_Type, > it->ao->descr, > 1, &size, > ((void *)0), it->ao->data, > it->ao->flags, > (PyObject *)it->ao); > if (r == ((void *)0)) { > return ((void *)0); > } > } > else { > r = PyArray_NewFromDescr(&PyArray_Type, > it->ao->descr, > 1, &size, > ((void *)0), ((void *)0), > 0, (PyObject *)it->ao); > if (r == ((void *)0)) { > return ((void *)0); > } > if (PyArray_CopyAnyInto((PyArrayObject *)r, it->ao) < 0) { > do { if ( --((PyObject*)(r))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(r)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(r)))); } while (0); > return ((void *)0); > } > (((PyArrayObject *)(r))->flags) |= 0x1000; > it->ao->flags &= ~0x0400; > } > ( ((PyObject*)(it->ao))->ob_refcnt++); > (((PyArrayObject *)(r))->base) = (PyObject *)it->ao; > return r; > >} > >static PyObject * >iter_copy(PyArrayIterObject *it, PyObject *args) >{ > if (!_PyArg_ParseTuple_SizeT(args, "")) { > return ((void *)0); > } > return PyArray_Flatten(it->ao, 0); >} > >static PyMethodDef iter_methods[] = { > > {"__array__", > (PyCFunction)iter_array, > 0x0001, ((void *)0)}, > {"copy", > (PyCFunction)iter_copy, > 0x0001, ((void *)0)}, > {((void *)0), ((void *)0), 0, ((void *)0)} >}; > >static PyObject * >iter_richcompare(PyArrayIterObject *self, PyObject *other, int cmp_op) >{ > PyArrayObject *new; > PyObject *ret; > new = (PyArrayObject *)iter_array(self, ((void *)0)); > if (new == ((void *)0)) { > return ((void *)0); > } > ret = array_richcompare(new, other, cmp_op); > do { if ( --((PyObject*)(new))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(new)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(new)))); } while (0); > return ret; >} > > >static PyMemberDef iter_members[] = { > {"base", > 6, > ((size_t) &((PyArrayIterObject *)0)->ao), > 1, ((void *)0)}, > {"index", > 1, > ((size_t) &((PyArrayIterObject *)0)->index), > 1, ((void *)0)}, > {((void *)0), 0, 0, 0, ((void *)0)}, >}; > >static PyObject * >iter_coords_get(PyArrayIterObject *self) >{ > int nd; > nd = self->ao->nd; > if (self->contiguous) { > > > > > npy_intp val; > int i; > val = self->index; > for (i = 0; i < nd; i++) { > if (self->factors[i] != 0) { > self->coordinates[i] = val / self->factors[i]; > val = val % self->factors[i]; > } else { > self->coordinates[i] = 0; > } > } > } > return PyArray_IntTupleFromIntp(nd, self->coordinates); >} > >static PyGetSetDef iter_getsets[] = { > {"coords", > (getter)iter_coords_get, > ((void *)0), > ((void *)0), ((void *)0)}, > {((void *)0), ((void *)0), ((void *)0), ((void *)0), ((void *)0)}, >}; > >static PyTypeObject PyArrayIter_Type = { > > > > 1, ((void *)0), > 0, > > "numpy.flatiter", > sizeof(PyArrayIterObject), > 0, > > (destructor)arrayiter_dealloc, > 0, > 0, > 0, > > > > 0, > > 0, > 0, > 0, > &iter_as_mapping, > 0, > 0, > 0, > 0, > 0, > 0, > ( (1L<<0) | (1L<<1) | (1L<<3) | (1L<<5) | (1L<<6) | (1L<<7) | (1L<<8) | 0 | (1L<<17) | 0), > 0, > 0, > 0, > (richcmpfunc)iter_richcompare, > 0, > 0, > (iternextfunc)arrayiter_next, > iter_methods, > iter_members, > iter_getsets, > 0, > 0, > 0, > 0, > 0, > 0, > 0, > 0, > 0, > 0, > 0, > 0, > 0, > 0, > 0, > 0, > > 0, > >}; > > > > > > > >static int >PyArray_Broadcast(PyArrayMultiIterObject *mit) >{ > int i, nd, k, j; > npy_intp tmp; > PyArrayIterObject *it; > > > for (i = 0, nd = 0; i < mit->numiter; i++) { > nd = (((nd)>(mit->iters[i]->ao->nd))?(nd):(mit->iters[i]->ao->nd)); > } > mit->nd = nd; > > > for (i = 0; i < nd; i++) { > mit->dimensions[i] = 1; > for (j = 0; j < mit->numiter; j++) { > it = mit->iters[j]; > > k = i + it->ao->nd - nd; > if (k >= 0) { > tmp = it->ao->dimensions[k]; > if (tmp == 1) { > continue; > } > if (mit->dimensions[i] == 1) { > mit->dimensions[i] = tmp; > } > else if (mit->dimensions[i] != tmp) { > PyErr_SetString(PyExc_ValueError, > "shape mismatch: objects" " cannot be broadcast" " to a single shape"); > > > return -1; > } > } > } > } > > > > > > > tmp = PyArray_OverflowMultiplyList(mit->dimensions, mit->nd); > if (tmp < 0) { > PyErr_SetString(PyExc_ValueError, > "broadcast dimensions too large."); > return -1; > } > mit->size = tmp; > for (i = 0; i < mit->numiter; i++) { > it = mit->iters[i]; > it->nd_m1 = mit->nd - 1; > it->size = tmp; > nd = it->ao->nd; > it->factors[mit->nd-1] = 1; > for (j = 0; j < mit->nd; j++) { > it->dims_m1[j] = mit->dimensions[j] - 1; > k = j + nd - mit->nd; > > > > > if ((k < 0) || > it->ao->dimensions[k] != mit->dimensions[j]) { > it->contiguous = 0; > it->strides[j] = 0; > } > else { > it->strides[j] = it->ao->strides[k]; > } > it->backstrides[j] = it->strides[j] * it->dims_m1[j]; > if (j > 0) > it->factors[mit->nd-j-1] = > it->factors[mit->nd-j] * mit->dimensions[mit->nd-j]; > } > { ((PyArrayIterObject *)(it))->index = 0; ((PyArrayIterObject *)(it))->dataptr = ((PyArrayIterObject *)(it))->ao->data; memset(((PyArrayIterObject *)(it))->coordinates, 0, (((PyArrayIterObject *)(it))->nd_m1+1)*sizeof(npy_intp)); }; > } > return 0; >} ># 1408 "numpy/core/src/multiarray/iterators.c" >static PyObject * >PyArray_MultiIterFromObjects(PyObject **mps, int n, int nadd, ...) >{ > va_list va; > PyArrayMultiIterObject *multi; > PyObject *current; > PyObject *arr; > > int i, ntot, err=0; > > ntot = n + nadd; > if (ntot < 2 || ntot > 32) { > PyErr_Format(PyExc_ValueError, > "Need between 2 and (%d) " "array objects (inclusive).", 32); > > return ((void *)0); > } > multi = PyMem_Malloc(sizeof(PyArrayMultiIterObject)); > if (multi == ((void *)0)) { > return PyErr_NoMemory(); > } > PyObject_Init((PyObject *)multi, &PyArrayMultiIter_Type); > > for (i = 0; i < ntot; i++) { > multi->iters[i] = ((void *)0); > } > multi->numiter = ntot; > multi->index = 0; > > __builtin_va_start(va,nadd); > for (i = 0; i < ntot; i++) { > if (i < n) { > current = mps[i]; > } > else { > current = __builtin_va_arg(va,PyObject *); > } > arr = PyArray_FromAny(current, ((void *)0), 0, 0, 0, ((void *)0)); > if (arr == ((void *)0)) { > err = 1; > break; > } > else { > multi->iters[i] = (PyArrayIterObject *)PyArray_IterNew(arr); > do { if ( --((PyObject*)(arr))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(arr)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(arr)))); } while (0); > } > } > __builtin_va_end(va); > > if (!err && PyArray_Broadcast(multi) < 0) { > err = 1; > } > if (err) { > do { if ( --((PyObject*)(multi))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(multi)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(multi)))); } while (0); > return ((void *)0); > } > { int __npy_mi; ((PyArrayMultiIterObject *)(multi))->index = 0; for (__npy_mi=0; __npy_mi < ((PyArrayMultiIterObject *)(multi))->numiter; __npy_mi++) { { ((PyArrayIterObject *)(((PyArrayMultiIterObject *)(multi))->iters[__npy_mi]))->index = 0; ((PyArrayIterObject *)(((PyArrayMultiIterObject *)(multi))->iters[__npy_mi]))->dataptr = ((PyArrayIterObject *)(((PyArrayMultiIterObject *)(multi))->iters[__npy_mi]))->ao->data; memset(((PyArrayIterObject *)(((PyArrayMultiIterObject *)(multi))->iters[__npy_mi]))->coordinates, 0, (((PyArrayIterObject *)(((PyArrayMultiIterObject *)(multi))->iters[__npy_mi]))->nd_m1+1)*sizeof(npy_intp)); }; } }; > return (PyObject *)multi; >} > > > > >static PyObject * >PyArray_MultiIterNew(int n, ...) >{ > va_list va; > PyArrayMultiIterObject *multi; > PyObject *current; > PyObject *arr; > > int i, err = 0; > > if (n < 2 || n > 32) { > PyErr_Format(PyExc_ValueError, > "Need between 2 and (%d) " "array objects (inclusive).", 32); > > return ((void *)0); > } > > > > multi = PyMem_Malloc(sizeof(PyArrayMultiIterObject)); > if (multi == ((void *)0)) { > return PyErr_NoMemory(); > } > PyObject_Init((PyObject *)multi, &PyArrayMultiIter_Type); > > for (i = 0; i < n; i++) { > multi->iters[i] = ((void *)0); > } > multi->numiter = n; > multi->index = 0; > > __builtin_va_start(va,n); > for (i = 0; i < n; i++) { > current = __builtin_va_arg(va,PyObject *); > arr = PyArray_FromAny(current, ((void *)0), 0, 0, 0, ((void *)0)); > if (arr == ((void *)0)) { > err = 1; > break; > } > else { > multi->iters[i] = (PyArrayIterObject *)PyArray_IterNew(arr); > do { if ( --((PyObject*)(arr))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(arr)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(arr)))); } while (0); > } > } > __builtin_va_end(va); > > if (!err && PyArray_Broadcast(multi) < 0) { > err = 1; > } > if (err) { > do { if ( --((PyObject*)(multi))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(multi)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(multi)))); } while (0); > return ((void *)0); > } > { int __npy_mi; ((PyArrayMultiIterObject *)(multi))->index = 0; for (__npy_mi=0; __npy_mi < ((PyArrayMultiIterObject *)(multi))->numiter; __npy_mi++) { { ((PyArrayIterObject *)(((PyArrayMultiIterObject *)(multi))->iters[__npy_mi]))->index = 0; ((PyArrayIterObject *)(((PyArrayMultiIterObject *)(multi))->iters[__npy_mi]))->dataptr = ((PyArrayIterObject *)(((PyArrayMultiIterObject *)(multi))->iters[__npy_mi]))->ao->data; memset(((PyArrayIterObject *)(((PyArrayMultiIterObject *)(multi))->iters[__npy_mi]))->coordinates, 0, (((PyArrayIterObject *)(((PyArrayMultiIterObject *)(multi))->iters[__npy_mi]))->nd_m1+1)*sizeof(npy_intp)); }; } }; > return (PyObject *)multi; >} > >static PyObject * >arraymultiter_new(PyTypeObject *(__NPY_UNUSED_TAGGEDsubtype) __attribute__ ((__unused__)), PyObject *args, PyObject *kwds) >{ > > Py_ssize_t n, i; > PyArrayMultiIterObject *multi; > PyObject *arr; > > if (kwds != ((void *)0)) { > PyErr_SetString(PyExc_ValueError, > "keyword arguments not accepted."); > return ((void *)0); > } > > n = PyTuple_Size(args); > if (n < 2 || n > 32) { > if (PyErr_Occurred()) { > return ((void *)0); > } > PyErr_Format(PyExc_ValueError, > "Need at least two and fewer than (%d) " "array objects.", 32); > > return ((void *)0); > } > > multi = PyMem_Malloc(sizeof(PyArrayMultiIterObject)); > if (multi == ((void *)0)) { > return PyErr_NoMemory(); > } > PyObject_Init((PyObject *)multi, &PyArrayMultiIter_Type); > > multi->numiter = n; > multi->index = 0; > for (i = 0; i < n; i++) { > multi->iters[i] = ((void *)0); > } > for (i = 0; i < n; i++) { > arr = PyArray_FromAny((((PyTupleObject *)(args))->ob_item[i]), ((void *)0), 0, 0, 0, ((void *)0)); > if (arr == ((void *)0)) { > goto fail; > } > if ((multi->iters[i] = (PyArrayIterObject *)PyArray_IterNew(arr)) > == ((void *)0)) { > goto fail; > } > do { if ( --((PyObject*)(arr))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(arr)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(arr)))); } while (0); > } > if (PyArray_Broadcast(multi) < 0) { > goto fail; > } > { int __npy_mi; ((PyArrayMultiIterObject *)(multi))->index = 0; for (__npy_mi=0; __npy_mi < ((PyArrayMultiIterObject *)(multi))->numiter; __npy_mi++) { { ((PyArrayIterObject *)(((PyArrayMultiIterObject *)(multi))->iters[__npy_mi]))->index = 0; ((PyArrayIterObject *)(((PyArrayMultiIterObject *)(multi))->iters[__npy_mi]))->dataptr = ((PyArrayIterObject *)(((PyArrayMultiIterObject *)(multi))->iters[__npy_mi]))->ao->data; memset(((PyArrayIterObject *)(((PyArrayMultiIterObject *)(multi))->iters[__npy_mi]))->coordinates, 0, (((PyArrayIterObject *)(((PyArrayMultiIterObject *)(multi))->iters[__npy_mi]))->nd_m1+1)*sizeof(npy_intp)); }; } }; > return (PyObject *)multi; > > fail: > do { if ( --((PyObject*)(multi))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(multi)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(multi)))); } while (0); > return ((void *)0); >} > >static PyObject * >arraymultiter_next(PyArrayMultiIterObject *multi) >{ > PyObject *ret; > int i, n; > > n = multi->numiter; > ret = PyTuple_New(n); > if (ret == ((void *)0)) { > return ((void *)0); > } > if (multi->index < multi->size) { > for (i = 0; i < n; i++) { > PyArrayIterObject *it=multi->iters[i]; > (((PyTupleObject *)(ret))->ob_item[i] = PyArray_Scalar(it->dataptr, (((PyArrayObject *)(it->ao))->descr), (PyObject *)it->ao)); > > { ((PyArrayIterObject *)(it))->index++; if (((PyArrayIterObject *)(it))->nd_m1 == 0) { { (((PyArrayIterObject *)(it)))->dataptr += ((PyArrayIterObject *)(((PyArrayIterObject *)(it))))->strides[0]; (((PyArrayIterObject *)(it)))->coordinates[0]++; }; } else if (((PyArrayIterObject *)(it))->contiguous) ((PyArrayIterObject *)(it))->dataptr += ((PyArrayIterObject *)(it))->ao->descr->elsize; else if (((PyArrayIterObject *)(it))->nd_m1 == 1) { { if ((((PyArrayIterObject *)(it)))->coordinates[1] < (((PyArrayIterObject *)(it)))->dims_m1[1]) { (((PyArrayIterObject *)(it)))->coordinates[1]++; (((PyArrayIterObject *)(it)))->dataptr += (((PyArrayIterObject *)(it)))->strides[1]; } else { (((PyArrayIterObject *)(it)))->coordinates[1] = 0; (((PyArrayIterObject *)(it)))->coordinates[0]++; (((PyArrayIterObject *)(it)))->dataptr += (((PyArrayIterObject *)(it)))->strides[0] - (((PyArrayIterObject *)(it)))->backstrides[1]; } }; } else { int __npy_i; for (__npy_i=((PyArrayIterObject *)(it))->nd_m1; __npy_i >= 0; __npy_i--) { if (((PyArrayIterObject *)(it))->coordinates[__npy_i] < ((PyArrayIterObject *)(it))->dims_m1[__npy_i]) { ((PyArrayIterObject *)(it))->coordinates[__npy_i]++; ((PyArrayIterObject *)(it))->dataptr += ((PyArrayIterObject *)(it))->strides[__npy_i]; break; } else { ((PyArrayIterObject *)(it))->coordinates[__npy_i] = 0; ((PyArrayIterObject *)(it))->dataptr -= ((PyArrayIterObject *)(it))->backstrides[__npy_i]; } } } }; > } > multi->index++; > return ret; > } > return ((void *)0); >} > >static void >arraymultiter_dealloc(PyArrayMultiIterObject *multi) >{ > int i; > > for (i = 0; i < multi->numiter; i++) { > do { if ((multi->iters[i]) == ((void *)0)) ; else do { if ( --((PyObject*)(multi->iters[i]))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(multi->iters[i])))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(multi->iters[i])))); } while (0); } while (0); > } > (((PyObject*)(multi))->ob_type)->tp_free((PyObject *)multi); >} > >static PyObject * >arraymultiter_size_get(PyArrayMultiIterObject *self) >{ > > return PyInt_FromLong((long) self->size); ># 1634 "numpy/core/src/multiarray/iterators.c" >} > >static PyObject * >arraymultiter_index_get(PyArrayMultiIterObject *self) >{ > > return PyInt_FromLong((long) self->index); ># 1649 "numpy/core/src/multiarray/iterators.c" >} > >static PyObject * >arraymultiter_shape_get(PyArrayMultiIterObject *self) >{ > return PyArray_IntTupleFromIntp(self->nd, self->dimensions); >} > >static PyObject * >arraymultiter_iters_get(PyArrayMultiIterObject *self) >{ > PyObject *res; > int i, n; > > n = self->numiter; > res = PyTuple_New(n); > if (res == ((void *)0)) { > return res; > } > for (i = 0; i < n; i++) { > ( ((PyObject*)(self->iters[i]))->ob_refcnt++); > (((PyTupleObject *)(res))->ob_item[i] = (PyObject *)self->iters[i]); > } > return res; >} > >static PyGetSetDef arraymultiter_getsetlist[] = { > {"size", > (getter)arraymultiter_size_get, > ((void *)0), > ((void *)0), ((void *)0)}, > {"index", > (getter)arraymultiter_index_get, > ((void *)0), > ((void *)0), ((void *)0)}, > {"shape", > (getter)arraymultiter_shape_get, > ((void *)0), > ((void *)0), ((void *)0)}, > {"iters", > (getter)arraymultiter_iters_get, > ((void *)0), > ((void *)0), ((void *)0)}, > {((void *)0), ((void *)0), ((void *)0), ((void *)0), ((void *)0)}, >}; > >static PyMemberDef arraymultiter_members[] = { > {"numiter", > 1, > ((size_t) &((PyArrayMultiIterObject *)0)->numiter), > 1, ((void *)0)}, > {"nd", > 1, > ((size_t) &((PyArrayMultiIterObject *)0)->nd), > 1, ((void *)0)}, > {((void *)0), 0, 0, 0, ((void *)0)}, >}; > >static PyObject * >arraymultiter_reset(PyArrayMultiIterObject *self, PyObject *args) >{ > if (!_PyArg_ParseTuple_SizeT(args, "")) { > return ((void *)0); > } > { int __npy_mi; ((PyArrayMultiIterObject *)(self))->index = 0; for (__npy_mi=0; __npy_mi < ((PyArrayMultiIterObject *)(self))->numiter; __npy_mi++) { { ((PyArrayIterObject *)(((PyArrayMultiIterObject *)(self))->iters[__npy_mi]))->index = 0; ((PyArrayIterObject *)(((PyArrayMultiIterObject *)(self))->iters[__npy_mi]))->dataptr = ((PyArrayIterObject *)(((PyArrayMultiIterObject *)(self))->iters[__npy_mi]))->ao->data; memset(((PyArrayIterObject *)(((PyArrayMultiIterObject *)(self))->iters[__npy_mi]))->coordinates, 0, (((PyArrayIterObject *)(((PyArrayMultiIterObject *)(self))->iters[__npy_mi]))->nd_m1+1)*sizeof(npy_intp)); }; } }; > ( ((PyObject*)((&_Py_NoneStruct)))->ob_refcnt++); > return (&_Py_NoneStruct); >} > >static PyMethodDef arraymultiter_methods[] = { > {"reset", > (PyCFunction) arraymultiter_reset, > 0x0001, ((void *)0)}, > {((void *)0), ((void *)0), 0, ((void *)0)}, >}; > >static PyTypeObject PyArrayMultiIter_Type = { > > > > 1, ((void *)0), > 0, > > "numpy.broadcast", > sizeof(PyArrayMultiIterObject), > 0, > > (destructor)arraymultiter_dealloc, > 0, > 0, > 0, > > > > 0, > > 0, > 0, > 0, > 0, > 0, > 0, > 0, > 0, > 0, > 0, > ( (1L<<0) | (1L<<1) | (1L<<3) | (1L<<5) | (1L<<6) | (1L<<7) | (1L<<8) | 0 | (1L<<17) | 0), > 0, > 0, > 0, > 0, > 0, > 0, > (iternextfunc)arraymultiter_next, > arraymultiter_methods, > arraymultiter_members, > arraymultiter_getsetlist, > 0, > 0, > 0, > 0, > 0, > (initproc)0, > 0, > arraymultiter_new, > 0, > 0, > 0, > 0, > 0, > 0, > 0, > 0, > > 0, > >}; > > > >static void neighiter_dealloc(PyArrayNeighborhoodIterObject* iter); > >static char* _set_constant(PyArrayNeighborhoodIterObject* iter, > PyArrayObject *fill) >{ > char *ret; > PyArrayIterObject *ar = iter->_internal_iter; > int storeflags, st; > > ret = ((char *)malloc(ar->ao->descr->elsize)); > if (ret == ((void *)0)) { > PyErr_SetNone(PyExc_MemoryError); > return ((void *)0); > } > > if ((((((PyArrayObject *)(ar->ao))->descr->type_num)) == NPY_OBJECT)) { > memcpy(ret, fill->data, sizeof(PyObject*)); > ( ((PyObject*)(*(PyObject**)ret))->ob_refcnt++); > } else { > > > storeflags = ar->ao->flags; > ar->ao->flags |= (0x0100 | 0x0400); > st = ar->ao->descr->f->setitem((PyObject*)fill, ret, ar->ao); > ar->ao->flags = storeflags; > > if (st < 0) { > free(ret); > return ((void *)0); > } > } > > return ret; >} ># 1832 "numpy/core/src/multiarray/iterators.c" >static char* >get_ptr_constant(PyArrayIterObject* _iter, npy_intp *coordinates) >{ > int i; > npy_intp bd, _coordinates[32]; > PyArrayNeighborhoodIterObject *niter = (PyArrayNeighborhoodIterObject*)_iter; > PyArrayIterObject *p = niter->_internal_iter; > > for(i = 0; i < niter->nd; ++i) { > bd = coordinates[i] + p->coordinates[i]; if (bd < p->limits[i][0] || bd > p->limits[i][1]) { return niter->constant; } _coordinates[i] = bd; > } > > return p->translate(p, _coordinates); >} ># 1858 "numpy/core/src/multiarray/iterators.c" >inline static npy_intp >__npy_pos_remainder(npy_intp i, npy_intp n) >{ > npy_intp k, l, j; > > > if (i < 0) { > i = - i - 1; > } > > > k = i / n; > l = i - k * n; > > if (((k) % 2 == 0)) { > j = l; > } else { > j = n - 1 - l; > } > return j; >} ># 1887 "numpy/core/src/multiarray/iterators.c" >static char* >get_ptr_mirror(PyArrayIterObject* _iter, npy_intp *coordinates) >{ > int i; > npy_intp bd, _coordinates[32], lb; > PyArrayNeighborhoodIterObject *niter = (PyArrayNeighborhoodIterObject*)_iter; > PyArrayIterObject *p = niter->_internal_iter; > > for(i = 0; i < niter->nd; ++i) { > lb = p->limits[i][0]; bd = coordinates[i] + p->coordinates[i] - lb; _coordinates[i] = lb + __npy_pos_remainder(bd, p->limits_sizes[i]); > } > > return p->translate(p, _coordinates); >} > > > >inline static npy_intp >__npy_euclidean_division(npy_intp i, npy_intp n) >{ > npy_intp l; > > l = i % n; > if (l < 0) { > l += n; > } > return l; >} > > > > > > >static char* >get_ptr_circular(PyArrayIterObject* _iter, npy_intp *coordinates) >{ > int i; > npy_intp bd, _coordinates[32], lb; > PyArrayNeighborhoodIterObject *niter = (PyArrayNeighborhoodIterObject*)_iter; > PyArrayIterObject *p = niter->_internal_iter; > > for(i = 0; i < niter->nd; ++i) { > lb = p->limits[i][0]; bd = coordinates[i] + p->coordinates[i] - lb; _coordinates[i] = lb + __npy_euclidean_division(bd, p->limits_sizes[i]); > } > return p->translate(p, _coordinates); >} ># 1943 "numpy/core/src/multiarray/iterators.c" >static PyObject* >PyArray_NeighborhoodIterNew(PyArrayIterObject *x, npy_intp *bounds, > int mode, PyArrayObject* fill) >{ > int i; > PyArrayNeighborhoodIterObject *ret; > > ret = PyMem_Malloc(sizeof(*ret)); > if (ret == ((void *)0)) { > return ((void *)0); > } > PyObject_Init((PyObject *)ret, &PyArrayNeighborhoodIter_Type); > > array_iter_base_init((PyArrayIterObject*)ret, x->ao); > ( ((PyObject*)(x))->ob_refcnt++); > ret->_internal_iter = x; > > ret->nd = x->ao->nd; > > for (i = 0; i < ret->nd; ++i) { > ret->dimensions[i] = x->ao->dimensions[i]; > } > > > ret->size = 1; > for (i = 0; i < ret->nd; ++i) { > ret->bounds[i][0] = bounds[2 * i]; > ret->bounds[i][1] = bounds[2 * i + 1]; > ret->size *= (ret->bounds[i][1] - ret->bounds[i][0]) + 1; ># 1981 "numpy/core/src/multiarray/iterators.c" > ret->limits[i][0] = ret->bounds[i][0] < 0 ? ret->bounds[i][0] : 0; > ret->limits[i][1] = ret->bounds[i][1] >= ret->dimensions[i] - 1 ? > ret->bounds[i][1] : > ret->dimensions[i] - 1; > ret->limits_sizes[i] = (ret->limits[i][1] - ret->limits[i][0]) + 1; > } > > switch (mode) { > case NPY_NEIGHBORHOOD_ITER_ZERO_PADDING: > ret->constant = PyArray_Zero(x->ao); > ret->mode = mode; > ret->translate = &get_ptr_constant; > break; > case NPY_NEIGHBORHOOD_ITER_ONE_PADDING: > ret->constant = PyArray_One(x->ao); > ret->mode = mode; > ret->translate = &get_ptr_constant; > break; > case NPY_NEIGHBORHOOD_ITER_CONSTANT_PADDING: > > > ((void) (0)); > ret->constant = _set_constant(ret, fill); > if (ret->constant == ((void *)0)) { > goto clean_x; > } > ret->mode = mode; > ret->translate = &get_ptr_constant; > break; > case NPY_NEIGHBORHOOD_ITER_MIRROR_PADDING: > ret->mode = mode; > ret->constant = ((void *)0); > ret->translate = &get_ptr_mirror; > break; > case NPY_NEIGHBORHOOD_ITER_CIRCULAR_PADDING: > ret->mode = mode; > ret->constant = ((void *)0); > ret->translate = &get_ptr_circular; > break; > default: > PyErr_SetString(PyExc_ValueError, "Unsupported padding mode"); > goto clean_x; > } > > > > > > x->contiguous = 0; > > PyArrayNeighborhoodIter_Reset(ret); > > return (PyObject*)ret; > >clean_x: > do { if ( --((PyObject*)(ret->_internal_iter))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(ret->_internal_iter)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(ret->_internal_iter)))); } while (0); > array_iter_base_dealloc((PyArrayIterObject*)ret); > PyMem_Free((PyArrayObject*)ret); > return ((void *)0); >} > >static void neighiter_dealloc(PyArrayNeighborhoodIterObject* iter) >{ > if (iter->mode == NPY_NEIGHBORHOOD_ITER_CONSTANT_PADDING) { > if ((((((PyArrayObject *)(iter->_internal_iter->ao))->descr->type_num)) == NPY_OBJECT)) { > do { if ( --((PyObject*)(*(PyObject**)iter->constant))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(*(PyObject**)iter->constant)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(*(PyObject**)iter->constant)))); } while (0); > } > } > if (iter->constant != ((void *)0)) { > free(iter->constant); > } > do { if ( --((PyObject*)(iter->_internal_iter))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(iter->_internal_iter)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(iter->_internal_iter)))); } while (0); > > array_iter_base_dealloc((PyArrayIterObject*)iter); > PyMem_Free((PyArrayObject*)iter); >} > >static PyTypeObject PyArrayNeighborhoodIter_Type = { > > > > 1, ((void *)0), > 0, > > "numpy.neigh_internal_iter", > sizeof(PyArrayNeighborhoodIterObject), > 0, > (destructor)neighiter_dealloc, > 0, > 0, > 0, > > > > 0, > > 0, > 0, > 0, > 0, > 0, > 0, > 0, > 0, > 0, > 0, > ( (1L<<0) | (1L<<1) | (1L<<3) | (1L<<5) | (1L<<6) | (1L<<7) | (1L<<8) | 0 | (1L<<17) | 0), > 0, > 0, > 0, > 0, > 0, > 0, > (iternextfunc)0, > 0, > 0, > 0, > 0, > 0, > 0, > 0, > 0, > (initproc)0, > 0, > 0, > 0, > 0, > 0, > 0, > 0, > 0, > 0, > 0, > > 0, > >}; ># 23 "numpy/core/src/multiarray/multiarraymodule_onefile.c" 2 ># 1 "numpy/core/src/multiarray/mapping.c" 1 ># 16 "numpy/core/src/multiarray/mapping.c" ># 1 "numpy/core/src/multiarray/mapping.h" 1 ># 17 "numpy/core/src/multiarray/mapping.c" 2 > > > > > > > >static PyObject * >array_subscript_simple(PyArrayObject *self, PyObject *op); > > > > > >static Py_ssize_t >array_length(PyArrayObject *self) >{ > if (self->nd != 0) { > return self->dimensions[0]; > } else { > PyErr_SetString(PyExc_TypeError, "len() of unsized object"); > return -1; > } >} > >static PyObject * >array_big_item(PyArrayObject *self, npy_intp i) >{ > char *item; > PyArrayObject *r; > > if(self->nd == 0) { > PyErr_SetString(PyExc_IndexError, > "0-d arrays can't be indexed"); > return ((void *)0); > } > if ((item = index2ptr(self, i)) == ((void *)0)) { > return ((void *)0); > } > ( ((PyObject*)(self->descr))->ob_refcnt++); > r = (PyArrayObject *)PyArray_NewFromDescr((((PyObject*)(self))->ob_type), > self->descr, > self->nd-1, > self->dimensions+1, > self->strides+1, item, > self->flags, > (PyObject *)self); > if (r == ((void *)0)) { > return ((void *)0); > } > ( ((PyObject*)(self))->ob_refcnt++); > r->base = (PyObject *)self; > PyArray_UpdateFlags(r, 0x0001 | 0x0002); > return (PyObject *)r; >} > >static int >_array_ass_item(PyArrayObject *self, Py_ssize_t i, PyObject *v) >{ > return array_ass_big_item(self, (npy_intp) i, v); >} > >static PyObject * >array_item_nice(PyArrayObject *self, Py_ssize_t i) >{ > if (self->nd == 1) { > char *item; > if ((item = index2ptr(self, i)) == ((void *)0)) { > return ((void *)0); > } > return PyArray_Scalar(item, self->descr, (PyObject *)self); > } > else { > return PyArray_Return( > (PyArrayObject *) array_big_item(self, (npy_intp) i)); > } >} > >static int >array_ass_big_item(PyArrayObject *self, npy_intp i, PyObject *v) >{ > PyArrayObject *tmp; > char *item; > int ret; > > if (v == ((void *)0)) { > PyErr_SetString(PyExc_ValueError, > "can't delete array elements"); > return -1; > } > if (!((((PyArrayObject *)(self))->flags & (0x0400)) == (0x0400))) { > PyErr_SetString(PyExc_RuntimeError, > "array is not writeable"); > return -1; > } > if (self->nd == 0) { > PyErr_SetString(PyExc_IndexError, > "0-d arrays can't be indexed."); > return -1; > } > > > if (self->nd > 1) { > if((tmp = (PyArrayObject *)array_big_item(self, i)) == ((void *)0)) { > return -1; > } > ret = PyArray_CopyObject(tmp, v); > do { if ( --((PyObject*)(tmp))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(tmp)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(tmp)))); } while (0); > return ret; > } > > if ((item = index2ptr(self, i)) == ((void *)0)) { > return -1; > } > if (self->descr->f->setitem(v, item, self) == -1) { > return -1; > } > return 0; >} > > > >static void >_swap_axes(PyArrayMapIterObject *mit, PyArrayObject **ret, int getmap) >{ > PyObject *new; > int n1, n2, n3, val, bnd; > int i; > PyArray_Dims permute; > npy_intp d[32]; > PyArrayObject *arr; > > permute.ptr = d; > permute.len = mit->nd; > > > > > > arr = *ret; > if (arr->nd != mit->nd) { > for (i = 1; i <= arr->nd; i++) { > permute.ptr[mit->nd-i] = arr->dimensions[arr->nd-i]; > } > for (i = 0; i < mit->nd-arr->nd; i++) { > permute.ptr[i] = 1; > } > new = PyArray_Newshape(arr, &permute, NPY_ANYORDER); > do { if ( --((PyObject*)(arr))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(arr)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(arr)))); } while (0); > *ret = (PyArrayObject *)new; > if (new == ((void *)0)) { > return; > } > } ># 191 "numpy/core/src/multiarray/mapping.c" > n1 = mit->iters[0]->nd_m1 + 1; > n2 = mit->iteraxes[0]; > n3 = mit->nd; > > > bnd = getmap ? n1 : n2; > val = bnd; > i = 0; > while (val < n1 + n2) { > permute.ptr[i++] = val++; > } > val = 0; > while (val < bnd) { > permute.ptr[i++] = val++; > } > val = n1 + n2; > while (val < n3) { > permute.ptr[i++] = val++; > } > new = PyArray_Transpose(*ret, &permute); > do { if ( --((PyObject*)(*ret))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(*ret)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(*ret)))); } while (0); > *ret = (PyArrayObject *)new; >} > >static PyObject * >PyArray_GetMap(PyArrayMapIterObject *mit) >{ > > PyArrayObject *ret, *temp; > PyArrayIterObject *it; > int index; > int swap; > PyArray_CopySwapFunc *copyswap; > > > if (mit->ait == ((void *)0)) { > return ((void *)0); > } > > > > > temp = mit->ait->ao; > ( ((PyObject*)(temp->descr))->ob_refcnt++); > ret = (PyArrayObject *) > PyArray_NewFromDescr((((PyObject*)(temp))->ob_type), > temp->descr, > mit->nd, mit->dimensions, > ((void *)0), ((void *)0), > (((((PyArrayObject *)(temp))->flags & (0x0002)) == (0x0002)) && ((((PyArrayObject *)(temp))->nd) > 1)), > (PyObject *)temp); > if (ret == ((void *)0)) { > return ((void *)0); > } > > > > > > > > if ((it = (PyArrayIterObject *)PyArray_IterNew((PyObject *)ret)) == ((void *)0)) { > do { if ( --((PyObject*)(ret))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(ret)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(ret)))); } while (0); > return ((void *)0); > } > index = it->size; > swap = ((((((PyArrayObject *)(temp))->descr)->byteorder) != '>') != (((((PyArrayObject *)(ret))->descr)->byteorder) != '>')); > copyswap = ret->descr->f->copyswap; > PyArray_MapIterReset(mit); > while (index--) { > copyswap(it->dataptr, mit->dataptr, swap, ret); > PyArray_MapIterNext(mit); > { ((PyArrayIterObject *)(it))->index++; if (((PyArrayIterObject *)(it))->nd_m1 == 0) { { (((PyArrayIterObject *)(it)))->dataptr += ((PyArrayIterObject *)(((PyArrayIterObject *)(it))))->strides[0]; (((PyArrayIterObject *)(it)))->coordinates[0]++; }; } else if (((PyArrayIterObject *)(it))->contiguous) ((PyArrayIterObject *)(it))->dataptr += ((PyArrayIterObject *)(it))->ao->descr->elsize; else if (((PyArrayIterObject *)(it))->nd_m1 == 1) { { if ((((PyArrayIterObject *)(it)))->coordinates[1] < (((PyArrayIterObject *)(it)))->dims_m1[1]) { (((PyArrayIterObject *)(it)))->coordinates[1]++; (((PyArrayIterObject *)(it)))->dataptr += (((PyArrayIterObject *)(it)))->strides[1]; } else { (((PyArrayIterObject *)(it)))->coordinates[1] = 0; (((PyArrayIterObject *)(it)))->coordinates[0]++; (((PyArrayIterObject *)(it)))->dataptr += (((PyArrayIterObject *)(it)))->strides[0] - (((PyArrayIterObject *)(it)))->backstrides[1]; } }; } else { int __npy_i; for (__npy_i=((PyArrayIterObject *)(it))->nd_m1; __npy_i >= 0; __npy_i--) { if (((PyArrayIterObject *)(it))->coordinates[__npy_i] < ((PyArrayIterObject *)(it))->dims_m1[__npy_i]) { ((PyArrayIterObject *)(it))->coordinates[__npy_i]++; ((PyArrayIterObject *)(it))->dataptr += ((PyArrayIterObject *)(it))->strides[__npy_i]; break; } else { ((PyArrayIterObject *)(it))->coordinates[__npy_i] = 0; ((PyArrayIterObject *)(it))->dataptr -= ((PyArrayIterObject *)(it))->backstrides[__npy_i]; } } } }; > } > do { if ( --((PyObject*)(it))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(it)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(it)))); } while (0); > > > if ((mit->subspace != ((void *)0)) && (mit->consec)) { > if (mit->iteraxes[0] > 0) { > _swap_axes(mit, &ret, 1); > } > } > return (PyObject *)ret; >} > >static int >PyArray_SetMap(PyArrayMapIterObject *mit, PyObject *op) >{ > PyObject *arr = ((void *)0); > PyArrayIterObject *it; > int index; > int swap; > PyArray_CopySwapFunc *copyswap; > PyArray_Descr *descr; > > > if (mit->ait == ((void *)0)) { > return -1; > } > descr = mit->ait->ao->descr; > ( ((PyObject*)(descr))->ob_refcnt++); > arr = PyArray_FromAny(op, descr, 0, 0, 0x0010, ((void *)0)); > if (arr == ((void *)0)) { > return -1; > } > if ((mit->subspace != ((void *)0)) && (mit->consec)) { > if (mit->iteraxes[0] > 0) { > _swap_axes(mit, (PyArrayObject **)&arr, 0); > if (arr == ((void *)0)) { > return -1; > } > } > } > > > > > if ((it = (PyArrayIterObject *) PyArray_BroadcastToShape(arr, mit->dimensions, mit->nd))==((void *)0)) { > > do { if ( --((PyObject*)(arr))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(arr)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(arr)))); } while (0); > return -1; > } > > index = mit->size; > swap = ((((((PyArrayObject *)(mit->ait->ao))->descr)->byteorder) != '>') != > ((((((PyArrayObject *)(arr))->descr)->byteorder) != '>'))); > copyswap = (((PyArrayObject *)(arr))->descr)->f->copyswap; > PyArray_MapIterReset(mit); > > if ((((descr)->flags & (0x01)) == (0x01))) { > while (index--) { > PyArray_Item_INCREF(it->dataptr, (((PyArrayObject *)(arr))->descr)); > PyArray_Item_XDECREF(mit->dataptr, (((PyArrayObject *)(arr))->descr)); > memmove(mit->dataptr, it->dataptr, (((PyArrayObject *)(arr))->descr->elsize)); > > if (swap) { > copyswap(mit->dataptr, ((void *)0), swap, arr); > } > PyArray_MapIterNext(mit); > { ((PyArrayIterObject *)(it))->index++; if (((PyArrayIterObject *)(it))->nd_m1 == 0) { { (((PyArrayIterObject *)(it)))->dataptr += ((PyArrayIterObject *)(((PyArrayIterObject *)(it))))->strides[0]; (((PyArrayIterObject *)(it)))->coordinates[0]++; }; } else if (((PyArrayIterObject *)(it))->contiguous) ((PyArrayIterObject *)(it))->dataptr += ((PyArrayIterObject *)(it))->ao->descr->elsize; else if (((PyArrayIterObject *)(it))->nd_m1 == 1) { { if ((((PyArrayIterObject *)(it)))->coordinates[1] < (((PyArrayIterObject *)(it)))->dims_m1[1]) { (((PyArrayIterObject *)(it)))->coordinates[1]++; (((PyArrayIterObject *)(it)))->dataptr += (((PyArrayIterObject *)(it)))->strides[1]; } else { (((PyArrayIterObject *)(it)))->coordinates[1] = 0; (((PyArrayIterObject *)(it)))->coordinates[0]++; (((PyArrayIterObject *)(it)))->dataptr += (((PyArrayIterObject *)(it)))->strides[0] - (((PyArrayIterObject *)(it)))->backstrides[1]; } }; } else { int __npy_i; for (__npy_i=((PyArrayIterObject *)(it))->nd_m1; __npy_i >= 0; __npy_i--) { if (((PyArrayIterObject *)(it))->coordinates[__npy_i] < ((PyArrayIterObject *)(it))->dims_m1[__npy_i]) { ((PyArrayIterObject *)(it))->coordinates[__npy_i]++; ((PyArrayIterObject *)(it))->dataptr += ((PyArrayIterObject *)(it))->strides[__npy_i]; break; } else { ((PyArrayIterObject *)(it))->coordinates[__npy_i] = 0; ((PyArrayIterObject *)(it))->dataptr -= ((PyArrayIterObject *)(it))->backstrides[__npy_i]; } } } }; > } > do { if ( --((PyObject*)(arr))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(arr)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(arr)))); } while (0); > do { if ( --((PyObject*)(it))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(it)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(it)))); } while (0); > return 0; > } > while(index--) { > memmove(mit->dataptr, it->dataptr, (((PyArrayObject *)(arr))->descr->elsize)); > if (swap) { > copyswap(mit->dataptr, ((void *)0), swap, arr); > } > PyArray_MapIterNext(mit); > { ((PyArrayIterObject *)(it))->index++; if (((PyArrayIterObject *)(it))->nd_m1 == 0) { { (((PyArrayIterObject *)(it)))->dataptr += ((PyArrayIterObject *)(((PyArrayIterObject *)(it))))->strides[0]; (((PyArrayIterObject *)(it)))->coordinates[0]++; }; } else if (((PyArrayIterObject *)(it))->contiguous) ((PyArrayIterObject *)(it))->dataptr += ((PyArrayIterObject *)(it))->ao->descr->elsize; else if (((PyArrayIterObject *)(it))->nd_m1 == 1) { { if ((((PyArrayIterObject *)(it)))->coordinates[1] < (((PyArrayIterObject *)(it)))->dims_m1[1]) { (((PyArrayIterObject *)(it)))->coordinates[1]++; (((PyArrayIterObject *)(it)))->dataptr += (((PyArrayIterObject *)(it)))->strides[1]; } else { (((PyArrayIterObject *)(it)))->coordinates[1] = 0; (((PyArrayIterObject *)(it)))->coordinates[0]++; (((PyArrayIterObject *)(it)))->dataptr += (((PyArrayIterObject *)(it)))->strides[0] - (((PyArrayIterObject *)(it)))->backstrides[1]; } }; } else { int __npy_i; for (__npy_i=((PyArrayIterObject *)(it))->nd_m1; __npy_i >= 0; __npy_i--) { if (((PyArrayIterObject *)(it))->coordinates[__npy_i] < ((PyArrayIterObject *)(it))->dims_m1[__npy_i]) { ((PyArrayIterObject *)(it))->coordinates[__npy_i]++; ((PyArrayIterObject *)(it))->dataptr += ((PyArrayIterObject *)(it))->strides[__npy_i]; break; } else { ((PyArrayIterObject *)(it))->coordinates[__npy_i] = 0; ((PyArrayIterObject *)(it))->dataptr -= ((PyArrayIterObject *)(it))->backstrides[__npy_i]; } } } }; > } > do { if ( --((PyObject*)(arr))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(arr)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(arr)))); } while (0); > do { if ( --((PyObject*)(it))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(it)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(it)))); } while (0); > return 0; >} > >static int >count_new_axes_0d(PyObject *tuple) >{ > int i, argument_count; > int ellipsis_count = 0; > int newaxis_count = 0; > > argument_count = (((PyVarObject*)(tuple))->ob_size); > for (i = 0; i < argument_count; ++i) { > PyObject *arg = (((PyTupleObject *)(tuple))->ob_item[i]); > if (arg == (&_Py_EllipsisObject) && !ellipsis_count) { > ellipsis_count++; > } > else if (arg == (&_Py_NoneStruct)) { > newaxis_count++; > } > else { > break; > } > } > if (i < argument_count) { > PyErr_SetString(PyExc_IndexError, > "0-d arrays can only use a single ()" > " or a list of newaxes (and a single ...)" > " as an index"); > return -1; > } > if (newaxis_count > 32) { > PyErr_SetString(PyExc_IndexError, "too many dimensions"); > return -1; > } > return newaxis_count; >} > >static PyObject * >add_new_axes_0d(PyArrayObject *arr, int newaxis_count) >{ > PyArrayObject *other; > npy_intp dimensions[32]; > int i; > > for (i = 0; i < newaxis_count; ++i) { > dimensions[i] = 1; > } > ( ((PyObject*)(arr->descr))->ob_refcnt++); > if ((other = (PyArrayObject *) > PyArray_NewFromDescr((((PyObject*)(arr))->ob_type), arr->descr, > newaxis_count, dimensions, > ((void *)0), arr->data, > arr->flags, > (PyObject *)arr)) == ((void *)0)) > return ((void *)0); > other->base = (PyObject *)arr; > ( ((PyObject*)(arr))->ob_refcnt++); > return (PyObject *)other; >} > > > > >static int >fancy_indexing_check(PyObject *args) >{ > int i, n; > PyObject *obj; > int retval = 0; > > if (((((((PyObject*)(args))->ob_type))->tp_flags & ((1L<<26))) != 0)) { > n = (((PyVarObject*)(args))->ob_size); > if (n >= 32) { > return 3; > } > for (i = 0; i < n; i++) { > obj = (((PyTupleObject *)(args))->ob_item[i]); > if (((((PyObject*)(obj))->ob_type) == (&PyArray_Type) || PyType_IsSubtype((((PyObject*)(obj))->ob_type), (&PyArray_Type)))) { > if (((((((PyArrayObject *)(obj))->descr->type_num)) >= NPY_BYTE) && (((((PyArrayObject *)(obj))->descr->type_num)) <= NPY_ULONGLONG)) || > (((((PyArrayObject *)(obj))->descr->type_num)) == NPY_BOOL)) { > retval = 1; > } > else { > retval = 2; > break; > } > } > else if (PySequence_Check(obj)) { > retval = 1; > } > } > } > else if (((((PyObject*)(args))->ob_type) == (&PyArray_Type) || PyType_IsSubtype((((PyObject*)(args))->ob_type), (&PyArray_Type)))) { > if (((((PyArrayObject *)(args))->descr->type_num)==NPY_BOOL) || > (((((((PyArrayObject *)(args))->descr->type_num)) >= NPY_BYTE) && (((((PyArrayObject *)(args))->descr->type_num)) <= NPY_ULONGLONG)))) { > return 1; > } > else { > return 2; > } > } > else if (PySequence_Check(args)) { > > > > > > > retval = 1; > n = PySequence_Size(args); > if (n < 0 || n >= 32) { > return 1; > } > for (i = 0; i < n; i++) { > obj = PySequence_GetItem(args, i); > if (obj == ((void *)0)) { > return 1; > } > if (((((PyObject*)(obj))->ob_type) == (&PyArray_Type) || PyType_IsSubtype((((PyObject*)(obj))->ob_type), (&PyArray_Type)))) { > if (((((((PyArrayObject *)(obj))->descr->type_num)) >= NPY_BYTE) && (((((PyArrayObject *)(obj))->descr->type_num)) <= NPY_ULONGLONG)) || (((((PyArrayObject *)(obj))->descr->type_num)) == NPY_BOOL)) { > retval = 4; > } > else { > retval = 2; > } > } > else if (PySequence_Check(obj)) { > retval = 4; > } > else if (((((PyObject*)(obj))->ob_type) == &PySlice_Type) || obj == (&_Py_EllipsisObject) || > obj == (&_Py_NoneStruct)) { > retval = 0; > } > do { if ( --((PyObject*)(obj))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(obj)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(obj)))); } while (0); > if (retval > 1) { > return retval; > } > } > } > return retval; >} ># 502 "numpy/core/src/multiarray/mapping.c" >static PyObject * >array_subscript_simple(PyArrayObject *self, PyObject *op) >{ > npy_intp dimensions[32], strides[32]; > npy_intp offset; > int nd; > PyArrayObject *other; > npy_intp value; > > value = PyArray_PyIntAsIntp(op); > if (!PyErr_Occurred()) { > return array_big_item(self, value); > } > PyErr_Clear(); > > > if ((nd = parse_index(self, op, dimensions, strides, &offset)) == -1) { > return ((void *)0); > } > > ( ((PyObject*)(self->descr))->ob_refcnt++); > if ((other = (PyArrayObject *) > PyArray_NewFromDescr((((PyObject*)(self))->ob_type), self->descr, > nd, dimensions, > strides, self->data+offset, > self->flags, > (PyObject *)self)) == ((void *)0)) { > return ((void *)0); > } > other->base = (PyObject *)self; > ( ((PyObject*)(self))->ob_refcnt++); > PyArray_UpdateFlags(other, (0x0001 | 0x0002 | 0x0100)); > return (PyObject *)other; >} > >static PyObject * >array_subscript(PyArrayObject *self, PyObject *op) >{ > int nd, fancy; > PyArrayObject *other; > PyArrayMapIterObject *mit; > PyObject *obj; > > if (((((((PyObject*)(op))->ob_type))->tp_flags & ((1L<<27))) != 0) || ((((((PyObject*)(op))->ob_type))->tp_flags & ((1L<<28))) != 0)) { > PyObject *temp; > > if (self->descr->names) { > obj = PyDict_GetItem(self->descr->fields, op); > if (obj != ((void *)0)) { > PyArray_Descr *descr; > int offset; > PyObject *title; > > if (_PyArg_ParseTuple_SizeT(obj, "Oi|O", &descr, &offset, &title)) { > ( ((PyObject*)(descr))->ob_refcnt++); > return PyArray_GetField(self, descr, offset); > } > } > } > > temp = op; > if (((((((PyObject*)(op))->ob_type))->tp_flags & ((1L<<28))) != 0)) { > temp = PyUnicodeUCS4_AsUnicodeEscapeString(op); > } > PyErr_Format(PyExc_ValueError, > "field named %s not found.", > PyString_AsString(temp)); > if (temp != op) { > do { if ( --((PyObject*)(temp))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(temp)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(temp)))); } while (0); > } > return ((void *)0); > } > > > if (self->descr->names && PySequence_Check(op) && !((((((PyObject*)(op))->ob_type))->tp_flags & ((1L<<26))) != 0)) { > int seqlen, i; > seqlen = PySequence_Size(op); > for (i = 0; i < seqlen; i++) { > obj = PySequence_GetItem(op, i); > if (!((((((PyObject*)(obj))->ob_type))->tp_flags & ((1L<<27))) != 0) && !((((((PyObject*)(obj))->ob_type))->tp_flags & ((1L<<28))) != 0)) { > do { if ( --((PyObject*)(obj))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(obj)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(obj)))); } while (0); > break; > } > do { if ( --((PyObject*)(obj))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(obj)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(obj)))); } while (0); > } > > > > > fancy = ((seqlen > 0) && (i == seqlen)); > if (fancy) { > PyObject *_numpy_internal; > _numpy_internal = PyImport_ImportModule("numpy.core._internal"); > if (_numpy_internal == ((void *)0)) { > return ((void *)0); > } > obj = _PyObject_CallMethod_SizeT(_numpy_internal, > "_index_fields", "OO", self, op); > do { if ( --((PyObject*)(_numpy_internal))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(_numpy_internal)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(_numpy_internal)))); } while (0); > return obj; > } > } > > if (op == (&_Py_EllipsisObject)) { > ( ((PyObject*)(self))->ob_refcnt++); > return (PyObject *)self; > } > > if (self->nd == 0) { > if (op == (&_Py_NoneStruct)) { > return add_new_axes_0d(self, 1); > } > if (((((((PyObject*)(op))->ob_type))->tp_flags & ((1L<<26))) != 0)) { > if (0 == (((PyVarObject*)(op))->ob_size)) { > ( ((PyObject*)(self))->ob_refcnt++); > return (PyObject *)self; > } > if ((nd = count_new_axes_0d(op)) == -1) { > return ((void *)0); > } > return add_new_axes_0d(self, nd); > } > > if ((((((PyObject*)(op))->ob_type) == (&PyArray_Type) || PyType_IsSubtype((((PyObject*)(op))->ob_type), (&PyArray_Type))) && ((((PyArrayObject *)(op))->dimensions)==0) > && (((((PyArrayObject *)(op))->descr->type_num)) == NPY_BOOL))) { > if (PyObject_IsTrue(op)) { > ( ((PyObject*)(self))->ob_refcnt++); > return (PyObject *)self; > } > else { > npy_intp oned = 0; > ( ((PyObject*)(self->descr))->ob_refcnt++); > return PyArray_NewFromDescr((((PyObject*)(self))->ob_type), > self->descr, > 1, &oned, > ((void *)0), ((void *)0), > (0x0001 | (0x0100 | 0x0400)), > ((void *)0)); > } > } > PyErr_SetString(PyExc_IndexError, "0-d arrays can't be indexed."); > return ((void *)0); > } > > fancy = fancy_indexing_check(op); > if (fancy != 0) { > int oned; > > oned = ((self->nd == 1) && > !(((((((PyObject*)(op))->ob_type))->tp_flags & ((1L<<26))) != 0) && (((PyVarObject*)(op))->ob_size) > 1)); > > > mit = (PyArrayMapIterObject *) PyArray_MapIterNew(op, oned, fancy); > if (mit == ((void *)0)) { > return ((void *)0); > } > if (oned) { > PyArrayIterObject *it; > PyObject *rval; > it = (PyArrayIterObject *) PyArray_IterNew((PyObject *)self); > if (it == ((void *)0)) { > do { if ( --((PyObject*)(mit))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(mit)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(mit)))); } while (0); > return ((void *)0); > } > rval = iter_subscript(it, mit->indexobj); > do { if ( --((PyObject*)(it))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(it)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(it)))); } while (0); > do { if ( --((PyObject*)(mit))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(mit)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(mit)))); } while (0); > return rval; > } > PyArray_MapIterBind(mit, self); > other = (PyArrayObject *)PyArray_GetMap(mit); > do { if ( --((PyObject*)(mit))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(mit)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(mit)))); } while (0); > return (PyObject *)other; > } > > return array_subscript_simple(self, op); >} ># 689 "numpy/core/src/multiarray/mapping.c" >static int >array_ass_sub_simple(PyArrayObject *self, PyObject *index, PyObject *op) >{ > int ret; > PyArrayObject *tmp; > npy_intp value; > > value = PyArray_PyIntAsIntp(index); > if (!(((value) == -1) && PyErr_Occurred())) { > return array_ass_big_item(self, value, op); > } > PyErr_Clear(); > > > > if ((((PyObject*)(self))->ob_type == &PyArray_Type)) { > tmp = (PyArrayObject *)array_subscript_simple(self, index); > if (tmp == ((void *)0)) { > return -1; > } > } > else { > PyObject *tmp0; > > > > > > > tmp0 = PyObject_GetItem((PyObject *)self, index); > if (tmp0 == ((void *)0)) { > return -1; > } > if (!((((PyObject*)(tmp0))->ob_type) == (&PyArray_Type) || PyType_IsSubtype((((PyObject*)(tmp0))->ob_type), (&PyArray_Type)))) { > PyErr_SetString(PyExc_RuntimeError, > "Getitem not returning array."); > do { if ( --((PyObject*)(tmp0))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(tmp0)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(tmp0)))); } while (0); > return -1; > } > tmp = (PyArrayObject *)tmp0; > } > > if ((((((PyArrayObject *)(self))->descr->type_num)) == NPY_OBJECT) && (tmp->nd == 0)) { > ret = tmp->descr->f->setitem(op, tmp->data, tmp); > } > else { > ret = PyArray_CopyObject(tmp, op); > } > do { if ( --((PyObject*)(tmp))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(tmp)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(tmp)))); } while (0); > return ret; >} > > > > > >static int >_tuple_of_integers(PyObject *seq, npy_intp *vals, int maxvals) >{ > int i; > PyObject *obj; > npy_intp temp; > > for(i=0; i<maxvals; i++) { > obj = (((PyTupleObject *)(seq))->ob_item[i]); > if ((((((PyObject*)(obj))->ob_type) == (&PyArray_Type) || PyType_IsSubtype((((PyObject*)(obj))->ob_type), (&PyArray_Type))) && (((PyArrayObject *)(obj))->nd) > 0) > || ((((((PyObject*)(obj))->ob_type))->tp_flags & ((1L<<25))) != 0)) { > return -1; > } > temp = PyArray_PyIntAsIntp(obj); > if ((((temp) == -1) && PyErr_Occurred())) { > return -1; > } > vals[i] = temp; > } > return 0; >} > > >static int >array_ass_sub(PyArrayObject *self, PyObject *index, PyObject *op) >{ > int ret, oned, fancy; > PyArrayMapIterObject *mit; > npy_intp vals[32]; > > if (op == ((void *)0)) { > PyErr_SetString(PyExc_ValueError, > "cannot delete array elements"); > return -1; > } > if (!((((PyArrayObject *)(self))->flags & (0x0400)) == (0x0400))) { > PyErr_SetString(PyExc_RuntimeError, > "array is not writeable"); > return -1; > } > > if (((((index)->ob_type)->tp_flags & ((1L<<23))) != 0) || (((((PyObject*)(index))->ob_type) == (&PyIntegerArrType_Type) || PyType_IsSubtype((((PyObject*)(index))->ob_type), (&PyIntegerArrType_Type)))) || > ((((((PyObject*)(index))->ob_type))->tp_flags & ((1L<<24))) != 0) || (((index)->ob_type->tp_as_number != ((void *)0) && ((((index)->ob_type)->tp_flags & ((1L<<17))) != 0) && (index)->ob_type->tp_as_number->nb_index != ((void *)0)) && > !PySequence_Check(index))) { > npy_intp value; > value = PyArray_PyIntAsIntp(index); > if (PyErr_Occurred()) { > PyErr_Clear(); > } > else { > return array_ass_big_item(self, value, op); > } > } > > if (((((((PyObject*)(index))->ob_type))->tp_flags & ((1L<<27))) != 0) || ((((((PyObject*)(index))->ob_type))->tp_flags & ((1L<<28))) != 0)) { > if (self->descr->names) { > PyObject *obj; > > obj = PyDict_GetItem(self->descr->fields, index); > if (obj != ((void *)0)) { > PyArray_Descr *descr; > int offset; > PyObject *title; > > if (_PyArg_ParseTuple_SizeT(obj, "Oi|O", &descr, &offset, &title)) { > ( ((PyObject*)(descr))->ob_refcnt++); > return PyArray_SetField(self, descr, offset, op); > } > } > } > > > > > > > PyErr_Format(PyExc_ValueError, > "field named %s not found.", > PyString_AsString(index)); > > return -1; > } > > if (index == (&_Py_EllipsisObject)) { > > > > > if ((PyObject *)self == op) { > return 0; > } > else { > return PyArray_CopyObject(self, op); > } > } > > if (self->nd == 0) { ># 850 "numpy/core/src/multiarray/mapping.c" > if (index == (&_Py_NoneStruct) || (((((((PyObject*)(index))->ob_type))->tp_flags & ((1L<<26))) != 0) && > (0 == (((PyVarObject*)(index))->ob_size) || > count_new_axes_0d(index) > 0))) { > return self->descr->f->setitem(op, self->data, self); > } > if (((((PyObject*)(index))->ob_type) == &PyBool_Type) || (((((PyObject*)(index))->ob_type) == (&PyBoolArrType_Type) || PyType_IsSubtype((((PyObject*)(index))->ob_type), (&PyBoolArrType_Type)))) || > (((((PyObject*)(index))->ob_type) == (&PyArray_Type) || PyType_IsSubtype((((PyObject*)(index))->ob_type), (&PyArray_Type))) && ((((PyArrayObject *)(index))->dimensions)==0) && > (((((PyArrayObject *)(index))->descr->type_num)) == NPY_BOOL))) { > if (PyObject_IsTrue(index)) { > return self->descr->f->setitem(op, self->data, self); > } > else { > return 0; > } > } > PyErr_SetString(PyExc_IndexError, "0-d arrays can't be indexed."); > return -1; > } > > > if (((((((PyObject*)(index))->ob_type))->tp_flags & ((1L<<26))) != 0) && ((((PyVarObject*)(index))->ob_size) == self->nd) > && (_tuple_of_integers(index, vals, self->nd) >= 0)) { > int i; > char *item; > > for (i = 0; i < self->nd; i++) { > if (vals[i] < 0) { > vals[i] += self->dimensions[i]; > } > if ((vals[i] < 0) || (vals[i] >= self->dimensions[i])) { > PyErr_Format(PyExc_IndexError, > "index (%""l" "d"") out of range " "(0<=index<%""l" "d"") in dimension %d", > > vals[i], self->dimensions[i], i); > return -1; > } > } > item = PyArray_GetPtr(self, vals); > return self->descr->f->setitem(op, item, self); > } > PyErr_Clear(); > > fancy = fancy_indexing_check(index); > if (fancy != 0) { > oned = ((self->nd == 1) && > !(((((((PyObject*)(index))->ob_type))->tp_flags & ((1L<<26))) != 0) && (((PyVarObject*)(index))->ob_size) > 1)); > mit = (PyArrayMapIterObject *) PyArray_MapIterNew(index, oned, fancy); > if (mit == ((void *)0)) { > return -1; > } > if (oned) { > PyArrayIterObject *it; > int rval; > > it = (PyArrayIterObject *)PyArray_IterNew((PyObject *)self); > if (it == ((void *)0)) { > do { if ( --((PyObject*)(mit))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(mit)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(mit)))); } while (0); > return -1; > } > rval = iter_ass_subscript(it, mit->indexobj, op); > do { if ( --((PyObject*)(it))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(it)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(it)))); } while (0); > do { if ( --((PyObject*)(mit))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(mit)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(mit)))); } while (0); > return rval; > } > PyArray_MapIterBind(mit, self); > ret = PyArray_SetMap(mit, op); > do { if ( --((PyObject*)(mit))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(mit)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(mit)))); } while (0); > return ret; > } > > return array_ass_sub_simple(self, index, op); >} ># 931 "numpy/core/src/multiarray/mapping.c" >static PyObject * >array_subscript_nice(PyArrayObject *self, PyObject *op) >{ > > PyArrayObject *mp; > npy_intp vals[32]; > > if (((((op)->ob_type)->tp_flags & ((1L<<23))) != 0) || (((((PyObject*)(op))->ob_type) == (&PyIntegerArrType_Type) || PyType_IsSubtype((((PyObject*)(op))->ob_type), (&PyIntegerArrType_Type)))) || > ((((((PyObject*)(op))->ob_type))->tp_flags & ((1L<<24))) != 0) || (((op)->ob_type->tp_as_number != ((void *)0) && ((((op)->ob_type)->tp_flags & ((1L<<17))) != 0) && (op)->ob_type->tp_as_number->nb_index != ((void *)0)) && > !PySequence_Check(op))) { > npy_intp value; > value = PyArray_PyIntAsIntp(op); > if (PyErr_Occurred()) { > PyErr_Clear(); > } > else { > return array_item_nice(self, (Py_ssize_t) value); > } > } > > if (self->nd > 1 && ((((((PyObject*)(op))->ob_type))->tp_flags & ((1L<<26))) != 0) && > ((((PyVarObject*)(op))->ob_size) == self->nd) > && (_tuple_of_integers(op, vals, self->nd) >= 0)) { > int i; > char *item; > > for (i = 0; i < self->nd; i++) { > if (vals[i] < 0) { > vals[i] += self->dimensions[i]; > } > if ((vals[i] < 0) || (vals[i] >= self->dimensions[i])) { > PyErr_Format(PyExc_IndexError, > "index (%""l" "d"") out of range " "(0<=index<%""l" "d"") in dimension %d", > > vals[i], self->dimensions[i], i); > return ((void *)0); > } > } > item = PyArray_GetPtr(self, vals); > return PyArray_Scalar(item, self->descr, (PyObject *)self); > } > PyErr_Clear(); > > mp = (PyArrayObject *)array_subscript(self, op); ># 986 "numpy/core/src/multiarray/mapping.c" > if (mp == ((void *)0)) { > return ((void *)0); > } > if (PyErr_Occurred()) { > do { if ((mp) == ((void *)0)) ; else do { if ( --((PyObject*)(mp))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(mp)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(mp)))); } while (0); } while (0); > return ((void *)0); > } > if (((((PyObject*)(mp))->ob_type) == (&PyArray_Type) || PyType_IsSubtype((((PyObject*)(mp))->ob_type), (&PyArray_Type))) && mp->nd == 0) { > npy_bool noellipses = 1; > if ((op == (&_Py_EllipsisObject)) || ((((((PyObject*)(op))->ob_type))->tp_flags & ((1L<<27))) != 0) || ((((((PyObject*)(op))->ob_type))->tp_flags & ((1L<<28))) != 0)) { > noellipses = 0; > } > else if (((((PyObject*)(op))->ob_type) == &PyBool_Type) || (((((PyObject*)(op))->ob_type) == (&PyBoolArrType_Type) || PyType_IsSubtype((((PyObject*)(op))->ob_type), (&PyBoolArrType_Type)))) || > (((((PyObject*)(op))->ob_type) == (&PyArray_Type) || PyType_IsSubtype((((PyObject*)(op))->ob_type), (&PyArray_Type))) && ((((PyArrayObject *)(op))->dimensions)==0) && > (((((PyArrayObject *)(op))->descr->type_num)) == NPY_BOOL))) { > noellipses = 0; > } > else if (PySequence_Check(op)) { > Py_ssize_t n, i; > PyObject *temp; > > n = PySequence_Size(op); > i = 0; > while (i < n && noellipses) { > temp = PySequence_GetItem(op, i); > if (temp == (&_Py_EllipsisObject)) { > noellipses = 0; > } > do { if ( --((PyObject*)(temp))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(temp)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(temp)))); } while (0); > i++; > } > } > if (noellipses) { > PyObject *ret; > ret = PyArray_Scalar(mp->data, (((PyArrayObject *)(mp))->descr), (PyObject *)mp); > do { if ( --((PyObject*)(mp))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(mp)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(mp)))); } while (0); > return ret; > } > } > return (PyObject *)mp; >} > > >static PyMappingMethods array_as_mapping = { > > (lenfunc)array_length, > > > > (binaryfunc)array_subscript_nice, > (objobjargproc)array_ass_sub, >}; ># 1054 "numpy/core/src/multiarray/mapping.c" >static int >_nonzero_indices(PyObject *myBool, PyArrayIterObject **iters) >{ > PyArray_Descr *typecode; > PyArrayObject *ba = ((void *)0), *new = ((void *)0); > int nd, j; > npy_intp size, i, count; > npy_bool *ptr; > npy_intp coords[32], dims_m1[32]; > npy_intp *dptr[32]; > > typecode=PyArray_DescrFromType(NPY_BOOL); > ba = (PyArrayObject *)PyArray_FromAny(myBool, typecode, 0, 0, > (0x0001 | (0x0100 | 0x0400)), ((void *)0)); > if (ba == ((void *)0)) { > return -1; > } > nd = ba->nd; > for (j = 0; j < nd; j++) { > iters[j] = ((void *)0); > } > size = PyArray_MultiplyList((((PyArrayObject *)(ba))->dimensions), (((PyArrayObject *)(ba))->nd)); > ptr = (npy_bool *)ba->data; > count = 0; > > > for (i = 0; i < size; i++) { > if (*(ptr++)) { > count++; > } > } > > > for (j = 0; j < nd; j++) { > new = (PyArrayObject *)PyArray_New(&PyArray_Type, 1, &count, > NPY_LONG, ((void *)0), ((void *)0), > 0, 0, ((void *)0)); > if (new == ((void *)0)) { > goto fail; > } > iters[j] = (PyArrayIterObject *) > PyArray_IterNew((PyObject *)new); > do { if ( --((PyObject*)(new))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(new)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(new)))); } while (0); > if (iters[j] == ((void *)0)) { > goto fail; > } > dptr[j] = (npy_intp *)iters[j]->ao->data; > coords[j] = 0; > dims_m1[j] = ba->dimensions[j]-1; > } > ptr = (npy_bool *)ba->data; > if (count == 0) { > goto finish; > } > > > > > > for (i = 0; i < size; i++) { > if (*(ptr++)) { > for (j = 0; j < nd; j++) { > *(dptr[j]++) = coords[j]; > } > } > > for (j = nd - 1; j >= 0; j--) { > if (coords[j] < dims_m1[j]) { > coords[j]++; > break; > } > else { > coords[j] = 0; > } > } > } > > finish: > do { if ( --((PyObject*)(ba))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(ba)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(ba)))); } while (0); > return nd; > > fail: > for (j = 0; j < nd; j++) { > do { if ((iters[j]) == ((void *)0)) ; else do { if ( --((PyObject*)(iters[j]))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(iters[j])))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(iters[j])))); } while (0); } while (0); > } > do { if ((ba) == ((void *)0)) ; else do { if ( --((PyObject*)(ba))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(ba)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(ba)))); } while (0); } while (0); > return -1; >} > > > > > > >static int >_convert_obj(PyObject *obj, PyArrayIterObject **iter) >{ > PyArray_Descr *indtype; > PyObject *arr; > > if (((((PyObject*)(obj))->ob_type) == &PySlice_Type) || (obj == (&_Py_EllipsisObject))) { > return 0; > } > else if (((((PyObject*)(obj))->ob_type) == (&PyArray_Type) || PyType_IsSubtype((((PyObject*)(obj))->ob_type), (&PyArray_Type))) && (((((PyArrayObject *)(obj))->descr->type_num)) == NPY_BOOL)) { > return _nonzero_indices(obj, iter); > } > else { > indtype = PyArray_DescrFromType(NPY_LONG); > arr = PyArray_FromAny(obj, indtype, 0, 0, 0x0010, ((void *)0)); > if (arr == ((void *)0)) { > return -1; > } > *iter = (PyArrayIterObject *)PyArray_IterNew(arr); > do { if ( --((PyObject*)(arr))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(arr)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(arr)))); } while (0); > if (*iter == ((void *)0)) { > return -1; > } > } > return 1; >} > > >static void >PyArray_MapIterReset(PyArrayMapIterObject *mit) >{ > int i,j; npy_intp coord[32]; > PyArrayIterObject *it; > PyArray_CopySwapFunc *copyswap; > > mit->index = 0; > > copyswap = mit->iters[0]->ao->descr->f->copyswap; > > if (mit->subspace != ((void *)0)) { > memcpy(coord, mit->bscoord, sizeof(npy_intp)*mit->ait->ao->nd); > { ((PyArrayIterObject *)(mit->subspace))->index = 0; ((PyArrayIterObject *)(mit->subspace))->dataptr = ((PyArrayIterObject *)(mit->subspace))->ao->data; memset(((PyArrayIterObject *)(mit->subspace))->coordinates, 0, (((PyArrayIterObject *)(mit->subspace))->nd_m1+1)*sizeof(npy_intp)); }; > for (i = 0; i < mit->numiter; i++) { > it = mit->iters[i]; > { ((PyArrayIterObject *)(it))->index = 0; ((PyArrayIterObject *)(it))->dataptr = ((PyArrayIterObject *)(it))->ao->data; memset(((PyArrayIterObject *)(it))->coordinates, 0, (((PyArrayIterObject *)(it))->nd_m1+1)*sizeof(npy_intp)); }; > j = mit->iteraxes[i]; > copyswap(coord+j,it->dataptr, !(((((PyArrayObject *)(it->ao))->descr)->byteorder) != '>'), > it->ao); > } > { int __npy_i; ((PyArrayIterObject *)(mit->ait))->index = 0; ((PyArrayIterObject *)(mit->ait))->dataptr = ((PyArrayIterObject *)(mit->ait))->ao->data; for (__npy_i = ((PyArrayIterObject *)(mit->ait))->nd_m1; __npy_i>=0; __npy_i--) { if (coord[__npy_i] < 0) { coord[__npy_i] += ((PyArrayIterObject *)(mit->ait))->dims_m1[__npy_i]+1; } ((PyArrayIterObject *)(mit->ait))->dataptr += coord[__npy_i] * ((PyArrayIterObject *)(mit->ait))->strides[__npy_i]; ((PyArrayIterObject *)(mit->ait))->coordinates[__npy_i] = coord[__npy_i]; ((PyArrayIterObject *)(mit->ait))->index += coord[__npy_i] * ( __npy_i==((PyArrayIterObject *)(mit->ait))->nd_m1 ? 1 : ((PyArrayIterObject *)(mit->ait))->dims_m1[__npy_i+1]+1) ; } }; > mit->subspace->dataptr = mit->ait->dataptr; > mit->dataptr = mit->subspace->dataptr; > } > else { > for (i = 0; i < mit->numiter; i++) { > it = mit->iters[i]; > if (it->size != 0) { > { ((PyArrayIterObject *)(it))->index = 0; ((PyArrayIterObject *)(it))->dataptr = ((PyArrayIterObject *)(it))->ao->data; memset(((PyArrayIterObject *)(it))->coordinates, 0, (((PyArrayIterObject *)(it))->nd_m1+1)*sizeof(npy_intp)); }; > copyswap(coord+i,it->dataptr, !(((((PyArrayObject *)(it->ao))->descr)->byteorder) != '>'), > it->ao); > } > else { > coord[i] = 0; > } > } > { int __npy_i; ((PyArrayIterObject *)(mit->ait))->index = 0; ((PyArrayIterObject *)(mit->ait))->dataptr = ((PyArrayIterObject *)(mit->ait))->ao->data; for (__npy_i = ((PyArrayIterObject *)(mit->ait))->nd_m1; __npy_i>=0; __npy_i--) { if (coord[__npy_i] < 0) { coord[__npy_i] += ((PyArrayIterObject *)(mit->ait))->dims_m1[__npy_i]+1; } ((PyArrayIterObject *)(mit->ait))->dataptr += coord[__npy_i] * ((PyArrayIterObject *)(mit->ait))->strides[__npy_i]; ((PyArrayIterObject *)(mit->ait))->coordinates[__npy_i] = coord[__npy_i]; ((PyArrayIterObject *)(mit->ait))->index += coord[__npy_i] * ( __npy_i==((PyArrayIterObject *)(mit->ait))->nd_m1 ? 1 : ((PyArrayIterObject *)(mit->ait))->dims_m1[__npy_i+1]+1) ; } }; > mit->dataptr = mit->ait->dataptr; > } > return; >} > > > > > >static void >PyArray_MapIterNext(PyArrayMapIterObject *mit) >{ > int i, j; > npy_intp coord[32]; > PyArrayIterObject *it; > PyArray_CopySwapFunc *copyswap; > > mit->index += 1; > if (mit->index >= mit->size) { > return; > } > copyswap = mit->iters[0]->ao->descr->f->copyswap; > > if (mit->subspace != ((void *)0)) { > { ((PyArrayIterObject *)(mit->subspace))->index++; if (((PyArrayIterObject *)(mit->subspace))->nd_m1 == 0) { { (((PyArrayIterObject *)(mit->subspace)))->dataptr += ((PyArrayIterObject *)(((PyArrayIterObject *)(mit->subspace))))->strides[0]; (((PyArrayIterObject *)(mit->subspace)))->coordinates[0]++; }; } else if (((PyArrayIterObject *)(mit->subspace))->contiguous) ((PyArrayIterObject *)(mit->subspace))->dataptr += ((PyArrayIterObject *)(mit->subspace))->ao->descr->elsize; else if (((PyArrayIterObject *)(mit->subspace))->nd_m1 == 1) { { if ((((PyArrayIterObject *)(mit->subspace)))->coordinates[1] < (((PyArrayIterObject *)(mit->subspace)))->dims_m1[1]) { (((PyArrayIterObject *)(mit->subspace)))->coordinates[1]++; (((PyArrayIterObject *)(mit->subspace)))->dataptr += (((PyArrayIterObject *)(mit->subspace)))->strides[1]; } else { (((PyArrayIterObject *)(mit->subspace)))->coordinates[1] = 0; (((PyArrayIterObject *)(mit->subspace)))->coordinates[0]++; (((PyArrayIterObject *)(mit->subspace)))->dataptr += (((PyArrayIterObject *)(mit->subspace)))->strides[0] - (((PyArrayIterObject *)(mit->subspace)))->backstrides[1]; } }; } else { int __npy_i; for (__npy_i=((PyArrayIterObject *)(mit->subspace))->nd_m1; __npy_i >= 0; __npy_i--) { if (((PyArrayIterObject *)(mit->subspace))->coordinates[__npy_i] < ((PyArrayIterObject *)(mit->subspace))->dims_m1[__npy_i]) { ((PyArrayIterObject *)(mit->subspace))->coordinates[__npy_i]++; ((PyArrayIterObject *)(mit->subspace))->dataptr += ((PyArrayIterObject *)(mit->subspace))->strides[__npy_i]; break; } else { ((PyArrayIterObject *)(mit->subspace))->coordinates[__npy_i] = 0; ((PyArrayIterObject *)(mit->subspace))->dataptr -= ((PyArrayIterObject *)(mit->subspace))->backstrides[__npy_i]; } } } }; > if (mit->subspace->index >= mit->subspace->size) { > > memcpy(coord, mit->bscoord, sizeof(npy_intp)*mit->ait->ao->nd); > { ((PyArrayIterObject *)(mit->subspace))->index = 0; ((PyArrayIterObject *)(mit->subspace))->dataptr = ((PyArrayIterObject *)(mit->subspace))->ao->data; memset(((PyArrayIterObject *)(mit->subspace))->coordinates, 0, (((PyArrayIterObject *)(mit->subspace))->nd_m1+1)*sizeof(npy_intp)); }; > for (i = 0; i < mit->numiter; i++) { > it = mit->iters[i]; > { ((PyArrayIterObject *)(it))->index++; if (((PyArrayIterObject *)(it))->nd_m1 == 0) { { (((PyArrayIterObject *)(it)))->dataptr += ((PyArrayIterObject *)(((PyArrayIterObject *)(it))))->strides[0]; (((PyArrayIterObject *)(it)))->coordinates[0]++; }; } else if (((PyArrayIterObject *)(it))->contiguous) ((PyArrayIterObject *)(it))->dataptr += ((PyArrayIterObject *)(it))->ao->descr->elsize; else if (((PyArrayIterObject *)(it))->nd_m1 == 1) { { if ((((PyArrayIterObject *)(it)))->coordinates[1] < (((PyArrayIterObject *)(it)))->dims_m1[1]) { (((PyArrayIterObject *)(it)))->coordinates[1]++; (((PyArrayIterObject *)(it)))->dataptr += (((PyArrayIterObject *)(it)))->strides[1]; } else { (((PyArrayIterObject *)(it)))->coordinates[1] = 0; (((PyArrayIterObject *)(it)))->coordinates[0]++; (((PyArrayIterObject *)(it)))->dataptr += (((PyArrayIterObject *)(it)))->strides[0] - (((PyArrayIterObject *)(it)))->backstrides[1]; } }; } else { int __npy_i; for (__npy_i=((PyArrayIterObject *)(it))->nd_m1; __npy_i >= 0; __npy_i--) { if (((PyArrayIterObject *)(it))->coordinates[__npy_i] < ((PyArrayIterObject *)(it))->dims_m1[__npy_i]) { ((PyArrayIterObject *)(it))->coordinates[__npy_i]++; ((PyArrayIterObject *)(it))->dataptr += ((PyArrayIterObject *)(it))->strides[__npy_i]; break; } else { ((PyArrayIterObject *)(it))->coordinates[__npy_i] = 0; ((PyArrayIterObject *)(it))->dataptr -= ((PyArrayIterObject *)(it))->backstrides[__npy_i]; } } } }; > j = mit->iteraxes[i]; > copyswap(coord+j,it->dataptr, !(((((PyArrayObject *)(it->ao))->descr)->byteorder) != '>'), > it->ao); > } > { int __npy_i; ((PyArrayIterObject *)(mit->ait))->index = 0; ((PyArrayIterObject *)(mit->ait))->dataptr = ((PyArrayIterObject *)(mit->ait))->ao->data; for (__npy_i = ((PyArrayIterObject *)(mit->ait))->nd_m1; __npy_i>=0; __npy_i--) { if (coord[__npy_i] < 0) { coord[__npy_i] += ((PyArrayIterObject *)(mit->ait))->dims_m1[__npy_i]+1; } ((PyArrayIterObject *)(mit->ait))->dataptr += coord[__npy_i] * ((PyArrayIterObject *)(mit->ait))->strides[__npy_i]; ((PyArrayIterObject *)(mit->ait))->coordinates[__npy_i] = coord[__npy_i]; ((PyArrayIterObject *)(mit->ait))->index += coord[__npy_i] * ( __npy_i==((PyArrayIterObject *)(mit->ait))->nd_m1 ? 1 : ((PyArrayIterObject *)(mit->ait))->dims_m1[__npy_i+1]+1) ; } }; > mit->subspace->dataptr = mit->ait->dataptr; > } > mit->dataptr = mit->subspace->dataptr; > } > else { > for (i = 0; i < mit->numiter; i++) { > it = mit->iters[i]; > { ((PyArrayIterObject *)(it))->index++; if (((PyArrayIterObject *)(it))->nd_m1 == 0) { { (((PyArrayIterObject *)(it)))->dataptr += ((PyArrayIterObject *)(((PyArrayIterObject *)(it))))->strides[0]; (((PyArrayIterObject *)(it)))->coordinates[0]++; }; } else if (((PyArrayIterObject *)(it))->contiguous) ((PyArrayIterObject *)(it))->dataptr += ((PyArrayIterObject *)(it))->ao->descr->elsize; else if (((PyArrayIterObject *)(it))->nd_m1 == 1) { { if ((((PyArrayIterObject *)(it)))->coordinates[1] < (((PyArrayIterObject *)(it)))->dims_m1[1]) { (((PyArrayIterObject *)(it)))->coordinates[1]++; (((PyArrayIterObject *)(it)))->dataptr += (((PyArrayIterObject *)(it)))->strides[1]; } else { (((PyArrayIterObject *)(it)))->coordinates[1] = 0; (((PyArrayIterObject *)(it)))->coordinates[0]++; (((PyArrayIterObject *)(it)))->dataptr += (((PyArrayIterObject *)(it)))->strides[0] - (((PyArrayIterObject *)(it)))->backstrides[1]; } }; } else { int __npy_i; for (__npy_i=((PyArrayIterObject *)(it))->nd_m1; __npy_i >= 0; __npy_i--) { if (((PyArrayIterObject *)(it))->coordinates[__npy_i] < ((PyArrayIterObject *)(it))->dims_m1[__npy_i]) { ((PyArrayIterObject *)(it))->coordinates[__npy_i]++; ((PyArrayIterObject *)(it))->dataptr += ((PyArrayIterObject *)(it))->strides[__npy_i]; break; } else { ((PyArrayIterObject *)(it))->coordinates[__npy_i] = 0; ((PyArrayIterObject *)(it))->dataptr -= ((PyArrayIterObject *)(it))->backstrides[__npy_i]; } } } }; > copyswap(coord+i,it->dataptr, > !(((((PyArrayObject *)(it->ao))->descr)->byteorder) != '>'), > it->ao); > } > { int __npy_i; ((PyArrayIterObject *)(mit->ait))->index = 0; ((PyArrayIterObject *)(mit->ait))->dataptr = ((PyArrayIterObject *)(mit->ait))->ao->data; for (__npy_i = ((PyArrayIterObject *)(mit->ait))->nd_m1; __npy_i>=0; __npy_i--) { if (coord[__npy_i] < 0) { coord[__npy_i] += ((PyArrayIterObject *)(mit->ait))->dims_m1[__npy_i]+1; } ((PyArrayIterObject *)(mit->ait))->dataptr += coord[__npy_i] * ((PyArrayIterObject *)(mit->ait))->strides[__npy_i]; ((PyArrayIterObject *)(mit->ait))->coordinates[__npy_i] = coord[__npy_i]; ((PyArrayIterObject *)(mit->ait))->index += coord[__npy_i] * ( __npy_i==((PyArrayIterObject *)(mit->ait))->nd_m1 ? 1 : ((PyArrayIterObject *)(mit->ait))->dims_m1[__npy_i+1]+1) ; } }; > mit->dataptr = mit->ait->dataptr; > } > return; >} ># 1284 "numpy/core/src/multiarray/mapping.c" >static void >PyArray_MapIterBind(PyArrayMapIterObject *mit, PyArrayObject *arr) >{ > int subnd; > PyObject *sub, *obj = ((void *)0); > int i, j, n, curraxis, ellipexp, noellip; > PyArrayIterObject *it; > npy_intp dimsize; > npy_intp *indptr; > > subnd = arr->nd - mit->numiter; > if (subnd < 0) { > PyErr_SetString(PyExc_ValueError, > "too many indices for array"); > return; > } > > mit->ait = (PyArrayIterObject *)PyArray_IterNew((PyObject *)arr); > if (mit->ait == ((void *)0)) { > return; > } > > if (subnd == 0) { > n = arr->nd; > for (i = 0; i < n; i++) { > mit->iteraxes[i] = i; > } > goto finish; > } ># 1321 "numpy/core/src/multiarray/mapping.c" > if ((((PyObject*)(arr))->ob_type == &PyArray_Type)) { > sub = array_subscript_simple(arr, mit->indexobj); > } > else { > ( ((PyObject*)(arr))->ob_refcnt++); > obj = PyArray_EnsureArray((PyObject *)arr); > if (obj == ((void *)0)) { > goto fail; > } > sub = array_subscript_simple((PyArrayObject *)obj, mit->indexobj); > do { if ( --((PyObject*)(obj))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(obj)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(obj)))); } while (0); > } > > if (sub == ((void *)0)) { > goto fail; > } > mit->subspace = (PyArrayIterObject *)PyArray_IterNew(sub); > do { if ( --((PyObject*)(sub))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(sub)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(sub)))); } while (0); > if (mit->subspace == ((void *)0)) { > goto fail; > } > > n = mit->subspace->ao->nd; > for (i = 0; i < n; i++) { > mit->dimensions[mit->nd+i] = mit->subspace->ao->dimensions[i]; > } > mit->nd += n; > > > > > > n = (((PyVarObject*)(mit->indexobj))->ob_size); > > ellipexp = arr->nd - n + 1; > > > > > curraxis = 0; > j = 0; > > noellip = 1; > memset(mit->bscoord, 0, sizeof(npy_intp)*arr->nd); > for (i = 0; i < n; i++) { > > > > > obj = (((PyTupleObject *)(mit->indexobj))->ob_item[i]); > if (((((obj)->ob_type)->tp_flags & ((1L<<23))) != 0) || ((((((PyObject*)(obj))->ob_type))->tp_flags & ((1L<<24))) != 0)) { > mit->iteraxes[j++] = curraxis++; > } > else if (noellip && obj == (&_Py_EllipsisObject)) { > curraxis += ellipexp; > noellip = 0; > } > else { > npy_intp start = 0; > npy_intp stop, step; > > if (obj == (&_Py_EllipsisObject)) { > mit->bscoord[curraxis] = 0; > } > else if (!((((PyObject*)(obj))->ob_type) == &PySlice_Type) || > (slice_GetIndices((PySliceObject *)obj, > arr->dimensions[curraxis], > &start, &stop, &step, > &dimsize) < 0)) { > PyErr_Format(PyExc_ValueError, > "unexpected object " "(%s) in selection position %d", > > (((PyObject*)(obj))->ob_type)->tp_name, i); > goto fail; > } > else { > mit->bscoord[curraxis] = start; > } > curraxis += 1; > } > } > > finish: > > mit->size = PyArray_OverflowMultiplyList(mit->dimensions, mit->nd); > if (mit->size < 0) { > PyErr_SetString(PyExc_ValueError, > "dimensions too large in fancy indexing"); > goto fail; > } > if (mit->ait->size == 0 && mit->size != 0) { > PyErr_SetString(PyExc_ValueError, > "invalid index into a 0-size array"); > goto fail; > } > > for (i = 0; i < mit->numiter; i++) { > npy_intp indval; > it = mit->iters[i]; > { ((PyArrayIterObject *)(it))->index = 0; ((PyArrayIterObject *)(it))->dataptr = ((PyArrayIterObject *)(it))->ao->data; memset(((PyArrayIterObject *)(it))->coordinates, 0, (((PyArrayIterObject *)(it))->nd_m1+1)*sizeof(npy_intp)); }; > dimsize = arr->dimensions[mit->iteraxes[i]]; > while (it->index < it->size) { > indptr = ((npy_intp *)it->dataptr); > indval = *indptr; > if (indval < 0) { > indval += dimsize; > } > if (indval < 0 || indval >= dimsize) { > PyErr_Format(PyExc_IndexError, > "index (%""l" "d"") out of range " "(0<=index<%""l" "d"") in dimension %d", > > indval, (dimsize-1), mit->iteraxes[i]); > goto fail; > } > { ((PyArrayIterObject *)(it))->index++; if (((PyArrayIterObject *)(it))->nd_m1 == 0) { { (((PyArrayIterObject *)(it)))->dataptr += ((PyArrayIterObject *)(((PyArrayIterObject *)(it))))->strides[0]; (((PyArrayIterObject *)(it)))->coordinates[0]++; }; } else if (((PyArrayIterObject *)(it))->contiguous) ((PyArrayIterObject *)(it))->dataptr += ((PyArrayIterObject *)(it))->ao->descr->elsize; else if (((PyArrayIterObject *)(it))->nd_m1 == 1) { { if ((((PyArrayIterObject *)(it)))->coordinates[1] < (((PyArrayIterObject *)(it)))->dims_m1[1]) { (((PyArrayIterObject *)(it)))->coordinates[1]++; (((PyArrayIterObject *)(it)))->dataptr += (((PyArrayIterObject *)(it)))->strides[1]; } else { (((PyArrayIterObject *)(it)))->coordinates[1] = 0; (((PyArrayIterObject *)(it)))->coordinates[0]++; (((PyArrayIterObject *)(it)))->dataptr += (((PyArrayIterObject *)(it)))->strides[0] - (((PyArrayIterObject *)(it)))->backstrides[1]; } }; } else { int __npy_i; for (__npy_i=((PyArrayIterObject *)(it))->nd_m1; __npy_i >= 0; __npy_i--) { if (((PyArrayIterObject *)(it))->coordinates[__npy_i] < ((PyArrayIterObject *)(it))->dims_m1[__npy_i]) { ((PyArrayIterObject *)(it))->coordinates[__npy_i]++; ((PyArrayIterObject *)(it))->dataptr += ((PyArrayIterObject *)(it))->strides[__npy_i]; break; } else { ((PyArrayIterObject *)(it))->coordinates[__npy_i] = 0; ((PyArrayIterObject *)(it))->dataptr -= ((PyArrayIterObject *)(it))->backstrides[__npy_i]; } } } }; > } > { ((PyArrayIterObject *)(it))->index = 0; ((PyArrayIterObject *)(it))->dataptr = ((PyArrayIterObject *)(it))->ao->data; memset(((PyArrayIterObject *)(it))->coordinates, 0, (((PyArrayIterObject *)(it))->nd_m1+1)*sizeof(npy_intp)); }; > } > return; > > fail: > do { if ((mit->subspace) == ((void *)0)) ; else do { if ( --((PyObject*)(mit->subspace))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(mit->subspace)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(mit->subspace)))); } while (0); } while (0); > do { if ((mit->ait) == ((void *)0)) ; else do { if ( --((PyObject*)(mit->ait))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(mit->ait)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(mit->ait)))); } while (0); } while (0); > mit->subspace = ((void *)0); > mit->ait = ((void *)0); > return; >} > > >static PyObject * >PyArray_MapIterNew(PyObject *indexobj, int oned, int fancy) >{ > PyArrayMapIterObject *mit; > PyArray_Descr *indtype; > PyObject *arr = ((void *)0); > int i, n, started, nonindex; > > if (fancy == 2) { > PyErr_SetString(PyExc_IndexError, "arrays used as indices must be of " "integer (or boolean) type"); > > > return ((void *)0); > } > if (fancy == 3) { > PyErr_SetString(PyExc_IndexError, "too many indices"); > return ((void *)0); > } > > mit = (PyArrayMapIterObject *)PyMem_Malloc(sizeof(PyArrayMapIterObject)); > PyObject_Init((PyObject *)mit, &PyArrayMapIter_Type); > if (mit == ((void *)0)) { > return ((void *)0); > } > for (i = 0; i < 32; i++) { > mit->iters[i] = ((void *)0); > } > mit->index = 0; > mit->ait = ((void *)0); > mit->subspace = ((void *)0); > mit->numiter = 0; > mit->consec = 1; > ( ((PyObject*)(indexobj))->ob_refcnt++); > mit->indexobj = indexobj; > > if (fancy == 4) { > PyObject *newobj; > newobj = PySequence_Tuple(indexobj); > if (newobj == ((void *)0)) { > goto fail; > } > do { if ( --((PyObject*)(indexobj))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(indexobj)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(indexobj)))); } while (0); > indexobj = newobj; > mit->indexobj = indexobj; > } > > > > > > > > if (oned) { > return (PyObject *)mit; > } > > > > > > > > if (((((PyObject*)(indexobj))->ob_type) == (&PyArray_Type) || PyType_IsSubtype((((PyObject*)(indexobj))->ob_type), (&PyArray_Type))) && ((((PyArrayObject *)(indexobj))->descr->type_num) == NPY_BOOL)) { > mit->numiter = _nonzero_indices(indexobj, mit->iters); > if (mit->numiter < 0) { > goto fail; > } > mit->nd = 1; > mit->dimensions[0] = mit->iters[0]->dims_m1[0]+1; > do { if ( --((PyObject*)(mit->indexobj))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(mit->indexobj)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(mit->indexobj)))); } while (0); > mit->indexobj = PyTuple_New(mit->numiter); > if (mit->indexobj == ((void *)0)) { > goto fail; > } > for (i = 0; i < mit->numiter; i++) { > (((PyTupleObject *)(mit->indexobj))->ob_item[i] = PyInt_FromLong(0)); > } > } > > else if (((((PyObject*)(indexobj))->ob_type) == (&PyArray_Type) || PyType_IsSubtype((((PyObject*)(indexobj))->ob_type), (&PyArray_Type))) || !((((((PyObject*)(indexobj))->ob_type))->tp_flags & ((1L<<26))) != 0)) { > mit->numiter = 1; > indtype = PyArray_DescrFromType(NPY_LONG); > arr = PyArray_FromAny(indexobj, indtype, 0, 0, 0x0010, ((void *)0)); > if (arr == ((void *)0)) { > goto fail; > } > mit->iters[0] = (PyArrayIterObject *)PyArray_IterNew(arr); > if (mit->iters[0] == ((void *)0)) { > do { if ( --((PyObject*)(arr))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(arr)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(arr)))); } while (0); > goto fail; > } > mit->nd = (((PyArrayObject *)(arr))->nd); > memcpy(mit->dimensions, (((PyArrayObject *)(arr))->dimensions), mit->nd*sizeof(npy_intp)); > mit->size = PyArray_MultiplyList((((PyArrayObject *)(arr))->dimensions), (((PyArrayObject *)(arr))->nd)); > do { if ( --((PyObject*)(arr))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(arr)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(arr)))); } while (0); > do { if ( --((PyObject*)(mit->indexobj))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(mit->indexobj)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(mit->indexobj)))); } while (0); > mit->indexobj = _Py_BuildValue_SizeT("(N)", PyInt_FromLong(0)); > } > else { > > PyObject *obj; > PyArrayIterObject **iterp; > PyObject *new; > int numiters, j, n2; > > > > > n = (((PyVarObject*)(indexobj))->ob_size); > n2 = n; > new = PyTuple_New(n2); > if (new == ((void *)0)) { > goto fail; > } > started = 0; > nonindex = 0; > j = 0; > for (i = 0; i < n; i++) { > obj = (((PyTupleObject *)(indexobj))->ob_item[i]); > iterp = mit->iters + mit->numiter; > if ((numiters=_convert_obj(obj, iterp)) < 0) { > do { if ( --((PyObject*)(new))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(new)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(new)))); } while (0); > goto fail; > } > if (numiters > 0) { > started = 1; > if (nonindex) { > mit->consec = 0; > } > mit->numiter += numiters; > if (numiters == 1) { > (((PyTupleObject *)(new))->ob_item[j++] = PyInt_FromLong(0)); > } > else { > > > > > int k; > n2 += numiters - 1; > if (_PyTuple_Resize(&new, n2) < 0) { > goto fail; > } > for (k = 0; k < numiters; k++) { > (((PyTupleObject *)(new))->ob_item[j++] = PyInt_FromLong(0)); > } > } > } > else { > if (started) { > nonindex = 1; > } > ( ((PyObject*)(obj))->ob_refcnt++); > (((PyTupleObject *)(new))->ob_item[j++] = obj); > } > } > do { if ( --((PyObject*)(mit->indexobj))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(mit->indexobj)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(mit->indexobj)))); } while (0); > mit->indexobj = new; > > > > > if (PyArray_Broadcast((PyArrayMultiIterObject *)mit) < 0) { > goto fail; > } > } > > return (PyObject *)mit; > > fail: > do { if ( --((PyObject*)(mit))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(mit)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(mit)))); } while (0); > return ((void *)0); >} > > >static void >arraymapiter_dealloc(PyArrayMapIterObject *mit) >{ > int i; > do { if ((mit->indexobj) == ((void *)0)) ; else do { if ( --((PyObject*)(mit->indexobj))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(mit->indexobj)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(mit->indexobj)))); } while (0); } while (0); > do { if ((mit->ait) == ((void *)0)) ; else do { if ( --((PyObject*)(mit->ait))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(mit->ait)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(mit->ait)))); } while (0); } while (0); > do { if ((mit->subspace) == ((void *)0)) ; else do { if ( --((PyObject*)(mit->subspace))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(mit->subspace)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(mit->subspace)))); } while (0); } while (0); > for (i = 0; i < mit->numiter; i++) { > do { if ((mit->iters[i]) == ((void *)0)) ; else do { if ( --((PyObject*)(mit->iters[i]))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(mit->iters[i])))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(mit->iters[i])))); } while (0); } while (0); > } > PyMem_Free(mit); >} ># 1649 "numpy/core/src/multiarray/mapping.c" >static PyTypeObject PyArrayMapIter_Type = { > > > > 1, ((void *)0), > 0, > > "numpy.mapiter", > sizeof(PyArrayIterObject), > 0, > > (destructor)arraymapiter_dealloc, > 0, > 0, > 0, > > > > 0, > > 0, > 0, > 0, > 0, > 0, > 0, > 0, > 0, > 0, > 0, > ( (1L<<0) | (1L<<1) | (1L<<3) | (1L<<5) | (1L<<6) | (1L<<7) | (1L<<8) | 0 | (1L<<17) | 0), > 0, > 0, > 0, > 0, > 0, > 0, > 0, > 0, > 0, > 0, > 0, > 0, > 0, > 0, > 0, > 0, > 0, > 0, > 0, > 0, > 0, > 0, > 0, > 0, > 0, > 0, > > 0, > >}; ># 24 "numpy/core/src/multiarray/multiarraymodule_onefile.c" 2 ># 1 "numpy/core/src/multiarray/number.c" 1 ># 14 "numpy/core/src/multiarray/number.c" ># 1 "numpy/core/src/multiarray/number.h" 1 > > > >typedef struct { > PyObject *add; > PyObject *subtract; > PyObject *multiply; > PyObject *divide; > PyObject *remainder; > PyObject *power; > PyObject *square; > PyObject *reciprocal; > PyObject *ones_like; > PyObject *sqrt; > PyObject *negative; > PyObject *absolute; > PyObject *invert; > PyObject *left_shift; > PyObject *right_shift; > PyObject *bitwise_and; > PyObject *bitwise_xor; > PyObject *bitwise_or; > PyObject *less; > PyObject *less_equal; > PyObject *equal; > PyObject *not_equal; > PyObject *greater; > PyObject *greater_equal; > PyObject *floor_divide; > PyObject *true_divide; > PyObject *logical_or; > PyObject *logical_and; > PyObject *floor; > PyObject *ceil; > PyObject *maximum; > PyObject *minimum; > PyObject *rint; > PyObject *conjugate; >} NumericOps; > > > > > >static NumericOps n_ops; >static PyNumberMethods array_as_number; > > >static PyObject * >array_int(PyArrayObject *v); > >static int >PyArray_SetNumericOps(PyObject *dict); > >static PyObject * >PyArray_GetNumericOps(void); > >static PyObject * >PyArray_GenericBinaryFunction(PyArrayObject *m1, PyObject *m2, PyObject *op); > >static PyObject * >PyArray_GenericUnaryFunction(PyArrayObject *m1, PyObject *op); > >static PyObject * >PyArray_GenericReduceFunction(PyArrayObject *m1, PyObject *op, int axis, > int rtype, PyArrayObject *out); > >static PyObject * >PyArray_GenericAccumulateFunction(PyArrayObject *m1, PyObject *op, int axis, > int rtype, PyArrayObject *out); ># 15 "numpy/core/src/multiarray/number.c" 2 > > > > > >static NumericOps n_ops; ># 42 "numpy/core/src/multiarray/number.c" >static int >PyArray_SetNumericOps(PyObject *dict) >{ > PyObject *temp = ((void *)0); > temp = PyDict_GetItemString(dict, "add"); if (temp != ((void *)0)) { if (!(PyCallable_Check(temp))) { return -1; } ( ((PyObject*)(temp))->ob_refcnt++); do { if ((n_ops.add) == ((void *)0)) ; else do { if ( --((PyObject*)(n_ops.add))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(n_ops.add)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(n_ops.add)))); } while (0); } while (0); n_ops.add = temp; }; > temp = PyDict_GetItemString(dict, "subtract"); if (temp != ((void *)0)) { if (!(PyCallable_Check(temp))) { return -1; } ( ((PyObject*)(temp))->ob_refcnt++); do { if ((n_ops.subtract) == ((void *)0)) ; else do { if ( --((PyObject*)(n_ops.subtract))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(n_ops.subtract)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(n_ops.subtract)))); } while (0); } while (0); n_ops.subtract = temp; }; > temp = PyDict_GetItemString(dict, "multiply"); if (temp != ((void *)0)) { if (!(PyCallable_Check(temp))) { return -1; } ( ((PyObject*)(temp))->ob_refcnt++); do { if ((n_ops.multiply) == ((void *)0)) ; else do { if ( --((PyObject*)(n_ops.multiply))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(n_ops.multiply)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(n_ops.multiply)))); } while (0); } while (0); n_ops.multiply = temp; }; > temp = PyDict_GetItemString(dict, "divide"); if (temp != ((void *)0)) { if (!(PyCallable_Check(temp))) { return -1; } ( ((PyObject*)(temp))->ob_refcnt++); do { if ((n_ops.divide) == ((void *)0)) ; else do { if ( --((PyObject*)(n_ops.divide))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(n_ops.divide)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(n_ops.divide)))); } while (0); } while (0); n_ops.divide = temp; }; > temp = PyDict_GetItemString(dict, "remainder"); if (temp != ((void *)0)) { if (!(PyCallable_Check(temp))) { return -1; } ( ((PyObject*)(temp))->ob_refcnt++); do { if ((n_ops.remainder) == ((void *)0)) ; else do { if ( --((PyObject*)(n_ops.remainder))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(n_ops.remainder)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(n_ops.remainder)))); } while (0); } while (0); n_ops.remainder = temp; }; > temp = PyDict_GetItemString(dict, "power"); if (temp != ((void *)0)) { if (!(PyCallable_Check(temp))) { return -1; } ( ((PyObject*)(temp))->ob_refcnt++); do { if ((n_ops.power) == ((void *)0)) ; else do { if ( --((PyObject*)(n_ops.power))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(n_ops.power)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(n_ops.power)))); } while (0); } while (0); n_ops.power = temp; }; > temp = PyDict_GetItemString(dict, "square"); if (temp != ((void *)0)) { if (!(PyCallable_Check(temp))) { return -1; } ( ((PyObject*)(temp))->ob_refcnt++); do { if ((n_ops.square) == ((void *)0)) ; else do { if ( --((PyObject*)(n_ops.square))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(n_ops.square)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(n_ops.square)))); } while (0); } while (0); n_ops.square = temp; }; > temp = PyDict_GetItemString(dict, "reciprocal"); if (temp != ((void *)0)) { if (!(PyCallable_Check(temp))) { return -1; } ( ((PyObject*)(temp))->ob_refcnt++); do { if ((n_ops.reciprocal) == ((void *)0)) ; else do { if ( --((PyObject*)(n_ops.reciprocal))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(n_ops.reciprocal)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(n_ops.reciprocal)))); } while (0); } while (0); n_ops.reciprocal = temp; }; > temp = PyDict_GetItemString(dict, "ones_like"); if (temp != ((void *)0)) { if (!(PyCallable_Check(temp))) { return -1; } ( ((PyObject*)(temp))->ob_refcnt++); do { if ((n_ops.ones_like) == ((void *)0)) ; else do { if ( --((PyObject*)(n_ops.ones_like))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(n_ops.ones_like)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(n_ops.ones_like)))); } while (0); } while (0); n_ops.ones_like = temp; }; > temp = PyDict_GetItemString(dict, "sqrt"); if (temp != ((void *)0)) { if (!(PyCallable_Check(temp))) { return -1; } ( ((PyObject*)(temp))->ob_refcnt++); do { if ((n_ops.sqrt) == ((void *)0)) ; else do { if ( --((PyObject*)(n_ops.sqrt))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(n_ops.sqrt)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(n_ops.sqrt)))); } while (0); } while (0); n_ops.sqrt = temp; }; > temp = PyDict_GetItemString(dict, "negative"); if (temp != ((void *)0)) { if (!(PyCallable_Check(temp))) { return -1; } ( ((PyObject*)(temp))->ob_refcnt++); do { if ((n_ops.negative) == ((void *)0)) ; else do { if ( --((PyObject*)(n_ops.negative))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(n_ops.negative)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(n_ops.negative)))); } while (0); } while (0); n_ops.negative = temp; }; > temp = PyDict_GetItemString(dict, "absolute"); if (temp != ((void *)0)) { if (!(PyCallable_Check(temp))) { return -1; } ( ((PyObject*)(temp))->ob_refcnt++); do { if ((n_ops.absolute) == ((void *)0)) ; else do { if ( --((PyObject*)(n_ops.absolute))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(n_ops.absolute)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(n_ops.absolute)))); } while (0); } while (0); n_ops.absolute = temp; }; > temp = PyDict_GetItemString(dict, "invert"); if (temp != ((void *)0)) { if (!(PyCallable_Check(temp))) { return -1; } ( ((PyObject*)(temp))->ob_refcnt++); do { if ((n_ops.invert) == ((void *)0)) ; else do { if ( --((PyObject*)(n_ops.invert))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(n_ops.invert)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(n_ops.invert)))); } while (0); } while (0); n_ops.invert = temp; }; > temp = PyDict_GetItemString(dict, "left_shift"); if (temp != ((void *)0)) { if (!(PyCallable_Check(temp))) { return -1; } ( ((PyObject*)(temp))->ob_refcnt++); do { if ((n_ops.left_shift) == ((void *)0)) ; else do { if ( --((PyObject*)(n_ops.left_shift))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(n_ops.left_shift)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(n_ops.left_shift)))); } while (0); } while (0); n_ops.left_shift = temp; }; > temp = PyDict_GetItemString(dict, "right_shift"); if (temp != ((void *)0)) { if (!(PyCallable_Check(temp))) { return -1; } ( ((PyObject*)(temp))->ob_refcnt++); do { if ((n_ops.right_shift) == ((void *)0)) ; else do { if ( --((PyObject*)(n_ops.right_shift))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(n_ops.right_shift)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(n_ops.right_shift)))); } while (0); } while (0); n_ops.right_shift = temp; }; > temp = PyDict_GetItemString(dict, "bitwise_and"); if (temp != ((void *)0)) { if (!(PyCallable_Check(temp))) { return -1; } ( ((PyObject*)(temp))->ob_refcnt++); do { if ((n_ops.bitwise_and) == ((void *)0)) ; else do { if ( --((PyObject*)(n_ops.bitwise_and))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(n_ops.bitwise_and)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(n_ops.bitwise_and)))); } while (0); } while (0); n_ops.bitwise_and = temp; }; > temp = PyDict_GetItemString(dict, "bitwise_or"); if (temp != ((void *)0)) { if (!(PyCallable_Check(temp))) { return -1; } ( ((PyObject*)(temp))->ob_refcnt++); do { if ((n_ops.bitwise_or) == ((void *)0)) ; else do { if ( --((PyObject*)(n_ops.bitwise_or))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(n_ops.bitwise_or)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(n_ops.bitwise_or)))); } while (0); } while (0); n_ops.bitwise_or = temp; }; > temp = PyDict_GetItemString(dict, "bitwise_xor"); if (temp != ((void *)0)) { if (!(PyCallable_Check(temp))) { return -1; } ( ((PyObject*)(temp))->ob_refcnt++); do { if ((n_ops.bitwise_xor) == ((void *)0)) ; else do { if ( --((PyObject*)(n_ops.bitwise_xor))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(n_ops.bitwise_xor)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(n_ops.bitwise_xor)))); } while (0); } while (0); n_ops.bitwise_xor = temp; }; > temp = PyDict_GetItemString(dict, "less"); if (temp != ((void *)0)) { if (!(PyCallable_Check(temp))) { return -1; } ( ((PyObject*)(temp))->ob_refcnt++); do { if ((n_ops.less) == ((void *)0)) ; else do { if ( --((PyObject*)(n_ops.less))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(n_ops.less)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(n_ops.less)))); } while (0); } while (0); n_ops.less = temp; }; > temp = PyDict_GetItemString(dict, "less_equal"); if (temp != ((void *)0)) { if (!(PyCallable_Check(temp))) { return -1; } ( ((PyObject*)(temp))->ob_refcnt++); do { if ((n_ops.less_equal) == ((void *)0)) ; else do { if ( --((PyObject*)(n_ops.less_equal))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(n_ops.less_equal)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(n_ops.less_equal)))); } while (0); } while (0); n_ops.less_equal = temp; }; > temp = PyDict_GetItemString(dict, "equal"); if (temp != ((void *)0)) { if (!(PyCallable_Check(temp))) { return -1; } ( ((PyObject*)(temp))->ob_refcnt++); do { if ((n_ops.equal) == ((void *)0)) ; else do { if ( --((PyObject*)(n_ops.equal))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(n_ops.equal)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(n_ops.equal)))); } while (0); } while (0); n_ops.equal = temp; }; > temp = PyDict_GetItemString(dict, "not_equal"); if (temp != ((void *)0)) { if (!(PyCallable_Check(temp))) { return -1; } ( ((PyObject*)(temp))->ob_refcnt++); do { if ((n_ops.not_equal) == ((void *)0)) ; else do { if ( --((PyObject*)(n_ops.not_equal))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(n_ops.not_equal)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(n_ops.not_equal)))); } while (0); } while (0); n_ops.not_equal = temp; }; > temp = PyDict_GetItemString(dict, "greater"); if (temp != ((void *)0)) { if (!(PyCallable_Check(temp))) { return -1; } ( ((PyObject*)(temp))->ob_refcnt++); do { if ((n_ops.greater) == ((void *)0)) ; else do { if ( --((PyObject*)(n_ops.greater))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(n_ops.greater)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(n_ops.greater)))); } while (0); } while (0); n_ops.greater = temp; }; > temp = PyDict_GetItemString(dict, "greater_equal"); if (temp != ((void *)0)) { if (!(PyCallable_Check(temp))) { return -1; } ( ((PyObject*)(temp))->ob_refcnt++); do { if ((n_ops.greater_equal) == ((void *)0)) ; else do { if ( --((PyObject*)(n_ops.greater_equal))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(n_ops.greater_equal)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(n_ops.greater_equal)))); } while (0); } while (0); n_ops.greater_equal = temp; }; > temp = PyDict_GetItemString(dict, "floor_divide"); if (temp != ((void *)0)) { if (!(PyCallable_Check(temp))) { return -1; } ( ((PyObject*)(temp))->ob_refcnt++); do { if ((n_ops.floor_divide) == ((void *)0)) ; else do { if ( --((PyObject*)(n_ops.floor_divide))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(n_ops.floor_divide)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(n_ops.floor_divide)))); } while (0); } while (0); n_ops.floor_divide = temp; }; > temp = PyDict_GetItemString(dict, "true_divide"); if (temp != ((void *)0)) { if (!(PyCallable_Check(temp))) { return -1; } ( ((PyObject*)(temp))->ob_refcnt++); do { if ((n_ops.true_divide) == ((void *)0)) ; else do { if ( --((PyObject*)(n_ops.true_divide))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(n_ops.true_divide)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(n_ops.true_divide)))); } while (0); } while (0); n_ops.true_divide = temp; }; > temp = PyDict_GetItemString(dict, "logical_or"); if (temp != ((void *)0)) { if (!(PyCallable_Check(temp))) { return -1; } ( ((PyObject*)(temp))->ob_refcnt++); do { if ((n_ops.logical_or) == ((void *)0)) ; else do { if ( --((PyObject*)(n_ops.logical_or))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(n_ops.logical_or)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(n_ops.logical_or)))); } while (0); } while (0); n_ops.logical_or = temp; }; > temp = PyDict_GetItemString(dict, "logical_and"); if (temp != ((void *)0)) { if (!(PyCallable_Check(temp))) { return -1; } ( ((PyObject*)(temp))->ob_refcnt++); do { if ((n_ops.logical_and) == ((void *)0)) ; else do { if ( --((PyObject*)(n_ops.logical_and))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(n_ops.logical_and)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(n_ops.logical_and)))); } while (0); } while (0); n_ops.logical_and = temp; }; > temp = PyDict_GetItemString(dict, "floor"); if (temp != ((void *)0)) { if (!(PyCallable_Check(temp))) { return -1; } ( ((PyObject*)(temp))->ob_refcnt++); do { if ((n_ops.floor) == ((void *)0)) ; else do { if ( --((PyObject*)(n_ops.floor))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(n_ops.floor)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(n_ops.floor)))); } while (0); } while (0); n_ops.floor = temp; }; > temp = PyDict_GetItemString(dict, "ceil"); if (temp != ((void *)0)) { if (!(PyCallable_Check(temp))) { return -1; } ( ((PyObject*)(temp))->ob_refcnt++); do { if ((n_ops.ceil) == ((void *)0)) ; else do { if ( --((PyObject*)(n_ops.ceil))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(n_ops.ceil)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(n_ops.ceil)))); } while (0); } while (0); n_ops.ceil = temp; }; > temp = PyDict_GetItemString(dict, "maximum"); if (temp != ((void *)0)) { if (!(PyCallable_Check(temp))) { return -1; } ( ((PyObject*)(temp))->ob_refcnt++); do { if ((n_ops.maximum) == ((void *)0)) ; else do { if ( --((PyObject*)(n_ops.maximum))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(n_ops.maximum)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(n_ops.maximum)))); } while (0); } while (0); n_ops.maximum = temp; }; > temp = PyDict_GetItemString(dict, "minimum"); if (temp != ((void *)0)) { if (!(PyCallable_Check(temp))) { return -1; } ( ((PyObject*)(temp))->ob_refcnt++); do { if ((n_ops.minimum) == ((void *)0)) ; else do { if ( --((PyObject*)(n_ops.minimum))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(n_ops.minimum)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(n_ops.minimum)))); } while (0); } while (0); n_ops.minimum = temp; }; > temp = PyDict_GetItemString(dict, "rint"); if (temp != ((void *)0)) { if (!(PyCallable_Check(temp))) { return -1; } ( ((PyObject*)(temp))->ob_refcnt++); do { if ((n_ops.rint) == ((void *)0)) ; else do { if ( --((PyObject*)(n_ops.rint))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(n_ops.rint)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(n_ops.rint)))); } while (0); } while (0); n_ops.rint = temp; }; > temp = PyDict_GetItemString(dict, "conjugate"); if (temp != ((void *)0)) { if (!(PyCallable_Check(temp))) { return -1; } ( ((PyObject*)(temp))->ob_refcnt++); do { if ((n_ops.conjugate) == ((void *)0)) ; else do { if ( --((PyObject*)(n_ops.conjugate))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(n_ops.conjugate)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(n_ops.conjugate)))); } while (0); } while (0); n_ops.conjugate = temp; }; > return 0; >} ># 91 "numpy/core/src/multiarray/number.c" >static PyObject * >PyArray_GetNumericOps(void) >{ > PyObject *dict; > if ((dict = PyDict_New())==((void *)0)) > return ((void *)0); > if (n_ops.add && (PyDict_SetItemString(dict, "add", n_ops.add)==-1)) goto fail;; > if (n_ops.subtract && (PyDict_SetItemString(dict, "subtract", n_ops.subtract)==-1)) goto fail;; > if (n_ops.multiply && (PyDict_SetItemString(dict, "multiply", n_ops.multiply)==-1)) goto fail;; > if (n_ops.divide && (PyDict_SetItemString(dict, "divide", n_ops.divide)==-1)) goto fail;; > if (n_ops.remainder && (PyDict_SetItemString(dict, "remainder", n_ops.remainder)==-1)) goto fail;; > if (n_ops.power && (PyDict_SetItemString(dict, "power", n_ops.power)==-1)) goto fail;; > if (n_ops.square && (PyDict_SetItemString(dict, "square", n_ops.square)==-1)) goto fail;; > if (n_ops.reciprocal && (PyDict_SetItemString(dict, "reciprocal", n_ops.reciprocal)==-1)) goto fail;; > if (n_ops.ones_like && (PyDict_SetItemString(dict, "ones_like", n_ops.ones_like)==-1)) goto fail;; > if (n_ops.sqrt && (PyDict_SetItemString(dict, "sqrt", n_ops.sqrt)==-1)) goto fail;; > if (n_ops.negative && (PyDict_SetItemString(dict, "negative", n_ops.negative)==-1)) goto fail;; > if (n_ops.absolute && (PyDict_SetItemString(dict, "absolute", n_ops.absolute)==-1)) goto fail;; > if (n_ops.invert && (PyDict_SetItemString(dict, "invert", n_ops.invert)==-1)) goto fail;; > if (n_ops.left_shift && (PyDict_SetItemString(dict, "left_shift", n_ops.left_shift)==-1)) goto fail;; > if (n_ops.right_shift && (PyDict_SetItemString(dict, "right_shift", n_ops.right_shift)==-1)) goto fail;; > if (n_ops.bitwise_and && (PyDict_SetItemString(dict, "bitwise_and", n_ops.bitwise_and)==-1)) goto fail;; > if (n_ops.bitwise_or && (PyDict_SetItemString(dict, "bitwise_or", n_ops.bitwise_or)==-1)) goto fail;; > if (n_ops.bitwise_xor && (PyDict_SetItemString(dict, "bitwise_xor", n_ops.bitwise_xor)==-1)) goto fail;; > if (n_ops.less && (PyDict_SetItemString(dict, "less", n_ops.less)==-1)) goto fail;; > if (n_ops.less_equal && (PyDict_SetItemString(dict, "less_equal", n_ops.less_equal)==-1)) goto fail;; > if (n_ops.equal && (PyDict_SetItemString(dict, "equal", n_ops.equal)==-1)) goto fail;; > if (n_ops.not_equal && (PyDict_SetItemString(dict, "not_equal", n_ops.not_equal)==-1)) goto fail;; > if (n_ops.greater && (PyDict_SetItemString(dict, "greater", n_ops.greater)==-1)) goto fail;; > if (n_ops.greater_equal && (PyDict_SetItemString(dict, "greater_equal", n_ops.greater_equal)==-1)) goto fail;; > if (n_ops.floor_divide && (PyDict_SetItemString(dict, "floor_divide", n_ops.floor_divide)==-1)) goto fail;; > if (n_ops.true_divide && (PyDict_SetItemString(dict, "true_divide", n_ops.true_divide)==-1)) goto fail;; > if (n_ops.logical_or && (PyDict_SetItemString(dict, "logical_or", n_ops.logical_or)==-1)) goto fail;; > if (n_ops.logical_and && (PyDict_SetItemString(dict, "logical_and", n_ops.logical_and)==-1)) goto fail;; > if (n_ops.floor && (PyDict_SetItemString(dict, "floor", n_ops.floor)==-1)) goto fail;; > if (n_ops.ceil && (PyDict_SetItemString(dict, "ceil", n_ops.ceil)==-1)) goto fail;; > if (n_ops.maximum && (PyDict_SetItemString(dict, "maximum", n_ops.maximum)==-1)) goto fail;; > if (n_ops.minimum && (PyDict_SetItemString(dict, "minimum", n_ops.minimum)==-1)) goto fail;; > if (n_ops.rint && (PyDict_SetItemString(dict, "rint", n_ops.rint)==-1)) goto fail;; > if (n_ops.conjugate && (PyDict_SetItemString(dict, "conjugate", n_ops.conjugate)==-1)) goto fail;; > return dict; > > fail: > do { if ( --((PyObject*)(dict))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(dict)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(dict)))); } while (0); > return ((void *)0); >} > >static PyObject * >_get_keywords(int rtype, PyArrayObject *out) >{ > PyObject *kwds = ((void *)0); > if (rtype != NPY_NOTYPE || out != ((void *)0)) { > kwds = PyDict_New(); > if (rtype != NPY_NOTYPE) { > PyArray_Descr *descr; > descr = PyArray_DescrFromType(rtype); > if (descr) { > PyDict_SetItemString(kwds, "dtype", (PyObject *)descr); > do { if ( --((PyObject*)(descr))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(descr)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(descr)))); } while (0); > } > } > if (out != ((void *)0)) { > PyDict_SetItemString(kwds, "out", (PyObject *)out); > } > } > return kwds; >} > >static PyObject * >PyArray_GenericReduceFunction(PyArrayObject *m1, PyObject *op, int axis, > int rtype, PyArrayObject *out) >{ > PyObject *args, *ret = ((void *)0), *meth; > PyObject *kwds; > if (op == ((void *)0)) { > ( ((PyObject*)((&_Py_NotImplementedStruct)))->ob_refcnt++); > return (&_Py_NotImplementedStruct); > } > args = _Py_BuildValue_SizeT("(Oi)", m1, axis); > kwds = _get_keywords(rtype, out); > meth = PyObject_GetAttrString(op, "reduce"); > if (meth && PyCallable_Check(meth)) { > ret = PyObject_Call(meth, args, kwds); > } > do { if ( --((PyObject*)(args))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(args)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(args)))); } while (0); > do { if ( --((PyObject*)(meth))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(meth)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(meth)))); } while (0); > do { if ((kwds) == ((void *)0)) ; else do { if ( --((PyObject*)(kwds))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(kwds)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(kwds)))); } while (0); } while (0); > return ret; >} > > >static PyObject * >PyArray_GenericAccumulateFunction(PyArrayObject *m1, PyObject *op, int axis, > int rtype, PyArrayObject *out) >{ > PyObject *args, *ret = ((void *)0), *meth; > PyObject *kwds; > if (op == ((void *)0)) { > ( ((PyObject*)((&_Py_NotImplementedStruct)))->ob_refcnt++); > return (&_Py_NotImplementedStruct); > } > args = _Py_BuildValue_SizeT("(Oi)", m1, axis); > kwds = _get_keywords(rtype, out); > meth = PyObject_GetAttrString(op, "accumulate"); > if (meth && PyCallable_Check(meth)) { > ret = PyObject_Call(meth, args, kwds); > } > do { if ( --((PyObject*)(args))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(args)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(args)))); } while (0); > do { if ( --((PyObject*)(meth))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(meth)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(meth)))); } while (0); > do { if ((kwds) == ((void *)0)) ; else do { if ( --((PyObject*)(kwds))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(kwds)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(kwds)))); } while (0); } while (0); > return ret; >} > > >static PyObject * >PyArray_GenericBinaryFunction(PyArrayObject *m1, PyObject *m2, PyObject *op) >{ > if (op == ((void *)0)) { > ( ((PyObject*)((&_Py_NotImplementedStruct)))->ob_refcnt++); > return (&_Py_NotImplementedStruct); > } > return _PyObject_CallFunction_SizeT(op, "OO", m1, m2); >} > >static PyObject * >PyArray_GenericUnaryFunction(PyArrayObject *m1, PyObject *op) >{ > if (op == ((void *)0)) { > ( ((PyObject*)((&_Py_NotImplementedStruct)))->ob_refcnt++); > return (&_Py_NotImplementedStruct); > } > return _PyObject_CallFunction_SizeT(op, "(O)", m1); >} > >static PyObject * >PyArray_GenericInplaceBinaryFunction(PyArrayObject *m1, > PyObject *m2, PyObject *op) >{ > if (op == ((void *)0)) { > ( ((PyObject*)((&_Py_NotImplementedStruct)))->ob_refcnt++); > return (&_Py_NotImplementedStruct); > } > return _PyObject_CallFunction_SizeT(op, "OOO", m1, m2, m1); >} > >static PyObject * >PyArray_GenericInplaceUnaryFunction(PyArrayObject *m1, PyObject *op) >{ > if (op == ((void *)0)) { > ( ((PyObject*)((&_Py_NotImplementedStruct)))->ob_refcnt++); > return (&_Py_NotImplementedStruct); > } > return _PyObject_CallFunction_SizeT(op, "OO", m1, m1); >} > >static PyObject * >array_add(PyArrayObject *m1, PyObject *m2) >{ > return PyArray_GenericBinaryFunction(m1, m2, n_ops.add); >} > >static PyObject * >array_subtract(PyArrayObject *m1, PyObject *m2) >{ > return PyArray_GenericBinaryFunction(m1, m2, n_ops.subtract); >} > >static PyObject * >array_multiply(PyArrayObject *m1, PyObject *m2) >{ > return PyArray_GenericBinaryFunction(m1, m2, n_ops.multiply); >} > >static PyObject * >array_divide(PyArrayObject *m1, PyObject *m2) >{ > return PyArray_GenericBinaryFunction(m1, m2, n_ops.divide); >} > >static PyObject * >array_remainder(PyArrayObject *m1, PyObject *m2) >{ > return PyArray_GenericBinaryFunction(m1, m2, n_ops.remainder); >} > >static int >array_power_is_scalar(PyObject *o2, double* exp) >{ > PyObject *temp; > const int optimize_fpexps = 1; > > if (((((o2)->ob_type)->tp_flags & ((1L<<23))) != 0)) { > *exp = (double)PyInt_AsLong(o2); > return 1; > } > if (optimize_fpexps && ((((PyObject*)(o2))->ob_type) == (&PyFloat_Type) || PyType_IsSubtype((((PyObject*)(o2))->ob_type), (&PyFloat_Type)))) { > *exp = PyFloat_AsDouble(o2); > return 1; > } > if (((((((PyObject*)(o2))->ob_type) == (&PyArray_Type) || PyType_IsSubtype((((PyObject*)(o2))->ob_type), (&PyArray_Type))) && ((((PyArrayObject *)(o2))->nd) == 0)) && > ((((((((PyArrayObject *)(o2))->descr->type_num)) >= NPY_BYTE) && (((((PyArrayObject *)(o2))->descr->type_num)) <= NPY_ULONGLONG)) || > (optimize_fpexps && (((((((PyArrayObject *)(o2))->descr->type_num)) >= NPY_FLOAT) && (((((PyArrayObject *)(o2))->descr->type_num)) <= NPY_LONGDOUBLE)) || (((((PyArrayObject *)(o2))->descr->type_num)) == NPY_HALF)))))) || > (((((PyObject*)(o2))->ob_type) == (&PyIntegerArrType_Type) || PyType_IsSubtype((((PyObject*)(o2))->ob_type), (&PyIntegerArrType_Type)))) || > (optimize_fpexps && (((((PyObject*)(o2))->ob_type) == (&PyFloatingArrType_Type) || PyType_IsSubtype((((PyObject*)(o2))->ob_type), (&PyFloatingArrType_Type)))))) { > temp = (((PyObject*)(o2))->ob_type)->tp_as_number->nb_float(o2); > if (temp != ((void *)0)) { > *exp = PyFloat_AsDouble(o2); > do { if ( --((PyObject*)(temp))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(temp)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(temp)))); } while (0); > return 1; > } > } > > if (((o2)->ob_type->tp_as_number != ((void *)0) && ((((o2)->ob_type)->tp_flags & ((1L<<17))) != 0) && (o2)->ob_type->tp_as_number->nb_index != ((void *)0))) { > PyObject* value = PyNumber_Index(o2); > Py_ssize_t val; > if (value==((void *)0)) { > if (PyErr_Occurred()) { > PyErr_Clear(); > } > return 0; > } > val = PyInt_AsSsize_t(value); > if (val == -1 && PyErr_Occurred()) { > PyErr_Clear(); > return 0; > } > *exp = (double) val; > return 1; > } > > return 0; >} > > >static PyObject * >fast_scalar_power(PyArrayObject *a1, PyObject *o2, int inplace) >{ > double exp; > > if (((((PyObject*)(a1))->ob_type) == (&PyArray_Type) || PyType_IsSubtype((((PyObject*)(a1))->ob_type), (&PyArray_Type))) && array_power_is_scalar(o2, &exp)) { > PyObject *fastop = ((void *)0); > if ((((((((PyArrayObject *)(a1))->descr->type_num)) >= NPY_FLOAT) && (((((PyArrayObject *)(a1))->descr->type_num)) <= NPY_LONGDOUBLE)) || (((((PyArrayObject *)(a1))->descr->type_num)) == NPY_HALF)) || ((((((PyArrayObject *)(a1))->descr->type_num)) >= NPY_CFLOAT) && (((((PyArrayObject *)(a1))->descr->type_num)) <= NPY_CLONGDOUBLE))) { > if (exp == 1.0) { > > > > > > if (inplace) { > ( ((PyObject*)(a1))->ob_refcnt++); > return (PyObject *)a1; > } else { > return PyArray_NewCopy(a1, NPY_CORDER); > } > } > else if (exp == -1.0) { > fastop = n_ops.reciprocal; > } > else if (exp == 0.0) { > fastop = n_ops.ones_like; > } > else if (exp == 0.5) { > fastop = n_ops.sqrt; > } > else if (exp == 2.0) { > fastop = n_ops.square; > } > else { > return ((void *)0); > } > > if (inplace) { > return PyArray_GenericInplaceUnaryFunction(a1, fastop); > } else { > return PyArray_GenericUnaryFunction(a1, fastop); > } > } > else if (exp==2.0) { > fastop = n_ops.multiply; > if (inplace) { > return PyArray_GenericInplaceBinaryFunction > (a1, (PyObject *)a1, fastop); > } > else { > return PyArray_GenericBinaryFunction > (a1, (PyObject *)a1, fastop); > } > } > } > return ((void *)0); >} > >static PyObject * >array_power(PyArrayObject *a1, PyObject *o2, PyObject *(__NPY_UNUSED_TAGGEDmodulo) __attribute__ ((__unused__))) >{ > > PyObject *value; > value = fast_scalar_power(a1, o2, 0); > if (!value) { > value = PyArray_GenericBinaryFunction(a1, o2, n_ops.power); > } > return value; >} > > >static PyObject * >array_negative(PyArrayObject *m1) >{ > return PyArray_GenericUnaryFunction(m1, n_ops.negative); >} > >static PyObject * >array_absolute(PyArrayObject *m1) >{ > return PyArray_GenericUnaryFunction(m1, n_ops.absolute); >} > >static PyObject * >array_invert(PyArrayObject *m1) >{ > return PyArray_GenericUnaryFunction(m1, n_ops.invert); >} > >static PyObject * >array_left_shift(PyArrayObject *m1, PyObject *m2) >{ > return PyArray_GenericBinaryFunction(m1, m2, n_ops.left_shift); >} > >static PyObject * >array_right_shift(PyArrayObject *m1, PyObject *m2) >{ > return PyArray_GenericBinaryFunction(m1, m2, n_ops.right_shift); >} > >static PyObject * >array_bitwise_and(PyArrayObject *m1, PyObject *m2) >{ > return PyArray_GenericBinaryFunction(m1, m2, n_ops.bitwise_and); >} > >static PyObject * >array_bitwise_or(PyArrayObject *m1, PyObject *m2) >{ > return PyArray_GenericBinaryFunction(m1, m2, n_ops.bitwise_or); >} > >static PyObject * >array_bitwise_xor(PyArrayObject *m1, PyObject *m2) >{ > return PyArray_GenericBinaryFunction(m1, m2, n_ops.bitwise_xor); >} > >static PyObject * >array_inplace_add(PyArrayObject *m1, PyObject *m2) >{ > return PyArray_GenericInplaceBinaryFunction(m1, m2, n_ops.add); >} > >static PyObject * >array_inplace_subtract(PyArrayObject *m1, PyObject *m2) >{ > return PyArray_GenericInplaceBinaryFunction(m1, m2, n_ops.subtract); >} > >static PyObject * >array_inplace_multiply(PyArrayObject *m1, PyObject *m2) >{ > return PyArray_GenericInplaceBinaryFunction(m1, m2, n_ops.multiply); >} > >static PyObject * >array_inplace_divide(PyArrayObject *m1, PyObject *m2) >{ > return PyArray_GenericInplaceBinaryFunction(m1, m2, n_ops.divide); >} > >static PyObject * >array_inplace_remainder(PyArrayObject *m1, PyObject *m2) >{ > return PyArray_GenericInplaceBinaryFunction(m1, m2, n_ops.remainder); >} > >static PyObject * >array_inplace_power(PyArrayObject *a1, PyObject *o2, PyObject *(__NPY_UNUSED_TAGGEDmodulo) __attribute__ ((__unused__))) >{ > > PyObject *value; > value = fast_scalar_power(a1, o2, 1); > if (!value) { > value = PyArray_GenericInplaceBinaryFunction(a1, o2, n_ops.power); > } > return value; >} > >static PyObject * >array_inplace_left_shift(PyArrayObject *m1, PyObject *m2) >{ > return PyArray_GenericInplaceBinaryFunction(m1, m2, n_ops.left_shift); >} > >static PyObject * >array_inplace_right_shift(PyArrayObject *m1, PyObject *m2) >{ > return PyArray_GenericInplaceBinaryFunction(m1, m2, n_ops.right_shift); >} > >static PyObject * >array_inplace_bitwise_and(PyArrayObject *m1, PyObject *m2) >{ > return PyArray_GenericInplaceBinaryFunction(m1, m2, n_ops.bitwise_and); >} > >static PyObject * >array_inplace_bitwise_or(PyArrayObject *m1, PyObject *m2) >{ > return PyArray_GenericInplaceBinaryFunction(m1, m2, n_ops.bitwise_or); >} > >static PyObject * >array_inplace_bitwise_xor(PyArrayObject *m1, PyObject *m2) >{ > return PyArray_GenericInplaceBinaryFunction(m1, m2, n_ops.bitwise_xor); >} > >static PyObject * >array_floor_divide(PyArrayObject *m1, PyObject *m2) >{ > return PyArray_GenericBinaryFunction(m1, m2, n_ops.floor_divide); >} > >static PyObject * >array_true_divide(PyArrayObject *m1, PyObject *m2) >{ > return PyArray_GenericBinaryFunction(m1, m2, n_ops.true_divide); >} > >static PyObject * >array_inplace_floor_divide(PyArrayObject *m1, PyObject *m2) >{ > return PyArray_GenericInplaceBinaryFunction(m1, m2, > n_ops.floor_divide); >} > >static PyObject * >array_inplace_true_divide(PyArrayObject *m1, PyObject *m2) >{ > return PyArray_GenericInplaceBinaryFunction(m1, m2, > n_ops.true_divide); >} > >static int >_array_nonzero(PyArrayObject *mp) >{ > npy_intp n; > > n = PyArray_MultiplyList((((PyArrayObject *)(mp))->dimensions), (((PyArrayObject *)(mp))->nd)); > if (n == 1) { > return mp->descr->f->nonzero(mp->data, mp); > } > else if (n == 0) { > return 0; > } > else { > PyErr_SetString(PyExc_ValueError, > "The truth value of an array " "with more than one element is ambiguous. " "Use a.any() or a.all()"); > > > return -1; > } >} > > > >static PyObject * >array_divmod(PyArrayObject *op1, PyObject *op2) >{ > PyObject *divp, *modp, *result; > > divp = array_floor_divide(op1, op2); > if (divp == ((void *)0)) { > return ((void *)0); > } > modp = array_remainder(op1, op2); > if (modp == ((void *)0)) { > do { if ( --((PyObject*)(divp))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(divp)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(divp)))); } while (0); > return ((void *)0); > } > result = _Py_BuildValue_SizeT("OO", divp, modp); > do { if ( --((PyObject*)(divp))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(divp)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(divp)))); } while (0); > do { if ( --((PyObject*)(modp))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(modp)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(modp)))); } while (0); > return result; >} > > >static PyObject * >array_int(PyArrayObject *v) >{ > PyObject *pv, *pv2; > if (PyArray_MultiplyList((((PyArrayObject *)(v))->dimensions), (((PyArrayObject *)(v))->nd)) != 1) { > PyErr_SetString(PyExc_TypeError, "only length-1 arrays can be" " converted to Python scalars"); > > return ((void *)0); > } > pv = v->descr->f->getitem(v->data, v); > if (pv == ((void *)0)) { > return ((void *)0); > } > if ((((PyObject*)(pv))->ob_type)->tp_as_number == 0) { > PyErr_SetString(PyExc_TypeError, "cannot convert to an int; " "scalar object is not a number"); > > do { if ( --((PyObject*)(pv))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(pv)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(pv)))); } while (0); > return ((void *)0); > } > if ((((PyObject*)(pv))->ob_type)->tp_as_number->nb_int == 0) { > PyErr_SetString(PyExc_TypeError, "don't know how to convert " "scalar number to int"); > > do { if ( --((PyObject*)(pv))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(pv)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(pv)))); } while (0); > return ((void *)0); > } > > > > > if (((((PyObject*)(pv))->ob_type) == (&PyArray_Type) || PyType_IsSubtype((((PyObject*)(pv))->ob_type), (&PyArray_Type))) && ((((((PyArrayObject *)(pv))->descr))->flags & (0x01)) == (0x01))) { > PyErr_SetString(PyExc_TypeError, > "object array may be self-referencing"); > return ((void *)0); > } > > pv2 = (((PyObject*)(pv))->ob_type)->tp_as_number->nb_int(pv); > do { if ( --((PyObject*)(pv))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(pv)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(pv)))); } while (0); > return pv2; >} > >static PyObject * >array_float(PyArrayObject *v) >{ > PyObject *pv, *pv2; > if (PyArray_MultiplyList((((PyArrayObject *)(v))->dimensions), (((PyArrayObject *)(v))->nd)) != 1) { > PyErr_SetString(PyExc_TypeError, "only length-1 arrays can " "be converted to Python scalars"); > > return ((void *)0); > } > pv = v->descr->f->getitem(v->data, v); > if (pv == ((void *)0)) { > return ((void *)0); > } > if ((((PyObject*)(pv))->ob_type)->tp_as_number == 0) { > PyErr_SetString(PyExc_TypeError, "cannot convert to a " "float; scalar object is not a number"); > > do { if ( --((PyObject*)(pv))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(pv)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(pv)))); } while (0); > return ((void *)0); > } > if ((((PyObject*)(pv))->ob_type)->tp_as_number->nb_float == 0) { > PyErr_SetString(PyExc_TypeError, "don't know how to convert " "scalar number to float"); > > do { if ( --((PyObject*)(pv))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(pv)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(pv)))); } while (0); > return ((void *)0); > } > > > > > if (((((PyObject*)(pv))->ob_type) == (&PyArray_Type) || PyType_IsSubtype((((PyObject*)(pv))->ob_type), (&PyArray_Type))) && ((((((PyArrayObject *)(pv))->descr))->flags & (0x01)) == (0x01))) { > PyErr_SetString(PyExc_TypeError, > "object array may be self-referencing"); > return ((void *)0); > } > pv2 = (((PyObject*)(pv))->ob_type)->tp_as_number->nb_float(pv); > do { if ( --((PyObject*)(pv))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(pv)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(pv)))); } while (0); > return pv2; >} > > > >static PyObject * >array_long(PyArrayObject *v) >{ > PyObject *pv, *pv2; > if (PyArray_MultiplyList((((PyArrayObject *)(v))->dimensions), (((PyArrayObject *)(v))->nd)) != 1) { > PyErr_SetString(PyExc_TypeError, "only length-1 arrays can " "be converted to Python scalars"); > > return ((void *)0); > } > pv = v->descr->f->getitem(v->data, v); > if ((((PyObject*)(pv))->ob_type)->tp_as_number == 0) { > PyErr_SetString(PyExc_TypeError, "cannot convert to an int; " "scalar object is not a number"); > > return ((void *)0); > } > if ((((PyObject*)(pv))->ob_type)->tp_as_number->nb_long == 0) { > PyErr_SetString(PyExc_TypeError, "don't know how to convert " "scalar number to long"); > > return ((void *)0); > } > > > > > if (((((PyObject*)(pv))->ob_type) == (&PyArray_Type) || PyType_IsSubtype((((PyObject*)(pv))->ob_type), (&PyArray_Type))) && ((((((PyArrayObject *)(pv))->descr))->flags & (0x01)) == (0x01))) { > PyErr_SetString(PyExc_TypeError, > "object array may be self-referencing"); > return ((void *)0); > } > pv2 = (((PyObject*)(pv))->ob_type)->tp_as_number->nb_long(pv); > do { if ( --((PyObject*)(pv))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(pv)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(pv)))); } while (0); > return pv2; >} > >static PyObject * >array_oct(PyArrayObject *v) >{ > PyObject *pv, *pv2; > if (PyArray_MultiplyList((((PyArrayObject *)(v))->dimensions), (((PyArrayObject *)(v))->nd)) != 1) { > PyErr_SetString(PyExc_TypeError, "only length-1 arrays can " "be converted to Python scalars"); > > return ((void *)0); > } > pv = v->descr->f->getitem(v->data, v); > if ((((PyObject*)(pv))->ob_type)->tp_as_number == 0) { > PyErr_SetString(PyExc_TypeError, "cannot convert to an int; " "scalar object is not a number"); > > return ((void *)0); > } > if ((((PyObject*)(pv))->ob_type)->tp_as_number->nb_oct == 0) { > PyErr_SetString(PyExc_TypeError, "don't know how to convert " "scalar number to oct"); > > return ((void *)0); > } > > > > > if (((((PyObject*)(pv))->ob_type) == (&PyArray_Type) || PyType_IsSubtype((((PyObject*)(pv))->ob_type), (&PyArray_Type))) && ((((((PyArrayObject *)(pv))->descr))->flags & (0x01)) == (0x01))) { > PyErr_SetString(PyExc_TypeError, > "object array may be self-referencing"); > return ((void *)0); > } > pv2 = (((PyObject*)(pv))->ob_type)->tp_as_number->nb_oct(pv); > do { if ( --((PyObject*)(pv))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(pv)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(pv)))); } while (0); > return pv2; >} > >static PyObject * >array_hex(PyArrayObject *v) >{ > PyObject *pv, *pv2; > if (PyArray_MultiplyList((((PyArrayObject *)(v))->dimensions), (((PyArrayObject *)(v))->nd)) != 1) { > PyErr_SetString(PyExc_TypeError, "only length-1 arrays can " "be converted to Python scalars"); > > return ((void *)0); > } > pv = v->descr->f->getitem(v->data, v); > if ((((PyObject*)(pv))->ob_type)->tp_as_number == 0) { > PyErr_SetString(PyExc_TypeError, "cannot convert to an int; " "scalar object is not a number"); > > return ((void *)0); > } > if ((((PyObject*)(pv))->ob_type)->tp_as_number->nb_hex == 0) { > PyErr_SetString(PyExc_TypeError, "don't know how to convert " "scalar number to hex"); > > return ((void *)0); > } > > > > > if (((((PyObject*)(pv))->ob_type) == (&PyArray_Type) || PyType_IsSubtype((((PyObject*)(pv))->ob_type), (&PyArray_Type))) && ((((((PyArrayObject *)(pv))->descr))->flags & (0x01)) == (0x01))) { > PyErr_SetString(PyExc_TypeError, > "object array may be self-referencing"); > return ((void *)0); > } > pv2 = (((PyObject*)(pv))->ob_type)->tp_as_number->nb_hex(pv); > do { if ( --((PyObject*)(pv))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(pv)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(pv)))); } while (0); > return pv2; >} > > > >static PyObject * >_array_copy_nice(PyArrayObject *self) >{ > return PyArray_Return((PyArrayObject *) PyArray_NewCopy(self, NPY_CORDER)); >} > > >static PyObject * >array_index(PyArrayObject *v) >{ > if (!((((((PyArrayObject *)(v))->descr->type_num)) >= NPY_BYTE) && (((((PyArrayObject *)(v))->descr->type_num)) <= NPY_ULONGLONG)) || PyArray_MultiplyList((((PyArrayObject *)(v))->dimensions), (((PyArrayObject *)(v))->nd)) != 1) { > PyErr_SetString(PyExc_TypeError, "only integer arrays with " "one element can be converted to an index"); > > return ((void *)0); > } > return v->descr->f->getitem(v->data, v); >} > > > >static PyNumberMethods array_as_number = { > (binaryfunc)array_add, > (binaryfunc)array_subtract, > (binaryfunc)array_multiply, > > > (binaryfunc)array_divide, > > (binaryfunc)array_remainder, > (binaryfunc)array_divmod, > (ternaryfunc)array_power, > (unaryfunc)array_negative, > (unaryfunc)_array_copy_nice, > (unaryfunc)array_absolute, > (inquiry)_array_nonzero, > (unaryfunc)array_invert, > (binaryfunc)array_left_shift, > (binaryfunc)array_right_shift, > (binaryfunc)array_bitwise_and, > (binaryfunc)array_bitwise_xor, > (binaryfunc)array_bitwise_or, > > > 0, > > (unaryfunc)array_int, > > > > (unaryfunc)array_long, > > (unaryfunc)array_float, > > > (unaryfunc)array_oct, > (unaryfunc)array_hex, > > > > > > > (binaryfunc)array_inplace_add, > (binaryfunc)array_inplace_subtract, > (binaryfunc)array_inplace_multiply, > > > (binaryfunc)array_inplace_divide, > > (binaryfunc)array_inplace_remainder, > (ternaryfunc)array_inplace_power, > (binaryfunc)array_inplace_left_shift, > (binaryfunc)array_inplace_right_shift, > (binaryfunc)array_inplace_bitwise_and, > (binaryfunc)array_inplace_bitwise_xor, > (binaryfunc)array_inplace_bitwise_or, > > (binaryfunc)array_floor_divide, > (binaryfunc)array_true_divide, > (binaryfunc)array_inplace_floor_divide, > (binaryfunc)array_inplace_true_divide, > > > (unaryfunc)array_index, > > >}; ># 25 "numpy/core/src/multiarray/multiarraymodule_onefile.c" 2 ># 1 "numpy/core/src/multiarray/getset.c" 1 ># 18 "numpy/core/src/multiarray/getset.c" ># 1 "numpy/core/src/multiarray/getset.h" 1 ># 19 "numpy/core/src/multiarray/getset.c" 2 > > > >static PyObject * >array_ndim_get(PyArrayObject *self) >{ > return PyInt_FromLong(self->nd); >} > >static PyObject * >array_flags_get(PyArrayObject *self) >{ > return PyArray_NewFlagsObject((PyObject *)self); >} > >static PyObject * >array_shape_get(PyArrayObject *self) >{ > return PyArray_IntTupleFromIntp(self->nd, self->dimensions); >} > > >static int >array_shape_set(PyArrayObject *self, PyObject *val) >{ > int nd; > PyObject *ret; > > > ret = PyArray_Reshape(self, val); > if (ret == ((void *)0)) { > return -1; > } > if (((void *)(((PyArrayObject *)(ret))->data)) != ((void *)(((PyArrayObject *)(self))->data))) { > do { if ( --((PyObject*)(ret))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(ret)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(ret)))); } while (0); > PyErr_SetString(PyExc_AttributeError, > "incompatible shape for a non-contiguous " "array"); > > return -1; > } > > > PyMem_Free(self->dimensions); > nd = (((PyArrayObject *)(ret))->nd); > self->nd = nd; > if (nd > 0) { > > self->dimensions = ((npy_intp *)PyMem_Malloc(2*nd*sizeof(npy_intp))); > if (self->dimensions == ((void *)0)) { > do { if ( --((PyObject*)(ret))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(ret)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(ret)))); } while (0); > PyErr_SetString(PyExc_MemoryError,""); > return -1; > } > self->strides = self->dimensions + nd; > memcpy(self->dimensions, (((PyArrayObject *)(ret))->dimensions), nd*sizeof(npy_intp)); > memcpy(self->strides, (((PyArrayObject *)(ret))->strides), nd*sizeof(npy_intp)); > } > else { > self->dimensions = ((void *)0); > self->strides = ((void *)0); > } > do { if ( --((PyObject*)(ret))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(ret)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(ret)))); } while (0); > PyArray_UpdateFlags(self, 0x0001 | 0x0002); > return 0; >} > > >static PyObject * >array_strides_get(PyArrayObject *self) >{ > return PyArray_IntTupleFromIntp(self->nd, self->strides); >} > >static int >array_strides_set(PyArrayObject *self, PyObject *obj) >{ > PyArray_Dims newstrides = {((void *)0), 0}; > PyArrayObject *new; > npy_intp numbytes = 0; > npy_intp offset = 0; > Py_ssize_t buf_len; > char *buf; > > if (!PyArray_IntpConverter(obj, &newstrides) || > newstrides.ptr == ((void *)0)) { > PyErr_SetString(PyExc_TypeError, "invalid strides"); > return -1; > } > if (newstrides.len != self->nd) { > PyErr_Format(PyExc_ValueError, "strides must be " " same length as shape (%d)", self->nd); > > goto fail; > } > new = self; > while(new->base && ((((PyObject*)(new->base))->ob_type) == (&PyArray_Type) || PyType_IsSubtype((((PyObject*)(new->base))->ob_type), (&PyArray_Type)))) { > new = (PyArrayObject *)(new->base); > } > > > > > if (new->base && PyObject_AsReadBuffer(new->base, > (const void **)&buf, > &buf_len) >= 0) { > offset = self->data - buf; > numbytes = buf_len + offset; > } > else { > PyErr_Clear(); > numbytes = PyArray_MultiplyList(new->dimensions, > new->nd)*new->descr->elsize; > offset = self->data - new->data; > } > > if (!PyArray_CheckStrides(self->descr->elsize, self->nd, numbytes, > offset, > self->dimensions, newstrides.ptr)) { > PyErr_SetString(PyExc_ValueError, "strides is not " "compatible with available memory"); > > goto fail; > } > memcpy(self->strides, newstrides.ptr, sizeof(npy_intp)*newstrides.len); > PyArray_UpdateFlags(self, 0x0001 | 0x0002); > PyMem_Free(newstrides.ptr); > return 0; > > fail: > PyMem_Free(newstrides.ptr); > return -1; >} > > > >static PyObject * >array_priority_get(PyArrayObject *self) >{ > if ((((PyObject*)(self))->ob_type == &PyArray_Type)) { > return PyFloat_FromDouble(0.0); > } > else { > return PyFloat_FromDouble(0.0); > } >} > >static PyObject * >array_typestr_get(PyArrayObject *self) >{ > return arraydescr_protocol_typestr_get(self->descr); >} > >static PyObject * >array_descr_get(PyArrayObject *self) >{ > ( ((PyObject*)(self->descr))->ob_refcnt++); > return (PyObject *)self->descr; >} > >static PyObject * >array_protocol_descr_get(PyArrayObject *self) >{ > PyObject *res; > PyObject *dobj; > > res = arraydescr_protocol_descr_get(self->descr); > if (res) { > return res; > } > PyErr_Clear(); > > > dobj = PyTuple_New(2); > if (dobj == ((void *)0)) { > return ((void *)0); > } > (((PyTupleObject *)(dobj))->ob_item[0] = PyString_FromString("")); > (((PyTupleObject *)(dobj))->ob_item[1] = array_typestr_get(self)); > res = PyList_New(1); > if (res == ((void *)0)) { > do { if ( --((PyObject*)(dobj))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(dobj)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(dobj)))); } while (0); > return ((void *)0); > } > (((PyListObject *)(res))->ob_item[0] = (dobj)); > return res; >} > >static PyObject * >array_protocol_strides_get(PyArrayObject *self) >{ > if ((((PyArrayObject *)(self))->flags & (0x0001)) == (0x0001)) { > ( ((PyObject*)((&_Py_NoneStruct)))->ob_refcnt++); > return (&_Py_NoneStruct); > } > return PyArray_IntTupleFromIntp(self->nd, self->strides); >} > > > >static PyObject * >array_dataptr_get(PyArrayObject *self) >{ > return _Py_BuildValue_SizeT("NO", > PyLong_FromVoidPtr(self->data), > (self->flags & 0x0400 ? ((PyObject *) &_Py_ZeroStruct) : > ((PyObject *) &_Py_TrueStruct))); >} > >static PyObject * >array_ctypes_get(PyArrayObject *self) >{ > PyObject *_numpy_internal; > PyObject *ret; > _numpy_internal = PyImport_ImportModule("numpy.core._internal"); > if (_numpy_internal == ((void *)0)) { > return ((void *)0); > } > ret = _PyObject_CallMethod_SizeT(_numpy_internal, "_ctypes", "ON", self, > PyLong_FromVoidPtr(self->data)); > do { if ( --((PyObject*)(_numpy_internal))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(_numpy_internal)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(_numpy_internal)))); } while (0); > return ret; >} > >static PyObject * >array_interface_get(PyArrayObject *self) >{ > PyObject *dict; > PyObject *obj; > > dict = PyDict_New(); > if (dict == ((void *)0)) { > return ((void *)0); > } > > > obj = array_dataptr_get(self); > PyDict_SetItemString(dict, "data", obj); > do { if ( --((PyObject*)(obj))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(obj)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(obj)))); } while (0); > > obj = array_protocol_strides_get(self); > PyDict_SetItemString(dict, "strides", obj); > do { if ( --((PyObject*)(obj))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(obj)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(obj)))); } while (0); > > obj = array_protocol_descr_get(self); > PyDict_SetItemString(dict, "descr", obj); > do { if ( --((PyObject*)(obj))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(obj)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(obj)))); } while (0); > > obj = arraydescr_protocol_typestr_get(self->descr); > PyDict_SetItemString(dict, "typestr", obj); > do { if ( --((PyObject*)(obj))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(obj)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(obj)))); } while (0); > > obj = array_shape_get(self); > PyDict_SetItemString(dict, "shape", obj); > do { if ( --((PyObject*)(obj))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(obj)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(obj)))); } while (0); > > obj = PyInt_FromLong(3); > PyDict_SetItemString(dict, "version", obj); > do { if ( --((PyObject*)(obj))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(obj)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(obj)))); } while (0); > > return dict; >} > >static PyObject * >array_data_get(PyArrayObject *self) >{ > > > > npy_intp nbytes; > if (!(((((PyArrayObject *)(self))->nd) == 0 || ((((PyArrayObject *)(self))->flags & (0x0001)) == (0x0001)) || ((((PyArrayObject *)(self))->flags & (0x0002)) == (0x0002))))) { > PyErr_SetString(PyExc_AttributeError, "cannot get single-" "segment buffer for discontiguous array"); > > return ((void *)0); > } > nbytes = ((((PyArrayObject *)(self))->descr->elsize) * PyArray_MultiplyList((((PyArrayObject *)(self))->dimensions), (((PyArrayObject *)(self))->nd))); > if (((((PyArrayObject *)(self))->flags & (0x0400)) == (0x0400))) { > return PyBuffer_FromReadWriteObject((PyObject *)self, 0, (Py_ssize_t) nbytes); > } > else { > return PyBuffer_FromObject((PyObject *)self, 0, (Py_ssize_t) nbytes); > } > >} > >static int >array_data_set(PyArrayObject *self, PyObject *op) >{ > void *buf; > Py_ssize_t buf_len; > int writeable=1; > > if (PyObject_AsWriteBuffer(op, &buf, &buf_len) < 0) { > writeable = 0; > if (PyObject_AsReadBuffer(op, (const void **)&buf, &buf_len) < 0) { > PyErr_SetString(PyExc_AttributeError, > "object does not have single-segment " "buffer interface"); > > return -1; > } > } > if (!((((PyArrayObject *)(self))->nd) == 0 || ((((PyArrayObject *)(self))->flags & (0x0001)) == (0x0001)) || ((((PyArrayObject *)(self))->flags & (0x0002)) == (0x0002)))) { > PyErr_SetString(PyExc_AttributeError, "cannot set single-" "segment buffer for discontiguous array"); > > return -1; > } > if (((((PyArrayObject *)(self))->descr->elsize) * PyArray_MultiplyList((((PyArrayObject *)(self))->dimensions), (((PyArrayObject *)(self))->nd))) > buf_len) { > PyErr_SetString(PyExc_AttributeError, "not enough data for array"); > return -1; > } > if (self->flags & 0x0004) { > PyArray_XDECREF(self); > free(self->data); > } > if (self->base) { > if (self->flags & 0x1000) { > ((PyArrayObject *)self->base)->flags |= 0x0400; > self->flags &= ~0x1000; > } > do { if ( --((PyObject*)(self->base))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(self->base)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(self->base)))); } while (0); > } > ( ((PyObject*)(op))->ob_refcnt++); > self->base = op; > self->data = buf; > self->flags = (0x0001 | (0x0100 | 0x0400)); > if (!writeable) { > self->flags &= ~0x0400; > } > return 0; >} > > >static PyObject * >array_itemsize_get(PyArrayObject *self) >{ > return PyInt_FromLong((long) self->descr->elsize); >} > >static PyObject * >array_size_get(PyArrayObject *self) >{ > npy_intp size=PyArray_MultiplyList((((PyArrayObject *)(self))->dimensions), (((PyArrayObject *)(self))->nd)); > > return PyInt_FromLong((long) size); ># 368 "numpy/core/src/multiarray/getset.c" >} > >static PyObject * >array_nbytes_get(PyArrayObject *self) >{ > npy_intp nbytes = ((((PyArrayObject *)(self))->descr->elsize) * PyArray_MultiplyList((((PyArrayObject *)(self))->dimensions), (((PyArrayObject *)(self))->nd))); > > return PyInt_FromLong((long) nbytes); ># 384 "numpy/core/src/multiarray/getset.c" >} ># 396 "numpy/core/src/multiarray/getset.c" >static int >array_descr_set(PyArrayObject *self, PyObject *arg) >{ > PyArray_Descr *newtype = ((void *)0); > npy_intp newdim; > int index; > char *msg = "new type not compatible with array."; > > if (!(PyArray_DescrConverter(arg, &newtype)) || > newtype == ((void *)0)) { > PyErr_SetString(PyExc_TypeError, "invalid data-type for array"); > return -1; > } > if ((((newtype)->flags & (0x01)) == (0x01)) || > (((newtype)->flags & (0x04)) == (0x04)) || > (((self->descr)->flags & (0x01)) == (0x01)) || > (((self->descr)->flags & (0x04)) == (0x04))) { > PyErr_SetString(PyExc_TypeError, "Cannot change data-type for object " "array."); > > > do { if ( --((PyObject*)(newtype))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(newtype)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(newtype)))); } while (0); > return -1; > } > > if (newtype->elsize == 0) { > > if (newtype->type_num == NPY_VOID) { > do { PyArray_Descr *_new_; _new_ = PyArray_DescrNew(newtype); do { if ((newtype) == ((void *)0)) ; else do { if ( --((PyObject*)(newtype))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(newtype)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(newtype)))); } while (0); } while (0); newtype = _new_; } while(0); > if (newtype == ((void *)0)) { > return -1; > } > newtype->elsize = self->descr->elsize; > } > > else { > PyErr_SetString(PyExc_TypeError, > "data-type must not be 0-sized"); > do { if ( --((PyObject*)(newtype))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(newtype)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(newtype)))); } while (0); > return -1; > } > } > > > if ((newtype->elsize != self->descr->elsize) && > (self->nd == 0 || !((((PyArrayObject *)(self))->nd) == 0 || ((((PyArrayObject *)(self))->flags & (0x0001)) == (0x0001)) || ((((PyArrayObject *)(self))->flags & (0x0002)) == (0x0002))) || > newtype->subarray)) { > goto fail; > } > if (((((PyArrayObject *)(self))->flags & (0x0001)) == (0x0001))) { > index = self->nd - 1; > } > else { > index = 0; > } > if (newtype->elsize < self->descr->elsize) { > > > > > if (self->descr->elsize % newtype->elsize != 0) { > goto fail; > } > newdim = self->descr->elsize / newtype->elsize; > self->dimensions[index] *= newdim; > self->strides[index] = newtype->elsize; > } > else if (newtype->elsize > self->descr->elsize) { > > > > > newdim = self->dimensions[index] * self->descr->elsize; > if ((newdim % newtype->elsize) != 0) { > goto fail; > } > self->dimensions[index] = newdim / newtype->elsize; > self->strides[index] = newtype->elsize; > } > > > do { if ( --((PyObject*)(self->descr))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(self->descr)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(self->descr)))); } while (0); > if (newtype->subarray) { > > > > > PyArrayObject *temp; > > > > > temp = (PyArrayObject *) > PyArray_NewFromDescr(&PyArray_Type, newtype, self->nd, > self->dimensions, self->strides, > self->data, self->flags, ((void *)0)); > if (temp == ((void *)0)) { > return -1; > } > PyMem_Free(self->dimensions); > self->dimensions = temp->dimensions; > self->nd = temp->nd; > self->strides = temp->strides; > newtype = temp->descr; > ( ((PyObject*)(temp->descr))->ob_refcnt++); > > temp->nd = 0; > temp->dimensions = ((void *)0); > do { if ( --((PyObject*)(temp))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(temp)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(temp)))); } while (0); > } > > self->descr = newtype; > PyArray_UpdateFlags(self, (0x0001 | 0x0002 | 0x0100)); > return 0; > > fail: > PyErr_SetString(PyExc_ValueError, msg); > do { if ( --((PyObject*)(newtype))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(newtype)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(newtype)))); } while (0); > return -1; >} > >static PyObject * >array_struct_get(PyArrayObject *self) >{ > PyArrayInterface *inter; > PyObject *ret; > > inter = (PyArrayInterface *)PyMem_Malloc(sizeof(PyArrayInterface)); > if (inter==((void *)0)) { > return PyErr_NoMemory(); > } > inter->two = 2; > inter->nd = self->nd; > inter->typekind = self->descr->kind; > inter->itemsize = self->descr->elsize; > inter->flags = self->flags; > > inter->flags &= ~(0x1000 | 0x0004); > if ((((((PyArrayObject *)(self))->descr)->byteorder) != '>')) inter->flags |= 0x0200; > > > > > if (self->nd > 0) { > inter->shape = (npy_intp *)PyMem_Malloc(2*sizeof(npy_intp)*self->nd); > if (inter->shape == ((void *)0)) { > PyMem_Free(inter); > return PyErr_NoMemory(); > } > inter->strides = inter->shape + self->nd; > memcpy(inter->shape, self->dimensions, sizeof(npy_intp)*self->nd); > memcpy(inter->strides, self->strides, sizeof(npy_intp)*self->nd); > } > else { > inter->shape = ((void *)0); > inter->strides = ((void *)0); > } > inter->data = self->data; > if (self->descr->names) { > inter->descr = arraydescr_protocol_descr_get(self->descr); > if (inter->descr == ((void *)0)) { > PyErr_Clear(); > } > else { > inter->flags &= 0x0800; > } > } > else { > inter->descr = ((void *)0); > } > ( ((PyObject*)(self))->ob_refcnt++); > ret = NpyCapsule_FromVoidPtrAndDesc(inter, self, gentype_struct_free); > return ret; >} > >static PyObject * >array_base_get(PyArrayObject *self) >{ > if (self->base == ((void *)0)) { > ( ((PyObject*)((&_Py_NoneStruct)))->ob_refcnt++); > return (&_Py_NoneStruct); > } > else { > ( ((PyObject*)(self->base))->ob_refcnt++); > return self->base; > } >} > > > > > >static PyArrayObject * >_get_part(PyArrayObject *self, int imag) >{ > int float_type_num; > PyArray_Descr *type; > PyArrayObject *ret; > int offset; > > switch (self->descr->type_num) { > case NPY_CFLOAT: > float_type_num = NPY_FLOAT; > break; > case NPY_CDOUBLE: > float_type_num = NPY_DOUBLE; > break; > case NPY_CLONGDOUBLE: > float_type_num = NPY_LONGDOUBLE; > break; > default: > PyErr_Format(PyExc_ValueError, > "Cannot convert complex type number %d to float", > self->descr->type_num); > return ((void *)0); > > } > type = PyArray_DescrFromType(float_type_num); > > offset = (imag ? type->elsize : 0); > > if (!((self->descr->byteorder) != '>')) { > PyArray_Descr *new; > new = PyArray_DescrNew(type); > new->byteorder = self->descr->byteorder; > do { if ( --((PyObject*)(type))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(type)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(type)))); } while (0); > type = new; > } > ret = (PyArrayObject *) > PyArray_NewFromDescr((((PyObject*)(self))->ob_type), > type, > self->nd, > self->dimensions, > self->strides, > self->data + offset, > self->flags, (PyObject *)self); > if (ret == ((void *)0)) { > return ((void *)0); > } > ret->flags &= ~0x0001; > ret->flags &= ~0x0002; > ( ((PyObject*)(self))->ob_refcnt++); > ret->base = (PyObject *)self; > return ret; >} > > > > > >static PyObject * >array_real_get(PyArrayObject *self) >{ > PyArrayObject *ret; > > if (((((((PyArrayObject *)(self))->descr->type_num)) >= NPY_CFLOAT) && (((((PyArrayObject *)(self))->descr->type_num)) <= NPY_CLONGDOUBLE))) { > ret = _get_part(self, 0); > return (PyObject *)ret; > } > else { > ( ((PyObject*)(self))->ob_refcnt++); > return (PyObject *)self; > } >} > > >static int >array_real_set(PyArrayObject *self, PyObject *val) >{ > PyArrayObject *ret; > PyArrayObject *new; > int rint; > > if (((((((PyArrayObject *)(self))->descr->type_num)) >= NPY_CFLOAT) && (((((PyArrayObject *)(self))->descr->type_num)) <= NPY_CLONGDOUBLE))) { > ret = _get_part(self, 0); > if (ret == ((void *)0)) { > return -1; > } > } > else { > ( ((PyObject*)(self))->ob_refcnt++); > ret = self; > } > new = (PyArrayObject *)PyArray_FromAny(val, ((void *)0), 0, 0, 0, ((void *)0)); > if (new == ((void *)0)) { > do { if ( --((PyObject*)(ret))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(ret)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(ret)))); } while (0); > return -1; > } > rint = PyArray_MoveInto(ret, new); > do { if ( --((PyObject*)(ret))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(ret)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(ret)))); } while (0); > do { if ( --((PyObject*)(new))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(new)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(new)))); } while (0); > return rint; >} > > > > > > >static PyObject * >array_imag_get(PyArrayObject *self) >{ > PyArrayObject *ret; > > if (((((((PyArrayObject *)(self))->descr->type_num)) >= NPY_CFLOAT) && (((((PyArrayObject *)(self))->descr->type_num)) <= NPY_CLONGDOUBLE))) { > ret = _get_part(self, 1); > } > else { > ( ((PyObject*)(self->descr))->ob_refcnt++); > ret = (PyArrayObject *)PyArray_NewFromDescr((((PyObject*)(self))->ob_type), > self->descr, > self->nd, > self->dimensions, > ((void *)0), ((void *)0), > (((((PyArrayObject *)(self))->flags & (0x0002)) == (0x0002)) && ((((PyArrayObject *)(self))->nd) > 1)), > (PyObject *)self); > if (ret == ((void *)0)) { > return ((void *)0); > } > if (_zerofill(ret) < 0) { > return ((void *)0); > } > ret->flags &= ~0x0400; > } > return (PyObject *) ret; >} > >static int >array_imag_set(PyArrayObject *self, PyObject *val) >{ > if (((((((PyArrayObject *)(self))->descr->type_num)) >= NPY_CFLOAT) && (((((PyArrayObject *)(self))->descr->type_num)) <= NPY_CLONGDOUBLE))) { > PyArrayObject *ret; > PyArrayObject *new; > int rint; > > ret = _get_part(self, 1); > if (ret == ((void *)0)) { > return -1; > } > new = (PyArrayObject *)PyArray_FromAny(val, ((void *)0), 0, 0, 0, ((void *)0)); > if (new == ((void *)0)) { > do { if ( --((PyObject*)(ret))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(ret)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(ret)))); } while (0); > return -1; > } > rint = PyArray_MoveInto(ret, new); > do { if ( --((PyObject*)(ret))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(ret)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(ret)))); } while (0); > do { if ( --((PyObject*)(new))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(new)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(new)))); } while (0); > return rint; > } > else { > PyErr_SetString(PyExc_TypeError, "array does not have " "imaginary part to set"); > > return -1; > } >} > >static PyObject * >array_flat_get(PyArrayObject *self) >{ > return PyArray_IterNew((PyObject *)self); >} > >static int >array_flat_set(PyArrayObject *self, PyObject *val) >{ > PyObject *arr = ((void *)0); > int retval = -1; > PyArrayIterObject *selfit = ((void *)0), *arrit = ((void *)0); > PyArray_Descr *typecode; > int swap; > PyArray_CopySwapFunc *copyswap; > > typecode = self->descr; > ( ((PyObject*)(typecode))->ob_refcnt++); > arr = PyArray_FromAny(val, typecode, > 0, 0, 0x0010 | ((((((PyArrayObject *)(self))->flags & (0x0002)) == (0x0002)) ? 0x0002 : 0)), ((void *)0)); > if (arr == ((void *)0)) { > return -1; > } > arrit = (PyArrayIterObject *)PyArray_IterNew(arr); > if (arrit == ((void *)0)) { > goto exit; > } > selfit = (PyArrayIterObject *)PyArray_IterNew((PyObject *)self); > if (selfit == ((void *)0)) { > goto exit; > } > if (arrit->size == 0) { > retval = 0; > goto exit; > } > swap = (((((PyArrayObject *)(self))->descr)->byteorder) != '>') != (((((PyArrayObject *)(arr))->descr)->byteorder) != '>'); > copyswap = self->descr->f->copyswap; > if ((((self->descr)->flags & (0x01)) == (0x01))) { > while (selfit->index < selfit->size) { > PyArray_Item_XDECREF(selfit->dataptr, self->descr); > PyArray_Item_INCREF(arrit->dataptr, (((PyArrayObject *)(arr))->descr)); > memmove(selfit->dataptr, arrit->dataptr, sizeof(PyObject **)); > if (swap) { > copyswap(selfit->dataptr, ((void *)0), swap, self); > } > { ((PyArrayIterObject *)(selfit))->index++; if (((PyArrayIterObject *)(selfit))->nd_m1 == 0) { { (((PyArrayIterObject *)(selfit)))->dataptr += ((PyArrayIterObject *)(((PyArrayIterObject *)(selfit))))->strides[0]; (((PyArrayIterObject *)(selfit)))->coordinates[0]++; }; } else if (((PyArrayIterObject *)(selfit))->contiguous) ((PyArrayIterObject *)(selfit))->dataptr += ((PyArrayIterObject *)(selfit))->ao->descr->elsize; else if (((PyArrayIterObject *)(selfit))->nd_m1 == 1) { { if ((((PyArrayIterObject *)(selfit)))->coordinates[1] < (((PyArrayIterObject *)(selfit)))->dims_m1[1]) { (((PyArrayIterObject *)(selfit)))->coordinates[1]++; (((PyArrayIterObject *)(selfit)))->dataptr += (((PyArrayIterObject *)(selfit)))->strides[1]; } else { (((PyArrayIterObject *)(selfit)))->coordinates[1] = 0; (((PyArrayIterObject *)(selfit)))->coordinates[0]++; (((PyArrayIterObject *)(selfit)))->dataptr += (((PyArrayIterObject *)(selfit)))->strides[0] - (((PyArrayIterObject *)(selfit)))->backstrides[1]; } }; } else { int __npy_i; for (__npy_i=((PyArrayIterObject *)(selfit))->nd_m1; __npy_i >= 0; __npy_i--) { if (((PyArrayIterObject *)(selfit))->coordinates[__npy_i] < ((PyArrayIterObject *)(selfit))->dims_m1[__npy_i]) { ((PyArrayIterObject *)(selfit))->coordinates[__npy_i]++; ((PyArrayIterObject *)(selfit))->dataptr += ((PyArrayIterObject *)(selfit))->strides[__npy_i]; break; } else { ((PyArrayIterObject *)(selfit))->coordinates[__npy_i] = 0; ((PyArrayIterObject *)(selfit))->dataptr -= ((PyArrayIterObject *)(selfit))->backstrides[__npy_i]; } } } }; > { ((PyArrayIterObject *)(arrit))->index++; if (((PyArrayIterObject *)(arrit))->nd_m1 == 0) { { (((PyArrayIterObject *)(arrit)))->dataptr += ((PyArrayIterObject *)(((PyArrayIterObject *)(arrit))))->strides[0]; (((PyArrayIterObject *)(arrit)))->coordinates[0]++; }; } else if (((PyArrayIterObject *)(arrit))->contiguous) ((PyArrayIterObject *)(arrit))->dataptr += ((PyArrayIterObject *)(arrit))->ao->descr->elsize; else if (((PyArrayIterObject *)(arrit))->nd_m1 == 1) { { if ((((PyArrayIterObject *)(arrit)))->coordinates[1] < (((PyArrayIterObject *)(arrit)))->dims_m1[1]) { (((PyArrayIterObject *)(arrit)))->coordinates[1]++; (((PyArrayIterObject *)(arrit)))->dataptr += (((PyArrayIterObject *)(arrit)))->strides[1]; } else { (((PyArrayIterObject *)(arrit)))->coordinates[1] = 0; (((PyArrayIterObject *)(arrit)))->coordinates[0]++; (((PyArrayIterObject *)(arrit)))->dataptr += (((PyArrayIterObject *)(arrit)))->strides[0] - (((PyArrayIterObject *)(arrit)))->backstrides[1]; } }; } else { int __npy_i; for (__npy_i=((PyArrayIterObject *)(arrit))->nd_m1; __npy_i >= 0; __npy_i--) { if (((PyArrayIterObject *)(arrit))->coordinates[__npy_i] < ((PyArrayIterObject *)(arrit))->dims_m1[__npy_i]) { ((PyArrayIterObject *)(arrit))->coordinates[__npy_i]++; ((PyArrayIterObject *)(arrit))->dataptr += ((PyArrayIterObject *)(arrit))->strides[__npy_i]; break; } else { ((PyArrayIterObject *)(arrit))->coordinates[__npy_i] = 0; ((PyArrayIterObject *)(arrit))->dataptr -= ((PyArrayIterObject *)(arrit))->backstrides[__npy_i]; } } } }; > if (arrit->index == arrit->size) { > { ((PyArrayIterObject *)(arrit))->index = 0; ((PyArrayIterObject *)(arrit))->dataptr = ((PyArrayIterObject *)(arrit))->ao->data; memset(((PyArrayIterObject *)(arrit))->coordinates, 0, (((PyArrayIterObject *)(arrit))->nd_m1+1)*sizeof(npy_intp)); }; > } > } > retval = 0; > goto exit; > } > > while(selfit->index < selfit->size) { > memmove(selfit->dataptr, arrit->dataptr, self->descr->elsize); > if (swap) { > copyswap(selfit->dataptr, ((void *)0), swap, self); > } > { ((PyArrayIterObject *)(selfit))->index++; if (((PyArrayIterObject *)(selfit))->nd_m1 == 0) { { (((PyArrayIterObject *)(selfit)))->dataptr += ((PyArrayIterObject *)(((PyArrayIterObject *)(selfit))))->strides[0]; (((PyArrayIterObject *)(selfit)))->coordinates[0]++; }; } else if (((PyArrayIterObject *)(selfit))->contiguous) ((PyArrayIterObject *)(selfit))->dataptr += ((PyArrayIterObject *)(selfit))->ao->descr->elsize; else if (((PyArrayIterObject *)(selfit))->nd_m1 == 1) { { if ((((PyArrayIterObject *)(selfit)))->coordinates[1] < (((PyArrayIterObject *)(selfit)))->dims_m1[1]) { (((PyArrayIterObject *)(selfit)))->coordinates[1]++; (((PyArrayIterObject *)(selfit)))->dataptr += (((PyArrayIterObject *)(selfit)))->strides[1]; } else { (((PyArrayIterObject *)(selfit)))->coordinates[1] = 0; (((PyArrayIterObject *)(selfit)))->coordinates[0]++; (((PyArrayIterObject *)(selfit)))->dataptr += (((PyArrayIterObject *)(selfit)))->strides[0] - (((PyArrayIterObject *)(selfit)))->backstrides[1]; } }; } else { int __npy_i; for (__npy_i=((PyArrayIterObject *)(selfit))->nd_m1; __npy_i >= 0; __npy_i--) { if (((PyArrayIterObject *)(selfit))->coordinates[__npy_i] < ((PyArrayIterObject *)(selfit))->dims_m1[__npy_i]) { ((PyArrayIterObject *)(selfit))->coordinates[__npy_i]++; ((PyArrayIterObject *)(selfit))->dataptr += ((PyArrayIterObject *)(selfit))->strides[__npy_i]; break; } else { ((PyArrayIterObject *)(selfit))->coordinates[__npy_i] = 0; ((PyArrayIterObject *)(selfit))->dataptr -= ((PyArrayIterObject *)(selfit))->backstrides[__npy_i]; } } } }; > { ((PyArrayIterObject *)(arrit))->index++; if (((PyArrayIterObject *)(arrit))->nd_m1 == 0) { { (((PyArrayIterObject *)(arrit)))->dataptr += ((PyArrayIterObject *)(((PyArrayIterObject *)(arrit))))->strides[0]; (((PyArrayIterObject *)(arrit)))->coordinates[0]++; }; } else if (((PyArrayIterObject *)(arrit))->contiguous) ((PyArrayIterObject *)(arrit))->dataptr += ((PyArrayIterObject *)(arrit))->ao->descr->elsize; else if (((PyArrayIterObject *)(arrit))->nd_m1 == 1) { { if ((((PyArrayIterObject *)(arrit)))->coordinates[1] < (((PyArrayIterObject *)(arrit)))->dims_m1[1]) { (((PyArrayIterObject *)(arrit)))->coordinates[1]++; (((PyArrayIterObject *)(arrit)))->dataptr += (((PyArrayIterObject *)(arrit)))->strides[1]; } else { (((PyArrayIterObject *)(arrit)))->coordinates[1] = 0; (((PyArrayIterObject *)(arrit)))->coordinates[0]++; (((PyArrayIterObject *)(arrit)))->dataptr += (((PyArrayIterObject *)(arrit)))->strides[0] - (((PyArrayIterObject *)(arrit)))->backstrides[1]; } }; } else { int __npy_i; for (__npy_i=((PyArrayIterObject *)(arrit))->nd_m1; __npy_i >= 0; __npy_i--) { if (((PyArrayIterObject *)(arrit))->coordinates[__npy_i] < ((PyArrayIterObject *)(arrit))->dims_m1[__npy_i]) { ((PyArrayIterObject *)(arrit))->coordinates[__npy_i]++; ((PyArrayIterObject *)(arrit))->dataptr += ((PyArrayIterObject *)(arrit))->strides[__npy_i]; break; } else { ((PyArrayIterObject *)(arrit))->coordinates[__npy_i] = 0; ((PyArrayIterObject *)(arrit))->dataptr -= ((PyArrayIterObject *)(arrit))->backstrides[__npy_i]; } } } }; > if (arrit->index == arrit->size) { > { ((PyArrayIterObject *)(arrit))->index = 0; ((PyArrayIterObject *)(arrit))->dataptr = ((PyArrayIterObject *)(arrit))->ao->data; memset(((PyArrayIterObject *)(arrit))->coordinates, 0, (((PyArrayIterObject *)(arrit))->nd_m1+1)*sizeof(npy_intp)); }; > } > } > retval = 0; > > exit: > do { if ((selfit) == ((void *)0)) ; else do { if ( --((PyObject*)(selfit))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(selfit)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(selfit)))); } while (0); } while (0); > do { if ((arrit) == ((void *)0)) ; else do { if ( --((PyObject*)(arrit))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(arrit)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(arrit)))); } while (0); } while (0); > do { if ((arr) == ((void *)0)) ; else do { if ( --((PyObject*)(arr))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(arr)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(arr)))); } while (0); } while (0); > return retval; >} > >static PyObject * >array_transpose_get(PyArrayObject *self) >{ > return PyArray_Transpose(self, ((void *)0)); >} > > > > >static PyObject * >array_finalize_get(PyArrayObject *(__NPY_UNUSED_TAGGEDself) __attribute__ ((__unused__))) >{ > ( ((PyObject*)((&_Py_NoneStruct)))->ob_refcnt++); > return (&_Py_NoneStruct); >} > >static PyGetSetDef array_getsetlist[] = { > {"ndim", > (getter)array_ndim_get, > ((void *)0), > ((void *)0), ((void *)0)}, > {"flags", > (getter)array_flags_get, > ((void *)0), > ((void *)0), ((void *)0)}, > {"shape", > (getter)array_shape_get, > (setter)array_shape_set, > ((void *)0), ((void *)0)}, > {"strides", > (getter)array_strides_get, > (setter)array_strides_set, > ((void *)0), ((void *)0)}, > {"data", > (getter)array_data_get, > (setter)array_data_set, > ((void *)0), ((void *)0)}, > {"itemsize", > (getter)array_itemsize_get, > ((void *)0), > ((void *)0), ((void *)0)}, > {"size", > (getter)array_size_get, > ((void *)0), > ((void *)0), ((void *)0)}, > {"nbytes", > (getter)array_nbytes_get, > ((void *)0), > ((void *)0), ((void *)0)}, > {"base", > (getter)array_base_get, > ((void *)0), > ((void *)0), ((void *)0)}, > {"dtype", > (getter)array_descr_get, > (setter)array_descr_set, > ((void *)0), ((void *)0)}, > {"real", > (getter)array_real_get, > (setter)array_real_set, > ((void *)0), ((void *)0)}, > {"imag", > (getter)array_imag_get, > (setter)array_imag_set, > ((void *)0), ((void *)0)}, > {"flat", > (getter)array_flat_get, > (setter)array_flat_set, > ((void *)0), ((void *)0)}, > {"ctypes", > (getter)array_ctypes_get, > ((void *)0), > ((void *)0), ((void *)0)}, > { "T", > (getter)array_transpose_get, > ((void *)0), > ((void *)0), ((void *)0)}, > {"__array_interface__", > (getter)array_interface_get, > ((void *)0), > ((void *)0), ((void *)0)}, > {"__array_struct__", > (getter)array_struct_get, > ((void *)0), > ((void *)0), ((void *)0)}, > {"__array_priority__", > (getter)array_priority_get, > ((void *)0), > ((void *)0), ((void *)0)}, > {"__array_finalize__", > (getter)array_finalize_get, > ((void *)0), > ((void *)0), ((void *)0)}, > {((void *)0), ((void *)0), ((void *)0), ((void *)0), ((void *)0)}, >}; ># 26 "numpy/core/src/multiarray/multiarraymodule_onefile.c" 2 ># 1 "numpy/core/src/multiarray/sequence.c" 1 ># 17 "numpy/core/src/multiarray/sequence.c" ># 1 "numpy/core/src/multiarray/sequence.h" 1 > > > > > > >static PySequenceMethods array_as_sequence; ># 18 "numpy/core/src/multiarray/sequence.c" 2 > >static int >array_any_nonzero(PyArrayObject *mp); ># 31 "numpy/core/src/multiarray/sequence.c" >static PyObject * >array_slice(PyArrayObject *self, Py_ssize_t ilow, > Py_ssize_t ihigh) >{ > PyArrayObject *r; > Py_ssize_t l; > char *data; > > if (self->nd == 0) { > PyErr_SetString(PyExc_ValueError, "cannot slice a 0-d array"); > return ((void *)0); > } > > l=self->dimensions[0]; > if (ilow < 0) { > ilow = 0; > } > else if (ilow > l) { > ilow = l; > } > if (ihigh < ilow) { > ihigh = ilow; > } > else if (ihigh > l) { > ihigh = l; > } > > if (ihigh != ilow) { > data = index2ptr(self, ilow); > if (data == ((void *)0)) { > return ((void *)0); > } > } > else { > data = self->data; > } > > self->dimensions[0] = ihigh-ilow; > ( ((PyObject*)(self->descr))->ob_refcnt++); > r = (PyArrayObject *) PyArray_NewFromDescr((((PyObject*)(self))->ob_type), self->descr, > > self->nd, self->dimensions, > self->strides, data, > self->flags, (PyObject *)self); > self->dimensions[0] = l; > if (r == ((void *)0)) { > return ((void *)0); > } > r->base = (PyObject *)self; > ( ((PyObject*)(self))->ob_refcnt++); > PyArray_UpdateFlags(r, (0x0001 | 0x0002 | 0x0100)); > return (PyObject *)r; >} > > >static int >array_ass_slice(PyArrayObject *self, Py_ssize_t ilow, > Py_ssize_t ihigh, PyObject *v) { > int ret; > PyArrayObject *tmp; > > if (v == ((void *)0)) { > PyErr_SetString(PyExc_ValueError, > "cannot delete array elements"); > return -1; > } > if (!((((PyArrayObject *)(self))->flags & (0x0400)) == (0x0400))) { > PyErr_SetString(PyExc_RuntimeError, > "array is not writeable"); > return -1; > } > if ((tmp = (PyArrayObject *)array_slice(self, ilow, ihigh)) == ((void *)0)) { > return -1; > } > ret = PyArray_CopyObject(tmp, v); > do { if ( --((PyObject*)(tmp))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(tmp)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(tmp)))); } while (0); > > return ret; >} > >static int >array_contains(PyArrayObject *self, PyObject *el) >{ > > > PyObject *res; > int ret; > > res = PyArray_EnsureAnyArray(PyObject_RichCompare((PyObject *)self, > el, 2)); > if (res == ((void *)0)) { > return -1; > } > ret = array_any_nonzero((PyArrayObject *)res); > do { if ( --((PyObject*)(res))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(res)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(res)))); } while (0); > return ret; >} > >static PySequenceMethods array_as_sequence = { > > (lenfunc)array_length, > (binaryfunc)((void *)0), > (ssizeargfunc)((void *)0), > (ssizeargfunc)array_item_nice, > (ssizessizeargfunc)array_slice, > (ssizeobjargproc)array_ass_big_item, > (ssizessizeobjargproc)array_ass_slice, > (objobjproc) array_contains, > (binaryfunc) ((void *)0), > (ssizeargfunc)((void *)0), ># 153 "numpy/core/src/multiarray/sequence.c" >}; ># 163 "numpy/core/src/multiarray/sequence.c" >static int >array_any_nonzero(PyArrayObject *mp) >{ > npy_intp index; > PyArrayIterObject *it; > npy_bool anyTRUE = 0; > > it = (PyArrayIterObject *)PyArray_IterNew((PyObject *)mp); > if (it == ((void *)0)) { > return anyTRUE; > } > index = it->size; > while(index--) { > if (mp->descr->f->nonzero(it->dataptr, mp)) { > anyTRUE = 1; > break; > } > { ((PyArrayIterObject *)(it))->index++; if (((PyArrayIterObject *)(it))->nd_m1 == 0) { { (((PyArrayIterObject *)(it)))->dataptr += ((PyArrayIterObject *)(((PyArrayIterObject *)(it))))->strides[0]; (((PyArrayIterObject *)(it)))->coordinates[0]++; }; } else if (((PyArrayIterObject *)(it))->contiguous) ((PyArrayIterObject *)(it))->dataptr += ((PyArrayIterObject *)(it))->ao->descr->elsize; else if (((PyArrayIterObject *)(it))->nd_m1 == 1) { { if ((((PyArrayIterObject *)(it)))->coordinates[1] < (((PyArrayIterObject *)(it)))->dims_m1[1]) { (((PyArrayIterObject *)(it)))->coordinates[1]++; (((PyArrayIterObject *)(it)))->dataptr += (((PyArrayIterObject *)(it)))->strides[1]; } else { (((PyArrayIterObject *)(it)))->coordinates[1] = 0; (((PyArrayIterObject *)(it)))->coordinates[0]++; (((PyArrayIterObject *)(it)))->dataptr += (((PyArrayIterObject *)(it)))->strides[0] - (((PyArrayIterObject *)(it)))->backstrides[1]; } }; } else { int __npy_i; for (__npy_i=((PyArrayIterObject *)(it))->nd_m1; __npy_i >= 0; __npy_i--) { if (((PyArrayIterObject *)(it))->coordinates[__npy_i] < ((PyArrayIterObject *)(it))->dims_m1[__npy_i]) { ((PyArrayIterObject *)(it))->coordinates[__npy_i]++; ((PyArrayIterObject *)(it))->dataptr += ((PyArrayIterObject *)(it))->strides[__npy_i]; break; } else { ((PyArrayIterObject *)(it))->coordinates[__npy_i] = 0; ((PyArrayIterObject *)(it))->dataptr -= ((PyArrayIterObject *)(it))->backstrides[__npy_i]; } } } }; > } > do { if ( --((PyObject*)(it))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(it)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(it)))); } while (0); > return anyTRUE; >} ># 27 "numpy/core/src/multiarray/multiarraymodule_onefile.c" 2 ># 1 "numpy/core/src/multiarray/methods.c" 1 ># 17 "numpy/core/src/multiarray/methods.c" ># 1 "numpy/core/src/multiarray/calculation.h" 1 > > > >static PyObject* >PyArray_ArgMax(PyArrayObject* self, int axis, PyArrayObject *out); > >static PyObject* >PyArray_ArgMin(PyArrayObject* self, int axis, PyArrayObject *out); > >static PyObject* >PyArray_Max(PyArrayObject* self, int axis, PyArrayObject* out); > >static PyObject* >PyArray_Min(PyArrayObject* self, int axis, PyArrayObject* out); > >static PyObject* >PyArray_Ptp(PyArrayObject* self, int axis, PyArrayObject* out); > >static PyObject* >PyArray_Mean(PyArrayObject* self, int axis, int rtype, PyArrayObject* out); > >static PyObject * >PyArray_Round(PyArrayObject *a, int decimals, PyArrayObject *out); > >static PyObject* >PyArray_Trace(PyArrayObject* self, int offset, int axis1, int axis2, > int rtype, PyArrayObject* out); > >static PyObject* >PyArray_Clip(PyArrayObject* self, PyObject* min, PyObject* max, PyArrayObject *out); > >static PyObject* >PyArray_Conjugate(PyArrayObject* self, PyArrayObject* out); > >static PyObject* >PyArray_Round(PyArrayObject* self, int decimals, PyArrayObject* out); > >static PyObject* >PyArray_Std(PyArrayObject* self, int axis, int rtype, PyArrayObject* out, > int variance); > >static PyObject * >__New_PyArray_Std(PyArrayObject *self, int axis, int rtype, PyArrayObject *out, > int variance, int num); > >static PyObject* >PyArray_Sum(PyArrayObject* self, int axis, int rtype, PyArrayObject* out); > >static PyObject* >PyArray_CumSum(PyArrayObject* self, int axis, int rtype, PyArrayObject* out); > >static PyObject* >PyArray_Prod(PyArrayObject* self, int axis, int rtype, PyArrayObject* out); > >static PyObject* >PyArray_CumProd(PyArrayObject* self, int axis, int rtype, PyArrayObject* out); > >static PyObject* >PyArray_All(PyArrayObject* self, int axis, PyArrayObject* out); > >static PyObject* >PyArray_Any(PyArrayObject* self, int axis, PyArrayObject* out); ># 18 "numpy/core/src/multiarray/methods.c" 2 > ># 1 "numpy/core/src/multiarray/methods.h" 1 ># 20 "numpy/core/src/multiarray/methods.c" 2 ># 28 "numpy/core/src/multiarray/methods.c" >static int >NpyArg_ParseKeywords(PyObject *keys, const char *format, char **kwlist, ...) >{ > PyObject *args = PyTuple_New(0); > int ret; > va_list va; > > if (args == ((void *)0)) { > PyErr_SetString(PyExc_RuntimeError, > "Failed to allocate new tuple"); > return 0; > } > __builtin_va_start(va,kwlist); > ret = _PyArg_VaParseTupleAndKeywords_SizeT(args, keys, format, kwlist, va); > __builtin_va_end(va); > do { if ( --((PyObject*)(args))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(args)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(args)))); } while (0); > return ret; >} > > > > >static PyObject * >array_take(PyArrayObject *self, PyObject *args, PyObject *kwds) >{ > int dimension = 32; > PyObject *indices; > PyArrayObject *out = ((void *)0); > NPY_CLIPMODE mode = NPY_RAISE; > static char *kwlist[] = {"indices", "axis", "out", "mode", ((void *)0)}; > > if (!_PyArg_ParseTupleAndKeywords_SizeT(args, kwds, "O|O&O&O&", kwlist, > &indices, > PyArray_AxisConverter, &dimension, > PyArray_OutputConverter, &out, > PyArray_ClipmodeConverter, &mode)) > return ((void *)0); > > return PyArray_Return((PyArrayObject *)(PyArray_TakeFrom(self, indices, dimension, out, mode))); >} > >static PyObject * >array_fill(PyArrayObject *self, PyObject *args) >{ > PyObject *obj; > if (!_PyArg_ParseTuple_SizeT(args, "O", &obj)) { > return ((void *)0); > } > if (PyArray_FillWithScalar(self, obj) < 0) { > return ((void *)0); > } > ( ((PyObject*)((&_Py_NoneStruct)))->ob_refcnt++); > return (&_Py_NoneStruct); >} > >static PyObject * >array_put(PyArrayObject *self, PyObject *args, PyObject *kwds) >{ > PyObject *indices, *values; > NPY_CLIPMODE mode = NPY_RAISE; > static char *kwlist[] = {"indices", "values", "mode", ((void *)0)}; > > if (!_PyArg_ParseTupleAndKeywords_SizeT(args, kwds, "OO|O&", kwlist, > &indices, > &values, > PyArray_ClipmodeConverter, &mode)) > return ((void *)0); > return PyArray_PutTo(self, values, indices, mode); >} > >static PyObject * >array_reshape(PyArrayObject *self, PyObject *args, PyObject *kwds) >{ > static char *keywords[] = {"order", ((void *)0)}; > PyArray_Dims newshape; > PyObject *ret; > NPY_ORDER order = NPY_CORDER; > Py_ssize_t n = PyTuple_Size(args); > > if (!NpyArg_ParseKeywords(kwds, "|O&", keywords, > PyArray_OrderConverter, &order)) { > return ((void *)0); > } > > if (n <= 1) { > if ((((PyTupleObject *)(args))->ob_item[0]) == (&_Py_NoneStruct)) { > return PyArray_View(self, ((void *)0), ((void *)0)); > } > if (!_PyArg_ParseTuple_SizeT(args, "O&", PyArray_IntpConverter, > &newshape)) { > return ((void *)0); > } > } > else { > if (!PyArray_IntpConverter(args, &newshape)) { > if (!PyErr_Occurred()) { > PyErr_SetString(PyExc_TypeError, > "invalid shape"); > } > goto fail; > } > } > ret = PyArray_Newshape(self, &newshape, order); > PyMem_Free(newshape.ptr); > return ret; > > fail: > PyMem_Free(newshape.ptr); > return ((void *)0); >} > >static PyObject * >array_squeeze(PyArrayObject *self, PyObject *args) >{ > if (!_PyArg_ParseTuple_SizeT(args, "")) { > return ((void *)0); > } > return PyArray_Squeeze(self); >} > >static PyObject * >array_view(PyArrayObject *self, PyObject *args, PyObject *kwds) >{ > PyObject *out_dtype = ((void *)0); > PyObject *out_type = ((void *)0); > PyArray_Descr *dtype = ((void *)0); > > static char *kwlist[] = {"dtype", "type", ((void *)0)}; > if (!_PyArg_ParseTupleAndKeywords_SizeT(args, kwds, "|OO", kwlist, > &out_dtype, > &out_type)) > return ((void *)0); > > > > if (out_dtype) { > > if (((((((PyObject*)(out_dtype))->ob_type))->tp_flags & ((1L<<31))) != 0) && > PyType_IsSubtype((PyTypeObject *)out_dtype, > &PyArray_Type)) { > if (out_type) { > PyErr_SetString(PyExc_ValueError, > "Cannot specify output type twice."); > return ((void *)0); > } > out_type = out_dtype; > out_dtype = ((void *)0); > } > } > > if ((out_type) && (!((((((PyObject*)(out_type))->ob_type))->tp_flags & ((1L<<31))) != 0) || > !PyType_IsSubtype((PyTypeObject *)out_type, > &PyArray_Type))) { > PyErr_SetString(PyExc_ValueError, > "Type must be a sub-type of ndarray type"); > return ((void *)0); > } > > if ((out_dtype) && > (PyArray_DescrConverter(out_dtype, &dtype) == 0)) { > PyErr_SetString(PyExc_ValueError, > "Dtype must be a numpy data-type"); > return ((void *)0); > } > > return PyArray_View(self, dtype, (PyTypeObject*)out_type); >} > >static PyObject * >array_argmax(PyArrayObject *self, PyObject *args, PyObject *kwds) >{ > int axis = 32; > PyArrayObject *out = ((void *)0); > static char *kwlist[] = {"axis", "out", ((void *)0)}; > > if (!_PyArg_ParseTupleAndKeywords_SizeT(args, kwds, "|O&O&", kwlist, > PyArray_AxisConverter, &axis, > PyArray_OutputConverter, &out)) > return ((void *)0); > > return PyArray_Return((PyArrayObject *)(PyArray_ArgMax(self, axis, out))); >} > >static PyObject * >array_argmin(PyArrayObject *self, PyObject *args, PyObject *kwds) >{ > int axis = 32; > PyArrayObject *out = ((void *)0); > static char *kwlist[] = {"axis", "out", ((void *)0)}; > > if (!_PyArg_ParseTupleAndKeywords_SizeT(args, kwds, "|O&O&", kwlist, > PyArray_AxisConverter, &axis, > PyArray_OutputConverter, &out)) > return ((void *)0); > > return PyArray_Return((PyArrayObject *)(PyArray_ArgMin(self, axis, out))); >} > >static PyObject * >array_max(PyArrayObject *self, PyObject *args, PyObject *kwds) >{ > int axis = 32; > PyArrayObject *out = ((void *)0); > static char *kwlist[] = {"axis", "out", ((void *)0)}; > > if (!_PyArg_ParseTupleAndKeywords_SizeT(args, kwds, "|O&O&", kwlist, > PyArray_AxisConverter, &axis, > PyArray_OutputConverter, &out)) > return ((void *)0); > > return PyArray_Max(self, axis, out); >} > >static PyObject * >array_ptp(PyArrayObject *self, PyObject *args, PyObject *kwds) >{ > int axis = 32; > PyArrayObject *out = ((void *)0); > static char *kwlist[] = {"axis", "out", ((void *)0)}; > > if (!_PyArg_ParseTupleAndKeywords_SizeT(args, kwds, "|O&O&", kwlist, > PyArray_AxisConverter, &axis, > PyArray_OutputConverter, &out)) > return ((void *)0); > > return PyArray_Ptp(self, axis, out); >} > > >static PyObject * >array_min(PyArrayObject *self, PyObject *args, PyObject *kwds) >{ > int axis = 32; > PyArrayObject *out = ((void *)0); > static char *kwlist[] = {"axis", "out", ((void *)0)}; > > if (!_PyArg_ParseTupleAndKeywords_SizeT(args, kwds, "|O&O&", kwlist, > PyArray_AxisConverter, &axis, > PyArray_OutputConverter, &out)) > return ((void *)0); > > return PyArray_Min(self, axis, out); >} > >static PyObject * >array_swapaxes(PyArrayObject *self, PyObject *args) >{ > int axis1, axis2; > > if (!_PyArg_ParseTuple_SizeT(args, "ii", &axis1, &axis2)) { > return ((void *)0); > } > return PyArray_SwapAxes(self, axis1, axis2); >} > > > > > > >static PyObject * >PyArray_GetField(PyArrayObject *self, PyArray_Descr *typed, int offset) >{ > PyObject *ret = ((void *)0); > > if (offset < 0 || (offset + typed->elsize) > self->descr->elsize) { > PyErr_Format(PyExc_ValueError, > "Need 0 <= offset <= %d for requested type " "but received offset = %d", > > self->descr->elsize-typed->elsize, offset); > do { if ( --((PyObject*)(typed))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(typed)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(typed)))); } while (0); > return ((void *)0); > } > ret = PyArray_NewFromDescr((((PyObject*)(self))->ob_type), > typed, > self->nd, self->dimensions, > self->strides, > self->data + offset, > self->flags&(~0x0002), > (PyObject *)self); > if (ret == ((void *)0)) { > return ((void *)0); > } > ( ((PyObject*)(self))->ob_refcnt++); > ((PyArrayObject *)ret)->base = (PyObject *)self; > > PyArray_UpdateFlags((PyArrayObject *)ret, (0x0001 | 0x0002 | 0x0100)); > return ret; >} > >static PyObject * >array_getfield(PyArrayObject *self, PyObject *args, PyObject *kwds) >{ > > PyArray_Descr *dtype = ((void *)0); > int offset = 0; > static char *kwlist[] = {"dtype", "offset", 0}; > > if (!_PyArg_ParseTupleAndKeywords_SizeT(args, kwds, "O&|i", kwlist, > PyArray_DescrConverter, &dtype, > &offset)) { > do { if ((dtype) == ((void *)0)) ; else do { if ( --((PyObject*)(dtype))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(dtype)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(dtype)))); } while (0); } while (0); > return ((void *)0); > } > > return PyArray_GetField(self, dtype, offset); >} > > > > > >static int >PyArray_SetField(PyArrayObject *self, PyArray_Descr *dtype, > int offset, PyObject *val) >{ > PyObject *ret = ((void *)0); > int retval = 0; > > if (offset < 0 || (offset + dtype->elsize) > self->descr->elsize) { > PyErr_Format(PyExc_ValueError, > "Need 0 <= offset <= %d for requested type " "but received offset = %d", > > self->descr->elsize-dtype->elsize, offset); > do { if ( --((PyObject*)(dtype))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(dtype)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(dtype)))); } while (0); > return -1; > } > ret = PyArray_NewFromDescr((((PyObject*)(self))->ob_type), > dtype, self->nd, self->dimensions, > self->strides, self->data + offset, > self->flags, (PyObject *)self); > if (ret == ((void *)0)) { > return -1; > } > ( ((PyObject*)(self))->ob_refcnt++); > ((PyArrayObject *)ret)->base = (PyObject *)self; > > PyArray_UpdateFlags((PyArrayObject *)ret, (0x0001 | 0x0002 | 0x0100)); > retval = PyArray_CopyObject((PyArrayObject *)ret, val); > do { if ( --((PyObject*)(ret))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(ret)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(ret)))); } while (0); > return retval; >} > >static PyObject * >array_setfield(PyArrayObject *self, PyObject *args, PyObject *kwds) >{ > PyArray_Descr *dtype = ((void *)0); > int offset = 0; > PyObject *value; > static char *kwlist[] = {"value", "dtype", "offset", 0}; > > if (!_PyArg_ParseTupleAndKeywords_SizeT(args, kwds, "OO&|i", kwlist, > &value, > PyArray_DescrConverter, &dtype, > &offset)) { > do { if ((dtype) == ((void *)0)) ; else do { if ( --((PyObject*)(dtype))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(dtype)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(dtype)))); } while (0); } while (0); > return ((void *)0); > } > > if (((((((PyArrayObject *)(self))->descr))->flags & (0x01)) == (0x01))) { > PyErr_SetString(PyExc_RuntimeError, > "cannot call setfield on an object array"); > do { if ( --((PyObject*)(dtype))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(dtype)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(dtype)))); } while (0); > return ((void *)0); > } > > if (PyArray_SetField(self, dtype, offset, value) < 0) { > return ((void *)0); > } > ( ((PyObject*)((&_Py_NoneStruct)))->ob_refcnt++); > return (&_Py_NoneStruct); >} > > > > > >static PyObject * >PyArray_Byteswap(PyArrayObject *self, npy_bool inplace) >{ > PyArrayObject *ret; > npy_intp size; > PyArray_CopySwapNFunc *copyswapn; > PyArrayIterObject *it; > > copyswapn = self->descr->f->copyswapn; > if (inplace) { > if (!((((PyArrayObject *)(self))->flags & (0x0400)) == (0x0400))) { > PyErr_SetString(PyExc_RuntimeError, > "Cannot byte-swap in-place on a " "read-only array"); > > return ((void *)0); > } > size = PyArray_MultiplyList((((PyArrayObject *)(self))->dimensions), (((PyArrayObject *)(self))->nd)); > if (((((PyArrayObject *)(self))->nd) == 0 || ((((PyArrayObject *)(self))->flags & (0x0001)) == (0x0001)) || ((((PyArrayObject *)(self))->flags & (0x0002)) == (0x0002)))) { > copyswapn(self->data, self->descr->elsize, ((void *)0), -1, size, 1, self); > } > else { > int axis = -1; > npy_intp stride; > it = (PyArrayIterObject *) PyArray_IterAllButAxis((PyObject *)self, &axis); > > stride = self->strides[axis]; > size = self->dimensions[axis]; > while (it->index < it->size) { > copyswapn(it->dataptr, stride, ((void *)0), -1, size, 1, self); > { ((PyArrayIterObject *)(it))->index++; if (((PyArrayIterObject *)(it))->nd_m1 == 0) { { (((PyArrayIterObject *)(it)))->dataptr += ((PyArrayIterObject *)(((PyArrayIterObject *)(it))))->strides[0]; (((PyArrayIterObject *)(it)))->coordinates[0]++; }; } else if (((PyArrayIterObject *)(it))->contiguous) ((PyArrayIterObject *)(it))->dataptr += ((PyArrayIterObject *)(it))->ao->descr->elsize; else if (((PyArrayIterObject *)(it))->nd_m1 == 1) { { if ((((PyArrayIterObject *)(it)))->coordinates[1] < (((PyArrayIterObject *)(it)))->dims_m1[1]) { (((PyArrayIterObject *)(it)))->coordinates[1]++; (((PyArrayIterObject *)(it)))->dataptr += (((PyArrayIterObject *)(it)))->strides[1]; } else { (((PyArrayIterObject *)(it)))->coordinates[1] = 0; (((PyArrayIterObject *)(it)))->coordinates[0]++; (((PyArrayIterObject *)(it)))->dataptr += (((PyArrayIterObject *)(it)))->strides[0] - (((PyArrayIterObject *)(it)))->backstrides[1]; } }; } else { int __npy_i; for (__npy_i=((PyArrayIterObject *)(it))->nd_m1; __npy_i >= 0; __npy_i--) { if (((PyArrayIterObject *)(it))->coordinates[__npy_i] < ((PyArrayIterObject *)(it))->dims_m1[__npy_i]) { ((PyArrayIterObject *)(it))->coordinates[__npy_i]++; ((PyArrayIterObject *)(it))->dataptr += ((PyArrayIterObject *)(it))->strides[__npy_i]; break; } else { ((PyArrayIterObject *)(it))->coordinates[__npy_i] = 0; ((PyArrayIterObject *)(it))->dataptr -= ((PyArrayIterObject *)(it))->backstrides[__npy_i]; } } } }; > } > do { if ( --((PyObject*)(it))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(it)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(it)))); } while (0); > } > > ( ((PyObject*)(self))->ob_refcnt++); > return (PyObject *)self; > } > else { > PyObject *new; > if ((ret = (PyArrayObject *)PyArray_NewCopy(self,-1)) == ((void *)0)) { > return ((void *)0); > } > new = PyArray_Byteswap(ret, 1); > do { if ( --((PyObject*)(new))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(new)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(new)))); } while (0); > return (PyObject *)ret; > } >} > > >static PyObject * >array_byteswap(PyArrayObject *self, PyObject *args) >{ > npy_bool inplace = 0; > > if (!_PyArg_ParseTuple_SizeT(args, "|O&", > PyArray_BoolConverter, &inplace)) { > return ((void *)0); > } > return PyArray_Byteswap(self, inplace); >} > >static PyObject * >array_tolist(PyArrayObject *self, PyObject *args) >{ > if (!_PyArg_ParseTuple_SizeT(args, "")) { > return ((void *)0); > } > return PyArray_ToList(self); >} > > >static PyObject * >array_tostring(PyArrayObject *self, PyObject *args, PyObject *kwds) >{ > NPY_ORDER order = NPY_CORDER; > static char *kwlist[] = {"order", ((void *)0)}; > > if (!_PyArg_ParseTupleAndKeywords_SizeT(args, kwds, "|O&", kwlist, > PyArray_OrderConverter, &order)) { > return ((void *)0); > } > return PyArray_ToString(self, order); >} > > > > > >static PyObject * >array_tofile(PyArrayObject *self, PyObject *args, PyObject *kwds) >{ > int ret, ret2; > PyObject *file; > FILE *fd; > char *sep = ""; > char *format = ""; > static char *kwlist[] = {"file", "sep", "format", ((void *)0)}; > > if (!_PyArg_ParseTupleAndKeywords_SizeT(args, kwds, "O|ss", kwlist, > &file, > &sep, > &format)) { > return ((void *)0); > } > > if (((((((PyObject*)(file))->ob_type))->tp_flags & ((1L<<27))) != 0) || ((((((PyObject*)(file))->ob_type))->tp_flags & ((1L<<28))) != 0)) { > file = npy_PyFile_OpenFile(file, "wb"); > if (file == ((void *)0)) { > return ((void *)0); > } > } > else { > ( ((PyObject*)(file))->ob_refcnt++); > } > fd = PyFile_AsFile(file); > if (fd == ((void *)0)) { > PyErr_SetString(PyExc_IOError, "first argument must be a " "string or open file"); > > do { if ( --((PyObject*)(file))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(file)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(file)))); } while (0); > return ((void *)0); > } > ret = PyArray_ToFile(self, fd, sep, format); > ret2 = (0); > do { if ( --((PyObject*)(file))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(file)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(file)))); } while (0); > if (ret < 0 || ret2 < 0) { > return ((void *)0); > } > ( ((PyObject*)((&_Py_NoneStruct)))->ob_refcnt++); > return (&_Py_NoneStruct); >} > > >static PyObject * >array_toscalar(PyArrayObject *self, PyObject *args) { > int n, nd; > n = (((PyVarObject*)(args))->ob_size); > > if (n == 1) { > PyObject *obj; > obj = (((PyTupleObject *)(args))->ob_item[0]); > if (((((((PyObject*)(obj))->ob_type))->tp_flags & ((1L<<26))) != 0)) { > args = obj; > n = (((PyVarObject*)(args))->ob_size); > } > } > > if (n == 0) { > if (self->nd == 0 || PyArray_MultiplyList((((PyArrayObject *)(self))->dimensions), (((PyArrayObject *)(self))->nd)) == 1) > return self->descr->f->getitem(self->data, self); > else { > PyErr_SetString(PyExc_ValueError, > "can only convert an array " " of size 1 to a Python scalar"); > > return ((void *)0); > } > } > else if (n != self->nd && (n > 1 || self->nd == 0)) { > PyErr_SetString(PyExc_ValueError, > "incorrect number of indices for " "array"); > > return ((void *)0); > } > else if (n == 1) { > npy_intp value, loc, index, factor; > npy_intp factors[32]; > value = PyArray_PyIntAsIntp((((PyTupleObject *)(args))->ob_item[0])); > if ((((value) == -1) && PyErr_Occurred())) { > PyErr_SetString(PyExc_ValueError, "invalid integer"); > return ((void *)0); > } > factor = PyArray_MultiplyList((((PyArrayObject *)(self))->dimensions), (((PyArrayObject *)(self))->nd)); > if (value < 0) value += factor; > if ((value >= factor) || (value < 0)) { > PyErr_SetString(PyExc_ValueError, > "index out of bounds"); > return ((void *)0); > } > if (self->nd == 1) { > value *= self->strides[0]; > return self->descr->f->getitem(self->data + value, > self); > } > nd = self->nd; > factor = 1; > while (nd--) { > factors[nd] = factor; > factor *= self->dimensions[nd]; > } > loc = 0; > for (nd = 0; nd < self->nd; nd++) { > index = value / factors[nd]; > value = value % factors[nd]; > loc += self->strides[nd]*index; > } > > return self->descr->f->getitem(self->data + loc, > self); > > } > else { > npy_intp loc, index[32]; > nd = PyArray_IntpFromSequence(args, index, 32); > if (nd < n) { > return ((void *)0); > } > loc = 0; > while (nd--) { > if (index[nd] < 0) { > index[nd] += self->dimensions[nd]; > } > if (index[nd] < 0 || > index[nd] >= self->dimensions[nd]) { > PyErr_SetString(PyExc_ValueError, > "index out of bounds"); > return ((void *)0); > } > loc += self->strides[nd]*index[nd]; > } > return self->descr->f->getitem(self->data + loc, self); > } >} > >static PyObject * >array_setscalar(PyArrayObject *self, PyObject *args) { > int n, nd; > int ret = -1; > PyObject *obj; > n = (((PyVarObject*)(args))->ob_size) - 1; > > if (n < 0) { > PyErr_SetString(PyExc_ValueError, > "itemset must have at least one argument"); > return ((void *)0); > } > obj = (((PyTupleObject *)(args))->ob_item[n]); > if (n == 0) { > if (self->nd == 0 || PyArray_MultiplyList((((PyArrayObject *)(self))->dimensions), (((PyArrayObject *)(self))->nd)) == 1) { > ret = self->descr->f->setitem(obj, self->data, self); > } > else { > PyErr_SetString(PyExc_ValueError, > "can only place a scalar for an " > " array of size 1"); > return ((void *)0); > } > } > else if (n != self->nd && (n > 1 || self->nd == 0)) { > PyErr_SetString(PyExc_ValueError, > "incorrect number of indices for " "array"); > > return ((void *)0); > } > else if (n == 1) { > npy_intp value, loc, index, factor; > npy_intp factors[32]; > PyObject *indobj; > > indobj = (((PyTupleObject *)(args))->ob_item[0]); > if (((((((PyObject*)(indobj))->ob_type))->tp_flags & ((1L<<26))) != 0)) { > PyObject *res; > PyObject *newargs; > PyObject *tmp; > int i, nn; > nn = (((PyVarObject*)(indobj))->ob_size); > newargs = PyTuple_New(nn+1); > ( ((PyObject*)(obj))->ob_refcnt++); > for (i = 0; i < nn; i++) { > tmp = (((PyTupleObject *)(indobj))->ob_item[i]); > ( ((PyObject*)(tmp))->ob_refcnt++); > (((PyTupleObject *)(newargs))->ob_item[i] = tmp); > } > (((PyTupleObject *)(newargs))->ob_item[nn] = obj); > > res = array_setscalar(self, newargs); > do { if ( --((PyObject*)(newargs))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(newargs)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(newargs)))); } while (0); > return res; > } > value = PyArray_PyIntAsIntp(indobj); > if ((((value) == -1) && PyErr_Occurred())) { > PyErr_SetString(PyExc_ValueError, "invalid integer"); > return ((void *)0); > } > if (value >= PyArray_MultiplyList((((PyArrayObject *)(self))->dimensions), (((PyArrayObject *)(self))->nd))) { > PyErr_SetString(PyExc_ValueError, > "index out of bounds"); > return ((void *)0); > } > if (self->nd == 1) { > value *= self->strides[0]; > ret = self->descr->f->setitem(obj, self->data + value, > self); > goto finish; > } > nd = self->nd; > factor = 1; > while (nd--) { > factors[nd] = factor; > factor *= self->dimensions[nd]; > } > loc = 0; > for (nd = 0; nd < self->nd; nd++) { > index = value / factors[nd]; > value = value % factors[nd]; > loc += self->strides[nd]*index; > } > > ret = self->descr->f->setitem(obj, self->data + loc, self); > } > else { > npy_intp loc, index[32]; > PyObject *tupargs; > tupargs = PyTuple_GetSlice(args, 0, n); > nd = PyArray_IntpFromSequence(tupargs, index, 32); > do { if ( --((PyObject*)(tupargs))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(tupargs)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(tupargs)))); } while (0); > if (nd < n) { > return ((void *)0); > } > loc = 0; > while (nd--) { > if (index[nd] < 0) { > index[nd] += self->dimensions[nd]; > } > if (index[nd] < 0 || > index[nd] >= self->dimensions[nd]) { > PyErr_SetString(PyExc_ValueError, > "index out of bounds"); > return ((void *)0); > } > loc += self->strides[nd]*index[nd]; > } > ret = self->descr->f->setitem(obj, self->data + loc, self); > } > > finish: > if (ret < 0) { > return ((void *)0); > } > ( ((PyObject*)((&_Py_NoneStruct)))->ob_refcnt++); > return (&_Py_NoneStruct); >} > > >static PyObject * >array_setasflat(PyArrayObject *self, PyObject *args) >{ > PyObject *arr_in; > PyArrayObject *arr; > > if (!_PyArg_ParseTuple_SizeT(args, "O", &arr_in)) { > return ((void *)0); > } > > arr = (PyArrayObject *)PyArray_FromAny(arr_in, ((void *)0), 0, 0, 0, ((void *)0)); > if (arr == ((void *)0)) { > return ((void *)0); > } > > if (PyArray_CopyAnyInto(self, arr) != 0) { > do { if ( --((PyObject*)(arr))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(arr)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(arr)))); } while (0); > return ((void *)0); > } > > do { if ( --((PyObject*)(arr))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(arr)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(arr)))); } while (0); > return ( ((PyObject*)((&_Py_NoneStruct)))->ob_refcnt++), (&_Py_NoneStruct); >} > >static PyObject * >array_astype(PyArrayObject *self, PyObject *args) >{ > PyArray_Descr *descr = ((void *)0); > > if (!_PyArg_ParseTuple_SizeT(args, "O&", PyArray_DescrConverter, > &descr)) { > do { if ((descr) == ((void *)0)) ; else do { if ( --((PyObject*)(descr))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(descr)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(descr)))); } while (0); } while (0); > return ((void *)0); > } > > return PyArray_CastToType(self, descr, (((((PyArrayObject *)(self))->flags & (0x0002)) == (0x0002)) && ((((PyArrayObject *)(self))->nd) > 1))); >} > > > > >static PyObject * >array_wraparray(PyArrayObject *self, PyObject *args) >{ > PyObject *arr; > PyObject *ret; > > if (PyTuple_Size(args) < 1) { > PyErr_SetString(PyExc_TypeError, > "only accepts 1 argument"); > return ((void *)0); > } > arr = (((PyTupleObject *)(args))->ob_item[0]); > if (arr == ((void *)0)) { > return ((void *)0); > } > if (!((((PyObject*)(arr))->ob_type) == (&PyArray_Type) || PyType_IsSubtype((((PyObject*)(arr))->ob_type), (&PyArray_Type)))) { > PyErr_SetString(PyExc_TypeError, > "can only be called with ndarray object"); > return ((void *)0); > } > > if ((((PyObject*)(self))->ob_type) != (((PyObject*)(arr))->ob_type)){ > ( ((PyObject*)((((PyArrayObject *)(arr))->descr)))->ob_refcnt++); > ret = PyArray_NewFromDescr((((PyObject*)(self))->ob_type), > (((PyArrayObject *)(arr))->descr), > (((PyArrayObject *)(arr))->nd), > (((PyArrayObject *)(arr))->dimensions), > (((PyArrayObject *)(arr))->strides), ((void *)(((PyArrayObject *)(arr))->data)), > (((PyArrayObject *)(arr))->flags), (PyObject *)self); > if (ret == ((void *)0)) { > return ((void *)0); > } > ( ((PyObject*)(arr))->ob_refcnt++); > (((PyArrayObject *)(ret))->base) = arr; > return ret; > } else { > > ( ((PyObject*)(arr))->ob_refcnt++); > return arr; > } >} > > >static PyObject * >array_preparearray(PyArrayObject *self, PyObject *args) >{ > PyObject *arr; > PyObject *ret; > > if (PyTuple_Size(args) < 1) { > PyErr_SetString(PyExc_TypeError, > "only accepts 1 argument"); > return ((void *)0); > } > arr = (((PyTupleObject *)(args))->ob_item[0]); > if (!((((PyObject*)(arr))->ob_type) == (&PyArray_Type) || PyType_IsSubtype((((PyObject*)(arr))->ob_type), (&PyArray_Type)))) { > PyErr_SetString(PyExc_TypeError, > "can only be called with ndarray object"); > return ((void *)0); > } > > if ((((PyObject*)(self))->ob_type) == (((PyObject*)(arr))->ob_type)) { > > ( ((PyObject*)(arr))->ob_refcnt++); > return arr; > } > > ( ((PyObject*)((((PyArrayObject *)(arr))->descr)))->ob_refcnt++); > ret = PyArray_NewFromDescr((((PyObject*)(self))->ob_type), > (((PyArrayObject *)(arr))->descr), > (((PyArrayObject *)(arr))->nd), > (((PyArrayObject *)(arr))->dimensions), > (((PyArrayObject *)(arr))->strides), ((void *)(((PyArrayObject *)(arr))->data)), > (((PyArrayObject *)(arr))->flags), (PyObject *)self); > if (ret == ((void *)0)) { > return ((void *)0); > } > ( ((PyObject*)(arr))->ob_refcnt++); > (((PyArrayObject *)(ret))->base) = arr; > return ret; >} > > >static PyObject * >array_getarray(PyArrayObject *self, PyObject *args) >{ > PyArray_Descr *newtype = ((void *)0); > PyObject *ret; > > if (!_PyArg_ParseTuple_SizeT(args, "|O&", > PyArray_DescrConverter, &newtype)) { > do { if ((newtype) == ((void *)0)) ; else do { if ( --((PyObject*)(newtype))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(newtype)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(newtype)))); } while (0); } while (0); > return ((void *)0); > } > > > if (!(((PyObject*)(self))->ob_type == &PyArray_Type)) { > PyObject *new; > PyTypeObject *subtype = &PyArray_Type; > > if (!PyType_IsSubtype((((PyObject*)(self))->ob_type), &PyArray_Type)) { > subtype = &PyArray_Type; > } > > ( ((PyObject*)((((PyArrayObject *)(self))->descr)))->ob_refcnt++); > new = PyArray_NewFromDescr(subtype, > (((PyArrayObject *)(self))->descr), > (((PyArrayObject *)(self))->nd), > (((PyArrayObject *)(self))->dimensions), > (((PyArrayObject *)(self))->strides), > ((void *)(((PyArrayObject *)(self))->data)), > (((PyArrayObject *)(self))->flags), ((void *)0)); > if (new == ((void *)0)) { > return ((void *)0); > } > ( ((PyObject*)(self))->ob_refcnt++); > (((PyArrayObject *)(new))->base) = (PyObject *)self; > self = (PyArrayObject *)new; > } > else { > ( ((PyObject*)(self))->ob_refcnt++); > } > > if ((newtype == ((void *)0)) || > PyArray_EquivTypes(self->descr, newtype)) { > return (PyObject *)self; > } > else { > ret = PyArray_CastToType(self, newtype, 0); > do { if ( --((PyObject*)(self))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(self)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(self)))); } while (0); > return ret; > } >} > > >static PyObject * >array_copy(PyArrayObject *self, PyObject *args, PyObject *kwds) >{ > NPY_ORDER order = NPY_CORDER; > static char *kwlist[] = {"order", ((void *)0)}; > > if (!_PyArg_ParseTupleAndKeywords_SizeT(args, kwds, "|O&", kwlist, > PyArray_OrderConverter, &order)) { > return ((void *)0); > } > > return PyArray_NewCopy(self, order); >} > > >static PyObject * >array_resize(PyArrayObject *self, PyObject *args, PyObject *kwds) >{ > static char *kwlist[] = {"refcheck", ((void *)0)}; > Py_ssize_t size = PyTuple_Size(args); > int refcheck = 1; > PyArray_Dims newshape; > PyObject *ret, *obj; > > > if (!NpyArg_ParseKeywords(kwds, "|i", kwlist, &refcheck)) { > return ((void *)0); > } > > if (size == 0) { > ( ((PyObject*)((&_Py_NoneStruct)))->ob_refcnt++); > return (&_Py_NoneStruct); > } > else if (size == 1) { > obj = (((PyTupleObject *)(args))->ob_item[0]); > if (obj == (&_Py_NoneStruct)) { > ( ((PyObject*)((&_Py_NoneStruct)))->ob_refcnt++); > return (&_Py_NoneStruct); > } > args = obj; > } > if (!PyArray_IntpConverter(args, &newshape)) { > if (!PyErr_Occurred()) { > PyErr_SetString(PyExc_TypeError, "invalid shape"); > } > return ((void *)0); > } > > ret = PyArray_Resize(self, &newshape, refcheck, NPY_CORDER); > PyMem_Free(newshape.ptr); > if (ret == ((void *)0)) { > return ((void *)0); > } > do { if ( --((PyObject*)(ret))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(ret)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(ret)))); } while (0); > ( ((PyObject*)((&_Py_NoneStruct)))->ob_refcnt++); > return (&_Py_NoneStruct); >} > >static PyObject * >array_repeat(PyArrayObject *self, PyObject *args, PyObject *kwds) { > PyObject *repeats; > int axis = 32; > static char *kwlist[] = {"repeats", "axis", ((void *)0)}; > > if (!_PyArg_ParseTupleAndKeywords_SizeT(args, kwds, "O|O&", kwlist, > &repeats, > PyArray_AxisConverter, &axis)) { > return ((void *)0); > } > return PyArray_Return((PyArrayObject *)(PyArray_Repeat(self, repeats, axis))); >} > >static PyObject * >array_choose(PyArrayObject *self, PyObject *args, PyObject *kwds) >{ > static char *keywords[] = {"out", "mode", ((void *)0)}; > PyObject *choices; > PyArrayObject *out = ((void *)0); > NPY_CLIPMODE clipmode = NPY_RAISE; > Py_ssize_t n = PyTuple_Size(args); > > if (n <= 1) { > if (!_PyArg_ParseTuple_SizeT(args, "O", &choices)) { > return ((void *)0); > } > } > else { > choices = args; > } > > if (!NpyArg_ParseKeywords(kwds, "|O&O&", keywords, > PyArray_OutputConverter, &out, > PyArray_ClipmodeConverter, &clipmode)) { > return ((void *)0); > } > > return PyArray_Return((PyArrayObject *)(PyArray_Choose(self, choices, out, clipmode))); >} > >static PyObject * >array_sort(PyArrayObject *self, PyObject *args, PyObject *kwds) >{ > int axis=-1; > int val; > NPY_SORTKIND sortkind = NPY_QUICKSORT; > PyObject *order = ((void *)0); > PyArray_Descr *saved = ((void *)0); > PyArray_Descr *newd; > static char *kwlist[] = {"axis", "kind", "order", ((void *)0)}; > > if (!_PyArg_ParseTupleAndKeywords_SizeT(args, kwds, "|iO&O", kwlist, > &axis, > PyArray_SortkindConverter, &sortkind, > &order)) { > return ((void *)0); > } > if (order == (&_Py_NoneStruct)) { > order = ((void *)0); > } > if (order != ((void *)0)) { > PyObject *new_name; > PyObject *_numpy_internal; > saved = self->descr; > if (saved->names == ((void *)0)) { > PyErr_SetString(PyExc_ValueError, "Cannot specify " "order when the array has no fields."); > > return ((void *)0); > } > _numpy_internal = PyImport_ImportModule("numpy.core._internal"); > if (_numpy_internal == ((void *)0)) { > return ((void *)0); > } > new_name = _PyObject_CallMethod_SizeT(_numpy_internal, "_newnames", > "OO", saved, order); > do { if ( --((PyObject*)(_numpy_internal))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(_numpy_internal)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(_numpy_internal)))); } while (0); > if (new_name == ((void *)0)) { > return ((void *)0); > } > newd = PyArray_DescrNew(saved); > newd->names = new_name; > self->descr = newd; > } > > val = PyArray_Sort(self, axis, sortkind); > if (order != ((void *)0)) { > do { if ((self->descr) == ((void *)0)) ; else do { if ( --((PyObject*)(self->descr))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(self->descr)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(self->descr)))); } while (0); } while (0); > self->descr = saved; > } > if (val < 0) { > return ((void *)0); > } > ( ((PyObject*)((&_Py_NoneStruct)))->ob_refcnt++); > return (&_Py_NoneStruct); >} > >static PyObject * >array_argsort(PyArrayObject *self, PyObject *args, PyObject *kwds) >{ > int axis = -1; > NPY_SORTKIND sortkind = NPY_QUICKSORT; > PyObject *order = ((void *)0), *res; > PyArray_Descr *newd, *saved=((void *)0); > static char *kwlist[] = {"axis", "kind", "order", ((void *)0)}; > > if (!_PyArg_ParseTupleAndKeywords_SizeT(args, kwds, "|O&O&O", kwlist, > PyArray_AxisConverter, &axis, > PyArray_SortkindConverter, &sortkind, > &order)) { > return ((void *)0); > } > if (order == (&_Py_NoneStruct)) { > order = ((void *)0); > } > if (order != ((void *)0)) { > PyObject *new_name; > PyObject *_numpy_internal; > saved = self->descr; > if (saved->names == ((void *)0)) { > PyErr_SetString(PyExc_ValueError, "Cannot specify " "order when the array has no fields."); > > return ((void *)0); > } > _numpy_internal = PyImport_ImportModule("numpy.core._internal"); > if (_numpy_internal == ((void *)0)) { > return ((void *)0); > } > new_name = _PyObject_CallMethod_SizeT(_numpy_internal, "_newnames", > "OO", saved, order); > do { if ( --((PyObject*)(_numpy_internal))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(_numpy_internal)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(_numpy_internal)))); } while (0); > if (new_name == ((void *)0)) { > return ((void *)0); > } > newd = PyArray_DescrNew(saved); > newd->names = new_name; > self->descr = newd; > } > > res = PyArray_ArgSort(self, axis, sortkind); > if (order != ((void *)0)) { > do { if ((self->descr) == ((void *)0)) ; else do { if ( --((PyObject*)(self->descr))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(self->descr)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(self->descr)))); } while (0); } while (0); > self->descr = saved; > } > return PyArray_Return((PyArrayObject *)(res)); >} > >static PyObject * >array_searchsorted(PyArrayObject *self, PyObject *args, PyObject *kwds) >{ > static char *kwlist[] = {"keys", "side", ((void *)0)}; > PyObject *keys; > NPY_SEARCHSIDE side = NPY_SEARCHLEFT; > > if (!_PyArg_ParseTupleAndKeywords_SizeT(args, kwds, "O|O&:searchsorted", > kwlist, &keys, > PyArray_SearchsideConverter, &side)) { > return ((void *)0); > } > return PyArray_Return((PyArrayObject *)(PyArray_SearchSorted(self, keys, side))); >} > >static void >_deepcopy_call(char *iptr, char *optr, PyArray_Descr *dtype, > PyObject *deepcopy, PyObject *visit) >{ > if (!(((dtype)->flags & (0x01)) == (0x01))) { > return; > } > else if ((((PyArray_Descr *)(dtype))->names != ((void *)0))) { > PyObject *key, *value, *title = ((void *)0); > PyArray_Descr *new; > int offset; > Py_ssize_t pos = 0; > while (PyDict_Next(dtype->fields, &pos, &key, &value)) { > if (((((PyVarObject*)((value)))->ob_size)==3) && ((((PyTupleObject *)((value)))->ob_item[2]) == (key))) { > continue; > } > if (!_PyArg_ParseTuple_SizeT(value, "Oi|O", &new, &offset, > &title)) { > return; > } > _deepcopy_call(iptr + offset, optr + offset, new, > deepcopy, visit); > } > } > else { > PyObject *itemp, *otemp; > PyObject *res; > (*((PyObject **)(&itemp)) = *((PyObject **)(iptr))); > (*((PyObject **)(&otemp)) = *((PyObject **)(optr))); > do { if ((itemp) == ((void *)0)) ; else ( ((PyObject*)(itemp))->ob_refcnt++); } while (0); > > res = PyObject_CallFunctionObjArgs(deepcopy, itemp, visit, ((void *)0)); > do { if ((itemp) == ((void *)0)) ; else do { if ( --((PyObject*)(itemp))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(itemp)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(itemp)))); } while (0); } while (0); > do { if ((otemp) == ((void *)0)) ; else do { if ( --((PyObject*)(otemp))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(otemp)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(otemp)))); } while (0); } while (0); > (*((PyObject **)(optr)) = *((PyObject **)(&res))); > } > >} > > >static PyObject * >array_deepcopy(PyArrayObject *self, PyObject *args) >{ > PyObject* visit; > char *optr; > PyArrayIterObject *it; > PyObject *copy, *ret, *deepcopy; > > if (!_PyArg_ParseTuple_SizeT(args, "O", &visit)) { > return ((void *)0); > } > ret = PyArray_NewCopy(self, NPY_CORDER); > if ((((self->descr)->flags & (0x01)) == (0x01))) { > copy = PyImport_ImportModule("copy"); > if (copy == ((void *)0)) { > return ((void *)0); > } > deepcopy = PyObject_GetAttrString(copy, "deepcopy"); > do { if ( --((PyObject*)(copy))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(copy)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(copy)))); } while (0); > if (deepcopy == ((void *)0)) { > return ((void *)0); > } > it = (PyArrayIterObject *)PyArray_IterNew((PyObject *)self); > if (it == ((void *)0)) { > do { if ( --((PyObject*)(deepcopy))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(deepcopy)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(deepcopy)))); } while (0); > return ((void *)0); > } > optr = ((void *)(((PyArrayObject *)(ret))->data)); > while(it->index < it->size) { > _deepcopy_call(it->dataptr, optr, self->descr, deepcopy, visit); > optr += self->descr->elsize; > { ((PyArrayIterObject *)(it))->index++; if (((PyArrayIterObject *)(it))->nd_m1 == 0) { { (((PyArrayIterObject *)(it)))->dataptr += ((PyArrayIterObject *)(((PyArrayIterObject *)(it))))->strides[0]; (((PyArrayIterObject *)(it)))->coordinates[0]++; }; } else if (((PyArrayIterObject *)(it))->contiguous) ((PyArrayIterObject *)(it))->dataptr += ((PyArrayIterObject *)(it))->ao->descr->elsize; else if (((PyArrayIterObject *)(it))->nd_m1 == 1) { { if ((((PyArrayIterObject *)(it)))->coordinates[1] < (((PyArrayIterObject *)(it)))->dims_m1[1]) { (((PyArrayIterObject *)(it)))->coordinates[1]++; (((PyArrayIterObject *)(it)))->dataptr += (((PyArrayIterObject *)(it)))->strides[1]; } else { (((PyArrayIterObject *)(it)))->coordinates[1] = 0; (((PyArrayIterObject *)(it)))->coordinates[0]++; (((PyArrayIterObject *)(it)))->dataptr += (((PyArrayIterObject *)(it)))->strides[0] - (((PyArrayIterObject *)(it)))->backstrides[1]; } }; } else { int __npy_i; for (__npy_i=((PyArrayIterObject *)(it))->nd_m1; __npy_i >= 0; __npy_i--) { if (((PyArrayIterObject *)(it))->coordinates[__npy_i] < ((PyArrayIterObject *)(it))->dims_m1[__npy_i]) { ((PyArrayIterObject *)(it))->coordinates[__npy_i]++; ((PyArrayIterObject *)(it))->dataptr += ((PyArrayIterObject *)(it))->strides[__npy_i]; break; } else { ((PyArrayIterObject *)(it))->coordinates[__npy_i] = 0; ((PyArrayIterObject *)(it))->dataptr -= ((PyArrayIterObject *)(it))->backstrides[__npy_i]; } } } }; > } > do { if ( --((PyObject*)(deepcopy))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(deepcopy)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(deepcopy)))); } while (0); > do { if ( --((PyObject*)(it))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(it)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(it)))); } while (0); > } > return PyArray_Return((PyArrayObject *)(ret)); >} > > >static PyObject * >_getlist_pkl(PyArrayObject *self) >{ > PyObject *theobject; > PyArrayIterObject *iter = ((void *)0); > PyObject *list; > PyArray_GetItemFunc *getitem; > > getitem = self->descr->f->getitem; > iter = (PyArrayIterObject *)PyArray_IterNew((PyObject *)self); > if (iter == ((void *)0)) { > return ((void *)0); > } > list = PyList_New(iter->size); > if (list == ((void *)0)) { > do { if ( --((PyObject*)(iter))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(iter)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(iter)))); } while (0); > return ((void *)0); > } > while (iter->index < iter->size) { > theobject = getitem(iter->dataptr, self); > (((PyListObject *)(list))->ob_item[(int) iter->index] = (theobject)); > { ((PyArrayIterObject *)(iter))->index++; if (((PyArrayIterObject *)(iter))->nd_m1 == 0) { { (((PyArrayIterObject *)(iter)))->dataptr += ((PyArrayIterObject *)(((PyArrayIterObject *)(iter))))->strides[0]; (((PyArrayIterObject *)(iter)))->coordinates[0]++; }; } else if (((PyArrayIterObject *)(iter))->contiguous) ((PyArrayIterObject *)(iter))->dataptr += ((PyArrayIterObject *)(iter))->ao->descr->elsize; else if (((PyArrayIterObject *)(iter))->nd_m1 == 1) { { if ((((PyArrayIterObject *)(iter)))->coordinates[1] < (((PyArrayIterObject *)(iter)))->dims_m1[1]) { (((PyArrayIterObject *)(iter)))->coordinates[1]++; (((PyArrayIterObject *)(iter)))->dataptr += (((PyArrayIterObject *)(iter)))->strides[1]; } else { (((PyArrayIterObject *)(iter)))->coordinates[1] = 0; (((PyArrayIterObject *)(iter)))->coordinates[0]++; (((PyArrayIterObject *)(iter)))->dataptr += (((PyArrayIterObject *)(iter)))->strides[0] - (((PyArrayIterObject *)(iter)))->backstrides[1]; } }; } else { int __npy_i; for (__npy_i=((PyArrayIterObject *)(iter))->nd_m1; __npy_i >= 0; __npy_i--) { if (((PyArrayIterObject *)(iter))->coordinates[__npy_i] < ((PyArrayIterObject *)(iter))->dims_m1[__npy_i]) { ((PyArrayIterObject *)(iter))->coordinates[__npy_i]++; ((PyArrayIterObject *)(iter))->dataptr += ((PyArrayIterObject *)(iter))->strides[__npy_i]; break; } else { ((PyArrayIterObject *)(iter))->coordinates[__npy_i] = 0; ((PyArrayIterObject *)(iter))->dataptr -= ((PyArrayIterObject *)(iter))->backstrides[__npy_i]; } } } }; > } > do { if ( --((PyObject*)(iter))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(iter)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(iter)))); } while (0); > return list; >} > >static int >_setlist_pkl(PyArrayObject *self, PyObject *list) >{ > PyObject *theobject; > PyArrayIterObject *iter = ((void *)0); > PyArray_SetItemFunc *setitem; > > setitem = self->descr->f->setitem; > iter = (PyArrayIterObject *)PyArray_IterNew((PyObject *)self); > if (iter == ((void *)0)) { > return -1; > } > while(iter->index < iter->size) { > theobject = (((PyListObject *)(list))->ob_item[(int) iter->index]); > setitem(theobject, iter->dataptr, self); > { ((PyArrayIterObject *)(iter))->index++; if (((PyArrayIterObject *)(iter))->nd_m1 == 0) { { (((PyArrayIterObject *)(iter)))->dataptr += ((PyArrayIterObject *)(((PyArrayIterObject *)(iter))))->strides[0]; (((PyArrayIterObject *)(iter)))->coordinates[0]++; }; } else if (((PyArrayIterObject *)(iter))->contiguous) ((PyArrayIterObject *)(iter))->dataptr += ((PyArrayIterObject *)(iter))->ao->descr->elsize; else if (((PyArrayIterObject *)(iter))->nd_m1 == 1) { { if ((((PyArrayIterObject *)(iter)))->coordinates[1] < (((PyArrayIterObject *)(iter)))->dims_m1[1]) { (((PyArrayIterObject *)(iter)))->coordinates[1]++; (((PyArrayIterObject *)(iter)))->dataptr += (((PyArrayIterObject *)(iter)))->strides[1]; } else { (((PyArrayIterObject *)(iter)))->coordinates[1] = 0; (((PyArrayIterObject *)(iter)))->coordinates[0]++; (((PyArrayIterObject *)(iter)))->dataptr += (((PyArrayIterObject *)(iter)))->strides[0] - (((PyArrayIterObject *)(iter)))->backstrides[1]; } }; } else { int __npy_i; for (__npy_i=((PyArrayIterObject *)(iter))->nd_m1; __npy_i >= 0; __npy_i--) { if (((PyArrayIterObject *)(iter))->coordinates[__npy_i] < ((PyArrayIterObject *)(iter))->dims_m1[__npy_i]) { ((PyArrayIterObject *)(iter))->coordinates[__npy_i]++; ((PyArrayIterObject *)(iter))->dataptr += ((PyArrayIterObject *)(iter))->strides[__npy_i]; break; } else { ((PyArrayIterObject *)(iter))->coordinates[__npy_i] = 0; ((PyArrayIterObject *)(iter))->dataptr -= ((PyArrayIterObject *)(iter))->backstrides[__npy_i]; } } } }; > } > do { if ((iter) == ((void *)0)) ; else do { if ( --((PyObject*)(iter))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(iter)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(iter)))); } while (0); } while (0); > return 0; >} > > >static PyObject * >array_reduce(PyArrayObject *self, PyObject *(__NPY_UNUSED_TAGGEDargs) __attribute__ ((__unused__))) >{ > > > > const int version = 1; > PyObject *ret = ((void *)0), *state = ((void *)0), *obj = ((void *)0), *mod = ((void *)0); > PyObject *mybool, *thestr = ((void *)0); > PyArray_Descr *descr; > > > > > > ret = PyTuple_New(3); > if (ret == ((void *)0)) { > return ((void *)0); > } > mod = PyImport_ImportModule("numpy.core.multiarray"); > if (mod == ((void *)0)) { > do { if ( --((PyObject*)(ret))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(ret)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(ret)))); } while (0); > return ((void *)0); > } > obj = PyObject_GetAttrString(mod, "_reconstruct"); > do { if ( --((PyObject*)(mod))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(mod)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(mod)))); } while (0); > (((PyTupleObject *)(ret))->ob_item[0] = obj); > (((PyTupleObject *)(ret))->ob_item[1] = _Py_BuildValue_SizeT("ONc", (PyObject *)(((PyObject*)(self))->ob_type), _Py_BuildValue_SizeT("(N)", PyInt_FromLong(0)), 'b')); ># 1321 "numpy/core/src/multiarray/methods.c" > state = PyTuple_New(5); > if (state == ((void *)0)) { > do { if ( --((PyObject*)(ret))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(ret)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(ret)))); } while (0); > return ((void *)0); > } > (((PyTupleObject *)(state))->ob_item[0] = PyInt_FromLong(version)); > (((PyTupleObject *)(state))->ob_item[1] = PyObject_GetAttrString((PyObject *)self, "shape")); > > descr = self->descr; > ( ((PyObject*)(descr))->ob_refcnt++); > (((PyTupleObject *)(state))->ob_item[2] = (PyObject *)descr); > mybool = ((((((PyArrayObject *)(self))->flags & (0x0002)) == (0x0002)) && ((((PyArrayObject *)(self))->nd) > 1)) ? ((PyObject *) &_Py_TrueStruct) : ((PyObject *) &_Py_ZeroStruct)); > ( ((PyObject*)(mybool))->ob_refcnt++); > (((PyTupleObject *)(state))->ob_item[3] = mybool); > if ((((self->descr)->flags & (0x02)) == (0x02))) { > thestr = _getlist_pkl(self); > } > else { > thestr = PyArray_ToString(self, NPY_ANYORDER); > } > if (thestr == ((void *)0)) { > do { if ( --((PyObject*)(ret))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(ret)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(ret)))); } while (0); > do { if ( --((PyObject*)(state))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(state)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(state)))); } while (0); > return ((void *)0); > } > (((PyTupleObject *)(state))->ob_item[4] = thestr); > (((PyTupleObject *)(ret))->ob_item[2] = state); > return ret; >} > >static PyObject * >array_setstate(PyArrayObject *self, PyObject *args) >{ > PyObject *shape; > PyArray_Descr *typecode; > int version = 1; > int fortran_; > PyObject *rawdata; > char *datastr; > Py_ssize_t len; > npy_intp size, dimensions[32]; > int nd; > int incref_base = 1; > > > > > if (!_PyArg_ParseTuple_SizeT(args, "(iO!O!iO)", > &version, > &PyTuple_Type, &shape, > &PyArrayDescr_Type, &typecode, > &fortran_, > &rawdata)) { > PyErr_Clear(); > version = 0; > if (!_PyArg_ParseTuple_SizeT(args, "(O!O!iO)", > &PyTuple_Type, &shape, > &PyArrayDescr_Type, &typecode, > &fortran_, > &rawdata)) { > return ((void *)0); > } > } > > > > > if (version != 1 && version != 0) { > PyErr_Format(PyExc_ValueError, > "can't handle version %d of numpy.ndarray pickle", > version); > return ((void *)0); > } > > do { if ((self->descr) == ((void *)0)) ; else do { if ( --((PyObject*)(self->descr))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(self->descr)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(self->descr)))); } while (0); } while (0); > self->descr = typecode; > ( ((PyObject*)(typecode))->ob_refcnt++); > nd = PyArray_IntpFromSequence(shape, dimensions, 32); > if (nd < 0) { > return ((void *)0); > } > size = PyArray_MultiplyList(dimensions, nd); > if (self->descr->elsize == 0) { > PyErr_SetString(PyExc_ValueError, "Invalid data-type size."); > return ((void *)0); > } > if (size < 0 || size > 9223372036854775807L / self->descr->elsize) { > PyErr_NoMemory(); > return ((void *)0); > } > > if ((((typecode)->flags & (0x02)) == (0x02))) { > if (!((((((PyObject*)(rawdata))->ob_type))->tp_flags & ((1L<<25))) != 0)) { > PyErr_SetString(PyExc_TypeError, > "object pickle not returning list"); > return ((void *)0); > } > } > else { ># 1430 "numpy/core/src/multiarray/methods.c" > if (!((((((PyObject*)(rawdata))->ob_type))->tp_flags & ((1L<<27))) != 0)) { > PyErr_SetString(PyExc_TypeError, > "pickle not returning string"); > return ((void *)0); > } > > if (PyString_AsStringAndSize(rawdata, &datastr, &len)) > return ((void *)0); > > if ((len != (self->descr->elsize * size))) { > PyErr_SetString(PyExc_ValueError, > "buffer size does not" " match array size"); > > return ((void *)0); > } > } > > if ((self->flags & 0x0004)) { > if (self->data != ((void *)0)) { > free(self->data); > } > self->flags &= ~0x0004; > } > do { if ((self->base) == ((void *)0)) ; else do { if ( --((PyObject*)(self->base))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(self->base)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(self->base)))); } while (0); } while (0); > > self->flags &= ~0x1000; > > if (self->dimensions != ((void *)0)) { > PyMem_Free(self->dimensions); > self->dimensions = ((void *)0); > } > > self->flags = (0x0001 | (0x0100 | 0x0400)); > > self->nd = nd; > > if (nd > 0) { > self->dimensions = ((npy_intp *)PyMem_Malloc(nd * 2*sizeof(npy_intp))); > self->strides = self->dimensions + nd; > memcpy(self->dimensions, dimensions, sizeof(npy_intp)*nd); > (void) _array_fill_strides(self->strides, dimensions, nd, > (size_t) self->descr->elsize, > (fortran_ ? 0x0002 : 0x0001), > &(self->flags)); > } > > if (!(((typecode)->flags & (0x02)) == (0x02))) { > int swap=!(((((PyArrayObject *)(self))->descr)->byteorder) != '>'); > self->data = datastr; > if (!_IsAligned(self) || swap) { > npy_intp num = ((((PyArrayObject *)(self))->descr->elsize) * PyArray_MultiplyList((((PyArrayObject *)(self))->dimensions), (((PyArrayObject *)(self))->nd))); > self->data = ((char *)malloc(num)); > if (self->data == ((void *)0)) { > self->nd = 0; > PyMem_Free(self->dimensions); > return PyErr_NoMemory(); > } > if (swap) { > npy_intp numels = num / self->descr->elsize; > self->descr->f->copyswapn(self->data, self->descr->elsize, > datastr, self->descr->elsize, > numels, 1, self); > if (!(((((((PyArrayObject *)(self))->descr->type_num)) >=NPY_STRING) && (((((PyArrayObject *)(self))->descr->type_num)) <=NPY_VOID)) || ((((((PyArrayObject *)(self))->descr->type_num)) >= NPY_USERDEF) && (((((PyArrayObject *)(self))->descr->type_num)) < NPY_USERDEF+ NPY_NUMUSERTYPES)))) { > self->descr = PyArray_DescrFromType(self->descr->type_num); > } > else { > self->descr = PyArray_DescrNew(typecode); > if (self->descr->byteorder == '>') { > self->descr->byteorder = '<'; > } > else if (self->descr->byteorder == '<') { > self->descr->byteorder = '>'; > } > } > do { if ( --((PyObject*)(typecode))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(typecode)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(typecode)))); } while (0); > } > else { > memcpy(self->data, datastr, num); > } > self->flags |= 0x0004; > self->base = ((void *)0); > } > else { > self->base = rawdata; > if (incref_base) { > ( ((PyObject*)(self->base))->ob_refcnt++); > } > } > } > else { > self->data = ((char *)malloc(((((PyArrayObject *)(self))->descr->elsize) * PyArray_MultiplyList((((PyArrayObject *)(self))->dimensions), (((PyArrayObject *)(self))->nd))))); > if (self->data == ((void *)0)) { > self->nd = 0; > self->data = ((char *)malloc(self->descr->elsize)); > if (self->dimensions) { > PyMem_Free(self->dimensions); > } > return PyErr_NoMemory(); > } > if ((((self->descr)->flags & (0x08)) == (0x08))) { > memset(self->data, 0, ((((PyArrayObject *)(self))->descr->elsize) * PyArray_MultiplyList((((PyArrayObject *)(self))->dimensions), (((PyArrayObject *)(self))->nd)))); > } > self->flags |= 0x0004; > self->base = ((void *)0); > if (_setlist_pkl(self, rawdata) < 0) { > return ((void *)0); > } > } > > PyArray_UpdateFlags(self, (0x0001 | 0x0002 | 0x0100)); > > ( ((PyObject*)((&_Py_NoneStruct)))->ob_refcnt++); > return (&_Py_NoneStruct); >} > > >static int >PyArray_Dump(PyObject *self, PyObject *file, int protocol) >{ > PyObject *cpick = ((void *)0); > PyObject *ret; > if (protocol < 0) { > protocol = 2; > } > > > > > cpick = PyImport_ImportModule("cPickle"); > > if (cpick == ((void *)0)) { > return -1; > } > if (((((((PyObject*)(file))->ob_type))->tp_flags & ((1L<<27))) != 0) || ((((((PyObject*)(file))->ob_type))->tp_flags & ((1L<<28))) != 0)) { > file = npy_PyFile_OpenFile(file, "wb"); > if (file == ((void *)0)) { > return -1; > } > } > else { > ( ((PyObject*)(file))->ob_refcnt++); > } > ret = _PyObject_CallMethod_SizeT(cpick, "dump", "OOi", self, file, protocol); > do { if ((ret) == ((void *)0)) ; else do { if ( --((PyObject*)(ret))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(ret)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(ret)))); } while (0); } while (0); > do { if ( --((PyObject*)(file))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(file)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(file)))); } while (0); > do { if ( --((PyObject*)(cpick))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(cpick)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(cpick)))); } while (0); > if (PyErr_Occurred()) { > return -1; > } > return 0; >} > > >static PyObject * >PyArray_Dumps(PyObject *self, int protocol) >{ > PyObject *cpick = ((void *)0); > PyObject *ret; > if (protocol < 0) { > protocol = 2; > } > > > > cpick = PyImport_ImportModule("cPickle"); > > if (cpick == ((void *)0)) { > return ((void *)0); > } > ret = _PyObject_CallMethod_SizeT(cpick, "dumps", "Oi", self, protocol); > do { if ( --((PyObject*)(cpick))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(cpick)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(cpick)))); } while (0); > return ret; >} > > >static PyObject * >array_dump(PyArrayObject *self, PyObject *args) >{ > PyObject *file = ((void *)0); > int ret; > > if (!_PyArg_ParseTuple_SizeT(args, "O", &file)) { > return ((void *)0); > } > ret = PyArray_Dump((PyObject *)self, file, 2); > if (ret < 0) { > return ((void *)0); > } > ( ((PyObject*)((&_Py_NoneStruct)))->ob_refcnt++); > return (&_Py_NoneStruct); >} > > >static PyObject * >array_dumps(PyArrayObject *self, PyObject *args) >{ > if (!_PyArg_ParseTuple_SizeT(args, "")) { > return ((void *)0); > } > return PyArray_Dumps((PyObject *)self, 2); >} > > >static PyObject * >array_transpose(PyArrayObject *self, PyObject *args) >{ > PyObject *shape = (&_Py_NoneStruct); > Py_ssize_t n = PyTuple_Size(args); > PyArray_Dims permute; > PyObject *ret; > > if (n > 1) { > shape = args; > } > else if (n == 1) { > shape = (((PyTupleObject *)(args))->ob_item[0]); > } > > if (shape == (&_Py_NoneStruct)) { > ret = PyArray_Transpose(self, ((void *)0)); > } > else { > if (!PyArray_IntpConverter(shape, &permute)) { > return ((void *)0); > } > ret = PyArray_Transpose(self, &permute); > PyMem_Free(permute.ptr); > } > > return ret; >} > > > > > >static int >_get_type_num_double(PyArray_Descr *dtype1, PyArray_Descr *dtype2) >{ > if (dtype2 != ((void *)0)) { > return dtype2->type_num; > } > > if (dtype1->type_num < NPY_FLOAT) { > return NPY_DOUBLE; > } > else { > return dtype1->type_num; > } >} > > > >static PyObject * >array_mean(PyArrayObject *self, PyObject *args, PyObject *kwds) >{ > int axis = 32; > PyArray_Descr *dtype = ((void *)0); > PyArrayObject *out = ((void *)0); > int num; > static char *kwlist[] = {"axis", "dtype", "out", ((void *)0)}; > > if (!_PyArg_ParseTupleAndKeywords_SizeT(args, kwds, "|O&O&O&", kwlist, > PyArray_AxisConverter, &axis, > PyArray_DescrConverter2, &dtype, > PyArray_OutputConverter, &out)) { > do { if ((dtype) == ((void *)0)) ; else do { if ( --((PyObject*)(dtype))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(dtype)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(dtype)))); } while (0); } while (0); > return ((void *)0); > } > > num = _get_type_num_double(self->descr, dtype); > do { if ((dtype) == ((void *)0)) ; else do { if ( --((PyObject*)(dtype))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(dtype)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(dtype)))); } while (0); } while (0); > return PyArray_Mean(self, axis, num, out); >} > >static PyObject * >array_sum(PyArrayObject *self, PyObject *args, PyObject *kwds) >{ > int axis = 32; > PyArray_Descr *dtype = ((void *)0); > PyArrayObject *out = ((void *)0); > int rtype; > static char *kwlist[] = {"axis", "dtype", "out", ((void *)0)}; > > if (!_PyArg_ParseTupleAndKeywords_SizeT(args, kwds, "|O&O&O&", kwlist, > PyArray_AxisConverter, &axis, > PyArray_DescrConverter2, &dtype, > PyArray_OutputConverter, &out)) { > do { if ((dtype) == ((void *)0)) ; else do { if ( --((PyObject*)(dtype))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(dtype)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(dtype)))); } while (0); } while (0); > return ((void *)0); > } > > rtype = ((dtype) ? (dtype)->type_num : NPY_NOTYPE); > do { if ((dtype) == ((void *)0)) ; else do { if ( --((PyObject*)(dtype))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(dtype)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(dtype)))); } while (0); } while (0); > return PyArray_Sum(self, axis, rtype, out); >} > > >static PyObject * >array_cumsum(PyArrayObject *self, PyObject *args, PyObject *kwds) >{ > int axis = 32; > PyArray_Descr *dtype = ((void *)0); > PyArrayObject *out = ((void *)0); > int rtype; > static char *kwlist[] = {"axis", "dtype", "out", ((void *)0)}; > > if (!_PyArg_ParseTupleAndKeywords_SizeT(args, kwds, "|O&O&O&", kwlist, > PyArray_AxisConverter, &axis, > PyArray_DescrConverter2, &dtype, > PyArray_OutputConverter, &out)) { > do { if ((dtype) == ((void *)0)) ; else do { if ( --((PyObject*)(dtype))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(dtype)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(dtype)))); } while (0); } while (0); > return ((void *)0); > } > > rtype = ((dtype) ? (dtype)->type_num : NPY_NOTYPE); > do { if ((dtype) == ((void *)0)) ; else do { if ( --((PyObject*)(dtype))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(dtype)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(dtype)))); } while (0); } while (0); > return PyArray_CumSum(self, axis, rtype, out); >} > >static PyObject * >array_prod(PyArrayObject *self, PyObject *args, PyObject *kwds) >{ > int axis = 32; > PyArray_Descr *dtype = ((void *)0); > PyArrayObject *out = ((void *)0); > int rtype; > static char *kwlist[] = {"axis", "dtype", "out", ((void *)0)}; > > if (!_PyArg_ParseTupleAndKeywords_SizeT(args, kwds, "|O&O&O&", kwlist, > PyArray_AxisConverter, &axis, > PyArray_DescrConverter2, &dtype, > PyArray_OutputConverter, &out)) { > do { if ((dtype) == ((void *)0)) ; else do { if ( --((PyObject*)(dtype))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(dtype)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(dtype)))); } while (0); } while (0); > return ((void *)0); > } > > rtype = ((dtype) ? (dtype)->type_num : NPY_NOTYPE); > do { if ((dtype) == ((void *)0)) ; else do { if ( --((PyObject*)(dtype))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(dtype)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(dtype)))); } while (0); } while (0); > return PyArray_Prod(self, axis, rtype, out); >} > >static PyObject * >array_cumprod(PyArrayObject *self, PyObject *args, PyObject *kwds) >{ > int axis = 32; > PyArray_Descr *dtype = ((void *)0); > PyArrayObject *out = ((void *)0); > int rtype; > static char *kwlist[] = {"axis", "dtype", "out", ((void *)0)}; > > if (!_PyArg_ParseTupleAndKeywords_SizeT(args, kwds, "|O&O&O&", kwlist, > PyArray_AxisConverter, &axis, > PyArray_DescrConverter2, &dtype, > PyArray_OutputConverter, &out)) { > do { if ((dtype) == ((void *)0)) ; else do { if ( --((PyObject*)(dtype))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(dtype)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(dtype)))); } while (0); } while (0); > return ((void *)0); > } > > rtype = ((dtype) ? (dtype)->type_num : NPY_NOTYPE); > do { if ((dtype) == ((void *)0)) ; else do { if ( --((PyObject*)(dtype))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(dtype)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(dtype)))); } while (0); } while (0); > return PyArray_CumProd(self, axis, rtype, out); >} > > >static PyObject * >array_dot(PyArrayObject *self, PyObject *args, PyObject *kwds) >{ > PyObject *b; > static PyObject *numpycore = ((void *)0); > > if (!_PyArg_ParseTuple_SizeT(args, "O", &b)) { > return ((void *)0); > } > > > > if (numpycore == ((void *)0)) { > numpycore = PyImport_ImportModule("numpy.core"); > if (numpycore == ((void *)0)) { > return ((void *)0); > } > } > > return _PyObject_CallMethod_SizeT(numpycore, "dot", "OO", self, b); >} > > >static PyObject * >array_any(PyArrayObject *self, PyObject *args, PyObject *kwds) >{ > int axis = 32; > PyArrayObject *out = ((void *)0); > static char *kwlist[] = {"axis", "out", ((void *)0)}; > > if (!_PyArg_ParseTupleAndKeywords_SizeT(args, kwds, "|O&O&", kwlist, > PyArray_AxisConverter, &axis, > PyArray_OutputConverter, &out)) > return ((void *)0); > > return PyArray_Any(self, axis, out); >} > > >static PyObject * >array_all(PyArrayObject *self, PyObject *args, PyObject *kwds) >{ > int axis = 32; > PyArrayObject *out = ((void *)0); > static char *kwlist[] = {"axis", "out", ((void *)0)}; > > if (!_PyArg_ParseTupleAndKeywords_SizeT(args, kwds, "|O&O&", kwlist, > PyArray_AxisConverter, &axis, > PyArray_OutputConverter, &out)) > return ((void *)0); > > return PyArray_All(self, axis, out); >} > > >static PyObject * >array_stddev(PyArrayObject *self, PyObject *args, PyObject *kwds) >{ > int axis = 32; > PyArray_Descr *dtype = ((void *)0); > PyArrayObject *out = ((void *)0); > int num; > int ddof = 0; > static char *kwlist[] = {"axis", "dtype", "out", "ddof", ((void *)0)}; > > if (!_PyArg_ParseTupleAndKeywords_SizeT(args, kwds, "|O&O&O&i", kwlist, > PyArray_AxisConverter, &axis, > PyArray_DescrConverter2, &dtype, > PyArray_OutputConverter, &out, > &ddof)) { > do { if ((dtype) == ((void *)0)) ; else do { if ( --((PyObject*)(dtype))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(dtype)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(dtype)))); } while (0); } while (0); > return ((void *)0); > } > > num = _get_type_num_double(self->descr, dtype); > do { if ((dtype) == ((void *)0)) ; else do { if ( --((PyObject*)(dtype))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(dtype)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(dtype)))); } while (0); } while (0); > return __New_PyArray_Std(self, axis, num, out, 0, ddof); >} > > >static PyObject * >array_variance(PyArrayObject *self, PyObject *args, PyObject *kwds) >{ > int axis = 32; > PyArray_Descr *dtype = ((void *)0); > PyArrayObject *out = ((void *)0); > int num; > int ddof = 0; > static char *kwlist[] = {"axis", "dtype", "out", "ddof", ((void *)0)}; > > if (!_PyArg_ParseTupleAndKeywords_SizeT(args, kwds, "|O&O&O&i", kwlist, > PyArray_AxisConverter, &axis, > PyArray_DescrConverter2, &dtype, > PyArray_OutputConverter, &out, > &ddof)) { > do { if ((dtype) == ((void *)0)) ; else do { if ( --((PyObject*)(dtype))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(dtype)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(dtype)))); } while (0); } while (0); > return ((void *)0); > } > > num = _get_type_num_double(self->descr, dtype); > do { if ((dtype) == ((void *)0)) ; else do { if ( --((PyObject*)(dtype))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(dtype)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(dtype)))); } while (0); } while (0); > return __New_PyArray_Std(self, axis, num, out, 1, ddof); >} > > >static PyObject * >array_compress(PyArrayObject *self, PyObject *args, PyObject *kwds) >{ > int axis = 32; > PyObject *condition; > PyArrayObject *out = ((void *)0); > static char *kwlist[] = {"condition", "axis", "out", ((void *)0)}; > > if (!_PyArg_ParseTupleAndKeywords_SizeT(args, kwds, "O|O&O&", kwlist, > &condition, > PyArray_AxisConverter, &axis, > PyArray_OutputConverter, &out)) { > return ((void *)0); > } > return PyArray_Return((PyArrayObject *)(PyArray_Compress(self, condition, axis, out))); >} > > >static PyObject * >array_nonzero(PyArrayObject *self, PyObject *args) >{ > if (!_PyArg_ParseTuple_SizeT(args, "")) { > return ((void *)0); > } > return PyArray_Nonzero(self); >} > > >static PyObject * >array_trace(PyArrayObject *self, PyObject *args, PyObject *kwds) >{ > int axis1 = 0, axis2 = 1, offset = 0; > PyArray_Descr *dtype = ((void *)0); > PyArrayObject *out = ((void *)0); > int rtype; > static char *kwlist[] = {"offset", "axis1", "axis2", "dtype", "out", ((void *)0)}; > > if (!_PyArg_ParseTupleAndKeywords_SizeT(args, kwds, "|iiiO&O&", kwlist, > &offset, > &axis1, > &axis2, > PyArray_DescrConverter2, &dtype, > PyArray_OutputConverter, &out)) { > do { if ((dtype) == ((void *)0)) ; else do { if ( --((PyObject*)(dtype))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(dtype)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(dtype)))); } while (0); } while (0); > return ((void *)0); > } > > rtype = ((dtype) ? (dtype)->type_num : NPY_NOTYPE); > do { if ((dtype) == ((void *)0)) ; else do { if ( --((PyObject*)(dtype))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(dtype)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(dtype)))); } while (0); } while (0); > return PyArray_Return((PyArrayObject *)(PyArray_Trace(self, offset, axis1, axis2, rtype, out))); >} > > > > >static PyObject * >array_clip(PyArrayObject *self, PyObject *args, PyObject *kwds) >{ > PyObject *min = ((void *)0), *max = ((void *)0); > PyArrayObject *out = ((void *)0); > static char *kwlist[] = {"min", "max", "out", ((void *)0)}; > > if (!_PyArg_ParseTupleAndKeywords_SizeT(args, kwds, "|OOO&", kwlist, > &min, > &max, > PyArray_OutputConverter, &out)) { > return ((void *)0); > } > if (max == ((void *)0) && min == ((void *)0)) { > PyErr_SetString(PyExc_ValueError, "One of max or min must be given."); > return ((void *)0); > } > return PyArray_Return((PyArrayObject *)(PyArray_Clip(self, min, max, out))); >} > > >static PyObject * >array_conjugate(PyArrayObject *self, PyObject *args) >{ > > PyArrayObject *out = ((void *)0); > if (!_PyArg_ParseTuple_SizeT(args, "|O&", > PyArray_OutputConverter, > &out)) { > return ((void *)0); > } > return PyArray_Conjugate(self, out); >} > > >static PyObject * >array_diagonal(PyArrayObject *self, PyObject *args, PyObject *kwds) >{ > int axis1 = 0, axis2 = 1, offset = 0; > static char *kwlist[] = {"offset", "axis1", "axis2", ((void *)0)}; > > if (!_PyArg_ParseTupleAndKeywords_SizeT(args, kwds, "|iii", kwlist, > &offset, > &axis1, > &axis2)) { > return ((void *)0); > } > return PyArray_Return((PyArrayObject *)(PyArray_Diagonal(self, offset, axis1, axis2))); >} > > >static PyObject * >array_flatten(PyArrayObject *self, PyObject *args, PyObject *kwds) >{ > NPY_ORDER order = NPY_CORDER; > static char *kwlist[] = {"order", ((void *)0)}; > > if (!_PyArg_ParseTupleAndKeywords_SizeT(args, kwds, "|O&", kwlist, > PyArray_OrderConverter, &order)) { > return ((void *)0); > } > return PyArray_Flatten(self, order); >} > > >static PyObject * >array_ravel(PyArrayObject *self, PyObject *args, PyObject *kwds) >{ > NPY_ORDER order = NPY_CORDER; > static char *kwlist[] = {"order", ((void *)0)}; > > if (!_PyArg_ParseTupleAndKeywords_SizeT(args, kwds, "|O&", kwlist, > PyArray_OrderConverter, &order)) { > return ((void *)0); > } > return PyArray_Ravel(self, order); >} > > >static PyObject * >array_round(PyArrayObject *self, PyObject *args, PyObject *kwds) >{ > int decimals = 0; > PyArrayObject *out = ((void *)0); > static char *kwlist[] = {"decimals", "out", ((void *)0)}; > > if (!_PyArg_ParseTupleAndKeywords_SizeT(args, kwds, "|iO&", kwlist, > &decimals, > PyArray_OutputConverter, &out)) { > return ((void *)0); > } > return PyArray_Return((PyArrayObject *)(PyArray_Round(self, decimals, out))); >} > > > >static PyObject * >array_setflags(PyArrayObject *self, PyObject *args, PyObject *kwds) >{ > static char *kwlist[] = {"write", "align", "uic", ((void *)0)}; > PyObject *write = (&_Py_NoneStruct); > PyObject *align = (&_Py_NoneStruct); > PyObject *uic = (&_Py_NoneStruct); > int flagback = self->flags; > > if (!_PyArg_ParseTupleAndKeywords_SizeT(args, kwds, "|OOO", kwlist, > &write, > &align, > &uic)) > return ((void *)0); > > if (align != (&_Py_NoneStruct)) { > if (PyObject_Not(align)) { > self->flags &= ~0x0100; > } > else if (_IsAligned(self)) { > self->flags |= 0x0100; > } > else { > PyErr_SetString(PyExc_ValueError, > "cannot set aligned flag of mis-" "aligned array to True"); > > return ((void *)0); > } > } > > if (uic != (&_Py_NoneStruct)) { > if (PyObject_IsTrue(uic)) { > self->flags = flagback; > PyErr_SetString(PyExc_ValueError, > "cannot set UPDATEIFCOPY " "flag to True"); > > return ((void *)0); > } > else { > self->flags &= ~0x1000; > do { if ((self->base) == ((void *)0)) ; else do { if ( --((PyObject*)(self->base))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(self->base)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(self->base)))); } while (0); } while (0); > self->base = ((void *)0); > } > } > > if (write != (&_Py_NoneStruct)) { > if (PyObject_IsTrue(write)) > if (_IsWriteable(self)) { > self->flags |= 0x0400; > } > else { > self->flags = flagback; > PyErr_SetString(PyExc_ValueError, > "cannot set WRITEABLE " "flag to True of this " "array"); return ((void *)0); > > > > } > else > self->flags &= ~0x0400; > } > > ( ((PyObject*)((&_Py_NoneStruct)))->ob_refcnt++); > return (&_Py_NoneStruct); >} > > >static PyObject * >array_newbyteorder(PyArrayObject *self, PyObject *args) >{ > char endian = 's'; > PyArray_Descr *new; > > if (!_PyArg_ParseTuple_SizeT(args, "|O&", PyArray_ByteorderConverter, > &endian)) { > return ((void *)0); > } > new = PyArray_DescrNewByteorder(self->descr, endian); > if (!new) { > return ((void *)0); > } > return PyArray_View(self, new, ((void *)0)); > >} > >static PyMethodDef array_methods[] = { > > > {"__array__", > (PyCFunction)array_getarray, > 0x0001, ((void *)0)}, > {"__array_prepare__", > (PyCFunction)array_preparearray, > 0x0001, ((void *)0)}, > {"__array_wrap__", > (PyCFunction)array_wraparray, > 0x0001, ((void *)0)}, > > > {"__copy__", > (PyCFunction)array_copy, > 0x0001 | 0x0002, ((void *)0)}, > {"__deepcopy__", > (PyCFunction)array_deepcopy, > 0x0001, ((void *)0)}, > > > {"__reduce__", > (PyCFunction) array_reduce, > 0x0001, ((void *)0)}, > {"__setstate__", > (PyCFunction) array_setstate, > 0x0001, ((void *)0)}, > {"dumps", > (PyCFunction) array_dumps, > 0x0001, ((void *)0)}, > {"dump", > (PyCFunction) array_dump, > 0x0001, ((void *)0)}, > > > {"all", > (PyCFunction)array_all, > 0x0001 | 0x0002, ((void *)0)}, > {"any", > (PyCFunction)array_any, > 0x0001 | 0x0002, ((void *)0)}, > {"argmax", > (PyCFunction)array_argmax, > 0x0001 | 0x0002, ((void *)0)}, > {"argmin", > (PyCFunction)array_argmin, > 0x0001 | 0x0002, ((void *)0)}, > {"argsort", > (PyCFunction)array_argsort, > 0x0001 | 0x0002, ((void *)0)}, > {"astype", > (PyCFunction)array_astype, > 0x0001, ((void *)0)}, > {"byteswap", > (PyCFunction)array_byteswap, > 0x0001, ((void *)0)}, > {"choose", > (PyCFunction)array_choose, > 0x0001 | 0x0002, ((void *)0)}, > {"clip", > (PyCFunction)array_clip, > 0x0001 | 0x0002, ((void *)0)}, > {"compress", > (PyCFunction)array_compress, > 0x0001 | 0x0002, ((void *)0)}, > {"conj", > (PyCFunction)array_conjugate, > 0x0001, ((void *)0)}, > {"conjugate", > (PyCFunction)array_conjugate, > 0x0001, ((void *)0)}, > {"copy", > (PyCFunction)array_copy, > 0x0001 | 0x0002, ((void *)0)}, > {"cumprod", > (PyCFunction)array_cumprod, > 0x0001 | 0x0002, ((void *)0)}, > {"cumsum", > (PyCFunction)array_cumsum, > 0x0001 | 0x0002, ((void *)0)}, > {"diagonal", > (PyCFunction)array_diagonal, > 0x0001 | 0x0002, ((void *)0)}, > {"dot", > (PyCFunction)array_dot, > 0x0001, ((void *)0)}, > {"fill", > (PyCFunction)array_fill, > 0x0001, ((void *)0)}, > {"flatten", > (PyCFunction)array_flatten, > 0x0001 | 0x0002, ((void *)0)}, > {"getfield", > (PyCFunction)array_getfield, > 0x0001 | 0x0002, ((void *)0)}, > {"item", > (PyCFunction)array_toscalar, > 0x0001, ((void *)0)}, > {"itemset", > (PyCFunction) array_setscalar, > 0x0001, ((void *)0)}, > {"setasflat", > (PyCFunction) array_setasflat, > 0x0001, ((void *)0)}, > {"max", > (PyCFunction)array_max, > 0x0001 | 0x0002, ((void *)0)}, > {"mean", > (PyCFunction)array_mean, > 0x0001 | 0x0002, ((void *)0)}, > {"min", > (PyCFunction)array_min, > 0x0001 | 0x0002, ((void *)0)}, > {"newbyteorder", > (PyCFunction)array_newbyteorder, > 0x0001, ((void *)0)}, > {"nonzero", > (PyCFunction)array_nonzero, > 0x0001, ((void *)0)}, > {"prod", > (PyCFunction)array_prod, > 0x0001 | 0x0002, ((void *)0)}, > {"ptp", > (PyCFunction)array_ptp, > 0x0001 | 0x0002, ((void *)0)}, > {"put", > (PyCFunction)array_put, > 0x0001 | 0x0002, ((void *)0)}, > {"ravel", > (PyCFunction)array_ravel, > 0x0001 | 0x0002, ((void *)0)}, > {"repeat", > (PyCFunction)array_repeat, > 0x0001 | 0x0002, ((void *)0)}, > {"reshape", > (PyCFunction)array_reshape, > 0x0001 | 0x0002, ((void *)0)}, > {"resize", > (PyCFunction)array_resize, > 0x0001 | 0x0002, ((void *)0)}, > {"round", > (PyCFunction)array_round, > 0x0001 | 0x0002, ((void *)0)}, > {"searchsorted", > (PyCFunction)array_searchsorted, > 0x0001 | 0x0002, ((void *)0)}, > {"setfield", > (PyCFunction)array_setfield, > 0x0001 | 0x0002, ((void *)0)}, > {"setflags", > (PyCFunction)array_setflags, > 0x0001 | 0x0002, ((void *)0)}, > {"sort", > (PyCFunction)array_sort, > 0x0001 | 0x0002, ((void *)0)}, > {"squeeze", > (PyCFunction)array_squeeze, > 0x0001, ((void *)0)}, > {"std", > (PyCFunction)array_stddev, > 0x0001 | 0x0002, ((void *)0)}, > {"sum", > (PyCFunction)array_sum, > 0x0001 | 0x0002, ((void *)0)}, > {"swapaxes", > (PyCFunction)array_swapaxes, > 0x0001, ((void *)0)}, > {"take", > (PyCFunction)array_take, > 0x0001 | 0x0002, ((void *)0)}, > {"tofile", > (PyCFunction)array_tofile, > 0x0001 | 0x0002, ((void *)0)}, > {"tolist", > (PyCFunction)array_tolist, > 0x0001, ((void *)0)}, > {"tostring", > (PyCFunction)array_tostring, > 0x0001 | 0x0002, ((void *)0)}, > {"trace", > (PyCFunction)array_trace, > 0x0001 | 0x0002, ((void *)0)}, > {"transpose", > (PyCFunction)array_transpose, > 0x0001, ((void *)0)}, > {"var", > (PyCFunction)array_variance, > 0x0001 | 0x0002, ((void *)0)}, > {"view", > (PyCFunction)array_view, > 0x0001 | 0x0002, ((void *)0)}, > {((void *)0), ((void *)0), 0, ((void *)0)} >}; ># 28 "numpy/core/src/multiarray/multiarraymodule_onefile.c" 2 ># 1 "numpy/core/src/multiarray/convert_datatype.c" 1 ># 18 "numpy/core/src/multiarray/convert_datatype.c" ># 1 "numpy/core/src/multiarray/convert_datatype.h" 1 > > > >static PyArray_VectorUnaryFunc * >PyArray_GetCastFunc(PyArray_Descr *descr, int type_num); > >static int >PyArray_ObjectType(PyObject *op, int minimum_type); > >static PyArrayObject ** >PyArray_ConvertToCommonType(PyObject *op, int *retn); > >static int >PyArray_ValidType(int type); ># 19 "numpy/core/src/multiarray/convert_datatype.c" 2 ># 29 "numpy/core/src/multiarray/convert_datatype.c" >static PyObject * >PyArray_CastToType(PyArrayObject *arr, PyArray_Descr *dtype, int fortran_) >{ > PyObject *out; > PyArray_Descr *arr_dtype; > > arr_dtype = (((PyArrayObject *)(arr))->descr); > > if (dtype->elsize == 0) { > do { PyArray_Descr *_new_; _new_ = PyArray_DescrNew(dtype); do { if ((dtype) == ((void *)0)) ; else do { if ( --((PyObject*)(dtype))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(dtype)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(dtype)))); } while (0); } while (0); dtype = _new_; } while(0); > if (dtype == ((void *)0)) { > return ((void *)0); > } > > if (arr_dtype->type_num == dtype->type_num) { > dtype->elsize = arr_dtype->elsize; > } > else if (arr_dtype->type_num == NPY_STRING && > dtype->type_num == NPY_UNICODE) { > dtype->elsize = arr_dtype->elsize * 4; > } > else if (arr_dtype->type_num == NPY_UNICODE && > dtype->type_num == NPY_STRING) { > dtype->elsize = arr_dtype->elsize / 4; > } > else if (dtype->type_num == NPY_VOID) { > dtype->elsize = arr_dtype->elsize; > } > } > > out = PyArray_NewFromDescr((((PyObject*)(arr))->ob_type), dtype, > arr->nd, > arr->dimensions, > ((void *)0), ((void *)0), > fortran_, > (PyObject *)arr); > > if (out == ((void *)0)) { > return ((void *)0); > } > > if (PyArray_CopyInto((PyArrayObject *)out, arr) < 0) { > do { if ( --((PyObject*)(out))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(out)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(out)))); } while (0); > return ((void *)0); > } > > return out; >} > > > > > > >static PyArray_VectorUnaryFunc * >PyArray_GetCastFunc(PyArray_Descr *descr, int type_num) >{ > PyArray_VectorUnaryFunc *castfunc = ((void *)0); > > if (type_num < NPY_NTYPES_ABI_COMPATIBLE) { > castfunc = descr->f->cast[type_num]; > } > else { > PyObject *obj = descr->f->castdict; > if (obj && ((((((PyObject*)(obj))->ob_type))->tp_flags & ((1L<<29))) != 0)) { > PyObject *key; > PyObject *cobj; > > key = PyInt_FromLong(type_num); > cobj = PyDict_GetItem(obj, key); > do { if ( --((PyObject*)(key))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(key)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(key)))); } while (0); > if (NpyCapsule_Check(cobj)) { > castfunc = NpyCapsule_AsVoidPtr(cobj); > } > } > } > if ((((descr->type_num) >= NPY_CFLOAT) && ((descr->type_num) <= NPY_CLONGDOUBLE)) && > !(((type_num) >= NPY_CFLOAT) && ((type_num) <= NPY_CLONGDOUBLE)) && > (((type_num) <= NPY_CLONGDOUBLE) || ((type_num) == NPY_HALF)) && > !((type_num) == NPY_BOOL)) { > PyObject *cls = ((void *)0), *obj = ((void *)0); > int ret; > obj = PyImport_ImportModule("numpy.core"); > if (obj) { > cls = PyObject_GetAttrString(obj, "ComplexWarning"); > do { if ( --((PyObject*)(obj))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(obj)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(obj)))); } while (0); > } > > ret = PyErr_WarnEx(cls, > "Casting complex values to real discards " > "the imaginary part", 1); > > > > > > do { if ((cls) == ((void *)0)) ; else do { if ( --((PyObject*)(cls))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(cls)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(cls)))); } while (0); } while (0); > if (ret < 0) { > return ((void *)0); > } > } > if (castfunc) { > return castfunc; > } > > PyErr_SetString(PyExc_ValueError, "No cast function available."); > return ((void *)0); >} ># 148 "numpy/core/src/multiarray/convert_datatype.c" >static int >PyArray_CastTo(PyArrayObject *out, PyArrayObject *mp) >{ > > return PyArray_CopyInto(out, mp); >} > > > > > >static int >PyArray_CastAnyTo(PyArrayObject *out, PyArrayObject *mp) >{ > > return PyArray_CopyAnyInto(out, mp); >} > > > > >static int >PyArray_CanCastSafely(int fromtype, int totype) >{ > PyArray_Descr *from; > > > if ((unsigned int)fromtype < NPY_NTYPES && > (unsigned int)totype < NPY_NTYPES) { > return _npy_can_cast_safely_table[fromtype][totype]; > } > > > if (fromtype == totype) { > return 1; > } > > switch (fromtype) { > case NPY_DATETIME: > case NPY_TIMEDELTA: > case NPY_OBJECT: > case NPY_VOID: > return 0; > case NPY_BOOL: > return 1; > } > switch (totype) { > case NPY_BOOL: > case NPY_DATETIME: > case NPY_TIMEDELTA: > return 0; > case NPY_OBJECT: > case NPY_VOID: > return 1; > } > > from = PyArray_DescrFromType(fromtype); > > > > > if (from->f->cancastto) { > int *curtype = from->f->cancastto; > > while (*curtype != NPY_NOTYPE) { > if (*curtype++ == totype) { > return 1; > } > } > } > return 0; >} > > > > > > > >static npy_bool >PyArray_CanCastTo(PyArray_Descr *from, PyArray_Descr *to) >{ > int fromtype=from->type_num; > int totype=to->type_num; > npy_bool ret; > > ret = (npy_bool) PyArray_CanCastSafely(fromtype, totype); > if (ret) { > > if (fromtype == NPY_STRING) { > if (totype == NPY_STRING) { > ret = (from->elsize <= to->elsize); > } > else if (totype == NPY_UNICODE) { > ret = (from->elsize << 2 <= to->elsize); > } > } > else if (fromtype == NPY_UNICODE) { > if (totype == NPY_UNICODE) { > ret = (from->elsize <= to->elsize); > } > } > > > > > > } > return ret; >} > > >static int >dtype_kind_to_ordering(char kind) >{ > switch (kind) { > > case 'b': > return 0; > > case 'u': > return 1; > > case 'i': > return 2; > > case 'f': > return 4; > > case 'c': > return 5; > > case 'S': > case 'a': > return 6; > > case 'U': > return 7; > > case 'V': > return 8; > > case 'O': > return 9; > > default: > return 10; > } >} > > >static int >type_num_unsigned_to_signed(int type_num) >{ > switch (type_num) { > case NPY_UBYTE: > return NPY_BYTE; > case NPY_USHORT: > return NPY_SHORT; > case NPY_UINT: > return NPY_INT; > case NPY_ULONG: > return NPY_LONG; > case NPY_ULONGLONG: > return NPY_LONGLONG; > default: > return type_num; > } >} > > > > > >static npy_bool >PyArray_CanCastTypeTo(PyArray_Descr *from, PyArray_Descr *to, > NPY_CASTING casting) >{ > > if (casting == NPY_UNSAFE_CASTING) { > return 1; > } > > else if (PyArray_EquivTypenums(from->type_num, to->type_num)) { > > if ((((from->type_num) >= NPY_USERDEF) && ((from->type_num) < NPY_USERDEF+ NPY_NUMUSERTYPES)) || > (((PyArray_Descr *)(from))->names != ((void *)0)) || > from->subarray != ((void *)0)) { > int ret; > > > if ((casting != NPY_NO_CASTING) && > (!((from->byteorder) != '>') || > !((to->byteorder) != '>'))) { > PyArray_Descr *nbo_from, *nbo_to; > > nbo_from = PyArray_DescrNewByteorder(from, '='); > nbo_to = PyArray_DescrNewByteorder(to, '='); > if (nbo_from == ((void *)0) || nbo_to == ((void *)0)) { > do { if ((nbo_from) == ((void *)0)) ; else do { if ( --((PyObject*)(nbo_from))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(nbo_from)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(nbo_from)))); } while (0); } while (0); > do { if ((nbo_to) == ((void *)0)) ; else do { if ( --((PyObject*)(nbo_to))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(nbo_to)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(nbo_to)))); } while (0); } while (0); > PyErr_Clear(); > return 0; > } > ret = PyArray_EquivTypes(nbo_from, nbo_to); > do { if ( --((PyObject*)(nbo_from))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(nbo_from)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(nbo_from)))); } while (0); > do { if ( --((PyObject*)(nbo_to))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(nbo_to)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(nbo_to)))); } while (0); > } > else { > ret = PyArray_EquivTypes(from, to); > } > return ret; > } > > switch (casting) { > case NPY_NO_CASTING: > return (from->elsize == to->elsize) && > ((from->byteorder) != '>') == > ((to->byteorder) != '>'); > case NPY_EQUIV_CASTING: > return (from->elsize == to->elsize); > case NPY_SAFE_CASTING: > return (from->elsize <= to->elsize); > default: > return 1; > } > } > > else if (casting == NPY_SAFE_CASTING || casting == NPY_SAME_KIND_CASTING) { > if (PyArray_CanCastTo(from, to)) { > return 1; > } > else if(casting == NPY_SAME_KIND_CASTING) { > > > > > return dtype_kind_to_ordering(from->kind) <= > dtype_kind_to_ordering(to->kind); > } > else { > return 0; > } > } > > else { > return 0; > } >} > > >static int min_scalar_type_num(char *valueptr, int type_num, > int *is_small_unsigned); > > > > > > > >static npy_bool >PyArray_CanCastArrayTo(PyArrayObject *arr, PyArray_Descr *to, > NPY_CASTING casting) >{ > PyArray_Descr *from = (((PyArrayObject *)(arr))->descr); > > > if ((((PyArrayObject *)(arr))->nd) > 0 || !(((from->type_num) <= NPY_CLONGDOUBLE) || ((from->type_num) == NPY_HALF))) { > return PyArray_CanCastTypeTo(from, to, casting); > } > > else { > int swap = !((from->byteorder) != '>'); > int is_small_unsigned = 0, type_num; > npy_bool ret; > PyArray_Descr *dtype; > > > npy_longlong value[4]; > > from->f->copyswap(&value, (((PyArrayObject *)(arr))->data), swap, ((void *)0)); > > type_num = min_scalar_type_num((char *)&value, from->type_num, > &is_small_unsigned); > > > > > > > if (is_small_unsigned && !((((to->type_num) == NPY_UBYTE) || ((to->type_num) == NPY_USHORT) || ((to->type_num) == NPY_UINT) || ((to->type_num) == NPY_ULONG) || ((to->type_num) == NPY_ULONGLONG)))) { > type_num = type_num_unsigned_to_signed(type_num); > } > > dtype = PyArray_DescrFromType(type_num); > if (dtype == ((void *)0)) { > return 0; > } > > > > > > > > ret = PyArray_CanCastTypeTo(dtype, to, casting); > do { if ( --((PyObject*)(dtype))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(dtype)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(dtype)))); } while (0); > return ret; > } >} > > > > > > >static npy_bool >PyArray_CanCastScalar(PyTypeObject *from, PyTypeObject *to) >{ > int fromtype; > int totype; > > fromtype = _typenum_fromtypeobj((PyObject *)from, 0); > totype = _typenum_fromtypeobj((PyObject *)to, 0); > if (fromtype == NPY_NOTYPE || totype == NPY_NOTYPE) { > return 0; > } > return (npy_bool) PyArray_CanCastSafely(fromtype, totype); >} > > > > > >static PyArray_Descr * >promote_types(PyArray_Descr *type1, PyArray_Descr *type2, > int is_small_unsigned1, int is_small_unsigned2) >{ > if (is_small_unsigned1) { > int type_num1 = type1->type_num; > int type_num2 = type2->type_num; > int ret_type_num; > > if (type_num2 < NPY_NTYPES && !(((type_num2) == NPY_BOOL) || > (((type_num2) == NPY_UBYTE) || ((type_num2) == NPY_USHORT) || ((type_num2) == NPY_UINT) || ((type_num2) == NPY_ULONG) || ((type_num2) == NPY_ULONGLONG)))) { > > type_num1 = type_num_unsigned_to_signed(type_num1); > > ret_type_num = _npy_type_promotion_table[type_num1][type_num2]; > > if (ret_type_num >= 0) { > return PyArray_DescrFromType(ret_type_num); > } > } > > return PyArray_PromoteTypes(type1, type2); > } > else if (is_small_unsigned2) { > int type_num1 = type1->type_num; > int type_num2 = type2->type_num; > int ret_type_num; > > if (type_num1 < NPY_NTYPES && !(((type_num1) == NPY_BOOL) || > (((type_num1) == NPY_UBYTE) || ((type_num1) == NPY_USHORT) || ((type_num1) == NPY_UINT) || ((type_num1) == NPY_ULONG) || ((type_num1) == NPY_ULONGLONG)))) { > > type_num2 = type_num_unsigned_to_signed(type_num2); > > ret_type_num = _npy_type_promotion_table[type_num1][type_num2]; > > if (ret_type_num >= 0) { > return PyArray_DescrFromType(ret_type_num); > } > } > > return PyArray_PromoteTypes(type1, type2); > } > else { > return PyArray_PromoteTypes(type1, type2); > } > >} > > > > > >static PyArray_Descr * >PyArray_PromoteTypes(PyArray_Descr *type1, PyArray_Descr *type2) >{ > int type_num1, type_num2, ret_type_num; > > type_num1 = type1->type_num; > type_num2 = type2->type_num; > > > if (type_num1 < NPY_NTYPES && type_num2 < NPY_NTYPES) { > ret_type_num = _npy_type_promotion_table[type_num1][type_num2]; > > if (ret_type_num >= 0) { > return PyArray_DescrFromType(ret_type_num); > } > } > > else { > int skind1 = NPY_NOSCALAR, skind2 = NPY_NOSCALAR, skind; > > if (PyArray_CanCastTo(type2, type1)) { > > if (((type1->byteorder) != '>')) { > ( ((PyObject*)(type1))->ob_refcnt++); > return type1; > } > else { > return PyArray_DescrNewByteorder(type1, '='); > } > } > else if (PyArray_CanCastTo(type1, type2)) { > > if (((type2->byteorder) != '>')) { > ( ((PyObject*)(type2))->ob_refcnt++); > return type2; > } > else { > return PyArray_DescrNewByteorder(type2, '='); > } > } > > > switch (type1->kind) { > case 'b': > skind1 = NPY_BOOL_SCALAR; > break; > case 'u': > skind1 = NPY_INTPOS_SCALAR; > break; > case 'i': > skind1 = NPY_INTNEG_SCALAR; > break; > case 'f': > skind1 = NPY_FLOAT_SCALAR; > break; > case 'c': > skind1 = NPY_COMPLEX_SCALAR; > break; > } > switch (type2->kind) { > case 'b': > skind2 = NPY_BOOL_SCALAR; > break; > case 'u': > skind2 = NPY_INTPOS_SCALAR; > break; > case 'i': > skind2 = NPY_INTNEG_SCALAR; > break; > case 'f': > skind2 = NPY_FLOAT_SCALAR; > break; > case 'c': > skind2 = NPY_COMPLEX_SCALAR; > break; > } > > > if (skind1 != NPY_NOSCALAR && skind2 != NPY_NOSCALAR) { > > > skind = (skind1 > skind2) ? skind1 : skind2; > ret_type_num = _npy_smallest_type_of_kind_table[skind]; > > for (;;) { > > > if (ret_type_num < 0) { > ++skind; > > if (skind < (NPY_OBJECT_SCALAR + 1)) { > ret_type_num = _npy_smallest_type_of_kind_table[skind]; > } > else { > break; > } > } > > > if (PyArray_CanCastSafely(type_num1, ret_type_num) && > PyArray_CanCastSafely(type_num2, ret_type_num)) { > return PyArray_DescrFromType(ret_type_num); > } > > > ret_type_num = _npy_next_larger_type_table[ret_type_num]; > } > > } > > PyErr_SetString(PyExc_TypeError, > "invalid type promotion with custom data type"); > return ((void *)0); > } > > switch (type_num1) { > > case NPY_BOOL: > ( ((PyObject*)(type2))->ob_refcnt++); > return type2; > > case NPY_STRING: > if (type_num2 == NPY_STRING) { > if (type1->elsize > type2->elsize) { > ( ((PyObject*)(type1))->ob_refcnt++); > return type1; > } > else { > ( ((PyObject*)(type2))->ob_refcnt++); > return type2; > } > } > else if (type_num2 == NPY_UNICODE) { > if (type2->elsize >= type1->elsize * 4) { > ( ((PyObject*)(type2))->ob_refcnt++); > return type2; > } > else { > PyArray_Descr *d = PyArray_DescrNewFromType(NPY_UNICODE); > if (d == ((void *)0)) { > return ((void *)0); > } > d->elsize = type1->elsize * 4; > return d; > } > } > > else if ((((type_num2) <= NPY_CLONGDOUBLE) || ((type_num2) == NPY_HALF))) { > ( ((PyObject*)(type1))->ob_refcnt++); > return type1; > } > case NPY_UNICODE: > if (type_num2 == NPY_UNICODE) { > if (type1->elsize > type2->elsize) { > ( ((PyObject*)(type1))->ob_refcnt++); > return type1; > } > else { > ( ((PyObject*)(type2))->ob_refcnt++); > return type2; > } > } > else if (type_num2 == NPY_STRING) { > if (type1->elsize >= type2->elsize * 4) { > ( ((PyObject*)(type1))->ob_refcnt++); > return type1; > } > else { > PyArray_Descr *d = PyArray_DescrNewFromType(NPY_UNICODE); > if (d == ((void *)0)) { > return ((void *)0); > } > d->elsize = type2->elsize * 4; > return d; > } > } > > else if ((((type_num2) <= NPY_CLONGDOUBLE) || ((type_num2) == NPY_HALF))) { > ( ((PyObject*)(type1))->ob_refcnt++); > return type1; > } > break; > } > > switch (type_num2) { > > case NPY_BOOL: > ( ((PyObject*)(type1))->ob_refcnt++); > return type1; > case NPY_STRING: > > if ((((type_num1) <= NPY_CLONGDOUBLE) || ((type_num1) == NPY_HALF))) { > ( ((PyObject*)(type2))->ob_refcnt++); > return type2; > } > case NPY_UNICODE: > > if ((((type_num1) <= NPY_CLONGDOUBLE) || ((type_num1) == NPY_HALF))) { > ( ((PyObject*)(type2))->ob_refcnt++); > return type2; > } > break; > } > > > if (PyArray_EquivTypes(type1, type2)) { > ( ((PyObject*)(type1))->ob_refcnt++); > return type1; > } ># 753 "numpy/core/src/multiarray/convert_datatype.c" > PyErr_SetString(PyExc_TypeError, "invalid type promotion"); > return ((void *)0); >} ># 765 "numpy/core/src/multiarray/convert_datatype.c" >static int min_scalar_type_num(char *valueptr, int type_num, > int *is_small_unsigned) >{ > switch (type_num) { > case NPY_BOOL: { > return NPY_BOOL; > } > case NPY_UBYTE: { > npy_ubyte value = *(npy_ubyte *)valueptr; > if (value <= 127) { > *is_small_unsigned = 1; > } > return NPY_UBYTE; > } > case NPY_BYTE: { > npy_byte value = *(npy_byte *)valueptr; > if (value >= 0) { > *is_small_unsigned = 1; > return NPY_UBYTE; > } > break; > } > case NPY_USHORT: { > npy_ushort value = *(npy_ushort *)valueptr; > if (value <= (127 * 2 + 1)) { > if (value <= 127) { > *is_small_unsigned = 1; > } > return NPY_UBYTE; > } > > if (value <= 32767) { > *is_small_unsigned = 1; > } > break; > } > case NPY_SHORT: { > npy_short value = *(npy_short *)valueptr; > if (value >= 0) { > return min_scalar_type_num(valueptr, NPY_USHORT, is_small_unsigned); > } > else if (value >= (-127 - 1)) { > return NPY_BYTE; > } > break; > } > > > > case NPY_UINT: { > npy_uint value = *(npy_uint *)valueptr; > if (value <= (127 * 2 + 1)) { > if (value < 127) { > *is_small_unsigned = 1; > } > return NPY_UBYTE; > } > else if (value <= (32767 * 2 + 1)) { > if (value <= 32767) { > *is_small_unsigned = 1; > } > return NPY_USHORT; > } > > if (value <= 2147483647) { > *is_small_unsigned = 1; > } > break; > } > > > > case NPY_INT: { > npy_int value = *(npy_int *)valueptr; > if (value >= 0) { > return min_scalar_type_num(valueptr, NPY_UINT, is_small_unsigned); > } > else if (value >= (-127 - 1)) { > return NPY_BYTE; > } > else if (value >= (-32767 - 1)) { > return NPY_SHORT; > } > break; > } ># 895 "numpy/core/src/multiarray/convert_datatype.c" > case NPY_ULONG: > > case NPY_ULONGLONG: { > npy_ulonglong value = *(npy_ulonglong *)valueptr; > if (value <= (127 * 2 + 1)) { > if (value <= 127) { > *is_small_unsigned = 1; > } > return NPY_UBYTE; > } > else if (value <= (32767 * 2 + 1)) { > if (value <= 32767) { > *is_small_unsigned = 1; > } > return NPY_USHORT; > } > else if (value <= (2147483647 * 2U + 1U)) { > if (value <= 2147483647) { > *is_small_unsigned = 1; > } > return NPY_UINT; > } ># 926 "numpy/core/src/multiarray/convert_datatype.c" > if (value <= (9223372036854775807LL)) { > *is_small_unsigned = 1; > } > break; > } > > case NPY_LONG: > > case NPY_LONGLONG: { > npy_longlong value = *(npy_longlong *)valueptr; > if (value >= 0) { > return min_scalar_type_num(valueptr, NPY_ULONGLONG, is_small_unsigned); > } > else if (value >= (-127 - 1)) { > return NPY_BYTE; > } > else if (value >= (-32767 - 1)) { > return NPY_SHORT; > } > else if (value >= (-2147483647 - 1)) { > return NPY_INT; > } > > > > > > break; > } > > > > > case NPY_HALF: { > return NPY_HALF; > } > case NPY_FLOAT: { > float value = *(float *)valueptr; > if (value > -65000 && value < 65000) { > return NPY_HALF; > } > break; > } > case NPY_DOUBLE: { > double value = *(double *)valueptr; > if (value > -65000 && value < 65000) { > return NPY_HALF; > } > else if (value > -3.4e38 && value < 3.4e38) { > return NPY_FLOAT; > } > break; > } > case NPY_LONGDOUBLE: { > npy_longdouble value = *(npy_longdouble *)valueptr; > if (value > -65000 && value < 65000) { > return NPY_HALF; > } > else if (value > -3.4e38 && value < 3.4e38) { > return NPY_FLOAT; > } > else if (value > -1.7e308 && value < 1.7e308) { > return NPY_DOUBLE; > } > break; > } > > > > > case NPY_CFLOAT: { > > > > > > > > break; > } > case NPY_CDOUBLE: { > npy_cdouble value = *(npy_cdouble *)valueptr; > > > > > > > if (value.real > -3.4e38 && value.real < 3.4e38 && > value.imag > -3.4e38 && value.imag < 3.4e38) { > return NPY_CFLOAT; > } > break; > } > case NPY_CLONGDOUBLE: { > npy_cdouble value = *(npy_cdouble *)valueptr; > > > > > > > if (value.real > -3.4e38 && value.real < 3.4e38 && > value.imag > -3.4e38 && value.imag < 3.4e38) { > return NPY_CFLOAT; > } > else if (value.real > -1.7e308 && value.real < 1.7e308 && > value.imag > -1.7e308 && value.imag < 1.7e308) { > return NPY_CDOUBLE; > } > break; > } > } > > return type_num; >} > > > > > > > >static PyArray_Descr * >PyArray_MinScalarType(PyArrayObject *arr) >{ > PyArray_Descr *dtype = (((PyArrayObject *)(arr))->descr); > if ((((PyArrayObject *)(arr))->nd) > 0 || !(((dtype->type_num) <= NPY_CLONGDOUBLE) || ((dtype->type_num) == NPY_HALF))) { > ( ((PyObject*)(dtype))->ob_refcnt++); > return dtype; > } > else { > char *data = (((PyArrayObject *)(arr))->data); > int swap = !((dtype->byteorder) != '>'); > int is_small_unsigned = 0; > > npy_longlong value[4]; > dtype->f->copyswap(&value, data, swap, ((void *)0)); > > return PyArray_DescrFromType( > min_scalar_type_num((char *)&value, > dtype->type_num, &is_small_unsigned)); > > } >} > > > > > > >static int >dtype_kind_to_simplified_ordering(char kind) >{ > switch (kind) { > > case 'b': > return 0; > > case 'u': > > case 'i': > return 1; > > case 'f': > > case 'c': > return 2; > > default: > return 3; > } >} ># 1114 "numpy/core/src/multiarray/convert_datatype.c" >static PyArray_Descr * >PyArray_ResultType(npy_intp narrs, PyArrayObject **arr, > npy_intp ndtypes, PyArray_Descr **dtypes) >{ > npy_intp i; > int use_min_scalar = 0; > PyArray_Descr *ret = ((void *)0), *tmpret; > int ret_is_small_unsigned = 0; > > > if (narrs + ndtypes == 1) { > if (narrs == 1) { > ret = (((PyArrayObject *)(arr[0]))->descr); > } > else { > ret = dtypes[0]; > } > ( ((PyObject*)(ret))->ob_refcnt++); > return ret; > } > > > > > > > if (narrs > 0) { > int all_scalars, max_scalar_kind = -1, max_array_kind = -1; > int kind; > > all_scalars = (ndtypes > 0) ? 0 : 1; > > > for (i = 0; i < narrs; ++i) { > if ((((PyArrayObject *)(arr[i]))->nd) == 0) { > kind = dtype_kind_to_simplified_ordering( > (((PyArrayObject *)(arr[i]))->descr)->kind); > if (kind > max_scalar_kind) { > max_scalar_kind = kind; > } > } > else { > all_scalars = 0; > kind = dtype_kind_to_simplified_ordering( > (((PyArrayObject *)(arr[i]))->descr)->kind); > if (kind > max_array_kind) { > max_array_kind = kind; > } > } > } > > > > > for (i = 0; i < ndtypes; ++i) { > kind = dtype_kind_to_simplified_ordering(dtypes[i]->kind); > if (kind > max_array_kind) { > max_array_kind = kind; > } > } > > > if (!all_scalars && max_array_kind >= max_scalar_kind) { > use_min_scalar = 1; > } > } > > > if (!use_min_scalar) { > for (i = 0; i < narrs; ++i) { > PyArray_Descr *tmp = (((PyArrayObject *)(arr[i]))->descr); > > if (ret == ((void *)0)) { > ret = tmp; > ( ((PyObject*)(ret))->ob_refcnt++); > } > else { > > if (tmp != ret || !((ret->byteorder) != '>')) { > tmpret = PyArray_PromoteTypes(tmp, ret); > do { if ( --((PyObject*)(ret))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(ret)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(ret)))); } while (0); > ret = tmpret; > if (ret == ((void *)0)) { > return ((void *)0); > } > } > } > } > > for (i = 0; i < ndtypes; ++i) { > PyArray_Descr *tmp = dtypes[i]; > > if (ret == ((void *)0)) { > ret = tmp; > ( ((PyObject*)(ret))->ob_refcnt++); > } > else { > > if (tmp != ret || !((tmp->byteorder) != '>')) { > tmpret = PyArray_PromoteTypes(tmp, ret); > do { if ( --((PyObject*)(ret))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(ret)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(ret)))); } while (0); > ret = tmpret; > if (ret == ((void *)0)) { > return ((void *)0); > } > } > } > } > } > else { > for (i = 0; i < narrs; ++i) { > > PyArray_Descr *tmp = (((PyArrayObject *)(arr[i]))->descr); > int tmp_is_small_unsigned = 0; > > > > > > > if ((((PyArrayObject *)(arr[i]))->nd) == 0 && > (((tmp->type_num) <= NPY_CLONGDOUBLE) || ((tmp->type_num) == NPY_HALF))) { > char *data = (((PyArrayObject *)(arr[i]))->data); > int swap = !((tmp->byteorder) != '>'); > int type_num; > > npy_longlong value[4]; > tmp->f->copyswap(&value, data, swap, ((void *)0)); > type_num = min_scalar_type_num((char *)&value, > tmp->type_num, &tmp_is_small_unsigned); > tmp = PyArray_DescrFromType(type_num); > if (tmp == ((void *)0)) { > do { if ((ret) == ((void *)0)) ; else do { if ( --((PyObject*)(ret))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(ret)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(ret)))); } while (0); } while (0); > return ((void *)0); > } > } > else { > ( ((PyObject*)(tmp))->ob_refcnt++); > } > > if (ret == ((void *)0)) { > ret = tmp; > ret_is_small_unsigned = tmp_is_small_unsigned; > } > else { ># 1268 "numpy/core/src/multiarray/convert_datatype.c" > if (tmp == ret && ((tmp->byteorder) != '>')) { > do { if ( --((PyObject*)(tmp))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(tmp)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(tmp)))); } while (0); > } > else { > tmpret = promote_types(tmp, ret, tmp_is_small_unsigned, > ret_is_small_unsigned); > if (tmpret == ((void *)0)) { > do { if ( --((PyObject*)(tmp))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(tmp)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(tmp)))); } while (0); > do { if ( --((PyObject*)(ret))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(ret)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(ret)))); } while (0); > return ((void *)0); > } > do { if ( --((PyObject*)(tmp))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(tmp)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(tmp)))); } while (0); > do { if ( --((PyObject*)(ret))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(ret)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(ret)))); } while (0); > ret = tmpret; > } > ret_is_small_unsigned = tmp_is_small_unsigned && > ret_is_small_unsigned; > } > } > > for (i = 0; i < ndtypes; ++i) { > PyArray_Descr *tmp = dtypes[i]; > > if (ret == ((void *)0)) { > ret = tmp; > ( ((PyObject*)(ret))->ob_refcnt++); > } > else { > > if (tmp != ret || !((tmp->byteorder) != '>')) { > if (ret_is_small_unsigned) { > tmpret = promote_types(tmp, ret, 0, > ret_is_small_unsigned); > if (tmpret == ((void *)0)) { > do { if ( --((PyObject*)(tmp))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(tmp)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(tmp)))); } while (0); > do { if ( --((PyObject*)(ret))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(ret)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(ret)))); } while (0); > return ((void *)0); > } > } > else { > tmpret = PyArray_PromoteTypes(tmp, ret); > } > do { if ( --((PyObject*)(ret))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(ret)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(ret)))); } while (0); > ret = tmpret; > if (ret == ((void *)0)) { > return ((void *)0); > } > } > } > } > } > > if (ret == ((void *)0)) { > PyErr_SetString(PyExc_TypeError, > "no arrays or types available to calculate result type"); > } > > return ret; >} > > > > >static int >PyArray_ValidType(int type) >{ > PyArray_Descr *descr; > int res=1; > > descr = PyArray_DescrFromType(type); > if (descr == ((void *)0)) { > res = 0; > } > do { if ( --((PyObject*)(descr))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(descr)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(descr)))); } while (0); > return res; >} ># 1359 "numpy/core/src/multiarray/convert_datatype.c" >static int >_check_object_rec(PyArray_Descr *descr) >{ > if ((((PyArray_Descr *)(descr))->names != ((void *)0)) && (((descr)->flags & (0x01)) == (0x01))) { > PyErr_SetString(PyExc_TypeError, "Not supported for this data-type."); > return -1; > } > return 0; >} > > > > >static char * >PyArray_Zero(PyArrayObject *arr) >{ > char *zeroval; > int ret, storeflags; > PyObject *obj; > > if (_check_object_rec(arr->descr) < 0) { > return ((void *)0); > } > zeroval = ((char *)malloc(arr->descr->elsize)); > if (zeroval == ((void *)0)) { > PyErr_SetNone(PyExc_MemoryError); > return ((void *)0); > } > > obj=PyInt_FromLong((long) 0); > if ((((((PyArrayObject *)(arr))->descr->type_num)) == NPY_OBJECT)) { > memcpy(zeroval, &obj, sizeof(PyObject *)); > do { if ( --((PyObject*)(obj))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(obj)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(obj)))); } while (0); > return zeroval; > } > storeflags = arr->flags; > arr->flags |= (0x0100 | 0x0400); > ret = arr->descr->f->setitem(obj, zeroval, arr); > arr->flags = storeflags; > do { if ( --((PyObject*)(obj))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(obj)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(obj)))); } while (0); > if (ret < 0) { > free(zeroval); > return ((void *)0); > } > return zeroval; >} > > > > >static char * >PyArray_One(PyArrayObject *arr) >{ > char *oneval; > int ret, storeflags; > PyObject *obj; > > if (_check_object_rec(arr->descr) < 0) { > return ((void *)0); > } > oneval = ((char *)malloc(arr->descr->elsize)); > if (oneval == ((void *)0)) { > PyErr_SetNone(PyExc_MemoryError); > return ((void *)0); > } > > obj = PyInt_FromLong((long) 1); > if ((((((PyArrayObject *)(arr))->descr->type_num)) == NPY_OBJECT)) { > memcpy(oneval, &obj, sizeof(PyObject *)); > do { if ( --((PyObject*)(obj))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(obj)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(obj)))); } while (0); > return oneval; > } > > storeflags = arr->flags; > arr->flags |= (0x0100 | 0x0400); > ret = arr->descr->f->setitem(obj, oneval, arr); > arr->flags = storeflags; > do { if ( --((PyObject*)(obj))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(obj)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(obj)))); } while (0); > if (ret < 0) { > free(oneval); > return ((void *)0); > } > return oneval; >} > > > > > > >static int >PyArray_ObjectType(PyObject *op, int minimum_type) >{ > PyArray_Descr *intype; > PyArray_Descr *outtype; > int ret; > > intype = PyArray_DescrFromType(minimum_type); > if (intype == ((void *)0)) { > PyErr_Clear(); > } > outtype = _array_find_type(op, intype, 32); > ret = outtype->type_num; > do { if ( --((PyObject*)(outtype))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(outtype)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(outtype)))); } while (0); > do { if ((intype) == ((void *)0)) ; else do { if ( --((PyObject*)(intype))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(intype)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(intype)))); } while (0); } while (0); > return ret; >} > > > > >static PyArrayObject ** >PyArray_ConvertToCommonType(PyObject *op, int *retn) >{ > int i, n, allscalars = 0; > PyArrayObject **mps = ((void *)0); > PyObject *otmp; > PyArray_Descr *intype = ((void *)0), *stype = ((void *)0); > PyArray_Descr *newtype = ((void *)0); > NPY_SCALARKIND scalarkind = NPY_NOSCALAR, intypekind = NPY_NOSCALAR; > > *retn = n = PySequence_Size(op); > if (n == 0) { > PyErr_SetString(PyExc_ValueError, "0-length sequence."); > } > if (PyErr_Occurred()) { > *retn = 0; > return ((void *)0); > } > mps = (PyArrayObject **)((char *)malloc(n*sizeof(PyArrayObject *))); > if (mps == ((void *)0)) { > *retn = 0; > return (void*)PyErr_NoMemory(); > } > > if (((((PyObject*)(op))->ob_type) == (&PyArray_Type) || PyType_IsSubtype((((PyObject*)(op))->ob_type), (&PyArray_Type)))) { > for (i = 0; i < n; i++) { > mps[i] = (PyArrayObject *) array_big_item((PyArrayObject *)op, i); > } > if (!(((((PyArrayObject *)(op))->flags & ((0x0001 | (0x0100 | 0x0400)))) == ((0x0001 | (0x0100 | 0x0400)))) && (((((PyArrayObject *)(op))->descr)->byteorder) != '>'))) { > for (i = 0; i < n; i++) { > PyObject *obj; > obj = PyArray_NewCopy(mps[i], NPY_CORDER); > do { if ( --((PyObject*)(mps[i]))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(mps[i])))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(mps[i])))); } while (0); > mps[i] = (PyArrayObject *)obj; > } > } > return mps; > } > > for (i = 0; i < n; i++) { > mps[i] = ((void *)0); > } > > for (i = 0; i < n; i++) { > otmp = PySequence_GetItem(op, i); > if (!(((((((otmp)->ob_type)->tp_flags & ((1L<<23))) != 0) || ((((PyObject*)(otmp))->ob_type) == (&PyFloat_Type) || PyType_IsSubtype((((PyObject*)(otmp))->ob_type), (&PyFloat_Type))) || ((((PyObject*)(otmp))->ob_type) == (&PyComplex_Type) || PyType_IsSubtype((((PyObject*)(otmp))->ob_type), (&PyComplex_Type))) || ((((((PyObject*)(otmp))->ob_type))->tp_flags & ((1L<<24))) != 0) || ((((PyObject*)(otmp))->ob_type) == &PyBool_Type)) || ((((((PyObject*)(otmp))->ob_type))->tp_flags & ((1L<<27))) != 0) || ((((((PyObject*)(otmp))->ob_type))->tp_flags & ((1L<<28))) != 0)) || ((((((PyObject*)(otmp))->ob_type) == (&PyGenericArrType_Type) || PyType_IsSubtype((((PyObject*)(otmp))->ob_type), (&PyGenericArrType_Type)))) || (((((PyObject*)(otmp))->ob_type) == (&PyArray_Type) || PyType_IsSubtype((((PyObject*)(otmp))->ob_type), (&PyArray_Type))) && ((((PyArrayObject *)(otmp))->nd) == 0))))) { > newtype = PyArray_DescrFromObject(otmp, intype); > do { if ((intype) == ((void *)0)) ; else do { if ( --((PyObject*)(intype))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(intype)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(intype)))); } while (0); } while (0); > if (newtype == ((void *)0)) { > goto fail; > } > intype = newtype; > intypekind = PyArray_ScalarKind(intype->type_num, ((void *)0)); > } > else { > newtype = PyArray_DescrFromObject(otmp, stype); > do { if ((stype) == ((void *)0)) ; else do { if ( --((PyObject*)(stype))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(stype)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(stype)))); } while (0); } while (0); > stype = newtype; > scalarkind = PyArray_ScalarKind(newtype->type_num, ((void *)0)); > mps[i] = (PyArrayObject *)(&_Py_NoneStruct); > ( ((PyObject*)((&_Py_NoneStruct)))->ob_refcnt++); > } > do { if ((otmp) == ((void *)0)) ; else do { if ( --((PyObject*)(otmp))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(otmp)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(otmp)))); } while (0); } while (0); > } > if (intype==((void *)0)) { > > allscalars = 1; > intype = stype; > ( ((PyObject*)(intype))->ob_refcnt++); > for (i = 0; i < n; i++) { > do { if ((mps[i]) == ((void *)0)) ; else do { if ( --((PyObject*)(mps[i]))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(mps[i])))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(mps[i])))); } while (0); } while (0); > mps[i] = ((void *)0); > } > } > else if ((stype != ((void *)0)) && (intypekind != scalarkind)) { > > > > > > if (!PyArray_CanCoerceScalar(stype->type_num, > intype->type_num, > scalarkind)) { > newtype = PyArray_PromoteTypes(intype, stype); > do { if ((intype) == ((void *)0)) ; else do { if ( --((PyObject*)(intype))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(intype)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(intype)))); } while (0); } while (0); > intype = newtype; > } > for (i = 0; i < n; i++) { > do { if ((mps[i]) == ((void *)0)) ; else do { if ( --((PyObject*)(mps[i]))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(mps[i])))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(mps[i])))); } while (0); } while (0); > mps[i] = ((void *)0); > } > } > > > > for (i = 0; i < n; i++) { > int flags = (0x0001 | (0x0100 | 0x0400)); > > if ((otmp = PySequence_GetItem(op, i)) == ((void *)0)) { > goto fail; > } > if (!allscalars && ((PyObject *)(mps[i]) == (&_Py_NoneStruct))) { > > flags |= 0x0010; > do { if ( --((PyObject*)((&_Py_NoneStruct)))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)((&_Py_NoneStruct))))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)((&_Py_NoneStruct))))); } while (0); > } > ( ((PyObject*)(intype))->ob_refcnt++); > mps[i] = (PyArrayObject*) > PyArray_FromAny(otmp, intype, 0, 0, flags, ((void *)0)); > do { if ( --((PyObject*)(otmp))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(otmp)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(otmp)))); } while (0); > if (mps[i] == ((void *)0)) { > goto fail; > } > } > do { if ( --((PyObject*)(intype))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(intype)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(intype)))); } while (0); > do { if ((stype) == ((void *)0)) ; else do { if ( --((PyObject*)(stype))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(stype)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(stype)))); } while (0); } while (0); > return mps; > > fail: > do { if ((intype) == ((void *)0)) ; else do { if ( --((PyObject*)(intype))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(intype)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(intype)))); } while (0); } while (0); > do { if ((stype) == ((void *)0)) ; else do { if ( --((PyObject*)(stype))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(stype)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(stype)))); } while (0); } while (0); > *retn = 0; > for (i = 0; i < n; i++) { > do { if ((mps[i]) == ((void *)0)) ; else do { if ( --((PyObject*)(mps[i]))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(mps[i])))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(mps[i])))); } while (0); } while (0); > } > free(mps); > return ((void *)0); >} ># 29 "numpy/core/src/multiarray/multiarraymodule_onefile.c" 2 ># 1 "numpy/core/src/multiarray/convert.c" 1 ># 18 "numpy/core/src/multiarray/convert.c" ># 1 "numpy/core/src/multiarray/convert.h" 1 > > > >static int >PyArray_FillWithZero(PyArrayObject *a); ># 19 "numpy/core/src/multiarray/convert.c" 2 > > > > > > > >static PyObject * >recursive_tolist(PyArrayObject *self, char *dataptr, int startdim) >{ > npy_intp i, n, stride; > PyObject *ret, *item; > > > if (startdim >= (((PyArrayObject *)(self))->nd)) { > return (((PyArrayObject *)(self))->descr)->f->getitem(dataptr,self); > } > > n = ((((PyArrayObject *)(self))->dimensions)[startdim]); > stride = ((((PyArrayObject *)(self))->strides)[startdim]); > > ret = PyList_New(n); > if (ret == ((void *)0)) { > return ((void *)0); > } > > for (i = 0; i < n; ++i) { > item = recursive_tolist(self, dataptr, startdim+1); > if (item == ((void *)0)) { > do { if ( --((PyObject*)(ret))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(ret)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(ret)))); } while (0); > return ((void *)0); > } > (((PyListObject *)(ret))->ob_item[i] = (item)); > > dataptr += stride; > } > > return ret; >} > > > > >static PyObject * >PyArray_ToList(PyArrayObject *self) >{ > return recursive_tolist(self, ((void *)(((PyArrayObject *)(self))->data)), 0); >} ># 76 "numpy/core/src/multiarray/convert.c" >static int >PyArray_ToFile(PyArrayObject *self, FILE *fp, char *sep, char *format) >{ > npy_intp size; > npy_intp n, n2; > size_t n3, n4; > PyArrayIterObject *it; > PyObject *obj, *strobj, *tupobj, *byteobj; > > n3 = (sep ? strlen((const char *)sep) : 0); > if (n3 == 0) { > > if ((((self->descr)->flags & (0x02)) == (0x02))) { > PyErr_SetString(PyExc_ValueError, "cannot write " "object arrays to a file in " "binary mode"); > > > return -1; > } > > if (((((PyArrayObject *)(self))->flags & (0x0001)) == (0x0001))) { > size = PyArray_MultiplyList((((PyArrayObject *)(self))->dimensions), (((PyArrayObject *)(self))->nd)); > { PyThreadState *_save; _save = PyEval_SaveThread();; ># 121 "numpy/core/src/multiarray/convert.c" > n = fwrite((const void *)self->data, > (size_t) self->descr->elsize, > (size_t) size, fp); > > PyEval_RestoreThread(_save); }; > if (n < size) { > PyErr_Format(PyExc_ValueError, > "%ld requested and %ld written", > (long) size, (long) n); > return -1; > } > } > else { > PyThreadState *_save=((void *)0);; > > it = (PyArrayIterObject *) PyArray_IterNew((PyObject *)self); > _save = PyEval_SaveThread();; > while (it->index < it->size) { > if (fwrite((const void *)it->dataptr, > (size_t) self->descr->elsize, > 1, fp) < 1) { > do {if (_save) PyEval_RestoreThread(_save);} while (0);; > PyErr_Format(PyExc_IOError, > "problem writing element" " %""l" "d"" to file", > > it->index); > do { if ( --((PyObject*)(it))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(it)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(it)))); } while (0); > return -1; > } > { ((PyArrayIterObject *)(it))->index++; if (((PyArrayIterObject *)(it))->nd_m1 == 0) { { (((PyArrayIterObject *)(it)))->dataptr += ((PyArrayIterObject *)(((PyArrayIterObject *)(it))))->strides[0]; (((PyArrayIterObject *)(it)))->coordinates[0]++; }; } else if (((PyArrayIterObject *)(it))->contiguous) ((PyArrayIterObject *)(it))->dataptr += ((PyArrayIterObject *)(it))->ao->descr->elsize; else if (((PyArrayIterObject *)(it))->nd_m1 == 1) { { if ((((PyArrayIterObject *)(it)))->coordinates[1] < (((PyArrayIterObject *)(it)))->dims_m1[1]) { (((PyArrayIterObject *)(it)))->coordinates[1]++; (((PyArrayIterObject *)(it)))->dataptr += (((PyArrayIterObject *)(it)))->strides[1]; } else { (((PyArrayIterObject *)(it)))->coordinates[1] = 0; (((PyArrayIterObject *)(it)))->coordinates[0]++; (((PyArrayIterObject *)(it)))->dataptr += (((PyArrayIterObject *)(it)))->strides[0] - (((PyArrayIterObject *)(it)))->backstrides[1]; } }; } else { int __npy_i; for (__npy_i=((PyArrayIterObject *)(it))->nd_m1; __npy_i >= 0; __npy_i--) { if (((PyArrayIterObject *)(it))->coordinates[__npy_i] < ((PyArrayIterObject *)(it))->dims_m1[__npy_i]) { ((PyArrayIterObject *)(it))->coordinates[__npy_i]++; ((PyArrayIterObject *)(it))->dataptr += ((PyArrayIterObject *)(it))->strides[__npy_i]; break; } else { ((PyArrayIterObject *)(it))->coordinates[__npy_i] = 0; ((PyArrayIterObject *)(it))->dataptr -= ((PyArrayIterObject *)(it))->backstrides[__npy_i]; } } } }; > } > do {if (_save) PyEval_RestoreThread(_save);} while (0);; > do { if ( --((PyObject*)(it))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(it)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(it)))); } while (0); > } > } > else { > > > > > it = (PyArrayIterObject *) > PyArray_IterNew((PyObject *)self); > n4 = (format ? strlen((const char *)format) : 0); > while (it->index < it->size) { > obj = self->descr->f->getitem(it->dataptr, self); > if (obj == ((void *)0)) { > do { if ( --((PyObject*)(it))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(it)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(it)))); } while (0); > return -1; > } > if (n4 == 0) { > > > > strobj = PyObject_Str(obj); > do { if ( --((PyObject*)(obj))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(obj)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(obj)))); } while (0); > if (strobj == ((void *)0)) { > do { if ( --((PyObject*)(it))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(it)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(it)))); } while (0); > return -1; > } > } > else { > > > > tupobj = PyTuple_New(1); > if (tupobj == ((void *)0)) { > do { if ( --((PyObject*)(it))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(it)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(it)))); } while (0); > return -1; > } > (((PyTupleObject *)(tupobj))->ob_item[0] = obj); > obj = PyString_FromString((const char *)format); > if (obj == ((void *)0)) { > do { if ( --((PyObject*)(tupobj))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(tupobj)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(tupobj)))); } while (0); > do { if ( --((PyObject*)(it))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(it)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(it)))); } while (0); > return -1; > } > strobj = PyString_Format(obj, tupobj); > do { if ( --((PyObject*)(obj))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(obj)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(obj)))); } while (0); > do { if ( --((PyObject*)(tupobj))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(tupobj)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(tupobj)))); } while (0); > if (strobj == ((void *)0)) { > do { if ( --((PyObject*)(it))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(it)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(it)))); } while (0); > return -1; > } > } > > > > byteobj = strobj; > > { PyThreadState *_save; _save = PyEval_SaveThread();; > n2 = (((PyVarObject*)(byteobj))->ob_size); > n = fwrite((((PyStringObject *)(byteobj))->ob_sval), 1, n2, fp); > PyEval_RestoreThread(_save); }; > > > > if (n < n2) { > PyErr_Format(PyExc_IOError, > "problem writing element %""l" "d" " to file", it->index); > > do { if ( --((PyObject*)(strobj))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(strobj)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(strobj)))); } while (0); > do { if ( --((PyObject*)(it))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(it)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(it)))); } while (0); > return -1; > } > > if (it->index != it->size-1) { > if (fwrite(sep, 1, n3, fp) < n3) { > PyErr_Format(PyExc_IOError, > "problem writing " "separator to file"); > > do { if ( --((PyObject*)(strobj))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(strobj)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(strobj)))); } while (0); > do { if ( --((PyObject*)(it))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(it)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(it)))); } while (0); > return -1; > } > } > do { if ( --((PyObject*)(strobj))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(strobj)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(strobj)))); } while (0); > { ((PyArrayIterObject *)(it))->index++; if (((PyArrayIterObject *)(it))->nd_m1 == 0) { { (((PyArrayIterObject *)(it)))->dataptr += ((PyArrayIterObject *)(((PyArrayIterObject *)(it))))->strides[0]; (((PyArrayIterObject *)(it)))->coordinates[0]++; }; } else if (((PyArrayIterObject *)(it))->contiguous) ((PyArrayIterObject *)(it))->dataptr += ((PyArrayIterObject *)(it))->ao->descr->elsize; else if (((PyArrayIterObject *)(it))->nd_m1 == 1) { { if ((((PyArrayIterObject *)(it)))->coordinates[1] < (((PyArrayIterObject *)(it)))->dims_m1[1]) { (((PyArrayIterObject *)(it)))->coordinates[1]++; (((PyArrayIterObject *)(it)))->dataptr += (((PyArrayIterObject *)(it)))->strides[1]; } else { (((PyArrayIterObject *)(it)))->coordinates[1] = 0; (((PyArrayIterObject *)(it)))->coordinates[0]++; (((PyArrayIterObject *)(it)))->dataptr += (((PyArrayIterObject *)(it)))->strides[0] - (((PyArrayIterObject *)(it)))->backstrides[1]; } }; } else { int __npy_i; for (__npy_i=((PyArrayIterObject *)(it))->nd_m1; __npy_i >= 0; __npy_i--) { if (((PyArrayIterObject *)(it))->coordinates[__npy_i] < ((PyArrayIterObject *)(it))->dims_m1[__npy_i]) { ((PyArrayIterObject *)(it))->coordinates[__npy_i]++; ((PyArrayIterObject *)(it))->dataptr += ((PyArrayIterObject *)(it))->strides[__npy_i]; break; } else { ((PyArrayIterObject *)(it))->coordinates[__npy_i] = 0; ((PyArrayIterObject *)(it))->dataptr -= ((PyArrayIterObject *)(it))->backstrides[__npy_i]; } } } }; > } > do { if ( --((PyObject*)(it))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(it)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(it)))); } while (0); > } > return 0; >} > > >static PyObject * >PyArray_ToString(PyArrayObject *self, NPY_ORDER order) >{ > npy_intp numbytes; > npy_intp index; > char *dptr; > int elsize; > PyObject *ret; > PyArrayIterObject *it; > > if (order == NPY_ANYORDER) > order = (((((PyArrayObject *)(self))->flags & (0x0002)) == (0x0002)) && ((((PyArrayObject *)(self))->nd) > 1)); ># 265 "numpy/core/src/multiarray/convert.c" > numbytes = ((((PyArrayObject *)(self))->descr->elsize) * PyArray_MultiplyList((((PyArrayObject *)(self))->dimensions), (((PyArrayObject *)(self))->nd))); > if ((((((PyArrayObject *)(self))->flags & (0x0001)) == (0x0001)) && (order == NPY_CORDER)) > || ((((((PyArrayObject *)(self))->flags & (0x0002)) == (0x0002)) && ((((PyArrayObject *)(self))->nd) > 1)) && (order == NPY_FORTRANORDER))) { > ret = PyString_FromStringAndSize(self->data, (Py_ssize_t) numbytes); > } > else { > PyObject *new; > if (order == NPY_FORTRANORDER) { > > new = PyArray_Transpose(self, ((void *)0)); > if (new == ((void *)0)) { > return ((void *)0); > } > } > else { > ( ((PyObject*)(self))->ob_refcnt++); > new = (PyObject *)self; > } > it = (PyArrayIterObject *)PyArray_IterNew(new); > do { if ( --((PyObject*)(new))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(new)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(new)))); } while (0); > if (it == ((void *)0)) { > return ((void *)0); > } > ret = PyString_FromStringAndSize(((void *)0), (Py_ssize_t) numbytes); > if (ret == ((void *)0)) { > do { if ( --((PyObject*)(it))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(it)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(it)))); } while (0); > return ((void *)0); > } > dptr = (((PyStringObject *)(ret))->ob_sval); > index = it->size; > elsize = self->descr->elsize; > while (index--) { > memcpy(dptr, it->dataptr, elsize); > dptr += elsize; > { ((PyArrayIterObject *)(it))->index++; if (((PyArrayIterObject *)(it))->nd_m1 == 0) { { (((PyArrayIterObject *)(it)))->dataptr += ((PyArrayIterObject *)(((PyArrayIterObject *)(it))))->strides[0]; (((PyArrayIterObject *)(it)))->coordinates[0]++; }; } else if (((PyArrayIterObject *)(it))->contiguous) ((PyArrayIterObject *)(it))->dataptr += ((PyArrayIterObject *)(it))->ao->descr->elsize; else if (((PyArrayIterObject *)(it))->nd_m1 == 1) { { if ((((PyArrayIterObject *)(it)))->coordinates[1] < (((PyArrayIterObject *)(it)))->dims_m1[1]) { (((PyArrayIterObject *)(it)))->coordinates[1]++; (((PyArrayIterObject *)(it)))->dataptr += (((PyArrayIterObject *)(it)))->strides[1]; } else { (((PyArrayIterObject *)(it)))->coordinates[1] = 0; (((PyArrayIterObject *)(it)))->coordinates[0]++; (((PyArrayIterObject *)(it)))->dataptr += (((PyArrayIterObject *)(it)))->strides[0] - (((PyArrayIterObject *)(it)))->backstrides[1]; } }; } else { int __npy_i; for (__npy_i=((PyArrayIterObject *)(it))->nd_m1; __npy_i >= 0; __npy_i--) { if (((PyArrayIterObject *)(it))->coordinates[__npy_i] < ((PyArrayIterObject *)(it))->dims_m1[__npy_i]) { ((PyArrayIterObject *)(it))->coordinates[__npy_i]++; ((PyArrayIterObject *)(it))->dataptr += ((PyArrayIterObject *)(it))->strides[__npy_i]; break; } else { ((PyArrayIterObject *)(it))->coordinates[__npy_i] = 0; ((PyArrayIterObject *)(it))->dataptr -= ((PyArrayIterObject *)(it))->backstrides[__npy_i]; } } } }; > } > do { if ( --((PyObject*)(it))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(it)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(it)))); } while (0); > } > return ret; >} > > >static int >PyArray_FillWithScalar(PyArrayObject *arr, PyObject *obj) >{ > PyObject *newarr; > int itemsize, swap; > void *fromptr; > PyArray_Descr *descr; > npy_intp size; > PyArray_CopySwapFunc *copyswap; > > itemsize = arr->descr->elsize; > if ((((((PyArrayObject *)(arr))->descr->type_num)) == NPY_OBJECT)) { > fromptr = &obj; > swap = 0; > newarr = ((void *)0); > } > else { > descr = (((PyArrayObject *)(arr))->descr); > ( ((PyObject*)(descr))->ob_refcnt++); > newarr = PyArray_FromAny(obj, descr, 0,0, 0x0100, ((void *)0)); > if (newarr == ((void *)0)) { > return -1; > } > fromptr = ((void *)(((PyArrayObject *)(newarr))->data)); > swap = ((((((PyArrayObject *)(arr))->descr)->byteorder) != '>') != (((((PyArrayObject *)(newarr))->descr)->byteorder) != '>')); > } > size=PyArray_MultiplyList((((PyArrayObject *)(arr))->dimensions), (((PyArrayObject *)(arr))->nd)); > copyswap = arr->descr->f->copyswap; > if (((((PyArrayObject *)(arr))->nd) == 0 || ((((PyArrayObject *)(arr))->flags & (0x0001)) == (0x0001)) || ((((PyArrayObject *)(arr))->flags & (0x0002)) == (0x0002)))) { > char *toptr=((void *)(((PyArrayObject *)(arr))->data)); > PyArray_FillWithScalarFunc* fillwithscalar = > arr->descr->f->fillwithscalar; > if (fillwithscalar && ((((PyArrayObject *)(arr))->flags & (0x0100)) == (0x0100))) { > copyswap(fromptr, ((void *)0), swap, newarr); > fillwithscalar(toptr, size, fromptr, arr); > } > else { > while (size--) { > copyswap(toptr, fromptr, swap, arr); > toptr += itemsize; > } > } > } > else { > PyArrayIterObject *iter; > > iter = (PyArrayIterObject *) PyArray_IterNew((PyObject *)arr); > > if (iter == ((void *)0)) { > do { if ((newarr) == ((void *)0)) ; else do { if ( --((PyObject*)(newarr))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(newarr)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(newarr)))); } while (0); } while (0); > return -1; > } > while (size--) { > copyswap(iter->dataptr, fromptr, swap, arr); > { ((PyArrayIterObject *)(iter))->index++; if (((PyArrayIterObject *)(iter))->nd_m1 == 0) { { (((PyArrayIterObject *)(iter)))->dataptr += ((PyArrayIterObject *)(((PyArrayIterObject *)(iter))))->strides[0]; (((PyArrayIterObject *)(iter)))->coordinates[0]++; }; } else if (((PyArrayIterObject *)(iter))->contiguous) ((PyArrayIterObject *)(iter))->dataptr += ((PyArrayIterObject *)(iter))->ao->descr->elsize; else if (((PyArrayIterObject *)(iter))->nd_m1 == 1) { { if ((((PyArrayIterObject *)(iter)))->coordinates[1] < (((PyArrayIterObject *)(iter)))->dims_m1[1]) { (((PyArrayIterObject *)(iter)))->coordinates[1]++; (((PyArrayIterObject *)(iter)))->dataptr += (((PyArrayIterObject *)(iter)))->strides[1]; } else { (((PyArrayIterObject *)(iter)))->coordinates[1] = 0; (((PyArrayIterObject *)(iter)))->coordinates[0]++; (((PyArrayIterObject *)(iter)))->dataptr += (((PyArrayIterObject *)(iter)))->strides[0] - (((PyArrayIterObject *)(iter)))->backstrides[1]; } }; } else { int __npy_i; for (__npy_i=((PyArrayIterObject *)(iter))->nd_m1; __npy_i >= 0; __npy_i--) { if (((PyArrayIterObject *)(iter))->coordinates[__npy_i] < ((PyArrayIterObject *)(iter))->dims_m1[__npy_i]) { ((PyArrayIterObject *)(iter))->coordinates[__npy_i]++; ((PyArrayIterObject *)(iter))->dataptr += ((PyArrayIterObject *)(iter))->strides[__npy_i]; break; } else { ((PyArrayIterObject *)(iter))->coordinates[__npy_i] = 0; ((PyArrayIterObject *)(iter))->dataptr -= ((PyArrayIterObject *)(iter))->backstrides[__npy_i]; } } } }; > } > do { if ( --((PyObject*)(iter))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(iter)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(iter)))); } while (0); > } > do { if ((newarr) == ((void *)0)) ; else do { if ( --((PyObject*)(newarr))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(newarr)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(newarr)))); } while (0); } while (0); > return 0; >} > > > > > > >static int >PyArray_FillWithZero(PyArrayObject *a) >{ > PyArray_StridedTransferFn *stransfer = ((void *)0); > void *transferdata = ((void *)0); > PyArray_Descr *dtype = (((PyArrayObject *)(a))->descr); > NpyIter *iter; > > NpyIter_IterNextFunc *iternext; > char **dataptr; > npy_intp stride, *countptr; > int needs_api; > > PyThreadState *_save=((void *)0);; > > if (!((((PyArrayObject *)(a))->flags & (0x0400)) == (0x0400))) { > PyErr_SetString(PyExc_RuntimeError, "cannot write to array"); > return -1; > } > > > if (PyArray_MultiplyList((((PyArrayObject *)(a))->dimensions), (((PyArrayObject *)(a))->nd)) == 0) { > return 0; > } > > > if (!(((dtype)->flags & (0x01)) == (0x01)) && (((((PyArrayObject *)(a))->flags & (0x0001)) == (0x0001)) || > (((((PyArrayObject *)(a))->flags & (0x0002)) == (0x0002)) && ((((PyArrayObject *)(a))->nd) > 1)))) { > memset(((void *)(((PyArrayObject *)(a))->data)), 0, ((((PyArrayObject *)(a))->descr->elsize) * PyArray_MultiplyList((((PyArrayObject *)(a))->dimensions), (((PyArrayObject *)(a))->nd)))); > return 0; > } > > > iter = NpyIter_New(a, 0x00040000|0x00000008, > NPY_KEEPORDER, NPY_NO_CASTING, ((void *)0)); > > if (iter == ((void *)0)) { > return -1; > } > > iternext = NpyIter_GetIterNext(iter, ((void *)0)); > if (iternext == ((void *)0)) { > NpyIter_Deallocate(iter); > return -1; > } > dataptr = NpyIter_GetDataPtrArray(iter); > stride = NpyIter_GetInnerStrideArray(iter)[0]; > countptr = NpyIter_GetInnerLoopSizePtr(iter); > > needs_api = NpyIter_IterationNeedsAPI(iter); ># 434 "numpy/core/src/multiarray/convert.c" > if (PyArray_GetDTypeTransferFunction( > ((((PyArrayObject *)(a))->flags & (0x0100)) == (0x0100)), > 0, stride, > ((void *)0), (((PyArrayObject *)(a))->descr), > 0, > &stransfer, &transferdata, > &needs_api) != 1) { > NpyIter_Deallocate(iter); > return -1; > } > > if (!needs_api) { > _save = PyEval_SaveThread();; > } > > do { > stransfer(*dataptr, stride, ((void *)0), 0, > *countptr, 0, transferdata); > } while(iternext(iter)); > > if (!needs_api) { > do {if (_save) PyEval_RestoreThread(_save);} while (0);; > } > > PyArray_FreeStridedTransferData(transferdata); > NpyIter_Deallocate(iter); > > return 0; >} > > > > >static PyObject * >PyArray_NewCopy(PyArrayObject *m1, NPY_ORDER order) >{ > PyArrayObject *ret = (PyArrayObject *)PyArray_NewLikeArray( > m1, order, ((void *)0), 1); > if (ret == ((void *)0)) { > return ((void *)0); > } > > if (PyArray_CopyInto(ret, m1) == -1) { > do { if ( --((PyObject*)(ret))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(ret)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(ret)))); } while (0); > return ((void *)0); > } > > return (PyObject *)ret; >} > > > > > >static PyObject * >PyArray_View(PyArrayObject *self, PyArray_Descr *type, PyTypeObject *pytype) >{ > PyObject *new = ((void *)0); > PyTypeObject *subtype; > > if (pytype) { > subtype = pytype; > } > else { > subtype = (((PyObject*)(self))->ob_type); > } > ( ((PyObject*)(self->descr))->ob_refcnt++); > new = PyArray_NewFromDescr(subtype, > self->descr, > self->nd, self->dimensions, > self->strides, > self->data, > self->flags, (PyObject *)self); > if (new == ((void *)0)) { > return ((void *)0); > } > ( ((PyObject*)(self))->ob_refcnt++); > (((PyArrayObject *)(new))->base) = (PyObject *)self; > > if (type != ((void *)0)) { > if (PyObject_SetAttrString(new, "dtype", > (PyObject *)type) < 0) { > do { if ( --((PyObject*)(new))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(new)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(new)))); } while (0); > do { if ( --((PyObject*)(type))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(type)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(type)))); } while (0); > return ((void *)0); > } > do { if ( --((PyObject*)(type))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(type)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(type)))); } while (0); > } > return new; >} ># 30 "numpy/core/src/multiarray/multiarraymodule_onefile.c" 2 ># 1 "numpy/core/src/multiarray/shape.c" 1 ># 22 "numpy/core/src/multiarray/shape.c" >static int >_check_ones(PyArrayObject *self, int newnd, npy_intp* newdims, npy_intp *strides); > >static int >_fix_unknown_dimension(PyArray_Dims *newshape, npy_intp s_original); > >static int >_attempt_nocopy_reshape(PyArrayObject *self, int newnd, npy_intp* newdims, > npy_intp *newstrides, int fortran_); > >static void >_putzero(char *optr, PyObject *zero, PyArray_Descr *dtype); > > > > > > > >static PyObject * >PyArray_Resize(PyArrayObject *self, PyArray_Dims *newshape, int refcheck, > NPY_ORDER fortran_) >{ > npy_intp oldsize, newsize; > int new_nd=newshape->len, k, n, elsize; > int refcnt; > npy_intp* new_dimensions=newshape->ptr; > npy_intp new_strides[32]; > size_t sd; > npy_intp *dimptr; > char *new_data; > npy_intp largest; > > if (!((((PyArrayObject *)(self))->nd) == 0 || ((((PyArrayObject *)(self))->flags & (0x0001)) == (0x0001)) || ((((PyArrayObject *)(self))->flags & (0x0002)) == (0x0002)))) { > PyErr_SetString(PyExc_ValueError, > "resize only works on single-segment arrays"); > return ((void *)0); > } > > if (self->descr->elsize == 0) { > PyErr_SetString(PyExc_ValueError, > "Bad data-type size."); > return ((void *)0); > } > newsize = 1; > largest = 9223372036854775807L / self->descr->elsize; > for(k = 0; k < new_nd; k++) { > if (new_dimensions[k] == 0) { > break; > } > if (new_dimensions[k] < 0) { > PyErr_SetString(PyExc_ValueError, > "negative dimensions not allowed"); > return ((void *)0); > } > newsize *= new_dimensions[k]; > if (newsize <= 0 || newsize > largest) { > return PyErr_NoMemory(); > } > } > oldsize = PyArray_MultiplyList((((PyArrayObject *)(self))->dimensions), (((PyArrayObject *)(self))->nd)); > > if (oldsize != newsize) { > if (!(self->flags & 0x0004)) { > PyErr_SetString(PyExc_ValueError, > "cannot resize this array: it does not own its data"); > return ((void *)0); > } > > if (refcheck) { > refcnt = (((PyObject *)(self))->ob_refcnt); > } > else { > refcnt = 1; > } > if ((refcnt > 2) > || (self->base != ((void *)0)) > || (self->weakreflist != ((void *)0))) { > PyErr_SetString(PyExc_ValueError, > "cannot resize an array references or is referenced\n" "by another array in this way. Use the resize function"); > > return ((void *)0); > } > > if (newsize == 0) { > sd = self->descr->elsize; > } > else { > sd = newsize*self->descr->elsize; > } > > new_data = ((char *)realloc(self->data,sd)); > if (new_data == ((void *)0)) { > PyErr_SetString(PyExc_MemoryError, > "cannot allocate memory for array"); > return ((void *)0); > } > self->data = new_data; > } > > if ((newsize > oldsize) && ((((PyArrayObject *)(self))->flags & (0x0400)) == (0x0400))) { > > elsize = self->descr->elsize; > if ((((self->descr)->flags & (0x01)) == (0x01))) { > PyObject *zero = PyInt_FromLong(0); > char *optr; > optr = self->data + oldsize*elsize; > n = newsize - oldsize; > for (k = 0; k < n; k++) { > _putzero((char *)optr, zero, self->descr); > optr += elsize; > } > do { if ( --((PyObject*)(zero))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(zero)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(zero)))); } while (0); > } > else{ > memset(self->data+oldsize*elsize, 0, (newsize-oldsize)*elsize); > } > } > > if (self->nd != new_nd) { > > self->nd = new_nd; > > dimptr = ((npy_intp *)PyMem_Realloc(self->dimensions,2*new_nd*sizeof(npy_intp))); > if (dimptr == ((void *)0)) { > PyErr_SetString(PyExc_MemoryError, > "cannot allocate memory for array"); > return ((void *)0); > } > self->dimensions = dimptr; > self->strides = dimptr + new_nd; > } > > > sd = (size_t) self->descr->elsize; > sd = (size_t) _array_fill_strides(new_strides, new_dimensions, new_nd, sd, > self->flags, &(self->flags)); > memmove(self->dimensions, new_dimensions, new_nd*sizeof(npy_intp)); > memmove(self->strides, new_strides, new_nd*sizeof(npy_intp)); > ( ((PyObject*)((&_Py_NoneStruct)))->ob_refcnt++); > return (&_Py_NoneStruct); >} ># 175 "numpy/core/src/multiarray/shape.c" >static PyObject * >PyArray_Newshape(PyArrayObject *self, PyArray_Dims *newdims, > NPY_ORDER order) >{ > npy_intp i; > npy_intp *dimensions = newdims->ptr; > PyArrayObject *ret; > int n = newdims->len; > npy_bool same, incref = 1; > npy_intp *strides = ((void *)0); > npy_intp newstrides[32]; > int flags; > > if (order == NPY_ANYORDER) { > order = (((((PyArrayObject *)(self))->flags & (0x0002)) == (0x0002)) && ((((PyArrayObject *)(self))->nd) > 1)); > } > > if (n == self->nd) { > same = 1; > i = 0; > while (same && i < n) { > if (((((PyArrayObject *)(self))->dimensions)[i]) != dimensions[i]) { > same=0; > } > i++; > } > if (same) { > return PyArray_View(self, ((void *)0), ((void *)0)); > } > } ># 214 "numpy/core/src/multiarray/shape.c" > i = _check_ones(self, n, dimensions, newstrides); > if (i == 0) { > strides = newstrides; > } > flags = self->flags; > > if (strides == ((void *)0)) { > > > > > if (_fix_unknown_dimension(newdims, PyArray_MultiplyList((((PyArrayObject *)(self))->dimensions), (((PyArrayObject *)(self))->nd))) < 0) { > return ((void *)0); > } > > > > > > > if (!(((((PyArrayObject *)(self))->nd) == 0 || ((((PyArrayObject *)(self))->flags & (0x0001)) == (0x0001)) || ((((PyArrayObject *)(self))->flags & (0x0002)) == (0x0002)))) || > (((((((PyArrayObject *)(self))->flags & (0x0001)) == (0x0001)) && > order == NPY_FORTRANORDER) || > (((((PyArrayObject *)(self))->flags & (0x0002)) == (0x0002)) && > order == NPY_CORDER)) && (self->nd > 1))) { > int success = 0; > success = _attempt_nocopy_reshape(self,n,dimensions, > newstrides,order); > if (success) { > > strides = newstrides; > flags = self->flags; > } > else { > PyObject *new; > new = PyArray_NewCopy(self, order); > if (new == ((void *)0)) { > return ((void *)0); > } > incref = 0; > self = (PyArrayObject *)new; > flags = self->flags; > } > } > > > > > if (n > 1) { > if (order == NPY_FORTRANORDER) { > flags &= ~0x0001; > flags |= 0x0002; > } > else { > flags &= ~0x0002; > flags |= 0x0001; > } > } > } > else if (n > 0) { > > > > > if (order == NPY_FORTRANORDER) { > if (strides[0] == 0) { > strides[0] = self->descr->elsize; > } > for (i = 1; i < n; i++) { > if (strides[i] == 0) { > strides[i] = strides[i-1] * dimensions[i-1]; > } > } > } > else { > if (strides[n-1] == 0) { > strides[n-1] = self->descr->elsize; > } > for (i = n - 2; i > -1; i--) { > if (strides[i] == 0) { > strides[i] = strides[i+1] * dimensions[i+1]; > } > } > } > } > > ( ((PyObject*)(self->descr))->ob_refcnt++); > ret = (PyArrayObject *)PyArray_NewFromDescr((((PyObject*)(self))->ob_type), > self->descr, > n, dimensions, > strides, > self->data, > flags, (PyObject *)self); > > if (ret == ((void *)0)) { > goto fail; > } > if (incref) { > ( ((PyObject*)(self))->ob_refcnt++); > } > ret->base = (PyObject *)self; > PyArray_UpdateFlags(ret, 0x0001 | 0x0002); > return (PyObject *)ret; > > fail: > if (!incref) { > do { if ( --((PyObject*)(self))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(self)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(self)))); } while (0); > } > return ((void *)0); >} ># 332 "numpy/core/src/multiarray/shape.c" >static PyObject * >PyArray_Reshape(PyArrayObject *self, PyObject *shape) >{ > PyObject *ret; > PyArray_Dims newdims; > > if (!PyArray_IntpConverter(shape, &newdims)) { > return ((void *)0); > } > ret = PyArray_Newshape(self, &newdims, NPY_CORDER); > PyMem_Free(newdims.ptr); > return ret; >} > > >static int >_check_ones(PyArrayObject *self, int newnd, npy_intp* newdims, npy_intp *strides) >{ > int nd; > npy_intp *dims; > npy_bool done=0; > int j, k; > > nd = self->nd; > dims = self->dimensions; > > for (k = 0, j = 0; !done && (j < nd || k < newnd);) { > if ((j<nd) && (k<newnd) && (newdims[k] == dims[j])) { > strides[k] = self->strides[j]; > j++; > k++; > } > else if ((k < newnd) && (newdims[k] == 1)) { > strides[k] = 0; > k++; > } > else if ((j<nd) && (dims[j] == 1)) { > j++; > } > else { > done = 1; > } > } > if (done) { > return -1; > } > return 0; >} > >static void >_putzero(char *optr, PyObject *zero, PyArray_Descr *dtype) >{ > if (!(((dtype)->flags & (0x01)) == (0x01))) { > memset(optr, 0, dtype->elsize); > } > else if ((((PyArray_Descr *)(dtype))->names != ((void *)0))) { > PyObject *key, *value, *title = ((void *)0); > PyArray_Descr *new; > int offset; > Py_ssize_t pos = 0; > while (PyDict_Next(dtype->fields, &pos, &key, &value)) { > if (((((PyVarObject*)((value)))->ob_size)==3) && ((((PyTupleObject *)((value)))->ob_item[2]) == (key))) { > continue; > } > if (!_PyArg_ParseTuple_SizeT(value, "Oi|O", &new, &offset, &title)) { > return; > } > _putzero(optr + offset, zero, new); > } > } > else { > ( ((PyObject*)(zero))->ob_refcnt++); > (*((PyObject **)(optr)) = *((PyObject **)(&zero))); > } > return; >} ># 428 "numpy/core/src/multiarray/shape.c" >static int >_attempt_nocopy_reshape(PyArrayObject *self, int newnd, npy_intp* newdims, > npy_intp *newstrides, int fortran_) >{ > int oldnd; > npy_intp olddims[32]; > npy_intp oldstrides[32]; > int oi, oj, ok, ni, nj, nk; > int np, op; > > oldnd = 0; > for (oi = 0; oi < self->nd; oi++) { > if (self->dimensions[oi]!= 1) { > olddims[oldnd] = self->dimensions[oi]; > oldstrides[oldnd] = self->strides[oi]; > oldnd++; > } > } ># 458 "numpy/core/src/multiarray/shape.c" > np = 1; > for (ni = 0; ni < newnd; ni++) { > np *= newdims[ni]; > } > op = 1; > for (oi = 0; oi < oldnd; oi++) { > op *= olddims[oi]; > } > if (np != op) { > > return 0; > } > > if (np == 0) { > return 0; > } > > oi = 0; > oj = 1; > ni = 0; > nj = 1; > while(ni < newnd && oi < oldnd) { > np = newdims[ni]; > op = olddims[oi]; > > while (np != op) { > if (np < op) { > np *= newdims[nj++]; > } else { > op *= olddims[oj++]; > } > } > > for (ok = oi; ok < oj - 1; ok++) { > if (fortran_) { > if (oldstrides[ok+1] != olddims[ok]*oldstrides[ok]) { > > return 0; > } > } > else { > > if (oldstrides[ok] != olddims[ok+1]*oldstrides[ok+1]) { > > return 0; > } > } > } > > if (fortran_) { > newstrides[ni] = oldstrides[oi]; > for (nk = ni + 1; nk < nj; nk++) { > newstrides[nk] = newstrides[nk - 1]*newdims[nk - 1]; > } > } > else { > > newstrides[nj - 1] = oldstrides[oj - 1]; > for (nk = nj - 1; nk > ni; nk--) { > newstrides[nk - 1] = newstrides[nk]*newdims[nk]; > } > } > ni = nj++; > oi = oj++; > } ># 534 "numpy/core/src/multiarray/shape.c" > return 1; >} > >static int >_fix_unknown_dimension(PyArray_Dims *newshape, npy_intp s_original) >{ > npy_intp *dimensions; > npy_intp i_unknown, s_known; > int i, n; > static char msg[] = "total size of new array must be unchanged"; > > dimensions = newshape->ptr; > n = newshape->len; > s_known = 1; > i_unknown = -1; > > for (i = 0; i < n; i++) { > if (dimensions[i] < 0) { > if (i_unknown == -1) { > i_unknown = i; > } > else { > PyErr_SetString(PyExc_ValueError, > "can only specify one" " unknown dimension"); > > return -1; > } > } > else { > s_known *= dimensions[i]; > } > } > > if (i_unknown >= 0) { > if ((s_known == 0) || (s_original % s_known != 0)) { > PyErr_SetString(PyExc_ValueError, msg); > return -1; > } > dimensions[i_unknown] = s_original/s_known; > } > else { > if (s_original != s_known) { > PyErr_SetString(PyExc_ValueError, msg); > return -1; > } > } > return 0; >} > > > > > > > >static PyObject * >PyArray_Squeeze(PyArrayObject *self) >{ > int nd = self->nd; > int newnd = nd; > npy_intp dimensions[32]; > npy_intp strides[32]; > int i, j; > PyObject *ret; > > if (nd == 0) { > ( ((PyObject*)(self))->ob_refcnt++); > return (PyObject *)self; > } > for (j = 0, i = 0; i < nd; i++) { > if (self->dimensions[i] == 1) { > newnd -= 1; > } > else { > dimensions[j] = self->dimensions[i]; > strides[j++] = self->strides[i]; > } > } > > ( ((PyObject*)(self->descr))->ob_refcnt++); > ret = PyArray_NewFromDescr((((PyObject*)(self))->ob_type), > self->descr, > newnd, dimensions, > strides, self->data, > self->flags, > (PyObject *)self); > if (ret == ((void *)0)) { > return ((void *)0); > } > (((PyArrayObject *)(ret))->flags) &= ~0x0004; > (((PyArrayObject *)(ret))->base) = (PyObject *)self; > ( ((PyObject*)(self))->ob_refcnt++); > return (PyObject *)ret; >} > > > > >static PyObject * >PyArray_SwapAxes(PyArrayObject *ap, int a1, int a2) >{ > PyArray_Dims new_axes; > npy_intp dims[32]; > int n, i, val; > PyObject *ret; > > if (a1 == a2) { > ( ((PyObject*)(ap))->ob_refcnt++); > return (PyObject *)ap; > } > > n = ap->nd; > if (n <= 1) { > ( ((PyObject*)(ap))->ob_refcnt++); > return (PyObject *)ap; > } > > if (a1 < 0) { > a1 += n; > } > if (a2 < 0) { > a2 += n; > } > if ((a1 < 0) || (a1 >= n)) { > PyErr_SetString(PyExc_ValueError, > "bad axis1 argument to swapaxes"); > return ((void *)0); > } > if ((a2 < 0) || (a2 >= n)) { > PyErr_SetString(PyExc_ValueError, > "bad axis2 argument to swapaxes"); > return ((void *)0); > } > new_axes.ptr = dims; > new_axes.len = n; > > for (i = 0; i < n; i++) { > if (i == a1) { > val = a2; > } > else if (i == a2) { > val = a1; > } > else { > val = i; > } > new_axes.ptr[i] = val; > } > ret = PyArray_Transpose(ap, &new_axes); > return ret; >} > > > > >static PyObject * >PyArray_Transpose(PyArrayObject *ap, PyArray_Dims *permute) >{ > npy_intp *axes, axis; > npy_intp i, n; > npy_intp permutation[32], reverse_permutation[32]; > PyArrayObject *ret = ((void *)0); > > if (permute == ((void *)0)) { > n = ap->nd; > for (i = 0; i < n; i++) { > permutation[i] = n-1-i; > } > } > else { > n = permute->len; > axes = permute->ptr; > if (n != ap->nd) { > PyErr_SetString(PyExc_ValueError, > "axes don't match array"); > return ((void *)0); > } > for (i = 0; i < n; i++) { > reverse_permutation[i] = -1; > } > for (i = 0; i < n; i++) { > axis = axes[i]; > if (axis < 0) { > axis = ap->nd + axis; > } > if (axis < 0 || axis >= ap->nd) { > PyErr_SetString(PyExc_ValueError, > "invalid axis for this array"); > return ((void *)0); > } > if (reverse_permutation[axis] != -1) { > PyErr_SetString(PyExc_ValueError, > "repeated axis in transpose"); > return ((void *)0); > } > reverse_permutation[axis] = i; > permutation[i] = axis; > } > for (i = 0; i < n; i++) { > } > } > > > > > > ( ((PyObject*)(ap->descr))->ob_refcnt++); > ret = (PyArrayObject *) PyArray_NewFromDescr((((PyObject*)(ap))->ob_type), > > ap->descr, > n, ap->dimensions, > ((void *)0), ap->data, ap->flags, > (PyObject *)ap); > if (ret == ((void *)0)) { > return ((void *)0); > } > > ret->base = (PyObject *)ap; > ( ((PyObject*)(ap))->ob_refcnt++); > > > for (i = 0; i < n; i++) { > ret->dimensions[i] = ap->dimensions[permutation[i]]; > ret->strides[i] = ap->strides[permutation[i]]; > } > PyArray_UpdateFlags(ret, 0x0001 | 0x0002); > return (PyObject *)ret; >} > > > > > >int _npy_stride_sort_item_comparator(const void *a, const void *b) >{ > npy_intp astride = ((_npy_stride_sort_item *)a)->stride, > bstride = ((_npy_stride_sort_item *)b)->stride; > > > if (astride < 0) { > astride = -astride; > } > if (bstride < 0) { > bstride = -bstride; > } > > if (astride > bstride) { > return -1; > } > else if (astride == bstride) { > > > > > npy_intp aperm = ((_npy_stride_sort_item *)a)->perm, > bperm = ((_npy_stride_sort_item *)b)->perm; > return (aperm < bperm) ? -1 : 1; > } > else { > return 1; > } >} > > > > > > > >static void >PyArray_CreateSortedStridePerm(PyArrayObject *arr, > _npy_stride_sort_item *strideperm) >{ > int i, ndim = (((PyArrayObject *)(arr))->nd); > > > for (i = 0; i < ndim; ++i) { > strideperm[i].perm = i; > strideperm[i].stride = ((((PyArrayObject *)(arr))->strides)[i]); > } > > > qsort(strideperm, ndim, sizeof(_npy_stride_sort_item), > &_npy_stride_sort_item_comparator); >} > > > > > >static PyObject * >PyArray_Ravel(PyArrayObject *a, NPY_ORDER order) >{ > PyArray_Dims newdim = {((void *)0),1}; > npy_intp val[1] = {-1}; > > newdim.ptr = val; > > if (order == NPY_ANYORDER) { > order = (((((PyArrayObject *)(a))->flags & (0x0002)) == (0x0002)) && ((((PyArrayObject *)(a))->nd) > 1)) ? NPY_FORTRANORDER : NPY_CORDER; > } > else if (order == NPY_KEEPORDER) { > if (((((PyArrayObject *)(a))->flags & (0x0001)) == (0x0001))) { > order = NPY_CORDER; > } > else if (((((PyArrayObject *)(a))->flags & (0x0002)) == (0x0002))) { > order = NPY_FORTRANORDER; > } > } > > if (order == NPY_CORDER && ((((PyArrayObject *)(a))->flags & (0x0001)) == (0x0001))) { > return PyArray_Newshape(a, &newdim, NPY_CORDER); > } > else if (order == NPY_FORTRANORDER && (((((PyArrayObject *)(a))->flags & (0x0002)) == (0x0002)) && ((((PyArrayObject *)(a))->nd) > 1))) { > return PyArray_Newshape(a, &newdim, NPY_FORTRANORDER); > } > > else if (order == NPY_KEEPORDER) { > _npy_stride_sort_item strideperm[32]; > npy_intp stride; > int i, ndim = (((PyArrayObject *)(a))->nd); > > PyArray_CreateSortedStridePerm(a, strideperm); > > stride = (((PyArrayObject *)(a))->descr)->elsize; > for (i = ndim-1; i >= 0; --i) { > if (strideperm[i].stride != stride) { > break; > } > stride *= ((((PyArrayObject *)(a))->dimensions)[strideperm[i].perm]); > } > > > if (i < 0) { > PyObject *ret; > npy_intp stride = (((PyArrayObject *)(a))->descr)->elsize; > > val[0] = PyArray_MultiplyList((((PyArrayObject *)(a))->dimensions), (((PyArrayObject *)(a))->nd)); > > ( ((PyObject*)((((PyArrayObject *)(a))->descr)))->ob_refcnt++); > ret = PyArray_NewFromDescr((((PyObject*)(a))->ob_type), > (((PyArrayObject *)(a))->descr), > 1, val, > &stride, > (((PyArrayObject *)(a))->data), > (((PyArrayObject *)(a))->flags), > (PyObject *)a); > > if (ret != ((void *)0)) { > PyArray_UpdateFlags((PyArrayObject *)ret, > 0x0001|0x0002); > ( ((PyObject*)(a))->ob_refcnt++); > (((PyArrayObject *)(ret))->base) = (PyObject *)a; > } > return ret; > } > > } > > return PyArray_Flatten(a, order); >} > > > > >static PyObject * >PyArray_Flatten(PyArrayObject *a, NPY_ORDER order) >{ > PyArrayObject *ret; > npy_intp size; > > if (order == NPY_ANYORDER) { > order = (((((PyArrayObject *)(a))->flags & (0x0002)) == (0x0002)) && ((((PyArrayObject *)(a))->nd) > 1)) ? NPY_FORTRANORDER : NPY_CORDER; > } > > size = PyArray_MultiplyList((((PyArrayObject *)(a))->dimensions), (((PyArrayObject *)(a))->nd)); > ( ((PyObject*)(a->descr))->ob_refcnt++); > ret = (PyArrayObject *)PyArray_NewFromDescr((((PyObject*)(a))->ob_type), > a->descr, > 1, &size, > ((void *)0), > ((void *)0), > 0, (PyObject *)a); > > if (ret == ((void *)0)) { > return ((void *)0); > } > if (PyArray_CopyAnyIntoOrdered(ret, a, order) < 0) { > do { if ( --((PyObject*)(ret))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(ret)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(ret)))); } while (0); > return ((void *)0); > } > return (PyObject *)ret; >} ># 31 "numpy/core/src/multiarray/multiarraymodule_onefile.c" 2 ># 1 "numpy/core/src/multiarray/item_selection.c" 1 ># 26 "numpy/core/src/multiarray/item_selection.c" >static PyObject * >PyArray_TakeFrom(PyArrayObject *self0, PyObject *indices0, int axis, > PyArrayObject *ret, NPY_CLIPMODE clipmode) >{ > PyArray_FastTakeFunc *func; > PyArrayObject *self, *indices; > npy_intp nd, i, j, n, m, max_item, tmp, chunk, nelem; > npy_intp shape[32]; > char *src, *dest; > int copyret = 0; > int err; > > indices = ((void *)0); > self = (PyArrayObject *)PyArray_CheckAxis(self0, &axis, (0x0001 | (0x0100 | 0x0400))); > if (self == ((void *)0)) { > return ((void *)0); > } > indices = (PyArrayObject *)PyArray_FromAny(indices0, PyArray_DescrFromType(NPY_LONG), 1, 0, (0x0001 | (0x0100 | 0x0400)), ((void *)0)); > > > if (indices == ((void *)0)) { > do { if ((ret) == ((void *)0)) ; else ( ((PyObject*)(ret))->ob_refcnt++); } while (0); > goto fail; > } > n = m = chunk = 1; > nd = self->nd + indices->nd - 1; > for (i = 0; i < nd; i++) { > if (i < axis) { > shape[i] = self->dimensions[i]; > n *= shape[i]; > } > else { > if (i < axis+indices->nd) { > shape[i] = indices->dimensions[i-axis]; > m *= shape[i]; > } > else { > shape[i] = self->dimensions[i-indices->nd+1]; > chunk *= shape[i]; > } > } > } > ( ((PyObject*)(self->descr))->ob_refcnt++); > if (!ret) { > ret = (PyArrayObject *)PyArray_NewFromDescr((((PyObject*)(self))->ob_type), > self->descr, > nd, shape, > ((void *)0), ((void *)0), 0, > (PyObject *)self); > > if (ret == ((void *)0)) { > goto fail; > } > } > else { > PyArrayObject *obj; > int flags = (0x0001 | (0x0100 | 0x0400)) | 0x1000; > > if ((ret->nd != nd) || > !PyArray_CompareLists(ret->dimensions, shape, nd)) { > PyErr_SetString(PyExc_ValueError, > "bad shape in output array"); > ret = ((void *)0); > do { if ( --((PyObject*)(self->descr))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(self->descr)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(self->descr)))); } while (0); > goto fail; > } > > if (clipmode == NPY_RAISE) { > > > > > > flags |= 0x0020; > } > obj = (PyArrayObject *)PyArray_FromArray(ret, self->descr, > flags); > if (obj != ret) { > copyret = 1; > } > ret = obj; > if (ret == ((void *)0)) { > goto fail; > } > } > > max_item = self->dimensions[axis]; > nelem = chunk; > chunk = chunk * ret->descr->elsize; > src = self->data; > dest = ret->data; > > func = self->descr->f->fasttake; > if (func == ((void *)0)) { > switch(clipmode) { > case NPY_RAISE: > for (i = 0; i < n; i++) { > for (j = 0; j < m; j++) { > tmp = ((npy_intp *)(indices->data))[j]; > if (tmp < 0) { > tmp = tmp + max_item; > } > if ((tmp < 0) || (tmp >= max_item)) { > PyErr_SetString(PyExc_IndexError, > "index out of range " "for array"); > > goto fail; > } > memmove(dest, src + tmp*chunk, chunk); > dest += chunk; > } > src += chunk*max_item; > } > break; > case NPY_WRAP: > for (i = 0; i < n; i++) { > for (j = 0; j < m; j++) { > tmp = ((npy_intp *)(indices->data))[j]; > if (tmp < 0) { > while (tmp < 0) { > tmp += max_item; > } > } > else if (tmp >= max_item) { > while (tmp >= max_item) { > tmp -= max_item; > } > } > memmove(dest, src + tmp*chunk, chunk); > dest += chunk; > } > src += chunk*max_item; > } > break; > case NPY_CLIP: > for (i = 0; i < n; i++) { > for (j = 0; j < m; j++) { > tmp = ((npy_intp *)(indices->data))[j]; > if (tmp < 0) { > tmp = 0; > } > else if (tmp >= max_item) { > tmp = max_item - 1; > } > memmove(dest, src+tmp*chunk, chunk); > dest += chunk; > } > src += chunk*max_item; > } > break; > } > } > else { > err = func(dest, src, (npy_intp *)(indices->data), > max_item, n, m, nelem, clipmode); > if (err) { > goto fail; > } > } > > PyArray_INCREF(ret); > do { if ((indices) == ((void *)0)) ; else do { if ( --((PyObject*)(indices))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(indices)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(indices)))); } while (0); } while (0); > do { if ((self) == ((void *)0)) ; else do { if ( --((PyObject*)(self))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(self)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(self)))); } while (0); } while (0); > if (copyret) { > PyObject *obj; > obj = ret->base; > ( ((PyObject*)(obj))->ob_refcnt++); > do { if ( --((PyObject*)(ret))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(ret)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(ret)))); } while (0); > ret = (PyArrayObject *)obj; > } > return (PyObject *)ret; > > fail: > if (ret && ((((PyArrayObject *)(ret))->flags) & 0x1000)) { (((PyArrayObject *)((((PyArrayObject *)(ret))->base)))->flags) |= 0x0400; (((PyArrayObject *)(ret))->flags) &= ~0x1000; } do { if ((ret) == ((void *)0)) ; else do { if ( --((PyObject*)(ret))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(ret)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(ret)))); } while (0); } while (0); > do { if ((indices) == ((void *)0)) ; else do { if ( --((PyObject*)(indices))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(indices)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(indices)))); } while (0); } while (0); > do { if ((self) == ((void *)0)) ; else do { if ( --((PyObject*)(self))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(self)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(self)))); } while (0); } while (0); > return ((void *)0); >} > > > > >static PyObject * >PyArray_PutTo(PyArrayObject *self, PyObject* values0, PyObject *indices0, > NPY_CLIPMODE clipmode) >{ > PyArrayObject *indices, *values; > npy_intp i, chunk, ni, max_item, nv, tmp; > char *src, *dest; > int copied = 0; > > indices = ((void *)0); > values = ((void *)0); > if (!((((PyObject*)(self))->ob_type) == (&PyArray_Type) || PyType_IsSubtype((((PyObject*)(self))->ob_type), (&PyArray_Type)))) { > PyErr_SetString(PyExc_TypeError, > "put: first argument must be an array"); > return ((void *)0); > } > if (!((((PyArrayObject *)(self))->flags & (0x0001)) == (0x0001))) { > PyArrayObject *obj; > int flags = (0x0001 | (0x0100 | 0x0400)) | 0x1000; > > if (clipmode == NPY_RAISE) { > flags |= 0x0020; > } > ( ((PyObject*)(self->descr))->ob_refcnt++); > obj = (PyArrayObject *)PyArray_FromArray(self, > self->descr, flags); > if (obj != self) { > copied = 1; > } > self = obj; > } > max_item = PyArray_MultiplyList((((PyArrayObject *)(self))->dimensions), (((PyArrayObject *)(self))->nd)); > dest = self->data; > chunk = self->descr->elsize; > indices = (PyArrayObject *)PyArray_FromAny(indices0, PyArray_DescrFromType(NPY_LONG), 0, 0, (0x0001 | (0x0100 | 0x0400)), ((void *)0)); > > if (indices == ((void *)0)) { > goto fail; > } > ni = PyArray_MultiplyList((((PyArrayObject *)(indices))->dimensions), (((PyArrayObject *)(indices))->nd)); > ( ((PyObject*)(self->descr))->ob_refcnt++); > values = (PyArrayObject *)PyArray_FromAny(values0, self->descr, 0, 0, > (0x0001 | (0x0100 | 0x0400)) | 0x0010, ((void *)0)); > if (values == ((void *)0)) { > goto fail; > } > nv = PyArray_MultiplyList((((PyArrayObject *)(values))->dimensions), (((PyArrayObject *)(values))->nd)); > if (nv <= 0) { > goto finish; > } > if ((((self->descr)->flags & (0x01)) == (0x01))) { > switch(clipmode) { > case NPY_RAISE: > for (i = 0; i < ni; i++) { > src = values->data + chunk*(i % nv); > tmp = ((npy_intp *)(indices->data))[i]; > if (tmp < 0) { > tmp = tmp + max_item; > } > if ((tmp < 0) || (tmp >= max_item)) { > PyErr_SetString(PyExc_IndexError, > "index out of " "range for array"); > > goto fail; > } > PyArray_Item_INCREF(src, self->descr); > PyArray_Item_XDECREF(dest+tmp*chunk, self->descr); > memmove(dest + tmp*chunk, src, chunk); > } > break; > case NPY_WRAP: > for (i = 0; i < ni; i++) { > src = values->data + chunk * (i % nv); > tmp = ((npy_intp *)(indices->data))[i]; > if (tmp < 0) { > while (tmp < 0) { > tmp += max_item; > } > } > else if (tmp >= max_item) { > while (tmp >= max_item) { > tmp -= max_item; > } > } > PyArray_Item_INCREF(src, self->descr); > PyArray_Item_XDECREF(dest+tmp*chunk, self->descr); > memmove(dest + tmp * chunk, src, chunk); > } > break; > case NPY_CLIP: > for (i = 0; i < ni; i++) { > src = values->data + chunk * (i % nv); > tmp = ((npy_intp *)(indices->data))[i]; > if (tmp < 0) { > tmp = 0; > } > else if (tmp >= max_item) { > tmp = max_item - 1; > } > PyArray_Item_INCREF(src, self->descr); > PyArray_Item_XDECREF(dest+tmp*chunk, self->descr); > memmove(dest + tmp * chunk, src, chunk); > } > break; > } > } > else { > switch(clipmode) { > case NPY_RAISE: > for (i = 0; i < ni; i++) { > src = values->data + chunk * (i % nv); > tmp = ((npy_intp *)(indices->data))[i]; > if (tmp < 0) { > tmp = tmp + max_item; > } > if ((tmp < 0) || (tmp >= max_item)) { > PyErr_SetString(PyExc_IndexError, > "index out of " "range for array"); > > goto fail; > } > memmove(dest + tmp * chunk, src, chunk); > } > break; > case NPY_WRAP: > for (i = 0; i < ni; i++) { > src = values->data + chunk * (i % nv); > tmp = ((npy_intp *)(indices->data))[i]; > if (tmp < 0) { > while (tmp < 0) { > tmp += max_item; > } > } > else if (tmp >= max_item) { > while (tmp >= max_item) { > tmp -= max_item; > } > } > memmove(dest + tmp * chunk, src, chunk); > } > break; > case NPY_CLIP: > for (i = 0; i < ni; i++) { > src = values->data + chunk * (i % nv); > tmp = ((npy_intp *)(indices->data))[i]; > if (tmp < 0) { > tmp = 0; > } > else if (tmp >= max_item) { > tmp = max_item - 1; > } > memmove(dest + tmp * chunk, src, chunk); > } > break; > } > } > > finish: > do { if ((values) == ((void *)0)) ; else do { if ( --((PyObject*)(values))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(values)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(values)))); } while (0); } while (0); > do { if ((indices) == ((void *)0)) ; else do { if ( --((PyObject*)(indices))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(indices)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(indices)))); } while (0); } while (0); > if (copied) { > do { if ( --((PyObject*)(self))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(self)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(self)))); } while (0); > } > ( ((PyObject*)((&_Py_NoneStruct)))->ob_refcnt++); > return (&_Py_NoneStruct); > > fail: > do { if ((indices) == ((void *)0)) ; else do { if ( --((PyObject*)(indices))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(indices)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(indices)))); } while (0); } while (0); > do { if ((values) == ((void *)0)) ; else do { if ( --((PyObject*)(values))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(values)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(values)))); } while (0); } while (0); > if (copied) { > if (self && ((((PyArrayObject *)(self))->flags) & 0x1000)) { (((PyArrayObject *)((((PyArrayObject *)(self))->base)))->flags) |= 0x0400; (((PyArrayObject *)(self))->flags) &= ~0x1000; } do { if ((self) == ((void *)0)) ; else do { if ( --((PyObject*)(self))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(self)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(self)))); } while (0); } while (0); > } > return ((void *)0); >} > > > > >static PyObject * >PyArray_PutMask(PyArrayObject *self, PyObject* values0, PyObject* mask0) >{ > PyArray_FastPutmaskFunc *func; > PyArrayObject *mask, *values; > npy_intp i, chunk, ni, max_item, nv, tmp; > char *src, *dest; > int copied = 0; > > mask = ((void *)0); > values = ((void *)0); > if (!((((PyObject*)(self))->ob_type) == (&PyArray_Type) || PyType_IsSubtype((((PyObject*)(self))->ob_type), (&PyArray_Type)))) { > PyErr_SetString(PyExc_TypeError, > "putmask: first argument must " "be an array"); > > return ((void *)0); > } > if (!((((PyArrayObject *)(self))->flags & (0x0001)) == (0x0001))) { > PyArrayObject *obj; > int flags = (0x0001 | (0x0100 | 0x0400)) | 0x1000; > > ( ((PyObject*)(self->descr))->ob_refcnt++); > obj = (PyArrayObject *)PyArray_FromArray(self, > self->descr, flags); > if (obj != self) { > copied = 1; > } > self = obj; > } > > max_item = PyArray_MultiplyList((((PyArrayObject *)(self))->dimensions), (((PyArrayObject *)(self))->nd)); > dest = self->data; > chunk = self->descr->elsize; > mask = (PyArrayObject *) PyArray_FromAny(mask0, PyArray_DescrFromType(NPY_BOOL), 0, 0, ((((0x0001 | (0x0100 | 0x0400)) | 0x0010) & 0x0020) ? (((0x0001 | (0x0100 | 0x0400)) | 0x0010) | (0x0001 | (0x0100 | 0x0400))) : ((0x0001 | (0x0100 | 0x0400)) | 0x0010)), ((void *)0)); > > if (mask == ((void *)0)) { > goto fail; > } > ni = PyArray_MultiplyList((((PyArrayObject *)(mask))->dimensions), (((PyArrayObject *)(mask))->nd)); > if (ni != max_item) { > PyErr_SetString(PyExc_ValueError, > "putmask: mask and data must be " "the same size"); > > goto fail; > } > ( ((PyObject*)(self->descr))->ob_refcnt++); > values = (PyArrayObject *) PyArray_FromAny(values0, self->descr, 0, 0, (0x0001 | (0x0100 | 0x0400)), ((void *)0)); > > if (values == ((void *)0)) { > goto fail; > } > nv = PyArray_MultiplyList((((PyArrayObject *)(values))->dimensions), (((PyArrayObject *)(values))->nd)); > if (nv <= 0) { > do { if ((values) == ((void *)0)) ; else do { if ( --((PyObject*)(values))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(values)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(values)))); } while (0); } while (0); > do { if ((mask) == ((void *)0)) ; else do { if ( --((PyObject*)(mask))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(mask)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(mask)))); } while (0); } while (0); > ( ((PyObject*)((&_Py_NoneStruct)))->ob_refcnt++); > return (&_Py_NoneStruct); > } > if ((((self->descr)->flags & (0x01)) == (0x01))) { > for (i = 0; i < ni; i++) { > tmp = ((npy_bool *)(mask->data))[i]; > if (tmp) { > src = values->data + chunk * (i % nv); > PyArray_Item_INCREF(src, self->descr); > PyArray_Item_XDECREF(dest+i*chunk, self->descr); > memmove(dest + i * chunk, src, chunk); > } > } > } > else { > func = self->descr->f->fastputmask; > if (func == ((void *)0)) { > for (i = 0; i < ni; i++) { > tmp = ((npy_bool *)(mask->data))[i]; > if (tmp) { > src = values->data + chunk*(i % nv); > memmove(dest + i*chunk, src, chunk); > } > } > } > else { > func(dest, mask->data, ni, values->data, nv); > } > } > > do { if ((values) == ((void *)0)) ; else do { if ( --((PyObject*)(values))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(values)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(values)))); } while (0); } while (0); > do { if ((mask) == ((void *)0)) ; else do { if ( --((PyObject*)(mask))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(mask)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(mask)))); } while (0); } while (0); > if (copied) { > do { if ( --((PyObject*)(self))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(self)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(self)))); } while (0); > } > ( ((PyObject*)((&_Py_NoneStruct)))->ob_refcnt++); > return (&_Py_NoneStruct); > > fail: > do { if ((mask) == ((void *)0)) ; else do { if ( --((PyObject*)(mask))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(mask)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(mask)))); } while (0); } while (0); > do { if ((values) == ((void *)0)) ; else do { if ( --((PyObject*)(values))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(values)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(values)))); } while (0); } while (0); > if (copied) { > if (self && ((((PyArrayObject *)(self))->flags) & 0x1000)) { (((PyArrayObject *)((((PyArrayObject *)(self))->base)))->flags) |= 0x0400; (((PyArrayObject *)(self))->flags) &= ~0x1000; } do { if ((self) == ((void *)0)) ; else do { if ( --((PyObject*)(self))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(self)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(self)))); } while (0); } while (0); > } > return ((void *)0); >} > > > > >static PyObject * >PyArray_Repeat(PyArrayObject *aop, PyObject *op, int axis) >{ > npy_intp *counts; > npy_intp n, n_outer, i, j, k, chunk, total; > npy_intp tmp; > int nd; > PyArrayObject *repeats = ((void *)0); > PyObject *ap = ((void *)0); > PyArrayObject *ret = ((void *)0); > char *new_data, *old_data; > > repeats = (PyArrayObject *)PyArray_FromAny(op, PyArray_DescrFromType(NPY_LONG), 0, 1, (0x0001 | (0x0100 | 0x0400)), ((void *)0)); > if (repeats == ((void *)0)) { > return ((void *)0); > } > nd = repeats->nd; > counts = (npy_intp *)repeats->data; > > if ((ap=PyArray_CheckAxis(aop, &axis, (0x0001 | (0x0100 | 0x0400))))==((void *)0)) { > do { if ( --((PyObject*)(repeats))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(repeats)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(repeats)))); } while (0); > return ((void *)0); > } > > aop = (PyArrayObject *)ap; > if (nd == 1) { > n = repeats->dimensions[0]; > } > else { > > n = aop->dimensions[axis]; > } > if (aop->dimensions[axis] != n) { > PyErr_SetString(PyExc_ValueError, > "a.shape[axis] != len(repeats)"); > goto fail; > } > > if (nd == 0) { > total = counts[0]*n; > } > else { > > total = 0; > for (j = 0; j < n; j++) { > if (counts[j] < 0) { > PyErr_SetString(PyExc_ValueError, "count < 0"); > goto fail; > } > total += counts[j]; > } > } > > > > aop->dimensions[axis] = total; > ( ((PyObject*)(aop->descr))->ob_refcnt++); > ret = (PyArrayObject *)PyArray_NewFromDescr((((PyObject*)(aop))->ob_type), > aop->descr, > aop->nd, > aop->dimensions, > ((void *)0), ((void *)0), 0, > (PyObject *)aop); > aop->dimensions[axis] = n; > if (ret == ((void *)0)) { > goto fail; > } > new_data = ret->data; > old_data = aop->data; > > chunk = aop->descr->elsize; > for(i = axis + 1; i < aop->nd; i++) { > chunk *= aop->dimensions[i]; > } > > n_outer = 1; > for (i = 0; i < axis; i++) { > n_outer *= aop->dimensions[i]; > } > for (i = 0; i < n_outer; i++) { > for (j = 0; j < n; j++) { > tmp = nd ? counts[j] : counts[0]; > for (k = 0; k < tmp; k++) { > memcpy(new_data, old_data, chunk); > new_data += chunk; > } > old_data += chunk; > } > } > > do { if ( --((PyObject*)(repeats))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(repeats)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(repeats)))); } while (0); > PyArray_INCREF(ret); > do { if ((aop) == ((void *)0)) ; else do { if ( --((PyObject*)(aop))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(aop)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(aop)))); } while (0); } while (0); > return (PyObject *)ret; > > fail: > do { if ( --((PyObject*)(repeats))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(repeats)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(repeats)))); } while (0); > do { if ((aop) == ((void *)0)) ; else do { if ( --((PyObject*)(aop))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(aop)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(aop)))); } while (0); } while (0); > do { if ((ret) == ((void *)0)) ; else do { if ( --((PyObject*)(ret))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(ret)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(ret)))); } while (0); } while (0); > return ((void *)0); >} > > > >static PyObject * >PyArray_Choose(PyArrayObject *ip, PyObject *op, PyArrayObject *ret, > NPY_CLIPMODE clipmode) >{ > int n, elsize; > npy_intp i; > char *ret_data; > PyArrayObject **mps, *ap; > PyArrayMultiIterObject *multi = ((void *)0); > npy_intp mi; > int copyret = 0; > ap = ((void *)0); > > > > > > mps = PyArray_ConvertToCommonType(op, &n); > if (mps == ((void *)0)) { > return ((void *)0); > } > for (i = 0; i < n; i++) { > if (mps[i] == ((void *)0)) { > goto fail; > } > } > ap = (PyArrayObject *)PyArray_FromAny((PyObject *)ip, PyArray_DescrFromType(NPY_LONG), 0, 0, 0, ((void *)0));; > if (ap == ((void *)0)) { > goto fail; > } > > multi = (PyArrayMultiIterObject *) > PyArray_MultiIterFromObjects((PyObject **)mps, n, 1, ap); > if (multi == ((void *)0)) { > goto fail; > } > > if (!ret) { > ( ((PyObject*)(mps[0]->descr))->ob_refcnt++); > ret = (PyArrayObject *)PyArray_NewFromDescr((((PyObject*)(ap))->ob_type), > mps[0]->descr, > multi->nd, > multi->dimensions, > ((void *)0), ((void *)0), 0, > (PyObject *)ap); > } > else { > PyArrayObject *obj; > int flags = (0x0001 | (0x0100 | 0x0400)) | 0x1000 | 0x0010; > > if (((((PyArrayObject *)(ret))->nd) != multi->nd) > || !PyArray_CompareLists( > (((PyArrayObject *)(ret))->dimensions), multi->dimensions, multi->nd)) { > PyErr_SetString(PyExc_TypeError, > "invalid shape for output array."); > ret = ((void *)0); > goto fail; > } > if (clipmode == NPY_RAISE) { > > > > > > flags |= 0x0020; > } > ( ((PyObject*)(mps[0]->descr))->ob_refcnt++); > obj = (PyArrayObject *)PyArray_FromArray(ret, mps[0]->descr, flags); > if (obj != ret) { > copyret = 1; > } > ret = obj; > } > > if (ret == ((void *)0)) { > goto fail; > } > elsize = ret->descr->elsize; > ret_data = ret->data; > > while ((((PyArrayMultiIterObject *)(multi))->index < ((PyArrayMultiIterObject *)(multi))->size)) { > mi = *((npy_intp *)((void *)(((PyArrayMultiIterObject *)(multi))->iters[n]->dataptr))); > if (mi < 0 || mi >= n) { > switch(clipmode) { > case NPY_RAISE: > PyErr_SetString(PyExc_ValueError, > "invalid entry in choice " "array"); > > goto fail; > case NPY_WRAP: > if (mi < 0) { > while (mi < 0) { > mi += n; > } > } > else { > while (mi >= n) { > mi -= n; > } > } > break; > case NPY_CLIP: > if (mi < 0) { > mi = 0; > } > else if (mi >= n) { > mi = n - 1; > } > break; > } > } > memmove(ret_data, ((void *)(((PyArrayMultiIterObject *)(multi))->iters[mi]->dataptr)), elsize); > ret_data += elsize; > { int __npy_mi; ((PyArrayMultiIterObject *)(multi))->index++; for (__npy_mi=0; __npy_mi < ((PyArrayMultiIterObject *)(multi))->numiter; __npy_mi++) { { ((PyArrayIterObject *)(((PyArrayMultiIterObject *)(multi))->iters[__npy_mi]))->index++; if (((PyArrayIterObject *)(((PyArrayMultiIterObject *)(multi))->iters[__npy_mi]))->nd_m1 == 0) { { (((PyArrayIterObject *)(((PyArrayMultiIterObject *)(multi))->iters[__npy_mi])))->dataptr += ((PyArrayIterObject *)(((PyArrayIterObject *)(((PyArrayMultiIterObject *)(multi))->iters[__npy_mi]))))->strides[0]; (((PyArrayIterObject *)(((PyArrayMultiIterObject *)(multi))->iters[__npy_mi])))->coordinates[0]++; }; } else if (((PyArrayIterObject *)(((PyArrayMultiIterObject *)(multi))->iters[__npy_mi]))->contiguous) ((PyArrayIterObject *)(((PyArrayMultiIterObject *)(multi))->iters[__npy_mi]))->dataptr += ((PyArrayIterObject *)(((PyArrayMultiIterObject *)(multi))->iters[__npy_mi]))->ao->descr->elsize; else if (((PyArrayIterObject *)(((PyArrayMultiIterObject *)(multi))->iters[__npy_mi]))->nd_m1 == 1) { { if ((((PyArrayIterObject *)(((PyArrayMultiIterObject *)(multi))->iters[__npy_mi])))->coordinates[1] < (((PyArrayIterObject *)(((PyArrayMultiIterObject *)(multi))->iters[__npy_mi])))->dims_m1[1]) { (((PyArrayIterObject *)(((PyArrayMultiIterObject *)(multi))->iters[__npy_mi])))->coordinates[1]++; (((PyArrayIterObject *)(((PyArrayMultiIterObject *)(multi))->iters[__npy_mi])))->dataptr += (((PyArrayIterObject *)(((PyArrayMultiIterObject *)(multi))->iters[__npy_mi])))->strides[1]; } else { (((PyArrayIterObject *)(((PyArrayMultiIterObject *)(multi))->iters[__npy_mi])))->coordinates[1] = 0; (((PyArrayIterObject *)(((PyArrayMultiIterObject *)(multi))->iters[__npy_mi])))->coordinates[0]++; (((PyArrayIterObject *)(((PyArrayMultiIterObject *)(multi))->iters[__npy_mi])))->dataptr += (((PyArrayIterObject *)(((PyArrayMultiIterObject *)(multi))->iters[__npy_mi])))->strides[0] - (((PyArrayIterObject *)(((PyArrayMultiIterObject *)(multi))->iters[__npy_mi])))->backstrides[1]; } }; } else { int __npy_i; for (__npy_i=((PyArrayIterObject *)(((PyArrayMultiIterObject *)(multi))->iters[__npy_mi]))->nd_m1; __npy_i >= 0; __npy_i--) { if (((PyArrayIterObject *)(((PyArrayMultiIterObject *)(multi))->iters[__npy_mi]))->coordinates[__npy_i] < ((PyArrayIterObject *)(((PyArrayMultiIterObject *)(multi))->iters[__npy_mi]))->dims_m1[__npy_i]) { ((PyArrayIterObject *)(((PyArrayMultiIterObject *)(multi))->iters[__npy_mi]))->coordinates[__npy_i]++; ((PyArrayIterObject *)(((PyArrayMultiIterObject *)(multi))->iters[__npy_mi]))->dataptr += ((PyArrayIterObject *)(((PyArrayMultiIterObject *)(multi))->iters[__npy_mi]))->strides[__npy_i]; break; } else { ((PyArrayIterObject *)(((PyArrayMultiIterObject *)(multi))->iters[__npy_mi]))->coordinates[__npy_i] = 0; ((PyArrayIterObject *)(((PyArrayMultiIterObject *)(multi))->iters[__npy_mi]))->dataptr -= ((PyArrayIterObject *)(((PyArrayMultiIterObject *)(multi))->iters[__npy_mi]))->backstrides[__npy_i]; } } } }; } }; > } > > PyArray_INCREF(ret); > do { if ( --((PyObject*)(multi))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(multi)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(multi)))); } while (0); > for (i = 0; i < n; i++) { > do { if ((mps[i]) == ((void *)0)) ; else do { if ( --((PyObject*)(mps[i]))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(mps[i])))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(mps[i])))); } while (0); } while (0); > } > do { if ( --((PyObject*)(ap))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(ap)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(ap)))); } while (0); > free(mps); > if (copyret) { > PyObject *obj; > obj = ret->base; > ( ((PyObject*)(obj))->ob_refcnt++); > do { if ( --((PyObject*)(ret))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(ret)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(ret)))); } while (0); > ret = (PyArrayObject *)obj; > } > return (PyObject *)ret; > > fail: > do { if ((multi) == ((void *)0)) ; else do { if ( --((PyObject*)(multi))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(multi)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(multi)))); } while (0); } while (0); > for (i = 0; i < n; i++) { > do { if ((mps[i]) == ((void *)0)) ; else do { if ( --((PyObject*)(mps[i]))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(mps[i])))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(mps[i])))); } while (0); } while (0); > } > do { if ((ap) == ((void *)0)) ; else do { if ( --((PyObject*)(ap))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(ap)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(ap)))); } while (0); } while (0); > free(mps); > if (ret && ((((PyArrayObject *)(ret))->flags) & 0x1000)) { (((PyArrayObject *)((((PyArrayObject *)(ret))->base)))->flags) |= 0x0400; (((PyArrayObject *)(ret))->flags) &= ~0x1000; } do { if ((ret) == ((void *)0)) ; else do { if ( --((PyObject*)(ret))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(ret)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(ret)))); } while (0); } while (0); > return ((void *)0); >} ># 746 "numpy/core/src/multiarray/item_selection.c" >static int >_new_sort(PyArrayObject *op, int axis, NPY_SORTKIND which) >{ > PyArrayIterObject *it; > int needcopy = 0, swap; > npy_intp N, size; > int elsize; > npy_intp astride; > PyArray_SortFunc *sort; > PyThreadState *_save=((void *)0);; > > it = (PyArrayIterObject *)PyArray_IterAllButAxis((PyObject *)op, &axis); > swap = !(((((PyArrayObject *)(op))->descr)->byteorder) != '>'); > if (it == ((void *)0)) { > return -1; > } > > do {if (!((((op->descr)->flags & (0x10)) == (0x10)))) _save = PyEval_SaveThread();;} while (0);; > sort = op->descr->f->sort[which]; > size = it->size; > N = op->dimensions[axis]; > elsize = op->descr->elsize; > astride = op->strides[axis]; > > needcopy = !(op->flags & 0x0100) || (astride != (npy_intp) elsize) || swap; > if (needcopy) { > char *buffer = ((char *)malloc(N*elsize)); > > while (size--) { > _unaligned_strided_byte_copy(buffer, (npy_intp) elsize, it->dataptr, > astride, N, elsize); > if (swap) { > _strided_byte_swap(buffer, (npy_intp) elsize, N, elsize); > } > if (sort(buffer, N, op) < 0) { > free(buffer); > goto fail; > } > if (swap) { > _strided_byte_swap(buffer, (npy_intp) elsize, N, elsize); > } > _unaligned_strided_byte_copy(it->dataptr, astride, buffer, > (npy_intp) elsize, N, elsize); > { ((PyArrayIterObject *)(it))->index++; if (((PyArrayIterObject *)(it))->nd_m1 == 0) { { (((PyArrayIterObject *)(it)))->dataptr += ((PyArrayIterObject *)(((PyArrayIterObject *)(it))))->strides[0]; (((PyArrayIterObject *)(it)))->coordinates[0]++; }; } else if (((PyArrayIterObject *)(it))->contiguous) ((PyArrayIterObject *)(it))->dataptr += ((PyArrayIterObject *)(it))->ao->descr->elsize; else if (((PyArrayIterObject *)(it))->nd_m1 == 1) { { if ((((PyArrayIterObject *)(it)))->coordinates[1] < (((PyArrayIterObject *)(it)))->dims_m1[1]) { (((PyArrayIterObject *)(it)))->coordinates[1]++; (((PyArrayIterObject *)(it)))->dataptr += (((PyArrayIterObject *)(it)))->strides[1]; } else { (((PyArrayIterObject *)(it)))->coordinates[1] = 0; (((PyArrayIterObject *)(it)))->coordinates[0]++; (((PyArrayIterObject *)(it)))->dataptr += (((PyArrayIterObject *)(it)))->strides[0] - (((PyArrayIterObject *)(it)))->backstrides[1]; } }; } else { int __npy_i; for (__npy_i=((PyArrayIterObject *)(it))->nd_m1; __npy_i >= 0; __npy_i--) { if (((PyArrayIterObject *)(it))->coordinates[__npy_i] < ((PyArrayIterObject *)(it))->dims_m1[__npy_i]) { ((PyArrayIterObject *)(it))->coordinates[__npy_i]++; ((PyArrayIterObject *)(it))->dataptr += ((PyArrayIterObject *)(it))->strides[__npy_i]; break; } else { ((PyArrayIterObject *)(it))->coordinates[__npy_i] = 0; ((PyArrayIterObject *)(it))->dataptr -= ((PyArrayIterObject *)(it))->backstrides[__npy_i]; } } } }; > } > free(buffer); > } > else { > while (size--) { > if (sort(it->dataptr, N, op) < 0) { > goto fail; > } > { ((PyArrayIterObject *)(it))->index++; if (((PyArrayIterObject *)(it))->nd_m1 == 0) { { (((PyArrayIterObject *)(it)))->dataptr += ((PyArrayIterObject *)(((PyArrayIterObject *)(it))))->strides[0]; (((PyArrayIterObject *)(it)))->coordinates[0]++; }; } else if (((PyArrayIterObject *)(it))->contiguous) ((PyArrayIterObject *)(it))->dataptr += ((PyArrayIterObject *)(it))->ao->descr->elsize; else if (((PyArrayIterObject *)(it))->nd_m1 == 1) { { if ((((PyArrayIterObject *)(it)))->coordinates[1] < (((PyArrayIterObject *)(it)))->dims_m1[1]) { (((PyArrayIterObject *)(it)))->coordinates[1]++; (((PyArrayIterObject *)(it)))->dataptr += (((PyArrayIterObject *)(it)))->strides[1]; } else { (((PyArrayIterObject *)(it)))->coordinates[1] = 0; (((PyArrayIterObject *)(it)))->coordinates[0]++; (((PyArrayIterObject *)(it)))->dataptr += (((PyArrayIterObject *)(it)))->strides[0] - (((PyArrayIterObject *)(it)))->backstrides[1]; } }; } else { int __npy_i; for (__npy_i=((PyArrayIterObject *)(it))->nd_m1; __npy_i >= 0; __npy_i--) { if (((PyArrayIterObject *)(it))->coordinates[__npy_i] < ((PyArrayIterObject *)(it))->dims_m1[__npy_i]) { ((PyArrayIterObject *)(it))->coordinates[__npy_i]++; ((PyArrayIterObject *)(it))->dataptr += ((PyArrayIterObject *)(it))->strides[__npy_i]; break; } else { ((PyArrayIterObject *)(it))->coordinates[__npy_i] = 0; ((PyArrayIterObject *)(it))->dataptr -= ((PyArrayIterObject *)(it))->backstrides[__npy_i]; } } } }; > } > } > do {if (!((((op->descr)->flags & (0x10)) == (0x10)))) do {if (_save) PyEval_RestoreThread(_save);} while (0);; } while (0);; > do { if ( --((PyObject*)(it))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(it)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(it)))); } while (0); > return 0; > > fail: > do {if (_save) PyEval_RestoreThread(_save);} while (0);; > do { if ( --((PyObject*)(it))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(it)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(it)))); } while (0); > return 0; >} > >static PyObject* >_new_argsort(PyArrayObject *op, int axis, NPY_SORTKIND which) >{ > > PyArrayIterObject *it = ((void *)0); > PyArrayIterObject *rit = ((void *)0); > PyObject *ret; > int needcopy = 0, i; > npy_intp N, size; > int elsize, swap; > npy_intp astride, rstride, *iptr; > PyArray_ArgSortFunc *argsort; > PyThreadState *_save=((void *)0);; > > ret = PyArray_New((((PyObject*)(op))->ob_type), op->nd, > op->dimensions, NPY_LONG, > ((void *)0), ((void *)0), 0, 0, (PyObject *)op); > if (ret == ((void *)0)) { > return ((void *)0); > } > it = (PyArrayIterObject *)PyArray_IterAllButAxis((PyObject *)op, &axis); > rit = (PyArrayIterObject *)PyArray_IterAllButAxis(ret, &axis); > if (rit == ((void *)0) || it == ((void *)0)) { > goto fail; > } > swap = !(((((PyArrayObject *)(op))->descr)->byteorder) != '>'); > > do {if (!((((op->descr)->flags & (0x10)) == (0x10)))) _save = PyEval_SaveThread();;} while (0);; > argsort = op->descr->f->argsort[which]; > size = it->size; > N = op->dimensions[axis]; > elsize = op->descr->elsize; > astride = op->strides[axis]; > rstride = ((((PyArrayObject *)(ret))->strides)[axis]); > > needcopy = swap || !(op->flags & 0x0100) || (astride != (npy_intp) elsize) || > (rstride != sizeof(npy_intp)); > if (needcopy) { > char *valbuffer, *indbuffer; > > valbuffer = ((char *)malloc(N*elsize)); > indbuffer = ((char *)malloc(N*sizeof(npy_intp))); > while (size--) { > _unaligned_strided_byte_copy(valbuffer, (npy_intp) elsize, it->dataptr, > astride, N, elsize); > if (swap) { > _strided_byte_swap(valbuffer, (npy_intp) elsize, N, elsize); > } > iptr = (npy_intp *)indbuffer; > for (i = 0; i < N; i++) { > *iptr++ = i; > } > if (argsort(valbuffer, (npy_intp *)indbuffer, N, op) < 0) { > free(valbuffer); > free(indbuffer); > goto fail; > } > _unaligned_strided_byte_copy(rit->dataptr, rstride, indbuffer, > sizeof(npy_intp), N, sizeof(npy_intp)); > { ((PyArrayIterObject *)(it))->index++; if (((PyArrayIterObject *)(it))->nd_m1 == 0) { { (((PyArrayIterObject *)(it)))->dataptr += ((PyArrayIterObject *)(((PyArrayIterObject *)(it))))->strides[0]; (((PyArrayIterObject *)(it)))->coordinates[0]++; }; } else if (((PyArrayIterObject *)(it))->contiguous) ((PyArrayIterObject *)(it))->dataptr += ((PyArrayIterObject *)(it))->ao->descr->elsize; else if (((PyArrayIterObject *)(it))->nd_m1 == 1) { { if ((((PyArrayIterObject *)(it)))->coordinates[1] < (((PyArrayIterObject *)(it)))->dims_m1[1]) { (((PyArrayIterObject *)(it)))->coordinates[1]++; (((PyArrayIterObject *)(it)))->dataptr += (((PyArrayIterObject *)(it)))->strides[1]; } else { (((PyArrayIterObject *)(it)))->coordinates[1] = 0; (((PyArrayIterObject *)(it)))->coordinates[0]++; (((PyArrayIterObject *)(it)))->dataptr += (((PyArrayIterObject *)(it)))->strides[0] - (((PyArrayIterObject *)(it)))->backstrides[1]; } }; } else { int __npy_i; for (__npy_i=((PyArrayIterObject *)(it))->nd_m1; __npy_i >= 0; __npy_i--) { if (((PyArrayIterObject *)(it))->coordinates[__npy_i] < ((PyArrayIterObject *)(it))->dims_m1[__npy_i]) { ((PyArrayIterObject *)(it))->coordinates[__npy_i]++; ((PyArrayIterObject *)(it))->dataptr += ((PyArrayIterObject *)(it))->strides[__npy_i]; break; } else { ((PyArrayIterObject *)(it))->coordinates[__npy_i] = 0; ((PyArrayIterObject *)(it))->dataptr -= ((PyArrayIterObject *)(it))->backstrides[__npy_i]; } } } }; > { ((PyArrayIterObject *)(rit))->index++; if (((PyArrayIterObject *)(rit))->nd_m1 == 0) { { (((PyArrayIterObject *)(rit)))->dataptr += ((PyArrayIterObject *)(((PyArrayIterObject *)(rit))))->strides[0]; (((PyArrayIterObject *)(rit)))->coordinates[0]++; }; } else if (((PyArrayIterObject *)(rit))->contiguous) ((PyArrayIterObject *)(rit))->dataptr += ((PyArrayIterObject *)(rit))->ao->descr->elsize; else if (((PyArrayIterObject *)(rit))->nd_m1 == 1) { { if ((((PyArrayIterObject *)(rit)))->coordinates[1] < (((PyArrayIterObject *)(rit)))->dims_m1[1]) { (((PyArrayIterObject *)(rit)))->coordinates[1]++; (((PyArrayIterObject *)(rit)))->dataptr += (((PyArrayIterObject *)(rit)))->strides[1]; } else { (((PyArrayIterObject *)(rit)))->coordinates[1] = 0; (((PyArrayIterObject *)(rit)))->coordinates[0]++; (((PyArrayIterObject *)(rit)))->dataptr += (((PyArrayIterObject *)(rit)))->strides[0] - (((PyArrayIterObject *)(rit)))->backstrides[1]; } }; } else { int __npy_i; for (__npy_i=((PyArrayIterObject *)(rit))->nd_m1; __npy_i >= 0; __npy_i--) { if (((PyArrayIterObject *)(rit))->coordinates[__npy_i] < ((PyArrayIterObject *)(rit))->dims_m1[__npy_i]) { ((PyArrayIterObject *)(rit))->coordinates[__npy_i]++; ((PyArrayIterObject *)(rit))->dataptr += ((PyArrayIterObject *)(rit))->strides[__npy_i]; break; } else { ((PyArrayIterObject *)(rit))->coordinates[__npy_i] = 0; ((PyArrayIterObject *)(rit))->dataptr -= ((PyArrayIterObject *)(rit))->backstrides[__npy_i]; } } } }; > } > free(valbuffer); > free(indbuffer); > } > else { > while (size--) { > iptr = (npy_intp *)rit->dataptr; > for (i = 0; i < N; i++) { > *iptr++ = i; > } > if (argsort(it->dataptr, (npy_intp *)rit->dataptr, N, op) < 0) { > goto fail; > } > { ((PyArrayIterObject *)(it))->index++; if (((PyArrayIterObject *)(it))->nd_m1 == 0) { { (((PyArrayIterObject *)(it)))->dataptr += ((PyArrayIterObject *)(((PyArrayIterObject *)(it))))->strides[0]; (((PyArrayIterObject *)(it)))->coordinates[0]++; }; } else if (((PyArrayIterObject *)(it))->contiguous) ((PyArrayIterObject *)(it))->dataptr += ((PyArrayIterObject *)(it))->ao->descr->elsize; else if (((PyArrayIterObject *)(it))->nd_m1 == 1) { { if ((((PyArrayIterObject *)(it)))->coordinates[1] < (((PyArrayIterObject *)(it)))->dims_m1[1]) { (((PyArrayIterObject *)(it)))->coordinates[1]++; (((PyArrayIterObject *)(it)))->dataptr += (((PyArrayIterObject *)(it)))->strides[1]; } else { (((PyArrayIterObject *)(it)))->coordinates[1] = 0; (((PyArrayIterObject *)(it)))->coordinates[0]++; (((PyArrayIterObject *)(it)))->dataptr += (((PyArrayIterObject *)(it)))->strides[0] - (((PyArrayIterObject *)(it)))->backstrides[1]; } }; } else { int __npy_i; for (__npy_i=((PyArrayIterObject *)(it))->nd_m1; __npy_i >= 0; __npy_i--) { if (((PyArrayIterObject *)(it))->coordinates[__npy_i] < ((PyArrayIterObject *)(it))->dims_m1[__npy_i]) { ((PyArrayIterObject *)(it))->coordinates[__npy_i]++; ((PyArrayIterObject *)(it))->dataptr += ((PyArrayIterObject *)(it))->strides[__npy_i]; break; } else { ((PyArrayIterObject *)(it))->coordinates[__npy_i] = 0; ((PyArrayIterObject *)(it))->dataptr -= ((PyArrayIterObject *)(it))->backstrides[__npy_i]; } } } }; > { ((PyArrayIterObject *)(rit))->index++; if (((PyArrayIterObject *)(rit))->nd_m1 == 0) { { (((PyArrayIterObject *)(rit)))->dataptr += ((PyArrayIterObject *)(((PyArrayIterObject *)(rit))))->strides[0]; (((PyArrayIterObject *)(rit)))->coordinates[0]++; }; } else if (((PyArrayIterObject *)(rit))->contiguous) ((PyArrayIterObject *)(rit))->dataptr += ((PyArrayIterObject *)(rit))->ao->descr->elsize; else if (((PyArrayIterObject *)(rit))->nd_m1 == 1) { { if ((((PyArrayIterObject *)(rit)))->coordinates[1] < (((PyArrayIterObject *)(rit)))->dims_m1[1]) { (((PyArrayIterObject *)(rit)))->coordinates[1]++; (((PyArrayIterObject *)(rit)))->dataptr += (((PyArrayIterObject *)(rit)))->strides[1]; } else { (((PyArrayIterObject *)(rit)))->coordinates[1] = 0; (((PyArrayIterObject *)(rit)))->coordinates[0]++; (((PyArrayIterObject *)(rit)))->dataptr += (((PyArrayIterObject *)(rit)))->strides[0] - (((PyArrayIterObject *)(rit)))->backstrides[1]; } }; } else { int __npy_i; for (__npy_i=((PyArrayIterObject *)(rit))->nd_m1; __npy_i >= 0; __npy_i--) { if (((PyArrayIterObject *)(rit))->coordinates[__npy_i] < ((PyArrayIterObject *)(rit))->dims_m1[__npy_i]) { ((PyArrayIterObject *)(rit))->coordinates[__npy_i]++; ((PyArrayIterObject *)(rit))->dataptr += ((PyArrayIterObject *)(rit))->strides[__npy_i]; break; } else { ((PyArrayIterObject *)(rit))->coordinates[__npy_i] = 0; ((PyArrayIterObject *)(rit))->dataptr -= ((PyArrayIterObject *)(rit))->backstrides[__npy_i]; } } } }; > } > } > > do {if (!((((op->descr)->flags & (0x10)) == (0x10)))) do {if (_save) PyEval_RestoreThread(_save);} while (0);; } while (0);; > > do { if ( --((PyObject*)(it))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(it)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(it)))); } while (0); > do { if ( --((PyObject*)(rit))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(rit)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(rit)))); } while (0); > return ret; > > fail: > do {if (_save) PyEval_RestoreThread(_save);} while (0);; > do { if ( --((PyObject*)(ret))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(ret)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(ret)))); } while (0); > do { if ((it) == ((void *)0)) ; else do { if ( --((PyObject*)(it))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(it)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(it)))); } while (0); } while (0); > do { if ((rit) == ((void *)0)) ; else do { if ( --((PyObject*)(rit))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(rit)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(rit)))); } while (0); } while (0); > return ((void *)0); >} > > > >static PyArrayObject *global_obj; > >static int >qsortCompare (const void *a, const void *b) >{ > return global_obj->descr->f->compare(a,b,global_obj); >} ># 965 "numpy/core/src/multiarray/item_selection.c" >static int >PyArray_Sort(PyArrayObject *op, int axis, NPY_SORTKIND which) >{ > PyArrayObject *ap = ((void *)0), *store_arr = ((void *)0); > char *ip; > int i, n, m, elsize, orign; > > n = op->nd; > if ((n == 0) || (PyArray_MultiplyList((((PyArrayObject *)(op))->dimensions), (((PyArrayObject *)(op))->nd)) == 1)) { > return 0; > } > if (axis < 0) { > axis += n; > } > if ((axis < 0) || (axis >= n)) { > PyErr_Format(PyExc_ValueError, "axis(=%d) out of bounds", axis); > return -1; > } > if (!((((PyArrayObject *)(op))->flags & (0x0400)) == (0x0400))) { > PyErr_SetString(PyExc_RuntimeError, > "attempted sort on unwriteable array."); > return -1; > } > > > if (op->descr->f->sort[which] != ((void *)0)) { > return _new_sort(op, axis, which); > } > if ((which != NPY_QUICKSORT) > || op->descr->f->compare == ((void *)0)) { > PyErr_SetString(PyExc_TypeError, > "desired sort not supported for this type"); > return -1; > } > > { orign = (op)->nd-1; if (axis != orign) { {npy_intp c; c=(op->dimensions[axis]); (op->dimensions[axis]) = (op->dimensions[orign]); (op->dimensions[orign]) = c;}; {npy_intp c; c=(op->strides[axis]); (op->strides[axis]) = (op->strides[orign]); (op->strides[orign]) = c;}; PyArray_UpdateFlags(op, 0x0001 | 0x0002); } }; > > ap = (PyArrayObject *)PyArray_FromAny((PyObject *)op, > ((void *)0), 1, 0, > (0x0001 | (0x0100 | 0x0400)) | 0x1000, ((void *)0)); > if (ap == ((void *)0)) { > goto fail; > } > elsize = ap->descr->elsize; > m = ap->dimensions[ap->nd-1]; > if (m == 0) { > goto finish; > } > n = PyArray_MultiplyList((((PyArrayObject *)(ap))->dimensions), (((PyArrayObject *)(ap))->nd))/m; > > > store_arr = global_obj; > global_obj = ap; > for (ip = ap->data, i = 0; i < n; i++, ip += elsize*m) { > qsort(ip, m, elsize, qsortCompare); > } > global_obj = store_arr; > > if (PyErr_Occurred()) { > goto fail; > } > > finish: > do { if ( --((PyObject*)(ap))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(ap)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(ap)))); } while (0); > { if (axis != orign) { {npy_intp c; c=(op->dimensions[axis]); (op->dimensions[axis]) = (op->dimensions[orign]); (op->dimensions[orign]) = c;}; {npy_intp c; c=(op->strides[axis]); (op->strides[axis]) = (op->strides[orign]); (op->strides[orign]) = c;}; PyArray_UpdateFlags(op, 0x0001 | 0x0002); } }; > return 0; > > fail: > do { if ((ap) == ((void *)0)) ; else do { if ( --((PyObject*)(ap))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(ap)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(ap)))); } while (0); } while (0); > { if (axis != orign) { {npy_intp c; c=(op->dimensions[axis]); (op->dimensions[axis]) = (op->dimensions[orign]); (op->dimensions[orign]) = c;}; {npy_intp c; c=(op->strides[axis]); (op->strides[axis]) = (op->strides[orign]); (op->strides[orign]) = c;}; PyArray_UpdateFlags(op, 0x0001 | 0x0002); } }; > return -1; >} > > >static char *global_data; > >static int >argsort_static_compare(const void *ip1, const void *ip2) >{ > int isize = global_obj->descr->elsize; > const npy_intp *ipa = ip1; > const npy_intp *ipb = ip2; > return global_obj->descr->f->compare(global_data + (isize * *ipa), > global_data + (isize * *ipb), > global_obj); >} > > > > >static PyObject * >PyArray_ArgSort(PyArrayObject *op, int axis, NPY_SORTKIND which) >{ > PyArrayObject *ap = ((void *)0), *ret = ((void *)0), *store, *op2; > npy_intp *ip; > npy_intp i, j, n, m, orign; > int argsort_elsize; > char *store_ptr; > > n = op->nd; > if ((n == 0) || (PyArray_MultiplyList((((PyArrayObject *)(op))->dimensions), (((PyArrayObject *)(op))->nd)) == 1)) { > ret = (PyArrayObject *)PyArray_New((((PyObject*)(op))->ob_type), op->nd, > op->dimensions, > NPY_LONG, > ((void *)0), ((void *)0), 0, 0, > (PyObject *)op); > if (ret == ((void *)0)) { > return ((void *)0); > } > *((npy_intp *)ret->data) = 0; > return (PyObject *)ret; > } > > > if ((op2=(PyArrayObject *)PyArray_CheckAxis(op, &axis, 0)) == ((void *)0)) { > return ((void *)0); > } > > if (op2->descr->f->argsort[which] != ((void *)0)) { > ret = (PyArrayObject *)_new_argsort(op2, axis, which); > do { if ( --((PyObject*)(op2))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(op2)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(op2)))); } while (0); > return (PyObject *)ret; > } > > if ((which != NPY_QUICKSORT) || op2->descr->f->compare == ((void *)0)) { > PyErr_SetString(PyExc_TypeError, > "requested sort not available for type"); > do { if ( --((PyObject*)(op2))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(op2)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(op2)))); } while (0); > op = ((void *)0); > goto fail; > } > > > { orign = (op2)->nd-1; if (axis != orign) { (ap) = (PyArrayObject *)PyArray_SwapAxes((op2), axis, orign); do { if ( --((PyObject*)((op2)))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)((op2))))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)((op2))))); } while (0); if ((ap) == ((void *)0)) return ((void *)0); } else (ap) = (op2); }; > op = (PyArrayObject *)PyArray_FromAny((PyObject *)ap, PyArray_DescrFromType(NPY_NOTYPE), 1, 0, (0x0001 | (0x0100 | 0x0400)), ((void *)0)); > > > do { if ( --((PyObject*)(ap))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(ap)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(ap)))); } while (0); > if (op == ((void *)0)) { > return ((void *)0); > } > ret = (PyArrayObject *)PyArray_New((((PyObject*)(op))->ob_type), op->nd, > op->dimensions, NPY_LONG, > ((void *)0), ((void *)0), 0, 0, (PyObject *)op); > if (ret == ((void *)0)) { > goto fail; > } > ip = (npy_intp *)ret->data; > argsort_elsize = op->descr->elsize; > m = op->dimensions[op->nd-1]; > if (m == 0) { > goto finish; > } > n = PyArray_MultiplyList((((PyArrayObject *)(op))->dimensions), (((PyArrayObject *)(op))->nd))/m; > store_ptr = global_data; > global_data = op->data; > store = global_obj; > global_obj = op; > for (i = 0; i < n; i++, ip += m, global_data += m*argsort_elsize) { > for (j = 0; j < m; j++) { > ip[j] = j; > } > qsort((char *)ip, m, sizeof(npy_intp), argsort_static_compare); > } > global_data = store_ptr; > global_obj = store; > > finish: > do { if ( --((PyObject*)(op))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(op)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(op)))); } while (0); > { if (axis != orign) { (op) = (PyArrayObject *)PyArray_SwapAxes((ret), axis, orign); do { if ( --((PyObject*)((ret)))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)((ret))))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)((ret))))); } while (0); if ((op) == ((void *)0)) return ((void *)0); } else (op) = (ret); }; > return (PyObject *)op; > > fail: > do { if ((op) == ((void *)0)) ; else do { if ( --((PyObject*)(op))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(op)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(op)))); } while (0); } while (0); > do { if ((ret) == ((void *)0)) ; else do { if ( --((PyObject*)(ret))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(ret)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(ret)))); } while (0); } while (0); > return ((void *)0); > >} ># 1153 "numpy/core/src/multiarray/item_selection.c" >static PyObject * >PyArray_LexSort(PyObject *sort_keys, int axis) >{ > PyArrayObject **mps; > PyArrayIterObject **its; > PyArrayObject *ret = ((void *)0); > PyArrayIterObject *rit = ((void *)0); > int n; > int nd; > int needcopy = 0, i,j; > npy_intp N, size; > int elsize; > int maxelsize; > npy_intp astride, rstride, *iptr; > int object = 0; > PyArray_ArgSortFunc *argsort; > PyThreadState *_save=((void *)0);; > > if (!PySequence_Check(sort_keys) > || ((n = PySequence_Size(sort_keys)) <= 0)) { > PyErr_SetString(PyExc_TypeError, > "need sequence of keys with len > 0 in lexsort"); > return ((void *)0); > } > mps = (PyArrayObject **) PyMem_Malloc(n*sizeof(PyArrayObject)); > if (mps == ((void *)0)) { > return PyErr_NoMemory(); > } > its = (PyArrayIterObject **) PyMem_Malloc(n*sizeof(PyArrayIterObject)); > if (its == ((void *)0)) { > PyMem_Free(mps); > return PyErr_NoMemory(); > } > for (i = 0; i < n; i++) { > mps[i] = ((void *)0); > its[i] = ((void *)0); > } > for (i = 0; i < n; i++) { > PyObject *obj; > obj = PySequence_GetItem(sort_keys, i); > mps[i] = (PyArrayObject *)PyArray_FromAny(obj, ((void *)0), 0, 0, 0, ((void *)0)); > do { if ( --((PyObject*)(obj))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(obj)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(obj)))); } while (0); > if (mps[i] == ((void *)0)) { > goto fail; > } > if (i > 0) { > if ((mps[i]->nd != mps[0]->nd) > || (!PyArray_CompareLists(mps[i]->dimensions, > mps[0]->dimensions, > mps[0]->nd))) { > PyErr_SetString(PyExc_ValueError, > "all keys need to be the same shape"); > goto fail; > } > } > if (!mps[i]->descr->f->argsort[NPY_MERGESORT]) { > PyErr_Format(PyExc_TypeError, > "merge sort not available for item %d", i); > goto fail; > } > if (!object > && (((mps[i]->descr)->flags & (0x10)) == (0x10))) { > object = 1; > } > its[i] = (PyArrayIterObject *)PyArray_IterAllButAxis( > (PyObject *)mps[i], &axis); > if (its[i] == ((void *)0)) { > goto fail; > } > } > > > nd = mps[0]->nd; > if ((nd == 0) || (PyArray_MultiplyList((((PyArrayObject *)(mps[0]))->dimensions), (((PyArrayObject *)(mps[0]))->nd)) == 1)) { > > ret = (PyArrayObject *)PyArray_New(&PyArray_Type, mps[0]->nd, > mps[0]->dimensions, > NPY_LONG, > ((void *)0), ((void *)0), 0, 0, ((void *)0)); > > if (ret == ((void *)0)) { > goto fail; > } > *((npy_intp *)(ret->data)) = 0; > goto finish; > } > if (axis < 0) { > axis += nd; > } > if ((axis < 0) || (axis >= nd)) { > PyErr_Format(PyExc_ValueError, > "axis(=%d) out of bounds", axis); > goto fail; > } > > > ret = (PyArrayObject *)PyArray_New(&PyArray_Type, mps[0]->nd, > mps[0]->dimensions, NPY_LONG, > ((void *)0), ((void *)0), 0, 0, ((void *)0)); > if (ret == ((void *)0)) { > goto fail; > } > rit = (PyArrayIterObject *) > PyArray_IterAllButAxis((PyObject *)ret, &axis); > if (rit == ((void *)0)) { > goto fail; > } > if (!object) { > _save = PyEval_SaveThread();; > } > size = rit->size; > N = mps[0]->dimensions[axis]; > rstride = ((((PyArrayObject *)(ret))->strides)[axis]); > maxelsize = mps[0]->descr->elsize; > needcopy = (rstride != sizeof(npy_intp)); > for (j = 0; j < n; j++) { > needcopy = needcopy > || (!(((((PyArrayObject *)(mps[j]))->descr)->byteorder) != '>')) > || !(mps[j]->flags & 0x0100) > || (mps[j]->strides[axis] != (npy_intp)mps[j]->descr->elsize); > if (mps[j]->descr->elsize > maxelsize) { > maxelsize = mps[j]->descr->elsize; > } > } > > if (needcopy) { > char *valbuffer, *indbuffer; > int *swaps; > > valbuffer = ((char *)malloc(N*maxelsize)); > indbuffer = ((char *)malloc(N*sizeof(npy_intp))); > swaps = malloc(n*sizeof(int)); > for (j = 0; j < n; j++) { > swaps[j] = (!(((((PyArrayObject *)(mps[j]))->descr)->byteorder) != '>')); > } > while (size--) { > iptr = (npy_intp *)indbuffer; > for (i = 0; i < N; i++) { > *iptr++ = i; > } > for (j = 0; j < n; j++) { > elsize = mps[j]->descr->elsize; > astride = mps[j]->strides[axis]; > argsort = mps[j]->descr->f->argsort[NPY_MERGESORT]; > _unaligned_strided_byte_copy(valbuffer, (npy_intp) elsize, > its[j]->dataptr, astride, N, elsize); > if (swaps[j]) { > _strided_byte_swap(valbuffer, (npy_intp) elsize, N, elsize); > } > if (argsort(valbuffer, (npy_intp *)indbuffer, N, mps[j]) < 0) { > free(valbuffer); > free(indbuffer); > free(swaps); > goto fail; > } > { ((PyArrayIterObject *)(its[j]))->index++; if (((PyArrayIterObject *)(its[j]))->nd_m1 == 0) { { (((PyArrayIterObject *)(its[j])))->dataptr += ((PyArrayIterObject *)(((PyArrayIterObject *)(its[j]))))->strides[0]; (((PyArrayIterObject *)(its[j])))->coordinates[0]++; }; } else if (((PyArrayIterObject *)(its[j]))->contiguous) ((PyArrayIterObject *)(its[j]))->dataptr += ((PyArrayIterObject *)(its[j]))->ao->descr->elsize; else if (((PyArrayIterObject *)(its[j]))->nd_m1 == 1) { { if ((((PyArrayIterObject *)(its[j])))->coordinates[1] < (((PyArrayIterObject *)(its[j])))->dims_m1[1]) { (((PyArrayIterObject *)(its[j])))->coordinates[1]++; (((PyArrayIterObject *)(its[j])))->dataptr += (((PyArrayIterObject *)(its[j])))->strides[1]; } else { (((PyArrayIterObject *)(its[j])))->coordinates[1] = 0; (((PyArrayIterObject *)(its[j])))->coordinates[0]++; (((PyArrayIterObject *)(its[j])))->dataptr += (((PyArrayIterObject *)(its[j])))->strides[0] - (((PyArrayIterObject *)(its[j])))->backstrides[1]; } }; } else { int __npy_i; for (__npy_i=((PyArrayIterObject *)(its[j]))->nd_m1; __npy_i >= 0; __npy_i--) { if (((PyArrayIterObject *)(its[j]))->coordinates[__npy_i] < ((PyArrayIterObject *)(its[j]))->dims_m1[__npy_i]) { ((PyArrayIterObject *)(its[j]))->coordinates[__npy_i]++; ((PyArrayIterObject *)(its[j]))->dataptr += ((PyArrayIterObject *)(its[j]))->strides[__npy_i]; break; } else { ((PyArrayIterObject *)(its[j]))->coordinates[__npy_i] = 0; ((PyArrayIterObject *)(its[j]))->dataptr -= ((PyArrayIterObject *)(its[j]))->backstrides[__npy_i]; } } } }; > } > _unaligned_strided_byte_copy(rit->dataptr, rstride, indbuffer, > sizeof(npy_intp), N, sizeof(npy_intp)); > { ((PyArrayIterObject *)(rit))->index++; if (((PyArrayIterObject *)(rit))->nd_m1 == 0) { { (((PyArrayIterObject *)(rit)))->dataptr += ((PyArrayIterObject *)(((PyArrayIterObject *)(rit))))->strides[0]; (((PyArrayIterObject *)(rit)))->coordinates[0]++; }; } else if (((PyArrayIterObject *)(rit))->contiguous) ((PyArrayIterObject *)(rit))->dataptr += ((PyArrayIterObject *)(rit))->ao->descr->elsize; else if (((PyArrayIterObject *)(rit))->nd_m1 == 1) { { if ((((PyArrayIterObject *)(rit)))->coordinates[1] < (((PyArrayIterObject *)(rit)))->dims_m1[1]) { (((PyArrayIterObject *)(rit)))->coordinates[1]++; (((PyArrayIterObject *)(rit)))->dataptr += (((PyArrayIterObject *)(rit)))->strides[1]; } else { (((PyArrayIterObject *)(rit)))->coordinates[1] = 0; (((PyArrayIterObject *)(rit)))->coordinates[0]++; (((PyArrayIterObject *)(rit)))->dataptr += (((PyArrayIterObject *)(rit)))->strides[0] - (((PyArrayIterObject *)(rit)))->backstrides[1]; } }; } else { int __npy_i; for (__npy_i=((PyArrayIterObject *)(rit))->nd_m1; __npy_i >= 0; __npy_i--) { if (((PyArrayIterObject *)(rit))->coordinates[__npy_i] < ((PyArrayIterObject *)(rit))->dims_m1[__npy_i]) { ((PyArrayIterObject *)(rit))->coordinates[__npy_i]++; ((PyArrayIterObject *)(rit))->dataptr += ((PyArrayIterObject *)(rit))->strides[__npy_i]; break; } else { ((PyArrayIterObject *)(rit))->coordinates[__npy_i] = 0; ((PyArrayIterObject *)(rit))->dataptr -= ((PyArrayIterObject *)(rit))->backstrides[__npy_i]; } } } }; > } > free(valbuffer); > free(indbuffer); > free(swaps); > } > else { > while (size--) { > iptr = (npy_intp *)rit->dataptr; > for (i = 0; i < N; i++) { > *iptr++ = i; > } > for (j = 0; j < n; j++) { > argsort = mps[j]->descr->f->argsort[NPY_MERGESORT]; > if (argsort(its[j]->dataptr, (npy_intp *)rit->dataptr, > N, mps[j]) < 0) { > goto fail; > } > { ((PyArrayIterObject *)(its[j]))->index++; if (((PyArrayIterObject *)(its[j]))->nd_m1 == 0) { { (((PyArrayIterObject *)(its[j])))->dataptr += ((PyArrayIterObject *)(((PyArrayIterObject *)(its[j]))))->strides[0]; (((PyArrayIterObject *)(its[j])))->coordinates[0]++; }; } else if (((PyArrayIterObject *)(its[j]))->contiguous) ((PyArrayIterObject *)(its[j]))->dataptr += ((PyArrayIterObject *)(its[j]))->ao->descr->elsize; else if (((PyArrayIterObject *)(its[j]))->nd_m1 == 1) { { if ((((PyArrayIterObject *)(its[j])))->coordinates[1] < (((PyArrayIterObject *)(its[j])))->dims_m1[1]) { (((PyArrayIterObject *)(its[j])))->coordinates[1]++; (((PyArrayIterObject *)(its[j])))->dataptr += (((PyArrayIterObject *)(its[j])))->strides[1]; } else { (((PyArrayIterObject *)(its[j])))->coordinates[1] = 0; (((PyArrayIterObject *)(its[j])))->coordinates[0]++; (((PyArrayIterObject *)(its[j])))->dataptr += (((PyArrayIterObject *)(its[j])))->strides[0] - (((PyArrayIterObject *)(its[j])))->backstrides[1]; } }; } else { int __npy_i; for (__npy_i=((PyArrayIterObject *)(its[j]))->nd_m1; __npy_i >= 0; __npy_i--) { if (((PyArrayIterObject *)(its[j]))->coordinates[__npy_i] < ((PyArrayIterObject *)(its[j]))->dims_m1[__npy_i]) { ((PyArrayIterObject *)(its[j]))->coordinates[__npy_i]++; ((PyArrayIterObject *)(its[j]))->dataptr += ((PyArrayIterObject *)(its[j]))->strides[__npy_i]; break; } else { ((PyArrayIterObject *)(its[j]))->coordinates[__npy_i] = 0; ((PyArrayIterObject *)(its[j]))->dataptr -= ((PyArrayIterObject *)(its[j]))->backstrides[__npy_i]; } } } }; > } > { ((PyArrayIterObject *)(rit))->index++; if (((PyArrayIterObject *)(rit))->nd_m1 == 0) { { (((PyArrayIterObject *)(rit)))->dataptr += ((PyArrayIterObject *)(((PyArrayIterObject *)(rit))))->strides[0]; (((PyArrayIterObject *)(rit)))->coordinates[0]++; }; } else if (((PyArrayIterObject *)(rit))->contiguous) ((PyArrayIterObject *)(rit))->dataptr += ((PyArrayIterObject *)(rit))->ao->descr->elsize; else if (((PyArrayIterObject *)(rit))->nd_m1 == 1) { { if ((((PyArrayIterObject *)(rit)))->coordinates[1] < (((PyArrayIterObject *)(rit)))->dims_m1[1]) { (((PyArrayIterObject *)(rit)))->coordinates[1]++; (((PyArrayIterObject *)(rit)))->dataptr += (((PyArrayIterObject *)(rit)))->strides[1]; } else { (((PyArrayIterObject *)(rit)))->coordinates[1] = 0; (((PyArrayIterObject *)(rit)))->coordinates[0]++; (((PyArrayIterObject *)(rit)))->dataptr += (((PyArrayIterObject *)(rit)))->strides[0] - (((PyArrayIterObject *)(rit)))->backstrides[1]; } }; } else { int __npy_i; for (__npy_i=((PyArrayIterObject *)(rit))->nd_m1; __npy_i >= 0; __npy_i--) { if (((PyArrayIterObject *)(rit))->coordinates[__npy_i] < ((PyArrayIterObject *)(rit))->dims_m1[__npy_i]) { ((PyArrayIterObject *)(rit))->coordinates[__npy_i]++; ((PyArrayIterObject *)(rit))->dataptr += ((PyArrayIterObject *)(rit))->strides[__npy_i]; break; } else { ((PyArrayIterObject *)(rit))->coordinates[__npy_i] = 0; ((PyArrayIterObject *)(rit))->dataptr -= ((PyArrayIterObject *)(rit))->backstrides[__npy_i]; } } } }; > } > } > > if (!object) { > do {if (_save) PyEval_RestoreThread(_save);} while (0);; > } > > finish: > for (i = 0; i < n; i++) { > do { if ((mps[i]) == ((void *)0)) ; else do { if ( --((PyObject*)(mps[i]))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(mps[i])))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(mps[i])))); } while (0); } while (0); > do { if ((its[i]) == ((void *)0)) ; else do { if ( --((PyObject*)(its[i]))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(its[i])))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(its[i])))); } while (0); } while (0); > } > do { if ((rit) == ((void *)0)) ; else do { if ( --((PyObject*)(rit))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(rit)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(rit)))); } while (0); } while (0); > PyMem_Free(mps); > PyMem_Free(its); > return (PyObject *)ret; > > fail: > do {if (_save) PyEval_RestoreThread(_save);} while (0);; > do { if ((rit) == ((void *)0)) ; else do { if ( --((PyObject*)(rit))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(rit)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(rit)))); } while (0); } while (0); > do { if ((ret) == ((void *)0)) ; else do { if ( --((PyObject*)(ret))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(ret)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(ret)))); } while (0); } while (0); > for (i = 0; i < n; i++) { > do { if ((mps[i]) == ((void *)0)) ; else do { if ( --((PyObject*)(mps[i]))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(mps[i])))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(mps[i])))); } while (0); } while (0); > do { if ((its[i]) == ((void *)0)) ; else do { if ( --((PyObject*)(its[i]))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(its[i])))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(its[i])))); } while (0); } while (0); > } > PyMem_Free(mps); > PyMem_Free(its); > return ((void *)0); >} ># 1376 "numpy/core/src/multiarray/item_selection.c" >static void >local_search_left(PyArrayObject *arr, PyArrayObject *key, PyArrayObject *ret) >{ > PyArray_CompareFunc *compare = key->descr->f->compare; > npy_intp nelts = arr->dimensions[arr->nd - 1]; > npy_intp nkeys = PyArray_MultiplyList((((PyArrayObject *)(key))->dimensions), (((PyArrayObject *)(key))->nd)); > char *parr = arr->data; > char *pkey = key->data; > npy_intp *pret = (npy_intp *)ret->data; > int elsize = arr->descr->elsize; > npy_intp i; > > for (i = 0; i < nkeys; ++i) { > npy_intp imin = 0; > npy_intp imax = nelts; > while (imin < imax) { > npy_intp imid = imin + ((imax - imin) >> 1); > if (compare(parr + elsize*imid, pkey, key) < 0) { > imin = imid + 1; > } > else { > imax = imid; > } > } > *pret = imin; > pret += 1; > pkey += elsize; > } >} ># 1419 "numpy/core/src/multiarray/item_selection.c" >static void >local_search_right(PyArrayObject *arr, PyArrayObject *key, PyArrayObject *ret) >{ > PyArray_CompareFunc *compare = key->descr->f->compare; > npy_intp nelts = arr->dimensions[arr->nd - 1]; > npy_intp nkeys = PyArray_MultiplyList((((PyArrayObject *)(key))->dimensions), (((PyArrayObject *)(key))->nd)); > char *parr = arr->data; > char *pkey = key->data; > npy_intp *pret = (npy_intp *)ret->data; > int elsize = arr->descr->elsize; > npy_intp i; > > for(i = 0; i < nkeys; ++i) { > npy_intp imin = 0; > npy_intp imax = nelts; > while (imin < imax) { > npy_intp imid = imin + ((imax - imin) >> 1); > if (compare(parr + elsize*imid, pkey, key) <= 0) { > imin = imid + 1; > } > else { > imax = imid; > } > } > *pret = imin; > pret += 1; > pkey += elsize; > } >} > > > > >static PyObject * >PyArray_SearchSorted(PyArrayObject *op1, PyObject *op2, NPY_SEARCHSIDE side) >{ > PyArrayObject *ap1 = ((void *)0); > PyArrayObject *ap2 = ((void *)0); > PyArrayObject *ret = ((void *)0); > PyArray_Descr *dtype; > PyThreadState *_save=((void *)0);; > > dtype = PyArray_DescrFromObject((PyObject *)op2, op1->descr); > > ( ((PyObject*)(dtype))->ob_refcnt++); > ap1 = (PyArrayObject *)PyArray_CheckFromAny((PyObject *)op1, dtype, > 1, 1, (0x0001 | (0x0100 | 0x0400)) | 0x0200, ((void *)0)); > if (ap1 == ((void *)0)) { > do { if ( --((PyObject*)(dtype))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(dtype)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(dtype)))); } while (0); > return ((void *)0); > } > > > ap2 = (PyArrayObject *)PyArray_CheckFromAny(op2, dtype, > 0, 0, (0x0001 | (0x0100 | 0x0400)) | 0x0200, ((void *)0)); > if (ap2 == ((void *)0)) { > goto fail; > } > > ret = (PyArrayObject *)PyArray_New((((PyObject*)(ap2))->ob_type), ap2->nd, > ap2->dimensions, NPY_LONG, > ((void *)0), ((void *)0), 0, 0, (PyObject *)ap2); > if (ret == ((void *)0)) { > goto fail; > } > > if (ap2->descr->f->compare == ((void *)0)) { > PyErr_SetString(PyExc_TypeError, > "compare not supported for type"); > goto fail; > } > > if (side == NPY_SEARCHLEFT) { > do {if (!((((ap2->descr)->flags & (0x10)) == (0x10)))) _save = PyEval_SaveThread();;} while (0);; > local_search_left(ap1, ap2, ret); > do {if (!((((ap2->descr)->flags & (0x10)) == (0x10)))) do {if (_save) PyEval_RestoreThread(_save);} while (0);; } while (0);; > } > else if (side == NPY_SEARCHRIGHT) { > do {if (!((((ap2->descr)->flags & (0x10)) == (0x10)))) _save = PyEval_SaveThread();;} while (0);; > local_search_right(ap1, ap2, ret); > do {if (!((((ap2->descr)->flags & (0x10)) == (0x10)))) do {if (_save) PyEval_RestoreThread(_save);} while (0);; } while (0);; > } > do { if ( --((PyObject*)(ap1))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(ap1)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(ap1)))); } while (0); > do { if ( --((PyObject*)(ap2))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(ap2)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(ap2)))); } while (0); > return (PyObject *)ret; > > fail: > do { if ((ap1) == ((void *)0)) ; else do { if ( --((PyObject*)(ap1))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(ap1)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(ap1)))); } while (0); } while (0); > do { if ((ap2) == ((void *)0)) ; else do { if ( --((PyObject*)(ap2))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(ap2)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(ap2)))); } while (0); } while (0); > do { if ((ret) == ((void *)0)) ; else do { if ( --((PyObject*)(ret))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(ret)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(ret)))); } while (0); } while (0); > return ((void *)0); >} > > > > >static PyObject * >PyArray_Diagonal(PyArrayObject *self, int offset, int axis1, int axis2) >{ > int n = self->nd; > PyObject *new; > PyArray_Dims newaxes; > npy_intp dims[32]; > int i, pos; > > newaxes.ptr = dims; > if (n < 2) { > PyErr_SetString(PyExc_ValueError, > "array.ndim must be >= 2"); > return ((void *)0); > } > if (axis1 < 0) { > axis1 += n; > } > if (axis2 < 0) { > axis2 += n; > } > if ((axis1 == axis2) || (axis1 < 0) || (axis1 >= n) || > (axis2 < 0) || (axis2 >= n)) { > PyErr_Format(PyExc_ValueError, "axis1(=%d) and axis2(=%d) " "must be different and within range (nd=%d)", > > axis1, axis2, n); > return ((void *)0); > } > > newaxes.len = n; > > newaxes.ptr[n-2] = axis1; > newaxes.ptr[n-1] = axis2; > pos = 0; > for (i = 0; i < n; i++) { > if ((i==axis1) || (i==axis2)) { > continue; > } > newaxes.ptr[pos++] = i; > } > new = PyArray_Transpose(self, &newaxes); > if (new == ((void *)0)) { > return ((void *)0); > } > self = (PyArrayObject *)new; > > if (n == 2) { > PyObject *a = ((void *)0), *indices= ((void *)0), *ret = ((void *)0); > npy_intp n1, n2, start, stop, step, count; > npy_intp *dptr; > > n1 = self->dimensions[0]; > n2 = self->dimensions[1]; > step = n2 + 1; > if (offset < 0) { > start = -n2 * offset; > stop = (((n2)<(n1+offset))?(n2):(n1+offset))*(n2+1) - n2*offset; > } > else { > start = offset; > stop = (((n1)<(n2-offset))?(n1):(n2-offset))*(n2+1) + offset; > } > > > count = ((stop-start) / step) + (((stop-start) % step) != 0); > indices = PyArray_New(&PyArray_Type, 1, &count, > NPY_LONG, ((void *)0), ((void *)0), 0, 0, ((void *)0)); > if (indices == ((void *)0)) { > do { if ( --((PyObject*)(self))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(self)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(self)))); } while (0); > return ((void *)0); > } > dptr = (npy_intp *)((void *)(((PyArrayObject *)(indices))->data)); > for (n1 = start; n1 < stop; n1 += step) { > *dptr++ = n1; > } > a = PyArray_IterNew((PyObject *)self); > do { if ( --((PyObject*)(self))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(self)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(self)))); } while (0); > if (a == ((void *)0)) { > do { if ( --((PyObject*)(indices))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(indices)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(indices)))); } while (0); > return ((void *)0); > } > ret = PyObject_GetItem(a, indices); > do { if ( --((PyObject*)(a))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(a)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(a)))); } while (0); > do { if ( --((PyObject*)(indices))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(indices)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(indices)))); } while (0); > return ret; > } > > else { > > > > > > > PyObject *mydiagonal = ((void *)0), *ret = ((void *)0), *sel = ((void *)0); > npy_intp n1; > int res; > PyArray_Descr *typecode; > > new = ((void *)0); > > typecode = self->descr; > mydiagonal = PyList_New(0); > if (mydiagonal == ((void *)0)) { > do { if ( --((PyObject*)(self))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(self)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(self)))); } while (0); > return ((void *)0); > } > n1 = self->dimensions[0]; > for (i = 0; i < n1; i++) { > new = PyInt_FromLong((long) i); > sel = PyArray_EnsureAnyArray(PyObject_GetItem((PyObject *)self, new)); > do { if ( --((PyObject*)(new))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(new)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(new)))); } while (0); > if (sel == ((void *)0)) { > do { if ( --((PyObject*)(self))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(self)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(self)))); } while (0); > do { if ( --((PyObject*)(mydiagonal))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(mydiagonal)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(mydiagonal)))); } while (0); > return ((void *)0); > } > new = PyArray_Diagonal((PyArrayObject *)sel, offset, n-3, n-2); > do { if ( --((PyObject*)(sel))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(sel)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(sel)))); } while (0); > if (new == ((void *)0)) { > do { if ( --((PyObject*)(self))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(self)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(self)))); } while (0); > do { if ( --((PyObject*)(mydiagonal))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(mydiagonal)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(mydiagonal)))); } while (0); > return ((void *)0); > } > res = PyList_Append(mydiagonal, new); > do { if ( --((PyObject*)(new))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(new)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(new)))); } while (0); > if (res < 0) { > do { if ( --((PyObject*)(self))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(self)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(self)))); } while (0); > do { if ( --((PyObject*)(mydiagonal))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(mydiagonal)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(mydiagonal)))); } while (0); > return ((void *)0); > } > } > do { if ( --((PyObject*)(self))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(self)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(self)))); } while (0); > ( ((PyObject*)(typecode))->ob_refcnt++); > ret = PyArray_FromAny(mydiagonal, typecode, 0, 0, 0, ((void *)0)); > do { if ( --((PyObject*)(mydiagonal))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(mydiagonal)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(mydiagonal)))); } while (0); > return ret; > } >} > > > > >static PyObject * >PyArray_Compress(PyArrayObject *self, PyObject *condition, int axis, > PyArrayObject *out) >{ > PyArrayObject *cond; > PyObject *res, *ret; > > cond = (PyArrayObject *)PyArray_FromAny(condition, ((void *)0), 0, 0, 0, ((void *)0)); > if (cond == ((void *)0)) { > return ((void *)0); > } > if (cond->nd != 1) { > do { if ( --((PyObject*)(cond))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(cond)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(cond)))); } while (0); > PyErr_SetString(PyExc_ValueError, > "condition must be 1-d array"); > return ((void *)0); > } > > res = PyArray_Nonzero(cond); > do { if ( --((PyObject*)(cond))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(cond)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(cond)))); } while (0); > if (res == ((void *)0)) { > return res; > } > ret = PyArray_TakeFrom(self, (((PyTupleObject *)(res))->ob_item[0]), axis, > out, NPY_RAISE); > do { if ( --((PyObject*)(res))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(res)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(res)))); } while (0); > return ret; >} > > > > > > >static npy_intp >PyArray_CountNonzero(PyArrayObject *self) >{ > PyArray_NonzeroFunc *nonzero = self->descr->f->nonzero; > char *data; > npy_intp stride, count; > npy_intp nonzero_count = 0; > > NpyIter *iter; > NpyIter_IterNextFunc *iternext; > char **dataptr; > npy_intp *strideptr, *innersizeptr; > > > if (( (((PyArrayObject *)(self))->nd) <= 1 || ((((PyArrayObject *)(self))->flags & (0x0001)) == (0x0001)) || ((((PyArrayObject *)(self))->flags & (0x0002)) == (0x0002)) )) { > count = PyArray_MultiplyList((((PyArrayObject *)(self))->dimensions), (((PyArrayObject *)(self))->nd)), data = (((PyArrayObject *)(self))->data), stride = (((((PyArrayObject *)(self))->nd) == 0) ? 0 : (((((PyArrayObject *)(self))->flags & (0x0002)) == (0x0002)) ? ((((PyArrayObject *)(self))->strides)[0]) : ((((PyArrayObject *)(self))->strides)[(((PyArrayObject *)(self))->nd)-1]))); > > while (count--) { > if (nonzero(data, self)) { > ++nonzero_count; > } > data += stride; > } > > return nonzero_count; > } > > > > > > if (PyArray_MultiplyList((((PyArrayObject *)(self))->dimensions), (((PyArrayObject *)(self))->nd)) == 0) { > return 0; > } > > > iter = NpyIter_New(self, 0x00020000| > 0x00000008| > 0x00000020, > NPY_KEEPORDER, NPY_NO_CASTING, > ((void *)0)); > if (iter == ((void *)0)) { > return -1; > } > > > iternext = NpyIter_GetIterNext(iter, ((void *)0)); > if (iternext == ((void *)0)) { > NpyIter_Deallocate(iter); > return -1; > } > dataptr = NpyIter_GetDataPtrArray(iter); > strideptr = NpyIter_GetInnerStrideArray(iter); > innersizeptr = NpyIter_GetInnerLoopSizePtr(iter); > > > do { > data = *dataptr; > stride = *strideptr; > count = *innersizeptr; > > while (count--) { > if (nonzero(data, self)) { > ++nonzero_count; > } > data += stride; > } > > } while(iternext(iter)); > > NpyIter_Deallocate(iter); > > return nonzero_count; >} > > > > > > >static PyObject * >PyArray_Nonzero(PyArrayObject *self) >{ > int i, ndim = (((PyArrayObject *)(self))->nd); > PyArrayObject *ret = ((void *)0); > PyObject *ret_tuple; > npy_intp ret_dims[2]; > PyArray_NonzeroFunc *nonzero = self->descr->f->nonzero; > char *data; > npy_intp stride, count; > npy_intp nonzero_count = PyArray_CountNonzero(self); > npy_intp *multi_index; > > NpyIter *iter; > NpyIter_IterNextFunc *iternext; > NpyIter_GetMultiIndexFunc *get_multi_index; > char **dataptr; > > > ret_dims[0] = nonzero_count; > ret_dims[1] = (ndim == 0) ? 1 : ndim; > ret = (PyArrayObject *)PyArray_New(&PyArray_Type, 2, ret_dims, > NPY_LONG, ((void *)0), ((void *)0), 0, 0, > ((void *)0)); > if (ret == ((void *)0)) { > return ((void *)0); > } > > > if (ndim <= 1) { > npy_intp j; > > multi_index = (npy_intp *)((void *)(((PyArrayObject *)(ret))->data)); > data = (((PyArrayObject *)(self))->data); > stride = (ndim == 0) ? 0 : ((((PyArrayObject *)(self))->strides)[0]); > count = (ndim == 0) ? 1 : ((((PyArrayObject *)(self))->dimensions)[0]); > > for (j = 0; j < count; ++j) { > if (nonzero(data, self)) { > *multi_index++ = j; > } > data += stride; > } > > goto finish; > } > > > iter = NpyIter_New(self, 0x00020000| > 0x00000004| > 0x00000040| > 0x00000020, > NPY_CORDER, NPY_NO_CASTING, > ((void *)0)); > > if (iter == ((void *)0)) { > do { if ( --((PyObject*)(ret))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(ret)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(ret)))); } while (0); > return ((void *)0); > } > > if (NpyIter_GetIterSize(iter) != 0) { > > iternext = NpyIter_GetIterNext(iter, ((void *)0)); > if (iternext == ((void *)0)) { > NpyIter_Deallocate(iter); > do { if ( --((PyObject*)(ret))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(ret)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(ret)))); } while (0); > return ((void *)0); > } > get_multi_index = NpyIter_GetGetMultiIndex(iter, ((void *)0)); > if (get_multi_index == ((void *)0)) { > NpyIter_Deallocate(iter); > do { if ( --((PyObject*)(ret))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(ret)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(ret)))); } while (0); > return ((void *)0); > } > dataptr = NpyIter_GetDataPtrArray(iter); > > multi_index = (npy_intp *)((void *)(((PyArrayObject *)(ret))->data)); > > > do { > if (nonzero(*dataptr, self)) { > get_multi_index(iter, multi_index); > multi_index += ndim; > } > } while(iternext(iter)); > } > > NpyIter_Deallocate(iter); > >finish: > > if (ndim == 0) { > ndim = 1; > } > > ret_tuple = PyTuple_New(ndim); > if (ret_tuple == ((void *)0)) { > do { if ( --((PyObject*)(ret))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(ret)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(ret)))); } while (0); > return ((void *)0); > } > > > if (ndim == 1) { > > ret->nd = 1; > (((PyTupleObject *)(ret_tuple))->ob_item[0] = (PyObject *)ret); > } > else { > for (i = 0; i < ndim; ++i) { > PyArrayObject *view; > stride = ndim*8; > > view = (PyArrayObject *)PyArray_New((((PyObject*)(self))->ob_type), 1, > &nonzero_count, > NPY_LONG, &stride, > (((PyArrayObject *)(ret))->data) + i*8, > 0, 0, (PyObject *)self); > if (view == ((void *)0)) { > do { if ( --((PyObject*)(ret))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(ret)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(ret)))); } while (0); > do { if ( --((PyObject*)(ret_tuple))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(ret_tuple)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(ret_tuple)))); } while (0); > return ((void *)0); > } > ( ((PyObject*)(ret))->ob_refcnt++); > view->base = (PyObject *)ret; > (((PyTupleObject *)(ret_tuple))->ob_item[i] = (PyObject *)view); > } > > do { if ( --((PyObject*)(ret))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(ret)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(ret)))); } while (0); > } > > return ret_tuple; >} ># 32 "numpy/core/src/multiarray/multiarraymodule_onefile.c" 2 ># 1 "numpy/core/src/multiarray/calculation.c" 1 ># 22 "numpy/core/src/multiarray/calculation.c" >static double >power_of_ten(int n) >{ > static const double p10[] = {1e0, 1e1, 1e2, 1e3, 1e4, 1e5, 1e6, 1e7, 1e8}; > double ret; > if (n < 9) { > ret = p10[n]; > } > else { > ret = 1e9; > while (n-- > 9) { > ret *= 10.; > } > } > return ret; >} > > > > >static PyObject * >PyArray_ArgMax(PyArrayObject *op, int axis, PyArrayObject *out) >{ > PyArrayObject *ap = ((void *)0), *rp = ((void *)0); > PyArray_ArgFunc* arg_func; > char *ip; > npy_intp *rptr; > npy_intp i, n, m; > int elsize; > int copyret = 0; > PyThreadState *_save=((void *)0);; > > if ((ap=(PyArrayObject *)PyArray_CheckAxis(op, &axis, 0)) == ((void *)0)) { > return ((void *)0); > } > > > > > if (axis != ap->nd-1) { > PyArray_Dims newaxes; > npy_intp dims[32]; > int i; > > newaxes.ptr = dims; > newaxes.len = ap->nd; > for (i = 0; i < axis; i++) dims[i] = i; > for (i = axis; i < ap->nd - 1; i++) dims[i] = i + 1; > dims[ap->nd - 1] = axis; > op = (PyArrayObject *)PyArray_Transpose(ap, &newaxes); > do { if ( --((PyObject*)(ap))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(ap)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(ap)))); } while (0); > if (op == ((void *)0)) { > return ((void *)0); > } > } > else { > op = ap; > } > > > ap = (PyArrayObject *) > PyArray_FromAny((PyObject *)op, PyArray_DescrFromType(op->descr->type_num), 1, 0, (0x0001 | (0x0100 | 0x0400)), ((void *)0)); > > do { if ( --((PyObject*)(op))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(op)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(op)))); } while (0); > if (ap == ((void *)0)) { > return ((void *)0); > } > arg_func = ap->descr->f->argmax; > if (arg_func == ((void *)0)) { > PyErr_SetString(PyExc_TypeError, "data type not ordered"); > goto fail; > } > elsize = ap->descr->elsize; > m = ap->dimensions[ap->nd-1]; > if (m == 0) { > PyErr_SetString(PyExc_ValueError, > "attempt to get argmax/argmin " "of an empty sequence"); > > goto fail; > } > > if (!out) { > rp = (PyArrayObject *)PyArray_New((((PyObject*)(ap))->ob_type), ap->nd-1, > ap->dimensions, NPY_LONG, > ((void *)0), ((void *)0), 0, 0, > (PyObject *)ap); > if (rp == ((void *)0)) { > goto fail; > } > } > else { > if (PyArray_MultiplyList((((PyArrayObject *)(out))->dimensions), (((PyArrayObject *)(out))->nd)) != > PyArray_MultiplyList(ap->dimensions, ap->nd - 1)) { > PyErr_SetString(PyExc_TypeError, > "invalid shape for output array."); > } > rp = (PyArrayObject *) PyArray_FromArray(out, > > PyArray_DescrFromType(NPY_LONG), > (0x0001 | (0x0100 | 0x0400)) | 0x1000); > if (rp == ((void *)0)) { > goto fail; > } > if (rp != out) { > copyret = 1; > } > } > > do {if (!((((ap->descr)->flags & (0x10)) == (0x10)))) _save = PyEval_SaveThread();;} while (0);; > n = PyArray_MultiplyList((((PyArrayObject *)(ap))->dimensions), (((PyArrayObject *)(ap))->nd))/m; > rptr = (npy_intp *)rp->data; > for (ip = ap->data, i = 0; i < n; i++, ip += elsize*m) { > arg_func(ip, m, rptr, ap); > rptr += 1; > } > do {if (!((((ap->descr)->flags & (0x10)) == (0x10)))) do {if (_save) PyEval_RestoreThread(_save);} while (0);; } while (0);; > > do { if ( --((PyObject*)(ap))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(ap)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(ap)))); } while (0); > if (copyret) { > PyArrayObject *obj; > obj = (PyArrayObject *)rp->base; > ( ((PyObject*)(obj))->ob_refcnt++); > do { if ( --((PyObject*)(rp))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(rp)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(rp)))); } while (0); > rp = obj; > } > return (PyObject *)rp; > > fail: > do { if ( --((PyObject*)(ap))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(ap)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(ap)))); } while (0); > do { if ((rp) == ((void *)0)) ; else do { if ( --((PyObject*)(rp))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(rp)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(rp)))); } while (0); } while (0); > return ((void *)0); >} > > > > >static PyObject * >PyArray_ArgMin(PyArrayObject *ap, int axis, PyArrayObject *out) >{ > PyObject *obj, *new, *ret; > > if (((((((PyArrayObject *)(ap))->descr->type_num)) >=NPY_STRING) && (((((PyArrayObject *)(ap))->descr->type_num)) <=NPY_VOID))) { > PyErr_SetString(PyExc_TypeError, > "argmax is unsupported for this type"); > return ((void *)0); > } > else if (((((((PyArrayObject *)(ap))->descr->type_num)) == NPY_UBYTE) || (((((PyArrayObject *)(ap))->descr->type_num)) == NPY_USHORT) || (((((PyArrayObject *)(ap))->descr->type_num)) == NPY_UINT) || (((((PyArrayObject *)(ap))->descr->type_num)) == NPY_ULONG) || (((((PyArrayObject *)(ap))->descr->type_num)) == NPY_ULONGLONG))) { > obj = PyInt_FromLong((long) -1); > } > else if ((((PyArrayObject *)(ap))->descr->type_num) == NPY_BOOL) { > obj = PyInt_FromLong((long) 1); > } > else { > obj = PyInt_FromLong((long) 0); > } > new = PyArray_EnsureAnyArray(PyNumber_Subtract(obj, (PyObject *)ap)); > do { if ( --((PyObject*)(obj))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(obj)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(obj)))); } while (0); > if (new == ((void *)0)) { > return ((void *)0); > } > ret = PyArray_ArgMax((PyArrayObject *)new, axis, out); > do { if ( --((PyObject*)(new))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(new)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(new)))); } while (0); > return ret; >} > > > > >static PyObject * >PyArray_Max(PyArrayObject *ap, int axis, PyArrayObject *out) >{ > PyArrayObject *arr; > PyObject *ret; > > if ((arr=(PyArrayObject *)PyArray_CheckAxis(ap, &axis, 0)) == ((void *)0)) { > return ((void *)0); > } > ret = PyArray_GenericReduceFunction(arr, n_ops.maximum, axis, > arr->descr->type_num, out); > do { if ( --((PyObject*)(arr))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(arr)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(arr)))); } while (0); > return ret; >} > > > > >static PyObject * >PyArray_Min(PyArrayObject *ap, int axis, PyArrayObject *out) >{ > PyArrayObject *arr; > PyObject *ret; > > if ((arr=(PyArrayObject *)PyArray_CheckAxis(ap, &axis, 0)) == ((void *)0)) { > return ((void *)0); > } > ret = PyArray_GenericReduceFunction(arr, n_ops.minimum, axis, > arr->descr->type_num, out); > do { if ( --((PyObject*)(arr))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(arr)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(arr)))); } while (0); > return ret; >} > > > > >static PyObject * >PyArray_Ptp(PyArrayObject *ap, int axis, PyArrayObject *out) >{ > PyArrayObject *arr; > PyObject *ret; > PyObject *obj1 = ((void *)0), *obj2 = ((void *)0); > > if ((arr=(PyArrayObject *)PyArray_CheckAxis(ap, &axis, 0)) == ((void *)0)) { > return ((void *)0); > } > obj1 = PyArray_Max(arr, axis, out); > if (obj1 == ((void *)0)) { > goto fail; > } > obj2 = PyArray_Min(arr, axis, ((void *)0)); > if (obj2 == ((void *)0)) { > goto fail; > } > do { if ( --((PyObject*)(arr))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(arr)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(arr)))); } while (0); > if (out) { > ret = _PyObject_CallFunction_SizeT(n_ops.subtract, "OOO", out, obj2, out); > } > else { > ret = PyNumber_Subtract(obj1, obj2); > } > do { if ( --((PyObject*)(obj1))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(obj1)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(obj1)))); } while (0); > do { if ( --((PyObject*)(obj2))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(obj2)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(obj2)))); } while (0); > return ret; > > fail: > do { if ((arr) == ((void *)0)) ; else do { if ( --((PyObject*)(arr))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(arr)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(arr)))); } while (0); } while (0); > do { if ((obj1) == ((void *)0)) ; else do { if ( --((PyObject*)(obj1))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(obj1)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(obj1)))); } while (0); } while (0); > do { if ((obj2) == ((void *)0)) ; else do { if ( --((PyObject*)(obj2))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(obj2)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(obj2)))); } while (0); } while (0); > return ((void *)0); >} > > > > > > > >static PyObject * >PyArray_Std(PyArrayObject *self, int axis, int rtype, PyArrayObject *out, > int variance) >{ > return __New_PyArray_Std(self, axis, rtype, out, variance, 0); >} > >static PyObject * >__New_PyArray_Std(PyArrayObject *self, int axis, int rtype, PyArrayObject *out, > int variance, int num) >{ > PyObject *obj1 = ((void *)0), *obj2 = ((void *)0), *obj3 = ((void *)0), *new = ((void *)0); > PyObject *ret = ((void *)0), *newshape = ((void *)0); > int i, n; > npy_intp val; > > if ((new = PyArray_CheckAxis(self, &axis, 0)) == ((void *)0)) { > return ((void *)0); > } > > obj1 = PyArray_EnsureAnyArray(PyArray_Mean((PyArrayObject *)new, axis, rtype, ((void *)0))); > if (obj1 == ((void *)0)) { > do { if ( --((PyObject*)(new))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(new)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(new)))); } while (0); > return ((void *)0); > } > n = (((PyArrayObject *)(new))->nd); > newshape = PyTuple_New(n); > if (newshape == ((void *)0)) { > do { if ( --((PyObject*)(obj1))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(obj1)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(obj1)))); } while (0); > do { if ( --((PyObject*)(new))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(new)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(new)))); } while (0); > return ((void *)0); > } > for (i = 0; i < n; i++) { > if (i == axis) { > val = 1; > } > else { > val = ((((PyArrayObject *)(new))->dimensions)[i]); > } > (((PyTupleObject *)(newshape))->ob_item[i] = PyInt_FromLong((long)val)); > } > obj2 = PyArray_Reshape((PyArrayObject *)obj1, newshape); > do { if ( --((PyObject*)(obj1))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(obj1)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(obj1)))); } while (0); > do { if ( --((PyObject*)(newshape))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(newshape)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(newshape)))); } while (0); > if (obj2 == ((void *)0)) { > do { if ( --((PyObject*)(new))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(new)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(new)))); } while (0); > return ((void *)0); > } > > > obj1 = PyArray_EnsureAnyArray(PyNumber_Subtract((PyObject *)new, obj2)); > do { if ( --((PyObject*)(obj2))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(obj2)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(obj2)))); } while (0); > if (obj1 == ((void *)0)) { > do { if ( --((PyObject*)(new))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(new)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(new)))); } while (0); > return ((void *)0); > } > > if (((((((PyArrayObject *)(obj1))->descr->type_num)) >= NPY_CFLOAT) && (((((PyArrayObject *)(obj1))->descr->type_num)) <= NPY_CLONGDOUBLE))) { > obj3 = PyArray_Conjugate((PyArrayObject *)obj1, ((void *)0)); > } > else { > obj3 = obj1; > ( ((PyObject*)(obj1))->ob_refcnt++); > } > if (obj3 == ((void *)0)) { > do { if ( --((PyObject*)(new))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(new)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(new)))); } while (0); > return ((void *)0); > } > obj2 = PyArray_EnsureAnyArray (PyArray_GenericBinaryFunction((PyArrayObject *)obj1, obj3, n_ops.multiply)); > > do { if ( --((PyObject*)(obj1))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(obj1)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(obj1)))); } while (0); > do { if ( --((PyObject*)(obj3))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(obj3)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(obj3)))); } while (0); > if (obj2 == ((void *)0)) { > do { if ( --((PyObject*)(new))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(new)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(new)))); } while (0); > return ((void *)0); > } > if (((((((PyArrayObject *)(obj2))->descr->type_num)) >= NPY_CFLOAT) && (((((PyArrayObject *)(obj2))->descr->type_num)) <= NPY_CLONGDOUBLE))) { > obj3 = PyObject_GetAttrString(obj2, "real"); > switch(rtype) { > case NPY_CDOUBLE: > rtype = NPY_DOUBLE; > break; > case NPY_CFLOAT: > rtype = NPY_FLOAT; > break; > case NPY_CLONGDOUBLE: > rtype = NPY_LONGDOUBLE; > break; > } > } > else { > obj3 = obj2; > ( ((PyObject*)(obj2))->ob_refcnt++); > } > if (obj3 == ((void *)0)) { > do { if ( --((PyObject*)(new))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(new)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(new)))); } while (0); > return ((void *)0); > } > > obj1 = PyArray_GenericReduceFunction((PyArrayObject *)obj3, n_ops.add, > axis, rtype, ((void *)0)); > do { if ( --((PyObject*)(obj3))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(obj3)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(obj3)))); } while (0); > do { if ( --((PyObject*)(obj2))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(obj2)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(obj2)))); } while (0); > if (obj1 == ((void *)0)) { > do { if ( --((PyObject*)(new))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(new)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(new)))); } while (0); > return ((void *)0); > } > n = ((((PyArrayObject *)(new))->dimensions)[axis]); > do { if ( --((PyObject*)(new))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(new)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(new)))); } while (0); > n = (n-num); > if (n == 0) { > n = 1; > } > obj2 = PyFloat_FromDouble(1.0/((double )n)); > if (obj2 == ((void *)0)) { > do { if ( --((PyObject*)(obj1))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(obj1)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(obj1)))); } while (0); > return ((void *)0); > } > ret = PyNumber_Multiply(obj1, obj2); > do { if ( --((PyObject*)(obj1))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(obj1)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(obj1)))); } while (0); > do { if ( --((PyObject*)(obj2))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(obj2)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(obj2)))); } while (0); > > if (!variance) { > obj1 = PyArray_EnsureAnyArray(ret); > > ret = PyArray_GenericUnaryFunction((PyArrayObject *)obj1, n_ops.sqrt); > do { if ( --((PyObject*)(obj1))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(obj1)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(obj1)))); } while (0); > } > if (ret == ((void *)0)) { > return ((void *)0); > } > if ((((PyObject*)(self))->ob_type == &PyArray_Type)) { > goto finish; > } > if (((((PyObject*)(self))->ob_type) == (&PyArray_Type) || PyType_IsSubtype((((PyObject*)(self))->ob_type), (&PyArray_Type))) && (((PyObject*)(self))->ob_type) == (((PyObject*)(ret))->ob_type)) { > goto finish; > } > obj1 = PyArray_EnsureArray(ret); > if (obj1 == ((void *)0)) { > return ((void *)0); > } > ret = PyArray_View((PyArrayObject *)obj1, ((void *)0), (((PyObject*)(self))->ob_type)); > do { if ( --((PyObject*)(obj1))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(obj1)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(obj1)))); } while (0); > >finish: > if (out) { > if (PyArray_CopyAnyInto(out, (PyArrayObject *)ret) < 0) { > do { if ( --((PyObject*)(ret))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(ret)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(ret)))); } while (0); > return ((void *)0); > } > do { if ( --((PyObject*)(ret))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(ret)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(ret)))); } while (0); > ( ((PyObject*)(out))->ob_refcnt++); > return (PyObject *)out; > } > return ret; >} > > > > > >static PyObject * >PyArray_Sum(PyArrayObject *self, int axis, int rtype, PyArrayObject *out) >{ > PyObject *new, *ret; > > if ((new = PyArray_CheckAxis(self, &axis, 0)) == ((void *)0)) { > return ((void *)0); > } > ret = PyArray_GenericReduceFunction((PyArrayObject *)new, n_ops.add, axis, > rtype, out); > do { if ( --((PyObject*)(new))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(new)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(new)))); } while (0); > return ret; >} > > > > >static PyObject * >PyArray_Prod(PyArrayObject *self, int axis, int rtype, PyArrayObject *out) >{ > PyObject *new, *ret; > > if ((new = PyArray_CheckAxis(self, &axis, 0)) == ((void *)0)) { > return ((void *)0); > } > ret = PyArray_GenericReduceFunction((PyArrayObject *)new, n_ops.multiply, axis, > rtype, out); > do { if ( --((PyObject*)(new))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(new)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(new)))); } while (0); > return ret; >} > > > > >static PyObject * >PyArray_CumSum(PyArrayObject *self, int axis, int rtype, PyArrayObject *out) >{ > PyObject *new, *ret; > > if ((new = PyArray_CheckAxis(self, &axis, 0)) == ((void *)0)) { > return ((void *)0); > } > ret = PyArray_GenericAccumulateFunction((PyArrayObject *)new, n_ops.add, axis, > rtype, out); > do { if ( --((PyObject*)(new))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(new)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(new)))); } while (0); > return ret; >} > > > > >static PyObject * >PyArray_CumProd(PyArrayObject *self, int axis, int rtype, PyArrayObject *out) >{ > PyObject *new, *ret; > > if ((new = PyArray_CheckAxis(self, &axis, 0)) == ((void *)0)) { > return ((void *)0); > } > > ret = PyArray_GenericAccumulateFunction((PyArrayObject *)new, > n_ops.multiply, axis, > rtype, out); > do { if ( --((PyObject*)(new))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(new)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(new)))); } while (0); > return ret; >} > > > > >static PyObject * >PyArray_Round(PyArrayObject *a, int decimals, PyArrayObject *out) >{ > PyObject *f, *ret = ((void *)0), *tmp, *op1, *op2; > int ret_int=0; > PyArray_Descr *my_descr; > if (out && (PyArray_MultiplyList((((PyArrayObject *)(out))->dimensions), (((PyArrayObject *)(out))->nd)) != PyArray_MultiplyList((((PyArrayObject *)(a))->dimensions), (((PyArrayObject *)(a))->nd)))) { > PyErr_SetString(PyExc_ValueError, > "invalid output shape"); > return ((void *)0); > } > if (((((((PyArrayObject *)(a))->descr->type_num)) >= NPY_CFLOAT) && (((((PyArrayObject *)(a))->descr->type_num)) <= NPY_CLONGDOUBLE))) { > PyObject *part; > PyObject *round_part; > PyObject *new; > int res; > > if (out) { > new = (PyObject *)out; > ( ((PyObject*)(new))->ob_refcnt++); > } > else { > new = PyArray_NewCopy(a, NPY_CORDER); > if (new == ((void *)0)) { > return ((void *)0); > } > } > > > part = PyObject_GetAttrString(new, "real"); > if (part == ((void *)0)) { > do { if ( --((PyObject*)(new))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(new)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(new)))); } while (0); > return ((void *)0); > } > part = PyArray_EnsureAnyArray(part); > round_part = PyArray_Round((PyArrayObject *)part, > decimals, ((void *)0)); > do { if ( --((PyObject*)(part))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(part)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(part)))); } while (0); > if (round_part == ((void *)0)) { > do { if ( --((PyObject*)(new))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(new)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(new)))); } while (0); > return ((void *)0); > } > res = PyObject_SetAttrString(new, "real", round_part); > do { if ( --((PyObject*)(round_part))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(round_part)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(round_part)))); } while (0); > if (res < 0) { > do { if ( --((PyObject*)(new))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(new)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(new)))); } while (0); > return ((void *)0); > } > > > part = PyObject_GetAttrString(new, "imag"); > if (part == ((void *)0)) { > do { if ( --((PyObject*)(new))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(new)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(new)))); } while (0); > return ((void *)0); > } > part = PyArray_EnsureAnyArray(part); > round_part = PyArray_Round((PyArrayObject *)part, > decimals, ((void *)0)); > do { if ( --((PyObject*)(part))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(part)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(part)))); } while (0); > if (round_part == ((void *)0)) { > do { if ( --((PyObject*)(new))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(new)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(new)))); } while (0); > return ((void *)0); > } > res = PyObject_SetAttrString(new, "imag", round_part); > do { if ( --((PyObject*)(round_part))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(round_part)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(round_part)))); } while (0); > if (res < 0) { > do { if ( --((PyObject*)(new))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(new)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(new)))); } while (0); > return ((void *)0); > } > return new; > } > > if (decimals >= 0) { > if (((((((PyArrayObject *)(a))->descr->type_num)) >= NPY_BYTE) && (((((PyArrayObject *)(a))->descr->type_num)) <= NPY_ULONGLONG))) { > if (out) { > if (PyArray_CopyAnyInto(out, a) < 0) { > return ((void *)0); > } > ( ((PyObject*)(out))->ob_refcnt++); > return (PyObject *)out; > } > else { > ( ((PyObject*)(a))->ob_refcnt++); > return (PyObject *)a; > } > } > if (decimals == 0) { > if (out) { > return _PyObject_CallFunction_SizeT(n_ops.rint, "OO", a, out); > } > return _PyObject_CallFunction_SizeT(n_ops.rint, "O", a); > } > op1 = n_ops.multiply; > op2 = n_ops.true_divide; > } > else { > op1 = n_ops.true_divide; > op2 = n_ops.multiply; > decimals = -decimals; > } > if (!out) { > if (((((((PyArrayObject *)(a))->descr->type_num)) >= NPY_BYTE) && (((((PyArrayObject *)(a))->descr->type_num)) <= NPY_ULONGLONG))) { > ret_int = 1; > my_descr = PyArray_DescrFromType(NPY_DOUBLE); > } > else { > ( ((PyObject*)(a->descr))->ob_refcnt++); > my_descr = a->descr; > } > out = (PyArrayObject *)PyArray_Empty(a->nd, a->dimensions, > my_descr, > (((((PyArrayObject *)(a))->flags & (0x0002)) == (0x0002)) && ((((PyArrayObject *)(a))->nd) > 1))); > if (out == ((void *)0)) { > return ((void *)0); > } > } > else { > ( ((PyObject*)(out))->ob_refcnt++); > } > f = PyFloat_FromDouble(power_of_ten(decimals)); > if (f == ((void *)0)) { > return ((void *)0); > } > ret = _PyObject_CallFunction_SizeT(op1, "OOO", a, f, out); > if (ret == ((void *)0)) { > goto finish; > } > tmp = _PyObject_CallFunction_SizeT(n_ops.rint, "OO", ret, ret); > if (tmp == ((void *)0)) { > do { if ( --((PyObject*)(ret))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(ret)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(ret)))); } while (0); > ret = ((void *)0); > goto finish; > } > do { if ( --((PyObject*)(tmp))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(tmp)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(tmp)))); } while (0); > tmp = _PyObject_CallFunction_SizeT(op2, "OOO", ret, f, ret); > if (tmp == ((void *)0)) { > do { if ( --((PyObject*)(ret))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(ret)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(ret)))); } while (0); > ret = ((void *)0); > goto finish; > } > do { if ( --((PyObject*)(tmp))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(tmp)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(tmp)))); } while (0); > > finish: > do { if ( --((PyObject*)(f))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(f)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(f)))); } while (0); > do { if ( --((PyObject*)(out))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(out)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(out)))); } while (0); > if (ret_int) { > ( ((PyObject*)(a->descr))->ob_refcnt++); > tmp = PyArray_CastToType((PyArrayObject *)ret, > a->descr, (((((PyArrayObject *)(a))->flags & (0x0002)) == (0x0002)) && ((((PyArrayObject *)(a))->nd) > 1))); > do { if ( --((PyObject*)(ret))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(ret)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(ret)))); } while (0); > return tmp; > } > return ret; >} > > > > > >static PyObject * >PyArray_Mean(PyArrayObject *self, int axis, int rtype, PyArrayObject *out) >{ > PyObject *obj1 = ((void *)0), *obj2 = ((void *)0); > PyObject *new, *ret; > > if ((new = PyArray_CheckAxis(self, &axis, 0)) == ((void *)0)) { > return ((void *)0); > } > obj1 = PyArray_GenericReduceFunction((PyArrayObject *)new, n_ops.add, axis, > rtype, out); > obj2 = PyFloat_FromDouble((double) ((((PyArrayObject *)(new))->dimensions)[axis])); > do { if ( --((PyObject*)(new))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(new)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(new)))); } while (0); > if (obj1 == ((void *)0) || obj2 == ((void *)0)) { > do { if ((obj1) == ((void *)0)) ; else do { if ( --((PyObject*)(obj1))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(obj1)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(obj1)))); } while (0); } while (0); > do { if ((obj2) == ((void *)0)) ; else do { if ( --((PyObject*)(obj2))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(obj2)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(obj2)))); } while (0); } while (0); > return ((void *)0); > } > if (!out) { > > > > ret = PyNumber_Divide(obj1, obj2); > > } > else { > ret = _PyObject_CallFunction_SizeT(n_ops.divide, "OOO", out, obj2, out); > } > do { if ( --((PyObject*)(obj1))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(obj1)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(obj1)))); } while (0); > do { if ( --((PyObject*)(obj2))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(obj2)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(obj2)))); } while (0); > return ret; >} > > > > >static PyObject * >PyArray_Any(PyArrayObject *self, int axis, PyArrayObject *out) >{ > PyObject *new, *ret; > > if ((new = PyArray_CheckAxis(self, &axis, 0)) == ((void *)0)) { > return ((void *)0); > } > ret = PyArray_GenericReduceFunction((PyArrayObject *)new, > n_ops.logical_or, axis, > NPY_BOOL, out); > do { if ( --((PyObject*)(new))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(new)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(new)))); } while (0); > return ret; >} > > > > >static PyObject * >PyArray_All(PyArrayObject *self, int axis, PyArrayObject *out) >{ > PyObject *new, *ret; > > if ((new = PyArray_CheckAxis(self, &axis, 0)) == ((void *)0)) { > return ((void *)0); > } > ret = PyArray_GenericReduceFunction((PyArrayObject *)new, > n_ops.logical_and, axis, > NPY_BOOL, out); > do { if ( --((PyObject*)(new))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(new)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(new)))); } while (0); > return ret; >} > > >static PyObject * >_GenericBinaryOutFunction(PyArrayObject *m1, PyObject *m2, PyArrayObject *out, > PyObject *op) >{ > if (out == ((void *)0)) { > return _PyObject_CallFunction_SizeT(op, "OO", m1, m2); > } > else { > return _PyObject_CallFunction_SizeT(op, "OOO", m1, m2, out); > } >} > >static PyObject * >_slow_array_clip(PyArrayObject *self, PyObject *min, PyObject *max, PyArrayObject *out) >{ > PyObject *res1=((void *)0), *res2=((void *)0); > > if (max != ((void *)0)) { > res1 = _GenericBinaryOutFunction(self, max, out, n_ops.minimum); > if (res1 == ((void *)0)) { > return ((void *)0); > } > } > else { > res1 = (PyObject *)self; > ( ((PyObject*)(res1))->ob_refcnt++); > } > > if (min != ((void *)0)) { > res2 = _GenericBinaryOutFunction((PyArrayObject *)res1, > min, out, n_ops.maximum); > if (res2 == ((void *)0)) { > do { if ((res1) == ((void *)0)) ; else do { if ( --((PyObject*)(res1))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(res1)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(res1)))); } while (0); } while (0); > return ((void *)0); > } > } > else { > res2 = res1; > ( ((PyObject*)(res2))->ob_refcnt++); > } > do { if ( --((PyObject*)(res1))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(res1)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(res1)))); } while (0); > return res2; >} > > > > >static PyObject * >PyArray_Clip(PyArrayObject *self, PyObject *min, PyObject *max, PyArrayObject *out) >{ > PyArray_FastClipFunc *func; > int outgood = 0, ingood = 0; > PyArrayObject *maxa = ((void *)0); > PyArrayObject *mina = ((void *)0); > PyArrayObject *newout = ((void *)0), *newin = ((void *)0); > PyArray_Descr *indescr, *newdescr; > char *max_data, *min_data; > PyObject *zero; > > if ((max == ((void *)0)) && (min == ((void *)0))) { > PyErr_SetString(PyExc_ValueError, "array_clip: must set either max " "or min"); > > return ((void *)0); > } > > func = self->descr->f->fastclip; > if (func == ((void *)0) || (min != ((void *)0) && !(((((((min)->ob_type)->tp_flags & ((1L<<23))) != 0) || ((((PyObject*)(min))->ob_type) == (&PyFloat_Type) || PyType_IsSubtype((((PyObject*)(min))->ob_type), (&PyFloat_Type))) || ((((PyObject*)(min))->ob_type) == (&PyComplex_Type) || PyType_IsSubtype((((PyObject*)(min))->ob_type), (&PyComplex_Type))) || ((((((PyObject*)(min))->ob_type))->tp_flags & ((1L<<24))) != 0) || ((((PyObject*)(min))->ob_type) == &PyBool_Type)) || ((((((PyObject*)(min))->ob_type))->tp_flags & ((1L<<27))) != 0) || ((((((PyObject*)(min))->ob_type))->tp_flags & ((1L<<28))) != 0)) || ((((((PyObject*)(min))->ob_type) == (&PyGenericArrType_Type) || PyType_IsSubtype((((PyObject*)(min))->ob_type), (&PyGenericArrType_Type)))) || (((((PyObject*)(min))->ob_type) == (&PyArray_Type) || PyType_IsSubtype((((PyObject*)(min))->ob_type), (&PyArray_Type))) && ((((PyArrayObject *)(min))->nd) == 0))))) || > (max != ((void *)0) && !(((((((max)->ob_type)->tp_flags & ((1L<<23))) != 0) || ((((PyObject*)(max))->ob_type) == (&PyFloat_Type) || PyType_IsSubtype((((PyObject*)(max))->ob_type), (&PyFloat_Type))) || ((((PyObject*)(max))->ob_type) == (&PyComplex_Type) || PyType_IsSubtype((((PyObject*)(max))->ob_type), (&PyComplex_Type))) || ((((((PyObject*)(max))->ob_type))->tp_flags & ((1L<<24))) != 0) || ((((PyObject*)(max))->ob_type) == &PyBool_Type)) || ((((((PyObject*)(max))->ob_type))->tp_flags & ((1L<<27))) != 0) || ((((((PyObject*)(max))->ob_type))->tp_flags & ((1L<<28))) != 0)) || ((((((PyObject*)(max))->ob_type) == (&PyGenericArrType_Type) || PyType_IsSubtype((((PyObject*)(max))->ob_type), (&PyGenericArrType_Type)))) || (((((PyObject*)(max))->ob_type) == (&PyArray_Type) || PyType_IsSubtype((((PyObject*)(max))->ob_type), (&PyArray_Type))) && ((((PyArrayObject *)(max))->nd) == 0)))))) { > return _slow_array_clip(self, min, max, out); > } > > > > indescr = ((void *)0); > if (min != ((void *)0)) { > indescr = PyArray_DescrFromObject(min, ((void *)0)); > if (indescr == ((void *)0)) { > return ((void *)0); > } > } > if (max != ((void *)0)) { > newdescr = PyArray_DescrFromObject(max, indescr); > do { if ((indescr) == ((void *)0)) ; else do { if ( --((PyObject*)(indescr))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(indescr)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(indescr)))); } while (0); } while (0); > if (newdescr == ((void *)0)) { > return ((void *)0); > } > } > else { > > newdescr = indescr; > } > > > > > > > > if (PyArray_ScalarKind(newdescr->type_num, ((void *)0)) > > PyArray_ScalarKind(self->descr->type_num, ((void *)0))) { > indescr = PyArray_PromoteTypes(newdescr, self->descr); > func = indescr->f->fastclip; > if (func == ((void *)0)) { > return _slow_array_clip(self, min, max, out); > } > } > else { > indescr = self->descr; > ( ((PyObject*)(indescr))->ob_refcnt++); > } > do { if ( --((PyObject*)(newdescr))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(newdescr)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(newdescr)))); } while (0); > > if (!((((PyArray_Descr *)(indescr))->byteorder) != '>')) { > PyArray_Descr *descr2; > descr2 = PyArray_DescrNewByteorder(indescr, '='); > do { if ( --((PyObject*)(indescr))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(indescr)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(indescr)))); } while (0); > if (descr2 == ((void *)0)) { > goto fail; > } > indescr = descr2; > } > > > if (max != ((void *)0)) { > maxa = (PyArrayObject *)PyArray_FromAny(max, indescr, 0, 0, > (0x0001 | (0x0100 | 0x0400)), ((void *)0)); > if (maxa == ((void *)0)) { > return ((void *)0); > } > } > else { > > do { if ( --((PyObject*)(indescr))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(indescr)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(indescr)))); } while (0); > } ># 871 "numpy/core/src/multiarray/calculation.c" > if (min != ((void *)0)) { > if (((((((PyArrayObject *)(self))->descr->type_num)) == NPY_UBYTE) || (((((PyArrayObject *)(self))->descr->type_num)) == NPY_USHORT) || (((((PyArrayObject *)(self))->descr->type_num)) == NPY_UINT) || (((((PyArrayObject *)(self))->descr->type_num)) == NPY_ULONG) || (((((PyArrayObject *)(self))->descr->type_num)) == NPY_ULONGLONG))) { > int cmp; > zero = PyInt_FromLong(0); > cmp = PyObject_RichCompareBool(min, zero, 0); > if (cmp == -1) { > do { if ( --((PyObject*)(zero))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(zero)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(zero)))); } while (0); > goto fail; > } > if (cmp == 1) { > min = zero; > } > else { > do { if ( --((PyObject*)(zero))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(zero)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(zero)))); } while (0); > ( ((PyObject*)(min))->ob_refcnt++); > } > } > else { > ( ((PyObject*)(min))->ob_refcnt++); > } > > > ( ((PyObject*)(indescr))->ob_refcnt++); > mina = (PyArrayObject *)PyArray_FromAny(min, indescr, 0, 0, > (0x0001 | (0x0100 | 0x0400)), ((void *)0)); > do { if ( --((PyObject*)(min))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(min)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(min)))); } while (0); > if (mina == ((void *)0)) { > goto fail; > } > } > > > > > > > if (((((PyArrayObject *)(self))->nd) == 0 || ((((PyArrayObject *)(self))->flags & (0x0001)) == (0x0001)) || ((((PyArrayObject *)(self))->flags & (0x0002)) == (0x0002))) && ((((PyArrayObject *)(self))->flags & (0x0100)) == (0x0100)) && > (((((PyArrayObject *)(self))->descr)->byteorder) != '>') && (self->descr == indescr)) { > ingood = 1; > } > if (!ingood) { > int flags; > > if ((((((PyArrayObject *)(self))->flags & (0x0002)) == (0x0002)) && ((((PyArrayObject *)(self))->nd) > 1))) { > flags = (0x0002 | (0x0100 | 0x0400)); > } > else { > flags = (0x0001 | (0x0100 | 0x0400)); > } > ( ((PyObject*)(indescr))->ob_refcnt++); > newin = (PyArrayObject *)PyArray_FromArray(self, indescr, flags); > if (newin == ((void *)0)) { > goto fail; > } > } > else { > newin = self; > ( ((PyObject*)(newin))->ob_refcnt++); > } ># 943 "numpy/core/src/multiarray/calculation.c" > if (out == ((void *)0) && !ingood) { > out = newin; > } > > > > > > > if (out == ((void *)0)) { > ( ((PyObject*)(indescr))->ob_refcnt++); > out = (PyArrayObject*)PyArray_NewFromDescr((((PyObject*)(self))->ob_type), > indescr, self->nd, > self->dimensions, > ((void *)0), ((void *)0), > (((((PyArrayObject *)(self))->flags & (0x0002)) == (0x0002)) && ((((PyArrayObject *)(self))->nd) > 1)), > (PyObject *)self); > if (out == ((void *)0)) { > goto fail; > } > outgood = 1; > } > else ( ((PyObject*)(out))->ob_refcnt++); > > if (out == newin) { > outgood = 1; > } > if (!outgood && ((((PyArrayObject *)(out))->nd) == 0 || ((((PyArrayObject *)(out))->flags & (0x0001)) == (0x0001)) || ((((PyArrayObject *)(out))->flags & (0x0002)) == (0x0002))) && > ((((PyArrayObject *)(out))->flags & (0x0100)) == (0x0100)) && (((((PyArrayObject *)(out))->descr)->byteorder) != '>') && > PyArray_EquivTypes(out->descr, indescr)) { > outgood = 1; > } > > > > > > if (!outgood) { > int oflags; > if ((((((PyArrayObject *)(out))->flags & (0x0002)) == (0x0002)) && ((((PyArrayObject *)(out))->nd) > 1))) > oflags = (0x0002 | (0x0100 | 0x0400)); > else > oflags = (0x0001 | (0x0100 | 0x0400)); > oflags |= 0x1000 | 0x0010; > ( ((PyObject*)(indescr))->ob_refcnt++); > newout = (PyArrayObject*)PyArray_FromArray(out, indescr, oflags); > if (newout == ((void *)0)) { > goto fail; > } > } > else { > newout = out; > ( ((PyObject*)(newout))->ob_refcnt++); > } > > > if (!(((((PyArrayObject *)(newin))->nd) == (((PyArrayObject *)(newout))->nd)) && PyArray_CompareLists((((PyArrayObject *)(newin))->dimensions), (((PyArrayObject *)(newout))->dimensions), (((PyArrayObject *)(newin))->nd)))) { > PyErr_SetString(PyExc_ValueError, "clip: Output array must have the" > "same shape as the input."); > goto fail; > } > if (newout->data != newin->data) { > memcpy(newout->data, newin->data, ((((PyArrayObject *)(newin))->descr->elsize) * PyArray_MultiplyList((((PyArrayObject *)(newin))->dimensions), (((PyArrayObject *)(newin))->nd)))); > } > > > min_data = max_data = ((void *)0); > if (mina != ((void *)0)) { > min_data = mina->data; > } > if (maxa != ((void *)0)) { > max_data = maxa->data; > } > func(newin->data, PyArray_MultiplyList((((PyArrayObject *)(newin))->dimensions), (((PyArrayObject *)(newin))->nd)), min_data, max_data, newout->data); > > > do { if ((mina) == ((void *)0)) ; else do { if ( --((PyObject*)(mina))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(mina)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(mina)))); } while (0); } while (0); > do { if ((maxa) == ((void *)0)) ; else do { if ( --((PyObject*)(maxa))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(maxa)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(maxa)))); } while (0); } while (0); > do { if ( --((PyObject*)(newin))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(newin)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(newin)))); } while (0); > > do { if ( --((PyObject*)(newout))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(newout)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(newout)))); } while (0); > return (PyObject *)out; > > fail: > do { if ((maxa) == ((void *)0)) ; else do { if ( --((PyObject*)(maxa))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(maxa)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(maxa)))); } while (0); } while (0); > do { if ((mina) == ((void *)0)) ; else do { if ( --((PyObject*)(mina))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(mina)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(mina)))); } while (0); } while (0); > do { if ((newin) == ((void *)0)) ; else do { if ( --((PyObject*)(newin))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(newin)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(newin)))); } while (0); } while (0); > if (newout && ((((PyArrayObject *)(newout))->flags) & 0x1000)) { (((PyArrayObject *)((((PyArrayObject *)(newout))->base)))->flags) |= 0x0400; (((PyArrayObject *)(newout))->flags) &= ~0x1000; } do { if ((newout) == ((void *)0)) ; else do { if ( --((PyObject*)(newout))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(newout)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(newout)))); } while (0); } while (0); > return ((void *)0); >} > > > > > >static PyObject * >PyArray_Conjugate(PyArrayObject *self, PyArrayObject *out) >{ > if (((((((PyArrayObject *)(self))->descr->type_num)) >= NPY_CFLOAT) && (((((PyArrayObject *)(self))->descr->type_num)) <= NPY_CLONGDOUBLE))) { > if (out == ((void *)0)) { > return PyArray_GenericUnaryFunction(self, > n_ops.conjugate); > } > else { > return PyArray_GenericBinaryFunction(self, > (PyObject *)out, > n_ops.conjugate); > } > } > else { > PyArrayObject *ret; > if (out) { > if (PyArray_CopyAnyInto(out, self) < 0) { > return ((void *)0); > } > ret = out; > } > else { > ret = self; > } > ( ((PyObject*)(ret))->ob_refcnt++); > return (PyObject *)ret; > } >} > > > > >static PyObject * >PyArray_Trace(PyArrayObject *self, int offset, int axis1, int axis2, > int rtype, PyArrayObject *out) >{ > PyObject *diag = ((void *)0), *ret = ((void *)0); > > diag = PyArray_Diagonal(self, offset, axis1, axis2); > if (diag == ((void *)0)) { > return ((void *)0); > } > ret = PyArray_GenericReduceFunction((PyArrayObject *)diag, n_ops.add, -1, rtype, out); > do { if ( --((PyObject*)(diag))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(diag)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(diag)))); } while (0); > return ret; >} ># 33 "numpy/core/src/multiarray/multiarraymodule_onefile.c" 2 ># 1 "numpy/core/src/multiarray/usertypes.c" 1 ># 41 "numpy/core/src/multiarray/usertypes.c" >static PyArray_Descr **userdescrs=((void *)0); > >static int * >_append_new(int *types, int insert) >{ > int n = 0; > int *newtypes; > > while (types[n] != NPY_NOTYPE) { > n++; > } > newtypes = (int *)realloc(types, (n + 2)*sizeof(int)); > newtypes[n] = insert; > newtypes[n + 1] = NPY_NOTYPE; > return newtypes; >} > >static npy_bool >_default_nonzero(void *ip, void *arr) >{ > int elsize = (((PyArrayObject *)(arr))->descr->elsize); > char *ptr = ip; > while (elsize--) { > if (*ptr++ != 0) { > return 1; > } > } > return 0; >} > >static void >_default_copyswapn(void *dst, npy_intp dstride, void *src, > npy_intp sstride, npy_intp n, int swap, void *arr) >{ > npy_intp i; > PyArray_CopySwapFunc *copyswap; > char *dstptr = dst; > char *srcptr = src; > > copyswap = (((PyArrayObject *)(arr))->descr)->f->copyswap; > > for (i = 0; i < n; i++) { > copyswap(dstptr, srcptr, swap, arr); > dstptr += dstride; > srcptr += sstride; > } >} > > > > >static void >PyArray_InitArrFuncs(PyArray_ArrFuncs *f) >{ > int i; > > for(i = 0; i < NPY_NTYPES_ABI_COMPATIBLE; i++) { > f->cast[i] = ((void *)0); > } > f->getitem = ((void *)0); > f->setitem = ((void *)0); > f->copyswapn = ((void *)0); > f->copyswap = ((void *)0); > f->compare = ((void *)0); > f->argmax = ((void *)0); > f->dotfunc = ((void *)0); > f->scanfunc = ((void *)0); > f->fromstr = ((void *)0); > f->nonzero = ((void *)0); > f->fill = ((void *)0); > f->fillwithscalar = ((void *)0); > for(i = 0; i < (NPY_MERGESORT + 1); i++) { > f->sort[i] = ((void *)0); > f->argsort[i] = ((void *)0); > } > f->castdict = ((void *)0); > f->scalarkind = ((void *)0); > f->cancastscalarkindto = ((void *)0); > f->cancastto = ((void *)0); >} ># 131 "numpy/core/src/multiarray/usertypes.c" >static int >PyArray_RegisterDataType(PyArray_Descr *descr) >{ > PyArray_Descr *descr2; > int typenum; > int i; > PyArray_ArrFuncs *f; > > > for (i = 0; i < NPY_NUMUSERTYPES; i++) { > descr2 = userdescrs[i]; > if (descr2 == descr) { > return descr->type_num; > } > } > typenum = NPY_USERDEF + NPY_NUMUSERTYPES; > descr->type_num = typenum; > if (descr->elsize == 0) { > PyErr_SetString(PyExc_ValueError, "cannot register a" "flexible data-type"); > > return -1; > } > f = descr->f; > if (f->nonzero == ((void *)0)) { > f->nonzero = _default_nonzero; > } > if (f->copyswapn == ((void *)0)) { > f->copyswapn = _default_copyswapn; > } > if (f->copyswap == ((void *)0) || f->getitem == ((void *)0) || > f->setitem == ((void *)0)) { > PyErr_SetString(PyExc_ValueError, "a required array function" " is missing."); > > return -1; > } > if (descr->typeobj == ((void *)0)) { > PyErr_SetString(PyExc_ValueError, "missing typeobject"); > return -1; > } > userdescrs = realloc(userdescrs, > (NPY_NUMUSERTYPES+1)*sizeof(void *)); > if (userdescrs == ((void *)0)) { > PyErr_SetString(PyExc_MemoryError, "RegisterDataType"); > return -1; > } > userdescrs[NPY_NUMUSERTYPES++] = descr; > return typenum; >} > > > > > >static int >PyArray_RegisterCastFunc(PyArray_Descr *descr, int totype, > PyArray_VectorUnaryFunc *castfunc) >{ > PyObject *cobj, *key; > int ret; > > if (totype < NPY_NTYPES_ABI_COMPATIBLE) { > descr->f->cast[totype] = castfunc; > return 0; > } > if (totype >= NPY_NTYPES && !(((totype) >= NPY_USERDEF) && ((totype) < NPY_USERDEF+ NPY_NUMUSERTYPES))) { > PyErr_SetString(PyExc_TypeError, "invalid type number."); > return -1; > } > if (descr->f->castdict == ((void *)0)) { > descr->f->castdict = PyDict_New(); > if (descr->f->castdict == ((void *)0)) { > return -1; > } > } > key = PyInt_FromLong(totype); > if (PyErr_Occurred()) { > return -1; > } > cobj = NpyCapsule_FromVoidPtr((void *)castfunc, ((void *)0)); > if (cobj == ((void *)0)) { > do { if ( --((PyObject*)(key))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(key)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(key)))); } while (0); > return -1; > } > ret = PyDict_SetItem(descr->f->castdict, key, cobj); > do { if ( --((PyObject*)(key))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(key)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(key)))); } while (0); > do { if ( --((PyObject*)(cobj))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(cobj)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(cobj)))); } while (0); > return ret; >} > > > > > >static int >PyArray_RegisterCanCast(PyArray_Descr *descr, int totype, > NPY_SCALARKIND scalar) >{ > > > > > > if (!(((descr->type_num) >= NPY_USERDEF) && ((descr->type_num) < NPY_USERDEF+ NPY_NUMUSERTYPES)) && > !(((totype) >= NPY_USERDEF) && ((totype) < NPY_USERDEF+ NPY_NUMUSERTYPES))) { > PyErr_SetString(PyExc_ValueError, > "At least one of the types provided to" > "RegisterCanCast must be user-defined."); > return -1; > } > > if (scalar == NPY_NOSCALAR) { > > > > > > if (descr->f->cancastto == ((void *)0)) { > descr->f->cancastto = (int *)malloc(1*sizeof(int)); > descr->f->cancastto[0] = NPY_NOTYPE; > } > descr->f->cancastto = _append_new(descr->f->cancastto, > totype); > } > else { > > if (descr->f->cancastscalarkindto == ((void *)0)) { > int i; > descr->f->cancastscalarkindto = > (int **)malloc((NPY_OBJECT_SCALAR + 1)* sizeof(int*)); > for (i = 0; i < (NPY_OBJECT_SCALAR + 1); i++) { > descr->f->cancastscalarkindto[i] = ((void *)0); > } > } > if (descr->f->cancastscalarkindto[scalar] == ((void *)0)) { > descr->f->cancastscalarkindto[scalar] = > (int *)malloc(1*sizeof(int)); > descr->f->cancastscalarkindto[scalar][0] = > NPY_NOTYPE; > } > descr->f->cancastscalarkindto[scalar] = > _append_new(descr->f->cancastscalarkindto[scalar], totype); > } > return 0; >} ># 34 "numpy/core/src/multiarray/multiarraymodule_onefile.c" 2 ># 1 "numpy/core/src/multiarray/refcount.c" 1 ># 19 "numpy/core/src/multiarray/refcount.c" >static void >_fillobject(char *optr, PyObject *obj, PyArray_Descr *dtype); > > > > >static void >PyArray_Item_INCREF(char *data, PyArray_Descr *descr) >{ > PyObject *temp; > > if (!(((descr)->flags & (0x01)) == (0x01))) { > return; > } > if (descr->type_num == NPY_OBJECT) { > (*((PyObject **)(&temp)) = *((PyObject **)(data))); > do { if ((temp) == ((void *)0)) ; else ( ((PyObject*)(temp))->ob_refcnt++); } while (0); > } > else if ((((PyArray_Descr *)(descr))->names != ((void *)0))) { > PyObject *key, *value, *title = ((void *)0); > PyArray_Descr *new; > int offset; > Py_ssize_t pos = 0; > > while (PyDict_Next(descr->fields, &pos, &key, &value)) { > if (((((PyVarObject*)((value)))->ob_size)==3) && ((((PyTupleObject *)((value)))->ob_item[2]) == (key))) { > continue; > } > if (!_PyArg_ParseTuple_SizeT(value, "Oi|O", &new, &offset, > &title)) { > return; > } > PyArray_Item_INCREF(data + offset, new); > } > } > return; >} > > > > >static void >PyArray_Item_XDECREF(char *data, PyArray_Descr *descr) >{ > PyObject *temp; > > if (!(((descr)->flags & (0x01)) == (0x01))) { > return; > } > > if (descr->type_num == NPY_OBJECT) { > (*((PyObject **)(&temp)) = *((PyObject **)(data))); > do { if ((temp) == ((void *)0)) ; else do { if ( --((PyObject*)(temp))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(temp)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(temp)))); } while (0); } while (0); > } > else if (((PyArray_Descr *)(descr))->names != ((void *)0)) { > PyObject *key, *value, *title = ((void *)0); > PyArray_Descr *new; > int offset; > Py_ssize_t pos = 0; > > while (PyDict_Next(descr->fields, &pos, &key, &value)) { > if (((((PyVarObject*)((value)))->ob_size)==3) && ((((PyTupleObject *)((value)))->ob_item[2]) == (key))) { > continue; > } > if (!_PyArg_ParseTuple_SizeT(value, "Oi|O", &new, &offset, > &title)) { > return; > } > PyArray_Item_XDECREF(data + offset, new); > } > } > return; >} > > > > > > >static int >PyArray_INCREF(PyArrayObject *mp) >{ > npy_intp i, n; > PyObject **data; > PyObject *temp; > PyArrayIterObject *it; > > if (!(((mp->descr)->flags & (0x01)) == (0x01))) { > return 0; > } > if (mp->descr->type_num != NPY_OBJECT) { > it = (PyArrayIterObject *)PyArray_IterNew((PyObject *)mp); > if (it == ((void *)0)) { > return -1; > } > while(it->index < it->size) { > PyArray_Item_INCREF(it->dataptr, mp->descr); > { ((PyArrayIterObject *)(it))->index++; if (((PyArrayIterObject *)(it))->nd_m1 == 0) { { (((PyArrayIterObject *)(it)))->dataptr += ((PyArrayIterObject *)(((PyArrayIterObject *)(it))))->strides[0]; (((PyArrayIterObject *)(it)))->coordinates[0]++; }; } else if (((PyArrayIterObject *)(it))->contiguous) ((PyArrayIterObject *)(it))->dataptr += ((PyArrayIterObject *)(it))->ao->descr->elsize; else if (((PyArrayIterObject *)(it))->nd_m1 == 1) { { if ((((PyArrayIterObject *)(it)))->coordinates[1] < (((PyArrayIterObject *)(it)))->dims_m1[1]) { (((PyArrayIterObject *)(it)))->coordinates[1]++; (((PyArrayIterObject *)(it)))->dataptr += (((PyArrayIterObject *)(it)))->strides[1]; } else { (((PyArrayIterObject *)(it)))->coordinates[1] = 0; (((PyArrayIterObject *)(it)))->coordinates[0]++; (((PyArrayIterObject *)(it)))->dataptr += (((PyArrayIterObject *)(it)))->strides[0] - (((PyArrayIterObject *)(it)))->backstrides[1]; } }; } else { int __npy_i; for (__npy_i=((PyArrayIterObject *)(it))->nd_m1; __npy_i >= 0; __npy_i--) { if (((PyArrayIterObject *)(it))->coordinates[__npy_i] < ((PyArrayIterObject *)(it))->dims_m1[__npy_i]) { ((PyArrayIterObject *)(it))->coordinates[__npy_i]++; ((PyArrayIterObject *)(it))->dataptr += ((PyArrayIterObject *)(it))->strides[__npy_i]; break; } else { ((PyArrayIterObject *)(it))->coordinates[__npy_i] = 0; ((PyArrayIterObject *)(it))->dataptr -= ((PyArrayIterObject *)(it))->backstrides[__npy_i]; } } } }; > } > do { if ( --((PyObject*)(it))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(it)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(it)))); } while (0); > return 0; > } > > if (((((PyArrayObject *)(mp))->nd) == 0 || ((((PyArrayObject *)(mp))->flags & (0x0001)) == (0x0001)) || ((((PyArrayObject *)(mp))->flags & (0x0002)) == (0x0002)))) { > data = (PyObject **)mp->data; > n = PyArray_MultiplyList((((PyArrayObject *)(mp))->dimensions), (((PyArrayObject *)(mp))->nd)); > if (((((PyArrayObject *)(mp))->flags & (0x0100)) == (0x0100))) { > for (i = 0; i < n; i++, data++) { > do { if ((*data) == ((void *)0)) ; else ( ((PyObject*)(*data))->ob_refcnt++); } while (0); > } > } > else { > for( i = 0; i < n; i++, data++) { > (*((PyObject **)(&temp)) = *((PyObject **)(data))); > do { if ((temp) == ((void *)0)) ; else ( ((PyObject*)(temp))->ob_refcnt++); } while (0); > } > } > } > else { > it = (PyArrayIterObject *)PyArray_IterNew((PyObject *)mp); > if (it == ((void *)0)) { > return -1; > } > while(it->index < it->size) { > (*((PyObject **)(&temp)) = *((PyObject **)(it->dataptr))); > do { if ((temp) == ((void *)0)) ; else ( ((PyObject*)(temp))->ob_refcnt++); } while (0); > { ((PyArrayIterObject *)(it))->index++; if (((PyArrayIterObject *)(it))->nd_m1 == 0) { { (((PyArrayIterObject *)(it)))->dataptr += ((PyArrayIterObject *)(((PyArrayIterObject *)(it))))->strides[0]; (((PyArrayIterObject *)(it)))->coordinates[0]++; }; } else if (((PyArrayIterObject *)(it))->contiguous) ((PyArrayIterObject *)(it))->dataptr += ((PyArrayIterObject *)(it))->ao->descr->elsize; else if (((PyArrayIterObject *)(it))->nd_m1 == 1) { { if ((((PyArrayIterObject *)(it)))->coordinates[1] < (((PyArrayIterObject *)(it)))->dims_m1[1]) { (((PyArrayIterObject *)(it)))->coordinates[1]++; (((PyArrayIterObject *)(it)))->dataptr += (((PyArrayIterObject *)(it)))->strides[1]; } else { (((PyArrayIterObject *)(it)))->coordinates[1] = 0; (((PyArrayIterObject *)(it)))->coordinates[0]++; (((PyArrayIterObject *)(it)))->dataptr += (((PyArrayIterObject *)(it)))->strides[0] - (((PyArrayIterObject *)(it)))->backstrides[1]; } }; } else { int __npy_i; for (__npy_i=((PyArrayIterObject *)(it))->nd_m1; __npy_i >= 0; __npy_i--) { if (((PyArrayIterObject *)(it))->coordinates[__npy_i] < ((PyArrayIterObject *)(it))->dims_m1[__npy_i]) { ((PyArrayIterObject *)(it))->coordinates[__npy_i]++; ((PyArrayIterObject *)(it))->dataptr += ((PyArrayIterObject *)(it))->strides[__npy_i]; break; } else { ((PyArrayIterObject *)(it))->coordinates[__npy_i] = 0; ((PyArrayIterObject *)(it))->dataptr -= ((PyArrayIterObject *)(it))->backstrides[__npy_i]; } } } }; > } > do { if ( --((PyObject*)(it))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(it)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(it)))); } while (0); > } > return 0; >} > > > > > >static int >PyArray_XDECREF(PyArrayObject *mp) >{ > npy_intp i, n; > PyObject **data; > PyObject *temp; > PyArrayIterObject *it; > > if (!(((mp->descr)->flags & (0x01)) == (0x01))) { > return 0; > } > if (mp->descr->type_num != NPY_OBJECT) { > it = (PyArrayIterObject *)PyArray_IterNew((PyObject *)mp); > if (it == ((void *)0)) { > return -1; > } > while(it->index < it->size) { > PyArray_Item_XDECREF(it->dataptr, mp->descr); > { ((PyArrayIterObject *)(it))->index++; if (((PyArrayIterObject *)(it))->nd_m1 == 0) { { (((PyArrayIterObject *)(it)))->dataptr += ((PyArrayIterObject *)(((PyArrayIterObject *)(it))))->strides[0]; (((PyArrayIterObject *)(it)))->coordinates[0]++; }; } else if (((PyArrayIterObject *)(it))->contiguous) ((PyArrayIterObject *)(it))->dataptr += ((PyArrayIterObject *)(it))->ao->descr->elsize; else if (((PyArrayIterObject *)(it))->nd_m1 == 1) { { if ((((PyArrayIterObject *)(it)))->coordinates[1] < (((PyArrayIterObject *)(it)))->dims_m1[1]) { (((PyArrayIterObject *)(it)))->coordinates[1]++; (((PyArrayIterObject *)(it)))->dataptr += (((PyArrayIterObject *)(it)))->strides[1]; } else { (((PyArrayIterObject *)(it)))->coordinates[1] = 0; (((PyArrayIterObject *)(it)))->coordinates[0]++; (((PyArrayIterObject *)(it)))->dataptr += (((PyArrayIterObject *)(it)))->strides[0] - (((PyArrayIterObject *)(it)))->backstrides[1]; } }; } else { int __npy_i; for (__npy_i=((PyArrayIterObject *)(it))->nd_m1; __npy_i >= 0; __npy_i--) { if (((PyArrayIterObject *)(it))->coordinates[__npy_i] < ((PyArrayIterObject *)(it))->dims_m1[__npy_i]) { ((PyArrayIterObject *)(it))->coordinates[__npy_i]++; ((PyArrayIterObject *)(it))->dataptr += ((PyArrayIterObject *)(it))->strides[__npy_i]; break; } else { ((PyArrayIterObject *)(it))->coordinates[__npy_i] = 0; ((PyArrayIterObject *)(it))->dataptr -= ((PyArrayIterObject *)(it))->backstrides[__npy_i]; } } } }; > } > do { if ( --((PyObject*)(it))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(it)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(it)))); } while (0); > return 0; > } > > if (((((PyArrayObject *)(mp))->nd) == 0 || ((((PyArrayObject *)(mp))->flags & (0x0001)) == (0x0001)) || ((((PyArrayObject *)(mp))->flags & (0x0002)) == (0x0002)))) { > data = (PyObject **)mp->data; > n = PyArray_MultiplyList((((PyArrayObject *)(mp))->dimensions), (((PyArrayObject *)(mp))->nd)); > if (((((PyArrayObject *)(mp))->flags & (0x0100)) == (0x0100))) { > for (i = 0; i < n; i++, data++) do { if ((*data) == ((void *)0)) ; else do { if ( --((PyObject*)(*data))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(*data)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(*data)))); } while (0); } while (0); > } > else { > for (i = 0; i < n; i++, data++) { > (*((PyObject **)(&temp)) = *((PyObject **)(data))); > do { if ((temp) == ((void *)0)) ; else do { if ( --((PyObject*)(temp))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(temp)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(temp)))); } while (0); } while (0); > } > } > } > else { > it = (PyArrayIterObject *)PyArray_IterNew((PyObject *)mp); > if (it == ((void *)0)) { > return -1; > } > while(it->index < it->size) { > (*((PyObject **)(&temp)) = *((PyObject **)(it->dataptr))); > do { if ((temp) == ((void *)0)) ; else do { if ( --((PyObject*)(temp))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(temp)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(temp)))); } while (0); } while (0); > { ((PyArrayIterObject *)(it))->index++; if (((PyArrayIterObject *)(it))->nd_m1 == 0) { { (((PyArrayIterObject *)(it)))->dataptr += ((PyArrayIterObject *)(((PyArrayIterObject *)(it))))->strides[0]; (((PyArrayIterObject *)(it)))->coordinates[0]++; }; } else if (((PyArrayIterObject *)(it))->contiguous) ((PyArrayIterObject *)(it))->dataptr += ((PyArrayIterObject *)(it))->ao->descr->elsize; else if (((PyArrayIterObject *)(it))->nd_m1 == 1) { { if ((((PyArrayIterObject *)(it)))->coordinates[1] < (((PyArrayIterObject *)(it)))->dims_m1[1]) { (((PyArrayIterObject *)(it)))->coordinates[1]++; (((PyArrayIterObject *)(it)))->dataptr += (((PyArrayIterObject *)(it)))->strides[1]; } else { (((PyArrayIterObject *)(it)))->coordinates[1] = 0; (((PyArrayIterObject *)(it)))->coordinates[0]++; (((PyArrayIterObject *)(it)))->dataptr += (((PyArrayIterObject *)(it)))->strides[0] - (((PyArrayIterObject *)(it)))->backstrides[1]; } }; } else { int __npy_i; for (__npy_i=((PyArrayIterObject *)(it))->nd_m1; __npy_i >= 0; __npy_i--) { if (((PyArrayIterObject *)(it))->coordinates[__npy_i] < ((PyArrayIterObject *)(it))->dims_m1[__npy_i]) { ((PyArrayIterObject *)(it))->coordinates[__npy_i]++; ((PyArrayIterObject *)(it))->dataptr += ((PyArrayIterObject *)(it))->strides[__npy_i]; break; } else { ((PyArrayIterObject *)(it))->coordinates[__npy_i] = 0; ((PyArrayIterObject *)(it))->dataptr -= ((PyArrayIterObject *)(it))->backstrides[__npy_i]; } } } }; > } > do { if ( --((PyObject*)(it))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(it)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(it)))); } while (0); > } > return 0; >} > > > > >static void >PyArray_FillObjectArray(PyArrayObject *arr, PyObject *obj) >{ > npy_intp i,n; > n = PyArray_MultiplyList((((PyArrayObject *)(arr))->dimensions), (((PyArrayObject *)(arr))->nd)); > if (arr->descr->type_num == NPY_OBJECT) { > PyObject **optr; > optr = (PyObject **)(arr->data); > n = PyArray_MultiplyList((((PyArrayObject *)(arr))->dimensions), (((PyArrayObject *)(arr))->nd)); > if (obj == ((void *)0)) { > for (i = 0; i < n; i++) { > *optr++ = ((void *)0); > } > } > else { > for (i = 0; i < n; i++) { > ( ((PyObject*)(obj))->ob_refcnt++); > *optr++ = obj; > } > } > } > else { > char *optr; > optr = arr->data; > for (i = 0; i < n; i++) { > _fillobject(optr, obj, arr->descr); > optr += arr->descr->elsize; > } > } >} > >static void >_fillobject(char *optr, PyObject *obj, PyArray_Descr *dtype) >{ > if (!(((dtype)->flags & (0x01)) == (0x01))) { > if ((obj == (&_Py_NoneStruct)) || (((((obj)->ob_type)->tp_flags & ((1L<<23))) != 0) && PyInt_AsLong(obj)==0)) { > return; > } > else { > PyObject *arr; > ( ((PyObject*)(dtype))->ob_refcnt++); > arr = PyArray_NewFromDescr(&PyArray_Type, dtype, > 0, ((void *)0), ((void *)0), ((void *)0), > 0, ((void *)0)); > if (arr!=((void *)0)) { > dtype->f->setitem(obj, optr, arr); > } > do { if ((arr) == ((void *)0)) ; else do { if ( --((PyObject*)(arr))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(arr)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(arr)))); } while (0); } while (0); > } > } > else if ((((PyArray_Descr *)(dtype))->names != ((void *)0))) { > PyObject *key, *value, *title = ((void *)0); > PyArray_Descr *new; > int offset; > Py_ssize_t pos = 0; > > while (PyDict_Next(dtype->fields, &pos, &key, &value)) { > if (((((PyVarObject*)((value)))->ob_size)==3) && ((((PyTupleObject *)((value)))->ob_item[2]) == (key))) { > continue; > } > if (!_PyArg_ParseTuple_SizeT(value, "Oi|O", &new, &offset, &title)) { > return; > } > _fillobject(optr + offset, obj, new); > } > } > else { > do { if ((obj) == ((void *)0)) ; else ( ((PyObject*)(obj))->ob_refcnt++); } while (0); > (*((PyObject **)(optr)) = *((PyObject **)(&obj))); > return; > } >} ># 35 "numpy/core/src/multiarray/multiarraymodule_onefile.c" 2 ># 1 "numpy/core/src/multiarray/conversion_utils.c" 1 ># 14 "numpy/core/src/multiarray/conversion_utils.c" ># 1 "numpy/core/src/multiarray/arraytypes.h" 1 ># 10 "numpy/core/src/multiarray/arraytypes.h" >static int >set_typeinfo(PyObject *dict); ># 15 "numpy/core/src/multiarray/conversion_utils.c" 2 > ># 1 "numpy/core/src/multiarray/conversion_utils.h" 1 > > > >static int >PyArray_Converter(PyObject *object, PyObject **address); > >static int >PyArray_OutputConverter(PyObject *object, PyArrayObject **address); > >static int >PyArray_IntpConverter(PyObject *obj, PyArray_Dims *seq); > >static int >PyArray_BufferConverter(PyObject *obj, PyArray_Chunk *buf); > >static int >PyArray_BoolConverter(PyObject *object, npy_bool *val); > >static int >PyArray_ByteorderConverter(PyObject *obj, char *endian); > >static int >PyArray_SortkindConverter(PyObject *obj, NPY_SORTKIND *sortkind); > >static int >PyArray_SearchsideConverter(PyObject *obj, void *addr); > >static int >PyArray_PyIntAsInt(PyObject *o); > >static npy_intp >PyArray_PyIntAsIntp(PyObject *o); > >static int >PyArray_IntpFromSequence(PyObject *seq, npy_intp *vals, int maxvals); > >static int >PyArray_TypestrConvert(int itemsize, int gentype); > >static PyObject * >PyArray_IntTupleFromIntp(int len, npy_intp *vals); ># 17 "numpy/core/src/multiarray/conversion_utils.c" 2 ># 33 "numpy/core/src/multiarray/conversion_utils.c" >static int >PyArray_Converter(PyObject *object, PyObject **address) >{ > if (((((PyObject*)(object))->ob_type) == (&PyArray_Type) || PyType_IsSubtype((((PyObject*)(object))->ob_type), (&PyArray_Type)))) { > *address = object; > ( ((PyObject*)(object))->ob_refcnt++); > return 1; > } > else { > *address = PyArray_FromAny(object, ((void *)0), 0, 0, (0x0001 | (0x0100 | 0x0400)), ((void *)0)); > if (*address == ((void *)0)) { > return 0; > } > return 1; > } >} > > > > > >static int >PyArray_OutputConverter(PyObject *object, PyArrayObject **address) >{ > if (object == ((void *)0) || object == (&_Py_NoneStruct)) { > *address = ((void *)0); > return 1; > } > if (((((PyObject*)(object))->ob_type) == (&PyArray_Type) || PyType_IsSubtype((((PyObject*)(object))->ob_type), (&PyArray_Type)))) { > *address = (PyArrayObject *)object; > return 1; > } > else { > PyErr_SetString(PyExc_TypeError, > "output must be an array"); > *address = ((void *)0); > return 0; > } >} ># 82 "numpy/core/src/multiarray/conversion_utils.c" >static int >PyArray_IntpConverter(PyObject *obj, PyArray_Dims *seq) >{ > int len; > int nd; > > seq->ptr = ((void *)0); > seq->len = 0; > if (obj == (&_Py_NoneStruct)) { > return 1; > } > len = PySequence_Size(obj); > if (len == -1) { > > if (PyNumber_Check(obj)) { > len = 1; > } > } > if (len < 0) { > PyErr_SetString(PyExc_TypeError, > "expected sequence object with len >= 0"); > return 0; > } > if (len > 32) { > PyErr_Format(PyExc_ValueError, "sequence too large; " "must be smaller than %d", 32); > > return 0; > } > if (len > 0) { > seq->ptr = ((npy_intp *)PyMem_Malloc(len*sizeof(npy_intp))); > if (seq->ptr == ((void *)0)) { > PyErr_NoMemory(); > return 0; > } > } > seq->len = len; > nd = PyArray_IntpFromSequence(obj, (npy_intp *)seq->ptr, len); > if (nd == -1 || nd != len) { > PyMem_Free(seq->ptr); > seq->ptr = ((void *)0); > return 0; > } > return 1; >} ># 139 "numpy/core/src/multiarray/conversion_utils.c" >static int >PyArray_BufferConverter(PyObject *obj, PyArray_Chunk *buf) >{ > Py_ssize_t buflen; > > buf->ptr = ((void *)0); > buf->flags = (0x0100 | 0x0400); > buf->base = ((void *)0); > if (obj == (&_Py_NoneStruct)) { > return 1; > } > if (PyObject_AsWriteBuffer(obj, &(buf->ptr), &buflen) < 0) { > PyErr_Clear(); > buf->flags &= ~0x0400; > if (PyObject_AsReadBuffer(obj, (const void **)&(buf->ptr), > &buflen) < 0) { > return 0; > } > } > buf->len = (npy_intp) buflen; > > > > > > > > if (((((PyObject*)(obj))->ob_type) == &PyBuffer_Type)) { > buf->base = ((PyArray_Chunk *)obj)->base; > } > > if (buf->base == ((void *)0)) { > buf->base = obj; > } > return 1; >} > > > > >static int >PyArray_AxisConverter(PyObject *obj, int *axis) >{ > if (obj == (&_Py_NoneStruct)) { > *axis = 32; > } > else { > *axis = (int) PyInt_AsLong(obj); > if (PyErr_Occurred()) { > return 0; > } > } > return 1; >} > > > > >static int >PyArray_BoolConverter(PyObject *object, npy_bool *val) >{ > if (PyObject_IsTrue(object)) { > *val = 1; > } > else { > *val = 0; > } > if (PyErr_Occurred()) { > return 0; > } > return 1; >} > > > > >static int >PyArray_ByteorderConverter(PyObject *obj, char *endian) >{ > char *str; > PyObject *tmp = ((void *)0); > > if (((((((PyObject*)(obj))->ob_type))->tp_flags & ((1L<<28))) != 0)) { > obj = tmp = PyUnicodeUCS4_AsASCIIString(obj); > } > > *endian = 's'; > str = PyString_AsString(obj); > if (!str) { > do { if ((tmp) == ((void *)0)) ; else do { if ( --((PyObject*)(tmp))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(tmp)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(tmp)))); } while (0); } while (0); > return 0; > } > if (strlen(str) < 1) { > PyErr_SetString(PyExc_ValueError, > "Byteorder string must be at least length 1"); > do { if ((tmp) == ((void *)0)) ; else do { if ( --((PyObject*)(tmp))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(tmp)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(tmp)))); } while (0); } while (0); > return 0; > } > *endian = str[0]; > if (str[0] != '>' && str[0] != '<' > && str[0] != '=' && str[0] != '|') { > if (str[0] == 'b' || str[0] == 'B') { > *endian = '>'; > } > else if (str[0] == 'l' || str[0] == 'L') { > *endian = '<'; > } > else if (str[0] == 'n' || str[0] == 'N') { > *endian = '='; > } > else if (str[0] == 'i' || str[0] == 'I') { > *endian = '|'; > } > else if (str[0] == 's' || str[0] == 'S') { > *endian = 's'; > } > else { > PyErr_Format(PyExc_ValueError, > "%s is an unrecognized byteorder", > str); > do { if ((tmp) == ((void *)0)) ; else do { if ( --((PyObject*)(tmp))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(tmp)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(tmp)))); } while (0); } while (0); > return 0; > } > } > do { if ((tmp) == ((void *)0)) ; else do { if ( --((PyObject*)(tmp))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(tmp)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(tmp)))); } while (0); } while (0); > return 1; >} > > > > >static int >PyArray_SortkindConverter(PyObject *obj, NPY_SORTKIND *sortkind) >{ > char *str; > PyObject *tmp = ((void *)0); > > if (((((((PyObject*)(obj))->ob_type))->tp_flags & ((1L<<28))) != 0)) { > obj = tmp = PyUnicodeUCS4_AsASCIIString(obj); > } > > *sortkind = NPY_QUICKSORT; > str = PyString_AsString(obj); > if (!str) { > do { if ((tmp) == ((void *)0)) ; else do { if ( --((PyObject*)(tmp))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(tmp)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(tmp)))); } while (0); } while (0); > return 0; > } > if (strlen(str) < 1) { > PyErr_SetString(PyExc_ValueError, > "Sort kind string must be at least length 1"); > do { if ((tmp) == ((void *)0)) ; else do { if ( --((PyObject*)(tmp))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(tmp)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(tmp)))); } while (0); } while (0); > return 0; > } > if (str[0] == 'q' || str[0] == 'Q') { > *sortkind = NPY_QUICKSORT; > } > else if (str[0] == 'h' || str[0] == 'H') { > *sortkind = NPY_HEAPSORT; > } > else if (str[0] == 'm' || str[0] == 'M') { > *sortkind = NPY_MERGESORT; > } > else { > PyErr_Format(PyExc_ValueError, > "%s is an unrecognized kind of sort", > str); > do { if ((tmp) == ((void *)0)) ; else do { if ( --((PyObject*)(tmp))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(tmp)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(tmp)))); } while (0); } while (0); > return 0; > } > do { if ((tmp) == ((void *)0)) ; else do { if ( --((PyObject*)(tmp))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(tmp)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(tmp)))); } while (0); } while (0); > return 1; >} > > > > >static int >PyArray_SearchsideConverter(PyObject *obj, void *addr) >{ > NPY_SEARCHSIDE *side = (NPY_SEARCHSIDE *)addr; > char *str; > PyObject *tmp = ((void *)0); > > if (((((((PyObject*)(obj))->ob_type))->tp_flags & ((1L<<28))) != 0)) { > obj = tmp = PyUnicodeUCS4_AsASCIIString(obj); > } > > str = PyString_AsString(obj); > if (!str || strlen(str) < 1) { > PyErr_SetString(PyExc_ValueError, > "expected nonempty string for keyword 'side'"); > do { if ((tmp) == ((void *)0)) ; else do { if ( --((PyObject*)(tmp))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(tmp)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(tmp)))); } while (0); } while (0); > return 0; > } > > if (str[0] == 'l' || str[0] == 'L') { > *side = NPY_SEARCHLEFT; > } > else if (str[0] == 'r' || str[0] == 'R') { > *side = NPY_SEARCHRIGHT; > } > else { > PyErr_Format(PyExc_ValueError, > "'%s' is an invalid value for keyword 'side'", str); > do { if ((tmp) == ((void *)0)) ; else do { if ( --((PyObject*)(tmp))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(tmp)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(tmp)))); } while (0); } while (0); > return 0; > } > do { if ((tmp) == ((void *)0)) ; else do { if ( --((PyObject*)(tmp))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(tmp)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(tmp)))); } while (0); } while (0); > return 1; >} > > > > > > >static int >PyArray_PyIntAsInt(PyObject *o) >{ > long long_value = -1; > PyObject *obj; > static char *msg = "an integer is required"; > PyObject *arr; > PyArray_Descr *descr; > int ret; > > > if (!o) { > PyErr_SetString(PyExc_TypeError, msg); > return -1; > } > if (((((o)->ob_type)->tp_flags & ((1L<<23))) != 0)) { > long_value = (long) (((PyIntObject *)(o))->ob_ival); > goto finish; > } else if (((((((PyObject*)(o))->ob_type))->tp_flags & ((1L<<24))) != 0)) { > long_value = (long) PyLong_AsLong(o); > goto finish; > } > > descr = &INT_Descr; > arr = ((void *)0); > if (((((PyObject*)(o))->ob_type) == (&PyArray_Type) || PyType_IsSubtype((((PyObject*)(o))->ob_type), (&PyArray_Type)))) { > if (PyArray_MultiplyList((((PyArrayObject *)(o))->dimensions), (((PyArrayObject *)(o))->nd))!=1 || !((((((PyArrayObject *)(o))->descr->type_num)) >= NPY_BYTE) && (((((PyArrayObject *)(o))->descr->type_num)) <= NPY_ULONGLONG))) { > PyErr_SetString(PyExc_TypeError, msg); > return -1; > } > ( ((PyObject*)(descr))->ob_refcnt++); > arr = PyArray_CastToType((PyArrayObject *)o, descr, 0); > } > if ((((((PyObject*)(o))->ob_type) == (&PyIntegerArrType_Type) || PyType_IsSubtype((((PyObject*)(o))->ob_type), (&PyIntegerArrType_Type))))) { > ( ((PyObject*)(descr))->ob_refcnt++); > arr = PyArray_FromScalar(o, descr); > } > if (arr != ((void *)0)) { > ret = *((int *)((void *)(((PyArrayObject *)(arr))->data))); > do { if ( --((PyObject*)(arr))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(arr)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(arr)))); } while (0); > return ret; > } > > if (((o)->ob_type->tp_as_number != ((void *)0) && ((((o)->ob_type)->tp_flags & ((1L<<17))) != 0) && (o)->ob_type->tp_as_number->nb_index != ((void *)0))) { > PyObject* value = PyNumber_Index(o); > long_value = (npy_longlong) PyInt_AsSsize_t(value); > goto finish; > } > > if ((((PyObject*)(o))->ob_type)->tp_as_number != ((void *)0) && (((PyObject*)(o))->ob_type)->tp_as_number->nb_int != ((void *)0)) { > > obj = (((PyObject*)(o))->ob_type)->tp_as_number->nb_int(o); > if (obj == ((void *)0)) { > return -1; > } > long_value = (long) PyLong_AsLong(obj); > do { if ( --((PyObject*)(obj))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(obj)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(obj)))); } while (0); > } > > else if ((((PyObject*)(o))->ob_type)->tp_as_number != ((void *)0) && (((PyObject*)(o))->ob_type)->tp_as_number->nb_long != ((void *)0)) { > > obj = (((PyObject*)(o))->ob_type)->tp_as_number->nb_long(o); > if (obj == ((void *)0)) { > return -1; > } > long_value = (long) PyLong_AsLong(obj); > do { if ( --((PyObject*)(obj))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(obj)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(obj)))); } while (0); > } > > else { > PyErr_SetString(PyExc_NotImplementedError,""); > } > > finish: > if (((long_value) == -1) && PyErr_Occurred()) { > PyErr_SetString(PyExc_TypeError, msg); > return -1; > } > > > if ((long_value < (-2147483647 - 1)) || (long_value > 2147483647)) { > PyErr_SetString(PyExc_ValueError, "integer won't fit into a C int"); > return -1; > } > > return (int) long_value; >} > > >static npy_intp >PyArray_PyIntAsIntp(PyObject *o) >{ > npy_longlong long_value = -1; > PyObject *obj; > static char *msg = "an integer is required"; > PyObject *arr; > PyArray_Descr *descr; > npy_intp ret; > > if (!o) { > PyErr_SetString(PyExc_TypeError, msg); > return -1; > } > if (((((o)->ob_type)->tp_flags & ((1L<<23))) != 0)) { > long_value = (npy_longlong) (((PyIntObject *)(o))->ob_ival); > goto finish; > } else if (((((((PyObject*)(o))->ob_type))->tp_flags & ((1L<<24))) != 0)) { > long_value = (npy_longlong) PyLong_AsLongLong(o); > goto finish; > } > > > descr = &LONG_Descr; > > > > > > arr = ((void *)0); > > if (((((PyObject*)(o))->ob_type) == (&PyArray_Type) || PyType_IsSubtype((((PyObject*)(o))->ob_type), (&PyArray_Type)))) { > if (PyArray_MultiplyList((((PyArrayObject *)(o))->dimensions), (((PyArrayObject *)(o))->nd))!=1 || !((((((PyArrayObject *)(o))->descr->type_num)) >= NPY_BYTE) && (((((PyArrayObject *)(o))->descr->type_num)) <= NPY_ULONGLONG))) { > PyErr_SetString(PyExc_TypeError, msg); > return -1; > } > ( ((PyObject*)(descr))->ob_refcnt++); > arr = PyArray_CastToType((PyArrayObject *)o, descr, 0); > } > else if ((((((PyObject*)(o))->ob_type) == (&PyIntegerArrType_Type) || PyType_IsSubtype((((PyObject*)(o))->ob_type), (&PyIntegerArrType_Type))))) { > ( ((PyObject*)(descr))->ob_refcnt++); > arr = PyArray_FromScalar(o, descr); > } > if (arr != ((void *)0)) { > ret = *((npy_intp *)((void *)(((PyArrayObject *)(arr))->data))); > do { if ( --((PyObject*)(arr))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(arr)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(arr)))); } while (0); > return ret; > } > > > if (((o)->ob_type->tp_as_number != ((void *)0) && ((((o)->ob_type)->tp_flags & ((1L<<17))) != 0) && (o)->ob_type->tp_as_number->nb_index != ((void *)0))) { > PyObject* value = PyNumber_Index(o); > if (value == ((void *)0)) { > return -1; > } > long_value = (npy_longlong) PyInt_AsSsize_t(value); > goto finish; > } > > > if ((((PyObject*)(o))->ob_type)->tp_as_number != ((void *)0) && (((PyObject*)(o))->ob_type)->tp_as_number->nb_long != ((void *)0)) { > > obj = (((PyObject*)(o))->ob_type)->tp_as_number->nb_long(o); > if (obj != ((void *)0)) { > long_value = (npy_longlong) PyLong_AsLongLong(obj); > do { if ( --((PyObject*)(obj))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(obj)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(obj)))); } while (0); > } > } > else > > if ((((PyObject*)(o))->ob_type)->tp_as_number != ((void *)0) && (((PyObject*)(o))->ob_type)->tp_as_number->nb_int != ((void *)0)) { > > obj = (((PyObject*)(o))->ob_type)->tp_as_number->nb_int(o); > if (obj != ((void *)0)) { > long_value = (npy_longlong) PyLong_AsLongLong(obj); > do { if ( --((PyObject*)(obj))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(obj)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(obj)))); } while (0); > } > } > else { > PyErr_SetString(PyExc_NotImplementedError,""); > } > > finish: > if (((long_value) == -1) && PyErr_Occurred()) { > PyErr_SetString(PyExc_TypeError, msg); > return -1; > } ># 539 "numpy/core/src/multiarray/conversion_utils.c" > return (npy_intp) long_value; >} > > > > > > >static int >PyArray_IntpFromSequence(PyObject *seq, npy_intp *vals, int maxvals) >{ > int nd, i; > PyObject *op, *err; > > > > > > if ((nd=PySequence_Size(seq)) == -1) { > if (PyErr_Occurred()) PyErr_Clear(); > > if (!(op = PyNumber_Int(seq))) { > return -1; > } > > > > > > nd = 1; > > vals[0] = (npy_intp ) PyInt_AsLong(op); > > > > do { if ( --((PyObject*)(op))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(op)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(op)))); } while (0); > > > > > > if(vals[0] == -1) { > err = PyErr_Occurred(); > if (err && > PyErr_GivenExceptionMatches(err, PyExc_OverflowError)) { > PyErr_SetString(PyExc_ValueError, > "Maximum allowed dimension exceeded"); > } > if(err != ((void *)0)) { > return -1; > } > } > } > else { > for (i = 0; i < (((nd)<(maxvals))?(nd):(maxvals)); i++) { > op = PySequence_GetItem(seq, i); > if (op == ((void *)0)) { > return -1; > } > > vals[i]=(npy_intp )PyInt_AsLong(op); > > > > do { if ( --((PyObject*)(op))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(op)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(op)))); } while (0); > > > > > > if(vals[0] == -1) { > err = PyErr_Occurred(); > if (err && > PyErr_GivenExceptionMatches(err, PyExc_OverflowError)) { > PyErr_SetString(PyExc_ValueError, > "Maximum allowed dimension exceeded"); > } > if(err != ((void *)0)) { > return -1; > } > } > } > } > return nd; >} > > > > >static int >PyArray_TypestrConvert(int itemsize, int gentype) >{ > int newtype = gentype; > > if (gentype == NPY_GENBOOLLTR) { > if (itemsize == 1) { > newtype = NPY_BOOL; > } > else { > newtype = NPY_NOTYPE; > } > } > else if (gentype == NPY_SIGNEDLTR) { > switch(itemsize) { > case 1: > newtype = NPY_BYTE; > break; > case 2: > newtype = NPY_SHORT; > break; > case 4: > newtype = NPY_INT; > break; > case 8: > newtype = NPY_LONG; > break; > > > > > > default: > newtype = NPY_NOTYPE; > } > } > else if (gentype == NPY_UNSIGNEDLTR) { > switch(itemsize) { > case 1: > newtype = NPY_UBYTE; > break; > case 2: > newtype = NPY_USHORT; > break; > case 4: > newtype = NPY_UINT; > break; > case 8: > newtype = NPY_ULONG; > break; > > > > > > default: > newtype = NPY_NOTYPE; > break; > } > } > else if (gentype == NPY_FLOATINGLTR) { > switch(itemsize) { > case 2: > newtype = NPY_HALF; > break; > case 4: > newtype = NPY_FLOAT; > break; > case 8: > newtype = NPY_DOUBLE; > break; ># 710 "numpy/core/src/multiarray/conversion_utils.c" > case 16: > newtype = NPY_LONGDOUBLE; > break; > > default: > newtype = NPY_NOTYPE; > } > } > else if (gentype == NPY_COMPLEXLTR) { > switch(itemsize) { > case 8: > newtype = NPY_CFLOAT; > break; > case 16: > newtype = NPY_CDOUBLE; > break; ># 737 "numpy/core/src/multiarray/conversion_utils.c" > case 32: > newtype = NPY_CLONGDOUBLE; > break; > > default: > newtype = NPY_NOTYPE; > } > } > return newtype; >} > > > > > > >static PyObject * >PyArray_IntTupleFromIntp(int len, npy_intp *vals) >{ > int i; > PyObject *intTuple = PyTuple_New(len); > > if (!intTuple) { > goto fail; > } > for (i = 0; i < len; i++) { > > PyObject *o = PyInt_FromLong((long) vals[i]); > > > > if (!o) { > do { if ( --((PyObject*)(intTuple))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(intTuple)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(intTuple)))); } while (0); > intTuple = ((void *)0); > goto fail; > } > (((PyTupleObject *)(intTuple))->ob_item[i] = o); > } > > fail: > return intTuple; >} ># 36 "numpy/core/src/multiarray/multiarraymodule_onefile.c" 2 ># 1 "numpy/core/src/multiarray/buffer.c" 1 ># 15 "numpy/core/src/multiarray/buffer.c" ># 1 "numpy/core/src/multiarray/numpyos.h" 1 ># 16 "numpy/core/src/multiarray/buffer.c" 2 > > > > > > > >static Py_ssize_t >array_getsegcount(PyArrayObject *self, Py_ssize_t *lenp) >{ > if (lenp) { > *lenp = ((((PyArrayObject *)(self))->descr->elsize) * PyArray_MultiplyList((((PyArrayObject *)(self))->dimensions), (((PyArrayObject *)(self))->nd))); > } > if (((((PyArrayObject *)(self))->nd) == 0 || ((((PyArrayObject *)(self))->flags & (0x0001)) == (0x0001)) || ((((PyArrayObject *)(self))->flags & (0x0002)) == (0x0002)))) { > return 1; > } > if (lenp) { > *lenp = 0; > } > return 0; >} > >static Py_ssize_t >array_getreadbuf(PyArrayObject *self, Py_ssize_t segment, void **ptrptr) >{ > if (segment != 0) { > PyErr_SetString(PyExc_ValueError, > "accessing non-existing array segment"); > return -1; > } > if (((((PyArrayObject *)(self))->nd) == 0 || ((((PyArrayObject *)(self))->flags & (0x0001)) == (0x0001)) || ((((PyArrayObject *)(self))->flags & (0x0002)) == (0x0002)))) { > *ptrptr = self->data; > return ((((PyArrayObject *)(self))->descr->elsize) * PyArray_MultiplyList((((PyArrayObject *)(self))->dimensions), (((PyArrayObject *)(self))->nd))); > } > PyErr_SetString(PyExc_ValueError, "array is not a single segment"); > *ptrptr = ((void *)0); > return -1; >} > > >static Py_ssize_t >array_getwritebuf(PyArrayObject *self, Py_ssize_t segment, void **ptrptr) >{ > if (((((PyArrayObject *)(self))->flags & (0x0400)) == (0x0400))) { > return array_getreadbuf(self, segment, (void **) ptrptr); > } > else { > PyErr_SetString(PyExc_ValueError, "array cannot be " > "accessed as a writeable buffer"); > return -1; > } >} > >static Py_ssize_t >array_getcharbuf(PyArrayObject *self, Py_ssize_t segment, char **ptrptr) >{ > return array_getreadbuf(self, segment, (void **) ptrptr); >} ># 106 "numpy/core/src/multiarray/buffer.c" >typedef struct { > char *s; > int allocated; > int pos; >} _tmp_string_t; > >static int >_append_char(_tmp_string_t *s, char c) >{ > char *p; > if (s->s == ((void *)0)) { > s->s = (char*)malloc(16); > s->pos = 0; > s->allocated = 16; > } > if (s->pos >= s->allocated) { > p = (char*)realloc(s->s, 2*s->allocated); > if (p == ((void *)0)) { > PyErr_SetString(PyExc_MemoryError, "memory allocation failed"); > return -1; > } > s->s = p; > s->allocated *= 2; > } > s->s[s->pos] = c; > ++s->pos; > return 0; >} > >static int >_append_str(_tmp_string_t *s, char *c) >{ > while (*c != '\0') { > if (_append_char(s, *c)) return -1; > ++c; > } > return 0; >} > > > > > > >static int >_is_natively_aligned_at(PyArray_Descr *descr, > PyArrayObject *arr, Py_ssize_t offset) >{ > int k; > > if ((Py_ssize_t)(arr->data) % descr->alignment != 0) { > return 0; > } > > if (offset % descr->alignment != 0) { > return 0; > } > > if (descr->elsize % descr->alignment) { > return 0; > } > > for (k = 0; k < arr->nd; ++k) { > if (arr->dimensions[k] > 1) { > if (arr->strides[k] % descr->alignment != 0) { > return 0; > } > } > } > > return 1; >} > >static int >_buffer_format_string(PyArray_Descr *descr, _tmp_string_t *str, > PyArrayObject* arr, Py_ssize_t *offset, > char *active_byteorder) >{ > int k; > char _active_byteorder = '@'; > Py_ssize_t _offset = 0; > > if (active_byteorder == ((void *)0)) { > active_byteorder = &_active_byteorder; > } > if (offset == ((void *)0)) { > offset = &_offset; > } > > if (descr->subarray) { > PyObject *item; > Py_ssize_t total_count = 1; > Py_ssize_t dim_size; > char buf[128]; > int old_offset; > int ret; > > _append_char(str, '('); > for (k = 0; k < (((PyVarObject*)(descr->subarray->shape))->ob_size); ++k) { > if (k > 0) { > _append_char(str, ','); > } > item = (((PyTupleObject *)(descr->subarray->shape))->ob_item[k]); > dim_size = PyNumber_AsSsize_t(item, ((void *)0)); > > PyOS_snprintf(buf, sizeof(buf), "%ld", (long)dim_size); > _append_str(str, buf); > total_count *= dim_size; > } > _append_char(str, ')'); > old_offset = *offset; > ret = _buffer_format_string(descr->subarray->base, str, arr, offset, > active_byteorder); > *offset = old_offset + (*offset - old_offset) * total_count; > return ret; > } > else if ((((PyArray_Descr *)(descr))->names != ((void *)0))) { > int base_offset = *offset; > > _append_str(str, "T{"); > for (k = 0; k < (((PyVarObject*)(descr->names))->ob_size); ++k) { > PyObject *name, *item, *offset_obj, *tmp; > PyArray_Descr *child; > char *p; > Py_ssize_t len; > int new_offset; > > name = (((PyTupleObject *)(descr->names))->ob_item[k]); > item = PyDict_GetItem(descr->fields, name); > > child = (PyArray_Descr*)PyTuple_GetItem(item, 0); > offset_obj = PyTuple_GetItem(item, 1); > new_offset = base_offset + PyInt_AsLong(offset_obj); > > > if (*offset > new_offset) { > PyErr_SetString(PyExc_RuntimeError, > "This should never happen: Invalid offset in " > "buffer format string generation. Please " > "report a bug to the Numpy developers."); > return -1; > } > while (*offset < new_offset) { > _append_char(str, 'x'); > ++*offset; > } > > > _buffer_format_string(child, str, arr, offset, > active_byteorder); > > > > > > > tmp = name; > > if (tmp == ((void *)0) || PyString_AsStringAndSize(tmp, &p, &len) < 0) { > PyErr_SetString(PyExc_ValueError, "invalid field name"); > return -1; > } > _append_char(str, ':'); > while (len > 0) { > if (*p == ':') { > do { if ( --((PyObject*)(tmp))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(tmp)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(tmp)))); } while (0); > PyErr_SetString(PyExc_ValueError, > "':' is not an allowed character in buffer " > "field names"); > return -1; > } > _append_char(str, *p); > ++p; > --len; > } > _append_char(str, ':'); > > > > } > _append_char(str, '}'); > } > else { > int is_standard_size = 1; > int is_native_only_type = (descr->type_num == NPY_LONGDOUBLE || > descr->type_num == NPY_CLONGDOUBLE); > > is_native_only_type = is_native_only_type || ( > descr->type_num == NPY_LONGLONG || > descr->type_num == NPY_ULONGLONG); > > > *offset += descr->elsize; > > if (descr->byteorder == '=' && > _is_natively_aligned_at(descr, arr, *offset)) { > > is_standard_size = 0; > if (*active_byteorder != '@') { > _append_char(str, '@'); > *active_byteorder = '@'; > } > } > else if (descr->byteorder == '=' && is_native_only_type) { > > is_standard_size = 0; > if (*active_byteorder != '^') { > _append_char(str, '^'); > *active_byteorder = '^'; > } > } > else if (descr->byteorder == '<' || descr->byteorder == '>' || > descr->byteorder == '=') { > is_standard_size = 1; > if (*active_byteorder != descr->byteorder) { > _append_char(str, descr->byteorder); > *active_byteorder = descr->byteorder; > } > > if (is_native_only_type) { > > > PyErr_Format(PyExc_ValueError, > "cannot expose native-only dtype '%c' in " > "non-native byte order '%c' via buffer interface", > descr->type, descr->byteorder); > } > } > > switch (descr->type_num) { > case NPY_BOOL: if (_append_char(str, '?')) return -1; break; > case NPY_BYTE: if (_append_char(str, 'b')) return -1; break; > case NPY_UBYTE: if (_append_char(str, 'B')) return -1; break; > case NPY_SHORT: if (_append_char(str, 'h')) return -1; break; > case NPY_USHORT: if (_append_char(str, 'H')) return -1; break; > case NPY_INT: if (_append_char(str, 'i')) return -1; break; > case NPY_UINT: if (_append_char(str, 'I')) return -1; break; > case NPY_LONG: > if (is_standard_size && (8 == 8)) { > if (_append_char(str, 'q')) return -1; > } > else { > if (_append_char(str, 'l')) return -1; > } > break; > case NPY_ULONG: > if (is_standard_size && (8 == 8)) { > if (_append_char(str, 'Q')) return -1; > } > else { > if (_append_char(str, 'L')) return -1; > } > break; > case NPY_LONGLONG: if (_append_char(str, 'q')) return -1; break; > case NPY_ULONGLONG: if (_append_char(str, 'Q')) return -1; break; > case NPY_HALF: if (_append_char(str, 'e')) return -1; break; > case NPY_FLOAT: if (_append_char(str, 'f')) return -1; break; > case NPY_DOUBLE: if (_append_char(str, 'd')) return -1; break; > case NPY_LONGDOUBLE: if (_append_char(str, 'g')) return -1; break; > case NPY_CFLOAT: if (_append_str(str, "Zf")) return -1; break; > case NPY_CDOUBLE: if (_append_str(str, "Zd")) return -1; break; > case NPY_CLONGDOUBLE: if (_append_str(str, "Zg")) return -1; break; > > > case NPY_OBJECT: if (_append_char(str, 'O')) return -1; break; > case NPY_STRING: { > char buf[128]; > PyOS_snprintf(buf, sizeof(buf), "%ds", descr->elsize); > if (_append_str(str, buf)) return -1; > break; > } > case NPY_UNICODE: { > > char buf[128]; > ((void) (0)); > PyOS_snprintf(buf, sizeof(buf), "%dw", descr->elsize / 4); > if (_append_str(str, buf)) return -1; > break; > } > case NPY_VOID: { > > char buf[128]; > PyOS_snprintf(buf, sizeof(buf), "%dx", descr->elsize); > if (_append_str(str, buf)) return -1; > break; > } > default: > PyErr_Format(PyExc_ValueError, > "cannot include dtype '%c' in a buffer", > descr->type); > return -1; > } > } > > return 0; >} ># 412 "numpy/core/src/multiarray/buffer.c" >typedef struct { > char *format; > int ndim; > Py_ssize_t *strides; > Py_ssize_t *shape; >} _buffer_info_t; ># 429 "numpy/core/src/multiarray/buffer.c" >static PyObject *_buffer_info_cache = ((void *)0); > > >static _buffer_info_t* >_buffer_info_new(PyArrayObject *arr) >{ > _buffer_info_t *info; > _tmp_string_t fmt = {0,0,0}; > int k; > > info = (_buffer_info_t*)malloc(sizeof(_buffer_info_t)); > > > if (_buffer_format_string((((PyArrayObject *)(arr))->descr), &fmt, arr, ((void *)0), ((void *)0)) != 0) { > free(info); > return ((void *)0); > } > _append_char(&fmt, '\0'); > info->format = fmt.s; > > > info->ndim = (((PyArrayObject *)(arr))->nd); > > if (info->ndim == 0) { > info->shape = ((void *)0); > info->strides = ((void *)0); > } > else { > info->shape = (Py_ssize_t*)malloc(sizeof(Py_ssize_t) > * (((PyArrayObject *)(arr))->nd) * 2 + 1); > info->strides = info->shape + (((PyArrayObject *)(arr))->nd); > for (k = 0; k < (((PyArrayObject *)(arr))->nd); ++k) { > info->shape[k] = (((PyArrayObject *)(arr))->dimensions)[k]; > info->strides[k] = (((PyArrayObject *)(arr))->strides)[k]; > } > } > > return info; >} > > >static Py_ssize_t >_buffer_info_cmp(_buffer_info_t *a, _buffer_info_t *b) >{ > Py_ssize_t c; > int k; > > c = __extension__ ({ size_t __s1_len, __s2_len; (__builtin_constant_p (a->format) && __builtin_constant_p (b->format) && (__s1_len = strlen (a->format), __s2_len = strlen (b->format), (!((size_t)(const void *)((a->format) + 1) - (size_t)(const void *)(a->format) == 1) || __s1_len >= 4) && (!((size_t)(const void *)((b->format) + 1) - (size_t)(const void *)(b->format) == 1) || __s2_len >= 4)) ? __builtin_strcmp (a->format, b->format) : (__builtin_constant_p (a->format) && ((size_t)(const void *)((a->format) + 1) - (size_t)(const void *)(a->format) == 1) && (__s1_len = strlen (a->format), __s1_len < 4) ? (__builtin_constant_p (b->format) && ((size_t)(const void *)((b->format) + 1) - (size_t)(const void *)(b->format) == 1) ? __builtin_strcmp (a->format, b->format) : (__extension__ ({ __const unsigned char *__s2 = (__const unsigned char *) (__const char *) (b->format); register int __result = (((__const unsigned char *) (__const char *) (a->format))[0] - __s2[0]); if (__s1_len > 0 && __result == 0) { __result = (((__const unsigned char *) (__const char *) (a->format))[1] - __s2[1]); if (__s1_len > 1 && __result == 0) { __result = (((__const unsigned char *) (__const char *) (a->format))[2] - __s2[2]); if (__s1_len > 2 && __result == 0) __result = (((__const unsigned char *) (__const char *) (a->format))[3] - __s2[3]); } } __result; }))) : (__builtin_constant_p (b->format) && ((size_t)(const void *)((b->format) + 1) - (size_t)(const void *)(b->format) == 1) && (__s2_len = strlen (b->format), __s2_len < 4) ? (__builtin_constant_p (a->format) && ((size_t)(const void *)((a->format) + 1) - (size_t)(const void *)(a->format) == 1) ? __builtin_strcmp (a->format, b->format) : (__extension__ ({ __const unsigned char *__s1 = (__const unsigned char *) (__const char *) (a->format); register int __result = __s1[0] - ((__const unsigned char *) (__const char *) (b->format))[0]; if (__s2_len > 0 && __result == 0) { __result = (__s1[1] - ((__const unsigned char *) (__const char *) (b->format))[1]); if (__s2_len > 1 && __result == 0) { __result = (__s1[2] - ((__const unsigned char *) (__const char *) (b->format))[2]); if (__s2_len > 2 && __result == 0) __result = (__s1[3] - ((__const unsigned char *) (__const char *) (b->format))[3]); } } __result; }))) : __builtin_strcmp (a->format, b->format)))); }); > if (c != 0) return c; > > c = a->ndim - b->ndim; > if (c != 0) return c; > > for (k = 0; k < a->ndim; ++k) { > c = a->shape[k] - b->shape[k]; > if (c != 0) return c; > c = a->strides[k] - b->strides[k]; > if (c != 0) return c; > } > > return 0; >} > >static void >_buffer_info_free(_buffer_info_t *info) >{ > if (info->format) { > free(info->format); > } > if (info->shape) { > free(info->shape); > } > free(info); >} > > >static _buffer_info_t* >_buffer_get_info(PyObject *arr) >{ > PyObject *key, *item_list, *item; > _buffer_info_t *info = ((void *)0), *old_info = ((void *)0); > > if (_buffer_info_cache == ((void *)0)) { > _buffer_info_cache = PyDict_New(); > if (_buffer_info_cache == ((void *)0)) { > return ((void *)0); > } > } > > > info = _buffer_info_new((PyArrayObject*)arr); > if (info == ((void *)0)) { > return ((void *)0); > } > > > key = PyLong_FromVoidPtr((void*)arr); > item_list = PyDict_GetItem(_buffer_info_cache, key); > > if (item_list != ((void *)0)) { > ( ((PyObject*)(item_list))->ob_refcnt++); > if ((((PyVarObject*)(item_list))->ob_size) > 0) { > item = PyList_GetItem(item_list, (((PyVarObject*)(item_list))->ob_size) - 1); > old_info = (_buffer_info_t*)PyLong_AsVoidPtr(item); > > if (_buffer_info_cmp(info, old_info) == 0) { > _buffer_info_free(info); > info = old_info; > } > } > } > else { > item_list = PyList_New(0); > PyDict_SetItem(_buffer_info_cache, key, item_list); > } > > if (info != old_info) { > > item = PyLong_FromVoidPtr((void*)info); > PyList_Append(item_list, item); > do { if ( --((PyObject*)(item))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(item)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(item)))); } while (0); > } > > do { if ( --((PyObject*)(item_list))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(item_list)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(item_list)))); } while (0); > do { if ( --((PyObject*)(key))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(key)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(key)))); } while (0); > return info; >} > > >static void >_buffer_clear_info(PyObject *arr) >{ > PyObject *key, *item_list, *item; > _buffer_info_t *info; > int k; > > if (_buffer_info_cache == ((void *)0)) { > return; > } > > key = PyLong_FromVoidPtr((void*)arr); > item_list = PyDict_GetItem(_buffer_info_cache, key); > if (item_list != ((void *)0)) { > for (k = 0; k < (((PyVarObject*)(item_list))->ob_size); ++k) { > item = (((PyListObject *)(item_list))->ob_item[k]); > info = (_buffer_info_t*)PyLong_AsVoidPtr(item); > _buffer_info_free(info); > } > PyDict_DelItem(_buffer_info_cache, key); > } > > do { if ( --((PyObject*)(key))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(key)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(key)))); } while (0); >} > > > > > >static int >array_getbuffer(PyObject *obj, Py_buffer *view, int flags) >{ > PyArrayObject *self; > _buffer_info_t *info = ((void *)0); > > self = (PyArrayObject*)obj; > > > if ((flags & (0x0020 | (0x0010 | 0x0008))) == (0x0020 | (0x0010 | 0x0008)) && > !((((PyArrayObject *)(self))->flags & (0x0001)) == (0x0001))) { > PyErr_SetString(PyExc_ValueError, "ndarray is not C-contiguous"); > goto fail; > } > if ((flags & (0x0040 | (0x0010 | 0x0008))) == (0x0040 | (0x0010 | 0x0008)) && > !((((PyArrayObject *)(self))->flags & (0x0002)) == (0x0002))) { > PyErr_SetString(PyExc_ValueError, "ndarray is not Fortran contiguous"); > goto fail; > } > if ((flags & (0x0080 | (0x0010 | 0x0008))) == (0x0080 | (0x0010 | 0x0008)) > && !((((PyArrayObject *)(self))->nd) == 0 || ((((PyArrayObject *)(self))->flags & (0x0001)) == (0x0001)) || ((((PyArrayObject *)(self))->flags & (0x0002)) == (0x0002)))) { > PyErr_SetString(PyExc_ValueError, "ndarray is not contiguous"); > goto fail; > } > if ((flags & (0x0010 | 0x0008)) != (0x0010 | 0x0008) && > (flags & 0x0008) == 0x0008 && > !((((PyArrayObject *)(self))->flags & (0x0001)) == (0x0001))) { > > PyErr_SetString(PyExc_ValueError, "ndarray is not C-contiguous"); > goto fail; > } > if ((flags & 0x0001) == 0x0001 && > !((((PyArrayObject *)(self))->flags & (0x0400)) == (0x0400))) { > PyErr_SetString(PyExc_ValueError, "ndarray is not writeable"); > goto fail; > } > > if (view == ((void *)0)) { > PyErr_SetString(PyExc_ValueError, "NULL view in getbuffer"); > goto fail; > } > > > info = _buffer_get_info(obj); > if (info == ((void *)0)) { > goto fail; > } > > view->buf = ((void *)(((PyArrayObject *)(self))->data)); > view->suboffsets = ((void *)0); > view->itemsize = (((PyArrayObject *)(self))->descr->elsize); > view->readonly = !((((PyArrayObject *)(self))->flags & (0x0400)) == (0x0400)); > view->internal = ((void *)0); > view->len = ((((PyArrayObject *)(self))->descr->elsize) * PyArray_MultiplyList((((PyArrayObject *)(self))->dimensions), (((PyArrayObject *)(self))->nd))); > if ((flags & 0x0004) == 0x0004) { > view->format = info->format; > } else { > view->format = ((void *)0); > } > if ((flags & 0x0008) == 0x0008) { > view->ndim = info->ndim; > view->shape = info->shape; > } > else { > view->ndim = 0; > view->shape = ((void *)0); > } > if ((flags & (0x0010 | 0x0008)) == (0x0010 | 0x0008)) { > view->strides = info->strides; > } > else { > view->strides = ((void *)0); > } > view->obj = (PyObject*)self; > > ( ((PyObject*)(self))->ob_refcnt++); > return 0; > >fail: > return -1; >} ># 682 "numpy/core/src/multiarray/buffer.c" >static void >_array_dealloc_buffer_info(PyArrayObject *self) >{ > int reset_error_state = 0; > PyObject *ptype, *pvalue, *ptraceback; > > > > > > if (PyErr_Occurred()) { > reset_error_state = 1; > PyErr_Fetch(&ptype, &pvalue, &ptraceback); > } > > _buffer_clear_info((PyObject*)self); > > if (reset_error_state) { > PyErr_Restore(ptype, pvalue, ptraceback); > } >} ># 715 "numpy/core/src/multiarray/buffer.c" >static PyBufferProcs array_as_buffer = { > > > (readbufferproc)array_getreadbuf, > (writebufferproc)array_getwritebuf, > (segcountproc)array_getsegcount, > (charbufferproc)array_getcharbuf, ># 730 "numpy/core/src/multiarray/buffer.c" > (getbufferproc)array_getbuffer, > (releasebufferproc)0, > >}; > > > > > > > >static PyArray_Descr* >_descriptor_from_pep3118_format(char *s) >{ > char *buf, *p; > int in_name = 0; > PyObject *descr; > PyObject *str; > PyObject *_numpy_internal; > > if (s == ((void *)0)) { > return PyArray_DescrNewFromType(NPY_BYTE); > } > > > buf = (char*)malloc(strlen(s) + 1); > p = buf; > while (*s != '\0') { > if (*s == ':') { > in_name = !in_name; > *p = *s; > } > else if (in_name || !NumPyOS_ascii_isspace(*s)) { > *p = *s; > } > ++p; > ++s; > } > *p = '\0'; > > str = PyString_FromStringAndSize(buf, strlen(buf)); > free(buf); > if (str == ((void *)0)) { > return ((void *)0); > } > > > _numpy_internal = PyImport_ImportModule("numpy.core._internal"); > if (_numpy_internal == ((void *)0)) { > do { if ( --((PyObject*)(str))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(str)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(str)))); } while (0); > return ((void *)0); > } > descr = _PyObject_CallMethod_SizeT( > _numpy_internal, "_dtype_from_pep3118", "O", str); > do { if ( --((PyObject*)(str))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(str)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(str)))); } while (0); > do { if ( --((PyObject*)(_numpy_internal))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(_numpy_internal)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(_numpy_internal)))); } while (0); > if (descr == ((void *)0)) { > PyErr_Format(PyExc_ValueError, > "'%s' is not a valid PEP 3118 buffer format string", buf); > return ((void *)0); > } > if (!(((PyObject*)(descr))->ob_type==&PyArrayDescr_Type)) { > PyErr_Format(PyExc_RuntimeError, > "internal error: numpy.core._internal._dtype_from_pep3118 " > "did not return a valid dtype, got %s", buf); > return ((void *)0); > } > return (PyArray_Descr*)descr; >} ># 37 "numpy/core/src/multiarray/multiarraymodule_onefile.c" 2 > ># 1 "build/src.linux-x86_64-2.7/numpy/core/src/multiarray/nditer.c" 1 ># 1 "numpy/core/src/multiarray/nditer.c.src" ># 1 "numpy/core/src/multiarray/nditer.c.src" ># 16 "numpy/core/src/multiarray/nditer.c.src" ># 1 "numpy/core/include/numpy/npy_3kcompat.h" 1 ># 17 "numpy/core/src/multiarray/nditer.c.src" 2 ># 1 "numpy/core/src/multiarray/convert_datatype.h" 1 ># 18 "numpy/core/src/multiarray/nditer.c.src" 2 > ># 1 "numpy/core/src/private/lowlevel_strided_loops.h" 1 ># 20 "numpy/core/src/multiarray/nditer.c.src" 2 ># 125 "numpy/core/src/multiarray/nditer.c.src" >struct NpyIter_InternalOnly { > > npy_uint32 itflags; > npy_uint16 ndim, nop; > npy_intp itersize, iterstart, iterend; > > npy_intp iterindex; > > char iter_flexdata; >}; > >typedef struct NpyIter_AD NpyIter_AxisData; >typedef struct NpyIter_BD NpyIter_BufferData; ># 213 "numpy/core/src/multiarray/nditer.c.src" >struct NpyIter_BD { > npy_intp buffersize, size, bufiterend, > reduce_pos, reduce_outersize, reduce_outerdim; > npy_intp bd_flexdata; >}; ># 244 "numpy/core/src/multiarray/nditer.c.src" >struct NpyIter_AD { > npy_intp shape, index; > npy_intp ad_flexdata; >}; ># 285 "numpy/core/src/multiarray/nditer.c.src" >static int >npyiter_check_global_flags(npy_uint32 flags, npy_uint32* itflags); >static int >npyiter_check_op_axes(int nop, int oa_ndim, int **op_axes, > npy_intp *itershape); >static int >npyiter_calculate_ndim(int nop, PyArrayObject **op_in, > int oa_ndim); >static int >npyiter_check_per_op_flags(npy_uint32 flags, char *op_itflags); >static int >npyiter_prepare_one_operand(PyArrayObject **op, > char **op_dataptr, > PyArray_Descr *op_request_dtype, > PyArray_Descr** op_dtype, > npy_uint32 flags, > npy_uint32 op_flags, char *op_itflags); >static int >npyiter_prepare_operands(int nop, PyArrayObject **op_in, > PyArrayObject **op, > char **op_dataptr, > PyArray_Descr **op_request_dtypes, > PyArray_Descr **op_dtype, > npy_uint32 flags, > npy_uint32 *op_flags, char *op_itflags); >static int >npyiter_check_casting(int nop, PyArrayObject **op, > PyArray_Descr **op_dtype, > NPY_CASTING casting, > char *op_itflags); >static int >npyiter_fill_axisdata(NpyIter *iter, npy_uint32 flags, char *op_itflags, > char **op_dataptr, > npy_uint32 *op_flags, int **op_axes, > npy_intp *itershape, > int output_scalars); >static void >npyiter_replace_axisdata(NpyIter *iter, int iop, > PyArrayObject *op, > int op_ndim, char *op_dataptr, > int *op_axes); >static void >npyiter_compute_index_strides(NpyIter *iter, npy_uint32 flags); >static void >npyiter_apply_forced_iteration_order(NpyIter *iter, NPY_ORDER order); > >static void >npyiter_flip_negative_strides(NpyIter *iter); >static void >npyiter_reverse_axis_ordering(NpyIter *iter); >static void >npyiter_find_best_axis_ordering(NpyIter *iter); >static void >npyiter_coalesce_axes(NpyIter *iter); > >static PyArray_Descr * >npyiter_get_common_dtype(int nop, PyArrayObject **op, > char *op_itflags, PyArray_Descr **op_dtype, > PyArray_Descr **op_request_dtypes, > int only_inputs, int output_scalars); > >static PyArrayObject * >npyiter_new_temp_array(NpyIter *iter, PyTypeObject *subtype, > npy_uint32 flags, char *op_itflags, > int op_ndim, npy_intp *shape, > PyArray_Descr *op_dtype, int *op_axes); >static int >npyiter_allocate_arrays(NpyIter *iter, > npy_uint32 flags, > PyArray_Descr **op_dtype, PyTypeObject *subtype, > npy_uint32 *op_flags, char *op_itflags, > int **op_axes, int output_scalars); >static void >npyiter_get_priority_subtype(int nop, PyArrayObject **op, > char *op_itflags, > double *subtype_priority, PyTypeObject **subtype); > >static int >npyiter_allocate_transfer_functions(NpyIter *iter); >static int >npyiter_allocate_buffers(NpyIter *iter, char **errmsg); >static void npyiter_goto_iterindex(NpyIter *iter, npy_intp iterindex); >static void >npyiter_copy_from_buffers(NpyIter *iter); >static void >npyiter_copy_to_buffers(NpyIter *iter, char **prev_dataptrs); >static npy_intp >npyiter_checkreducesize(NpyIter *iter, npy_intp count, > npy_intp *reduce_innersize, > npy_intp *reduce_outerdim); > > > > > >static NpyIter * >NpyIter_AdvancedNew(int nop, PyArrayObject **op_in, npy_uint32 flags, > NPY_ORDER order, NPY_CASTING casting, > npy_uint32 *op_flags, > PyArray_Descr **op_request_dtypes, > int oa_ndim, int **op_axes, npy_intp *itershape, > npy_intp buffersize) >{ > npy_uint32 itflags = 0x0001; > int idim, ndim; > int iop; > > > NpyIter *iter; > > > PyArrayObject **op; > PyArray_Descr **op_dtype; > char *op_itflags; > char **op_dataptr; > > npy_int8 *perm; > NpyIter_BufferData *bufferdata = ((void *)0); > int any_allocate = 0, any_missing_dtypes = 0, > output_scalars = 0, need_subtype = 0; > > > double subtype_priority = 0.0; > PyTypeObject *subtype = &PyArray_Type; ># 430 "numpy/core/src/multiarray/nditer.c.src" > ; > > if (nop > 32) { > PyErr_Format(PyExc_ValueError, > "Cannot construct an iterator with more than %d operands " > "(%d were requested)", (int)32, (int)nop); > return ((void *)0); > } > > > if (!npyiter_check_op_axes(nop, oa_ndim, op_axes, itershape)) { > return ((void *)0); > } > > ; > > > if (!npyiter_check_global_flags(flags, &itflags)) { > return ((void *)0); > } > > ; > > > ndim = npyiter_calculate_ndim(nop, op_in, oa_ndim); > > > if (ndim == 0) { > output_scalars = 1; > ndim = 1; > } > > ; > > > iter = (NpyIter*) > PyMem_Malloc(( sizeof(struct NpyIter_InternalOnly) + ((((((((0) + ((32 + 0x7)&(-0x8))) + ((8)*(nop))) + ((8)*(nop+1))) + ((8)*(nop+1))) + ((8)*(nop))) + (((nop + 0x7)&(-0x8)))) + ((itflags&0x0080) ? ((8)*(6 + 9*nop)) : 0)) + (( 1 + 1 + 2*((nop)+1) )*8 )*(ndim))); > > ; > > > ((iter)->itflags) = itflags; > ((iter)->ndim) = ndim; > ((iter)->nop) = nop; > (iter->iterindex) = 0; > memset(((npy_intp *)( &(iter)->iter_flexdata + ((((0) + ((32 + 0x7)&(-0x8))) + ((8)*(nop))) + ((8)*(nop+1))))), 0, (nop+1)*8); > > op = ((PyArrayObject **)( &(iter)->iter_flexdata + (((((0) + ((32 + 0x7)&(-0x8))) + ((8)*(nop))) + ((8)*(nop+1))) + ((8)*(nop+1))))); > op_dtype = ((PyArray_Descr **)( &(iter)->iter_flexdata + ((0) + ((32 + 0x7)&(-0x8))))); > op_itflags = ( &(iter)->iter_flexdata + ((((((0) + ((32 + 0x7)&(-0x8))) + ((8)*(nop))) + ((8)*(nop+1))) + ((8)*(nop+1))) + ((8)*(nop)))); > op_dataptr = ((char **)( &(iter)->iter_flexdata + (((0) + ((32 + 0x7)&(-0x8))) + ((8)*(nop))))); > > > if (!npyiter_prepare_operands(nop, op_in, op, op_dataptr, > op_request_dtypes, op_dtype, > flags, > op_flags, op_itflags)) { > PyMem_Free(iter); > return ((void *)0); > } > > op_dataptr[nop] = 0; > > ; > > > > > > if (itflags&0x0080) { > bufferdata = ((NpyIter_BufferData *)( &(iter)->iter_flexdata + (((((((0) + ((32 + 0x7)&(-0x8))) + ((8)*(nop))) + ((8)*(nop+1))) + ((8)*(nop+1))) + ((8)*(nop))) + (((nop + 0x7)&(-0x8)))))); > ((bufferdata)->size) = 0; > memset(((char **) (&(bufferdata)->bd_flexdata + 8*(nop))), 0, nop*8); > memset(((void **) (&(bufferdata)->bd_flexdata + 5*(nop))), 0, nop*8); > memset(((void **) (&(bufferdata)->bd_flexdata + 7*(nop))), 0, nop*8); > } > > > if (!npyiter_fill_axisdata(iter, flags, op_itflags, op_dataptr, > op_flags, op_axes, itershape, > output_scalars)) { > NpyIter_Deallocate(iter); > return ((void *)0); > } > > ; > > if (itflags&0x0080) { > > > > > > if (buffersize <= 0) { > buffersize = 8192; > } > > if (buffersize > (iter->itersize)) { > buffersize = (iter->itersize); > } > ((bufferdata)->buffersize) = buffersize; > } > > > > > > > npyiter_compute_index_strides(iter, flags); > > ; > > > perm = ((npy_int8 *)( &(iter)->iter_flexdata + (0))); > for(idim = 0; idim < ndim; ++idim) { > perm[idim] = (npy_int8)idim; > } > > > > > npyiter_apply_forced_iteration_order(iter, order); > itflags = ((iter)->itflags); > > ; > > > for (iop = 0; iop < nop; ++iop) { > if (op[iop] == ((void *)0)) { > > any_allocate = 1; > > if (!(op_flags[iop]&0x02000000)) { > need_subtype = 1; > } > > > > > if (op_dtype[iop] == ((void *)0)) { > any_missing_dtypes = 1; > } > } > } > > > > > > if (!(itflags&0x0010)) { > if (ndim > 1) { > npyiter_find_best_axis_ordering(iter); > } > > > > > if (!any_allocate && !(flags&0x00001000)) { > npyiter_flip_negative_strides(iter); > } > itflags = ((iter)->itflags); > } > > ; > > if (need_subtype) { > npyiter_get_priority_subtype(nop, op, op_itflags, > &subtype_priority, &subtype); > } > > ; > > > > > > if (any_missing_dtypes || (flags&0x00000010)) { > PyArray_Descr *dtype; > int only_inputs = !(flags&0x00000010); > > op = ((PyArrayObject **)( &(iter)->iter_flexdata + (((((0) + ((32 + 0x7)&(-0x8))) + ((8)*(nop))) + ((8)*(nop+1))) + ((8)*(nop+1))))); > op_dtype = ((PyArray_Descr **)( &(iter)->iter_flexdata + ((0) + ((32 + 0x7)&(-0x8))))); > > dtype = npyiter_get_common_dtype(nop, op, > op_itflags, op_dtype, > op_request_dtypes, > only_inputs, > output_scalars); > if (dtype == ((void *)0)) { > NpyIter_Deallocate(iter); > return ((void *)0); > } > if (flags&0x00000010) { > ; > > for (iop = 0; iop < nop; ++iop) { > if (op_dtype[iop] != dtype) { > do { if ((op_dtype[iop]) == ((void *)0)) ; else do { if ( --((PyObject*)(op_dtype[iop]))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(op_dtype[iop])))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(op_dtype[iop])))); } while (0); } while (0); > ( ((PyObject*)(dtype))->ob_refcnt++); > op_dtype[iop] = dtype; > } > } > } > else { > ; > > for (iop = 0; iop < nop; ++iop) { > if (op_dtype[iop] == ((void *)0)) { > ( ((PyObject*)(dtype))->ob_refcnt++); > op_dtype[iop] = dtype; > } > } > } > do { if ( --((PyObject*)(dtype))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(dtype)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(dtype)))); } while (0); > } > > ; > > > > > > > if (!npyiter_check_casting(nop, op, op_dtype, casting, op_itflags)) { > NpyIter_Deallocate(iter); > return ((void *)0); > } > > ; > > > > > > > > if (!npyiter_allocate_arrays(iter, flags, op_dtype, subtype, op_flags, > op_itflags, op_axes, output_scalars)) { > NpyIter_Deallocate(iter); > return ((void *)0); > } > > ; > > > > > > if (ndim > 1 && !(itflags&0x0008)) { > npyiter_coalesce_axes(iter); > > > > > itflags = ((iter)->itflags); > ndim = ((iter)->ndim); > op = ((PyArrayObject **)( &(iter)->iter_flexdata + (((((0) + ((32 + 0x7)&(-0x8))) + ((8)*(nop))) + ((8)*(nop+1))) + ((8)*(nop+1))))); > op_dtype = ((PyArray_Descr **)( &(iter)->iter_flexdata + ((0) + ((32 + 0x7)&(-0x8))))); > op_itflags = ( &(iter)->iter_flexdata + ((((((0) + ((32 + 0x7)&(-0x8))) + ((8)*(nop))) + ((8)*(nop+1))) + ((8)*(nop+1))) + ((8)*(nop)))); > op_dataptr = ((char **)( &(iter)->iter_flexdata + (((0) + ((32 + 0x7)&(-0x8))) + ((8)*(nop))))); > } > > ; > > > > > > if (!(itflags&0x0080)) { > NpyIter_AxisData *axisdata = ((NpyIter_AxisData *)( &(iter)->iter_flexdata + ((((((((0) + ((32 + 0x7)&(-0x8))) + ((8)*(nop))) + ((8)*(nop+1))) + ((8)*(nop+1))) + ((8)*(nop))) + (((nop + 0x7)&(-0x8)))) + ((itflags&0x0080) ? ((8)*(6 + 9*nop)) : 0)))); > if (itflags&0x0020) { > if ((iter->itersize) == ((axisdata)->shape)) { > ((iter)->itflags) |= 0x0200; > } > } > else if ((iter->itersize) == 1) { > ((iter)->itflags) |= 0x0200; > } > } > > > > > > if (flags&0x00000020) { > for (iop = 0; iop < nop; ++iop) { > PyArray_Descr *rdt = op_dtype[iop]; > if ((rdt->flags&(0x01| > 0x04| > 0x10)) != 0) { > > ((iter)->itflags) |= 0x0800; > } > } > } > > > if (itflags&0x0080) { > if (!npyiter_allocate_transfer_functions(iter)) { > NpyIter_Deallocate(iter); > return ((void *)0); > } > if (itflags&0x0400) { > bufferdata = ((NpyIter_BufferData *)( &(iter)->iter_flexdata + (((((((0) + ((32 + 0x7)&(-0x8))) + ((8)*(nop))) + ((8)*(nop+1))) + ((8)*(nop+1))) + ((8)*(nop))) + (((nop + 0x7)&(-0x8)))))); > > memset(((char **) (&(bufferdata)->bd_flexdata + 1*(nop))), 0, nop*8); > } > else { > > if (!npyiter_allocate_buffers(iter, ((void *)0))) { > NpyIter_Deallocate(iter); > return ((void *)0); > } > > > npyiter_copy_to_buffers(iter, ((void *)0)); > } > } > > ; ># 772 "numpy/core/src/multiarray/nditer.c.src" > return iter; >} > > > > > >static NpyIter * >NpyIter_MultiNew(int nop, PyArrayObject **op_in, npy_uint32 flags, > NPY_ORDER order, NPY_CASTING casting, > npy_uint32 *op_flags, > PyArray_Descr **op_request_dtypes) >{ > return NpyIter_AdvancedNew(nop, op_in, flags, order, casting, > op_flags, op_request_dtypes, > 0, ((void *)0), ((void *)0), 0); >} > > > > >static NpyIter * >NpyIter_New(PyArrayObject *op, npy_uint32 flags, > NPY_ORDER order, NPY_CASTING casting, > PyArray_Descr* dtype) >{ > > npy_uint32 op_flags = flags&0xffff0000; > flags &= 0x0000ffff; > > return NpyIter_AdvancedNew(1, &op, flags, order, casting, > &op_flags, &dtype, > 0, ((void *)0), ((void *)0), 0); >} > > > > >static NpyIter * >NpyIter_Copy(NpyIter *iter) >{ > npy_uint32 itflags = ((iter)->itflags); > int ndim = ((iter)->ndim); > int iop, nop = ((iter)->nop); > int out_of_memory = 0; > > npy_intp size; > NpyIter *newiter; > PyArrayObject **objects; > PyArray_Descr **dtypes; > > > size = ( sizeof(struct NpyIter_InternalOnly) + ((((((((0) + ((32 + 0x7)&(-0x8))) + ((8)*(nop))) + ((8)*(nop+1))) + ((8)*(nop+1))) + ((8)*(nop))) + (((nop + 0x7)&(-0x8)))) + ((itflags&0x0080) ? ((8)*(6 + 9*nop)) : 0)) + (( 1 + 1 + 2*((nop)+1) )*8 )*(ndim)); > newiter = (NpyIter*)PyMem_Malloc(size); > > > memcpy(newiter, iter, size); > > > objects = ((PyArrayObject **)( &(newiter)->iter_flexdata + (((((0) + ((32 + 0x7)&(-0x8))) + ((8)*(nop))) + ((8)*(nop+1))) + ((8)*(nop+1))))); > dtypes = ((PyArray_Descr **)( &(newiter)->iter_flexdata + ((0) + ((32 + 0x7)&(-0x8))))); > for (iop = 0; iop < nop; ++iop) { > ( ((PyObject*)(objects[iop]))->ob_refcnt++); > ( ((PyObject*)(dtypes[iop]))->ob_refcnt++); > } > > > if (itflags&0x0080) { > NpyIter_BufferData *bufferdata; > npy_intp buffersize, itemsize; > char **buffers; > void **readtransferdata, **writetransferdata; > > bufferdata = ((NpyIter_BufferData *)( &(newiter)->iter_flexdata + (((((((0) + ((32 + 0x7)&(-0x8))) + ((8)*(nop))) + ((8)*(nop+1))) + ((8)*(nop+1))) + ((8)*(nop))) + (((nop + 0x7)&(-0x8)))))); > buffers = ((char **) (&(bufferdata)->bd_flexdata + 8*(nop))); > readtransferdata = ((void **) (&(bufferdata)->bd_flexdata + 5*(nop))); > writetransferdata = ((void **) (&(bufferdata)->bd_flexdata + 7*(nop))); > buffersize = ((bufferdata)->buffersize); > > for (iop = 0; iop < nop; ++iop) { > if (buffers[iop] != ((void *)0)) { > if (out_of_memory) { > buffers[iop] = ((void *)0); > } > else { > itemsize = dtypes[iop]->elsize; > buffers[iop] = PyMem_Malloc(itemsize*buffersize); > if (buffers[iop] == ((void *)0)) { > out_of_memory = 1; > } > } > } > > if (readtransferdata[iop] != ((void *)0)) { > if (out_of_memory) { > readtransferdata[iop] = ((void *)0); > } > else { > readtransferdata[iop] = > PyArray_CopyStridedTransferData(readtransferdata[iop]); > if (readtransferdata[iop] == ((void *)0)) { > out_of_memory = 1; > } > } > } > > if (writetransferdata[iop] != ((void *)0)) { > if (out_of_memory) { > writetransferdata[iop] = ((void *)0); > } > else { > writetransferdata[iop] = > PyArray_CopyStridedTransferData(writetransferdata[iop]); > if (writetransferdata[iop] == ((void *)0)) { > out_of_memory = 1; > } > } > } > } > > > if (!out_of_memory && ((bufferdata)->size) > 0) { > npyiter_goto_iterindex(newiter, (newiter->iterindex)); > > > npyiter_copy_to_buffers(newiter, ((void *)0)); > } > } > > if (out_of_memory) { > NpyIter_Deallocate(newiter); > PyErr_NoMemory(); > return ((void *)0); > } > > return newiter; >} > > > > >static int >NpyIter_Deallocate(NpyIter *iter) >{ > npy_uint32 itflags = ((iter)->itflags); > > int iop, nop = ((iter)->nop); > > PyArray_Descr **dtype = ((PyArray_Descr **)( &(iter)->iter_flexdata + ((0) + ((32 + 0x7)&(-0x8))))); > PyArrayObject **object = ((PyArrayObject **)( &(iter)->iter_flexdata + (((((0) + ((32 + 0x7)&(-0x8))) + ((8)*(nop))) + ((8)*(nop+1))) + ((8)*(nop+1))))); > > > if (itflags&0x0080) { > NpyIter_BufferData *bufferdata = ((NpyIter_BufferData *)( &(iter)->iter_flexdata + (((((((0) + ((32 + 0x7)&(-0x8))) + ((8)*(nop))) + ((8)*(nop+1))) + ((8)*(nop+1))) + ((8)*(nop))) + (((nop + 0x7)&(-0x8)))))); > char **buffers; > void **transferdata; > > > buffers = ((char **) (&(bufferdata)->bd_flexdata + 8*(nop))); > for(iop = 0; iop < nop; ++iop, ++buffers) { > if (*buffers) { > PyMem_Free(*buffers); > } > } > > transferdata = ((void **) (&(bufferdata)->bd_flexdata + 5*(nop))); > for(iop = 0; iop < nop; ++iop, ++transferdata) { > if (*transferdata) { > PyArray_FreeStridedTransferData(*transferdata); > } > } > > transferdata = ((void **) (&(bufferdata)->bd_flexdata + 7*(nop))); > for(iop = 0; iop < nop; ++iop, ++transferdata) { > if (*transferdata) { > PyArray_FreeStridedTransferData(*transferdata); > } > } > } > > > for(iop = 0; iop < nop; ++iop, ++dtype, ++object) { > do { if ((*dtype) == ((void *)0)) ; else do { if ( --((PyObject*)(*dtype))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(*dtype)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(*dtype)))); } while (0); } while (0); > do { if ((*object) == ((void *)0)) ; else do { if ( --((PyObject*)(*object))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(*object)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(*object)))); } while (0); } while (0); > } > > > PyMem_Free(iter); > > return 1; >} ># 971 "numpy/core/src/multiarray/nditer.c.src" >static int >NpyIter_RemoveAxis(NpyIter *iter, int axis) >{ > npy_uint32 itflags = ((iter)->itflags); > int idim, ndim = ((iter)->ndim); > int iop, nop = ((iter)->nop); > > int xdim = 0; > npy_int8 *perm = ((npy_int8 *)( &(iter)->iter_flexdata + (0))); > NpyIter_AxisData *axisdata_del = ((NpyIter_AxisData *)( &(iter)->iter_flexdata + ((((((((0) + ((32 + 0x7)&(-0x8))) + ((8)*(nop))) + ((8)*(nop+1))) + ((8)*(nop+1))) + ((8)*(nop))) + (((nop + 0x7)&(-0x8)))) + ((itflags&0x0080) ? ((8)*(6 + 9*nop)) : 0)))), *axisdata; > npy_intp sizeof_axisdata = (( 1 + 1 + 2*((nop)+1) )*8 ); > > npy_intp *baseoffsets = ((npy_intp *)( &(iter)->iter_flexdata + ((((0) + ((32 + 0x7)&(-0x8))) + ((8)*(nop))) + ((8)*(nop+1))))); > char **resetdataptr = ((char **)( &(iter)->iter_flexdata + (((0) + ((32 + 0x7)&(-0x8))) + ((8)*(nop))))); > > if (!(itflags&0x0008)) { > PyErr_SetString(PyExc_RuntimeError, > "Iterator RemoveAxis may only be called " > "if a multi-index is being tracked"); > return 0; > } > else if (itflags&0x0004) { > PyErr_SetString(PyExc_RuntimeError, > "Iterator RemoveAxis may not be called on " > "an index is being tracked"); > return 0; > } > else if (itflags&0x0080) { > PyErr_SetString(PyExc_RuntimeError, > "Iterator RemoveAxis may not be called on " > "a buffered iterator"); > return 0; > } > else if (axis < 0 || axis >= ndim) { > PyErr_SetString(PyExc_ValueError, > "axis out of bounds in iterator RemoveAxis"); > return 0; > } > > > axis = ndim - 1 - axis; > > > for (idim = 0; idim < ndim; ++idim) { > > if (perm[idim] == axis) { > xdim = idim; > break; > } > > else if (-1 - perm[idim] == axis) { > npy_intp *strides = ( &(axisdata_del)->ad_flexdata + 0); > npy_intp shape = ((axisdata_del)->shape), offset; > > xdim = idim; > > > > > > for (iop = 0; iop < nop; ++iop) { > offset = (shape-1)*strides[iop]; > baseoffsets[iop] += offset; > resetdataptr[iop] += offset; > } > break; > } > > axisdata_del = ((NpyIter_AxisData *) (((char *)(axisdata_del)) + (1)*sizeof_axisdata)); > } > > if (idim == ndim) { > PyErr_SetString(PyExc_RuntimeError, > "internal error in iterator perm"); > return 0; > } > > if (((axisdata_del)->shape) == 0) { > PyErr_SetString(PyExc_ValueError, > "cannot remove a zero-sized axis from an iterator"); > return 0; > } > > > for (idim = 0; idim < ndim-1; ++idim) { > npy_int8 p = (idim < xdim) ? perm[idim] : perm[idim+1]; > if (p >= 0) { > if (p > axis) { > --p; > } > } > else if (p <= 0) { > if (p < -1-axis) { > ++p; > } > } > perm[idim] = p; > } > > > (iter->itersize) /= ((axisdata_del)->shape); > > > axisdata = ((NpyIter_AxisData *) (((char *)(axisdata_del)) + (1)*sizeof_axisdata)); > memmove(axisdata_del, axisdata, (ndim-1-xdim)*sizeof_axisdata); > > > if (ndim > 1) { > ((iter)->ndim) = ndim-1; > } > > else { > npy_intp *strides = ( &(axisdata_del)->ad_flexdata + 0); > ((axisdata_del)->shape) = 1; > for (iop = 0; iop < nop; ++iop) { > strides[iop] = 0; > } > ((iter)->itflags) |= 0x0200; > } > > return NpyIter_Reset(iter, ((void *)0)); >} > > > > > > >static int >NpyIter_RemoveMultiIndex(NpyIter *iter) >{ > npy_uint32 itflags; > > > if (NpyIter_Reset(iter, ((void *)0)) != 1) { > return 0; > } > > itflags = ((iter)->itflags); > if (itflags&0x0008) { > ((iter)->itflags) = itflags & ~0x0008; > npyiter_coalesce_axes(iter); > } > > return 1; >} > > > > >static int >NpyIter_EnableExternalLoop(NpyIter *iter) >{ > npy_uint32 itflags = ((iter)->itflags); > > int nop = ((iter)->nop); > > > if (itflags&(0x0004|0x0008)) { > PyErr_SetString(PyExc_ValueError, > "Iterator flag EXTERNAL_LOOP cannot be used " > "if an index or multi-index is being tracked"); > return 0; > } > if ((itflags&(0x0080|0x0040|0x0020)) > == (0x0040|0x0020)) { > PyErr_SetString(PyExc_ValueError, > "Iterator flag EXTERNAL_LOOP cannot be used " > "with ranged iteration unless buffering is also enabled"); > return 0; > } > > if (!(itflags&0x0020)) { > itflags |= 0x0020; > ((iter)->itflags) = itflags; > > > > > > if (!(itflags&0x0080)) { > NpyIter_AxisData *axisdata = ((NpyIter_AxisData *)( &(iter)->iter_flexdata + ((((((((0) + ((32 + 0x7)&(-0x8))) + ((8)*(nop))) + ((8)*(nop+1))) + ((8)*(nop+1))) + ((8)*(nop))) + (((nop + 0x7)&(-0x8)))) + ((itflags&0x0080) ? ((8)*(6 + 9*nop)) : 0)))); > if ((iter->itersize) == ((axisdata)->shape)) { > ((iter)->itflags) |= 0x0200; > } > } > } > > > return NpyIter_Reset(iter, ((void *)0)); >} ># 1171 "numpy/core/src/multiarray/nditer.c.src" >static int >NpyIter_Reset(NpyIter *iter, char **errmsg) >{ > npy_uint32 itflags = ((iter)->itflags); > > int nop = ((iter)->nop); > > if (itflags&0x0080) { > NpyIter_BufferData *bufferdata; > > > if (itflags&0x0400) { > if (!npyiter_allocate_buffers(iter, errmsg)) { > return 0; > } > ((iter)->itflags) &= ~0x0400; > } > else { > > > > > bufferdata = ((NpyIter_BufferData *)( &(iter)->iter_flexdata + (((((((0) + ((32 + 0x7)&(-0x8))) + ((8)*(nop))) + ((8)*(nop+1))) + ((8)*(nop+1))) + ((8)*(nop))) + (((nop + 0x7)&(-0x8)))))); > if ((iter->iterindex) == (iter->iterstart) && > ((bufferdata)->bufiterend) <= (iter->iterend) && > ((bufferdata)->size) > 0) { > return 1; > } > > > npyiter_copy_from_buffers(iter); > } > } > > npyiter_goto_iterindex(iter, (iter->iterstart)); > > if (itflags&0x0080) { > > npyiter_copy_to_buffers(iter, ((void *)0)); > } > > return 1; >} ># 1223 "numpy/core/src/multiarray/nditer.c.src" >static int >NpyIter_ResetBasePointers(NpyIter *iter, char **baseptrs, char **errmsg) >{ > npy_uint32 itflags = ((iter)->itflags); > > int iop, nop = ((iter)->nop); > > char **resetdataptr = ((char **)( &(iter)->iter_flexdata + (((0) + ((32 + 0x7)&(-0x8))) + ((8)*(nop))))); > npy_intp *baseoffsets = ((npy_intp *)( &(iter)->iter_flexdata + ((((0) + ((32 + 0x7)&(-0x8))) + ((8)*(nop))) + ((8)*(nop+1))))); > > if (itflags&0x0080) { > > if (itflags&0x0400) { > if (!npyiter_allocate_buffers(iter, errmsg)) { > return 0; > } > ((iter)->itflags) &= ~0x0400; > } > else { > > npyiter_copy_from_buffers(iter); > } > } > > > for (iop = 0; iop < nop; ++iop) { > resetdataptr[iop] = baseptrs[iop] + baseoffsets[iop]; > } > > npyiter_goto_iterindex(iter, (iter->iterstart)); > > if (itflags&0x0080) { > > npyiter_copy_to_buffers(iter, ((void *)0)); > } > > return 1; >} ># 1270 "numpy/core/src/multiarray/nditer.c.src" >static int >NpyIter_ResetToIterIndexRange(NpyIter *iter, > npy_intp istart, npy_intp iend, char **errmsg) >{ > npy_uint32 itflags = ((iter)->itflags); > > > > if (!(itflags&0x0040)) { > if (errmsg == ((void *)0)) { > PyErr_SetString(PyExc_ValueError, > "Cannot call ResetToIterIndexRange on an iterator without " > "requesting ranged iteration support in the constructor"); > } > else { > *errmsg = "Cannot call ResetToIterIndexRange on an iterator " > "without requesting ranged iteration support in the " > "constructor"; > } > return 0; > } > > if (istart < 0 || iend > (iter->itersize)) { > if (errmsg == ((void *)0)) { > PyErr_Format(PyExc_ValueError, > "Out-of-bounds range [%d, %d) passed to " > "ResetToIterIndexRange", (int)istart, (int)iend); > } > else { > *errmsg = "Out-of-bounds range passed to ResetToIterIndexRange"; > } > return 0; > } > else if (iend < istart) { > if (errmsg == ((void *)0)) { > PyErr_Format(PyExc_ValueError, > "Invalid range [%d, %d) passed to ResetToIterIndexRange", > (int)istart, (int)iend); > } > else { > *errmsg = "Invalid range passed to ResetToIterIndexRange"; > } > return 0; > } > > (iter->iterstart) = istart; > (iter->iterend) = iend; > > return NpyIter_Reset(iter, errmsg); >} ># 1329 "numpy/core/src/multiarray/nditer.c.src" >static int >NpyIter_GotoMultiIndex(NpyIter *iter, npy_intp *multi_index) >{ > npy_uint32 itflags = ((iter)->itflags); > int idim, ndim = ((iter)->ndim); > int nop = ((iter)->nop); > > npy_intp iterindex, factor; > NpyIter_AxisData *axisdata; > npy_intp sizeof_axisdata; > npy_int8 *perm; > > if (!(itflags&0x0008)) { > PyErr_SetString(PyExc_ValueError, > "Cannot call GotoMultiIndex on an iterator without " > "requesting a multi-index in the constructor"); > return 0; > } > > if (itflags&0x0080) { > PyErr_SetString(PyExc_ValueError, > "Cannot call GotoMultiIndex on an iterator which " > "is buffered"); > return 0; > } > > if (itflags&0x0020) { > PyErr_SetString(PyExc_ValueError, > "Cannot call GotoMultiIndex on an iterator which " > "has the flag EXTERNAL_LOOP"); > return 0; > } > > perm = ((npy_int8 *)( &(iter)->iter_flexdata + (0))); > axisdata = ((NpyIter_AxisData *)( &(iter)->iter_flexdata + ((((((((0) + ((32 + 0x7)&(-0x8))) + ((8)*(nop))) + ((8)*(nop+1))) + ((8)*(nop+1))) + ((8)*(nop))) + (((nop + 0x7)&(-0x8)))) + ((itflags&0x0080) ? ((8)*(6 + 9*nop)) : 0)))); > sizeof_axisdata = (( 1 + 1 + 2*((nop)+1) )*8 ); > > > iterindex = 0; > factor = 1; > for (idim = 0; idim < ndim; ++idim) { > npy_int8 p = perm[idim]; > npy_intp i, shape; > > shape = ((axisdata)->shape); > if (p < 0) { > > i = shape - multi_index[ndim+p] - 1; > } > else { > i = multi_index[ndim-p-1]; > } > > > if (i >= 0 && i < shape) { > iterindex += factor * i; > factor *= shape; > } > else { > PyErr_SetString(PyExc_IndexError, > "Iterator GotoMultiIndex called with an out-of-bounds " > "multi-index"); > return 0; > } > > axisdata = ((NpyIter_AxisData *) (((char *)(axisdata)) + (1)*sizeof_axisdata)); > } > > if (iterindex < (iter->iterstart) || iterindex >= (iter->iterend)) { > PyErr_SetString(PyExc_IndexError, > "Iterator GotoMultiIndex called with a multi-index outside the " > "restricted iteration range"); > return 0; > } > > npyiter_goto_iterindex(iter, iterindex); > > return 1; >} > > > > > > > >static int >NpyIter_GotoIndex(NpyIter *iter, npy_intp flat_index) >{ > npy_uint32 itflags = ((iter)->itflags); > int idim, ndim = ((iter)->ndim); > int nop = ((iter)->nop); > > npy_intp iterindex, factor; > NpyIter_AxisData *axisdata; > npy_intp sizeof_axisdata; > > if (!(itflags&0x0004)) { > PyErr_SetString(PyExc_ValueError, > "Cannot call GotoIndex on an iterator without " > "requesting a C or Fortran index in the constructor"); > return 0; > } > > if (itflags&0x0080) { > PyErr_SetString(PyExc_ValueError, > "Cannot call GotoIndex on an iterator which " > "is buffered"); > return 0; > } > > if (itflags&0x0020) { > PyErr_SetString(PyExc_ValueError, > "Cannot call GotoIndex on an iterator which " > "has the flag EXTERNAL_LOOP"); > return 0; > } > > if (flat_index < 0 || flat_index >= (iter->itersize)) { > PyErr_SetString(PyExc_IndexError, > "Iterator GotoIndex called with an out-of-bounds " > "index"); > return 0; > } > > axisdata = ((NpyIter_AxisData *)( &(iter)->iter_flexdata + ((((((((0) + ((32 + 0x7)&(-0x8))) + ((8)*(nop))) + ((8)*(nop+1))) + ((8)*(nop+1))) + ((8)*(nop))) + (((nop + 0x7)&(-0x8)))) + ((itflags&0x0080) ? ((8)*(6 + 9*nop)) : 0)))); > sizeof_axisdata = (( 1 + 1 + 2*((nop)+1) )*8 ); > > > iterindex = 0; > factor = 1; > for (idim = 0; idim < ndim; ++idim) { > npy_intp i, shape, iterstride; > > iterstride = ( &(axisdata)->ad_flexdata + 0)[nop]; > shape = ((axisdata)->shape); > > > if (iterstride == 0) { > i = 0; > } > else if (iterstride < 0) { > i = shape - (flat_index/(-iterstride))%shape - 1; > } > else { > i = (flat_index/iterstride)%shape; > } > > > iterindex += factor * i; > factor *= shape; > > axisdata = ((NpyIter_AxisData *) (((char *)(axisdata)) + (1)*sizeof_axisdata)); > } > > > if (iterindex < (iter->iterstart) || iterindex >= (iter->iterend)) { > PyErr_SetString(PyExc_IndexError, > "Iterator GotoIndex called with an index outside the " > "restricted iteration range."); > return 0; > } > > npyiter_goto_iterindex(iter, iterindex); > > return 1; >} > > > > > > > >static int >NpyIter_GotoIterIndex(NpyIter *iter, npy_intp iterindex) >{ > npy_uint32 itflags = ((iter)->itflags); > > int iop, nop = ((iter)->nop); > > if (itflags&0x0020) { > PyErr_SetString(PyExc_ValueError, > "Cannot call GotoIterIndex on an iterator which " > "has the flag EXTERNAL_LOOP"); > return 0; > } > > if (iterindex < (iter->iterstart) || iterindex >= (iter->iterend)) { > PyErr_SetString(PyExc_IndexError, > "Iterator GotoIterIndex called with an iterindex outside the " > "iteration range."); > return 0; > } > > if (itflags&0x0080) { > NpyIter_BufferData *bufferdata = ((NpyIter_BufferData *)( &(iter)->iter_flexdata + (((((((0) + ((32 + 0x7)&(-0x8))) + ((8)*(nop))) + ((8)*(nop+1))) + ((8)*(nop+1))) + ((8)*(nop))) + (((nop + 0x7)&(-0x8)))))); > npy_intp bufiterend, size; > > size = ((bufferdata)->size); > bufiterend = ((bufferdata)->bufiterend); > > if (!(itflags&0x1000) && iterindex < bufiterend && > iterindex >= bufiterend - size) { > npy_intp *strides, delta; > char **ptrs; > > strides = ( &(bufferdata)->bd_flexdata + 0); > ptrs = ((char **) (&(bufferdata)->bd_flexdata + 1*(nop))); > delta = iterindex - (iter->iterindex); > > for (iop = 0; iop < nop; ++iop) { > ptrs[iop] += delta * strides[iop]; > } > > (iter->iterindex) = iterindex; > } > > else { > > npyiter_copy_from_buffers(iter); > > npyiter_goto_iterindex(iter, iterindex); > > > npyiter_copy_to_buffers(iter, ((void *)0)); > } > } > else { > npyiter_goto_iterindex(iter, iterindex); > } > > return 1; >} > > > > >static npy_intp >NpyIter_GetIterIndex(NpyIter *iter) >{ > npy_uint32 itflags = ((iter)->itflags); > int idim, ndim = ((iter)->ndim); > int nop = ((iter)->nop); > > > if (itflags&(0x0040|0x0080)) { > return (iter->iterindex); > } > else { > npy_intp iterindex; > NpyIter_AxisData *axisdata; > npy_intp sizeof_axisdata; > > iterindex = 0; > sizeof_axisdata = (( 1 + 1 + 2*((nop)+1) )*8 ); > axisdata = ((NpyIter_AxisData *) (((char *)(((NpyIter_AxisData *)( &(iter)->iter_flexdata + ((((((((0) + ((32 + 0x7)&(-0x8))) + ((8)*(nop))) + ((8)*(nop+1))) + ((8)*(nop+1))) + ((8)*(nop))) + (((nop + 0x7)&(-0x8)))) + ((itflags&0x0080) ? ((8)*(6 + 9*nop)) : 0)))))) + (ndim-1)*sizeof_axisdata)); > > for (idim = ndim-2; idim >= 0; --idim) { > iterindex += ((axisdata)->index); > axisdata = ((NpyIter_AxisData *) (((char *)(axisdata)) + (-1)*sizeof_axisdata)); > iterindex *= ((axisdata)->shape); > } > iterindex += ((axisdata)->index); > > return iterindex; > } >} ># 1608 "numpy/core/src/multiarray/nditer.c.src" ># 1612 "numpy/core/src/multiarray/nditer.c.src" ># 1616 "numpy/core/src/multiarray/nditer.c.src" > > >static int >npyiter_iternext_itflags0_dims1_iters1( > NpyIter *iter) >{ > > const npy_uint32 itflags = 0; > > > > > const int nop = 1; > > > > > NpyIter_AxisData *axisdata0; > npy_intp istrides, nstrides = ((nop) + ((itflags&0x0004) ? 1 : 0)); ># 1656 "numpy/core/src/multiarray/nditer.c.src" > axisdata0 = ((NpyIter_AxisData *)( &(iter)->iter_flexdata + ((((((((0) + ((32 + 0x7)&(-0x8))) + ((8)*(nop))) + ((8)*(nop+1))) + ((8)*(nop+1))) + ((8)*(nop))) + (((nop + 0x7)&(-0x8)))) + ((itflags&0x0080) ? ((8)*(6 + 9*nop)) : 0)))); > > > > ((axisdata0)->index)++; > > for (istrides = 0; istrides < nstrides; ++istrides) { > ((char **) &(axisdata0)->ad_flexdata + 1*(nop+1))[istrides] += ( &(axisdata0)->ad_flexdata + 0)[istrides]; > } > > > > > > > return ((axisdata0)->index) < ((axisdata0)->shape); ># 1759 "numpy/core/src/multiarray/nditer.c.src" >} ># 1616 "numpy/core/src/multiarray/nditer.c.src" > > >static int >npyiter_iternext_itflags0_dims1_iters2( > NpyIter *iter) >{ > > const npy_uint32 itflags = 0; > > > > > const int nop = 2; > > > > > NpyIter_AxisData *axisdata0; > npy_intp istrides, nstrides = ((nop) + ((itflags&0x0004) ? 1 : 0)); ># 1656 "numpy/core/src/multiarray/nditer.c.src" > axisdata0 = ((NpyIter_AxisData *)( &(iter)->iter_flexdata + ((((((((0) + ((32 + 0x7)&(-0x8))) + ((8)*(nop))) + ((8)*(nop+1))) + ((8)*(nop+1))) + ((8)*(nop))) + (((nop + 0x7)&(-0x8)))) + ((itflags&0x0080) ? ((8)*(6 + 9*nop)) : 0)))); > > > > ((axisdata0)->index)++; > > for (istrides = 0; istrides < nstrides; ++istrides) { > ((char **) &(axisdata0)->ad_flexdata + 1*(nop+1))[istrides] += ( &(axisdata0)->ad_flexdata + 0)[istrides]; > } > > > > > > > return ((axisdata0)->index) < ((axisdata0)->shape); ># 1759 "numpy/core/src/multiarray/nditer.c.src" >} ># 1616 "numpy/core/src/multiarray/nditer.c.src" > > >static int >npyiter_iternext_itflags0_dims1_itersANY( > NpyIter *iter) >{ > > const npy_uint32 itflags = 0; > > > > > > > int nop = ((iter)->nop); > > > NpyIter_AxisData *axisdata0; > npy_intp istrides, nstrides = ((nop) + ((itflags&0x0004) ? 1 : 0)); ># 1656 "numpy/core/src/multiarray/nditer.c.src" > axisdata0 = ((NpyIter_AxisData *)( &(iter)->iter_flexdata + ((((((((0) + ((32 + 0x7)&(-0x8))) + ((8)*(nop))) + ((8)*(nop+1))) + ((8)*(nop+1))) + ((8)*(nop))) + (((nop + 0x7)&(-0x8)))) + ((itflags&0x0080) ? ((8)*(6 + 9*nop)) : 0)))); > > > > ((axisdata0)->index)++; > > for (istrides = 0; istrides < nstrides; ++istrides) { > ((char **) &(axisdata0)->ad_flexdata + 1*(nop+1))[istrides] += ( &(axisdata0)->ad_flexdata + 0)[istrides]; > } > > > > > > > return ((axisdata0)->index) < ((axisdata0)->shape); ># 1759 "numpy/core/src/multiarray/nditer.c.src" >} ># 1612 "numpy/core/src/multiarray/nditer.c.src" ># 1616 "numpy/core/src/multiarray/nditer.c.src" > > >static int >npyiter_iternext_itflags0_dims2_iters1( > NpyIter *iter) >{ > > const npy_uint32 itflags = 0; > > > > > const int nop = 1; > > > > > NpyIter_AxisData *axisdata0; > npy_intp istrides, nstrides = ((nop) + ((itflags&0x0004) ? 1 : 0)); > > > NpyIter_AxisData *axisdata1; > npy_intp sizeof_axisdata; ># 1652 "numpy/core/src/multiarray/nditer.c.src" > sizeof_axisdata = (( 1 + 1 + 2*((nop)+1) )*8 ); > > > > axisdata0 = ((NpyIter_AxisData *)( &(iter)->iter_flexdata + ((((((((0) + ((32 + 0x7)&(-0x8))) + ((8)*(nop))) + ((8)*(nop+1))) + ((8)*(nop+1))) + ((8)*(nop))) + (((nop + 0x7)&(-0x8)))) + ((itflags&0x0080) ? ((8)*(6 + 9*nop)) : 0)))); > > > > ((axisdata0)->index)++; > > for (istrides = 0; istrides < nstrides; ++istrides) { > ((char **) &(axisdata0)->ad_flexdata + 1*(nop+1))[istrides] += ( &(axisdata0)->ad_flexdata + 0)[istrides]; > } ># 1679 "numpy/core/src/multiarray/nditer.c.src" > if (((axisdata0)->index) < ((axisdata0)->shape)) { > return 1; > } > > > axisdata1 = ((NpyIter_AxisData *) (((char *)(axisdata0)) + (1)*sizeof_axisdata)); > > ((axisdata1)->index)++; > > for (istrides = 0; istrides < nstrides; ++istrides) { > ((char **) &(axisdata1)->ad_flexdata + 1*(nop+1))[istrides] += ( &(axisdata1)->ad_flexdata + 0)[istrides]; > } > > if (((axisdata1)->index) < ((axisdata1)->shape)) { > > ((axisdata0)->index) = 0; > > for (istrides = 0; istrides < nstrides; ++istrides) { > ((char **) &(axisdata0)->ad_flexdata + 1*(nop+1))[istrides] = ((char **) &(axisdata1)->ad_flexdata + 1*(nop+1))[istrides]; > } > return 1; > } > > > return 0; ># 1759 "numpy/core/src/multiarray/nditer.c.src" >} ># 1616 "numpy/core/src/multiarray/nditer.c.src" > > >static int >npyiter_iternext_itflags0_dims2_iters2( > NpyIter *iter) >{ > > const npy_uint32 itflags = 0; > > > > > const int nop = 2; > > > > > NpyIter_AxisData *axisdata0; > npy_intp istrides, nstrides = ((nop) + ((itflags&0x0004) ? 1 : 0)); > > > NpyIter_AxisData *axisdata1; > npy_intp sizeof_axisdata; ># 1652 "numpy/core/src/multiarray/nditer.c.src" > sizeof_axisdata = (( 1 + 1 + 2*((nop)+1) )*8 ); > > > > axisdata0 = ((NpyIter_AxisData *)( &(iter)->iter_flexdata + ((((((((0) + ((32 + 0x7)&(-0x8))) + ((8)*(nop))) + ((8)*(nop+1))) + ((8)*(nop+1))) + ((8)*(nop))) + (((nop + 0x7)&(-0x8)))) + ((itflags&0x0080) ? ((8)*(6 + 9*nop)) : 0)))); > > > > ((axisdata0)->index)++; > > for (istrides = 0; istrides < nstrides; ++istrides) { > ((char **) &(axisdata0)->ad_flexdata + 1*(nop+1))[istrides] += ( &(axisdata0)->ad_flexdata + 0)[istrides]; > } ># 1679 "numpy/core/src/multiarray/nditer.c.src" > if (((axisdata0)->index) < ((axisdata0)->shape)) { > return 1; > } > > > axisdata1 = ((NpyIter_AxisData *) (((char *)(axisdata0)) + (1)*sizeof_axisdata)); > > ((axisdata1)->index)++; > > for (istrides = 0; istrides < nstrides; ++istrides) { > ((char **) &(axisdata1)->ad_flexdata + 1*(nop+1))[istrides] += ( &(axisdata1)->ad_flexdata + 0)[istrides]; > } > > if (((axisdata1)->index) < ((axisdata1)->shape)) { > > ((axisdata0)->index) = 0; > > for (istrides = 0; istrides < nstrides; ++istrides) { > ((char **) &(axisdata0)->ad_flexdata + 1*(nop+1))[istrides] = ((char **) &(axisdata1)->ad_flexdata + 1*(nop+1))[istrides]; > } > return 1; > } > > > return 0; ># 1759 "numpy/core/src/multiarray/nditer.c.src" >} ># 1616 "numpy/core/src/multiarray/nditer.c.src" > > >static int >npyiter_iternext_itflags0_dims2_itersANY( > NpyIter *iter) >{ > > const npy_uint32 itflags = 0; > > > > > > > int nop = ((iter)->nop); > > > NpyIter_AxisData *axisdata0; > npy_intp istrides, nstrides = ((nop) + ((itflags&0x0004) ? 1 : 0)); > > > NpyIter_AxisData *axisdata1; > npy_intp sizeof_axisdata; ># 1652 "numpy/core/src/multiarray/nditer.c.src" > sizeof_axisdata = (( 1 + 1 + 2*((nop)+1) )*8 ); > > > > axisdata0 = ((NpyIter_AxisData *)( &(iter)->iter_flexdata + ((((((((0) + ((32 + 0x7)&(-0x8))) + ((8)*(nop))) + ((8)*(nop+1))) + ((8)*(nop+1))) + ((8)*(nop))) + (((nop + 0x7)&(-0x8)))) + ((itflags&0x0080) ? ((8)*(6 + 9*nop)) : 0)))); > > > > ((axisdata0)->index)++; > > for (istrides = 0; istrides < nstrides; ++istrides) { > ((char **) &(axisdata0)->ad_flexdata + 1*(nop+1))[istrides] += ( &(axisdata0)->ad_flexdata + 0)[istrides]; > } ># 1679 "numpy/core/src/multiarray/nditer.c.src" > if (((axisdata0)->index) < ((axisdata0)->shape)) { > return 1; > } > > > axisdata1 = ((NpyIter_AxisData *) (((char *)(axisdata0)) + (1)*sizeof_axisdata)); > > ((axisdata1)->index)++; > > for (istrides = 0; istrides < nstrides; ++istrides) { > ((char **) &(axisdata1)->ad_flexdata + 1*(nop+1))[istrides] += ( &(axisdata1)->ad_flexdata + 0)[istrides]; > } > > if (((axisdata1)->index) < ((axisdata1)->shape)) { > > ((axisdata0)->index) = 0; > > for (istrides = 0; istrides < nstrides; ++istrides) { > ((char **) &(axisdata0)->ad_flexdata + 1*(nop+1))[istrides] = ((char **) &(axisdata1)->ad_flexdata + 1*(nop+1))[istrides]; > } > return 1; > } > > > return 0; ># 1759 "numpy/core/src/multiarray/nditer.c.src" >} ># 1612 "numpy/core/src/multiarray/nditer.c.src" ># 1616 "numpy/core/src/multiarray/nditer.c.src" > > >static int >npyiter_iternext_itflags0_dimsANY_iters1( > NpyIter *iter) >{ > > const npy_uint32 itflags = 0; > > int idim, ndim = ((iter)->ndim); > > > const int nop = 1; > > > > > NpyIter_AxisData *axisdata0; > npy_intp istrides, nstrides = ((nop) + ((itflags&0x0004) ? 1 : 0)); > > > NpyIter_AxisData *axisdata1; > npy_intp sizeof_axisdata; > > > NpyIter_AxisData *axisdata2; ># 1652 "numpy/core/src/multiarray/nditer.c.src" > sizeof_axisdata = (( 1 + 1 + 2*((nop)+1) )*8 ); > > > > axisdata0 = ((NpyIter_AxisData *)( &(iter)->iter_flexdata + ((((((((0) + ((32 + 0x7)&(-0x8))) + ((8)*(nop))) + ((8)*(nop+1))) + ((8)*(nop+1))) + ((8)*(nop))) + (((nop + 0x7)&(-0x8)))) + ((itflags&0x0080) ? ((8)*(6 + 9*nop)) : 0)))); > > > > ((axisdata0)->index)++; > > for (istrides = 0; istrides < nstrides; ++istrides) { > ((char **) &(axisdata0)->ad_flexdata + 1*(nop+1))[istrides] += ( &(axisdata0)->ad_flexdata + 0)[istrides]; > } ># 1679 "numpy/core/src/multiarray/nditer.c.src" > if (((axisdata0)->index) < ((axisdata0)->shape)) { > return 1; > } > > > axisdata1 = ((NpyIter_AxisData *) (((char *)(axisdata0)) + (1)*sizeof_axisdata)); > > ((axisdata1)->index)++; > > for (istrides = 0; istrides < nstrides; ++istrides) { > ((char **) &(axisdata1)->ad_flexdata + 1*(nop+1))[istrides] += ( &(axisdata1)->ad_flexdata + 0)[istrides]; > } > > if (((axisdata1)->index) < ((axisdata1)->shape)) { > > ((axisdata0)->index) = 0; > > for (istrides = 0; istrides < nstrides; ++istrides) { > ((char **) &(axisdata0)->ad_flexdata + 1*(nop+1))[istrides] = ((char **) &(axisdata1)->ad_flexdata + 1*(nop+1))[istrides]; > } > return 1; > } > > > > > > axisdata2 = ((NpyIter_AxisData *) (((char *)(axisdata1)) + (1)*sizeof_axisdata)); > > ((axisdata2)->index)++; > > for (istrides = 0; istrides < nstrides; ++istrides) { > ((char **) &(axisdata2)->ad_flexdata + 1*(nop+1))[istrides] += ( &(axisdata2)->ad_flexdata + 0)[istrides]; > } > > if (((axisdata2)->index) < ((axisdata2)->shape)) { > > ((axisdata0)->index) = 0; > ((axisdata1)->index) = 0; > > for (istrides = 0; istrides < nstrides; ++istrides) { > ((char **) &(axisdata0)->ad_flexdata + 1*(nop+1))[istrides] = ((char **) &(axisdata2)->ad_flexdata + 1*(nop+1))[istrides]; > ((char **) &(axisdata1)->ad_flexdata + 1*(nop+1))[istrides] = ((char **) &(axisdata2)->ad_flexdata + 1*(nop+1))[istrides]; > } > return 1; > } > > for (idim = 3; idim < ndim; ++idim) { > axisdata2 = ((NpyIter_AxisData *) (((char *)(axisdata2)) + (1)*sizeof_axisdata)); > > ((axisdata2)->index)++; > > for (istrides = 0; istrides < nstrides; ++istrides) { > ((char **) &(axisdata2)->ad_flexdata + 1*(nop+1))[istrides] += ( &(axisdata2)->ad_flexdata + 0)[istrides]; > } > > > if (((axisdata2)->index) < ((axisdata2)->shape)) { > > axisdata1 = axisdata2; > do { > axisdata1 = ((NpyIter_AxisData *) (((char *)(axisdata1)) + (-1)*sizeof_axisdata)); > > ((axisdata1)->index) = 0; > > for (istrides = 0; istrides < nstrides; ++istrides) { > ((char **) &(axisdata1)->ad_flexdata + 1*(nop+1))[istrides] = > ((char **) &(axisdata2)->ad_flexdata + 1*(nop+1))[istrides]; > } > } while (axisdata1 != axisdata0); > > return 1; > } > } > > return 0; > > > > >} ># 1616 "numpy/core/src/multiarray/nditer.c.src" > > >static int >npyiter_iternext_itflags0_dimsANY_iters2( > NpyIter *iter) >{ > > const npy_uint32 itflags = 0; > > int idim, ndim = ((iter)->ndim); > > > const int nop = 2; > > > > > NpyIter_AxisData *axisdata0; > npy_intp istrides, nstrides = ((nop) + ((itflags&0x0004) ? 1 : 0)); > > > NpyIter_AxisData *axisdata1; > npy_intp sizeof_axisdata; > > > NpyIter_AxisData *axisdata2; ># 1652 "numpy/core/src/multiarray/nditer.c.src" > sizeof_axisdata = (( 1 + 1 + 2*((nop)+1) )*8 ); > > > > axisdata0 = ((NpyIter_AxisData *)( &(iter)->iter_flexdata + ((((((((0) + ((32 + 0x7)&(-0x8))) + ((8)*(nop))) + ((8)*(nop+1))) + ((8)*(nop+1))) + ((8)*(nop))) + (((nop + 0x7)&(-0x8)))) + ((itflags&0x0080) ? ((8)*(6 + 9*nop)) : 0)))); > > > > ((axisdata0)->index)++; > > for (istrides = 0; istrides < nstrides; ++istrides) { > ((char **) &(axisdata0)->ad_flexdata + 1*(nop+1))[istrides] += ( &(axisdata0)->ad_flexdata + 0)[istrides]; > } ># 1679 "numpy/core/src/multiarray/nditer.c.src" > if (((axisdata0)->index) < ((axisdata0)->shape)) { > return 1; > } > > > axisdata1 = ((NpyIter_AxisData *) (((char *)(axisdata0)) + (1)*sizeof_axisdata)); > > ((axisdata1)->index)++; > > for (istrides = 0; istrides < nstrides; ++istrides) { > ((char **) &(axisdata1)->ad_flexdata + 1*(nop+1))[istrides] += ( &(axisdata1)->ad_flexdata + 0)[istrides]; > } > > if (((axisdata1)->index) < ((axisdata1)->shape)) { > > ((axisdata0)->index) = 0; > > for (istrides = 0; istrides < nstrides; ++istrides) { > ((char **) &(axisdata0)->ad_flexdata + 1*(nop+1))[istrides] = ((char **) &(axisdata1)->ad_flexdata + 1*(nop+1))[istrides]; > } > return 1; > } > > > > > > axisdata2 = ((NpyIter_AxisData *) (((char *)(axisdata1)) + (1)*sizeof_axisdata)); > > ((axisdata2)->index)++; > > for (istrides = 0; istrides < nstrides; ++istrides) { > ((char **) &(axisdata2)->ad_flexdata + 1*(nop+1))[istrides] += ( &(axisdata2)->ad_flexdata + 0)[istrides]; > } > > if (((axisdata2)->index) < ((axisdata2)->shape)) { > > ((axisdata0)->index) = 0; > ((axisdata1)->index) = 0; > > for (istrides = 0; istrides < nstrides; ++istrides) { > ((char **) &(axisdata0)->ad_flexdata + 1*(nop+1))[istrides] = ((char **) &(axisdata2)->ad_flexdata + 1*(nop+1))[istrides]; > ((char **) &(axisdata1)->ad_flexdata + 1*(nop+1))[istrides] = ((char **) &(axisdata2)->ad_flexdata + 1*(nop+1))[istrides]; > } > return 1; > } > > for (idim = 3; idim < ndim; ++idim) { > axisdata2 = ((NpyIter_AxisData *) (((char *)(axisdata2)) + (1)*sizeof_axisdata)); > > ((axisdata2)->index)++; > > for (istrides = 0; istrides < nstrides; ++istrides) { > ((char **) &(axisdata2)->ad_flexdata + 1*(nop+1))[istrides] += ( &(axisdata2)->ad_flexdata + 0)[istrides]; > } > > > if (((axisdata2)->index) < ((axisdata2)->shape)) { > > axisdata1 = axisdata2; > do { > axisdata1 = ((NpyIter_AxisData *) (((char *)(axisdata1)) + (-1)*sizeof_axisdata)); > > ((axisdata1)->index) = 0; > > for (istrides = 0; istrides < nstrides; ++istrides) { > ((char **) &(axisdata1)->ad_flexdata + 1*(nop+1))[istrides] = > ((char **) &(axisdata2)->ad_flexdata + 1*(nop+1))[istrides]; > } > } while (axisdata1 != axisdata0); > > return 1; > } > } > > return 0; > > > > >} ># 1616 "numpy/core/src/multiarray/nditer.c.src" > > >static int >npyiter_iternext_itflags0_dimsANY_itersANY( > NpyIter *iter) >{ > > const npy_uint32 itflags = 0; > > int idim, ndim = ((iter)->ndim); > > > > > int nop = ((iter)->nop); > > > NpyIter_AxisData *axisdata0; > npy_intp istrides, nstrides = ((nop) + ((itflags&0x0004) ? 1 : 0)); > > > NpyIter_AxisData *axisdata1; > npy_intp sizeof_axisdata; > > > NpyIter_AxisData *axisdata2; ># 1652 "numpy/core/src/multiarray/nditer.c.src" > sizeof_axisdata = (( 1 + 1 + 2*((nop)+1) )*8 ); > > > > axisdata0 = ((NpyIter_AxisData *)( &(iter)->iter_flexdata + ((((((((0) + ((32 + 0x7)&(-0x8))) + ((8)*(nop))) + ((8)*(nop+1))) + ((8)*(nop+1))) + ((8)*(nop))) + (((nop + 0x7)&(-0x8)))) + ((itflags&0x0080) ? ((8)*(6 + 9*nop)) : 0)))); > > > > ((axisdata0)->index)++; > > for (istrides = 0; istrides < nstrides; ++istrides) { > ((char **) &(axisdata0)->ad_flexdata + 1*(nop+1))[istrides] += ( &(axisdata0)->ad_flexdata + 0)[istrides]; > } ># 1679 "numpy/core/src/multiarray/nditer.c.src" > if (((axisdata0)->index) < ((axisdata0)->shape)) { > return 1; > } > > > axisdata1 = ((NpyIter_AxisData *) (((char *)(axisdata0)) + (1)*sizeof_axisdata)); > > ((axisdata1)->index)++; > > for (istrides = 0; istrides < nstrides; ++istrides) { > ((char **) &(axisdata1)->ad_flexdata + 1*(nop+1))[istrides] += ( &(axisdata1)->ad_flexdata + 0)[istrides]; > } > > if (((axisdata1)->index) < ((axisdata1)->shape)) { > > ((axisdata0)->index) = 0; > > for (istrides = 0; istrides < nstrides; ++istrides) { > ((char **) &(axisdata0)->ad_flexdata + 1*(nop+1))[istrides] = ((char **) &(axisdata1)->ad_flexdata + 1*(nop+1))[istrides]; > } > return 1; > } > > > > > > axisdata2 = ((NpyIter_AxisData *) (((char *)(axisdata1)) + (1)*sizeof_axisdata)); > > ((axisdata2)->index)++; > > for (istrides = 0; istrides < nstrides; ++istrides) { > ((char **) &(axisdata2)->ad_flexdata + 1*(nop+1))[istrides] += ( &(axisdata2)->ad_flexdata + 0)[istrides]; > } > > if (((axisdata2)->index) < ((axisdata2)->shape)) { > > ((axisdata0)->index) = 0; > ((axisdata1)->index) = 0; > > for (istrides = 0; istrides < nstrides; ++istrides) { > ((char **) &(axisdata0)->ad_flexdata + 1*(nop+1))[istrides] = ((char **) &(axisdata2)->ad_flexdata + 1*(nop+1))[istrides]; > ((char **) &(axisdata1)->ad_flexdata + 1*(nop+1))[istrides] = ((char **) &(axisdata2)->ad_flexdata + 1*(nop+1))[istrides]; > } > return 1; > } > > for (idim = 3; idim < ndim; ++idim) { > axisdata2 = ((NpyIter_AxisData *) (((char *)(axisdata2)) + (1)*sizeof_axisdata)); > > ((axisdata2)->index)++; > > for (istrides = 0; istrides < nstrides; ++istrides) { > ((char **) &(axisdata2)->ad_flexdata + 1*(nop+1))[istrides] += ( &(axisdata2)->ad_flexdata + 0)[istrides]; > } > > > if (((axisdata2)->index) < ((axisdata2)->shape)) { > > axisdata1 = axisdata2; > do { > axisdata1 = ((NpyIter_AxisData *) (((char *)(axisdata1)) + (-1)*sizeof_axisdata)); > > ((axisdata1)->index) = 0; > > for (istrides = 0; istrides < nstrides; ++istrides) { > ((char **) &(axisdata1)->ad_flexdata + 1*(nop+1))[istrides] = > ((char **) &(axisdata2)->ad_flexdata + 1*(nop+1))[istrides]; > } > } while (axisdata1 != axisdata0); > > return 1; > } > } > > return 0; > > > > >} ># 1608 "numpy/core/src/multiarray/nditer.c.src" ># 1612 "numpy/core/src/multiarray/nditer.c.src" ># 1616 "numpy/core/src/multiarray/nditer.c.src" > > >static int >npyiter_iternext_itflagsIND_dims1_iters1( > NpyIter *iter) >{ > > const npy_uint32 itflags = 0x0004; > > > > > const int nop = 1; > > > > > NpyIter_AxisData *axisdata0; > npy_intp istrides, nstrides = ((nop) + ((itflags&0x0004) ? 1 : 0)); ># 1656 "numpy/core/src/multiarray/nditer.c.src" > axisdata0 = ((NpyIter_AxisData *)( &(iter)->iter_flexdata + ((((((((0) + ((32 + 0x7)&(-0x8))) + ((8)*(nop))) + ((8)*(nop+1))) + ((8)*(nop+1))) + ((8)*(nop))) + (((nop + 0x7)&(-0x8)))) + ((itflags&0x0080) ? ((8)*(6 + 9*nop)) : 0)))); > > > > ((axisdata0)->index)++; > > for (istrides = 0; istrides < nstrides; ++istrides) { > ((char **) &(axisdata0)->ad_flexdata + 1*(nop+1))[istrides] += ( &(axisdata0)->ad_flexdata + 0)[istrides]; > } > > > > > > > return ((axisdata0)->index) < ((axisdata0)->shape); ># 1759 "numpy/core/src/multiarray/nditer.c.src" >} ># 1616 "numpy/core/src/multiarray/nditer.c.src" > > >static int >npyiter_iternext_itflagsIND_dims1_iters2( > NpyIter *iter) >{ > > const npy_uint32 itflags = 0x0004; > > > > > const int nop = 2; > > > > > NpyIter_AxisData *axisdata0; > npy_intp istrides, nstrides = ((nop) + ((itflags&0x0004) ? 1 : 0)); ># 1656 "numpy/core/src/multiarray/nditer.c.src" > axisdata0 = ((NpyIter_AxisData *)( &(iter)->iter_flexdata + ((((((((0) + ((32 + 0x7)&(-0x8))) + ((8)*(nop))) + ((8)*(nop+1))) + ((8)*(nop+1))) + ((8)*(nop))) + (((nop + 0x7)&(-0x8)))) + ((itflags&0x0080) ? ((8)*(6 + 9*nop)) : 0)))); > > > > ((axisdata0)->index)++; > > for (istrides = 0; istrides < nstrides; ++istrides) { > ((char **) &(axisdata0)->ad_flexdata + 1*(nop+1))[istrides] += ( &(axisdata0)->ad_flexdata + 0)[istrides]; > } > > > > > > > return ((axisdata0)->index) < ((axisdata0)->shape); ># 1759 "numpy/core/src/multiarray/nditer.c.src" >} ># 1616 "numpy/core/src/multiarray/nditer.c.src" > > >static int >npyiter_iternext_itflagsIND_dims1_itersANY( > NpyIter *iter) >{ > > const npy_uint32 itflags = 0x0004; > > > > > > > int nop = ((iter)->nop); > > > NpyIter_AxisData *axisdata0; > npy_intp istrides, nstrides = ((nop) + ((itflags&0x0004) ? 1 : 0)); ># 1656 "numpy/core/src/multiarray/nditer.c.src" > axisdata0 = ((NpyIter_AxisData *)( &(iter)->iter_flexdata + ((((((((0) + ((32 + 0x7)&(-0x8))) + ((8)*(nop))) + ((8)*(nop+1))) + ((8)*(nop+1))) + ((8)*(nop))) + (((nop + 0x7)&(-0x8)))) + ((itflags&0x0080) ? ((8)*(6 + 9*nop)) : 0)))); > > > > ((axisdata0)->index)++; > > for (istrides = 0; istrides < nstrides; ++istrides) { > ((char **) &(axisdata0)->ad_flexdata + 1*(nop+1))[istrides] += ( &(axisdata0)->ad_flexdata + 0)[istrides]; > } > > > > > > > return ((axisdata0)->index) < ((axisdata0)->shape); ># 1759 "numpy/core/src/multiarray/nditer.c.src" >} ># 1612 "numpy/core/src/multiarray/nditer.c.src" ># 1616 "numpy/core/src/multiarray/nditer.c.src" > > >static int >npyiter_iternext_itflagsIND_dims2_iters1( > NpyIter *iter) >{ > > const npy_uint32 itflags = 0x0004; > > > > > const int nop = 1; > > > > > NpyIter_AxisData *axisdata0; > npy_intp istrides, nstrides = ((nop) + ((itflags&0x0004) ? 1 : 0)); > > > NpyIter_AxisData *axisdata1; > npy_intp sizeof_axisdata; ># 1652 "numpy/core/src/multiarray/nditer.c.src" > sizeof_axisdata = (( 1 + 1 + 2*((nop)+1) )*8 ); > > > > axisdata0 = ((NpyIter_AxisData *)( &(iter)->iter_flexdata + ((((((((0) + ((32 + 0x7)&(-0x8))) + ((8)*(nop))) + ((8)*(nop+1))) + ((8)*(nop+1))) + ((8)*(nop))) + (((nop + 0x7)&(-0x8)))) + ((itflags&0x0080) ? ((8)*(6 + 9*nop)) : 0)))); > > > > ((axisdata0)->index)++; > > for (istrides = 0; istrides < nstrides; ++istrides) { > ((char **) &(axisdata0)->ad_flexdata + 1*(nop+1))[istrides] += ( &(axisdata0)->ad_flexdata + 0)[istrides]; > } ># 1679 "numpy/core/src/multiarray/nditer.c.src" > if (((axisdata0)->index) < ((axisdata0)->shape)) { > return 1; > } > > > axisdata1 = ((NpyIter_AxisData *) (((char *)(axisdata0)) + (1)*sizeof_axisdata)); > > ((axisdata1)->index)++; > > for (istrides = 0; istrides < nstrides; ++istrides) { > ((char **) &(axisdata1)->ad_flexdata + 1*(nop+1))[istrides] += ( &(axisdata1)->ad_flexdata + 0)[istrides]; > } > > if (((axisdata1)->index) < ((axisdata1)->shape)) { > > ((axisdata0)->index) = 0; > > for (istrides = 0; istrides < nstrides; ++istrides) { > ((char **) &(axisdata0)->ad_flexdata + 1*(nop+1))[istrides] = ((char **) &(axisdata1)->ad_flexdata + 1*(nop+1))[istrides]; > } > return 1; > } > > > return 0; ># 1759 "numpy/core/src/multiarray/nditer.c.src" >} ># 1616 "numpy/core/src/multiarray/nditer.c.src" > > >static int >npyiter_iternext_itflagsIND_dims2_iters2( > NpyIter *iter) >{ > > const npy_uint32 itflags = 0x0004; > > > > > const int nop = 2; > > > > > NpyIter_AxisData *axisdata0; > npy_intp istrides, nstrides = ((nop) + ((itflags&0x0004) ? 1 : 0)); > > > NpyIter_AxisData *axisdata1; > npy_intp sizeof_axisdata; ># 1652 "numpy/core/src/multiarray/nditer.c.src" > sizeof_axisdata = (( 1 + 1 + 2*((nop)+1) )*8 ); > > > > axisdata0 = ((NpyIter_AxisData *)( &(iter)->iter_flexdata + ((((((((0) + ((32 + 0x7)&(-0x8))) + ((8)*(nop))) + ((8)*(nop+1))) + ((8)*(nop+1))) + ((8)*(nop))) + (((nop + 0x7)&(-0x8)))) + ((itflags&0x0080) ? ((8)*(6 + 9*nop)) : 0)))); > > > > ((axisdata0)->index)++; > > for (istrides = 0; istrides < nstrides; ++istrides) { > ((char **) &(axisdata0)->ad_flexdata + 1*(nop+1))[istrides] += ( &(axisdata0)->ad_flexdata + 0)[istrides]; > } ># 1679 "numpy/core/src/multiarray/nditer.c.src" > if (((axisdata0)->index) < ((axisdata0)->shape)) { > return 1; > } > > > axisdata1 = ((NpyIter_AxisData *) (((char *)(axisdata0)) + (1)*sizeof_axisdata)); > > ((axisdata1)->index)++; > > for (istrides = 0; istrides < nstrides; ++istrides) { > ((char **) &(axisdata1)->ad_flexdata + 1*(nop+1))[istrides] += ( &(axisdata1)->ad_flexdata + 0)[istrides]; > } > > if (((axisdata1)->index) < ((axisdata1)->shape)) { > > ((axisdata0)->index) = 0; > > for (istrides = 0; istrides < nstrides; ++istrides) { > ((char **) &(axisdata0)->ad_flexdata + 1*(nop+1))[istrides] = ((char **) &(axisdata1)->ad_flexdata + 1*(nop+1))[istrides]; > } > return 1; > } > > > return 0; ># 1759 "numpy/core/src/multiarray/nditer.c.src" >} ># 1616 "numpy/core/src/multiarray/nditer.c.src" > > >static int >npyiter_iternext_itflagsIND_dims2_itersANY( > NpyIter *iter) >{ > > const npy_uint32 itflags = 0x0004; > > > > > > > int nop = ((iter)->nop); > > > NpyIter_AxisData *axisdata0; > npy_intp istrides, nstrides = ((nop) + ((itflags&0x0004) ? 1 : 0)); > > > NpyIter_AxisData *axisdata1; > npy_intp sizeof_axisdata; ># 1652 "numpy/core/src/multiarray/nditer.c.src" > sizeof_axisdata = (( 1 + 1 + 2*((nop)+1) )*8 ); > > > > axisdata0 = ((NpyIter_AxisData *)( &(iter)->iter_flexdata + ((((((((0) + ((32 + 0x7)&(-0x8))) + ((8)*(nop))) + ((8)*(nop+1))) + ((8)*(nop+1))) + ((8)*(nop))) + (((nop + 0x7)&(-0x8)))) + ((itflags&0x0080) ? ((8)*(6 + 9*nop)) : 0)))); > > > > ((axisdata0)->index)++; > > for (istrides = 0; istrides < nstrides; ++istrides) { > ((char **) &(axisdata0)->ad_flexdata + 1*(nop+1))[istrides] += ( &(axisdata0)->ad_flexdata + 0)[istrides]; > } ># 1679 "numpy/core/src/multiarray/nditer.c.src" > if (((axisdata0)->index) < ((axisdata0)->shape)) { > return 1; > } > > > axisdata1 = ((NpyIter_AxisData *) (((char *)(axisdata0)) + (1)*sizeof_axisdata)); > > ((axisdata1)->index)++; > > for (istrides = 0; istrides < nstrides; ++istrides) { > ((char **) &(axisdata1)->ad_flexdata + 1*(nop+1))[istrides] += ( &(axisdata1)->ad_flexdata + 0)[istrides]; > } > > if (((axisdata1)->index) < ((axisdata1)->shape)) { > > ((axisdata0)->index) = 0; > > for (istrides = 0; istrides < nstrides; ++istrides) { > ((char **) &(axisdata0)->ad_flexdata + 1*(nop+1))[istrides] = ((char **) &(axisdata1)->ad_flexdata + 1*(nop+1))[istrides]; > } > return 1; > } > > > return 0; ># 1759 "numpy/core/src/multiarray/nditer.c.src" >} ># 1612 "numpy/core/src/multiarray/nditer.c.src" ># 1616 "numpy/core/src/multiarray/nditer.c.src" > > >static int >npyiter_iternext_itflagsIND_dimsANY_iters1( > NpyIter *iter) >{ > > const npy_uint32 itflags = 0x0004; > > int idim, ndim = ((iter)->ndim); > > > const int nop = 1; > > > > > NpyIter_AxisData *axisdata0; > npy_intp istrides, nstrides = ((nop) + ((itflags&0x0004) ? 1 : 0)); > > > NpyIter_AxisData *axisdata1; > npy_intp sizeof_axisdata; > > > NpyIter_AxisData *axisdata2; ># 1652 "numpy/core/src/multiarray/nditer.c.src" > sizeof_axisdata = (( 1 + 1 + 2*((nop)+1) )*8 ); > > > > axisdata0 = ((NpyIter_AxisData *)( &(iter)->iter_flexdata + ((((((((0) + ((32 + 0x7)&(-0x8))) + ((8)*(nop))) + ((8)*(nop+1))) + ((8)*(nop+1))) + ((8)*(nop))) + (((nop + 0x7)&(-0x8)))) + ((itflags&0x0080) ? ((8)*(6 + 9*nop)) : 0)))); > > > > ((axisdata0)->index)++; > > for (istrides = 0; istrides < nstrides; ++istrides) { > ((char **) &(axisdata0)->ad_flexdata + 1*(nop+1))[istrides] += ( &(axisdata0)->ad_flexdata + 0)[istrides]; > } ># 1679 "numpy/core/src/multiarray/nditer.c.src" > if (((axisdata0)->index) < ((axisdata0)->shape)) { > return 1; > } > > > axisdata1 = ((NpyIter_AxisData *) (((char *)(axisdata0)) + (1)*sizeof_axisdata)); > > ((axisdata1)->index)++; > > for (istrides = 0; istrides < nstrides; ++istrides) { > ((char **) &(axisdata1)->ad_flexdata + 1*(nop+1))[istrides] += ( &(axisdata1)->ad_flexdata + 0)[istrides]; > } > > if (((axisdata1)->index) < ((axisdata1)->shape)) { > > ((axisdata0)->index) = 0; > > for (istrides = 0; istrides < nstrides; ++istrides) { > ((char **) &(axisdata0)->ad_flexdata + 1*(nop+1))[istrides] = ((char **) &(axisdata1)->ad_flexdata + 1*(nop+1))[istrides]; > } > return 1; > } > > > > > > axisdata2 = ((NpyIter_AxisData *) (((char *)(axisdata1)) + (1)*sizeof_axisdata)); > > ((axisdata2)->index)++; > > for (istrides = 0; istrides < nstrides; ++istrides) { > ((char **) &(axisdata2)->ad_flexdata + 1*(nop+1))[istrides] += ( &(axisdata2)->ad_flexdata + 0)[istrides]; > } > > if (((axisdata2)->index) < ((axisdata2)->shape)) { > > ((axisdata0)->index) = 0; > ((axisdata1)->index) = 0; > > for (istrides = 0; istrides < nstrides; ++istrides) { > ((char **) &(axisdata0)->ad_flexdata + 1*(nop+1))[istrides] = ((char **) &(axisdata2)->ad_flexdata + 1*(nop+1))[istrides]; > ((char **) &(axisdata1)->ad_flexdata + 1*(nop+1))[istrides] = ((char **) &(axisdata2)->ad_flexdata + 1*(nop+1))[istrides]; > } > return 1; > } > > for (idim = 3; idim < ndim; ++idim) { > axisdata2 = ((NpyIter_AxisData *) (((char *)(axisdata2)) + (1)*sizeof_axisdata)); > > ((axisdata2)->index)++; > > for (istrides = 0; istrides < nstrides; ++istrides) { > ((char **) &(axisdata2)->ad_flexdata + 1*(nop+1))[istrides] += ( &(axisdata2)->ad_flexdata + 0)[istrides]; > } > > > if (((axisdata2)->index) < ((axisdata2)->shape)) { > > axisdata1 = axisdata2; > do { > axisdata1 = ((NpyIter_AxisData *) (((char *)(axisdata1)) + (-1)*sizeof_axisdata)); > > ((axisdata1)->index) = 0; > > for (istrides = 0; istrides < nstrides; ++istrides) { > ((char **) &(axisdata1)->ad_flexdata + 1*(nop+1))[istrides] = > ((char **) &(axisdata2)->ad_flexdata + 1*(nop+1))[istrides]; > } > } while (axisdata1 != axisdata0); > > return 1; > } > } > > return 0; > > > > >} ># 1616 "numpy/core/src/multiarray/nditer.c.src" > > >static int >npyiter_iternext_itflagsIND_dimsANY_iters2( > NpyIter *iter) >{ > > const npy_uint32 itflags = 0x0004; > > int idim, ndim = ((iter)->ndim); > > > const int nop = 2; > > > > > NpyIter_AxisData *axisdata0; > npy_intp istrides, nstrides = ((nop) + ((itflags&0x0004) ? 1 : 0)); > > > NpyIter_AxisData *axisdata1; > npy_intp sizeof_axisdata; > > > NpyIter_AxisData *axisdata2; ># 1652 "numpy/core/src/multiarray/nditer.c.src" > sizeof_axisdata = (( 1 + 1 + 2*((nop)+1) )*8 ); > > > > axisdata0 = ((NpyIter_AxisData *)( &(iter)->iter_flexdata + ((((((((0) + ((32 + 0x7)&(-0x8))) + ((8)*(nop))) + ((8)*(nop+1))) + ((8)*(nop+1))) + ((8)*(nop))) + (((nop + 0x7)&(-0x8)))) + ((itflags&0x0080) ? ((8)*(6 + 9*nop)) : 0)))); > > > > ((axisdata0)->index)++; > > for (istrides = 0; istrides < nstrides; ++istrides) { > ((char **) &(axisdata0)->ad_flexdata + 1*(nop+1))[istrides] += ( &(axisdata0)->ad_flexdata + 0)[istrides]; > } ># 1679 "numpy/core/src/multiarray/nditer.c.src" > if (((axisdata0)->index) < ((axisdata0)->shape)) { > return 1; > } > > > axisdata1 = ((NpyIter_AxisData *) (((char *)(axisdata0)) + (1)*sizeof_axisdata)); > > ((axisdata1)->index)++; > > for (istrides = 0; istrides < nstrides; ++istrides) { > ((char **) &(axisdata1)->ad_flexdata + 1*(nop+1))[istrides] += ( &(axisdata1)->ad_flexdata + 0)[istrides]; > } > > if (((axisdata1)->index) < ((axisdata1)->shape)) { > > ((axisdata0)->index) = 0; > > for (istrides = 0; istrides < nstrides; ++istrides) { > ((char **) &(axisdata0)->ad_flexdata + 1*(nop+1))[istrides] = ((char **) &(axisdata1)->ad_flexdata + 1*(nop+1))[istrides]; > } > return 1; > } > > > > > > axisdata2 = ((NpyIter_AxisData *) (((char *)(axisdata1)) + (1)*sizeof_axisdata)); > > ((axisdata2)->index)++; > > for (istrides = 0; istrides < nstrides; ++istrides) { > ((char **) &(axisdata2)->ad_flexdata + 1*(nop+1))[istrides] += ( &(axisdata2)->ad_flexdata + 0)[istrides]; > } > > if (((axisdata2)->index) < ((axisdata2)->shape)) { > > ((axisdata0)->index) = 0; > ((axisdata1)->index) = 0; > > for (istrides = 0; istrides < nstrides; ++istrides) { > ((char **) &(axisdata0)->ad_flexdata + 1*(nop+1))[istrides] = ((char **) &(axisdata2)->ad_flexdata + 1*(nop+1))[istrides]; > ((char **) &(axisdata1)->ad_flexdata + 1*(nop+1))[istrides] = ((char **) &(axisdata2)->ad_flexdata + 1*(nop+1))[istrides]; > } > return 1; > } > > for (idim = 3; idim < ndim; ++idim) { > axisdata2 = ((NpyIter_AxisData *) (((char *)(axisdata2)) + (1)*sizeof_axisdata)); > > ((axisdata2)->index)++; > > for (istrides = 0; istrides < nstrides; ++istrides) { > ((char **) &(axisdata2)->ad_flexdata + 1*(nop+1))[istrides] += ( &(axisdata2)->ad_flexdata + 0)[istrides]; > } > > > if (((axisdata2)->index) < ((axisdata2)->shape)) { > > axisdata1 = axisdata2; > do { > axisdata1 = ((NpyIter_AxisData *) (((char *)(axisdata1)) + (-1)*sizeof_axisdata)); > > ((axisdata1)->index) = 0; > > for (istrides = 0; istrides < nstrides; ++istrides) { > ((char **) &(axisdata1)->ad_flexdata + 1*(nop+1))[istrides] = > ((char **) &(axisdata2)->ad_flexdata + 1*(nop+1))[istrides]; > } > } while (axisdata1 != axisdata0); > > return 1; > } > } > > return 0; > > > > >} ># 1616 "numpy/core/src/multiarray/nditer.c.src" > > >static int >npyiter_iternext_itflagsIND_dimsANY_itersANY( > NpyIter *iter) >{ > > const npy_uint32 itflags = 0x0004; > > int idim, ndim = ((iter)->ndim); > > > > > int nop = ((iter)->nop); > > > NpyIter_AxisData *axisdata0; > npy_intp istrides, nstrides = ((nop) + ((itflags&0x0004) ? 1 : 0)); > > > NpyIter_AxisData *axisdata1; > npy_intp sizeof_axisdata; > > > NpyIter_AxisData *axisdata2; ># 1652 "numpy/core/src/multiarray/nditer.c.src" > sizeof_axisdata = (( 1 + 1 + 2*((nop)+1) )*8 ); > > > > axisdata0 = ((NpyIter_AxisData *)( &(iter)->iter_flexdata + ((((((((0) + ((32 + 0x7)&(-0x8))) + ((8)*(nop))) + ((8)*(nop+1))) + ((8)*(nop+1))) + ((8)*(nop))) + (((nop + 0x7)&(-0x8)))) + ((itflags&0x0080) ? ((8)*(6 + 9*nop)) : 0)))); > > > > ((axisdata0)->index)++; > > for (istrides = 0; istrides < nstrides; ++istrides) { > ((char **) &(axisdata0)->ad_flexdata + 1*(nop+1))[istrides] += ( &(axisdata0)->ad_flexdata + 0)[istrides]; > } ># 1679 "numpy/core/src/multiarray/nditer.c.src" > if (((axisdata0)->index) < ((axisdata0)->shape)) { > return 1; > } > > > axisdata1 = ((NpyIter_AxisData *) (((char *)(axisdata0)) + (1)*sizeof_axisdata)); > > ((axisdata1)->index)++; > > for (istrides = 0; istrides < nstrides; ++istrides) { > ((char **) &(axisdata1)->ad_flexdata + 1*(nop+1))[istrides] += ( &(axisdata1)->ad_flexdata + 0)[istrides]; > } > > if (((axisdata1)->index) < ((axisdata1)->shape)) { > > ((axisdata0)->index) = 0; > > for (istrides = 0; istrides < nstrides; ++istrides) { > ((char **) &(axisdata0)->ad_flexdata + 1*(nop+1))[istrides] = ((char **) &(axisdata1)->ad_flexdata + 1*(nop+1))[istrides]; > } > return 1; > } > > > > > > axisdata2 = ((NpyIter_AxisData *) (((char *)(axisdata1)) + (1)*sizeof_axisdata)); > > ((axisdata2)->index)++; > > for (istrides = 0; istrides < nstrides; ++istrides) { > ((char **) &(axisdata2)->ad_flexdata + 1*(nop+1))[istrides] += ( &(axisdata2)->ad_flexdata + 0)[istrides]; > } > > if (((axisdata2)->index) < ((axisdata2)->shape)) { > > ((axisdata0)->index) = 0; > ((axisdata1)->index) = 0; > > for (istrides = 0; istrides < nstrides; ++istrides) { > ((char **) &(axisdata0)->ad_flexdata + 1*(nop+1))[istrides] = ((char **) &(axisdata2)->ad_flexdata + 1*(nop+1))[istrides]; > ((char **) &(axisdata1)->ad_flexdata + 1*(nop+1))[istrides] = ((char **) &(axisdata2)->ad_flexdata + 1*(nop+1))[istrides]; > } > return 1; > } > > for (idim = 3; idim < ndim; ++idim) { > axisdata2 = ((NpyIter_AxisData *) (((char *)(axisdata2)) + (1)*sizeof_axisdata)); > > ((axisdata2)->index)++; > > for (istrides = 0; istrides < nstrides; ++istrides) { > ((char **) &(axisdata2)->ad_flexdata + 1*(nop+1))[istrides] += ( &(axisdata2)->ad_flexdata + 0)[istrides]; > } > > > if (((axisdata2)->index) < ((axisdata2)->shape)) { > > axisdata1 = axisdata2; > do { > axisdata1 = ((NpyIter_AxisData *) (((char *)(axisdata1)) + (-1)*sizeof_axisdata)); > > ((axisdata1)->index) = 0; > > for (istrides = 0; istrides < nstrides; ++istrides) { > ((char **) &(axisdata1)->ad_flexdata + 1*(nop+1))[istrides] = > ((char **) &(axisdata2)->ad_flexdata + 1*(nop+1))[istrides]; > } > } while (axisdata1 != axisdata0); > > return 1; > } > } > > return 0; > > > > >} ># 1608 "numpy/core/src/multiarray/nditer.c.src" ># 1612 "numpy/core/src/multiarray/nditer.c.src" ># 1616 "numpy/core/src/multiarray/nditer.c.src" > > >static int >npyiter_iternext_itflagsNOINN_dims1_iters1( > NpyIter *iter) >{ ># 1673 "numpy/core/src/multiarray/nditer.c.src" > return 0; ># 1759 "numpy/core/src/multiarray/nditer.c.src" >} ># 1616 "numpy/core/src/multiarray/nditer.c.src" > > >static int >npyiter_iternext_itflagsNOINN_dims1_iters2( > NpyIter *iter) >{ ># 1673 "numpy/core/src/multiarray/nditer.c.src" > return 0; ># 1759 "numpy/core/src/multiarray/nditer.c.src" >} ># 1616 "numpy/core/src/multiarray/nditer.c.src" > > >static int >npyiter_iternext_itflagsNOINN_dims1_itersANY( > NpyIter *iter) >{ ># 1673 "numpy/core/src/multiarray/nditer.c.src" > return 0; ># 1759 "numpy/core/src/multiarray/nditer.c.src" >} ># 1612 "numpy/core/src/multiarray/nditer.c.src" ># 1616 "numpy/core/src/multiarray/nditer.c.src" > > >static int >npyiter_iternext_itflagsNOINN_dims2_iters1( > NpyIter *iter) >{ > > const npy_uint32 itflags = 0x0020; > > > > > const int nop = 1; > > > > > NpyIter_AxisData *axisdata0; > npy_intp istrides, nstrides = ((nop) + ((itflags&0x0004) ? 1 : 0)); > > > NpyIter_AxisData *axisdata1; > npy_intp sizeof_axisdata; ># 1652 "numpy/core/src/multiarray/nditer.c.src" > sizeof_axisdata = (( 1 + 1 + 2*((nop)+1) )*8 ); > > > > axisdata0 = ((NpyIter_AxisData *)( &(iter)->iter_flexdata + ((((((((0) + ((32 + 0x7)&(-0x8))) + ((8)*(nop))) + ((8)*(nop+1))) + ((8)*(nop+1))) + ((8)*(nop))) + (((nop + 0x7)&(-0x8)))) + ((itflags&0x0080) ? ((8)*(6 + 9*nop)) : 0)))); ># 1684 "numpy/core/src/multiarray/nditer.c.src" > axisdata1 = ((NpyIter_AxisData *) (((char *)(axisdata0)) + (1)*sizeof_axisdata)); > > ((axisdata1)->index)++; > > for (istrides = 0; istrides < nstrides; ++istrides) { > ((char **) &(axisdata1)->ad_flexdata + 1*(nop+1))[istrides] += ( &(axisdata1)->ad_flexdata + 0)[istrides]; > } > > if (((axisdata1)->index) < ((axisdata1)->shape)) { > > ((axisdata0)->index) = 0; > > for (istrides = 0; istrides < nstrides; ++istrides) { > ((char **) &(axisdata0)->ad_flexdata + 1*(nop+1))[istrides] = ((char **) &(axisdata1)->ad_flexdata + 1*(nop+1))[istrides]; > } > return 1; > } > > > return 0; ># 1759 "numpy/core/src/multiarray/nditer.c.src" >} ># 1616 "numpy/core/src/multiarray/nditer.c.src" > > >static int >npyiter_iternext_itflagsNOINN_dims2_iters2( > NpyIter *iter) >{ > > const npy_uint32 itflags = 0x0020; > > > > > const int nop = 2; > > > > > NpyIter_AxisData *axisdata0; > npy_intp istrides, nstrides = ((nop) + ((itflags&0x0004) ? 1 : 0)); > > > NpyIter_AxisData *axisdata1; > npy_intp sizeof_axisdata; ># 1652 "numpy/core/src/multiarray/nditer.c.src" > sizeof_axisdata = (( 1 + 1 + 2*((nop)+1) )*8 ); > > > > axisdata0 = ((NpyIter_AxisData *)( &(iter)->iter_flexdata + ((((((((0) + ((32 + 0x7)&(-0x8))) + ((8)*(nop))) + ((8)*(nop+1))) + ((8)*(nop+1))) + ((8)*(nop))) + (((nop + 0x7)&(-0x8)))) + ((itflags&0x0080) ? ((8)*(6 + 9*nop)) : 0)))); ># 1684 "numpy/core/src/multiarray/nditer.c.src" > axisdata1 = ((NpyIter_AxisData *) (((char *)(axisdata0)) + (1)*sizeof_axisdata)); > > ((axisdata1)->index)++; > > for (istrides = 0; istrides < nstrides; ++istrides) { > ((char **) &(axisdata1)->ad_flexdata + 1*(nop+1))[istrides] += ( &(axisdata1)->ad_flexdata + 0)[istrides]; > } > > if (((axisdata1)->index) < ((axisdata1)->shape)) { > > ((axisdata0)->index) = 0; > > for (istrides = 0; istrides < nstrides; ++istrides) { > ((char **) &(axisdata0)->ad_flexdata + 1*(nop+1))[istrides] = ((char **) &(axisdata1)->ad_flexdata + 1*(nop+1))[istrides]; > } > return 1; > } > > > return 0; ># 1759 "numpy/core/src/multiarray/nditer.c.src" >} ># 1616 "numpy/core/src/multiarray/nditer.c.src" > > >static int >npyiter_iternext_itflagsNOINN_dims2_itersANY( > NpyIter *iter) >{ > > const npy_uint32 itflags = 0x0020; > > > > > > > int nop = ((iter)->nop); > > > NpyIter_AxisData *axisdata0; > npy_intp istrides, nstrides = ((nop) + ((itflags&0x0004) ? 1 : 0)); > > > NpyIter_AxisData *axisdata1; > npy_intp sizeof_axisdata; ># 1652 "numpy/core/src/multiarray/nditer.c.src" > sizeof_axisdata = (( 1 + 1 + 2*((nop)+1) )*8 ); > > > > axisdata0 = ((NpyIter_AxisData *)( &(iter)->iter_flexdata + ((((((((0) + ((32 + 0x7)&(-0x8))) + ((8)*(nop))) + ((8)*(nop+1))) + ((8)*(nop+1))) + ((8)*(nop))) + (((nop + 0x7)&(-0x8)))) + ((itflags&0x0080) ? ((8)*(6 + 9*nop)) : 0)))); ># 1684 "numpy/core/src/multiarray/nditer.c.src" > axisdata1 = ((NpyIter_AxisData *) (((char *)(axisdata0)) + (1)*sizeof_axisdata)); > > ((axisdata1)->index)++; > > for (istrides = 0; istrides < nstrides; ++istrides) { > ((char **) &(axisdata1)->ad_flexdata + 1*(nop+1))[istrides] += ( &(axisdata1)->ad_flexdata + 0)[istrides]; > } > > if (((axisdata1)->index) < ((axisdata1)->shape)) { > > ((axisdata0)->index) = 0; > > for (istrides = 0; istrides < nstrides; ++istrides) { > ((char **) &(axisdata0)->ad_flexdata + 1*(nop+1))[istrides] = ((char **) &(axisdata1)->ad_flexdata + 1*(nop+1))[istrides]; > } > return 1; > } > > > return 0; ># 1759 "numpy/core/src/multiarray/nditer.c.src" >} ># 1612 "numpy/core/src/multiarray/nditer.c.src" ># 1616 "numpy/core/src/multiarray/nditer.c.src" > > >static int >npyiter_iternext_itflagsNOINN_dimsANY_iters1( > NpyIter *iter) >{ > > const npy_uint32 itflags = 0x0020; > > int idim, ndim = ((iter)->ndim); > > > const int nop = 1; > > > > > NpyIter_AxisData *axisdata0; > npy_intp istrides, nstrides = ((nop) + ((itflags&0x0004) ? 1 : 0)); > > > NpyIter_AxisData *axisdata1; > npy_intp sizeof_axisdata; > > > NpyIter_AxisData *axisdata2; ># 1652 "numpy/core/src/multiarray/nditer.c.src" > sizeof_axisdata = (( 1 + 1 + 2*((nop)+1) )*8 ); > > > > axisdata0 = ((NpyIter_AxisData *)( &(iter)->iter_flexdata + ((((((((0) + ((32 + 0x7)&(-0x8))) + ((8)*(nop))) + ((8)*(nop+1))) + ((8)*(nop+1))) + ((8)*(nop))) + (((nop + 0x7)&(-0x8)))) + ((itflags&0x0080) ? ((8)*(6 + 9*nop)) : 0)))); ># 1684 "numpy/core/src/multiarray/nditer.c.src" > axisdata1 = ((NpyIter_AxisData *) (((char *)(axisdata0)) + (1)*sizeof_axisdata)); > > ((axisdata1)->index)++; > > for (istrides = 0; istrides < nstrides; ++istrides) { > ((char **) &(axisdata1)->ad_flexdata + 1*(nop+1))[istrides] += ( &(axisdata1)->ad_flexdata + 0)[istrides]; > } > > if (((axisdata1)->index) < ((axisdata1)->shape)) { > > ((axisdata0)->index) = 0; > > for (istrides = 0; istrides < nstrides; ++istrides) { > ((char **) &(axisdata0)->ad_flexdata + 1*(nop+1))[istrides] = ((char **) &(axisdata1)->ad_flexdata + 1*(nop+1))[istrides]; > } > return 1; > } > > > > > > axisdata2 = ((NpyIter_AxisData *) (((char *)(axisdata1)) + (1)*sizeof_axisdata)); > > ((axisdata2)->index)++; > > for (istrides = 0; istrides < nstrides; ++istrides) { > ((char **) &(axisdata2)->ad_flexdata + 1*(nop+1))[istrides] += ( &(axisdata2)->ad_flexdata + 0)[istrides]; > } > > if (((axisdata2)->index) < ((axisdata2)->shape)) { > > ((axisdata0)->index) = 0; > ((axisdata1)->index) = 0; > > for (istrides = 0; istrides < nstrides; ++istrides) { > ((char **) &(axisdata0)->ad_flexdata + 1*(nop+1))[istrides] = ((char **) &(axisdata2)->ad_flexdata + 1*(nop+1))[istrides]; > ((char **) &(axisdata1)->ad_flexdata + 1*(nop+1))[istrides] = ((char **) &(axisdata2)->ad_flexdata + 1*(nop+1))[istrides]; > } > return 1; > } > > for (idim = 3; idim < ndim; ++idim) { > axisdata2 = ((NpyIter_AxisData *) (((char *)(axisdata2)) + (1)*sizeof_axisdata)); > > ((axisdata2)->index)++; > > for (istrides = 0; istrides < nstrides; ++istrides) { > ((char **) &(axisdata2)->ad_flexdata + 1*(nop+1))[istrides] += ( &(axisdata2)->ad_flexdata + 0)[istrides]; > } > > > if (((axisdata2)->index) < ((axisdata2)->shape)) { > > axisdata1 = axisdata2; > do { > axisdata1 = ((NpyIter_AxisData *) (((char *)(axisdata1)) + (-1)*sizeof_axisdata)); > > ((axisdata1)->index) = 0; > > for (istrides = 0; istrides < nstrides; ++istrides) { > ((char **) &(axisdata1)->ad_flexdata + 1*(nop+1))[istrides] = > ((char **) &(axisdata2)->ad_flexdata + 1*(nop+1))[istrides]; > } > } while (axisdata1 != axisdata0); > > return 1; > } > } > > return 0; > > > > >} ># 1616 "numpy/core/src/multiarray/nditer.c.src" > > >static int >npyiter_iternext_itflagsNOINN_dimsANY_iters2( > NpyIter *iter) >{ > > const npy_uint32 itflags = 0x0020; > > int idim, ndim = ((iter)->ndim); > > > const int nop = 2; > > > > > NpyIter_AxisData *axisdata0; > npy_intp istrides, nstrides = ((nop) + ((itflags&0x0004) ? 1 : 0)); > > > NpyIter_AxisData *axisdata1; > npy_intp sizeof_axisdata; > > > NpyIter_AxisData *axisdata2; ># 1652 "numpy/core/src/multiarray/nditer.c.src" > sizeof_axisdata = (( 1 + 1 + 2*((nop)+1) )*8 ); > > > > axisdata0 = ((NpyIter_AxisData *)( &(iter)->iter_flexdata + ((((((((0) + ((32 + 0x7)&(-0x8))) + ((8)*(nop))) + ((8)*(nop+1))) + ((8)*(nop+1))) + ((8)*(nop))) + (((nop + 0x7)&(-0x8)))) + ((itflags&0x0080) ? ((8)*(6 + 9*nop)) : 0)))); ># 1684 "numpy/core/src/multiarray/nditer.c.src" > axisdata1 = ((NpyIter_AxisData *) (((char *)(axisdata0)) + (1)*sizeof_axisdata)); > > ((axisdata1)->index)++; > > for (istrides = 0; istrides < nstrides; ++istrides) { > ((char **) &(axisdata1)->ad_flexdata + 1*(nop+1))[istrides] += ( &(axisdata1)->ad_flexdata + 0)[istrides]; > } > > if (((axisdata1)->index) < ((axisdata1)->shape)) { > > ((axisdata0)->index) = 0; > > for (istrides = 0; istrides < nstrides; ++istrides) { > ((char **) &(axisdata0)->ad_flexdata + 1*(nop+1))[istrides] = ((char **) &(axisdata1)->ad_flexdata + 1*(nop+1))[istrides]; > } > return 1; > } > > > > > > axisdata2 = ((NpyIter_AxisData *) (((char *)(axisdata1)) + (1)*sizeof_axisdata)); > > ((axisdata2)->index)++; > > for (istrides = 0; istrides < nstrides; ++istrides) { > ((char **) &(axisdata2)->ad_flexdata + 1*(nop+1))[istrides] += ( &(axisdata2)->ad_flexdata + 0)[istrides]; > } > > if (((axisdata2)->index) < ((axisdata2)->shape)) { > > ((axisdata0)->index) = 0; > ((axisdata1)->index) = 0; > > for (istrides = 0; istrides < nstrides; ++istrides) { > ((char **) &(axisdata0)->ad_flexdata + 1*(nop+1))[istrides] = ((char **) &(axisdata2)->ad_flexdata + 1*(nop+1))[istrides]; > ((char **) &(axisdata1)->ad_flexdata + 1*(nop+1))[istrides] = ((char **) &(axisdata2)->ad_flexdata + 1*(nop+1))[istrides]; > } > return 1; > } > > for (idim = 3; idim < ndim; ++idim) { > axisdata2 = ((NpyIter_AxisData *) (((char *)(axisdata2)) + (1)*sizeof_axisdata)); > > ((axisdata2)->index)++; > > for (istrides = 0; istrides < nstrides; ++istrides) { > ((char **) &(axisdata2)->ad_flexdata + 1*(nop+1))[istrides] += ( &(axisdata2)->ad_flexdata + 0)[istrides]; > } > > > if (((axisdata2)->index) < ((axisdata2)->shape)) { > > axisdata1 = axisdata2; > do { > axisdata1 = ((NpyIter_AxisData *) (((char *)(axisdata1)) + (-1)*sizeof_axisdata)); > > ((axisdata1)->index) = 0; > > for (istrides = 0; istrides < nstrides; ++istrides) { > ((char **) &(axisdata1)->ad_flexdata + 1*(nop+1))[istrides] = > ((char **) &(axisdata2)->ad_flexdata + 1*(nop+1))[istrides]; > } > } while (axisdata1 != axisdata0); > > return 1; > } > } > > return 0; > > > > >} ># 1616 "numpy/core/src/multiarray/nditer.c.src" > > >static int >npyiter_iternext_itflagsNOINN_dimsANY_itersANY( > NpyIter *iter) >{ > > const npy_uint32 itflags = 0x0020; > > int idim, ndim = ((iter)->ndim); > > > > > int nop = ((iter)->nop); > > > NpyIter_AxisData *axisdata0; > npy_intp istrides, nstrides = ((nop) + ((itflags&0x0004) ? 1 : 0)); > > > NpyIter_AxisData *axisdata1; > npy_intp sizeof_axisdata; > > > NpyIter_AxisData *axisdata2; ># 1652 "numpy/core/src/multiarray/nditer.c.src" > sizeof_axisdata = (( 1 + 1 + 2*((nop)+1) )*8 ); > > > > axisdata0 = ((NpyIter_AxisData *)( &(iter)->iter_flexdata + ((((((((0) + ((32 + 0x7)&(-0x8))) + ((8)*(nop))) + ((8)*(nop+1))) + ((8)*(nop+1))) + ((8)*(nop))) + (((nop + 0x7)&(-0x8)))) + ((itflags&0x0080) ? ((8)*(6 + 9*nop)) : 0)))); ># 1684 "numpy/core/src/multiarray/nditer.c.src" > axisdata1 = ((NpyIter_AxisData *) (((char *)(axisdata0)) + (1)*sizeof_axisdata)); > > ((axisdata1)->index)++; > > for (istrides = 0; istrides < nstrides; ++istrides) { > ((char **) &(axisdata1)->ad_flexdata + 1*(nop+1))[istrides] += ( &(axisdata1)->ad_flexdata + 0)[istrides]; > } > > if (((axisdata1)->index) < ((axisdata1)->shape)) { > > ((axisdata0)->index) = 0; > > for (istrides = 0; istrides < nstrides; ++istrides) { > ((char **) &(axisdata0)->ad_flexdata + 1*(nop+1))[istrides] = ((char **) &(axisdata1)->ad_flexdata + 1*(nop+1))[istrides]; > } > return 1; > } > > > > > > axisdata2 = ((NpyIter_AxisData *) (((char *)(axisdata1)) + (1)*sizeof_axisdata)); > > ((axisdata2)->index)++; > > for (istrides = 0; istrides < nstrides; ++istrides) { > ((char **) &(axisdata2)->ad_flexdata + 1*(nop+1))[istrides] += ( &(axisdata2)->ad_flexdata + 0)[istrides]; > } > > if (((axisdata2)->index) < ((axisdata2)->shape)) { > > ((axisdata0)->index) = 0; > ((axisdata1)->index) = 0; > > for (istrides = 0; istrides < nstrides; ++istrides) { > ((char **) &(axisdata0)->ad_flexdata + 1*(nop+1))[istrides] = ((char **) &(axisdata2)->ad_flexdata + 1*(nop+1))[istrides]; > ((char **) &(axisdata1)->ad_flexdata + 1*(nop+1))[istrides] = ((char **) &(axisdata2)->ad_flexdata + 1*(nop+1))[istrides]; > } > return 1; > } > > for (idim = 3; idim < ndim; ++idim) { > axisdata2 = ((NpyIter_AxisData *) (((char *)(axisdata2)) + (1)*sizeof_axisdata)); > > ((axisdata2)->index)++; > > for (istrides = 0; istrides < nstrides; ++istrides) { > ((char **) &(axisdata2)->ad_flexdata + 1*(nop+1))[istrides] += ( &(axisdata2)->ad_flexdata + 0)[istrides]; > } > > > if (((axisdata2)->index) < ((axisdata2)->shape)) { > > axisdata1 = axisdata2; > do { > axisdata1 = ((NpyIter_AxisData *) (((char *)(axisdata1)) + (-1)*sizeof_axisdata)); > > ((axisdata1)->index) = 0; > > for (istrides = 0; istrides < nstrides; ++istrides) { > ((char **) &(axisdata1)->ad_flexdata + 1*(nop+1))[istrides] = > ((char **) &(axisdata2)->ad_flexdata + 1*(nop+1))[istrides]; > } > } while (axisdata1 != axisdata0); > > return 1; > } > } > > return 0; > > > > >} ># 1608 "numpy/core/src/multiarray/nditer.c.src" ># 1612 "numpy/core/src/multiarray/nditer.c.src" ># 1616 "numpy/core/src/multiarray/nditer.c.src" > > >static int >npyiter_iternext_itflagsRNG_dims1_iters1( > NpyIter *iter) >{ > > const npy_uint32 itflags = 0x0040; > > > > > const int nop = 1; > > > > > NpyIter_AxisData *axisdata0; > npy_intp istrides, nstrides = ((nop) + ((itflags&0x0004) ? 1 : 0)); ># 1646 "numpy/core/src/multiarray/nditer.c.src" > if (++(iter->iterindex) >= (iter->iterend)) { > return 0; > } > > > > > > > > axisdata0 = ((NpyIter_AxisData *)( &(iter)->iter_flexdata + ((((((((0) + ((32 + 0x7)&(-0x8))) + ((8)*(nop))) + ((8)*(nop+1))) + ((8)*(nop+1))) + ((8)*(nop))) + (((nop + 0x7)&(-0x8)))) + ((itflags&0x0080) ? ((8)*(6 + 9*nop)) : 0)))); > > > > ((axisdata0)->index)++; > > for (istrides = 0; istrides < nstrides; ++istrides) { > ((char **) &(axisdata0)->ad_flexdata + 1*(nop+1))[istrides] += ( &(axisdata0)->ad_flexdata + 0)[istrides]; > } > > > > > > > return ((axisdata0)->index) < ((axisdata0)->shape); ># 1759 "numpy/core/src/multiarray/nditer.c.src" >} ># 1616 "numpy/core/src/multiarray/nditer.c.src" > > >static int >npyiter_iternext_itflagsRNG_dims1_iters2( > NpyIter *iter) >{ > > const npy_uint32 itflags = 0x0040; > > > > > const int nop = 2; > > > > > NpyIter_AxisData *axisdata0; > npy_intp istrides, nstrides = ((nop) + ((itflags&0x0004) ? 1 : 0)); ># 1646 "numpy/core/src/multiarray/nditer.c.src" > if (++(iter->iterindex) >= (iter->iterend)) { > return 0; > } > > > > > > > > axisdata0 = ((NpyIter_AxisData *)( &(iter)->iter_flexdata + ((((((((0) + ((32 + 0x7)&(-0x8))) + ((8)*(nop))) + ((8)*(nop+1))) + ((8)*(nop+1))) + ((8)*(nop))) + (((nop + 0x7)&(-0x8)))) + ((itflags&0x0080) ? ((8)*(6 + 9*nop)) : 0)))); > > > > ((axisdata0)->index)++; > > for (istrides = 0; istrides < nstrides; ++istrides) { > ((char **) &(axisdata0)->ad_flexdata + 1*(nop+1))[istrides] += ( &(axisdata0)->ad_flexdata + 0)[istrides]; > } > > > > > > > return ((axisdata0)->index) < ((axisdata0)->shape); ># 1759 "numpy/core/src/multiarray/nditer.c.src" >} ># 1616 "numpy/core/src/multiarray/nditer.c.src" > > >static int >npyiter_iternext_itflagsRNG_dims1_itersANY( > NpyIter *iter) >{ > > const npy_uint32 itflags = 0x0040; > > > > > > > int nop = ((iter)->nop); > > > NpyIter_AxisData *axisdata0; > npy_intp istrides, nstrides = ((nop) + ((itflags&0x0004) ? 1 : 0)); ># 1646 "numpy/core/src/multiarray/nditer.c.src" > if (++(iter->iterindex) >= (iter->iterend)) { > return 0; > } > > > > > > > > axisdata0 = ((NpyIter_AxisData *)( &(iter)->iter_flexdata + ((((((((0) + ((32 + 0x7)&(-0x8))) + ((8)*(nop))) + ((8)*(nop+1))) + ((8)*(nop+1))) + ((8)*(nop))) + (((nop + 0x7)&(-0x8)))) + ((itflags&0x0080) ? ((8)*(6 + 9*nop)) : 0)))); > > > > ((axisdata0)->index)++; > > for (istrides = 0; istrides < nstrides; ++istrides) { > ((char **) &(axisdata0)->ad_flexdata + 1*(nop+1))[istrides] += ( &(axisdata0)->ad_flexdata + 0)[istrides]; > } > > > > > > > return ((axisdata0)->index) < ((axisdata0)->shape); ># 1759 "numpy/core/src/multiarray/nditer.c.src" >} ># 1612 "numpy/core/src/multiarray/nditer.c.src" ># 1616 "numpy/core/src/multiarray/nditer.c.src" > > >static int >npyiter_iternext_itflagsRNG_dims2_iters1( > NpyIter *iter) >{ > > const npy_uint32 itflags = 0x0040; > > > > > const int nop = 1; > > > > > NpyIter_AxisData *axisdata0; > npy_intp istrides, nstrides = ((nop) + ((itflags&0x0004) ? 1 : 0)); > > > NpyIter_AxisData *axisdata1; > npy_intp sizeof_axisdata; > > > > > > > > if (++(iter->iterindex) >= (iter->iterend)) { > return 0; > } > > > > sizeof_axisdata = (( 1 + 1 + 2*((nop)+1) )*8 ); > > > > axisdata0 = ((NpyIter_AxisData *)( &(iter)->iter_flexdata + ((((((((0) + ((32 + 0x7)&(-0x8))) + ((8)*(nop))) + ((8)*(nop+1))) + ((8)*(nop+1))) + ((8)*(nop))) + (((nop + 0x7)&(-0x8)))) + ((itflags&0x0080) ? ((8)*(6 + 9*nop)) : 0)))); > > > > ((axisdata0)->index)++; > > for (istrides = 0; istrides < nstrides; ++istrides) { > ((char **) &(axisdata0)->ad_flexdata + 1*(nop+1))[istrides] += ( &(axisdata0)->ad_flexdata + 0)[istrides]; > } ># 1679 "numpy/core/src/multiarray/nditer.c.src" > if (((axisdata0)->index) < ((axisdata0)->shape)) { > return 1; > } > > > axisdata1 = ((NpyIter_AxisData *) (((char *)(axisdata0)) + (1)*sizeof_axisdata)); > > ((axisdata1)->index)++; > > for (istrides = 0; istrides < nstrides; ++istrides) { > ((char **) &(axisdata1)->ad_flexdata + 1*(nop+1))[istrides] += ( &(axisdata1)->ad_flexdata + 0)[istrides]; > } > > if (((axisdata1)->index) < ((axisdata1)->shape)) { > > ((axisdata0)->index) = 0; > > for (istrides = 0; istrides < nstrides; ++istrides) { > ((char **) &(axisdata0)->ad_flexdata + 1*(nop+1))[istrides] = ((char **) &(axisdata1)->ad_flexdata + 1*(nop+1))[istrides]; > } > return 1; > } > > > return 0; ># 1759 "numpy/core/src/multiarray/nditer.c.src" >} ># 1616 "numpy/core/src/multiarray/nditer.c.src" > > >static int >npyiter_iternext_itflagsRNG_dims2_iters2( > NpyIter *iter) >{ > > const npy_uint32 itflags = 0x0040; > > > > > const int nop = 2; > > > > > NpyIter_AxisData *axisdata0; > npy_intp istrides, nstrides = ((nop) + ((itflags&0x0004) ? 1 : 0)); > > > NpyIter_AxisData *axisdata1; > npy_intp sizeof_axisdata; > > > > > > > > if (++(iter->iterindex) >= (iter->iterend)) { > return 0; > } > > > > sizeof_axisdata = (( 1 + 1 + 2*((nop)+1) )*8 ); > > > > axisdata0 = ((NpyIter_AxisData *)( &(iter)->iter_flexdata + ((((((((0) + ((32 + 0x7)&(-0x8))) + ((8)*(nop))) + ((8)*(nop+1))) + ((8)*(nop+1))) + ((8)*(nop))) + (((nop + 0x7)&(-0x8)))) + ((itflags&0x0080) ? ((8)*(6 + 9*nop)) : 0)))); > > > > ((axisdata0)->index)++; > > for (istrides = 0; istrides < nstrides; ++istrides) { > ((char **) &(axisdata0)->ad_flexdata + 1*(nop+1))[istrides] += ( &(axisdata0)->ad_flexdata + 0)[istrides]; > } ># 1679 "numpy/core/src/multiarray/nditer.c.src" > if (((axisdata0)->index) < ((axisdata0)->shape)) { > return 1; > } > > > axisdata1 = ((NpyIter_AxisData *) (((char *)(axisdata0)) + (1)*sizeof_axisdata)); > > ((axisdata1)->index)++; > > for (istrides = 0; istrides < nstrides; ++istrides) { > ((char **) &(axisdata1)->ad_flexdata + 1*(nop+1))[istrides] += ( &(axisdata1)->ad_flexdata + 0)[istrides]; > } > > if (((axisdata1)->index) < ((axisdata1)->shape)) { > > ((axisdata0)->index) = 0; > > for (istrides = 0; istrides < nstrides; ++istrides) { > ((char **) &(axisdata0)->ad_flexdata + 1*(nop+1))[istrides] = ((char **) &(axisdata1)->ad_flexdata + 1*(nop+1))[istrides]; > } > return 1; > } > > > return 0; ># 1759 "numpy/core/src/multiarray/nditer.c.src" >} ># 1616 "numpy/core/src/multiarray/nditer.c.src" > > >static int >npyiter_iternext_itflagsRNG_dims2_itersANY( > NpyIter *iter) >{ > > const npy_uint32 itflags = 0x0040; > > > > > > > int nop = ((iter)->nop); > > > NpyIter_AxisData *axisdata0; > npy_intp istrides, nstrides = ((nop) + ((itflags&0x0004) ? 1 : 0)); > > > NpyIter_AxisData *axisdata1; > npy_intp sizeof_axisdata; > > > > > > > > if (++(iter->iterindex) >= (iter->iterend)) { > return 0; > } > > > > sizeof_axisdata = (( 1 + 1 + 2*((nop)+1) )*8 ); > > > > axisdata0 = ((NpyIter_AxisData *)( &(iter)->iter_flexdata + ((((((((0) + ((32 + 0x7)&(-0x8))) + ((8)*(nop))) + ((8)*(nop+1))) + ((8)*(nop+1))) + ((8)*(nop))) + (((nop + 0x7)&(-0x8)))) + ((itflags&0x0080) ? ((8)*(6 + 9*nop)) : 0)))); > > > > ((axisdata0)->index)++; > > for (istrides = 0; istrides < nstrides; ++istrides) { > ((char **) &(axisdata0)->ad_flexdata + 1*(nop+1))[istrides] += ( &(axisdata0)->ad_flexdata + 0)[istrides]; > } ># 1679 "numpy/core/src/multiarray/nditer.c.src" > if (((axisdata0)->index) < ((axisdata0)->shape)) { > return 1; > } > > > axisdata1 = ((NpyIter_AxisData *) (((char *)(axisdata0)) + (1)*sizeof_axisdata)); > > ((axisdata1)->index)++; > > for (istrides = 0; istrides < nstrides; ++istrides) { > ((char **) &(axisdata1)->ad_flexdata + 1*(nop+1))[istrides] += ( &(axisdata1)->ad_flexdata + 0)[istrides]; > } > > if (((axisdata1)->index) < ((axisdata1)->shape)) { > > ((axisdata0)->index) = 0; > > for (istrides = 0; istrides < nstrides; ++istrides) { > ((char **) &(axisdata0)->ad_flexdata + 1*(nop+1))[istrides] = ((char **) &(axisdata1)->ad_flexdata + 1*(nop+1))[istrides]; > } > return 1; > } > > > return 0; ># 1759 "numpy/core/src/multiarray/nditer.c.src" >} ># 1612 "numpy/core/src/multiarray/nditer.c.src" ># 1616 "numpy/core/src/multiarray/nditer.c.src" > > >static int >npyiter_iternext_itflagsRNG_dimsANY_iters1( > NpyIter *iter) >{ > > const npy_uint32 itflags = 0x0040; > > int idim, ndim = ((iter)->ndim); > > > const int nop = 1; > > > > > NpyIter_AxisData *axisdata0; > npy_intp istrides, nstrides = ((nop) + ((itflags&0x0004) ? 1 : 0)); > > > NpyIter_AxisData *axisdata1; > npy_intp sizeof_axisdata; > > > NpyIter_AxisData *axisdata2; > > > > > if (++(iter->iterindex) >= (iter->iterend)) { > return 0; > } > > > > sizeof_axisdata = (( 1 + 1 + 2*((nop)+1) )*8 ); > > > > axisdata0 = ((NpyIter_AxisData *)( &(iter)->iter_flexdata + ((((((((0) + ((32 + 0x7)&(-0x8))) + ((8)*(nop))) + ((8)*(nop+1))) + ((8)*(nop+1))) + ((8)*(nop))) + (((nop + 0x7)&(-0x8)))) + ((itflags&0x0080) ? ((8)*(6 + 9*nop)) : 0)))); > > > > ((axisdata0)->index)++; > > for (istrides = 0; istrides < nstrides; ++istrides) { > ((char **) &(axisdata0)->ad_flexdata + 1*(nop+1))[istrides] += ( &(axisdata0)->ad_flexdata + 0)[istrides]; > } ># 1679 "numpy/core/src/multiarray/nditer.c.src" > if (((axisdata0)->index) < ((axisdata0)->shape)) { > return 1; > } > > > axisdata1 = ((NpyIter_AxisData *) (((char *)(axisdata0)) + (1)*sizeof_axisdata)); > > ((axisdata1)->index)++; > > for (istrides = 0; istrides < nstrides; ++istrides) { > ((char **) &(axisdata1)->ad_flexdata + 1*(nop+1))[istrides] += ( &(axisdata1)->ad_flexdata + 0)[istrides]; > } > > if (((axisdata1)->index) < ((axisdata1)->shape)) { > > ((axisdata0)->index) = 0; > > for (istrides = 0; istrides < nstrides; ++istrides) { > ((char **) &(axisdata0)->ad_flexdata + 1*(nop+1))[istrides] = ((char **) &(axisdata1)->ad_flexdata + 1*(nop+1))[istrides]; > } > return 1; > } > > > > > > axisdata2 = ((NpyIter_AxisData *) (((char *)(axisdata1)) + (1)*sizeof_axisdata)); > > ((axisdata2)->index)++; > > for (istrides = 0; istrides < nstrides; ++istrides) { > ((char **) &(axisdata2)->ad_flexdata + 1*(nop+1))[istrides] += ( &(axisdata2)->ad_flexdata + 0)[istrides]; > } > > if (((axisdata2)->index) < ((axisdata2)->shape)) { > > ((axisdata0)->index) = 0; > ((axisdata1)->index) = 0; > > for (istrides = 0; istrides < nstrides; ++istrides) { > ((char **) &(axisdata0)->ad_flexdata + 1*(nop+1))[istrides] = ((char **) &(axisdata2)->ad_flexdata + 1*(nop+1))[istrides]; > ((char **) &(axisdata1)->ad_flexdata + 1*(nop+1))[istrides] = ((char **) &(axisdata2)->ad_flexdata + 1*(nop+1))[istrides]; > } > return 1; > } > > for (idim = 3; idim < ndim; ++idim) { > axisdata2 = ((NpyIter_AxisData *) (((char *)(axisdata2)) + (1)*sizeof_axisdata)); > > ((axisdata2)->index)++; > > for (istrides = 0; istrides < nstrides; ++istrides) { > ((char **) &(axisdata2)->ad_flexdata + 1*(nop+1))[istrides] += ( &(axisdata2)->ad_flexdata + 0)[istrides]; > } > > > if (((axisdata2)->index) < ((axisdata2)->shape)) { > > axisdata1 = axisdata2; > do { > axisdata1 = ((NpyIter_AxisData *) (((char *)(axisdata1)) + (-1)*sizeof_axisdata)); > > ((axisdata1)->index) = 0; > > for (istrides = 0; istrides < nstrides; ++istrides) { > ((char **) &(axisdata1)->ad_flexdata + 1*(nop+1))[istrides] = > ((char **) &(axisdata2)->ad_flexdata + 1*(nop+1))[istrides]; > } > } while (axisdata1 != axisdata0); > > return 1; > } > } > > return 0; > > > > >} ># 1616 "numpy/core/src/multiarray/nditer.c.src" > > >static int >npyiter_iternext_itflagsRNG_dimsANY_iters2( > NpyIter *iter) >{ > > const npy_uint32 itflags = 0x0040; > > int idim, ndim = ((iter)->ndim); > > > const int nop = 2; > > > > > NpyIter_AxisData *axisdata0; > npy_intp istrides, nstrides = ((nop) + ((itflags&0x0004) ? 1 : 0)); > > > NpyIter_AxisData *axisdata1; > npy_intp sizeof_axisdata; > > > NpyIter_AxisData *axisdata2; > > > > > if (++(iter->iterindex) >= (iter->iterend)) { > return 0; > } > > > > sizeof_axisdata = (( 1 + 1 + 2*((nop)+1) )*8 ); > > > > axisdata0 = ((NpyIter_AxisData *)( &(iter)->iter_flexdata + ((((((((0) + ((32 + 0x7)&(-0x8))) + ((8)*(nop))) + ((8)*(nop+1))) + ((8)*(nop+1))) + ((8)*(nop))) + (((nop + 0x7)&(-0x8)))) + ((itflags&0x0080) ? ((8)*(6 + 9*nop)) : 0)))); > > > > ((axisdata0)->index)++; > > for (istrides = 0; istrides < nstrides; ++istrides) { > ((char **) &(axisdata0)->ad_flexdata + 1*(nop+1))[istrides] += ( &(axisdata0)->ad_flexdata + 0)[istrides]; > } ># 1679 "numpy/core/src/multiarray/nditer.c.src" > if (((axisdata0)->index) < ((axisdata0)->shape)) { > return 1; > } > > > axisdata1 = ((NpyIter_AxisData *) (((char *)(axisdata0)) + (1)*sizeof_axisdata)); > > ((axisdata1)->index)++; > > for (istrides = 0; istrides < nstrides; ++istrides) { > ((char **) &(axisdata1)->ad_flexdata + 1*(nop+1))[istrides] += ( &(axisdata1)->ad_flexdata + 0)[istrides]; > } > > if (((axisdata1)->index) < ((axisdata1)->shape)) { > > ((axisdata0)->index) = 0; > > for (istrides = 0; istrides < nstrides; ++istrides) { > ((char **) &(axisdata0)->ad_flexdata + 1*(nop+1))[istrides] = ((char **) &(axisdata1)->ad_flexdata + 1*(nop+1))[istrides]; > } > return 1; > } > > > > > > axisdata2 = ((NpyIter_AxisData *) (((char *)(axisdata1)) + (1)*sizeof_axisdata)); > > ((axisdata2)->index)++; > > for (istrides = 0; istrides < nstrides; ++istrides) { > ((char **) &(axisdata2)->ad_flexdata + 1*(nop+1))[istrides] += ( &(axisdata2)->ad_flexdata + 0)[istrides]; > } > > if (((axisdata2)->index) < ((axisdata2)->shape)) { > > ((axisdata0)->index) = 0; > ((axisdata1)->index) = 0; > > for (istrides = 0; istrides < nstrides; ++istrides) { > ((char **) &(axisdata0)->ad_flexdata + 1*(nop+1))[istrides] = ((char **) &(axisdata2)->ad_flexdata + 1*(nop+1))[istrides]; > ((char **) &(axisdata1)->ad_flexdata + 1*(nop+1))[istrides] = ((char **) &(axisdata2)->ad_flexdata + 1*(nop+1))[istrides]; > } > return 1; > } > > for (idim = 3; idim < ndim; ++idim) { > axisdata2 = ((NpyIter_AxisData *) (((char *)(axisdata2)) + (1)*sizeof_axisdata)); > > ((axisdata2)->index)++; > > for (istrides = 0; istrides < nstrides; ++istrides) { > ((char **) &(axisdata2)->ad_flexdata + 1*(nop+1))[istrides] += ( &(axisdata2)->ad_flexdata + 0)[istrides]; > } > > > if (((axisdata2)->index) < ((axisdata2)->shape)) { > > axisdata1 = axisdata2; > do { > axisdata1 = ((NpyIter_AxisData *) (((char *)(axisdata1)) + (-1)*sizeof_axisdata)); > > ((axisdata1)->index) = 0; > > for (istrides = 0; istrides < nstrides; ++istrides) { > ((char **) &(axisdata1)->ad_flexdata + 1*(nop+1))[istrides] = > ((char **) &(axisdata2)->ad_flexdata + 1*(nop+1))[istrides]; > } > } while (axisdata1 != axisdata0); > > return 1; > } > } > > return 0; > > > > >} ># 1616 "numpy/core/src/multiarray/nditer.c.src" > > >static int >npyiter_iternext_itflagsRNG_dimsANY_itersANY( > NpyIter *iter) >{ > > const npy_uint32 itflags = 0x0040; > > int idim, ndim = ((iter)->ndim); > > > > > int nop = ((iter)->nop); > > > NpyIter_AxisData *axisdata0; > npy_intp istrides, nstrides = ((nop) + ((itflags&0x0004) ? 1 : 0)); > > > NpyIter_AxisData *axisdata1; > npy_intp sizeof_axisdata; > > > NpyIter_AxisData *axisdata2; > > > > > if (++(iter->iterindex) >= (iter->iterend)) { > return 0; > } > > > > sizeof_axisdata = (( 1 + 1 + 2*((nop)+1) )*8 ); > > > > axisdata0 = ((NpyIter_AxisData *)( &(iter)->iter_flexdata + ((((((((0) + ((32 + 0x7)&(-0x8))) + ((8)*(nop))) + ((8)*(nop+1))) + ((8)*(nop+1))) + ((8)*(nop))) + (((nop + 0x7)&(-0x8)))) + ((itflags&0x0080) ? ((8)*(6 + 9*nop)) : 0)))); > > > > ((axisdata0)->index)++; > > for (istrides = 0; istrides < nstrides; ++istrides) { > ((char **) &(axisdata0)->ad_flexdata + 1*(nop+1))[istrides] += ( &(axisdata0)->ad_flexdata + 0)[istrides]; > } ># 1679 "numpy/core/src/multiarray/nditer.c.src" > if (((axisdata0)->index) < ((axisdata0)->shape)) { > return 1; > } > > > axisdata1 = ((NpyIter_AxisData *) (((char *)(axisdata0)) + (1)*sizeof_axisdata)); > > ((axisdata1)->index)++; > > for (istrides = 0; istrides < nstrides; ++istrides) { > ((char **) &(axisdata1)->ad_flexdata + 1*(nop+1))[istrides] += ( &(axisdata1)->ad_flexdata + 0)[istrides]; > } > > if (((axisdata1)->index) < ((axisdata1)->shape)) { > > ((axisdata0)->index) = 0; > > for (istrides = 0; istrides < nstrides; ++istrides) { > ((char **) &(axisdata0)->ad_flexdata + 1*(nop+1))[istrides] = ((char **) &(axisdata1)->ad_flexdata + 1*(nop+1))[istrides]; > } > return 1; > } > > > > > > axisdata2 = ((NpyIter_AxisData *) (((char *)(axisdata1)) + (1)*sizeof_axisdata)); > > ((axisdata2)->index)++; > > for (istrides = 0; istrides < nstrides; ++istrides) { > ((char **) &(axisdata2)->ad_flexdata + 1*(nop+1))[istrides] += ( &(axisdata2)->ad_flexdata + 0)[istrides]; > } > > if (((axisdata2)->index) < ((axisdata2)->shape)) { > > ((axisdata0)->index) = 0; > ((axisdata1)->index) = 0; > > for (istrides = 0; istrides < nstrides; ++istrides) { > ((char **) &(axisdata0)->ad_flexdata + 1*(nop+1))[istrides] = ((char **) &(axisdata2)->ad_flexdata + 1*(nop+1))[istrides]; > ((char **) &(axisdata1)->ad_flexdata + 1*(nop+1))[istrides] = ((char **) &(axisdata2)->ad_flexdata + 1*(nop+1))[istrides]; > } > return 1; > } > > for (idim = 3; idim < ndim; ++idim) { > axisdata2 = ((NpyIter_AxisData *) (((char *)(axisdata2)) + (1)*sizeof_axisdata)); > > ((axisdata2)->index)++; > > for (istrides = 0; istrides < nstrides; ++istrides) { > ((char **) &(axisdata2)->ad_flexdata + 1*(nop+1))[istrides] += ( &(axisdata2)->ad_flexdata + 0)[istrides]; > } > > > if (((axisdata2)->index) < ((axisdata2)->shape)) { > > axisdata1 = axisdata2; > do { > axisdata1 = ((NpyIter_AxisData *) (((char *)(axisdata1)) + (-1)*sizeof_axisdata)); > > ((axisdata1)->index) = 0; > > for (istrides = 0; istrides < nstrides; ++istrides) { > ((char **) &(axisdata1)->ad_flexdata + 1*(nop+1))[istrides] = > ((char **) &(axisdata2)->ad_flexdata + 1*(nop+1))[istrides]; > } > } while (axisdata1 != axisdata0); > > return 1; > } > } > > return 0; > > > > >} ># 1608 "numpy/core/src/multiarray/nditer.c.src" ># 1612 "numpy/core/src/multiarray/nditer.c.src" ># 1616 "numpy/core/src/multiarray/nditer.c.src" > > >static int >npyiter_iternext_itflagsRNGuIND_dims1_iters1( > NpyIter *iter) >{ ># 1646 "numpy/core/src/multiarray/nditer.c.src" > if (++(iter->iterindex) >= (iter->iterend)) { > return 0; > } ># 1673 "numpy/core/src/multiarray/nditer.c.src" > return 0; ># 1759 "numpy/core/src/multiarray/nditer.c.src" >} ># 1616 "numpy/core/src/multiarray/nditer.c.src" > > >static int >npyiter_iternext_itflagsRNGuIND_dims1_iters2( > NpyIter *iter) >{ ># 1646 "numpy/core/src/multiarray/nditer.c.src" > if (++(iter->iterindex) >= (iter->iterend)) { > return 0; > } ># 1673 "numpy/core/src/multiarray/nditer.c.src" > return 0; ># 1759 "numpy/core/src/multiarray/nditer.c.src" >} ># 1616 "numpy/core/src/multiarray/nditer.c.src" > > >static int >npyiter_iternext_itflagsRNGuIND_dims1_itersANY( > NpyIter *iter) >{ ># 1646 "numpy/core/src/multiarray/nditer.c.src" > if (++(iter->iterindex) >= (iter->iterend)) { > return 0; > } ># 1673 "numpy/core/src/multiarray/nditer.c.src" > return 0; ># 1759 "numpy/core/src/multiarray/nditer.c.src" >} ># 1612 "numpy/core/src/multiarray/nditer.c.src" ># 1616 "numpy/core/src/multiarray/nditer.c.src" > > >static int >npyiter_iternext_itflagsRNGuIND_dims2_iters1( > NpyIter *iter) >{ > > const npy_uint32 itflags = 0x0040|0x0004; > > > > > const int nop = 1; > > > > > NpyIter_AxisData *axisdata0; > npy_intp istrides, nstrides = ((nop) + ((itflags&0x0004) ? 1 : 0)); > > > NpyIter_AxisData *axisdata1; > npy_intp sizeof_axisdata; > > > > > > > > if (++(iter->iterindex) >= (iter->iterend)) { > return 0; > } > > > > sizeof_axisdata = (( 1 + 1 + 2*((nop)+1) )*8 ); > > > > axisdata0 = ((NpyIter_AxisData *)( &(iter)->iter_flexdata + ((((((((0) + ((32 + 0x7)&(-0x8))) + ((8)*(nop))) + ((8)*(nop+1))) + ((8)*(nop+1))) + ((8)*(nop))) + (((nop + 0x7)&(-0x8)))) + ((itflags&0x0080) ? ((8)*(6 + 9*nop)) : 0)))); ># 1684 "numpy/core/src/multiarray/nditer.c.src" > axisdata1 = ((NpyIter_AxisData *) (((char *)(axisdata0)) + (1)*sizeof_axisdata)); > > ((axisdata1)->index)++; > > for (istrides = 0; istrides < nstrides; ++istrides) { > ((char **) &(axisdata1)->ad_flexdata + 1*(nop+1))[istrides] += ( &(axisdata1)->ad_flexdata + 0)[istrides]; > } > > if (((axisdata1)->index) < ((axisdata1)->shape)) { > > ((axisdata0)->index) = 0; > > for (istrides = 0; istrides < nstrides; ++istrides) { > ((char **) &(axisdata0)->ad_flexdata + 1*(nop+1))[istrides] = ((char **) &(axisdata1)->ad_flexdata + 1*(nop+1))[istrides]; > } > return 1; > } > > > return 0; ># 1759 "numpy/core/src/multiarray/nditer.c.src" >} ># 1616 "numpy/core/src/multiarray/nditer.c.src" > > >static int >npyiter_iternext_itflagsRNGuIND_dims2_iters2( > NpyIter *iter) >{ > > const npy_uint32 itflags = 0x0040|0x0004; > > > > > const int nop = 2; > > > > > NpyIter_AxisData *axisdata0; > npy_intp istrides, nstrides = ((nop) + ((itflags&0x0004) ? 1 : 0)); > > > NpyIter_AxisData *axisdata1; > npy_intp sizeof_axisdata; > > > > > > > > if (++(iter->iterindex) >= (iter->iterend)) { > return 0; > } > > > > sizeof_axisdata = (( 1 + 1 + 2*((nop)+1) )*8 ); > > > > axisdata0 = ((NpyIter_AxisData *)( &(iter)->iter_flexdata + ((((((((0) + ((32 + 0x7)&(-0x8))) + ((8)*(nop))) + ((8)*(nop+1))) + ((8)*(nop+1))) + ((8)*(nop))) + (((nop + 0x7)&(-0x8)))) + ((itflags&0x0080) ? ((8)*(6 + 9*nop)) : 0)))); ># 1684 "numpy/core/src/multiarray/nditer.c.src" > axisdata1 = ((NpyIter_AxisData *) (((char *)(axisdata0)) + (1)*sizeof_axisdata)); > > ((axisdata1)->index)++; > > for (istrides = 0; istrides < nstrides; ++istrides) { > ((char **) &(axisdata1)->ad_flexdata + 1*(nop+1))[istrides] += ( &(axisdata1)->ad_flexdata + 0)[istrides]; > } > > if (((axisdata1)->index) < ((axisdata1)->shape)) { > > ((axisdata0)->index) = 0; > > for (istrides = 0; istrides < nstrides; ++istrides) { > ((char **) &(axisdata0)->ad_flexdata + 1*(nop+1))[istrides] = ((char **) &(axisdata1)->ad_flexdata + 1*(nop+1))[istrides]; > } > return 1; > } > > > return 0; ># 1759 "numpy/core/src/multiarray/nditer.c.src" >} ># 1616 "numpy/core/src/multiarray/nditer.c.src" > > >static int >npyiter_iternext_itflagsRNGuIND_dims2_itersANY( > NpyIter *iter) >{ > > const npy_uint32 itflags = 0x0040|0x0004; > > > > > > > int nop = ((iter)->nop); > > > NpyIter_AxisData *axisdata0; > npy_intp istrides, nstrides = ((nop) + ((itflags&0x0004) ? 1 : 0)); > > > NpyIter_AxisData *axisdata1; > npy_intp sizeof_axisdata; > > > > > > > > if (++(iter->iterindex) >= (iter->iterend)) { > return 0; > } > > > > sizeof_axisdata = (( 1 + 1 + 2*((nop)+1) )*8 ); > > > > axisdata0 = ((NpyIter_AxisData *)( &(iter)->iter_flexdata + ((((((((0) + ((32 + 0x7)&(-0x8))) + ((8)*(nop))) + ((8)*(nop+1))) + ((8)*(nop+1))) + ((8)*(nop))) + (((nop + 0x7)&(-0x8)))) + ((itflags&0x0080) ? ((8)*(6 + 9*nop)) : 0)))); ># 1684 "numpy/core/src/multiarray/nditer.c.src" > axisdata1 = ((NpyIter_AxisData *) (((char *)(axisdata0)) + (1)*sizeof_axisdata)); > > ((axisdata1)->index)++; > > for (istrides = 0; istrides < nstrides; ++istrides) { > ((char **) &(axisdata1)->ad_flexdata + 1*(nop+1))[istrides] += ( &(axisdata1)->ad_flexdata + 0)[istrides]; > } > > if (((axisdata1)->index) < ((axisdata1)->shape)) { > > ((axisdata0)->index) = 0; > > for (istrides = 0; istrides < nstrides; ++istrides) { > ((char **) &(axisdata0)->ad_flexdata + 1*(nop+1))[istrides] = ((char **) &(axisdata1)->ad_flexdata + 1*(nop+1))[istrides]; > } > return 1; > } > > > return 0; ># 1759 "numpy/core/src/multiarray/nditer.c.src" >} ># 1612 "numpy/core/src/multiarray/nditer.c.src" ># 1616 "numpy/core/src/multiarray/nditer.c.src" > > >static int >npyiter_iternext_itflagsRNGuIND_dimsANY_iters1( > NpyIter *iter) >{ > > const npy_uint32 itflags = 0x0040|0x0004; > > int idim, ndim = ((iter)->ndim); > > > const int nop = 1; > > > > > NpyIter_AxisData *axisdata0; > npy_intp istrides, nstrides = ((nop) + ((itflags&0x0004) ? 1 : 0)); > > > NpyIter_AxisData *axisdata1; > npy_intp sizeof_axisdata; > > > NpyIter_AxisData *axisdata2; > > > > > if (++(iter->iterindex) >= (iter->iterend)) { > return 0; > } > > > > sizeof_axisdata = (( 1 + 1 + 2*((nop)+1) )*8 ); > > > > axisdata0 = ((NpyIter_AxisData *)( &(iter)->iter_flexdata + ((((((((0) + ((32 + 0x7)&(-0x8))) + ((8)*(nop))) + ((8)*(nop+1))) + ((8)*(nop+1))) + ((8)*(nop))) + (((nop + 0x7)&(-0x8)))) + ((itflags&0x0080) ? ((8)*(6 + 9*nop)) : 0)))); ># 1684 "numpy/core/src/multiarray/nditer.c.src" > axisdata1 = ((NpyIter_AxisData *) (((char *)(axisdata0)) + (1)*sizeof_axisdata)); > > ((axisdata1)->index)++; > > for (istrides = 0; istrides < nstrides; ++istrides) { > ((char **) &(axisdata1)->ad_flexdata + 1*(nop+1))[istrides] += ( &(axisdata1)->ad_flexdata + 0)[istrides]; > } > > if (((axisdata1)->index) < ((axisdata1)->shape)) { > > ((axisdata0)->index) = 0; > > for (istrides = 0; istrides < nstrides; ++istrides) { > ((char **) &(axisdata0)->ad_flexdata + 1*(nop+1))[istrides] = ((char **) &(axisdata1)->ad_flexdata + 1*(nop+1))[istrides]; > } > return 1; > } > > > > > > axisdata2 = ((NpyIter_AxisData *) (((char *)(axisdata1)) + (1)*sizeof_axisdata)); > > ((axisdata2)->index)++; > > for (istrides = 0; istrides < nstrides; ++istrides) { > ((char **) &(axisdata2)->ad_flexdata + 1*(nop+1))[istrides] += ( &(axisdata2)->ad_flexdata + 0)[istrides]; > } > > if (((axisdata2)->index) < ((axisdata2)->shape)) { > > ((axisdata0)->index) = 0; > ((axisdata1)->index) = 0; > > for (istrides = 0; istrides < nstrides; ++istrides) { > ((char **) &(axisdata0)->ad_flexdata + 1*(nop+1))[istrides] = ((char **) &(axisdata2)->ad_flexdata + 1*(nop+1))[istrides]; > ((char **) &(axisdata1)->ad_flexdata + 1*(nop+1))[istrides] = ((char **) &(axisdata2)->ad_flexdata + 1*(nop+1))[istrides]; > } > return 1; > } > > for (idim = 3; idim < ndim; ++idim) { > axisdata2 = ((NpyIter_AxisData *) (((char *)(axisdata2)) + (1)*sizeof_axisdata)); > > ((axisdata2)->index)++; > > for (istrides = 0; istrides < nstrides; ++istrides) { > ((char **) &(axisdata2)->ad_flexdata + 1*(nop+1))[istrides] += ( &(axisdata2)->ad_flexdata + 0)[istrides]; > } > > > if (((axisdata2)->index) < ((axisdata2)->shape)) { > > axisdata1 = axisdata2; > do { > axisdata1 = ((NpyIter_AxisData *) (((char *)(axisdata1)) + (-1)*sizeof_axisdata)); > > ((axisdata1)->index) = 0; > > for (istrides = 0; istrides < nstrides; ++istrides) { > ((char **) &(axisdata1)->ad_flexdata + 1*(nop+1))[istrides] = > ((char **) &(axisdata2)->ad_flexdata + 1*(nop+1))[istrides]; > } > } while (axisdata1 != axisdata0); > > return 1; > } > } > > return 0; > > > > >} ># 1616 "numpy/core/src/multiarray/nditer.c.src" > > >static int >npyiter_iternext_itflagsRNGuIND_dimsANY_iters2( > NpyIter *iter) >{ > > const npy_uint32 itflags = 0x0040|0x0004; > > int idim, ndim = ((iter)->ndim); > > > const int nop = 2; > > > > > NpyIter_AxisData *axisdata0; > npy_intp istrides, nstrides = ((nop) + ((itflags&0x0004) ? 1 : 0)); > > > NpyIter_AxisData *axisdata1; > npy_intp sizeof_axisdata; > > > NpyIter_AxisData *axisdata2; > > > > > if (++(iter->iterindex) >= (iter->iterend)) { > return 0; > } > > > > sizeof_axisdata = (( 1 + 1 + 2*((nop)+1) )*8 ); > > > > axisdata0 = ((NpyIter_AxisData *)( &(iter)->iter_flexdata + ((((((((0) + ((32 + 0x7)&(-0x8))) + ((8)*(nop))) + ((8)*(nop+1))) + ((8)*(nop+1))) + ((8)*(nop))) + (((nop + 0x7)&(-0x8)))) + ((itflags&0x0080) ? ((8)*(6 + 9*nop)) : 0)))); ># 1684 "numpy/core/src/multiarray/nditer.c.src" > axisdata1 = ((NpyIter_AxisData *) (((char *)(axisdata0)) + (1)*sizeof_axisdata)); > > ((axisdata1)->index)++; > > for (istrides = 0; istrides < nstrides; ++istrides) { > ((char **) &(axisdata1)->ad_flexdata + 1*(nop+1))[istrides] += ( &(axisdata1)->ad_flexdata + 0)[istrides]; > } > > if (((axisdata1)->index) < ((axisdata1)->shape)) { > > ((axisdata0)->index) = 0; > > for (istrides = 0; istrides < nstrides; ++istrides) { > ((char **) &(axisdata0)->ad_flexdata + 1*(nop+1))[istrides] = ((char **) &(axisdata1)->ad_flexdata + 1*(nop+1))[istrides]; > } > return 1; > } > > > > > > axisdata2 = ((NpyIter_AxisData *) (((char *)(axisdata1)) + (1)*sizeof_axisdata)); > > ((axisdata2)->index)++; > > for (istrides = 0; istrides < nstrides; ++istrides) { > ((char **) &(axisdata2)->ad_flexdata + 1*(nop+1))[istrides] += ( &(axisdata2)->ad_flexdata + 0)[istrides]; > } > > if (((axisdata2)->index) < ((axisdata2)->shape)) { > > ((axisdata0)->index) = 0; > ((axisdata1)->index) = 0; > > for (istrides = 0; istrides < nstrides; ++istrides) { > ((char **) &(axisdata0)->ad_flexdata + 1*(nop+1))[istrides] = ((char **) &(axisdata2)->ad_flexdata + 1*(nop+1))[istrides]; > ((char **) &(axisdata1)->ad_flexdata + 1*(nop+1))[istrides] = ((char **) &(axisdata2)->ad_flexdata + 1*(nop+1))[istrides]; > } > return 1; > } > > for (idim = 3; idim < ndim; ++idim) { > axisdata2 = ((NpyIter_AxisData *) (((char *)(axisdata2)) + (1)*sizeof_axisdata)); > > ((axisdata2)->index)++; > > for (istrides = 0; istrides < nstrides; ++istrides) { > ((char **) &(axisdata2)->ad_flexdata + 1*(nop+1))[istrides] += ( &(axisdata2)->ad_flexdata + 0)[istrides]; > } > > > if (((axisdata2)->index) < ((axisdata2)->shape)) { > > axisdata1 = axisdata2; > do { > axisdata1 = ((NpyIter_AxisData *) (((char *)(axisdata1)) + (-1)*sizeof_axisdata)); > > ((axisdata1)->index) = 0; > > for (istrides = 0; istrides < nstrides; ++istrides) { > ((char **) &(axisdata1)->ad_flexdata + 1*(nop+1))[istrides] = > ((char **) &(axisdata2)->ad_flexdata + 1*(nop+1))[istrides]; > } > } while (axisdata1 != axisdata0); > > return 1; > } > } > > return 0; > > > > >} ># 1616 "numpy/core/src/multiarray/nditer.c.src" > > >static int >npyiter_iternext_itflagsRNGuIND_dimsANY_itersANY( > NpyIter *iter) >{ > > const npy_uint32 itflags = 0x0040|0x0004; > > int idim, ndim = ((iter)->ndim); > > > > > int nop = ((iter)->nop); > > > NpyIter_AxisData *axisdata0; > npy_intp istrides, nstrides = ((nop) + ((itflags&0x0004) ? 1 : 0)); > > > NpyIter_AxisData *axisdata1; > npy_intp sizeof_axisdata; > > > NpyIter_AxisData *axisdata2; > > > > > if (++(iter->iterindex) >= (iter->iterend)) { > return 0; > } > > > > sizeof_axisdata = (( 1 + 1 + 2*((nop)+1) )*8 ); > > > > axisdata0 = ((NpyIter_AxisData *)( &(iter)->iter_flexdata + ((((((((0) + ((32 + 0x7)&(-0x8))) + ((8)*(nop))) + ((8)*(nop+1))) + ((8)*(nop+1))) + ((8)*(nop))) + (((nop + 0x7)&(-0x8)))) + ((itflags&0x0080) ? ((8)*(6 + 9*nop)) : 0)))); ># 1684 "numpy/core/src/multiarray/nditer.c.src" > axisdata1 = ((NpyIter_AxisData *) (((char *)(axisdata0)) + (1)*sizeof_axisdata)); > > ((axisdata1)->index)++; > > for (istrides = 0; istrides < nstrides; ++istrides) { > ((char **) &(axisdata1)->ad_flexdata + 1*(nop+1))[istrides] += ( &(axisdata1)->ad_flexdata + 0)[istrides]; > } > > if (((axisdata1)->index) < ((axisdata1)->shape)) { > > ((axisdata0)->index) = 0; > > for (istrides = 0; istrides < nstrides; ++istrides) { > ((char **) &(axisdata0)->ad_flexdata + 1*(nop+1))[istrides] = ((char **) &(axisdata1)->ad_flexdata + 1*(nop+1))[istrides]; > } > return 1; > } > > > > > > axisdata2 = ((NpyIter_AxisData *) (((char *)(axisdata1)) + (1)*sizeof_axisdata)); > > ((axisdata2)->index)++; > > for (istrides = 0; istrides < nstrides; ++istrides) { > ((char **) &(axisdata2)->ad_flexdata + 1*(nop+1))[istrides] += ( &(axisdata2)->ad_flexdata + 0)[istrides]; > } > > if (((axisdata2)->index) < ((axisdata2)->shape)) { > > ((axisdata0)->index) = 0; > ((axisdata1)->index) = 0; > > for (istrides = 0; istrides < nstrides; ++istrides) { > ((char **) &(axisdata0)->ad_flexdata + 1*(nop+1))[istrides] = ((char **) &(axisdata2)->ad_flexdata + 1*(nop+1))[istrides]; > ((char **) &(axisdata1)->ad_flexdata + 1*(nop+1))[istrides] = ((char **) &(axisdata2)->ad_flexdata + 1*(nop+1))[istrides]; > } > return 1; > } > > for (idim = 3; idim < ndim; ++idim) { > axisdata2 = ((NpyIter_AxisData *) (((char *)(axisdata2)) + (1)*sizeof_axisdata)); > > ((axisdata2)->index)++; > > for (istrides = 0; istrides < nstrides; ++istrides) { > ((char **) &(axisdata2)->ad_flexdata + 1*(nop+1))[istrides] += ( &(axisdata2)->ad_flexdata + 0)[istrides]; > } > > > if (((axisdata2)->index) < ((axisdata2)->shape)) { > > axisdata1 = axisdata2; > do { > axisdata1 = ((NpyIter_AxisData *) (((char *)(axisdata1)) + (-1)*sizeof_axisdata)); > > ((axisdata1)->index) = 0; > > for (istrides = 0; istrides < nstrides; ++istrides) { > ((char **) &(axisdata1)->ad_flexdata + 1*(nop+1))[istrides] = > ((char **) &(axisdata2)->ad_flexdata + 1*(nop+1))[istrides]; > } > } while (axisdata1 != axisdata0); > > return 1; > } > } > > return 0; > > > > >} ># 1770 "numpy/core/src/multiarray/nditer.c.src" > > > > > >static int >npyiter_buffered_reduce_iternext_iters1(NpyIter *iter) >{ > npy_uint32 itflags = ((iter)->itflags); > > > > > const int nop = 1; > > > int iop; > > NpyIter_AxisData *axisdata; > NpyIter_BufferData *bufferdata = ((NpyIter_BufferData *)( &(iter)->iter_flexdata + (((((((0) + ((32 + 0x7)&(-0x8))) + ((8)*(nop))) + ((8)*(nop+1))) + ((8)*(nop+1))) + ((8)*(nop))) + (((nop + 0x7)&(-0x8)))))); > char **ptrs; > char *prev_dataptrs[32]; > > ptrs = ((char **) (&(bufferdata)->bd_flexdata + 1*(nop))); > > > > > > if (!(itflags&0x0020)) { > > if (++(iter->iterindex) < ((bufferdata)->bufiterend)) { > npy_intp *strides; > > strides = ( &(bufferdata)->bd_flexdata + 0); > for (iop = 0; iop < nop; ++iop) { > ptrs[iop] += strides[iop]; > } > return 1; > } > } > else { > (iter->iterindex) += ((bufferdata)->size); > } > > ; > > > if (++((bufferdata)->reduce_pos) < ((bufferdata)->reduce_outersize)) { > npy_intp *reduce_outerstrides = ( (&(bufferdata)->bd_flexdata + 2*(nop))); > char **reduce_outerptrs = ((char **) (&(bufferdata)->bd_flexdata + 3*(nop))); > for (iop = 0; iop < nop; ++iop) { > char *ptr = reduce_outerptrs[iop] + reduce_outerstrides[iop]; > ptrs[iop] = ptr; > reduce_outerptrs[iop] = ptr; > } > ((bufferdata)->bufiterend) = (iter->iterindex) + ((bufferdata)->size); > return 1; > } > > > axisdata = ((NpyIter_AxisData *)( &(iter)->iter_flexdata + ((((((((0) + ((32 + 0x7)&(-0x8))) + ((8)*(nop))) + ((8)*(nop+1))) + ((8)*(nop+1))) + ((8)*(nop))) + (((nop + 0x7)&(-0x8)))) + ((itflags&0x0080) ? ((8)*(6 + 9*nop)) : 0)))); > memcpy(prev_dataptrs, ((char **) &(axisdata)->ad_flexdata + 1*(nop+1)), 8*nop); > > > npyiter_copy_from_buffers(iter); > > > if ((iter->iterindex) >= (iter->iterend)) { > ((bufferdata)->size) = 0; > return 0; > } > > else { > npyiter_goto_iterindex(iter, (iter->iterindex)); > } > > > npyiter_copy_to_buffers(iter, prev_dataptrs); > > return 1; >} ># 1770 "numpy/core/src/multiarray/nditer.c.src" > > > > > >static int >npyiter_buffered_reduce_iternext_iters2(NpyIter *iter) >{ > npy_uint32 itflags = ((iter)->itflags); > > > > > const int nop = 2; > > > int iop; > > NpyIter_AxisData *axisdata; > NpyIter_BufferData *bufferdata = ((NpyIter_BufferData *)( &(iter)->iter_flexdata + (((((((0) + ((32 + 0x7)&(-0x8))) + ((8)*(nop))) + ((8)*(nop+1))) + ((8)*(nop+1))) + ((8)*(nop))) + (((nop + 0x7)&(-0x8)))))); > char **ptrs; > char *prev_dataptrs[32]; > > ptrs = ((char **) (&(bufferdata)->bd_flexdata + 1*(nop))); > > > > > > if (!(itflags&0x0020)) { > > if (++(iter->iterindex) < ((bufferdata)->bufiterend)) { > npy_intp *strides; > > strides = ( &(bufferdata)->bd_flexdata + 0); > for (iop = 0; iop < nop; ++iop) { > ptrs[iop] += strides[iop]; > } > return 1; > } > } > else { > (iter->iterindex) += ((bufferdata)->size); > } > > ; > > > if (++((bufferdata)->reduce_pos) < ((bufferdata)->reduce_outersize)) { > npy_intp *reduce_outerstrides = ( (&(bufferdata)->bd_flexdata + 2*(nop))); > char **reduce_outerptrs = ((char **) (&(bufferdata)->bd_flexdata + 3*(nop))); > for (iop = 0; iop < nop; ++iop) { > char *ptr = reduce_outerptrs[iop] + reduce_outerstrides[iop]; > ptrs[iop] = ptr; > reduce_outerptrs[iop] = ptr; > } > ((bufferdata)->bufiterend) = (iter->iterindex) + ((bufferdata)->size); > return 1; > } > > > axisdata = ((NpyIter_AxisData *)( &(iter)->iter_flexdata + ((((((((0) + ((32 + 0x7)&(-0x8))) + ((8)*(nop))) + ((8)*(nop+1))) + ((8)*(nop+1))) + ((8)*(nop))) + (((nop + 0x7)&(-0x8)))) + ((itflags&0x0080) ? ((8)*(6 + 9*nop)) : 0)))); > memcpy(prev_dataptrs, ((char **) &(axisdata)->ad_flexdata + 1*(nop+1)), 8*nop); > > > npyiter_copy_from_buffers(iter); > > > if ((iter->iterindex) >= (iter->iterend)) { > ((bufferdata)->size) = 0; > return 0; > } > > else { > npyiter_goto_iterindex(iter, (iter->iterindex)); > } > > > npyiter_copy_to_buffers(iter, prev_dataptrs); > > return 1; >} ># 1770 "numpy/core/src/multiarray/nditer.c.src" > > > > > >static int >npyiter_buffered_reduce_iternext_iters3(NpyIter *iter) >{ > npy_uint32 itflags = ((iter)->itflags); > > > > > const int nop = 3; > > > int iop; > > NpyIter_AxisData *axisdata; > NpyIter_BufferData *bufferdata = ((NpyIter_BufferData *)( &(iter)->iter_flexdata + (((((((0) + ((32 + 0x7)&(-0x8))) + ((8)*(nop))) + ((8)*(nop+1))) + ((8)*(nop+1))) + ((8)*(nop))) + (((nop + 0x7)&(-0x8)))))); > char **ptrs; > char *prev_dataptrs[32]; > > ptrs = ((char **) (&(bufferdata)->bd_flexdata + 1*(nop))); > > > > > > if (!(itflags&0x0020)) { > > if (++(iter->iterindex) < ((bufferdata)->bufiterend)) { > npy_intp *strides; > > strides = ( &(bufferdata)->bd_flexdata + 0); > for (iop = 0; iop < nop; ++iop) { > ptrs[iop] += strides[iop]; > } > return 1; > } > } > else { > (iter->iterindex) += ((bufferdata)->size); > } > > ; > > > if (++((bufferdata)->reduce_pos) < ((bufferdata)->reduce_outersize)) { > npy_intp *reduce_outerstrides = ( (&(bufferdata)->bd_flexdata + 2*(nop))); > char **reduce_outerptrs = ((char **) (&(bufferdata)->bd_flexdata + 3*(nop))); > for (iop = 0; iop < nop; ++iop) { > char *ptr = reduce_outerptrs[iop] + reduce_outerstrides[iop]; > ptrs[iop] = ptr; > reduce_outerptrs[iop] = ptr; > } > ((bufferdata)->bufiterend) = (iter->iterindex) + ((bufferdata)->size); > return 1; > } > > > axisdata = ((NpyIter_AxisData *)( &(iter)->iter_flexdata + ((((((((0) + ((32 + 0x7)&(-0x8))) + ((8)*(nop))) + ((8)*(nop+1))) + ((8)*(nop+1))) + ((8)*(nop))) + (((nop + 0x7)&(-0x8)))) + ((itflags&0x0080) ? ((8)*(6 + 9*nop)) : 0)))); > memcpy(prev_dataptrs, ((char **) &(axisdata)->ad_flexdata + 1*(nop+1)), 8*nop); > > > npyiter_copy_from_buffers(iter); > > > if ((iter->iterindex) >= (iter->iterend)) { > ((bufferdata)->size) = 0; > return 0; > } > > else { > npyiter_goto_iterindex(iter, (iter->iterindex)); > } > > > npyiter_copy_to_buffers(iter, prev_dataptrs); > > return 1; >} ># 1770 "numpy/core/src/multiarray/nditer.c.src" > > > > > >static int >npyiter_buffered_reduce_iternext_iters4(NpyIter *iter) >{ > npy_uint32 itflags = ((iter)->itflags); > > > > > const int nop = 4; > > > int iop; > > NpyIter_AxisData *axisdata; > NpyIter_BufferData *bufferdata = ((NpyIter_BufferData *)( &(iter)->iter_flexdata + (((((((0) + ((32 + 0x7)&(-0x8))) + ((8)*(nop))) + ((8)*(nop+1))) + ((8)*(nop+1))) + ((8)*(nop))) + (((nop + 0x7)&(-0x8)))))); > char **ptrs; > char *prev_dataptrs[32]; > > ptrs = ((char **) (&(bufferdata)->bd_flexdata + 1*(nop))); > > > > > > if (!(itflags&0x0020)) { > > if (++(iter->iterindex) < ((bufferdata)->bufiterend)) { > npy_intp *strides; > > strides = ( &(bufferdata)->bd_flexdata + 0); > for (iop = 0; iop < nop; ++iop) { > ptrs[iop] += strides[iop]; > } > return 1; > } > } > else { > (iter->iterindex) += ((bufferdata)->size); > } > > ; > > > if (++((bufferdata)->reduce_pos) < ((bufferdata)->reduce_outersize)) { > npy_intp *reduce_outerstrides = ( (&(bufferdata)->bd_flexdata + 2*(nop))); > char **reduce_outerptrs = ((char **) (&(bufferdata)->bd_flexdata + 3*(nop))); > for (iop = 0; iop < nop; ++iop) { > char *ptr = reduce_outerptrs[iop] + reduce_outerstrides[iop]; > ptrs[iop] = ptr; > reduce_outerptrs[iop] = ptr; > } > ((bufferdata)->bufiterend) = (iter->iterindex) + ((bufferdata)->size); > return 1; > } > > > axisdata = ((NpyIter_AxisData *)( &(iter)->iter_flexdata + ((((((((0) + ((32 + 0x7)&(-0x8))) + ((8)*(nop))) + ((8)*(nop+1))) + ((8)*(nop+1))) + ((8)*(nop))) + (((nop + 0x7)&(-0x8)))) + ((itflags&0x0080) ? ((8)*(6 + 9*nop)) : 0)))); > memcpy(prev_dataptrs, ((char **) &(axisdata)->ad_flexdata + 1*(nop+1)), 8*nop); > > > npyiter_copy_from_buffers(iter); > > > if ((iter->iterindex) >= (iter->iterend)) { > ((bufferdata)->size) = 0; > return 0; > } > > else { > npyiter_goto_iterindex(iter, (iter->iterindex)); > } > > > npyiter_copy_to_buffers(iter, prev_dataptrs); > > return 1; >} ># 1770 "numpy/core/src/multiarray/nditer.c.src" > > > > > >static int >npyiter_buffered_reduce_iternext_itersANY(NpyIter *iter) >{ > npy_uint32 itflags = ((iter)->itflags); > > > int nop = ((iter)->nop); > > > > > int iop; > > NpyIter_AxisData *axisdata; > NpyIter_BufferData *bufferdata = ((NpyIter_BufferData *)( &(iter)->iter_flexdata + (((((((0) + ((32 + 0x7)&(-0x8))) + ((8)*(nop))) + ((8)*(nop+1))) + ((8)*(nop+1))) + ((8)*(nop))) + (((nop + 0x7)&(-0x8)))))); > char **ptrs; > char *prev_dataptrs[32]; > > ptrs = ((char **) (&(bufferdata)->bd_flexdata + 1*(nop))); > > > > > > if (!(itflags&0x0020)) { > > if (++(iter->iterindex) < ((bufferdata)->bufiterend)) { > npy_intp *strides; > > strides = ( &(bufferdata)->bd_flexdata + 0); > for (iop = 0; iop < nop; ++iop) { > ptrs[iop] += strides[iop]; > } > return 1; > } > } > else { > (iter->iterindex) += ((bufferdata)->size); > } > > ; > > > if (++((bufferdata)->reduce_pos) < ((bufferdata)->reduce_outersize)) { > npy_intp *reduce_outerstrides = ( (&(bufferdata)->bd_flexdata + 2*(nop))); > char **reduce_outerptrs = ((char **) (&(bufferdata)->bd_flexdata + 3*(nop))); > for (iop = 0; iop < nop; ++iop) { > char *ptr = reduce_outerptrs[iop] + reduce_outerstrides[iop]; > ptrs[iop] = ptr; > reduce_outerptrs[iop] = ptr; > } > ((bufferdata)->bufiterend) = (iter->iterindex) + ((bufferdata)->size); > return 1; > } > > > axisdata = ((NpyIter_AxisData *)( &(iter)->iter_flexdata + ((((((((0) + ((32 + 0x7)&(-0x8))) + ((8)*(nop))) + ((8)*(nop+1))) + ((8)*(nop+1))) + ((8)*(nop))) + (((nop + 0x7)&(-0x8)))) + ((itflags&0x0080) ? ((8)*(6 + 9*nop)) : 0)))); > memcpy(prev_dataptrs, ((char **) &(axisdata)->ad_flexdata + 1*(nop+1)), 8*nop); > > > npyiter_copy_from_buffers(iter); > > > if ((iter->iterindex) >= (iter->iterend)) { > ((bufferdata)->size) = 0; > return 0; > } > > else { > npyiter_goto_iterindex(iter, (iter->iterindex)); > } > > > npyiter_copy_to_buffers(iter, prev_dataptrs); > > return 1; >} > > > > >static int >npyiter_buffered_iternext(NpyIter *iter) >{ > npy_uint32 itflags = ((iter)->itflags); > > int nop = ((iter)->nop); > > NpyIter_BufferData *bufferdata = ((NpyIter_BufferData *)( &(iter)->iter_flexdata + (((((((0) + ((32 + 0x7)&(-0x8))) + ((8)*(nop))) + ((8)*(nop+1))) + ((8)*(nop+1))) + ((8)*(nop))) + (((nop + 0x7)&(-0x8)))))); > > > > > > if (!(itflags&0x0020)) { > > if (++(iter->iterindex) < ((bufferdata)->bufiterend)) { > int iop; > npy_intp *strides; > char **ptrs; > > strides = ( &(bufferdata)->bd_flexdata + 0); > ptrs = ((char **) (&(bufferdata)->bd_flexdata + 1*(nop))); > for (iop = 0; iop < nop; ++iop) { > ptrs[iop] += strides[iop]; > } > return 1; > } > } > else { > (iter->iterindex) += ((bufferdata)->size); > } > > > npyiter_copy_from_buffers(iter); > > > if ((iter->iterindex) >= (iter->iterend)) { > ((bufferdata)->size) = 0; > return 0; > } > > else { > npyiter_goto_iterindex(iter, (iter->iterindex)); > } > > > npyiter_copy_to_buffers(iter, ((void *)0)); > > return 1; >} > > > > > > >static int >npyiter_iternext_sizeone(NpyIter *iter) >{ > return 0; >} ># 1926 "numpy/core/src/multiarray/nditer.c.src" >static NpyIter_IterNextFunc * >NpyIter_GetIterNext(NpyIter *iter, char **errmsg) >{ > npy_uint32 itflags = ((iter)->itflags); > int ndim = ((iter)->ndim); > int nop = ((iter)->nop); > > > > > > if (itflags&0x0200) { > return &npyiter_iternext_sizeone; > } > > > > > if (itflags&0x0080) { > if (itflags&0x1000) { > switch (nop) { > case 1: > return &npyiter_buffered_reduce_iternext_iters1; > case 2: > return &npyiter_buffered_reduce_iternext_iters2; > case 3: > return &npyiter_buffered_reduce_iternext_iters3; > case 4: > return &npyiter_buffered_reduce_iternext_iters4; > default: > return &npyiter_buffered_reduce_iternext_itersANY; > } > } > else { > return &npyiter_buffered_iternext; > } > } > > > > > > > itflags &= (0x0004|0x0020|0x0040); > > > switch (itflags) { ># 1985 "numpy/core/src/multiarray/nditer.c.src" > case 0: > switch (ndim) { ># 1991 "numpy/core/src/multiarray/nditer.c.src" > case 1: > switch (nop) { ># 1997 "numpy/core/src/multiarray/nditer.c.src" > case 1: > return &npyiter_iternext_itflags0_dims1_iters1; ># 1997 "numpy/core/src/multiarray/nditer.c.src" > case 2: > return &npyiter_iternext_itflags0_dims1_iters2; > > > default: > return &npyiter_iternext_itflags0_dims1_itersANY; > } ># 1991 "numpy/core/src/multiarray/nditer.c.src" > case 2: > switch (nop) { ># 1997 "numpy/core/src/multiarray/nditer.c.src" > case 1: > return &npyiter_iternext_itflags0_dims2_iters1; ># 1997 "numpy/core/src/multiarray/nditer.c.src" > case 2: > return &npyiter_iternext_itflags0_dims2_iters2; > > > default: > return &npyiter_iternext_itflags0_dims2_itersANY; > } > > > default: > switch (nop) { ># 2012 "numpy/core/src/multiarray/nditer.c.src" > case 1: > return &npyiter_iternext_itflags0_dimsANY_iters1; ># 2012 "numpy/core/src/multiarray/nditer.c.src" > case 2: > return &npyiter_iternext_itflags0_dimsANY_iters2; > > > default: > return &npyiter_iternext_itflags0_dimsANY_itersANY; > } > } ># 1985 "numpy/core/src/multiarray/nditer.c.src" > case 0x0004: > switch (ndim) { ># 1991 "numpy/core/src/multiarray/nditer.c.src" > case 1: > switch (nop) { ># 1997 "numpy/core/src/multiarray/nditer.c.src" > case 1: > return &npyiter_iternext_itflagsIND_dims1_iters1; ># 1997 "numpy/core/src/multiarray/nditer.c.src" > case 2: > return &npyiter_iternext_itflagsIND_dims1_iters2; > > > default: > return &npyiter_iternext_itflagsIND_dims1_itersANY; > } ># 1991 "numpy/core/src/multiarray/nditer.c.src" > case 2: > switch (nop) { ># 1997 "numpy/core/src/multiarray/nditer.c.src" > case 1: > return &npyiter_iternext_itflagsIND_dims2_iters1; ># 1997 "numpy/core/src/multiarray/nditer.c.src" > case 2: > return &npyiter_iternext_itflagsIND_dims2_iters2; > > > default: > return &npyiter_iternext_itflagsIND_dims2_itersANY; > } > > > default: > switch (nop) { ># 2012 "numpy/core/src/multiarray/nditer.c.src" > case 1: > return &npyiter_iternext_itflagsIND_dimsANY_iters1; ># 2012 "numpy/core/src/multiarray/nditer.c.src" > case 2: > return &npyiter_iternext_itflagsIND_dimsANY_iters2; > > > default: > return &npyiter_iternext_itflagsIND_dimsANY_itersANY; > } > } ># 1985 "numpy/core/src/multiarray/nditer.c.src" > case 0x0020: > switch (ndim) { ># 1991 "numpy/core/src/multiarray/nditer.c.src" > case 1: > switch (nop) { ># 1997 "numpy/core/src/multiarray/nditer.c.src" > case 1: > return &npyiter_iternext_itflagsNOINN_dims1_iters1; ># 1997 "numpy/core/src/multiarray/nditer.c.src" > case 2: > return &npyiter_iternext_itflagsNOINN_dims1_iters2; > > > default: > return &npyiter_iternext_itflagsNOINN_dims1_itersANY; > } ># 1991 "numpy/core/src/multiarray/nditer.c.src" > case 2: > switch (nop) { ># 1997 "numpy/core/src/multiarray/nditer.c.src" > case 1: > return &npyiter_iternext_itflagsNOINN_dims2_iters1; ># 1997 "numpy/core/src/multiarray/nditer.c.src" > case 2: > return &npyiter_iternext_itflagsNOINN_dims2_iters2; > > > default: > return &npyiter_iternext_itflagsNOINN_dims2_itersANY; > } > > > default: > switch (nop) { ># 2012 "numpy/core/src/multiarray/nditer.c.src" > case 1: > return &npyiter_iternext_itflagsNOINN_dimsANY_iters1; ># 2012 "numpy/core/src/multiarray/nditer.c.src" > case 2: > return &npyiter_iternext_itflagsNOINN_dimsANY_iters2; > > > default: > return &npyiter_iternext_itflagsNOINN_dimsANY_itersANY; > } > } ># 1985 "numpy/core/src/multiarray/nditer.c.src" > case 0x0040: > switch (ndim) { ># 1991 "numpy/core/src/multiarray/nditer.c.src" > case 1: > switch (nop) { ># 1997 "numpy/core/src/multiarray/nditer.c.src" > case 1: > return &npyiter_iternext_itflagsRNG_dims1_iters1; ># 1997 "numpy/core/src/multiarray/nditer.c.src" > case 2: > return &npyiter_iternext_itflagsRNG_dims1_iters2; > > > default: > return &npyiter_iternext_itflagsRNG_dims1_itersANY; > } ># 1991 "numpy/core/src/multiarray/nditer.c.src" > case 2: > switch (nop) { ># 1997 "numpy/core/src/multiarray/nditer.c.src" > case 1: > return &npyiter_iternext_itflagsRNG_dims2_iters1; ># 1997 "numpy/core/src/multiarray/nditer.c.src" > case 2: > return &npyiter_iternext_itflagsRNG_dims2_iters2; > > > default: > return &npyiter_iternext_itflagsRNG_dims2_itersANY; > } > > > default: > switch (nop) { ># 2012 "numpy/core/src/multiarray/nditer.c.src" > case 1: > return &npyiter_iternext_itflagsRNG_dimsANY_iters1; ># 2012 "numpy/core/src/multiarray/nditer.c.src" > case 2: > return &npyiter_iternext_itflagsRNG_dimsANY_iters2; > > > default: > return &npyiter_iternext_itflagsRNG_dimsANY_itersANY; > } > } ># 1985 "numpy/core/src/multiarray/nditer.c.src" > case 0x0040|0x0004: > switch (ndim) { ># 1991 "numpy/core/src/multiarray/nditer.c.src" > case 1: > switch (nop) { ># 1997 "numpy/core/src/multiarray/nditer.c.src" > case 1: > return &npyiter_iternext_itflagsRNGuIND_dims1_iters1; ># 1997 "numpy/core/src/multiarray/nditer.c.src" > case 2: > return &npyiter_iternext_itflagsRNGuIND_dims1_iters2; > > > default: > return &npyiter_iternext_itflagsRNGuIND_dims1_itersANY; > } ># 1991 "numpy/core/src/multiarray/nditer.c.src" > case 2: > switch (nop) { ># 1997 "numpy/core/src/multiarray/nditer.c.src" > case 1: > return &npyiter_iternext_itflagsRNGuIND_dims2_iters1; ># 1997 "numpy/core/src/multiarray/nditer.c.src" > case 2: > return &npyiter_iternext_itflagsRNGuIND_dims2_iters2; > > > default: > return &npyiter_iternext_itflagsRNGuIND_dims2_itersANY; > } > > > default: > switch (nop) { ># 2012 "numpy/core/src/multiarray/nditer.c.src" > case 1: > return &npyiter_iternext_itflagsRNGuIND_dimsANY_iters1; ># 2012 "numpy/core/src/multiarray/nditer.c.src" > case 2: > return &npyiter_iternext_itflagsRNGuIND_dimsANY_iters2; > > > default: > return &npyiter_iternext_itflagsRNGuIND_dimsANY_itersANY; > } > } > > } > > if (errmsg == ((void *)0)) { > PyErr_Format(PyExc_ValueError, > "GetIterNext internal iterator error - unexpected " > "itflags/ndim/nop combination (%04x/%d/%d)", > (int)itflags, (int)ndim, (int)nop); > } > else { > *errmsg = "GetIterNext internal iterator error - unexpected " > "itflags/ndim/nop combination"; > } > return ((void *)0); >} ># 2055 "numpy/core/src/multiarray/nditer.c.src" >static void >npyiter_get_multi_index_itflags0( > NpyIter *iter, npy_intp *out_multi_index) >{ > const npy_uint32 itflags = 0; > int idim, ndim = ((iter)->ndim); > int nop = ((iter)->nop); > > npy_intp sizeof_axisdata; > NpyIter_AxisData *axisdata; > > npy_int8 *perm = ((npy_int8 *)( &(iter)->iter_flexdata + (0))); > > > axisdata = ((NpyIter_AxisData *)( &(iter)->iter_flexdata + ((((((((0) + ((32 + 0x7)&(-0x8))) + ((8)*(nop))) + ((8)*(nop+1))) + ((8)*(nop+1))) + ((8)*(nop))) + (((nop + 0x7)&(-0x8)))) + ((itflags&0x0080) ? ((8)*(6 + 9*nop)) : 0)))); > sizeof_axisdata = (( 1 + 1 + 2*((nop)+1) )*8 ); > > > > > > > > for(idim = 0; idim < ndim; ++idim, axisdata = ((NpyIter_AxisData *) (((char *)(axisdata)) + (1)*sizeof_axisdata))) { > npy_int8 p = perm[idim]; > out_multi_index[ndim-p-1] = ((axisdata)->index); > } ># 2094 "numpy/core/src/multiarray/nditer.c.src" >} ># 2055 "numpy/core/src/multiarray/nditer.c.src" >static void >npyiter_get_multi_index_itflagsIND( > NpyIter *iter, npy_intp *out_multi_index) >{ > const npy_uint32 itflags = 0x0004; > int idim, ndim = ((iter)->ndim); > int nop = ((iter)->nop); > > npy_intp sizeof_axisdata; > NpyIter_AxisData *axisdata; > > npy_int8 *perm = ((npy_int8 *)( &(iter)->iter_flexdata + (0))); > > > axisdata = ((NpyIter_AxisData *)( &(iter)->iter_flexdata + ((((((((0) + ((32 + 0x7)&(-0x8))) + ((8)*(nop))) + ((8)*(nop+1))) + ((8)*(nop+1))) + ((8)*(nop))) + (((nop + 0x7)&(-0x8)))) + ((itflags&0x0080) ? ((8)*(6 + 9*nop)) : 0)))); > sizeof_axisdata = (( 1 + 1 + 2*((nop)+1) )*8 ); > > > > > > > > for(idim = 0; idim < ndim; ++idim, axisdata = ((NpyIter_AxisData *) (((char *)(axisdata)) + (1)*sizeof_axisdata))) { > npy_int8 p = perm[idim]; > out_multi_index[ndim-p-1] = ((axisdata)->index); > } ># 2094 "numpy/core/src/multiarray/nditer.c.src" >} ># 2055 "numpy/core/src/multiarray/nditer.c.src" >static void >npyiter_get_multi_index_itflagsIDP( > NpyIter *iter, npy_intp *out_multi_index) >{ > const npy_uint32 itflags = 0x0001; > int idim, ndim = ((iter)->ndim); > int nop = ((iter)->nop); > > npy_intp sizeof_axisdata; > NpyIter_AxisData *axisdata; > > > > > axisdata = ((NpyIter_AxisData *)( &(iter)->iter_flexdata + ((((((((0) + ((32 + 0x7)&(-0x8))) + ((8)*(nop))) + ((8)*(nop+1))) + ((8)*(nop+1))) + ((8)*(nop))) + (((nop + 0x7)&(-0x8)))) + ((itflags&0x0080) ? ((8)*(6 + 9*nop)) : 0)))); > sizeof_axisdata = (( 1 + 1 + 2*((nop)+1) )*8 ); > > out_multi_index += ndim-1; > for(idim = 0; idim < ndim; ++idim, --out_multi_index, > axisdata = ((NpyIter_AxisData *) (((char *)(axisdata)) + (1)*sizeof_axisdata))) { > *out_multi_index = ((axisdata)->index); > } ># 2094 "numpy/core/src/multiarray/nditer.c.src" >} ># 2055 "numpy/core/src/multiarray/nditer.c.src" >static void >npyiter_get_multi_index_itflagsINDuIDP( > NpyIter *iter, npy_intp *out_multi_index) >{ > const npy_uint32 itflags = 0x0004|0x0001; > int idim, ndim = ((iter)->ndim); > int nop = ((iter)->nop); > > npy_intp sizeof_axisdata; > NpyIter_AxisData *axisdata; > > > > > axisdata = ((NpyIter_AxisData *)( &(iter)->iter_flexdata + ((((((((0) + ((32 + 0x7)&(-0x8))) + ((8)*(nop))) + ((8)*(nop+1))) + ((8)*(nop+1))) + ((8)*(nop))) + (((nop + 0x7)&(-0x8)))) + ((itflags&0x0080) ? ((8)*(6 + 9*nop)) : 0)))); > sizeof_axisdata = (( 1 + 1 + 2*((nop)+1) )*8 ); > > out_multi_index += ndim-1; > for(idim = 0; idim < ndim; ++idim, --out_multi_index, > axisdata = ((NpyIter_AxisData *) (((char *)(axisdata)) + (1)*sizeof_axisdata))) { > *out_multi_index = ((axisdata)->index); > } ># 2094 "numpy/core/src/multiarray/nditer.c.src" >} ># 2055 "numpy/core/src/multiarray/nditer.c.src" >static void >npyiter_get_multi_index_itflagsNEGP( > NpyIter *iter, npy_intp *out_multi_index) >{ > const npy_uint32 itflags = 0x0002; > int idim, ndim = ((iter)->ndim); > int nop = ((iter)->nop); > > npy_intp sizeof_axisdata; > NpyIter_AxisData *axisdata; > > npy_int8 *perm = ((npy_int8 *)( &(iter)->iter_flexdata + (0))); > > > axisdata = ((NpyIter_AxisData *)( &(iter)->iter_flexdata + ((((((((0) + ((32 + 0x7)&(-0x8))) + ((8)*(nop))) + ((8)*(nop+1))) + ((8)*(nop+1))) + ((8)*(nop))) + (((nop + 0x7)&(-0x8)))) + ((itflags&0x0080) ? ((8)*(6 + 9*nop)) : 0)))); > sizeof_axisdata = (( 1 + 1 + 2*((nop)+1) )*8 ); ># 2083 "numpy/core/src/multiarray/nditer.c.src" > for(idim = 0; idim < ndim; ++idim, axisdata = ((NpyIter_AxisData *) (((char *)(axisdata)) + (1)*sizeof_axisdata))) { > npy_int8 p = perm[idim]; > if (p < 0) { > > out_multi_index[ndim+p] = ((axisdata)->shape) - ((axisdata)->index) - 1; > } > else { > out_multi_index[ndim-p-1] = ((axisdata)->index); > } > } > >} ># 2055 "numpy/core/src/multiarray/nditer.c.src" >static void >npyiter_get_multi_index_itflagsINDuNEGP( > NpyIter *iter, npy_intp *out_multi_index) >{ > const npy_uint32 itflags = 0x0004|0x0002; > int idim, ndim = ((iter)->ndim); > int nop = ((iter)->nop); > > npy_intp sizeof_axisdata; > NpyIter_AxisData *axisdata; > > npy_int8 *perm = ((npy_int8 *)( &(iter)->iter_flexdata + (0))); > > > axisdata = ((NpyIter_AxisData *)( &(iter)->iter_flexdata + ((((((((0) + ((32 + 0x7)&(-0x8))) + ((8)*(nop))) + ((8)*(nop+1))) + ((8)*(nop+1))) + ((8)*(nop))) + (((nop + 0x7)&(-0x8)))) + ((itflags&0x0080) ? ((8)*(6 + 9*nop)) : 0)))); > sizeof_axisdata = (( 1 + 1 + 2*((nop)+1) )*8 ); ># 2083 "numpy/core/src/multiarray/nditer.c.src" > for(idim = 0; idim < ndim; ++idim, axisdata = ((NpyIter_AxisData *) (((char *)(axisdata)) + (1)*sizeof_axisdata))) { > npy_int8 p = perm[idim]; > if (p < 0) { > > out_multi_index[ndim+p] = ((axisdata)->shape) - ((axisdata)->index) - 1; > } > else { > out_multi_index[ndim-p-1] = ((axisdata)->index); > } > } > >} ># 2055 "numpy/core/src/multiarray/nditer.c.src" >static void >npyiter_get_multi_index_itflagsBUF( > NpyIter *iter, npy_intp *out_multi_index) >{ > const npy_uint32 itflags = 0x0080; > int idim, ndim = ((iter)->ndim); > int nop = ((iter)->nop); > > npy_intp sizeof_axisdata; > NpyIter_AxisData *axisdata; > > npy_int8 *perm = ((npy_int8 *)( &(iter)->iter_flexdata + (0))); > > > axisdata = ((NpyIter_AxisData *)( &(iter)->iter_flexdata + ((((((((0) + ((32 + 0x7)&(-0x8))) + ((8)*(nop))) + ((8)*(nop+1))) + ((8)*(nop+1))) + ((8)*(nop))) + (((nop + 0x7)&(-0x8)))) + ((itflags&0x0080) ? ((8)*(6 + 9*nop)) : 0)))); > sizeof_axisdata = (( 1 + 1 + 2*((nop)+1) )*8 ); > > > > > > > > for(idim = 0; idim < ndim; ++idim, axisdata = ((NpyIter_AxisData *) (((char *)(axisdata)) + (1)*sizeof_axisdata))) { > npy_int8 p = perm[idim]; > out_multi_index[ndim-p-1] = ((axisdata)->index); > } ># 2094 "numpy/core/src/multiarray/nditer.c.src" >} ># 2055 "numpy/core/src/multiarray/nditer.c.src" >static void >npyiter_get_multi_index_itflagsINDuBUF( > NpyIter *iter, npy_intp *out_multi_index) >{ > const npy_uint32 itflags = 0x0004|0x0080; > int idim, ndim = ((iter)->ndim); > int nop = ((iter)->nop); > > npy_intp sizeof_axisdata; > NpyIter_AxisData *axisdata; > > npy_int8 *perm = ((npy_int8 *)( &(iter)->iter_flexdata + (0))); > > > axisdata = ((NpyIter_AxisData *)( &(iter)->iter_flexdata + ((((((((0) + ((32 + 0x7)&(-0x8))) + ((8)*(nop))) + ((8)*(nop+1))) + ((8)*(nop+1))) + ((8)*(nop))) + (((nop + 0x7)&(-0x8)))) + ((itflags&0x0080) ? ((8)*(6 + 9*nop)) : 0)))); > sizeof_axisdata = (( 1 + 1 + 2*((nop)+1) )*8 ); > > > > > > > > for(idim = 0; idim < ndim; ++idim, axisdata = ((NpyIter_AxisData *) (((char *)(axisdata)) + (1)*sizeof_axisdata))) { > npy_int8 p = perm[idim]; > out_multi_index[ndim-p-1] = ((axisdata)->index); > } ># 2094 "numpy/core/src/multiarray/nditer.c.src" >} ># 2055 "numpy/core/src/multiarray/nditer.c.src" >static void >npyiter_get_multi_index_itflagsIDPuBUF( > NpyIter *iter, npy_intp *out_multi_index) >{ > const npy_uint32 itflags = 0x0001|0x0080; > int idim, ndim = ((iter)->ndim); > int nop = ((iter)->nop); > > npy_intp sizeof_axisdata; > NpyIter_AxisData *axisdata; > > > > > axisdata = ((NpyIter_AxisData *)( &(iter)->iter_flexdata + ((((((((0) + ((32 + 0x7)&(-0x8))) + ((8)*(nop))) + ((8)*(nop+1))) + ((8)*(nop+1))) + ((8)*(nop))) + (((nop + 0x7)&(-0x8)))) + ((itflags&0x0080) ? ((8)*(6 + 9*nop)) : 0)))); > sizeof_axisdata = (( 1 + 1 + 2*((nop)+1) )*8 ); > > out_multi_index += ndim-1; > for(idim = 0; idim < ndim; ++idim, --out_multi_index, > axisdata = ((NpyIter_AxisData *) (((char *)(axisdata)) + (1)*sizeof_axisdata))) { > *out_multi_index = ((axisdata)->index); > } ># 2094 "numpy/core/src/multiarray/nditer.c.src" >} ># 2055 "numpy/core/src/multiarray/nditer.c.src" >static void >npyiter_get_multi_index_itflagsINDuIDPuBUF( > NpyIter *iter, npy_intp *out_multi_index) >{ > const npy_uint32 itflags = 0x0004|0x0001|0x0080; > int idim, ndim = ((iter)->ndim); > int nop = ((iter)->nop); > > npy_intp sizeof_axisdata; > NpyIter_AxisData *axisdata; > > > > > axisdata = ((NpyIter_AxisData *)( &(iter)->iter_flexdata + ((((((((0) + ((32 + 0x7)&(-0x8))) + ((8)*(nop))) + ((8)*(nop+1))) + ((8)*(nop+1))) + ((8)*(nop))) + (((nop + 0x7)&(-0x8)))) + ((itflags&0x0080) ? ((8)*(6 + 9*nop)) : 0)))); > sizeof_axisdata = (( 1 + 1 + 2*((nop)+1) )*8 ); > > out_multi_index += ndim-1; > for(idim = 0; idim < ndim; ++idim, --out_multi_index, > axisdata = ((NpyIter_AxisData *) (((char *)(axisdata)) + (1)*sizeof_axisdata))) { > *out_multi_index = ((axisdata)->index); > } ># 2094 "numpy/core/src/multiarray/nditer.c.src" >} ># 2055 "numpy/core/src/multiarray/nditer.c.src" >static void >npyiter_get_multi_index_itflagsNEGPuBUF( > NpyIter *iter, npy_intp *out_multi_index) >{ > const npy_uint32 itflags = 0x0002|0x0080; > int idim, ndim = ((iter)->ndim); > int nop = ((iter)->nop); > > npy_intp sizeof_axisdata; > NpyIter_AxisData *axisdata; > > npy_int8 *perm = ((npy_int8 *)( &(iter)->iter_flexdata + (0))); > > > axisdata = ((NpyIter_AxisData *)( &(iter)->iter_flexdata + ((((((((0) + ((32 + 0x7)&(-0x8))) + ((8)*(nop))) + ((8)*(nop+1))) + ((8)*(nop+1))) + ((8)*(nop))) + (((nop + 0x7)&(-0x8)))) + ((itflags&0x0080) ? ((8)*(6 + 9*nop)) : 0)))); > sizeof_axisdata = (( 1 + 1 + 2*((nop)+1) )*8 ); ># 2083 "numpy/core/src/multiarray/nditer.c.src" > for(idim = 0; idim < ndim; ++idim, axisdata = ((NpyIter_AxisData *) (((char *)(axisdata)) + (1)*sizeof_axisdata))) { > npy_int8 p = perm[idim]; > if (p < 0) { > > out_multi_index[ndim+p] = ((axisdata)->shape) - ((axisdata)->index) - 1; > } > else { > out_multi_index[ndim-p-1] = ((axisdata)->index); > } > } > >} ># 2055 "numpy/core/src/multiarray/nditer.c.src" >static void >npyiter_get_multi_index_itflagsINDuNEGPuBUF( > NpyIter *iter, npy_intp *out_multi_index) >{ > const npy_uint32 itflags = 0x0004|0x0002|0x0080; > int idim, ndim = ((iter)->ndim); > int nop = ((iter)->nop); > > npy_intp sizeof_axisdata; > NpyIter_AxisData *axisdata; > > npy_int8 *perm = ((npy_int8 *)( &(iter)->iter_flexdata + (0))); > > > axisdata = ((NpyIter_AxisData *)( &(iter)->iter_flexdata + ((((((((0) + ((32 + 0x7)&(-0x8))) + ((8)*(nop))) + ((8)*(nop+1))) + ((8)*(nop+1))) + ((8)*(nop))) + (((nop + 0x7)&(-0x8)))) + ((itflags&0x0080) ? ((8)*(6 + 9*nop)) : 0)))); > sizeof_axisdata = (( 1 + 1 + 2*((nop)+1) )*8 ); ># 2083 "numpy/core/src/multiarray/nditer.c.src" > for(idim = 0; idim < ndim; ++idim, axisdata = ((NpyIter_AxisData *) (((char *)(axisdata)) + (1)*sizeof_axisdata))) { > npy_int8 p = perm[idim]; > if (p < 0) { > > out_multi_index[ndim+p] = ((axisdata)->shape) - ((axisdata)->index) - 1; > } > else { > out_multi_index[ndim-p-1] = ((axisdata)->index); > } > } > >} ># 2105 "numpy/core/src/multiarray/nditer.c.src" >static NpyIter_GetMultiIndexFunc * >NpyIter_GetGetMultiIndex(NpyIter *iter, char **errmsg) >{ > npy_uint32 itflags = ((iter)->itflags); > int ndim = ((iter)->ndim); > int nop = ((iter)->nop); > > > if ((itflags&(0x0008|0x0400)) != > 0x0008) { > if (!(itflags&0x0008)) { > if (errmsg == ((void *)0)) { > PyErr_SetString(PyExc_ValueError, > "Cannot retrieve a GetMultiIndex function for an " > "iterator that doesn't track a multi-index."); > } > else { > *errmsg = "Cannot retrieve a GetMultiIndex function for an " > "iterator that doesn't track a multi-index."; > } > return ((void *)0); > } > else { > if (errmsg == ((void *)0)) { > PyErr_SetString(PyExc_ValueError, > "Cannot retrieve a GetMultiIndex function for an " > "iterator that used DELAY_BUFALLOC before a Reset call"); > } > else { > *errmsg = "Cannot retrieve a GetMultiIndex function for an " > "iterator that used DELAY_BUFALLOC before a " > "Reset call"; > } > return ((void *)0); > } > } > > > > > > > itflags &= (0x0004 | > 0x0001 | > 0x0002 | > 0x0080); > > switch (itflags) { ># 2169 "numpy/core/src/multiarray/nditer.c.src" > case 0: > return npyiter_get_multi_index_itflags0; ># 2169 "numpy/core/src/multiarray/nditer.c.src" > case 0x0004: > return npyiter_get_multi_index_itflagsIND; ># 2169 "numpy/core/src/multiarray/nditer.c.src" > case 0x0001: > return npyiter_get_multi_index_itflagsIDP; ># 2169 "numpy/core/src/multiarray/nditer.c.src" > case 0x0004|0x0001: > return npyiter_get_multi_index_itflagsINDuIDP; ># 2169 "numpy/core/src/multiarray/nditer.c.src" > case 0x0002: > return npyiter_get_multi_index_itflagsNEGP; ># 2169 "numpy/core/src/multiarray/nditer.c.src" > case 0x0004|0x0002: > return npyiter_get_multi_index_itflagsINDuNEGP; ># 2169 "numpy/core/src/multiarray/nditer.c.src" > case 0x0080: > return npyiter_get_multi_index_itflagsBUF; ># 2169 "numpy/core/src/multiarray/nditer.c.src" > case 0x0004|0x0080: > return npyiter_get_multi_index_itflagsINDuBUF; ># 2169 "numpy/core/src/multiarray/nditer.c.src" > case 0x0001|0x0080: > return npyiter_get_multi_index_itflagsIDPuBUF; ># 2169 "numpy/core/src/multiarray/nditer.c.src" > case 0x0004|0x0001|0x0080: > return npyiter_get_multi_index_itflagsINDuIDPuBUF; ># 2169 "numpy/core/src/multiarray/nditer.c.src" > case 0x0002|0x0080: > return npyiter_get_multi_index_itflagsNEGPuBUF; ># 2169 "numpy/core/src/multiarray/nditer.c.src" > case 0x0004|0x0002|0x0080: > return npyiter_get_multi_index_itflagsINDuNEGPuBUF; > > } > > if (errmsg == ((void *)0)) { > PyErr_Format(PyExc_ValueError, > "GetGetMultiIndex internal iterator error - unexpected " > "itflags/ndim/nop combination (%04x/%d/%d)", > (int)itflags, (int)ndim, (int)nop); > } > else { > *errmsg = "GetGetMultiIndex internal iterator error - unexpected " > "itflags/ndim/nop combination"; > } > return ((void *)0); > >} > > > > >static npy_bool >NpyIter_HasDelayedBufAlloc(NpyIter *iter) >{ > return (((iter)->itflags)&0x0400) != 0; >} > > > > >static npy_bool >NpyIter_HasExternalLoop(NpyIter *iter) >{ > return (((iter)->itflags)&0x0020) != 0; >} > > > > >static npy_bool >NpyIter_HasMultiIndex(NpyIter *iter) >{ > return (((iter)->itflags)&0x0008) != 0; >} > > > > >static npy_bool >NpyIter_HasIndex(NpyIter *iter) >{ > return (((iter)->itflags)&0x0004) != 0; >} > > > > >static npy_bool >NpyIter_RequiresBuffering(NpyIter *iter) >{ > npy_uint32 itflags = ((iter)->itflags); > > int iop, nop = ((iter)->nop); > > char *op_itflags; > > if (!(itflags&0x0080)) { > return 0; > } > > op_itflags = ( &(iter)->iter_flexdata + ((((((0) + ((32 + 0x7)&(-0x8))) + ((8)*(nop))) + ((8)*(nop+1))) + ((8)*(nop+1))) + ((8)*(nop)))); > > > for (iop = 0; iop < nop; ++iop) { > if (op_itflags[iop]&0x04) { > return 1; > } > } > > return 0; >} > > > > > > >static npy_bool >NpyIter_IterationNeedsAPI(NpyIter *iter) >{ > return (((iter)->itflags)&0x0800) != 0; >} > > > > >static int >NpyIter_GetNDim(NpyIter *iter) >{ > return ((iter)->ndim); >} > > > > >static int >NpyIter_GetNOp(NpyIter *iter) >{ > return ((iter)->nop); >} > > > > >static npy_intp >NpyIter_GetIterSize(NpyIter *iter) >{ > return (iter->itersize); >} > > > > >static npy_bool >NpyIter_IsBuffered(NpyIter *iter) >{ > return (((iter)->itflags)&0x0080) != 0; >} > > > > >static npy_bool >NpyIter_IsGrowInner(NpyIter *iter) >{ > return (((iter)->itflags)&0x0100) != 0; >} > > > > >static npy_intp >NpyIter_GetBufferSize(NpyIter *iter) >{ > npy_uint32 itflags = ((iter)->itflags); > > int nop = ((iter)->nop); > > if (itflags&0x0080) { > NpyIter_BufferData *bufferdata = ((NpyIter_BufferData *)( &(iter)->iter_flexdata + (((((((0) + ((32 + 0x7)&(-0x8))) + ((8)*(nop))) + ((8)*(nop+1))) + ((8)*(nop+1))) + ((8)*(nop))) + (((nop + 0x7)&(-0x8)))))); > return ((bufferdata)->buffersize); > } > else { > return 0; > } > >} > > > > >static void >NpyIter_GetIterIndexRange(NpyIter *iter, > npy_intp *istart, npy_intp *iend) >{ > *istart = (iter->iterstart); > *iend = (iter->iterend); >} ># 2353 "numpy/core/src/multiarray/nditer.c.src" >static int >NpyIter_GetShape(NpyIter *iter, npy_intp *outshape) >{ > npy_uint32 itflags = ((iter)->itflags); > int ndim = ((iter)->ndim); > int nop = ((iter)->nop); > > int idim, sizeof_axisdata; > NpyIter_AxisData *axisdata; > npy_int8 *perm; > > axisdata = ((NpyIter_AxisData *)( &(iter)->iter_flexdata + ((((((((0) + ((32 + 0x7)&(-0x8))) + ((8)*(nop))) + ((8)*(nop+1))) + ((8)*(nop+1))) + ((8)*(nop))) + (((nop + 0x7)&(-0x8)))) + ((itflags&0x0080) ? ((8)*(6 + 9*nop)) : 0)))); > sizeof_axisdata = (( 1 + 1 + 2*((nop)+1) )*8 ); > > if (itflags&0x0008) { > perm = ((npy_int8 *)( &(iter)->iter_flexdata + (0))); > for(idim = 0; idim < ndim; ++idim) { > npy_int8 p = perm[idim]; > if (p < 0) { > outshape[ndim+p] = ((axisdata)->shape); > } > else { > outshape[ndim-p-1] = ((axisdata)->shape); > } > > axisdata = ((NpyIter_AxisData *) (((char *)(axisdata)) + (1)*sizeof_axisdata)); > } > } > else { > for(idim = 0; idim < ndim; ++idim) { > outshape[idim] = ((axisdata)->shape); > axisdata = ((NpyIter_AxisData *) (((char *)(axisdata)) + (1)*sizeof_axisdata)); > } > } > > return 1; >} ># 2416 "numpy/core/src/multiarray/nditer.c.src" >static int >NpyIter_CreateCompatibleStrides(NpyIter *iter, > npy_intp itemsize, npy_intp *outstrides) >{ > npy_uint32 itflags = ((iter)->itflags); > int idim, ndim = ((iter)->ndim); > int nop = ((iter)->nop); > > npy_intp sizeof_axisdata; > NpyIter_AxisData *axisdata; > npy_int8 *perm; > > if (!(itflags&0x0008)) { > PyErr_SetString(PyExc_RuntimeError, > "Iterator CreateCompatibleStrides may only be called " > "if a multi-index is being tracked"); > return 0; > } > > axisdata = ((NpyIter_AxisData *)( &(iter)->iter_flexdata + ((((((((0) + ((32 + 0x7)&(-0x8))) + ((8)*(nop))) + ((8)*(nop+1))) + ((8)*(nop+1))) + ((8)*(nop))) + (((nop + 0x7)&(-0x8)))) + ((itflags&0x0080) ? ((8)*(6 + 9*nop)) : 0)))); > sizeof_axisdata = (( 1 + 1 + 2*((nop)+1) )*8 ); > > perm = ((npy_int8 *)( &(iter)->iter_flexdata + (0))); > for(idim = 0; idim < ndim; ++idim) { > npy_int8 p = perm[idim]; > if (p < 0) { > PyErr_SetString(PyExc_RuntimeError, > "Iterator CreateCompatibleStrides may only be called " > "if DONT_NEGATE_STRIDES was used to prevent reverse " > "iteration of an axis"); > return 0; > } > else { > outstrides[ndim-p-1] = itemsize; > } > > itemsize *= ((axisdata)->shape); > axisdata = ((NpyIter_AxisData *) (((char *)(axisdata)) + (1)*sizeof_axisdata)); > } > > return 1; >} > > > > > > >static char ** >NpyIter_GetDataPtrArray(NpyIter *iter) >{ > npy_uint32 itflags = ((iter)->itflags); > > int nop = ((iter)->nop); > > if (itflags&0x0080) { > NpyIter_BufferData *bufferdata = ((NpyIter_BufferData *)( &(iter)->iter_flexdata + (((((((0) + ((32 + 0x7)&(-0x8))) + ((8)*(nop))) + ((8)*(nop+1))) + ((8)*(nop+1))) + ((8)*(nop))) + (((nop + 0x7)&(-0x8)))))); > return ((char **) (&(bufferdata)->bd_flexdata + 1*(nop))); > } > else { > NpyIter_AxisData *axisdata = ((NpyIter_AxisData *)( &(iter)->iter_flexdata + ((((((((0) + ((32 + 0x7)&(-0x8))) + ((8)*(nop))) + ((8)*(nop+1))) + ((8)*(nop+1))) + ((8)*(nop))) + (((nop + 0x7)&(-0x8)))) + ((itflags&0x0080) ? ((8)*(6 + 9*nop)) : 0)))); > return ((char **) &(axisdata)->ad_flexdata + 1*(nop+1)); > } >} ># 2493 "numpy/core/src/multiarray/nditer.c.src" >static char ** >NpyIter_GetInitialDataPtrArray(NpyIter *iter) >{ > > > int nop = ((iter)->nop); > > return ((char **)( &(iter)->iter_flexdata + (((0) + ((32 + 0x7)&(-0x8))) + ((8)*(nop))))); >} > > > > >static PyArray_Descr ** >NpyIter_GetDescrArray(NpyIter *iter) >{ > > > > > return ((PyArray_Descr **)( &(iter)->iter_flexdata + ((0) + ((32 + 0x7)&(-0x8))))); >} > > > > >static PyArrayObject ** >NpyIter_GetOperandArray(NpyIter *iter) >{ > > > int nop = ((iter)->nop); > > return ((PyArrayObject **)( &(iter)->iter_flexdata + (((((0) + ((32 + 0x7)&(-0x8))) + ((8)*(nop))) + ((8)*(nop+1))) + ((8)*(nop+1))))); >} > > > > >static PyArrayObject * >NpyIter_GetIterView(NpyIter *iter, npy_intp i) >{ > npy_uint32 itflags = ((iter)->itflags); > int idim, ndim = ((iter)->ndim); > int nop = ((iter)->nop); > > npy_intp shape[32], strides[32]; > PyArrayObject *obj, *view; > PyArray_Descr *dtype; > char *dataptr; > NpyIter_AxisData *axisdata; > npy_intp sizeof_axisdata; > int writeable; > > if (i < 0 || i >= nop) { > PyErr_SetString(PyExc_IndexError, > "index provided for an iterator view was out of bounds"); > return ((void *)0); > } > > > if (itflags&0x0080) { > PyErr_SetString(PyExc_ValueError, > "cannot provide an iterator view when buffering is enabled"); > return ((void *)0); > } > > obj = ((PyArrayObject **)( &(iter)->iter_flexdata + (((((0) + ((32 + 0x7)&(-0x8))) + ((8)*(nop))) + ((8)*(nop+1))) + ((8)*(nop+1)))))[i]; > dtype = (((PyArrayObject *)(obj))->descr); > writeable = ( &(iter)->iter_flexdata + ((((((0) + ((32 + 0x7)&(-0x8))) + ((8)*(nop))) + ((8)*(nop+1))) + ((8)*(nop+1))) + ((8)*(nop))))[i]&0x01; > dataptr = ((char **)( &(iter)->iter_flexdata + (((0) + ((32 + 0x7)&(-0x8))) + ((8)*(nop)))))[i]; > axisdata = ((NpyIter_AxisData *)( &(iter)->iter_flexdata + ((((((((0) + ((32 + 0x7)&(-0x8))) + ((8)*(nop))) + ((8)*(nop+1))) + ((8)*(nop+1))) + ((8)*(nop))) + (((nop + 0x7)&(-0x8)))) + ((itflags&0x0080) ? ((8)*(6 + 9*nop)) : 0)))); > sizeof_axisdata = (( 1 + 1 + 2*((nop)+1) )*8 ); > > > for (idim = 0; idim < ndim; ++idim, axisdata = ((NpyIter_AxisData *) (((char *)(axisdata)) + (1)*sizeof_axisdata))) { > shape[ndim-idim-1] = ((axisdata)->shape); > strides[ndim-idim-1] = ( &(axisdata)->ad_flexdata + 0)[i]; > } > > ( ((PyObject*)(dtype))->ob_refcnt++); > view = (PyArrayObject *)PyArray_NewFromDescr(&PyArray_Type, dtype, ndim, > shape, strides, dataptr, > writeable ? 0x0400 : 0, > ((void *)0)); > if (view == ((void *)0)) { > return ((void *)0); > } > > ( ((PyObject*)(obj))->ob_refcnt++); > view->base = (PyObject *)obj; > > PyArray_UpdateFlags(view, (0x0001 | 0x0002 | 0x0100)); > > return view; >} > > > > >static npy_intp * >NpyIter_GetIndexPtr(NpyIter *iter) >{ > npy_uint32 itflags = ((iter)->itflags); > > int nop = ((iter)->nop); > > NpyIter_AxisData *axisdata = ((NpyIter_AxisData *)( &(iter)->iter_flexdata + ((((((((0) + ((32 + 0x7)&(-0x8))) + ((8)*(nop))) + ((8)*(nop+1))) + ((8)*(nop+1))) + ((8)*(nop))) + (((nop + 0x7)&(-0x8)))) + ((itflags&0x0080) ? ((8)*(6 + 9*nop)) : 0)))); > > if (itflags&0x0004) { > > return (npy_intp*)((char **) &(axisdata)->ad_flexdata + 1*(nop+1)) + nop; > } > else { > return ((void *)0); > } >} > > > > >static void >NpyIter_GetReadFlags(NpyIter *iter, char *outreadflags) >{ > > > int iop, nop = ((iter)->nop); > > char *op_itflags = ( &(iter)->iter_flexdata + ((((((0) + ((32 + 0x7)&(-0x8))) + ((8)*(nop))) + ((8)*(nop+1))) + ((8)*(nop+1))) + ((8)*(nop)))); > > for (iop = 0; iop < nop; ++iop) { > outreadflags[iop] = (op_itflags[iop]&0x02) != 0; > } >} > > > > >static void >NpyIter_GetWriteFlags(NpyIter *iter, char *outwriteflags) >{ > > > int iop, nop = ((iter)->nop); > > char *op_itflags = ( &(iter)->iter_flexdata + ((((((0) + ((32 + 0x7)&(-0x8))) + ((8)*(nop))) + ((8)*(nop+1))) + ((8)*(nop+1))) + ((8)*(nop)))); > > for (iop = 0; iop < nop; ++iop) { > outwriteflags[iop] = (op_itflags[iop]&0x01) != 0; > } >} > > > > > > > >static npy_intp * >NpyIter_GetInnerStrideArray(NpyIter *iter) >{ > npy_uint32 itflags = ((iter)->itflags); > > int nop = ((iter)->nop); > > if (itflags&0x0080) { > NpyIter_BufferData *data = ((NpyIter_BufferData *)( &(iter)->iter_flexdata + (((((((0) + ((32 + 0x7)&(-0x8))) + ((8)*(nop))) + ((8)*(nop+1))) + ((8)*(nop+1))) + ((8)*(nop))) + (((nop + 0x7)&(-0x8)))))); > return ( &(data)->bd_flexdata + 0); > } > else { > NpyIter_AxisData *axisdata = ((NpyIter_AxisData *)( &(iter)->iter_flexdata + ((((((((0) + ((32 + 0x7)&(-0x8))) + ((8)*(nop))) + ((8)*(nop+1))) + ((8)*(nop+1))) + ((8)*(nop))) + (((nop + 0x7)&(-0x8)))) + ((itflags&0x0080) ? ((8)*(6 + 9*nop)) : 0)))); > return ( &(axisdata)->ad_flexdata + 0); > } >} ># 2676 "numpy/core/src/multiarray/nditer.c.src" >static npy_intp * >NpyIter_GetAxisStrideArray(NpyIter *iter, int axis) >{ > npy_uint32 itflags = ((iter)->itflags); > int idim, ndim = ((iter)->ndim); > int nop = ((iter)->nop); > > npy_int8 *perm = ((npy_int8 *)( &(iter)->iter_flexdata + (0))); > NpyIter_AxisData *axisdata = ((NpyIter_AxisData *)( &(iter)->iter_flexdata + ((((((((0) + ((32 + 0x7)&(-0x8))) + ((8)*(nop))) + ((8)*(nop+1))) + ((8)*(nop+1))) + ((8)*(nop))) + (((nop + 0x7)&(-0x8)))) + ((itflags&0x0080) ? ((8)*(6 + 9*nop)) : 0)))); > npy_intp sizeof_axisdata = (( 1 + 1 + 2*((nop)+1) )*8 ); > > if (axis < 0 || axis >= ndim) { > PyErr_SetString(PyExc_ValueError, > "axis out of bounds in iterator GetStrideAxisArray"); > return ((void *)0); > } > > if (itflags&0x0008) { > > axis = ndim-1-axis; > > > for (idim = 0; idim < ndim; ++idim, axisdata = ((NpyIter_AxisData *) (((char *)(axisdata)) + (1)*sizeof_axisdata))) { > if (perm[idim] == axis || -1 - perm[idim] == axis) { > return ( &(axisdata)->ad_flexdata + 0); > } > } > } > else { > return ( &(((NpyIter_AxisData *) (((char *)(axisdata)) + (axis)*sizeof_axisdata)))->ad_flexdata + 0); > } > > PyErr_SetString(PyExc_RuntimeError, > "internal error in iterator perm"); > return ((void *)0); >} ># 2722 "numpy/core/src/multiarray/nditer.c.src" >static void >NpyIter_GetInnerFixedStrideArray(NpyIter *iter, npy_intp *out_strides) >{ > npy_uint32 itflags = ((iter)->itflags); > int ndim = ((iter)->ndim); > int iop, nop = ((iter)->nop); > > NpyIter_AxisData *axisdata0 = ((NpyIter_AxisData *)( &(iter)->iter_flexdata + ((((((((0) + ((32 + 0x7)&(-0x8))) + ((8)*(nop))) + ((8)*(nop+1))) + ((8)*(nop+1))) + ((8)*(nop))) + (((nop + 0x7)&(-0x8)))) + ((itflags&0x0080) ? ((8)*(6 + 9*nop)) : 0)))); > npy_intp sizeof_axisdata = (( 1 + 1 + 2*((nop)+1) )*8 ); > > if (itflags&0x0080) { > NpyIter_BufferData *data = ((NpyIter_BufferData *)( &(iter)->iter_flexdata + (((((((0) + ((32 + 0x7)&(-0x8))) + ((8)*(nop))) + ((8)*(nop+1))) + ((8)*(nop+1))) + ((8)*(nop))) + (((nop + 0x7)&(-0x8)))))); > char *op_itflags = ( &(iter)->iter_flexdata + ((((((0) + ((32 + 0x7)&(-0x8))) + ((8)*(nop))) + ((8)*(nop+1))) + ((8)*(nop+1))) + ((8)*(nop)))); > npy_intp stride, *strides = ( &(data)->bd_flexdata + 0), > *ad_strides = ( &(axisdata0)->ad_flexdata + 0); > PyArray_Descr **dtypes = ((PyArray_Descr **)( &(iter)->iter_flexdata + ((0) + ((32 + 0x7)&(-0x8))))); > > for (iop = 0; iop < nop; ++iop) { > stride = strides[iop]; > > > > > if (ndim <= 1 || (op_itflags[iop]& > (0x04|0x08))) { > out_strides[iop] = stride; > } > > else if (stride == 0 && (itflags&0x1000)) { > > if (op_itflags[iop]&0x20) { > out_strides[iop] = stride; > } > > > > > else { > NpyIter_AxisData *axisdata = axisdata0; > int idim, > reduce_outerdim = ((data)->reduce_outerdim); > for (idim = 0; idim < reduce_outerdim; ++idim) { > if (( &(axisdata)->ad_flexdata + 0)[iop] != 0) { > break; > } > axisdata = ((NpyIter_AxisData *) (((char *)(axisdata)) + (1)*sizeof_axisdata)); > } > > if (idim == reduce_outerdim) { > out_strides[iop] = stride; > } > else { > out_strides[iop] = 9223372036854775807L; > } > } > } > > > > > else if (ad_strides[iop] == dtypes[iop]->elsize) { > out_strides[iop] = ad_strides[iop]; > } > > > > > else { > out_strides[iop] = 9223372036854775807L; > } > } > } > else { > > memcpy(out_strides, ( &(axisdata0)->ad_flexdata + 0), nop*8); > } >} > > > > > > > >static npy_intp * >NpyIter_GetInnerLoopSizePtr(NpyIter *iter) >{ > npy_uint32 itflags = ((iter)->itflags); > > int nop = ((iter)->nop); > > if (itflags&0x0080) { > NpyIter_BufferData *data = ((NpyIter_BufferData *)( &(iter)->iter_flexdata + (((((((0) + ((32 + 0x7)&(-0x8))) + ((8)*(nop))) + ((8)*(nop+1))) + ((8)*(nop+1))) + ((8)*(nop))) + (((nop + 0x7)&(-0x8)))))); > return &((data)->size); > } > else { > NpyIter_AxisData *axisdata = ((NpyIter_AxisData *)( &(iter)->iter_flexdata + ((((((((0) + ((32 + 0x7)&(-0x8))) + ((8)*(nop))) + ((8)*(nop+1))) + ((8)*(nop+1))) + ((8)*(nop))) + (((nop + 0x7)&(-0x8)))) + ((itflags&0x0080) ? ((8)*(6 + 9*nop)) : 0)))); > return &((axisdata)->shape); > } >} > > > > > > >static int >npyiter_check_global_flags(npy_uint32 flags, npy_uint32* itflags) >{ > if ((flags&0xffff0000) != 0) { > PyErr_SetString(PyExc_ValueError, > "A per-operand flag was passed as a global flag " > "to the iterator constructor"); > return 0; > } > > > if (flags&(0x00000001 | 0x00000002)) { > if ((flags&(0x00000001 | 0x00000002)) == > (0x00000001 | 0x00000002)) { > PyErr_SetString(PyExc_ValueError, > "Iterator flags C_INDEX and " > "F_INDEX cannot both be specified"); > return 0; > } > (*itflags) |= 0x0004; > } > > if (flags&0x00000004) { > > > > > (*itflags) |= 0x0008; > } > > if (flags&0x00000008) { > if ((*itflags)&(0x0004|0x0008)) { > PyErr_SetString(PyExc_ValueError, > "Iterator flag EXTERNAL_LOOP cannot be used " > "if an index or multi-index is being tracked"); > return 0; > } > (*itflags) |= 0x0020; > } > > if (flags&0x00000100) { > (*itflags) |= 0x0040; > if ((flags&0x00000008) && > !(flags&0x00000200)) { > PyErr_SetString(PyExc_ValueError, > "Iterator flag RANGED cannot be used with " > "the flag EXTERNAL_LOOP unless " > "BUFFERED is also enabled"); > return 0; > } > } > > if (flags&0x00000200) { > (*itflags) |= 0x0080; > if (flags&0x00000400) { > (*itflags) |= 0x0100; > } > if (flags&0x00000800) { > (*itflags) |= 0x0400; > } > } > > return 1; >} > >static int >npyiter_calculate_ndim(int nop, PyArrayObject **op_in, > int oa_ndim) >{ > > if (oa_ndim > 0 ) { > return oa_ndim; > } > > else { > int ndim = 0, iop; > > for (iop = 0; iop < nop; ++iop) { > if (op_in[iop] != ((void *)0)) { > int ondim = (((PyArrayObject *)(op_in[iop]))->nd); > if (ondim > ndim) { > ndim = ondim; > } > } > > } > > return ndim; > } >} > >static int >npyiter_check_op_axes(int nop, int oa_ndim, int **op_axes, > npy_intp *itershape) >{ > char axes_dupcheck[32]; > int iop, idim; > > if (oa_ndim == 0 && (op_axes != ((void *)0) || itershape != ((void *)0))) { > PyErr_Format(PyExc_ValueError, > "If 'op_axes' or 'itershape' is not NULL in the" > "iterator constructor, 'oa_ndim' must be greater than zero"); > return 0; > } > else if (oa_ndim > 0) { > if (oa_ndim > 32) { > PyErr_Format(PyExc_ValueError, > "Cannot construct an iterator with more than %d dimensions " > "(%d were requested for op_axes)", > (int)32, oa_ndim); > return 0; > } > else if (op_axes == ((void *)0)) { > PyErr_Format(PyExc_ValueError, > "If 'oa_ndim' is greater than zero in the iterator " > "constructor, then op_axes cannot be NULL"); > return 0; > } > > > for (iop = 0; iop < nop; ++iop) { > int *axes = op_axes[iop]; > if (axes != ((void *)0)) { > memset(axes_dupcheck, 0, 32); > for (idim = 0; idim < oa_ndim; ++idim) { > npy_intp i = axes[idim]; > if (i >= 0) { > if (i >= 32) { > PyErr_Format(PyExc_ValueError, > "The 'op_axes' provided to the iterator " > "constructor for operand %d " > "contained invalid " > "values %d", (int)iop, (int)i); > return 0; > } else if(axes_dupcheck[i] == 1) { > PyErr_Format(PyExc_ValueError, > "The 'op_axes' provided to the iterator " > "constructor for operand %d " > "contained duplicate " > "value %d", (int)iop, (int)i); > return 0; > } > else { > axes_dupcheck[i] = 1; > } > } > } > } > } > } > > return 1; >} > > > > > > >static int >npyiter_check_per_op_flags(npy_uint32 op_flags, char *op_itflags) >{ > if ((op_flags&0x0000ffff) != 0) { > PyErr_SetString(PyExc_ValueError, > "A global iterator flag was passed as a per-operand flag " > "to the iterator constructor"); > return 0; > } > > > if (op_flags&0x00020000) { > > if (op_flags&(0x00010000|0x00040000)) { > PyErr_SetString(PyExc_ValueError, > "Only one of the iterator flags READWRITE, " > "READONLY, and WRITEONLY may be " > "specified for an operand"); > return 0; > } > > *op_itflags = 0x02; > } > else if (op_flags&0x00010000) { > > if (op_flags&0x00040000) { > PyErr_SetString(PyExc_ValueError, > "Only one of the iterator flags READWRITE, " > "READONLY, and WRITEONLY may be " > "specified for an operand"); > return 0; > } > > *op_itflags = 0x02|0x01; > } > else if(op_flags&0x00040000) { > *op_itflags = 0x01; > } > else { > PyErr_SetString(PyExc_ValueError, > "None of the iterator flags READWRITE, " > "READONLY, or WRITEONLY were " > "specified for an operand"); > return 0; > } > > > if (((*op_itflags)&0x01) && > (op_flags&(0x00400000| > 0x00800000)) == 0x00400000) { > PyErr_SetString(PyExc_ValueError, > "If an iterator operand is writeable, must use " > "the flag UPDATEIFCOPY instead of " > "COPY"); > return 0; > } > > return 1; >} ># 3054 "numpy/core/src/multiarray/nditer.c.src" >static int >npyiter_prepare_one_operand(PyArrayObject **op, > char **op_dataptr, > PyArray_Descr *op_request_dtype, > PyArray_Descr **op_dtype, > npy_uint32 flags, > npy_uint32 op_flags, char *op_itflags) >{ > > if (*op == ((void *)0)) { > > if (!(op_flags&0x01000000)) { > PyErr_SetString(PyExc_ValueError, > "Iterator operand was NULL, but automatic allocation as an " > "output wasn't requested"); > return 0; > } > > if (!((*op_itflags)&0x01)) { > PyErr_SetString(PyExc_ValueError, > "Automatic allocation was requested for an iterator " > "operand, but it wasn't flagged for writing"); > return 0; > } > > > > > > > if (((flags&(0x00000200| > 0x00000800)) == 0x00000200) && > ((*op_itflags)&0x02)) { > PyErr_SetString(PyExc_ValueError, > "Automatic allocation was requested for an iterator " > "operand, and it was flagged as readable, but buffering " > " without delayed allocation was enabled"); > return 0; > } > *op_dataptr = ((void *)0); > > do { if ((op_request_dtype) == ((void *)0)) ; else ( ((PyObject*)(op_request_dtype))->ob_refcnt++); } while (0); > *op_dtype = op_request_dtype; > > return 1; > } > > if (((((PyObject*)(*op))->ob_type) == (&PyArray_Type) || PyType_IsSubtype((((PyObject*)(*op))->ob_type), (&PyArray_Type)))) { > if (((*op_itflags)&0x01) && > (!((((PyArrayObject *)(*op))->flags & (0x0400)) == (0x0400)))) { > PyErr_SetString(PyExc_ValueError, > "Iterator operand was a non-writeable array, but was " > "flagged as writeable"); > return 0; > } > if (!(flags&0x00000040) && PyArray_MultiplyList((((PyArrayObject *)(*op))->dimensions), (((PyArrayObject *)(*op))->nd)) == 0) { > PyErr_SetString(PyExc_ValueError, > "Iteration of zero-sized operands is not enabled"); > return 0; > } > *op_dataptr = (((PyArrayObject *)(*op))->data); > > *op_dtype = (((PyArrayObject *)(*op))->descr); > if (*op_dtype == ((void *)0)) { > PyErr_SetString(PyExc_ValueError, > "Iterator input array object has no dtype descr"); > return 0; > } > ( ((PyObject*)(*op_dtype))->ob_refcnt++); > > > > > if (!(flags&0x00000020)) { > PyArray_Descr *dt = (((PyArrayObject *)(*op))->descr); > if (((dt->flags&(0x01| > 0x04)) != 0) || > (dt != *op_dtype && > (((*op_dtype)->flags&(0x01| > 0x04))) != 0)) { > PyErr_SetString(PyExc_TypeError, > "Iterator operand or requested dtype holds " > "references, but the REFS_OK flag was not enabled"); > return 0; > } > } > > > > > > if (op_request_dtype != ((void *)0)) { > > ( ((PyObject*)(op_request_dtype))->ob_refcnt++); > > if (op_request_dtype->elsize == 0) { > do { PyArray_Descr *_new_; _new_ = PyArray_DescrNew(op_request_dtype); do { if ((op_request_dtype) == ((void *)0)) ; else do { if ( --((PyObject*)(op_request_dtype))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(op_request_dtype)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(op_request_dtype)))); } while (0); } while (0); op_request_dtype = _new_; } while(0); > if (op_request_dtype == ((void *)0)) { > return 0; > } > > if (op_request_dtype->type_num == NPY_STRING) { > switch((*op_dtype)->type_num) { > case NPY_STRING: > op_request_dtype->elsize = (*op_dtype)->elsize; > break; > case NPY_UNICODE: > op_request_dtype->elsize = (*op_dtype)->elsize >> 2; > break; > } > } > else if (op_request_dtype->type_num == NPY_UNICODE) { > switch((*op_dtype)->type_num) { > case NPY_STRING: > op_request_dtype->elsize = (*op_dtype)->elsize << 2; > break; > case NPY_UNICODE: > op_request_dtype->elsize = (*op_dtype)->elsize; > break; > } > } > else if (op_request_dtype->type_num == NPY_VOID) { > op_request_dtype->elsize = (*op_dtype)->elsize; > } > } > > do { if ( --((PyObject*)(*op_dtype))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(*op_dtype)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(*op_dtype)))); } while (0); > *op_dtype = op_request_dtype; > } > > > if (op_flags&0x00080000) { > > if (!(((*op_dtype)->byteorder) != '>')) { > PyArray_Descr *nbo_dtype; > > > nbo_dtype = PyArray_DescrNewByteorder(*op_dtype, '='); > do { if ( --((PyObject*)(*op_dtype))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(*op_dtype)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(*op_dtype)))); } while (0); > *op_dtype = nbo_dtype; > > ; > > > *op_itflags |= 0x04; > } > } > > if (op_flags&0x00100000) { > > if (!((((PyArrayObject *)(*op))->flags & (0x0100)) == (0x0100))) { > ; > > *op_itflags |= 0x04; > } > } > > > > > } > else { > PyErr_SetString(PyExc_ValueError, > "Iterator inputs must be ndarrays"); > return 0; > } > > return 1; >} > > > > > >static int >npyiter_prepare_operands(int nop, PyArrayObject **op_in, > PyArrayObject **op, > char **op_dataptr, > PyArray_Descr **op_request_dtypes, > PyArray_Descr **op_dtype, > npy_uint32 flags, > npy_uint32 *op_flags, char *op_itflags) >{ > int iop, i; > > for (iop = 0; iop < nop; ++iop) { > op[iop] = op_in[iop]; > do { if ((op[iop]) == ((void *)0)) ; else ( ((PyObject*)(op[iop]))->ob_refcnt++); } while (0); > op_dtype[iop] = ((void *)0); > > > if (!npyiter_check_per_op_flags(op_flags[iop], &op_itflags[iop])) { > for (i = 0; i <= iop; ++i) { > do { if ((op[i]) == ((void *)0)) ; else do { if ( --((PyObject*)(op[i]))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(op[i])))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(op[i])))); } while (0); } while (0); > do { if ((op_dtype[i]) == ((void *)0)) ; else do { if ( --((PyObject*)(op_dtype[i]))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(op_dtype[i])))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(op_dtype[i])))); } while (0); } while (0); > } > return 0; > } > > > > > > if (!npyiter_prepare_one_operand(&op[iop], > &op_dataptr[iop], > op_request_dtypes ? op_request_dtypes[iop] : ((void *)0), > &op_dtype[iop], > flags, > op_flags[iop], &op_itflags[iop])) { > for (i = 0; i <= iop; ++i) { > do { if ((op[i]) == ((void *)0)) ; else do { if ( --((PyObject*)(op[i]))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(op[i])))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(op[i])))); } while (0); } while (0); > do { if ((op_dtype[i]) == ((void *)0)) ; else do { if ( --((PyObject*)(op_dtype[i]))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(op_dtype[i])))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(op_dtype[i])))); } while (0); } while (0); > } > return 0; > } > } > > > > if (op[0] == ((void *)0)) { > int all_null = 1; > for (iop = 1; iop < nop; ++iop) { > if (op[iop] != ((void *)0)) { > all_null = 0; > break; > } > } > if (all_null) { > for (i = 0; i < nop; ++i) { > do { if ((op[i]) == ((void *)0)) ; else do { if ( --((PyObject*)(op[i]))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(op[i])))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(op[i])))); } while (0); } while (0); > do { if ((op_dtype[i]) == ((void *)0)) ; else do { if ( --((PyObject*)(op_dtype[i]))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(op_dtype[i])))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(op_dtype[i])))); } while (0); } while (0); > } > PyErr_SetString(PyExc_ValueError, > "At least one iterator input must be non-NULL"); > return 0; > } > } > > return 1; >} > >static const char * >npyiter_casting_to_string(NPY_CASTING casting) >{ > switch (casting) { > case NPY_NO_CASTING: > return "'no'"; > case NPY_EQUIV_CASTING: > return "'equiv'"; > case NPY_SAFE_CASTING: > return "'safe'"; > case NPY_SAME_KIND_CASTING: > return "'same_kind'"; > case NPY_UNSAFE_CASTING: > return "'unsafe'"; > default: > return "<unknown>"; > } >} > >static int >npyiter_check_casting(int nop, PyArrayObject **op, > PyArray_Descr **op_dtype, > NPY_CASTING casting, > char *op_itflags) >{ > int iop; > > for(iop = 0; iop < nop; ++iop) { > ; ># 3338 "numpy/core/src/multiarray/nditer.c.src" > if (op[iop] != ((void *)0) && !PyArray_EquivTypes((((PyArrayObject *)(op[iop]))->descr), > op_dtype[iop])) { > > if ((op_itflags[iop]&0x02) && > !PyArray_CanCastArrayTo(op[iop], > op_dtype[iop], > casting)) { > PyErr_Format(PyExc_TypeError, > "Iterator operand %d dtype could not be cast " > "to the requested dtype, according to " > "the casting rule given, %s", (int)iop, > npyiter_casting_to_string(casting)); > return 0; > } > > if ((op_itflags[iop]&0x01) && > !PyArray_CanCastTypeTo(op_dtype[iop], > (((PyArrayObject *)(op[iop]))->descr), > casting)) { > PyErr_Format(PyExc_TypeError, > "Iterator requested dtype could not be cast " > "to the operand %d dtype, according to " > "the casting rule given, %s", (int)iop, > npyiter_casting_to_string(casting)); > return 0; > } > > ; > > > op_itflags[iop] |= 0x04; > } > } > > return 1; >} > >static PyObject * >npyiter_shape_string(npy_intp n, npy_intp *vals, char *ending) >{ > npy_intp i; > PyObject *ret, *tmp; > > > > > > > i = 0; > while (i < n && vals[i] < 0) { > ++i; > } > > if (i == n) { > return PyString_FromFormat("()%s", ending); > } > else { > ret = PyString_FromFormat("(%" "l" "d", vals[i++]); > if (ret == ((void *)0)) { > return ((void *)0); > } > } > > for (; i < n; ++i) { > if (vals[i] < 0) { > tmp = PyString_FromString(",newaxis"); > } > else { > tmp = PyString_FromFormat(",%" "l" "d", vals[i]); > } > if (tmp == ((void *)0)) { > do { if ( --((PyObject*)(ret))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(ret)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(ret)))); } while (0); > return ((void *)0); > } > > PyString_ConcatAndDel(&ret, tmp); > if (ret == ((void *)0)) { > return ((void *)0); > } > } > > tmp = PyString_FromFormat(")%s", ending); > PyString_ConcatAndDel(&ret, tmp); > return ret; >} ># 3434 "numpy/core/src/multiarray/nditer.c.src" >static int >npyiter_fill_axisdata(NpyIter *iter, npy_uint32 flags, char *op_itflags, > char **op_dataptr, > npy_uint32 *op_flags, int **op_axes, > npy_intp *itershape, > int output_scalars) >{ > npy_uint32 itflags = ((iter)->itflags); > int idim, ndim = ((iter)->ndim); > int iop, nop = ((iter)->nop); > > int ondim; > NpyIter_AxisData *axisdata; > npy_intp sizeof_axisdata; > PyArrayObject **op = ((PyArrayObject **)( &(iter)->iter_flexdata + (((((0) + ((32 + 0x7)&(-0x8))) + ((8)*(nop))) + ((8)*(nop+1))) + ((8)*(nop+1))))), *op_cur; > npy_intp broadcast_shape[32]; > > > if (itershape == ((void *)0)) { > for (idim = 0; idim < ndim; ++idim) { > broadcast_shape[idim] = 1; > } > } > else { > for (idim = 0; idim < ndim; ++idim) { > broadcast_shape[idim] = itershape[idim]; > > if (broadcast_shape[idim] < 0) { > broadcast_shape[idim] = 1; > } > } > } > for (iop = 0; iop < nop; ++iop) { > op_cur = op[iop]; > if (op_cur != ((void *)0)) { > npy_intp *shape = (((PyArrayObject *)(op_cur))->dimensions); > ondim = (((PyArrayObject *)(op_cur))->nd); > > if (op_axes == ((void *)0) || op_axes[iop] == ((void *)0)) { > > > > > if (ondim > ndim) { > PyErr_SetString(PyExc_ValueError, > "input operand has more dimensions than allowed " > "by the axis remapping"); > return 0; > } > for (idim = 0; idim < ondim; ++idim) { > npy_intp bshape = broadcast_shape[idim+ndim-ondim], > op_shape = shape[idim]; > if (bshape == 1) { > broadcast_shape[idim+ndim-ondim] = op_shape; > } > else if (bshape != op_shape && op_shape != 1) { > goto broadcast_error; > } > } > } > else { > int *axes = op_axes[iop]; > for (idim = 0; idim < ndim; ++idim) { > int i = axes[idim]; > if (i >= 0) { > if (i < ondim) { > npy_intp bshape = broadcast_shape[idim], > op_shape = shape[i]; > if (bshape == 1) { > broadcast_shape[idim] = op_shape; > } > else if (bshape != op_shape && op_shape != 1) { > goto broadcast_error; > } > } > else { > PyErr_Format(PyExc_ValueError, > "Iterator input op_axes[%d][%d] (==%d) " > "is not a valid axis of op[%d], which " > "has %d dimensions ", > (int)iop, (int)(ndim-idim-1), (int)i, > (int)iop, (int)ondim); > return 0; > } > } > } > } > } > } > > > > > if (itershape != ((void *)0)) { > for (idim = 0; idim < ndim; ++idim) { > if (itershape[idim] == 1 && broadcast_shape[idim] != 1) { > goto broadcast_error; > } > } > } > > axisdata = ((NpyIter_AxisData *)( &(iter)->iter_flexdata + ((((((((0) + ((32 + 0x7)&(-0x8))) + ((8)*(nop))) + ((8)*(nop+1))) + ((8)*(nop+1))) + ((8)*(nop))) + (((nop + 0x7)&(-0x8)))) + ((itflags&0x0080) ? ((8)*(6 + 9*nop)) : 0)))); > sizeof_axisdata = (( 1 + 1 + 2*((nop)+1) )*8 ); > > > for (idim = 0; idim < ndim; ++idim) { > npy_intp bshape = broadcast_shape[ndim-idim-1]; > npy_intp *strides = ( &(axisdata)->ad_flexdata + 0); > > ((axisdata)->shape) = bshape; > ((axisdata)->index) = 0; > memcpy(((char **) &(axisdata)->ad_flexdata + 1*(nop+1)), op_dataptr, 8*nop); > > for (iop = 0; iop < nop; ++iop) { > op_cur = op[iop]; > > if (op_axes == ((void *)0) || op_axes[iop] == ((void *)0)) { > if (op_cur == ((void *)0)) { > strides[iop] = 0; > } > else { > ondim = (((PyArrayObject *)(op_cur))->nd); > if (bshape == 1) { > strides[iop] = 0; > if (idim >= ondim && !output_scalars && > (op_flags[iop]&0x08000000)) { > goto operand_different_than_broadcast; > } > } > else if (idim >= ondim || > ((((PyArrayObject *)(op_cur))->dimensions)[ondim-idim-1]) == 1) { > strides[iop] = 0; > if (op_flags[iop]&0x08000000) { > goto operand_different_than_broadcast; > } > > if (op_itflags[iop]&0x01) { > if (!(flags&0x00000080)) { > PyErr_SetString(PyExc_ValueError, > "output operand requires a reduction, but " > "reduction is not enabled"); > return 0; > } > if (!(op_itflags[iop]&0x02)) { > PyErr_SetString(PyExc_ValueError, > "output operand requires a reduction, but " > "is flagged as write-only, not " > "read-write"); > return 0; > } > ((iter)->itflags) |= 0x1000; > op_itflags[iop] |= 0x20; > } > } > else { > strides[iop] = ((((PyArrayObject *)(op_cur))->strides)[ondim-idim-1]); > } > } > } > else { > int *axes = op_axes[iop]; > int i = axes[ndim-idim-1]; > if (i >= 0) { > if (bshape == 1 || op_cur == ((void *)0)) { > strides[iop] = 0; > } > else if (((((PyArrayObject *)(op_cur))->dimensions)[i]) == 1) { > strides[iop] = 0; > if (op_flags[iop]&0x08000000) { > goto operand_different_than_broadcast; > } > > if (op_itflags[iop]&0x01) { > if (!(flags&0x00000080)) { > PyErr_SetString(PyExc_ValueError, > "output operand requires a reduction, but " > "reduction is not enabled"); > return 0; > } > if (!(op_itflags[iop]&0x02)) { > PyErr_SetString(PyExc_ValueError, > "output operand requires a reduction, but " > "is flagged as write-only, not " > "read-write"); > return 0; > } > ((iter)->itflags) |= 0x1000; > op_itflags[iop] |= 0x20; > } > } > else { > strides[iop] = ((((PyArrayObject *)(op_cur))->strides)[i]); > } > } > else if (bshape == 1) { > strides[iop] = 0; > } > else { > strides[iop] = 0; > > if (op_itflags[iop]&0x01) { > if (!(flags&0x00000080)) { > PyErr_SetString(PyExc_ValueError, > "output operand requires a reduction, but " > "reduction is not enabled"); > return 0; > } > if (!(op_itflags[iop]&0x02)) { > PyErr_SetString(PyExc_ValueError, > "output operand requires a reduction, but " > "is flagged as write-only, not " > "read-write"); > return 0; > } > ((iter)->itflags) |= 0x1000; > op_itflags[iop] |= 0x20; > } > } > } > } > > axisdata = ((NpyIter_AxisData *) (((char *)(axisdata)) + (1)*sizeof_axisdata)); > } > > > (iter->itersize) = broadcast_shape[0]; > for (idim = 1; idim < ndim; ++idim) { > (iter->itersize) *= broadcast_shape[idim]; > } > > (iter->iterstart) = 0; > (iter->iterend) = (iter->itersize); > > return 1; > >broadcast_error: { > PyObject *errmsg, *tmp; > npy_intp remdims[32]; > char *tmpstr; > > if (op_axes == ((void *)0)) { > errmsg = PyString_FromString("operands could not be broadcast " > "together with shapes "); > if (errmsg == ((void *)0)) { > return 0; > } > for (iop = 0; iop < nop; ++iop) { > if (op[iop] != ((void *)0)) { > tmp = npyiter_shape_string((((PyArrayObject *)(op[iop]))->nd), > (((PyArrayObject *)(op[iop]))->dimensions), > " "); > if (tmp == ((void *)0)) { > do { if ( --((PyObject*)(errmsg))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(errmsg)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(errmsg)))); } while (0); > return 0; > } > PyString_ConcatAndDel(&errmsg, tmp); > if (errmsg == ((void *)0)) { > return 0; > } > } > } > if (itershape != ((void *)0)) { > tmp = PyString_FromString("and requested shape "); > if (tmp == ((void *)0)) { > do { if ( --((PyObject*)(errmsg))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(errmsg)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(errmsg)))); } while (0); > return 0; > } > PyString_ConcatAndDel(&errmsg, tmp); > if (errmsg == ((void *)0)) { > return 0; > } > > tmp = npyiter_shape_string(ndim, itershape, ""); > if (tmp == ((void *)0)) { > do { if ( --((PyObject*)(errmsg))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(errmsg)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(errmsg)))); } while (0); > return 0; > } > PyString_ConcatAndDel(&errmsg, tmp); > if (errmsg == ((void *)0)) { > return 0; > } > > } > PyErr_SetObject(PyExc_ValueError, errmsg); > } > else { > errmsg = PyString_FromString("operands could not be broadcast " > "together with remapped shapes " > "[original->remapped]: "); > for (iop = 0; iop < nop; ++iop) { > if (op[iop] != ((void *)0)) { > int *axes = op_axes[iop]; > > tmpstr = (axes == ((void *)0)) ? " " : "->"; > tmp = npyiter_shape_string((((PyArrayObject *)(op[iop]))->nd), > (((PyArrayObject *)(op[iop]))->dimensions), > tmpstr); > if (tmp == ((void *)0)) { > return 0; > } > PyString_ConcatAndDel(&errmsg, tmp); > if (errmsg == ((void *)0)) { > return 0; > } > > if (axes != ((void *)0)) { > for (idim = 0; idim < ndim; ++idim) { > npy_intp i = axes[idim]; > > if (i >= 0 && i < (((PyArrayObject *)(op[iop]))->nd)) { > remdims[idim] = ((((PyArrayObject *)(op[iop]))->dimensions)[i]); > } > else { > remdims[idim] = -1; > } > } > tmp = npyiter_shape_string(ndim, remdims, " "); > if (tmp == ((void *)0)) { > return 0; > } > PyString_ConcatAndDel(&errmsg, tmp); > if (errmsg == ((void *)0)) { > return 0; > } > } > } > } > if (itershape != ((void *)0)) { > tmp = PyString_FromString("and requested shape "); > if (tmp == ((void *)0)) { > do { if ( --((PyObject*)(errmsg))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(errmsg)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(errmsg)))); } while (0); > return 0; > } > PyString_ConcatAndDel(&errmsg, tmp); > if (errmsg == ((void *)0)) { > return 0; > } > > tmp = npyiter_shape_string(ndim, itershape, ""); > if (tmp == ((void *)0)) { > do { if ( --((PyObject*)(errmsg))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(errmsg)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(errmsg)))); } while (0); > return 0; > } > PyString_ConcatAndDel(&errmsg, tmp); > if (errmsg == ((void *)0)) { > return 0; > } > > } > PyErr_SetObject(PyExc_ValueError, errmsg); > } > > return 0; > } > >operand_different_than_broadcast: { > npy_intp remdims[32]; > PyObject *errmsg, *tmp; > > > if (op_flags[iop]&0x00020000) { > errmsg = PyString_FromString("non-broadcastable operand " > "with shape "); > } > else { > errmsg = PyString_FromString("non-broadcastable output " > "operand with shape "); > } > if (errmsg == ((void *)0)) { > return 0; > } > > > tmp = npyiter_shape_string((((PyArrayObject *)(op[iop]))->nd), > (((PyArrayObject *)(op[iop]))->dimensions), ""); > if (tmp == ((void *)0)) { > return 0; > } > PyString_ConcatAndDel(&errmsg, tmp); > if (errmsg == ((void *)0)) { > return 0; > } > > if (op_axes != ((void *)0) && op_axes[iop] != ((void *)0)) { > int *axes = op_axes[iop]; > > for (idim = 0; idim < ndim; ++idim) { > npy_intp i = axes[ndim-idim-1]; > > if (i >= 0 && i < (((PyArrayObject *)(op[iop]))->nd)) { > remdims[idim] = ((((PyArrayObject *)(op[iop]))->dimensions)[i]); > } > else { > remdims[idim] = -1; > } > } > > tmp = PyString_FromString(" [remapped to "); > if (tmp == ((void *)0)) { > return 0; > } > PyString_ConcatAndDel(&errmsg, tmp); > if (errmsg == ((void *)0)) { > return 0; > } > > tmp = npyiter_shape_string(ndim, remdims, "]"); > if (tmp == ((void *)0)) { > return 0; > } > PyString_ConcatAndDel(&errmsg, tmp); > if (errmsg == ((void *)0)) { > return 0; > } > } > > tmp = PyString_FromString(" doesn't match the broadcast shape "); > if (tmp == ((void *)0)) { > return 0; > } > PyString_ConcatAndDel(&errmsg, tmp); > if (errmsg == ((void *)0)) { > return 0; > } > > > axisdata = ((NpyIter_AxisData *)( &(iter)->iter_flexdata + ((((((((0) + ((32 + 0x7)&(-0x8))) + ((8)*(nop))) + ((8)*(nop+1))) + ((8)*(nop+1))) + ((8)*(nop))) + (((nop + 0x7)&(-0x8)))) + ((itflags&0x0080) ? ((8)*(6 + 9*nop)) : 0)))); > for (idim = 0; idim < ndim; ++idim) { > remdims[ndim-idim-1] = ((axisdata)->shape); > > axisdata = ((NpyIter_AxisData *) (((char *)(axisdata)) + (1)*sizeof_axisdata)); > } > > > tmp = npyiter_shape_string(ndim, remdims, ""); > if (tmp == ((void *)0)) { > return 0; > } > PyString_ConcatAndDel(&errmsg, tmp); > if (errmsg == ((void *)0)) { > return 0; > } > > PyErr_SetObject(PyExc_ValueError, errmsg); > > return 0; > } >} ># 3892 "numpy/core/src/multiarray/nditer.c.src" >static void >npyiter_replace_axisdata(NpyIter *iter, int iop, > PyArrayObject *op, > int op_ndim, char *op_dataptr, > int *op_axes) >{ > npy_uint32 itflags = ((iter)->itflags); > int idim, ndim = ((iter)->ndim); > int nop = ((iter)->nop); > > NpyIter_AxisData *axisdata0, *axisdata; > npy_intp sizeof_axisdata; > npy_int8 *perm; > npy_intp baseoffset = 0; > > perm = ((npy_int8 *)( &(iter)->iter_flexdata + (0))); > axisdata0 = ((NpyIter_AxisData *)( &(iter)->iter_flexdata + ((((((((0) + ((32 + 0x7)&(-0x8))) + ((8)*(nop))) + ((8)*(nop+1))) + ((8)*(nop+1))) + ((8)*(nop))) + (((nop + 0x7)&(-0x8)))) + ((itflags&0x0080) ? ((8)*(6 + 9*nop)) : 0)))); > sizeof_axisdata = (( 1 + 1 + 2*((nop)+1) )*8 ); > > > > > > axisdata = axisdata0; > > if (op_axes != ((void *)0)) { > for (idim = 0; idim < ndim; ++idim, axisdata = ((NpyIter_AxisData *) (((char *)(axisdata)) + (1)*sizeof_axisdata))) { > npy_int8 p; > int i; > npy_intp shape; > > > p = perm[idim]; > if (p < 0) { > i = op_axes[ndim+p]; > } > else { > i = op_axes[ndim-p-1]; > } > > if (0 <= i && i < op_ndim) { > shape = ((((PyArrayObject *)(op))->dimensions)[i]); > if (shape != 1) { > npy_intp stride = ((((PyArrayObject *)(op))->strides)[i]); > if (p < 0) { > > ( &(axisdata)->ad_flexdata + 0)[iop] = -stride; > baseoffset += stride*(shape-1); > } > else { > ( &(axisdata)->ad_flexdata + 0)[iop] = stride; > } > } > } > } > } > else { > for (idim = 0; idim < ndim; ++idim, axisdata = ((NpyIter_AxisData *) (((char *)(axisdata)) + (1)*sizeof_axisdata))) { > npy_int8 p; > int i; > npy_intp shape; > > > p = perm[idim]; > if (p < 0) { > i = op_ndim+p; > } > else { > i = op_ndim-p-1; > } > > if (i >= 0) { > shape = ((((PyArrayObject *)(op))->dimensions)[i]); > if (shape != 1) { > npy_intp stride = ((((PyArrayObject *)(op))->strides)[i]); > if (p < 0) { > > ( &(axisdata)->ad_flexdata + 0)[iop] = -stride; > baseoffset += stride*(shape-1); > } > else { > ( &(axisdata)->ad_flexdata + 0)[iop] = stride; > } > } > } > } > } > > op_dataptr += baseoffset; > > > ((char **)( &(iter)->iter_flexdata + (((0) + ((32 + 0x7)&(-0x8))) + ((8)*(nop)))))[iop] = op_dataptr; > ((npy_intp *)( &(iter)->iter_flexdata + ((((0) + ((32 + 0x7)&(-0x8))) + ((8)*(nop))) + ((8)*(nop+1)))))[iop] = baseoffset; > axisdata = axisdata0; > for (idim = 0; idim < ndim; ++idim, axisdata = ((NpyIter_AxisData *) (((char *)(axisdata)) + (1)*sizeof_axisdata))) { > ((char **) &(axisdata)->ad_flexdata + 1*(nop+1))[iop] = op_dataptr; > } >} ># 3998 "numpy/core/src/multiarray/nditer.c.src" >static void >npyiter_compute_index_strides(NpyIter *iter, npy_uint32 flags) >{ > npy_uint32 itflags = ((iter)->itflags); > int idim, ndim = ((iter)->ndim); > int nop = ((iter)->nop); > > npy_intp indexstride; > NpyIter_AxisData *axisdata; > npy_intp sizeof_axisdata; > > > > > > > if ((iter->itersize) == 1) { > if (itflags&0x0004) { > axisdata = ((NpyIter_AxisData *)( &(iter)->iter_flexdata + ((((((((0) + ((32 + 0x7)&(-0x8))) + ((8)*(nop))) + ((8)*(nop+1))) + ((8)*(nop+1))) + ((8)*(nop))) + (((nop + 0x7)&(-0x8)))) + ((itflags&0x0080) ? ((8)*(6 + 9*nop)) : 0)))); > ((char **) &(axisdata)->ad_flexdata + 1*(nop+1))[nop] = 0; > } > return; > } > > if (flags&0x00000001) { > sizeof_axisdata = (( 1 + 1 + 2*((nop)+1) )*8 ); > axisdata = ((NpyIter_AxisData *)( &(iter)->iter_flexdata + ((((((((0) + ((32 + 0x7)&(-0x8))) + ((8)*(nop))) + ((8)*(nop+1))) + ((8)*(nop+1))) + ((8)*(nop))) + (((nop + 0x7)&(-0x8)))) + ((itflags&0x0080) ? ((8)*(6 + 9*nop)) : 0)))); > indexstride = 1; > for(idim = 0; idim < ndim; ++idim, axisdata = ((NpyIter_AxisData *) (((char *)(axisdata)) + (1)*sizeof_axisdata))) { > npy_intp shape = ((axisdata)->shape); > > if (shape == 1) { > ( &(axisdata)->ad_flexdata + 0)[nop] = 0; > } > else { > ( &(axisdata)->ad_flexdata + 0)[nop] = indexstride; > } > ((char **) &(axisdata)->ad_flexdata + 1*(nop+1))[nop] = 0; > indexstride *= shape; > } > } > else if (flags&0x00000002) { > sizeof_axisdata = (( 1 + 1 + 2*((nop)+1) )*8 ); > axisdata = ((NpyIter_AxisData *) (((char *)(((NpyIter_AxisData *)( &(iter)->iter_flexdata + ((((((((0) + ((32 + 0x7)&(-0x8))) + ((8)*(nop))) + ((8)*(nop+1))) + ((8)*(nop+1))) + ((8)*(nop))) + (((nop + 0x7)&(-0x8)))) + ((itflags&0x0080) ? ((8)*(6 + 9*nop)) : 0)))))) + (ndim-1)*sizeof_axisdata)); > indexstride = 1; > for(idim = 0; idim < ndim; ++idim, axisdata = ((NpyIter_AxisData *) (((char *)(axisdata)) + (-1)*sizeof_axisdata))) { > npy_intp shape = ((axisdata)->shape); > > if (shape == 1) { > ( &(axisdata)->ad_flexdata + 0)[nop] = 0; > } > else { > ( &(axisdata)->ad_flexdata + 0)[nop] = indexstride; > } > ((char **) &(axisdata)->ad_flexdata + 1*(nop+1))[nop] = 0; > indexstride *= shape; > } > } >} > > > > > > >static void >npyiter_apply_forced_iteration_order(NpyIter *iter, NPY_ORDER order) >{ > > int ndim = ((iter)->ndim); > int iop, nop = ((iter)->nop); > > switch (order) { > case NPY_CORDER: > ((iter)->itflags) |= 0x0010; > break; > case NPY_FORTRANORDER: > ((iter)->itflags) |= 0x0010; > > if (ndim > 1) { > npyiter_reverse_axis_ordering(iter); > } > break; > case NPY_ANYORDER: > ((iter)->itflags) |= 0x0010; > > if (ndim > 1) { > PyArrayObject **op = ((PyArrayObject **)( &(iter)->iter_flexdata + (((((0) + ((32 + 0x7)&(-0x8))) + ((8)*(nop))) + ((8)*(nop+1))) + ((8)*(nop+1))))); > int forder = 1; > > > for (iop = 0; iop < nop; ++iop, ++op) { > if (*op && !((((PyArrayObject *)(*op))->flags & (0x0002)) == (0x0002))) { > forder = 0; > break; > } > } > > if (forder) { > npyiter_reverse_axis_ordering(iter); > } > } > break; > case NPY_KEEPORDER: > > break; > } >} ># 4114 "numpy/core/src/multiarray/nditer.c.src" >static void >npyiter_flip_negative_strides(NpyIter *iter) >{ > npy_uint32 itflags = ((iter)->itflags); > int idim, ndim = ((iter)->ndim); > int iop, nop = ((iter)->nop); > > npy_intp istrides, nstrides = ((nop) + ((itflags&0x0004) ? 1 : 0)); > NpyIter_AxisData *axisdata, *axisdata0; > npy_intp *baseoffsets; > npy_intp sizeof_axisdata = (( 1 + 1 + 2*((nop)+1) )*8 ); > int any_flipped = 0; > > axisdata0 = axisdata = ((NpyIter_AxisData *)( &(iter)->iter_flexdata + ((((((((0) + ((32 + 0x7)&(-0x8))) + ((8)*(nop))) + ((8)*(nop+1))) + ((8)*(nop+1))) + ((8)*(nop))) + (((nop + 0x7)&(-0x8)))) + ((itflags&0x0080) ? ((8)*(6 + 9*nop)) : 0)))); > baseoffsets = ((npy_intp *)( &(iter)->iter_flexdata + ((((0) + ((32 + 0x7)&(-0x8))) + ((8)*(nop))) + ((8)*(nop+1))))); > for (idim = 0; idim < ndim; ++idim, axisdata = ((NpyIter_AxisData *) (((char *)(axisdata)) + (1)*sizeof_axisdata))) { > npy_intp *strides = ( &(axisdata)->ad_flexdata + 0); > int any_negative = 0; > > > > > > for (iop = 0; iop < nop; ++iop) { > if (strides[iop] < 0) { > any_negative = 1; > } > else if (strides[iop] != 0) { > break; > } > } > > > > > if (any_negative && iop == nop) { > npy_intp shapem1 = ((axisdata)->shape) - 1; > > for (istrides = 0; istrides < nstrides; ++istrides) { > npy_intp stride = strides[istrides]; > > > baseoffsets[istrides] += shapem1 * stride; > > strides[istrides] = -stride; > } > > > > > ((npy_int8 *)( &(iter)->iter_flexdata + (0)))[idim] = -1-((npy_int8 *)( &(iter)->iter_flexdata + (0)))[idim]; > > any_flipped = 1; > } > } > > > > > > if (any_flipped) { > char **resetdataptr = ((char **)( &(iter)->iter_flexdata + (((0) + ((32 + 0x7)&(-0x8))) + ((8)*(nop))))); > > for (istrides = 0; istrides < nstrides; ++istrides) { > resetdataptr[istrides] += baseoffsets[istrides]; > } > axisdata = axisdata0; > for (idim = 0; idim < ndim; ++idim, axisdata = ((NpyIter_AxisData *) (((char *)(axisdata)) + (1)*sizeof_axisdata))) { > char **ptrs = ((char **) &(axisdata)->ad_flexdata + 1*(nop+1)); > for (istrides = 0; istrides < nstrides; ++istrides) { > ptrs[istrides] = resetdataptr[istrides]; > } > } > > > > > ((iter)->itflags) = (((iter)->itflags)|0x0002) & > ~0x0001; > } >} > >static void >npyiter_reverse_axis_ordering(NpyIter *iter) >{ > npy_uint32 itflags = ((iter)->itflags); > int ndim = ((iter)->ndim); > int nop = ((iter)->nop); > > npy_intp i, temp, size; > npy_intp *first, *last; > npy_int8 *perm; > > size = (( 1 + 1 + 2*((nop)+1) )*8 )/8; > first = (npy_intp*)((NpyIter_AxisData *)( &(iter)->iter_flexdata + ((((((((0) + ((32 + 0x7)&(-0x8))) + ((8)*(nop))) + ((8)*(nop+1))) + ((8)*(nop+1))) + ((8)*(nop))) + (((nop + 0x7)&(-0x8)))) + ((itflags&0x0080) ? ((8)*(6 + 9*nop)) : 0)))); > last = first + (ndim-1)*size; > > > while (first < last) { > for (i = 0; i < size; ++i) { > temp = first[i]; > first[i] = last[i]; > last[i] = temp; > } > first += size; > last -= size; > } > > > perm = ((npy_int8 *)( &(iter)->iter_flexdata + (0))); > for(i = ndim-1; i >= 0; --i, ++perm) { > *perm = (npy_int8)i; > } > > ((iter)->itflags) &= ~0x0001; >} > >static npy_intp intp_abs(npy_intp x) >{ > return (x < 0) ? -x : x; >} > >static void >npyiter_find_best_axis_ordering(NpyIter *iter) >{ > npy_uint32 itflags = ((iter)->itflags); > int idim, ndim = ((iter)->ndim); > int iop, nop = ((iter)->nop); > > npy_intp ax_i0, ax_i1, ax_ipos; > npy_int8 ax_j0, ax_j1; > npy_int8 *perm; > NpyIter_AxisData *axisdata = ((NpyIter_AxisData *)( &(iter)->iter_flexdata + ((((((((0) + ((32 + 0x7)&(-0x8))) + ((8)*(nop))) + ((8)*(nop+1))) + ((8)*(nop+1))) + ((8)*(nop))) + (((nop + 0x7)&(-0x8)))) + ((itflags&0x0080) ? ((8)*(6 + 9*nop)) : 0)))); > npy_intp sizeof_axisdata = (( 1 + 1 + 2*((nop)+1) )*8 ); > int permuted = 0; > > perm = ((npy_int8 *)( &(iter)->iter_flexdata + (0))); > > > > > > > for (ax_i0 = 1; ax_i0 < ndim; ++ax_i0) { > npy_intp *strides0; > > > ax_ipos = ax_i0; > ax_j0 = perm[ax_i0]; > > strides0 = ( &(((NpyIter_AxisData *) (((char *)(axisdata)) + (ax_j0)*sizeof_axisdata)))->ad_flexdata + 0); > for (ax_i1 = ax_i0-1; ax_i1 >= 0; --ax_i1) { > int ambig = 1, shouldswap = 0; > npy_intp *strides1; > > ax_j1 = perm[ax_i1]; > > strides1 = ( &(((NpyIter_AxisData *) (((char *)(axisdata)) + (ax_j1)*sizeof_axisdata)))->ad_flexdata + 0); > > for (iop = 0; iop < nop; ++iop) { > if (strides0[iop] != 0 && strides1[iop] != 0) { > if (intp_abs(strides1[iop]) <= > intp_abs(strides0[iop])) { > > > > > > shouldswap = 0; > } > else { > > if (ambig) { > shouldswap = 1; > } > } > > > > > > ambig = 0; > } > } > > > > > > if (!ambig) { > if (shouldswap) { > ax_ipos = ax_i1; > } > else { > break; > } > } > } > > > if (ax_ipos != ax_i0) { > for (ax_i1 = ax_i0; ax_i1 > ax_ipos; --ax_i1) { > perm[ax_i1] = perm[ax_i1-1]; > } > perm[ax_ipos] = ax_j0; > permuted = 1; > } > } > > > if (permuted == 1) { > npy_intp i, size = sizeof_axisdata/8; > NpyIter_AxisData *ad_i; > > > ad_i = axisdata; > for (idim = 0; idim < ndim; ++idim, ad_i = ((NpyIter_AxisData *) (((char *)(ad_i)) + (1)*sizeof_axisdata))) { > ((ad_i)->index) = 1; > } > > for (idim = 0; idim < ndim; ++idim) { > ad_i = ((NpyIter_AxisData *) (((char *)(axisdata)) + (idim)*sizeof_axisdata)); > > > if (((ad_i)->index) == 1) { > npy_int8 pidim = perm[idim]; > npy_intp tmp; > NpyIter_AxisData *ad_p, *ad_q; > > if (pidim != idim) { > > for (i = 0; i < size; ++i) { > pidim = perm[idim]; > ad_q = ad_i; > tmp = *((npy_intp*)ad_q + i); > while (pidim != idim) { > ad_p = ((NpyIter_AxisData *) (((char *)(axisdata)) + (pidim)*sizeof_axisdata)); > *((npy_intp*)ad_q + i) = *((npy_intp*)ad_p + i); > > ad_q = ad_p; > pidim = perm[(int)pidim]; > } > *((npy_intp*)ad_q + i) = tmp; > } > > pidim = perm[idim]; > > while (pidim != idim) { > ((((NpyIter_AxisData *) (((char *)(axisdata)) + (pidim)*sizeof_axisdata)))->index) = 0; > pidim = perm[(int)pidim]; > } > } > ((ad_i)->index) = 0; > } > } > > ((iter)->itflags) &= ~0x0001; > } >} > >static void >npyiter_coalesce_axes(NpyIter *iter) >{ > npy_uint32 itflags = ((iter)->itflags); > int idim, ndim = ((iter)->ndim); > int nop = ((iter)->nop); > > npy_intp istrides, nstrides = ((nop) + ((itflags&0x0004) ? 1 : 0)); > NpyIter_AxisData *axisdata = ((NpyIter_AxisData *)( &(iter)->iter_flexdata + ((((((((0) + ((32 + 0x7)&(-0x8))) + ((8)*(nop))) + ((8)*(nop+1))) + ((8)*(nop+1))) + ((8)*(nop))) + (((nop + 0x7)&(-0x8)))) + ((itflags&0x0080) ? ((8)*(6 + 9*nop)) : 0)))); > npy_intp sizeof_axisdata = (( 1 + 1 + 2*((nop)+1) )*8 ); > NpyIter_AxisData *ad_compress; > npy_intp new_ndim = 1; > > > ((iter)->itflags) &= ~(0x0001|0x0008); > > axisdata = ((NpyIter_AxisData *)( &(iter)->iter_flexdata + ((((((((0) + ((32 + 0x7)&(-0x8))) + ((8)*(nop))) + ((8)*(nop+1))) + ((8)*(nop+1))) + ((8)*(nop))) + (((nop + 0x7)&(-0x8)))) + ((itflags&0x0080) ? ((8)*(6 + 9*nop)) : 0)))); > ad_compress = axisdata; > > for (idim = 0; idim < ndim-1; ++idim) { > int can_coalesce = 1; > npy_intp shape0 = ((ad_compress)->shape); > npy_intp shape1 = ((((NpyIter_AxisData *) (((char *)(axisdata)) + (1)*sizeof_axisdata)))->shape); > npy_intp *strides0 = ( &(ad_compress)->ad_flexdata + 0); > npy_intp *strides1 = ( &(((NpyIter_AxisData *) (((char *)(axisdata)) + (1)*sizeof_axisdata)))->ad_flexdata + 0); > > > for (istrides = 0; istrides < nstrides; ++istrides) { > if (!((shape0 == 1 && strides0[istrides] == 0) || > (shape1 == 1 && strides1[istrides] == 0)) && > (strides0[istrides]*shape0 != strides1[istrides])) { > can_coalesce = 0; > break; > } > } > > if (can_coalesce) { > npy_intp *strides = ( &(ad_compress)->ad_flexdata + 0); > > axisdata = ((NpyIter_AxisData *) (((char *)(axisdata)) + (1)*sizeof_axisdata)); > ((ad_compress)->shape) *= ((axisdata)->shape); > for (istrides = 0; istrides < nstrides; ++istrides) { > if (strides[istrides] == 0) { > strides[istrides] = ( &(axisdata)->ad_flexdata + 0)[istrides]; > } > } > } > else { > axisdata = ((NpyIter_AxisData *) (((char *)(axisdata)) + (1)*sizeof_axisdata)); > ad_compress = ((NpyIter_AxisData *) (((char *)(ad_compress)) + (1)*sizeof_axisdata)); > if (ad_compress != axisdata) { > memcpy(ad_compress, axisdata, sizeof_axisdata); > } > ++new_ndim; > } > } > > > > > > if (new_ndim < ndim) { > npy_int8 *perm = ((npy_int8 *)( &(iter)->iter_flexdata + (0))); > > > for (idim = 0; idim < new_ndim; ++idim) { > perm[idim] = (npy_int8)idim; > } > ((iter)->ndim) = new_ndim; > } >} ># 4456 "numpy/core/src/multiarray/nditer.c.src" >static PyArrayObject * >npyiter_new_temp_array(NpyIter *iter, PyTypeObject *subtype, > npy_uint32 flags, char *op_itflags, > int op_ndim, npy_intp *shape, > PyArray_Descr *op_dtype, int *op_axes) >{ > npy_uint32 itflags = ((iter)->itflags); > int idim, ndim = ((iter)->ndim); > int nop = ((iter)->nop); > > npy_int8 *perm = ((npy_int8 *)( &(iter)->iter_flexdata + (0))); > npy_intp new_shape[32], strides[32], > stride = op_dtype->elsize; > char reversestride[32], anyreverse = 0; > NpyIter_AxisData *axisdata; > npy_intp sizeof_axisdata; > npy_intp i; > > PyArrayObject *ret; > > > if (op_ndim == 0) { > ( ((PyObject*)(op_dtype))->ob_refcnt++); > ret = (PyArrayObject *)PyArray_NewFromDescr(subtype, op_dtype, 0, > ((void *)0), ((void *)0), ((void *)0), 0, ((void *)0)); > > > if ((((PyArrayObject *)(ret))->nd) != 0) { > PyErr_SetString(PyExc_RuntimeError, > "Iterator automatic output has an array subtype " > "which changed the dimensions of the output"); > do { if ( --((PyObject*)(ret))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(ret)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(ret)))); } while (0); > return ((void *)0); > } > > return ret; > } > > axisdata = ((NpyIter_AxisData *)( &(iter)->iter_flexdata + ((((((((0) + ((32 + 0x7)&(-0x8))) + ((8)*(nop))) + ((8)*(nop+1))) + ((8)*(nop+1))) + ((8)*(nop))) + (((nop + 0x7)&(-0x8)))) + ((itflags&0x0080) ? ((8)*(6 + 9*nop)) : 0)))); > sizeof_axisdata = (( 1 + 1 + 2*((nop)+1) )*8 ); > > memset(reversestride, 0, 32); > > for (i = 0; i < 32; ++i) { > strides[i] = 9223372036854775807L; > } > > if (op_axes != ((void *)0)) { > for (idim = 0; idim < ndim; ++idim, axisdata = ((NpyIter_AxisData *) (((char *)(axisdata)) + (1)*sizeof_axisdata))) { > npy_int8 p; > > > p = perm[idim]; > if (p < 0) { > i = op_axes[ndim+p]; > } > else { > i = op_axes[ndim-p-1]; > } > > if (i >= 0) { > ; > > > strides[i] = stride; > if (p < 0) { > reversestride[i] = 1; > anyreverse = 1; > } > else { > reversestride[i] = 0; > } > if (shape == ((void *)0)) { > new_shape[i] = ((axisdata)->shape); > stride *= new_shape[i]; > if (i >= ndim) { > PyErr_SetString(PyExc_ValueError, > "automatically allocated output array " > "specified with an inconsistent axis mapping"); > return ((void *)0); > } > } > else { > stride *= shape[i]; > } > } > else { > if (shape == ((void *)0)) { > > > > > if (((axisdata)->shape) != 1) { > if (!(flags&0x00000080)) { > PyErr_SetString(PyExc_ValueError, > "output requires a reduction, but " > "reduction is not enabled"); > return ((void *)0); > } > if (!((*op_itflags)&0x02)) { > PyErr_SetString(PyExc_ValueError, > "output requires a reduction, but " > "is flagged as write-only, not read-write"); > return ((void *)0); > } > > ; > > > ((iter)->itflags) |= 0x1000; > (*op_itflags) |= 0x20; > } > } > } > } > } > else { > for (idim = 0; idim < ndim; ++idim, axisdata = ((NpyIter_AxisData *) (((char *)(axisdata)) + (1)*sizeof_axisdata))) { > npy_int8 p; > > > p = perm[idim]; > if (p < 0) { > i = op_ndim + p; > } > else { > i = op_ndim - p - 1; > } > > if (i >= 0) { > ; > > > strides[i] = stride; > if (p < 0) { > reversestride[i] = 1; > anyreverse = 1; > } > else { > reversestride[i] = 0; > } > if (shape == ((void *)0)) { > new_shape[i] = ((axisdata)->shape); > stride *= new_shape[i]; > } > else { > stride *= shape[i]; > } > } > } > } > > > > > > if (shape == ((void *)0)) { > > op_ndim = ndim; > if (op_axes != ((void *)0)) { > for (i = 0; i < ndim; ++i) { > if (strides[i] == 9223372036854775807L) { > if (op_ndim == ndim) { > op_ndim = i; > } > } > > > > > > else if (op_ndim != ndim) { > PyErr_SetString(PyExc_ValueError, > "automatically allocated output array " > "specified with an inconsistent axis mapping"); > return ((void *)0); > } > } > } > } > else { > for (i = 0; i < op_ndim; ++i) { > if (strides[i] == 9223372036854775807L) { > npy_intp factor, new_strides[32], > itemsize; > > > factor = 1; > itemsize = op_dtype->elsize; > for (i = op_ndim-1; i >= 0; --i) { > if (strides[i] == 9223372036854775807L) { > new_strides[i] = factor * itemsize; > factor *= shape[i]; > } > } > > > > > > > > for (i = 0; i < op_ndim; ++i) { > if (strides[i] == 9223372036854775807L) { > strides[i] = new_strides[i]; > } > else { > strides[i] *= factor; > } > } > > break; > } > } > } > > > if (shape == ((void *)0)) { > shape = new_shape; > } > > > ( ((PyObject*)(op_dtype))->ob_refcnt++); > ret = (PyArrayObject *)PyArray_NewFromDescr(subtype, op_dtype, op_ndim, > shape, strides, ((void *)0), 0, ((void *)0)); > if (ret == ((void *)0)) { > return ((void *)0); > } > > > if (anyreverse) { > char *dataptr = ((void *)(((PyArrayObject *)(ret))->data)); > PyArrayObject *newret; > > for (idim = 0; idim < op_ndim; ++idim) { > if (reversestride[idim]) { > dataptr += strides[idim]*(shape[idim]-1); > strides[idim] = -strides[idim]; > } > } > ( ((PyObject*)(op_dtype))->ob_refcnt++); > newret = (PyArrayObject *)PyArray_NewFromDescr(subtype, > op_dtype, op_ndim, > shape, strides, dataptr, > 0x0400, ((void *)0)); > if (newret == ((void *)0)) { > do { if ( --((PyObject*)(ret))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(ret)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(ret)))); } while (0); > return ((void *)0); > } > newret->base = (PyObject *)ret; > ret = newret; > } > > > PyArray_UpdateFlags(ret, (0x0001 | 0x0002 | 0x0100)); > > > if (subtype != &PyArray_Type) { > if ((((PyArrayObject *)(ret))->nd) != op_ndim || > !PyArray_CompareLists(shape, (((PyArrayObject *)(ret))->dimensions), op_ndim)) { > PyErr_SetString(PyExc_RuntimeError, > "Iterator automatic output has an array subtype " > "which changed the dimensions of the output"); > do { if ( --((PyObject*)(ret))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(ret)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(ret)))); } while (0); > return ((void *)0); > } > } > > return ret; >} > >static int >npyiter_allocate_arrays(NpyIter *iter, > npy_uint32 flags, > PyArray_Descr **op_dtype, PyTypeObject *subtype, > npy_uint32 *op_flags, char *op_itflags, > int **op_axes, int output_scalars) >{ > npy_uint32 itflags = ((iter)->itflags); > int idim, ndim = ((iter)->ndim); > int iop, nop = ((iter)->nop); > > NpyIter_BufferData *bufferdata = ((void *)0); > PyArrayObject **op = ((PyArrayObject **)( &(iter)->iter_flexdata + (((((0) + ((32 + 0x7)&(-0x8))) + ((8)*(nop))) + ((8)*(nop+1))) + ((8)*(nop+1))))); > > if (itflags&0x0080) { > bufferdata = ((NpyIter_BufferData *)( &(iter)->iter_flexdata + (((((((0) + ((32 + 0x7)&(-0x8))) + ((8)*(nop))) + ((8)*(nop+1))) + ((8)*(nop+1))) + ((8)*(nop))) + (((nop + 0x7)&(-0x8)))))); > } > > > for (iop = 0; iop < nop; ++iop) { > > if (op[iop] == ((void *)0)) { > PyArrayObject *out; > PyTypeObject *op_subtype; > int ondim = output_scalars ? 0 : ndim; > > > op_subtype = (op_flags[iop]&0x02000000) ? > &PyArray_Type : subtype; > > > out = npyiter_new_temp_array(iter, op_subtype, > flags, &op_itflags[iop], > ondim, > ((void *)0), > op_dtype[iop], > op_axes ? op_axes[iop] : ((void *)0)); > if (out == ((void *)0)) { > return 0; > } > > op[iop] = out; > > > > > > npyiter_replace_axisdata(iter, iop, op[iop], ondim, > ((void *)(((PyArrayObject *)(op[iop]))->data)), op_axes ? op_axes[iop] : ((void *)0)); > > > op_itflags[iop] |= 0x10; > op_itflags[iop] &= ~0x04; > } > > > > > > else if ((op_itflags[iop]&(0x04| > 0x02| > 0x01)) == (0x04| > 0x02) && > (((PyArrayObject *)(op[iop]))->nd) == 0) { > PyArrayObject *temp; > ( ((PyObject*)(op_dtype[iop]))->ob_refcnt++); > temp = (PyArrayObject *)PyArray_NewFromDescr( > &PyArray_Type, op_dtype[iop], > 0, ((void *)0), ((void *)0), ((void *)0), 0, ((void *)0)); > if (temp == ((void *)0)) { > return 0; > } > if (PyArray_CopyInto(temp, op[iop]) != 0) { > do { if ( --((PyObject*)(temp))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(temp)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(temp)))); } while (0); > return 0; > } > do { if ( --((PyObject*)(op[iop]))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(op[iop])))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(op[iop])))); } while (0); > op[iop] = temp; > > > > > > npyiter_replace_axisdata(iter, iop, op[iop], 0, > ((void *)(((PyArrayObject *)(op[iop]))->data)), ((void *)0)); > > > > > > op_itflags[iop] |= (0x10| > 0x08); > op_itflags[iop] &= ~0x04; > if (itflags&0x0080) { > ( &(bufferdata)->bd_flexdata + 0)[iop] = 0; > } > } > > else if ((op_itflags[iop]&0x04) && > (op_flags[iop]&(0x00400000|0x00800000))) { > PyArrayObject *temp; > int ondim = (((PyArrayObject *)(op[iop]))->nd); > > > temp = npyiter_new_temp_array(iter, &PyArray_Type, > flags, &op_itflags[iop], > ondim, > (((PyArrayObject *)(op[iop]))->dimensions), > op_dtype[iop], > op_axes ? op_axes[iop] : ((void *)0)); > if (temp == ((void *)0)) { > return 0; > } > > > if (op_itflags[iop]&0x02) { > if (PyArray_CopyInto(temp, op[iop]) != 0) { > do { if ( --((PyObject*)(temp))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(temp)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(temp)))); } while (0); > return 0; > } > } > > if (op_itflags[iop]&0x01) { > (((PyArrayObject *)(temp))->flags) |= 0x1000; > (((PyArrayObject *)(op[iop]))->flags) &= ~0x0400; > ( ((PyObject*)(op[iop]))->ob_refcnt++); > temp->base = (PyObject *)op[iop]; > } > > do { if ( --((PyObject*)(op[iop]))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(op[iop])))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(op[iop])))); } while (0); > op[iop] = temp; > > > > > > npyiter_replace_axisdata(iter, iop, op[iop], ondim, > ((void *)(((PyArrayObject *)(op[iop]))->data)), op_axes ? op_axes[iop] : ((void *)0)); > > > op_itflags[iop] |= 0x10; > op_itflags[iop] &= ~0x04; > } > else { > > > > > if ((op_itflags[iop]&0x04) && > !(itflags&0x0080)) { > PyErr_SetString(PyExc_TypeError, > "Iterator operand required copying or buffering, " > "but neither copying nor buffering was enabled"); > return 0; > } > > > > > > if (((((PyArrayObject *)(op[iop]))->flags & (0x0100)) == (0x0100))) { > op_itflags[iop] |= 0x10; > } > } > > > if (op_flags[iop]&0x00200000) { > NpyIter_AxisData *axisdata = ((NpyIter_AxisData *)( &(iter)->iter_flexdata + ((((((((0) + ((32 + 0x7)&(-0x8))) + ((8)*(nop))) + ((8)*(nop+1))) + ((8)*(nop+1))) + ((8)*(nop))) + (((nop + 0x7)&(-0x8)))) + ((itflags&0x0080) ? ((8)*(6 + 9*nop)) : 0)))); > npy_intp stride = ( &(axisdata)->ad_flexdata + 0)[iop]; > > if (stride != op_dtype[iop]->elsize) { > ; > > op_itflags[iop] |= 0x04; > if (!(itflags&0x0080)) { > PyErr_SetString(PyExc_TypeError, > "Iterator operand required buffering, " > "to be contiguous as requested, but " > "buffering is not enabled"); > return 0; > } > } > } > > > > > > > if ((itflags&0x0080) && !(op_itflags[iop]&0x04)) { > NpyIter_AxisData *axisdata = ((NpyIter_AxisData *)( &(iter)->iter_flexdata + ((((((((0) + ((32 + 0x7)&(-0x8))) + ((8)*(nop))) + ((8)*(nop+1))) + ((8)*(nop+1))) + ((8)*(nop))) + (((nop + 0x7)&(-0x8)))) + ((itflags&0x0080) ? ((8)*(6 + 9*nop)) : 0)))); > if (ndim == 1) { > op_itflags[iop] |= 0x08; > ( &(bufferdata)->bd_flexdata + 0)[iop] = ( &(axisdata)->ad_flexdata + 0)[iop]; > } > else if ((((PyArrayObject *)(op[iop]))->nd) > 0) { > npy_intp stride, shape, innerstride = 0, innershape; > npy_intp sizeof_axisdata = > (( 1 + 1 + 2*((nop)+1) )*8 ); > > for (idim = 0; idim < ndim; ++idim) { > innershape = ((axisdata)->shape); > if (innershape != 1) { > innerstride = ( &(axisdata)->ad_flexdata + 0)[iop]; > break; > } > axisdata = ((NpyIter_AxisData *) (((char *)(axisdata)) + (1)*sizeof_axisdata)); > } > ++idim; > axisdata = ((NpyIter_AxisData *) (((char *)(axisdata)) + (1)*sizeof_axisdata)); > > for (; idim < ndim; ++idim) { > stride = ( &(axisdata)->ad_flexdata + 0)[iop]; > shape = ((axisdata)->shape); > if (shape != 1) { > > > > > if (innerstride*innershape != stride) { > break; > } > else { > innershape *= shape; > } > } > axisdata = ((NpyIter_AxisData *) (((char *)(axisdata)) + (1)*sizeof_axisdata)); > } > > > > > > if (idim == ndim) { > op_itflags[iop] |= 0x08; > ( &(bufferdata)->bd_flexdata + 0)[iop] = innerstride; > } > } > } > } > > return 1; >} > > > > > > >static void >npyiter_get_priority_subtype(int nop, PyArrayObject **op, > char *op_itflags, > double *subtype_priority, > PyTypeObject **subtype) >{ > int iop; > > for (iop = 0; iop < nop; ++iop) { > if (op[iop] != ((void *)0) && op_itflags[iop]&0x02) { > double priority = PyArray_GetPriority((PyObject *)op[iop], 0.0); > if (priority > *subtype_priority) { > *subtype_priority = priority; > *subtype = (((PyObject*)(op[iop]))->ob_type); > } > } > } >} > > > > > > >static PyArray_Descr * >npyiter_get_common_dtype(int nop, PyArrayObject **op, > char *op_itflags, PyArray_Descr **op_dtype, > PyArray_Descr **op_request_dtypes, > int only_inputs, int output_scalars) >{ > int iop; > npy_intp narrs = 0, ndtypes = 0; > PyArrayObject *arrs[32]; > PyArray_Descr *dtypes[32]; > PyArray_Descr *ret; > > ; > > for (iop = 0; iop < nop; ++iop) { > if (op_dtype[iop] != ((void *)0) && > (!only_inputs || (op_itflags[iop]&0x02))) { > > if ((op_request_dtypes == ((void *)0) || > op_request_dtypes[iop] == ((void *)0)) && > (((PyArrayObject *)(op[iop]))->nd) == 0) { > arrs[narrs++] = op[iop]; > } > > else { > dtypes[ndtypes++] = op_dtype[iop]; > } > } > } > > if (narrs == 0) { > npy_intp i; > ret = dtypes[0]; > for (i = 1; i < ndtypes; ++i) { > if (ret != dtypes[i]) > break; > } > if (i == ndtypes) { > if (ndtypes == 1 || ((ret->byteorder) != '>')) { > ( ((PyObject*)(ret))->ob_refcnt++); > } > else { > ret = PyArray_DescrNewByteorder(ret, '='); > } > } > else { > ret = PyArray_ResultType(narrs, arrs, ndtypes, dtypes); > } > } > else { > ret = PyArray_ResultType(narrs, arrs, ndtypes, dtypes); > } > > return ret; >} > >static int >npyiter_allocate_transfer_functions(NpyIter *iter) >{ > npy_uint32 itflags = ((iter)->itflags); > > int iop = 0, nop = ((iter)->nop); > > npy_intp i; > char *op_itflags = ( &(iter)->iter_flexdata + ((((((0) + ((32 + 0x7)&(-0x8))) + ((8)*(nop))) + ((8)*(nop+1))) + ((8)*(nop+1))) + ((8)*(nop)))); > NpyIter_BufferData *bufferdata = ((NpyIter_BufferData *)( &(iter)->iter_flexdata + (((((((0) + ((32 + 0x7)&(-0x8))) + ((8)*(nop))) + ((8)*(nop+1))) + ((8)*(nop+1))) + ((8)*(nop))) + (((nop + 0x7)&(-0x8)))))); > NpyIter_AxisData *axisdata = ((NpyIter_AxisData *)( &(iter)->iter_flexdata + ((((((((0) + ((32 + 0x7)&(-0x8))) + ((8)*(nop))) + ((8)*(nop+1))) + ((8)*(nop+1))) + ((8)*(nop))) + (((nop + 0x7)&(-0x8)))) + ((itflags&0x0080) ? ((8)*(6 + 9*nop)) : 0)))); > PyArrayObject **op = ((PyArrayObject **)( &(iter)->iter_flexdata + (((((0) + ((32 + 0x7)&(-0x8))) + ((8)*(nop))) + ((8)*(nop+1))) + ((8)*(nop+1))))); > PyArray_Descr **op_dtype = ((PyArray_Descr **)( &(iter)->iter_flexdata + ((0) + ((32 + 0x7)&(-0x8))))); > npy_intp *strides = ( &(axisdata)->ad_flexdata + 0), op_stride; > PyArray_StridedTransferFn **readtransferfn = ((PyArray_StridedTransferFn **) (&(bufferdata)->bd_flexdata + 4*(nop))), > **writetransferfn = ((PyArray_StridedTransferFn **) (&(bufferdata)->bd_flexdata + 6*(nop))); > void **readtransferdata = ((void **) (&(bufferdata)->bd_flexdata + 5*(nop))), > **writetransferdata = ((void **) (&(bufferdata)->bd_flexdata + 7*(nop))); > > PyArray_StridedTransferFn *stransfer = ((void *)0); > void *transferdata = ((void *)0); > int needs_api = 0; > > for (iop = 0; iop < nop; ++iop) { > char flags = op_itflags[iop]; > > > > > op_stride = (flags&0x20) ? 9223372036854775807L : > strides[iop]; > > > > > > if (!(flags&0x08)) { > if (flags&0x02) { > int move_references = 0; > if (PyArray_GetDTypeTransferFunction( > (flags&0x10) != 0, > op_stride, > op_dtype[iop]->elsize, > (((PyArrayObject *)(op[iop]))->descr), > op_dtype[iop], > move_references, > &stransfer, > &transferdata, > &needs_api) != 1) { > goto fail; > } > readtransferfn[iop] = stransfer; > readtransferdata[iop] = transferdata; > } > else { > readtransferfn[iop] = ((void *)0); > } > if (flags&0x01) { > int move_references = 1; > if (PyArray_GetDTypeTransferFunction( > (flags&0x10) != 0, > op_dtype[iop]->elsize, > op_stride, > op_dtype[iop], > (((PyArrayObject *)(op[iop]))->descr), > move_references, > &stransfer, > &transferdata, > &needs_api) != 1) { > goto fail; > } > writetransferfn[iop] = stransfer; > writetransferdata[iop] = transferdata; > } > > else if ((((op_dtype[iop])->flags & (0x01)) == (0x01))) { > > > > > > if (PyArray_GetDTypeTransferFunction( > (flags&0x10) != 0, > op_dtype[iop]->elsize, 0, > op_dtype[iop], ((void *)0), > 1, > &stransfer, > &transferdata, > &needs_api) != 1) { > goto fail; > } > writetransferfn[iop] = stransfer; > writetransferdata[iop] = transferdata; > } > else { > writetransferfn[iop] = ((void *)0); > } > } > else { > readtransferfn[iop] = ((void *)0); > writetransferfn[iop] = ((void *)0); > } > } > > > if (needs_api) { > ((iter)->itflags) |= 0x0800; > } > > return 1; > >fail: > for (i = 0; i < iop; ++i) { > if (readtransferdata[iop] != ((void *)0)) { > PyArray_FreeStridedTransferData(readtransferdata[iop]); > readtransferdata[iop] = ((void *)0); > } > if (writetransferdata[iop] != ((void *)0)) { > PyArray_FreeStridedTransferData(writetransferdata[iop]); > writetransferdata[iop] = ((void *)0); > } > } > return 0; >} ># 5188 "numpy/core/src/multiarray/nditer.c.src" >static int >npyiter_allocate_buffers(NpyIter *iter, char **errmsg) >{ > > > int iop = 0, nop = ((iter)->nop); > > npy_intp i; > char *op_itflags = ( &(iter)->iter_flexdata + ((((((0) + ((32 + 0x7)&(-0x8))) + ((8)*(nop))) + ((8)*(nop+1))) + ((8)*(nop+1))) + ((8)*(nop)))); > NpyIter_BufferData *bufferdata = ((NpyIter_BufferData *)( &(iter)->iter_flexdata + (((((((0) + ((32 + 0x7)&(-0x8))) + ((8)*(nop))) + ((8)*(nop+1))) + ((8)*(nop+1))) + ((8)*(nop))) + (((nop + 0x7)&(-0x8)))))); > PyArray_Descr **op_dtype = ((PyArray_Descr **)( &(iter)->iter_flexdata + ((0) + ((32 + 0x7)&(-0x8))))); > npy_intp buffersize = ((bufferdata)->buffersize); > char *buffer, **buffers = ((char **) (&(bufferdata)->bd_flexdata + 8*(nop))); > > for (iop = 0; iop < nop; ++iop) { > char flags = op_itflags[iop]; > > > > > > if (!(flags&0x08)) { > npy_intp itemsize = op_dtype[iop]->elsize; > buffer = PyMem_Malloc(itemsize*buffersize); > if (buffer == ((void *)0)) { > if (errmsg == ((void *)0)) { > PyErr_NoMemory(); > } > else { > *errmsg = "out of memory"; > } > goto fail; > } > buffers[iop] = buffer; > } > } > > return 1; > >fail: > for (i = 0; i < iop; ++i) { > if (buffers[i] != ((void *)0)) { > PyMem_Free(buffers[i]); > buffers[i] = ((void *)0); > } > } > return 0; >} > > > > > > >static void >npyiter_goto_iterindex(NpyIter *iter, npy_intp iterindex) >{ > npy_uint32 itflags = ((iter)->itflags); > int idim, ndim = ((iter)->ndim); > int nop = ((iter)->nop); > > char **dataptr; > NpyIter_AxisData *axisdata; > npy_intp sizeof_axisdata; > npy_intp istrides, nstrides, i, shape; > > axisdata = ((NpyIter_AxisData *)( &(iter)->iter_flexdata + ((((((((0) + ((32 + 0x7)&(-0x8))) + ((8)*(nop))) + ((8)*(nop+1))) + ((8)*(nop+1))) + ((8)*(nop))) + (((nop + 0x7)&(-0x8)))) + ((itflags&0x0080) ? ((8)*(6 + 9*nop)) : 0)))); > sizeof_axisdata = (( 1 + 1 + 2*((nop)+1) )*8 ); > nstrides = ((nop) + ((itflags&0x0004) ? 1 : 0)); > > (iter->iterindex) = iterindex; > > if (iterindex == 0) { > dataptr = ((char **)( &(iter)->iter_flexdata + (((0) + ((32 + 0x7)&(-0x8))) + ((8)*(nop))))); > > for (idim = 0; idim < ndim; ++idim) { > char **ptrs; > ((axisdata)->index) = 0; > ptrs = ((char **) &(axisdata)->ad_flexdata + 1*(nop+1)); > for (istrides = 0; istrides < nstrides; ++istrides) { > ptrs[istrides] = dataptr[istrides]; > } > > axisdata = ((NpyIter_AxisData *) (((char *)(axisdata)) + (1)*sizeof_axisdata)); > } > } > else { > > > > > axisdata = ((NpyIter_AxisData *)( &(iter)->iter_flexdata + ((((((((0) + ((32 + 0x7)&(-0x8))) + ((8)*(nop))) + ((8)*(nop+1))) + ((8)*(nop+1))) + ((8)*(nop))) + (((nop + 0x7)&(-0x8)))) + ((itflags&0x0080) ? ((8)*(6 + 9*nop)) : 0)))); > shape = ((axisdata)->shape); > i = iterindex; > iterindex /= shape; > ((axisdata)->index) = i - iterindex * shape; > for (idim = 0; idim < ndim-1; ++idim) { > axisdata = ((NpyIter_AxisData *) (((char *)(axisdata)) + (1)*sizeof_axisdata)); > > shape = ((axisdata)->shape); > i = iterindex; > iterindex /= shape; > ((axisdata)->index) = i - iterindex * shape; > } > > dataptr = ((char **)( &(iter)->iter_flexdata + (((0) + ((32 + 0x7)&(-0x8))) + ((8)*(nop))))); > > > > > > > for (idim = 0; idim < ndim; ++idim) { > npy_intp *strides; > char **ptrs; > > strides = ( &(axisdata)->ad_flexdata + 0); > ptrs = ((char **) &(axisdata)->ad_flexdata + 1*(nop+1)); > > i = ((axisdata)->index); > > for (istrides = 0; istrides < nstrides; ++istrides) { > ptrs[istrides] = dataptr[istrides] + i*strides[istrides]; > } > > dataptr = ptrs; > > axisdata = ((NpyIter_AxisData *) (((char *)(axisdata)) + (-1)*sizeof_axisdata)); > } > } >} > > > > > > >static void >npyiter_copy_from_buffers(NpyIter *iter) >{ > npy_uint32 itflags = ((iter)->itflags); > int ndim = ((iter)->ndim); > int iop, nop = ((iter)->nop); > > char *op_itflags = ( &(iter)->iter_flexdata + ((((((0) + ((32 + 0x7)&(-0x8))) + ((8)*(nop))) + ((8)*(nop+1))) + ((8)*(nop+1))) + ((8)*(nop)))); > NpyIter_BufferData *bufferdata = ((NpyIter_BufferData *)( &(iter)->iter_flexdata + (((((((0) + ((32 + 0x7)&(-0x8))) + ((8)*(nop))) + ((8)*(nop+1))) + ((8)*(nop+1))) + ((8)*(nop))) + (((nop + 0x7)&(-0x8)))))); > NpyIter_AxisData *axisdata = ((NpyIter_AxisData *)( &(iter)->iter_flexdata + ((((((((0) + ((32 + 0x7)&(-0x8))) + ((8)*(nop))) + ((8)*(nop+1))) + ((8)*(nop+1))) + ((8)*(nop))) + (((nop + 0x7)&(-0x8)))) + ((itflags&0x0080) ? ((8)*(6 + 9*nop)) : 0)))), > *reduce_outeraxisdata = ((void *)0); > > PyArray_Descr **dtypes = ((PyArray_Descr **)( &(iter)->iter_flexdata + ((0) + ((32 + 0x7)&(-0x8))))); > npy_intp transfersize = ((bufferdata)->size), > buffersize = ((bufferdata)->buffersize); > npy_intp *strides = ( &(bufferdata)->bd_flexdata + 0), > *ad_strides = ( &(axisdata)->ad_flexdata + 0); > npy_intp sizeof_axisdata = (( 1 + 1 + 2*((nop)+1) )*8 ); > char **ptrs = ((char **) (&(bufferdata)->bd_flexdata + 1*(nop))), **ad_ptrs = ((char **) &(axisdata)->ad_flexdata + 1*(nop+1)); > char **buffers = ((char **) (&(bufferdata)->bd_flexdata + 8*(nop))); > char *buffer; > > npy_intp reduce_outerdim = 0; > npy_intp *reduce_outerstrides = ((void *)0); > > PyArray_StridedTransferFn *stransfer = ((void *)0); > void *transferdata = ((void *)0); > > npy_intp axisdata_incr = (( 1 + 1 + 2*((nop)+1) )*8 ) / > 8; > > > if (((bufferdata)->size) == 0) { > return; > } > > ; > > if (itflags&0x1000) { > reduce_outerdim = ((bufferdata)->reduce_outerdim); > reduce_outerstrides = ( (&(bufferdata)->bd_flexdata + 2*(nop))); > reduce_outeraxisdata = ((NpyIter_AxisData *) (((char *)(axisdata)) + (reduce_outerdim)*sizeof_axisdata)); > transfersize *= ((bufferdata)->reduce_outersize); > } > > for (iop = 0; iop < nop; ++iop) { > stransfer = ((PyArray_StridedTransferFn **) (&(bufferdata)->bd_flexdata + 6*(nop)))[iop]; > transferdata = ((void **) (&(bufferdata)->bd_flexdata + 7*(nop)))[iop]; > buffer = buffers[iop]; > > > > > if ((stransfer != ((void *)0)) && (op_itflags[iop]&0x01)) { > > npy_intp delta = (ptrs[iop] - buffer); > if (0 <= delta && delta <= buffersize*dtypes[iop]->elsize) { > npy_intp op_transfersize; > > npy_intp src_stride, *dst_strides, *dst_coords, *dst_shape; > int ndim_transfer; > > ; > > > > > > > > if (op_itflags[iop]&0x20) { > if (strides[iop] == 0) { > if (reduce_outerstrides[iop] == 0) { > op_transfersize = 1; > src_stride = 0; > dst_strides = &src_stride; > dst_coords = &((reduce_outeraxisdata)->index); > dst_shape = &((reduce_outeraxisdata)->shape); > ndim_transfer = 1; > } > else { > op_transfersize = ((bufferdata)->reduce_outersize); > src_stride = reduce_outerstrides[iop]; > dst_strides = > &( &(reduce_outeraxisdata)->ad_flexdata + 0)[iop]; > dst_coords = &((reduce_outeraxisdata)->index); > dst_shape = &((reduce_outeraxisdata)->shape); > ndim_transfer = ndim - reduce_outerdim; > } > } > else { > if (reduce_outerstrides[iop] == 0) { > op_transfersize = ((bufferdata)->size); > src_stride = strides[iop]; > dst_strides = &ad_strides[iop]; > dst_coords = &((axisdata)->index); > dst_shape = &((axisdata)->shape); > ndim_transfer = reduce_outerdim ? > reduce_outerdim : 1; > } > else { > op_transfersize = transfersize; > src_stride = strides[iop]; > dst_strides = &ad_strides[iop]; > dst_coords = &((axisdata)->index); > dst_shape = &((axisdata)->shape); > ndim_transfer = ndim; > } > } > } > else { > op_transfersize = transfersize; > src_stride = strides[iop]; > dst_strides = &ad_strides[iop]; > dst_coords = &((axisdata)->index); > dst_shape = &((axisdata)->shape); > ndim_transfer = ndim; > } > > ; > > > > PyArray_TransferStridedToNDim(ndim_transfer, > ad_ptrs[iop], dst_strides, axisdata_incr, > buffer, src_stride, > dst_coords, axisdata_incr, > dst_shape, axisdata_incr, > op_transfersize, dtypes[iop]->elsize, > stransfer, > transferdata); > } > } > > > > > else if (stransfer != ((void *)0)) { > > npy_intp delta = (ptrs[iop] - buffer); > if (0 <= delta && delta <= transfersize*dtypes[iop]->elsize) { > ; > > > stransfer(((void *)0), 0, buffer, dtypes[iop]->elsize, > transfersize, dtypes[iop]->elsize, > transferdata); > > > > > > > memset(buffer, 0, dtypes[iop]->elsize*transfersize); > } > } > } > > ; >} > > > > > > >static void >npyiter_copy_to_buffers(NpyIter *iter, char **prev_dataptrs) >{ > npy_uint32 itflags = ((iter)->itflags); > int ndim = ((iter)->ndim); > int iop, nop = ((iter)->nop); > > char *op_itflags = ( &(iter)->iter_flexdata + ((((((0) + ((32 + 0x7)&(-0x8))) + ((8)*(nop))) + ((8)*(nop+1))) + ((8)*(nop+1))) + ((8)*(nop)))); > NpyIter_BufferData *bufferdata = ((NpyIter_BufferData *)( &(iter)->iter_flexdata + (((((((0) + ((32 + 0x7)&(-0x8))) + ((8)*(nop))) + ((8)*(nop+1))) + ((8)*(nop+1))) + ((8)*(nop))) + (((nop + 0x7)&(-0x8)))))); > NpyIter_AxisData *axisdata = ((NpyIter_AxisData *)( &(iter)->iter_flexdata + ((((((((0) + ((32 + 0x7)&(-0x8))) + ((8)*(nop))) + ((8)*(nop+1))) + ((8)*(nop+1))) + ((8)*(nop))) + (((nop + 0x7)&(-0x8)))) + ((itflags&0x0080) ? ((8)*(6 + 9*nop)) : 0)))), > *reduce_outeraxisdata = ((void *)0); > > PyArray_Descr **dtypes = ((PyArray_Descr **)( &(iter)->iter_flexdata + ((0) + ((32 + 0x7)&(-0x8))))); > PyArrayObject **operands = ((PyArrayObject **)( &(iter)->iter_flexdata + (((((0) + ((32 + 0x7)&(-0x8))) + ((8)*(nop))) + ((8)*(nop+1))) + ((8)*(nop+1))))); > npy_intp *strides = ( &(bufferdata)->bd_flexdata + 0), > *ad_strides = ( &(axisdata)->ad_flexdata + 0); > npy_intp sizeof_axisdata = (( 1 + 1 + 2*((nop)+1) )*8 ); > char **ptrs = ((char **) (&(bufferdata)->bd_flexdata + 1*(nop))), **ad_ptrs = ((char **) &(axisdata)->ad_flexdata + 1*(nop+1)); > char **buffers = ((char **) (&(bufferdata)->bd_flexdata + 8*(nop))); > npy_intp iterindex, iterend, transfersize, > singlestridesize, reduce_innersize = 0, reduce_outerdim = 0; > int is_onestride = 0, any_buffered = 0; > > npy_intp *reduce_outerstrides = ((void *)0); > char **reduce_outerptrs = ((void *)0); > > PyArray_StridedTransferFn *stransfer = ((void *)0); > void *transferdata = ((void *)0); > > > > > > npy_bool reuse_reduce_loops = (prev_dataptrs != ((void *)0)) && > ((itflags&0x2000) != 0); > > npy_intp axisdata_incr = (( 1 + 1 + 2*((nop)+1) )*8 ) / > 8; > > ; > > > iterindex = (iter->iterindex); > iterend = (iter->iterend); > transfersize = ((bufferdata)->buffersize); > if (transfersize > iterend - iterindex) { > transfersize = iterend - iterindex; > } > > > if (reuse_reduce_loops) { > npy_intp full_transfersize; > > reduce_outerstrides = ( (&(bufferdata)->bd_flexdata + 2*(nop))); > reduce_outerptrs = ((char **) (&(bufferdata)->bd_flexdata + 3*(nop))); > reduce_outerdim = ((bufferdata)->reduce_outerdim); > reduce_outeraxisdata = ((NpyIter_AxisData *) (((char *)(axisdata)) + (reduce_outerdim)*sizeof_axisdata)); > reduce_innersize = ((bufferdata)->size); > ((bufferdata)->reduce_pos) = 0; > > > > > > ((bufferdata)->reduce_outersize) = (((reduce_outeraxisdata)->shape)- > ((reduce_outeraxisdata)->index)); > full_transfersize = ((bufferdata)->reduce_outersize)*reduce_innersize; > > if (full_transfersize > ((bufferdata)->buffersize)) { > ((bufferdata)->reduce_outersize) = transfersize/reduce_innersize; > transfersize = ((bufferdata)->reduce_outersize)*reduce_innersize; > } > else { > transfersize = full_transfersize; > } > ((bufferdata)->bufiterend) = iterindex + reduce_innersize; > > ; > > > > > ; > > } > > > > > > > else if (itflags&0x1000) { > ; > transfersize = npyiter_checkreducesize(iter, transfersize, > &reduce_innersize, > &reduce_outerdim); > ; > > > > > > reduce_outerstrides = ( (&(bufferdata)->bd_flexdata + 2*(nop))); > reduce_outerptrs = ((char **) (&(bufferdata)->bd_flexdata + 3*(nop))); > reduce_outeraxisdata = ((NpyIter_AxisData *) (((char *)(axisdata)) + (reduce_outerdim)*sizeof_axisdata)); > ((bufferdata)->size) = reduce_innersize; > ((bufferdata)->reduce_pos) = 0; > ((bufferdata)->reduce_outerdim) = reduce_outerdim; > ((bufferdata)->bufiterend) = iterindex + reduce_innersize; > if (reduce_innersize == 0) { > ((bufferdata)->reduce_outersize) = 0; > return; > } > else { > ((bufferdata)->reduce_outersize) = transfersize/reduce_innersize; > } > } > else { > ((bufferdata)->size) = transfersize; > ((bufferdata)->bufiterend) = iterindex + transfersize; > } > > > singlestridesize = ((axisdata)->shape)-((axisdata)->index); > if (singlestridesize > iterend - iterindex) { > singlestridesize = iterend - iterindex; > } > if (singlestridesize >= transfersize) { > is_onestride = 1; > } > > for (iop = 0; iop < nop; ++iop) { > > > > > stransfer = ((PyArray_StridedTransferFn **) (&(bufferdata)->bd_flexdata + 4*(nop)))[iop]; > transferdata = ((void **) (&(bufferdata)->bd_flexdata + 5*(nop)))[iop]; > switch (op_itflags[iop]& > (0x08| > 0x04| > 0x20)) { > > case 0x08: > ptrs[iop] = ad_ptrs[iop]; > if (itflags&0x1000) { > reduce_outerstrides[iop] = reduce_innersize * > strides[iop]; > reduce_outerptrs[iop] = ptrs[iop]; > } > > > > > > stransfer = ((void *)0); > break; > > case 0x08|0x20: > ptrs[iop] = ad_ptrs[iop]; > reduce_outerptrs[iop] = ptrs[iop]; > reduce_outerstrides[iop] = 0; > > > > > > stransfer = ((void *)0); > break; > > case 0: > > > > > > > if (is_onestride) { > ptrs[iop] = ad_ptrs[iop]; > strides[iop] = ad_strides[iop]; > stransfer = ((void *)0); > } > > else if ((itflags&0x1000) && > (reduce_outerdim == 1) && > (transfersize/reduce_innersize <= > ((reduce_outeraxisdata)->shape) - > ((reduce_outeraxisdata)->index))) { > ptrs[iop] = ad_ptrs[iop]; > reduce_outerptrs[iop] = ptrs[iop]; > strides[iop] = ad_strides[iop]; > reduce_outerstrides[iop] = > ( &(reduce_outeraxisdata)->ad_flexdata + 0)[iop]; > stransfer = ((void *)0); > } > else { > > ptrs[iop] = buffers[iop]; > strides[iop] = dtypes[iop]->elsize; > if (itflags&0x1000) { > reduce_outerstrides[iop] = reduce_innersize * > strides[iop]; > reduce_outerptrs[iop] = ptrs[iop]; > } > } > break; > > case 0x20: > if (ad_strides[iop] == 0) { > strides[iop] = 0; > > if (is_onestride) { > ; > ptrs[iop] = ad_ptrs[iop]; > reduce_outerstrides[iop] = 0; > stransfer = ((void *)0); > } > > else if ((reduce_outerdim > 0) && > (transfersize/reduce_innersize <= > ((reduce_outeraxisdata)->shape) - > ((reduce_outeraxisdata)->index))) { > ; > > ptrs[iop] = ad_ptrs[iop]; > > reduce_outerstrides[iop] = > ( &(reduce_outeraxisdata)->ad_flexdata + 0)[iop]; > stransfer = ((void *)0); > } > > else { > ; > ptrs[iop] = buffers[iop]; > > if (( &(reduce_outeraxisdata)->ad_flexdata + 0)[iop] == 0) { > reduce_outerstrides[iop] = 0; > } > > else { > reduce_outerstrides[iop] = dtypes[iop]->elsize; > } > } > > } > else if (is_onestride) { > ; > ptrs[iop] = ad_ptrs[iop]; > strides[iop] = ad_strides[iop]; > reduce_outerstrides[iop] = 0; > stransfer = ((void *)0); > } > else { > > if ((reduce_outerdim > 0) && > (transfersize/reduce_innersize <= > ((reduce_outeraxisdata)->shape) - > ((reduce_outeraxisdata)->index))) { > ptrs[iop] = ad_ptrs[iop]; > strides[iop] = ad_strides[iop]; > > reduce_outerstrides[iop] = > ( &(reduce_outeraxisdata)->ad_flexdata + 0)[iop]; > stransfer = ((void *)0); > } > > else { > ptrs[iop] = buffers[iop]; > strides[iop] = dtypes[iop]->elsize; > > if (( &(reduce_outeraxisdata)->ad_flexdata + 0)[iop] == 0) { > > reduce_outerstrides[iop] = 0; > } > else { > > reduce_outerstrides[iop] = reduce_innersize * > dtypes[iop]->elsize; > } > } > } > reduce_outerptrs[iop] = ptrs[iop]; > break; > default: > > any_buffered = 1; > > if (!(op_itflags[iop]&0x20)) { > ptrs[iop] = buffers[iop]; > strides[iop] = dtypes[iop]->elsize; > if (itflags&0x1000) { > reduce_outerstrides[iop] = reduce_innersize * > strides[iop]; > reduce_outerptrs[iop] = ptrs[iop]; > } > } > > else { > ptrs[iop] = buffers[iop]; > if (ad_strides[iop] == 0) { > ; > strides[iop] = 0; > > if (( &(reduce_outeraxisdata)->ad_flexdata + 0)[iop] == 0) { > ; > reduce_outerstrides[iop] = 0; > } > > else { > ; > reduce_outerstrides[iop] = dtypes[iop]->elsize; > } > } > else { > ; > strides[iop] = dtypes[iop]->elsize; > > if (( &(reduce_outeraxisdata)->ad_flexdata + 0)[iop] == 0) { > ; > > reduce_outerstrides[iop] = 0; > } > else { > ; > > reduce_outerstrides[iop] = reduce_innersize * > dtypes[iop]->elsize; > } > } > reduce_outerptrs[iop] = ptrs[iop]; > } > break; > } > > if (stransfer != ((void *)0)) { > npy_intp src_itemsize = (((PyArrayObject *)(operands[iop]))->descr)->elsize; > npy_intp op_transfersize; > > npy_intp dst_stride, *src_strides, *src_coords, *src_shape; > int ndim_transfer; > > npy_bool skip_transfer = 0; > > > any_buffered = 1; > > > > > > > if (op_itflags[iop]&0x20) { > if (ad_strides[iop] == 0) { > strides[iop] = 0; > if (reduce_outerstrides[iop] == 0) { > op_transfersize = 1; > dst_stride = 0; > src_strides = &dst_stride; > src_coords = &((reduce_outeraxisdata)->index); > src_shape = &((reduce_outeraxisdata)->shape); > ndim_transfer = 1; ># 5860 "numpy/core/src/multiarray/nditer.c.src" > if (prev_dataptrs && > prev_dataptrs[iop] == ad_ptrs[iop]) { > ; > > > > skip_transfer = 1; > } > } > else { > op_transfersize = ((bufferdata)->reduce_outersize); > dst_stride = reduce_outerstrides[iop]; > src_strides = &( &(reduce_outeraxisdata)->ad_flexdata + 0)[iop]; > src_coords = &((reduce_outeraxisdata)->index); > src_shape = &((reduce_outeraxisdata)->shape); > ndim_transfer = ndim - reduce_outerdim; > } > } > else { > if (reduce_outerstrides[iop] == 0) { > op_transfersize = ((bufferdata)->size); > dst_stride = strides[iop]; > src_strides = &ad_strides[iop]; > src_coords = &((axisdata)->index); > src_shape = &((axisdata)->shape); > ndim_transfer = reduce_outerdim ? reduce_outerdim : 1; > } > else { > op_transfersize = transfersize; > dst_stride = strides[iop]; > src_strides = &ad_strides[iop]; > src_coords = &((axisdata)->index); > src_shape = &((axisdata)->shape); > ndim_transfer = ndim; > } > } > } > else { > op_transfersize = transfersize; > dst_stride = strides[iop]; > src_strides = &ad_strides[iop]; > src_coords = &((axisdata)->index); > src_shape = &((axisdata)->shape); > ndim_transfer = ndim; > } > > > > > > > if (reuse_reduce_loops && prev_dataptrs[iop] == ad_ptrs[iop]) { > ; > > > > skip_transfer = 1; > } > > > if ((((dtypes[iop])->flags & (0x08)) == (0x08))) { > ; > > memset(ptrs[iop], 0, dtypes[iop]->elsize*op_transfersize); > > skip_transfer = 0; > } > > if (!skip_transfer) { > ; > > > > PyArray_TransferNDimToStrided(ndim_transfer, > ptrs[iop], dst_stride, > ad_ptrs[iop], src_strides, axisdata_incr, > src_coords, axisdata_incr, > src_shape, axisdata_incr, > op_transfersize, src_itemsize, > stransfer, > transferdata); > } > } > else if (ptrs[iop] == buffers[iop]) { > > if ((((dtypes[iop])->flags & (0x08)) == (0x08))) { > ; > > > memset(ptrs[iop], 0, dtypes[iop]->elsize*transfersize); > } > } > > } > > > > > > > > if (!any_buffered && (itflags&0x0100) && > !(itflags&0x1000)) { > if (singlestridesize > transfersize) { > ; > > > ((bufferdata)->size) = singlestridesize; > ((bufferdata)->bufiterend) = iterindex + singlestridesize; > } > } > > ; > > ; > >} ># 5995 "numpy/core/src/multiarray/nditer.c.src" >static npy_intp >npyiter_checkreducesize(NpyIter *iter, npy_intp count, > npy_intp *reduce_innersize, > npy_intp *reduce_outerdim) >{ > npy_uint32 itflags = ((iter)->itflags); > int idim, ndim = ((iter)->ndim); > int iop, nop = ((iter)->nop); > > NpyIter_AxisData *axisdata; > npy_intp sizeof_axisdata; > npy_intp coord, shape, *strides; > npy_intp reducespace = 1, factor; > npy_bool nonzerocoord = 0; > > char *op_itflags = ( &(iter)->iter_flexdata + ((((((0) + ((32 + 0x7)&(-0x8))) + ((8)*(nop))) + ((8)*(nop+1))) + ((8)*(nop+1))) + ((8)*(nop)))); > char stride0op[32]; > > > *reduce_outerdim = 0; > > > if (ndim == 1) { > *reduce_innersize = count; > return count; > } > > sizeof_axisdata = (( 1 + 1 + 2*((nop)+1) )*8 ); > axisdata = ((NpyIter_AxisData *)( &(iter)->iter_flexdata + ((((((((0) + ((32 + 0x7)&(-0x8))) + ((8)*(nop))) + ((8)*(nop+1))) + ((8)*(nop+1))) + ((8)*(nop))) + (((nop + 0x7)&(-0x8)))) + ((itflags&0x0080) ? ((8)*(6 + 9*nop)) : 0)))); > > > strides = ( &(axisdata)->ad_flexdata + 0); > for (iop = 0; iop < nop; ++iop) { > stride0op[iop] = (op_itflags[iop]&0x20) && > (strides[iop] == 0); > ; > > } > shape = ((axisdata)->shape); > coord = ((axisdata)->index); > reducespace += (shape-coord-1); > factor = shape; > axisdata = ((NpyIter_AxisData *) (((char *)(axisdata)) + (1)*sizeof_axisdata)); > > > for (idim = 1; idim < ndim && reducespace < count; > ++idim, axisdata = ((NpyIter_AxisData *) (((char *)(axisdata)) + (1)*sizeof_axisdata))) { > ; > > > strides = ( &(axisdata)->ad_flexdata + 0); > for (iop = 0; iop < nop; ++iop) { > > > > > > > > if((stride0op[iop] && (strides[iop] != 0)) || > (!stride0op[iop] && > (strides[iop] == 0) && > (op_itflags[iop]&0x20))) { > ; > > > > > > > if (count <= reducespace) { > *reduce_innersize = count; > return count; > } > else if (nonzerocoord) { > if (reducespace < count) { > count = reducespace; > } > *reduce_innersize = count; > return count; > } > else { > *reduce_innersize = reducespace; > break; > } > } > } > > if (iop != nop) { > ; > > break; > } > > shape = ((axisdata)->shape); > coord = ((axisdata)->index); > if (coord != 0) { > nonzerocoord = 1; > } > reducespace += (shape-coord-1) * factor; > factor *= shape; > } > > > > > > > if (nonzerocoord || count < reducespace || idim == ndim) { > if (reducespace < count) { > count = reducespace; > } > *reduce_innersize = count; > > ((iter)->itflags) &= ~0x2000; > return count; > } > > > ((iter)->itflags) |= 0x2000; > > *reduce_innersize = reducespace; > count /= reducespace; > > ; > > > > > > > > *reduce_outerdim = idim; > reducespace = 1; > factor = 1; > > strides = ( &(axisdata)->ad_flexdata + 0); > for (iop = 0; iop < nop; ++iop) { > stride0op[iop] = (op_itflags[iop]&0x20) && > (strides[iop] == 0); > ; > > } > shape = ((axisdata)->shape); > coord = ((axisdata)->index); > reducespace += (shape-coord-1) * factor; > factor *= shape; > axisdata = ((NpyIter_AxisData *) (((char *)(axisdata)) + (1)*sizeof_axisdata)); > ++idim; > > for (; idim < ndim && reducespace < count; > ++idim, axisdata = ((NpyIter_AxisData *) (((char *)(axisdata)) + (1)*sizeof_axisdata))) { > ; > > strides = ( &(axisdata)->ad_flexdata + 0); > for (iop = 0; iop < nop; ++iop) { > > > > > > > > if((stride0op[iop] && (strides[iop] != 0)) || > (!stride0op[iop] && > (strides[iop] == 0) && > (op_itflags[iop]&0x20))) { > ; > > > > > if (count <= reducespace) { > return count * (*reduce_innersize); > } > else { > return reducespace * (*reduce_innersize); > } > } > } > > shape = ((axisdata)->shape); > coord = ((axisdata)->index); > if (coord != 0) { > nonzerocoord = 1; > } > reducespace += (shape-coord-1) * factor; > factor *= shape; > } > > if (reducespace < count) { > count = reducespace; > } > return count * (*reduce_innersize); >} > > > > > > >static void >NpyIter_DebugPrint(NpyIter *iter) >{ > npy_uint32 itflags = ((iter)->itflags); > int idim, ndim = ((iter)->ndim); > int iop, nop = ((iter)->nop); > > NpyIter_AxisData *axisdata; > npy_intp sizeof_axisdata; > > PyGILState_STATE gilstate = PyGILState_Ensure(); > > printf("\n------ BEGIN ITERATOR DUMP ------\n"); > printf("| Iterator Address: %p\n", (void *)iter); > printf("| ItFlags: "); > if (itflags&0x0001) > printf("IDENTPERM "); > if (itflags&0x0002) > printf("NEGPERM "); > if (itflags&0x0004) > printf("HASINDEX "); > if (itflags&0x0008) > printf("HASMULTIINDEX "); > if (itflags&0x0010) > printf("FORCEDORDER "); > if (itflags&0x0020) > printf("EXLOOP "); > if (itflags&0x0040) > printf("RANGE "); > if (itflags&0x0080) > printf("BUFFER "); > if (itflags&0x0100) > printf("GROWINNER "); > if (itflags&0x0200) > printf("ONEITERATION "); > if (itflags&0x0400) > printf("DELAYBUF "); > if (itflags&0x0800) > printf("NEEDSAPI "); > if (itflags&0x1000) > printf("REDUCE "); > if (itflags&0x2000) > printf("REUSE_REDUCE_LOOPS "); > printf("\n"); > printf("| NDim: %d\n", (int)ndim); > printf("| NOp: %d\n", (int)nop); > printf("| IterSize: %d\n", (int)(iter->itersize)); > printf("| IterStart: %d\n", (int)(iter->iterstart)); > printf("| IterEnd: %d\n", (int)(iter->iterend)); > printf("| IterIndex: %d\n", (int)(iter->iterindex)); > printf("| Iterator SizeOf: %d\n", > (int)( sizeof(struct NpyIter_InternalOnly) + ((((((((0) + ((32 + 0x7)&(-0x8))) + ((8)*(nop))) + ((8)*(nop+1))) + ((8)*(nop+1))) + ((8)*(nop))) + (((nop + 0x7)&(-0x8)))) + ((itflags&0x0080) ? ((8)*(6 + 9*nop)) : 0)) + (( 1 + 1 + 2*((nop)+1) )*8 )*(ndim))); > printf("| BufferData SizeOf: %d\n", > (int)((itflags&0x0080) ? ((8)*(6 + 9*nop)) : 0)); > printf("| AxisData SizeOf: %d\n", > (int)(( 1 + 1 + 2*((nop)+1) )*8 )); > printf("|\n"); > > printf("| Perm: "); > for (idim = 0; idim < ndim; ++idim) { > printf("%d ", (int)((npy_int8 *)( &(iter)->iter_flexdata + (0)))[idim]); > } > printf("\n"); > printf("| DTypes: "); > for (iop = 0; iop < nop; ++iop) { > printf("%p ", (void *)((PyArray_Descr **)( &(iter)->iter_flexdata + ((0) + ((32 + 0x7)&(-0x8)))))[iop]); > } > printf("\n"); > printf("| DTypes: "); > for (iop = 0; iop < nop; ++iop) { > if (((PyArray_Descr **)( &(iter)->iter_flexdata + ((0) + ((32 + 0x7)&(-0x8)))))[iop] != ((void *)0)) > PyObject_Print((PyObject*)((PyArray_Descr **)( &(iter)->iter_flexdata + ((0) + ((32 + 0x7)&(-0x8)))))[iop], stdout, 0); > else > printf("(nil) "); > printf(" "); > } > printf("\n"); > printf("| InitDataPtrs: "); > for (iop = 0; iop < nop; ++iop) { > printf("%p ", (void *)((char **)( &(iter)->iter_flexdata + (((0) + ((32 + 0x7)&(-0x8))) + ((8)*(nop)))))[iop]); > } > printf("\n"); > printf("| BaseOffsets: "); > for (iop = 0; iop < nop; ++iop) { > printf("%i ", (int)((npy_intp *)( &(iter)->iter_flexdata + ((((0) + ((32 + 0x7)&(-0x8))) + ((8)*(nop))) + ((8)*(nop+1)))))[iop]); > } > printf("\n"); > if (itflags&0x0004) { > printf("| InitIndex: %d\n", > (int)(npy_intp)((char **)( &(iter)->iter_flexdata + (((0) + ((32 + 0x7)&(-0x8))) + ((8)*(nop)))))[nop]); > } > printf("| Operands: "); > for (iop = 0; iop < nop; ++iop) { > printf("%p ", (void *)((PyArrayObject **)( &(iter)->iter_flexdata + (((((0) + ((32 + 0x7)&(-0x8))) + ((8)*(nop))) + ((8)*(nop+1))) + ((8)*(nop+1)))))[iop]); > } > printf("\n"); > printf("| Operand DTypes: "); > for (iop = 0; iop < nop; ++iop) { > PyArray_Descr *dtype; > if (((PyArrayObject **)( &(iter)->iter_flexdata + (((((0) + ((32 + 0x7)&(-0x8))) + ((8)*(nop))) + ((8)*(nop+1))) + ((8)*(nop+1)))))[iop] != ((void *)0)) { > dtype = (((PyArrayObject *)(((PyArrayObject **)( &(iter)->iter_flexdata + (((((0) + ((32 + 0x7)&(-0x8))) + ((8)*(nop))) + ((8)*(nop+1))) + ((8)*(nop+1)))))[iop]))->descr); > if (dtype != ((void *)0)) > PyObject_Print((PyObject *)dtype, stdout, 0); > else > printf("(nil) "); > } > else { > printf("(op nil) "); > } > printf(" "); > } > printf("\n"); > printf("| OpItFlags:\n"); > for (iop = 0; iop < nop; ++iop) { > printf("| Flags[%d]: ", (int)iop); > if ((( &(iter)->iter_flexdata + ((((((0) + ((32 + 0x7)&(-0x8))) + ((8)*(nop))) + ((8)*(nop+1))) + ((8)*(nop+1))) + ((8)*(nop))))[iop])&0x02) > printf("READ "); > if ((( &(iter)->iter_flexdata + ((((((0) + ((32 + 0x7)&(-0x8))) + ((8)*(nop))) + ((8)*(nop+1))) + ((8)*(nop+1))) + ((8)*(nop))))[iop])&0x01) > printf("WRITE "); > if ((( &(iter)->iter_flexdata + ((((((0) + ((32 + 0x7)&(-0x8))) + ((8)*(nop))) + ((8)*(nop+1))) + ((8)*(nop+1))) + ((8)*(nop))))[iop])&0x04) > printf("CAST "); > if ((( &(iter)->iter_flexdata + ((((((0) + ((32 + 0x7)&(-0x8))) + ((8)*(nop))) + ((8)*(nop+1))) + ((8)*(nop+1))) + ((8)*(nop))))[iop])&0x08) > printf("BUFNEVER "); > if ((( &(iter)->iter_flexdata + ((((((0) + ((32 + 0x7)&(-0x8))) + ((8)*(nop))) + ((8)*(nop+1))) + ((8)*(nop+1))) + ((8)*(nop))))[iop])&0x10) > printf("ALIGNED "); > if ((( &(iter)->iter_flexdata + ((((((0) + ((32 + 0x7)&(-0x8))) + ((8)*(nop))) + ((8)*(nop+1))) + ((8)*(nop+1))) + ((8)*(nop))))[iop])&0x20) > printf("REDUCE "); > printf("\n"); > } > printf("|\n"); > > if (itflags&0x0080) { > NpyIter_BufferData *bufferdata = ((NpyIter_BufferData *)( &(iter)->iter_flexdata + (((((((0) + ((32 + 0x7)&(-0x8))) + ((8)*(nop))) + ((8)*(nop+1))) + ((8)*(nop+1))) + ((8)*(nop))) + (((nop + 0x7)&(-0x8)))))); > printf("| BufferData:\n"); > printf("| BufferSize: %d\n", (int)((bufferdata)->buffersize)); > printf("| Size: %d\n", (int)((bufferdata)->size)); > printf("| BufIterEnd: %d\n", (int)((bufferdata)->bufiterend)); > if (itflags&0x1000) { > printf("| REDUCE Pos: %d\n", > (int)((bufferdata)->reduce_pos)); > printf("| REDUCE OuterSize: %d\n", > (int)((bufferdata)->reduce_outersize)); > printf("| REDUCE OuterDim: %d\n", > (int)((bufferdata)->reduce_outerdim)); > } > printf("| Strides: "); > for (iop = 0; iop < nop; ++iop) > printf("%d ", (int)( &(bufferdata)->bd_flexdata + 0)[iop]); > printf("\n"); > > if (itflags&0x0020) { > npy_intp fixedstrides[32]; > printf("| Fixed Strides: "); > NpyIter_GetInnerFixedStrideArray(iter, fixedstrides); > for (iop = 0; iop < nop; ++iop) > printf("%d ", (int)fixedstrides[iop]); > printf("\n"); > } > printf("| Ptrs: "); > for (iop = 0; iop < nop; ++iop) > printf("%p ", (void *)((char **) (&(bufferdata)->bd_flexdata + 1*(nop)))[iop]); > printf("\n"); > if (itflags&0x1000) { > printf("| REDUCE Outer Strides: "); > for (iop = 0; iop < nop; ++iop) > printf("%d ", (int)( (&(bufferdata)->bd_flexdata + 2*(nop)))[iop]); > printf("\n"); > printf("| REDUCE Outer Ptrs: "); > for (iop = 0; iop < nop; ++iop) > printf("%p ", (void *)((char **) (&(bufferdata)->bd_flexdata + 3*(nop)))[iop]); > printf("\n"); > } > printf("| ReadTransferFn: "); > for (iop = 0; iop < nop; ++iop) > printf("%p ", (void *)((PyArray_StridedTransferFn **) (&(bufferdata)->bd_flexdata + 4*(nop)))[iop]); > printf("\n"); > printf("| ReadTransferData: "); > for (iop = 0; iop < nop; ++iop) > printf("%p ", (void *)((void **) (&(bufferdata)->bd_flexdata + 5*(nop)))[iop]); > printf("\n"); > printf("| WriteTransferFn: "); > for (iop = 0; iop < nop; ++iop) > printf("%p ", (void *)((PyArray_StridedTransferFn **) (&(bufferdata)->bd_flexdata + 6*(nop)))[iop]); > printf("\n"); > printf("| WriteTransferData: "); > for (iop = 0; iop < nop; ++iop) > printf("%p ", (void *)((void **) (&(bufferdata)->bd_flexdata + 7*(nop)))[iop]); > printf("\n"); > printf("| Buffers: "); > for (iop = 0; iop < nop; ++iop) > printf("%p ", (void *)((char **) (&(bufferdata)->bd_flexdata + 8*(nop)))[iop]); > printf("\n"); > printf("|\n"); > } > > axisdata = ((NpyIter_AxisData *)( &(iter)->iter_flexdata + ((((((((0) + ((32 + 0x7)&(-0x8))) + ((8)*(nop))) + ((8)*(nop+1))) + ((8)*(nop+1))) + ((8)*(nop))) + (((nop + 0x7)&(-0x8)))) + ((itflags&0x0080) ? ((8)*(6 + 9*nop)) : 0)))); > sizeof_axisdata = (( 1 + 1 + 2*((nop)+1) )*8 ); > for (idim = 0; idim < ndim; ++idim, axisdata = ((NpyIter_AxisData *) (((char *)(axisdata)) + (1)*sizeof_axisdata))) { > printf("| AxisData[%d]:\n", (int)idim); > printf("| Shape: %d\n", (int)((axisdata)->shape)); > printf("| Index: %d\n", (int)((axisdata)->index)); > printf("| Strides: "); > for (iop = 0; iop < nop; ++iop) { > printf("%d ", (int)( &(axisdata)->ad_flexdata + 0)[iop]); > } > printf("\n"); > if (itflags&0x0004) { > printf("| Index Stride: %d\n", (int)( &(axisdata)->ad_flexdata + 0)[nop]); > } > printf("| Ptrs: "); > for (iop = 0; iop < nop; ++iop) { > printf("%p ", (void *)((char **) &(axisdata)->ad_flexdata + 1*(nop+1))[iop]); > } > printf("\n"); > if (itflags&0x0004) { > printf("| Index Value: %d\n", > (int)((npy_intp*)((char **) &(axisdata)->ad_flexdata + 1*(nop+1)))[nop]); > } > } > > printf("------- END ITERATOR DUMP -------\n"); > > PyGILState_Release(gilstate); >} ># 39 "numpy/core/src/multiarray/multiarraymodule_onefile.c" 2 ># 1 "numpy/core/src/multiarray/nditer_pywrap.c" 1 ># 21 "numpy/core/src/multiarray/nditer_pywrap.c" >typedef struct NewNpyArrayIterObject_tag NewNpyArrayIterObject; > >struct NewNpyArrayIterObject_tag { > Py_ssize_t ob_refcnt; struct _typeobject *ob_type; > > NpyIter *iter; > > char started, finished; > > NewNpyArrayIterObject *nested_child; > > NpyIter_IterNextFunc *iternext; > NpyIter_GetMultiIndexFunc *get_multi_index; > char **dataptrs; > PyArray_Descr **dtypes; > PyArrayObject **operands; > npy_intp *innerstrides, *innerloopsizeptr; > char readflags[32]; > char writeflags[32]; >}; > >void npyiter_cache_values(NewNpyArrayIterObject *self) >{ > NpyIter *iter = self->iter; > > > self->iternext = NpyIter_GetIterNext(iter, ((void *)0)); > if (NpyIter_HasMultiIndex(iter) && !NpyIter_HasDelayedBufAlloc(iter)) { > self->get_multi_index = NpyIter_GetGetMultiIndex(iter, ((void *)0)); > } > else { > self->get_multi_index = ((void *)0); > } > > > self->dataptrs = NpyIter_GetDataPtrArray(iter); > self->dtypes = NpyIter_GetDescrArray(iter); > self->operands = NpyIter_GetOperandArray(iter); > > if (NpyIter_HasExternalLoop(iter)) { > self->innerstrides = NpyIter_GetInnerStrideArray(iter); > self->innerloopsizeptr = NpyIter_GetInnerLoopSizePtr(iter); > } > else { > self->innerstrides = ((void *)0); > self->innerloopsizeptr = ((void *)0); > } > > > NpyIter_GetReadFlags(iter, self->readflags); > NpyIter_GetWriteFlags(iter, self->writeflags); >} > >static PyObject * >npyiter_new(PyTypeObject *subtype, PyObject *args, PyObject *kwds) >{ > NewNpyArrayIterObject *self; > > self = (NewNpyArrayIterObject *)subtype->tp_alloc(subtype, 0); > if (self != ((void *)0)) { > self->iter = ((void *)0); > self->nested_child = ((void *)0); > } > > return (PyObject *)self; >} > >static int >NpyIter_GlobalFlagsConverter(PyObject *flags_in, npy_uint32 *flags) >{ > npy_uint32 tmpflags = 0; > int iflags, nflags; > > PyObject *f; > char *str = ((void *)0); > Py_ssize_t length = 0; > npy_uint32 flag; > > if (flags_in == ((void *)0) || flags_in == (&_Py_NoneStruct)) { > *flags = 0; > return 1; > } > > if (!((((((PyObject*)(flags_in))->ob_type))->tp_flags & ((1L<<26))) != 0) && !((((((PyObject*)(flags_in))->ob_type))->tp_flags & ((1L<<25))) != 0)) { > PyErr_SetString(PyExc_ValueError, > "Iterator global flags must be a list or tuple of strings"); > return 0; > } > > nflags = PySequence_Size(flags_in); > > for (iflags = 0; iflags < nflags; ++iflags) { > f = PySequence_GetItem(flags_in, iflags); > if (f == ((void *)0)) { > return 0; > } > > if (((((((PyObject*)(f))->ob_type))->tp_flags & ((1L<<28))) != 0)) { > > PyObject *f_str; > f_str = PyUnicodeUCS4_AsASCIIString(f); > if (f_str == ((void *)0)) { > do { if ( --((PyObject*)(f))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(f)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(f)))); } while (0); > return 0; > } > do { if ( --((PyObject*)(f))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(f)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(f)))); } while (0); > f = f_str; > } > > if (PyString_AsStringAndSize(f, &str, &length) == -1) { > do { if ( --((PyObject*)(f))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(f)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(f)))); } while (0); > return 0; > } > > flag = 0; > switch (str[0]) { > case 'b': > if (__extension__ ({ size_t __s1_len, __s2_len; (__builtin_constant_p (str) && __builtin_constant_p ("buffered") && (__s1_len = strlen (str), __s2_len = strlen ("buffered"), (!((size_t)(const void *)((str) + 1) - (size_t)(const void *)(str) == 1) || __s1_len >= 4) && (!((size_t)(const void *)(("buffered") + 1) - (size_t)(const void *)("buffered") == 1) || __s2_len >= 4)) ? __builtin_strcmp (str, "buffered") : (__builtin_constant_p (str) && ((size_t)(const void *)((str) + 1) - (size_t)(const void *)(str) == 1) && (__s1_len = strlen (str), __s1_len < 4) ? (__builtin_constant_p ("buffered") && ((size_t)(const void *)(("buffered") + 1) - (size_t)(const void *)("buffered") == 1) ? __builtin_strcmp (str, "buffered") : (__extension__ ({ __const unsigned char *__s2 = (__const unsigned char *) (__const char *) ("buffered"); register int __result = (((__const unsigned char *) (__const char *) (str))[0] - __s2[0]); if (__s1_len > 0 && __result == 0) { __result = (((__const unsigned char *) (__const char *) (str))[1] - __s2[1]); if (__s1_len > 1 && __result == 0) { __result = (((__const unsigned char *) (__const char *) (str))[2] - __s2[2]); if (__s1_len > 2 && __result == 0) __result = (((__const unsigned char *) (__const char *) (str))[3] - __s2[3]); } } __result; }))) : (__builtin_constant_p ("buffered") && ((size_t)(const void *)(("buffered") + 1) - (size_t)(const void *)("buffered") == 1) && (__s2_len = strlen ("buffered"), __s2_len < 4) ? (__builtin_constant_p (str) && ((size_t)(const void *)((str) + 1) - (size_t)(const void *)(str) == 1) ? __builtin_strcmp (str, "buffered") : (__extension__ ({ __const unsigned char *__s1 = (__const unsigned char *) (__const char *) (str); register int __result = __s1[0] - ((__const unsigned char *) (__const char *) ("buffered"))[0]; if (__s2_len > 0 && __result == 0) { __result = (__s1[1] - ((__const unsigned char *) (__const char *) ("buffered"))[1]); if (__s2_len > 1 && __result == 0) { __result = (__s1[2] - ((__const unsigned char *) (__const char *) ("buffered"))[2]); if (__s2_len > 2 && __result == 0) __result = (__s1[3] - ((__const unsigned char *) (__const char *) ("buffered"))[3]); } } __result; }))) : __builtin_strcmp (str, "buffered")))); }) == 0) { > flag = 0x00000200; > } > break; > case 'c': > if (length >= 6) switch (str[5]) { > case 'e': > if (__extension__ ({ size_t __s1_len, __s2_len; (__builtin_constant_p (str) && __builtin_constant_p ("c_index") && (__s1_len = strlen (str), __s2_len = strlen ("c_index"), (!((size_t)(const void *)((str) + 1) - (size_t)(const void *)(str) == 1) || __s1_len >= 4) && (!((size_t)(const void *)(("c_index") + 1) - (size_t)(const void *)("c_index") == 1) || __s2_len >= 4)) ? __builtin_strcmp (str, "c_index") : (__builtin_constant_p (str) && ((size_t)(const void *)((str) + 1) - (size_t)(const void *)(str) == 1) && (__s1_len = strlen (str), __s1_len < 4) ? (__builtin_constant_p ("c_index") && ((size_t)(const void *)(("c_index") + 1) - (size_t)(const void *)("c_index") == 1) ? __builtin_strcmp (str, "c_index") : (__extension__ ({ __const unsigned char *__s2 = (__const unsigned char *) (__const char *) ("c_index"); register int __result = (((__const unsigned char *) (__const char *) (str))[0] - __s2[0]); if (__s1_len > 0 && __result == 0) { __result = (((__const unsigned char *) (__const char *) (str))[1] - __s2[1]); if (__s1_len > 1 && __result == 0) { __result = (((__const unsigned char *) (__const char *) (str))[2] - __s2[2]); if (__s1_len > 2 && __result == 0) __result = (((__const unsigned char *) (__const char *) (str))[3] - __s2[3]); } } __result; }))) : (__builtin_constant_p ("c_index") && ((size_t)(const void *)(("c_index") + 1) - (size_t)(const void *)("c_index") == 1) && (__s2_len = strlen ("c_index"), __s2_len < 4) ? (__builtin_constant_p (str) && ((size_t)(const void *)((str) + 1) - (size_t)(const void *)(str) == 1) ? __builtin_strcmp (str, "c_index") : (__extension__ ({ __const unsigned char *__s1 = (__const unsigned char *) (__const char *) (str); register int __result = __s1[0] - ((__const unsigned char *) (__const char *) ("c_index"))[0]; if (__s2_len > 0 && __result == 0) { __result = (__s1[1] - ((__const unsigned char *) (__const char *) ("c_index"))[1]); if (__s2_len > 1 && __result == 0) { __result = (__s1[2] - ((__const unsigned char *) (__const char *) ("c_index"))[2]); if (__s2_len > 2 && __result == 0) __result = (__s1[3] - ((__const unsigned char *) (__const char *) ("c_index"))[3]); } } __result; }))) : __builtin_strcmp (str, "c_index")))); }) == 0) { > flag = 0x00000001; > } > break; > case 'n': > if (__extension__ ({ size_t __s1_len, __s2_len; (__builtin_constant_p (str) && __builtin_constant_p ("common_dtype") && (__s1_len = strlen (str), __s2_len = strlen ("common_dtype"), (!((size_t)(const void *)((str) + 1) - (size_t)(const void *)(str) == 1) || __s1_len >= 4) && (!((size_t)(const void *)(("common_dtype") + 1) - (size_t)(const void *)("common_dtype") == 1) || __s2_len >= 4)) ? __builtin_strcmp (str, "common_dtype") : (__builtin_constant_p (str) && ((size_t)(const void *)((str) + 1) - (size_t)(const void *)(str) == 1) && (__s1_len = strlen (str), __s1_len < 4) ? (__builtin_constant_p ("common_dtype") && ((size_t)(const void *)(("common_dtype") + 1) - (size_t)(const void *)("common_dtype") == 1) ? __builtin_strcmp (str, "common_dtype") : (__extension__ ({ __const unsigned char *__s2 = (__const unsigned char *) (__const char *) ("common_dtype"); register int __result = (((__const unsigned char *) (__const char *) (str))[0] - __s2[0]); if (__s1_len > 0 && __result == 0) { __result = (((__const unsigned char *) (__const char *) (str))[1] - __s2[1]); if (__s1_len > 1 && __result == 0) { __result = (((__const unsigned char *) (__const char *) (str))[2] - __s2[2]); if (__s1_len > 2 && __result == 0) __result = (((__const unsigned char *) (__const char *) (str))[3] - __s2[3]); } } __result; }))) : (__builtin_constant_p ("common_dtype") && ((size_t)(const void *)(("common_dtype") + 1) - (size_t)(const void *)("common_dtype") == 1) && (__s2_len = strlen ("common_dtype"), __s2_len < 4) ? (__builtin_constant_p (str) && ((size_t)(const void *)((str) + 1) - (size_t)(const void *)(str) == 1) ? __builtin_strcmp (str, "common_dtype") : (__extension__ ({ __const unsigned char *__s1 = (__const unsigned char *) (__const char *) (str); register int __result = __s1[0] - ((__const unsigned char *) (__const char *) ("common_dtype"))[0]; if (__s2_len > 0 && __result == 0) { __result = (__s1[1] - ((__const unsigned char *) (__const char *) ("common_dtype"))[1]); if (__s2_len > 1 && __result == 0) { __result = (__s1[2] - ((__const unsigned char *) (__const char *) ("common_dtype"))[2]); if (__s2_len > 2 && __result == 0) __result = (__s1[3] - ((__const unsigned char *) (__const char *) ("common_dtype"))[3]); } } __result; }))) : __builtin_strcmp (str, "common_dtype")))); }) == 0) { > flag = 0x00000010; > } > break; > } > break; > case 'd': > if (__extension__ ({ size_t __s1_len, __s2_len; (__builtin_constant_p (str) && __builtin_constant_p ("delay_bufalloc") && (__s1_len = strlen (str), __s2_len = strlen ("delay_bufalloc"), (!((size_t)(const void *)((str) + 1) - (size_t)(const void *)(str) == 1) || __s1_len >= 4) && (!((size_t)(const void *)(("delay_bufalloc") + 1) - (size_t)(const void *)("delay_bufalloc") == 1) || __s2_len >= 4)) ? __builtin_strcmp (str, "delay_bufalloc") : (__builtin_constant_p (str) && ((size_t)(const void *)((str) + 1) - (size_t)(const void *)(str) == 1) && (__s1_len = strlen (str), __s1_len < 4) ? (__builtin_constant_p ("delay_bufalloc") && ((size_t)(const void *)(("delay_bufalloc") + 1) - (size_t)(const void *)("delay_bufalloc") == 1) ? __builtin_strcmp (str, "delay_bufalloc") : (__extension__ ({ __const unsigned char *__s2 = (__const unsigned char *) (__const char *) ("delay_bufalloc"); register int __result = (((__const unsigned char *) (__const char *) (str))[0] - __s2[0]); if (__s1_len > 0 && __result == 0) { __result = (((__const unsigned char *) (__const char *) (str))[1] - __s2[1]); if (__s1_len > 1 && __result == 0) { __result = (((__const unsigned char *) (__const char *) (str))[2] - __s2[2]); if (__s1_len > 2 && __result == 0) __result = (((__const unsigned char *) (__const char *) (str))[3] - __s2[3]); } } __result; }))) : (__builtin_constant_p ("delay_bufalloc") && ((size_t)(const void *)(("delay_bufalloc") + 1) - (size_t)(const void *)("delay_bufalloc") == 1) && (__s2_len = strlen ("delay_bufalloc"), __s2_len < 4) ? (__builtin_constant_p (str) && ((size_t)(const void *)((str) + 1) - (size_t)(const void *)(str) == 1) ? __builtin_strcmp (str, "delay_bufalloc") : (__extension__ ({ __const unsigned char *__s1 = (__const unsigned char *) (__const char *) (str); register int __result = __s1[0] - ((__const unsigned char *) (__const char *) ("delay_bufalloc"))[0]; if (__s2_len > 0 && __result == 0) { __result = (__s1[1] - ((__const unsigned char *) (__const char *) ("delay_bufalloc"))[1]); if (__s2_len > 1 && __result == 0) { __result = (__s1[2] - ((__const unsigned char *) (__const char *) ("delay_bufalloc"))[2]); if (__s2_len > 2 && __result == 0) __result = (__s1[3] - ((__const unsigned char *) (__const char *) ("delay_bufalloc"))[3]); } } __result; }))) : __builtin_strcmp (str, "delay_bufalloc")))); }) == 0) { > flag = 0x00000800; > } > break; > case 'e': > if (__extension__ ({ size_t __s1_len, __s2_len; (__builtin_constant_p (str) && __builtin_constant_p ("external_loop") && (__s1_len = strlen (str), __s2_len = strlen ("external_loop"), (!((size_t)(const void *)((str) + 1) - (size_t)(const void *)(str) == 1) || __s1_len >= 4) && (!((size_t)(const void *)(("external_loop") + 1) - (size_t)(const void *)("external_loop") == 1) || __s2_len >= 4)) ? __builtin_strcmp (str, "external_loop") : (__builtin_constant_p (str) && ((size_t)(const void *)((str) + 1) - (size_t)(const void *)(str) == 1) && (__s1_len = strlen (str), __s1_len < 4) ? (__builtin_constant_p ("external_loop") && ((size_t)(const void *)(("external_loop") + 1) - (size_t)(const void *)("external_loop") == 1) ? __builtin_strcmp (str, "external_loop") : (__extension__ ({ __const unsigned char *__s2 = (__const unsigned char *) (__const char *) ("external_loop"); register int __result = (((__const unsigned char *) (__const char *) (str))[0] - __s2[0]); if (__s1_len > 0 && __result == 0) { __result = (((__const unsigned char *) (__const char *) (str))[1] - __s2[1]); if (__s1_len > 1 && __result == 0) { __result = (((__const unsigned char *) (__const char *) (str))[2] - __s2[2]); if (__s1_len > 2 && __result == 0) __result = (((__const unsigned char *) (__const char *) (str))[3] - __s2[3]); } } __result; }))) : (__builtin_constant_p ("external_loop") && ((size_t)(const void *)(("external_loop") + 1) - (size_t)(const void *)("external_loop") == 1) && (__s2_len = strlen ("external_loop"), __s2_len < 4) ? (__builtin_constant_p (str) && ((size_t)(const void *)((str) + 1) - (size_t)(const void *)(str) == 1) ? __builtin_strcmp (str, "external_loop") : (__extension__ ({ __const unsigned char *__s1 = (__const unsigned char *) (__const char *) (str); register int __result = __s1[0] - ((__const unsigned char *) (__const char *) ("external_loop"))[0]; if (__s2_len > 0 && __result == 0) { __result = (__s1[1] - ((__const unsigned char *) (__const char *) ("external_loop"))[1]); if (__s2_len > 1 && __result == 0) { __result = (__s1[2] - ((__const unsigned char *) (__const char *) ("external_loop"))[2]); if (__s2_len > 2 && __result == 0) __result = (__s1[3] - ((__const unsigned char *) (__const char *) ("external_loop"))[3]); } } __result; }))) : __builtin_strcmp (str, "external_loop")))); }) == 0) { > flag = 0x00000008; > } > break; > case 'f': > if (__extension__ ({ size_t __s1_len, __s2_len; (__builtin_constant_p (str) && __builtin_constant_p ("f_index") && (__s1_len = strlen (str), __s2_len = strlen ("f_index"), (!((size_t)(const void *)((str) + 1) - (size_t)(const void *)(str) == 1) || __s1_len >= 4) && (!((size_t)(const void *)(("f_index") + 1) - (size_t)(const void *)("f_index") == 1) || __s2_len >= 4)) ? __builtin_strcmp (str, "f_index") : (__builtin_constant_p (str) && ((size_t)(const void *)((str) + 1) - (size_t)(const void *)(str) == 1) && (__s1_len = strlen (str), __s1_len < 4) ? (__builtin_constant_p ("f_index") && ((size_t)(const void *)(("f_index") + 1) - (size_t)(const void *)("f_index") == 1) ? __builtin_strcmp (str, "f_index") : (__extension__ ({ __const unsigned char *__s2 = (__const unsigned char *) (__const char *) ("f_index"); register int __result = (((__const unsigned char *) (__const char *) (str))[0] - __s2[0]); if (__s1_len > 0 && __result == 0) { __result = (((__const unsigned char *) (__const char *) (str))[1] - __s2[1]); if (__s1_len > 1 && __result == 0) { __result = (((__const unsigned char *) (__const char *) (str))[2] - __s2[2]); if (__s1_len > 2 && __result == 0) __result = (((__const unsigned char *) (__const char *) (str))[3] - __s2[3]); } } __result; }))) : (__builtin_constant_p ("f_index") && ((size_t)(const void *)(("f_index") + 1) - (size_t)(const void *)("f_index") == 1) && (__s2_len = strlen ("f_index"), __s2_len < 4) ? (__builtin_constant_p (str) && ((size_t)(const void *)((str) + 1) - (size_t)(const void *)(str) == 1) ? __builtin_strcmp (str, "f_index") : (__extension__ ({ __const unsigned char *__s1 = (__const unsigned char *) (__const char *) (str); register int __result = __s1[0] - ((__const unsigned char *) (__const char *) ("f_index"))[0]; if (__s2_len > 0 && __result == 0) { __result = (__s1[1] - ((__const unsigned char *) (__const char *) ("f_index"))[1]); if (__s2_len > 1 && __result == 0) { __result = (__s1[2] - ((__const unsigned char *) (__const char *) ("f_index"))[2]); if (__s2_len > 2 && __result == 0) __result = (__s1[3] - ((__const unsigned char *) (__const char *) ("f_index"))[3]); } } __result; }))) : __builtin_strcmp (str, "f_index")))); }) == 0) { > flag = 0x00000002; > } > break; > case 'g': > if (__extension__ ({ size_t __s1_len, __s2_len; (__builtin_constant_p (str) && __builtin_constant_p ("growinner") && (__s1_len = strlen (str), __s2_len = strlen ("growinner"), (!((size_t)(const void *)((str) + 1) - (size_t)(const void *)(str) == 1) || __s1_len >= 4) && (!((size_t)(const void *)(("growinner") + 1) - (size_t)(const void *)("growinner") == 1) || __s2_len >= 4)) ? __builtin_strcmp (str, "growinner") : (__builtin_constant_p (str) && ((size_t)(const void *)((str) + 1) - (size_t)(const void *)(str) == 1) && (__s1_len = strlen (str), __s1_len < 4) ? (__builtin_constant_p ("growinner") && ((size_t)(const void *)(("growinner") + 1) - (size_t)(const void *)("growinner") == 1) ? __builtin_strcmp (str, "growinner") : (__extension__ ({ __const unsigned char *__s2 = (__const unsigned char *) (__const char *) ("growinner"); register int __result = (((__const unsigned char *) (__const char *) (str))[0] - __s2[0]); if (__s1_len > 0 && __result == 0) { __result = (((__const unsigned char *) (__const char *) (str))[1] - __s2[1]); if (__s1_len > 1 && __result == 0) { __result = (((__const unsigned char *) (__const char *) (str))[2] - __s2[2]); if (__s1_len > 2 && __result == 0) __result = (((__const unsigned char *) (__const char *) (str))[3] - __s2[3]); } } __result; }))) : (__builtin_constant_p ("growinner") && ((size_t)(const void *)(("growinner") + 1) - (size_t)(const void *)("growinner") == 1) && (__s2_len = strlen ("growinner"), __s2_len < 4) ? (__builtin_constant_p (str) && ((size_t)(const void *)((str) + 1) - (size_t)(const void *)(str) == 1) ? __builtin_strcmp (str, "growinner") : (__extension__ ({ __const unsigned char *__s1 = (__const unsigned char *) (__const char *) (str); register int __result = __s1[0] - ((__const unsigned char *) (__const char *) ("growinner"))[0]; if (__s2_len > 0 && __result == 0) { __result = (__s1[1] - ((__const unsigned char *) (__const char *) ("growinner"))[1]); if (__s2_len > 1 && __result == 0) { __result = (__s1[2] - ((__const unsigned char *) (__const char *) ("growinner"))[2]); if (__s2_len > 2 && __result == 0) __result = (__s1[3] - ((__const unsigned char *) (__const char *) ("growinner"))[3]); } } __result; }))) : __builtin_strcmp (str, "growinner")))); }) == 0) { > flag = 0x00000400; > } > break; > case 'm': > if (__extension__ ({ size_t __s1_len, __s2_len; (__builtin_constant_p (str) && __builtin_constant_p ("multi_index") && (__s1_len = strlen (str), __s2_len = strlen ("multi_index"), (!((size_t)(const void *)((str) + 1) - (size_t)(const void *)(str) == 1) || __s1_len >= 4) && (!((size_t)(const void *)(("multi_index") + 1) - (size_t)(const void *)("multi_index") == 1) || __s2_len >= 4)) ? __builtin_strcmp (str, "multi_index") : (__builtin_constant_p (str) && ((size_t)(const void *)((str) + 1) - (size_t)(const void *)(str) == 1) && (__s1_len = strlen (str), __s1_len < 4) ? (__builtin_constant_p ("multi_index") && ((size_t)(const void *)(("multi_index") + 1) - (size_t)(const void *)("multi_index") == 1) ? __builtin_strcmp (str, "multi_index") : (__extension__ ({ __const unsigned char *__s2 = (__const unsigned char *) (__const char *) ("multi_index"); register int __result = (((__const unsigned char *) (__const char *) (str))[0] - __s2[0]); if (__s1_len > 0 && __result == 0) { __result = (((__const unsigned char *) (__const char *) (str))[1] - __s2[1]); if (__s1_len > 1 && __result == 0) { __result = (((__const unsigned char *) (__const char *) (str))[2] - __s2[2]); if (__s1_len > 2 && __result == 0) __result = (((__const unsigned char *) (__const char *) (str))[3] - __s2[3]); } } __result; }))) : (__builtin_constant_p ("multi_index") && ((size_t)(const void *)(("multi_index") + 1) - (size_t)(const void *)("multi_index") == 1) && (__s2_len = strlen ("multi_index"), __s2_len < 4) ? (__builtin_constant_p (str) && ((size_t)(const void *)((str) + 1) - (size_t)(const void *)(str) == 1) ? __builtin_strcmp (str, "multi_index") : (__extension__ ({ __const unsigned char *__s1 = (__const unsigned char *) (__const char *) (str); register int __result = __s1[0] - ((__const unsigned char *) (__const char *) ("multi_index"))[0]; if (__s2_len > 0 && __result == 0) { __result = (__s1[1] - ((__const unsigned char *) (__const char *) ("multi_index"))[1]); if (__s2_len > 1 && __result == 0) { __result = (__s1[2] - ((__const unsigned char *) (__const char *) ("multi_index"))[2]); if (__s2_len > 2 && __result == 0) __result = (__s1[3] - ((__const unsigned char *) (__const char *) ("multi_index"))[3]); } } __result; }))) : __builtin_strcmp (str, "multi_index")))); }) == 0) { > flag = 0x00000004; > } > break; > case 'r': > if (__extension__ ({ size_t __s1_len, __s2_len; (__builtin_constant_p (str) && __builtin_constant_p ("ranged") && (__s1_len = strlen (str), __s2_len = strlen ("ranged"), (!((size_t)(const void *)((str) + 1) - (size_t)(const void *)(str) == 1) || __s1_len >= 4) && (!((size_t)(const void *)(("ranged") + 1) - (size_t)(const void *)("ranged") == 1) || __s2_len >= 4)) ? __builtin_strcmp (str, "ranged") : (__builtin_constant_p (str) && ((size_t)(const void *)((str) + 1) - (size_t)(const void *)(str) == 1) && (__s1_len = strlen (str), __s1_len < 4) ? (__builtin_constant_p ("ranged") && ((size_t)(const void *)(("ranged") + 1) - (size_t)(const void *)("ranged") == 1) ? __builtin_strcmp (str, "ranged") : (__extension__ ({ __const unsigned char *__s2 = (__const unsigned char *) (__const char *) ("ranged"); register int __result = (((__const unsigned char *) (__const char *) (str))[0] - __s2[0]); if (__s1_len > 0 && __result == 0) { __result = (((__const unsigned char *) (__const char *) (str))[1] - __s2[1]); if (__s1_len > 1 && __result == 0) { __result = (((__const unsigned char *) (__const char *) (str))[2] - __s2[2]); if (__s1_len > 2 && __result == 0) __result = (((__const unsigned char *) (__const char *) (str))[3] - __s2[3]); } } __result; }))) : (__builtin_constant_p ("ranged") && ((size_t)(const void *)(("ranged") + 1) - (size_t)(const void *)("ranged") == 1) && (__s2_len = strlen ("ranged"), __s2_len < 4) ? (__builtin_constant_p (str) && ((size_t)(const void *)((str) + 1) - (size_t)(const void *)(str) == 1) ? __builtin_strcmp (str, "ranged") : (__extension__ ({ __const unsigned char *__s1 = (__const unsigned char *) (__const char *) (str); register int __result = __s1[0] - ((__const unsigned char *) (__const char *) ("ranged"))[0]; if (__s2_len > 0 && __result == 0) { __result = (__s1[1] - ((__const unsigned char *) (__const char *) ("ranged"))[1]); if (__s2_len > 1 && __result == 0) { __result = (__s1[2] - ((__const unsigned char *) (__const char *) ("ranged"))[2]); if (__s2_len > 2 && __result == 0) __result = (__s1[3] - ((__const unsigned char *) (__const char *) ("ranged"))[3]); } } __result; }))) : __builtin_strcmp (str, "ranged")))); }) == 0) { > flag = 0x00000100; > } > else if (__extension__ ({ size_t __s1_len, __s2_len; (__builtin_constant_p (str) && __builtin_constant_p ("refs_ok") && (__s1_len = strlen (str), __s2_len = strlen ("refs_ok"), (!((size_t)(const void *)((str) + 1) - (size_t)(const void *)(str) == 1) || __s1_len >= 4) && (!((size_t)(const void *)(("refs_ok") + 1) - (size_t)(const void *)("refs_ok") == 1) || __s2_len >= 4)) ? __builtin_strcmp (str, "refs_ok") : (__builtin_constant_p (str) && ((size_t)(const void *)((str) + 1) - (size_t)(const void *)(str) == 1) && (__s1_len = strlen (str), __s1_len < 4) ? (__builtin_constant_p ("refs_ok") && ((size_t)(const void *)(("refs_ok") + 1) - (size_t)(const void *)("refs_ok") == 1) ? __builtin_strcmp (str, "refs_ok") : (__extension__ ({ __const unsigned char *__s2 = (__const unsigned char *) (__const char *) ("refs_ok"); register int __result = (((__const unsigned char *) (__const char *) (str))[0] - __s2[0]); if (__s1_len > 0 && __result == 0) { __result = (((__const unsigned char *) (__const char *) (str))[1] - __s2[1]); if (__s1_len > 1 && __result == 0) { __result = (((__const unsigned char *) (__const char *) (str))[2] - __s2[2]); if (__s1_len > 2 && __result == 0) __result = (((__const unsigned char *) (__const char *) (str))[3] - __s2[3]); } } __result; }))) : (__builtin_constant_p ("refs_ok") && ((size_t)(const void *)(("refs_ok") + 1) - (size_t)(const void *)("refs_ok") == 1) && (__s2_len = strlen ("refs_ok"), __s2_len < 4) ? (__builtin_constant_p (str) && ((size_t)(const void *)((str) + 1) - (size_t)(const void *)(str) == 1) ? __builtin_strcmp (str, "refs_ok") : (__extension__ ({ __const unsigned char *__s1 = (__const unsigned char *) (__const char *) (str); register int __result = __s1[0] - ((__const unsigned char *) (__const char *) ("refs_ok"))[0]; if (__s2_len > 0 && __result == 0) { __result = (__s1[1] - ((__const unsigned char *) (__const char *) ("refs_ok"))[1]); if (__s2_len > 1 && __result == 0) { __result = (__s1[2] - ((__const unsigned char *) (__const char *) ("refs_ok"))[2]); if (__s2_len > 2 && __result == 0) __result = (__s1[3] - ((__const unsigned char *) (__const char *) ("refs_ok"))[3]); } } __result; }))) : __builtin_strcmp (str, "refs_ok")))); }) == 0) { > flag = 0x00000020; > } > else if (__extension__ ({ size_t __s1_len, __s2_len; (__builtin_constant_p (str) && __builtin_constant_p ("reduce_ok") && (__s1_len = strlen (str), __s2_len = strlen ("reduce_ok"), (!((size_t)(const void *)((str) + 1) - (size_t)(const void *)(str) == 1) || __s1_len >= 4) && (!((size_t)(const void *)(("reduce_ok") + 1) - (size_t)(const void *)("reduce_ok") == 1) || __s2_len >= 4)) ? __builtin_strcmp (str, "reduce_ok") : (__builtin_constant_p (str) && ((size_t)(const void *)((str) + 1) - (size_t)(const void *)(str) == 1) && (__s1_len = strlen (str), __s1_len < 4) ? (__builtin_constant_p ("reduce_ok") && ((size_t)(const void *)(("reduce_ok") + 1) - (size_t)(const void *)("reduce_ok") == 1) ? __builtin_strcmp (str, "reduce_ok") : (__extension__ ({ __const unsigned char *__s2 = (__const unsigned char *) (__const char *) ("reduce_ok"); register int __result = (((__const unsigned char *) (__const char *) (str))[0] - __s2[0]); if (__s1_len > 0 && __result == 0) { __result = (((__const unsigned char *) (__const char *) (str))[1] - __s2[1]); if (__s1_len > 1 && __result == 0) { __result = (((__const unsigned char *) (__const char *) (str))[2] - __s2[2]); if (__s1_len > 2 && __result == 0) __result = (((__const unsigned char *) (__const char *) (str))[3] - __s2[3]); } } __result; }))) : (__builtin_constant_p ("reduce_ok") && ((size_t)(const void *)(("reduce_ok") + 1) - (size_t)(const void *)("reduce_ok") == 1) && (__s2_len = strlen ("reduce_ok"), __s2_len < 4) ? (__builtin_constant_p (str) && ((size_t)(const void *)((str) + 1) - (size_t)(const void *)(str) == 1) ? __builtin_strcmp (str, "reduce_ok") : (__extension__ ({ __const unsigned char *__s1 = (__const unsigned char *) (__const char *) (str); register int __result = __s1[0] - ((__const unsigned char *) (__const char *) ("reduce_ok"))[0]; if (__s2_len > 0 && __result == 0) { __result = (__s1[1] - ((__const unsigned char *) (__const char *) ("reduce_ok"))[1]); if (__s2_len > 1 && __result == 0) { __result = (__s1[2] - ((__const unsigned char *) (__const char *) ("reduce_ok"))[2]); if (__s2_len > 2 && __result == 0) __result = (__s1[3] - ((__const unsigned char *) (__const char *) ("reduce_ok"))[3]); } } __result; }))) : __builtin_strcmp (str, "reduce_ok")))); }) == 0) { > flag = 0x00000080; > } > break; > case 'z': > if (__extension__ ({ size_t __s1_len, __s2_len; (__builtin_constant_p (str) && __builtin_constant_p ("zerosize_ok") && (__s1_len = strlen (str), __s2_len = strlen ("zerosize_ok"), (!((size_t)(const void *)((str) + 1) - (size_t)(const void *)(str) == 1) || __s1_len >= 4) && (!((size_t)(const void *)(("zerosize_ok") + 1) - (size_t)(const void *)("zerosize_ok") == 1) || __s2_len >= 4)) ? __builtin_strcmp (str, "zerosize_ok") : (__builtin_constant_p (str) && ((size_t)(const void *)((str) + 1) - (size_t)(const void *)(str) == 1) && (__s1_len = strlen (str), __s1_len < 4) ? (__builtin_constant_p ("zerosize_ok") && ((size_t)(const void *)(("zerosize_ok") + 1) - (size_t)(const void *)("zerosize_ok") == 1) ? __builtin_strcmp (str, "zerosize_ok") : (__extension__ ({ __const unsigned char *__s2 = (__const unsigned char *) (__const char *) ("zerosize_ok"); register int __result = (((__const unsigned char *) (__const char *) (str))[0] - __s2[0]); if (__s1_len > 0 && __result == 0) { __result = (((__const unsigned char *) (__const char *) (str))[1] - __s2[1]); if (__s1_len > 1 && __result == 0) { __result = (((__const unsigned char *) (__const char *) (str))[2] - __s2[2]); if (__s1_len > 2 && __result == 0) __result = (((__const unsigned char *) (__const char *) (str))[3] - __s2[3]); } } __result; }))) : (__builtin_constant_p ("zerosize_ok") && ((size_t)(const void *)(("zerosize_ok") + 1) - (size_t)(const void *)("zerosize_ok") == 1) && (__s2_len = strlen ("zerosize_ok"), __s2_len < 4) ? (__builtin_constant_p (str) && ((size_t)(const void *)((str) + 1) - (size_t)(const void *)(str) == 1) ? __builtin_strcmp (str, "zerosize_ok") : (__extension__ ({ __const unsigned char *__s1 = (__const unsigned char *) (__const char *) (str); register int __result = __s1[0] - ((__const unsigned char *) (__const char *) ("zerosize_ok"))[0]; if (__s2_len > 0 && __result == 0) { __result = (__s1[1] - ((__const unsigned char *) (__const char *) ("zerosize_ok"))[1]); if (__s2_len > 1 && __result == 0) { __result = (__s1[2] - ((__const unsigned char *) (__const char *) ("zerosize_ok"))[2]); if (__s2_len > 2 && __result == 0) __result = (__s1[3] - ((__const unsigned char *) (__const char *) ("zerosize_ok"))[3]); } } __result; }))) : __builtin_strcmp (str, "zerosize_ok")))); }) == 0) { > flag = 0x00000040; > } > break; > } > if (flag == 0) { > PyErr_Format(PyExc_ValueError, > "Unexpected iterator global flag \"%s\"", str); > do { if ( --((PyObject*)(f))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(f)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(f)))); } while (0); > return 0; > } > else { > tmpflags |= flag; > } > do { if ( --((PyObject*)(f))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(f)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(f)))); } while (0); > } > > *flags |= tmpflags; > return 1; >} > > >static int >npyiter_order_converter(PyObject *order_in, NPY_ORDER *order) >{ > char *str = ((void *)0); > Py_ssize_t length = 0; > > if (((((((PyObject*)(order_in))->ob_type))->tp_flags & ((1L<<28))) != 0)) { > > PyObject *str_obj; > int ret; > str_obj = PyUnicodeUCS4_AsASCIIString(order_in); > if (str_obj == ((void *)0)) { > return 0; > } > ret = npyiter_order_converter(str_obj, order); > do { if ( --((PyObject*)(str_obj))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(str_obj)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(str_obj)))); } while (0); > return ret; > } > > if (PyString_AsStringAndSize(order_in, &str, &length) == -1) { > return 0; > } > > if (length == 1) switch (str[0]) { > case 'C': > *order = NPY_CORDER; > return 1; > case 'F': > *order = NPY_FORTRANORDER; > return 1; > case 'A': > *order = NPY_ANYORDER; > return 1; > case 'K': > *order = NPY_KEEPORDER; > return 1; > } > > PyErr_SetString(PyExc_ValueError, > "order must be one of 'C', 'F', 'A', or 'K'"); > return 0; >} > > > > > >static int >PyArray_CastingConverter(PyObject *obj, NPY_CASTING *casting) >{ > char *str = ((void *)0); > Py_ssize_t length = 0; > > if (((((((PyObject*)(obj))->ob_type))->tp_flags & ((1L<<28))) != 0)) { > PyObject *str_obj; > int ret; > str_obj = PyUnicodeUCS4_AsASCIIString(obj); > if (str_obj == ((void *)0)) { > return 0; > } > ret = PyArray_CastingConverter(str_obj, casting); > do { if ( --((PyObject*)(str_obj))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(str_obj)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(str_obj)))); } while (0); > return ret; > } > > if (PyString_AsStringAndSize(obj, &str, &length) == -1) { > return 0; > } > > if (length >= 2) switch (str[2]) { > case 0: > if (__extension__ ({ size_t __s1_len, __s2_len; (__builtin_constant_p (str) && __builtin_constant_p ("no") && (__s1_len = strlen (str), __s2_len = strlen ("no"), (!((size_t)(const void *)((str) + 1) - (size_t)(const void *)(str) == 1) || __s1_len >= 4) && (!((size_t)(const void *)(("no") + 1) - (size_t)(const void *)("no") == 1) || __s2_len >= 4)) ? __builtin_strcmp (str, "no") : (__builtin_constant_p (str) && ((size_t)(const void *)((str) + 1) - (size_t)(const void *)(str) == 1) && (__s1_len = strlen (str), __s1_len < 4) ? (__builtin_constant_p ("no") && ((size_t)(const void *)(("no") + 1) - (size_t)(const void *)("no") == 1) ? __builtin_strcmp (str, "no") : (__extension__ ({ __const unsigned char *__s2 = (__const unsigned char *) (__const char *) ("no"); register int __result = (((__const unsigned char *) (__const char *) (str))[0] - __s2[0]); if (__s1_len > 0 && __result == 0) { __result = (((__const unsigned char *) (__const char *) (str))[1] - __s2[1]); if (__s1_len > 1 && __result == 0) { __result = (((__const unsigned char *) (__const char *) (str))[2] - __s2[2]); if (__s1_len > 2 && __result == 0) __result = (((__const unsigned char *) (__const char *) (str))[3] - __s2[3]); } } __result; }))) : (__builtin_constant_p ("no") && ((size_t)(const void *)(("no") + 1) - (size_t)(const void *)("no") == 1) && (__s2_len = strlen ("no"), __s2_len < 4) ? (__builtin_constant_p (str) && ((size_t)(const void *)((str) + 1) - (size_t)(const void *)(str) == 1) ? __builtin_strcmp (str, "no") : (__extension__ ({ __const unsigned char *__s1 = (__const unsigned char *) (__const char *) (str); register int __result = __s1[0] - ((__const unsigned char *) (__const char *) ("no"))[0]; if (__s2_len > 0 && __result == 0) { __result = (__s1[1] - ((__const unsigned char *) (__const char *) ("no"))[1]); if (__s2_len > 1 && __result == 0) { __result = (__s1[2] - ((__const unsigned char *) (__const char *) ("no"))[2]); if (__s2_len > 2 && __result == 0) __result = (__s1[3] - ((__const unsigned char *) (__const char *) ("no"))[3]); } } __result; }))) : __builtin_strcmp (str, "no")))); }) == 0) { > *casting = NPY_NO_CASTING; > return 1; > } > break; > case 'u': > if (__extension__ ({ size_t __s1_len, __s2_len; (__builtin_constant_p (str) && __builtin_constant_p ("equiv") && (__s1_len = strlen (str), __s2_len = strlen ("equiv"), (!((size_t)(const void *)((str) + 1) - (size_t)(const void *)(str) == 1) || __s1_len >= 4) && (!((size_t)(const void *)(("equiv") + 1) - (size_t)(const void *)("equiv") == 1) || __s2_len >= 4)) ? __builtin_strcmp (str, "equiv") : (__builtin_constant_p (str) && ((size_t)(const void *)((str) + 1) - (size_t)(const void *)(str) == 1) && (__s1_len = strlen (str), __s1_len < 4) ? (__builtin_constant_p ("equiv") && ((size_t)(const void *)(("equiv") + 1) - (size_t)(const void *)("equiv") == 1) ? __builtin_strcmp (str, "equiv") : (__extension__ ({ __const unsigned char *__s2 = (__const unsigned char *) (__const char *) ("equiv"); register int __result = (((__const unsigned char *) (__const char *) (str))[0] - __s2[0]); if (__s1_len > 0 && __result == 0) { __result = (((__const unsigned char *) (__const char *) (str))[1] - __s2[1]); if (__s1_len > 1 && __result == 0) { __result = (((__const unsigned char *) (__const char *) (str))[2] - __s2[2]); if (__s1_len > 2 && __result == 0) __result = (((__const unsigned char *) (__const char *) (str))[3] - __s2[3]); } } __result; }))) : (__builtin_constant_p ("equiv") && ((size_t)(const void *)(("equiv") + 1) - (size_t)(const void *)("equiv") == 1) && (__s2_len = strlen ("equiv"), __s2_len < 4) ? (__builtin_constant_p (str) && ((size_t)(const void *)((str) + 1) - (size_t)(const void *)(str) == 1) ? __builtin_strcmp (str, "equiv") : (__extension__ ({ __const unsigned char *__s1 = (__const unsigned char *) (__const char *) (str); register int __result = __s1[0] - ((__const unsigned char *) (__const char *) ("equiv"))[0]; if (__s2_len > 0 && __result == 0) { __result = (__s1[1] - ((__const unsigned char *) (__const char *) ("equiv"))[1]); if (__s2_len > 1 && __result == 0) { __result = (__s1[2] - ((__const unsigned char *) (__const char *) ("equiv"))[2]); if (__s2_len > 2 && __result == 0) __result = (__s1[3] - ((__const unsigned char *) (__const char *) ("equiv"))[3]); } } __result; }))) : __builtin_strcmp (str, "equiv")))); }) == 0) { > *casting = NPY_EQUIV_CASTING; > return 1; > } > break; > case 'f': > if (__extension__ ({ size_t __s1_len, __s2_len; (__builtin_constant_p (str) && __builtin_constant_p ("safe") && (__s1_len = strlen (str), __s2_len = strlen ("safe"), (!((size_t)(const void *)((str) + 1) - (size_t)(const void *)(str) == 1) || __s1_len >= 4) && (!((size_t)(const void *)(("safe") + 1) - (size_t)(const void *)("safe") == 1) || __s2_len >= 4)) ? __builtin_strcmp (str, "safe") : (__builtin_constant_p (str) && ((size_t)(const void *)((str) + 1) - (size_t)(const void *)(str) == 1) && (__s1_len = strlen (str), __s1_len < 4) ? (__builtin_constant_p ("safe") && ((size_t)(const void *)(("safe") + 1) - (size_t)(const void *)("safe") == 1) ? __builtin_strcmp (str, "safe") : (__extension__ ({ __const unsigned char *__s2 = (__const unsigned char *) (__const char *) ("safe"); register int __result = (((__const unsigned char *) (__const char *) (str))[0] - __s2[0]); if (__s1_len > 0 && __result == 0) { __result = (((__const unsigned char *) (__const char *) (str))[1] - __s2[1]); if (__s1_len > 1 && __result == 0) { __result = (((__const unsigned char *) (__const char *) (str))[2] - __s2[2]); if (__s1_len > 2 && __result == 0) __result = (((__const unsigned char *) (__const char *) (str))[3] - __s2[3]); } } __result; }))) : (__builtin_constant_p ("safe") && ((size_t)(const void *)(("safe") + 1) - (size_t)(const void *)("safe") == 1) && (__s2_len = strlen ("safe"), __s2_len < 4) ? (__builtin_constant_p (str) && ((size_t)(const void *)((str) + 1) - (size_t)(const void *)(str) == 1) ? __builtin_strcmp (str, "safe") : (__extension__ ({ __const unsigned char *__s1 = (__const unsigned char *) (__const char *) (str); register int __result = __s1[0] - ((__const unsigned char *) (__const char *) ("safe"))[0]; if (__s2_len > 0 && __result == 0) { __result = (__s1[1] - ((__const unsigned char *) (__const char *) ("safe"))[1]); if (__s2_len > 1 && __result == 0) { __result = (__s1[2] - ((__const unsigned char *) (__const char *) ("safe"))[2]); if (__s2_len > 2 && __result == 0) __result = (__s1[3] - ((__const unsigned char *) (__const char *) ("safe"))[3]); } } __result; }))) : __builtin_strcmp (str, "safe")))); }) == 0) { > *casting = NPY_SAFE_CASTING; > return 1; > } > break; > case 'm': > if (__extension__ ({ size_t __s1_len, __s2_len; (__builtin_constant_p (str) && __builtin_constant_p ("same_kind") && (__s1_len = strlen (str), __s2_len = strlen ("same_kind"), (!((size_t)(const void *)((str) + 1) - (size_t)(const void *)(str) == 1) || __s1_len >= 4) && (!((size_t)(const void *)(("same_kind") + 1) - (size_t)(const void *)("same_kind") == 1) || __s2_len >= 4)) ? __builtin_strcmp (str, "same_kind") : (__builtin_constant_p (str) && ((size_t)(const void *)((str) + 1) - (size_t)(const void *)(str) == 1) && (__s1_len = strlen (str), __s1_len < 4) ? (__builtin_constant_p ("same_kind") && ((size_t)(const void *)(("same_kind") + 1) - (size_t)(const void *)("same_kind") == 1) ? __builtin_strcmp (str, "same_kind") : (__extension__ ({ __const unsigned char *__s2 = (__const unsigned char *) (__const char *) ("same_kind"); register int __result = (((__const unsigned char *) (__const char *) (str))[0] - __s2[0]); if (__s1_len > 0 && __result == 0) { __result = (((__const unsigned char *) (__const char *) (str))[1] - __s2[1]); if (__s1_len > 1 && __result == 0) { __result = (((__const unsigned char *) (__const char *) (str))[2] - __s2[2]); if (__s1_len > 2 && __result == 0) __result = (((__const unsigned char *) (__const char *) (str))[3] - __s2[3]); } } __result; }))) : (__builtin_constant_p ("same_kind") && ((size_t)(const void *)(("same_kind") + 1) - (size_t)(const void *)("same_kind") == 1) && (__s2_len = strlen ("same_kind"), __s2_len < 4) ? (__builtin_constant_p (str) && ((size_t)(const void *)((str) + 1) - (size_t)(const void *)(str) == 1) ? __builtin_strcmp (str, "same_kind") : (__extension__ ({ __const unsigned char *__s1 = (__const unsigned char *) (__const char *) (str); register int __result = __s1[0] - ((__const unsigned char *) (__const char *) ("same_kind"))[0]; if (__s2_len > 0 && __result == 0) { __result = (__s1[1] - ((__const unsigned char *) (__const char *) ("same_kind"))[1]); if (__s2_len > 1 && __result == 0) { __result = (__s1[2] - ((__const unsigned char *) (__const char *) ("same_kind"))[2]); if (__s2_len > 2 && __result == 0) __result = (__s1[3] - ((__const unsigned char *) (__const char *) ("same_kind"))[3]); } } __result; }))) : __builtin_strcmp (str, "same_kind")))); }) == 0) { > *casting = NPY_SAME_KIND_CASTING; > return 1; > } > break; > case 's': > if (__extension__ ({ size_t __s1_len, __s2_len; (__builtin_constant_p (str) && __builtin_constant_p ("unsafe") && (__s1_len = strlen (str), __s2_len = strlen ("unsafe"), (!((size_t)(const void *)((str) + 1) - (size_t)(const void *)(str) == 1) || __s1_len >= 4) && (!((size_t)(const void *)(("unsafe") + 1) - (size_t)(const void *)("unsafe") == 1) || __s2_len >= 4)) ? __builtin_strcmp (str, "unsafe") : (__builtin_constant_p (str) && ((size_t)(const void *)((str) + 1) - (size_t)(const void *)(str) == 1) && (__s1_len = strlen (str), __s1_len < 4) ? (__builtin_constant_p ("unsafe") && ((size_t)(const void *)(("unsafe") + 1) - (size_t)(const void *)("unsafe") == 1) ? __builtin_strcmp (str, "unsafe") : (__extension__ ({ __const unsigned char *__s2 = (__const unsigned char *) (__const char *) ("unsafe"); register int __result = (((__const unsigned char *) (__const char *) (str))[0] - __s2[0]); if (__s1_len > 0 && __result == 0) { __result = (((__const unsigned char *) (__const char *) (str))[1] - __s2[1]); if (__s1_len > 1 && __result == 0) { __result = (((__const unsigned char *) (__const char *) (str))[2] - __s2[2]); if (__s1_len > 2 && __result == 0) __result = (((__const unsigned char *) (__const char *) (str))[3] - __s2[3]); } } __result; }))) : (__builtin_constant_p ("unsafe") && ((size_t)(const void *)(("unsafe") + 1) - (size_t)(const void *)("unsafe") == 1) && (__s2_len = strlen ("unsafe"), __s2_len < 4) ? (__builtin_constant_p (str) && ((size_t)(const void *)((str) + 1) - (size_t)(const void *)(str) == 1) ? __builtin_strcmp (str, "unsafe") : (__extension__ ({ __const unsigned char *__s1 = (__const unsigned char *) (__const char *) (str); register int __result = __s1[0] - ((__const unsigned char *) (__const char *) ("unsafe"))[0]; if (__s2_len > 0 && __result == 0) { __result = (__s1[1] - ((__const unsigned char *) (__const char *) ("unsafe"))[1]); if (__s2_len > 1 && __result == 0) { __result = (__s1[2] - ((__const unsigned char *) (__const char *) ("unsafe"))[2]); if (__s2_len > 2 && __result == 0) __result = (__s1[3] - ((__const unsigned char *) (__const char *) ("unsafe"))[3]); } } __result; }))) : __builtin_strcmp (str, "unsafe")))); }) == 0) { > *casting = NPY_UNSAFE_CASTING; > return 1; > } > break; > } > > PyErr_SetString(PyExc_ValueError, > "casting must be one of 'no', 'equiv', 'safe', " > "'same_kind', or 'unsafe'"); > return 0; >} > >static int >NpyIter_OpFlagsConverter(PyObject *op_flags_in, > npy_uint32 *op_flags) >{ > int iflags, nflags; > npy_uint32 flag; > > if (!((((((PyObject*)(op_flags_in))->ob_type))->tp_flags & ((1L<<26))) != 0) && !((((((PyObject*)(op_flags_in))->ob_type))->tp_flags & ((1L<<25))) != 0)) { > PyErr_SetString(PyExc_ValueError, > "op_flags must be a tuple or array of per-op flag-tuples"); > return 0; > } > > nflags = PySequence_Size(op_flags_in); > > *op_flags = 0; > for (iflags = 0; iflags < nflags; ++iflags) { > PyObject *f; > char *str = ((void *)0); > Py_ssize_t length = 0; > > f = PySequence_GetItem(op_flags_in, iflags); > if (f == ((void *)0)) { > return 0; > } > > if (((((((PyObject*)(f))->ob_type))->tp_flags & ((1L<<28))) != 0)) { > > PyObject *f_str; > f_str = PyUnicodeUCS4_AsASCIIString(f); > if (f_str == ((void *)0)) { > do { if ( --((PyObject*)(f))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(f)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(f)))); } while (0); > return 0; > } > do { if ( --((PyObject*)(f))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(f)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(f)))); } while (0); > f = f_str; > } > > if (PyString_AsStringAndSize(f, &str, &length) == -1) { > do { if ( --((PyObject*)(f))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(f)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(f)))); } while (0); > PyErr_SetString(PyExc_ValueError, > "op_flags must be a tuple or array of per-op flag-tuples"); > return 0; > } > > > flag = 0; > switch (str[0]) { > case 'a': > if (__extension__ ({ size_t __s1_len, __s2_len; (__builtin_constant_p (str) && __builtin_constant_p ("allocate") && (__s1_len = strlen (str), __s2_len = strlen ("allocate"), (!((size_t)(const void *)((str) + 1) - (size_t)(const void *)(str) == 1) || __s1_len >= 4) && (!((size_t)(const void *)(("allocate") + 1) - (size_t)(const void *)("allocate") == 1) || __s2_len >= 4)) ? __builtin_strcmp (str, "allocate") : (__builtin_constant_p (str) && ((size_t)(const void *)((str) + 1) - (size_t)(const void *)(str) == 1) && (__s1_len = strlen (str), __s1_len < 4) ? (__builtin_constant_p ("allocate") && ((size_t)(const void *)(("allocate") + 1) - (size_t)(const void *)("allocate") == 1) ? __builtin_strcmp (str, "allocate") : (__extension__ ({ __const unsigned char *__s2 = (__const unsigned char *) (__const char *) ("allocate"); register int __result = (((__const unsigned char *) (__const char *) (str))[0] - __s2[0]); if (__s1_len > 0 && __result == 0) { __result = (((__const unsigned char *) (__const char *) (str))[1] - __s2[1]); if (__s1_len > 1 && __result == 0) { __result = (((__const unsigned char *) (__const char *) (str))[2] - __s2[2]); if (__s1_len > 2 && __result == 0) __result = (((__const unsigned char *) (__const char *) (str))[3] - __s2[3]); } } __result; }))) : (__builtin_constant_p ("allocate") && ((size_t)(const void *)(("allocate") + 1) - (size_t)(const void *)("allocate") == 1) && (__s2_len = strlen ("allocate"), __s2_len < 4) ? (__builtin_constant_p (str) && ((size_t)(const void *)((str) + 1) - (size_t)(const void *)(str) == 1) ? __builtin_strcmp (str, "allocate") : (__extension__ ({ __const unsigned char *__s1 = (__const unsigned char *) (__const char *) (str); register int __result = __s1[0] - ((__const unsigned char *) (__const char *) ("allocate"))[0]; if (__s2_len > 0 && __result == 0) { __result = (__s1[1] - ((__const unsigned char *) (__const char *) ("allocate"))[1]); if (__s2_len > 1 && __result == 0) { __result = (__s1[2] - ((__const unsigned char *) (__const char *) ("allocate"))[2]); if (__s2_len > 2 && __result == 0) __result = (__s1[3] - ((__const unsigned char *) (__const char *) ("allocate"))[3]); } } __result; }))) : __builtin_strcmp (str, "allocate")))); }) == 0) { > flag = 0x01000000; > } > if (__extension__ ({ size_t __s1_len, __s2_len; (__builtin_constant_p (str) && __builtin_constant_p ("aligned") && (__s1_len = strlen (str), __s2_len = strlen ("aligned"), (!((size_t)(const void *)((str) + 1) - (size_t)(const void *)(str) == 1) || __s1_len >= 4) && (!((size_t)(const void *)(("aligned") + 1) - (size_t)(const void *)("aligned") == 1) || __s2_len >= 4)) ? __builtin_strcmp (str, "aligned") : (__builtin_constant_p (str) && ((size_t)(const void *)((str) + 1) - (size_t)(const void *)(str) == 1) && (__s1_len = strlen (str), __s1_len < 4) ? (__builtin_constant_p ("aligned") && ((size_t)(const void *)(("aligned") + 1) - (size_t)(const void *)("aligned") == 1) ? __builtin_strcmp (str, "aligned") : (__extension__ ({ __const unsigned char *__s2 = (__const unsigned char *) (__const char *) ("aligned"); register int __result = (((__const unsigned char *) (__const char *) (str))[0] - __s2[0]); if (__s1_len > 0 && __result == 0) { __result = (((__const unsigned char *) (__const char *) (str))[1] - __s2[1]); if (__s1_len > 1 && __result == 0) { __result = (((__const unsigned char *) (__const char *) (str))[2] - __s2[2]); if (__s1_len > 2 && __result == 0) __result = (((__const unsigned char *) (__const char *) (str))[3] - __s2[3]); } } __result; }))) : (__builtin_constant_p ("aligned") && ((size_t)(const void *)(("aligned") + 1) - (size_t)(const void *)("aligned") == 1) && (__s2_len = strlen ("aligned"), __s2_len < 4) ? (__builtin_constant_p (str) && ((size_t)(const void *)((str) + 1) - (size_t)(const void *)(str) == 1) ? __builtin_strcmp (str, "aligned") : (__extension__ ({ __const unsigned char *__s1 = (__const unsigned char *) (__const char *) (str); register int __result = __s1[0] - ((__const unsigned char *) (__const char *) ("aligned"))[0]; if (__s2_len > 0 && __result == 0) { __result = (__s1[1] - ((__const unsigned char *) (__const char *) ("aligned"))[1]); if (__s2_len > 1 && __result == 0) { __result = (__s1[2] - ((__const unsigned char *) (__const char *) ("aligned"))[2]); if (__s2_len > 2 && __result == 0) __result = (__s1[3] - ((__const unsigned char *) (__const char *) ("aligned"))[3]); } } __result; }))) : __builtin_strcmp (str, "aligned")))); }) == 0) { > flag = 0x00100000; > } > break; > case 'c': > if (__extension__ ({ size_t __s1_len, __s2_len; (__builtin_constant_p (str) && __builtin_constant_p ("copy") && (__s1_len = strlen (str), __s2_len = strlen ("copy"), (!((size_t)(const void *)((str) + 1) - (size_t)(const void *)(str) == 1) || __s1_len >= 4) && (!((size_t)(const void *)(("copy") + 1) - (size_t)(const void *)("copy") == 1) || __s2_len >= 4)) ? __builtin_strcmp (str, "copy") : (__builtin_constant_p (str) && ((size_t)(const void *)((str) + 1) - (size_t)(const void *)(str) == 1) && (__s1_len = strlen (str), __s1_len < 4) ? (__builtin_constant_p ("copy") && ((size_t)(const void *)(("copy") + 1) - (size_t)(const void *)("copy") == 1) ? __builtin_strcmp (str, "copy") : (__extension__ ({ __const unsigned char *__s2 = (__const unsigned char *) (__const char *) ("copy"); register int __result = (((__const unsigned char *) (__const char *) (str))[0] - __s2[0]); if (__s1_len > 0 && __result == 0) { __result = (((__const unsigned char *) (__const char *) (str))[1] - __s2[1]); if (__s1_len > 1 && __result == 0) { __result = (((__const unsigned char *) (__const char *) (str))[2] - __s2[2]); if (__s1_len > 2 && __result == 0) __result = (((__const unsigned char *) (__const char *) (str))[3] - __s2[3]); } } __result; }))) : (__builtin_constant_p ("copy") && ((size_t)(const void *)(("copy") + 1) - (size_t)(const void *)("copy") == 1) && (__s2_len = strlen ("copy"), __s2_len < 4) ? (__builtin_constant_p (str) && ((size_t)(const void *)((str) + 1) - (size_t)(const void *)(str) == 1) ? __builtin_strcmp (str, "copy") : (__extension__ ({ __const unsigned char *__s1 = (__const unsigned char *) (__const char *) (str); register int __result = __s1[0] - ((__const unsigned char *) (__const char *) ("copy"))[0]; if (__s2_len > 0 && __result == 0) { __result = (__s1[1] - ((__const unsigned char *) (__const char *) ("copy"))[1]); if (__s2_len > 1 && __result == 0) { __result = (__s1[2] - ((__const unsigned char *) (__const char *) ("copy"))[2]); if (__s2_len > 2 && __result == 0) __result = (__s1[3] - ((__const unsigned char *) (__const char *) ("copy"))[3]); } } __result; }))) : __builtin_strcmp (str, "copy")))); }) == 0) { > flag = 0x00400000; > } > if (__extension__ ({ size_t __s1_len, __s2_len; (__builtin_constant_p (str) && __builtin_constant_p ("contig") && (__s1_len = strlen (str), __s2_len = strlen ("contig"), (!((size_t)(const void *)((str) + 1) - (size_t)(const void *)(str) == 1) || __s1_len >= 4) && (!((size_t)(const void *)(("contig") + 1) - (size_t)(const void *)("contig") == 1) || __s2_len >= 4)) ? __builtin_strcmp (str, "contig") : (__builtin_constant_p (str) && ((size_t)(const void *)((str) + 1) - (size_t)(const void *)(str) == 1) && (__s1_len = strlen (str), __s1_len < 4) ? (__builtin_constant_p ("contig") && ((size_t)(const void *)(("contig") + 1) - (size_t)(const void *)("contig") == 1) ? __builtin_strcmp (str, "contig") : (__extension__ ({ __const unsigned char *__s2 = (__const unsigned char *) (__const char *) ("contig"); register int __result = (((__const unsigned char *) (__const char *) (str))[0] - __s2[0]); if (__s1_len > 0 && __result == 0) { __result = (((__const unsigned char *) (__const char *) (str))[1] - __s2[1]); if (__s1_len > 1 && __result == 0) { __result = (((__const unsigned char *) (__const char *) (str))[2] - __s2[2]); if (__s1_len > 2 && __result == 0) __result = (((__const unsigned char *) (__const char *) (str))[3] - __s2[3]); } } __result; }))) : (__builtin_constant_p ("contig") && ((size_t)(const void *)(("contig") + 1) - (size_t)(const void *)("contig") == 1) && (__s2_len = strlen ("contig"), __s2_len < 4) ? (__builtin_constant_p (str) && ((size_t)(const void *)((str) + 1) - (size_t)(const void *)(str) == 1) ? __builtin_strcmp (str, "contig") : (__extension__ ({ __const unsigned char *__s1 = (__const unsigned char *) (__const char *) (str); register int __result = __s1[0] - ((__const unsigned char *) (__const char *) ("contig"))[0]; if (__s2_len > 0 && __result == 0) { __result = (__s1[1] - ((__const unsigned char *) (__const char *) ("contig"))[1]); if (__s2_len > 1 && __result == 0) { __result = (__s1[2] - ((__const unsigned char *) (__const char *) ("contig"))[2]); if (__s2_len > 2 && __result == 0) __result = (__s1[3] - ((__const unsigned char *) (__const char *) ("contig"))[3]); } } __result; }))) : __builtin_strcmp (str, "contig")))); }) == 0) { > flag = 0x00200000; > } > break; > case 'n': > switch (str[1]) { > case 'b': > if (__extension__ ({ size_t __s1_len, __s2_len; (__builtin_constant_p (str) && __builtin_constant_p ("nbo") && (__s1_len = strlen (str), __s2_len = strlen ("nbo"), (!((size_t)(const void *)((str) + 1) - (size_t)(const void *)(str) == 1) || __s1_len >= 4) && (!((size_t)(const void *)(("nbo") + 1) - (size_t)(const void *)("nbo") == 1) || __s2_len >= 4)) ? __builtin_strcmp (str, "nbo") : (__builtin_constant_p (str) && ((size_t)(const void *)((str) + 1) - (size_t)(const void *)(str) == 1) && (__s1_len = strlen (str), __s1_len < 4) ? (__builtin_constant_p ("nbo") && ((size_t)(const void *)(("nbo") + 1) - (size_t)(const void *)("nbo") == 1) ? __builtin_strcmp (str, "nbo") : (__extension__ ({ __const unsigned char *__s2 = (__const unsigned char *) (__const char *) ("nbo"); register int __result = (((__const unsigned char *) (__const char *) (str))[0] - __s2[0]); if (__s1_len > 0 && __result == 0) { __result = (((__const unsigned char *) (__const char *) (str))[1] - __s2[1]); if (__s1_len > 1 && __result == 0) { __result = (((__const unsigned char *) (__const char *) (str))[2] - __s2[2]); if (__s1_len > 2 && __result == 0) __result = (((__const unsigned char *) (__const char *) (str))[3] - __s2[3]); } } __result; }))) : (__builtin_constant_p ("nbo") && ((size_t)(const void *)(("nbo") + 1) - (size_t)(const void *)("nbo") == 1) && (__s2_len = strlen ("nbo"), __s2_len < 4) ? (__builtin_constant_p (str) && ((size_t)(const void *)((str) + 1) - (size_t)(const void *)(str) == 1) ? __builtin_strcmp (str, "nbo") : (__extension__ ({ __const unsigned char *__s1 = (__const unsigned char *) (__const char *) (str); register int __result = __s1[0] - ((__const unsigned char *) (__const char *) ("nbo"))[0]; if (__s2_len > 0 && __result == 0) { __result = (__s1[1] - ((__const unsigned char *) (__const char *) ("nbo"))[1]); if (__s2_len > 1 && __result == 0) { __result = (__s1[2] - ((__const unsigned char *) (__const char *) ("nbo"))[2]); if (__s2_len > 2 && __result == 0) __result = (__s1[3] - ((__const unsigned char *) (__const char *) ("nbo"))[3]); } } __result; }))) : __builtin_strcmp (str, "nbo")))); }) == 0) { > flag = 0x00080000; > } > break; > case 'o': > if (__extension__ ({ size_t __s1_len, __s2_len; (__builtin_constant_p (str) && __builtin_constant_p ("no_subtype") && (__s1_len = strlen (str), __s2_len = strlen ("no_subtype"), (!((size_t)(const void *)((str) + 1) - (size_t)(const void *)(str) == 1) || __s1_len >= 4) && (!((size_t)(const void *)(("no_subtype") + 1) - (size_t)(const void *)("no_subtype") == 1) || __s2_len >= 4)) ? __builtin_strcmp (str, "no_subtype") : (__builtin_constant_p (str) && ((size_t)(const void *)((str) + 1) - (size_t)(const void *)(str) == 1) && (__s1_len = strlen (str), __s1_len < 4) ? (__builtin_constant_p ("no_subtype") && ((size_t)(const void *)(("no_subtype") + 1) - (size_t)(const void *)("no_subtype") == 1) ? __builtin_strcmp (str, "no_subtype") : (__extension__ ({ __const unsigned char *__s2 = (__const unsigned char *) (__const char *) ("no_subtype"); register int __result = (((__const unsigned char *) (__const char *) (str))[0] - __s2[0]); if (__s1_len > 0 && __result == 0) { __result = (((__const unsigned char *) (__const char *) (str))[1] - __s2[1]); if (__s1_len > 1 && __result == 0) { __result = (((__const unsigned char *) (__const char *) (str))[2] - __s2[2]); if (__s1_len > 2 && __result == 0) __result = (((__const unsigned char *) (__const char *) (str))[3] - __s2[3]); } } __result; }))) : (__builtin_constant_p ("no_subtype") && ((size_t)(const void *)(("no_subtype") + 1) - (size_t)(const void *)("no_subtype") == 1) && (__s2_len = strlen ("no_subtype"), __s2_len < 4) ? (__builtin_constant_p (str) && ((size_t)(const void *)((str) + 1) - (size_t)(const void *)(str) == 1) ? __builtin_strcmp (str, "no_subtype") : (__extension__ ({ __const unsigned char *__s1 = (__const unsigned char *) (__const char *) (str); register int __result = __s1[0] - ((__const unsigned char *) (__const char *) ("no_subtype"))[0]; if (__s2_len > 0 && __result == 0) { __result = (__s1[1] - ((__const unsigned char *) (__const char *) ("no_subtype"))[1]); if (__s2_len > 1 && __result == 0) { __result = (__s1[2] - ((__const unsigned char *) (__const char *) ("no_subtype"))[2]); if (__s2_len > 2 && __result == 0) __result = (__s1[3] - ((__const unsigned char *) (__const char *) ("no_subtype"))[3]); } } __result; }))) : __builtin_strcmp (str, "no_subtype")))); }) == 0) { > flag = 0x02000000; > } > else if (__extension__ ({ size_t __s1_len, __s2_len; (__builtin_constant_p (str) && __builtin_constant_p ("no_broadcast") && (__s1_len = strlen (str), __s2_len = strlen ("no_broadcast"), (!((size_t)(const void *)((str) + 1) - (size_t)(const void *)(str) == 1) || __s1_len >= 4) && (!((size_t)(const void *)(("no_broadcast") + 1) - (size_t)(const void *)("no_broadcast") == 1) || __s2_len >= 4)) ? __builtin_strcmp (str, "no_broadcast") : (__builtin_constant_p (str) && ((size_t)(const void *)((str) + 1) - (size_t)(const void *)(str) == 1) && (__s1_len = strlen (str), __s1_len < 4) ? (__builtin_constant_p ("no_broadcast") && ((size_t)(const void *)(("no_broadcast") + 1) - (size_t)(const void *)("no_broadcast") == 1) ? __builtin_strcmp (str, "no_broadcast") : (__extension__ ({ __const unsigned char *__s2 = (__const unsigned char *) (__const char *) ("no_broadcast"); register int __result = (((__const unsigned char *) (__const char *) (str))[0] - __s2[0]); if (__s1_len > 0 && __result == 0) { __result = (((__const unsigned char *) (__const char *) (str))[1] - __s2[1]); if (__s1_len > 1 && __result == 0) { __result = (((__const unsigned char *) (__const char *) (str))[2] - __s2[2]); if (__s1_len > 2 && __result == 0) __result = (((__const unsigned char *) (__const char *) (str))[3] - __s2[3]); } } __result; }))) : (__builtin_constant_p ("no_broadcast") && ((size_t)(const void *)(("no_broadcast") + 1) - (size_t)(const void *)("no_broadcast") == 1) && (__s2_len = strlen ("no_broadcast"), __s2_len < 4) ? (__builtin_constant_p (str) && ((size_t)(const void *)((str) + 1) - (size_t)(const void *)(str) == 1) ? __builtin_strcmp (str, "no_broadcast") : (__extension__ ({ __const unsigned char *__s1 = (__const unsigned char *) (__const char *) (str); register int __result = __s1[0] - ((__const unsigned char *) (__const char *) ("no_broadcast"))[0]; if (__s2_len > 0 && __result == 0) { __result = (__s1[1] - ((__const unsigned char *) (__const char *) ("no_broadcast"))[1]); if (__s2_len > 1 && __result == 0) { __result = (__s1[2] - ((__const unsigned char *) (__const char *) ("no_broadcast"))[2]); if (__s2_len > 2 && __result == 0) __result = (__s1[3] - ((__const unsigned char *) (__const char *) ("no_broadcast"))[3]); } } __result; }))) : __builtin_strcmp (str, "no_broadcast")))); }) == 0) { > flag = 0x08000000; > } > break; > } > break; > case 'r': > if (length > 4) switch (str[4]) { > case 'o': > if (__extension__ ({ size_t __s1_len, __s2_len; (__builtin_constant_p (str) && __builtin_constant_p ("readonly") && (__s1_len = strlen (str), __s2_len = strlen ("readonly"), (!((size_t)(const void *)((str) + 1) - (size_t)(const void *)(str) == 1) || __s1_len >= 4) && (!((size_t)(const void *)(("readonly") + 1) - (size_t)(const void *)("readonly") == 1) || __s2_len >= 4)) ? __builtin_strcmp (str, "readonly") : (__builtin_constant_p (str) && ((size_t)(const void *)((str) + 1) - (size_t)(const void *)(str) == 1) && (__s1_len = strlen (str), __s1_len < 4) ? (__builtin_constant_p ("readonly") && ((size_t)(const void *)(("readonly") + 1) - (size_t)(const void *)("readonly") == 1) ? __builtin_strcmp (str, "readonly") : (__extension__ ({ __const unsigned char *__s2 = (__const unsigned char *) (__const char *) ("readonly"); register int __result = (((__const unsigned char *) (__const char *) (str))[0] - __s2[0]); if (__s1_len > 0 && __result == 0) { __result = (((__const unsigned char *) (__const char *) (str))[1] - __s2[1]); if (__s1_len > 1 && __result == 0) { __result = (((__const unsigned char *) (__const char *) (str))[2] - __s2[2]); if (__s1_len > 2 && __result == 0) __result = (((__const unsigned char *) (__const char *) (str))[3] - __s2[3]); } } __result; }))) : (__builtin_constant_p ("readonly") && ((size_t)(const void *)(("readonly") + 1) - (size_t)(const void *)("readonly") == 1) && (__s2_len = strlen ("readonly"), __s2_len < 4) ? (__builtin_constant_p (str) && ((size_t)(const void *)((str) + 1) - (size_t)(const void *)(str) == 1) ? __builtin_strcmp (str, "readonly") : (__extension__ ({ __const unsigned char *__s1 = (__const unsigned char *) (__const char *) (str); register int __result = __s1[0] - ((__const unsigned char *) (__const char *) ("readonly"))[0]; if (__s2_len > 0 && __result == 0) { __result = (__s1[1] - ((__const unsigned char *) (__const char *) ("readonly"))[1]); if (__s2_len > 1 && __result == 0) { __result = (__s1[2] - ((__const unsigned char *) (__const char *) ("readonly"))[2]); if (__s2_len > 2 && __result == 0) __result = (__s1[3] - ((__const unsigned char *) (__const char *) ("readonly"))[3]); } } __result; }))) : __builtin_strcmp (str, "readonly")))); }) == 0) { > flag = 0x00020000; > } > break; > case 'w': > if (__extension__ ({ size_t __s1_len, __s2_len; (__builtin_constant_p (str) && __builtin_constant_p ("readwrite") && (__s1_len = strlen (str), __s2_len = strlen ("readwrite"), (!((size_t)(const void *)((str) + 1) - (size_t)(const void *)(str) == 1) || __s1_len >= 4) && (!((size_t)(const void *)(("readwrite") + 1) - (size_t)(const void *)("readwrite") == 1) || __s2_len >= 4)) ? __builtin_strcmp (str, "readwrite") : (__builtin_constant_p (str) && ((size_t)(const void *)((str) + 1) - (size_t)(const void *)(str) == 1) && (__s1_len = strlen (str), __s1_len < 4) ? (__builtin_constant_p ("readwrite") && ((size_t)(const void *)(("readwrite") + 1) - (size_t)(const void *)("readwrite") == 1) ? __builtin_strcmp (str, "readwrite") : (__extension__ ({ __const unsigned char *__s2 = (__const unsigned char *) (__const char *) ("readwrite"); register int __result = (((__const unsigned char *) (__const char *) (str))[0] - __s2[0]); if (__s1_len > 0 && __result == 0) { __result = (((__const unsigned char *) (__const char *) (str))[1] - __s2[1]); if (__s1_len > 1 && __result == 0) { __result = (((__const unsigned char *) (__const char *) (str))[2] - __s2[2]); if (__s1_len > 2 && __result == 0) __result = (((__const unsigned char *) (__const char *) (str))[3] - __s2[3]); } } __result; }))) : (__builtin_constant_p ("readwrite") && ((size_t)(const void *)(("readwrite") + 1) - (size_t)(const void *)("readwrite") == 1) && (__s2_len = strlen ("readwrite"), __s2_len < 4) ? (__builtin_constant_p (str) && ((size_t)(const void *)((str) + 1) - (size_t)(const void *)(str) == 1) ? __builtin_strcmp (str, "readwrite") : (__extension__ ({ __const unsigned char *__s1 = (__const unsigned char *) (__const char *) (str); register int __result = __s1[0] - ((__const unsigned char *) (__const char *) ("readwrite"))[0]; if (__s2_len > 0 && __result == 0) { __result = (__s1[1] - ((__const unsigned char *) (__const char *) ("readwrite"))[1]); if (__s2_len > 1 && __result == 0) { __result = (__s1[2] - ((__const unsigned char *) (__const char *) ("readwrite"))[2]); if (__s2_len > 2 && __result == 0) __result = (__s1[3] - ((__const unsigned char *) (__const char *) ("readwrite"))[3]); } } __result; }))) : __builtin_strcmp (str, "readwrite")))); }) == 0) { > flag = 0x00010000; > } > break; > } > break; > case 'u': > if (__extension__ ({ size_t __s1_len, __s2_len; (__builtin_constant_p (str) && __builtin_constant_p ("updateifcopy") && (__s1_len = strlen (str), __s2_len = strlen ("updateifcopy"), (!((size_t)(const void *)((str) + 1) - (size_t)(const void *)(str) == 1) || __s1_len >= 4) && (!((size_t)(const void *)(("updateifcopy") + 1) - (size_t)(const void *)("updateifcopy") == 1) || __s2_len >= 4)) ? __builtin_strcmp (str, "updateifcopy") : (__builtin_constant_p (str) && ((size_t)(const void *)((str) + 1) - (size_t)(const void *)(str) == 1) && (__s1_len = strlen (str), __s1_len < 4) ? (__builtin_constant_p ("updateifcopy") && ((size_t)(const void *)(("updateifcopy") + 1) - (size_t)(const void *)("updateifcopy") == 1) ? __builtin_strcmp (str, "updateifcopy") : (__extension__ ({ __const unsigned char *__s2 = (__const unsigned char *) (__const char *) ("updateifcopy"); register int __result = (((__const unsigned char *) (__const char *) (str))[0] - __s2[0]); if (__s1_len > 0 && __result == 0) { __result = (((__const unsigned char *) (__const char *) (str))[1] - __s2[1]); if (__s1_len > 1 && __result == 0) { __result = (((__const unsigned char *) (__const char *) (str))[2] - __s2[2]); if (__s1_len > 2 && __result == 0) __result = (((__const unsigned char *) (__const char *) (str))[3] - __s2[3]); } } __result; }))) : (__builtin_constant_p ("updateifcopy") && ((size_t)(const void *)(("updateifcopy") + 1) - (size_t)(const void *)("updateifcopy") == 1) && (__s2_len = strlen ("updateifcopy"), __s2_len < 4) ? (__builtin_constant_p (str) && ((size_t)(const void *)((str) + 1) - (size_t)(const void *)(str) == 1) ? __builtin_strcmp (str, "updateifcopy") : (__extension__ ({ __const unsigned char *__s1 = (__const unsigned char *) (__const char *) (str); register int __result = __s1[0] - ((__const unsigned char *) (__const char *) ("updateifcopy"))[0]; if (__s2_len > 0 && __result == 0) { __result = (__s1[1] - ((__const unsigned char *) (__const char *) ("updateifcopy"))[1]); if (__s2_len > 1 && __result == 0) { __result = (__s1[2] - ((__const unsigned char *) (__const char *) ("updateifcopy"))[2]); if (__s2_len > 2 && __result == 0) __result = (__s1[3] - ((__const unsigned char *) (__const char *) ("updateifcopy"))[3]); } } __result; }))) : __builtin_strcmp (str, "updateifcopy")))); }) == 0) { > flag = 0x00800000; > } > break; > case 'w': > if (__extension__ ({ size_t __s1_len, __s2_len; (__builtin_constant_p (str) && __builtin_constant_p ("writeonly") && (__s1_len = strlen (str), __s2_len = strlen ("writeonly"), (!((size_t)(const void *)((str) + 1) - (size_t)(const void *)(str) == 1) || __s1_len >= 4) && (!((size_t)(const void *)(("writeonly") + 1) - (size_t)(const void *)("writeonly") == 1) || __s2_len >= 4)) ? __builtin_strcmp (str, "writeonly") : (__builtin_constant_p (str) && ((size_t)(const void *)((str) + 1) - (size_t)(const void *)(str) == 1) && (__s1_len = strlen (str), __s1_len < 4) ? (__builtin_constant_p ("writeonly") && ((size_t)(const void *)(("writeonly") + 1) - (size_t)(const void *)("writeonly") == 1) ? __builtin_strcmp (str, "writeonly") : (__extension__ ({ __const unsigned char *__s2 = (__const unsigned char *) (__const char *) ("writeonly"); register int __result = (((__const unsigned char *) (__const char *) (str))[0] - __s2[0]); if (__s1_len > 0 && __result == 0) { __result = (((__const unsigned char *) (__const char *) (str))[1] - __s2[1]); if (__s1_len > 1 && __result == 0) { __result = (((__const unsigned char *) (__const char *) (str))[2] - __s2[2]); if (__s1_len > 2 && __result == 0) __result = (((__const unsigned char *) (__const char *) (str))[3] - __s2[3]); } } __result; }))) : (__builtin_constant_p ("writeonly") && ((size_t)(const void *)(("writeonly") + 1) - (size_t)(const void *)("writeonly") == 1) && (__s2_len = strlen ("writeonly"), __s2_len < 4) ? (__builtin_constant_p (str) && ((size_t)(const void *)((str) + 1) - (size_t)(const void *)(str) == 1) ? __builtin_strcmp (str, "writeonly") : (__extension__ ({ __const unsigned char *__s1 = (__const unsigned char *) (__const char *) (str); register int __result = __s1[0] - ((__const unsigned char *) (__const char *) ("writeonly"))[0]; if (__s2_len > 0 && __result == 0) { __result = (__s1[1] - ((__const unsigned char *) (__const char *) ("writeonly"))[1]); if (__s2_len > 1 && __result == 0) { __result = (__s1[2] - ((__const unsigned char *) (__const char *) ("writeonly"))[2]); if (__s2_len > 2 && __result == 0) __result = (__s1[3] - ((__const unsigned char *) (__const char *) ("writeonly"))[3]); } } __result; }))) : __builtin_strcmp (str, "writeonly")))); }) == 0) { > flag = 0x00040000; > } > break; > } > if (flag == 0) { > PyErr_Format(PyExc_ValueError, > "Unexpected per-op iterator flag \"%s\"", str); > do { if ( --((PyObject*)(f))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(f)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(f)))); } while (0); > return 0; > } > else { > *op_flags |= flag; > } > do { if ( --((PyObject*)(f))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(f)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(f)))); } while (0); > } > > return 1; >} > >static int >npyiter_convert_op_flags_array(PyObject *op_flags_in, > npy_uint32 *op_flags_array, npy_intp nop) >{ > npy_intp iop; > > if (!((((((PyObject*)(op_flags_in))->ob_type))->tp_flags & ((1L<<26))) != 0) && !((((((PyObject*)(op_flags_in))->ob_type))->tp_flags & ((1L<<25))) != 0)) { > PyErr_SetString(PyExc_ValueError, > "op_flags must be a tuple or array of per-op flag-tuples"); > return 0; > } > > if (PySequence_Size(op_flags_in) != nop) { > goto try_single_flags; > } > > for (iop = 0; iop < nop; ++iop) { > PyObject *f = PySequence_GetItem(op_flags_in, iop); > if (f == ((void *)0)) { > return 0; > } > > if (iop == 0 && (((((((PyObject*)(f))->ob_type))->tp_flags & ((1L<<27))) != 0) || ((((((PyObject*)(f))->ob_type))->tp_flags & ((1L<<28))) != 0))) { > do { if ( --((PyObject*)(f))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(f)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(f)))); } while (0); > goto try_single_flags; > } > if (NpyIter_OpFlagsConverter(f, > &op_flags_array[iop]) != 1) { > do { if ( --((PyObject*)(f))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(f)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(f)))); } while (0); > return 0; > } > > do { if ( --((PyObject*)(f))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(f)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(f)))); } while (0); > } > > return 1; > >try_single_flags: > if (NpyIter_OpFlagsConverter(op_flags_in, > &op_flags_array[0]) != 1) { > return 0; > } > > for (iop = 1; iop < nop; ++iop) { > op_flags_array[iop] = op_flags_array[0]; > } > > return 1; >} > >static int >npyiter_convert_dtypes(PyObject *op_dtypes_in, > PyArray_Descr **op_dtypes, > npy_intp nop) >{ > npy_intp iop; > > > > > > if ((!((((((PyObject*)(op_dtypes_in))->ob_type))->tp_flags & ((1L<<26))) != 0) && !((((((PyObject*)(op_dtypes_in))->ob_type))->tp_flags & ((1L<<25))) != 0)) || > PySequence_Size(op_dtypes_in) != nop) { > goto try_single_dtype; > } > > for (iop = 0; iop < nop; ++iop) { > PyObject *dtype = PySequence_GetItem(op_dtypes_in, iop); > if (dtype == ((void *)0)) { > npy_intp i; > for (i = 0; i < iop; ++i ) { > do { if ((op_dtypes[i]) == ((void *)0)) ; else do { if ( --((PyObject*)(op_dtypes[i]))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(op_dtypes[i])))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(op_dtypes[i])))); } while (0); } while (0); > } > return 0; > } > > > if (PyArray_DescrConverter2(dtype, &op_dtypes[iop]) != 1) { > npy_intp i; > for (i = 0; i < iop; ++i ) { > do { if ((op_dtypes[i]) == ((void *)0)) ; else do { if ( --((PyObject*)(op_dtypes[i]))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(op_dtypes[i])))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(op_dtypes[i])))); } while (0); } while (0); > } > do { if ( --((PyObject*)(dtype))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(dtype)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(dtype)))); } while (0); > PyErr_Clear(); > goto try_single_dtype; > } > > do { if ( --((PyObject*)(dtype))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(dtype)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(dtype)))); } while (0); > } > > return 1; > >try_single_dtype: > if (PyArray_DescrConverter2(op_dtypes_in, &op_dtypes[0]) == 1) { > for (iop = 1; iop < nop; ++iop) { > op_dtypes[iop] = op_dtypes[0]; > do { if ((op_dtypes[iop]) == ((void *)0)) ; else ( ((PyObject*)(op_dtypes[iop]))->ob_refcnt++); } while (0); > } > return 1; > } > > return 0; >} > >static int >npyiter_convert_op_axes(PyObject *op_axes_in, npy_intp nop, > int **op_axes, int *oa_ndim) >{ > PyObject *a; > int iop; > > if ((!((((((PyObject*)(op_axes_in))->ob_type))->tp_flags & ((1L<<26))) != 0) && !((((((PyObject*)(op_axes_in))->ob_type))->tp_flags & ((1L<<25))) != 0)) || > PySequence_Size(op_axes_in) != nop) { > PyErr_SetString(PyExc_ValueError, > "op_axes must be a tuple/list matching the number of ops"); > return 0; > } > > *oa_ndim = 0; > > > for (iop = 0; iop < nop; ++iop) { > int idim; > a = PySequence_GetItem(op_axes_in, iop); > if (a == ((void *)0)) { > return 0; > } > if (a == (&_Py_NoneStruct)) { > op_axes[iop] = ((void *)0); > } else { > if (!((((((PyObject*)(a))->ob_type))->tp_flags & ((1L<<26))) != 0) && !((((((PyObject*)(a))->ob_type))->tp_flags & ((1L<<25))) != 0)) { > PyErr_SetString(PyExc_ValueError, > "Each entry of op_axes must be None " > "or a tuple/list"); > do { if ( --((PyObject*)(a))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(a)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(a)))); } while (0); > return 0; > } > if (*oa_ndim == 0) { > *oa_ndim = PySequence_Size(a); > if (*oa_ndim == 0) { > PyErr_SetString(PyExc_ValueError, > "op_axes must have at least one dimension"); > return 0; > } > if (*oa_ndim > 32) { > PyErr_SetString(PyExc_ValueError, > "Too many dimensions in op_axes"); > return 0; > } > } > if (PySequence_Size(a) != *oa_ndim) { > PyErr_SetString(PyExc_ValueError, > "Each entry of op_axes must have the same size"); > do { if ( --((PyObject*)(a))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(a)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(a)))); } while (0); > return 0; > } > for (idim = 0; idim < *oa_ndim; ++idim) { > PyObject *v = PySequence_GetItem(a, idim); > if (v == ((void *)0)) { > do { if ( --((PyObject*)(a))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(a)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(a)))); } while (0); > return 0; > } > > if (v == (&_Py_NoneStruct)) { > op_axes[iop][idim] = -1; > } > else { > op_axes[iop][idim] = PyInt_AsLong(v); > if (op_axes[iop][idim]==-1 && > PyErr_Occurred()) { > do { if ( --((PyObject*)(a))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(a)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(a)))); } while (0); > do { if ( --((PyObject*)(v))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(v)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(v)))); } while (0); > return 0; > } > } > do { if ( --((PyObject*)(v))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(v)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(v)))); } while (0); > } > do { if ( --((PyObject*)(a))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(a)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(a)))); } while (0); > } > } > > if (*oa_ndim == 0) { > PyErr_SetString(PyExc_ValueError, > "If op_axes is provided, at least one list of axes " > "must be contained within it"); > return 0; > } > > return 1; >} > > > > > > >static int >npyiter_convert_ops(PyObject *op_in, PyObject *op_flags_in, > PyArrayObject **op, npy_uint32 *op_flags, > int *nop_out) >{ > int iop, nop; > > > if (((((((PyObject*)(op_in))->ob_type))->tp_flags & ((1L<<26))) != 0) || ((((((PyObject*)(op_in))->ob_type))->tp_flags & ((1L<<25))) != 0)) { > nop = PySequence_Size(op_in); > if (nop == 0) { > PyErr_SetString(PyExc_ValueError, > "Must provide at least one operand"); > return 0; > } > if (nop > 32) { > PyErr_SetString(PyExc_ValueError, "Too many operands"); > return 0; > } > > for (iop = 0; iop < nop; ++iop) { > PyObject *item = PySequence_GetItem(op_in, iop); > if (item == ((void *)0)) { > npy_intp i; > for (i = 0; i < iop; ++i) { > do { if ((op[i]) == ((void *)0)) ; else do { if ( --((PyObject*)(op[i]))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(op[i])))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(op[i])))); } while (0); } while (0); > } > return 0; > } > else if (item == (&_Py_NoneStruct)) { > do { if ( --((PyObject*)(item))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(item)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(item)))); } while (0); > item = ((void *)0); > } > > op[iop] = (PyArrayObject *)item; > } > } > else { > nop = 1; > > ( ((PyObject*)(op_in))->ob_refcnt++); > op[0] = (PyArrayObject *)op_in; > } > > *nop_out = nop; > > > if (op_flags_in == ((void *)0) || op_flags_in == (&_Py_NoneStruct)) { > for (iop = 0; iop < nop; ++iop) { > > > > > > if (op[iop] == ((void *)0)) { > op_flags[iop] = 0x00040000 | 0x01000000; > } > else { > op_flags[iop] = 0x00020000; > } > } > } > else if (npyiter_convert_op_flags_array(op_flags_in, > op_flags, nop) != 1) { > for (iop = 0; iop < nop; ++iop) { > do { if ((op[iop]) == ((void *)0)) ; else do { if ( --((PyObject*)(op[iop]))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(op[iop])))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(op[iop])))); } while (0); } while (0); > } > *nop_out = 0; > return 0; > } > > > for (iop = 0; iop < nop; ++iop) { > if (op[iop] != ((void *)0)) { > PyArrayObject *ao; > int fromanyflags = 0; > > if (op_flags[iop]&(0x00010000|0x00040000)) { > fromanyflags = 0x1000; > } > ao = (PyArrayObject *)PyArray_FromAny((PyObject *)op[iop], > ((void *)0), 0, 0, fromanyflags, ((void *)0)); > if (ao == ((void *)0)) { > if (PyErr_Occurred() && > PyErr_ExceptionMatches(PyExc_TypeError)) { > PyErr_SetString(PyExc_TypeError, > "Iterator operand is flagged as writeable, " > "but is an object which cannot be written " > "back to via UPDATEIFCOPY"); > } > for (iop = 0; iop < nop; ++iop) { > do { if ( --((PyObject*)(op[iop]))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(op[iop])))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(op[iop])))); } while (0); > } > *nop_out = 0; > return 0; > } > do { if ( --((PyObject*)(op[iop]))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(op[iop])))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(op[iop])))); } while (0); > op[iop] = ao; > } > } > > return 1; >} > >static int >npyiter_init(NewNpyArrayIterObject *self, PyObject *args, PyObject *kwds) >{ > static char *kwlist[] = {"op", "flags", "op_flags", "op_dtypes", > "order", "casting", "op_axes", "itershape", > "buffersize", > ((void *)0)}; > > PyObject *op_in = ((void *)0), *op_flags_in = ((void *)0), > *op_dtypes_in = ((void *)0), *op_axes_in = ((void *)0); > > int iop, nop = 0; > PyArrayObject *op[32]; > npy_uint32 flags = 0; > NPY_ORDER order = NPY_KEEPORDER; > NPY_CASTING casting = NPY_SAFE_CASTING; > npy_uint32 op_flags[32]; > PyArray_Descr *op_request_dtypes[32]; > int oa_ndim = 0; > int op_axes_arrays[32][32]; > int *op_axes[32]; > PyArray_Dims itershape = {((void *)0), 0}; > int buffersize = 0; > > if (self->iter != ((void *)0)) { > PyErr_SetString(PyExc_ValueError, > "Iterator was already initialized"); > return -1; > } > > if (!_PyArg_ParseTupleAndKeywords_SizeT(args, kwds, "O|O&OOO&O&OO&i", kwlist, > &op_in, > NpyIter_GlobalFlagsConverter, &flags, > &op_flags_in, > &op_dtypes_in, > npyiter_order_converter, &order, > PyArray_CastingConverter, &casting, > &op_axes_in, > PyArray_IntpConverter, &itershape, > &buffersize)) { > if (itershape.ptr != ((void *)0)) { > PyMem_Free(itershape.ptr); > } > return -1; > } > > > memset(op_request_dtypes, 0, sizeof(op_request_dtypes)); > > > if (npyiter_convert_ops(op_in, op_flags_in, op, op_flags, &nop) > != 1) { > goto fail; > } > > > if (op_dtypes_in != ((void *)0) && op_dtypes_in != (&_Py_NoneStruct) && > npyiter_convert_dtypes(op_dtypes_in, > op_request_dtypes, nop) != 1) { > goto fail; > } > > > if (op_axes_in != ((void *)0) && op_axes_in != (&_Py_NoneStruct)) { > > for (iop = 0; iop < nop; ++iop) { > op_axes[iop] = op_axes_arrays[iop]; > } > > if (npyiter_convert_op_axes(op_axes_in, nop, > op_axes, &oa_ndim) != 1) { > goto fail; > } > } > > if (itershape.len > 0) { > if (oa_ndim == 0) { > oa_ndim = itershape.len; > memset(op_axes, 0, sizeof(op_axes[0])*oa_ndim); > } > else if (oa_ndim != itershape.len) { > PyErr_SetString(PyExc_ValueError, > "'op_axes' and 'itershape' must have the same number " > "of entries equal to the iterator ndim"); > goto fail; > } > } > else if (itershape.ptr != ((void *)0)) { > PyMem_Free(itershape.ptr); > itershape.ptr = ((void *)0); > } > > self->iter = NpyIter_AdvancedNew(nop, op, flags, order, casting, op_flags, > op_request_dtypes, > oa_ndim, oa_ndim > 0 ? op_axes : ((void *)0), > itershape.ptr, > buffersize); > > if (self->iter == ((void *)0)) { > goto fail; > } > > > npyiter_cache_values(self); > > if (NpyIter_GetIterSize(self->iter) == 0) { > self->started = 1; > self->finished = 1; > } > else { > self->started = 0; > self->finished = 0; > } > > if (itershape.ptr != ((void *)0)) { > PyMem_Free(itershape.ptr); > } > > > for (iop = 0; iop < nop; ++iop) { > do { if ((op[iop]) == ((void *)0)) ; else do { if ( --((PyObject*)(op[iop]))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(op[iop])))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(op[iop])))); } while (0); } while (0); > do { if ((op_request_dtypes[iop]) == ((void *)0)) ; else do { if ( --((PyObject*)(op_request_dtypes[iop]))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(op_request_dtypes[iop])))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(op_request_dtypes[iop])))); } while (0); } while (0); > } > > return 0; > >fail: > if (itershape.ptr != ((void *)0)) { > PyMem_Free(itershape.ptr); > } > for (iop = 0; iop < nop; ++iop) { > do { if ((op[iop]) == ((void *)0)) ; else do { if ( --((PyObject*)(op[iop]))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(op[iop])))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(op[iop])))); } while (0); } while (0); > do { if ((op_request_dtypes[iop]) == ((void *)0)) ; else do { if ( --((PyObject*)(op_request_dtypes[iop]))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(op_request_dtypes[iop])))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(op_request_dtypes[iop])))); } while (0); } while (0); > } > return -1; >} > >static PyObject * >NpyIter_NestedIters(PyObject *(__NPY_UNUSED_TAGGEDself) __attribute__ ((__unused__)), > PyObject *args, PyObject *kwds) >{ > static char *kwlist[] = {"op", "axes", "flags", "op_flags", > "op_dtypes", "order", > "casting", "buffersize", > ((void *)0)}; > > PyObject *op_in = ((void *)0), *axes_in = ((void *)0), > *op_flags_in = ((void *)0), *op_dtypes_in = ((void *)0); > > int iop, nop = 0, inest, nnest = 0; > PyArrayObject *op[32]; > npy_uint32 flags = 0, flags_inner = 0; > NPY_ORDER order = NPY_KEEPORDER; > NPY_CASTING casting = NPY_SAFE_CASTING; > npy_uint32 op_flags[32], op_flags_inner[32]; > PyArray_Descr *op_request_dtypes[32], > *op_request_dtypes_inner[32]; > int op_axes_data[32]; > int *nested_op_axes[32]; > int nested_naxes[32], iaxes, naxes; > int negones[32]; > char used_axes[32]; > int buffersize = 0; > > PyObject *ret = ((void *)0); > > if (!_PyArg_ParseTupleAndKeywords_SizeT(args, kwds, "OO|O&OOO&O&i", kwlist, > &op_in, > &axes_in, > NpyIter_GlobalFlagsConverter, &flags, > &op_flags_in, > &op_dtypes_in, > npyiter_order_converter, &order, > PyArray_CastingConverter, &casting, > &buffersize)) { > return ((void *)0); > } > > > if (!((((((PyObject*)(axes_in))->ob_type))->tp_flags & ((1L<<26))) != 0) && !((((((PyObject*)(axes_in))->ob_type))->tp_flags & ((1L<<25))) != 0)) { > PyErr_SetString(PyExc_ValueError, > "axes must be a tuple of axis arrays"); > return ((void *)0); > } > nnest = PySequence_Size(axes_in); > if (nnest < 2) { > PyErr_SetString(PyExc_ValueError, > "axes must have at least 2 entries for nested iteration"); > return ((void *)0); > } > naxes = 0; > memset(used_axes, 0, 32); > for (inest = 0; inest < nnest; ++inest) { > PyObject *item = PySequence_GetItem(axes_in, inest); > npy_intp i; > if (item == ((void *)0)) { > return ((void *)0); > } > if (!((((((PyObject*)(item))->ob_type))->tp_flags & ((1L<<26))) != 0) && !((((((PyObject*)(item))->ob_type))->tp_flags & ((1L<<25))) != 0)) { > PyErr_SetString(PyExc_ValueError, > "Each item in axes must be a an integer tuple"); > do { if ( --((PyObject*)(item))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(item)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(item)))); } while (0); > return ((void *)0); > } > nested_naxes[inest] = PySequence_Size(item); > if (naxes + nested_naxes[inest] > 32) { > PyErr_SetString(PyExc_ValueError, > "Too many axes given"); > do { if ( --((PyObject*)(item))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(item)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(item)))); } while (0); > return ((void *)0); > } > for (i = 0; i < nested_naxes[inest]; ++i) { > PyObject *v = PySequence_GetItem(item, i); > npy_intp axis; > if (v == ((void *)0)) { > do { if ( --((PyObject*)(item))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(item)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(item)))); } while (0); > return ((void *)0); > } > axis = PyInt_AsLong(v); > do { if ( --((PyObject*)(v))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(v)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(v)))); } while (0); > if (axis < 0 || axis >= 32) { > PyErr_SetString(PyExc_ValueError, > "An axis is out of bounds"); > do { if ( --((PyObject*)(item))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(item)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(item)))); } while (0); > return ((void *)0); > } > > > > > if (used_axes[axis] != 0) { > PyErr_SetString(PyExc_ValueError, > "An axis is used more than once"); > do { if ( --((PyObject*)(item))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(item)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(item)))); } while (0); > return ((void *)0); > } > used_axes[axis] = 1; > op_axes_data[naxes+i] = axis; > } > nested_op_axes[inest] = &op_axes_data[naxes]; > naxes += nested_naxes[inest]; > do { if ( --((PyObject*)(item))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(item)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(item)))); } while (0); > } > > > if (npyiter_convert_ops(op_in, op_flags_in, op, op_flags, &nop) > != 1) { > return ((void *)0); > } > > > memset(op_request_dtypes, 0, sizeof(op_request_dtypes[0])*nop); > memset(op_request_dtypes_inner, 0, > sizeof(op_request_dtypes_inner[0])*nop); > > > if (op_dtypes_in != ((void *)0) && op_dtypes_in != (&_Py_NoneStruct) && > npyiter_convert_dtypes(op_dtypes_in, > op_request_dtypes, nop) != 1) { > goto fail; > } > > ret = PyTuple_New(nnest); > if (ret == ((void *)0)) { > goto fail; > } > > > for (iaxes = 0; iaxes < naxes; ++iaxes) { > negones[iaxes] = -1; > } > > > > > > > for (iop = 0; iop < nop; ++iop) { > if ((op_flags[iop]&0x01000000) && op[iop] != ((void *)0)) { > op_flags[iop] &= ~0x01000000; > } > > > > > > op_flags_inner[iop] = op_flags[iop] & ~(0x00400000| > 0x00800000| > 0x01000000); > > > > > > if ((flags&(0x00000200)) && > !(op_flags[iop]&(0x00400000| > 0x00800000| > 0x01000000))) { > op_flags[iop] &= ~(0x00080000|0x00100000|0x00200000); > op_request_dtypes_inner[iop] = op_request_dtypes[iop]; > op_request_dtypes[iop] = ((void *)0); > } > } > > > flags_inner = flags&~0x00000010; > flags &= ~(0x00000008| > 0x00000200); > > for (inest = 0; inest < nnest; ++inest) { > NewNpyArrayIterObject *iter; > int *op_axes_nop[32]; > > > > > > for (iop = 0; iop < nop; ++iop) { > if (op_flags[iop]&0x01000000) { > if (inest == 0) { > op_axes_nop[iop] = ((void *)0); > } > else { > op_axes_nop[iop] = negones; > } > } > else { > op_axes_nop[iop] = nested_op_axes[inest]; > } > } ># 1088 "numpy/core/src/multiarray/nditer_pywrap.c" > iter = (NewNpyArrayIterObject *)npyiter_new(&NpyIter_Type, ((void *)0), ((void *)0)); > if (iter == ((void *)0)) { > do { if ( --((PyObject*)(ret))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(ret)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(ret)))); } while (0); > goto fail; > } > > if (inest < nnest-1) { > iter->iter = NpyIter_AdvancedNew(nop, op, flags, order, > casting, op_flags, op_request_dtypes, > nested_naxes[inest], op_axes_nop, > ((void *)0), > 0); > } > else { > iter->iter = NpyIter_AdvancedNew(nop, op, flags_inner, order, > casting, op_flags_inner, > op_request_dtypes_inner, > nested_naxes[inest], op_axes_nop, > ((void *)0), > buffersize); > } > > if (iter->iter == ((void *)0)) { > do { if ( --((PyObject*)(ret))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(ret)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(ret)))); } while (0); > goto fail; > } > > > npyiter_cache_values(iter); > > if (NpyIter_GetIterSize(iter->iter) == 0) { > iter->started = 1; > iter->finished = 1; > } > else { > iter->started = 0; > iter->finished = 0; > } > > > > > > if (inest == 0) { > PyArrayObject **operands = NpyIter_GetOperandArray(iter->iter); > for (iop = 0; iop < nop; ++iop) { > if (op[iop] != operands[iop]) { > do { if ((op[iop]) == ((void *)0)) ; else do { if ( --((PyObject*)(op[iop]))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(op[iop])))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(op[iop])))); } while (0); } while (0); > op[iop] = operands[iop]; > ( ((PyObject*)(op[iop]))->ob_refcnt++); > } > > > > > > op_flags[iop] &= ~(0x00400000| > 0x00800000); > } > > flags &= ~0x00000010; > } > > (((PyTupleObject *)(ret))->ob_item[inest] = (PyObject *)iter); > } > > > for (iop = 0; iop < nop; ++iop) { > do { if ((op[iop]) == ((void *)0)) ; else do { if ( --((PyObject*)(op[iop]))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(op[iop])))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(op[iop])))); } while (0); } while (0); > do { if ((op_request_dtypes[iop]) == ((void *)0)) ; else do { if ( --((PyObject*)(op_request_dtypes[iop]))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(op_request_dtypes[iop])))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(op_request_dtypes[iop])))); } while (0); } while (0); > do { if ((op_request_dtypes_inner[iop]) == ((void *)0)) ; else do { if ( --((PyObject*)(op_request_dtypes_inner[iop]))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(op_request_dtypes_inner[iop])))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(op_request_dtypes_inner[iop])))); } while (0); } while (0); > } > > > for (inest = 0; inest < nnest-1; ++inest) { > NewNpyArrayIterObject *iter; > iter = (NewNpyArrayIterObject *)(((PyTupleObject *)(ret))->ob_item[inest]); > > > > > iter->nested_child = > (NewNpyArrayIterObject *)(((PyTupleObject *)(ret))->ob_item[inest+1]); > ( ((PyObject*)(iter->nested_child))->ob_refcnt++); > > > > > if (NpyIter_ResetBasePointers(iter->nested_child->iter, > iter->dataptrs, ((void *)0)) != 1) { > do { if ( --((PyObject*)(ret))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(ret)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(ret)))); } while (0); > return ((void *)0); > } > } > > return ret; > >fail: > for (iop = 0; iop < nop; ++iop) { > do { if ((op[iop]) == ((void *)0)) ; else do { if ( --((PyObject*)(op[iop]))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(op[iop])))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(op[iop])))); } while (0); } while (0); > do { if ((op_request_dtypes[iop]) == ((void *)0)) ; else do { if ( --((PyObject*)(op_request_dtypes[iop]))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(op_request_dtypes[iop])))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(op_request_dtypes[iop])))); } while (0); } while (0); > do { if ((op_request_dtypes_inner[iop]) == ((void *)0)) ; else do { if ( --((PyObject*)(op_request_dtypes_inner[iop]))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(op_request_dtypes_inner[iop])))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(op_request_dtypes_inner[iop])))); } while (0); } while (0); > } > return ((void *)0); >} > >static void >npyiter_dealloc(NewNpyArrayIterObject *self) >{ > if (self->iter) { > NpyIter_Deallocate(self->iter); > self->iter = ((void *)0); > do { if ((self->nested_child) == ((void *)0)) ; else do { if ( --((PyObject*)(self->nested_child))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(self->nested_child)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(self->nested_child)))); } while (0); } while (0); > self->nested_child = ((void *)0); > } > (((PyObject*)(self))->ob_type)->tp_free((PyObject*)self); >} > >static int >npyiter_resetbasepointers(NewNpyArrayIterObject *self) >{ > while (self->nested_child) { > if (NpyIter_ResetBasePointers(self->nested_child->iter, > self->dataptrs, ((void *)0)) != 1) { > return 0; > } > self = self->nested_child; > if (NpyIter_GetIterSize(self->iter) == 0) { > self->started = 1; > self->finished = 1; > } > else { > self->started = 0; > self->finished = 0; > } > } > > return 1; >} > >static PyObject * >npyiter_reset(NewNpyArrayIterObject *self) >{ > if (self->iter == ((void *)0)) { > PyErr_SetString(PyExc_ValueError, > "Iterator is invalid"); > return ((void *)0); > } > > if (NpyIter_Reset(self->iter, ((void *)0)) != 1) { > return ((void *)0); > } > if (NpyIter_GetIterSize(self->iter) == 0) { > self->started = 1; > self->finished = 1; > } > else { > self->started = 0; > self->finished = 0; > } > > if (self->get_multi_index == ((void *)0) && NpyIter_HasMultiIndex(self->iter)) { > self->get_multi_index = NpyIter_GetGetMultiIndex(self->iter, ((void *)0)); > } > > > if (npyiter_resetbasepointers(self) != 1) { > return ((void *)0); > } > > return ( ((PyObject*)((&_Py_NoneStruct)))->ob_refcnt++), (&_Py_NoneStruct); >} > > > > > >static PyObject * >npyiter_copy(NewNpyArrayIterObject *self) >{ > NewNpyArrayIterObject *iter; > > if (self->iter == ((void *)0)) { > PyErr_SetString(PyExc_ValueError, > "Iterator is invalid"); > return ((void *)0); > } > > > iter = (NewNpyArrayIterObject *)npyiter_new(&NpyIter_Type, ((void *)0), ((void *)0)); > if (iter == ((void *)0)) { > return ((void *)0); > } > > > iter->iter = NpyIter_Copy(self->iter); > if (iter->iter == ((void *)0)) { > do { if ( --((PyObject*)(iter))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(iter)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(iter)))); } while (0); > return ((void *)0); > } > > > npyiter_cache_values(iter); > > iter->started = self->started; > iter->finished = self->finished; > > return (PyObject *)iter; >} > >static PyObject * >npyiter_iternext(NewNpyArrayIterObject *self) >{ > if (self->iter != ((void *)0) && self->iternext != ((void *)0) && > !self->finished && self->iternext(self->iter)) { > > if (npyiter_resetbasepointers(self) != 1) { > return ((void *)0); > } > > return ( ((PyObject*)(((PyObject *) &_Py_TrueStruct)))->ob_refcnt++), ((PyObject *) &_Py_TrueStruct); > } > else { > self->finished = 1; > return ( ((PyObject*)(((PyObject *) &_Py_ZeroStruct)))->ob_refcnt++), ((PyObject *) &_Py_ZeroStruct); > } >} > >static PyObject * >npyiter_remove_axis(NewNpyArrayIterObject *self, PyObject *args) >{ > int axis = 0; > > if (self->iter == ((void *)0)) { > PyErr_SetString(PyExc_ValueError, > "Iterator is invalid"); > return ((void *)0); > } > > if (!_PyArg_ParseTuple_SizeT(args, "i", &axis)) { > return ((void *)0); > } > > if (NpyIter_RemoveAxis(self->iter, axis) != 1) { > return ((void *)0); > } > > npyiter_cache_values(self); > > if (NpyIter_GetIterSize(self->iter) == 0) { > self->started = 1; > self->finished = 1; > } > else { > self->started = 0; > self->finished = 0; > } > > return ( ((PyObject*)((&_Py_NoneStruct)))->ob_refcnt++), (&_Py_NoneStruct); >} > >static PyObject * >npyiter_remove_multi_index(NewNpyArrayIterObject *self) >{ > if (self->iter == ((void *)0)) { > PyErr_SetString(PyExc_ValueError, > "Iterator is invalid"); > return ((void *)0); > } > > NpyIter_RemoveMultiIndex(self->iter); > > npyiter_cache_values(self); > > if (NpyIter_GetIterSize(self->iter) == 0) { > self->started = 1; > self->finished = 1; > } > else { > self->started = 0; > self->finished = 0; > } > > return ( ((PyObject*)((&_Py_NoneStruct)))->ob_refcnt++), (&_Py_NoneStruct); >} > >static PyObject * >npyiter_enable_external_loop(NewNpyArrayIterObject *self) >{ > if (self->iter == ((void *)0)) { > PyErr_SetString(PyExc_ValueError, > "Iterator is invalid"); > return ((void *)0); > } > > NpyIter_EnableExternalLoop(self->iter); > > npyiter_cache_values(self); > > if (NpyIter_GetIterSize(self->iter) == 0) { > self->started = 1; > self->finished = 1; > } > else { > self->started = 0; > self->finished = 0; > } > > return ( ((PyObject*)((&_Py_NoneStruct)))->ob_refcnt++), (&_Py_NoneStruct); >} > >static PyObject * >npyiter_debug_print(NewNpyArrayIterObject *self) >{ > if (self->iter != ((void *)0)) { > NpyIter_DebugPrint(self->iter); > } > else { > printf("Iterator: (nil)\n"); > } > > return ( ((PyObject*)((&_Py_NoneStruct)))->ob_refcnt++), (&_Py_NoneStruct); >} > >static PyObject * >npyiter_seq_item(NewNpyArrayIterObject *self, Py_ssize_t i); > >static PyObject *npyiter_value_get(NewNpyArrayIterObject *self) >{ > PyObject *ret; > > npy_intp iop, nop; > > if (self->iter == ((void *)0) || self->finished) { > PyErr_SetString(PyExc_ValueError, > "Iterator is past the end"); > return ((void *)0); > } > > nop = NpyIter_GetNOp(self->iter); > > > if (nop == 1) { > ret = npyiter_seq_item(self, 0); > } > else { > ret = PyTuple_New(nop); > if (ret == ((void *)0)) { > return ((void *)0); > } > for (iop = 0; iop < nop; ++iop) { > PyObject *a = npyiter_seq_item(self, iop); > if (a == ((void *)0)) { > do { if ( --((PyObject*)(ret))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(ret)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(ret)))); } while (0); > return ((void *)0); > } > (((PyTupleObject *)(ret))->ob_item[iop] = a); > } > } > > return ret; >} > >static PyObject *npyiter_operands_get(NewNpyArrayIterObject *self) >{ > PyObject *ret; > > npy_intp iop, nop; > PyArrayObject **operands; > > if (self->iter == ((void *)0)) { > PyErr_SetString(PyExc_ValueError, > "Iterator is invalid"); > return ((void *)0); > } > > nop = NpyIter_GetNOp(self->iter); > operands = self->operands; > > ret = PyTuple_New(nop); > if (ret == ((void *)0)) { > return ((void *)0); > } > for (iop = 0; iop < nop; ++iop) { > PyObject *operand = (PyObject *)operands[iop]; > > ( ((PyObject*)(operand))->ob_refcnt++); > (((PyTupleObject *)(ret))->ob_item[iop] = operand); > } > > return ret; >} > >static PyObject *npyiter_itviews_get(NewNpyArrayIterObject *self) >{ > PyObject *ret; > > npy_intp iop, nop; > > if (self->iter == ((void *)0)) { > PyErr_SetString(PyExc_ValueError, > "Iterator is invalid"); > return ((void *)0); > } > > nop = NpyIter_GetNOp(self->iter); > > ret = PyTuple_New(nop); > if (ret == ((void *)0)) { > return ((void *)0); > } > for (iop = 0; iop < nop; ++iop) { > PyArrayObject *view = NpyIter_GetIterView(self->iter, iop); > > if (view == ((void *)0)) { > do { if ( --((PyObject*)(ret))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(ret)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(ret)))); } while (0); > return ((void *)0); > } > (((PyTupleObject *)(ret))->ob_item[iop] = (PyObject *)view); > } > > return ret; >} > >static PyObject * >npyiter_next(NewNpyArrayIterObject *self) >{ > if (self->iter == ((void *)0) || self->iternext == ((void *)0) || self->finished) { > return ((void *)0); > } > > > > > > if (self->started) { > if (!self->iternext(self->iter)) { > self->finished = 1; > return ((void *)0); > } > > > if (npyiter_resetbasepointers(self) != 1) { > return ((void *)0); > } > } > self->started = 1; > > return npyiter_value_get(self); >}; > >static PyObject *npyiter_shape_get(NewNpyArrayIterObject *self) >{ > PyObject *ret; > npy_intp idim, ndim, shape[32]; > > if (self->iter == ((void *)0) || self->finished) { > PyErr_SetString(PyExc_ValueError, > "Iterator is past the end"); > return ((void *)0); > } > > if (NpyIter_GetShape(self->iter, shape) == 1) { > ndim = NpyIter_GetNDim(self->iter); > ret = PyTuple_New(ndim); > if (ret != ((void *)0)) { > for (idim = 0; idim < ndim; ++idim) { > (((PyTupleObject *)(ret))->ob_item[idim] = PyInt_FromLong(shape[idim])); > > } > return ret; > } > } > > return ((void *)0); >} > >static PyObject *npyiter_multi_index_get(NewNpyArrayIterObject *self) >{ > PyObject *ret; > npy_intp idim, ndim, multi_index[32]; > > if (self->iter == ((void *)0) || self->finished) { > PyErr_SetString(PyExc_ValueError, > "Iterator is past the end"); > return ((void *)0); > } > > if (self->get_multi_index != ((void *)0)) { > ndim = NpyIter_GetNDim(self->iter); > self->get_multi_index(self->iter, multi_index); > ret = PyTuple_New(ndim); > for (idim = 0; idim < ndim; ++idim) { > (((PyTupleObject *)(ret))->ob_item[idim] = PyInt_FromLong(multi_index[idim])); > > } > return ret; > } > else { > if (!NpyIter_HasMultiIndex(self->iter)) { > PyErr_SetString(PyExc_ValueError, > "Iterator is not tracking a multi-index"); > return ((void *)0); > } > else if (NpyIter_HasDelayedBufAlloc(self->iter)) { > PyErr_SetString(PyExc_ValueError, > "Iterator construction used delayed buffer allocation, " > "and no reset has been done yet"); > return ((void *)0); > } > else { > PyErr_SetString(PyExc_ValueError, > "Iterator is in an invalid state"); > return ((void *)0); > } > } >} > >static int npyiter_multi_index_set(NewNpyArrayIterObject *self, PyObject *value) >{ > npy_intp idim, ndim, multi_index[32]; > > if (self->iter == ((void *)0)) { > PyErr_SetString(PyExc_ValueError, > "Iterator is invalid"); > return -1; > } > > if (value == ((void *)0)) { > PyErr_SetString(PyExc_ValueError, > "Cannot delete the multi_index"); > return -1; > } > > if (NpyIter_HasMultiIndex(self->iter)) { > ndim = NpyIter_GetNDim(self->iter); > if (!PySequence_Check(value)) { > PyErr_SetString(PyExc_ValueError, > "multi_index must be set with a sequence"); > return -1; > } > if (PySequence_Size(value) != ndim) { > PyErr_SetString(PyExc_ValueError, > "Wrong number of indices"); > return -1; > } > for (idim = 0; idim < ndim; ++idim) { > PyObject *v = PySequence_GetItem(value, idim); > multi_index[idim] = PyInt_AsLong(v); > if (multi_index[idim]==-1 && PyErr_Occurred()) { > return -1; > } > } > if (NpyIter_GotoMultiIndex(self->iter, multi_index) != 1) { > return -1; > } > self->started = 0; > self->finished = 0; > > > if (npyiter_resetbasepointers(self) != 1) { > return -1; > } > > return 0; > } > else { > PyErr_SetString(PyExc_ValueError, > "Iterator is not tracking a multi-index"); > return -1; > } >} > >static PyObject *npyiter_index_get(NewNpyArrayIterObject *self) >{ > if (self->iter == ((void *)0) || self->finished) { > PyErr_SetString(PyExc_ValueError, > "Iterator is past the end"); > return ((void *)0); > } > > if (NpyIter_HasIndex(self->iter)) { > npy_intp ind = *NpyIter_GetIndexPtr(self->iter); > return PyInt_FromLong(ind); > } > else { > PyErr_SetString(PyExc_ValueError, > "Iterator does not have an index"); > return ((void *)0); > } >} > >static int npyiter_index_set(NewNpyArrayIterObject *self, PyObject *value) >{ > if (self->iter == ((void *)0)) { > PyErr_SetString(PyExc_ValueError, > "Iterator is invalid"); > return -1; > } > > if (value == ((void *)0)) { > PyErr_SetString(PyExc_ValueError, > "Cannot delete index"); > return -1; > } > > if (NpyIter_HasIndex(self->iter)) { > npy_intp ind; > ind = PyInt_AsLong(value); > if (ind==-1 && PyErr_Occurred()) { > return -1; > } > if (NpyIter_GotoIndex(self->iter, ind) != 1) { > return -1; > } > self->started = 0; > self->finished = 0; > > > if (npyiter_resetbasepointers(self) != 1) { > return -1; > } > > return 0; > } > else { > PyErr_SetString(PyExc_ValueError, > "Iterator does not have an index"); > return -1; > } >} > >static PyObject *npyiter_iterindex_get(NewNpyArrayIterObject *self) >{ > if (self->iter == ((void *)0) || self->finished) { > PyErr_SetString(PyExc_ValueError, > "Iterator is past the end"); > return ((void *)0); > } > > return PyInt_FromLong(NpyIter_GetIterIndex(self->iter)); >} > >static int npyiter_iterindex_set(NewNpyArrayIterObject *self, PyObject *value) >{ > npy_intp iterindex; > > if (self->iter == ((void *)0)) { > PyErr_SetString(PyExc_ValueError, > "Iterator is invalid"); > return -1; > } > > if (value == ((void *)0)) { > PyErr_SetString(PyExc_ValueError, > "Cannot delete iterindex"); > return -1; > } > > iterindex = PyInt_AsLong(value); > if (iterindex==-1 && PyErr_Occurred()) { > return -1; > } > if (NpyIter_GotoIterIndex(self->iter, iterindex) != 1) { > return -1; > } > self->started = 0; > self->finished = 0; > > > if (npyiter_resetbasepointers(self) != 1) { > return -1; > } > > return 0; >} > >static PyObject *npyiter_iterrange_get(NewNpyArrayIterObject *self) >{ > npy_intp istart = 0, iend = 0; > PyObject *ret; > > if (self->iter == ((void *)0)) { > PyErr_SetString(PyExc_ValueError, > "Iterator is invalid"); > return ((void *)0); > } > > NpyIter_GetIterIndexRange(self->iter, &istart, &iend); > > ret = PyTuple_New(2); > if (ret == ((void *)0)) { > return ((void *)0); > } > > (((PyTupleObject *)(ret))->ob_item[0] = PyInt_FromLong(istart)); > (((PyTupleObject *)(ret))->ob_item[1] = PyInt_FromLong(iend)); > > return ret; >} > >static int npyiter_iterrange_set(NewNpyArrayIterObject *self, PyObject *value) >{ > > npy_intp istart = 0, iend = 0; > > > > > if (self->iter == ((void *)0)) { > PyErr_SetString(PyExc_ValueError, > "Iterator is invalid"); > return -1; > } > > if (value == ((void *)0)) { > PyErr_SetString(PyExc_ValueError, > "Cannot delete iterrange"); > return -1; > } > > > if (!_PyArg_ParseTuple_SizeT(value, "nn", &istart, &iend)) { > > > > return -1; > } > > if (NpyIter_ResetToIterIndexRange(self->iter, istart, iend, ((void *)0)) > != 1) { > return -1; > } > if (istart < iend) { > self->started = self->finished = 0; > } > else { > self->started = self->finished = 1; > } > > if (self->get_multi_index == ((void *)0) && NpyIter_HasMultiIndex(self->iter)) { > self->get_multi_index = NpyIter_GetGetMultiIndex(self->iter, ((void *)0)); > } > > > if (npyiter_resetbasepointers(self) != 1) { > return -1; > } > > return 0; >} > >static PyObject *npyiter_has_delayed_bufalloc_get(NewNpyArrayIterObject *self) >{ > if (self->iter == ((void *)0)) { > PyErr_SetString(PyExc_ValueError, > "Iterator is invalid"); > return ((void *)0); > } > > if (NpyIter_HasDelayedBufAlloc(self->iter)) { > return ( ((PyObject*)(((PyObject *) &_Py_TrueStruct)))->ob_refcnt++), ((PyObject *) &_Py_TrueStruct); > } > else { > return ( ((PyObject*)(((PyObject *) &_Py_ZeroStruct)))->ob_refcnt++), ((PyObject *) &_Py_ZeroStruct); > } >} > >static PyObject *npyiter_iterationneedsapi_get(NewNpyArrayIterObject *self) >{ > if (self->iter == ((void *)0)) { > PyErr_SetString(PyExc_ValueError, > "Iterator is invalid"); > return ((void *)0); > } > > if (NpyIter_IterationNeedsAPI(self->iter)) { > return ( ((PyObject*)(((PyObject *) &_Py_TrueStruct)))->ob_refcnt++), ((PyObject *) &_Py_TrueStruct); > } > else { > return ( ((PyObject*)(((PyObject *) &_Py_ZeroStruct)))->ob_refcnt++), ((PyObject *) &_Py_ZeroStruct); > } >} > >static PyObject *npyiter_has_multi_index_get(NewNpyArrayIterObject *self) >{ > if (self->iter == ((void *)0)) { > PyErr_SetString(PyExc_ValueError, > "Iterator is invalid"); > return ((void *)0); > } > > if (NpyIter_HasMultiIndex(self->iter)) { > return ( ((PyObject*)(((PyObject *) &_Py_TrueStruct)))->ob_refcnt++), ((PyObject *) &_Py_TrueStruct); > } > else { > return ( ((PyObject*)(((PyObject *) &_Py_ZeroStruct)))->ob_refcnt++), ((PyObject *) &_Py_ZeroStruct); > } >} > >static PyObject *npyiter_has_index_get(NewNpyArrayIterObject *self) >{ > if (self->iter == ((void *)0)) { > PyErr_SetString(PyExc_ValueError, > "Iterator is invalid"); > return ((void *)0); > } > > if (NpyIter_HasIndex(self->iter)) { > return ( ((PyObject*)(((PyObject *) &_Py_TrueStruct)))->ob_refcnt++), ((PyObject *) &_Py_TrueStruct); > } > else { > return ( ((PyObject*)(((PyObject *) &_Py_ZeroStruct)))->ob_refcnt++), ((PyObject *) &_Py_ZeroStruct); > } >} > >static PyObject *npyiter_dtypes_get(NewNpyArrayIterObject *self) >{ > PyObject *ret; > > npy_intp iop, nop; > PyArray_Descr **dtypes; > > if (self->iter == ((void *)0)) { > PyErr_SetString(PyExc_ValueError, > "Iterator is invalid"); > return ((void *)0); > } > > nop = NpyIter_GetNOp(self->iter); > > ret = PyTuple_New(nop); > if (ret == ((void *)0)) { > return ((void *)0); > } > dtypes = self->dtypes; > for (iop = 0; iop < nop; ++iop) { > PyArray_Descr *dtype = dtypes[iop]; > > ( ((PyObject*)(dtype))->ob_refcnt++); > (((PyTupleObject *)(ret))->ob_item[iop] = (PyObject *)dtype); > } > > return ret; >} > >static PyObject *npyiter_ndim_get(NewNpyArrayIterObject *self) >{ > if (self->iter == ((void *)0)) { > PyErr_SetString(PyExc_ValueError, > "Iterator is invalid"); > return ((void *)0); > } > > return PyInt_FromLong(NpyIter_GetNDim(self->iter)); >} > >static PyObject *npyiter_nop_get(NewNpyArrayIterObject *self) >{ > if (self->iter == ((void *)0)) { > PyErr_SetString(PyExc_ValueError, > "Iterator is invalid"); > return ((void *)0); > } > > return PyInt_FromLong(NpyIter_GetNOp(self->iter)); >} > >static PyObject *npyiter_itersize_get(NewNpyArrayIterObject *self) >{ > if (self->iter == ((void *)0)) { > PyErr_SetString(PyExc_ValueError, > "Iterator is invalid"); > return ((void *)0); > } > > return PyInt_FromLong(NpyIter_GetIterSize(self->iter)); >} > >static PyObject *npyiter_finished_get(NewNpyArrayIterObject *self) >{ > if (self->iter == ((void *)0) || !self->finished) { > return ( ((PyObject*)(((PyObject *) &_Py_ZeroStruct)))->ob_refcnt++), ((PyObject *) &_Py_ZeroStruct); > } > else { > return ( ((PyObject*)(((PyObject *) &_Py_TrueStruct)))->ob_refcnt++), ((PyObject *) &_Py_TrueStruct); > } >} > >static Py_ssize_t >npyiter_seq_length(NewNpyArrayIterObject *self) >{ > if (self->iter == ((void *)0)) { > return 0; > } > else { > return NpyIter_GetNOp(self->iter); > } >} > >static PyObject * >npyiter_seq_item(NewNpyArrayIterObject *self, Py_ssize_t i) >{ > PyObject *ret; > > npy_intp ret_ndim; > npy_intp nop, innerloopsize, innerstride; > char *dataptr; > PyArray_Descr *dtype; > > if (self->iter == ((void *)0) || self->finished) { > PyErr_SetString(PyExc_ValueError, > "Iterator is past the end"); > return ((void *)0); > } > > if (NpyIter_HasDelayedBufAlloc(self->iter)) { > PyErr_SetString(PyExc_ValueError, > "Iterator construction used delayed buffer allocation, " > "and no reset has been done yet"); > return ((void *)0); > } > > nop = NpyIter_GetNOp(self->iter); > if (i < 0 || i >= nop) { > PyErr_Format(PyExc_IndexError, > "Iterator operand index %d is out of bounds", (int)i); > return ((void *)0); > } ># 2033 "numpy/core/src/multiarray/nditer_pywrap.c" > dataptr = self->dataptrs[i]; > dtype = self->dtypes[i]; > > if (NpyIter_HasExternalLoop(self->iter)) { > innerloopsize = *self->innerloopsizeptr; > innerstride = self->innerstrides[i]; > ret_ndim = 1; > } > else { > innerloopsize = 1; > innerstride = 0; > > ret_ndim = 0; > } > > ( ((PyObject*)(dtype))->ob_refcnt++); > ret = (PyObject *)PyArray_NewFromDescr(&PyArray_Type, dtype, > ret_ndim, &innerloopsize, > &innerstride, dataptr, > self->writeflags[i] ? 0x0400 : 0, ((void *)0)); > ( ((PyObject*)(self))->ob_refcnt++); > ((PyArrayObject *)ret)->base = (PyObject *)self; > > PyArray_UpdateFlags((PyArrayObject *)ret, (0x0001 | 0x0002 | 0x0100)); > > return ret; >} > >static PyObject * >npyiter_seq_slice(NewNpyArrayIterObject *self, > Py_ssize_t ilow, Py_ssize_t ihigh) >{ > PyObject *ret; > npy_intp nop; > Py_ssize_t i; > > if (self->iter == ((void *)0) || self->finished) { > PyErr_SetString(PyExc_ValueError, > "Iterator is past the end"); > return ((void *)0); > } > > if (NpyIter_HasDelayedBufAlloc(self->iter)) { > PyErr_SetString(PyExc_ValueError, > "Iterator construction used delayed buffer allocation, " > "and no reset has been done yet"); > return ((void *)0); > } > > nop = NpyIter_GetNOp(self->iter); > if (ilow < 0) { > ilow = 0; > } > else if (ilow >= nop) { > ilow = nop-1; > } > if (ihigh < ilow) { > ihigh = ilow; > } > else if (ihigh > nop) { > ihigh = nop; > } > > ret = PyTuple_New(ihigh-ilow); > if (ret == ((void *)0)) { > return ((void *)0); > } > for (i = ilow; i < ihigh ; ++i) { > PyObject *item = npyiter_seq_item(self, i); > if (item == ((void *)0)) { > do { if ( --((PyObject*)(ret))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(ret)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(ret)))); } while (0); > return ((void *)0); > } > (((PyTupleObject *)(ret))->ob_item[i-ilow] = item); > } > return ret; >} > >static int >npyiter_seq_ass_item(NewNpyArrayIterObject *self, Py_ssize_t i, PyObject *v) >{ > > npy_intp nop, innerloopsize, innerstride; > char *dataptr; > PyArray_Descr *dtype; > PyArrayObject *tmp; > int ret; > > if (v == ((void *)0)) { > PyErr_SetString(PyExc_ValueError, > "can't delete iterator operands"); > return -1; > } > > if (self->iter == ((void *)0) || self->finished) { > PyErr_SetString(PyExc_ValueError, > "Iterator is past the end"); > return -1; > } > > if (NpyIter_HasDelayedBufAlloc(self->iter)) { > PyErr_SetString(PyExc_ValueError, > "Iterator construction used delayed buffer allocation, " > "and no reset has been done yet"); > return -1; > } > > nop = NpyIter_GetNOp(self->iter); > if (i < 0 || i >= nop) { > PyErr_Format(PyExc_IndexError, > "Iterator operand index %d is out of bounds", (int)i); > return -1; > } > if (!self->writeflags[i]) { > PyErr_Format(PyExc_RuntimeError, > "Iterator operand %d is not writeable", (int)i); > return -1; > } > > dataptr = self->dataptrs[i]; > dtype = self->dtypes[i]; > > if (NpyIter_HasExternalLoop(self->iter)) { > innerloopsize = *self->innerloopsizeptr; > innerstride = self->innerstrides[i]; > } > else { > innerloopsize = 1; > innerstride = 0; > } > > > ( ((PyObject*)(dtype))->ob_refcnt++); > tmp = (PyArrayObject *)PyArray_NewFromDescr(&PyArray_Type, dtype, > 1, &innerloopsize, > &innerstride, dataptr, > 0x0400, ((void *)0)); > if (tmp == ((void *)0)) { > return -1; > } > PyArray_UpdateFlags(tmp, (0x0001 | 0x0002 | 0x0100)); > ret = PyArray_CopyObject(tmp, v); > do { if ( --((PyObject*)(tmp))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(tmp)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(tmp)))); } while (0); > return ret; >} > >static int >npyiter_seq_ass_slice(NewNpyArrayIterObject *self, Py_ssize_t ilow, > Py_ssize_t ihigh, PyObject *v) >{ > npy_intp nop; > Py_ssize_t i; > > if (v == ((void *)0)) { > PyErr_SetString(PyExc_ValueError, > "cannot delete iterator elements"); > return -1; > } > > if (self->iter == ((void *)0) || self->finished) { > PyErr_SetString(PyExc_ValueError, > "Iterator is past the end"); > return -1; > } > > if (NpyIter_HasDelayedBufAlloc(self->iter)) { > PyErr_SetString(PyExc_ValueError, > "Iterator construction used delayed buffer allocation, " > "and no reset has been done yet"); > return -1; > } > > nop = NpyIter_GetNOp(self->iter); > if (ilow < 0) { > ilow = 0; > } > else if (ilow >= nop) { > ilow = nop-1; > } > if (ihigh < ilow) { > ihigh = ilow; > } > else if (ihigh > nop) { > ihigh = nop; > } > > if (!PySequence_Check(v) || PySequence_Size(v) != ihigh-ilow) { > PyErr_SetString(PyExc_ValueError, > "Wrong size to assign to iterator slice"); > return -1; > } > > for (i = ilow; i < ihigh ; ++i) { > PyObject *item = PySequence_GetItem(v, i-ilow); > if (item == ((void *)0)) { > return -1; > } > if (npyiter_seq_ass_item(self, i, item) < 0) { > do { if ( --((PyObject*)(item))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(item)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(item)))); } while (0); > return -1; > } > do { if ( --((PyObject*)(item))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(item)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(item)))); } while (0); > } > > return 0; >} > >static PyObject * >npyiter_subscript(NewNpyArrayIterObject *self, PyObject *op) >{ > if (self->iter == ((void *)0) || self->finished) { > PyErr_SetString(PyExc_ValueError, > "Iterator is past the end"); > return ((void *)0); > } > > if (NpyIter_HasDelayedBufAlloc(self->iter)) { > PyErr_SetString(PyExc_ValueError, > "Iterator construction used delayed buffer allocation, " > "and no reset has been done yet"); > return ((void *)0); > } > > if (((((op)->ob_type)->tp_flags & ((1L<<23))) != 0) || ((((((PyObject*)(op))->ob_type))->tp_flags & ((1L<<24))) != 0) || > (((op)->ob_type->tp_as_number != ((void *)0) && ((((op)->ob_type)->tp_flags & ((1L<<17))) != 0) && (op)->ob_type->tp_as_number->nb_index != ((void *)0)) && !PySequence_Check(op))) { > npy_intp i = PyArray_PyIntAsIntp(op); > if (i == -1 && PyErr_Occurred()) { > return ((void *)0); > } > return npyiter_seq_item(self, i); > } > else if (((((PyObject*)(op))->ob_type) == &PySlice_Type)) { > Py_ssize_t istart = 0, iend = 0, istep = 0; > if (PySlice_GetIndices((PySliceObject *)op, > NpyIter_GetNOp(self->iter), > &istart, &iend, &istep) < 0) { > return ((void *)0); > } > if (istep != 1) { > PyErr_SetString(PyExc_ValueError, > "Iterator slicing only supports a step of 1"); > return ((void *)0); > } > return npyiter_seq_slice(self, istart, iend); > } > > PyErr_SetString(PyExc_TypeError, > "invalid index type for iterator indexing"); > return ((void *)0); >} > >static int >npyiter_ass_subscript(NewNpyArrayIterObject *self, PyObject *op, > PyObject *value) >{ > if (self->iter == ((void *)0) || self->finished) { > PyErr_SetString(PyExc_ValueError, > "Iterator is past the end"); > return -1; > } > > if (NpyIter_HasDelayedBufAlloc(self->iter)) { > PyErr_SetString(PyExc_ValueError, > "Iterator construction used delayed buffer allocation, " > "and no reset has been done yet"); > return -1; > } > > if (((((op)->ob_type)->tp_flags & ((1L<<23))) != 0) || ((((((PyObject*)(op))->ob_type))->tp_flags & ((1L<<24))) != 0) || > (((op)->ob_type->tp_as_number != ((void *)0) && ((((op)->ob_type)->tp_flags & ((1L<<17))) != 0) && (op)->ob_type->tp_as_number->nb_index != ((void *)0)) && !PySequence_Check(op))) { > npy_intp i = PyArray_PyIntAsIntp(op); > if (i == -1 && PyErr_Occurred()) { > return -1; > } > return npyiter_seq_ass_item(self, i, value); > } > else if (((((PyObject*)(op))->ob_type) == &PySlice_Type)) { > Py_ssize_t istart = 0, iend = 0, istep = 0; > if (PySlice_GetIndices((PySliceObject *)op, > NpyIter_GetNOp(self->iter), > &istart, &iend, &istep) < 0) { > return -1; > } > if (istep != 1) { > PyErr_SetString(PyExc_ValueError, > "Iterator slice assignment only supports a step of 1"); > return -1; > } > return npyiter_seq_ass_slice(self, istart, iend, value); > } > > PyErr_SetString(PyExc_TypeError, > "invalid index type for iterator indexing"); > return -1; >} > >static PyMethodDef npyiter_methods[] = { > {"reset", (PyCFunction)npyiter_reset, 0x0004, ((void *)0)}, > {"copy", (PyCFunction)npyiter_copy, 0x0004, ((void *)0)}, > {"__copy__", (PyCFunction)npyiter_copy, 0x0004, ((void *)0)}, > {"iternext", (PyCFunction)npyiter_iternext, 0x0004, ((void *)0)}, > {"remove_axis", (PyCFunction)npyiter_remove_axis, 0x0001, ((void *)0)}, > {"remove_multi_index", (PyCFunction)npyiter_remove_multi_index, > 0x0004, ((void *)0)}, > {"enable_external_loop", (PyCFunction)npyiter_enable_external_loop, > 0x0004, ((void *)0)}, > {"debug_print", (PyCFunction)npyiter_debug_print, 0x0004, ((void *)0)}, > {((void *)0), ((void *)0), 0, ((void *)0)}, >}; > >static PyMemberDef npyiter_members[] = { > {((void *)0), 0, 0, 0, ((void *)0)}, >}; > >static PyGetSetDef npyiter_getsets[] = { > {"value", > (getter)npyiter_value_get, > ((void *)0), ((void *)0), ((void *)0)}, > {"shape", > (getter)npyiter_shape_get, > ((void *)0), ((void *)0), ((void *)0)}, > {"multi_index", > (getter)npyiter_multi_index_get, > (setter)npyiter_multi_index_set, > ((void *)0), ((void *)0)}, > {"index", > (getter)npyiter_index_get, > (setter)npyiter_index_set, > ((void *)0), ((void *)0)}, > {"iterindex", > (getter)npyiter_iterindex_get, > (setter)npyiter_iterindex_set, > ((void *)0), ((void *)0)}, > {"iterrange", > (getter)npyiter_iterrange_get, > (setter)npyiter_iterrange_set, > ((void *)0), ((void *)0)}, > {"operands", > (getter)npyiter_operands_get, > ((void *)0), ((void *)0), ((void *)0)}, > {"itviews", > (getter)npyiter_itviews_get, > ((void *)0), ((void *)0), ((void *)0)}, > {"has_delayed_bufalloc", > (getter)npyiter_has_delayed_bufalloc_get, > ((void *)0), ((void *)0), ((void *)0)}, > {"iterationneedsapi", > (getter)npyiter_iterationneedsapi_get, > ((void *)0), ((void *)0), ((void *)0)}, > {"has_multi_index", > (getter)npyiter_has_multi_index_get, > ((void *)0), ((void *)0), ((void *)0)}, > {"has_index", > (getter)npyiter_has_index_get, > ((void *)0), ((void *)0), ((void *)0)}, > {"dtypes", > (getter)npyiter_dtypes_get, > ((void *)0), ((void *)0), ((void *)0)}, > {"ndim", > (getter)npyiter_ndim_get, > ((void *)0), ((void *)0), ((void *)0)}, > {"nop", > (getter)npyiter_nop_get, > ((void *)0), ((void *)0), ((void *)0)}, > {"itersize", > (getter)npyiter_itersize_get, > ((void *)0), ((void *)0), ((void *)0)}, > {"finished", > (getter)npyiter_finished_get, > ((void *)0), ((void *)0), ((void *)0)}, > > {((void *)0), ((void *)0), ((void *)0), ((void *)0), ((void *)0)}, >}; > >static PySequenceMethods npyiter_as_sequence = { > > (lenfunc)npyiter_seq_length, > (binaryfunc)((void *)0), > (ssizeargfunc)((void *)0), > (ssizeargfunc)npyiter_seq_item, > (ssizessizeargfunc)npyiter_seq_slice, > (ssizeobjargproc)npyiter_seq_ass_item, > (ssizessizeobjargproc)npyiter_seq_ass_slice, > (objobjproc)((void *)0), > (binaryfunc)((void *)0), > (ssizeargfunc)((void *)0), ># 2431 "numpy/core/src/multiarray/nditer_pywrap.c" >}; > >static PyMappingMethods npyiter_as_mapping = { > > (lenfunc)npyiter_seq_length, > > > > (binaryfunc)npyiter_subscript, > (objobjargproc)npyiter_ass_subscript, >}; > >static PyTypeObject NpyIter_Type = { > > > > 1, ((void *)0), > 0, > > "numpy.nditer", > sizeof(NewNpyArrayIterObject), > 0, > > (destructor)npyiter_dealloc, > 0, > 0, > 0, > > > > 0, > > 0, > 0, > &npyiter_as_sequence, > &npyiter_as_mapping, > 0, > 0, > 0, > 0, > 0, > 0, > ( (1L<<0) | (1L<<1) | (1L<<3) | (1L<<5) | (1L<<6) | (1L<<7) | (1L<<8) | 0 | (1L<<17) | 0), > 0, > 0, > 0, > 0, > 0, > 0, > (iternextfunc)npyiter_next, > npyiter_methods, > npyiter_members, > npyiter_getsets, > 0, > 0, > 0, > 0, > 0, > (initproc)npyiter_init, > 0, > npyiter_new, > 0, > 0, > 0, > 0, > 0, > 0, > 0, > 0, > > 0, > >}; ># 40 "numpy/core/src/multiarray/multiarraymodule_onefile.c" 2 ># 1 "build/src.linux-x86_64-2.7/numpy/core/src/multiarray/lowlevel_strided_loops.c" 1 ># 1 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 1 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 17 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 1 "numpy/core/include/numpy/ufuncobject.h" 1 ># 10 "numpy/core/include/numpy/ufuncobject.h" >typedef void (*PyUFuncGenericFunction) (char **, npy_intp *, npy_intp *, void *); > >typedef struct { > Py_ssize_t ob_refcnt; struct _typeobject *ob_type; > > > > > > int nin, nout, nargs; > > > int identity; > > > PyUFuncGenericFunction *functions; > > void **data; > > int ntypes; > > > int check_return; > > > char *name; > > > char *types; > > > char *doc; > > void *ptr; > PyObject *obj; > PyObject *userloops; > > > > > int core_enabled; > > int core_num_dim_ix; > > > > > > > > int *core_num_dims; > > > > > int *core_dim_ixs; > > > > > int *core_offsets; > > char *core_signature; >} PyUFuncObject; > ># 1 "numpy/core/include/numpy/arrayobject.h" 1 ># 76 "numpy/core/include/numpy/ufuncobject.h" 2 ># 135 "numpy/core/include/numpy/ufuncobject.h" >typedef struct { > int nin; > int nout; > PyObject *callable; >} PyUFunc_PyFuncData; > > > > >typedef struct _loop1d_info { > PyUFuncGenericFunction func; > void *data; > int *arg_types; > struct _loop1d_info *next; >} PyUFunc_Loop1d; > > ># 1 "build/src.linux-x86_64-2.7/numpy/core/include/numpy/__ufunc_api.h" 1 ># 105 "build/src.linux-x86_64-2.7/numpy/core/include/numpy/__ufunc_api.h" >static void **PyUFunc_API=((void *)0); ># 225 "build/src.linux-x86_64-2.7/numpy/core/include/numpy/__ufunc_api.h" >static int >_import_umath(void) >{ > PyObject *numpy = PyImport_ImportModule("numpy.core.umath"); > PyObject *c_api = ((void *)0); > > if (numpy == ((void *)0)) { > PyErr_SetString(PyExc_ImportError, "numpy.core.umath failed to import"); > return -1; > } > c_api = PyObject_GetAttrString(numpy, "_UFUNC_API"); > do { if ( --((PyObject*)(numpy))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(numpy)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(numpy)))); } while (0); > if (c_api == ((void *)0)) { > PyErr_SetString(PyExc_AttributeError, "_UFUNC_API not found"); > return -1; > } ># 250 "build/src.linux-x86_64-2.7/numpy/core/include/numpy/__ufunc_api.h" > if (!((((PyObject*)(c_api))->ob_type) == &PyCObject_Type)) { > PyErr_SetString(PyExc_RuntimeError, "_UFUNC_API is not PyCObject object"); > do { if ( --((PyObject*)(c_api))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(c_api)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(c_api)))); } while (0); > return -1; > } > PyUFunc_API = (void **)PyCObject_AsVoidPtr(c_api); > > do { if ( --((PyObject*)(c_api))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(c_api)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(c_api)))); } while (0); > if (PyUFunc_API == ((void *)0)) { > PyErr_SetString(PyExc_RuntimeError, "_UFUNC_API is NULL pointer"); > return -1; > } > return 0; >} ># 153 "numpy/core/include/numpy/ufuncobject.h" 2 ># 168 "numpy/core/include/numpy/ufuncobject.h" ># 1 "/usr/include/sys/param.h" 1 3 4 ># 22 "/usr/include/sys/param.h" 3 4 ># 1 "/usr/lib/gcc/x86_64-redhat-linux/3.4.5/include/limits.h" 1 3 4 ># 23 "/usr/include/sys/param.h" 2 3 4 > ># 1 "/usr/include/linux/param.h" 1 3 4 > > > ># 1 "/usr/include/asm/param.h" 1 3 4 > > > ># 1 "/usr/include/asm-x86_64/param.h" 1 3 4 ># 5 "/usr/include/asm/param.h" 2 3 4 ># 5 "/usr/include/linux/param.h" 2 3 4 ># 25 "/usr/include/sys/param.h" 2 3 4 ># 169 "numpy/core/include/numpy/ufuncobject.h" 2 ># 232 "numpy/core/include/numpy/ufuncobject.h" ># 1 "/usr/include/fenv.h" 1 3 4 ># 58 "/usr/include/fenv.h" 3 4 ># 1 "/usr/include/bits/fenv.h" 1 3 4 ># 23 "/usr/include/bits/fenv.h" 3 4 ># 1 "/usr/include/bits/wordsize.h" 1 3 4 ># 24 "/usr/include/bits/fenv.h" 2 3 4 > > > > >enum > { > FE_INVALID = 0x01, > > __FE_DENORM = 0x02, > FE_DIVBYZERO = 0x04, > > FE_OVERFLOW = 0x08, > > FE_UNDERFLOW = 0x10, > > FE_INEXACT = 0x20 > > }; > > > > > > > >enum > { > FE_TONEAREST = 0, > > FE_DOWNWARD = 0x400, > > FE_UPWARD = 0x800, > > FE_TOWARDZERO = 0xc00 > > }; > > > >typedef unsigned short int fexcept_t; > > > > > > >typedef struct > { > unsigned short int __control_word; > unsigned short int __unused1; > unsigned short int __status_word; > unsigned short int __unused2; > unsigned short int __tags; > unsigned short int __unused3; > unsigned int __eip; > unsigned short int __cs_selector; > unsigned int __opcode:11; > unsigned int __unused4:5; > unsigned int __data_offset; > unsigned short int __data_selector; > unsigned short int __unused5; > > unsigned int __mxcsr; > > } >fenv_t; ># 59 "/usr/include/fenv.h" 2 3 4 > > > > > > >extern int feclearexcept (int __excepts) __attribute__ ((__nothrow__)); > > > >extern int fegetexceptflag (fexcept_t *__flagp, int __excepts) __attribute__ ((__nothrow__)); > > >extern int feraiseexcept (int __excepts) __attribute__ ((__nothrow__)); > > > >extern int fesetexceptflag (__const fexcept_t *__flagp, int __excepts) __attribute__ ((__nothrow__)); > > > >extern int fetestexcept (int __excepts) __attribute__ ((__nothrow__)); > > > > > >extern int fegetround (void) __attribute__ ((__nothrow__)); > > >extern int fesetround (int __rounding_direction) __attribute__ ((__nothrow__)); > > > > > > >extern int fegetenv (fenv_t *__envp) __attribute__ ((__nothrow__)); > > > > >extern int feholdexcept (fenv_t *__envp) __attribute__ ((__nothrow__)); > > > >extern int fesetenv (__const fenv_t *__envp) __attribute__ ((__nothrow__)); > > > > >extern int feupdateenv (__const fenv_t *__envp) __attribute__ ((__nothrow__)); > > > > ># 1 "/usr/include/bits/fenvinline.h" 1 3 4 ># 116 "/usr/include/fenv.h" 2 3 4 > > > > > > > >extern int feenableexcept (int __excepts) __attribute__ ((__nothrow__)); > > > > >extern int fedisableexcept (int __excepts) __attribute__ ((__nothrow__)); > > >extern int fegetexcept (void) __attribute__ ((__nothrow__)); > > > ># 233 "numpy/core/include/numpy/ufuncobject.h" 2 ># 18 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" 2 ># 1 "numpy/core/include/numpy/npy_cpu.h" 1 ># 19 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" 2 ># 1 "numpy/core/include/numpy/halffloat.h" 1 ># 20 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" 2 ># 104 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 110 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 118 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 118 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > > > > > > > >static void >_aligned_strided_to_strided_size1(char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ > > while (N > 0) { > > > > > (*((npy_uint8 *)dst)) = (*((npy_uint8 *)src)); ># 167 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst += dst_stride; > > > > > > src += src_stride; > > > --N; > } >} > > > > > >static void >_aligned_strided_to_strided_size1_srcstride0(char *dst, > npy_intp dst_stride, > char *src, npy_intp (__NPY_UNUSED_TAGGEDsrc_stride) __attribute__ ((__unused__)), > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ > > npy_uint8 temp = (*((npy_uint8 *)src)); ># 207 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > while (N > 0) { > > *((npy_uint8 *)dst) = temp; > > > > > > > > dst += dst_stride; > > --N; > } >} ># 118 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 118 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 118 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 118 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 110 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 118 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 118 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > > > > > > > >static void >_aligned_strided_to_contig_size1(char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ > > while (N > 0) { > > > > > (*((npy_uint8 *)dst)) = (*((npy_uint8 *)src)); ># 165 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst += 1; > > > > > > > > src += src_stride; > > > --N; > } >} > > > > > >static void >_aligned_strided_to_contig_size1_srcstride0(char *dst, > npy_intp dst_stride, > char *src, npy_intp (__NPY_UNUSED_TAGGEDsrc_stride) __attribute__ ((__unused__)), > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ > > npy_uint8 temp = (*((npy_uint8 *)src)); ># 207 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > while (N > 0) { > > *((npy_uint8 *)dst) = temp; > > > > > > dst += 1; > > > > --N; > } >} ># 118 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 118 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 118 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 118 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 110 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 118 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 118 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > > > > > > > >static void >_aligned_contig_to_strided_size1(char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ > > while (N > 0) { > > > > > (*((npy_uint8 *)dst)) = (*((npy_uint8 *)src)); ># 167 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst += dst_stride; > > > > src += 1; > > > > > --N; > } >} ># 118 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 118 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 118 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 118 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 110 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 118 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 118 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 118 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 118 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 118 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 118 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 104 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 110 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 118 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > > > > > > > >static void >_strided_to_strided_size2(char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ > > while (N > 0) { ># 154 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(dst, src, 2); ># 167 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst += dst_stride; > > > > > > src += src_stride; > > > --N; > } >} ># 118 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > > > > > > > >static void >_aligned_strided_to_strided_size2(char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ > > while (N > 0) { > > > > > (*((npy_uint16 *)dst)) = (*((npy_uint16 *)src)); ># 167 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst += dst_stride; > > > > > > src += src_stride; > > > --N; > } >} > > > > > >static void >_aligned_strided_to_strided_size2_srcstride0(char *dst, > npy_intp dst_stride, > char *src, npy_intp (__NPY_UNUSED_TAGGEDsrc_stride) __attribute__ ((__unused__)), > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ > > npy_uint16 temp = (*((npy_uint16 *)src)); ># 207 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > while (N > 0) { > > *((npy_uint16 *)dst) = temp; > > > > > > > > dst += dst_stride; > > --N; > } >} ># 118 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > > > > > > > >static void >_swap_strided_to_strided_size2(char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ > > while (N > 0) { ># 154 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(dst, src, 2); > > { char a = (dst)[0]; (dst)[0] = (dst)[1]; (dst)[1] = a; }; ># 167 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst += dst_stride; > > > > > > src += src_stride; > > > --N; > } >} ># 118 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > > > > > > > >static void >_aligned_swap_strided_to_strided_size2(char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ > > while (N > 0) { > > > > > (*((npy_uint16 *)dst)) = (((((npy_uint16)*((npy_uint16 *)src))&0xffu) << 8) | (((npy_uint16)*((npy_uint16 *)src)) >> 8)); ># 167 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst += dst_stride; > > > > > > src += src_stride; > > > --N; > } >} > > > > > >static void >_aligned_swap_strided_to_strided_size2_srcstride0(char *dst, > npy_intp dst_stride, > char *src, npy_intp (__NPY_UNUSED_TAGGEDsrc_stride) __attribute__ ((__unused__)), > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ > > npy_uint16 temp = (((((npy_uint16)*((npy_uint16 *)src))&0xffu) << 8) | (((npy_uint16)*((npy_uint16 *)src)) >> 8)); ># 207 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > while (N > 0) { > > *((npy_uint16 *)dst) = temp; > > > > > > > > dst += dst_stride; > > --N; > } >} ># 118 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 118 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 110 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 118 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > > > > > > > >static void >_strided_to_contig_size2(char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ > > while (N > 0) { ># 154 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(dst, src, 2); ># 165 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst += 2; > > > > > > > > src += src_stride; > > > --N; > } >} ># 118 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > > > > > > > >static void >_aligned_strided_to_contig_size2(char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ > > while (N > 0) { > > > > > (*((npy_uint16 *)dst)) = (*((npy_uint16 *)src)); ># 165 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst += 2; > > > > > > > > src += src_stride; > > > --N; > } >} > > > > > >static void >_aligned_strided_to_contig_size2_srcstride0(char *dst, > npy_intp dst_stride, > char *src, npy_intp (__NPY_UNUSED_TAGGEDsrc_stride) __attribute__ ((__unused__)), > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ > > npy_uint16 temp = (*((npy_uint16 *)src)); ># 207 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > while (N > 0) { > > *((npy_uint16 *)dst) = temp; > > > > > > dst += 2; > > > > --N; > } >} ># 118 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > > > > > > > >static void >_swap_strided_to_contig_size2(char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ > > while (N > 0) { ># 154 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(dst, src, 2); > > { char a = (dst)[0]; (dst)[0] = (dst)[1]; (dst)[1] = a; }; ># 165 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst += 2; > > > > > > > > src += src_stride; > > > --N; > } >} ># 118 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > > > > > > > >static void >_aligned_swap_strided_to_contig_size2(char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ > > while (N > 0) { > > > > > (*((npy_uint16 *)dst)) = (((((npy_uint16)*((npy_uint16 *)src))&0xffu) << 8) | (((npy_uint16)*((npy_uint16 *)src)) >> 8)); ># 165 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst += 2; > > > > > > > > src += src_stride; > > > --N; > } >} > > > > > >static void >_aligned_swap_strided_to_contig_size2_srcstride0(char *dst, > npy_intp dst_stride, > char *src, npy_intp (__NPY_UNUSED_TAGGEDsrc_stride) __attribute__ ((__unused__)), > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ > > npy_uint16 temp = (((((npy_uint16)*((npy_uint16 *)src))&0xffu) << 8) | (((npy_uint16)*((npy_uint16 *)src)) >> 8)); ># 207 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > while (N > 0) { > > *((npy_uint16 *)dst) = temp; > > > > > > dst += 2; > > > > --N; > } >} ># 118 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 118 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 110 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 118 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > > > > > > > >static void >_contig_to_strided_size2(char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ > > while (N > 0) { ># 154 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(dst, src, 2); ># 167 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst += dst_stride; > > > > src += 2; > > > > > --N; > } >} ># 118 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > > > > > > > >static void >_aligned_contig_to_strided_size2(char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ > > while (N > 0) { > > > > > (*((npy_uint16 *)dst)) = (*((npy_uint16 *)src)); ># 167 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst += dst_stride; > > > > src += 2; > > > > > --N; > } >} ># 118 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > > > > > > > >static void >_swap_contig_to_strided_size2(char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ > > while (N > 0) { ># 154 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(dst, src, 2); > > { char a = (dst)[0]; (dst)[0] = (dst)[1]; (dst)[1] = a; }; ># 167 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst += dst_stride; > > > > src += 2; > > > > > --N; > } >} ># 118 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > > > > > > > >static void >_aligned_swap_contig_to_strided_size2(char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ > > while (N > 0) { > > > > > (*((npy_uint16 *)dst)) = (((((npy_uint16)*((npy_uint16 *)src))&0xffu) << 8) | (((npy_uint16)*((npy_uint16 *)src)) >> 8)); ># 167 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst += dst_stride; > > > > src += 2; > > > > > --N; > } >} ># 118 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 118 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 110 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 118 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 118 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 118 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > > > > > > > >static void >_swap_contig_to_contig_size2(char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ > > while (N > 0) { ># 154 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(dst, src, 2); > > { char a = (dst)[0]; (dst)[0] = (dst)[1]; (dst)[1] = a; }; ># 165 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst += 2; > > > > > > src += 2; > > > > > --N; > } >} ># 118 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > > > > > > > >static void >_aligned_swap_contig_to_contig_size2(char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ > > while (N > 0) { > > > > > (*((npy_uint16 *)dst)) = (((((npy_uint16)*((npy_uint16 *)src))&0xffu) << 8) | (((npy_uint16)*((npy_uint16 *)src)) >> 8)); ># 165 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst += 2; > > > > > > src += 2; > > > > > --N; > } >} ># 118 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 118 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 104 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 110 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 118 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > > > > > > > >static void >_strided_to_strided_size4(char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ > > while (N > 0) { ># 154 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(dst, src, 4); ># 167 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst += dst_stride; > > > > > > src += src_stride; > > > --N; > } >} ># 118 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > > > > > > > >static void >_aligned_strided_to_strided_size4(char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ > > while (N > 0) { > > > > > (*((npy_uint32 *)dst)) = (*((npy_uint32 *)src)); ># 167 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst += dst_stride; > > > > > > src += src_stride; > > > --N; > } >} > > > > > >static void >_aligned_strided_to_strided_size4_srcstride0(char *dst, > npy_intp dst_stride, > char *src, npy_intp (__NPY_UNUSED_TAGGEDsrc_stride) __attribute__ ((__unused__)), > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ > > npy_uint32 temp = (*((npy_uint32 *)src)); ># 207 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > while (N > 0) { > > *((npy_uint32 *)dst) = temp; > > > > > > > > dst += dst_stride; > > --N; > } >} ># 118 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > > > > > > > >static void >_swap_strided_to_strided_size4(char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ > > while (N > 0) { ># 154 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(dst, src, 4); > > { char a = (dst)[0]; (dst)[0] = (dst)[3]; (dst)[3] = a; a = (dst)[1]; (dst)[1] = (dst)[2]; (dst)[2] = a; }; ># 167 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst += dst_stride; > > > > > > src += src_stride; > > > --N; > } >} ># 118 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > > > > > > > >static void >_aligned_swap_strided_to_strided_size4(char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ > > while (N > 0) { > > > > > (*((npy_uint32 *)dst)) = (((((npy_uint32)*((npy_uint32 *)src))&0xffu) << 24) | ((((npy_uint32)*((npy_uint32 *)src))&0xff00u) << 8) | ((((npy_uint32)*((npy_uint32 *)src))&0xff0000u) >> 8) | (((npy_uint32)*((npy_uint32 *)src)) >> 24)); ># 167 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst += dst_stride; > > > > > > src += src_stride; > > > --N; > } >} > > > > > >static void >_aligned_swap_strided_to_strided_size4_srcstride0(char *dst, > npy_intp dst_stride, > char *src, npy_intp (__NPY_UNUSED_TAGGEDsrc_stride) __attribute__ ((__unused__)), > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ > > npy_uint32 temp = (((((npy_uint32)*((npy_uint32 *)src))&0xffu) << 24) | ((((npy_uint32)*((npy_uint32 *)src))&0xff00u) << 8) | ((((npy_uint32)*((npy_uint32 *)src))&0xff0000u) >> 8) | (((npy_uint32)*((npy_uint32 *)src)) >> 24)); ># 207 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > while (N > 0) { > > *((npy_uint32 *)dst) = temp; > > > > > > > > dst += dst_stride; > > --N; > } >} ># 118 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > > > > > > > >static void >_swap_pair_strided_to_strided_size4(char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ > > while (N > 0) { ># 154 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(dst, src, 4); > > > > { char a = (dst)[0]; (dst)[0] = (dst)[1]; (dst)[1] = a; }; > { char a = (dst + 2)[0]; (dst + 2)[0] = (dst + 2)[1]; (dst + 2)[1] = a; }; > > > > > > > > dst += dst_stride; > > > > > > src += src_stride; > > > --N; > } >} ># 118 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > > > > > > > >static void >_aligned_swap_pair_strided_to_strided_size4(char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ > > while (N > 0) { > > > > > (*((npy_uint32 *)dst)) = (((((npy_uint32)*((npy_uint32 *)src))&0xffu) << 8) | ((((npy_uint32)*((npy_uint32 *)src))&0xff00u) >> 8) | ((((npy_uint32)*((npy_uint32 *)src))&0xff0000u) << 8) | ((((npy_uint32)*((npy_uint32 *)src))&0xff000000u) >> 8)); ># 167 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst += dst_stride; > > > > > > src += src_stride; > > > --N; > } >} > > > > > >static void >_aligned_swap_pair_strided_to_strided_size4_srcstride0(char *dst, > npy_intp dst_stride, > char *src, npy_intp (__NPY_UNUSED_TAGGEDsrc_stride) __attribute__ ((__unused__)), > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ > > npy_uint32 temp = (((((npy_uint32)*((npy_uint32 *)src))&0xffu) << 8) | ((((npy_uint32)*((npy_uint32 *)src))&0xff00u) >> 8) | ((((npy_uint32)*((npy_uint32 *)src))&0xff0000u) << 8) | ((((npy_uint32)*((npy_uint32 *)src))&0xff000000u) >> 8)); ># 207 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > while (N > 0) { > > *((npy_uint32 *)dst) = temp; > > > > > > > > dst += dst_stride; > > --N; > } >} ># 110 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 118 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > > > > > > > >static void >_strided_to_contig_size4(char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ > > while (N > 0) { ># 154 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(dst, src, 4); ># 165 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst += 4; > > > > > > > > src += src_stride; > > > --N; > } >} ># 118 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > > > > > > > >static void >_aligned_strided_to_contig_size4(char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ > > while (N > 0) { > > > > > (*((npy_uint32 *)dst)) = (*((npy_uint32 *)src)); ># 165 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst += 4; > > > > > > > > src += src_stride; > > > --N; > } >} > > > > > >static void >_aligned_strided_to_contig_size4_srcstride0(char *dst, > npy_intp dst_stride, > char *src, npy_intp (__NPY_UNUSED_TAGGEDsrc_stride) __attribute__ ((__unused__)), > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ > > npy_uint32 temp = (*((npy_uint32 *)src)); ># 207 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > while (N > 0) { > > *((npy_uint32 *)dst) = temp; > > > > > > dst += 4; > > > > --N; > } >} ># 118 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > > > > > > > >static void >_swap_strided_to_contig_size4(char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ > > while (N > 0) { ># 154 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(dst, src, 4); > > { char a = (dst)[0]; (dst)[0] = (dst)[3]; (dst)[3] = a; a = (dst)[1]; (dst)[1] = (dst)[2]; (dst)[2] = a; }; ># 165 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst += 4; > > > > > > > > src += src_stride; > > > --N; > } >} ># 118 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > > > > > > > >static void >_aligned_swap_strided_to_contig_size4(char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ > > while (N > 0) { > > > > > (*((npy_uint32 *)dst)) = (((((npy_uint32)*((npy_uint32 *)src))&0xffu) << 24) | ((((npy_uint32)*((npy_uint32 *)src))&0xff00u) << 8) | ((((npy_uint32)*((npy_uint32 *)src))&0xff0000u) >> 8) | (((npy_uint32)*((npy_uint32 *)src)) >> 24)); ># 165 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst += 4; > > > > > > > > src += src_stride; > > > --N; > } >} > > > > > >static void >_aligned_swap_strided_to_contig_size4_srcstride0(char *dst, > npy_intp dst_stride, > char *src, npy_intp (__NPY_UNUSED_TAGGEDsrc_stride) __attribute__ ((__unused__)), > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ > > npy_uint32 temp = (((((npy_uint32)*((npy_uint32 *)src))&0xffu) << 24) | ((((npy_uint32)*((npy_uint32 *)src))&0xff00u) << 8) | ((((npy_uint32)*((npy_uint32 *)src))&0xff0000u) >> 8) | (((npy_uint32)*((npy_uint32 *)src)) >> 24)); ># 207 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > while (N > 0) { > > *((npy_uint32 *)dst) = temp; > > > > > > dst += 4; > > > > --N; > } >} ># 118 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > > > > > > > >static void >_swap_pair_strided_to_contig_size4(char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ > > while (N > 0) { ># 154 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(dst, src, 4); > > > > { char a = (dst)[0]; (dst)[0] = (dst)[1]; (dst)[1] = a; }; > { char a = (dst + 2)[0]; (dst + 2)[0] = (dst + 2)[1]; (dst + 2)[1] = a; }; > > > > > > dst += 4; > > > > > > > > src += src_stride; > > > --N; > } >} ># 118 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > > > > > > > >static void >_aligned_swap_pair_strided_to_contig_size4(char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ > > while (N > 0) { > > > > > (*((npy_uint32 *)dst)) = (((((npy_uint32)*((npy_uint32 *)src))&0xffu) << 8) | ((((npy_uint32)*((npy_uint32 *)src))&0xff00u) >> 8) | ((((npy_uint32)*((npy_uint32 *)src))&0xff0000u) << 8) | ((((npy_uint32)*((npy_uint32 *)src))&0xff000000u) >> 8)); ># 165 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst += 4; > > > > > > > > src += src_stride; > > > --N; > } >} > > > > > >static void >_aligned_swap_pair_strided_to_contig_size4_srcstride0(char *dst, > npy_intp dst_stride, > char *src, npy_intp (__NPY_UNUSED_TAGGEDsrc_stride) __attribute__ ((__unused__)), > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ > > npy_uint32 temp = (((((npy_uint32)*((npy_uint32 *)src))&0xffu) << 8) | ((((npy_uint32)*((npy_uint32 *)src))&0xff00u) >> 8) | ((((npy_uint32)*((npy_uint32 *)src))&0xff0000u) << 8) | ((((npy_uint32)*((npy_uint32 *)src))&0xff000000u) >> 8)); ># 207 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > while (N > 0) { > > *((npy_uint32 *)dst) = temp; > > > > > > dst += 4; > > > > --N; > } >} ># 110 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 118 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > > > > > > > >static void >_contig_to_strided_size4(char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ > > while (N > 0) { ># 154 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(dst, src, 4); ># 167 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst += dst_stride; > > > > src += 4; > > > > > --N; > } >} ># 118 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > > > > > > > >static void >_aligned_contig_to_strided_size4(char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ > > while (N > 0) { > > > > > (*((npy_uint32 *)dst)) = (*((npy_uint32 *)src)); ># 167 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst += dst_stride; > > > > src += 4; > > > > > --N; > } >} ># 118 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > > > > > > > >static void >_swap_contig_to_strided_size4(char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ > > while (N > 0) { ># 154 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(dst, src, 4); > > { char a = (dst)[0]; (dst)[0] = (dst)[3]; (dst)[3] = a; a = (dst)[1]; (dst)[1] = (dst)[2]; (dst)[2] = a; }; ># 167 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst += dst_stride; > > > > src += 4; > > > > > --N; > } >} ># 118 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > > > > > > > >static void >_aligned_swap_contig_to_strided_size4(char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ > > while (N > 0) { > > > > > (*((npy_uint32 *)dst)) = (((((npy_uint32)*((npy_uint32 *)src))&0xffu) << 24) | ((((npy_uint32)*((npy_uint32 *)src))&0xff00u) << 8) | ((((npy_uint32)*((npy_uint32 *)src))&0xff0000u) >> 8) | (((npy_uint32)*((npy_uint32 *)src)) >> 24)); ># 167 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst += dst_stride; > > > > src += 4; > > > > > --N; > } >} ># 118 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > > > > > > > >static void >_swap_pair_contig_to_strided_size4(char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ > > while (N > 0) { ># 154 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(dst, src, 4); > > > > { char a = (dst)[0]; (dst)[0] = (dst)[1]; (dst)[1] = a; }; > { char a = (dst + 2)[0]; (dst + 2)[0] = (dst + 2)[1]; (dst + 2)[1] = a; }; > > > > > > > > dst += dst_stride; > > > > src += 4; > > > > > --N; > } >} ># 118 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > > > > > > > >static void >_aligned_swap_pair_contig_to_strided_size4(char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ > > while (N > 0) { > > > > > (*((npy_uint32 *)dst)) = (((((npy_uint32)*((npy_uint32 *)src))&0xffu) << 8) | ((((npy_uint32)*((npy_uint32 *)src))&0xff00u) >> 8) | ((((npy_uint32)*((npy_uint32 *)src))&0xff0000u) << 8) | ((((npy_uint32)*((npy_uint32 *)src))&0xff000000u) >> 8)); ># 167 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst += dst_stride; > > > > src += 4; > > > > > --N; > } >} ># 110 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 118 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 118 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 118 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > > > > > > > >static void >_swap_contig_to_contig_size4(char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ > > while (N > 0) { ># 154 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(dst, src, 4); > > { char a = (dst)[0]; (dst)[0] = (dst)[3]; (dst)[3] = a; a = (dst)[1]; (dst)[1] = (dst)[2]; (dst)[2] = a; }; ># 165 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst += 4; > > > > > > src += 4; > > > > > --N; > } >} ># 118 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > > > > > > > >static void >_aligned_swap_contig_to_contig_size4(char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ > > while (N > 0) { > > > > > (*((npy_uint32 *)dst)) = (((((npy_uint32)*((npy_uint32 *)src))&0xffu) << 24) | ((((npy_uint32)*((npy_uint32 *)src))&0xff00u) << 8) | ((((npy_uint32)*((npy_uint32 *)src))&0xff0000u) >> 8) | (((npy_uint32)*((npy_uint32 *)src)) >> 24)); ># 165 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst += 4; > > > > > > src += 4; > > > > > --N; > } >} ># 118 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > > > > > > > >static void >_swap_pair_contig_to_contig_size4(char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ > > while (N > 0) { ># 154 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(dst, src, 4); > > > > { char a = (dst)[0]; (dst)[0] = (dst)[1]; (dst)[1] = a; }; > { char a = (dst + 2)[0]; (dst + 2)[0] = (dst + 2)[1]; (dst + 2)[1] = a; }; > > > > > > dst += 4; > > > > > > src += 4; > > > > > --N; > } >} ># 118 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > > > > > > > >static void >_aligned_swap_pair_contig_to_contig_size4(char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ > > while (N > 0) { > > > > > (*((npy_uint32 *)dst)) = (((((npy_uint32)*((npy_uint32 *)src))&0xffu) << 8) | ((((npy_uint32)*((npy_uint32 *)src))&0xff00u) >> 8) | ((((npy_uint32)*((npy_uint32 *)src))&0xff0000u) << 8) | ((((npy_uint32)*((npy_uint32 *)src))&0xff000000u) >> 8)); ># 165 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst += 4; > > > > > > src += 4; > > > > > --N; > } >} ># 104 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 110 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 118 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > > > > > > > >static void >_strided_to_strided_size8(char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ > > while (N > 0) { ># 154 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(dst, src, 8); ># 167 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst += dst_stride; > > > > > > src += src_stride; > > > --N; > } >} ># 118 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > > > > > > > >static void >_aligned_strided_to_strided_size8(char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ > > while (N > 0) { > > > > > (*((npy_uint64 *)dst)) = (*((npy_uint64 *)src)); ># 167 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst += dst_stride; > > > > > > src += src_stride; > > > --N; > } >} > > > > > >static void >_aligned_strided_to_strided_size8_srcstride0(char *dst, > npy_intp dst_stride, > char *src, npy_intp (__NPY_UNUSED_TAGGEDsrc_stride) __attribute__ ((__unused__)), > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ > > npy_uint64 temp = (*((npy_uint64 *)src)); ># 207 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > while (N > 0) { > > *((npy_uint64 *)dst) = temp; > > > > > > > > dst += dst_stride; > > --N; > } >} ># 118 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > > > > > > > >static void >_swap_strided_to_strided_size8(char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ > > while (N > 0) { ># 154 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(dst, src, 8); > > { char a = (dst)[0]; (dst)[0] = (dst)[7]; (dst)[7] = a; a = (dst)[1]; (dst)[1] = (dst)[6]; (dst)[6] = a; a = (dst)[2]; (dst)[2] = (dst)[5]; (dst)[5] = a; a = (dst)[3]; (dst)[3] = (dst)[4]; (dst)[4] = a; }; ># 167 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst += dst_stride; > > > > > > src += src_stride; > > > --N; > } >} ># 118 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > > > > > > > >static void >_aligned_swap_strided_to_strided_size8(char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ > > while (N > 0) { > > > > > (*((npy_uint64 *)dst)) = (((((npy_uint64)*((npy_uint64 *)src))&0xffULL) << 56) | ((((npy_uint64)*((npy_uint64 *)src))&0xff00ULL) << 40) | ((((npy_uint64)*((npy_uint64 *)src))&0xff0000ULL) << 24) | ((((npy_uint64)*((npy_uint64 *)src))&0xff000000ULL) << 8) | ((((npy_uint64)*((npy_uint64 *)src))&0xff00000000ULL) >> 8) | ((((npy_uint64)*((npy_uint64 *)src))&0xff0000000000ULL) >> 24) | ((((npy_uint64)*((npy_uint64 *)src))&0xff000000000000ULL) >> 40) | (((npy_uint64)*((npy_uint64 *)src)) >> 56)); ># 167 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst += dst_stride; > > > > > > src += src_stride; > > > --N; > } >} > > > > > >static void >_aligned_swap_strided_to_strided_size8_srcstride0(char *dst, > npy_intp dst_stride, > char *src, npy_intp (__NPY_UNUSED_TAGGEDsrc_stride) __attribute__ ((__unused__)), > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ > > npy_uint64 temp = (((((npy_uint64)*((npy_uint64 *)src))&0xffULL) << 56) | ((((npy_uint64)*((npy_uint64 *)src))&0xff00ULL) << 40) | ((((npy_uint64)*((npy_uint64 *)src))&0xff0000ULL) << 24) | ((((npy_uint64)*((npy_uint64 *)src))&0xff000000ULL) << 8) | ((((npy_uint64)*((npy_uint64 *)src))&0xff00000000ULL) >> 8) | ((((npy_uint64)*((npy_uint64 *)src))&0xff0000000000ULL) >> 24) | ((((npy_uint64)*((npy_uint64 *)src))&0xff000000000000ULL) >> 40) | (((npy_uint64)*((npy_uint64 *)src)) >> 56)); ># 207 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > while (N > 0) { > > *((npy_uint64 *)dst) = temp; > > > > > > > > dst += dst_stride; > > --N; > } >} ># 118 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > > > > > > > >static void >_swap_pair_strided_to_strided_size8(char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ > > while (N > 0) { ># 154 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(dst, src, 8); > > > > { char a = (dst)[0]; (dst)[0] = (dst)[3]; (dst)[3] = a; a = (dst)[1]; (dst)[1] = (dst)[2]; (dst)[2] = a; }; > { char a = (dst + 4)[0]; (dst + 4)[0] = (dst + 4)[3]; (dst + 4)[3] = a; a = (dst + 4)[1]; (dst + 4)[1] = (dst + 4)[2]; (dst + 4)[2] = a; }; > > > > > > > > dst += dst_stride; > > > > > > src += src_stride; > > > --N; > } >} ># 118 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > > > > > > > >static void >_aligned_swap_pair_strided_to_strided_size8(char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ > > while (N > 0) { > > > > > (*((npy_uint64 *)dst)) = (((((npy_uint64)*((npy_uint64 *)src))&0xffULL) << 24) | ((((npy_uint64)*((npy_uint64 *)src))&0xff00ULL) << 8) | ((((npy_uint64)*((npy_uint64 *)src))&0xff0000ULL) >> 8) | ((((npy_uint64)*((npy_uint64 *)src))&0xff000000ULL) >> 24) | ((((npy_uint64)*((npy_uint64 *)src))&0xff00000000ULL) << 24) | ((((npy_uint64)*((npy_uint64 *)src))&0xff0000000000ULL) << 8) | ((((npy_uint64)*((npy_uint64 *)src))&0xff000000000000ULL) >> 8) | ((((npy_uint64)*((npy_uint64 *)src))&0xff00000000000000ULL) >> 24)); ># 167 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst += dst_stride; > > > > > > src += src_stride; > > > --N; > } >} > > > > > >static void >_aligned_swap_pair_strided_to_strided_size8_srcstride0(char *dst, > npy_intp dst_stride, > char *src, npy_intp (__NPY_UNUSED_TAGGEDsrc_stride) __attribute__ ((__unused__)), > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ > > npy_uint64 temp = (((((npy_uint64)*((npy_uint64 *)src))&0xffULL) << 24) | ((((npy_uint64)*((npy_uint64 *)src))&0xff00ULL) << 8) | ((((npy_uint64)*((npy_uint64 *)src))&0xff0000ULL) >> 8) | ((((npy_uint64)*((npy_uint64 *)src))&0xff000000ULL) >> 24) | ((((npy_uint64)*((npy_uint64 *)src))&0xff00000000ULL) << 24) | ((((npy_uint64)*((npy_uint64 *)src))&0xff0000000000ULL) << 8) | ((((npy_uint64)*((npy_uint64 *)src))&0xff000000000000ULL) >> 8) | ((((npy_uint64)*((npy_uint64 *)src))&0xff00000000000000ULL) >> 24)); ># 207 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > while (N > 0) { > > *((npy_uint64 *)dst) = temp; > > > > > > > > dst += dst_stride; > > --N; > } >} ># 110 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 118 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > > > > > > > >static void >_strided_to_contig_size8(char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ > > while (N > 0) { ># 154 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(dst, src, 8); ># 165 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst += 8; > > > > > > > > src += src_stride; > > > --N; > } >} ># 118 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > > > > > > > >static void >_aligned_strided_to_contig_size8(char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ > > while (N > 0) { > > > > > (*((npy_uint64 *)dst)) = (*((npy_uint64 *)src)); ># 165 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst += 8; > > > > > > > > src += src_stride; > > > --N; > } >} > > > > > >static void >_aligned_strided_to_contig_size8_srcstride0(char *dst, > npy_intp dst_stride, > char *src, npy_intp (__NPY_UNUSED_TAGGEDsrc_stride) __attribute__ ((__unused__)), > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ > > npy_uint64 temp = (*((npy_uint64 *)src)); ># 207 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > while (N > 0) { > > *((npy_uint64 *)dst) = temp; > > > > > > dst += 8; > > > > --N; > } >} ># 118 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > > > > > > > >static void >_swap_strided_to_contig_size8(char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ > > while (N > 0) { ># 154 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(dst, src, 8); > > { char a = (dst)[0]; (dst)[0] = (dst)[7]; (dst)[7] = a; a = (dst)[1]; (dst)[1] = (dst)[6]; (dst)[6] = a; a = (dst)[2]; (dst)[2] = (dst)[5]; (dst)[5] = a; a = (dst)[3]; (dst)[3] = (dst)[4]; (dst)[4] = a; }; ># 165 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst += 8; > > > > > > > > src += src_stride; > > > --N; > } >} ># 118 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > > > > > > > >static void >_aligned_swap_strided_to_contig_size8(char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ > > while (N > 0) { > > > > > (*((npy_uint64 *)dst)) = (((((npy_uint64)*((npy_uint64 *)src))&0xffULL) << 56) | ((((npy_uint64)*((npy_uint64 *)src))&0xff00ULL) << 40) | ((((npy_uint64)*((npy_uint64 *)src))&0xff0000ULL) << 24) | ((((npy_uint64)*((npy_uint64 *)src))&0xff000000ULL) << 8) | ((((npy_uint64)*((npy_uint64 *)src))&0xff00000000ULL) >> 8) | ((((npy_uint64)*((npy_uint64 *)src))&0xff0000000000ULL) >> 24) | ((((npy_uint64)*((npy_uint64 *)src))&0xff000000000000ULL) >> 40) | (((npy_uint64)*((npy_uint64 *)src)) >> 56)); ># 165 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst += 8; > > > > > > > > src += src_stride; > > > --N; > } >} > > > > > >static void >_aligned_swap_strided_to_contig_size8_srcstride0(char *dst, > npy_intp dst_stride, > char *src, npy_intp (__NPY_UNUSED_TAGGEDsrc_stride) __attribute__ ((__unused__)), > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ > > npy_uint64 temp = (((((npy_uint64)*((npy_uint64 *)src))&0xffULL) << 56) | ((((npy_uint64)*((npy_uint64 *)src))&0xff00ULL) << 40) | ((((npy_uint64)*((npy_uint64 *)src))&0xff0000ULL) << 24) | ((((npy_uint64)*((npy_uint64 *)src))&0xff000000ULL) << 8) | ((((npy_uint64)*((npy_uint64 *)src))&0xff00000000ULL) >> 8) | ((((npy_uint64)*((npy_uint64 *)src))&0xff0000000000ULL) >> 24) | ((((npy_uint64)*((npy_uint64 *)src))&0xff000000000000ULL) >> 40) | (((npy_uint64)*((npy_uint64 *)src)) >> 56)); ># 207 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > while (N > 0) { > > *((npy_uint64 *)dst) = temp; > > > > > > dst += 8; > > > > --N; > } >} ># 118 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > > > > > > > >static void >_swap_pair_strided_to_contig_size8(char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ > > while (N > 0) { ># 154 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(dst, src, 8); > > > > { char a = (dst)[0]; (dst)[0] = (dst)[3]; (dst)[3] = a; a = (dst)[1]; (dst)[1] = (dst)[2]; (dst)[2] = a; }; > { char a = (dst + 4)[0]; (dst + 4)[0] = (dst + 4)[3]; (dst + 4)[3] = a; a = (dst + 4)[1]; (dst + 4)[1] = (dst + 4)[2]; (dst + 4)[2] = a; }; > > > > > > dst += 8; > > > > > > > > src += src_stride; > > > --N; > } >} ># 118 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > > > > > > > >static void >_aligned_swap_pair_strided_to_contig_size8(char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ > > while (N > 0) { > > > > > (*((npy_uint64 *)dst)) = (((((npy_uint64)*((npy_uint64 *)src))&0xffULL) << 24) | ((((npy_uint64)*((npy_uint64 *)src))&0xff00ULL) << 8) | ((((npy_uint64)*((npy_uint64 *)src))&0xff0000ULL) >> 8) | ((((npy_uint64)*((npy_uint64 *)src))&0xff000000ULL) >> 24) | ((((npy_uint64)*((npy_uint64 *)src))&0xff00000000ULL) << 24) | ((((npy_uint64)*((npy_uint64 *)src))&0xff0000000000ULL) << 8) | ((((npy_uint64)*((npy_uint64 *)src))&0xff000000000000ULL) >> 8) | ((((npy_uint64)*((npy_uint64 *)src))&0xff00000000000000ULL) >> 24)); ># 165 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst += 8; > > > > > > > > src += src_stride; > > > --N; > } >} > > > > > >static void >_aligned_swap_pair_strided_to_contig_size8_srcstride0(char *dst, > npy_intp dst_stride, > char *src, npy_intp (__NPY_UNUSED_TAGGEDsrc_stride) __attribute__ ((__unused__)), > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ > > npy_uint64 temp = (((((npy_uint64)*((npy_uint64 *)src))&0xffULL) << 24) | ((((npy_uint64)*((npy_uint64 *)src))&0xff00ULL) << 8) | ((((npy_uint64)*((npy_uint64 *)src))&0xff0000ULL) >> 8) | ((((npy_uint64)*((npy_uint64 *)src))&0xff000000ULL) >> 24) | ((((npy_uint64)*((npy_uint64 *)src))&0xff00000000ULL) << 24) | ((((npy_uint64)*((npy_uint64 *)src))&0xff0000000000ULL) << 8) | ((((npy_uint64)*((npy_uint64 *)src))&0xff000000000000ULL) >> 8) | ((((npy_uint64)*((npy_uint64 *)src))&0xff00000000000000ULL) >> 24)); ># 207 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > while (N > 0) { > > *((npy_uint64 *)dst) = temp; > > > > > > dst += 8; > > > > --N; > } >} ># 110 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 118 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > > > > > > > >static void >_contig_to_strided_size8(char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ > > while (N > 0) { ># 154 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(dst, src, 8); ># 167 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst += dst_stride; > > > > src += 8; > > > > > --N; > } >} ># 118 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > > > > > > > >static void >_aligned_contig_to_strided_size8(char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ > > while (N > 0) { > > > > > (*((npy_uint64 *)dst)) = (*((npy_uint64 *)src)); ># 167 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst += dst_stride; > > > > src += 8; > > > > > --N; > } >} ># 118 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > > > > > > > >static void >_swap_contig_to_strided_size8(char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ > > while (N > 0) { ># 154 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(dst, src, 8); > > { char a = (dst)[0]; (dst)[0] = (dst)[7]; (dst)[7] = a; a = (dst)[1]; (dst)[1] = (dst)[6]; (dst)[6] = a; a = (dst)[2]; (dst)[2] = (dst)[5]; (dst)[5] = a; a = (dst)[3]; (dst)[3] = (dst)[4]; (dst)[4] = a; }; ># 167 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst += dst_stride; > > > > src += 8; > > > > > --N; > } >} ># 118 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > > > > > > > >static void >_aligned_swap_contig_to_strided_size8(char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ > > while (N > 0) { > > > > > (*((npy_uint64 *)dst)) = (((((npy_uint64)*((npy_uint64 *)src))&0xffULL) << 56) | ((((npy_uint64)*((npy_uint64 *)src))&0xff00ULL) << 40) | ((((npy_uint64)*((npy_uint64 *)src))&0xff0000ULL) << 24) | ((((npy_uint64)*((npy_uint64 *)src))&0xff000000ULL) << 8) | ((((npy_uint64)*((npy_uint64 *)src))&0xff00000000ULL) >> 8) | ((((npy_uint64)*((npy_uint64 *)src))&0xff0000000000ULL) >> 24) | ((((npy_uint64)*((npy_uint64 *)src))&0xff000000000000ULL) >> 40) | (((npy_uint64)*((npy_uint64 *)src)) >> 56)); ># 167 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst += dst_stride; > > > > src += 8; > > > > > --N; > } >} ># 118 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > > > > > > > >static void >_swap_pair_contig_to_strided_size8(char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ > > while (N > 0) { ># 154 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(dst, src, 8); > > > > { char a = (dst)[0]; (dst)[0] = (dst)[3]; (dst)[3] = a; a = (dst)[1]; (dst)[1] = (dst)[2]; (dst)[2] = a; }; > { char a = (dst + 4)[0]; (dst + 4)[0] = (dst + 4)[3]; (dst + 4)[3] = a; a = (dst + 4)[1]; (dst + 4)[1] = (dst + 4)[2]; (dst + 4)[2] = a; }; > > > > > > > > dst += dst_stride; > > > > src += 8; > > > > > --N; > } >} ># 118 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > > > > > > > >static void >_aligned_swap_pair_contig_to_strided_size8(char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ > > while (N > 0) { > > > > > (*((npy_uint64 *)dst)) = (((((npy_uint64)*((npy_uint64 *)src))&0xffULL) << 24) | ((((npy_uint64)*((npy_uint64 *)src))&0xff00ULL) << 8) | ((((npy_uint64)*((npy_uint64 *)src))&0xff0000ULL) >> 8) | ((((npy_uint64)*((npy_uint64 *)src))&0xff000000ULL) >> 24) | ((((npy_uint64)*((npy_uint64 *)src))&0xff00000000ULL) << 24) | ((((npy_uint64)*((npy_uint64 *)src))&0xff0000000000ULL) << 8) | ((((npy_uint64)*((npy_uint64 *)src))&0xff000000000000ULL) >> 8) | ((((npy_uint64)*((npy_uint64 *)src))&0xff00000000000000ULL) >> 24)); ># 167 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst += dst_stride; > > > > src += 8; > > > > > --N; > } >} ># 110 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 118 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 118 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 118 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > > > > > > > >static void >_swap_contig_to_contig_size8(char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ > > while (N > 0) { ># 154 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(dst, src, 8); > > { char a = (dst)[0]; (dst)[0] = (dst)[7]; (dst)[7] = a; a = (dst)[1]; (dst)[1] = (dst)[6]; (dst)[6] = a; a = (dst)[2]; (dst)[2] = (dst)[5]; (dst)[5] = a; a = (dst)[3]; (dst)[3] = (dst)[4]; (dst)[4] = a; }; ># 165 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst += 8; > > > > > > src += 8; > > > > > --N; > } >} ># 118 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > > > > > > > >static void >_aligned_swap_contig_to_contig_size8(char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ > > while (N > 0) { > > > > > (*((npy_uint64 *)dst)) = (((((npy_uint64)*((npy_uint64 *)src))&0xffULL) << 56) | ((((npy_uint64)*((npy_uint64 *)src))&0xff00ULL) << 40) | ((((npy_uint64)*((npy_uint64 *)src))&0xff0000ULL) << 24) | ((((npy_uint64)*((npy_uint64 *)src))&0xff000000ULL) << 8) | ((((npy_uint64)*((npy_uint64 *)src))&0xff00000000ULL) >> 8) | ((((npy_uint64)*((npy_uint64 *)src))&0xff0000000000ULL) >> 24) | ((((npy_uint64)*((npy_uint64 *)src))&0xff000000000000ULL) >> 40) | (((npy_uint64)*((npy_uint64 *)src)) >> 56)); ># 165 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst += 8; > > > > > > src += 8; > > > > > --N; > } >} ># 118 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > > > > > > > >static void >_swap_pair_contig_to_contig_size8(char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ > > while (N > 0) { ># 154 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(dst, src, 8); > > > > { char a = (dst)[0]; (dst)[0] = (dst)[3]; (dst)[3] = a; a = (dst)[1]; (dst)[1] = (dst)[2]; (dst)[2] = a; }; > { char a = (dst + 4)[0]; (dst + 4)[0] = (dst + 4)[3]; (dst + 4)[3] = a; a = (dst + 4)[1]; (dst + 4)[1] = (dst + 4)[2]; (dst + 4)[2] = a; }; > > > > > > dst += 8; > > > > > > src += 8; > > > > > --N; > } >} ># 118 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > > > > > > > >static void >_aligned_swap_pair_contig_to_contig_size8(char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ > > while (N > 0) { > > > > > (*((npy_uint64 *)dst)) = (((((npy_uint64)*((npy_uint64 *)src))&0xffULL) << 24) | ((((npy_uint64)*((npy_uint64 *)src))&0xff00ULL) << 8) | ((((npy_uint64)*((npy_uint64 *)src))&0xff0000ULL) >> 8) | ((((npy_uint64)*((npy_uint64 *)src))&0xff000000ULL) >> 24) | ((((npy_uint64)*((npy_uint64 *)src))&0xff00000000ULL) << 24) | ((((npy_uint64)*((npy_uint64 *)src))&0xff0000000000ULL) << 8) | ((((npy_uint64)*((npy_uint64 *)src))&0xff000000000000ULL) >> 8) | ((((npy_uint64)*((npy_uint64 *)src))&0xff00000000000000ULL) >> 24)); ># 165 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst += 8; > > > > > > src += 8; > > > > > --N; > } >} ># 104 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 110 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 118 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > > > > > > > >static void >_strided_to_strided_size16(char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ > > while (N > 0) { ># 154 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(dst, src, 16); ># 167 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst += dst_stride; > > > > > > src += src_stride; > > > --N; > } >} ># 118 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > > > > > > > >static void >_aligned_strided_to_strided_size16(char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ > > while (N > 0) { > > > > > > > > (*((npy_uint64 *)dst)) = (*((npy_uint64 *)src)); > (*((npy_uint64 *)dst + 1)) = (*((npy_uint64 *)src + 1)); ># 167 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst += dst_stride; > > > > > > src += src_stride; > > > --N; > } >} > > > > > >static void >_aligned_strided_to_strided_size16_srcstride0(char *dst, > npy_intp dst_stride, > char *src, npy_intp (__NPY_UNUSED_TAGGEDsrc_stride) __attribute__ ((__unused__)), > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ > > > > npy_uint64 temp0, temp1; > > temp0 = (*((npy_uint64 *)src)); > temp1 = (*((npy_uint64 *)src + 1)); ># 207 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > while (N > 0) { > > > > *((npy_uint64 *)dst) = temp0; > *((npy_uint64 *)dst + 1) = temp1; > > > > > dst += dst_stride; > > --N; > } >} ># 118 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > > > > > > > >static void >_swap_strided_to_strided_size16(char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ > > while (N > 0) { ># 154 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(dst, src, 16); > > { char a = (dst)[0]; (dst)[0] = (dst)[15]; (dst)[15] = a; a = (dst)[1]; (dst)[1] = (dst)[14]; (dst)[14] = a; a = (dst)[2]; (dst)[2] = (dst)[13]; (dst)[13] = a; a = (dst)[3]; (dst)[3] = (dst)[12]; (dst)[12] = a; a = (dst)[4]; (dst)[4] = (dst)[11]; (dst)[11] = a; a = (dst)[5]; (dst)[5] = (dst)[10]; (dst)[10] = a; a = (dst)[6]; (dst)[6] = (dst)[9]; (dst)[9] = a; a = (dst)[7]; (dst)[7] = (dst)[8]; (dst)[8] = a; }; ># 167 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst += dst_stride; > > > > > > src += src_stride; > > > --N; > } >} ># 118 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > > > > > > > >static void >_aligned_swap_strided_to_strided_size16(char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ > > while (N > 0) { ># 143 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > (*((npy_uint64 *)dst)) = (((((npy_uint64)*((npy_uint64 *)src + 1))&0xffULL) << 56) | ((((npy_uint64)*((npy_uint64 *)src + 1))&0xff00ULL) << 40) | ((((npy_uint64)*((npy_uint64 *)src + 1))&0xff0000ULL) << 24) | ((((npy_uint64)*((npy_uint64 *)src + 1))&0xff000000ULL) << 8) | ((((npy_uint64)*((npy_uint64 *)src + 1))&0xff00000000ULL) >> 8) | ((((npy_uint64)*((npy_uint64 *)src + 1))&0xff0000000000ULL) >> 24) | ((((npy_uint64)*((npy_uint64 *)src + 1))&0xff000000000000ULL) >> 40) | (((npy_uint64)*((npy_uint64 *)src + 1)) >> 56)); > (*((npy_uint64 *)dst + 1)) = (((((npy_uint64)*((npy_uint64 *)src))&0xffULL) << 56) | ((((npy_uint64)*((npy_uint64 *)src))&0xff00ULL) << 40) | ((((npy_uint64)*((npy_uint64 *)src))&0xff0000ULL) << 24) | ((((npy_uint64)*((npy_uint64 *)src))&0xff000000ULL) << 8) | ((((npy_uint64)*((npy_uint64 *)src))&0xff00000000ULL) >> 8) | ((((npy_uint64)*((npy_uint64 *)src))&0xff0000000000ULL) >> 24) | ((((npy_uint64)*((npy_uint64 *)src))&0xff000000000000ULL) >> 40) | (((npy_uint64)*((npy_uint64 *)src)) >> 56)); ># 167 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst += dst_stride; > > > > > > src += src_stride; > > > --N; > } >} > > > > > >static void >_aligned_swap_strided_to_strided_size16_srcstride0(char *dst, > npy_intp dst_stride, > char *src, npy_intp (__NPY_UNUSED_TAGGEDsrc_stride) __attribute__ ((__unused__)), > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ > > > > npy_uint64 temp0, temp1; > > > > > temp0 = (((((npy_uint64)*((npy_uint64 *)src + 1))&0xffULL) << 56) | ((((npy_uint64)*((npy_uint64 *)src + 1))&0xff00ULL) << 40) | ((((npy_uint64)*((npy_uint64 *)src + 1))&0xff0000ULL) << 24) | ((((npy_uint64)*((npy_uint64 *)src + 1))&0xff000000ULL) << 8) | ((((npy_uint64)*((npy_uint64 *)src + 1))&0xff00000000ULL) >> 8) | ((((npy_uint64)*((npy_uint64 *)src + 1))&0xff0000000000ULL) >> 24) | ((((npy_uint64)*((npy_uint64 *)src + 1))&0xff000000000000ULL) >> 40) | (((npy_uint64)*((npy_uint64 *)src + 1)) >> 56)); > temp1 = (((((npy_uint64)*((npy_uint64 *)src))&0xffULL) << 56) | ((((npy_uint64)*((npy_uint64 *)src))&0xff00ULL) << 40) | ((((npy_uint64)*((npy_uint64 *)src))&0xff0000ULL) << 24) | ((((npy_uint64)*((npy_uint64 *)src))&0xff000000ULL) << 8) | ((((npy_uint64)*((npy_uint64 *)src))&0xff00000000ULL) >> 8) | ((((npy_uint64)*((npy_uint64 *)src))&0xff0000000000ULL) >> 24) | ((((npy_uint64)*((npy_uint64 *)src))&0xff000000000000ULL) >> 40) | (((npy_uint64)*((npy_uint64 *)src)) >> 56)); > > > > > > > while (N > 0) { > > > > *((npy_uint64 *)dst) = temp0; > *((npy_uint64 *)dst + 1) = temp1; > > > > > dst += dst_stride; > > --N; > } >} ># 118 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > > > > > > > >static void >_swap_pair_strided_to_strided_size16(char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ > > while (N > 0) { ># 154 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(dst, src, 16); > > > > { char a = (dst)[0]; (dst)[0] = (dst)[7]; (dst)[7] = a; a = (dst)[1]; (dst)[1] = (dst)[6]; (dst)[6] = a; a = (dst)[2]; (dst)[2] = (dst)[5]; (dst)[5] = a; a = (dst)[3]; (dst)[3] = (dst)[4]; (dst)[4] = a; }; > { char a = (dst + 8)[0]; (dst + 8)[0] = (dst + 8)[7]; (dst + 8)[7] = a; a = (dst + 8)[1]; (dst + 8)[1] = (dst + 8)[6]; (dst + 8)[6] = a; a = (dst + 8)[2]; (dst + 8)[2] = (dst + 8)[5]; (dst + 8)[5] = a; a = (dst + 8)[3]; (dst + 8)[3] = (dst + 8)[4]; (dst + 8)[4] = a; }; > > > > > > > > dst += dst_stride; > > > > > > src += src_stride; > > > --N; > } >} ># 118 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > > > > > > > >static void >_aligned_swap_pair_strided_to_strided_size16(char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ > > while (N > 0) { ># 146 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > (*((npy_uint64 *)dst)) = (((((npy_uint64)*((npy_uint64 *)src))&0xffULL) << 56) | ((((npy_uint64)*((npy_uint64 *)src))&0xff00ULL) << 40) | ((((npy_uint64)*((npy_uint64 *)src))&0xff0000ULL) << 24) | ((((npy_uint64)*((npy_uint64 *)src))&0xff000000ULL) << 8) | ((((npy_uint64)*((npy_uint64 *)src))&0xff00000000ULL) >> 8) | ((((npy_uint64)*((npy_uint64 *)src))&0xff0000000000ULL) >> 24) | ((((npy_uint64)*((npy_uint64 *)src))&0xff000000000000ULL) >> 40) | (((npy_uint64)*((npy_uint64 *)src)) >> 56)); > (*((npy_uint64 *)dst + 1)) = (((((npy_uint64)*((npy_uint64 *)src + 1))&0xffULL) << 56) | ((((npy_uint64)*((npy_uint64 *)src + 1))&0xff00ULL) << 40) | ((((npy_uint64)*((npy_uint64 *)src + 1))&0xff0000ULL) << 24) | ((((npy_uint64)*((npy_uint64 *)src + 1))&0xff000000ULL) << 8) | ((((npy_uint64)*((npy_uint64 *)src + 1))&0xff00000000ULL) >> 8) | ((((npy_uint64)*((npy_uint64 *)src + 1))&0xff0000000000ULL) >> 24) | ((((npy_uint64)*((npy_uint64 *)src + 1))&0xff000000000000ULL) >> 40) | (((npy_uint64)*((npy_uint64 *)src + 1)) >> 56)); ># 167 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst += dst_stride; > > > > > > src += src_stride; > > > --N; > } >} > > > > > >static void >_aligned_swap_pair_strided_to_strided_size16_srcstride0(char *dst, > npy_intp dst_stride, > char *src, npy_intp (__NPY_UNUSED_TAGGEDsrc_stride) __attribute__ ((__unused__)), > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ > > > > npy_uint64 temp0, temp1; > > > > > > > > temp0 = (((((npy_uint64)*((npy_uint64 *)src))&0xffULL) << 56) | ((((npy_uint64)*((npy_uint64 *)src))&0xff00ULL) << 40) | ((((npy_uint64)*((npy_uint64 *)src))&0xff0000ULL) << 24) | ((((npy_uint64)*((npy_uint64 *)src))&0xff000000ULL) << 8) | ((((npy_uint64)*((npy_uint64 *)src))&0xff00000000ULL) >> 8) | ((((npy_uint64)*((npy_uint64 *)src))&0xff0000000000ULL) >> 24) | ((((npy_uint64)*((npy_uint64 *)src))&0xff000000000000ULL) >> 40) | (((npy_uint64)*((npy_uint64 *)src)) >> 56)); > temp1 = (((((npy_uint64)*((npy_uint64 *)src + 1))&0xffULL) << 56) | ((((npy_uint64)*((npy_uint64 *)src + 1))&0xff00ULL) << 40) | ((((npy_uint64)*((npy_uint64 *)src + 1))&0xff0000ULL) << 24) | ((((npy_uint64)*((npy_uint64 *)src + 1))&0xff000000ULL) << 8) | ((((npy_uint64)*((npy_uint64 *)src + 1))&0xff00000000ULL) >> 8) | ((((npy_uint64)*((npy_uint64 *)src + 1))&0xff0000000000ULL) >> 24) | ((((npy_uint64)*((npy_uint64 *)src + 1))&0xff000000000000ULL) >> 40) | (((npy_uint64)*((npy_uint64 *)src + 1)) >> 56)); > > > > while (N > 0) { > > > > *((npy_uint64 *)dst) = temp0; > *((npy_uint64 *)dst + 1) = temp1; > > > > > dst += dst_stride; > > --N; > } >} ># 110 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 118 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > > > > > > > >static void >_strided_to_contig_size16(char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ > > while (N > 0) { ># 154 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(dst, src, 16); ># 165 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst += 16; > > > > > > > > src += src_stride; > > > --N; > } >} ># 118 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > > > > > > > >static void >_aligned_strided_to_contig_size16(char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ > > while (N > 0) { > > > > > > > > (*((npy_uint64 *)dst)) = (*((npy_uint64 *)src)); > (*((npy_uint64 *)dst + 1)) = (*((npy_uint64 *)src + 1)); ># 165 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst += 16; > > > > > > > > src += src_stride; > > > --N; > } >} > > > > > >static void >_aligned_strided_to_contig_size16_srcstride0(char *dst, > npy_intp dst_stride, > char *src, npy_intp (__NPY_UNUSED_TAGGEDsrc_stride) __attribute__ ((__unused__)), > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ > > > > npy_uint64 temp0, temp1; > > temp0 = (*((npy_uint64 *)src)); > temp1 = (*((npy_uint64 *)src + 1)); ># 207 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > while (N > 0) { > > > > *((npy_uint64 *)dst) = temp0; > *((npy_uint64 *)dst + 1) = temp1; > > > dst += 16; > > > > --N; > } >} ># 118 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > > > > > > > >static void >_swap_strided_to_contig_size16(char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ > > while (N > 0) { ># 154 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(dst, src, 16); > > { char a = (dst)[0]; (dst)[0] = (dst)[15]; (dst)[15] = a; a = (dst)[1]; (dst)[1] = (dst)[14]; (dst)[14] = a; a = (dst)[2]; (dst)[2] = (dst)[13]; (dst)[13] = a; a = (dst)[3]; (dst)[3] = (dst)[12]; (dst)[12] = a; a = (dst)[4]; (dst)[4] = (dst)[11]; (dst)[11] = a; a = (dst)[5]; (dst)[5] = (dst)[10]; (dst)[10] = a; a = (dst)[6]; (dst)[6] = (dst)[9]; (dst)[9] = a; a = (dst)[7]; (dst)[7] = (dst)[8]; (dst)[8] = a; }; ># 165 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst += 16; > > > > > > > > src += src_stride; > > > --N; > } >} ># 118 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > > > > > > > >static void >_aligned_swap_strided_to_contig_size16(char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ > > while (N > 0) { ># 143 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > (*((npy_uint64 *)dst)) = (((((npy_uint64)*((npy_uint64 *)src + 1))&0xffULL) << 56) | ((((npy_uint64)*((npy_uint64 *)src + 1))&0xff00ULL) << 40) | ((((npy_uint64)*((npy_uint64 *)src + 1))&0xff0000ULL) << 24) | ((((npy_uint64)*((npy_uint64 *)src + 1))&0xff000000ULL) << 8) | ((((npy_uint64)*((npy_uint64 *)src + 1))&0xff00000000ULL) >> 8) | ((((npy_uint64)*((npy_uint64 *)src + 1))&0xff0000000000ULL) >> 24) | ((((npy_uint64)*((npy_uint64 *)src + 1))&0xff000000000000ULL) >> 40) | (((npy_uint64)*((npy_uint64 *)src + 1)) >> 56)); > (*((npy_uint64 *)dst + 1)) = (((((npy_uint64)*((npy_uint64 *)src))&0xffULL) << 56) | ((((npy_uint64)*((npy_uint64 *)src))&0xff00ULL) << 40) | ((((npy_uint64)*((npy_uint64 *)src))&0xff0000ULL) << 24) | ((((npy_uint64)*((npy_uint64 *)src))&0xff000000ULL) << 8) | ((((npy_uint64)*((npy_uint64 *)src))&0xff00000000ULL) >> 8) | ((((npy_uint64)*((npy_uint64 *)src))&0xff0000000000ULL) >> 24) | ((((npy_uint64)*((npy_uint64 *)src))&0xff000000000000ULL) >> 40) | (((npy_uint64)*((npy_uint64 *)src)) >> 56)); ># 165 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst += 16; > > > > > > > > src += src_stride; > > > --N; > } >} > > > > > >static void >_aligned_swap_strided_to_contig_size16_srcstride0(char *dst, > npy_intp dst_stride, > char *src, npy_intp (__NPY_UNUSED_TAGGEDsrc_stride) __attribute__ ((__unused__)), > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ > > > > npy_uint64 temp0, temp1; > > > > > temp0 = (((((npy_uint64)*((npy_uint64 *)src + 1))&0xffULL) << 56) | ((((npy_uint64)*((npy_uint64 *)src + 1))&0xff00ULL) << 40) | ((((npy_uint64)*((npy_uint64 *)src + 1))&0xff0000ULL) << 24) | ((((npy_uint64)*((npy_uint64 *)src + 1))&0xff000000ULL) << 8) | ((((npy_uint64)*((npy_uint64 *)src + 1))&0xff00000000ULL) >> 8) | ((((npy_uint64)*((npy_uint64 *)src + 1))&0xff0000000000ULL) >> 24) | ((((npy_uint64)*((npy_uint64 *)src + 1))&0xff000000000000ULL) >> 40) | (((npy_uint64)*((npy_uint64 *)src + 1)) >> 56)); > temp1 = (((((npy_uint64)*((npy_uint64 *)src))&0xffULL) << 56) | ((((npy_uint64)*((npy_uint64 *)src))&0xff00ULL) << 40) | ((((npy_uint64)*((npy_uint64 *)src))&0xff0000ULL) << 24) | ((((npy_uint64)*((npy_uint64 *)src))&0xff000000ULL) << 8) | ((((npy_uint64)*((npy_uint64 *)src))&0xff00000000ULL) >> 8) | ((((npy_uint64)*((npy_uint64 *)src))&0xff0000000000ULL) >> 24) | ((((npy_uint64)*((npy_uint64 *)src))&0xff000000000000ULL) >> 40) | (((npy_uint64)*((npy_uint64 *)src)) >> 56)); > > > > > > > while (N > 0) { > > > > *((npy_uint64 *)dst) = temp0; > *((npy_uint64 *)dst + 1) = temp1; > > > dst += 16; > > > > --N; > } >} ># 118 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > > > > > > > >static void >_swap_pair_strided_to_contig_size16(char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ > > while (N > 0) { ># 154 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(dst, src, 16); > > > > { char a = (dst)[0]; (dst)[0] = (dst)[7]; (dst)[7] = a; a = (dst)[1]; (dst)[1] = (dst)[6]; (dst)[6] = a; a = (dst)[2]; (dst)[2] = (dst)[5]; (dst)[5] = a; a = (dst)[3]; (dst)[3] = (dst)[4]; (dst)[4] = a; }; > { char a = (dst + 8)[0]; (dst + 8)[0] = (dst + 8)[7]; (dst + 8)[7] = a; a = (dst + 8)[1]; (dst + 8)[1] = (dst + 8)[6]; (dst + 8)[6] = a; a = (dst + 8)[2]; (dst + 8)[2] = (dst + 8)[5]; (dst + 8)[5] = a; a = (dst + 8)[3]; (dst + 8)[3] = (dst + 8)[4]; (dst + 8)[4] = a; }; > > > > > > dst += 16; > > > > > > > > src += src_stride; > > > --N; > } >} ># 118 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > > > > > > > >static void >_aligned_swap_pair_strided_to_contig_size16(char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ > > while (N > 0) { ># 146 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > (*((npy_uint64 *)dst)) = (((((npy_uint64)*((npy_uint64 *)src))&0xffULL) << 56) | ((((npy_uint64)*((npy_uint64 *)src))&0xff00ULL) << 40) | ((((npy_uint64)*((npy_uint64 *)src))&0xff0000ULL) << 24) | ((((npy_uint64)*((npy_uint64 *)src))&0xff000000ULL) << 8) | ((((npy_uint64)*((npy_uint64 *)src))&0xff00000000ULL) >> 8) | ((((npy_uint64)*((npy_uint64 *)src))&0xff0000000000ULL) >> 24) | ((((npy_uint64)*((npy_uint64 *)src))&0xff000000000000ULL) >> 40) | (((npy_uint64)*((npy_uint64 *)src)) >> 56)); > (*((npy_uint64 *)dst + 1)) = (((((npy_uint64)*((npy_uint64 *)src + 1))&0xffULL) << 56) | ((((npy_uint64)*((npy_uint64 *)src + 1))&0xff00ULL) << 40) | ((((npy_uint64)*((npy_uint64 *)src + 1))&0xff0000ULL) << 24) | ((((npy_uint64)*((npy_uint64 *)src + 1))&0xff000000ULL) << 8) | ((((npy_uint64)*((npy_uint64 *)src + 1))&0xff00000000ULL) >> 8) | ((((npy_uint64)*((npy_uint64 *)src + 1))&0xff0000000000ULL) >> 24) | ((((npy_uint64)*((npy_uint64 *)src + 1))&0xff000000000000ULL) >> 40) | (((npy_uint64)*((npy_uint64 *)src + 1)) >> 56)); ># 165 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst += 16; > > > > > > > > src += src_stride; > > > --N; > } >} > > > > > >static void >_aligned_swap_pair_strided_to_contig_size16_srcstride0(char *dst, > npy_intp dst_stride, > char *src, npy_intp (__NPY_UNUSED_TAGGEDsrc_stride) __attribute__ ((__unused__)), > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ > > > > npy_uint64 temp0, temp1; > > > > > > > > temp0 = (((((npy_uint64)*((npy_uint64 *)src))&0xffULL) << 56) | ((((npy_uint64)*((npy_uint64 *)src))&0xff00ULL) << 40) | ((((npy_uint64)*((npy_uint64 *)src))&0xff0000ULL) << 24) | ((((npy_uint64)*((npy_uint64 *)src))&0xff000000ULL) << 8) | ((((npy_uint64)*((npy_uint64 *)src))&0xff00000000ULL) >> 8) | ((((npy_uint64)*((npy_uint64 *)src))&0xff0000000000ULL) >> 24) | ((((npy_uint64)*((npy_uint64 *)src))&0xff000000000000ULL) >> 40) | (((npy_uint64)*((npy_uint64 *)src)) >> 56)); > temp1 = (((((npy_uint64)*((npy_uint64 *)src + 1))&0xffULL) << 56) | ((((npy_uint64)*((npy_uint64 *)src + 1))&0xff00ULL) << 40) | ((((npy_uint64)*((npy_uint64 *)src + 1))&0xff0000ULL) << 24) | ((((npy_uint64)*((npy_uint64 *)src + 1))&0xff000000ULL) << 8) | ((((npy_uint64)*((npy_uint64 *)src + 1))&0xff00000000ULL) >> 8) | ((((npy_uint64)*((npy_uint64 *)src + 1))&0xff0000000000ULL) >> 24) | ((((npy_uint64)*((npy_uint64 *)src + 1))&0xff000000000000ULL) >> 40) | (((npy_uint64)*((npy_uint64 *)src + 1)) >> 56)); > > > > while (N > 0) { > > > > *((npy_uint64 *)dst) = temp0; > *((npy_uint64 *)dst + 1) = temp1; > > > dst += 16; > > > > --N; > } >} ># 110 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 118 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > > > > > > > >static void >_contig_to_strided_size16(char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ > > while (N > 0) { ># 154 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(dst, src, 16); ># 167 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst += dst_stride; > > > > src += 16; > > > > > --N; > } >} ># 118 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > > > > > > > >static void >_aligned_contig_to_strided_size16(char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ > > while (N > 0) { > > > > > > > > (*((npy_uint64 *)dst)) = (*((npy_uint64 *)src)); > (*((npy_uint64 *)dst + 1)) = (*((npy_uint64 *)src + 1)); ># 167 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst += dst_stride; > > > > src += 16; > > > > > --N; > } >} ># 118 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > > > > > > > >static void >_swap_contig_to_strided_size16(char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ > > while (N > 0) { ># 154 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(dst, src, 16); > > { char a = (dst)[0]; (dst)[0] = (dst)[15]; (dst)[15] = a; a = (dst)[1]; (dst)[1] = (dst)[14]; (dst)[14] = a; a = (dst)[2]; (dst)[2] = (dst)[13]; (dst)[13] = a; a = (dst)[3]; (dst)[3] = (dst)[12]; (dst)[12] = a; a = (dst)[4]; (dst)[4] = (dst)[11]; (dst)[11] = a; a = (dst)[5]; (dst)[5] = (dst)[10]; (dst)[10] = a; a = (dst)[6]; (dst)[6] = (dst)[9]; (dst)[9] = a; a = (dst)[7]; (dst)[7] = (dst)[8]; (dst)[8] = a; }; ># 167 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst += dst_stride; > > > > src += 16; > > > > > --N; > } >} ># 118 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > > > > > > > >static void >_aligned_swap_contig_to_strided_size16(char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ > > while (N > 0) { ># 143 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > (*((npy_uint64 *)dst)) = (((((npy_uint64)*((npy_uint64 *)src + 1))&0xffULL) << 56) | ((((npy_uint64)*((npy_uint64 *)src + 1))&0xff00ULL) << 40) | ((((npy_uint64)*((npy_uint64 *)src + 1))&0xff0000ULL) << 24) | ((((npy_uint64)*((npy_uint64 *)src + 1))&0xff000000ULL) << 8) | ((((npy_uint64)*((npy_uint64 *)src + 1))&0xff00000000ULL) >> 8) | ((((npy_uint64)*((npy_uint64 *)src + 1))&0xff0000000000ULL) >> 24) | ((((npy_uint64)*((npy_uint64 *)src + 1))&0xff000000000000ULL) >> 40) | (((npy_uint64)*((npy_uint64 *)src + 1)) >> 56)); > (*((npy_uint64 *)dst + 1)) = (((((npy_uint64)*((npy_uint64 *)src))&0xffULL) << 56) | ((((npy_uint64)*((npy_uint64 *)src))&0xff00ULL) << 40) | ((((npy_uint64)*((npy_uint64 *)src))&0xff0000ULL) << 24) | ((((npy_uint64)*((npy_uint64 *)src))&0xff000000ULL) << 8) | ((((npy_uint64)*((npy_uint64 *)src))&0xff00000000ULL) >> 8) | ((((npy_uint64)*((npy_uint64 *)src))&0xff0000000000ULL) >> 24) | ((((npy_uint64)*((npy_uint64 *)src))&0xff000000000000ULL) >> 40) | (((npy_uint64)*((npy_uint64 *)src)) >> 56)); ># 167 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst += dst_stride; > > > > src += 16; > > > > > --N; > } >} ># 118 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > > > > > > > >static void >_swap_pair_contig_to_strided_size16(char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ > > while (N > 0) { ># 154 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(dst, src, 16); > > > > { char a = (dst)[0]; (dst)[0] = (dst)[7]; (dst)[7] = a; a = (dst)[1]; (dst)[1] = (dst)[6]; (dst)[6] = a; a = (dst)[2]; (dst)[2] = (dst)[5]; (dst)[5] = a; a = (dst)[3]; (dst)[3] = (dst)[4]; (dst)[4] = a; }; > { char a = (dst + 8)[0]; (dst + 8)[0] = (dst + 8)[7]; (dst + 8)[7] = a; a = (dst + 8)[1]; (dst + 8)[1] = (dst + 8)[6]; (dst + 8)[6] = a; a = (dst + 8)[2]; (dst + 8)[2] = (dst + 8)[5]; (dst + 8)[5] = a; a = (dst + 8)[3]; (dst + 8)[3] = (dst + 8)[4]; (dst + 8)[4] = a; }; > > > > > > > > dst += dst_stride; > > > > src += 16; > > > > > --N; > } >} ># 118 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > > > > > > > >static void >_aligned_swap_pair_contig_to_strided_size16(char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ > > while (N > 0) { ># 146 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > (*((npy_uint64 *)dst)) = (((((npy_uint64)*((npy_uint64 *)src))&0xffULL) << 56) | ((((npy_uint64)*((npy_uint64 *)src))&0xff00ULL) << 40) | ((((npy_uint64)*((npy_uint64 *)src))&0xff0000ULL) << 24) | ((((npy_uint64)*((npy_uint64 *)src))&0xff000000ULL) << 8) | ((((npy_uint64)*((npy_uint64 *)src))&0xff00000000ULL) >> 8) | ((((npy_uint64)*((npy_uint64 *)src))&0xff0000000000ULL) >> 24) | ((((npy_uint64)*((npy_uint64 *)src))&0xff000000000000ULL) >> 40) | (((npy_uint64)*((npy_uint64 *)src)) >> 56)); > (*((npy_uint64 *)dst + 1)) = (((((npy_uint64)*((npy_uint64 *)src + 1))&0xffULL) << 56) | ((((npy_uint64)*((npy_uint64 *)src + 1))&0xff00ULL) << 40) | ((((npy_uint64)*((npy_uint64 *)src + 1))&0xff0000ULL) << 24) | ((((npy_uint64)*((npy_uint64 *)src + 1))&0xff000000ULL) << 8) | ((((npy_uint64)*((npy_uint64 *)src + 1))&0xff00000000ULL) >> 8) | ((((npy_uint64)*((npy_uint64 *)src + 1))&0xff0000000000ULL) >> 24) | ((((npy_uint64)*((npy_uint64 *)src + 1))&0xff000000000000ULL) >> 40) | (((npy_uint64)*((npy_uint64 *)src + 1)) >> 56)); ># 167 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst += dst_stride; > > > > src += 16; > > > > > --N; > } >} ># 110 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 118 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 118 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 118 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > > > > > > > >static void >_swap_contig_to_contig_size16(char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ > > while (N > 0) { ># 154 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(dst, src, 16); > > { char a = (dst)[0]; (dst)[0] = (dst)[15]; (dst)[15] = a; a = (dst)[1]; (dst)[1] = (dst)[14]; (dst)[14] = a; a = (dst)[2]; (dst)[2] = (dst)[13]; (dst)[13] = a; a = (dst)[3]; (dst)[3] = (dst)[12]; (dst)[12] = a; a = (dst)[4]; (dst)[4] = (dst)[11]; (dst)[11] = a; a = (dst)[5]; (dst)[5] = (dst)[10]; (dst)[10] = a; a = (dst)[6]; (dst)[6] = (dst)[9]; (dst)[9] = a; a = (dst)[7]; (dst)[7] = (dst)[8]; (dst)[8] = a; }; ># 165 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst += 16; > > > > > > src += 16; > > > > > --N; > } >} ># 118 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > > > > > > > >static void >_aligned_swap_contig_to_contig_size16(char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ > > while (N > 0) { ># 143 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > (*((npy_uint64 *)dst)) = (((((npy_uint64)*((npy_uint64 *)src + 1))&0xffULL) << 56) | ((((npy_uint64)*((npy_uint64 *)src + 1))&0xff00ULL) << 40) | ((((npy_uint64)*((npy_uint64 *)src + 1))&0xff0000ULL) << 24) | ((((npy_uint64)*((npy_uint64 *)src + 1))&0xff000000ULL) << 8) | ((((npy_uint64)*((npy_uint64 *)src + 1))&0xff00000000ULL) >> 8) | ((((npy_uint64)*((npy_uint64 *)src + 1))&0xff0000000000ULL) >> 24) | ((((npy_uint64)*((npy_uint64 *)src + 1))&0xff000000000000ULL) >> 40) | (((npy_uint64)*((npy_uint64 *)src + 1)) >> 56)); > (*((npy_uint64 *)dst + 1)) = (((((npy_uint64)*((npy_uint64 *)src))&0xffULL) << 56) | ((((npy_uint64)*((npy_uint64 *)src))&0xff00ULL) << 40) | ((((npy_uint64)*((npy_uint64 *)src))&0xff0000ULL) << 24) | ((((npy_uint64)*((npy_uint64 *)src))&0xff000000ULL) << 8) | ((((npy_uint64)*((npy_uint64 *)src))&0xff00000000ULL) >> 8) | ((((npy_uint64)*((npy_uint64 *)src))&0xff0000000000ULL) >> 24) | ((((npy_uint64)*((npy_uint64 *)src))&0xff000000000000ULL) >> 40) | (((npy_uint64)*((npy_uint64 *)src)) >> 56)); ># 165 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst += 16; > > > > > > src += 16; > > > > > --N; > } >} ># 118 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > > > > > > > >static void >_swap_pair_contig_to_contig_size16(char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ > > while (N > 0) { ># 154 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(dst, src, 16); > > > > { char a = (dst)[0]; (dst)[0] = (dst)[7]; (dst)[7] = a; a = (dst)[1]; (dst)[1] = (dst)[6]; (dst)[6] = a; a = (dst)[2]; (dst)[2] = (dst)[5]; (dst)[5] = a; a = (dst)[3]; (dst)[3] = (dst)[4]; (dst)[4] = a; }; > { char a = (dst + 8)[0]; (dst + 8)[0] = (dst + 8)[7]; (dst + 8)[7] = a; a = (dst + 8)[1]; (dst + 8)[1] = (dst + 8)[6]; (dst + 8)[6] = a; a = (dst + 8)[2]; (dst + 8)[2] = (dst + 8)[5]; (dst + 8)[5] = a; a = (dst + 8)[3]; (dst + 8)[3] = (dst + 8)[4]; (dst + 8)[4] = a; }; > > > > > > dst += 16; > > > > > > src += 16; > > > > > --N; > } >} ># 118 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > > > > > > > >static void >_aligned_swap_pair_contig_to_contig_size16(char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ > > while (N > 0) { ># 146 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > (*((npy_uint64 *)dst)) = (((((npy_uint64)*((npy_uint64 *)src))&0xffULL) << 56) | ((((npy_uint64)*((npy_uint64 *)src))&0xff00ULL) << 40) | ((((npy_uint64)*((npy_uint64 *)src))&0xff0000ULL) << 24) | ((((npy_uint64)*((npy_uint64 *)src))&0xff000000ULL) << 8) | ((((npy_uint64)*((npy_uint64 *)src))&0xff00000000ULL) >> 8) | ((((npy_uint64)*((npy_uint64 *)src))&0xff0000000000ULL) >> 24) | ((((npy_uint64)*((npy_uint64 *)src))&0xff000000000000ULL) >> 40) | (((npy_uint64)*((npy_uint64 *)src)) >> 56)); > (*((npy_uint64 *)dst + 1)) = (((((npy_uint64)*((npy_uint64 *)src + 1))&0xffULL) << 56) | ((((npy_uint64)*((npy_uint64 *)src + 1))&0xff00ULL) << 40) | ((((npy_uint64)*((npy_uint64 *)src + 1))&0xff0000ULL) << 24) | ((((npy_uint64)*((npy_uint64 *)src + 1))&0xff000000ULL) << 8) | ((((npy_uint64)*((npy_uint64 *)src + 1))&0xff00000000ULL) >> 8) | ((((npy_uint64)*((npy_uint64 *)src + 1))&0xff0000000000ULL) >> 24) | ((((npy_uint64)*((npy_uint64 *)src + 1))&0xff000000000000ULL) >> 40) | (((npy_uint64)*((npy_uint64 *)src + 1)) >> 56)); ># 165 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst += 16; > > > > > > src += 16; > > > > > --N; > } >} ># 230 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_strided_to_strided(char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp src_itemsize, > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ > while (N > 0) { > memcpy(dst, src, src_itemsize); > dst += dst_stride; > src += src_stride; > --N; > } >} > >static void >_swap_strided_to_strided(char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp src_itemsize, > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ > char *a, *b, c; > > while (N > 0) { > memcpy(dst, src, src_itemsize); > > a = dst; > b = dst + src_itemsize - 1; > while (a < b) { > c = *a; > *a = *b; > *b = c; > ++a; --b; > } > dst += dst_stride; > src += src_stride; > --N; > } >} > >static void >_swap_pair_strided_to_strided(char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp src_itemsize, > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ > char *a, *b, c; > npy_intp itemsize_half = src_itemsize / 2; > > while (N > 0) { > memcpy(dst, src, src_itemsize); > > a = dst; > b = dst + itemsize_half - 1; > while (a < b) { > c = *a; > *a = *b; > *b = c; > ++a; --b; > } > > a = dst + itemsize_half; > b = dst + 2*itemsize_half - 1; > while (a < b) { > c = *a; > *a = *b; > *b = c; > ++a; --b; > } > dst += dst_stride; > src += src_stride; > --N; > } >} > >static void >_contig_to_contig(char *dst, npy_intp (__NPY_UNUSED_TAGGEDdst_stride) __attribute__ ((__unused__)), > char *src, npy_intp (__NPY_UNUSED_TAGGEDsrc_stride) __attribute__ ((__unused__)), > npy_intp N, npy_intp src_itemsize, > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ > memcpy(dst, src, src_itemsize*N); >} > > >static PyArray_StridedTransferFn * >PyArray_GetStridedCopyFn(npy_intp aligned, npy_intp src_stride, > npy_intp dst_stride, npy_intp itemsize) >{ > > > > > > if (aligned) { > > > > if (itemsize != 0 && dst_stride == itemsize) { > > if (src_stride == 0) { > switch (itemsize) { ># 334 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > case 1: > return > &_aligned_strided_to_contig_size1_srcstride0; ># 334 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > case 2: > return > &_aligned_strided_to_contig_size2_srcstride0; ># 334 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > case 4: > return > &_aligned_strided_to_contig_size4_srcstride0; ># 334 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > case 8: > return > &_aligned_strided_to_contig_size8_srcstride0; ># 334 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > case 16: > return > &_aligned_strided_to_contig_size16_srcstride0; > > } > } > > else if (src_stride == itemsize) { > return &_contig_to_contig; > } > > else { > switch (itemsize) { ># 350 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > case 1: > return &_aligned_strided_to_contig_size1; ># 350 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > case 2: > return &_aligned_strided_to_contig_size2; ># 350 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > case 4: > return &_aligned_strided_to_contig_size4; ># 350 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > case 8: > return &_aligned_strided_to_contig_size8; ># 350 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > case 16: > return &_aligned_strided_to_contig_size16; > > } > } > > return &_strided_to_strided; > } > > else { > > if (src_stride == 0) { > switch (itemsize) { ># 366 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > case 1: > return > &_aligned_strided_to_strided_size1_srcstride0; ># 366 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > case 2: > return > &_aligned_strided_to_strided_size2_srcstride0; ># 366 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > case 4: > return > &_aligned_strided_to_strided_size4_srcstride0; ># 366 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > case 8: > return > &_aligned_strided_to_strided_size8_srcstride0; ># 366 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > case 16: > return > &_aligned_strided_to_strided_size16_srcstride0; > > } > } > > else if (src_stride == itemsize) { > switch (itemsize) { ># 378 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > case 1: > return &_aligned_contig_to_strided_size1; ># 378 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > case 2: > return &_aligned_contig_to_strided_size2; ># 378 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > case 4: > return &_aligned_contig_to_strided_size4; ># 378 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > case 8: > return &_aligned_contig_to_strided_size8; ># 378 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > case 16: > return &_aligned_contig_to_strided_size16; > > } > > return &_strided_to_strided; > } > else { > switch (itemsize) { ># 390 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > case 1: > return &_aligned_strided_to_strided_size1; ># 390 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > case 2: > return &_aligned_strided_to_strided_size2; ># 390 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > case 4: > return &_aligned_strided_to_strided_size4; ># 390 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > case 8: > return &_aligned_strided_to_strided_size8; ># 390 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > case 16: > return &_aligned_strided_to_strided_size16; > > } > } > } > > > } > else { > > if (itemsize != 0 && dst_stride == itemsize) { > > if (itemsize != 0 && src_stride == itemsize) { > return &_contig_to_contig; > } > > else { > switch (itemsize) { > case 1: > return &_aligned_strided_to_contig_size1; ># 414 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > case 2: > return &_strided_to_contig_size2; ># 414 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > case 4: > return &_strided_to_contig_size4; ># 414 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > case 8: > return &_strided_to_contig_size8; ># 414 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > case 16: > return &_strided_to_contig_size16; > > } > } > > return &_strided_to_strided; > } > > else { > > if (itemsize != 0 && src_stride == itemsize) { > switch (itemsize) { > case 1: > return &_aligned_contig_to_strided_size1; ># 432 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > case 2: > return &_contig_to_strided_size2; ># 432 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > case 4: > return &_contig_to_strided_size4; ># 432 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > case 8: > return &_contig_to_strided_size8; ># 432 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > case 16: > return &_contig_to_strided_size16; > > } > > return &_strided_to_strided; > } > > else { > switch (itemsize) { > case 1: > return &_aligned_strided_to_strided_size1; ># 447 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > case 2: > return &_strided_to_strided_size2; ># 447 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > case 4: > return &_strided_to_strided_size4; ># 447 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > case 8: > return &_strided_to_strided_size8; ># 447 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > case 16: > return &_strided_to_strided_size16; > > } > } > } > } > > > return &_strided_to_strided; >} ># 468 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > >static PyArray_StridedTransferFn * >PyArray_GetStridedCopySwapFn(npy_intp aligned, npy_intp src_stride, > npy_intp dst_stride, npy_intp itemsize) >{ > > > > > > if (aligned) { > > > > if (itemsize != 0 && dst_stride == itemsize) { > > if (src_stride == 0) { > switch (itemsize) { ># 489 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > > case 2: > return > &_aligned_swap_strided_to_contig_size2_srcstride0; ># 489 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > > case 4: > return > &_aligned_swap_strided_to_contig_size4_srcstride0; ># 489 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > > case 8: > return > &_aligned_swap_strided_to_contig_size8_srcstride0; ># 489 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > > case 16: > return > &_aligned_swap_strided_to_contig_size16_srcstride0; > > > } > } > > else if (src_stride == itemsize) { > switch (itemsize) { ># 503 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > > case 2: > return &_aligned_swap_contig_to_contig_size2; ># 503 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > > case 4: > return &_aligned_swap_contig_to_contig_size4; ># 503 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > > case 8: > return &_aligned_swap_contig_to_contig_size8; ># 503 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > > case 16: > return &_aligned_swap_contig_to_contig_size16; > > > } > } > > else { > switch (itemsize) { ># 516 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > > case 2: > return &_aligned_swap_strided_to_contig_size2; ># 516 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > > case 4: > return &_aligned_swap_strided_to_contig_size4; ># 516 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > > case 8: > return &_aligned_swap_strided_to_contig_size8; ># 516 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > > case 16: > return &_aligned_swap_strided_to_contig_size16; > > > } > } > } > > else { > > if (src_stride == 0) { > switch (itemsize) { ># 532 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > > case 2: > return > &_aligned_swap_strided_to_strided_size2_srcstride0; ># 532 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > > case 4: > return > &_aligned_swap_strided_to_strided_size4_srcstride0; ># 532 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > > case 8: > return > &_aligned_swap_strided_to_strided_size8_srcstride0; ># 532 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > > case 16: > return > &_aligned_swap_strided_to_strided_size16_srcstride0; > > > } > } > > else if (src_stride == itemsize) { > switch (itemsize) { ># 546 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > > case 2: > return &_aligned_swap_contig_to_strided_size2; ># 546 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > > case 4: > return &_aligned_swap_contig_to_strided_size4; ># 546 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > > case 8: > return &_aligned_swap_contig_to_strided_size8; ># 546 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > > case 16: > return &_aligned_swap_contig_to_strided_size16; > > > } > > return &_strided_to_strided; > } > else { > switch (itemsize) { ># 560 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > > case 2: > return &_aligned_swap_strided_to_strided_size2; ># 560 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > > case 4: > return &_aligned_swap_strided_to_strided_size4; ># 560 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > > case 8: > return &_aligned_swap_strided_to_strided_size8; ># 560 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > > case 16: > return &_aligned_swap_strided_to_strided_size16; > > > } > } > } > > > } > else { > > if (itemsize != 0 && dst_stride == itemsize) { > > if (itemsize != 0 && src_stride == itemsize) { > switch (itemsize) { ># 580 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > > case 2: > return &_swap_contig_to_contig_size2; ># 580 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > > case 4: > return &_swap_contig_to_contig_size4; ># 580 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > > case 8: > return &_swap_contig_to_contig_size8; ># 580 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > > case 16: > return &_swap_contig_to_contig_size16; > > > } > } > > else { > switch (itemsize) { ># 593 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > > case 2: > return &_swap_strided_to_contig_size2; ># 593 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > > case 4: > return &_swap_strided_to_contig_size4; ># 593 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > > case 8: > return &_swap_strided_to_contig_size8; ># 593 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > > case 16: > return &_swap_strided_to_contig_size16; > > > } > } > > return &_strided_to_strided; > } > > else { > > if (itemsize != 0 && src_stride == itemsize) { > switch (itemsize) { ># 611 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > > case 2: > return &_swap_contig_to_strided_size2; ># 611 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > > case 4: > return &_swap_contig_to_strided_size4; ># 611 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > > case 8: > return &_swap_contig_to_strided_size8; ># 611 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > > case 16: > return &_swap_contig_to_strided_size16; > > > } > > return &_strided_to_strided; > } > > else { > switch (itemsize) { ># 626 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > > case 2: > return &_swap_strided_to_strided_size2; ># 626 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > > case 4: > return &_swap_strided_to_strided_size4; ># 626 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > > case 8: > return &_swap_strided_to_strided_size8; ># 626 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > > case 16: > return &_swap_strided_to_strided_size16; > > > } > } > } > } > > > return &_swap_strided_to_strided; >} ># 468 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > >static PyArray_StridedTransferFn * >PyArray_GetStridedCopySwapPairFn(npy_intp aligned, npy_intp src_stride, > npy_intp dst_stride, npy_intp itemsize) >{ > > > > > > if (aligned) { > > > > if (itemsize != 0 && dst_stride == itemsize) { > > if (src_stride == 0) { > switch (itemsize) { ># 489 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 489 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > > case 4: > return > &_aligned_swap_pair_strided_to_contig_size4_srcstride0; ># 489 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > > case 8: > return > &_aligned_swap_pair_strided_to_contig_size8_srcstride0; ># 489 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > > case 16: > return > &_aligned_swap_pair_strided_to_contig_size16_srcstride0; > > > } > } > > else if (src_stride == itemsize) { > switch (itemsize) { ># 503 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 503 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > > case 4: > return &_aligned_swap_pair_contig_to_contig_size4; ># 503 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > > case 8: > return &_aligned_swap_pair_contig_to_contig_size8; ># 503 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > > case 16: > return &_aligned_swap_pair_contig_to_contig_size16; > > > } > } > > else { > switch (itemsize) { ># 516 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 516 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > > case 4: > return &_aligned_swap_pair_strided_to_contig_size4; ># 516 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > > case 8: > return &_aligned_swap_pair_strided_to_contig_size8; ># 516 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > > case 16: > return &_aligned_swap_pair_strided_to_contig_size16; > > > } > } > } > > else { > > if (src_stride == 0) { > switch (itemsize) { ># 532 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 532 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > > case 4: > return > &_aligned_swap_pair_strided_to_strided_size4_srcstride0; ># 532 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > > case 8: > return > &_aligned_swap_pair_strided_to_strided_size8_srcstride0; ># 532 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > > case 16: > return > &_aligned_swap_pair_strided_to_strided_size16_srcstride0; > > > } > } > > else if (src_stride == itemsize) { > switch (itemsize) { ># 546 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 546 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > > case 4: > return &_aligned_swap_pair_contig_to_strided_size4; ># 546 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > > case 8: > return &_aligned_swap_pair_contig_to_strided_size8; ># 546 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > > case 16: > return &_aligned_swap_pair_contig_to_strided_size16; > > > } > > return &_strided_to_strided; > } > else { > switch (itemsize) { ># 560 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 560 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > > case 4: > return &_aligned_swap_pair_strided_to_strided_size4; ># 560 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > > case 8: > return &_aligned_swap_pair_strided_to_strided_size8; ># 560 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > > case 16: > return &_aligned_swap_pair_strided_to_strided_size16; > > > } > } > } > > > } > else { > > if (itemsize != 0 && dst_stride == itemsize) { > > if (itemsize != 0 && src_stride == itemsize) { > switch (itemsize) { ># 580 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 580 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > > case 4: > return &_swap_pair_contig_to_contig_size4; ># 580 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > > case 8: > return &_swap_pair_contig_to_contig_size8; ># 580 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > > case 16: > return &_swap_pair_contig_to_contig_size16; > > > } > } > > else { > switch (itemsize) { ># 593 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 593 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > > case 4: > return &_swap_pair_strided_to_contig_size4; ># 593 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > > case 8: > return &_swap_pair_strided_to_contig_size8; ># 593 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > > case 16: > return &_swap_pair_strided_to_contig_size16; > > > } > } > > return &_strided_to_strided; > } > > else { > > if (itemsize != 0 && src_stride == itemsize) { > switch (itemsize) { ># 611 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 611 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > > case 4: > return &_swap_pair_contig_to_strided_size4; ># 611 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > > case 8: > return &_swap_pair_contig_to_strided_size8; ># 611 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > > case 16: > return &_swap_pair_contig_to_strided_size16; > > > } > > return &_strided_to_strided; > } > > else { > switch (itemsize) { ># 626 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 626 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > > case 4: > return &_swap_pair_strided_to_strided_size4; ># 626 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > > case 8: > return &_swap_pair_strided_to_strided_size8; ># 626 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > > case 16: > return &_swap_pair_strided_to_strided_size16; > > > } > } > } > } > > > return &_swap_pair_strided_to_strided; >} ># 667 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 691 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_aligned_cast_bool_to_bool( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ ># 781 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > while (N--) { ># 814 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > *(npy_bool *)dst = ((npy_bool)(*(npy_bool *)src != 0)); ># 833 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst += dst_stride; > src += src_stride; > > } >} ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_cast_bool_to_bool( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ > > > > npy_bool src_value; > > > > > npy_bool dst_value; > > > > > while (N--) { ># 790 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(&src_value, src, sizeof(src_value)); ># 812 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst_value = ((npy_bool)(src_value != 0)); ># 826 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(dst, &dst_value, sizeof(dst_value)); > > > > > > > dst += dst_stride; > src += src_stride; > > } >} ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_aligned_contig_cast_bool_to_bool( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ ># 781 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > while (N--) { ># 814 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > *(npy_bool *)dst = ((npy_bool)(*(npy_bool *)src != 0)); ># 830 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst += sizeof(npy_bool); > src += sizeof(npy_bool); > > > > > } >} ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_contig_cast_bool_to_bool( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ > > > > npy_bool src_value; > > > > > npy_bool dst_value; > > > > > while (N--) { ># 790 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(&src_value, src, sizeof(src_value)); ># 812 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst_value = ((npy_bool)(src_value != 0)); ># 826 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(dst, &dst_value, sizeof(dst_value)); > > > > dst += sizeof(npy_bool); > src += sizeof(npy_bool); > > > > > } >} ># 691 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_aligned_cast_bool_to_ubyte( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ ># 781 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > while (N--) { ># 814 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > *(npy_ubyte *)dst = ((npy_ubyte)*(npy_bool *)src); ># 833 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst += dst_stride; > src += src_stride; > > } >} ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_cast_bool_to_ubyte( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ > > > > npy_bool src_value; > > > > > npy_ubyte dst_value; > > > > > while (N--) { ># 790 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(&src_value, src, sizeof(src_value)); ># 812 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst_value = ((npy_ubyte)src_value); ># 826 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(dst, &dst_value, sizeof(dst_value)); > > > > > > > dst += dst_stride; > src += src_stride; > > } >} ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_aligned_contig_cast_bool_to_ubyte( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ ># 781 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > while (N--) { ># 814 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > *(npy_ubyte *)dst = ((npy_ubyte)*(npy_bool *)src); ># 830 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst += sizeof(npy_ubyte); > src += sizeof(npy_bool); > > > > > } >} ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_contig_cast_bool_to_ubyte( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ > > > > npy_bool src_value; > > > > > npy_ubyte dst_value; > > > > > while (N--) { ># 790 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(&src_value, src, sizeof(src_value)); ># 812 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst_value = ((npy_ubyte)src_value); ># 826 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(dst, &dst_value, sizeof(dst_value)); > > > > dst += sizeof(npy_ubyte); > src += sizeof(npy_bool); > > > > > } >} ># 691 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_aligned_cast_bool_to_ushort( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ ># 781 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > while (N--) { ># 814 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > *(npy_ushort *)dst = ((npy_ushort)*(npy_bool *)src); ># 833 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst += dst_stride; > src += src_stride; > > } >} ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_cast_bool_to_ushort( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ > > > > npy_bool src_value; > > > > > npy_ushort dst_value; > > > > > while (N--) { ># 790 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(&src_value, src, sizeof(src_value)); ># 812 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst_value = ((npy_ushort)src_value); ># 826 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(dst, &dst_value, sizeof(dst_value)); > > > > > > > dst += dst_stride; > src += src_stride; > > } >} ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_aligned_contig_cast_bool_to_ushort( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ ># 781 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > while (N--) { ># 814 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > *(npy_ushort *)dst = ((npy_ushort)*(npy_bool *)src); ># 830 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst += sizeof(npy_ushort); > src += sizeof(npy_bool); > > > > > } >} ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_contig_cast_bool_to_ushort( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ > > > > npy_bool src_value; > > > > > npy_ushort dst_value; > > > > > while (N--) { ># 790 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(&src_value, src, sizeof(src_value)); ># 812 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst_value = ((npy_ushort)src_value); ># 826 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(dst, &dst_value, sizeof(dst_value)); > > > > dst += sizeof(npy_ushort); > src += sizeof(npy_bool); > > > > > } >} ># 691 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_aligned_cast_bool_to_uint( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ ># 781 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > while (N--) { ># 814 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > *(npy_uint *)dst = ((npy_uint)*(npy_bool *)src); ># 833 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst += dst_stride; > src += src_stride; > > } >} ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_cast_bool_to_uint( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ > > > > npy_bool src_value; > > > > > npy_uint dst_value; > > > > > while (N--) { ># 790 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(&src_value, src, sizeof(src_value)); ># 812 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst_value = ((npy_uint)src_value); ># 826 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(dst, &dst_value, sizeof(dst_value)); > > > > > > > dst += dst_stride; > src += src_stride; > > } >} ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_aligned_contig_cast_bool_to_uint( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ ># 781 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > while (N--) { ># 814 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > *(npy_uint *)dst = ((npy_uint)*(npy_bool *)src); ># 830 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst += sizeof(npy_uint); > src += sizeof(npy_bool); > > > > > } >} ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_contig_cast_bool_to_uint( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ > > > > npy_bool src_value; > > > > > npy_uint dst_value; > > > > > while (N--) { ># 790 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(&src_value, src, sizeof(src_value)); ># 812 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst_value = ((npy_uint)src_value); ># 826 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(dst, &dst_value, sizeof(dst_value)); > > > > dst += sizeof(npy_uint); > src += sizeof(npy_bool); > > > > > } >} ># 691 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_aligned_cast_bool_to_ulong( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ ># 781 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > while (N--) { ># 814 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > *(npy_ulong *)dst = ((npy_ulong)*(npy_bool *)src); ># 833 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst += dst_stride; > src += src_stride; > > } >} ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_cast_bool_to_ulong( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ > > > > npy_bool src_value; > > > > > npy_ulong dst_value; > > > > > while (N--) { ># 790 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(&src_value, src, sizeof(src_value)); ># 812 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst_value = ((npy_ulong)src_value); ># 826 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(dst, &dst_value, sizeof(dst_value)); > > > > > > > dst += dst_stride; > src += src_stride; > > } >} ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_aligned_contig_cast_bool_to_ulong( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ ># 781 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > while (N--) { ># 814 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > *(npy_ulong *)dst = ((npy_ulong)*(npy_bool *)src); ># 830 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst += sizeof(npy_ulong); > src += sizeof(npy_bool); > > > > > } >} ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_contig_cast_bool_to_ulong( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ > > > > npy_bool src_value; > > > > > npy_ulong dst_value; > > > > > while (N--) { ># 790 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(&src_value, src, sizeof(src_value)); ># 812 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst_value = ((npy_ulong)src_value); ># 826 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(dst, &dst_value, sizeof(dst_value)); > > > > dst += sizeof(npy_ulong); > src += sizeof(npy_bool); > > > > > } >} ># 691 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_aligned_cast_bool_to_ulonglong( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ ># 781 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > while (N--) { ># 814 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > *(npy_ulonglong *)dst = ((npy_ulonglong)*(npy_bool *)src); ># 833 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst += dst_stride; > src += src_stride; > > } >} ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_cast_bool_to_ulonglong( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ > > > > npy_bool src_value; > > > > > npy_ulonglong dst_value; > > > > > while (N--) { ># 790 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(&src_value, src, sizeof(src_value)); ># 812 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst_value = ((npy_ulonglong)src_value); ># 826 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(dst, &dst_value, sizeof(dst_value)); > > > > > > > dst += dst_stride; > src += src_stride; > > } >} ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_aligned_contig_cast_bool_to_ulonglong( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ ># 781 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > while (N--) { ># 814 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > *(npy_ulonglong *)dst = ((npy_ulonglong)*(npy_bool *)src); ># 830 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst += sizeof(npy_ulonglong); > src += sizeof(npy_bool); > > > > > } >} ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_contig_cast_bool_to_ulonglong( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ > > > > npy_bool src_value; > > > > > npy_ulonglong dst_value; > > > > > while (N--) { ># 790 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(&src_value, src, sizeof(src_value)); ># 812 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst_value = ((npy_ulonglong)src_value); ># 826 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(dst, &dst_value, sizeof(dst_value)); > > > > dst += sizeof(npy_ulonglong); > src += sizeof(npy_bool); > > > > > } >} ># 691 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_aligned_cast_bool_to_byte( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ ># 781 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > while (N--) { ># 814 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > *(npy_byte *)dst = ((npy_byte)*(npy_bool *)src); ># 833 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst += dst_stride; > src += src_stride; > > } >} ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_cast_bool_to_byte( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ > > > > npy_bool src_value; > > > > > npy_byte dst_value; > > > > > while (N--) { ># 790 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(&src_value, src, sizeof(src_value)); ># 812 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst_value = ((npy_byte)src_value); ># 826 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(dst, &dst_value, sizeof(dst_value)); > > > > > > > dst += dst_stride; > src += src_stride; > > } >} ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_aligned_contig_cast_bool_to_byte( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ ># 781 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > while (N--) { ># 814 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > *(npy_byte *)dst = ((npy_byte)*(npy_bool *)src); ># 830 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst += sizeof(npy_byte); > src += sizeof(npy_bool); > > > > > } >} ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_contig_cast_bool_to_byte( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ > > > > npy_bool src_value; > > > > > npy_byte dst_value; > > > > > while (N--) { ># 790 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(&src_value, src, sizeof(src_value)); ># 812 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst_value = ((npy_byte)src_value); ># 826 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(dst, &dst_value, sizeof(dst_value)); > > > > dst += sizeof(npy_byte); > src += sizeof(npy_bool); > > > > > } >} ># 691 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_aligned_cast_bool_to_short( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ ># 781 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > while (N--) { ># 814 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > *(npy_short *)dst = ((npy_short)*(npy_bool *)src); ># 833 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst += dst_stride; > src += src_stride; > > } >} ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_cast_bool_to_short( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ > > > > npy_bool src_value; > > > > > npy_short dst_value; > > > > > while (N--) { ># 790 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(&src_value, src, sizeof(src_value)); ># 812 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst_value = ((npy_short)src_value); ># 826 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(dst, &dst_value, sizeof(dst_value)); > > > > > > > dst += dst_stride; > src += src_stride; > > } >} ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_aligned_contig_cast_bool_to_short( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ ># 781 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > while (N--) { ># 814 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > *(npy_short *)dst = ((npy_short)*(npy_bool *)src); ># 830 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst += sizeof(npy_short); > src += sizeof(npy_bool); > > > > > } >} ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_contig_cast_bool_to_short( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ > > > > npy_bool src_value; > > > > > npy_short dst_value; > > > > > while (N--) { ># 790 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(&src_value, src, sizeof(src_value)); ># 812 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst_value = ((npy_short)src_value); ># 826 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(dst, &dst_value, sizeof(dst_value)); > > > > dst += sizeof(npy_short); > src += sizeof(npy_bool); > > > > > } >} ># 691 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_aligned_cast_bool_to_int( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ ># 781 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > while (N--) { ># 814 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > *(npy_int *)dst = ((npy_int)*(npy_bool *)src); ># 833 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst += dst_stride; > src += src_stride; > > } >} ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_cast_bool_to_int( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ > > > > npy_bool src_value; > > > > > npy_int dst_value; > > > > > while (N--) { ># 790 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(&src_value, src, sizeof(src_value)); ># 812 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst_value = ((npy_int)src_value); ># 826 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(dst, &dst_value, sizeof(dst_value)); > > > > > > > dst += dst_stride; > src += src_stride; > > } >} ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_aligned_contig_cast_bool_to_int( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ ># 781 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > while (N--) { ># 814 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > *(npy_int *)dst = ((npy_int)*(npy_bool *)src); ># 830 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst += sizeof(npy_int); > src += sizeof(npy_bool); > > > > > } >} ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_contig_cast_bool_to_int( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ > > > > npy_bool src_value; > > > > > npy_int dst_value; > > > > > while (N--) { ># 790 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(&src_value, src, sizeof(src_value)); ># 812 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst_value = ((npy_int)src_value); ># 826 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(dst, &dst_value, sizeof(dst_value)); > > > > dst += sizeof(npy_int); > src += sizeof(npy_bool); > > > > > } >} ># 691 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_aligned_cast_bool_to_long( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ ># 781 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > while (N--) { ># 814 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > *(npy_long *)dst = ((npy_long)*(npy_bool *)src); ># 833 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst += dst_stride; > src += src_stride; > > } >} ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_cast_bool_to_long( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ > > > > npy_bool src_value; > > > > > npy_long dst_value; > > > > > while (N--) { ># 790 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(&src_value, src, sizeof(src_value)); ># 812 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst_value = ((npy_long)src_value); ># 826 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(dst, &dst_value, sizeof(dst_value)); > > > > > > > dst += dst_stride; > src += src_stride; > > } >} ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_aligned_contig_cast_bool_to_long( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ ># 781 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > while (N--) { ># 814 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > *(npy_long *)dst = ((npy_long)*(npy_bool *)src); ># 830 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst += sizeof(npy_long); > src += sizeof(npy_bool); > > > > > } >} ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_contig_cast_bool_to_long( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ > > > > npy_bool src_value; > > > > > npy_long dst_value; > > > > > while (N--) { ># 790 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(&src_value, src, sizeof(src_value)); ># 812 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst_value = ((npy_long)src_value); ># 826 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(dst, &dst_value, sizeof(dst_value)); > > > > dst += sizeof(npy_long); > src += sizeof(npy_bool); > > > > > } >} ># 691 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_aligned_cast_bool_to_longlong( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ ># 781 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > while (N--) { ># 814 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > *(npy_longlong *)dst = ((npy_longlong)*(npy_bool *)src); ># 833 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst += dst_stride; > src += src_stride; > > } >} ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_cast_bool_to_longlong( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ > > > > npy_bool src_value; > > > > > npy_longlong dst_value; > > > > > while (N--) { ># 790 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(&src_value, src, sizeof(src_value)); ># 812 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst_value = ((npy_longlong)src_value); ># 826 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(dst, &dst_value, sizeof(dst_value)); > > > > > > > dst += dst_stride; > src += src_stride; > > } >} ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_aligned_contig_cast_bool_to_longlong( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ ># 781 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > while (N--) { ># 814 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > *(npy_longlong *)dst = ((npy_longlong)*(npy_bool *)src); ># 830 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst += sizeof(npy_longlong); > src += sizeof(npy_bool); > > > > > } >} ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_contig_cast_bool_to_longlong( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ > > > > npy_bool src_value; > > > > > npy_longlong dst_value; > > > > > while (N--) { ># 790 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(&src_value, src, sizeof(src_value)); ># 812 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst_value = ((npy_longlong)src_value); ># 826 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(dst, &dst_value, sizeof(dst_value)); > > > > dst += sizeof(npy_longlong); > src += sizeof(npy_bool); > > > > > } >} ># 691 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_aligned_cast_bool_to_half( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ ># 781 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > while (N--) { ># 814 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > *(npy_half *)dst = npy_float_to_half((float)*(npy_bool *)src); ># 833 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst += dst_stride; > src += src_stride; > > } >} ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_cast_bool_to_half( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ > > > > npy_bool src_value; > > > > > npy_half dst_value; > > > > > while (N--) { ># 790 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(&src_value, src, sizeof(src_value)); ># 812 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst_value = npy_float_to_half((float)src_value); ># 826 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(dst, &dst_value, sizeof(dst_value)); > > > > > > > dst += dst_stride; > src += src_stride; > > } >} ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_aligned_contig_cast_bool_to_half( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ ># 781 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > while (N--) { ># 814 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > *(npy_half *)dst = npy_float_to_half((float)*(npy_bool *)src); ># 830 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst += sizeof(npy_half); > src += sizeof(npy_bool); > > > > > } >} ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_contig_cast_bool_to_half( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ > > > > npy_bool src_value; > > > > > npy_half dst_value; > > > > > while (N--) { ># 790 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(&src_value, src, sizeof(src_value)); ># 812 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst_value = npy_float_to_half((float)src_value); ># 826 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(dst, &dst_value, sizeof(dst_value)); > > > > dst += sizeof(npy_half); > src += sizeof(npy_bool); > > > > > } >} ># 691 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_aligned_cast_bool_to_float( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ ># 781 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > while (N--) { ># 814 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > *(npy_float *)dst = ((npy_float)*(npy_bool *)src); ># 833 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst += dst_stride; > src += src_stride; > > } >} ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_cast_bool_to_float( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ > > > > npy_bool src_value; > > > > > npy_float dst_value; > > > > > while (N--) { ># 790 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(&src_value, src, sizeof(src_value)); ># 812 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst_value = ((npy_float)src_value); ># 826 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(dst, &dst_value, sizeof(dst_value)); > > > > > > > dst += dst_stride; > src += src_stride; > > } >} ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_aligned_contig_cast_bool_to_float( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ ># 781 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > while (N--) { ># 814 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > *(npy_float *)dst = ((npy_float)*(npy_bool *)src); ># 830 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst += sizeof(npy_float); > src += sizeof(npy_bool); > > > > > } >} ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_contig_cast_bool_to_float( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ > > > > npy_bool src_value; > > > > > npy_float dst_value; > > > > > while (N--) { ># 790 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(&src_value, src, sizeof(src_value)); ># 812 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst_value = ((npy_float)src_value); ># 826 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(dst, &dst_value, sizeof(dst_value)); > > > > dst += sizeof(npy_float); > src += sizeof(npy_bool); > > > > > } >} ># 691 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_aligned_cast_bool_to_double( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ ># 781 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > while (N--) { ># 814 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > *(npy_double *)dst = ((npy_double)*(npy_bool *)src); ># 833 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst += dst_stride; > src += src_stride; > > } >} ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_cast_bool_to_double( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ > > > > npy_bool src_value; > > > > > npy_double dst_value; > > > > > while (N--) { ># 790 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(&src_value, src, sizeof(src_value)); ># 812 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst_value = ((npy_double)src_value); ># 826 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(dst, &dst_value, sizeof(dst_value)); > > > > > > > dst += dst_stride; > src += src_stride; > > } >} ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_aligned_contig_cast_bool_to_double( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ ># 781 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > while (N--) { ># 814 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > *(npy_double *)dst = ((npy_double)*(npy_bool *)src); ># 830 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst += sizeof(npy_double); > src += sizeof(npy_bool); > > > > > } >} ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_contig_cast_bool_to_double( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ > > > > npy_bool src_value; > > > > > npy_double dst_value; > > > > > while (N--) { ># 790 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(&src_value, src, sizeof(src_value)); ># 812 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst_value = ((npy_double)src_value); ># 826 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(dst, &dst_value, sizeof(dst_value)); > > > > dst += sizeof(npy_double); > src += sizeof(npy_bool); > > > > > } >} ># 691 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_aligned_cast_bool_to_longdouble( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ ># 781 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > while (N--) { ># 814 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > *(npy_longdouble *)dst = ((npy_longdouble)*(npy_bool *)src); ># 833 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst += dst_stride; > src += src_stride; > > } >} ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_cast_bool_to_longdouble( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ > > > > npy_bool src_value; > > > > > npy_longdouble dst_value; > > > > > while (N--) { ># 790 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(&src_value, src, sizeof(src_value)); ># 812 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst_value = ((npy_longdouble)src_value); ># 826 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(dst, &dst_value, sizeof(dst_value)); > > > > > > > dst += dst_stride; > src += src_stride; > > } >} ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_aligned_contig_cast_bool_to_longdouble( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ ># 781 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > while (N--) { ># 814 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > *(npy_longdouble *)dst = ((npy_longdouble)*(npy_bool *)src); ># 830 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst += sizeof(npy_longdouble); > src += sizeof(npy_bool); > > > > > } >} ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_contig_cast_bool_to_longdouble( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ > > > > npy_bool src_value; > > > > > npy_longdouble dst_value; > > > > > while (N--) { ># 790 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(&src_value, src, sizeof(src_value)); ># 812 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst_value = ((npy_longdouble)src_value); ># 826 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(dst, &dst_value, sizeof(dst_value)); > > > > dst += sizeof(npy_longdouble); > src += sizeof(npy_bool); > > > > > } >} ># 691 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_aligned_cast_bool_to_cfloat( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ > > > > > > > npy_float dst_value[2]; > > > > > > > while (N--) { ># 808 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst_value[0] = ((npy_float)*(npy_bool *)src); > > dst_value[1] = 0; ># 820 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > ((npy_float *)dst)[0] = dst_value[0]; > ((npy_float *)dst)[1] = dst_value[1]; ># 833 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst += dst_stride; > src += src_stride; > > } >} ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_cast_bool_to_cfloat( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ > > > > npy_bool src_value; > > > npy_float dst_value[2]; > > > > > > > while (N--) { ># 790 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(&src_value, src, sizeof(src_value)); ># 806 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst_value[0] = ((npy_float)src_value); > > > > dst_value[1] = 0; ># 826 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(dst, &dst_value, sizeof(dst_value)); > > > > > > > dst += dst_stride; > src += src_stride; > > } >} ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_aligned_contig_cast_bool_to_cfloat( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ > > > > > > > npy_float dst_value[2]; > > > > > > > while (N--) { ># 808 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst_value[0] = ((npy_float)*(npy_bool *)src); > > dst_value[1] = 0; ># 820 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > ((npy_float *)dst)[0] = dst_value[0]; > ((npy_float *)dst)[1] = dst_value[1]; ># 830 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst += sizeof(npy_cfloat); > src += sizeof(npy_bool); > > > > > } >} ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_contig_cast_bool_to_cfloat( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ > > > > npy_bool src_value; > > > npy_float dst_value[2]; > > > > > > > while (N--) { ># 790 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(&src_value, src, sizeof(src_value)); ># 806 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst_value[0] = ((npy_float)src_value); > > > > dst_value[1] = 0; ># 826 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(dst, &dst_value, sizeof(dst_value)); > > > > dst += sizeof(npy_cfloat); > src += sizeof(npy_bool); > > > > > } >} ># 691 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_aligned_cast_bool_to_cdouble( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ > > > > > > > npy_double dst_value[2]; > > > > > > > while (N--) { ># 808 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst_value[0] = ((npy_double)*(npy_bool *)src); > > dst_value[1] = 0; ># 820 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > ((npy_double *)dst)[0] = dst_value[0]; > ((npy_double *)dst)[1] = dst_value[1]; ># 833 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst += dst_stride; > src += src_stride; > > } >} ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_cast_bool_to_cdouble( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ > > > > npy_bool src_value; > > > npy_double dst_value[2]; > > > > > > > while (N--) { ># 790 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(&src_value, src, sizeof(src_value)); ># 806 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst_value[0] = ((npy_double)src_value); > > > > dst_value[1] = 0; ># 826 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(dst, &dst_value, sizeof(dst_value)); > > > > > > > dst += dst_stride; > src += src_stride; > > } >} ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_aligned_contig_cast_bool_to_cdouble( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ > > > > > > > npy_double dst_value[2]; > > > > > > > while (N--) { ># 808 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst_value[0] = ((npy_double)*(npy_bool *)src); > > dst_value[1] = 0; ># 820 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > ((npy_double *)dst)[0] = dst_value[0]; > ((npy_double *)dst)[1] = dst_value[1]; ># 830 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst += sizeof(npy_cdouble); > src += sizeof(npy_bool); > > > > > } >} ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_contig_cast_bool_to_cdouble( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ > > > > npy_bool src_value; > > > npy_double dst_value[2]; > > > > > > > while (N--) { ># 790 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(&src_value, src, sizeof(src_value)); ># 806 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst_value[0] = ((npy_double)src_value); > > > > dst_value[1] = 0; ># 826 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(dst, &dst_value, sizeof(dst_value)); > > > > dst += sizeof(npy_cdouble); > src += sizeof(npy_bool); > > > > > } >} ># 691 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_aligned_cast_bool_to_clongdouble( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ > > > > > > > npy_longdouble dst_value[2]; > > > > > > > while (N--) { ># 808 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst_value[0] = ((npy_longdouble)*(npy_bool *)src); > > dst_value[1] = 0; ># 820 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > ((npy_longdouble *)dst)[0] = dst_value[0]; > ((npy_longdouble *)dst)[1] = dst_value[1]; ># 833 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst += dst_stride; > src += src_stride; > > } >} ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_cast_bool_to_clongdouble( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ > > > > npy_bool src_value; > > > npy_longdouble dst_value[2]; > > > > > > > while (N--) { ># 790 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(&src_value, src, sizeof(src_value)); ># 806 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst_value[0] = ((npy_longdouble)src_value); > > > > dst_value[1] = 0; ># 826 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(dst, &dst_value, sizeof(dst_value)); > > > > > > > dst += dst_stride; > src += src_stride; > > } >} ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_aligned_contig_cast_bool_to_clongdouble( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ > > > > > > > npy_longdouble dst_value[2]; > > > > > > > while (N--) { ># 808 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst_value[0] = ((npy_longdouble)*(npy_bool *)src); > > dst_value[1] = 0; ># 820 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > ((npy_longdouble *)dst)[0] = dst_value[0]; > ((npy_longdouble *)dst)[1] = dst_value[1]; ># 830 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst += sizeof(npy_clongdouble); > src += sizeof(npy_bool); > > > > > } >} ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_contig_cast_bool_to_clongdouble( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ > > > > npy_bool src_value; > > > npy_longdouble dst_value[2]; > > > > > > > while (N--) { ># 790 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(&src_value, src, sizeof(src_value)); ># 806 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst_value[0] = ((npy_longdouble)src_value); > > > > dst_value[1] = 0; ># 826 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(dst, &dst_value, sizeof(dst_value)); > > > > dst += sizeof(npy_clongdouble); > src += sizeof(npy_bool); > > > > > } >} ># 667 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 691 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_aligned_cast_ubyte_to_bool( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ ># 781 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > while (N--) { ># 814 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > *(npy_bool *)dst = ((npy_bool)(*(npy_ubyte *)src != 0)); ># 833 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst += dst_stride; > src += src_stride; > > } >} ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_cast_ubyte_to_bool( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ > > > > npy_ubyte src_value; > > > > > npy_bool dst_value; > > > > > while (N--) { ># 790 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(&src_value, src, sizeof(src_value)); ># 812 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst_value = ((npy_bool)(src_value != 0)); ># 826 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(dst, &dst_value, sizeof(dst_value)); > > > > > > > dst += dst_stride; > src += src_stride; > > } >} ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_aligned_contig_cast_ubyte_to_bool( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ ># 781 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > while (N--) { ># 814 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > *(npy_bool *)dst = ((npy_bool)(*(npy_ubyte *)src != 0)); ># 830 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst += sizeof(npy_bool); > src += sizeof(npy_ubyte); > > > > > } >} ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_contig_cast_ubyte_to_bool( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ > > > > npy_ubyte src_value; > > > > > npy_bool dst_value; > > > > > while (N--) { ># 790 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(&src_value, src, sizeof(src_value)); ># 812 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst_value = ((npy_bool)(src_value != 0)); ># 826 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(dst, &dst_value, sizeof(dst_value)); > > > > dst += sizeof(npy_bool); > src += sizeof(npy_ubyte); > > > > > } >} ># 691 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_aligned_cast_ubyte_to_ubyte( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ ># 781 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > while (N--) { ># 814 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > *(npy_ubyte *)dst = ((npy_ubyte)*(npy_ubyte *)src); ># 833 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst += dst_stride; > src += src_stride; > > } >} ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_cast_ubyte_to_ubyte( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ > > > > npy_ubyte src_value; > > > > > npy_ubyte dst_value; > > > > > while (N--) { ># 790 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(&src_value, src, sizeof(src_value)); ># 812 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst_value = ((npy_ubyte)src_value); ># 826 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(dst, &dst_value, sizeof(dst_value)); > > > > > > > dst += dst_stride; > src += src_stride; > > } >} ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_aligned_contig_cast_ubyte_to_ubyte( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ ># 781 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > while (N--) { ># 814 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > *(npy_ubyte *)dst = ((npy_ubyte)*(npy_ubyte *)src); ># 830 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst += sizeof(npy_ubyte); > src += sizeof(npy_ubyte); > > > > > } >} ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_contig_cast_ubyte_to_ubyte( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ > > > > npy_ubyte src_value; > > > > > npy_ubyte dst_value; > > > > > while (N--) { ># 790 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(&src_value, src, sizeof(src_value)); ># 812 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst_value = ((npy_ubyte)src_value); ># 826 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(dst, &dst_value, sizeof(dst_value)); > > > > dst += sizeof(npy_ubyte); > src += sizeof(npy_ubyte); > > > > > } >} ># 691 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_aligned_cast_ubyte_to_ushort( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ ># 781 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > while (N--) { ># 814 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > *(npy_ushort *)dst = ((npy_ushort)*(npy_ubyte *)src); ># 833 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst += dst_stride; > src += src_stride; > > } >} ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_cast_ubyte_to_ushort( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ > > > > npy_ubyte src_value; > > > > > npy_ushort dst_value; > > > > > while (N--) { ># 790 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(&src_value, src, sizeof(src_value)); ># 812 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst_value = ((npy_ushort)src_value); ># 826 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(dst, &dst_value, sizeof(dst_value)); > > > > > > > dst += dst_stride; > src += src_stride; > > } >} ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_aligned_contig_cast_ubyte_to_ushort( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ ># 781 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > while (N--) { ># 814 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > *(npy_ushort *)dst = ((npy_ushort)*(npy_ubyte *)src); ># 830 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst += sizeof(npy_ushort); > src += sizeof(npy_ubyte); > > > > > } >} ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_contig_cast_ubyte_to_ushort( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ > > > > npy_ubyte src_value; > > > > > npy_ushort dst_value; > > > > > while (N--) { ># 790 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(&src_value, src, sizeof(src_value)); ># 812 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst_value = ((npy_ushort)src_value); ># 826 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(dst, &dst_value, sizeof(dst_value)); > > > > dst += sizeof(npy_ushort); > src += sizeof(npy_ubyte); > > > > > } >} ># 691 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_aligned_cast_ubyte_to_uint( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ ># 781 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > while (N--) { ># 814 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > *(npy_uint *)dst = ((npy_uint)*(npy_ubyte *)src); ># 833 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst += dst_stride; > src += src_stride; > > } >} ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_cast_ubyte_to_uint( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ > > > > npy_ubyte src_value; > > > > > npy_uint dst_value; > > > > > while (N--) { ># 790 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(&src_value, src, sizeof(src_value)); ># 812 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst_value = ((npy_uint)src_value); ># 826 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(dst, &dst_value, sizeof(dst_value)); > > > > > > > dst += dst_stride; > src += src_stride; > > } >} ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_aligned_contig_cast_ubyte_to_uint( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ ># 781 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > while (N--) { ># 814 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > *(npy_uint *)dst = ((npy_uint)*(npy_ubyte *)src); ># 830 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst += sizeof(npy_uint); > src += sizeof(npy_ubyte); > > > > > } >} ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_contig_cast_ubyte_to_uint( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ > > > > npy_ubyte src_value; > > > > > npy_uint dst_value; > > > > > while (N--) { ># 790 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(&src_value, src, sizeof(src_value)); ># 812 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst_value = ((npy_uint)src_value); ># 826 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(dst, &dst_value, sizeof(dst_value)); > > > > dst += sizeof(npy_uint); > src += sizeof(npy_ubyte); > > > > > } >} ># 691 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_aligned_cast_ubyte_to_ulong( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ ># 781 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > while (N--) { ># 814 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > *(npy_ulong *)dst = ((npy_ulong)*(npy_ubyte *)src); ># 833 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst += dst_stride; > src += src_stride; > > } >} ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_cast_ubyte_to_ulong( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ > > > > npy_ubyte src_value; > > > > > npy_ulong dst_value; > > > > > while (N--) { ># 790 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(&src_value, src, sizeof(src_value)); ># 812 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst_value = ((npy_ulong)src_value); ># 826 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(dst, &dst_value, sizeof(dst_value)); > > > > > > > dst += dst_stride; > src += src_stride; > > } >} ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_aligned_contig_cast_ubyte_to_ulong( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ ># 781 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > while (N--) { ># 814 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > *(npy_ulong *)dst = ((npy_ulong)*(npy_ubyte *)src); ># 830 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst += sizeof(npy_ulong); > src += sizeof(npy_ubyte); > > > > > } >} ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_contig_cast_ubyte_to_ulong( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ > > > > npy_ubyte src_value; > > > > > npy_ulong dst_value; > > > > > while (N--) { ># 790 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(&src_value, src, sizeof(src_value)); ># 812 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst_value = ((npy_ulong)src_value); ># 826 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(dst, &dst_value, sizeof(dst_value)); > > > > dst += sizeof(npy_ulong); > src += sizeof(npy_ubyte); > > > > > } >} ># 691 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_aligned_cast_ubyte_to_ulonglong( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ ># 781 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > while (N--) { ># 814 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > *(npy_ulonglong *)dst = ((npy_ulonglong)*(npy_ubyte *)src); ># 833 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst += dst_stride; > src += src_stride; > > } >} ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_cast_ubyte_to_ulonglong( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ > > > > npy_ubyte src_value; > > > > > npy_ulonglong dst_value; > > > > > while (N--) { ># 790 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(&src_value, src, sizeof(src_value)); ># 812 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst_value = ((npy_ulonglong)src_value); ># 826 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(dst, &dst_value, sizeof(dst_value)); > > > > > > > dst += dst_stride; > src += src_stride; > > } >} ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_aligned_contig_cast_ubyte_to_ulonglong( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ ># 781 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > while (N--) { ># 814 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > *(npy_ulonglong *)dst = ((npy_ulonglong)*(npy_ubyte *)src); ># 830 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst += sizeof(npy_ulonglong); > src += sizeof(npy_ubyte); > > > > > } >} ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_contig_cast_ubyte_to_ulonglong( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ > > > > npy_ubyte src_value; > > > > > npy_ulonglong dst_value; > > > > > while (N--) { ># 790 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(&src_value, src, sizeof(src_value)); ># 812 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst_value = ((npy_ulonglong)src_value); ># 826 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(dst, &dst_value, sizeof(dst_value)); > > > > dst += sizeof(npy_ulonglong); > src += sizeof(npy_ubyte); > > > > > } >} ># 691 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_aligned_cast_ubyte_to_byte( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ ># 781 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > while (N--) { ># 814 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > *(npy_byte *)dst = ((npy_byte)*(npy_ubyte *)src); ># 833 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst += dst_stride; > src += src_stride; > > } >} ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_cast_ubyte_to_byte( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ > > > > npy_ubyte src_value; > > > > > npy_byte dst_value; > > > > > while (N--) { ># 790 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(&src_value, src, sizeof(src_value)); ># 812 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst_value = ((npy_byte)src_value); ># 826 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(dst, &dst_value, sizeof(dst_value)); > > > > > > > dst += dst_stride; > src += src_stride; > > } >} ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_aligned_contig_cast_ubyte_to_byte( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ ># 781 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > while (N--) { ># 814 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > *(npy_byte *)dst = ((npy_byte)*(npy_ubyte *)src); ># 830 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst += sizeof(npy_byte); > src += sizeof(npy_ubyte); > > > > > } >} ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_contig_cast_ubyte_to_byte( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ > > > > npy_ubyte src_value; > > > > > npy_byte dst_value; > > > > > while (N--) { ># 790 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(&src_value, src, sizeof(src_value)); ># 812 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst_value = ((npy_byte)src_value); ># 826 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(dst, &dst_value, sizeof(dst_value)); > > > > dst += sizeof(npy_byte); > src += sizeof(npy_ubyte); > > > > > } >} ># 691 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_aligned_cast_ubyte_to_short( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ ># 781 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > while (N--) { ># 814 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > *(npy_short *)dst = ((npy_short)*(npy_ubyte *)src); ># 833 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst += dst_stride; > src += src_stride; > > } >} ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_cast_ubyte_to_short( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ > > > > npy_ubyte src_value; > > > > > npy_short dst_value; > > > > > while (N--) { ># 790 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(&src_value, src, sizeof(src_value)); ># 812 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst_value = ((npy_short)src_value); ># 826 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(dst, &dst_value, sizeof(dst_value)); > > > > > > > dst += dst_stride; > src += src_stride; > > } >} ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_aligned_contig_cast_ubyte_to_short( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ ># 781 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > while (N--) { ># 814 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > *(npy_short *)dst = ((npy_short)*(npy_ubyte *)src); ># 830 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst += sizeof(npy_short); > src += sizeof(npy_ubyte); > > > > > } >} ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_contig_cast_ubyte_to_short( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ > > > > npy_ubyte src_value; > > > > > npy_short dst_value; > > > > > while (N--) { ># 790 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(&src_value, src, sizeof(src_value)); ># 812 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst_value = ((npy_short)src_value); ># 826 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(dst, &dst_value, sizeof(dst_value)); > > > > dst += sizeof(npy_short); > src += sizeof(npy_ubyte); > > > > > } >} ># 691 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_aligned_cast_ubyte_to_int( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ ># 781 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > while (N--) { ># 814 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > *(npy_int *)dst = ((npy_int)*(npy_ubyte *)src); ># 833 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst += dst_stride; > src += src_stride; > > } >} ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_cast_ubyte_to_int( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ > > > > npy_ubyte src_value; > > > > > npy_int dst_value; > > > > > while (N--) { ># 790 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(&src_value, src, sizeof(src_value)); ># 812 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst_value = ((npy_int)src_value); ># 826 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(dst, &dst_value, sizeof(dst_value)); > > > > > > > dst += dst_stride; > src += src_stride; > > } >} ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_aligned_contig_cast_ubyte_to_int( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ ># 781 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > while (N--) { ># 814 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > *(npy_int *)dst = ((npy_int)*(npy_ubyte *)src); ># 830 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst += sizeof(npy_int); > src += sizeof(npy_ubyte); > > > > > } >} ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_contig_cast_ubyte_to_int( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ > > > > npy_ubyte src_value; > > > > > npy_int dst_value; > > > > > while (N--) { ># 790 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(&src_value, src, sizeof(src_value)); ># 812 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst_value = ((npy_int)src_value); ># 826 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(dst, &dst_value, sizeof(dst_value)); > > > > dst += sizeof(npy_int); > src += sizeof(npy_ubyte); > > > > > } >} ># 691 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_aligned_cast_ubyte_to_long( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ ># 781 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > while (N--) { ># 814 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > *(npy_long *)dst = ((npy_long)*(npy_ubyte *)src); ># 833 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst += dst_stride; > src += src_stride; > > } >} ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_cast_ubyte_to_long( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ > > > > npy_ubyte src_value; > > > > > npy_long dst_value; > > > > > while (N--) { ># 790 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(&src_value, src, sizeof(src_value)); ># 812 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst_value = ((npy_long)src_value); ># 826 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(dst, &dst_value, sizeof(dst_value)); > > > > > > > dst += dst_stride; > src += src_stride; > > } >} ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_aligned_contig_cast_ubyte_to_long( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ ># 781 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > while (N--) { ># 814 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > *(npy_long *)dst = ((npy_long)*(npy_ubyte *)src); ># 830 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst += sizeof(npy_long); > src += sizeof(npy_ubyte); > > > > > } >} ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_contig_cast_ubyte_to_long( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ > > > > npy_ubyte src_value; > > > > > npy_long dst_value; > > > > > while (N--) { ># 790 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(&src_value, src, sizeof(src_value)); ># 812 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst_value = ((npy_long)src_value); ># 826 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(dst, &dst_value, sizeof(dst_value)); > > > > dst += sizeof(npy_long); > src += sizeof(npy_ubyte); > > > > > } >} ># 691 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_aligned_cast_ubyte_to_longlong( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ ># 781 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > while (N--) { ># 814 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > *(npy_longlong *)dst = ((npy_longlong)*(npy_ubyte *)src); ># 833 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst += dst_stride; > src += src_stride; > > } >} ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_cast_ubyte_to_longlong( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ > > > > npy_ubyte src_value; > > > > > npy_longlong dst_value; > > > > > while (N--) { ># 790 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(&src_value, src, sizeof(src_value)); ># 812 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst_value = ((npy_longlong)src_value); ># 826 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(dst, &dst_value, sizeof(dst_value)); > > > > > > > dst += dst_stride; > src += src_stride; > > } >} ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_aligned_contig_cast_ubyte_to_longlong( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ ># 781 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > while (N--) { ># 814 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > *(npy_longlong *)dst = ((npy_longlong)*(npy_ubyte *)src); ># 830 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst += sizeof(npy_longlong); > src += sizeof(npy_ubyte); > > > > > } >} ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_contig_cast_ubyte_to_longlong( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ > > > > npy_ubyte src_value; > > > > > npy_longlong dst_value; > > > > > while (N--) { ># 790 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(&src_value, src, sizeof(src_value)); ># 812 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst_value = ((npy_longlong)src_value); ># 826 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(dst, &dst_value, sizeof(dst_value)); > > > > dst += sizeof(npy_longlong); > src += sizeof(npy_ubyte); > > > > > } >} ># 691 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_aligned_cast_ubyte_to_half( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ ># 781 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > while (N--) { ># 814 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > *(npy_half *)dst = npy_float_to_half((float)*(npy_ubyte *)src); ># 833 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst += dst_stride; > src += src_stride; > > } >} ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_cast_ubyte_to_half( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ > > > > npy_ubyte src_value; > > > > > npy_half dst_value; > > > > > while (N--) { ># 790 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(&src_value, src, sizeof(src_value)); ># 812 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst_value = npy_float_to_half((float)src_value); ># 826 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(dst, &dst_value, sizeof(dst_value)); > > > > > > > dst += dst_stride; > src += src_stride; > > } >} ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_aligned_contig_cast_ubyte_to_half( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ ># 781 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > while (N--) { ># 814 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > *(npy_half *)dst = npy_float_to_half((float)*(npy_ubyte *)src); ># 830 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst += sizeof(npy_half); > src += sizeof(npy_ubyte); > > > > > } >} ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_contig_cast_ubyte_to_half( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ > > > > npy_ubyte src_value; > > > > > npy_half dst_value; > > > > > while (N--) { ># 790 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(&src_value, src, sizeof(src_value)); ># 812 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst_value = npy_float_to_half((float)src_value); ># 826 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(dst, &dst_value, sizeof(dst_value)); > > > > dst += sizeof(npy_half); > src += sizeof(npy_ubyte); > > > > > } >} ># 691 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_aligned_cast_ubyte_to_float( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ ># 781 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > while (N--) { ># 814 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > *(npy_float *)dst = ((npy_float)*(npy_ubyte *)src); ># 833 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst += dst_stride; > src += src_stride; > > } >} ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_cast_ubyte_to_float( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ > > > > npy_ubyte src_value; > > > > > npy_float dst_value; > > > > > while (N--) { ># 790 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(&src_value, src, sizeof(src_value)); ># 812 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst_value = ((npy_float)src_value); ># 826 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(dst, &dst_value, sizeof(dst_value)); > > > > > > > dst += dst_stride; > src += src_stride; > > } >} ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_aligned_contig_cast_ubyte_to_float( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ ># 781 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > while (N--) { ># 814 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > *(npy_float *)dst = ((npy_float)*(npy_ubyte *)src); ># 830 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst += sizeof(npy_float); > src += sizeof(npy_ubyte); > > > > > } >} ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_contig_cast_ubyte_to_float( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ > > > > npy_ubyte src_value; > > > > > npy_float dst_value; > > > > > while (N--) { ># 790 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(&src_value, src, sizeof(src_value)); ># 812 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst_value = ((npy_float)src_value); ># 826 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(dst, &dst_value, sizeof(dst_value)); > > > > dst += sizeof(npy_float); > src += sizeof(npy_ubyte); > > > > > } >} ># 691 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_aligned_cast_ubyte_to_double( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ ># 781 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > while (N--) { ># 814 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > *(npy_double *)dst = ((npy_double)*(npy_ubyte *)src); ># 833 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst += dst_stride; > src += src_stride; > > } >} ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_cast_ubyte_to_double( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ > > > > npy_ubyte src_value; > > > > > npy_double dst_value; > > > > > while (N--) { ># 790 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(&src_value, src, sizeof(src_value)); ># 812 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst_value = ((npy_double)src_value); ># 826 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(dst, &dst_value, sizeof(dst_value)); > > > > > > > dst += dst_stride; > src += src_stride; > > } >} ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_aligned_contig_cast_ubyte_to_double( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ ># 781 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > while (N--) { ># 814 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > *(npy_double *)dst = ((npy_double)*(npy_ubyte *)src); ># 830 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst += sizeof(npy_double); > src += sizeof(npy_ubyte); > > > > > } >} ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_contig_cast_ubyte_to_double( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ > > > > npy_ubyte src_value; > > > > > npy_double dst_value; > > > > > while (N--) { ># 790 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(&src_value, src, sizeof(src_value)); ># 812 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst_value = ((npy_double)src_value); ># 826 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(dst, &dst_value, sizeof(dst_value)); > > > > dst += sizeof(npy_double); > src += sizeof(npy_ubyte); > > > > > } >} ># 691 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_aligned_cast_ubyte_to_longdouble( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ ># 781 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > while (N--) { ># 814 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > *(npy_longdouble *)dst = ((npy_longdouble)*(npy_ubyte *)src); ># 833 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst += dst_stride; > src += src_stride; > > } >} ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_cast_ubyte_to_longdouble( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ > > > > npy_ubyte src_value; > > > > > npy_longdouble dst_value; > > > > > while (N--) { ># 790 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(&src_value, src, sizeof(src_value)); ># 812 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst_value = ((npy_longdouble)src_value); ># 826 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(dst, &dst_value, sizeof(dst_value)); > > > > > > > dst += dst_stride; > src += src_stride; > > } >} ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_aligned_contig_cast_ubyte_to_longdouble( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ ># 781 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > while (N--) { ># 814 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > *(npy_longdouble *)dst = ((npy_longdouble)*(npy_ubyte *)src); ># 830 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst += sizeof(npy_longdouble); > src += sizeof(npy_ubyte); > > > > > } >} ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_contig_cast_ubyte_to_longdouble( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ > > > > npy_ubyte src_value; > > > > > npy_longdouble dst_value; > > > > > while (N--) { ># 790 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(&src_value, src, sizeof(src_value)); ># 812 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst_value = ((npy_longdouble)src_value); ># 826 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(dst, &dst_value, sizeof(dst_value)); > > > > dst += sizeof(npy_longdouble); > src += sizeof(npy_ubyte); > > > > > } >} ># 691 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_aligned_cast_ubyte_to_cfloat( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ > > > > > > > npy_float dst_value[2]; > > > > > > > while (N--) { ># 808 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst_value[0] = ((npy_float)*(npy_ubyte *)src); > > dst_value[1] = 0; ># 820 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > ((npy_float *)dst)[0] = dst_value[0]; > ((npy_float *)dst)[1] = dst_value[1]; ># 833 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst += dst_stride; > src += src_stride; > > } >} ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_cast_ubyte_to_cfloat( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ > > > > npy_ubyte src_value; > > > npy_float dst_value[2]; > > > > > > > while (N--) { ># 790 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(&src_value, src, sizeof(src_value)); ># 806 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst_value[0] = ((npy_float)src_value); > > > > dst_value[1] = 0; ># 826 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(dst, &dst_value, sizeof(dst_value)); > > > > > > > dst += dst_stride; > src += src_stride; > > } >} ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_aligned_contig_cast_ubyte_to_cfloat( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ > > > > > > > npy_float dst_value[2]; > > > > > > > while (N--) { ># 808 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst_value[0] = ((npy_float)*(npy_ubyte *)src); > > dst_value[1] = 0; ># 820 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > ((npy_float *)dst)[0] = dst_value[0]; > ((npy_float *)dst)[1] = dst_value[1]; ># 830 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst += sizeof(npy_cfloat); > src += sizeof(npy_ubyte); > > > > > } >} ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_contig_cast_ubyte_to_cfloat( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ > > > > npy_ubyte src_value; > > > npy_float dst_value[2]; > > > > > > > while (N--) { ># 790 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(&src_value, src, sizeof(src_value)); ># 806 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst_value[0] = ((npy_float)src_value); > > > > dst_value[1] = 0; ># 826 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(dst, &dst_value, sizeof(dst_value)); > > > > dst += sizeof(npy_cfloat); > src += sizeof(npy_ubyte); > > > > > } >} ># 691 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_aligned_cast_ubyte_to_cdouble( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ > > > > > > > npy_double dst_value[2]; > > > > > > > while (N--) { ># 808 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst_value[0] = ((npy_double)*(npy_ubyte *)src); > > dst_value[1] = 0; ># 820 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > ((npy_double *)dst)[0] = dst_value[0]; > ((npy_double *)dst)[1] = dst_value[1]; ># 833 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst += dst_stride; > src += src_stride; > > } >} ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_cast_ubyte_to_cdouble( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ > > > > npy_ubyte src_value; > > > npy_double dst_value[2]; > > > > > > > while (N--) { ># 790 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(&src_value, src, sizeof(src_value)); ># 806 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst_value[0] = ((npy_double)src_value); > > > > dst_value[1] = 0; ># 826 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(dst, &dst_value, sizeof(dst_value)); > > > > > > > dst += dst_stride; > src += src_stride; > > } >} ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_aligned_contig_cast_ubyte_to_cdouble( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ > > > > > > > npy_double dst_value[2]; > > > > > > > while (N--) { ># 808 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst_value[0] = ((npy_double)*(npy_ubyte *)src); > > dst_value[1] = 0; ># 820 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > ((npy_double *)dst)[0] = dst_value[0]; > ((npy_double *)dst)[1] = dst_value[1]; ># 830 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst += sizeof(npy_cdouble); > src += sizeof(npy_ubyte); > > > > > } >} ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_contig_cast_ubyte_to_cdouble( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ > > > > npy_ubyte src_value; > > > npy_double dst_value[2]; > > > > > > > while (N--) { ># 790 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(&src_value, src, sizeof(src_value)); ># 806 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst_value[0] = ((npy_double)src_value); > > > > dst_value[1] = 0; ># 826 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(dst, &dst_value, sizeof(dst_value)); > > > > dst += sizeof(npy_cdouble); > src += sizeof(npy_ubyte); > > > > > } >} ># 691 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_aligned_cast_ubyte_to_clongdouble( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ > > > > > > > npy_longdouble dst_value[2]; > > > > > > > while (N--) { ># 808 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst_value[0] = ((npy_longdouble)*(npy_ubyte *)src); > > dst_value[1] = 0; ># 820 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > ((npy_longdouble *)dst)[0] = dst_value[0]; > ((npy_longdouble *)dst)[1] = dst_value[1]; ># 833 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst += dst_stride; > src += src_stride; > > } >} ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_cast_ubyte_to_clongdouble( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ > > > > npy_ubyte src_value; > > > npy_longdouble dst_value[2]; > > > > > > > while (N--) { ># 790 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(&src_value, src, sizeof(src_value)); ># 806 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst_value[0] = ((npy_longdouble)src_value); > > > > dst_value[1] = 0; ># 826 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(dst, &dst_value, sizeof(dst_value)); > > > > > > > dst += dst_stride; > src += src_stride; > > } >} ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_aligned_contig_cast_ubyte_to_clongdouble( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ > > > > > > > npy_longdouble dst_value[2]; > > > > > > > while (N--) { ># 808 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst_value[0] = ((npy_longdouble)*(npy_ubyte *)src); > > dst_value[1] = 0; ># 820 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > ((npy_longdouble *)dst)[0] = dst_value[0]; > ((npy_longdouble *)dst)[1] = dst_value[1]; ># 830 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst += sizeof(npy_clongdouble); > src += sizeof(npy_ubyte); > > > > > } >} ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_contig_cast_ubyte_to_clongdouble( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ > > > > npy_ubyte src_value; > > > npy_longdouble dst_value[2]; > > > > > > > while (N--) { ># 790 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(&src_value, src, sizeof(src_value)); ># 806 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst_value[0] = ((npy_longdouble)src_value); > > > > dst_value[1] = 0; ># 826 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(dst, &dst_value, sizeof(dst_value)); > > > > dst += sizeof(npy_clongdouble); > src += sizeof(npy_ubyte); > > > > > } >} ># 667 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 691 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_aligned_cast_ushort_to_bool( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ ># 781 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > while (N--) { ># 814 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > *(npy_bool *)dst = ((npy_bool)(*(npy_ushort *)src != 0)); ># 833 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst += dst_stride; > src += src_stride; > > } >} ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_cast_ushort_to_bool( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ > > > > npy_ushort src_value; > > > > > npy_bool dst_value; > > > > > while (N--) { ># 790 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(&src_value, src, sizeof(src_value)); ># 812 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst_value = ((npy_bool)(src_value != 0)); ># 826 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(dst, &dst_value, sizeof(dst_value)); > > > > > > > dst += dst_stride; > src += src_stride; > > } >} ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_aligned_contig_cast_ushort_to_bool( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ ># 781 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > while (N--) { ># 814 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > *(npy_bool *)dst = ((npy_bool)(*(npy_ushort *)src != 0)); ># 830 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst += sizeof(npy_bool); > src += sizeof(npy_ushort); > > > > > } >} ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_contig_cast_ushort_to_bool( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ > > > > npy_ushort src_value; > > > > > npy_bool dst_value; > > > > > while (N--) { ># 790 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(&src_value, src, sizeof(src_value)); ># 812 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst_value = ((npy_bool)(src_value != 0)); ># 826 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(dst, &dst_value, sizeof(dst_value)); > > > > dst += sizeof(npy_bool); > src += sizeof(npy_ushort); > > > > > } >} ># 691 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_aligned_cast_ushort_to_ubyte( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ ># 781 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > while (N--) { ># 814 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > *(npy_ubyte *)dst = ((npy_ubyte)*(npy_ushort *)src); ># 833 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst += dst_stride; > src += src_stride; > > } >} ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_cast_ushort_to_ubyte( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ > > > > npy_ushort src_value; > > > > > npy_ubyte dst_value; > > > > > while (N--) { ># 790 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(&src_value, src, sizeof(src_value)); ># 812 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst_value = ((npy_ubyte)src_value); ># 826 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(dst, &dst_value, sizeof(dst_value)); > > > > > > > dst += dst_stride; > src += src_stride; > > } >} ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_aligned_contig_cast_ushort_to_ubyte( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ ># 781 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > while (N--) { ># 814 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > *(npy_ubyte *)dst = ((npy_ubyte)*(npy_ushort *)src); ># 830 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst += sizeof(npy_ubyte); > src += sizeof(npy_ushort); > > > > > } >} ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_contig_cast_ushort_to_ubyte( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ > > > > npy_ushort src_value; > > > > > npy_ubyte dst_value; > > > > > while (N--) { ># 790 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(&src_value, src, sizeof(src_value)); ># 812 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst_value = ((npy_ubyte)src_value); ># 826 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(dst, &dst_value, sizeof(dst_value)); > > > > dst += sizeof(npy_ubyte); > src += sizeof(npy_ushort); > > > > > } >} ># 691 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_aligned_cast_ushort_to_ushort( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ ># 781 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > while (N--) { ># 814 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > *(npy_ushort *)dst = ((npy_ushort)*(npy_ushort *)src); ># 833 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst += dst_stride; > src += src_stride; > > } >} ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_cast_ushort_to_ushort( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ > > > > npy_ushort src_value; > > > > > npy_ushort dst_value; > > > > > while (N--) { ># 790 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(&src_value, src, sizeof(src_value)); ># 812 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst_value = ((npy_ushort)src_value); ># 826 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(dst, &dst_value, sizeof(dst_value)); > > > > > > > dst += dst_stride; > src += src_stride; > > } >} ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_aligned_contig_cast_ushort_to_ushort( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ ># 781 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > while (N--) { ># 814 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > *(npy_ushort *)dst = ((npy_ushort)*(npy_ushort *)src); ># 830 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst += sizeof(npy_ushort); > src += sizeof(npy_ushort); > > > > > } >} ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_contig_cast_ushort_to_ushort( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ > > > > npy_ushort src_value; > > > > > npy_ushort dst_value; > > > > > while (N--) { ># 790 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(&src_value, src, sizeof(src_value)); ># 812 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst_value = ((npy_ushort)src_value); ># 826 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(dst, &dst_value, sizeof(dst_value)); > > > > dst += sizeof(npy_ushort); > src += sizeof(npy_ushort); > > > > > } >} ># 691 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_aligned_cast_ushort_to_uint( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ ># 781 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > while (N--) { ># 814 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > *(npy_uint *)dst = ((npy_uint)*(npy_ushort *)src); ># 833 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst += dst_stride; > src += src_stride; > > } >} ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_cast_ushort_to_uint( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ > > > > npy_ushort src_value; > > > > > npy_uint dst_value; > > > > > while (N--) { ># 790 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(&src_value, src, sizeof(src_value)); ># 812 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst_value = ((npy_uint)src_value); ># 826 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(dst, &dst_value, sizeof(dst_value)); > > > > > > > dst += dst_stride; > src += src_stride; > > } >} ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_aligned_contig_cast_ushort_to_uint( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ ># 781 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > while (N--) { ># 814 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > *(npy_uint *)dst = ((npy_uint)*(npy_ushort *)src); ># 830 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst += sizeof(npy_uint); > src += sizeof(npy_ushort); > > > > > } >} ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_contig_cast_ushort_to_uint( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ > > > > npy_ushort src_value; > > > > > npy_uint dst_value; > > > > > while (N--) { ># 790 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(&src_value, src, sizeof(src_value)); ># 812 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst_value = ((npy_uint)src_value); ># 826 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(dst, &dst_value, sizeof(dst_value)); > > > > dst += sizeof(npy_uint); > src += sizeof(npy_ushort); > > > > > } >} ># 691 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_aligned_cast_ushort_to_ulong( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ ># 781 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > while (N--) { ># 814 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > *(npy_ulong *)dst = ((npy_ulong)*(npy_ushort *)src); ># 833 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst += dst_stride; > src += src_stride; > > } >} ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_cast_ushort_to_ulong( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ > > > > npy_ushort src_value; > > > > > npy_ulong dst_value; > > > > > while (N--) { ># 790 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(&src_value, src, sizeof(src_value)); ># 812 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst_value = ((npy_ulong)src_value); ># 826 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(dst, &dst_value, sizeof(dst_value)); > > > > > > > dst += dst_stride; > src += src_stride; > > } >} ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_aligned_contig_cast_ushort_to_ulong( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ ># 781 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > while (N--) { ># 814 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > *(npy_ulong *)dst = ((npy_ulong)*(npy_ushort *)src); ># 830 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst += sizeof(npy_ulong); > src += sizeof(npy_ushort); > > > > > } >} ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_contig_cast_ushort_to_ulong( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ > > > > npy_ushort src_value; > > > > > npy_ulong dst_value; > > > > > while (N--) { ># 790 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(&src_value, src, sizeof(src_value)); ># 812 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst_value = ((npy_ulong)src_value); ># 826 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(dst, &dst_value, sizeof(dst_value)); > > > > dst += sizeof(npy_ulong); > src += sizeof(npy_ushort); > > > > > } >} ># 691 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_aligned_cast_ushort_to_ulonglong( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ ># 781 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > while (N--) { ># 814 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > *(npy_ulonglong *)dst = ((npy_ulonglong)*(npy_ushort *)src); ># 833 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst += dst_stride; > src += src_stride; > > } >} ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_cast_ushort_to_ulonglong( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ > > > > npy_ushort src_value; > > > > > npy_ulonglong dst_value; > > > > > while (N--) { ># 790 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(&src_value, src, sizeof(src_value)); ># 812 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst_value = ((npy_ulonglong)src_value); ># 826 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(dst, &dst_value, sizeof(dst_value)); > > > > > > > dst += dst_stride; > src += src_stride; > > } >} ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_aligned_contig_cast_ushort_to_ulonglong( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ ># 781 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > while (N--) { ># 814 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > *(npy_ulonglong *)dst = ((npy_ulonglong)*(npy_ushort *)src); ># 830 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst += sizeof(npy_ulonglong); > src += sizeof(npy_ushort); > > > > > } >} ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_contig_cast_ushort_to_ulonglong( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ > > > > npy_ushort src_value; > > > > > npy_ulonglong dst_value; > > > > > while (N--) { ># 790 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(&src_value, src, sizeof(src_value)); ># 812 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst_value = ((npy_ulonglong)src_value); ># 826 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(dst, &dst_value, sizeof(dst_value)); > > > > dst += sizeof(npy_ulonglong); > src += sizeof(npy_ushort); > > > > > } >} ># 691 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_aligned_cast_ushort_to_byte( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ ># 781 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > while (N--) { ># 814 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > *(npy_byte *)dst = ((npy_byte)*(npy_ushort *)src); ># 833 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst += dst_stride; > src += src_stride; > > } >} ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_cast_ushort_to_byte( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ > > > > npy_ushort src_value; > > > > > npy_byte dst_value; > > > > > while (N--) { ># 790 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(&src_value, src, sizeof(src_value)); ># 812 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst_value = ((npy_byte)src_value); ># 826 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(dst, &dst_value, sizeof(dst_value)); > > > > > > > dst += dst_stride; > src += src_stride; > > } >} ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_aligned_contig_cast_ushort_to_byte( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ ># 781 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > while (N--) { ># 814 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > *(npy_byte *)dst = ((npy_byte)*(npy_ushort *)src); ># 830 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst += sizeof(npy_byte); > src += sizeof(npy_ushort); > > > > > } >} ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_contig_cast_ushort_to_byte( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ > > > > npy_ushort src_value; > > > > > npy_byte dst_value; > > > > > while (N--) { ># 790 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(&src_value, src, sizeof(src_value)); ># 812 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst_value = ((npy_byte)src_value); ># 826 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(dst, &dst_value, sizeof(dst_value)); > > > > dst += sizeof(npy_byte); > src += sizeof(npy_ushort); > > > > > } >} ># 691 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_aligned_cast_ushort_to_short( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ ># 781 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > while (N--) { ># 814 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > *(npy_short *)dst = ((npy_short)*(npy_ushort *)src); ># 833 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst += dst_stride; > src += src_stride; > > } >} ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_cast_ushort_to_short( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ > > > > npy_ushort src_value; > > > > > npy_short dst_value; > > > > > while (N--) { ># 790 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(&src_value, src, sizeof(src_value)); ># 812 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst_value = ((npy_short)src_value); ># 826 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(dst, &dst_value, sizeof(dst_value)); > > > > > > > dst += dst_stride; > src += src_stride; > > } >} ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_aligned_contig_cast_ushort_to_short( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ ># 781 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > while (N--) { ># 814 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > *(npy_short *)dst = ((npy_short)*(npy_ushort *)src); ># 830 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst += sizeof(npy_short); > src += sizeof(npy_ushort); > > > > > } >} ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_contig_cast_ushort_to_short( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ > > > > npy_ushort src_value; > > > > > npy_short dst_value; > > > > > while (N--) { ># 790 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(&src_value, src, sizeof(src_value)); ># 812 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst_value = ((npy_short)src_value); ># 826 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(dst, &dst_value, sizeof(dst_value)); > > > > dst += sizeof(npy_short); > src += sizeof(npy_ushort); > > > > > } >} ># 691 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_aligned_cast_ushort_to_int( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ ># 781 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > while (N--) { ># 814 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > *(npy_int *)dst = ((npy_int)*(npy_ushort *)src); ># 833 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst += dst_stride; > src += src_stride; > > } >} ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_cast_ushort_to_int( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ > > > > npy_ushort src_value; > > > > > npy_int dst_value; > > > > > while (N--) { ># 790 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(&src_value, src, sizeof(src_value)); ># 812 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst_value = ((npy_int)src_value); ># 826 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(dst, &dst_value, sizeof(dst_value)); > > > > > > > dst += dst_stride; > src += src_stride; > > } >} ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_aligned_contig_cast_ushort_to_int( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ ># 781 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > while (N--) { ># 814 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > *(npy_int *)dst = ((npy_int)*(npy_ushort *)src); ># 830 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst += sizeof(npy_int); > src += sizeof(npy_ushort); > > > > > } >} ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_contig_cast_ushort_to_int( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ > > > > npy_ushort src_value; > > > > > npy_int dst_value; > > > > > while (N--) { ># 790 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(&src_value, src, sizeof(src_value)); ># 812 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst_value = ((npy_int)src_value); ># 826 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(dst, &dst_value, sizeof(dst_value)); > > > > dst += sizeof(npy_int); > src += sizeof(npy_ushort); > > > > > } >} ># 691 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_aligned_cast_ushort_to_long( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ ># 781 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > while (N--) { ># 814 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > *(npy_long *)dst = ((npy_long)*(npy_ushort *)src); ># 833 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst += dst_stride; > src += src_stride; > > } >} ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_cast_ushort_to_long( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ > > > > npy_ushort src_value; > > > > > npy_long dst_value; > > > > > while (N--) { ># 790 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(&src_value, src, sizeof(src_value)); ># 812 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst_value = ((npy_long)src_value); ># 826 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(dst, &dst_value, sizeof(dst_value)); > > > > > > > dst += dst_stride; > src += src_stride; > > } >} ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_aligned_contig_cast_ushort_to_long( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ ># 781 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > while (N--) { ># 814 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > *(npy_long *)dst = ((npy_long)*(npy_ushort *)src); ># 830 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst += sizeof(npy_long); > src += sizeof(npy_ushort); > > > > > } >} ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_contig_cast_ushort_to_long( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ > > > > npy_ushort src_value; > > > > > npy_long dst_value; > > > > > while (N--) { ># 790 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(&src_value, src, sizeof(src_value)); ># 812 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst_value = ((npy_long)src_value); ># 826 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(dst, &dst_value, sizeof(dst_value)); > > > > dst += sizeof(npy_long); > src += sizeof(npy_ushort); > > > > > } >} ># 691 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_aligned_cast_ushort_to_longlong( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ ># 781 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > while (N--) { ># 814 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > *(npy_longlong *)dst = ((npy_longlong)*(npy_ushort *)src); ># 833 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst += dst_stride; > src += src_stride; > > } >} ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_cast_ushort_to_longlong( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ > > > > npy_ushort src_value; > > > > > npy_longlong dst_value; > > > > > while (N--) { ># 790 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(&src_value, src, sizeof(src_value)); ># 812 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst_value = ((npy_longlong)src_value); ># 826 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(dst, &dst_value, sizeof(dst_value)); > > > > > > > dst += dst_stride; > src += src_stride; > > } >} ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_aligned_contig_cast_ushort_to_longlong( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ ># 781 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > while (N--) { ># 814 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > *(npy_longlong *)dst = ((npy_longlong)*(npy_ushort *)src); ># 830 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst += sizeof(npy_longlong); > src += sizeof(npy_ushort); > > > > > } >} ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_contig_cast_ushort_to_longlong( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ > > > > npy_ushort src_value; > > > > > npy_longlong dst_value; > > > > > while (N--) { ># 790 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(&src_value, src, sizeof(src_value)); ># 812 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst_value = ((npy_longlong)src_value); ># 826 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(dst, &dst_value, sizeof(dst_value)); > > > > dst += sizeof(npy_longlong); > src += sizeof(npy_ushort); > > > > > } >} ># 691 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_aligned_cast_ushort_to_half( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ ># 781 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > while (N--) { ># 814 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > *(npy_half *)dst = npy_float_to_half((float)*(npy_ushort *)src); ># 833 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst += dst_stride; > src += src_stride; > > } >} ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_cast_ushort_to_half( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ > > > > npy_ushort src_value; > > > > > npy_half dst_value; > > > > > while (N--) { ># 790 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(&src_value, src, sizeof(src_value)); ># 812 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst_value = npy_float_to_half((float)src_value); ># 826 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(dst, &dst_value, sizeof(dst_value)); > > > > > > > dst += dst_stride; > src += src_stride; > > } >} ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_aligned_contig_cast_ushort_to_half( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ ># 781 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > while (N--) { ># 814 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > *(npy_half *)dst = npy_float_to_half((float)*(npy_ushort *)src); ># 830 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst += sizeof(npy_half); > src += sizeof(npy_ushort); > > > > > } >} ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_contig_cast_ushort_to_half( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ > > > > npy_ushort src_value; > > > > > npy_half dst_value; > > > > > while (N--) { ># 790 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(&src_value, src, sizeof(src_value)); ># 812 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst_value = npy_float_to_half((float)src_value); ># 826 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(dst, &dst_value, sizeof(dst_value)); > > > > dst += sizeof(npy_half); > src += sizeof(npy_ushort); > > > > > } >} ># 691 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_aligned_cast_ushort_to_float( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ ># 781 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > while (N--) { ># 814 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > *(npy_float *)dst = ((npy_float)*(npy_ushort *)src); ># 833 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst += dst_stride; > src += src_stride; > > } >} ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_cast_ushort_to_float( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ > > > > npy_ushort src_value; > > > > > npy_float dst_value; > > > > > while (N--) { ># 790 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(&src_value, src, sizeof(src_value)); ># 812 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst_value = ((npy_float)src_value); ># 826 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(dst, &dst_value, sizeof(dst_value)); > > > > > > > dst += dst_stride; > src += src_stride; > > } >} ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_aligned_contig_cast_ushort_to_float( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ ># 781 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > while (N--) { ># 814 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > *(npy_float *)dst = ((npy_float)*(npy_ushort *)src); ># 830 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst += sizeof(npy_float); > src += sizeof(npy_ushort); > > > > > } >} ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_contig_cast_ushort_to_float( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ > > > > npy_ushort src_value; > > > > > npy_float dst_value; > > > > > while (N--) { ># 790 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(&src_value, src, sizeof(src_value)); ># 812 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst_value = ((npy_float)src_value); ># 826 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(dst, &dst_value, sizeof(dst_value)); > > > > dst += sizeof(npy_float); > src += sizeof(npy_ushort); > > > > > } >} ># 691 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_aligned_cast_ushort_to_double( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ ># 781 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > while (N--) { ># 814 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > *(npy_double *)dst = ((npy_double)*(npy_ushort *)src); ># 833 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst += dst_stride; > src += src_stride; > > } >} ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_cast_ushort_to_double( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ > > > > npy_ushort src_value; > > > > > npy_double dst_value; > > > > > while (N--) { ># 790 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(&src_value, src, sizeof(src_value)); ># 812 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst_value = ((npy_double)src_value); ># 826 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(dst, &dst_value, sizeof(dst_value)); > > > > > > > dst += dst_stride; > src += src_stride; > > } >} ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_aligned_contig_cast_ushort_to_double( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ ># 781 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > while (N--) { ># 814 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > *(npy_double *)dst = ((npy_double)*(npy_ushort *)src); ># 830 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst += sizeof(npy_double); > src += sizeof(npy_ushort); > > > > > } >} ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_contig_cast_ushort_to_double( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ > > > > npy_ushort src_value; > > > > > npy_double dst_value; > > > > > while (N--) { ># 790 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(&src_value, src, sizeof(src_value)); ># 812 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst_value = ((npy_double)src_value); ># 826 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(dst, &dst_value, sizeof(dst_value)); > > > > dst += sizeof(npy_double); > src += sizeof(npy_ushort); > > > > > } >} ># 691 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_aligned_cast_ushort_to_longdouble( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ ># 781 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > while (N--) { ># 814 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > *(npy_longdouble *)dst = ((npy_longdouble)*(npy_ushort *)src); ># 833 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst += dst_stride; > src += src_stride; > > } >} ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_cast_ushort_to_longdouble( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ > > > > npy_ushort src_value; > > > > > npy_longdouble dst_value; > > > > > while (N--) { ># 790 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(&src_value, src, sizeof(src_value)); ># 812 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst_value = ((npy_longdouble)src_value); ># 826 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(dst, &dst_value, sizeof(dst_value)); > > > > > > > dst += dst_stride; > src += src_stride; > > } >} ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_aligned_contig_cast_ushort_to_longdouble( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ ># 781 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > while (N--) { ># 814 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > *(npy_longdouble *)dst = ((npy_longdouble)*(npy_ushort *)src); ># 830 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst += sizeof(npy_longdouble); > src += sizeof(npy_ushort); > > > > > } >} ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_contig_cast_ushort_to_longdouble( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ > > > > npy_ushort src_value; > > > > > npy_longdouble dst_value; > > > > > while (N--) { ># 790 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(&src_value, src, sizeof(src_value)); ># 812 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst_value = ((npy_longdouble)src_value); ># 826 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(dst, &dst_value, sizeof(dst_value)); > > > > dst += sizeof(npy_longdouble); > src += sizeof(npy_ushort); > > > > > } >} ># 691 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_aligned_cast_ushort_to_cfloat( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ > > > > > > > npy_float dst_value[2]; > > > > > > > while (N--) { ># 808 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst_value[0] = ((npy_float)*(npy_ushort *)src); > > dst_value[1] = 0; ># 820 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > ((npy_float *)dst)[0] = dst_value[0]; > ((npy_float *)dst)[1] = dst_value[1]; ># 833 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst += dst_stride; > src += src_stride; > > } >} ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_cast_ushort_to_cfloat( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ > > > > npy_ushort src_value; > > > npy_float dst_value[2]; > > > > > > > while (N--) { ># 790 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(&src_value, src, sizeof(src_value)); ># 806 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst_value[0] = ((npy_float)src_value); > > > > dst_value[1] = 0; ># 826 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(dst, &dst_value, sizeof(dst_value)); > > > > > > > dst += dst_stride; > src += src_stride; > > } >} ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_aligned_contig_cast_ushort_to_cfloat( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ > > > > > > > npy_float dst_value[2]; > > > > > > > while (N--) { ># 808 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst_value[0] = ((npy_float)*(npy_ushort *)src); > > dst_value[1] = 0; ># 820 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > ((npy_float *)dst)[0] = dst_value[0]; > ((npy_float *)dst)[1] = dst_value[1]; ># 830 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst += sizeof(npy_cfloat); > src += sizeof(npy_ushort); > > > > > } >} ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_contig_cast_ushort_to_cfloat( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ > > > > npy_ushort src_value; > > > npy_float dst_value[2]; > > > > > > > while (N--) { ># 790 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(&src_value, src, sizeof(src_value)); ># 806 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst_value[0] = ((npy_float)src_value); > > > > dst_value[1] = 0; ># 826 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(dst, &dst_value, sizeof(dst_value)); > > > > dst += sizeof(npy_cfloat); > src += sizeof(npy_ushort); > > > > > } >} ># 691 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_aligned_cast_ushort_to_cdouble( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ > > > > > > > npy_double dst_value[2]; > > > > > > > while (N--) { ># 808 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst_value[0] = ((npy_double)*(npy_ushort *)src); > > dst_value[1] = 0; ># 820 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > ((npy_double *)dst)[0] = dst_value[0]; > ((npy_double *)dst)[1] = dst_value[1]; ># 833 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst += dst_stride; > src += src_stride; > > } >} ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_cast_ushort_to_cdouble( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ > > > > npy_ushort src_value; > > > npy_double dst_value[2]; > > > > > > > while (N--) { ># 790 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(&src_value, src, sizeof(src_value)); ># 806 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst_value[0] = ((npy_double)src_value); > > > > dst_value[1] = 0; ># 826 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(dst, &dst_value, sizeof(dst_value)); > > > > > > > dst += dst_stride; > src += src_stride; > > } >} ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_aligned_contig_cast_ushort_to_cdouble( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ > > > > > > > npy_double dst_value[2]; > > > > > > > while (N--) { ># 808 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst_value[0] = ((npy_double)*(npy_ushort *)src); > > dst_value[1] = 0; ># 820 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > ((npy_double *)dst)[0] = dst_value[0]; > ((npy_double *)dst)[1] = dst_value[1]; ># 830 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst += sizeof(npy_cdouble); > src += sizeof(npy_ushort); > > > > > } >} ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_contig_cast_ushort_to_cdouble( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ > > > > npy_ushort src_value; > > > npy_double dst_value[2]; > > > > > > > while (N--) { ># 790 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(&src_value, src, sizeof(src_value)); ># 806 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst_value[0] = ((npy_double)src_value); > > > > dst_value[1] = 0; ># 826 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(dst, &dst_value, sizeof(dst_value)); > > > > dst += sizeof(npy_cdouble); > src += sizeof(npy_ushort); > > > > > } >} ># 691 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_aligned_cast_ushort_to_clongdouble( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ > > > > > > > npy_longdouble dst_value[2]; > > > > > > > while (N--) { ># 808 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst_value[0] = ((npy_longdouble)*(npy_ushort *)src); > > dst_value[1] = 0; ># 820 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > ((npy_longdouble *)dst)[0] = dst_value[0]; > ((npy_longdouble *)dst)[1] = dst_value[1]; ># 833 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst += dst_stride; > src += src_stride; > > } >} ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_cast_ushort_to_clongdouble( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ > > > > npy_ushort src_value; > > > npy_longdouble dst_value[2]; > > > > > > > while (N--) { ># 790 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(&src_value, src, sizeof(src_value)); ># 806 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst_value[0] = ((npy_longdouble)src_value); > > > > dst_value[1] = 0; ># 826 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(dst, &dst_value, sizeof(dst_value)); > > > > > > > dst += dst_stride; > src += src_stride; > > } >} ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_aligned_contig_cast_ushort_to_clongdouble( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ > > > > > > > npy_longdouble dst_value[2]; > > > > > > > while (N--) { ># 808 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst_value[0] = ((npy_longdouble)*(npy_ushort *)src); > > dst_value[1] = 0; ># 820 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > ((npy_longdouble *)dst)[0] = dst_value[0]; > ((npy_longdouble *)dst)[1] = dst_value[1]; ># 830 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst += sizeof(npy_clongdouble); > src += sizeof(npy_ushort); > > > > > } >} ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_contig_cast_ushort_to_clongdouble( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ > > > > npy_ushort src_value; > > > npy_longdouble dst_value[2]; > > > > > > > while (N--) { ># 790 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(&src_value, src, sizeof(src_value)); ># 806 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst_value[0] = ((npy_longdouble)src_value); > > > > dst_value[1] = 0; ># 826 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(dst, &dst_value, sizeof(dst_value)); > > > > dst += sizeof(npy_clongdouble); > src += sizeof(npy_ushort); > > > > > } >} ># 667 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 691 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_aligned_cast_uint_to_bool( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ ># 781 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > while (N--) { ># 814 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > *(npy_bool *)dst = ((npy_bool)(*(npy_uint *)src != 0)); ># 833 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst += dst_stride; > src += src_stride; > > } >} ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_cast_uint_to_bool( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ > > > > npy_uint src_value; > > > > > npy_bool dst_value; > > > > > while (N--) { ># 790 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(&src_value, src, sizeof(src_value)); ># 812 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst_value = ((npy_bool)(src_value != 0)); ># 826 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(dst, &dst_value, sizeof(dst_value)); > > > > > > > dst += dst_stride; > src += src_stride; > > } >} ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_aligned_contig_cast_uint_to_bool( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ ># 781 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > while (N--) { ># 814 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > *(npy_bool *)dst = ((npy_bool)(*(npy_uint *)src != 0)); ># 830 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst += sizeof(npy_bool); > src += sizeof(npy_uint); > > > > > } >} ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_contig_cast_uint_to_bool( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ > > > > npy_uint src_value; > > > > > npy_bool dst_value; > > > > > while (N--) { ># 790 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(&src_value, src, sizeof(src_value)); ># 812 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst_value = ((npy_bool)(src_value != 0)); ># 826 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(dst, &dst_value, sizeof(dst_value)); > > > > dst += sizeof(npy_bool); > src += sizeof(npy_uint); > > > > > } >} ># 691 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_aligned_cast_uint_to_ubyte( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ ># 781 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > while (N--) { ># 814 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > *(npy_ubyte *)dst = ((npy_ubyte)*(npy_uint *)src); ># 833 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst += dst_stride; > src += src_stride; > > } >} ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_cast_uint_to_ubyte( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ > > > > npy_uint src_value; > > > > > npy_ubyte dst_value; > > > > > while (N--) { ># 790 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(&src_value, src, sizeof(src_value)); ># 812 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst_value = ((npy_ubyte)src_value); ># 826 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(dst, &dst_value, sizeof(dst_value)); > > > > > > > dst += dst_stride; > src += src_stride; > > } >} ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_aligned_contig_cast_uint_to_ubyte( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ ># 781 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > while (N--) { ># 814 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > *(npy_ubyte *)dst = ((npy_ubyte)*(npy_uint *)src); ># 830 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst += sizeof(npy_ubyte); > src += sizeof(npy_uint); > > > > > } >} ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_contig_cast_uint_to_ubyte( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ > > > > npy_uint src_value; > > > > > npy_ubyte dst_value; > > > > > while (N--) { ># 790 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(&src_value, src, sizeof(src_value)); ># 812 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst_value = ((npy_ubyte)src_value); ># 826 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(dst, &dst_value, sizeof(dst_value)); > > > > dst += sizeof(npy_ubyte); > src += sizeof(npy_uint); > > > > > } >} ># 691 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_aligned_cast_uint_to_ushort( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ ># 781 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > while (N--) { ># 814 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > *(npy_ushort *)dst = ((npy_ushort)*(npy_uint *)src); ># 833 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst += dst_stride; > src += src_stride; > > } >} ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_cast_uint_to_ushort( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ > > > > npy_uint src_value; > > > > > npy_ushort dst_value; > > > > > while (N--) { ># 790 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(&src_value, src, sizeof(src_value)); ># 812 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst_value = ((npy_ushort)src_value); ># 826 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(dst, &dst_value, sizeof(dst_value)); > > > > > > > dst += dst_stride; > src += src_stride; > > } >} ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_aligned_contig_cast_uint_to_ushort( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ ># 781 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > while (N--) { ># 814 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > *(npy_ushort *)dst = ((npy_ushort)*(npy_uint *)src); ># 830 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst += sizeof(npy_ushort); > src += sizeof(npy_uint); > > > > > } >} ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_contig_cast_uint_to_ushort( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ > > > > npy_uint src_value; > > > > > npy_ushort dst_value; > > > > > while (N--) { ># 790 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(&src_value, src, sizeof(src_value)); ># 812 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst_value = ((npy_ushort)src_value); ># 826 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(dst, &dst_value, sizeof(dst_value)); > > > > dst += sizeof(npy_ushort); > src += sizeof(npy_uint); > > > > > } >} ># 691 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_aligned_cast_uint_to_uint( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ ># 781 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > while (N--) { ># 814 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > *(npy_uint *)dst = ((npy_uint)*(npy_uint *)src); ># 833 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst += dst_stride; > src += src_stride; > > } >} ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_cast_uint_to_uint( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ > > > > npy_uint src_value; > > > > > npy_uint dst_value; > > > > > while (N--) { ># 790 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(&src_value, src, sizeof(src_value)); ># 812 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst_value = ((npy_uint)src_value); ># 826 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(dst, &dst_value, sizeof(dst_value)); > > > > > > > dst += dst_stride; > src += src_stride; > > } >} ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_aligned_contig_cast_uint_to_uint( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ ># 781 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > while (N--) { ># 814 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > *(npy_uint *)dst = ((npy_uint)*(npy_uint *)src); ># 830 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst += sizeof(npy_uint); > src += sizeof(npy_uint); > > > > > } >} ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_contig_cast_uint_to_uint( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ > > > > npy_uint src_value; > > > > > npy_uint dst_value; > > > > > while (N--) { ># 790 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(&src_value, src, sizeof(src_value)); ># 812 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst_value = ((npy_uint)src_value); ># 826 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(dst, &dst_value, sizeof(dst_value)); > > > > dst += sizeof(npy_uint); > src += sizeof(npy_uint); > > > > > } >} ># 691 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_aligned_cast_uint_to_ulong( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ ># 781 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > while (N--) { ># 814 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > *(npy_ulong *)dst = ((npy_ulong)*(npy_uint *)src); ># 833 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst += dst_stride; > src += src_stride; > > } >} ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_cast_uint_to_ulong( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ > > > > npy_uint src_value; > > > > > npy_ulong dst_value; > > > > > while (N--) { ># 790 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(&src_value, src, sizeof(src_value)); ># 812 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst_value = ((npy_ulong)src_value); ># 826 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(dst, &dst_value, sizeof(dst_value)); > > > > > > > dst += dst_stride; > src += src_stride; > > } >} ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_aligned_contig_cast_uint_to_ulong( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ ># 781 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > while (N--) { ># 814 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > *(npy_ulong *)dst = ((npy_ulong)*(npy_uint *)src); ># 830 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst += sizeof(npy_ulong); > src += sizeof(npy_uint); > > > > > } >} ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_contig_cast_uint_to_ulong( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ > > > > npy_uint src_value; > > > > > npy_ulong dst_value; > > > > > while (N--) { ># 790 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(&src_value, src, sizeof(src_value)); ># 812 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst_value = ((npy_ulong)src_value); ># 826 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(dst, &dst_value, sizeof(dst_value)); > > > > dst += sizeof(npy_ulong); > src += sizeof(npy_uint); > > > > > } >} ># 691 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_aligned_cast_uint_to_ulonglong( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ ># 781 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > while (N--) { ># 814 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > *(npy_ulonglong *)dst = ((npy_ulonglong)*(npy_uint *)src); ># 833 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst += dst_stride; > src += src_stride; > > } >} ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_cast_uint_to_ulonglong( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ > > > > npy_uint src_value; > > > > > npy_ulonglong dst_value; > > > > > while (N--) { ># 790 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(&src_value, src, sizeof(src_value)); ># 812 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst_value = ((npy_ulonglong)src_value); ># 826 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(dst, &dst_value, sizeof(dst_value)); > > > > > > > dst += dst_stride; > src += src_stride; > > } >} ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_aligned_contig_cast_uint_to_ulonglong( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ ># 781 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > while (N--) { ># 814 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > *(npy_ulonglong *)dst = ((npy_ulonglong)*(npy_uint *)src); ># 830 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst += sizeof(npy_ulonglong); > src += sizeof(npy_uint); > > > > > } >} ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_contig_cast_uint_to_ulonglong( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ > > > > npy_uint src_value; > > > > > npy_ulonglong dst_value; > > > > > while (N--) { ># 790 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(&src_value, src, sizeof(src_value)); ># 812 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst_value = ((npy_ulonglong)src_value); ># 826 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(dst, &dst_value, sizeof(dst_value)); > > > > dst += sizeof(npy_ulonglong); > src += sizeof(npy_uint); > > > > > } >} ># 691 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_aligned_cast_uint_to_byte( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ ># 781 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > while (N--) { ># 814 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > *(npy_byte *)dst = ((npy_byte)*(npy_uint *)src); ># 833 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst += dst_stride; > src += src_stride; > > } >} ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_cast_uint_to_byte( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ > > > > npy_uint src_value; > > > > > npy_byte dst_value; > > > > > while (N--) { ># 790 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(&src_value, src, sizeof(src_value)); ># 812 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst_value = ((npy_byte)src_value); ># 826 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(dst, &dst_value, sizeof(dst_value)); > > > > > > > dst += dst_stride; > src += src_stride; > > } >} ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_aligned_contig_cast_uint_to_byte( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ ># 781 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > while (N--) { ># 814 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > *(npy_byte *)dst = ((npy_byte)*(npy_uint *)src); ># 830 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst += sizeof(npy_byte); > src += sizeof(npy_uint); > > > > > } >} ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_contig_cast_uint_to_byte( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ > > > > npy_uint src_value; > > > > > npy_byte dst_value; > > > > > while (N--) { ># 790 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(&src_value, src, sizeof(src_value)); ># 812 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst_value = ((npy_byte)src_value); ># 826 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(dst, &dst_value, sizeof(dst_value)); > > > > dst += sizeof(npy_byte); > src += sizeof(npy_uint); > > > > > } >} ># 691 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_aligned_cast_uint_to_short( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ ># 781 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > while (N--) { ># 814 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > *(npy_short *)dst = ((npy_short)*(npy_uint *)src); ># 833 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst += dst_stride; > src += src_stride; > > } >} ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_cast_uint_to_short( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ > > > > npy_uint src_value; > > > > > npy_short dst_value; > > > > > while (N--) { ># 790 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(&src_value, src, sizeof(src_value)); ># 812 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst_value = ((npy_short)src_value); ># 826 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(dst, &dst_value, sizeof(dst_value)); > > > > > > > dst += dst_stride; > src += src_stride; > > } >} ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_aligned_contig_cast_uint_to_short( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ ># 781 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > while (N--) { ># 814 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > *(npy_short *)dst = ((npy_short)*(npy_uint *)src); ># 830 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst += sizeof(npy_short); > src += sizeof(npy_uint); > > > > > } >} ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_contig_cast_uint_to_short( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ > > > > npy_uint src_value; > > > > > npy_short dst_value; > > > > > while (N--) { ># 790 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(&src_value, src, sizeof(src_value)); ># 812 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst_value = ((npy_short)src_value); ># 826 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(dst, &dst_value, sizeof(dst_value)); > > > > dst += sizeof(npy_short); > src += sizeof(npy_uint); > > > > > } >} ># 691 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_aligned_cast_uint_to_int( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ ># 781 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > while (N--) { ># 814 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > *(npy_int *)dst = ((npy_int)*(npy_uint *)src); ># 833 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst += dst_stride; > src += src_stride; > > } >} ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_cast_uint_to_int( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ > > > > npy_uint src_value; > > > > > npy_int dst_value; > > > > > while (N--) { ># 790 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(&src_value, src, sizeof(src_value)); ># 812 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst_value = ((npy_int)src_value); ># 826 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(dst, &dst_value, sizeof(dst_value)); > > > > > > > dst += dst_stride; > src += src_stride; > > } >} ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_aligned_contig_cast_uint_to_int( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ ># 781 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > while (N--) { ># 814 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > *(npy_int *)dst = ((npy_int)*(npy_uint *)src); ># 830 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst += sizeof(npy_int); > src += sizeof(npy_uint); > > > > > } >} ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_contig_cast_uint_to_int( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ > > > > npy_uint src_value; > > > > > npy_int dst_value; > > > > > while (N--) { ># 790 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(&src_value, src, sizeof(src_value)); ># 812 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst_value = ((npy_int)src_value); ># 826 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(dst, &dst_value, sizeof(dst_value)); > > > > dst += sizeof(npy_int); > src += sizeof(npy_uint); > > > > > } >} ># 691 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_aligned_cast_uint_to_long( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ ># 781 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > while (N--) { ># 814 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > *(npy_long *)dst = ((npy_long)*(npy_uint *)src); ># 833 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst += dst_stride; > src += src_stride; > > } >} ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_cast_uint_to_long( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ > > > > npy_uint src_value; > > > > > npy_long dst_value; > > > > > while (N--) { ># 790 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(&src_value, src, sizeof(src_value)); ># 812 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst_value = ((npy_long)src_value); ># 826 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(dst, &dst_value, sizeof(dst_value)); > > > > > > > dst += dst_stride; > src += src_stride; > > } >} ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_aligned_contig_cast_uint_to_long( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ ># 781 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > while (N--) { ># 814 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > *(npy_long *)dst = ((npy_long)*(npy_uint *)src); ># 830 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst += sizeof(npy_long); > src += sizeof(npy_uint); > > > > > } >} ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_contig_cast_uint_to_long( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ > > > > npy_uint src_value; > > > > > npy_long dst_value; > > > > > while (N--) { ># 790 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(&src_value, src, sizeof(src_value)); ># 812 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst_value = ((npy_long)src_value); ># 826 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(dst, &dst_value, sizeof(dst_value)); > > > > dst += sizeof(npy_long); > src += sizeof(npy_uint); > > > > > } >} ># 691 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_aligned_cast_uint_to_longlong( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ ># 781 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > while (N--) { ># 814 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > *(npy_longlong *)dst = ((npy_longlong)*(npy_uint *)src); ># 833 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst += dst_stride; > src += src_stride; > > } >} ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_cast_uint_to_longlong( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ > > > > npy_uint src_value; > > > > > npy_longlong dst_value; > > > > > while (N--) { ># 790 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(&src_value, src, sizeof(src_value)); ># 812 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst_value = ((npy_longlong)src_value); ># 826 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(dst, &dst_value, sizeof(dst_value)); > > > > > > > dst += dst_stride; > src += src_stride; > > } >} ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_aligned_contig_cast_uint_to_longlong( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ ># 781 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > while (N--) { ># 814 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > *(npy_longlong *)dst = ((npy_longlong)*(npy_uint *)src); ># 830 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst += sizeof(npy_longlong); > src += sizeof(npy_uint); > > > > > } >} ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_contig_cast_uint_to_longlong( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ > > > > npy_uint src_value; > > > > > npy_longlong dst_value; > > > > > while (N--) { ># 790 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(&src_value, src, sizeof(src_value)); ># 812 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst_value = ((npy_longlong)src_value); ># 826 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(dst, &dst_value, sizeof(dst_value)); > > > > dst += sizeof(npy_longlong); > src += sizeof(npy_uint); > > > > > } >} ># 691 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_aligned_cast_uint_to_half( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ ># 781 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > while (N--) { ># 814 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > *(npy_half *)dst = npy_float_to_half((float)*(npy_uint *)src); ># 833 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst += dst_stride; > src += src_stride; > > } >} ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_cast_uint_to_half( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ > > > > npy_uint src_value; > > > > > npy_half dst_value; > > > > > while (N--) { ># 790 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(&src_value, src, sizeof(src_value)); ># 812 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst_value = npy_float_to_half((float)src_value); ># 826 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(dst, &dst_value, sizeof(dst_value)); > > > > > > > dst += dst_stride; > src += src_stride; > > } >} ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_aligned_contig_cast_uint_to_half( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ ># 781 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > while (N--) { ># 814 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > *(npy_half *)dst = npy_float_to_half((float)*(npy_uint *)src); ># 830 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst += sizeof(npy_half); > src += sizeof(npy_uint); > > > > > } >} ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_contig_cast_uint_to_half( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ > > > > npy_uint src_value; > > > > > npy_half dst_value; > > > > > while (N--) { ># 790 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(&src_value, src, sizeof(src_value)); ># 812 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst_value = npy_float_to_half((float)src_value); ># 826 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(dst, &dst_value, sizeof(dst_value)); > > > > dst += sizeof(npy_half); > src += sizeof(npy_uint); > > > > > } >} ># 691 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_aligned_cast_uint_to_float( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ ># 781 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > while (N--) { ># 814 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > *(npy_float *)dst = ((npy_float)*(npy_uint *)src); ># 833 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst += dst_stride; > src += src_stride; > > } >} ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_cast_uint_to_float( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ > > > > npy_uint src_value; > > > > > npy_float dst_value; > > > > > while (N--) { ># 790 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(&src_value, src, sizeof(src_value)); ># 812 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst_value = ((npy_float)src_value); ># 826 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(dst, &dst_value, sizeof(dst_value)); > > > > > > > dst += dst_stride; > src += src_stride; > > } >} ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_aligned_contig_cast_uint_to_float( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ ># 781 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > while (N--) { ># 814 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > *(npy_float *)dst = ((npy_float)*(npy_uint *)src); ># 830 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst += sizeof(npy_float); > src += sizeof(npy_uint); > > > > > } >} ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_contig_cast_uint_to_float( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ > > > > npy_uint src_value; > > > > > npy_float dst_value; > > > > > while (N--) { ># 790 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(&src_value, src, sizeof(src_value)); ># 812 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst_value = ((npy_float)src_value); ># 826 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(dst, &dst_value, sizeof(dst_value)); > > > > dst += sizeof(npy_float); > src += sizeof(npy_uint); > > > > > } >} ># 691 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_aligned_cast_uint_to_double( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ ># 781 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > while (N--) { ># 814 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > *(npy_double *)dst = ((npy_double)*(npy_uint *)src); ># 833 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst += dst_stride; > src += src_stride; > > } >} ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_cast_uint_to_double( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ > > > > npy_uint src_value; > > > > > npy_double dst_value; > > > > > while (N--) { ># 790 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(&src_value, src, sizeof(src_value)); ># 812 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst_value = ((npy_double)src_value); ># 826 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(dst, &dst_value, sizeof(dst_value)); > > > > > > > dst += dst_stride; > src += src_stride; > > } >} ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_aligned_contig_cast_uint_to_double( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ ># 781 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > while (N--) { ># 814 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > *(npy_double *)dst = ((npy_double)*(npy_uint *)src); ># 830 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst += sizeof(npy_double); > src += sizeof(npy_uint); > > > > > } >} ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_contig_cast_uint_to_double( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ > > > > npy_uint src_value; > > > > > npy_double dst_value; > > > > > while (N--) { ># 790 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(&src_value, src, sizeof(src_value)); ># 812 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst_value = ((npy_double)src_value); ># 826 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(dst, &dst_value, sizeof(dst_value)); > > > > dst += sizeof(npy_double); > src += sizeof(npy_uint); > > > > > } >} ># 691 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_aligned_cast_uint_to_longdouble( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ ># 781 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > while (N--) { ># 814 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > *(npy_longdouble *)dst = ((npy_longdouble)*(npy_uint *)src); ># 833 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst += dst_stride; > src += src_stride; > > } >} ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_cast_uint_to_longdouble( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ > > > > npy_uint src_value; > > > > > npy_longdouble dst_value; > > > > > while (N--) { ># 790 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(&src_value, src, sizeof(src_value)); ># 812 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst_value = ((npy_longdouble)src_value); ># 826 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(dst, &dst_value, sizeof(dst_value)); > > > > > > > dst += dst_stride; > src += src_stride; > > } >} ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_aligned_contig_cast_uint_to_longdouble( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ ># 781 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > while (N--) { ># 814 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > *(npy_longdouble *)dst = ((npy_longdouble)*(npy_uint *)src); ># 830 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst += sizeof(npy_longdouble); > src += sizeof(npy_uint); > > > > > } >} ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_contig_cast_uint_to_longdouble( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ > > > > npy_uint src_value; > > > > > npy_longdouble dst_value; > > > > > while (N--) { ># 790 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(&src_value, src, sizeof(src_value)); ># 812 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst_value = ((npy_longdouble)src_value); ># 826 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(dst, &dst_value, sizeof(dst_value)); > > > > dst += sizeof(npy_longdouble); > src += sizeof(npy_uint); > > > > > } >} ># 691 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_aligned_cast_uint_to_cfloat( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ > > > > > > > npy_float dst_value[2]; > > > > > > > while (N--) { ># 808 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst_value[0] = ((npy_float)*(npy_uint *)src); > > dst_value[1] = 0; ># 820 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > ((npy_float *)dst)[0] = dst_value[0]; > ((npy_float *)dst)[1] = dst_value[1]; ># 833 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst += dst_stride; > src += src_stride; > > } >} ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_cast_uint_to_cfloat( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ > > > > npy_uint src_value; > > > npy_float dst_value[2]; > > > > > > > while (N--) { ># 790 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(&src_value, src, sizeof(src_value)); ># 806 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst_value[0] = ((npy_float)src_value); > > > > dst_value[1] = 0; ># 826 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(dst, &dst_value, sizeof(dst_value)); > > > > > > > dst += dst_stride; > src += src_stride; > > } >} ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_aligned_contig_cast_uint_to_cfloat( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ > > > > > > > npy_float dst_value[2]; > > > > > > > while (N--) { ># 808 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst_value[0] = ((npy_float)*(npy_uint *)src); > > dst_value[1] = 0; ># 820 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > ((npy_float *)dst)[0] = dst_value[0]; > ((npy_float *)dst)[1] = dst_value[1]; ># 830 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst += sizeof(npy_cfloat); > src += sizeof(npy_uint); > > > > > } >} ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_contig_cast_uint_to_cfloat( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ > > > > npy_uint src_value; > > > npy_float dst_value[2]; > > > > > > > while (N--) { ># 790 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(&src_value, src, sizeof(src_value)); ># 806 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst_value[0] = ((npy_float)src_value); > > > > dst_value[1] = 0; ># 826 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(dst, &dst_value, sizeof(dst_value)); > > > > dst += sizeof(npy_cfloat); > src += sizeof(npy_uint); > > > > > } >} ># 691 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_aligned_cast_uint_to_cdouble( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ > > > > > > > npy_double dst_value[2]; > > > > > > > while (N--) { ># 808 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst_value[0] = ((npy_double)*(npy_uint *)src); > > dst_value[1] = 0; ># 820 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > ((npy_double *)dst)[0] = dst_value[0]; > ((npy_double *)dst)[1] = dst_value[1]; ># 833 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst += dst_stride; > src += src_stride; > > } >} ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_cast_uint_to_cdouble( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ > > > > npy_uint src_value; > > > npy_double dst_value[2]; > > > > > > > while (N--) { ># 790 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(&src_value, src, sizeof(src_value)); ># 806 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst_value[0] = ((npy_double)src_value); > > > > dst_value[1] = 0; ># 826 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(dst, &dst_value, sizeof(dst_value)); > > > > > > > dst += dst_stride; > src += src_stride; > > } >} ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_aligned_contig_cast_uint_to_cdouble( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ > > > > > > > npy_double dst_value[2]; > > > > > > > while (N--) { ># 808 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst_value[0] = ((npy_double)*(npy_uint *)src); > > dst_value[1] = 0; ># 820 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > ((npy_double *)dst)[0] = dst_value[0]; > ((npy_double *)dst)[1] = dst_value[1]; ># 830 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst += sizeof(npy_cdouble); > src += sizeof(npy_uint); > > > > > } >} ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_contig_cast_uint_to_cdouble( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ > > > > npy_uint src_value; > > > npy_double dst_value[2]; > > > > > > > while (N--) { ># 790 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(&src_value, src, sizeof(src_value)); ># 806 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst_value[0] = ((npy_double)src_value); > > > > dst_value[1] = 0; ># 826 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(dst, &dst_value, sizeof(dst_value)); > > > > dst += sizeof(npy_cdouble); > src += sizeof(npy_uint); > > > > > } >} ># 691 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_aligned_cast_uint_to_clongdouble( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ > > > > > > > npy_longdouble dst_value[2]; > > > > > > > while (N--) { ># 808 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst_value[0] = ((npy_longdouble)*(npy_uint *)src); > > dst_value[1] = 0; ># 820 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > ((npy_longdouble *)dst)[0] = dst_value[0]; > ((npy_longdouble *)dst)[1] = dst_value[1]; ># 833 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst += dst_stride; > src += src_stride; > > } >} ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_cast_uint_to_clongdouble( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ > > > > npy_uint src_value; > > > npy_longdouble dst_value[2]; > > > > > > > while (N--) { ># 790 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(&src_value, src, sizeof(src_value)); ># 806 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst_value[0] = ((npy_longdouble)src_value); > > > > dst_value[1] = 0; ># 826 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(dst, &dst_value, sizeof(dst_value)); > > > > > > > dst += dst_stride; > src += src_stride; > > } >} ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_aligned_contig_cast_uint_to_clongdouble( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ > > > > > > > npy_longdouble dst_value[2]; > > > > > > > while (N--) { ># 808 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst_value[0] = ((npy_longdouble)*(npy_uint *)src); > > dst_value[1] = 0; ># 820 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > ((npy_longdouble *)dst)[0] = dst_value[0]; > ((npy_longdouble *)dst)[1] = dst_value[1]; ># 830 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst += sizeof(npy_clongdouble); > src += sizeof(npy_uint); > > > > > } >} ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_contig_cast_uint_to_clongdouble( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ > > > > npy_uint src_value; > > > npy_longdouble dst_value[2]; > > > > > > > while (N--) { ># 790 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(&src_value, src, sizeof(src_value)); ># 806 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst_value[0] = ((npy_longdouble)src_value); > > > > dst_value[1] = 0; ># 826 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(dst, &dst_value, sizeof(dst_value)); > > > > dst += sizeof(npy_clongdouble); > src += sizeof(npy_uint); > > > > > } >} ># 667 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 691 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_aligned_cast_ulong_to_bool( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ ># 781 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > while (N--) { ># 814 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > *(npy_bool *)dst = ((npy_bool)(*(npy_ulong *)src != 0)); ># 833 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst += dst_stride; > src += src_stride; > > } >} ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_cast_ulong_to_bool( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ > > > > npy_ulong src_value; > > > > > npy_bool dst_value; > > > > > while (N--) { ># 790 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(&src_value, src, sizeof(src_value)); ># 812 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst_value = ((npy_bool)(src_value != 0)); ># 826 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(dst, &dst_value, sizeof(dst_value)); > > > > > > > dst += dst_stride; > src += src_stride; > > } >} ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_aligned_contig_cast_ulong_to_bool( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ ># 781 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > while (N--) { ># 814 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > *(npy_bool *)dst = ((npy_bool)(*(npy_ulong *)src != 0)); ># 830 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst += sizeof(npy_bool); > src += sizeof(npy_ulong); > > > > > } >} ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_contig_cast_ulong_to_bool( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ > > > > npy_ulong src_value; > > > > > npy_bool dst_value; > > > > > while (N--) { ># 790 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(&src_value, src, sizeof(src_value)); ># 812 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst_value = ((npy_bool)(src_value != 0)); ># 826 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(dst, &dst_value, sizeof(dst_value)); > > > > dst += sizeof(npy_bool); > src += sizeof(npy_ulong); > > > > > } >} ># 691 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_aligned_cast_ulong_to_ubyte( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ ># 781 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > while (N--) { ># 814 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > *(npy_ubyte *)dst = ((npy_ubyte)*(npy_ulong *)src); ># 833 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst += dst_stride; > src += src_stride; > > } >} ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_cast_ulong_to_ubyte( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ > > > > npy_ulong src_value; > > > > > npy_ubyte dst_value; > > > > > while (N--) { ># 790 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(&src_value, src, sizeof(src_value)); ># 812 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst_value = ((npy_ubyte)src_value); ># 826 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(dst, &dst_value, sizeof(dst_value)); > > > > > > > dst += dst_stride; > src += src_stride; > > } >} ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_aligned_contig_cast_ulong_to_ubyte( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ ># 781 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > while (N--) { ># 814 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > *(npy_ubyte *)dst = ((npy_ubyte)*(npy_ulong *)src); ># 830 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst += sizeof(npy_ubyte); > src += sizeof(npy_ulong); > > > > > } >} ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_contig_cast_ulong_to_ubyte( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ > > > > npy_ulong src_value; > > > > > npy_ubyte dst_value; > > > > > while (N--) { ># 790 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(&src_value, src, sizeof(src_value)); ># 812 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst_value = ((npy_ubyte)src_value); ># 826 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(dst, &dst_value, sizeof(dst_value)); > > > > dst += sizeof(npy_ubyte); > src += sizeof(npy_ulong); > > > > > } >} ># 691 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_aligned_cast_ulong_to_ushort( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ ># 781 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > while (N--) { ># 814 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > *(npy_ushort *)dst = ((npy_ushort)*(npy_ulong *)src); ># 833 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst += dst_stride; > src += src_stride; > > } >} ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_cast_ulong_to_ushort( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ > > > > npy_ulong src_value; > > > > > npy_ushort dst_value; > > > > > while (N--) { ># 790 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(&src_value, src, sizeof(src_value)); ># 812 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst_value = ((npy_ushort)src_value); ># 826 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(dst, &dst_value, sizeof(dst_value)); > > > > > > > dst += dst_stride; > src += src_stride; > > } >} ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_aligned_contig_cast_ulong_to_ushort( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ ># 781 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > while (N--) { ># 814 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > *(npy_ushort *)dst = ((npy_ushort)*(npy_ulong *)src); ># 830 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst += sizeof(npy_ushort); > src += sizeof(npy_ulong); > > > > > } >} ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_contig_cast_ulong_to_ushort( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ > > > > npy_ulong src_value; > > > > > npy_ushort dst_value; > > > > > while (N--) { ># 790 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(&src_value, src, sizeof(src_value)); ># 812 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst_value = ((npy_ushort)src_value); ># 826 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(dst, &dst_value, sizeof(dst_value)); > > > > dst += sizeof(npy_ushort); > src += sizeof(npy_ulong); > > > > > } >} ># 691 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_aligned_cast_ulong_to_uint( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ ># 781 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > while (N--) { ># 814 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > *(npy_uint *)dst = ((npy_uint)*(npy_ulong *)src); ># 833 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst += dst_stride; > src += src_stride; > > } >} ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_cast_ulong_to_uint( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ > > > > npy_ulong src_value; > > > > > npy_uint dst_value; > > > > > while (N--) { ># 790 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(&src_value, src, sizeof(src_value)); ># 812 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst_value = ((npy_uint)src_value); ># 826 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(dst, &dst_value, sizeof(dst_value)); > > > > > > > dst += dst_stride; > src += src_stride; > > } >} ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_aligned_contig_cast_ulong_to_uint( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ ># 781 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > while (N--) { ># 814 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > *(npy_uint *)dst = ((npy_uint)*(npy_ulong *)src); ># 830 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst += sizeof(npy_uint); > src += sizeof(npy_ulong); > > > > > } >} ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_contig_cast_ulong_to_uint( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ > > > > npy_ulong src_value; > > > > > npy_uint dst_value; > > > > > while (N--) { ># 790 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(&src_value, src, sizeof(src_value)); ># 812 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst_value = ((npy_uint)src_value); ># 826 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(dst, &dst_value, sizeof(dst_value)); > > > > dst += sizeof(npy_uint); > src += sizeof(npy_ulong); > > > > > } >} ># 691 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_aligned_cast_ulong_to_ulong( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ ># 781 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > while (N--) { ># 814 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > *(npy_ulong *)dst = ((npy_ulong)*(npy_ulong *)src); ># 833 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst += dst_stride; > src += src_stride; > > } >} ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_cast_ulong_to_ulong( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ > > > > npy_ulong src_value; > > > > > npy_ulong dst_value; > > > > > while (N--) { ># 790 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(&src_value, src, sizeof(src_value)); ># 812 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst_value = ((npy_ulong)src_value); ># 826 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(dst, &dst_value, sizeof(dst_value)); > > > > > > > dst += dst_stride; > src += src_stride; > > } >} ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_aligned_contig_cast_ulong_to_ulong( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ ># 781 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > while (N--) { ># 814 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > *(npy_ulong *)dst = ((npy_ulong)*(npy_ulong *)src); ># 830 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst += sizeof(npy_ulong); > src += sizeof(npy_ulong); > > > > > } >} ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_contig_cast_ulong_to_ulong( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ > > > > npy_ulong src_value; > > > > > npy_ulong dst_value; > > > > > while (N--) { ># 790 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(&src_value, src, sizeof(src_value)); ># 812 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst_value = ((npy_ulong)src_value); ># 826 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(dst, &dst_value, sizeof(dst_value)); > > > > dst += sizeof(npy_ulong); > src += sizeof(npy_ulong); > > > > > } >} ># 691 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_aligned_cast_ulong_to_ulonglong( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ ># 781 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > while (N--) { ># 814 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > *(npy_ulonglong *)dst = ((npy_ulonglong)*(npy_ulong *)src); ># 833 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst += dst_stride; > src += src_stride; > > } >} ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_cast_ulong_to_ulonglong( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ > > > > npy_ulong src_value; > > > > > npy_ulonglong dst_value; > > > > > while (N--) { ># 790 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(&src_value, src, sizeof(src_value)); ># 812 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst_value = ((npy_ulonglong)src_value); ># 826 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(dst, &dst_value, sizeof(dst_value)); > > > > > > > dst += dst_stride; > src += src_stride; > > } >} ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_aligned_contig_cast_ulong_to_ulonglong( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ ># 781 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > while (N--) { ># 814 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > *(npy_ulonglong *)dst = ((npy_ulonglong)*(npy_ulong *)src); ># 830 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst += sizeof(npy_ulonglong); > src += sizeof(npy_ulong); > > > > > } >} ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_contig_cast_ulong_to_ulonglong( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ > > > > npy_ulong src_value; > > > > > npy_ulonglong dst_value; > > > > > while (N--) { ># 790 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(&src_value, src, sizeof(src_value)); ># 812 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst_value = ((npy_ulonglong)src_value); ># 826 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(dst, &dst_value, sizeof(dst_value)); > > > > dst += sizeof(npy_ulonglong); > src += sizeof(npy_ulong); > > > > > } >} ># 691 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_aligned_cast_ulong_to_byte( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ ># 781 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > while (N--) { ># 814 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > *(npy_byte *)dst = ((npy_byte)*(npy_ulong *)src); ># 833 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst += dst_stride; > src += src_stride; > > } >} ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_cast_ulong_to_byte( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ > > > > npy_ulong src_value; > > > > > npy_byte dst_value; > > > > > while (N--) { ># 790 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(&src_value, src, sizeof(src_value)); ># 812 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst_value = ((npy_byte)src_value); ># 826 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(dst, &dst_value, sizeof(dst_value)); > > > > > > > dst += dst_stride; > src += src_stride; > > } >} ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_aligned_contig_cast_ulong_to_byte( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ ># 781 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > while (N--) { ># 814 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > *(npy_byte *)dst = ((npy_byte)*(npy_ulong *)src); ># 830 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst += sizeof(npy_byte); > src += sizeof(npy_ulong); > > > > > } >} ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_contig_cast_ulong_to_byte( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ > > > > npy_ulong src_value; > > > > > npy_byte dst_value; > > > > > while (N--) { ># 790 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(&src_value, src, sizeof(src_value)); ># 812 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst_value = ((npy_byte)src_value); ># 826 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(dst, &dst_value, sizeof(dst_value)); > > > > dst += sizeof(npy_byte); > src += sizeof(npy_ulong); > > > > > } >} ># 691 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_aligned_cast_ulong_to_short( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ ># 781 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > while (N--) { ># 814 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > *(npy_short *)dst = ((npy_short)*(npy_ulong *)src); ># 833 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst += dst_stride; > src += src_stride; > > } >} ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_cast_ulong_to_short( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ > > > > npy_ulong src_value; > > > > > npy_short dst_value; > > > > > while (N--) { ># 790 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(&src_value, src, sizeof(src_value)); ># 812 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst_value = ((npy_short)src_value); ># 826 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(dst, &dst_value, sizeof(dst_value)); > > > > > > > dst += dst_stride; > src += src_stride; > > } >} ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_aligned_contig_cast_ulong_to_short( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ ># 781 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > while (N--) { ># 814 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > *(npy_short *)dst = ((npy_short)*(npy_ulong *)src); ># 830 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst += sizeof(npy_short); > src += sizeof(npy_ulong); > > > > > } >} ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_contig_cast_ulong_to_short( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ > > > > npy_ulong src_value; > > > > > npy_short dst_value; > > > > > while (N--) { ># 790 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(&src_value, src, sizeof(src_value)); ># 812 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst_value = ((npy_short)src_value); ># 826 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(dst, &dst_value, sizeof(dst_value)); > > > > dst += sizeof(npy_short); > src += sizeof(npy_ulong); > > > > > } >} ># 691 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_aligned_cast_ulong_to_int( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ ># 781 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > while (N--) { ># 814 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > *(npy_int *)dst = ((npy_int)*(npy_ulong *)src); ># 833 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst += dst_stride; > src += src_stride; > > } >} ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_cast_ulong_to_int( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ > > > > npy_ulong src_value; > > > > > npy_int dst_value; > > > > > while (N--) { ># 790 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(&src_value, src, sizeof(src_value)); ># 812 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst_value = ((npy_int)src_value); ># 826 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(dst, &dst_value, sizeof(dst_value)); > > > > > > > dst += dst_stride; > src += src_stride; > > } >} ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_aligned_contig_cast_ulong_to_int( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ ># 781 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > while (N--) { ># 814 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > *(npy_int *)dst = ((npy_int)*(npy_ulong *)src); ># 830 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst += sizeof(npy_int); > src += sizeof(npy_ulong); > > > > > } >} ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_contig_cast_ulong_to_int( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ > > > > npy_ulong src_value; > > > > > npy_int dst_value; > > > > > while (N--) { ># 790 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(&src_value, src, sizeof(src_value)); ># 812 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst_value = ((npy_int)src_value); ># 826 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(dst, &dst_value, sizeof(dst_value)); > > > > dst += sizeof(npy_int); > src += sizeof(npy_ulong); > > > > > } >} ># 691 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_aligned_cast_ulong_to_long( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ ># 781 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > while (N--) { ># 814 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > *(npy_long *)dst = ((npy_long)*(npy_ulong *)src); ># 833 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst += dst_stride; > src += src_stride; > > } >} ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_cast_ulong_to_long( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ > > > > npy_ulong src_value; > > > > > npy_long dst_value; > > > > > while (N--) { ># 790 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(&src_value, src, sizeof(src_value)); ># 812 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst_value = ((npy_long)src_value); ># 826 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(dst, &dst_value, sizeof(dst_value)); > > > > > > > dst += dst_stride; > src += src_stride; > > } >} ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_aligned_contig_cast_ulong_to_long( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ ># 781 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > while (N--) { ># 814 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > *(npy_long *)dst = ((npy_long)*(npy_ulong *)src); ># 830 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst += sizeof(npy_long); > src += sizeof(npy_ulong); > > > > > } >} ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_contig_cast_ulong_to_long( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ > > > > npy_ulong src_value; > > > > > npy_long dst_value; > > > > > while (N--) { ># 790 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(&src_value, src, sizeof(src_value)); ># 812 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst_value = ((npy_long)src_value); ># 826 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(dst, &dst_value, sizeof(dst_value)); > > > > dst += sizeof(npy_long); > src += sizeof(npy_ulong); > > > > > } >} ># 691 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_aligned_cast_ulong_to_longlong( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ ># 781 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > while (N--) { ># 814 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > *(npy_longlong *)dst = ((npy_longlong)*(npy_ulong *)src); ># 833 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst += dst_stride; > src += src_stride; > > } >} ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_cast_ulong_to_longlong( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ > > > > npy_ulong src_value; > > > > > npy_longlong dst_value; > > > > > while (N--) { ># 790 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(&src_value, src, sizeof(src_value)); ># 812 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst_value = ((npy_longlong)src_value); ># 826 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(dst, &dst_value, sizeof(dst_value)); > > > > > > > dst += dst_stride; > src += src_stride; > > } >} ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_aligned_contig_cast_ulong_to_longlong( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ ># 781 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > while (N--) { ># 814 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > *(npy_longlong *)dst = ((npy_longlong)*(npy_ulong *)src); ># 830 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst += sizeof(npy_longlong); > src += sizeof(npy_ulong); > > > > > } >} ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_contig_cast_ulong_to_longlong( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ > > > > npy_ulong src_value; > > > > > npy_longlong dst_value; > > > > > while (N--) { ># 790 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(&src_value, src, sizeof(src_value)); ># 812 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst_value = ((npy_longlong)src_value); ># 826 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(dst, &dst_value, sizeof(dst_value)); > > > > dst += sizeof(npy_longlong); > src += sizeof(npy_ulong); > > > > > } >} ># 691 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_aligned_cast_ulong_to_half( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ ># 781 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > while (N--) { ># 814 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > *(npy_half *)dst = npy_float_to_half((float)*(npy_ulong *)src); ># 833 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst += dst_stride; > src += src_stride; > > } >} ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_cast_ulong_to_half( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ > > > > npy_ulong src_value; > > > > > npy_half dst_value; > > > > > while (N--) { ># 790 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(&src_value, src, sizeof(src_value)); ># 812 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst_value = npy_float_to_half((float)src_value); ># 826 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(dst, &dst_value, sizeof(dst_value)); > > > > > > > dst += dst_stride; > src += src_stride; > > } >} ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_aligned_contig_cast_ulong_to_half( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ ># 781 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > while (N--) { ># 814 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > *(npy_half *)dst = npy_float_to_half((float)*(npy_ulong *)src); ># 830 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst += sizeof(npy_half); > src += sizeof(npy_ulong); > > > > > } >} ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_contig_cast_ulong_to_half( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ > > > > npy_ulong src_value; > > > > > npy_half dst_value; > > > > > while (N--) { ># 790 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(&src_value, src, sizeof(src_value)); ># 812 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst_value = npy_float_to_half((float)src_value); ># 826 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(dst, &dst_value, sizeof(dst_value)); > > > > dst += sizeof(npy_half); > src += sizeof(npy_ulong); > > > > > } >} ># 691 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_aligned_cast_ulong_to_float( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ ># 781 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > while (N--) { ># 814 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > *(npy_float *)dst = ((npy_float)*(npy_ulong *)src); ># 833 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst += dst_stride; > src += src_stride; > > } >} ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_cast_ulong_to_float( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ > > > > npy_ulong src_value; > > > > > npy_float dst_value; > > > > > while (N--) { ># 790 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(&src_value, src, sizeof(src_value)); ># 812 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst_value = ((npy_float)src_value); ># 826 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(dst, &dst_value, sizeof(dst_value)); > > > > > > > dst += dst_stride; > src += src_stride; > > } >} ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_aligned_contig_cast_ulong_to_float( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ ># 781 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > while (N--) { ># 814 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > *(npy_float *)dst = ((npy_float)*(npy_ulong *)src); ># 830 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst += sizeof(npy_float); > src += sizeof(npy_ulong); > > > > > } >} ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_contig_cast_ulong_to_float( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ > > > > npy_ulong src_value; > > > > > npy_float dst_value; > > > > > while (N--) { ># 790 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(&src_value, src, sizeof(src_value)); ># 812 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst_value = ((npy_float)src_value); ># 826 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(dst, &dst_value, sizeof(dst_value)); > > > > dst += sizeof(npy_float); > src += sizeof(npy_ulong); > > > > > } >} ># 691 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_aligned_cast_ulong_to_double( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ ># 781 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > while (N--) { ># 814 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > *(npy_double *)dst = ((npy_double)*(npy_ulong *)src); ># 833 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst += dst_stride; > src += src_stride; > > } >} ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_cast_ulong_to_double( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ > > > > npy_ulong src_value; > > > > > npy_double dst_value; > > > > > while (N--) { ># 790 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(&src_value, src, sizeof(src_value)); ># 812 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst_value = ((npy_double)src_value); ># 826 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(dst, &dst_value, sizeof(dst_value)); > > > > > > > dst += dst_stride; > src += src_stride; > > } >} ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_aligned_contig_cast_ulong_to_double( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ ># 781 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > while (N--) { ># 814 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > *(npy_double *)dst = ((npy_double)*(npy_ulong *)src); ># 830 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst += sizeof(npy_double); > src += sizeof(npy_ulong); > > > > > } >} ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_contig_cast_ulong_to_double( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ > > > > npy_ulong src_value; > > > > > npy_double dst_value; > > > > > while (N--) { ># 790 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(&src_value, src, sizeof(src_value)); ># 812 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst_value = ((npy_double)src_value); ># 826 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(dst, &dst_value, sizeof(dst_value)); > > > > dst += sizeof(npy_double); > src += sizeof(npy_ulong); > > > > > } >} ># 691 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_aligned_cast_ulong_to_longdouble( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ ># 781 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > while (N--) { ># 814 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > *(npy_longdouble *)dst = ((npy_longdouble)*(npy_ulong *)src); ># 833 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst += dst_stride; > src += src_stride; > > } >} ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_cast_ulong_to_longdouble( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ > > > > npy_ulong src_value; > > > > > npy_longdouble dst_value; > > > > > while (N--) { ># 790 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(&src_value, src, sizeof(src_value)); ># 812 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst_value = ((npy_longdouble)src_value); ># 826 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(dst, &dst_value, sizeof(dst_value)); > > > > > > > dst += dst_stride; > src += src_stride; > > } >} ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_aligned_contig_cast_ulong_to_longdouble( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ ># 781 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > while (N--) { ># 814 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > *(npy_longdouble *)dst = ((npy_longdouble)*(npy_ulong *)src); ># 830 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst += sizeof(npy_longdouble); > src += sizeof(npy_ulong); > > > > > } >} ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_contig_cast_ulong_to_longdouble( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ > > > > npy_ulong src_value; > > > > > npy_longdouble dst_value; > > > > > while (N--) { ># 790 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(&src_value, src, sizeof(src_value)); ># 812 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst_value = ((npy_longdouble)src_value); ># 826 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(dst, &dst_value, sizeof(dst_value)); > > > > dst += sizeof(npy_longdouble); > src += sizeof(npy_ulong); > > > > > } >} ># 691 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_aligned_cast_ulong_to_cfloat( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ > > > > > > > npy_float dst_value[2]; > > > > > > > while (N--) { ># 808 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst_value[0] = ((npy_float)*(npy_ulong *)src); > > dst_value[1] = 0; ># 820 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > ((npy_float *)dst)[0] = dst_value[0]; > ((npy_float *)dst)[1] = dst_value[1]; ># 833 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst += dst_stride; > src += src_stride; > > } >} ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_cast_ulong_to_cfloat( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ > > > > npy_ulong src_value; > > > npy_float dst_value[2]; > > > > > > > while (N--) { ># 790 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(&src_value, src, sizeof(src_value)); ># 806 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst_value[0] = ((npy_float)src_value); > > > > dst_value[1] = 0; ># 826 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(dst, &dst_value, sizeof(dst_value)); > > > > > > > dst += dst_stride; > src += src_stride; > > } >} ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_aligned_contig_cast_ulong_to_cfloat( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ > > > > > > > npy_float dst_value[2]; > > > > > > > while (N--) { ># 808 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst_value[0] = ((npy_float)*(npy_ulong *)src); > > dst_value[1] = 0; ># 820 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > ((npy_float *)dst)[0] = dst_value[0]; > ((npy_float *)dst)[1] = dst_value[1]; ># 830 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst += sizeof(npy_cfloat); > src += sizeof(npy_ulong); > > > > > } >} ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_contig_cast_ulong_to_cfloat( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ > > > > npy_ulong src_value; > > > npy_float dst_value[2]; > > > > > > > while (N--) { ># 790 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(&src_value, src, sizeof(src_value)); ># 806 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst_value[0] = ((npy_float)src_value); > > > > dst_value[1] = 0; ># 826 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(dst, &dst_value, sizeof(dst_value)); > > > > dst += sizeof(npy_cfloat); > src += sizeof(npy_ulong); > > > > > } >} ># 691 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_aligned_cast_ulong_to_cdouble( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ > > > > > > > npy_double dst_value[2]; > > > > > > > while (N--) { ># 808 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst_value[0] = ((npy_double)*(npy_ulong *)src); > > dst_value[1] = 0; ># 820 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > ((npy_double *)dst)[0] = dst_value[0]; > ((npy_double *)dst)[1] = dst_value[1]; ># 833 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst += dst_stride; > src += src_stride; > > } >} ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_cast_ulong_to_cdouble( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ > > > > npy_ulong src_value; > > > npy_double dst_value[2]; > > > > > > > while (N--) { ># 790 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(&src_value, src, sizeof(src_value)); ># 806 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst_value[0] = ((npy_double)src_value); > > > > dst_value[1] = 0; ># 826 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(dst, &dst_value, sizeof(dst_value)); > > > > > > > dst += dst_stride; > src += src_stride; > > } >} ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_aligned_contig_cast_ulong_to_cdouble( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ > > > > > > > npy_double dst_value[2]; > > > > > > > while (N--) { ># 808 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst_value[0] = ((npy_double)*(npy_ulong *)src); > > dst_value[1] = 0; ># 820 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > ((npy_double *)dst)[0] = dst_value[0]; > ((npy_double *)dst)[1] = dst_value[1]; ># 830 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst += sizeof(npy_cdouble); > src += sizeof(npy_ulong); > > > > > } >} ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_contig_cast_ulong_to_cdouble( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ > > > > npy_ulong src_value; > > > npy_double dst_value[2]; > > > > > > > while (N--) { ># 790 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(&src_value, src, sizeof(src_value)); ># 806 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst_value[0] = ((npy_double)src_value); > > > > dst_value[1] = 0; ># 826 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(dst, &dst_value, sizeof(dst_value)); > > > > dst += sizeof(npy_cdouble); > src += sizeof(npy_ulong); > > > > > } >} ># 691 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_aligned_cast_ulong_to_clongdouble( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ > > > > > > > npy_longdouble dst_value[2]; > > > > > > > while (N--) { ># 808 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst_value[0] = ((npy_longdouble)*(npy_ulong *)src); > > dst_value[1] = 0; ># 820 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > ((npy_longdouble *)dst)[0] = dst_value[0]; > ((npy_longdouble *)dst)[1] = dst_value[1]; ># 833 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst += dst_stride; > src += src_stride; > > } >} ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_cast_ulong_to_clongdouble( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ > > > > npy_ulong src_value; > > > npy_longdouble dst_value[2]; > > > > > > > while (N--) { ># 790 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(&src_value, src, sizeof(src_value)); ># 806 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst_value[0] = ((npy_longdouble)src_value); > > > > dst_value[1] = 0; ># 826 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(dst, &dst_value, sizeof(dst_value)); > > > > > > > dst += dst_stride; > src += src_stride; > > } >} ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_aligned_contig_cast_ulong_to_clongdouble( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ > > > > > > > npy_longdouble dst_value[2]; > > > > > > > while (N--) { ># 808 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst_value[0] = ((npy_longdouble)*(npy_ulong *)src); > > dst_value[1] = 0; ># 820 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > ((npy_longdouble *)dst)[0] = dst_value[0]; > ((npy_longdouble *)dst)[1] = dst_value[1]; ># 830 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst += sizeof(npy_clongdouble); > src += sizeof(npy_ulong); > > > > > } >} ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_contig_cast_ulong_to_clongdouble( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ > > > > npy_ulong src_value; > > > npy_longdouble dst_value[2]; > > > > > > > while (N--) { ># 790 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(&src_value, src, sizeof(src_value)); ># 806 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst_value[0] = ((npy_longdouble)src_value); > > > > dst_value[1] = 0; ># 826 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(dst, &dst_value, sizeof(dst_value)); > > > > dst += sizeof(npy_clongdouble); > src += sizeof(npy_ulong); > > > > > } >} ># 667 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 691 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_aligned_cast_ulonglong_to_bool( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ ># 781 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > while (N--) { ># 814 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > *(npy_bool *)dst = ((npy_bool)(*(npy_ulonglong *)src != 0)); ># 833 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst += dst_stride; > src += src_stride; > > } >} ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_cast_ulonglong_to_bool( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ > > > > npy_ulonglong src_value; > > > > > npy_bool dst_value; > > > > > while (N--) { ># 790 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(&src_value, src, sizeof(src_value)); ># 812 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst_value = ((npy_bool)(src_value != 0)); ># 826 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(dst, &dst_value, sizeof(dst_value)); > > > > > > > dst += dst_stride; > src += src_stride; > > } >} ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_aligned_contig_cast_ulonglong_to_bool( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ ># 781 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > while (N--) { ># 814 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > *(npy_bool *)dst = ((npy_bool)(*(npy_ulonglong *)src != 0)); ># 830 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst += sizeof(npy_bool); > src += sizeof(npy_ulonglong); > > > > > } >} ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_contig_cast_ulonglong_to_bool( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ > > > > npy_ulonglong src_value; > > > > > npy_bool dst_value; > > > > > while (N--) { ># 790 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(&src_value, src, sizeof(src_value)); ># 812 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst_value = ((npy_bool)(src_value != 0)); ># 826 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(dst, &dst_value, sizeof(dst_value)); > > > > dst += sizeof(npy_bool); > src += sizeof(npy_ulonglong); > > > > > } >} ># 691 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_aligned_cast_ulonglong_to_ubyte( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ ># 781 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > while (N--) { ># 814 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > *(npy_ubyte *)dst = ((npy_ubyte)*(npy_ulonglong *)src); ># 833 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst += dst_stride; > src += src_stride; > > } >} ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_cast_ulonglong_to_ubyte( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ > > > > npy_ulonglong src_value; > > > > > npy_ubyte dst_value; > > > > > while (N--) { ># 790 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(&src_value, src, sizeof(src_value)); ># 812 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst_value = ((npy_ubyte)src_value); ># 826 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(dst, &dst_value, sizeof(dst_value)); > > > > > > > dst += dst_stride; > src += src_stride; > > } >} ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_aligned_contig_cast_ulonglong_to_ubyte( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ ># 781 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > while (N--) { ># 814 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > *(npy_ubyte *)dst = ((npy_ubyte)*(npy_ulonglong *)src); ># 830 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst += sizeof(npy_ubyte); > src += sizeof(npy_ulonglong); > > > > > } >} ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_contig_cast_ulonglong_to_ubyte( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ > > > > npy_ulonglong src_value; > > > > > npy_ubyte dst_value; > > > > > while (N--) { ># 790 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(&src_value, src, sizeof(src_value)); ># 812 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst_value = ((npy_ubyte)src_value); ># 826 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(dst, &dst_value, sizeof(dst_value)); > > > > dst += sizeof(npy_ubyte); > src += sizeof(npy_ulonglong); > > > > > } >} ># 691 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_aligned_cast_ulonglong_to_ushort( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ ># 781 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > while (N--) { ># 814 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > *(npy_ushort *)dst = ((npy_ushort)*(npy_ulonglong *)src); ># 833 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst += dst_stride; > src += src_stride; > > } >} ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_cast_ulonglong_to_ushort( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ > > > > npy_ulonglong src_value; > > > > > npy_ushort dst_value; > > > > > while (N--) { ># 790 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(&src_value, src, sizeof(src_value)); ># 812 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst_value = ((npy_ushort)src_value); ># 826 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(dst, &dst_value, sizeof(dst_value)); > > > > > > > dst += dst_stride; > src += src_stride; > > } >} ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_aligned_contig_cast_ulonglong_to_ushort( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ ># 781 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > while (N--) { ># 814 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > *(npy_ushort *)dst = ((npy_ushort)*(npy_ulonglong *)src); ># 830 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst += sizeof(npy_ushort); > src += sizeof(npy_ulonglong); > > > > > } >} ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_contig_cast_ulonglong_to_ushort( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ > > > > npy_ulonglong src_value; > > > > > npy_ushort dst_value; > > > > > while (N--) { ># 790 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(&src_value, src, sizeof(src_value)); ># 812 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst_value = ((npy_ushort)src_value); ># 826 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(dst, &dst_value, sizeof(dst_value)); > > > > dst += sizeof(npy_ushort); > src += sizeof(npy_ulonglong); > > > > > } >} ># 691 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_aligned_cast_ulonglong_to_uint( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ ># 781 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > while (N--) { ># 814 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > *(npy_uint *)dst = ((npy_uint)*(npy_ulonglong *)src); ># 833 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst += dst_stride; > src += src_stride; > > } >} ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_cast_ulonglong_to_uint( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ > > > > npy_ulonglong src_value; > > > > > npy_uint dst_value; > > > > > while (N--) { ># 790 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(&src_value, src, sizeof(src_value)); ># 812 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst_value = ((npy_uint)src_value); ># 826 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(dst, &dst_value, sizeof(dst_value)); > > > > > > > dst += dst_stride; > src += src_stride; > > } >} ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_aligned_contig_cast_ulonglong_to_uint( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ ># 781 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > while (N--) { ># 814 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > *(npy_uint *)dst = ((npy_uint)*(npy_ulonglong *)src); ># 830 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst += sizeof(npy_uint); > src += sizeof(npy_ulonglong); > > > > > } >} ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_contig_cast_ulonglong_to_uint( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ > > > > npy_ulonglong src_value; > > > > > npy_uint dst_value; > > > > > while (N--) { ># 790 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(&src_value, src, sizeof(src_value)); ># 812 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst_value = ((npy_uint)src_value); ># 826 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(dst, &dst_value, sizeof(dst_value)); > > > > dst += sizeof(npy_uint); > src += sizeof(npy_ulonglong); > > > > > } >} ># 691 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_aligned_cast_ulonglong_to_ulong( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ ># 781 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > while (N--) { ># 814 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > *(npy_ulong *)dst = ((npy_ulong)*(npy_ulonglong *)src); ># 833 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst += dst_stride; > src += src_stride; > > } >} ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_cast_ulonglong_to_ulong( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ > > > > npy_ulonglong src_value; > > > > > npy_ulong dst_value; > > > > > while (N--) { ># 790 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(&src_value, src, sizeof(src_value)); ># 812 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst_value = ((npy_ulong)src_value); ># 826 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(dst, &dst_value, sizeof(dst_value)); > > > > > > > dst += dst_stride; > src += src_stride; > > } >} ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_aligned_contig_cast_ulonglong_to_ulong( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ ># 781 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > while (N--) { ># 814 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > *(npy_ulong *)dst = ((npy_ulong)*(npy_ulonglong *)src); ># 830 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst += sizeof(npy_ulong); > src += sizeof(npy_ulonglong); > > > > > } >} ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_contig_cast_ulonglong_to_ulong( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ > > > > npy_ulonglong src_value; > > > > > npy_ulong dst_value; > > > > > while (N--) { ># 790 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(&src_value, src, sizeof(src_value)); ># 812 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst_value = ((npy_ulong)src_value); ># 826 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(dst, &dst_value, sizeof(dst_value)); > > > > dst += sizeof(npy_ulong); > src += sizeof(npy_ulonglong); > > > > > } >} ># 691 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_aligned_cast_ulonglong_to_ulonglong( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ ># 781 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > while (N--) { ># 814 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > *(npy_ulonglong *)dst = ((npy_ulonglong)*(npy_ulonglong *)src); ># 833 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst += dst_stride; > src += src_stride; > > } >} ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_cast_ulonglong_to_ulonglong( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ > > > > npy_ulonglong src_value; > > > > > npy_ulonglong dst_value; > > > > > while (N--) { ># 790 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(&src_value, src, sizeof(src_value)); ># 812 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst_value = ((npy_ulonglong)src_value); ># 826 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(dst, &dst_value, sizeof(dst_value)); > > > > > > > dst += dst_stride; > src += src_stride; > > } >} ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_aligned_contig_cast_ulonglong_to_ulonglong( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ ># 781 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > while (N--) { ># 814 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > *(npy_ulonglong *)dst = ((npy_ulonglong)*(npy_ulonglong *)src); ># 830 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst += sizeof(npy_ulonglong); > src += sizeof(npy_ulonglong); > > > > > } >} ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_contig_cast_ulonglong_to_ulonglong( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ > > > > npy_ulonglong src_value; > > > > > npy_ulonglong dst_value; > > > > > while (N--) { ># 790 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(&src_value, src, sizeof(src_value)); ># 812 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst_value = ((npy_ulonglong)src_value); ># 826 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(dst, &dst_value, sizeof(dst_value)); > > > > dst += sizeof(npy_ulonglong); > src += sizeof(npy_ulonglong); > > > > > } >} ># 691 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_aligned_cast_ulonglong_to_byte( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ ># 781 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > while (N--) { ># 814 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > *(npy_byte *)dst = ((npy_byte)*(npy_ulonglong *)src); ># 833 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst += dst_stride; > src += src_stride; > > } >} ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_cast_ulonglong_to_byte( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ > > > > npy_ulonglong src_value; > > > > > npy_byte dst_value; > > > > > while (N--) { ># 790 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(&src_value, src, sizeof(src_value)); ># 812 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst_value = ((npy_byte)src_value); ># 826 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(dst, &dst_value, sizeof(dst_value)); > > > > > > > dst += dst_stride; > src += src_stride; > > } >} ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_aligned_contig_cast_ulonglong_to_byte( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ ># 781 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > while (N--) { ># 814 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > *(npy_byte *)dst = ((npy_byte)*(npy_ulonglong *)src); ># 830 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst += sizeof(npy_byte); > src += sizeof(npy_ulonglong); > > > > > } >} ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_contig_cast_ulonglong_to_byte( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ > > > > npy_ulonglong src_value; > > > > > npy_byte dst_value; > > > > > while (N--) { ># 790 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(&src_value, src, sizeof(src_value)); ># 812 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst_value = ((npy_byte)src_value); ># 826 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(dst, &dst_value, sizeof(dst_value)); > > > > dst += sizeof(npy_byte); > src += sizeof(npy_ulonglong); > > > > > } >} ># 691 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_aligned_cast_ulonglong_to_short( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ ># 781 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > while (N--) { ># 814 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > *(npy_short *)dst = ((npy_short)*(npy_ulonglong *)src); ># 833 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst += dst_stride; > src += src_stride; > > } >} ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_cast_ulonglong_to_short( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ > > > > npy_ulonglong src_value; > > > > > npy_short dst_value; > > > > > while (N--) { ># 790 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(&src_value, src, sizeof(src_value)); ># 812 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst_value = ((npy_short)src_value); ># 826 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(dst, &dst_value, sizeof(dst_value)); > > > > > > > dst += dst_stride; > src += src_stride; > > } >} ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_aligned_contig_cast_ulonglong_to_short( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ ># 781 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > while (N--) { ># 814 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > *(npy_short *)dst = ((npy_short)*(npy_ulonglong *)src); ># 830 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst += sizeof(npy_short); > src += sizeof(npy_ulonglong); > > > > > } >} ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_contig_cast_ulonglong_to_short( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ > > > > npy_ulonglong src_value; > > > > > npy_short dst_value; > > > > > while (N--) { ># 790 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(&src_value, src, sizeof(src_value)); ># 812 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst_value = ((npy_short)src_value); ># 826 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(dst, &dst_value, sizeof(dst_value)); > > > > dst += sizeof(npy_short); > src += sizeof(npy_ulonglong); > > > > > } >} ># 691 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_aligned_cast_ulonglong_to_int( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ ># 781 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > while (N--) { ># 814 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > *(npy_int *)dst = ((npy_int)*(npy_ulonglong *)src); ># 833 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst += dst_stride; > src += src_stride; > > } >} ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_cast_ulonglong_to_int( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ > > > > npy_ulonglong src_value; > > > > > npy_int dst_value; > > > > > while (N--) { ># 790 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(&src_value, src, sizeof(src_value)); ># 812 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst_value = ((npy_int)src_value); ># 826 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(dst, &dst_value, sizeof(dst_value)); > > > > > > > dst += dst_stride; > src += src_stride; > > } >} ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_aligned_contig_cast_ulonglong_to_int( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ ># 781 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > while (N--) { ># 814 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > *(npy_int *)dst = ((npy_int)*(npy_ulonglong *)src); ># 830 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst += sizeof(npy_int); > src += sizeof(npy_ulonglong); > > > > > } >} ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_contig_cast_ulonglong_to_int( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ > > > > npy_ulonglong src_value; > > > > > npy_int dst_value; > > > > > while (N--) { ># 790 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(&src_value, src, sizeof(src_value)); ># 812 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst_value = ((npy_int)src_value); ># 826 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(dst, &dst_value, sizeof(dst_value)); > > > > dst += sizeof(npy_int); > src += sizeof(npy_ulonglong); > > > > > } >} ># 691 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_aligned_cast_ulonglong_to_long( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ ># 781 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > while (N--) { ># 814 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > *(npy_long *)dst = ((npy_long)*(npy_ulonglong *)src); ># 833 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst += dst_stride; > src += src_stride; > > } >} ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_cast_ulonglong_to_long( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ > > > > npy_ulonglong src_value; > > > > > npy_long dst_value; > > > > > while (N--) { ># 790 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(&src_value, src, sizeof(src_value)); ># 812 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst_value = ((npy_long)src_value); ># 826 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(dst, &dst_value, sizeof(dst_value)); > > > > > > > dst += dst_stride; > src += src_stride; > > } >} ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_aligned_contig_cast_ulonglong_to_long( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ ># 781 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > while (N--) { ># 814 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > *(npy_long *)dst = ((npy_long)*(npy_ulonglong *)src); ># 830 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst += sizeof(npy_long); > src += sizeof(npy_ulonglong); > > > > > } >} ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_contig_cast_ulonglong_to_long( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ > > > > npy_ulonglong src_value; > > > > > npy_long dst_value; > > > > > while (N--) { ># 790 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(&src_value, src, sizeof(src_value)); ># 812 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst_value = ((npy_long)src_value); ># 826 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(dst, &dst_value, sizeof(dst_value)); > > > > dst += sizeof(npy_long); > src += sizeof(npy_ulonglong); > > > > > } >} ># 691 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_aligned_cast_ulonglong_to_longlong( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ ># 781 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > while (N--) { ># 814 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > *(npy_longlong *)dst = ((npy_longlong)*(npy_ulonglong *)src); ># 833 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst += dst_stride; > src += src_stride; > > } >} ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_cast_ulonglong_to_longlong( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ > > > > npy_ulonglong src_value; > > > > > npy_longlong dst_value; > > > > > while (N--) { ># 790 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(&src_value, src, sizeof(src_value)); ># 812 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst_value = ((npy_longlong)src_value); ># 826 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(dst, &dst_value, sizeof(dst_value)); > > > > > > > dst += dst_stride; > src += src_stride; > > } >} ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_aligned_contig_cast_ulonglong_to_longlong( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ ># 781 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > while (N--) { ># 814 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > *(npy_longlong *)dst = ((npy_longlong)*(npy_ulonglong *)src); ># 830 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst += sizeof(npy_longlong); > src += sizeof(npy_ulonglong); > > > > > } >} ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_contig_cast_ulonglong_to_longlong( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ > > > > npy_ulonglong src_value; > > > > > npy_longlong dst_value; > > > > > while (N--) { ># 790 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(&src_value, src, sizeof(src_value)); ># 812 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst_value = ((npy_longlong)src_value); ># 826 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(dst, &dst_value, sizeof(dst_value)); > > > > dst += sizeof(npy_longlong); > src += sizeof(npy_ulonglong); > > > > > } >} ># 691 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_aligned_cast_ulonglong_to_half( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ ># 781 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > while (N--) { ># 814 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > *(npy_half *)dst = npy_float_to_half((float)*(npy_ulonglong *)src); ># 833 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst += dst_stride; > src += src_stride; > > } >} ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_cast_ulonglong_to_half( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ > > > > npy_ulonglong src_value; > > > > > npy_half dst_value; > > > > > while (N--) { ># 790 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(&src_value, src, sizeof(src_value)); ># 812 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst_value = npy_float_to_half((float)src_value); ># 826 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(dst, &dst_value, sizeof(dst_value)); > > > > > > > dst += dst_stride; > src += src_stride; > > } >} ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_aligned_contig_cast_ulonglong_to_half( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ ># 781 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > while (N--) { ># 814 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > *(npy_half *)dst = npy_float_to_half((float)*(npy_ulonglong *)src); ># 830 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst += sizeof(npy_half); > src += sizeof(npy_ulonglong); > > > > > } >} ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_contig_cast_ulonglong_to_half( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ > > > > npy_ulonglong src_value; > > > > > npy_half dst_value; > > > > > while (N--) { ># 790 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(&src_value, src, sizeof(src_value)); ># 812 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst_value = npy_float_to_half((float)src_value); ># 826 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(dst, &dst_value, sizeof(dst_value)); > > > > dst += sizeof(npy_half); > src += sizeof(npy_ulonglong); > > > > > } >} ># 691 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_aligned_cast_ulonglong_to_float( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ ># 781 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > while (N--) { ># 814 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > *(npy_float *)dst = ((npy_float)*(npy_ulonglong *)src); ># 833 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst += dst_stride; > src += src_stride; > > } >} ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_cast_ulonglong_to_float( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ > > > > npy_ulonglong src_value; > > > > > npy_float dst_value; > > > > > while (N--) { ># 790 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(&src_value, src, sizeof(src_value)); ># 812 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst_value = ((npy_float)src_value); ># 826 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(dst, &dst_value, sizeof(dst_value)); > > > > > > > dst += dst_stride; > src += src_stride; > > } >} ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_aligned_contig_cast_ulonglong_to_float( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ ># 781 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > while (N--) { ># 814 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > *(npy_float *)dst = ((npy_float)*(npy_ulonglong *)src); ># 830 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst += sizeof(npy_float); > src += sizeof(npy_ulonglong); > > > > > } >} ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_contig_cast_ulonglong_to_float( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ > > > > npy_ulonglong src_value; > > > > > npy_float dst_value; > > > > > while (N--) { ># 790 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(&src_value, src, sizeof(src_value)); ># 812 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst_value = ((npy_float)src_value); ># 826 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(dst, &dst_value, sizeof(dst_value)); > > > > dst += sizeof(npy_float); > src += sizeof(npy_ulonglong); > > > > > } >} ># 691 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_aligned_cast_ulonglong_to_double( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ ># 781 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > while (N--) { ># 814 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > *(npy_double *)dst = ((npy_double)*(npy_ulonglong *)src); ># 833 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst += dst_stride; > src += src_stride; > > } >} ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_cast_ulonglong_to_double( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ > > > > npy_ulonglong src_value; > > > > > npy_double dst_value; > > > > > while (N--) { ># 790 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(&src_value, src, sizeof(src_value)); ># 812 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst_value = ((npy_double)src_value); ># 826 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(dst, &dst_value, sizeof(dst_value)); > > > > > > > dst += dst_stride; > src += src_stride; > > } >} ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_aligned_contig_cast_ulonglong_to_double( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ ># 781 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > while (N--) { ># 814 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > *(npy_double *)dst = ((npy_double)*(npy_ulonglong *)src); ># 830 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst += sizeof(npy_double); > src += sizeof(npy_ulonglong); > > > > > } >} ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_contig_cast_ulonglong_to_double( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ > > > > npy_ulonglong src_value; > > > > > npy_double dst_value; > > > > > while (N--) { ># 790 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(&src_value, src, sizeof(src_value)); ># 812 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst_value = ((npy_double)src_value); ># 826 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(dst, &dst_value, sizeof(dst_value)); > > > > dst += sizeof(npy_double); > src += sizeof(npy_ulonglong); > > > > > } >} ># 691 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_aligned_cast_ulonglong_to_longdouble( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ ># 781 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > while (N--) { ># 814 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > *(npy_longdouble *)dst = ((npy_longdouble)*(npy_ulonglong *)src); ># 833 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst += dst_stride; > src += src_stride; > > } >} ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_cast_ulonglong_to_longdouble( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ > > > > npy_ulonglong src_value; > > > > > npy_longdouble dst_value; > > > > > while (N--) { ># 790 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(&src_value, src, sizeof(src_value)); ># 812 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst_value = ((npy_longdouble)src_value); ># 826 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(dst, &dst_value, sizeof(dst_value)); > > > > > > > dst += dst_stride; > src += src_stride; > > } >} ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_aligned_contig_cast_ulonglong_to_longdouble( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ ># 781 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > while (N--) { ># 814 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > *(npy_longdouble *)dst = ((npy_longdouble)*(npy_ulonglong *)src); ># 830 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst += sizeof(npy_longdouble); > src += sizeof(npy_ulonglong); > > > > > } >} ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_contig_cast_ulonglong_to_longdouble( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ > > > > npy_ulonglong src_value; > > > > > npy_longdouble dst_value; > > > > > while (N--) { ># 790 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(&src_value, src, sizeof(src_value)); ># 812 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst_value = ((npy_longdouble)src_value); ># 826 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(dst, &dst_value, sizeof(dst_value)); > > > > dst += sizeof(npy_longdouble); > src += sizeof(npy_ulonglong); > > > > > } >} ># 691 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_aligned_cast_ulonglong_to_cfloat( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ > > > > > > > npy_float dst_value[2]; > > > > > > > while (N--) { ># 808 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst_value[0] = ((npy_float)*(npy_ulonglong *)src); > > dst_value[1] = 0; ># 820 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > ((npy_float *)dst)[0] = dst_value[0]; > ((npy_float *)dst)[1] = dst_value[1]; ># 833 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst += dst_stride; > src += src_stride; > > } >} ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_cast_ulonglong_to_cfloat( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ > > > > npy_ulonglong src_value; > > > npy_float dst_value[2]; > > > > > > > while (N--) { ># 790 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(&src_value, src, sizeof(src_value)); ># 806 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst_value[0] = ((npy_float)src_value); > > > > dst_value[1] = 0; ># 826 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(dst, &dst_value, sizeof(dst_value)); > > > > > > > dst += dst_stride; > src += src_stride; > > } >} ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_aligned_contig_cast_ulonglong_to_cfloat( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ > > > > > > > npy_float dst_value[2]; > > > > > > > while (N--) { ># 808 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst_value[0] = ((npy_float)*(npy_ulonglong *)src); > > dst_value[1] = 0; ># 820 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > ((npy_float *)dst)[0] = dst_value[0]; > ((npy_float *)dst)[1] = dst_value[1]; ># 830 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst += sizeof(npy_cfloat); > src += sizeof(npy_ulonglong); > > > > > } >} ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_contig_cast_ulonglong_to_cfloat( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ > > > > npy_ulonglong src_value; > > > npy_float dst_value[2]; > > > > > > > while (N--) { ># 790 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(&src_value, src, sizeof(src_value)); ># 806 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst_value[0] = ((npy_float)src_value); > > > > dst_value[1] = 0; ># 826 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(dst, &dst_value, sizeof(dst_value)); > > > > dst += sizeof(npy_cfloat); > src += sizeof(npy_ulonglong); > > > > > } >} ># 691 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_aligned_cast_ulonglong_to_cdouble( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ > > > > > > > npy_double dst_value[2]; > > > > > > > while (N--) { ># 808 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst_value[0] = ((npy_double)*(npy_ulonglong *)src); > > dst_value[1] = 0; ># 820 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > ((npy_double *)dst)[0] = dst_value[0]; > ((npy_double *)dst)[1] = dst_value[1]; ># 833 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst += dst_stride; > src += src_stride; > > } >} ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_cast_ulonglong_to_cdouble( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ > > > > npy_ulonglong src_value; > > > npy_double dst_value[2]; > > > > > > > while (N--) { ># 790 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(&src_value, src, sizeof(src_value)); ># 806 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst_value[0] = ((npy_double)src_value); > > > > dst_value[1] = 0; ># 826 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(dst, &dst_value, sizeof(dst_value)); > > > > > > > dst += dst_stride; > src += src_stride; > > } >} ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_aligned_contig_cast_ulonglong_to_cdouble( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ > > > > > > > npy_double dst_value[2]; > > > > > > > while (N--) { ># 808 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst_value[0] = ((npy_double)*(npy_ulonglong *)src); > > dst_value[1] = 0; ># 820 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > ((npy_double *)dst)[0] = dst_value[0]; > ((npy_double *)dst)[1] = dst_value[1]; ># 830 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst += sizeof(npy_cdouble); > src += sizeof(npy_ulonglong); > > > > > } >} ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_contig_cast_ulonglong_to_cdouble( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ > > > > npy_ulonglong src_value; > > > npy_double dst_value[2]; > > > > > > > while (N--) { ># 790 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(&src_value, src, sizeof(src_value)); ># 806 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst_value[0] = ((npy_double)src_value); > > > > dst_value[1] = 0; ># 826 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(dst, &dst_value, sizeof(dst_value)); > > > > dst += sizeof(npy_cdouble); > src += sizeof(npy_ulonglong); > > > > > } >} ># 691 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_aligned_cast_ulonglong_to_clongdouble( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ > > > > > > > npy_longdouble dst_value[2]; > > > > > > > while (N--) { ># 808 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst_value[0] = ((npy_longdouble)*(npy_ulonglong *)src); > > dst_value[1] = 0; ># 820 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > ((npy_longdouble *)dst)[0] = dst_value[0]; > ((npy_longdouble *)dst)[1] = dst_value[1]; ># 833 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst += dst_stride; > src += src_stride; > > } >} ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_cast_ulonglong_to_clongdouble( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ > > > > npy_ulonglong src_value; > > > npy_longdouble dst_value[2]; > > > > > > > while (N--) { ># 790 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(&src_value, src, sizeof(src_value)); ># 806 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst_value[0] = ((npy_longdouble)src_value); > > > > dst_value[1] = 0; ># 826 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(dst, &dst_value, sizeof(dst_value)); > > > > > > > dst += dst_stride; > src += src_stride; > > } >} ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_aligned_contig_cast_ulonglong_to_clongdouble( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ > > > > > > > npy_longdouble dst_value[2]; > > > > > > > while (N--) { ># 808 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst_value[0] = ((npy_longdouble)*(npy_ulonglong *)src); > > dst_value[1] = 0; ># 820 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > ((npy_longdouble *)dst)[0] = dst_value[0]; > ((npy_longdouble *)dst)[1] = dst_value[1]; ># 830 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst += sizeof(npy_clongdouble); > src += sizeof(npy_ulonglong); > > > > > } >} ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_contig_cast_ulonglong_to_clongdouble( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ > > > > npy_ulonglong src_value; > > > npy_longdouble dst_value[2]; > > > > > > > while (N--) { ># 790 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(&src_value, src, sizeof(src_value)); ># 806 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst_value[0] = ((npy_longdouble)src_value); > > > > dst_value[1] = 0; ># 826 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(dst, &dst_value, sizeof(dst_value)); > > > > dst += sizeof(npy_clongdouble); > src += sizeof(npy_ulonglong); > > > > > } >} ># 667 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 691 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_aligned_cast_byte_to_bool( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ ># 781 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > while (N--) { ># 814 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > *(npy_bool *)dst = ((npy_bool)(*(npy_byte *)src != 0)); ># 833 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst += dst_stride; > src += src_stride; > > } >} ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_cast_byte_to_bool( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ > > > > npy_byte src_value; > > > > > npy_bool dst_value; > > > > > while (N--) { ># 790 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(&src_value, src, sizeof(src_value)); ># 812 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst_value = ((npy_bool)(src_value != 0)); ># 826 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(dst, &dst_value, sizeof(dst_value)); > > > > > > > dst += dst_stride; > src += src_stride; > > } >} ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_aligned_contig_cast_byte_to_bool( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ ># 781 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > while (N--) { ># 814 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > *(npy_bool *)dst = ((npy_bool)(*(npy_byte *)src != 0)); ># 830 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst += sizeof(npy_bool); > src += sizeof(npy_byte); > > > > > } >} ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_contig_cast_byte_to_bool( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ > > > > npy_byte src_value; > > > > > npy_bool dst_value; > > > > > while (N--) { ># 790 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(&src_value, src, sizeof(src_value)); ># 812 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst_value = ((npy_bool)(src_value != 0)); ># 826 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(dst, &dst_value, sizeof(dst_value)); > > > > dst += sizeof(npy_bool); > src += sizeof(npy_byte); > > > > > } >} ># 691 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_aligned_cast_byte_to_ubyte( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ ># 781 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > while (N--) { ># 814 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > *(npy_ubyte *)dst = ((npy_ubyte)*(npy_byte *)src); ># 833 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst += dst_stride; > src += src_stride; > > } >} ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_cast_byte_to_ubyte( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ > > > > npy_byte src_value; > > > > > npy_ubyte dst_value; > > > > > while (N--) { ># 790 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(&src_value, src, sizeof(src_value)); ># 812 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst_value = ((npy_ubyte)src_value); ># 826 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(dst, &dst_value, sizeof(dst_value)); > > > > > > > dst += dst_stride; > src += src_stride; > > } >} ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_aligned_contig_cast_byte_to_ubyte( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ ># 781 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > while (N--) { ># 814 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > *(npy_ubyte *)dst = ((npy_ubyte)*(npy_byte *)src); ># 830 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst += sizeof(npy_ubyte); > src += sizeof(npy_byte); > > > > > } >} ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_contig_cast_byte_to_ubyte( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ > > > > npy_byte src_value; > > > > > npy_ubyte dst_value; > > > > > while (N--) { ># 790 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(&src_value, src, sizeof(src_value)); ># 812 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst_value = ((npy_ubyte)src_value); ># 826 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(dst, &dst_value, sizeof(dst_value)); > > > > dst += sizeof(npy_ubyte); > src += sizeof(npy_byte); > > > > > } >} ># 691 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_aligned_cast_byte_to_ushort( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ ># 781 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > while (N--) { ># 814 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > *(npy_ushort *)dst = ((npy_ushort)*(npy_byte *)src); ># 833 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst += dst_stride; > src += src_stride; > > } >} ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_cast_byte_to_ushort( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ > > > > npy_byte src_value; > > > > > npy_ushort dst_value; > > > > > while (N--) { ># 790 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(&src_value, src, sizeof(src_value)); ># 812 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst_value = ((npy_ushort)src_value); ># 826 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(dst, &dst_value, sizeof(dst_value)); > > > > > > > dst += dst_stride; > src += src_stride; > > } >} ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_aligned_contig_cast_byte_to_ushort( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ ># 781 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > while (N--) { ># 814 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > *(npy_ushort *)dst = ((npy_ushort)*(npy_byte *)src); ># 830 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst += sizeof(npy_ushort); > src += sizeof(npy_byte); > > > > > } >} ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_contig_cast_byte_to_ushort( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ > > > > npy_byte src_value; > > > > > npy_ushort dst_value; > > > > > while (N--) { ># 790 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(&src_value, src, sizeof(src_value)); ># 812 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst_value = ((npy_ushort)src_value); ># 826 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(dst, &dst_value, sizeof(dst_value)); > > > > dst += sizeof(npy_ushort); > src += sizeof(npy_byte); > > > > > } >} ># 691 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_aligned_cast_byte_to_uint( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ ># 781 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > while (N--) { ># 814 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > *(npy_uint *)dst = ((npy_uint)*(npy_byte *)src); ># 833 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst += dst_stride; > src += src_stride; > > } >} ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_cast_byte_to_uint( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ > > > > npy_byte src_value; > > > > > npy_uint dst_value; > > > > > while (N--) { ># 790 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(&src_value, src, sizeof(src_value)); ># 812 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst_value = ((npy_uint)src_value); ># 826 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(dst, &dst_value, sizeof(dst_value)); > > > > > > > dst += dst_stride; > src += src_stride; > > } >} ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_aligned_contig_cast_byte_to_uint( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ ># 781 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > while (N--) { ># 814 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > *(npy_uint *)dst = ((npy_uint)*(npy_byte *)src); ># 830 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst += sizeof(npy_uint); > src += sizeof(npy_byte); > > > > > } >} ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_contig_cast_byte_to_uint( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ > > > > npy_byte src_value; > > > > > npy_uint dst_value; > > > > > while (N--) { ># 790 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(&src_value, src, sizeof(src_value)); ># 812 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst_value = ((npy_uint)src_value); ># 826 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(dst, &dst_value, sizeof(dst_value)); > > > > dst += sizeof(npy_uint); > src += sizeof(npy_byte); > > > > > } >} ># 691 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_aligned_cast_byte_to_ulong( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ ># 781 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > while (N--) { ># 814 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > *(npy_ulong *)dst = ((npy_ulong)*(npy_byte *)src); ># 833 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst += dst_stride; > src += src_stride; > > } >} ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_cast_byte_to_ulong( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ > > > > npy_byte src_value; > > > > > npy_ulong dst_value; > > > > > while (N--) { ># 790 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(&src_value, src, sizeof(src_value)); ># 812 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst_value = ((npy_ulong)src_value); ># 826 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(dst, &dst_value, sizeof(dst_value)); > > > > > > > dst += dst_stride; > src += src_stride; > > } >} ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_aligned_contig_cast_byte_to_ulong( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ ># 781 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > while (N--) { ># 814 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > *(npy_ulong *)dst = ((npy_ulong)*(npy_byte *)src); ># 830 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst += sizeof(npy_ulong); > src += sizeof(npy_byte); > > > > > } >} ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_contig_cast_byte_to_ulong( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ > > > > npy_byte src_value; > > > > > npy_ulong dst_value; > > > > > while (N--) { ># 790 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(&src_value, src, sizeof(src_value)); ># 812 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst_value = ((npy_ulong)src_value); ># 826 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(dst, &dst_value, sizeof(dst_value)); > > > > dst += sizeof(npy_ulong); > src += sizeof(npy_byte); > > > > > } >} ># 691 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_aligned_cast_byte_to_ulonglong( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ ># 781 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > while (N--) { ># 814 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > *(npy_ulonglong *)dst = ((npy_ulonglong)*(npy_byte *)src); ># 833 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst += dst_stride; > src += src_stride; > > } >} ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_cast_byte_to_ulonglong( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ > > > > npy_byte src_value; > > > > > npy_ulonglong dst_value; > > > > > while (N--) { ># 790 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(&src_value, src, sizeof(src_value)); ># 812 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst_value = ((npy_ulonglong)src_value); ># 826 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(dst, &dst_value, sizeof(dst_value)); > > > > > > > dst += dst_stride; > src += src_stride; > > } >} ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_aligned_contig_cast_byte_to_ulonglong( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ ># 781 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > while (N--) { ># 814 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > *(npy_ulonglong *)dst = ((npy_ulonglong)*(npy_byte *)src); ># 830 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst += sizeof(npy_ulonglong); > src += sizeof(npy_byte); > > > > > } >} ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_contig_cast_byte_to_ulonglong( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ > > > > npy_byte src_value; > > > > > npy_ulonglong dst_value; > > > > > while (N--) { ># 790 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(&src_value, src, sizeof(src_value)); ># 812 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst_value = ((npy_ulonglong)src_value); ># 826 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(dst, &dst_value, sizeof(dst_value)); > > > > dst += sizeof(npy_ulonglong); > src += sizeof(npy_byte); > > > > > } >} ># 691 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_aligned_cast_byte_to_byte( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ ># 781 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > while (N--) { ># 814 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > *(npy_byte *)dst = ((npy_byte)*(npy_byte *)src); ># 833 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst += dst_stride; > src += src_stride; > > } >} ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_cast_byte_to_byte( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ > > > > npy_byte src_value; > > > > > npy_byte dst_value; > > > > > while (N--) { ># 790 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(&src_value, src, sizeof(src_value)); ># 812 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst_value = ((npy_byte)src_value); ># 826 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(dst, &dst_value, sizeof(dst_value)); > > > > > > > dst += dst_stride; > src += src_stride; > > } >} ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_aligned_contig_cast_byte_to_byte( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ ># 781 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > while (N--) { ># 814 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > *(npy_byte *)dst = ((npy_byte)*(npy_byte *)src); ># 830 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst += sizeof(npy_byte); > src += sizeof(npy_byte); > > > > > } >} ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_contig_cast_byte_to_byte( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ > > > > npy_byte src_value; > > > > > npy_byte dst_value; > > > > > while (N--) { ># 790 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(&src_value, src, sizeof(src_value)); ># 812 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst_value = ((npy_byte)src_value); ># 826 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(dst, &dst_value, sizeof(dst_value)); > > > > dst += sizeof(npy_byte); > src += sizeof(npy_byte); > > > > > } >} ># 691 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_aligned_cast_byte_to_short( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ ># 781 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > while (N--) { ># 814 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > *(npy_short *)dst = ((npy_short)*(npy_byte *)src); ># 833 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst += dst_stride; > src += src_stride; > > } >} ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_cast_byte_to_short( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ > > > > npy_byte src_value; > > > > > npy_short dst_value; > > > > > while (N--) { ># 790 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(&src_value, src, sizeof(src_value)); ># 812 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst_value = ((npy_short)src_value); ># 826 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(dst, &dst_value, sizeof(dst_value)); > > > > > > > dst += dst_stride; > src += src_stride; > > } >} ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_aligned_contig_cast_byte_to_short( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ ># 781 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > while (N--) { ># 814 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > *(npy_short *)dst = ((npy_short)*(npy_byte *)src); ># 830 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst += sizeof(npy_short); > src += sizeof(npy_byte); > > > > > } >} ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_contig_cast_byte_to_short( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ > > > > npy_byte src_value; > > > > > npy_short dst_value; > > > > > while (N--) { ># 790 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(&src_value, src, sizeof(src_value)); ># 812 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst_value = ((npy_short)src_value); ># 826 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(dst, &dst_value, sizeof(dst_value)); > > > > dst += sizeof(npy_short); > src += sizeof(npy_byte); > > > > > } >} ># 691 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_aligned_cast_byte_to_int( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ ># 781 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > while (N--) { ># 814 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > *(npy_int *)dst = ((npy_int)*(npy_byte *)src); ># 833 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst += dst_stride; > src += src_stride; > > } >} ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_cast_byte_to_int( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ > > > > npy_byte src_value; > > > > > npy_int dst_value; > > > > > while (N--) { ># 790 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(&src_value, src, sizeof(src_value)); ># 812 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst_value = ((npy_int)src_value); ># 826 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(dst, &dst_value, sizeof(dst_value)); > > > > > > > dst += dst_stride; > src += src_stride; > > } >} ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_aligned_contig_cast_byte_to_int( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ ># 781 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > while (N--) { ># 814 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > *(npy_int *)dst = ((npy_int)*(npy_byte *)src); ># 830 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst += sizeof(npy_int); > src += sizeof(npy_byte); > > > > > } >} ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_contig_cast_byte_to_int( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ > > > > npy_byte src_value; > > > > > npy_int dst_value; > > > > > while (N--) { ># 790 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(&src_value, src, sizeof(src_value)); ># 812 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst_value = ((npy_int)src_value); ># 826 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(dst, &dst_value, sizeof(dst_value)); > > > > dst += sizeof(npy_int); > src += sizeof(npy_byte); > > > > > } >} ># 691 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_aligned_cast_byte_to_long( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ ># 781 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > while (N--) { ># 814 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > *(npy_long *)dst = ((npy_long)*(npy_byte *)src); ># 833 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst += dst_stride; > src += src_stride; > > } >} ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_cast_byte_to_long( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ > > > > npy_byte src_value; > > > > > npy_long dst_value; > > > > > while (N--) { ># 790 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(&src_value, src, sizeof(src_value)); ># 812 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst_value = ((npy_long)src_value); ># 826 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(dst, &dst_value, sizeof(dst_value)); > > > > > > > dst += dst_stride; > src += src_stride; > > } >} ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_aligned_contig_cast_byte_to_long( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ ># 781 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > while (N--) { ># 814 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > *(npy_long *)dst = ((npy_long)*(npy_byte *)src); ># 830 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst += sizeof(npy_long); > src += sizeof(npy_byte); > > > > > } >} ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_contig_cast_byte_to_long( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ > > > > npy_byte src_value; > > > > > npy_long dst_value; > > > > > while (N--) { ># 790 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(&src_value, src, sizeof(src_value)); ># 812 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst_value = ((npy_long)src_value); ># 826 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(dst, &dst_value, sizeof(dst_value)); > > > > dst += sizeof(npy_long); > src += sizeof(npy_byte); > > > > > } >} ># 691 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_aligned_cast_byte_to_longlong( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ ># 781 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > while (N--) { ># 814 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > *(npy_longlong *)dst = ((npy_longlong)*(npy_byte *)src); ># 833 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst += dst_stride; > src += src_stride; > > } >} ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_cast_byte_to_longlong( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ > > > > npy_byte src_value; > > > > > npy_longlong dst_value; > > > > > while (N--) { ># 790 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(&src_value, src, sizeof(src_value)); ># 812 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst_value = ((npy_longlong)src_value); ># 826 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(dst, &dst_value, sizeof(dst_value)); > > > > > > > dst += dst_stride; > src += src_stride; > > } >} ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_aligned_contig_cast_byte_to_longlong( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ ># 781 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > while (N--) { ># 814 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > *(npy_longlong *)dst = ((npy_longlong)*(npy_byte *)src); ># 830 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst += sizeof(npy_longlong); > src += sizeof(npy_byte); > > > > > } >} ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_contig_cast_byte_to_longlong( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ > > > > npy_byte src_value; > > > > > npy_longlong dst_value; > > > > > while (N--) { ># 790 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(&src_value, src, sizeof(src_value)); ># 812 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst_value = ((npy_longlong)src_value); ># 826 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(dst, &dst_value, sizeof(dst_value)); > > > > dst += sizeof(npy_longlong); > src += sizeof(npy_byte); > > > > > } >} ># 691 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_aligned_cast_byte_to_half( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ ># 781 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > while (N--) { ># 814 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > *(npy_half *)dst = npy_float_to_half((float)*(npy_byte *)src); ># 833 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst += dst_stride; > src += src_stride; > > } >} ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_cast_byte_to_half( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ > > > > npy_byte src_value; > > > > > npy_half dst_value; > > > > > while (N--) { ># 790 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(&src_value, src, sizeof(src_value)); ># 812 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst_value = npy_float_to_half((float)src_value); ># 826 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(dst, &dst_value, sizeof(dst_value)); > > > > > > > dst += dst_stride; > src += src_stride; > > } >} ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_aligned_contig_cast_byte_to_half( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ ># 781 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > while (N--) { ># 814 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > *(npy_half *)dst = npy_float_to_half((float)*(npy_byte *)src); ># 830 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst += sizeof(npy_half); > src += sizeof(npy_byte); > > > > > } >} ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_contig_cast_byte_to_half( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ > > > > npy_byte src_value; > > > > > npy_half dst_value; > > > > > while (N--) { ># 790 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(&src_value, src, sizeof(src_value)); ># 812 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst_value = npy_float_to_half((float)src_value); ># 826 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(dst, &dst_value, sizeof(dst_value)); > > > > dst += sizeof(npy_half); > src += sizeof(npy_byte); > > > > > } >} ># 691 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_aligned_cast_byte_to_float( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ ># 781 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > while (N--) { ># 814 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > *(npy_float *)dst = ((npy_float)*(npy_byte *)src); ># 833 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst += dst_stride; > src += src_stride; > > } >} ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_cast_byte_to_float( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ > > > > npy_byte src_value; > > > > > npy_float dst_value; > > > > > while (N--) { ># 790 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(&src_value, src, sizeof(src_value)); ># 812 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst_value = ((npy_float)src_value); ># 826 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(dst, &dst_value, sizeof(dst_value)); > > > > > > > dst += dst_stride; > src += src_stride; > > } >} ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_aligned_contig_cast_byte_to_float( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ ># 781 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > while (N--) { ># 814 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > *(npy_float *)dst = ((npy_float)*(npy_byte *)src); ># 830 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst += sizeof(npy_float); > src += sizeof(npy_byte); > > > > > } >} ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_contig_cast_byte_to_float( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ > > > > npy_byte src_value; > > > > > npy_float dst_value; > > > > > while (N--) { ># 790 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(&src_value, src, sizeof(src_value)); ># 812 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst_value = ((npy_float)src_value); ># 826 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(dst, &dst_value, sizeof(dst_value)); > > > > dst += sizeof(npy_float); > src += sizeof(npy_byte); > > > > > } >} ># 691 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_aligned_cast_byte_to_double( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ ># 781 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > while (N--) { ># 814 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > *(npy_double *)dst = ((npy_double)*(npy_byte *)src); ># 833 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst += dst_stride; > src += src_stride; > > } >} ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_cast_byte_to_double( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ > > > > npy_byte src_value; > > > > > npy_double dst_value; > > > > > while (N--) { ># 790 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(&src_value, src, sizeof(src_value)); ># 812 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst_value = ((npy_double)src_value); ># 826 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(dst, &dst_value, sizeof(dst_value)); > > > > > > > dst += dst_stride; > src += src_stride; > > } >} ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_aligned_contig_cast_byte_to_double( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ ># 781 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > while (N--) { ># 814 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > *(npy_double *)dst = ((npy_double)*(npy_byte *)src); ># 830 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst += sizeof(npy_double); > src += sizeof(npy_byte); > > > > > } >} ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_contig_cast_byte_to_double( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ > > > > npy_byte src_value; > > > > > npy_double dst_value; > > > > > while (N--) { ># 790 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(&src_value, src, sizeof(src_value)); ># 812 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst_value = ((npy_double)src_value); ># 826 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(dst, &dst_value, sizeof(dst_value)); > > > > dst += sizeof(npy_double); > src += sizeof(npy_byte); > > > > > } >} ># 691 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_aligned_cast_byte_to_longdouble( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ ># 781 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > while (N--) { ># 814 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > *(npy_longdouble *)dst = ((npy_longdouble)*(npy_byte *)src); ># 833 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst += dst_stride; > src += src_stride; > > } >} ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_cast_byte_to_longdouble( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ > > > > npy_byte src_value; > > > > > npy_longdouble dst_value; > > > > > while (N--) { ># 790 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(&src_value, src, sizeof(src_value)); ># 812 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst_value = ((npy_longdouble)src_value); ># 826 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(dst, &dst_value, sizeof(dst_value)); > > > > > > > dst += dst_stride; > src += src_stride; > > } >} ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_aligned_contig_cast_byte_to_longdouble( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ ># 781 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > while (N--) { ># 814 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > *(npy_longdouble *)dst = ((npy_longdouble)*(npy_byte *)src); ># 830 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst += sizeof(npy_longdouble); > src += sizeof(npy_byte); > > > > > } >} ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_contig_cast_byte_to_longdouble( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ > > > > npy_byte src_value; > > > > > npy_longdouble dst_value; > > > > > while (N--) { ># 790 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(&src_value, src, sizeof(src_value)); ># 812 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst_value = ((npy_longdouble)src_value); ># 826 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(dst, &dst_value, sizeof(dst_value)); > > > > dst += sizeof(npy_longdouble); > src += sizeof(npy_byte); > > > > > } >} ># 691 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_aligned_cast_byte_to_cfloat( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ > > > > > > > npy_float dst_value[2]; > > > > > > > while (N--) { ># 808 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst_value[0] = ((npy_float)*(npy_byte *)src); > > dst_value[1] = 0; ># 820 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > ((npy_float *)dst)[0] = dst_value[0]; > ((npy_float *)dst)[1] = dst_value[1]; ># 833 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst += dst_stride; > src += src_stride; > > } >} ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_cast_byte_to_cfloat( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ > > > > npy_byte src_value; > > > npy_float dst_value[2]; > > > > > > > while (N--) { ># 790 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(&src_value, src, sizeof(src_value)); ># 806 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst_value[0] = ((npy_float)src_value); > > > > dst_value[1] = 0; ># 826 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(dst, &dst_value, sizeof(dst_value)); > > > > > > > dst += dst_stride; > src += src_stride; > > } >} ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_aligned_contig_cast_byte_to_cfloat( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ > > > > > > > npy_float dst_value[2]; > > > > > > > while (N--) { ># 808 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst_value[0] = ((npy_float)*(npy_byte *)src); > > dst_value[1] = 0; ># 820 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > ((npy_float *)dst)[0] = dst_value[0]; > ((npy_float *)dst)[1] = dst_value[1]; ># 830 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst += sizeof(npy_cfloat); > src += sizeof(npy_byte); > > > > > } >} ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_contig_cast_byte_to_cfloat( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ > > > > npy_byte src_value; > > > npy_float dst_value[2]; > > > > > > > while (N--) { ># 790 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(&src_value, src, sizeof(src_value)); ># 806 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst_value[0] = ((npy_float)src_value); > > > > dst_value[1] = 0; ># 826 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(dst, &dst_value, sizeof(dst_value)); > > > > dst += sizeof(npy_cfloat); > src += sizeof(npy_byte); > > > > > } >} ># 691 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_aligned_cast_byte_to_cdouble( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ > > > > > > > npy_double dst_value[2]; > > > > > > > while (N--) { ># 808 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst_value[0] = ((npy_double)*(npy_byte *)src); > > dst_value[1] = 0; ># 820 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > ((npy_double *)dst)[0] = dst_value[0]; > ((npy_double *)dst)[1] = dst_value[1]; ># 833 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst += dst_stride; > src += src_stride; > > } >} ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_cast_byte_to_cdouble( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ > > > > npy_byte src_value; > > > npy_double dst_value[2]; > > > > > > > while (N--) { ># 790 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(&src_value, src, sizeof(src_value)); ># 806 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst_value[0] = ((npy_double)src_value); > > > > dst_value[1] = 0; ># 826 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(dst, &dst_value, sizeof(dst_value)); > > > > > > > dst += dst_stride; > src += src_stride; > > } >} ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_aligned_contig_cast_byte_to_cdouble( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ > > > > > > > npy_double dst_value[2]; > > > > > > > while (N--) { ># 808 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst_value[0] = ((npy_double)*(npy_byte *)src); > > dst_value[1] = 0; ># 820 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > ((npy_double *)dst)[0] = dst_value[0]; > ((npy_double *)dst)[1] = dst_value[1]; ># 830 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst += sizeof(npy_cdouble); > src += sizeof(npy_byte); > > > > > } >} ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_contig_cast_byte_to_cdouble( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ > > > > npy_byte src_value; > > > npy_double dst_value[2]; > > > > > > > while (N--) { ># 790 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(&src_value, src, sizeof(src_value)); ># 806 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst_value[0] = ((npy_double)src_value); > > > > dst_value[1] = 0; ># 826 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(dst, &dst_value, sizeof(dst_value)); > > > > dst += sizeof(npy_cdouble); > src += sizeof(npy_byte); > > > > > } >} ># 691 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_aligned_cast_byte_to_clongdouble( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ > > > > > > > npy_longdouble dst_value[2]; > > > > > > > while (N--) { ># 808 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst_value[0] = ((npy_longdouble)*(npy_byte *)src); > > dst_value[1] = 0; ># 820 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > ((npy_longdouble *)dst)[0] = dst_value[0]; > ((npy_longdouble *)dst)[1] = dst_value[1]; ># 833 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst += dst_stride; > src += src_stride; > > } >} ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_cast_byte_to_clongdouble( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ > > > > npy_byte src_value; > > > npy_longdouble dst_value[2]; > > > > > > > while (N--) { ># 790 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(&src_value, src, sizeof(src_value)); ># 806 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst_value[0] = ((npy_longdouble)src_value); > > > > dst_value[1] = 0; ># 826 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(dst, &dst_value, sizeof(dst_value)); > > > > > > > dst += dst_stride; > src += src_stride; > > } >} ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_aligned_contig_cast_byte_to_clongdouble( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ > > > > > > > npy_longdouble dst_value[2]; > > > > > > > while (N--) { ># 808 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst_value[0] = ((npy_longdouble)*(npy_byte *)src); > > dst_value[1] = 0; ># 820 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > ((npy_longdouble *)dst)[0] = dst_value[0]; > ((npy_longdouble *)dst)[1] = dst_value[1]; ># 830 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst += sizeof(npy_clongdouble); > src += sizeof(npy_byte); > > > > > } >} ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_contig_cast_byte_to_clongdouble( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ > > > > npy_byte src_value; > > > npy_longdouble dst_value[2]; > > > > > > > while (N--) { ># 790 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(&src_value, src, sizeof(src_value)); ># 806 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst_value[0] = ((npy_longdouble)src_value); > > > > dst_value[1] = 0; ># 826 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(dst, &dst_value, sizeof(dst_value)); > > > > dst += sizeof(npy_clongdouble); > src += sizeof(npy_byte); > > > > > } >} ># 667 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 691 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_aligned_cast_short_to_bool( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ ># 781 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > while (N--) { ># 814 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > *(npy_bool *)dst = ((npy_bool)(*(npy_short *)src != 0)); ># 833 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst += dst_stride; > src += src_stride; > > } >} ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_cast_short_to_bool( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ > > > > npy_short src_value; > > > > > npy_bool dst_value; > > > > > while (N--) { ># 790 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(&src_value, src, sizeof(src_value)); ># 812 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst_value = ((npy_bool)(src_value != 0)); ># 826 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(dst, &dst_value, sizeof(dst_value)); > > > > > > > dst += dst_stride; > src += src_stride; > > } >} ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_aligned_contig_cast_short_to_bool( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ ># 781 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > while (N--) { ># 814 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > *(npy_bool *)dst = ((npy_bool)(*(npy_short *)src != 0)); ># 830 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst += sizeof(npy_bool); > src += sizeof(npy_short); > > > > > } >} ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_contig_cast_short_to_bool( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ > > > > npy_short src_value; > > > > > npy_bool dst_value; > > > > > while (N--) { ># 790 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(&src_value, src, sizeof(src_value)); ># 812 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst_value = ((npy_bool)(src_value != 0)); ># 826 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(dst, &dst_value, sizeof(dst_value)); > > > > dst += sizeof(npy_bool); > src += sizeof(npy_short); > > > > > } >} ># 691 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_aligned_cast_short_to_ubyte( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ ># 781 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > while (N--) { ># 814 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > *(npy_ubyte *)dst = ((npy_ubyte)*(npy_short *)src); ># 833 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst += dst_stride; > src += src_stride; > > } >} ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_cast_short_to_ubyte( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ > > > > npy_short src_value; > > > > > npy_ubyte dst_value; > > > > > while (N--) { ># 790 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(&src_value, src, sizeof(src_value)); ># 812 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst_value = ((npy_ubyte)src_value); ># 826 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(dst, &dst_value, sizeof(dst_value)); > > > > > > > dst += dst_stride; > src += src_stride; > > } >} ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_aligned_contig_cast_short_to_ubyte( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ ># 781 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > while (N--) { ># 814 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > *(npy_ubyte *)dst = ((npy_ubyte)*(npy_short *)src); ># 830 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst += sizeof(npy_ubyte); > src += sizeof(npy_short); > > > > > } >} ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_contig_cast_short_to_ubyte( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ > > > > npy_short src_value; > > > > > npy_ubyte dst_value; > > > > > while (N--) { ># 790 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(&src_value, src, sizeof(src_value)); ># 812 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst_value = ((npy_ubyte)src_value); ># 826 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(dst, &dst_value, sizeof(dst_value)); > > > > dst += sizeof(npy_ubyte); > src += sizeof(npy_short); > > > > > } >} ># 691 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_aligned_cast_short_to_ushort( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ ># 781 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > while (N--) { ># 814 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > *(npy_ushort *)dst = ((npy_ushort)*(npy_short *)src); ># 833 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst += dst_stride; > src += src_stride; > > } >} ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_cast_short_to_ushort( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ > > > > npy_short src_value; > > > > > npy_ushort dst_value; > > > > > while (N--) { ># 790 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(&src_value, src, sizeof(src_value)); ># 812 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst_value = ((npy_ushort)src_value); ># 826 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(dst, &dst_value, sizeof(dst_value)); > > > > > > > dst += dst_stride; > src += src_stride; > > } >} ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_aligned_contig_cast_short_to_ushort( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ ># 781 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > while (N--) { ># 814 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > *(npy_ushort *)dst = ((npy_ushort)*(npy_short *)src); ># 830 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst += sizeof(npy_ushort); > src += sizeof(npy_short); > > > > > } >} ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_contig_cast_short_to_ushort( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ > > > > npy_short src_value; > > > > > npy_ushort dst_value; > > > > > while (N--) { ># 790 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(&src_value, src, sizeof(src_value)); ># 812 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst_value = ((npy_ushort)src_value); ># 826 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(dst, &dst_value, sizeof(dst_value)); > > > > dst += sizeof(npy_ushort); > src += sizeof(npy_short); > > > > > } >} ># 691 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_aligned_cast_short_to_uint( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ ># 781 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > while (N--) { ># 814 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > *(npy_uint *)dst = ((npy_uint)*(npy_short *)src); ># 833 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst += dst_stride; > src += src_stride; > > } >} ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_cast_short_to_uint( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ > > > > npy_short src_value; > > > > > npy_uint dst_value; > > > > > while (N--) { ># 790 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(&src_value, src, sizeof(src_value)); ># 812 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst_value = ((npy_uint)src_value); ># 826 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(dst, &dst_value, sizeof(dst_value)); > > > > > > > dst += dst_stride; > src += src_stride; > > } >} ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_aligned_contig_cast_short_to_uint( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ ># 781 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > while (N--) { ># 814 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > *(npy_uint *)dst = ((npy_uint)*(npy_short *)src); ># 830 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst += sizeof(npy_uint); > src += sizeof(npy_short); > > > > > } >} ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_contig_cast_short_to_uint( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ > > > > npy_short src_value; > > > > > npy_uint dst_value; > > > > > while (N--) { ># 790 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(&src_value, src, sizeof(src_value)); ># 812 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst_value = ((npy_uint)src_value); ># 826 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(dst, &dst_value, sizeof(dst_value)); > > > > dst += sizeof(npy_uint); > src += sizeof(npy_short); > > > > > } >} ># 691 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_aligned_cast_short_to_ulong( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ ># 781 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > while (N--) { ># 814 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > *(npy_ulong *)dst = ((npy_ulong)*(npy_short *)src); ># 833 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst += dst_stride; > src += src_stride; > > } >} ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_cast_short_to_ulong( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ > > > > npy_short src_value; > > > > > npy_ulong dst_value; > > > > > while (N--) { ># 790 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(&src_value, src, sizeof(src_value)); ># 812 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst_value = ((npy_ulong)src_value); ># 826 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(dst, &dst_value, sizeof(dst_value)); > > > > > > > dst += dst_stride; > src += src_stride; > > } >} ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_aligned_contig_cast_short_to_ulong( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ ># 781 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > while (N--) { ># 814 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > *(npy_ulong *)dst = ((npy_ulong)*(npy_short *)src); ># 830 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst += sizeof(npy_ulong); > src += sizeof(npy_short); > > > > > } >} ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_contig_cast_short_to_ulong( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ > > > > npy_short src_value; > > > > > npy_ulong dst_value; > > > > > while (N--) { ># 790 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(&src_value, src, sizeof(src_value)); ># 812 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst_value = ((npy_ulong)src_value); ># 826 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(dst, &dst_value, sizeof(dst_value)); > > > > dst += sizeof(npy_ulong); > src += sizeof(npy_short); > > > > > } >} ># 691 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_aligned_cast_short_to_ulonglong( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ ># 781 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > while (N--) { ># 814 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > *(npy_ulonglong *)dst = ((npy_ulonglong)*(npy_short *)src); ># 833 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst += dst_stride; > src += src_stride; > > } >} ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_cast_short_to_ulonglong( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ > > > > npy_short src_value; > > > > > npy_ulonglong dst_value; > > > > > while (N--) { ># 790 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(&src_value, src, sizeof(src_value)); ># 812 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst_value = ((npy_ulonglong)src_value); ># 826 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(dst, &dst_value, sizeof(dst_value)); > > > > > > > dst += dst_stride; > src += src_stride; > > } >} ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_aligned_contig_cast_short_to_ulonglong( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ ># 781 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > while (N--) { ># 814 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > *(npy_ulonglong *)dst = ((npy_ulonglong)*(npy_short *)src); ># 830 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst += sizeof(npy_ulonglong); > src += sizeof(npy_short); > > > > > } >} ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_contig_cast_short_to_ulonglong( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ > > > > npy_short src_value; > > > > > npy_ulonglong dst_value; > > > > > while (N--) { ># 790 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(&src_value, src, sizeof(src_value)); ># 812 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst_value = ((npy_ulonglong)src_value); ># 826 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(dst, &dst_value, sizeof(dst_value)); > > > > dst += sizeof(npy_ulonglong); > src += sizeof(npy_short); > > > > > } >} ># 691 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_aligned_cast_short_to_byte( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ ># 781 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > while (N--) { ># 814 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > *(npy_byte *)dst = ((npy_byte)*(npy_short *)src); ># 833 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst += dst_stride; > src += src_stride; > > } >} ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_cast_short_to_byte( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ > > > > npy_short src_value; > > > > > npy_byte dst_value; > > > > > while (N--) { ># 790 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(&src_value, src, sizeof(src_value)); ># 812 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst_value = ((npy_byte)src_value); ># 826 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(dst, &dst_value, sizeof(dst_value)); > > > > > > > dst += dst_stride; > src += src_stride; > > } >} ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_aligned_contig_cast_short_to_byte( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ ># 781 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > while (N--) { ># 814 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > *(npy_byte *)dst = ((npy_byte)*(npy_short *)src); ># 830 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst += sizeof(npy_byte); > src += sizeof(npy_short); > > > > > } >} ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_contig_cast_short_to_byte( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ > > > > npy_short src_value; > > > > > npy_byte dst_value; > > > > > while (N--) { ># 790 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(&src_value, src, sizeof(src_value)); ># 812 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst_value = ((npy_byte)src_value); ># 826 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(dst, &dst_value, sizeof(dst_value)); > > > > dst += sizeof(npy_byte); > src += sizeof(npy_short); > > > > > } >} ># 691 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_aligned_cast_short_to_short( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ ># 781 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > while (N--) { ># 814 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > *(npy_short *)dst = ((npy_short)*(npy_short *)src); ># 833 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst += dst_stride; > src += src_stride; > > } >} ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_cast_short_to_short( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ > > > > npy_short src_value; > > > > > npy_short dst_value; > > > > > while (N--) { ># 790 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(&src_value, src, sizeof(src_value)); ># 812 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst_value = ((npy_short)src_value); ># 826 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(dst, &dst_value, sizeof(dst_value)); > > > > > > > dst += dst_stride; > src += src_stride; > > } >} ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_aligned_contig_cast_short_to_short( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ ># 781 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > while (N--) { ># 814 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > *(npy_short *)dst = ((npy_short)*(npy_short *)src); ># 830 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst += sizeof(npy_short); > src += sizeof(npy_short); > > > > > } >} ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_contig_cast_short_to_short( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ > > > > npy_short src_value; > > > > > npy_short dst_value; > > > > > while (N--) { ># 790 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(&src_value, src, sizeof(src_value)); ># 812 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst_value = ((npy_short)src_value); ># 826 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(dst, &dst_value, sizeof(dst_value)); > > > > dst += sizeof(npy_short); > src += sizeof(npy_short); > > > > > } >} ># 691 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_aligned_cast_short_to_int( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ ># 781 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > while (N--) { ># 814 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > *(npy_int *)dst = ((npy_int)*(npy_short *)src); ># 833 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst += dst_stride; > src += src_stride; > > } >} ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_cast_short_to_int( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ > > > > npy_short src_value; > > > > > npy_int dst_value; > > > > > while (N--) { ># 790 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(&src_value, src, sizeof(src_value)); ># 812 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst_value = ((npy_int)src_value); ># 826 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(dst, &dst_value, sizeof(dst_value)); > > > > > > > dst += dst_stride; > src += src_stride; > > } >} ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_aligned_contig_cast_short_to_int( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ ># 781 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > while (N--) { ># 814 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > *(npy_int *)dst = ((npy_int)*(npy_short *)src); ># 830 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst += sizeof(npy_int); > src += sizeof(npy_short); > > > > > } >} ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_contig_cast_short_to_int( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ > > > > npy_short src_value; > > > > > npy_int dst_value; > > > > > while (N--) { ># 790 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(&src_value, src, sizeof(src_value)); ># 812 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst_value = ((npy_int)src_value); ># 826 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(dst, &dst_value, sizeof(dst_value)); > > > > dst += sizeof(npy_int); > src += sizeof(npy_short); > > > > > } >} ># 691 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_aligned_cast_short_to_long( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ ># 781 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > while (N--) { ># 814 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > *(npy_long *)dst = ((npy_long)*(npy_short *)src); ># 833 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst += dst_stride; > src += src_stride; > > } >} ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_cast_short_to_long( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ > > > > npy_short src_value; > > > > > npy_long dst_value; > > > > > while (N--) { ># 790 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(&src_value, src, sizeof(src_value)); ># 812 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst_value = ((npy_long)src_value); ># 826 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(dst, &dst_value, sizeof(dst_value)); > > > > > > > dst += dst_stride; > src += src_stride; > > } >} ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_aligned_contig_cast_short_to_long( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ ># 781 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > while (N--) { ># 814 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > *(npy_long *)dst = ((npy_long)*(npy_short *)src); ># 830 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst += sizeof(npy_long); > src += sizeof(npy_short); > > > > > } >} ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_contig_cast_short_to_long( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ > > > > npy_short src_value; > > > > > npy_long dst_value; > > > > > while (N--) { ># 790 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(&src_value, src, sizeof(src_value)); ># 812 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst_value = ((npy_long)src_value); ># 826 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(dst, &dst_value, sizeof(dst_value)); > > > > dst += sizeof(npy_long); > src += sizeof(npy_short); > > > > > } >} ># 691 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_aligned_cast_short_to_longlong( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ ># 781 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > while (N--) { ># 814 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > *(npy_longlong *)dst = ((npy_longlong)*(npy_short *)src); ># 833 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst += dst_stride; > src += src_stride; > > } >} ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_cast_short_to_longlong( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ > > > > npy_short src_value; > > > > > npy_longlong dst_value; > > > > > while (N--) { ># 790 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(&src_value, src, sizeof(src_value)); ># 812 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst_value = ((npy_longlong)src_value); ># 826 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(dst, &dst_value, sizeof(dst_value)); > > > > > > > dst += dst_stride; > src += src_stride; > > } >} ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_aligned_contig_cast_short_to_longlong( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ ># 781 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > while (N--) { ># 814 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > *(npy_longlong *)dst = ((npy_longlong)*(npy_short *)src); ># 830 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst += sizeof(npy_longlong); > src += sizeof(npy_short); > > > > > } >} ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_contig_cast_short_to_longlong( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ > > > > npy_short src_value; > > > > > npy_longlong dst_value; > > > > > while (N--) { ># 790 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(&src_value, src, sizeof(src_value)); ># 812 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst_value = ((npy_longlong)src_value); ># 826 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(dst, &dst_value, sizeof(dst_value)); > > > > dst += sizeof(npy_longlong); > src += sizeof(npy_short); > > > > > } >} ># 691 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_aligned_cast_short_to_half( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ ># 781 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > while (N--) { ># 814 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > *(npy_half *)dst = npy_float_to_half((float)*(npy_short *)src); ># 833 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst += dst_stride; > src += src_stride; > > } >} ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_cast_short_to_half( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ > > > > npy_short src_value; > > > > > npy_half dst_value; > > > > > while (N--) { ># 790 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(&src_value, src, sizeof(src_value)); ># 812 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst_value = npy_float_to_half((float)src_value); ># 826 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(dst, &dst_value, sizeof(dst_value)); > > > > > > > dst += dst_stride; > src += src_stride; > > } >} ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_aligned_contig_cast_short_to_half( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ ># 781 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > while (N--) { ># 814 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > *(npy_half *)dst = npy_float_to_half((float)*(npy_short *)src); ># 830 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst += sizeof(npy_half); > src += sizeof(npy_short); > > > > > } >} ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_contig_cast_short_to_half( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ > > > > npy_short src_value; > > > > > npy_half dst_value; > > > > > while (N--) { ># 790 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(&src_value, src, sizeof(src_value)); ># 812 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst_value = npy_float_to_half((float)src_value); ># 826 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(dst, &dst_value, sizeof(dst_value)); > > > > dst += sizeof(npy_half); > src += sizeof(npy_short); > > > > > } >} ># 691 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_aligned_cast_short_to_float( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ ># 781 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > while (N--) { ># 814 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > *(npy_float *)dst = ((npy_float)*(npy_short *)src); ># 833 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst += dst_stride; > src += src_stride; > > } >} ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_cast_short_to_float( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ > > > > npy_short src_value; > > > > > npy_float dst_value; > > > > > while (N--) { ># 790 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(&src_value, src, sizeof(src_value)); ># 812 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst_value = ((npy_float)src_value); ># 826 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(dst, &dst_value, sizeof(dst_value)); > > > > > > > dst += dst_stride; > src += src_stride; > > } >} ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_aligned_contig_cast_short_to_float( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ ># 781 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > while (N--) { ># 814 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > *(npy_float *)dst = ((npy_float)*(npy_short *)src); ># 830 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst += sizeof(npy_float); > src += sizeof(npy_short); > > > > > } >} ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_contig_cast_short_to_float( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ > > > > npy_short src_value; > > > > > npy_float dst_value; > > > > > while (N--) { ># 790 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(&src_value, src, sizeof(src_value)); ># 812 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst_value = ((npy_float)src_value); ># 826 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(dst, &dst_value, sizeof(dst_value)); > > > > dst += sizeof(npy_float); > src += sizeof(npy_short); > > > > > } >} ># 691 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_aligned_cast_short_to_double( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ ># 781 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > while (N--) { ># 814 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > *(npy_double *)dst = ((npy_double)*(npy_short *)src); ># 833 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst += dst_stride; > src += src_stride; > > } >} ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_cast_short_to_double( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ > > > > npy_short src_value; > > > > > npy_double dst_value; > > > > > while (N--) { ># 790 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(&src_value, src, sizeof(src_value)); ># 812 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst_value = ((npy_double)src_value); ># 826 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(dst, &dst_value, sizeof(dst_value)); > > > > > > > dst += dst_stride; > src += src_stride; > > } >} ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_aligned_contig_cast_short_to_double( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ ># 781 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > while (N--) { ># 814 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > *(npy_double *)dst = ((npy_double)*(npy_short *)src); ># 830 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst += sizeof(npy_double); > src += sizeof(npy_short); > > > > > } >} ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_contig_cast_short_to_double( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ > > > > npy_short src_value; > > > > > npy_double dst_value; > > > > > while (N--) { ># 790 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(&src_value, src, sizeof(src_value)); ># 812 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst_value = ((npy_double)src_value); ># 826 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(dst, &dst_value, sizeof(dst_value)); > > > > dst += sizeof(npy_double); > src += sizeof(npy_short); > > > > > } >} ># 691 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_aligned_cast_short_to_longdouble( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ ># 781 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > while (N--) { ># 814 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > *(npy_longdouble *)dst = ((npy_longdouble)*(npy_short *)src); ># 833 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst += dst_stride; > src += src_stride; > > } >} ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_cast_short_to_longdouble( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ > > > > npy_short src_value; > > > > > npy_longdouble dst_value; > > > > > while (N--) { ># 790 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(&src_value, src, sizeof(src_value)); ># 812 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst_value = ((npy_longdouble)src_value); ># 826 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(dst, &dst_value, sizeof(dst_value)); > > > > > > > dst += dst_stride; > src += src_stride; > > } >} ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_aligned_contig_cast_short_to_longdouble( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ ># 781 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > while (N--) { ># 814 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > *(npy_longdouble *)dst = ((npy_longdouble)*(npy_short *)src); ># 830 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst += sizeof(npy_longdouble); > src += sizeof(npy_short); > > > > > } >} ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_contig_cast_short_to_longdouble( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ > > > > npy_short src_value; > > > > > npy_longdouble dst_value; > > > > > while (N--) { ># 790 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(&src_value, src, sizeof(src_value)); ># 812 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst_value = ((npy_longdouble)src_value); ># 826 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(dst, &dst_value, sizeof(dst_value)); > > > > dst += sizeof(npy_longdouble); > src += sizeof(npy_short); > > > > > } >} ># 691 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_aligned_cast_short_to_cfloat( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ > > > > > > > npy_float dst_value[2]; > > > > > > > while (N--) { ># 808 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst_value[0] = ((npy_float)*(npy_short *)src); > > dst_value[1] = 0; ># 820 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > ((npy_float *)dst)[0] = dst_value[0]; > ((npy_float *)dst)[1] = dst_value[1]; ># 833 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst += dst_stride; > src += src_stride; > > } >} ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_cast_short_to_cfloat( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ > > > > npy_short src_value; > > > npy_float dst_value[2]; > > > > > > > while (N--) { ># 790 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(&src_value, src, sizeof(src_value)); ># 806 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst_value[0] = ((npy_float)src_value); > > > > dst_value[1] = 0; ># 826 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(dst, &dst_value, sizeof(dst_value)); > > > > > > > dst += dst_stride; > src += src_stride; > > } >} ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_aligned_contig_cast_short_to_cfloat( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ > > > > > > > npy_float dst_value[2]; > > > > > > > while (N--) { ># 808 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst_value[0] = ((npy_float)*(npy_short *)src); > > dst_value[1] = 0; ># 820 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > ((npy_float *)dst)[0] = dst_value[0]; > ((npy_float *)dst)[1] = dst_value[1]; ># 830 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst += sizeof(npy_cfloat); > src += sizeof(npy_short); > > > > > } >} ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_contig_cast_short_to_cfloat( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ > > > > npy_short src_value; > > > npy_float dst_value[2]; > > > > > > > while (N--) { ># 790 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(&src_value, src, sizeof(src_value)); ># 806 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst_value[0] = ((npy_float)src_value); > > > > dst_value[1] = 0; ># 826 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(dst, &dst_value, sizeof(dst_value)); > > > > dst += sizeof(npy_cfloat); > src += sizeof(npy_short); > > > > > } >} ># 691 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_aligned_cast_short_to_cdouble( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ > > > > > > > npy_double dst_value[2]; > > > > > > > while (N--) { ># 808 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst_value[0] = ((npy_double)*(npy_short *)src); > > dst_value[1] = 0; ># 820 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > ((npy_double *)dst)[0] = dst_value[0]; > ((npy_double *)dst)[1] = dst_value[1]; ># 833 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst += dst_stride; > src += src_stride; > > } >} ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_cast_short_to_cdouble( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ > > > > npy_short src_value; > > > npy_double dst_value[2]; > > > > > > > while (N--) { ># 790 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(&src_value, src, sizeof(src_value)); ># 806 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst_value[0] = ((npy_double)src_value); > > > > dst_value[1] = 0; ># 826 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(dst, &dst_value, sizeof(dst_value)); > > > > > > > dst += dst_stride; > src += src_stride; > > } >} ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_aligned_contig_cast_short_to_cdouble( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ > > > > > > > npy_double dst_value[2]; > > > > > > > while (N--) { ># 808 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst_value[0] = ((npy_double)*(npy_short *)src); > > dst_value[1] = 0; ># 820 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > ((npy_double *)dst)[0] = dst_value[0]; > ((npy_double *)dst)[1] = dst_value[1]; ># 830 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst += sizeof(npy_cdouble); > src += sizeof(npy_short); > > > > > } >} ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_contig_cast_short_to_cdouble( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ > > > > npy_short src_value; > > > npy_double dst_value[2]; > > > > > > > while (N--) { ># 790 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(&src_value, src, sizeof(src_value)); ># 806 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst_value[0] = ((npy_double)src_value); > > > > dst_value[1] = 0; ># 826 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(dst, &dst_value, sizeof(dst_value)); > > > > dst += sizeof(npy_cdouble); > src += sizeof(npy_short); > > > > > } >} ># 691 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_aligned_cast_short_to_clongdouble( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ > > > > > > > npy_longdouble dst_value[2]; > > > > > > > while (N--) { ># 808 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst_value[0] = ((npy_longdouble)*(npy_short *)src); > > dst_value[1] = 0; ># 820 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > ((npy_longdouble *)dst)[0] = dst_value[0]; > ((npy_longdouble *)dst)[1] = dst_value[1]; ># 833 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst += dst_stride; > src += src_stride; > > } >} ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_cast_short_to_clongdouble( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ > > > > npy_short src_value; > > > npy_longdouble dst_value[2]; > > > > > > > while (N--) { ># 790 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(&src_value, src, sizeof(src_value)); ># 806 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst_value[0] = ((npy_longdouble)src_value); > > > > dst_value[1] = 0; ># 826 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(dst, &dst_value, sizeof(dst_value)); > > > > > > > dst += dst_stride; > src += src_stride; > > } >} ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_aligned_contig_cast_short_to_clongdouble( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ > > > > > > > npy_longdouble dst_value[2]; > > > > > > > while (N--) { ># 808 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst_value[0] = ((npy_longdouble)*(npy_short *)src); > > dst_value[1] = 0; ># 820 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > ((npy_longdouble *)dst)[0] = dst_value[0]; > ((npy_longdouble *)dst)[1] = dst_value[1]; ># 830 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst += sizeof(npy_clongdouble); > src += sizeof(npy_short); > > > > > } >} ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_contig_cast_short_to_clongdouble( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ > > > > npy_short src_value; > > > npy_longdouble dst_value[2]; > > > > > > > while (N--) { ># 790 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(&src_value, src, sizeof(src_value)); ># 806 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst_value[0] = ((npy_longdouble)src_value); > > > > dst_value[1] = 0; ># 826 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(dst, &dst_value, sizeof(dst_value)); > > > > dst += sizeof(npy_clongdouble); > src += sizeof(npy_short); > > > > > } >} ># 667 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 691 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_aligned_cast_int_to_bool( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ ># 781 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > while (N--) { ># 814 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > *(npy_bool *)dst = ((npy_bool)(*(npy_int *)src != 0)); ># 833 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst += dst_stride; > src += src_stride; > > } >} ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_cast_int_to_bool( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ > > > > npy_int src_value; > > > > > npy_bool dst_value; > > > > > while (N--) { ># 790 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(&src_value, src, sizeof(src_value)); ># 812 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst_value = ((npy_bool)(src_value != 0)); ># 826 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(dst, &dst_value, sizeof(dst_value)); > > > > > > > dst += dst_stride; > src += src_stride; > > } >} ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_aligned_contig_cast_int_to_bool( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ ># 781 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > while (N--) { ># 814 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > *(npy_bool *)dst = ((npy_bool)(*(npy_int *)src != 0)); ># 830 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst += sizeof(npy_bool); > src += sizeof(npy_int); > > > > > } >} ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_contig_cast_int_to_bool( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ > > > > npy_int src_value; > > > > > npy_bool dst_value; > > > > > while (N--) { ># 790 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(&src_value, src, sizeof(src_value)); ># 812 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst_value = ((npy_bool)(src_value != 0)); ># 826 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(dst, &dst_value, sizeof(dst_value)); > > > > dst += sizeof(npy_bool); > src += sizeof(npy_int); > > > > > } >} ># 691 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_aligned_cast_int_to_ubyte( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ ># 781 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > while (N--) { ># 814 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > *(npy_ubyte *)dst = ((npy_ubyte)*(npy_int *)src); ># 833 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst += dst_stride; > src += src_stride; > > } >} ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_cast_int_to_ubyte( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ > > > > npy_int src_value; > > > > > npy_ubyte dst_value; > > > > > while (N--) { ># 790 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(&src_value, src, sizeof(src_value)); ># 812 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst_value = ((npy_ubyte)src_value); ># 826 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(dst, &dst_value, sizeof(dst_value)); > > > > > > > dst += dst_stride; > src += src_stride; > > } >} ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_aligned_contig_cast_int_to_ubyte( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ ># 781 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > while (N--) { ># 814 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > *(npy_ubyte *)dst = ((npy_ubyte)*(npy_int *)src); ># 830 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst += sizeof(npy_ubyte); > src += sizeof(npy_int); > > > > > } >} ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_contig_cast_int_to_ubyte( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ > > > > npy_int src_value; > > > > > npy_ubyte dst_value; > > > > > while (N--) { ># 790 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(&src_value, src, sizeof(src_value)); ># 812 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst_value = ((npy_ubyte)src_value); ># 826 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(dst, &dst_value, sizeof(dst_value)); > > > > dst += sizeof(npy_ubyte); > src += sizeof(npy_int); > > > > > } >} ># 691 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_aligned_cast_int_to_ushort( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ ># 781 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > while (N--) { ># 814 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > *(npy_ushort *)dst = ((npy_ushort)*(npy_int *)src); ># 833 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst += dst_stride; > src += src_stride; > > } >} ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_cast_int_to_ushort( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ > > > > npy_int src_value; > > > > > npy_ushort dst_value; > > > > > while (N--) { ># 790 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(&src_value, src, sizeof(src_value)); ># 812 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst_value = ((npy_ushort)src_value); ># 826 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(dst, &dst_value, sizeof(dst_value)); > > > > > > > dst += dst_stride; > src += src_stride; > > } >} ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_aligned_contig_cast_int_to_ushort( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ ># 781 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > while (N--) { ># 814 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > *(npy_ushort *)dst = ((npy_ushort)*(npy_int *)src); ># 830 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst += sizeof(npy_ushort); > src += sizeof(npy_int); > > > > > } >} ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_contig_cast_int_to_ushort( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ > > > > npy_int src_value; > > > > > npy_ushort dst_value; > > > > > while (N--) { ># 790 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(&src_value, src, sizeof(src_value)); ># 812 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst_value = ((npy_ushort)src_value); ># 826 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(dst, &dst_value, sizeof(dst_value)); > > > > dst += sizeof(npy_ushort); > src += sizeof(npy_int); > > > > > } >} ># 691 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_aligned_cast_int_to_uint( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ ># 781 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > while (N--) { ># 814 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > *(npy_uint *)dst = ((npy_uint)*(npy_int *)src); ># 833 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst += dst_stride; > src += src_stride; > > } >} ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_cast_int_to_uint( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ > > > > npy_int src_value; > > > > > npy_uint dst_value; > > > > > while (N--) { ># 790 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(&src_value, src, sizeof(src_value)); ># 812 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst_value = ((npy_uint)src_value); ># 826 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(dst, &dst_value, sizeof(dst_value)); > > > > > > > dst += dst_stride; > src += src_stride; > > } >} ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_aligned_contig_cast_int_to_uint( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ ># 781 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > while (N--) { ># 814 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > *(npy_uint *)dst = ((npy_uint)*(npy_int *)src); ># 830 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst += sizeof(npy_uint); > src += sizeof(npy_int); > > > > > } >} ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_contig_cast_int_to_uint( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ > > > > npy_int src_value; > > > > > npy_uint dst_value; > > > > > while (N--) { ># 790 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(&src_value, src, sizeof(src_value)); ># 812 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst_value = ((npy_uint)src_value); ># 826 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(dst, &dst_value, sizeof(dst_value)); > > > > dst += sizeof(npy_uint); > src += sizeof(npy_int); > > > > > } >} ># 691 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_aligned_cast_int_to_ulong( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ ># 781 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > while (N--) { ># 814 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > *(npy_ulong *)dst = ((npy_ulong)*(npy_int *)src); ># 833 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst += dst_stride; > src += src_stride; > > } >} ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_cast_int_to_ulong( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ > > > > npy_int src_value; > > > > > npy_ulong dst_value; > > > > > while (N--) { ># 790 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(&src_value, src, sizeof(src_value)); ># 812 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst_value = ((npy_ulong)src_value); ># 826 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(dst, &dst_value, sizeof(dst_value)); > > > > > > > dst += dst_stride; > src += src_stride; > > } >} ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_aligned_contig_cast_int_to_ulong( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ ># 781 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > while (N--) { ># 814 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > *(npy_ulong *)dst = ((npy_ulong)*(npy_int *)src); ># 830 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst += sizeof(npy_ulong); > src += sizeof(npy_int); > > > > > } >} ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_contig_cast_int_to_ulong( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ > > > > npy_int src_value; > > > > > npy_ulong dst_value; > > > > > while (N--) { ># 790 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(&src_value, src, sizeof(src_value)); ># 812 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst_value = ((npy_ulong)src_value); ># 826 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(dst, &dst_value, sizeof(dst_value)); > > > > dst += sizeof(npy_ulong); > src += sizeof(npy_int); > > > > > } >} ># 691 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_aligned_cast_int_to_ulonglong( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ ># 781 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > while (N--) { ># 814 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > *(npy_ulonglong *)dst = ((npy_ulonglong)*(npy_int *)src); ># 833 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst += dst_stride; > src += src_stride; > > } >} ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_cast_int_to_ulonglong( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ > > > > npy_int src_value; > > > > > npy_ulonglong dst_value; > > > > > while (N--) { ># 790 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(&src_value, src, sizeof(src_value)); ># 812 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst_value = ((npy_ulonglong)src_value); ># 826 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(dst, &dst_value, sizeof(dst_value)); > > > > > > > dst += dst_stride; > src += src_stride; > > } >} ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_aligned_contig_cast_int_to_ulonglong( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ ># 781 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > while (N--) { ># 814 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > *(npy_ulonglong *)dst = ((npy_ulonglong)*(npy_int *)src); ># 830 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst += sizeof(npy_ulonglong); > src += sizeof(npy_int); > > > > > } >} ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_contig_cast_int_to_ulonglong( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ > > > > npy_int src_value; > > > > > npy_ulonglong dst_value; > > > > > while (N--) { ># 790 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(&src_value, src, sizeof(src_value)); ># 812 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst_value = ((npy_ulonglong)src_value); ># 826 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(dst, &dst_value, sizeof(dst_value)); > > > > dst += sizeof(npy_ulonglong); > src += sizeof(npy_int); > > > > > } >} ># 691 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_aligned_cast_int_to_byte( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ ># 781 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > while (N--) { ># 814 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > *(npy_byte *)dst = ((npy_byte)*(npy_int *)src); ># 833 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst += dst_stride; > src += src_stride; > > } >} ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_cast_int_to_byte( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ > > > > npy_int src_value; > > > > > npy_byte dst_value; > > > > > while (N--) { ># 790 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(&src_value, src, sizeof(src_value)); ># 812 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst_value = ((npy_byte)src_value); ># 826 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(dst, &dst_value, sizeof(dst_value)); > > > > > > > dst += dst_stride; > src += src_stride; > > } >} ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_aligned_contig_cast_int_to_byte( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ ># 781 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > while (N--) { ># 814 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > *(npy_byte *)dst = ((npy_byte)*(npy_int *)src); ># 830 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst += sizeof(npy_byte); > src += sizeof(npy_int); > > > > > } >} ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_contig_cast_int_to_byte( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ > > > > npy_int src_value; > > > > > npy_byte dst_value; > > > > > while (N--) { ># 790 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(&src_value, src, sizeof(src_value)); ># 812 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst_value = ((npy_byte)src_value); ># 826 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(dst, &dst_value, sizeof(dst_value)); > > > > dst += sizeof(npy_byte); > src += sizeof(npy_int); > > > > > } >} ># 691 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_aligned_cast_int_to_short( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ ># 781 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > while (N--) { ># 814 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > *(npy_short *)dst = ((npy_short)*(npy_int *)src); ># 833 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst += dst_stride; > src += src_stride; > > } >} ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_cast_int_to_short( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ > > > > npy_int src_value; > > > > > npy_short dst_value; > > > > > while (N--) { ># 790 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(&src_value, src, sizeof(src_value)); ># 812 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst_value = ((npy_short)src_value); ># 826 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(dst, &dst_value, sizeof(dst_value)); > > > > > > > dst += dst_stride; > src += src_stride; > > } >} ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_aligned_contig_cast_int_to_short( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ ># 781 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > while (N--) { ># 814 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > *(npy_short *)dst = ((npy_short)*(npy_int *)src); ># 830 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst += sizeof(npy_short); > src += sizeof(npy_int); > > > > > } >} ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_contig_cast_int_to_short( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ > > > > npy_int src_value; > > > > > npy_short dst_value; > > > > > while (N--) { ># 790 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(&src_value, src, sizeof(src_value)); ># 812 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst_value = ((npy_short)src_value); ># 826 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(dst, &dst_value, sizeof(dst_value)); > > > > dst += sizeof(npy_short); > src += sizeof(npy_int); > > > > > } >} ># 691 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_aligned_cast_int_to_int( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ ># 781 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > while (N--) { ># 814 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > *(npy_int *)dst = ((npy_int)*(npy_int *)src); ># 833 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst += dst_stride; > src += src_stride; > > } >} ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_cast_int_to_int( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ > > > > npy_int src_value; > > > > > npy_int dst_value; > > > > > while (N--) { ># 790 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(&src_value, src, sizeof(src_value)); ># 812 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst_value = ((npy_int)src_value); ># 826 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(dst, &dst_value, sizeof(dst_value)); > > > > > > > dst += dst_stride; > src += src_stride; > > } >} ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_aligned_contig_cast_int_to_int( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ ># 781 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > while (N--) { ># 814 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > *(npy_int *)dst = ((npy_int)*(npy_int *)src); ># 830 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst += sizeof(npy_int); > src += sizeof(npy_int); > > > > > } >} ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_contig_cast_int_to_int( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ > > > > npy_int src_value; > > > > > npy_int dst_value; > > > > > while (N--) { ># 790 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(&src_value, src, sizeof(src_value)); ># 812 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst_value = ((npy_int)src_value); ># 826 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(dst, &dst_value, sizeof(dst_value)); > > > > dst += sizeof(npy_int); > src += sizeof(npy_int); > > > > > } >} ># 691 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_aligned_cast_int_to_long( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ ># 781 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > while (N--) { ># 814 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > *(npy_long *)dst = ((npy_long)*(npy_int *)src); ># 833 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst += dst_stride; > src += src_stride; > > } >} ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_cast_int_to_long( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ > > > > npy_int src_value; > > > > > npy_long dst_value; > > > > > while (N--) { ># 790 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(&src_value, src, sizeof(src_value)); ># 812 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst_value = ((npy_long)src_value); ># 826 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(dst, &dst_value, sizeof(dst_value)); > > > > > > > dst += dst_stride; > src += src_stride; > > } >} ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_aligned_contig_cast_int_to_long( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ ># 781 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > while (N--) { ># 814 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > *(npy_long *)dst = ((npy_long)*(npy_int *)src); ># 830 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst += sizeof(npy_long); > src += sizeof(npy_int); > > > > > } >} ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_contig_cast_int_to_long( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ > > > > npy_int src_value; > > > > > npy_long dst_value; > > > > > while (N--) { ># 790 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(&src_value, src, sizeof(src_value)); ># 812 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst_value = ((npy_long)src_value); ># 826 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(dst, &dst_value, sizeof(dst_value)); > > > > dst += sizeof(npy_long); > src += sizeof(npy_int); > > > > > } >} ># 691 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_aligned_cast_int_to_longlong( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ ># 781 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > while (N--) { ># 814 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > *(npy_longlong *)dst = ((npy_longlong)*(npy_int *)src); ># 833 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst += dst_stride; > src += src_stride; > > } >} ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_cast_int_to_longlong( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ > > > > npy_int src_value; > > > > > npy_longlong dst_value; > > > > > while (N--) { ># 790 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(&src_value, src, sizeof(src_value)); ># 812 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst_value = ((npy_longlong)src_value); ># 826 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(dst, &dst_value, sizeof(dst_value)); > > > > > > > dst += dst_stride; > src += src_stride; > > } >} ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_aligned_contig_cast_int_to_longlong( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ ># 781 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > while (N--) { ># 814 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > *(npy_longlong *)dst = ((npy_longlong)*(npy_int *)src); ># 830 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst += sizeof(npy_longlong); > src += sizeof(npy_int); > > > > > } >} ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_contig_cast_int_to_longlong( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ > > > > npy_int src_value; > > > > > npy_longlong dst_value; > > > > > while (N--) { ># 790 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(&src_value, src, sizeof(src_value)); ># 812 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst_value = ((npy_longlong)src_value); ># 826 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(dst, &dst_value, sizeof(dst_value)); > > > > dst += sizeof(npy_longlong); > src += sizeof(npy_int); > > > > > } >} ># 691 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_aligned_cast_int_to_half( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ ># 781 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > while (N--) { ># 814 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > *(npy_half *)dst = npy_float_to_half((float)*(npy_int *)src); ># 833 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst += dst_stride; > src += src_stride; > > } >} ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_cast_int_to_half( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ > > > > npy_int src_value; > > > > > npy_half dst_value; > > > > > while (N--) { ># 790 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(&src_value, src, sizeof(src_value)); ># 812 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst_value = npy_float_to_half((float)src_value); ># 826 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(dst, &dst_value, sizeof(dst_value)); > > > > > > > dst += dst_stride; > src += src_stride; > > } >} ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_aligned_contig_cast_int_to_half( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ ># 781 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > while (N--) { ># 814 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > *(npy_half *)dst = npy_float_to_half((float)*(npy_int *)src); ># 830 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst += sizeof(npy_half); > src += sizeof(npy_int); > > > > > } >} ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_contig_cast_int_to_half( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ > > > > npy_int src_value; > > > > > npy_half dst_value; > > > > > while (N--) { ># 790 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(&src_value, src, sizeof(src_value)); ># 812 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst_value = npy_float_to_half((float)src_value); ># 826 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(dst, &dst_value, sizeof(dst_value)); > > > > dst += sizeof(npy_half); > src += sizeof(npy_int); > > > > > } >} ># 691 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_aligned_cast_int_to_float( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ ># 781 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > while (N--) { ># 814 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > *(npy_float *)dst = ((npy_float)*(npy_int *)src); ># 833 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst += dst_stride; > src += src_stride; > > } >} ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_cast_int_to_float( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ > > > > npy_int src_value; > > > > > npy_float dst_value; > > > > > while (N--) { ># 790 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(&src_value, src, sizeof(src_value)); ># 812 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst_value = ((npy_float)src_value); ># 826 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(dst, &dst_value, sizeof(dst_value)); > > > > > > > dst += dst_stride; > src += src_stride; > > } >} ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_aligned_contig_cast_int_to_float( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ ># 781 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > while (N--) { ># 814 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > *(npy_float *)dst = ((npy_float)*(npy_int *)src); ># 830 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst += sizeof(npy_float); > src += sizeof(npy_int); > > > > > } >} ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_contig_cast_int_to_float( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ > > > > npy_int src_value; > > > > > npy_float dst_value; > > > > > while (N--) { ># 790 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(&src_value, src, sizeof(src_value)); ># 812 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst_value = ((npy_float)src_value); ># 826 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(dst, &dst_value, sizeof(dst_value)); > > > > dst += sizeof(npy_float); > src += sizeof(npy_int); > > > > > } >} ># 691 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_aligned_cast_int_to_double( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ ># 781 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > while (N--) { ># 814 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > *(npy_double *)dst = ((npy_double)*(npy_int *)src); ># 833 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst += dst_stride; > src += src_stride; > > } >} ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_cast_int_to_double( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ > > > > npy_int src_value; > > > > > npy_double dst_value; > > > > > while (N--) { ># 790 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(&src_value, src, sizeof(src_value)); ># 812 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst_value = ((npy_double)src_value); ># 826 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(dst, &dst_value, sizeof(dst_value)); > > > > > > > dst += dst_stride; > src += src_stride; > > } >} ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_aligned_contig_cast_int_to_double( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ ># 781 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > while (N--) { ># 814 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > *(npy_double *)dst = ((npy_double)*(npy_int *)src); ># 830 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst += sizeof(npy_double); > src += sizeof(npy_int); > > > > > } >} ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_contig_cast_int_to_double( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ > > > > npy_int src_value; > > > > > npy_double dst_value; > > > > > while (N--) { ># 790 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(&src_value, src, sizeof(src_value)); ># 812 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst_value = ((npy_double)src_value); ># 826 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(dst, &dst_value, sizeof(dst_value)); > > > > dst += sizeof(npy_double); > src += sizeof(npy_int); > > > > > } >} ># 691 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_aligned_cast_int_to_longdouble( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ ># 781 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > while (N--) { ># 814 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > *(npy_longdouble *)dst = ((npy_longdouble)*(npy_int *)src); ># 833 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst += dst_stride; > src += src_stride; > > } >} ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_cast_int_to_longdouble( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ > > > > npy_int src_value; > > > > > npy_longdouble dst_value; > > > > > while (N--) { ># 790 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(&src_value, src, sizeof(src_value)); ># 812 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst_value = ((npy_longdouble)src_value); ># 826 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(dst, &dst_value, sizeof(dst_value)); > > > > > > > dst += dst_stride; > src += src_stride; > > } >} ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_aligned_contig_cast_int_to_longdouble( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ ># 781 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > while (N--) { ># 814 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > *(npy_longdouble *)dst = ((npy_longdouble)*(npy_int *)src); ># 830 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst += sizeof(npy_longdouble); > src += sizeof(npy_int); > > > > > } >} ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_contig_cast_int_to_longdouble( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ > > > > npy_int src_value; > > > > > npy_longdouble dst_value; > > > > > while (N--) { ># 790 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(&src_value, src, sizeof(src_value)); ># 812 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst_value = ((npy_longdouble)src_value); ># 826 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(dst, &dst_value, sizeof(dst_value)); > > > > dst += sizeof(npy_longdouble); > src += sizeof(npy_int); > > > > > } >} ># 691 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_aligned_cast_int_to_cfloat( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ > > > > > > > npy_float dst_value[2]; > > > > > > > while (N--) { ># 808 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst_value[0] = ((npy_float)*(npy_int *)src); > > dst_value[1] = 0; ># 820 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > ((npy_float *)dst)[0] = dst_value[0]; > ((npy_float *)dst)[1] = dst_value[1]; ># 833 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst += dst_stride; > src += src_stride; > > } >} ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_cast_int_to_cfloat( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ > > > > npy_int src_value; > > > npy_float dst_value[2]; > > > > > > > while (N--) { ># 790 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(&src_value, src, sizeof(src_value)); ># 806 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst_value[0] = ((npy_float)src_value); > > > > dst_value[1] = 0; ># 826 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(dst, &dst_value, sizeof(dst_value)); > > > > > > > dst += dst_stride; > src += src_stride; > > } >} ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_aligned_contig_cast_int_to_cfloat( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ > > > > > > > npy_float dst_value[2]; > > > > > > > while (N--) { ># 808 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst_value[0] = ((npy_float)*(npy_int *)src); > > dst_value[1] = 0; ># 820 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > ((npy_float *)dst)[0] = dst_value[0]; > ((npy_float *)dst)[1] = dst_value[1]; ># 830 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst += sizeof(npy_cfloat); > src += sizeof(npy_int); > > > > > } >} ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_contig_cast_int_to_cfloat( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ > > > > npy_int src_value; > > > npy_float dst_value[2]; > > > > > > > while (N--) { ># 790 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(&src_value, src, sizeof(src_value)); ># 806 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst_value[0] = ((npy_float)src_value); > > > > dst_value[1] = 0; ># 826 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(dst, &dst_value, sizeof(dst_value)); > > > > dst += sizeof(npy_cfloat); > src += sizeof(npy_int); > > > > > } >} ># 691 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_aligned_cast_int_to_cdouble( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ > > > > > > > npy_double dst_value[2]; > > > > > > > while (N--) { ># 808 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst_value[0] = ((npy_double)*(npy_int *)src); > > dst_value[1] = 0; ># 820 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > ((npy_double *)dst)[0] = dst_value[0]; > ((npy_double *)dst)[1] = dst_value[1]; ># 833 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst += dst_stride; > src += src_stride; > > } >} ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_cast_int_to_cdouble( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ > > > > npy_int src_value; > > > npy_double dst_value[2]; > > > > > > > while (N--) { ># 790 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(&src_value, src, sizeof(src_value)); ># 806 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst_value[0] = ((npy_double)src_value); > > > > dst_value[1] = 0; ># 826 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(dst, &dst_value, sizeof(dst_value)); > > > > > > > dst += dst_stride; > src += src_stride; > > } >} ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_aligned_contig_cast_int_to_cdouble( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ > > > > > > > npy_double dst_value[2]; > > > > > > > while (N--) { ># 808 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst_value[0] = ((npy_double)*(npy_int *)src); > > dst_value[1] = 0; ># 820 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > ((npy_double *)dst)[0] = dst_value[0]; > ((npy_double *)dst)[1] = dst_value[1]; ># 830 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst += sizeof(npy_cdouble); > src += sizeof(npy_int); > > > > > } >} ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_contig_cast_int_to_cdouble( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ > > > > npy_int src_value; > > > npy_double dst_value[2]; > > > > > > > while (N--) { ># 790 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(&src_value, src, sizeof(src_value)); ># 806 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst_value[0] = ((npy_double)src_value); > > > > dst_value[1] = 0; ># 826 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(dst, &dst_value, sizeof(dst_value)); > > > > dst += sizeof(npy_cdouble); > src += sizeof(npy_int); > > > > > } >} ># 691 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_aligned_cast_int_to_clongdouble( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ > > > > > > > npy_longdouble dst_value[2]; > > > > > > > while (N--) { ># 808 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst_value[0] = ((npy_longdouble)*(npy_int *)src); > > dst_value[1] = 0; ># 820 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > ((npy_longdouble *)dst)[0] = dst_value[0]; > ((npy_longdouble *)dst)[1] = dst_value[1]; ># 833 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst += dst_stride; > src += src_stride; > > } >} ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_cast_int_to_clongdouble( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ > > > > npy_int src_value; > > > npy_longdouble dst_value[2]; > > > > > > > while (N--) { ># 790 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(&src_value, src, sizeof(src_value)); ># 806 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst_value[0] = ((npy_longdouble)src_value); > > > > dst_value[1] = 0; ># 826 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(dst, &dst_value, sizeof(dst_value)); > > > > > > > dst += dst_stride; > src += src_stride; > > } >} ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_aligned_contig_cast_int_to_clongdouble( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ > > > > > > > npy_longdouble dst_value[2]; > > > > > > > while (N--) { ># 808 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst_value[0] = ((npy_longdouble)*(npy_int *)src); > > dst_value[1] = 0; ># 820 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > ((npy_longdouble *)dst)[0] = dst_value[0]; > ((npy_longdouble *)dst)[1] = dst_value[1]; ># 830 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst += sizeof(npy_clongdouble); > src += sizeof(npy_int); > > > > > } >} ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_contig_cast_int_to_clongdouble( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ > > > > npy_int src_value; > > > npy_longdouble dst_value[2]; > > > > > > > while (N--) { ># 790 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(&src_value, src, sizeof(src_value)); ># 806 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst_value[0] = ((npy_longdouble)src_value); > > > > dst_value[1] = 0; ># 826 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(dst, &dst_value, sizeof(dst_value)); > > > > dst += sizeof(npy_clongdouble); > src += sizeof(npy_int); > > > > > } >} ># 667 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 691 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_aligned_cast_long_to_bool( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ ># 781 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > while (N--) { ># 814 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > *(npy_bool *)dst = ((npy_bool)(*(npy_long *)src != 0)); ># 833 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst += dst_stride; > src += src_stride; > > } >} ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_cast_long_to_bool( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ > > > > npy_long src_value; > > > > > npy_bool dst_value; > > > > > while (N--) { ># 790 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(&src_value, src, sizeof(src_value)); ># 812 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst_value = ((npy_bool)(src_value != 0)); ># 826 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(dst, &dst_value, sizeof(dst_value)); > > > > > > > dst += dst_stride; > src += src_stride; > > } >} ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_aligned_contig_cast_long_to_bool( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ ># 781 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > while (N--) { ># 814 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > *(npy_bool *)dst = ((npy_bool)(*(npy_long *)src != 0)); ># 830 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst += sizeof(npy_bool); > src += sizeof(npy_long); > > > > > } >} ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_contig_cast_long_to_bool( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ > > > > npy_long src_value; > > > > > npy_bool dst_value; > > > > > while (N--) { ># 790 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(&src_value, src, sizeof(src_value)); ># 812 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst_value = ((npy_bool)(src_value != 0)); ># 826 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(dst, &dst_value, sizeof(dst_value)); > > > > dst += sizeof(npy_bool); > src += sizeof(npy_long); > > > > > } >} ># 691 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_aligned_cast_long_to_ubyte( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ ># 781 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > while (N--) { ># 814 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > *(npy_ubyte *)dst = ((npy_ubyte)*(npy_long *)src); ># 833 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst += dst_stride; > src += src_stride; > > } >} ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_cast_long_to_ubyte( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ > > > > npy_long src_value; > > > > > npy_ubyte dst_value; > > > > > while (N--) { ># 790 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(&src_value, src, sizeof(src_value)); ># 812 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst_value = ((npy_ubyte)src_value); ># 826 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(dst, &dst_value, sizeof(dst_value)); > > > > > > > dst += dst_stride; > src += src_stride; > > } >} ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_aligned_contig_cast_long_to_ubyte( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ ># 781 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > while (N--) { ># 814 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > *(npy_ubyte *)dst = ((npy_ubyte)*(npy_long *)src); ># 830 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst += sizeof(npy_ubyte); > src += sizeof(npy_long); > > > > > } >} ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_contig_cast_long_to_ubyte( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ > > > > npy_long src_value; > > > > > npy_ubyte dst_value; > > > > > while (N--) { ># 790 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(&src_value, src, sizeof(src_value)); ># 812 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst_value = ((npy_ubyte)src_value); ># 826 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(dst, &dst_value, sizeof(dst_value)); > > > > dst += sizeof(npy_ubyte); > src += sizeof(npy_long); > > > > > } >} ># 691 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_aligned_cast_long_to_ushort( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ ># 781 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > while (N--) { ># 814 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > *(npy_ushort *)dst = ((npy_ushort)*(npy_long *)src); ># 833 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst += dst_stride; > src += src_stride; > > } >} ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_cast_long_to_ushort( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ > > > > npy_long src_value; > > > > > npy_ushort dst_value; > > > > > while (N--) { ># 790 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(&src_value, src, sizeof(src_value)); ># 812 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst_value = ((npy_ushort)src_value); ># 826 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(dst, &dst_value, sizeof(dst_value)); > > > > > > > dst += dst_stride; > src += src_stride; > > } >} ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_aligned_contig_cast_long_to_ushort( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ ># 781 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > while (N--) { ># 814 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > *(npy_ushort *)dst = ((npy_ushort)*(npy_long *)src); ># 830 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst += sizeof(npy_ushort); > src += sizeof(npy_long); > > > > > } >} ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_contig_cast_long_to_ushort( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ > > > > npy_long src_value; > > > > > npy_ushort dst_value; > > > > > while (N--) { ># 790 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(&src_value, src, sizeof(src_value)); ># 812 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst_value = ((npy_ushort)src_value); ># 826 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(dst, &dst_value, sizeof(dst_value)); > > > > dst += sizeof(npy_ushort); > src += sizeof(npy_long); > > > > > } >} ># 691 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_aligned_cast_long_to_uint( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ ># 781 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > while (N--) { ># 814 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > *(npy_uint *)dst = ((npy_uint)*(npy_long *)src); ># 833 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst += dst_stride; > src += src_stride; > > } >} ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_cast_long_to_uint( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ > > > > npy_long src_value; > > > > > npy_uint dst_value; > > > > > while (N--) { ># 790 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(&src_value, src, sizeof(src_value)); ># 812 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst_value = ((npy_uint)src_value); ># 826 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(dst, &dst_value, sizeof(dst_value)); > > > > > > > dst += dst_stride; > src += src_stride; > > } >} ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_aligned_contig_cast_long_to_uint( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ ># 781 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > while (N--) { ># 814 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > *(npy_uint *)dst = ((npy_uint)*(npy_long *)src); ># 830 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst += sizeof(npy_uint); > src += sizeof(npy_long); > > > > > } >} ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_contig_cast_long_to_uint( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ > > > > npy_long src_value; > > > > > npy_uint dst_value; > > > > > while (N--) { ># 790 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(&src_value, src, sizeof(src_value)); ># 812 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst_value = ((npy_uint)src_value); ># 826 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(dst, &dst_value, sizeof(dst_value)); > > > > dst += sizeof(npy_uint); > src += sizeof(npy_long); > > > > > } >} ># 691 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_aligned_cast_long_to_ulong( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ ># 781 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > while (N--) { ># 814 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > *(npy_ulong *)dst = ((npy_ulong)*(npy_long *)src); ># 833 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst += dst_stride; > src += src_stride; > > } >} ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_cast_long_to_ulong( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ > > > > npy_long src_value; > > > > > npy_ulong dst_value; > > > > > while (N--) { ># 790 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(&src_value, src, sizeof(src_value)); ># 812 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst_value = ((npy_ulong)src_value); ># 826 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(dst, &dst_value, sizeof(dst_value)); > > > > > > > dst += dst_stride; > src += src_stride; > > } >} ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_aligned_contig_cast_long_to_ulong( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ ># 781 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > while (N--) { ># 814 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > *(npy_ulong *)dst = ((npy_ulong)*(npy_long *)src); ># 830 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst += sizeof(npy_ulong); > src += sizeof(npy_long); > > > > > } >} ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_contig_cast_long_to_ulong( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ > > > > npy_long src_value; > > > > > npy_ulong dst_value; > > > > > while (N--) { ># 790 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(&src_value, src, sizeof(src_value)); ># 812 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst_value = ((npy_ulong)src_value); ># 826 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(dst, &dst_value, sizeof(dst_value)); > > > > dst += sizeof(npy_ulong); > src += sizeof(npy_long); > > > > > } >} ># 691 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_aligned_cast_long_to_ulonglong( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ ># 781 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > while (N--) { ># 814 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > *(npy_ulonglong *)dst = ((npy_ulonglong)*(npy_long *)src); ># 833 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst += dst_stride; > src += src_stride; > > } >} ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_cast_long_to_ulonglong( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ > > > > npy_long src_value; > > > > > npy_ulonglong dst_value; > > > > > while (N--) { ># 790 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(&src_value, src, sizeof(src_value)); ># 812 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst_value = ((npy_ulonglong)src_value); ># 826 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(dst, &dst_value, sizeof(dst_value)); > > > > > > > dst += dst_stride; > src += src_stride; > > } >} ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_aligned_contig_cast_long_to_ulonglong( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ ># 781 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > while (N--) { ># 814 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > *(npy_ulonglong *)dst = ((npy_ulonglong)*(npy_long *)src); ># 830 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst += sizeof(npy_ulonglong); > src += sizeof(npy_long); > > > > > } >} ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_contig_cast_long_to_ulonglong( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ > > > > npy_long src_value; > > > > > npy_ulonglong dst_value; > > > > > while (N--) { ># 790 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(&src_value, src, sizeof(src_value)); ># 812 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst_value = ((npy_ulonglong)src_value); ># 826 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(dst, &dst_value, sizeof(dst_value)); > > > > dst += sizeof(npy_ulonglong); > src += sizeof(npy_long); > > > > > } >} ># 691 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_aligned_cast_long_to_byte( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ ># 781 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > while (N--) { ># 814 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > *(npy_byte *)dst = ((npy_byte)*(npy_long *)src); ># 833 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst += dst_stride; > src += src_stride; > > } >} ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_cast_long_to_byte( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ > > > > npy_long src_value; > > > > > npy_byte dst_value; > > > > > while (N--) { ># 790 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(&src_value, src, sizeof(src_value)); ># 812 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst_value = ((npy_byte)src_value); ># 826 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(dst, &dst_value, sizeof(dst_value)); > > > > > > > dst += dst_stride; > src += src_stride; > > } >} ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_aligned_contig_cast_long_to_byte( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ ># 781 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > while (N--) { ># 814 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > *(npy_byte *)dst = ((npy_byte)*(npy_long *)src); ># 830 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst += sizeof(npy_byte); > src += sizeof(npy_long); > > > > > } >} ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_contig_cast_long_to_byte( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ > > > > npy_long src_value; > > > > > npy_byte dst_value; > > > > > while (N--) { ># 790 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(&src_value, src, sizeof(src_value)); ># 812 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst_value = ((npy_byte)src_value); ># 826 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(dst, &dst_value, sizeof(dst_value)); > > > > dst += sizeof(npy_byte); > src += sizeof(npy_long); > > > > > } >} ># 691 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_aligned_cast_long_to_short( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ ># 781 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > while (N--) { ># 814 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > *(npy_short *)dst = ((npy_short)*(npy_long *)src); ># 833 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst += dst_stride; > src += src_stride; > > } >} ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_cast_long_to_short( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ > > > > npy_long src_value; > > > > > npy_short dst_value; > > > > > while (N--) { ># 790 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(&src_value, src, sizeof(src_value)); ># 812 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst_value = ((npy_short)src_value); ># 826 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(dst, &dst_value, sizeof(dst_value)); > > > > > > > dst += dst_stride; > src += src_stride; > > } >} ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_aligned_contig_cast_long_to_short( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ ># 781 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > while (N--) { ># 814 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > *(npy_short *)dst = ((npy_short)*(npy_long *)src); ># 830 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst += sizeof(npy_short); > src += sizeof(npy_long); > > > > > } >} ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_contig_cast_long_to_short( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ > > > > npy_long src_value; > > > > > npy_short dst_value; > > > > > while (N--) { ># 790 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(&src_value, src, sizeof(src_value)); ># 812 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst_value = ((npy_short)src_value); ># 826 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(dst, &dst_value, sizeof(dst_value)); > > > > dst += sizeof(npy_short); > src += sizeof(npy_long); > > > > > } >} ># 691 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_aligned_cast_long_to_int( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ ># 781 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > while (N--) { ># 814 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > *(npy_int *)dst = ((npy_int)*(npy_long *)src); ># 833 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst += dst_stride; > src += src_stride; > > } >} ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_cast_long_to_int( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ > > > > npy_long src_value; > > > > > npy_int dst_value; > > > > > while (N--) { ># 790 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(&src_value, src, sizeof(src_value)); ># 812 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst_value = ((npy_int)src_value); ># 826 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(dst, &dst_value, sizeof(dst_value)); > > > > > > > dst += dst_stride; > src += src_stride; > > } >} ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_aligned_contig_cast_long_to_int( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ ># 781 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > while (N--) { ># 814 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > *(npy_int *)dst = ((npy_int)*(npy_long *)src); ># 830 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst += sizeof(npy_int); > src += sizeof(npy_long); > > > > > } >} ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_contig_cast_long_to_int( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ > > > > npy_long src_value; > > > > > npy_int dst_value; > > > > > while (N--) { ># 790 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(&src_value, src, sizeof(src_value)); ># 812 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst_value = ((npy_int)src_value); ># 826 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(dst, &dst_value, sizeof(dst_value)); > > > > dst += sizeof(npy_int); > src += sizeof(npy_long); > > > > > } >} ># 691 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_aligned_cast_long_to_long( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ ># 781 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > while (N--) { ># 814 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > *(npy_long *)dst = ((npy_long)*(npy_long *)src); ># 833 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst += dst_stride; > src += src_stride; > > } >} ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_cast_long_to_long( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ > > > > npy_long src_value; > > > > > npy_long dst_value; > > > > > while (N--) { ># 790 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(&src_value, src, sizeof(src_value)); ># 812 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst_value = ((npy_long)src_value); ># 826 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(dst, &dst_value, sizeof(dst_value)); > > > > > > > dst += dst_stride; > src += src_stride; > > } >} ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_aligned_contig_cast_long_to_long( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ ># 781 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > while (N--) { ># 814 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > *(npy_long *)dst = ((npy_long)*(npy_long *)src); ># 830 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst += sizeof(npy_long); > src += sizeof(npy_long); > > > > > } >} ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_contig_cast_long_to_long( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ > > > > npy_long src_value; > > > > > npy_long dst_value; > > > > > while (N--) { ># 790 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(&src_value, src, sizeof(src_value)); ># 812 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst_value = ((npy_long)src_value); ># 826 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(dst, &dst_value, sizeof(dst_value)); > > > > dst += sizeof(npy_long); > src += sizeof(npy_long); > > > > > } >} ># 691 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_aligned_cast_long_to_longlong( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ ># 781 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > while (N--) { ># 814 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > *(npy_longlong *)dst = ((npy_longlong)*(npy_long *)src); ># 833 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst += dst_stride; > src += src_stride; > > } >} ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_cast_long_to_longlong( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ > > > > npy_long src_value; > > > > > npy_longlong dst_value; > > > > > while (N--) { ># 790 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(&src_value, src, sizeof(src_value)); ># 812 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst_value = ((npy_longlong)src_value); ># 826 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(dst, &dst_value, sizeof(dst_value)); > > > > > > > dst += dst_stride; > src += src_stride; > > } >} ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_aligned_contig_cast_long_to_longlong( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ ># 781 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > while (N--) { ># 814 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > *(npy_longlong *)dst = ((npy_longlong)*(npy_long *)src); ># 830 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst += sizeof(npy_longlong); > src += sizeof(npy_long); > > > > > } >} ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_contig_cast_long_to_longlong( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ > > > > npy_long src_value; > > > > > npy_longlong dst_value; > > > > > while (N--) { ># 790 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(&src_value, src, sizeof(src_value)); ># 812 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst_value = ((npy_longlong)src_value); ># 826 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(dst, &dst_value, sizeof(dst_value)); > > > > dst += sizeof(npy_longlong); > src += sizeof(npy_long); > > > > > } >} ># 691 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_aligned_cast_long_to_half( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ ># 781 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > while (N--) { ># 814 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > *(npy_half *)dst = npy_float_to_half((float)*(npy_long *)src); ># 833 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst += dst_stride; > src += src_stride; > > } >} ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_cast_long_to_half( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ > > > > npy_long src_value; > > > > > npy_half dst_value; > > > > > while (N--) { ># 790 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(&src_value, src, sizeof(src_value)); ># 812 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst_value = npy_float_to_half((float)src_value); ># 826 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(dst, &dst_value, sizeof(dst_value)); > > > > > > > dst += dst_stride; > src += src_stride; > > } >} ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_aligned_contig_cast_long_to_half( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ ># 781 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > while (N--) { ># 814 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > *(npy_half *)dst = npy_float_to_half((float)*(npy_long *)src); ># 830 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst += sizeof(npy_half); > src += sizeof(npy_long); > > > > > } >} ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_contig_cast_long_to_half( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ > > > > npy_long src_value; > > > > > npy_half dst_value; > > > > > while (N--) { ># 790 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(&src_value, src, sizeof(src_value)); ># 812 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst_value = npy_float_to_half((float)src_value); ># 826 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(dst, &dst_value, sizeof(dst_value)); > > > > dst += sizeof(npy_half); > src += sizeof(npy_long); > > > > > } >} ># 691 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_aligned_cast_long_to_float( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ ># 781 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > while (N--) { ># 814 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > *(npy_float *)dst = ((npy_float)*(npy_long *)src); ># 833 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst += dst_stride; > src += src_stride; > > } >} ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_cast_long_to_float( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ > > > > npy_long src_value; > > > > > npy_float dst_value; > > > > > while (N--) { ># 790 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(&src_value, src, sizeof(src_value)); ># 812 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst_value = ((npy_float)src_value); ># 826 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(dst, &dst_value, sizeof(dst_value)); > > > > > > > dst += dst_stride; > src += src_stride; > > } >} ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_aligned_contig_cast_long_to_float( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ ># 781 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > while (N--) { ># 814 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > *(npy_float *)dst = ((npy_float)*(npy_long *)src); ># 830 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst += sizeof(npy_float); > src += sizeof(npy_long); > > > > > } >} ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_contig_cast_long_to_float( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ > > > > npy_long src_value; > > > > > npy_float dst_value; > > > > > while (N--) { ># 790 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(&src_value, src, sizeof(src_value)); ># 812 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst_value = ((npy_float)src_value); ># 826 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(dst, &dst_value, sizeof(dst_value)); > > > > dst += sizeof(npy_float); > src += sizeof(npy_long); > > > > > } >} ># 691 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_aligned_cast_long_to_double( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ ># 781 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > while (N--) { ># 814 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > *(npy_double *)dst = ((npy_double)*(npy_long *)src); ># 833 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst += dst_stride; > src += src_stride; > > } >} ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_cast_long_to_double( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ > > > > npy_long src_value; > > > > > npy_double dst_value; > > > > > while (N--) { ># 790 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(&src_value, src, sizeof(src_value)); ># 812 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst_value = ((npy_double)src_value); ># 826 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(dst, &dst_value, sizeof(dst_value)); > > > > > > > dst += dst_stride; > src += src_stride; > > } >} ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_aligned_contig_cast_long_to_double( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ ># 781 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > while (N--) { ># 814 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > *(npy_double *)dst = ((npy_double)*(npy_long *)src); ># 830 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst += sizeof(npy_double); > src += sizeof(npy_long); > > > > > } >} ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_contig_cast_long_to_double( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ > > > > npy_long src_value; > > > > > npy_double dst_value; > > > > > while (N--) { ># 790 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(&src_value, src, sizeof(src_value)); ># 812 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst_value = ((npy_double)src_value); ># 826 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(dst, &dst_value, sizeof(dst_value)); > > > > dst += sizeof(npy_double); > src += sizeof(npy_long); > > > > > } >} ># 691 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_aligned_cast_long_to_longdouble( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ ># 781 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > while (N--) { ># 814 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > *(npy_longdouble *)dst = ((npy_longdouble)*(npy_long *)src); ># 833 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst += dst_stride; > src += src_stride; > > } >} ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_cast_long_to_longdouble( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ > > > > npy_long src_value; > > > > > npy_longdouble dst_value; > > > > > while (N--) { ># 790 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(&src_value, src, sizeof(src_value)); ># 812 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst_value = ((npy_longdouble)src_value); ># 826 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(dst, &dst_value, sizeof(dst_value)); > > > > > > > dst += dst_stride; > src += src_stride; > > } >} ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_aligned_contig_cast_long_to_longdouble( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ ># 781 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > while (N--) { ># 814 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > *(npy_longdouble *)dst = ((npy_longdouble)*(npy_long *)src); ># 830 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst += sizeof(npy_longdouble); > src += sizeof(npy_long); > > > > > } >} ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_contig_cast_long_to_longdouble( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ > > > > npy_long src_value; > > > > > npy_longdouble dst_value; > > > > > while (N--) { ># 790 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(&src_value, src, sizeof(src_value)); ># 812 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst_value = ((npy_longdouble)src_value); ># 826 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(dst, &dst_value, sizeof(dst_value)); > > > > dst += sizeof(npy_longdouble); > src += sizeof(npy_long); > > > > > } >} ># 691 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_aligned_cast_long_to_cfloat( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ > > > > > > > npy_float dst_value[2]; > > > > > > > while (N--) { ># 808 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst_value[0] = ((npy_float)*(npy_long *)src); > > dst_value[1] = 0; ># 820 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > ((npy_float *)dst)[0] = dst_value[0]; > ((npy_float *)dst)[1] = dst_value[1]; ># 833 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst += dst_stride; > src += src_stride; > > } >} ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_cast_long_to_cfloat( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ > > > > npy_long src_value; > > > npy_float dst_value[2]; > > > > > > > while (N--) { ># 790 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(&src_value, src, sizeof(src_value)); ># 806 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst_value[0] = ((npy_float)src_value); > > > > dst_value[1] = 0; ># 826 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(dst, &dst_value, sizeof(dst_value)); > > > > > > > dst += dst_stride; > src += src_stride; > > } >} ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_aligned_contig_cast_long_to_cfloat( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ > > > > > > > npy_float dst_value[2]; > > > > > > > while (N--) { ># 808 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst_value[0] = ((npy_float)*(npy_long *)src); > > dst_value[1] = 0; ># 820 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > ((npy_float *)dst)[0] = dst_value[0]; > ((npy_float *)dst)[1] = dst_value[1]; ># 830 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst += sizeof(npy_cfloat); > src += sizeof(npy_long); > > > > > } >} ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_contig_cast_long_to_cfloat( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ > > > > npy_long src_value; > > > npy_float dst_value[2]; > > > > > > > while (N--) { ># 790 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(&src_value, src, sizeof(src_value)); ># 806 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst_value[0] = ((npy_float)src_value); > > > > dst_value[1] = 0; ># 826 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(dst, &dst_value, sizeof(dst_value)); > > > > dst += sizeof(npy_cfloat); > src += sizeof(npy_long); > > > > > } >} ># 691 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_aligned_cast_long_to_cdouble( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ > > > > > > > npy_double dst_value[2]; > > > > > > > while (N--) { ># 808 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst_value[0] = ((npy_double)*(npy_long *)src); > > dst_value[1] = 0; ># 820 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > ((npy_double *)dst)[0] = dst_value[0]; > ((npy_double *)dst)[1] = dst_value[1]; ># 833 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst += dst_stride; > src += src_stride; > > } >} ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_cast_long_to_cdouble( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ > > > > npy_long src_value; > > > npy_double dst_value[2]; > > > > > > > while (N--) { ># 790 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(&src_value, src, sizeof(src_value)); ># 806 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst_value[0] = ((npy_double)src_value); > > > > dst_value[1] = 0; ># 826 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(dst, &dst_value, sizeof(dst_value)); > > > > > > > dst += dst_stride; > src += src_stride; > > } >} ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_aligned_contig_cast_long_to_cdouble( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ > > > > > > > npy_double dst_value[2]; > > > > > > > while (N--) { ># 808 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst_value[0] = ((npy_double)*(npy_long *)src); > > dst_value[1] = 0; ># 820 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > ((npy_double *)dst)[0] = dst_value[0]; > ((npy_double *)dst)[1] = dst_value[1]; ># 830 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst += sizeof(npy_cdouble); > src += sizeof(npy_long); > > > > > } >} ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_contig_cast_long_to_cdouble( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ > > > > npy_long src_value; > > > npy_double dst_value[2]; > > > > > > > while (N--) { ># 790 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(&src_value, src, sizeof(src_value)); ># 806 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst_value[0] = ((npy_double)src_value); > > > > dst_value[1] = 0; ># 826 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(dst, &dst_value, sizeof(dst_value)); > > > > dst += sizeof(npy_cdouble); > src += sizeof(npy_long); > > > > > } >} ># 691 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_aligned_cast_long_to_clongdouble( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ > > > > > > > npy_longdouble dst_value[2]; > > > > > > > while (N--) { ># 808 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst_value[0] = ((npy_longdouble)*(npy_long *)src); > > dst_value[1] = 0; ># 820 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > ((npy_longdouble *)dst)[0] = dst_value[0]; > ((npy_longdouble *)dst)[1] = dst_value[1]; ># 833 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst += dst_stride; > src += src_stride; > > } >} ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_cast_long_to_clongdouble( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ > > > > npy_long src_value; > > > npy_longdouble dst_value[2]; > > > > > > > while (N--) { ># 790 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(&src_value, src, sizeof(src_value)); ># 806 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst_value[0] = ((npy_longdouble)src_value); > > > > dst_value[1] = 0; ># 826 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(dst, &dst_value, sizeof(dst_value)); > > > > > > > dst += dst_stride; > src += src_stride; > > } >} ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_aligned_contig_cast_long_to_clongdouble( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ > > > > > > > npy_longdouble dst_value[2]; > > > > > > > while (N--) { ># 808 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst_value[0] = ((npy_longdouble)*(npy_long *)src); > > dst_value[1] = 0; ># 820 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > ((npy_longdouble *)dst)[0] = dst_value[0]; > ((npy_longdouble *)dst)[1] = dst_value[1]; ># 830 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst += sizeof(npy_clongdouble); > src += sizeof(npy_long); > > > > > } >} ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_contig_cast_long_to_clongdouble( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ > > > > npy_long src_value; > > > npy_longdouble dst_value[2]; > > > > > > > while (N--) { ># 790 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(&src_value, src, sizeof(src_value)); ># 806 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst_value[0] = ((npy_longdouble)src_value); > > > > dst_value[1] = 0; ># 826 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(dst, &dst_value, sizeof(dst_value)); > > > > dst += sizeof(npy_clongdouble); > src += sizeof(npy_long); > > > > > } >} ># 667 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 691 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_aligned_cast_longlong_to_bool( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ ># 781 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > while (N--) { ># 814 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > *(npy_bool *)dst = ((npy_bool)(*(npy_longlong *)src != 0)); ># 833 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst += dst_stride; > src += src_stride; > > } >} ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_cast_longlong_to_bool( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ > > > > npy_longlong src_value; > > > > > npy_bool dst_value; > > > > > while (N--) { ># 790 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(&src_value, src, sizeof(src_value)); ># 812 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst_value = ((npy_bool)(src_value != 0)); ># 826 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(dst, &dst_value, sizeof(dst_value)); > > > > > > > dst += dst_stride; > src += src_stride; > > } >} ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_aligned_contig_cast_longlong_to_bool( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ ># 781 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > while (N--) { ># 814 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > *(npy_bool *)dst = ((npy_bool)(*(npy_longlong *)src != 0)); ># 830 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst += sizeof(npy_bool); > src += sizeof(npy_longlong); > > > > > } >} ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_contig_cast_longlong_to_bool( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ > > > > npy_longlong src_value; > > > > > npy_bool dst_value; > > > > > while (N--) { ># 790 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(&src_value, src, sizeof(src_value)); ># 812 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst_value = ((npy_bool)(src_value != 0)); ># 826 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(dst, &dst_value, sizeof(dst_value)); > > > > dst += sizeof(npy_bool); > src += sizeof(npy_longlong); > > > > > } >} ># 691 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_aligned_cast_longlong_to_ubyte( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ ># 781 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > while (N--) { ># 814 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > *(npy_ubyte *)dst = ((npy_ubyte)*(npy_longlong *)src); ># 833 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst += dst_stride; > src += src_stride; > > } >} ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_cast_longlong_to_ubyte( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ > > > > npy_longlong src_value; > > > > > npy_ubyte dst_value; > > > > > while (N--) { ># 790 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(&src_value, src, sizeof(src_value)); ># 812 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst_value = ((npy_ubyte)src_value); ># 826 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(dst, &dst_value, sizeof(dst_value)); > > > > > > > dst += dst_stride; > src += src_stride; > > } >} ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_aligned_contig_cast_longlong_to_ubyte( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ ># 781 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > while (N--) { ># 814 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > *(npy_ubyte *)dst = ((npy_ubyte)*(npy_longlong *)src); ># 830 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst += sizeof(npy_ubyte); > src += sizeof(npy_longlong); > > > > > } >} ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_contig_cast_longlong_to_ubyte( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ > > > > npy_longlong src_value; > > > > > npy_ubyte dst_value; > > > > > while (N--) { ># 790 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(&src_value, src, sizeof(src_value)); ># 812 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst_value = ((npy_ubyte)src_value); ># 826 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(dst, &dst_value, sizeof(dst_value)); > > > > dst += sizeof(npy_ubyte); > src += sizeof(npy_longlong); > > > > > } >} ># 691 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_aligned_cast_longlong_to_ushort( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ ># 781 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > while (N--) { ># 814 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > *(npy_ushort *)dst = ((npy_ushort)*(npy_longlong *)src); ># 833 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst += dst_stride; > src += src_stride; > > } >} ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_cast_longlong_to_ushort( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ > > > > npy_longlong src_value; > > > > > npy_ushort dst_value; > > > > > while (N--) { ># 790 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(&src_value, src, sizeof(src_value)); ># 812 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst_value = ((npy_ushort)src_value); ># 826 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(dst, &dst_value, sizeof(dst_value)); > > > > > > > dst += dst_stride; > src += src_stride; > > } >} ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_aligned_contig_cast_longlong_to_ushort( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ ># 781 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > while (N--) { ># 814 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > *(npy_ushort *)dst = ((npy_ushort)*(npy_longlong *)src); ># 830 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst += sizeof(npy_ushort); > src += sizeof(npy_longlong); > > > > > } >} ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_contig_cast_longlong_to_ushort( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ > > > > npy_longlong src_value; > > > > > npy_ushort dst_value; > > > > > while (N--) { ># 790 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(&src_value, src, sizeof(src_value)); ># 812 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst_value = ((npy_ushort)src_value); ># 826 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(dst, &dst_value, sizeof(dst_value)); > > > > dst += sizeof(npy_ushort); > src += sizeof(npy_longlong); > > > > > } >} ># 691 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_aligned_cast_longlong_to_uint( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ ># 781 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > while (N--) { ># 814 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > *(npy_uint *)dst = ((npy_uint)*(npy_longlong *)src); ># 833 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst += dst_stride; > src += src_stride; > > } >} ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_cast_longlong_to_uint( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ > > > > npy_longlong src_value; > > > > > npy_uint dst_value; > > > > > while (N--) { ># 790 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(&src_value, src, sizeof(src_value)); ># 812 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst_value = ((npy_uint)src_value); ># 826 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(dst, &dst_value, sizeof(dst_value)); > > > > > > > dst += dst_stride; > src += src_stride; > > } >} ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_aligned_contig_cast_longlong_to_uint( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ ># 781 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > while (N--) { ># 814 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > *(npy_uint *)dst = ((npy_uint)*(npy_longlong *)src); ># 830 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst += sizeof(npy_uint); > src += sizeof(npy_longlong); > > > > > } >} ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_contig_cast_longlong_to_uint( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ > > > > npy_longlong src_value; > > > > > npy_uint dst_value; > > > > > while (N--) { ># 790 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(&src_value, src, sizeof(src_value)); ># 812 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst_value = ((npy_uint)src_value); ># 826 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(dst, &dst_value, sizeof(dst_value)); > > > > dst += sizeof(npy_uint); > src += sizeof(npy_longlong); > > > > > } >} ># 691 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_aligned_cast_longlong_to_ulong( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ ># 781 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > while (N--) { ># 814 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > *(npy_ulong *)dst = ((npy_ulong)*(npy_longlong *)src); ># 833 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst += dst_stride; > src += src_stride; > > } >} ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_cast_longlong_to_ulong( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ > > > > npy_longlong src_value; > > > > > npy_ulong dst_value; > > > > > while (N--) { ># 790 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(&src_value, src, sizeof(src_value)); ># 812 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst_value = ((npy_ulong)src_value); ># 826 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(dst, &dst_value, sizeof(dst_value)); > > > > > > > dst += dst_stride; > src += src_stride; > > } >} ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_aligned_contig_cast_longlong_to_ulong( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ ># 781 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > while (N--) { ># 814 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > *(npy_ulong *)dst = ((npy_ulong)*(npy_longlong *)src); ># 830 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst += sizeof(npy_ulong); > src += sizeof(npy_longlong); > > > > > } >} ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_contig_cast_longlong_to_ulong( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ > > > > npy_longlong src_value; > > > > > npy_ulong dst_value; > > > > > while (N--) { ># 790 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(&src_value, src, sizeof(src_value)); ># 812 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst_value = ((npy_ulong)src_value); ># 826 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(dst, &dst_value, sizeof(dst_value)); > > > > dst += sizeof(npy_ulong); > src += sizeof(npy_longlong); > > > > > } >} ># 691 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_aligned_cast_longlong_to_ulonglong( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ ># 781 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > while (N--) { ># 814 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > *(npy_ulonglong *)dst = ((npy_ulonglong)*(npy_longlong *)src); ># 833 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst += dst_stride; > src += src_stride; > > } >} ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_cast_longlong_to_ulonglong( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ > > > > npy_longlong src_value; > > > > > npy_ulonglong dst_value; > > > > > while (N--) { ># 790 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(&src_value, src, sizeof(src_value)); ># 812 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst_value = ((npy_ulonglong)src_value); ># 826 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(dst, &dst_value, sizeof(dst_value)); > > > > > > > dst += dst_stride; > src += src_stride; > > } >} ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_aligned_contig_cast_longlong_to_ulonglong( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ ># 781 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > while (N--) { ># 814 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > *(npy_ulonglong *)dst = ((npy_ulonglong)*(npy_longlong *)src); ># 830 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst += sizeof(npy_ulonglong); > src += sizeof(npy_longlong); > > > > > } >} ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_contig_cast_longlong_to_ulonglong( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ > > > > npy_longlong src_value; > > > > > npy_ulonglong dst_value; > > > > > while (N--) { ># 790 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(&src_value, src, sizeof(src_value)); ># 812 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst_value = ((npy_ulonglong)src_value); ># 826 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(dst, &dst_value, sizeof(dst_value)); > > > > dst += sizeof(npy_ulonglong); > src += sizeof(npy_longlong); > > > > > } >} ># 691 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_aligned_cast_longlong_to_byte( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ ># 781 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > while (N--) { ># 814 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > *(npy_byte *)dst = ((npy_byte)*(npy_longlong *)src); ># 833 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst += dst_stride; > src += src_stride; > > } >} ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_cast_longlong_to_byte( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ > > > > npy_longlong src_value; > > > > > npy_byte dst_value; > > > > > while (N--) { ># 790 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(&src_value, src, sizeof(src_value)); ># 812 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst_value = ((npy_byte)src_value); ># 826 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(dst, &dst_value, sizeof(dst_value)); > > > > > > > dst += dst_stride; > src += src_stride; > > } >} ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_aligned_contig_cast_longlong_to_byte( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ ># 781 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > while (N--) { ># 814 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > *(npy_byte *)dst = ((npy_byte)*(npy_longlong *)src); ># 830 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst += sizeof(npy_byte); > src += sizeof(npy_longlong); > > > > > } >} ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_contig_cast_longlong_to_byte( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ > > > > npy_longlong src_value; > > > > > npy_byte dst_value; > > > > > while (N--) { ># 790 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(&src_value, src, sizeof(src_value)); ># 812 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst_value = ((npy_byte)src_value); ># 826 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(dst, &dst_value, sizeof(dst_value)); > > > > dst += sizeof(npy_byte); > src += sizeof(npy_longlong); > > > > > } >} ># 691 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_aligned_cast_longlong_to_short( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ ># 781 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > while (N--) { ># 814 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > *(npy_short *)dst = ((npy_short)*(npy_longlong *)src); ># 833 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst += dst_stride; > src += src_stride; > > } >} ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_cast_longlong_to_short( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ > > > > npy_longlong src_value; > > > > > npy_short dst_value; > > > > > while (N--) { ># 790 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(&src_value, src, sizeof(src_value)); ># 812 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst_value = ((npy_short)src_value); ># 826 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(dst, &dst_value, sizeof(dst_value)); > > > > > > > dst += dst_stride; > src += src_stride; > > } >} ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_aligned_contig_cast_longlong_to_short( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ ># 781 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > while (N--) { ># 814 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > *(npy_short *)dst = ((npy_short)*(npy_longlong *)src); ># 830 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst += sizeof(npy_short); > src += sizeof(npy_longlong); > > > > > } >} ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_contig_cast_longlong_to_short( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ > > > > npy_longlong src_value; > > > > > npy_short dst_value; > > > > > while (N--) { ># 790 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(&src_value, src, sizeof(src_value)); ># 812 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst_value = ((npy_short)src_value); ># 826 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(dst, &dst_value, sizeof(dst_value)); > > > > dst += sizeof(npy_short); > src += sizeof(npy_longlong); > > > > > } >} ># 691 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_aligned_cast_longlong_to_int( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ ># 781 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > while (N--) { ># 814 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > *(npy_int *)dst = ((npy_int)*(npy_longlong *)src); ># 833 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst += dst_stride; > src += src_stride; > > } >} ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_cast_longlong_to_int( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ > > > > npy_longlong src_value; > > > > > npy_int dst_value; > > > > > while (N--) { ># 790 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(&src_value, src, sizeof(src_value)); ># 812 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst_value = ((npy_int)src_value); ># 826 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(dst, &dst_value, sizeof(dst_value)); > > > > > > > dst += dst_stride; > src += src_stride; > > } >} ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_aligned_contig_cast_longlong_to_int( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ ># 781 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > while (N--) { ># 814 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > *(npy_int *)dst = ((npy_int)*(npy_longlong *)src); ># 830 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst += sizeof(npy_int); > src += sizeof(npy_longlong); > > > > > } >} ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_contig_cast_longlong_to_int( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ > > > > npy_longlong src_value; > > > > > npy_int dst_value; > > > > > while (N--) { ># 790 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(&src_value, src, sizeof(src_value)); ># 812 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst_value = ((npy_int)src_value); ># 826 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(dst, &dst_value, sizeof(dst_value)); > > > > dst += sizeof(npy_int); > src += sizeof(npy_longlong); > > > > > } >} ># 691 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_aligned_cast_longlong_to_long( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ ># 781 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > while (N--) { ># 814 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > *(npy_long *)dst = ((npy_long)*(npy_longlong *)src); ># 833 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst += dst_stride; > src += src_stride; > > } >} ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_cast_longlong_to_long( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ > > > > npy_longlong src_value; > > > > > npy_long dst_value; > > > > > while (N--) { ># 790 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(&src_value, src, sizeof(src_value)); ># 812 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst_value = ((npy_long)src_value); ># 826 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(dst, &dst_value, sizeof(dst_value)); > > > > > > > dst += dst_stride; > src += src_stride; > > } >} ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_aligned_contig_cast_longlong_to_long( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ ># 781 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > while (N--) { ># 814 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > *(npy_long *)dst = ((npy_long)*(npy_longlong *)src); ># 830 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst += sizeof(npy_long); > src += sizeof(npy_longlong); > > > > > } >} ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_contig_cast_longlong_to_long( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ > > > > npy_longlong src_value; > > > > > npy_long dst_value; > > > > > while (N--) { ># 790 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(&src_value, src, sizeof(src_value)); ># 812 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst_value = ((npy_long)src_value); ># 826 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(dst, &dst_value, sizeof(dst_value)); > > > > dst += sizeof(npy_long); > src += sizeof(npy_longlong); > > > > > } >} ># 691 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_aligned_cast_longlong_to_longlong( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ ># 781 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > while (N--) { ># 814 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > *(npy_longlong *)dst = ((npy_longlong)*(npy_longlong *)src); ># 833 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst += dst_stride; > src += src_stride; > > } >} ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_cast_longlong_to_longlong( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ > > > > npy_longlong src_value; > > > > > npy_longlong dst_value; > > > > > while (N--) { ># 790 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(&src_value, src, sizeof(src_value)); ># 812 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst_value = ((npy_longlong)src_value); ># 826 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(dst, &dst_value, sizeof(dst_value)); > > > > > > > dst += dst_stride; > src += src_stride; > > } >} ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_aligned_contig_cast_longlong_to_longlong( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ ># 781 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > while (N--) { ># 814 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > *(npy_longlong *)dst = ((npy_longlong)*(npy_longlong *)src); ># 830 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst += sizeof(npy_longlong); > src += sizeof(npy_longlong); > > > > > } >} ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_contig_cast_longlong_to_longlong( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ > > > > npy_longlong src_value; > > > > > npy_longlong dst_value; > > > > > while (N--) { ># 790 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(&src_value, src, sizeof(src_value)); ># 812 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst_value = ((npy_longlong)src_value); ># 826 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(dst, &dst_value, sizeof(dst_value)); > > > > dst += sizeof(npy_longlong); > src += sizeof(npy_longlong); > > > > > } >} ># 691 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_aligned_cast_longlong_to_half( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ ># 781 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > while (N--) { ># 814 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > *(npy_half *)dst = npy_float_to_half((float)*(npy_longlong *)src); ># 833 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst += dst_stride; > src += src_stride; > > } >} ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_cast_longlong_to_half( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ > > > > npy_longlong src_value; > > > > > npy_half dst_value; > > > > > while (N--) { ># 790 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(&src_value, src, sizeof(src_value)); ># 812 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst_value = npy_float_to_half((float)src_value); ># 826 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(dst, &dst_value, sizeof(dst_value)); > > > > > > > dst += dst_stride; > src += src_stride; > > } >} ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_aligned_contig_cast_longlong_to_half( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ ># 781 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > while (N--) { ># 814 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > *(npy_half *)dst = npy_float_to_half((float)*(npy_longlong *)src); ># 830 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst += sizeof(npy_half); > src += sizeof(npy_longlong); > > > > > } >} ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_contig_cast_longlong_to_half( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ > > > > npy_longlong src_value; > > > > > npy_half dst_value; > > > > > while (N--) { ># 790 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(&src_value, src, sizeof(src_value)); ># 812 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst_value = npy_float_to_half((float)src_value); ># 826 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(dst, &dst_value, sizeof(dst_value)); > > > > dst += sizeof(npy_half); > src += sizeof(npy_longlong); > > > > > } >} ># 691 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_aligned_cast_longlong_to_float( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ ># 781 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > while (N--) { ># 814 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > *(npy_float *)dst = ((npy_float)*(npy_longlong *)src); ># 833 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst += dst_stride; > src += src_stride; > > } >} ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_cast_longlong_to_float( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ > > > > npy_longlong src_value; > > > > > npy_float dst_value; > > > > > while (N--) { ># 790 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(&src_value, src, sizeof(src_value)); ># 812 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst_value = ((npy_float)src_value); ># 826 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(dst, &dst_value, sizeof(dst_value)); > > > > > > > dst += dst_stride; > src += src_stride; > > } >} ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_aligned_contig_cast_longlong_to_float( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ ># 781 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > while (N--) { ># 814 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > *(npy_float *)dst = ((npy_float)*(npy_longlong *)src); ># 830 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst += sizeof(npy_float); > src += sizeof(npy_longlong); > > > > > } >} ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_contig_cast_longlong_to_float( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ > > > > npy_longlong src_value; > > > > > npy_float dst_value; > > > > > while (N--) { ># 790 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(&src_value, src, sizeof(src_value)); ># 812 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst_value = ((npy_float)src_value); ># 826 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(dst, &dst_value, sizeof(dst_value)); > > > > dst += sizeof(npy_float); > src += sizeof(npy_longlong); > > > > > } >} ># 691 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_aligned_cast_longlong_to_double( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ ># 781 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > while (N--) { ># 814 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > *(npy_double *)dst = ((npy_double)*(npy_longlong *)src); ># 833 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst += dst_stride; > src += src_stride; > > } >} ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_cast_longlong_to_double( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ > > > > npy_longlong src_value; > > > > > npy_double dst_value; > > > > > while (N--) { ># 790 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(&src_value, src, sizeof(src_value)); ># 812 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst_value = ((npy_double)src_value); ># 826 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(dst, &dst_value, sizeof(dst_value)); > > > > > > > dst += dst_stride; > src += src_stride; > > } >} ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_aligned_contig_cast_longlong_to_double( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ ># 781 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > while (N--) { ># 814 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > *(npy_double *)dst = ((npy_double)*(npy_longlong *)src); ># 830 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst += sizeof(npy_double); > src += sizeof(npy_longlong); > > > > > } >} ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_contig_cast_longlong_to_double( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ > > > > npy_longlong src_value; > > > > > npy_double dst_value; > > > > > while (N--) { ># 790 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(&src_value, src, sizeof(src_value)); ># 812 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst_value = ((npy_double)src_value); ># 826 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(dst, &dst_value, sizeof(dst_value)); > > > > dst += sizeof(npy_double); > src += sizeof(npy_longlong); > > > > > } >} ># 691 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_aligned_cast_longlong_to_longdouble( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ ># 781 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > while (N--) { ># 814 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > *(npy_longdouble *)dst = ((npy_longdouble)*(npy_longlong *)src); ># 833 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst += dst_stride; > src += src_stride; > > } >} ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_cast_longlong_to_longdouble( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ > > > > npy_longlong src_value; > > > > > npy_longdouble dst_value; > > > > > while (N--) { ># 790 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(&src_value, src, sizeof(src_value)); ># 812 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst_value = ((npy_longdouble)src_value); ># 826 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(dst, &dst_value, sizeof(dst_value)); > > > > > > > dst += dst_stride; > src += src_stride; > > } >} ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_aligned_contig_cast_longlong_to_longdouble( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ ># 781 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > while (N--) { ># 814 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > *(npy_longdouble *)dst = ((npy_longdouble)*(npy_longlong *)src); ># 830 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst += sizeof(npy_longdouble); > src += sizeof(npy_longlong); > > > > > } >} ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_contig_cast_longlong_to_longdouble( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ > > > > npy_longlong src_value; > > > > > npy_longdouble dst_value; > > > > > while (N--) { ># 790 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(&src_value, src, sizeof(src_value)); ># 812 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst_value = ((npy_longdouble)src_value); ># 826 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(dst, &dst_value, sizeof(dst_value)); > > > > dst += sizeof(npy_longdouble); > src += sizeof(npy_longlong); > > > > > } >} ># 691 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_aligned_cast_longlong_to_cfloat( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ > > > > > > > npy_float dst_value[2]; > > > > > > > while (N--) { ># 808 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst_value[0] = ((npy_float)*(npy_longlong *)src); > > dst_value[1] = 0; ># 820 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > ((npy_float *)dst)[0] = dst_value[0]; > ((npy_float *)dst)[1] = dst_value[1]; ># 833 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst += dst_stride; > src += src_stride; > > } >} ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_cast_longlong_to_cfloat( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ > > > > npy_longlong src_value; > > > npy_float dst_value[2]; > > > > > > > while (N--) { ># 790 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(&src_value, src, sizeof(src_value)); ># 806 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst_value[0] = ((npy_float)src_value); > > > > dst_value[1] = 0; ># 826 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(dst, &dst_value, sizeof(dst_value)); > > > > > > > dst += dst_stride; > src += src_stride; > > } >} ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_aligned_contig_cast_longlong_to_cfloat( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ > > > > > > > npy_float dst_value[2]; > > > > > > > while (N--) { ># 808 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst_value[0] = ((npy_float)*(npy_longlong *)src); > > dst_value[1] = 0; ># 820 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > ((npy_float *)dst)[0] = dst_value[0]; > ((npy_float *)dst)[1] = dst_value[1]; ># 830 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst += sizeof(npy_cfloat); > src += sizeof(npy_longlong); > > > > > } >} ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_contig_cast_longlong_to_cfloat( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ > > > > npy_longlong src_value; > > > npy_float dst_value[2]; > > > > > > > while (N--) { ># 790 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(&src_value, src, sizeof(src_value)); ># 806 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst_value[0] = ((npy_float)src_value); > > > > dst_value[1] = 0; ># 826 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(dst, &dst_value, sizeof(dst_value)); > > > > dst += sizeof(npy_cfloat); > src += sizeof(npy_longlong); > > > > > } >} ># 691 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_aligned_cast_longlong_to_cdouble( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ > > > > > > > npy_double dst_value[2]; > > > > > > > while (N--) { ># 808 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst_value[0] = ((npy_double)*(npy_longlong *)src); > > dst_value[1] = 0; ># 820 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > ((npy_double *)dst)[0] = dst_value[0]; > ((npy_double *)dst)[1] = dst_value[1]; ># 833 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst += dst_stride; > src += src_stride; > > } >} ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_cast_longlong_to_cdouble( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ > > > > npy_longlong src_value; > > > npy_double dst_value[2]; > > > > > > > while (N--) { ># 790 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(&src_value, src, sizeof(src_value)); ># 806 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst_value[0] = ((npy_double)src_value); > > > > dst_value[1] = 0; ># 826 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(dst, &dst_value, sizeof(dst_value)); > > > > > > > dst += dst_stride; > src += src_stride; > > } >} ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_aligned_contig_cast_longlong_to_cdouble( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ > > > > > > > npy_double dst_value[2]; > > > > > > > while (N--) { ># 808 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst_value[0] = ((npy_double)*(npy_longlong *)src); > > dst_value[1] = 0; ># 820 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > ((npy_double *)dst)[0] = dst_value[0]; > ((npy_double *)dst)[1] = dst_value[1]; ># 830 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst += sizeof(npy_cdouble); > src += sizeof(npy_longlong); > > > > > } >} ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_contig_cast_longlong_to_cdouble( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ > > > > npy_longlong src_value; > > > npy_double dst_value[2]; > > > > > > > while (N--) { ># 790 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(&src_value, src, sizeof(src_value)); ># 806 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst_value[0] = ((npy_double)src_value); > > > > dst_value[1] = 0; ># 826 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(dst, &dst_value, sizeof(dst_value)); > > > > dst += sizeof(npy_cdouble); > src += sizeof(npy_longlong); > > > > > } >} ># 691 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_aligned_cast_longlong_to_clongdouble( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ > > > > > > > npy_longdouble dst_value[2]; > > > > > > > while (N--) { ># 808 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst_value[0] = ((npy_longdouble)*(npy_longlong *)src); > > dst_value[1] = 0; ># 820 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > ((npy_longdouble *)dst)[0] = dst_value[0]; > ((npy_longdouble *)dst)[1] = dst_value[1]; ># 833 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst += dst_stride; > src += src_stride; > > } >} ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_cast_longlong_to_clongdouble( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ > > > > npy_longlong src_value; > > > npy_longdouble dst_value[2]; > > > > > > > while (N--) { ># 790 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(&src_value, src, sizeof(src_value)); ># 806 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst_value[0] = ((npy_longdouble)src_value); > > > > dst_value[1] = 0; ># 826 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(dst, &dst_value, sizeof(dst_value)); > > > > > > > dst += dst_stride; > src += src_stride; > > } >} ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_aligned_contig_cast_longlong_to_clongdouble( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ > > > > > > > npy_longdouble dst_value[2]; > > > > > > > while (N--) { ># 808 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst_value[0] = ((npy_longdouble)*(npy_longlong *)src); > > dst_value[1] = 0; ># 820 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > ((npy_longdouble *)dst)[0] = dst_value[0]; > ((npy_longdouble *)dst)[1] = dst_value[1]; ># 830 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst += sizeof(npy_clongdouble); > src += sizeof(npy_longlong); > > > > > } >} ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_contig_cast_longlong_to_clongdouble( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ > > > > npy_longlong src_value; > > > npy_longdouble dst_value[2]; > > > > > > > while (N--) { ># 790 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(&src_value, src, sizeof(src_value)); ># 806 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst_value[0] = ((npy_longdouble)src_value); > > > > dst_value[1] = 0; ># 826 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(dst, &dst_value, sizeof(dst_value)); > > > > dst += sizeof(npy_clongdouble); > src += sizeof(npy_longlong); > > > > > } >} ># 667 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 691 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_aligned_cast_half_to_bool( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ ># 781 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > while (N--) { ># 814 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > *(npy_bool *)dst = ((npy_bool)!npy_half_iszero(*(npy_half *)src)); ># 833 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst += dst_stride; > src += src_stride; > > } >} ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_cast_half_to_bool( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ > > > > npy_half src_value; > > > > > npy_bool dst_value; > > > > > while (N--) { ># 790 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(&src_value, src, sizeof(src_value)); ># 812 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst_value = ((npy_bool)!npy_half_iszero(src_value)); ># 826 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(dst, &dst_value, sizeof(dst_value)); > > > > > > > dst += dst_stride; > src += src_stride; > > } >} ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_aligned_contig_cast_half_to_bool( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ ># 781 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > while (N--) { ># 814 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > *(npy_bool *)dst = ((npy_bool)!npy_half_iszero(*(npy_half *)src)); ># 830 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst += sizeof(npy_bool); > src += sizeof(npy_half); > > > > > } >} ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_contig_cast_half_to_bool( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ > > > > npy_half src_value; > > > > > npy_bool dst_value; > > > > > while (N--) { ># 790 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(&src_value, src, sizeof(src_value)); ># 812 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst_value = ((npy_bool)!npy_half_iszero(src_value)); ># 826 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(dst, &dst_value, sizeof(dst_value)); > > > > dst += sizeof(npy_bool); > src += sizeof(npy_half); > > > > > } >} ># 691 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_aligned_cast_half_to_ubyte( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ ># 781 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > while (N--) { ># 814 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > *(npy_ubyte *)dst = ((npy_ubyte)npy_half_to_float(*(npy_half *)src)); ># 833 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst += dst_stride; > src += src_stride; > > } >} ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_cast_half_to_ubyte( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ > > > > npy_half src_value; > > > > > npy_ubyte dst_value; > > > > > while (N--) { ># 790 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(&src_value, src, sizeof(src_value)); ># 812 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst_value = ((npy_ubyte)npy_half_to_float(src_value)); ># 826 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(dst, &dst_value, sizeof(dst_value)); > > > > > > > dst += dst_stride; > src += src_stride; > > } >} ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_aligned_contig_cast_half_to_ubyte( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ ># 781 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > while (N--) { ># 814 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > *(npy_ubyte *)dst = ((npy_ubyte)npy_half_to_float(*(npy_half *)src)); ># 830 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst += sizeof(npy_ubyte); > src += sizeof(npy_half); > > > > > } >} ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_contig_cast_half_to_ubyte( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ > > > > npy_half src_value; > > > > > npy_ubyte dst_value; > > > > > while (N--) { ># 790 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(&src_value, src, sizeof(src_value)); ># 812 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst_value = ((npy_ubyte)npy_half_to_float(src_value)); ># 826 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(dst, &dst_value, sizeof(dst_value)); > > > > dst += sizeof(npy_ubyte); > src += sizeof(npy_half); > > > > > } >} ># 691 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_aligned_cast_half_to_ushort( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ ># 781 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > while (N--) { ># 814 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > *(npy_ushort *)dst = ((npy_ushort)npy_half_to_float(*(npy_half *)src)); ># 833 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst += dst_stride; > src += src_stride; > > } >} ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_cast_half_to_ushort( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ > > > > npy_half src_value; > > > > > npy_ushort dst_value; > > > > > while (N--) { ># 790 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(&src_value, src, sizeof(src_value)); ># 812 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst_value = ((npy_ushort)npy_half_to_float(src_value)); ># 826 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(dst, &dst_value, sizeof(dst_value)); > > > > > > > dst += dst_stride; > src += src_stride; > > } >} ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_aligned_contig_cast_half_to_ushort( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ ># 781 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > while (N--) { ># 814 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > *(npy_ushort *)dst = ((npy_ushort)npy_half_to_float(*(npy_half *)src)); ># 830 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst += sizeof(npy_ushort); > src += sizeof(npy_half); > > > > > } >} ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_contig_cast_half_to_ushort( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ > > > > npy_half src_value; > > > > > npy_ushort dst_value; > > > > > while (N--) { ># 790 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(&src_value, src, sizeof(src_value)); ># 812 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst_value = ((npy_ushort)npy_half_to_float(src_value)); ># 826 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(dst, &dst_value, sizeof(dst_value)); > > > > dst += sizeof(npy_ushort); > src += sizeof(npy_half); > > > > > } >} ># 691 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_aligned_cast_half_to_uint( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ ># 781 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > while (N--) { ># 814 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > *(npy_uint *)dst = ((npy_uint)npy_half_to_float(*(npy_half *)src)); ># 833 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst += dst_stride; > src += src_stride; > > } >} ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_cast_half_to_uint( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ > > > > npy_half src_value; > > > > > npy_uint dst_value; > > > > > while (N--) { ># 790 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(&src_value, src, sizeof(src_value)); ># 812 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst_value = ((npy_uint)npy_half_to_float(src_value)); ># 826 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(dst, &dst_value, sizeof(dst_value)); > > > > > > > dst += dst_stride; > src += src_stride; > > } >} ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_aligned_contig_cast_half_to_uint( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ ># 781 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > while (N--) { ># 814 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > *(npy_uint *)dst = ((npy_uint)npy_half_to_float(*(npy_half *)src)); ># 830 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst += sizeof(npy_uint); > src += sizeof(npy_half); > > > > > } >} ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_contig_cast_half_to_uint( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ > > > > npy_half src_value; > > > > > npy_uint dst_value; > > > > > while (N--) { ># 790 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(&src_value, src, sizeof(src_value)); ># 812 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst_value = ((npy_uint)npy_half_to_float(src_value)); ># 826 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(dst, &dst_value, sizeof(dst_value)); > > > > dst += sizeof(npy_uint); > src += sizeof(npy_half); > > > > > } >} ># 691 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_aligned_cast_half_to_ulong( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ ># 781 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > while (N--) { ># 814 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > *(npy_ulong *)dst = ((npy_ulong)npy_half_to_float(*(npy_half *)src)); ># 833 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst += dst_stride; > src += src_stride; > > } >} ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_cast_half_to_ulong( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ > > > > npy_half src_value; > > > > > npy_ulong dst_value; > > > > > while (N--) { ># 790 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(&src_value, src, sizeof(src_value)); ># 812 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst_value = ((npy_ulong)npy_half_to_float(src_value)); ># 826 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(dst, &dst_value, sizeof(dst_value)); > > > > > > > dst += dst_stride; > src += src_stride; > > } >} ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_aligned_contig_cast_half_to_ulong( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ ># 781 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > while (N--) { ># 814 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > *(npy_ulong *)dst = ((npy_ulong)npy_half_to_float(*(npy_half *)src)); ># 830 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst += sizeof(npy_ulong); > src += sizeof(npy_half); > > > > > } >} ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_contig_cast_half_to_ulong( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ > > > > npy_half src_value; > > > > > npy_ulong dst_value; > > > > > while (N--) { ># 790 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(&src_value, src, sizeof(src_value)); ># 812 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst_value = ((npy_ulong)npy_half_to_float(src_value)); ># 826 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(dst, &dst_value, sizeof(dst_value)); > > > > dst += sizeof(npy_ulong); > src += sizeof(npy_half); > > > > > } >} ># 691 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_aligned_cast_half_to_ulonglong( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ ># 781 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > while (N--) { ># 814 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > *(npy_ulonglong *)dst = ((npy_ulonglong)npy_half_to_float(*(npy_half *)src)); ># 833 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst += dst_stride; > src += src_stride; > > } >} ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_cast_half_to_ulonglong( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ > > > > npy_half src_value; > > > > > npy_ulonglong dst_value; > > > > > while (N--) { ># 790 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(&src_value, src, sizeof(src_value)); ># 812 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst_value = ((npy_ulonglong)npy_half_to_float(src_value)); ># 826 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(dst, &dst_value, sizeof(dst_value)); > > > > > > > dst += dst_stride; > src += src_stride; > > } >} ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_aligned_contig_cast_half_to_ulonglong( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ ># 781 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > while (N--) { ># 814 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > *(npy_ulonglong *)dst = ((npy_ulonglong)npy_half_to_float(*(npy_half *)src)); ># 830 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst += sizeof(npy_ulonglong); > src += sizeof(npy_half); > > > > > } >} ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_contig_cast_half_to_ulonglong( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ > > > > npy_half src_value; > > > > > npy_ulonglong dst_value; > > > > > while (N--) { ># 790 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(&src_value, src, sizeof(src_value)); ># 812 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst_value = ((npy_ulonglong)npy_half_to_float(src_value)); ># 826 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(dst, &dst_value, sizeof(dst_value)); > > > > dst += sizeof(npy_ulonglong); > src += sizeof(npy_half); > > > > > } >} ># 691 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_aligned_cast_half_to_byte( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ ># 781 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > while (N--) { ># 814 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > *(npy_byte *)dst = ((npy_byte)npy_half_to_float(*(npy_half *)src)); ># 833 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst += dst_stride; > src += src_stride; > > } >} ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_cast_half_to_byte( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ > > > > npy_half src_value; > > > > > npy_byte dst_value; > > > > > while (N--) { ># 790 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(&src_value, src, sizeof(src_value)); ># 812 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst_value = ((npy_byte)npy_half_to_float(src_value)); ># 826 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(dst, &dst_value, sizeof(dst_value)); > > > > > > > dst += dst_stride; > src += src_stride; > > } >} ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_aligned_contig_cast_half_to_byte( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ ># 781 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > while (N--) { ># 814 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > *(npy_byte *)dst = ((npy_byte)npy_half_to_float(*(npy_half *)src)); ># 830 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst += sizeof(npy_byte); > src += sizeof(npy_half); > > > > > } >} ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_contig_cast_half_to_byte( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ > > > > npy_half src_value; > > > > > npy_byte dst_value; > > > > > while (N--) { ># 790 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(&src_value, src, sizeof(src_value)); ># 812 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst_value = ((npy_byte)npy_half_to_float(src_value)); ># 826 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(dst, &dst_value, sizeof(dst_value)); > > > > dst += sizeof(npy_byte); > src += sizeof(npy_half); > > > > > } >} ># 691 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_aligned_cast_half_to_short( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ ># 781 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > while (N--) { ># 814 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > *(npy_short *)dst = ((npy_short)npy_half_to_float(*(npy_half *)src)); ># 833 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst += dst_stride; > src += src_stride; > > } >} ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_cast_half_to_short( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ > > > > npy_half src_value; > > > > > npy_short dst_value; > > > > > while (N--) { ># 790 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(&src_value, src, sizeof(src_value)); ># 812 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst_value = ((npy_short)npy_half_to_float(src_value)); ># 826 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(dst, &dst_value, sizeof(dst_value)); > > > > > > > dst += dst_stride; > src += src_stride; > > } >} ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_aligned_contig_cast_half_to_short( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ ># 781 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > while (N--) { ># 814 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > *(npy_short *)dst = ((npy_short)npy_half_to_float(*(npy_half *)src)); ># 830 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst += sizeof(npy_short); > src += sizeof(npy_half); > > > > > } >} ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_contig_cast_half_to_short( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ > > > > npy_half src_value; > > > > > npy_short dst_value; > > > > > while (N--) { ># 790 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(&src_value, src, sizeof(src_value)); ># 812 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst_value = ((npy_short)npy_half_to_float(src_value)); ># 826 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(dst, &dst_value, sizeof(dst_value)); > > > > dst += sizeof(npy_short); > src += sizeof(npy_half); > > > > > } >} ># 691 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_aligned_cast_half_to_int( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ ># 781 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > while (N--) { ># 814 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > *(npy_int *)dst = ((npy_int)npy_half_to_float(*(npy_half *)src)); ># 833 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst += dst_stride; > src += src_stride; > > } >} ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_cast_half_to_int( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ > > > > npy_half src_value; > > > > > npy_int dst_value; > > > > > while (N--) { ># 790 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(&src_value, src, sizeof(src_value)); ># 812 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst_value = ((npy_int)npy_half_to_float(src_value)); ># 826 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(dst, &dst_value, sizeof(dst_value)); > > > > > > > dst += dst_stride; > src += src_stride; > > } >} ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_aligned_contig_cast_half_to_int( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ ># 781 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > while (N--) { ># 814 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > *(npy_int *)dst = ((npy_int)npy_half_to_float(*(npy_half *)src)); ># 830 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst += sizeof(npy_int); > src += sizeof(npy_half); > > > > > } >} ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_contig_cast_half_to_int( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ > > > > npy_half src_value; > > > > > npy_int dst_value; > > > > > while (N--) { ># 790 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(&src_value, src, sizeof(src_value)); ># 812 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst_value = ((npy_int)npy_half_to_float(src_value)); ># 826 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(dst, &dst_value, sizeof(dst_value)); > > > > dst += sizeof(npy_int); > src += sizeof(npy_half); > > > > > } >} ># 691 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_aligned_cast_half_to_long( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ ># 781 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > while (N--) { ># 814 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > *(npy_long *)dst = ((npy_long)npy_half_to_float(*(npy_half *)src)); ># 833 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst += dst_stride; > src += src_stride; > > } >} ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_cast_half_to_long( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ > > > > npy_half src_value; > > > > > npy_long dst_value; > > > > > while (N--) { ># 790 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(&src_value, src, sizeof(src_value)); ># 812 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst_value = ((npy_long)npy_half_to_float(src_value)); ># 826 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(dst, &dst_value, sizeof(dst_value)); > > > > > > > dst += dst_stride; > src += src_stride; > > } >} ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_aligned_contig_cast_half_to_long( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ ># 781 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > while (N--) { ># 814 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > *(npy_long *)dst = ((npy_long)npy_half_to_float(*(npy_half *)src)); ># 830 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst += sizeof(npy_long); > src += sizeof(npy_half); > > > > > } >} ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_contig_cast_half_to_long( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ > > > > npy_half src_value; > > > > > npy_long dst_value; > > > > > while (N--) { ># 790 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(&src_value, src, sizeof(src_value)); ># 812 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst_value = ((npy_long)npy_half_to_float(src_value)); ># 826 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(dst, &dst_value, sizeof(dst_value)); > > > > dst += sizeof(npy_long); > src += sizeof(npy_half); > > > > > } >} ># 691 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_aligned_cast_half_to_longlong( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ ># 781 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > while (N--) { ># 814 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > *(npy_longlong *)dst = ((npy_longlong)npy_half_to_float(*(npy_half *)src)); ># 833 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst += dst_stride; > src += src_stride; > > } >} ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_cast_half_to_longlong( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ > > > > npy_half src_value; > > > > > npy_longlong dst_value; > > > > > while (N--) { ># 790 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(&src_value, src, sizeof(src_value)); ># 812 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst_value = ((npy_longlong)npy_half_to_float(src_value)); ># 826 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(dst, &dst_value, sizeof(dst_value)); > > > > > > > dst += dst_stride; > src += src_stride; > > } >} ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_aligned_contig_cast_half_to_longlong( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ ># 781 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > while (N--) { ># 814 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > *(npy_longlong *)dst = ((npy_longlong)npy_half_to_float(*(npy_half *)src)); ># 830 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst += sizeof(npy_longlong); > src += sizeof(npy_half); > > > > > } >} ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_contig_cast_half_to_longlong( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ > > > > npy_half src_value; > > > > > npy_longlong dst_value; > > > > > while (N--) { ># 790 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(&src_value, src, sizeof(src_value)); ># 812 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst_value = ((npy_longlong)npy_half_to_float(src_value)); ># 826 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(dst, &dst_value, sizeof(dst_value)); > > > > dst += sizeof(npy_longlong); > src += sizeof(npy_half); > > > > > } >} ># 691 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_aligned_cast_half_to_half( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ ># 781 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > while (N--) { ># 814 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > *(npy_half *)dst = (*(npy_half *)src); ># 833 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst += dst_stride; > src += src_stride; > > } >} ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_cast_half_to_half( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ > > > > npy_half src_value; > > > > > npy_half dst_value; > > > > > while (N--) { ># 790 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(&src_value, src, sizeof(src_value)); ># 812 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst_value = (src_value); ># 826 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(dst, &dst_value, sizeof(dst_value)); > > > > > > > dst += dst_stride; > src += src_stride; > > } >} ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_aligned_contig_cast_half_to_half( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ ># 781 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > while (N--) { ># 814 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > *(npy_half *)dst = (*(npy_half *)src); ># 830 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst += sizeof(npy_half); > src += sizeof(npy_half); > > > > > } >} ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_contig_cast_half_to_half( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ > > > > npy_half src_value; > > > > > npy_half dst_value; > > > > > while (N--) { ># 790 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(&src_value, src, sizeof(src_value)); ># 812 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst_value = (src_value); ># 826 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(dst, &dst_value, sizeof(dst_value)); > > > > dst += sizeof(npy_half); > src += sizeof(npy_half); > > > > > } >} ># 691 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_aligned_cast_half_to_float( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ ># 781 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > while (N--) { ># 814 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > *(npy_uint32 *)dst = npy_halfbits_to_floatbits(*(npy_half *)src); ># 833 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst += dst_stride; > src += src_stride; > > } >} ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_cast_half_to_float( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ > > > > npy_half src_value; > > > > > npy_uint32 dst_value; > > > > > while (N--) { ># 790 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(&src_value, src, sizeof(src_value)); ># 812 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst_value = npy_halfbits_to_floatbits(src_value); ># 826 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(dst, &dst_value, sizeof(dst_value)); > > > > > > > dst += dst_stride; > src += src_stride; > > } >} ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_aligned_contig_cast_half_to_float( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ ># 781 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > while (N--) { ># 814 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > *(npy_uint32 *)dst = npy_halfbits_to_floatbits(*(npy_half *)src); ># 830 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst += sizeof(npy_float); > src += sizeof(npy_half); > > > > > } >} ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_contig_cast_half_to_float( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ > > > > npy_half src_value; > > > > > npy_uint32 dst_value; > > > > > while (N--) { ># 790 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(&src_value, src, sizeof(src_value)); ># 812 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst_value = npy_halfbits_to_floatbits(src_value); ># 826 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(dst, &dst_value, sizeof(dst_value)); > > > > dst += sizeof(npy_float); > src += sizeof(npy_half); > > > > > } >} ># 691 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_aligned_cast_half_to_double( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ ># 781 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > while (N--) { ># 814 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > *(npy_uint64 *)dst = npy_halfbits_to_doublebits(*(npy_half *)src); ># 833 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst += dst_stride; > src += src_stride; > > } >} ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_cast_half_to_double( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ > > > > npy_half src_value; > > > > > npy_uint64 dst_value; > > > > > while (N--) { ># 790 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(&src_value, src, sizeof(src_value)); ># 812 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst_value = npy_halfbits_to_doublebits(src_value); ># 826 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(dst, &dst_value, sizeof(dst_value)); > > > > > > > dst += dst_stride; > src += src_stride; > > } >} ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_aligned_contig_cast_half_to_double( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ ># 781 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > while (N--) { ># 814 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > *(npy_uint64 *)dst = npy_halfbits_to_doublebits(*(npy_half *)src); ># 830 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst += sizeof(npy_double); > src += sizeof(npy_half); > > > > > } >} ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_contig_cast_half_to_double( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ > > > > npy_half src_value; > > > > > npy_uint64 dst_value; > > > > > while (N--) { ># 790 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(&src_value, src, sizeof(src_value)); ># 812 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst_value = npy_halfbits_to_doublebits(src_value); ># 826 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(dst, &dst_value, sizeof(dst_value)); > > > > dst += sizeof(npy_double); > src += sizeof(npy_half); > > > > > } >} ># 691 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_aligned_cast_half_to_longdouble( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ ># 781 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > while (N--) { ># 814 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > *(npy_longdouble *)dst = ((npy_longdouble)npy_half_to_float(*(npy_half *)src)); ># 833 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst += dst_stride; > src += src_stride; > > } >} ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_cast_half_to_longdouble( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ > > > > npy_half src_value; > > > > > npy_longdouble dst_value; > > > > > while (N--) { ># 790 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(&src_value, src, sizeof(src_value)); ># 812 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst_value = ((npy_longdouble)npy_half_to_float(src_value)); ># 826 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(dst, &dst_value, sizeof(dst_value)); > > > > > > > dst += dst_stride; > src += src_stride; > > } >} ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_aligned_contig_cast_half_to_longdouble( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ ># 781 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > while (N--) { ># 814 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > *(npy_longdouble *)dst = ((npy_longdouble)npy_half_to_float(*(npy_half *)src)); ># 830 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst += sizeof(npy_longdouble); > src += sizeof(npy_half); > > > > > } >} ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_contig_cast_half_to_longdouble( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ > > > > npy_half src_value; > > > > > npy_longdouble dst_value; > > > > > while (N--) { ># 790 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(&src_value, src, sizeof(src_value)); ># 812 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst_value = ((npy_longdouble)npy_half_to_float(src_value)); ># 826 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(dst, &dst_value, sizeof(dst_value)); > > > > dst += sizeof(npy_longdouble); > src += sizeof(npy_half); > > > > > } >} ># 691 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_aligned_cast_half_to_cfloat( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ > > > > > > > npy_uint32 dst_value[2]; > > > > > > > while (N--) { ># 808 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst_value[0] = npy_halfbits_to_floatbits(*(npy_half *)src); > > dst_value[1] = 0; ># 820 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > ((npy_uint32 *)dst)[0] = dst_value[0]; > ((npy_uint32 *)dst)[1] = dst_value[1]; ># 833 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst += dst_stride; > src += src_stride; > > } >} ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_cast_half_to_cfloat( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ > > > > npy_half src_value; > > > npy_uint32 dst_value[2]; > > > > > > > while (N--) { ># 790 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(&src_value, src, sizeof(src_value)); ># 806 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst_value[0] = npy_halfbits_to_floatbits(src_value); > > > > dst_value[1] = 0; ># 826 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(dst, &dst_value, sizeof(dst_value)); > > > > > > > dst += dst_stride; > src += src_stride; > > } >} ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_aligned_contig_cast_half_to_cfloat( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ > > > > > > > npy_uint32 dst_value[2]; > > > > > > > while (N--) { ># 808 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst_value[0] = npy_halfbits_to_floatbits(*(npy_half *)src); > > dst_value[1] = 0; ># 820 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > ((npy_uint32 *)dst)[0] = dst_value[0]; > ((npy_uint32 *)dst)[1] = dst_value[1]; ># 830 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst += sizeof(npy_cfloat); > src += sizeof(npy_half); > > > > > } >} ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_contig_cast_half_to_cfloat( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ > > > > npy_half src_value; > > > npy_uint32 dst_value[2]; > > > > > > > while (N--) { ># 790 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(&src_value, src, sizeof(src_value)); ># 806 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst_value[0] = npy_halfbits_to_floatbits(src_value); > > > > dst_value[1] = 0; ># 826 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(dst, &dst_value, sizeof(dst_value)); > > > > dst += sizeof(npy_cfloat); > src += sizeof(npy_half); > > > > > } >} ># 691 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_aligned_cast_half_to_cdouble( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ > > > > > > > npy_uint64 dst_value[2]; > > > > > > > while (N--) { ># 808 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst_value[0] = npy_halfbits_to_doublebits(*(npy_half *)src); > > dst_value[1] = 0; ># 820 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > ((npy_uint64 *)dst)[0] = dst_value[0]; > ((npy_uint64 *)dst)[1] = dst_value[1]; ># 833 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst += dst_stride; > src += src_stride; > > } >} ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_cast_half_to_cdouble( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ > > > > npy_half src_value; > > > npy_uint64 dst_value[2]; > > > > > > > while (N--) { ># 790 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(&src_value, src, sizeof(src_value)); ># 806 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst_value[0] = npy_halfbits_to_doublebits(src_value); > > > > dst_value[1] = 0; ># 826 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(dst, &dst_value, sizeof(dst_value)); > > > > > > > dst += dst_stride; > src += src_stride; > > } >} ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_aligned_contig_cast_half_to_cdouble( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ > > > > > > > npy_uint64 dst_value[2]; > > > > > > > while (N--) { ># 808 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst_value[0] = npy_halfbits_to_doublebits(*(npy_half *)src); > > dst_value[1] = 0; ># 820 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > ((npy_uint64 *)dst)[0] = dst_value[0]; > ((npy_uint64 *)dst)[1] = dst_value[1]; ># 830 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst += sizeof(npy_cdouble); > src += sizeof(npy_half); > > > > > } >} ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_contig_cast_half_to_cdouble( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ > > > > npy_half src_value; > > > npy_uint64 dst_value[2]; > > > > > > > while (N--) { ># 790 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(&src_value, src, sizeof(src_value)); ># 806 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst_value[0] = npy_halfbits_to_doublebits(src_value); > > > > dst_value[1] = 0; ># 826 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(dst, &dst_value, sizeof(dst_value)); > > > > dst += sizeof(npy_cdouble); > src += sizeof(npy_half); > > > > > } >} ># 691 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_aligned_cast_half_to_clongdouble( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ > > > > > > > npy_longdouble dst_value[2]; > > > > > > > while (N--) { ># 808 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst_value[0] = ((npy_longdouble)npy_half_to_float(*(npy_half *)src)); > > dst_value[1] = 0; ># 820 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > ((npy_longdouble *)dst)[0] = dst_value[0]; > ((npy_longdouble *)dst)[1] = dst_value[1]; ># 833 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst += dst_stride; > src += src_stride; > > } >} ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_cast_half_to_clongdouble( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ > > > > npy_half src_value; > > > npy_longdouble dst_value[2]; > > > > > > > while (N--) { ># 790 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(&src_value, src, sizeof(src_value)); ># 806 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst_value[0] = ((npy_longdouble)npy_half_to_float(src_value)); > > > > dst_value[1] = 0; ># 826 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(dst, &dst_value, sizeof(dst_value)); > > > > > > > dst += dst_stride; > src += src_stride; > > } >} ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_aligned_contig_cast_half_to_clongdouble( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ > > > > > > > npy_longdouble dst_value[2]; > > > > > > > while (N--) { ># 808 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst_value[0] = ((npy_longdouble)npy_half_to_float(*(npy_half *)src)); > > dst_value[1] = 0; ># 820 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > ((npy_longdouble *)dst)[0] = dst_value[0]; > ((npy_longdouble *)dst)[1] = dst_value[1]; ># 830 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst += sizeof(npy_clongdouble); > src += sizeof(npy_half); > > > > > } >} ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_contig_cast_half_to_clongdouble( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ > > > > npy_half src_value; > > > npy_longdouble dst_value[2]; > > > > > > > while (N--) { ># 790 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(&src_value, src, sizeof(src_value)); ># 806 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst_value[0] = ((npy_longdouble)npy_half_to_float(src_value)); > > > > dst_value[1] = 0; ># 826 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(dst, &dst_value, sizeof(dst_value)); > > > > dst += sizeof(npy_clongdouble); > src += sizeof(npy_half); > > > > > } >} ># 667 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 691 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_aligned_cast_float_to_bool( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ ># 781 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > while (N--) { ># 814 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > *(npy_bool *)dst = ((npy_bool)(*(npy_float *)src != 0)); ># 833 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst += dst_stride; > src += src_stride; > > } >} ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_cast_float_to_bool( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ > > > > npy_float src_value; > > > > > npy_bool dst_value; > > > > > while (N--) { ># 790 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(&src_value, src, sizeof(src_value)); ># 812 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst_value = ((npy_bool)(src_value != 0)); ># 826 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(dst, &dst_value, sizeof(dst_value)); > > > > > > > dst += dst_stride; > src += src_stride; > > } >} ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_aligned_contig_cast_float_to_bool( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ ># 781 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > while (N--) { ># 814 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > *(npy_bool *)dst = ((npy_bool)(*(npy_float *)src != 0)); ># 830 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst += sizeof(npy_bool); > src += sizeof(npy_float); > > > > > } >} ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_contig_cast_float_to_bool( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ > > > > npy_float src_value; > > > > > npy_bool dst_value; > > > > > while (N--) { ># 790 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(&src_value, src, sizeof(src_value)); ># 812 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst_value = ((npy_bool)(src_value != 0)); ># 826 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(dst, &dst_value, sizeof(dst_value)); > > > > dst += sizeof(npy_bool); > src += sizeof(npy_float); > > > > > } >} ># 691 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_aligned_cast_float_to_ubyte( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ ># 781 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > while (N--) { ># 814 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > *(npy_ubyte *)dst = ((npy_ubyte)*(npy_float *)src); ># 833 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst += dst_stride; > src += src_stride; > > } >} ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_cast_float_to_ubyte( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ > > > > npy_float src_value; > > > > > npy_ubyte dst_value; > > > > > while (N--) { ># 790 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(&src_value, src, sizeof(src_value)); ># 812 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst_value = ((npy_ubyte)src_value); ># 826 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(dst, &dst_value, sizeof(dst_value)); > > > > > > > dst += dst_stride; > src += src_stride; > > } >} ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_aligned_contig_cast_float_to_ubyte( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ ># 781 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > while (N--) { ># 814 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > *(npy_ubyte *)dst = ((npy_ubyte)*(npy_float *)src); ># 830 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst += sizeof(npy_ubyte); > src += sizeof(npy_float); > > > > > } >} ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_contig_cast_float_to_ubyte( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ > > > > npy_float src_value; > > > > > npy_ubyte dst_value; > > > > > while (N--) { ># 790 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(&src_value, src, sizeof(src_value)); ># 812 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst_value = ((npy_ubyte)src_value); ># 826 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(dst, &dst_value, sizeof(dst_value)); > > > > dst += sizeof(npy_ubyte); > src += sizeof(npy_float); > > > > > } >} ># 691 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_aligned_cast_float_to_ushort( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ ># 781 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > while (N--) { ># 814 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > *(npy_ushort *)dst = ((npy_ushort)*(npy_float *)src); ># 833 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst += dst_stride; > src += src_stride; > > } >} ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_cast_float_to_ushort( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ > > > > npy_float src_value; > > > > > npy_ushort dst_value; > > > > > while (N--) { ># 790 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(&src_value, src, sizeof(src_value)); ># 812 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst_value = ((npy_ushort)src_value); ># 826 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(dst, &dst_value, sizeof(dst_value)); > > > > > > > dst += dst_stride; > src += src_stride; > > } >} ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_aligned_contig_cast_float_to_ushort( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ ># 781 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > while (N--) { ># 814 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > *(npy_ushort *)dst = ((npy_ushort)*(npy_float *)src); ># 830 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst += sizeof(npy_ushort); > src += sizeof(npy_float); > > > > > } >} ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_contig_cast_float_to_ushort( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ > > > > npy_float src_value; > > > > > npy_ushort dst_value; > > > > > while (N--) { ># 790 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(&src_value, src, sizeof(src_value)); ># 812 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst_value = ((npy_ushort)src_value); ># 826 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(dst, &dst_value, sizeof(dst_value)); > > > > dst += sizeof(npy_ushort); > src += sizeof(npy_float); > > > > > } >} ># 691 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_aligned_cast_float_to_uint( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ ># 781 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > while (N--) { ># 814 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > *(npy_uint *)dst = ((npy_uint)*(npy_float *)src); ># 833 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst += dst_stride; > src += src_stride; > > } >} ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_cast_float_to_uint( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ > > > > npy_float src_value; > > > > > npy_uint dst_value; > > > > > while (N--) { ># 790 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(&src_value, src, sizeof(src_value)); ># 812 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst_value = ((npy_uint)src_value); ># 826 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(dst, &dst_value, sizeof(dst_value)); > > > > > > > dst += dst_stride; > src += src_stride; > > } >} ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_aligned_contig_cast_float_to_uint( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ ># 781 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > while (N--) { ># 814 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > *(npy_uint *)dst = ((npy_uint)*(npy_float *)src); ># 830 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst += sizeof(npy_uint); > src += sizeof(npy_float); > > > > > } >} ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_contig_cast_float_to_uint( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ > > > > npy_float src_value; > > > > > npy_uint dst_value; > > > > > while (N--) { ># 790 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(&src_value, src, sizeof(src_value)); ># 812 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst_value = ((npy_uint)src_value); ># 826 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(dst, &dst_value, sizeof(dst_value)); > > > > dst += sizeof(npy_uint); > src += sizeof(npy_float); > > > > > } >} ># 691 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_aligned_cast_float_to_ulong( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ ># 781 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > while (N--) { ># 814 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > *(npy_ulong *)dst = ((npy_ulong)*(npy_float *)src); ># 833 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst += dst_stride; > src += src_stride; > > } >} ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_cast_float_to_ulong( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ > > > > npy_float src_value; > > > > > npy_ulong dst_value; > > > > > while (N--) { ># 790 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(&src_value, src, sizeof(src_value)); ># 812 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst_value = ((npy_ulong)src_value); ># 826 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(dst, &dst_value, sizeof(dst_value)); > > > > > > > dst += dst_stride; > src += src_stride; > > } >} ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_aligned_contig_cast_float_to_ulong( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ ># 781 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > while (N--) { ># 814 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > *(npy_ulong *)dst = ((npy_ulong)*(npy_float *)src); ># 830 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst += sizeof(npy_ulong); > src += sizeof(npy_float); > > > > > } >} ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_contig_cast_float_to_ulong( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ > > > > npy_float src_value; > > > > > npy_ulong dst_value; > > > > > while (N--) { ># 790 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(&src_value, src, sizeof(src_value)); ># 812 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst_value = ((npy_ulong)src_value); ># 826 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(dst, &dst_value, sizeof(dst_value)); > > > > dst += sizeof(npy_ulong); > src += sizeof(npy_float); > > > > > } >} ># 691 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_aligned_cast_float_to_ulonglong( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ ># 781 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > while (N--) { ># 814 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > *(npy_ulonglong *)dst = ((npy_ulonglong)*(npy_float *)src); ># 833 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst += dst_stride; > src += src_stride; > > } >} ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_cast_float_to_ulonglong( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ > > > > npy_float src_value; > > > > > npy_ulonglong dst_value; > > > > > while (N--) { ># 790 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(&src_value, src, sizeof(src_value)); ># 812 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst_value = ((npy_ulonglong)src_value); ># 826 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(dst, &dst_value, sizeof(dst_value)); > > > > > > > dst += dst_stride; > src += src_stride; > > } >} ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_aligned_contig_cast_float_to_ulonglong( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ ># 781 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > while (N--) { ># 814 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > *(npy_ulonglong *)dst = ((npy_ulonglong)*(npy_float *)src); ># 830 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst += sizeof(npy_ulonglong); > src += sizeof(npy_float); > > > > > } >} ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_contig_cast_float_to_ulonglong( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ > > > > npy_float src_value; > > > > > npy_ulonglong dst_value; > > > > > while (N--) { ># 790 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(&src_value, src, sizeof(src_value)); ># 812 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst_value = ((npy_ulonglong)src_value); ># 826 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(dst, &dst_value, sizeof(dst_value)); > > > > dst += sizeof(npy_ulonglong); > src += sizeof(npy_float); > > > > > } >} ># 691 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_aligned_cast_float_to_byte( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ ># 781 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > while (N--) { ># 814 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > *(npy_byte *)dst = ((npy_byte)*(npy_float *)src); ># 833 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst += dst_stride; > src += src_stride; > > } >} ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_cast_float_to_byte( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ > > > > npy_float src_value; > > > > > npy_byte dst_value; > > > > > while (N--) { ># 790 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(&src_value, src, sizeof(src_value)); ># 812 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst_value = ((npy_byte)src_value); ># 826 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(dst, &dst_value, sizeof(dst_value)); > > > > > > > dst += dst_stride; > src += src_stride; > > } >} ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_aligned_contig_cast_float_to_byte( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ ># 781 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > while (N--) { ># 814 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > *(npy_byte *)dst = ((npy_byte)*(npy_float *)src); ># 830 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst += sizeof(npy_byte); > src += sizeof(npy_float); > > > > > } >} ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_contig_cast_float_to_byte( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ > > > > npy_float src_value; > > > > > npy_byte dst_value; > > > > > while (N--) { ># 790 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(&src_value, src, sizeof(src_value)); ># 812 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst_value = ((npy_byte)src_value); ># 826 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(dst, &dst_value, sizeof(dst_value)); > > > > dst += sizeof(npy_byte); > src += sizeof(npy_float); > > > > > } >} ># 691 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_aligned_cast_float_to_short( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ ># 781 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > while (N--) { ># 814 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > *(npy_short *)dst = ((npy_short)*(npy_float *)src); ># 833 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst += dst_stride; > src += src_stride; > > } >} ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_cast_float_to_short( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ > > > > npy_float src_value; > > > > > npy_short dst_value; > > > > > while (N--) { ># 790 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(&src_value, src, sizeof(src_value)); ># 812 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst_value = ((npy_short)src_value); ># 826 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(dst, &dst_value, sizeof(dst_value)); > > > > > > > dst += dst_stride; > src += src_stride; > > } >} ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_aligned_contig_cast_float_to_short( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ ># 781 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > while (N--) { ># 814 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > *(npy_short *)dst = ((npy_short)*(npy_float *)src); ># 830 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst += sizeof(npy_short); > src += sizeof(npy_float); > > > > > } >} ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_contig_cast_float_to_short( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ > > > > npy_float src_value; > > > > > npy_short dst_value; > > > > > while (N--) { ># 790 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(&src_value, src, sizeof(src_value)); ># 812 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst_value = ((npy_short)src_value); ># 826 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(dst, &dst_value, sizeof(dst_value)); > > > > dst += sizeof(npy_short); > src += sizeof(npy_float); > > > > > } >} ># 691 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_aligned_cast_float_to_int( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ ># 781 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > while (N--) { ># 814 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > *(npy_int *)dst = ((npy_int)*(npy_float *)src); ># 833 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst += dst_stride; > src += src_stride; > > } >} ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_cast_float_to_int( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ > > > > npy_float src_value; > > > > > npy_int dst_value; > > > > > while (N--) { ># 790 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(&src_value, src, sizeof(src_value)); ># 812 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst_value = ((npy_int)src_value); ># 826 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(dst, &dst_value, sizeof(dst_value)); > > > > > > > dst += dst_stride; > src += src_stride; > > } >} ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_aligned_contig_cast_float_to_int( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ ># 781 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > while (N--) { ># 814 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > *(npy_int *)dst = ((npy_int)*(npy_float *)src); ># 830 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst += sizeof(npy_int); > src += sizeof(npy_float); > > > > > } >} ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_contig_cast_float_to_int( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ > > > > npy_float src_value; > > > > > npy_int dst_value; > > > > > while (N--) { ># 790 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(&src_value, src, sizeof(src_value)); ># 812 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst_value = ((npy_int)src_value); ># 826 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(dst, &dst_value, sizeof(dst_value)); > > > > dst += sizeof(npy_int); > src += sizeof(npy_float); > > > > > } >} ># 691 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_aligned_cast_float_to_long( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ ># 781 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > while (N--) { ># 814 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > *(npy_long *)dst = ((npy_long)*(npy_float *)src); ># 833 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst += dst_stride; > src += src_stride; > > } >} ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_cast_float_to_long( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ > > > > npy_float src_value; > > > > > npy_long dst_value; > > > > > while (N--) { ># 790 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(&src_value, src, sizeof(src_value)); ># 812 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst_value = ((npy_long)src_value); ># 826 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(dst, &dst_value, sizeof(dst_value)); > > > > > > > dst += dst_stride; > src += src_stride; > > } >} ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_aligned_contig_cast_float_to_long( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ ># 781 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > while (N--) { ># 814 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > *(npy_long *)dst = ((npy_long)*(npy_float *)src); ># 830 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst += sizeof(npy_long); > src += sizeof(npy_float); > > > > > } >} ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_contig_cast_float_to_long( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ > > > > npy_float src_value; > > > > > npy_long dst_value; > > > > > while (N--) { ># 790 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(&src_value, src, sizeof(src_value)); ># 812 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst_value = ((npy_long)src_value); ># 826 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(dst, &dst_value, sizeof(dst_value)); > > > > dst += sizeof(npy_long); > src += sizeof(npy_float); > > > > > } >} ># 691 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_aligned_cast_float_to_longlong( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ ># 781 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > while (N--) { ># 814 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > *(npy_longlong *)dst = ((npy_longlong)*(npy_float *)src); ># 833 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst += dst_stride; > src += src_stride; > > } >} ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_cast_float_to_longlong( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ > > > > npy_float src_value; > > > > > npy_longlong dst_value; > > > > > while (N--) { ># 790 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(&src_value, src, sizeof(src_value)); ># 812 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst_value = ((npy_longlong)src_value); ># 826 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(dst, &dst_value, sizeof(dst_value)); > > > > > > > dst += dst_stride; > src += src_stride; > > } >} ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_aligned_contig_cast_float_to_longlong( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ ># 781 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > while (N--) { ># 814 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > *(npy_longlong *)dst = ((npy_longlong)*(npy_float *)src); ># 830 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst += sizeof(npy_longlong); > src += sizeof(npy_float); > > > > > } >} ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_contig_cast_float_to_longlong( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ > > > > npy_float src_value; > > > > > npy_longlong dst_value; > > > > > while (N--) { ># 790 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(&src_value, src, sizeof(src_value)); ># 812 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst_value = ((npy_longlong)src_value); ># 826 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(dst, &dst_value, sizeof(dst_value)); > > > > dst += sizeof(npy_longlong); > src += sizeof(npy_float); > > > > > } >} ># 691 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_aligned_cast_float_to_half( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ ># 781 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > while (N--) { ># 814 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > *(npy_half *)dst = npy_floatbits_to_halfbits(*(npy_uint32 *)src); ># 833 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst += dst_stride; > src += src_stride; > > } >} ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_cast_float_to_half( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ > > > > npy_uint32 src_value; > > > > > npy_half dst_value; > > > > > while (N--) { ># 790 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(&src_value, src, sizeof(src_value)); ># 812 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst_value = npy_floatbits_to_halfbits(src_value); ># 826 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(dst, &dst_value, sizeof(dst_value)); > > > > > > > dst += dst_stride; > src += src_stride; > > } >} ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_aligned_contig_cast_float_to_half( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ ># 781 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > while (N--) { ># 814 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > *(npy_half *)dst = npy_floatbits_to_halfbits(*(npy_uint32 *)src); ># 830 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst += sizeof(npy_half); > src += sizeof(npy_float); > > > > > } >} ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_contig_cast_float_to_half( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ > > > > npy_uint32 src_value; > > > > > npy_half dst_value; > > > > > while (N--) { ># 790 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(&src_value, src, sizeof(src_value)); ># 812 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst_value = npy_floatbits_to_halfbits(src_value); ># 826 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(dst, &dst_value, sizeof(dst_value)); > > > > dst += sizeof(npy_half); > src += sizeof(npy_float); > > > > > } >} ># 691 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_aligned_cast_float_to_float( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ ># 781 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > while (N--) { ># 814 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > *(npy_float *)dst = ((npy_float)*(npy_float *)src); ># 833 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst += dst_stride; > src += src_stride; > > } >} ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_cast_float_to_float( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ > > > > npy_float src_value; > > > > > npy_float dst_value; > > > > > while (N--) { ># 790 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(&src_value, src, sizeof(src_value)); ># 812 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst_value = ((npy_float)src_value); ># 826 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(dst, &dst_value, sizeof(dst_value)); > > > > > > > dst += dst_stride; > src += src_stride; > > } >} ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_aligned_contig_cast_float_to_float( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ ># 781 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > while (N--) { ># 814 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > *(npy_float *)dst = ((npy_float)*(npy_float *)src); ># 830 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst += sizeof(npy_float); > src += sizeof(npy_float); > > > > > } >} ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_contig_cast_float_to_float( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ > > > > npy_float src_value; > > > > > npy_float dst_value; > > > > > while (N--) { ># 790 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(&src_value, src, sizeof(src_value)); ># 812 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst_value = ((npy_float)src_value); ># 826 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(dst, &dst_value, sizeof(dst_value)); > > > > dst += sizeof(npy_float); > src += sizeof(npy_float); > > > > > } >} ># 691 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_aligned_cast_float_to_double( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ ># 781 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > while (N--) { ># 814 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > *(npy_double *)dst = ((npy_double)*(npy_float *)src); ># 833 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst += dst_stride; > src += src_stride; > > } >} ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_cast_float_to_double( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ > > > > npy_float src_value; > > > > > npy_double dst_value; > > > > > while (N--) { ># 790 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(&src_value, src, sizeof(src_value)); ># 812 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst_value = ((npy_double)src_value); ># 826 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(dst, &dst_value, sizeof(dst_value)); > > > > > > > dst += dst_stride; > src += src_stride; > > } >} ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_aligned_contig_cast_float_to_double( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ ># 781 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > while (N--) { ># 814 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > *(npy_double *)dst = ((npy_double)*(npy_float *)src); ># 830 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst += sizeof(npy_double); > src += sizeof(npy_float); > > > > > } >} ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_contig_cast_float_to_double( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ > > > > npy_float src_value; > > > > > npy_double dst_value; > > > > > while (N--) { ># 790 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(&src_value, src, sizeof(src_value)); ># 812 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst_value = ((npy_double)src_value); ># 826 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(dst, &dst_value, sizeof(dst_value)); > > > > dst += sizeof(npy_double); > src += sizeof(npy_float); > > > > > } >} ># 691 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_aligned_cast_float_to_longdouble( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ ># 781 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > while (N--) { ># 814 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > *(npy_longdouble *)dst = ((npy_longdouble)*(npy_float *)src); ># 833 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst += dst_stride; > src += src_stride; > > } >} ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_cast_float_to_longdouble( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ > > > > npy_float src_value; > > > > > npy_longdouble dst_value; > > > > > while (N--) { ># 790 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(&src_value, src, sizeof(src_value)); ># 812 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst_value = ((npy_longdouble)src_value); ># 826 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(dst, &dst_value, sizeof(dst_value)); > > > > > > > dst += dst_stride; > src += src_stride; > > } >} ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_aligned_contig_cast_float_to_longdouble( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ ># 781 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > while (N--) { ># 814 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > *(npy_longdouble *)dst = ((npy_longdouble)*(npy_float *)src); ># 830 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst += sizeof(npy_longdouble); > src += sizeof(npy_float); > > > > > } >} ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_contig_cast_float_to_longdouble( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ > > > > npy_float src_value; > > > > > npy_longdouble dst_value; > > > > > while (N--) { ># 790 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(&src_value, src, sizeof(src_value)); ># 812 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst_value = ((npy_longdouble)src_value); ># 826 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(dst, &dst_value, sizeof(dst_value)); > > > > dst += sizeof(npy_longdouble); > src += sizeof(npy_float); > > > > > } >} ># 691 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_aligned_cast_float_to_cfloat( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ > > > > > > > npy_float dst_value[2]; > > > > > > > while (N--) { ># 808 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst_value[0] = ((npy_float)*(npy_float *)src); > > dst_value[1] = 0; ># 820 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > ((npy_float *)dst)[0] = dst_value[0]; > ((npy_float *)dst)[1] = dst_value[1]; ># 833 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst += dst_stride; > src += src_stride; > > } >} ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_cast_float_to_cfloat( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ > > > > npy_float src_value; > > > npy_float dst_value[2]; > > > > > > > while (N--) { ># 790 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(&src_value, src, sizeof(src_value)); ># 806 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst_value[0] = ((npy_float)src_value); > > > > dst_value[1] = 0; ># 826 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(dst, &dst_value, sizeof(dst_value)); > > > > > > > dst += dst_stride; > src += src_stride; > > } >} ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_aligned_contig_cast_float_to_cfloat( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ > > > > > > > npy_float dst_value[2]; > > > > > > > while (N--) { ># 808 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst_value[0] = ((npy_float)*(npy_float *)src); > > dst_value[1] = 0; ># 820 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > ((npy_float *)dst)[0] = dst_value[0]; > ((npy_float *)dst)[1] = dst_value[1]; ># 830 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst += sizeof(npy_cfloat); > src += sizeof(npy_float); > > > > > } >} ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_contig_cast_float_to_cfloat( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ > > > > npy_float src_value; > > > npy_float dst_value[2]; > > > > > > > while (N--) { ># 790 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(&src_value, src, sizeof(src_value)); ># 806 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst_value[0] = ((npy_float)src_value); > > > > dst_value[1] = 0; ># 826 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(dst, &dst_value, sizeof(dst_value)); > > > > dst += sizeof(npy_cfloat); > src += sizeof(npy_float); > > > > > } >} ># 691 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_aligned_cast_float_to_cdouble( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ > > > > > > > npy_double dst_value[2]; > > > > > > > while (N--) { ># 808 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst_value[0] = ((npy_double)*(npy_float *)src); > > dst_value[1] = 0; ># 820 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > ((npy_double *)dst)[0] = dst_value[0]; > ((npy_double *)dst)[1] = dst_value[1]; ># 833 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst += dst_stride; > src += src_stride; > > } >} ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_cast_float_to_cdouble( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ > > > > npy_float src_value; > > > npy_double dst_value[2]; > > > > > > > while (N--) { ># 790 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(&src_value, src, sizeof(src_value)); ># 806 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst_value[0] = ((npy_double)src_value); > > > > dst_value[1] = 0; ># 826 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(dst, &dst_value, sizeof(dst_value)); > > > > > > > dst += dst_stride; > src += src_stride; > > } >} ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_aligned_contig_cast_float_to_cdouble( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ > > > > > > > npy_double dst_value[2]; > > > > > > > while (N--) { ># 808 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst_value[0] = ((npy_double)*(npy_float *)src); > > dst_value[1] = 0; ># 820 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > ((npy_double *)dst)[0] = dst_value[0]; > ((npy_double *)dst)[1] = dst_value[1]; ># 830 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst += sizeof(npy_cdouble); > src += sizeof(npy_float); > > > > > } >} ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_contig_cast_float_to_cdouble( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ > > > > npy_float src_value; > > > npy_double dst_value[2]; > > > > > > > while (N--) { ># 790 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(&src_value, src, sizeof(src_value)); ># 806 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst_value[0] = ((npy_double)src_value); > > > > dst_value[1] = 0; ># 826 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(dst, &dst_value, sizeof(dst_value)); > > > > dst += sizeof(npy_cdouble); > src += sizeof(npy_float); > > > > > } >} ># 691 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_aligned_cast_float_to_clongdouble( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ > > > > > > > npy_longdouble dst_value[2]; > > > > > > > while (N--) { ># 808 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst_value[0] = ((npy_longdouble)*(npy_float *)src); > > dst_value[1] = 0; ># 820 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > ((npy_longdouble *)dst)[0] = dst_value[0]; > ((npy_longdouble *)dst)[1] = dst_value[1]; ># 833 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst += dst_stride; > src += src_stride; > > } >} ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_cast_float_to_clongdouble( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ > > > > npy_float src_value; > > > npy_longdouble dst_value[2]; > > > > > > > while (N--) { ># 790 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(&src_value, src, sizeof(src_value)); ># 806 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst_value[0] = ((npy_longdouble)src_value); > > > > dst_value[1] = 0; ># 826 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(dst, &dst_value, sizeof(dst_value)); > > > > > > > dst += dst_stride; > src += src_stride; > > } >} ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_aligned_contig_cast_float_to_clongdouble( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ > > > > > > > npy_longdouble dst_value[2]; > > > > > > > while (N--) { ># 808 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst_value[0] = ((npy_longdouble)*(npy_float *)src); > > dst_value[1] = 0; ># 820 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > ((npy_longdouble *)dst)[0] = dst_value[0]; > ((npy_longdouble *)dst)[1] = dst_value[1]; ># 830 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst += sizeof(npy_clongdouble); > src += sizeof(npy_float); > > > > > } >} ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_contig_cast_float_to_clongdouble( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ > > > > npy_float src_value; > > > npy_longdouble dst_value[2]; > > > > > > > while (N--) { ># 790 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(&src_value, src, sizeof(src_value)); ># 806 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst_value[0] = ((npy_longdouble)src_value); > > > > dst_value[1] = 0; ># 826 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(dst, &dst_value, sizeof(dst_value)); > > > > dst += sizeof(npy_clongdouble); > src += sizeof(npy_float); > > > > > } >} ># 667 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 691 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_aligned_cast_double_to_bool( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ ># 781 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > while (N--) { ># 814 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > *(npy_bool *)dst = ((npy_bool)(*(npy_double *)src != 0)); ># 833 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst += dst_stride; > src += src_stride; > > } >} ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_cast_double_to_bool( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ > > > > npy_double src_value; > > > > > npy_bool dst_value; > > > > > while (N--) { ># 790 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(&src_value, src, sizeof(src_value)); ># 812 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst_value = ((npy_bool)(src_value != 0)); ># 826 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(dst, &dst_value, sizeof(dst_value)); > > > > > > > dst += dst_stride; > src += src_stride; > > } >} ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_aligned_contig_cast_double_to_bool( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ ># 781 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > while (N--) { ># 814 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > *(npy_bool *)dst = ((npy_bool)(*(npy_double *)src != 0)); ># 830 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst += sizeof(npy_bool); > src += sizeof(npy_double); > > > > > } >} ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_contig_cast_double_to_bool( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ > > > > npy_double src_value; > > > > > npy_bool dst_value; > > > > > while (N--) { ># 790 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(&src_value, src, sizeof(src_value)); ># 812 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst_value = ((npy_bool)(src_value != 0)); ># 826 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(dst, &dst_value, sizeof(dst_value)); > > > > dst += sizeof(npy_bool); > src += sizeof(npy_double); > > > > > } >} ># 691 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_aligned_cast_double_to_ubyte( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ ># 781 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > while (N--) { ># 814 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > *(npy_ubyte *)dst = ((npy_ubyte)*(npy_double *)src); ># 833 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst += dst_stride; > src += src_stride; > > } >} ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_cast_double_to_ubyte( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ > > > > npy_double src_value; > > > > > npy_ubyte dst_value; > > > > > while (N--) { ># 790 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(&src_value, src, sizeof(src_value)); ># 812 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst_value = ((npy_ubyte)src_value); ># 826 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(dst, &dst_value, sizeof(dst_value)); > > > > > > > dst += dst_stride; > src += src_stride; > > } >} ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_aligned_contig_cast_double_to_ubyte( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ ># 781 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > while (N--) { ># 814 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > *(npy_ubyte *)dst = ((npy_ubyte)*(npy_double *)src); ># 830 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst += sizeof(npy_ubyte); > src += sizeof(npy_double); > > > > > } >} ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_contig_cast_double_to_ubyte( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ > > > > npy_double src_value; > > > > > npy_ubyte dst_value; > > > > > while (N--) { ># 790 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(&src_value, src, sizeof(src_value)); ># 812 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst_value = ((npy_ubyte)src_value); ># 826 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(dst, &dst_value, sizeof(dst_value)); > > > > dst += sizeof(npy_ubyte); > src += sizeof(npy_double); > > > > > } >} ># 691 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_aligned_cast_double_to_ushort( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ ># 781 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > while (N--) { ># 814 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > *(npy_ushort *)dst = ((npy_ushort)*(npy_double *)src); ># 833 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst += dst_stride; > src += src_stride; > > } >} ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_cast_double_to_ushort( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ > > > > npy_double src_value; > > > > > npy_ushort dst_value; > > > > > while (N--) { ># 790 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(&src_value, src, sizeof(src_value)); ># 812 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst_value = ((npy_ushort)src_value); ># 826 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(dst, &dst_value, sizeof(dst_value)); > > > > > > > dst += dst_stride; > src += src_stride; > > } >} ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_aligned_contig_cast_double_to_ushort( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ ># 781 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > while (N--) { ># 814 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > *(npy_ushort *)dst = ((npy_ushort)*(npy_double *)src); ># 830 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst += sizeof(npy_ushort); > src += sizeof(npy_double); > > > > > } >} ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_contig_cast_double_to_ushort( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ > > > > npy_double src_value; > > > > > npy_ushort dst_value; > > > > > while (N--) { ># 790 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(&src_value, src, sizeof(src_value)); ># 812 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst_value = ((npy_ushort)src_value); ># 826 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(dst, &dst_value, sizeof(dst_value)); > > > > dst += sizeof(npy_ushort); > src += sizeof(npy_double); > > > > > } >} ># 691 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_aligned_cast_double_to_uint( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ ># 781 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > while (N--) { ># 814 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > *(npy_uint *)dst = ((npy_uint)*(npy_double *)src); ># 833 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst += dst_stride; > src += src_stride; > > } >} ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_cast_double_to_uint( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ > > > > npy_double src_value; > > > > > npy_uint dst_value; > > > > > while (N--) { ># 790 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(&src_value, src, sizeof(src_value)); ># 812 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst_value = ((npy_uint)src_value); ># 826 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(dst, &dst_value, sizeof(dst_value)); > > > > > > > dst += dst_stride; > src += src_stride; > > } >} ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_aligned_contig_cast_double_to_uint( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ ># 781 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > while (N--) { ># 814 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > *(npy_uint *)dst = ((npy_uint)*(npy_double *)src); ># 830 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst += sizeof(npy_uint); > src += sizeof(npy_double); > > > > > } >} ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_contig_cast_double_to_uint( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ > > > > npy_double src_value; > > > > > npy_uint dst_value; > > > > > while (N--) { ># 790 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(&src_value, src, sizeof(src_value)); ># 812 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst_value = ((npy_uint)src_value); ># 826 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(dst, &dst_value, sizeof(dst_value)); > > > > dst += sizeof(npy_uint); > src += sizeof(npy_double); > > > > > } >} ># 691 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_aligned_cast_double_to_ulong( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ ># 781 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > while (N--) { ># 814 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > *(npy_ulong *)dst = ((npy_ulong)*(npy_double *)src); ># 833 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst += dst_stride; > src += src_stride; > > } >} ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_cast_double_to_ulong( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ > > > > npy_double src_value; > > > > > npy_ulong dst_value; > > > > > while (N--) { ># 790 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(&src_value, src, sizeof(src_value)); ># 812 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst_value = ((npy_ulong)src_value); ># 826 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(dst, &dst_value, sizeof(dst_value)); > > > > > > > dst += dst_stride; > src += src_stride; > > } >} ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_aligned_contig_cast_double_to_ulong( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ ># 781 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > while (N--) { ># 814 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > *(npy_ulong *)dst = ((npy_ulong)*(npy_double *)src); ># 830 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst += sizeof(npy_ulong); > src += sizeof(npy_double); > > > > > } >} ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_contig_cast_double_to_ulong( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ > > > > npy_double src_value; > > > > > npy_ulong dst_value; > > > > > while (N--) { ># 790 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(&src_value, src, sizeof(src_value)); ># 812 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst_value = ((npy_ulong)src_value); ># 826 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(dst, &dst_value, sizeof(dst_value)); > > > > dst += sizeof(npy_ulong); > src += sizeof(npy_double); > > > > > } >} ># 691 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_aligned_cast_double_to_ulonglong( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ ># 781 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > while (N--) { ># 814 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > *(npy_ulonglong *)dst = ((npy_ulonglong)*(npy_double *)src); ># 833 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst += dst_stride; > src += src_stride; > > } >} ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_cast_double_to_ulonglong( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ > > > > npy_double src_value; > > > > > npy_ulonglong dst_value; > > > > > while (N--) { ># 790 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(&src_value, src, sizeof(src_value)); ># 812 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst_value = ((npy_ulonglong)src_value); ># 826 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(dst, &dst_value, sizeof(dst_value)); > > > > > > > dst += dst_stride; > src += src_stride; > > } >} ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_aligned_contig_cast_double_to_ulonglong( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ ># 781 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > while (N--) { ># 814 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > *(npy_ulonglong *)dst = ((npy_ulonglong)*(npy_double *)src); ># 830 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst += sizeof(npy_ulonglong); > src += sizeof(npy_double); > > > > > } >} ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_contig_cast_double_to_ulonglong( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ > > > > npy_double src_value; > > > > > npy_ulonglong dst_value; > > > > > while (N--) { ># 790 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(&src_value, src, sizeof(src_value)); ># 812 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst_value = ((npy_ulonglong)src_value); ># 826 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(dst, &dst_value, sizeof(dst_value)); > > > > dst += sizeof(npy_ulonglong); > src += sizeof(npy_double); > > > > > } >} ># 691 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_aligned_cast_double_to_byte( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ ># 781 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > while (N--) { ># 814 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > *(npy_byte *)dst = ((npy_byte)*(npy_double *)src); ># 833 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst += dst_stride; > src += src_stride; > > } >} ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_cast_double_to_byte( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ > > > > npy_double src_value; > > > > > npy_byte dst_value; > > > > > while (N--) { ># 790 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(&src_value, src, sizeof(src_value)); ># 812 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst_value = ((npy_byte)src_value); ># 826 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(dst, &dst_value, sizeof(dst_value)); > > > > > > > dst += dst_stride; > src += src_stride; > > } >} ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_aligned_contig_cast_double_to_byte( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ ># 781 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > while (N--) { ># 814 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > *(npy_byte *)dst = ((npy_byte)*(npy_double *)src); ># 830 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst += sizeof(npy_byte); > src += sizeof(npy_double); > > > > > } >} ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_contig_cast_double_to_byte( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ > > > > npy_double src_value; > > > > > npy_byte dst_value; > > > > > while (N--) { ># 790 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(&src_value, src, sizeof(src_value)); ># 812 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst_value = ((npy_byte)src_value); ># 826 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(dst, &dst_value, sizeof(dst_value)); > > > > dst += sizeof(npy_byte); > src += sizeof(npy_double); > > > > > } >} ># 691 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_aligned_cast_double_to_short( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ ># 781 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > while (N--) { ># 814 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > *(npy_short *)dst = ((npy_short)*(npy_double *)src); ># 833 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst += dst_stride; > src += src_stride; > > } >} ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_cast_double_to_short( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ > > > > npy_double src_value; > > > > > npy_short dst_value; > > > > > while (N--) { ># 790 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(&src_value, src, sizeof(src_value)); ># 812 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst_value = ((npy_short)src_value); ># 826 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(dst, &dst_value, sizeof(dst_value)); > > > > > > > dst += dst_stride; > src += src_stride; > > } >} ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_aligned_contig_cast_double_to_short( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ ># 781 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > while (N--) { ># 814 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > *(npy_short *)dst = ((npy_short)*(npy_double *)src); ># 830 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst += sizeof(npy_short); > src += sizeof(npy_double); > > > > > } >} ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_contig_cast_double_to_short( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ > > > > npy_double src_value; > > > > > npy_short dst_value; > > > > > while (N--) { ># 790 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(&src_value, src, sizeof(src_value)); ># 812 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst_value = ((npy_short)src_value); ># 826 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(dst, &dst_value, sizeof(dst_value)); > > > > dst += sizeof(npy_short); > src += sizeof(npy_double); > > > > > } >} ># 691 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_aligned_cast_double_to_int( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ ># 781 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > while (N--) { ># 814 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > *(npy_int *)dst = ((npy_int)*(npy_double *)src); ># 833 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst += dst_stride; > src += src_stride; > > } >} ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_cast_double_to_int( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ > > > > npy_double src_value; > > > > > npy_int dst_value; > > > > > while (N--) { ># 790 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(&src_value, src, sizeof(src_value)); ># 812 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst_value = ((npy_int)src_value); ># 826 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(dst, &dst_value, sizeof(dst_value)); > > > > > > > dst += dst_stride; > src += src_stride; > > } >} ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_aligned_contig_cast_double_to_int( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ ># 781 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > while (N--) { ># 814 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > *(npy_int *)dst = ((npy_int)*(npy_double *)src); ># 830 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst += sizeof(npy_int); > src += sizeof(npy_double); > > > > > } >} ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_contig_cast_double_to_int( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ > > > > npy_double src_value; > > > > > npy_int dst_value; > > > > > while (N--) { ># 790 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(&src_value, src, sizeof(src_value)); ># 812 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst_value = ((npy_int)src_value); ># 826 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(dst, &dst_value, sizeof(dst_value)); > > > > dst += sizeof(npy_int); > src += sizeof(npy_double); > > > > > } >} ># 691 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_aligned_cast_double_to_long( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ ># 781 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > while (N--) { ># 814 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > *(npy_long *)dst = ((npy_long)*(npy_double *)src); ># 833 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst += dst_stride; > src += src_stride; > > } >} ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_cast_double_to_long( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ > > > > npy_double src_value; > > > > > npy_long dst_value; > > > > > while (N--) { ># 790 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(&src_value, src, sizeof(src_value)); ># 812 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst_value = ((npy_long)src_value); ># 826 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(dst, &dst_value, sizeof(dst_value)); > > > > > > > dst += dst_stride; > src += src_stride; > > } >} ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_aligned_contig_cast_double_to_long( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ ># 781 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > while (N--) { ># 814 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > *(npy_long *)dst = ((npy_long)*(npy_double *)src); ># 830 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst += sizeof(npy_long); > src += sizeof(npy_double); > > > > > } >} ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_contig_cast_double_to_long( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ > > > > npy_double src_value; > > > > > npy_long dst_value; > > > > > while (N--) { ># 790 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(&src_value, src, sizeof(src_value)); ># 812 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst_value = ((npy_long)src_value); ># 826 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(dst, &dst_value, sizeof(dst_value)); > > > > dst += sizeof(npy_long); > src += sizeof(npy_double); > > > > > } >} ># 691 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_aligned_cast_double_to_longlong( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ ># 781 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > while (N--) { ># 814 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > *(npy_longlong *)dst = ((npy_longlong)*(npy_double *)src); ># 833 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst += dst_stride; > src += src_stride; > > } >} ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_cast_double_to_longlong( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ > > > > npy_double src_value; > > > > > npy_longlong dst_value; > > > > > while (N--) { ># 790 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(&src_value, src, sizeof(src_value)); ># 812 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst_value = ((npy_longlong)src_value); ># 826 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(dst, &dst_value, sizeof(dst_value)); > > > > > > > dst += dst_stride; > src += src_stride; > > } >} ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_aligned_contig_cast_double_to_longlong( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ ># 781 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > while (N--) { ># 814 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > *(npy_longlong *)dst = ((npy_longlong)*(npy_double *)src); ># 830 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst += sizeof(npy_longlong); > src += sizeof(npy_double); > > > > > } >} ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_contig_cast_double_to_longlong( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ > > > > npy_double src_value; > > > > > npy_longlong dst_value; > > > > > while (N--) { ># 790 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(&src_value, src, sizeof(src_value)); ># 812 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst_value = ((npy_longlong)src_value); ># 826 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(dst, &dst_value, sizeof(dst_value)); > > > > dst += sizeof(npy_longlong); > src += sizeof(npy_double); > > > > > } >} ># 691 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_aligned_cast_double_to_half( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ ># 781 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > while (N--) { ># 814 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > *(npy_half *)dst = npy_doublebits_to_halfbits(*(npy_uint64 *)src); ># 833 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst += dst_stride; > src += src_stride; > > } >} ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_cast_double_to_half( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ > > > > npy_uint64 src_value; > > > > > npy_half dst_value; > > > > > while (N--) { ># 790 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(&src_value, src, sizeof(src_value)); ># 812 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst_value = npy_doublebits_to_halfbits(src_value); ># 826 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(dst, &dst_value, sizeof(dst_value)); > > > > > > > dst += dst_stride; > src += src_stride; > > } >} ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_aligned_contig_cast_double_to_half( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ ># 781 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > while (N--) { ># 814 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > *(npy_half *)dst = npy_doublebits_to_halfbits(*(npy_uint64 *)src); ># 830 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst += sizeof(npy_half); > src += sizeof(npy_double); > > > > > } >} ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_contig_cast_double_to_half( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ > > > > npy_uint64 src_value; > > > > > npy_half dst_value; > > > > > while (N--) { ># 790 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(&src_value, src, sizeof(src_value)); ># 812 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst_value = npy_doublebits_to_halfbits(src_value); ># 826 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(dst, &dst_value, sizeof(dst_value)); > > > > dst += sizeof(npy_half); > src += sizeof(npy_double); > > > > > } >} ># 691 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_aligned_cast_double_to_float( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ ># 781 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > while (N--) { ># 814 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > *(npy_float *)dst = ((npy_float)*(npy_double *)src); ># 833 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst += dst_stride; > src += src_stride; > > } >} ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_cast_double_to_float( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ > > > > npy_double src_value; > > > > > npy_float dst_value; > > > > > while (N--) { ># 790 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(&src_value, src, sizeof(src_value)); ># 812 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst_value = ((npy_float)src_value); ># 826 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(dst, &dst_value, sizeof(dst_value)); > > > > > > > dst += dst_stride; > src += src_stride; > > } >} ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_aligned_contig_cast_double_to_float( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ ># 781 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > while (N--) { ># 814 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > *(npy_float *)dst = ((npy_float)*(npy_double *)src); ># 830 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst += sizeof(npy_float); > src += sizeof(npy_double); > > > > > } >} ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_contig_cast_double_to_float( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ > > > > npy_double src_value; > > > > > npy_float dst_value; > > > > > while (N--) { ># 790 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(&src_value, src, sizeof(src_value)); ># 812 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst_value = ((npy_float)src_value); ># 826 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(dst, &dst_value, sizeof(dst_value)); > > > > dst += sizeof(npy_float); > src += sizeof(npy_double); > > > > > } >} ># 691 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_aligned_cast_double_to_double( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ ># 781 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > while (N--) { ># 814 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > *(npy_double *)dst = ((npy_double)*(npy_double *)src); ># 833 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst += dst_stride; > src += src_stride; > > } >} ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_cast_double_to_double( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ > > > > npy_double src_value; > > > > > npy_double dst_value; > > > > > while (N--) { ># 790 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(&src_value, src, sizeof(src_value)); ># 812 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst_value = ((npy_double)src_value); ># 826 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(dst, &dst_value, sizeof(dst_value)); > > > > > > > dst += dst_stride; > src += src_stride; > > } >} ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_aligned_contig_cast_double_to_double( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ ># 781 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > while (N--) { ># 814 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > *(npy_double *)dst = ((npy_double)*(npy_double *)src); ># 830 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst += sizeof(npy_double); > src += sizeof(npy_double); > > > > > } >} ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_contig_cast_double_to_double( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ > > > > npy_double src_value; > > > > > npy_double dst_value; > > > > > while (N--) { ># 790 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(&src_value, src, sizeof(src_value)); ># 812 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst_value = ((npy_double)src_value); ># 826 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(dst, &dst_value, sizeof(dst_value)); > > > > dst += sizeof(npy_double); > src += sizeof(npy_double); > > > > > } >} ># 691 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_aligned_cast_double_to_longdouble( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ ># 781 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > while (N--) { ># 814 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > *(npy_longdouble *)dst = ((npy_longdouble)*(npy_double *)src); ># 833 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst += dst_stride; > src += src_stride; > > } >} ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_cast_double_to_longdouble( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ > > > > npy_double src_value; > > > > > npy_longdouble dst_value; > > > > > while (N--) { ># 790 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(&src_value, src, sizeof(src_value)); ># 812 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst_value = ((npy_longdouble)src_value); ># 826 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(dst, &dst_value, sizeof(dst_value)); > > > > > > > dst += dst_stride; > src += src_stride; > > } >} ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_aligned_contig_cast_double_to_longdouble( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ ># 781 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > while (N--) { ># 814 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > *(npy_longdouble *)dst = ((npy_longdouble)*(npy_double *)src); ># 830 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst += sizeof(npy_longdouble); > src += sizeof(npy_double); > > > > > } >} ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_contig_cast_double_to_longdouble( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ > > > > npy_double src_value; > > > > > npy_longdouble dst_value; > > > > > while (N--) { ># 790 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(&src_value, src, sizeof(src_value)); ># 812 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst_value = ((npy_longdouble)src_value); ># 826 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(dst, &dst_value, sizeof(dst_value)); > > > > dst += sizeof(npy_longdouble); > src += sizeof(npy_double); > > > > > } >} ># 691 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_aligned_cast_double_to_cfloat( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ > > > > > > > npy_float dst_value[2]; > > > > > > > while (N--) { ># 808 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst_value[0] = ((npy_float)*(npy_double *)src); > > dst_value[1] = 0; ># 820 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > ((npy_float *)dst)[0] = dst_value[0]; > ((npy_float *)dst)[1] = dst_value[1]; ># 833 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst += dst_stride; > src += src_stride; > > } >} ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_cast_double_to_cfloat( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ > > > > npy_double src_value; > > > npy_float dst_value[2]; > > > > > > > while (N--) { ># 790 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(&src_value, src, sizeof(src_value)); ># 806 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst_value[0] = ((npy_float)src_value); > > > > dst_value[1] = 0; ># 826 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(dst, &dst_value, sizeof(dst_value)); > > > > > > > dst += dst_stride; > src += src_stride; > > } >} ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_aligned_contig_cast_double_to_cfloat( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ > > > > > > > npy_float dst_value[2]; > > > > > > > while (N--) { ># 808 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst_value[0] = ((npy_float)*(npy_double *)src); > > dst_value[1] = 0; ># 820 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > ((npy_float *)dst)[0] = dst_value[0]; > ((npy_float *)dst)[1] = dst_value[1]; ># 830 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst += sizeof(npy_cfloat); > src += sizeof(npy_double); > > > > > } >} ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_contig_cast_double_to_cfloat( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ > > > > npy_double src_value; > > > npy_float dst_value[2]; > > > > > > > while (N--) { ># 790 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(&src_value, src, sizeof(src_value)); ># 806 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst_value[0] = ((npy_float)src_value); > > > > dst_value[1] = 0; ># 826 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(dst, &dst_value, sizeof(dst_value)); > > > > dst += sizeof(npy_cfloat); > src += sizeof(npy_double); > > > > > } >} ># 691 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_aligned_cast_double_to_cdouble( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ > > > > > > > npy_double dst_value[2]; > > > > > > > while (N--) { ># 808 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst_value[0] = ((npy_double)*(npy_double *)src); > > dst_value[1] = 0; ># 820 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > ((npy_double *)dst)[0] = dst_value[0]; > ((npy_double *)dst)[1] = dst_value[1]; ># 833 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst += dst_stride; > src += src_stride; > > } >} ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_cast_double_to_cdouble( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ > > > > npy_double src_value; > > > npy_double dst_value[2]; > > > > > > > while (N--) { ># 790 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(&src_value, src, sizeof(src_value)); ># 806 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst_value[0] = ((npy_double)src_value); > > > > dst_value[1] = 0; ># 826 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(dst, &dst_value, sizeof(dst_value)); > > > > > > > dst += dst_stride; > src += src_stride; > > } >} ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_aligned_contig_cast_double_to_cdouble( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ > > > > > > > npy_double dst_value[2]; > > > > > > > while (N--) { ># 808 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst_value[0] = ((npy_double)*(npy_double *)src); > > dst_value[1] = 0; ># 820 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > ((npy_double *)dst)[0] = dst_value[0]; > ((npy_double *)dst)[1] = dst_value[1]; ># 830 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst += sizeof(npy_cdouble); > src += sizeof(npy_double); > > > > > } >} ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_contig_cast_double_to_cdouble( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ > > > > npy_double src_value; > > > npy_double dst_value[2]; > > > > > > > while (N--) { ># 790 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(&src_value, src, sizeof(src_value)); ># 806 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst_value[0] = ((npy_double)src_value); > > > > dst_value[1] = 0; ># 826 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(dst, &dst_value, sizeof(dst_value)); > > > > dst += sizeof(npy_cdouble); > src += sizeof(npy_double); > > > > > } >} ># 691 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_aligned_cast_double_to_clongdouble( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ > > > > > > > npy_longdouble dst_value[2]; > > > > > > > while (N--) { ># 808 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst_value[0] = ((npy_longdouble)*(npy_double *)src); > > dst_value[1] = 0; ># 820 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > ((npy_longdouble *)dst)[0] = dst_value[0]; > ((npy_longdouble *)dst)[1] = dst_value[1]; ># 833 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst += dst_stride; > src += src_stride; > > } >} ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_cast_double_to_clongdouble( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ > > > > npy_double src_value; > > > npy_longdouble dst_value[2]; > > > > > > > while (N--) { ># 790 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(&src_value, src, sizeof(src_value)); ># 806 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst_value[0] = ((npy_longdouble)src_value); > > > > dst_value[1] = 0; ># 826 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(dst, &dst_value, sizeof(dst_value)); > > > > > > > dst += dst_stride; > src += src_stride; > > } >} ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_aligned_contig_cast_double_to_clongdouble( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ > > > > > > > npy_longdouble dst_value[2]; > > > > > > > while (N--) { ># 808 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst_value[0] = ((npy_longdouble)*(npy_double *)src); > > dst_value[1] = 0; ># 820 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > ((npy_longdouble *)dst)[0] = dst_value[0]; > ((npy_longdouble *)dst)[1] = dst_value[1]; ># 830 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst += sizeof(npy_clongdouble); > src += sizeof(npy_double); > > > > > } >} ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_contig_cast_double_to_clongdouble( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ > > > > npy_double src_value; > > > npy_longdouble dst_value[2]; > > > > > > > while (N--) { ># 790 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(&src_value, src, sizeof(src_value)); ># 806 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst_value[0] = ((npy_longdouble)src_value); > > > > dst_value[1] = 0; ># 826 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(dst, &dst_value, sizeof(dst_value)); > > > > dst += sizeof(npy_clongdouble); > src += sizeof(npy_double); > > > > > } >} ># 667 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 691 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_aligned_cast_longdouble_to_bool( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ ># 781 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > while (N--) { ># 814 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > *(npy_bool *)dst = ((npy_bool)(*(npy_longdouble *)src != 0)); ># 833 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst += dst_stride; > src += src_stride; > > } >} ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_cast_longdouble_to_bool( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ > > > > npy_longdouble src_value; > > > > > npy_bool dst_value; > > > > > while (N--) { ># 790 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(&src_value, src, sizeof(src_value)); ># 812 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst_value = ((npy_bool)(src_value != 0)); ># 826 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(dst, &dst_value, sizeof(dst_value)); > > > > > > > dst += dst_stride; > src += src_stride; > > } >} ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_aligned_contig_cast_longdouble_to_bool( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ ># 781 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > while (N--) { ># 814 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > *(npy_bool *)dst = ((npy_bool)(*(npy_longdouble *)src != 0)); ># 830 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst += sizeof(npy_bool); > src += sizeof(npy_longdouble); > > > > > } >} ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_contig_cast_longdouble_to_bool( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ > > > > npy_longdouble src_value; > > > > > npy_bool dst_value; > > > > > while (N--) { ># 790 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(&src_value, src, sizeof(src_value)); ># 812 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst_value = ((npy_bool)(src_value != 0)); ># 826 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(dst, &dst_value, sizeof(dst_value)); > > > > dst += sizeof(npy_bool); > src += sizeof(npy_longdouble); > > > > > } >} ># 691 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_aligned_cast_longdouble_to_ubyte( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ ># 781 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > while (N--) { ># 814 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > *(npy_ubyte *)dst = ((npy_ubyte)*(npy_longdouble *)src); ># 833 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst += dst_stride; > src += src_stride; > > } >} ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_cast_longdouble_to_ubyte( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ > > > > npy_longdouble src_value; > > > > > npy_ubyte dst_value; > > > > > while (N--) { ># 790 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(&src_value, src, sizeof(src_value)); ># 812 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst_value = ((npy_ubyte)src_value); ># 826 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(dst, &dst_value, sizeof(dst_value)); > > > > > > > dst += dst_stride; > src += src_stride; > > } >} ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_aligned_contig_cast_longdouble_to_ubyte( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ ># 781 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > while (N--) { ># 814 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > *(npy_ubyte *)dst = ((npy_ubyte)*(npy_longdouble *)src); ># 830 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst += sizeof(npy_ubyte); > src += sizeof(npy_longdouble); > > > > > } >} ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_contig_cast_longdouble_to_ubyte( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ > > > > npy_longdouble src_value; > > > > > npy_ubyte dst_value; > > > > > while (N--) { ># 790 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(&src_value, src, sizeof(src_value)); ># 812 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst_value = ((npy_ubyte)src_value); ># 826 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(dst, &dst_value, sizeof(dst_value)); > > > > dst += sizeof(npy_ubyte); > src += sizeof(npy_longdouble); > > > > > } >} ># 691 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_aligned_cast_longdouble_to_ushort( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ ># 781 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > while (N--) { ># 814 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > *(npy_ushort *)dst = ((npy_ushort)*(npy_longdouble *)src); ># 833 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst += dst_stride; > src += src_stride; > > } >} ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_cast_longdouble_to_ushort( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ > > > > npy_longdouble src_value; > > > > > npy_ushort dst_value; > > > > > while (N--) { ># 790 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(&src_value, src, sizeof(src_value)); ># 812 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst_value = ((npy_ushort)src_value); ># 826 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(dst, &dst_value, sizeof(dst_value)); > > > > > > > dst += dst_stride; > src += src_stride; > > } >} ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_aligned_contig_cast_longdouble_to_ushort( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ ># 781 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > while (N--) { ># 814 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > *(npy_ushort *)dst = ((npy_ushort)*(npy_longdouble *)src); ># 830 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst += sizeof(npy_ushort); > src += sizeof(npy_longdouble); > > > > > } >} ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_contig_cast_longdouble_to_ushort( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ > > > > npy_longdouble src_value; > > > > > npy_ushort dst_value; > > > > > while (N--) { ># 790 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(&src_value, src, sizeof(src_value)); ># 812 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst_value = ((npy_ushort)src_value); ># 826 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(dst, &dst_value, sizeof(dst_value)); > > > > dst += sizeof(npy_ushort); > src += sizeof(npy_longdouble); > > > > > } >} ># 691 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_aligned_cast_longdouble_to_uint( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ ># 781 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > while (N--) { ># 814 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > *(npy_uint *)dst = ((npy_uint)*(npy_longdouble *)src); ># 833 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst += dst_stride; > src += src_stride; > > } >} ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_cast_longdouble_to_uint( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ > > > > npy_longdouble src_value; > > > > > npy_uint dst_value; > > > > > while (N--) { ># 790 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(&src_value, src, sizeof(src_value)); ># 812 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst_value = ((npy_uint)src_value); ># 826 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(dst, &dst_value, sizeof(dst_value)); > > > > > > > dst += dst_stride; > src += src_stride; > > } >} ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_aligned_contig_cast_longdouble_to_uint( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ ># 781 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > while (N--) { ># 814 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > *(npy_uint *)dst = ((npy_uint)*(npy_longdouble *)src); ># 830 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst += sizeof(npy_uint); > src += sizeof(npy_longdouble); > > > > > } >} ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_contig_cast_longdouble_to_uint( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ > > > > npy_longdouble src_value; > > > > > npy_uint dst_value; > > > > > while (N--) { ># 790 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(&src_value, src, sizeof(src_value)); ># 812 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst_value = ((npy_uint)src_value); ># 826 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(dst, &dst_value, sizeof(dst_value)); > > > > dst += sizeof(npy_uint); > src += sizeof(npy_longdouble); > > > > > } >} ># 691 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_aligned_cast_longdouble_to_ulong( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ ># 781 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > while (N--) { ># 814 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > *(npy_ulong *)dst = ((npy_ulong)*(npy_longdouble *)src); ># 833 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst += dst_stride; > src += src_stride; > > } >} ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_cast_longdouble_to_ulong( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ > > > > npy_longdouble src_value; > > > > > npy_ulong dst_value; > > > > > while (N--) { ># 790 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(&src_value, src, sizeof(src_value)); ># 812 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst_value = ((npy_ulong)src_value); ># 826 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(dst, &dst_value, sizeof(dst_value)); > > > > > > > dst += dst_stride; > src += src_stride; > > } >} ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_aligned_contig_cast_longdouble_to_ulong( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ ># 781 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > while (N--) { ># 814 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > *(npy_ulong *)dst = ((npy_ulong)*(npy_longdouble *)src); ># 830 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst += sizeof(npy_ulong); > src += sizeof(npy_longdouble); > > > > > } >} ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_contig_cast_longdouble_to_ulong( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ > > > > npy_longdouble src_value; > > > > > npy_ulong dst_value; > > > > > while (N--) { ># 790 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(&src_value, src, sizeof(src_value)); ># 812 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst_value = ((npy_ulong)src_value); ># 826 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(dst, &dst_value, sizeof(dst_value)); > > > > dst += sizeof(npy_ulong); > src += sizeof(npy_longdouble); > > > > > } >} ># 691 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_aligned_cast_longdouble_to_ulonglong( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ ># 781 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > while (N--) { ># 814 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > *(npy_ulonglong *)dst = ((npy_ulonglong)*(npy_longdouble *)src); ># 833 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst += dst_stride; > src += src_stride; > > } >} ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_cast_longdouble_to_ulonglong( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ > > > > npy_longdouble src_value; > > > > > npy_ulonglong dst_value; > > > > > while (N--) { ># 790 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(&src_value, src, sizeof(src_value)); ># 812 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst_value = ((npy_ulonglong)src_value); ># 826 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(dst, &dst_value, sizeof(dst_value)); > > > > > > > dst += dst_stride; > src += src_stride; > > } >} ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_aligned_contig_cast_longdouble_to_ulonglong( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ ># 781 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > while (N--) { ># 814 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > *(npy_ulonglong *)dst = ((npy_ulonglong)*(npy_longdouble *)src); ># 830 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst += sizeof(npy_ulonglong); > src += sizeof(npy_longdouble); > > > > > } >} ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_contig_cast_longdouble_to_ulonglong( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ > > > > npy_longdouble src_value; > > > > > npy_ulonglong dst_value; > > > > > while (N--) { ># 790 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(&src_value, src, sizeof(src_value)); ># 812 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst_value = ((npy_ulonglong)src_value); ># 826 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(dst, &dst_value, sizeof(dst_value)); > > > > dst += sizeof(npy_ulonglong); > src += sizeof(npy_longdouble); > > > > > } >} ># 691 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_aligned_cast_longdouble_to_byte( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ ># 781 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > while (N--) { ># 814 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > *(npy_byte *)dst = ((npy_byte)*(npy_longdouble *)src); ># 833 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst += dst_stride; > src += src_stride; > > } >} ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_cast_longdouble_to_byte( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ > > > > npy_longdouble src_value; > > > > > npy_byte dst_value; > > > > > while (N--) { ># 790 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(&src_value, src, sizeof(src_value)); ># 812 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst_value = ((npy_byte)src_value); ># 826 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(dst, &dst_value, sizeof(dst_value)); > > > > > > > dst += dst_stride; > src += src_stride; > > } >} ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_aligned_contig_cast_longdouble_to_byte( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ ># 781 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > while (N--) { ># 814 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > *(npy_byte *)dst = ((npy_byte)*(npy_longdouble *)src); ># 830 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst += sizeof(npy_byte); > src += sizeof(npy_longdouble); > > > > > } >} ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_contig_cast_longdouble_to_byte( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ > > > > npy_longdouble src_value; > > > > > npy_byte dst_value; > > > > > while (N--) { ># 790 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(&src_value, src, sizeof(src_value)); ># 812 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst_value = ((npy_byte)src_value); ># 826 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(dst, &dst_value, sizeof(dst_value)); > > > > dst += sizeof(npy_byte); > src += sizeof(npy_longdouble); > > > > > } >} ># 691 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_aligned_cast_longdouble_to_short( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ ># 781 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > while (N--) { ># 814 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > *(npy_short *)dst = ((npy_short)*(npy_longdouble *)src); ># 833 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst += dst_stride; > src += src_stride; > > } >} ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_cast_longdouble_to_short( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ > > > > npy_longdouble src_value; > > > > > npy_short dst_value; > > > > > while (N--) { ># 790 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(&src_value, src, sizeof(src_value)); ># 812 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst_value = ((npy_short)src_value); ># 826 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(dst, &dst_value, sizeof(dst_value)); > > > > > > > dst += dst_stride; > src += src_stride; > > } >} ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_aligned_contig_cast_longdouble_to_short( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ ># 781 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > while (N--) { ># 814 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > *(npy_short *)dst = ((npy_short)*(npy_longdouble *)src); ># 830 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst += sizeof(npy_short); > src += sizeof(npy_longdouble); > > > > > } >} ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_contig_cast_longdouble_to_short( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ > > > > npy_longdouble src_value; > > > > > npy_short dst_value; > > > > > while (N--) { ># 790 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(&src_value, src, sizeof(src_value)); ># 812 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst_value = ((npy_short)src_value); ># 826 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(dst, &dst_value, sizeof(dst_value)); > > > > dst += sizeof(npy_short); > src += sizeof(npy_longdouble); > > > > > } >} ># 691 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_aligned_cast_longdouble_to_int( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ ># 781 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > while (N--) { ># 814 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > *(npy_int *)dst = ((npy_int)*(npy_longdouble *)src); ># 833 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst += dst_stride; > src += src_stride; > > } >} ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_cast_longdouble_to_int( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ > > > > npy_longdouble src_value; > > > > > npy_int dst_value; > > > > > while (N--) { ># 790 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(&src_value, src, sizeof(src_value)); ># 812 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst_value = ((npy_int)src_value); ># 826 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(dst, &dst_value, sizeof(dst_value)); > > > > > > > dst += dst_stride; > src += src_stride; > > } >} ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_aligned_contig_cast_longdouble_to_int( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ ># 781 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > while (N--) { ># 814 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > *(npy_int *)dst = ((npy_int)*(npy_longdouble *)src); ># 830 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst += sizeof(npy_int); > src += sizeof(npy_longdouble); > > > > > } >} ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_contig_cast_longdouble_to_int( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ > > > > npy_longdouble src_value; > > > > > npy_int dst_value; > > > > > while (N--) { ># 790 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(&src_value, src, sizeof(src_value)); ># 812 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst_value = ((npy_int)src_value); ># 826 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(dst, &dst_value, sizeof(dst_value)); > > > > dst += sizeof(npy_int); > src += sizeof(npy_longdouble); > > > > > } >} ># 691 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_aligned_cast_longdouble_to_long( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ ># 781 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > while (N--) { ># 814 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > *(npy_long *)dst = ((npy_long)*(npy_longdouble *)src); ># 833 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst += dst_stride; > src += src_stride; > > } >} ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_cast_longdouble_to_long( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ > > > > npy_longdouble src_value; > > > > > npy_long dst_value; > > > > > while (N--) { ># 790 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(&src_value, src, sizeof(src_value)); ># 812 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst_value = ((npy_long)src_value); ># 826 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(dst, &dst_value, sizeof(dst_value)); > > > > > > > dst += dst_stride; > src += src_stride; > > } >} ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_aligned_contig_cast_longdouble_to_long( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ ># 781 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > while (N--) { ># 814 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > *(npy_long *)dst = ((npy_long)*(npy_longdouble *)src); ># 830 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst += sizeof(npy_long); > src += sizeof(npy_longdouble); > > > > > } >} ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_contig_cast_longdouble_to_long( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ > > > > npy_longdouble src_value; > > > > > npy_long dst_value; > > > > > while (N--) { ># 790 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(&src_value, src, sizeof(src_value)); ># 812 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst_value = ((npy_long)src_value); ># 826 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(dst, &dst_value, sizeof(dst_value)); > > > > dst += sizeof(npy_long); > src += sizeof(npy_longdouble); > > > > > } >} ># 691 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_aligned_cast_longdouble_to_longlong( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ ># 781 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > while (N--) { ># 814 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > *(npy_longlong *)dst = ((npy_longlong)*(npy_longdouble *)src); ># 833 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst += dst_stride; > src += src_stride; > > } >} ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_cast_longdouble_to_longlong( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ > > > > npy_longdouble src_value; > > > > > npy_longlong dst_value; > > > > > while (N--) { ># 790 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(&src_value, src, sizeof(src_value)); ># 812 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst_value = ((npy_longlong)src_value); ># 826 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(dst, &dst_value, sizeof(dst_value)); > > > > > > > dst += dst_stride; > src += src_stride; > > } >} ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_aligned_contig_cast_longdouble_to_longlong( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ ># 781 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > while (N--) { ># 814 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > *(npy_longlong *)dst = ((npy_longlong)*(npy_longdouble *)src); ># 830 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst += sizeof(npy_longlong); > src += sizeof(npy_longdouble); > > > > > } >} ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_contig_cast_longdouble_to_longlong( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ > > > > npy_longdouble src_value; > > > > > npy_longlong dst_value; > > > > > while (N--) { ># 790 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(&src_value, src, sizeof(src_value)); ># 812 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst_value = ((npy_longlong)src_value); ># 826 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(dst, &dst_value, sizeof(dst_value)); > > > > dst += sizeof(npy_longlong); > src += sizeof(npy_longdouble); > > > > > } >} ># 691 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_aligned_cast_longdouble_to_half( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ ># 781 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > while (N--) { ># 814 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > *(npy_half *)dst = npy_float_to_half((float)*(npy_longdouble *)src); ># 833 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst += dst_stride; > src += src_stride; > > } >} ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_cast_longdouble_to_half( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ > > > > npy_longdouble src_value; > > > > > npy_half dst_value; > > > > > while (N--) { ># 790 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(&src_value, src, sizeof(src_value)); ># 812 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst_value = npy_float_to_half((float)src_value); ># 826 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(dst, &dst_value, sizeof(dst_value)); > > > > > > > dst += dst_stride; > src += src_stride; > > } >} ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_aligned_contig_cast_longdouble_to_half( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ ># 781 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > while (N--) { ># 814 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > *(npy_half *)dst = npy_float_to_half((float)*(npy_longdouble *)src); ># 830 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst += sizeof(npy_half); > src += sizeof(npy_longdouble); > > > > > } >} ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_contig_cast_longdouble_to_half( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ > > > > npy_longdouble src_value; > > > > > npy_half dst_value; > > > > > while (N--) { ># 790 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(&src_value, src, sizeof(src_value)); ># 812 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst_value = npy_float_to_half((float)src_value); ># 826 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(dst, &dst_value, sizeof(dst_value)); > > > > dst += sizeof(npy_half); > src += sizeof(npy_longdouble); > > > > > } >} ># 691 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_aligned_cast_longdouble_to_float( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ ># 781 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > while (N--) { ># 814 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > *(npy_float *)dst = ((npy_float)*(npy_longdouble *)src); ># 833 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst += dst_stride; > src += src_stride; > > } >} ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_cast_longdouble_to_float( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ > > > > npy_longdouble src_value; > > > > > npy_float dst_value; > > > > > while (N--) { ># 790 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(&src_value, src, sizeof(src_value)); ># 812 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst_value = ((npy_float)src_value); ># 826 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(dst, &dst_value, sizeof(dst_value)); > > > > > > > dst += dst_stride; > src += src_stride; > > } >} ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_aligned_contig_cast_longdouble_to_float( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ ># 781 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > while (N--) { ># 814 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > *(npy_float *)dst = ((npy_float)*(npy_longdouble *)src); ># 830 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst += sizeof(npy_float); > src += sizeof(npy_longdouble); > > > > > } >} ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_contig_cast_longdouble_to_float( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ > > > > npy_longdouble src_value; > > > > > npy_float dst_value; > > > > > while (N--) { ># 790 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(&src_value, src, sizeof(src_value)); ># 812 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst_value = ((npy_float)src_value); ># 826 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(dst, &dst_value, sizeof(dst_value)); > > > > dst += sizeof(npy_float); > src += sizeof(npy_longdouble); > > > > > } >} ># 691 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_aligned_cast_longdouble_to_double( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ ># 781 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > while (N--) { ># 814 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > *(npy_double *)dst = ((npy_double)*(npy_longdouble *)src); ># 833 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst += dst_stride; > src += src_stride; > > } >} ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_cast_longdouble_to_double( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ > > > > npy_longdouble src_value; > > > > > npy_double dst_value; > > > > > while (N--) { ># 790 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(&src_value, src, sizeof(src_value)); ># 812 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst_value = ((npy_double)src_value); ># 826 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(dst, &dst_value, sizeof(dst_value)); > > > > > > > dst += dst_stride; > src += src_stride; > > } >} ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_aligned_contig_cast_longdouble_to_double( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ ># 781 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > while (N--) { ># 814 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > *(npy_double *)dst = ((npy_double)*(npy_longdouble *)src); ># 830 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst += sizeof(npy_double); > src += sizeof(npy_longdouble); > > > > > } >} ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_contig_cast_longdouble_to_double( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ > > > > npy_longdouble src_value; > > > > > npy_double dst_value; > > > > > while (N--) { ># 790 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(&src_value, src, sizeof(src_value)); ># 812 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst_value = ((npy_double)src_value); ># 826 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(dst, &dst_value, sizeof(dst_value)); > > > > dst += sizeof(npy_double); > src += sizeof(npy_longdouble); > > > > > } >} ># 691 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_aligned_cast_longdouble_to_longdouble( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ ># 781 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > while (N--) { ># 814 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > *(npy_longdouble *)dst = ((npy_longdouble)*(npy_longdouble *)src); ># 833 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst += dst_stride; > src += src_stride; > > } >} ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_cast_longdouble_to_longdouble( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ > > > > npy_longdouble src_value; > > > > > npy_longdouble dst_value; > > > > > while (N--) { ># 790 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(&src_value, src, sizeof(src_value)); ># 812 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst_value = ((npy_longdouble)src_value); ># 826 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(dst, &dst_value, sizeof(dst_value)); > > > > > > > dst += dst_stride; > src += src_stride; > > } >} ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_aligned_contig_cast_longdouble_to_longdouble( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ ># 781 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > while (N--) { ># 814 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > *(npy_longdouble *)dst = ((npy_longdouble)*(npy_longdouble *)src); ># 830 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst += sizeof(npy_longdouble); > src += sizeof(npy_longdouble); > > > > > } >} ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_contig_cast_longdouble_to_longdouble( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ > > > > npy_longdouble src_value; > > > > > npy_longdouble dst_value; > > > > > while (N--) { ># 790 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(&src_value, src, sizeof(src_value)); ># 812 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst_value = ((npy_longdouble)src_value); ># 826 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(dst, &dst_value, sizeof(dst_value)); > > > > dst += sizeof(npy_longdouble); > src += sizeof(npy_longdouble); > > > > > } >} ># 691 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_aligned_cast_longdouble_to_cfloat( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ > > > > > > > npy_float dst_value[2]; > > > > > > > while (N--) { ># 808 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst_value[0] = ((npy_float)*(npy_longdouble *)src); > > dst_value[1] = 0; ># 820 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > ((npy_float *)dst)[0] = dst_value[0]; > ((npy_float *)dst)[1] = dst_value[1]; ># 833 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst += dst_stride; > src += src_stride; > > } >} ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_cast_longdouble_to_cfloat( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ > > > > npy_longdouble src_value; > > > npy_float dst_value[2]; > > > > > > > while (N--) { ># 790 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(&src_value, src, sizeof(src_value)); ># 806 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst_value[0] = ((npy_float)src_value); > > > > dst_value[1] = 0; ># 826 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(dst, &dst_value, sizeof(dst_value)); > > > > > > > dst += dst_stride; > src += src_stride; > > } >} ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_aligned_contig_cast_longdouble_to_cfloat( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ > > > > > > > npy_float dst_value[2]; > > > > > > > while (N--) { ># 808 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst_value[0] = ((npy_float)*(npy_longdouble *)src); > > dst_value[1] = 0; ># 820 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > ((npy_float *)dst)[0] = dst_value[0]; > ((npy_float *)dst)[1] = dst_value[1]; ># 830 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst += sizeof(npy_cfloat); > src += sizeof(npy_longdouble); > > > > > } >} ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_contig_cast_longdouble_to_cfloat( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ > > > > npy_longdouble src_value; > > > npy_float dst_value[2]; > > > > > > > while (N--) { ># 790 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(&src_value, src, sizeof(src_value)); ># 806 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst_value[0] = ((npy_float)src_value); > > > > dst_value[1] = 0; ># 826 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(dst, &dst_value, sizeof(dst_value)); > > > > dst += sizeof(npy_cfloat); > src += sizeof(npy_longdouble); > > > > > } >} ># 691 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_aligned_cast_longdouble_to_cdouble( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ > > > > > > > npy_double dst_value[2]; > > > > > > > while (N--) { ># 808 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst_value[0] = ((npy_double)*(npy_longdouble *)src); > > dst_value[1] = 0; ># 820 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > ((npy_double *)dst)[0] = dst_value[0]; > ((npy_double *)dst)[1] = dst_value[1]; ># 833 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst += dst_stride; > src += src_stride; > > } >} ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_cast_longdouble_to_cdouble( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ > > > > npy_longdouble src_value; > > > npy_double dst_value[2]; > > > > > > > while (N--) { ># 790 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(&src_value, src, sizeof(src_value)); ># 806 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst_value[0] = ((npy_double)src_value); > > > > dst_value[1] = 0; ># 826 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(dst, &dst_value, sizeof(dst_value)); > > > > > > > dst += dst_stride; > src += src_stride; > > } >} ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_aligned_contig_cast_longdouble_to_cdouble( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ > > > > > > > npy_double dst_value[2]; > > > > > > > while (N--) { ># 808 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst_value[0] = ((npy_double)*(npy_longdouble *)src); > > dst_value[1] = 0; ># 820 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > ((npy_double *)dst)[0] = dst_value[0]; > ((npy_double *)dst)[1] = dst_value[1]; ># 830 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst += sizeof(npy_cdouble); > src += sizeof(npy_longdouble); > > > > > } >} ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_contig_cast_longdouble_to_cdouble( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ > > > > npy_longdouble src_value; > > > npy_double dst_value[2]; > > > > > > > while (N--) { ># 790 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(&src_value, src, sizeof(src_value)); ># 806 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst_value[0] = ((npy_double)src_value); > > > > dst_value[1] = 0; ># 826 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(dst, &dst_value, sizeof(dst_value)); > > > > dst += sizeof(npy_cdouble); > src += sizeof(npy_longdouble); > > > > > } >} ># 691 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_aligned_cast_longdouble_to_clongdouble( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ > > > > > > > npy_longdouble dst_value[2]; > > > > > > > while (N--) { ># 808 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst_value[0] = ((npy_longdouble)*(npy_longdouble *)src); > > dst_value[1] = 0; ># 820 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > ((npy_longdouble *)dst)[0] = dst_value[0]; > ((npy_longdouble *)dst)[1] = dst_value[1]; ># 833 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst += dst_stride; > src += src_stride; > > } >} ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_cast_longdouble_to_clongdouble( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ > > > > npy_longdouble src_value; > > > npy_longdouble dst_value[2]; > > > > > > > while (N--) { ># 790 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(&src_value, src, sizeof(src_value)); ># 806 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst_value[0] = ((npy_longdouble)src_value); > > > > dst_value[1] = 0; ># 826 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(dst, &dst_value, sizeof(dst_value)); > > > > > > > dst += dst_stride; > src += src_stride; > > } >} ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_aligned_contig_cast_longdouble_to_clongdouble( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ > > > > > > > npy_longdouble dst_value[2]; > > > > > > > while (N--) { ># 808 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst_value[0] = ((npy_longdouble)*(npy_longdouble *)src); > > dst_value[1] = 0; ># 820 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > ((npy_longdouble *)dst)[0] = dst_value[0]; > ((npy_longdouble *)dst)[1] = dst_value[1]; ># 830 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst += sizeof(npy_clongdouble); > src += sizeof(npy_longdouble); > > > > > } >} ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_contig_cast_longdouble_to_clongdouble( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ > > > > npy_longdouble src_value; > > > npy_longdouble dst_value[2]; > > > > > > > while (N--) { ># 790 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(&src_value, src, sizeof(src_value)); ># 806 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst_value[0] = ((npy_longdouble)src_value); > > > > dst_value[1] = 0; ># 826 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(dst, &dst_value, sizeof(dst_value)); > > > > dst += sizeof(npy_clongdouble); > src += sizeof(npy_longdouble); > > > > > } >} ># 667 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 691 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_aligned_cast_cfloat_to_bool( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ > > npy_float src_value[2]; ># 781 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > while (N--) { > > > src_value[0] = ((npy_float *)src)[0]; > src_value[1] = ((npy_float *)src)[1]; ># 801 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > *(npy_bool *)dst = ((npy_bool)(src_value[0] != 0)); ># 833 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst += dst_stride; > src += src_stride; > > } >} ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_cast_cfloat_to_bool( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ > > npy_float src_value[2]; > > > > > > > npy_bool dst_value; > > > > > while (N--) { ># 790 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(&src_value, src, sizeof(src_value)); ># 799 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst_value = ((npy_bool)(src_value[0] != 0)); ># 826 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(dst, &dst_value, sizeof(dst_value)); > > > > > > > dst += dst_stride; > src += src_stride; > > } >} ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_aligned_contig_cast_cfloat_to_bool( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ > > npy_float src_value[2]; ># 781 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > while (N--) { > > > src_value[0] = ((npy_float *)src)[0]; > src_value[1] = ((npy_float *)src)[1]; ># 801 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > *(npy_bool *)dst = ((npy_bool)(src_value[0] != 0)); ># 830 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst += sizeof(npy_bool); > src += sizeof(npy_cfloat); > > > > > } >} ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_contig_cast_cfloat_to_bool( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ > > npy_float src_value[2]; > > > > > > > npy_bool dst_value; > > > > > while (N--) { ># 790 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(&src_value, src, sizeof(src_value)); ># 799 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst_value = ((npy_bool)(src_value[0] != 0)); ># 826 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(dst, &dst_value, sizeof(dst_value)); > > > > dst += sizeof(npy_bool); > src += sizeof(npy_cfloat); > > > > > } >} ># 691 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_aligned_cast_cfloat_to_ubyte( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ > > npy_float src_value[2]; ># 781 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > while (N--) { > > > src_value[0] = ((npy_float *)src)[0]; > src_value[1] = ((npy_float *)src)[1]; ># 801 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > *(npy_ubyte *)dst = ((npy_ubyte)src_value[0]); ># 833 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst += dst_stride; > src += src_stride; > > } >} ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_cast_cfloat_to_ubyte( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ > > npy_float src_value[2]; > > > > > > > npy_ubyte dst_value; > > > > > while (N--) { ># 790 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(&src_value, src, sizeof(src_value)); ># 799 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst_value = ((npy_ubyte)src_value[0]); ># 826 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(dst, &dst_value, sizeof(dst_value)); > > > > > > > dst += dst_stride; > src += src_stride; > > } >} ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_aligned_contig_cast_cfloat_to_ubyte( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ > > npy_float src_value[2]; ># 781 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > while (N--) { > > > src_value[0] = ((npy_float *)src)[0]; > src_value[1] = ((npy_float *)src)[1]; ># 801 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > *(npy_ubyte *)dst = ((npy_ubyte)src_value[0]); ># 830 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst += sizeof(npy_ubyte); > src += sizeof(npy_cfloat); > > > > > } >} ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_contig_cast_cfloat_to_ubyte( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ > > npy_float src_value[2]; > > > > > > > npy_ubyte dst_value; > > > > > while (N--) { ># 790 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(&src_value, src, sizeof(src_value)); ># 799 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst_value = ((npy_ubyte)src_value[0]); ># 826 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(dst, &dst_value, sizeof(dst_value)); > > > > dst += sizeof(npy_ubyte); > src += sizeof(npy_cfloat); > > > > > } >} ># 691 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_aligned_cast_cfloat_to_ushort( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ > > npy_float src_value[2]; ># 781 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > while (N--) { > > > src_value[0] = ((npy_float *)src)[0]; > src_value[1] = ((npy_float *)src)[1]; ># 801 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > *(npy_ushort *)dst = ((npy_ushort)src_value[0]); ># 833 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst += dst_stride; > src += src_stride; > > } >} ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_cast_cfloat_to_ushort( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ > > npy_float src_value[2]; > > > > > > > npy_ushort dst_value; > > > > > while (N--) { ># 790 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(&src_value, src, sizeof(src_value)); ># 799 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst_value = ((npy_ushort)src_value[0]); ># 826 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(dst, &dst_value, sizeof(dst_value)); > > > > > > > dst += dst_stride; > src += src_stride; > > } >} ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_aligned_contig_cast_cfloat_to_ushort( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ > > npy_float src_value[2]; ># 781 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > while (N--) { > > > src_value[0] = ((npy_float *)src)[0]; > src_value[1] = ((npy_float *)src)[1]; ># 801 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > *(npy_ushort *)dst = ((npy_ushort)src_value[0]); ># 830 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst += sizeof(npy_ushort); > src += sizeof(npy_cfloat); > > > > > } >} ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_contig_cast_cfloat_to_ushort( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ > > npy_float src_value[2]; > > > > > > > npy_ushort dst_value; > > > > > while (N--) { ># 790 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(&src_value, src, sizeof(src_value)); ># 799 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst_value = ((npy_ushort)src_value[0]); ># 826 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(dst, &dst_value, sizeof(dst_value)); > > > > dst += sizeof(npy_ushort); > src += sizeof(npy_cfloat); > > > > > } >} ># 691 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_aligned_cast_cfloat_to_uint( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ > > npy_float src_value[2]; ># 781 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > while (N--) { > > > src_value[0] = ((npy_float *)src)[0]; > src_value[1] = ((npy_float *)src)[1]; ># 801 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > *(npy_uint *)dst = ((npy_uint)src_value[0]); ># 833 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst += dst_stride; > src += src_stride; > > } >} ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_cast_cfloat_to_uint( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ > > npy_float src_value[2]; > > > > > > > npy_uint dst_value; > > > > > while (N--) { ># 790 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(&src_value, src, sizeof(src_value)); ># 799 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst_value = ((npy_uint)src_value[0]); ># 826 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(dst, &dst_value, sizeof(dst_value)); > > > > > > > dst += dst_stride; > src += src_stride; > > } >} ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_aligned_contig_cast_cfloat_to_uint( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ > > npy_float src_value[2]; ># 781 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > while (N--) { > > > src_value[0] = ((npy_float *)src)[0]; > src_value[1] = ((npy_float *)src)[1]; ># 801 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > *(npy_uint *)dst = ((npy_uint)src_value[0]); ># 830 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst += sizeof(npy_uint); > src += sizeof(npy_cfloat); > > > > > } >} ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_contig_cast_cfloat_to_uint( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ > > npy_float src_value[2]; > > > > > > > npy_uint dst_value; > > > > > while (N--) { ># 790 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(&src_value, src, sizeof(src_value)); ># 799 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst_value = ((npy_uint)src_value[0]); ># 826 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(dst, &dst_value, sizeof(dst_value)); > > > > dst += sizeof(npy_uint); > src += sizeof(npy_cfloat); > > > > > } >} ># 691 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_aligned_cast_cfloat_to_ulong( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ > > npy_float src_value[2]; ># 781 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > while (N--) { > > > src_value[0] = ((npy_float *)src)[0]; > src_value[1] = ((npy_float *)src)[1]; ># 801 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > *(npy_ulong *)dst = ((npy_ulong)src_value[0]); ># 833 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst += dst_stride; > src += src_stride; > > } >} ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_cast_cfloat_to_ulong( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ > > npy_float src_value[2]; > > > > > > > npy_ulong dst_value; > > > > > while (N--) { ># 790 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(&src_value, src, sizeof(src_value)); ># 799 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst_value = ((npy_ulong)src_value[0]); ># 826 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(dst, &dst_value, sizeof(dst_value)); > > > > > > > dst += dst_stride; > src += src_stride; > > } >} ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_aligned_contig_cast_cfloat_to_ulong( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ > > npy_float src_value[2]; ># 781 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > while (N--) { > > > src_value[0] = ((npy_float *)src)[0]; > src_value[1] = ((npy_float *)src)[1]; ># 801 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > *(npy_ulong *)dst = ((npy_ulong)src_value[0]); ># 830 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst += sizeof(npy_ulong); > src += sizeof(npy_cfloat); > > > > > } >} ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_contig_cast_cfloat_to_ulong( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ > > npy_float src_value[2]; > > > > > > > npy_ulong dst_value; > > > > > while (N--) { ># 790 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(&src_value, src, sizeof(src_value)); ># 799 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst_value = ((npy_ulong)src_value[0]); ># 826 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(dst, &dst_value, sizeof(dst_value)); > > > > dst += sizeof(npy_ulong); > src += sizeof(npy_cfloat); > > > > > } >} ># 691 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_aligned_cast_cfloat_to_ulonglong( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ > > npy_float src_value[2]; ># 781 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > while (N--) { > > > src_value[0] = ((npy_float *)src)[0]; > src_value[1] = ((npy_float *)src)[1]; ># 801 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > *(npy_ulonglong *)dst = ((npy_ulonglong)src_value[0]); ># 833 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst += dst_stride; > src += src_stride; > > } >} ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_cast_cfloat_to_ulonglong( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ > > npy_float src_value[2]; > > > > > > > npy_ulonglong dst_value; > > > > > while (N--) { ># 790 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(&src_value, src, sizeof(src_value)); ># 799 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst_value = ((npy_ulonglong)src_value[0]); ># 826 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(dst, &dst_value, sizeof(dst_value)); > > > > > > > dst += dst_stride; > src += src_stride; > > } >} ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_aligned_contig_cast_cfloat_to_ulonglong( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ > > npy_float src_value[2]; ># 781 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > while (N--) { > > > src_value[0] = ((npy_float *)src)[0]; > src_value[1] = ((npy_float *)src)[1]; ># 801 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > *(npy_ulonglong *)dst = ((npy_ulonglong)src_value[0]); ># 830 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst += sizeof(npy_ulonglong); > src += sizeof(npy_cfloat); > > > > > } >} ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_contig_cast_cfloat_to_ulonglong( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ > > npy_float src_value[2]; > > > > > > > npy_ulonglong dst_value; > > > > > while (N--) { ># 790 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(&src_value, src, sizeof(src_value)); ># 799 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst_value = ((npy_ulonglong)src_value[0]); ># 826 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(dst, &dst_value, sizeof(dst_value)); > > > > dst += sizeof(npy_ulonglong); > src += sizeof(npy_cfloat); > > > > > } >} ># 691 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_aligned_cast_cfloat_to_byte( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ > > npy_float src_value[2]; ># 781 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > while (N--) { > > > src_value[0] = ((npy_float *)src)[0]; > src_value[1] = ((npy_float *)src)[1]; ># 801 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > *(npy_byte *)dst = ((npy_byte)src_value[0]); ># 833 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst += dst_stride; > src += src_stride; > > } >} ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_cast_cfloat_to_byte( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ > > npy_float src_value[2]; > > > > > > > npy_byte dst_value; > > > > > while (N--) { ># 790 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(&src_value, src, sizeof(src_value)); ># 799 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst_value = ((npy_byte)src_value[0]); ># 826 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(dst, &dst_value, sizeof(dst_value)); > > > > > > > dst += dst_stride; > src += src_stride; > > } >} ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_aligned_contig_cast_cfloat_to_byte( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ > > npy_float src_value[2]; ># 781 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > while (N--) { > > > src_value[0] = ((npy_float *)src)[0]; > src_value[1] = ((npy_float *)src)[1]; ># 801 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > *(npy_byte *)dst = ((npy_byte)src_value[0]); ># 830 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst += sizeof(npy_byte); > src += sizeof(npy_cfloat); > > > > > } >} ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_contig_cast_cfloat_to_byte( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ > > npy_float src_value[2]; > > > > > > > npy_byte dst_value; > > > > > while (N--) { ># 790 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(&src_value, src, sizeof(src_value)); ># 799 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst_value = ((npy_byte)src_value[0]); ># 826 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(dst, &dst_value, sizeof(dst_value)); > > > > dst += sizeof(npy_byte); > src += sizeof(npy_cfloat); > > > > > } >} ># 691 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_aligned_cast_cfloat_to_short( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ > > npy_float src_value[2]; ># 781 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > while (N--) { > > > src_value[0] = ((npy_float *)src)[0]; > src_value[1] = ((npy_float *)src)[1]; ># 801 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > *(npy_short *)dst = ((npy_short)src_value[0]); ># 833 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst += dst_stride; > src += src_stride; > > } >} ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_cast_cfloat_to_short( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ > > npy_float src_value[2]; > > > > > > > npy_short dst_value; > > > > > while (N--) { ># 790 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(&src_value, src, sizeof(src_value)); ># 799 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst_value = ((npy_short)src_value[0]); ># 826 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(dst, &dst_value, sizeof(dst_value)); > > > > > > > dst += dst_stride; > src += src_stride; > > } >} ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_aligned_contig_cast_cfloat_to_short( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ > > npy_float src_value[2]; ># 781 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > while (N--) { > > > src_value[0] = ((npy_float *)src)[0]; > src_value[1] = ((npy_float *)src)[1]; ># 801 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > *(npy_short *)dst = ((npy_short)src_value[0]); ># 830 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst += sizeof(npy_short); > src += sizeof(npy_cfloat); > > > > > } >} ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_contig_cast_cfloat_to_short( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ > > npy_float src_value[2]; > > > > > > > npy_short dst_value; > > > > > while (N--) { ># 790 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(&src_value, src, sizeof(src_value)); ># 799 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst_value = ((npy_short)src_value[0]); ># 826 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(dst, &dst_value, sizeof(dst_value)); > > > > dst += sizeof(npy_short); > src += sizeof(npy_cfloat); > > > > > } >} ># 691 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_aligned_cast_cfloat_to_int( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ > > npy_float src_value[2]; ># 781 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > while (N--) { > > > src_value[0] = ((npy_float *)src)[0]; > src_value[1] = ((npy_float *)src)[1]; ># 801 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > *(npy_int *)dst = ((npy_int)src_value[0]); ># 833 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst += dst_stride; > src += src_stride; > > } >} ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_cast_cfloat_to_int( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ > > npy_float src_value[2]; > > > > > > > npy_int dst_value; > > > > > while (N--) { ># 790 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(&src_value, src, sizeof(src_value)); ># 799 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst_value = ((npy_int)src_value[0]); ># 826 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(dst, &dst_value, sizeof(dst_value)); > > > > > > > dst += dst_stride; > src += src_stride; > > } >} ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_aligned_contig_cast_cfloat_to_int( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ > > npy_float src_value[2]; ># 781 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > while (N--) { > > > src_value[0] = ((npy_float *)src)[0]; > src_value[1] = ((npy_float *)src)[1]; ># 801 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > *(npy_int *)dst = ((npy_int)src_value[0]); ># 830 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst += sizeof(npy_int); > src += sizeof(npy_cfloat); > > > > > } >} ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_contig_cast_cfloat_to_int( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ > > npy_float src_value[2]; > > > > > > > npy_int dst_value; > > > > > while (N--) { ># 790 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(&src_value, src, sizeof(src_value)); ># 799 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst_value = ((npy_int)src_value[0]); ># 826 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(dst, &dst_value, sizeof(dst_value)); > > > > dst += sizeof(npy_int); > src += sizeof(npy_cfloat); > > > > > } >} ># 691 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_aligned_cast_cfloat_to_long( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ > > npy_float src_value[2]; ># 781 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > while (N--) { > > > src_value[0] = ((npy_float *)src)[0]; > src_value[1] = ((npy_float *)src)[1]; ># 801 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > *(npy_long *)dst = ((npy_long)src_value[0]); ># 833 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst += dst_stride; > src += src_stride; > > } >} ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_cast_cfloat_to_long( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ > > npy_float src_value[2]; > > > > > > > npy_long dst_value; > > > > > while (N--) { ># 790 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(&src_value, src, sizeof(src_value)); ># 799 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst_value = ((npy_long)src_value[0]); ># 826 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(dst, &dst_value, sizeof(dst_value)); > > > > > > > dst += dst_stride; > src += src_stride; > > } >} ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_aligned_contig_cast_cfloat_to_long( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ > > npy_float src_value[2]; ># 781 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > while (N--) { > > > src_value[0] = ((npy_float *)src)[0]; > src_value[1] = ((npy_float *)src)[1]; ># 801 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > *(npy_long *)dst = ((npy_long)src_value[0]); ># 830 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst += sizeof(npy_long); > src += sizeof(npy_cfloat); > > > > > } >} ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_contig_cast_cfloat_to_long( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ > > npy_float src_value[2]; > > > > > > > npy_long dst_value; > > > > > while (N--) { ># 790 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(&src_value, src, sizeof(src_value)); ># 799 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst_value = ((npy_long)src_value[0]); ># 826 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(dst, &dst_value, sizeof(dst_value)); > > > > dst += sizeof(npy_long); > src += sizeof(npy_cfloat); > > > > > } >} ># 691 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_aligned_cast_cfloat_to_longlong( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ > > npy_float src_value[2]; ># 781 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > while (N--) { > > > src_value[0] = ((npy_float *)src)[0]; > src_value[1] = ((npy_float *)src)[1]; ># 801 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > *(npy_longlong *)dst = ((npy_longlong)src_value[0]); ># 833 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst += dst_stride; > src += src_stride; > > } >} ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_cast_cfloat_to_longlong( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ > > npy_float src_value[2]; > > > > > > > npy_longlong dst_value; > > > > > while (N--) { ># 790 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(&src_value, src, sizeof(src_value)); ># 799 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst_value = ((npy_longlong)src_value[0]); ># 826 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(dst, &dst_value, sizeof(dst_value)); > > > > > > > dst += dst_stride; > src += src_stride; > > } >} ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_aligned_contig_cast_cfloat_to_longlong( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ > > npy_float src_value[2]; ># 781 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > while (N--) { > > > src_value[0] = ((npy_float *)src)[0]; > src_value[1] = ((npy_float *)src)[1]; ># 801 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > *(npy_longlong *)dst = ((npy_longlong)src_value[0]); ># 830 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst += sizeof(npy_longlong); > src += sizeof(npy_cfloat); > > > > > } >} ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_contig_cast_cfloat_to_longlong( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ > > npy_float src_value[2]; > > > > > > > npy_longlong dst_value; > > > > > while (N--) { ># 790 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(&src_value, src, sizeof(src_value)); ># 799 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst_value = ((npy_longlong)src_value[0]); ># 826 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(dst, &dst_value, sizeof(dst_value)); > > > > dst += sizeof(npy_longlong); > src += sizeof(npy_cfloat); > > > > > } >} ># 691 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_aligned_cast_cfloat_to_half( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ > > npy_uint32 src_value[2]; ># 781 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > while (N--) { > > > src_value[0] = ((npy_uint32 *)src)[0]; > src_value[1] = ((npy_uint32 *)src)[1]; ># 801 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > *(npy_half *)dst = npy_floatbits_to_halfbits(src_value[0]); ># 833 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst += dst_stride; > src += src_stride; > > } >} ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_cast_cfloat_to_half( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ > > npy_uint32 src_value[2]; > > > > > > > npy_half dst_value; > > > > > while (N--) { ># 790 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(&src_value, src, sizeof(src_value)); ># 799 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst_value = npy_floatbits_to_halfbits(src_value[0]); ># 826 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(dst, &dst_value, sizeof(dst_value)); > > > > > > > dst += dst_stride; > src += src_stride; > > } >} ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_aligned_contig_cast_cfloat_to_half( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ > > npy_uint32 src_value[2]; ># 781 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > while (N--) { > > > src_value[0] = ((npy_uint32 *)src)[0]; > src_value[1] = ((npy_uint32 *)src)[1]; ># 801 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > *(npy_half *)dst = npy_floatbits_to_halfbits(src_value[0]); ># 830 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst += sizeof(npy_half); > src += sizeof(npy_cfloat); > > > > > } >} ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_contig_cast_cfloat_to_half( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ > > npy_uint32 src_value[2]; > > > > > > > npy_half dst_value; > > > > > while (N--) { ># 790 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(&src_value, src, sizeof(src_value)); ># 799 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst_value = npy_floatbits_to_halfbits(src_value[0]); ># 826 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(dst, &dst_value, sizeof(dst_value)); > > > > dst += sizeof(npy_half); > src += sizeof(npy_cfloat); > > > > > } >} ># 691 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_aligned_cast_cfloat_to_float( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ > > npy_float src_value[2]; ># 781 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > while (N--) { > > > src_value[0] = ((npy_float *)src)[0]; > src_value[1] = ((npy_float *)src)[1]; ># 801 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > *(npy_float *)dst = ((npy_float)src_value[0]); ># 833 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst += dst_stride; > src += src_stride; > > } >} ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_cast_cfloat_to_float( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ > > npy_float src_value[2]; > > > > > > > npy_float dst_value; > > > > > while (N--) { ># 790 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(&src_value, src, sizeof(src_value)); ># 799 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst_value = ((npy_float)src_value[0]); ># 826 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(dst, &dst_value, sizeof(dst_value)); > > > > > > > dst += dst_stride; > src += src_stride; > > } >} ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_aligned_contig_cast_cfloat_to_float( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ > > npy_float src_value[2]; ># 781 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > while (N--) { > > > src_value[0] = ((npy_float *)src)[0]; > src_value[1] = ((npy_float *)src)[1]; ># 801 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > *(npy_float *)dst = ((npy_float)src_value[0]); ># 830 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst += sizeof(npy_float); > src += sizeof(npy_cfloat); > > > > > } >} ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_contig_cast_cfloat_to_float( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ > > npy_float src_value[2]; > > > > > > > npy_float dst_value; > > > > > while (N--) { ># 790 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(&src_value, src, sizeof(src_value)); ># 799 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst_value = ((npy_float)src_value[0]); ># 826 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(dst, &dst_value, sizeof(dst_value)); > > > > dst += sizeof(npy_float); > src += sizeof(npy_cfloat); > > > > > } >} ># 691 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_aligned_cast_cfloat_to_double( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ > > npy_float src_value[2]; ># 781 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > while (N--) { > > > src_value[0] = ((npy_float *)src)[0]; > src_value[1] = ((npy_float *)src)[1]; ># 801 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > *(npy_double *)dst = ((npy_double)src_value[0]); ># 833 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst += dst_stride; > src += src_stride; > > } >} ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_cast_cfloat_to_double( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ > > npy_float src_value[2]; > > > > > > > npy_double dst_value; > > > > > while (N--) { ># 790 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(&src_value, src, sizeof(src_value)); ># 799 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst_value = ((npy_double)src_value[0]); ># 826 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(dst, &dst_value, sizeof(dst_value)); > > > > > > > dst += dst_stride; > src += src_stride; > > } >} ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_aligned_contig_cast_cfloat_to_double( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ > > npy_float src_value[2]; ># 781 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > while (N--) { > > > src_value[0] = ((npy_float *)src)[0]; > src_value[1] = ((npy_float *)src)[1]; ># 801 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > *(npy_double *)dst = ((npy_double)src_value[0]); ># 830 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst += sizeof(npy_double); > src += sizeof(npy_cfloat); > > > > > } >} ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_contig_cast_cfloat_to_double( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ > > npy_float src_value[2]; > > > > > > > npy_double dst_value; > > > > > while (N--) { ># 790 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(&src_value, src, sizeof(src_value)); ># 799 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst_value = ((npy_double)src_value[0]); ># 826 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(dst, &dst_value, sizeof(dst_value)); > > > > dst += sizeof(npy_double); > src += sizeof(npy_cfloat); > > > > > } >} ># 691 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_aligned_cast_cfloat_to_longdouble( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ > > npy_float src_value[2]; ># 781 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > while (N--) { > > > src_value[0] = ((npy_float *)src)[0]; > src_value[1] = ((npy_float *)src)[1]; ># 801 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > *(npy_longdouble *)dst = ((npy_longdouble)src_value[0]); ># 833 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst += dst_stride; > src += src_stride; > > } >} ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_cast_cfloat_to_longdouble( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ > > npy_float src_value[2]; > > > > > > > npy_longdouble dst_value; > > > > > while (N--) { ># 790 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(&src_value, src, sizeof(src_value)); ># 799 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst_value = ((npy_longdouble)src_value[0]); ># 826 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(dst, &dst_value, sizeof(dst_value)); > > > > > > > dst += dst_stride; > src += src_stride; > > } >} ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_aligned_contig_cast_cfloat_to_longdouble( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ > > npy_float src_value[2]; ># 781 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > while (N--) { > > > src_value[0] = ((npy_float *)src)[0]; > src_value[1] = ((npy_float *)src)[1]; ># 801 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > *(npy_longdouble *)dst = ((npy_longdouble)src_value[0]); ># 830 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst += sizeof(npy_longdouble); > src += sizeof(npy_cfloat); > > > > > } >} ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_contig_cast_cfloat_to_longdouble( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ > > npy_float src_value[2]; > > > > > > > npy_longdouble dst_value; > > > > > while (N--) { ># 790 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(&src_value, src, sizeof(src_value)); ># 799 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst_value = ((npy_longdouble)src_value[0]); ># 826 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(dst, &dst_value, sizeof(dst_value)); > > > > dst += sizeof(npy_longdouble); > src += sizeof(npy_cfloat); > > > > > } >} ># 691 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_aligned_cast_cfloat_to_cfloat( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ > > npy_float src_value[2]; > > > > > npy_float dst_value[2]; > > > > > > > while (N--) { > > > src_value[0] = ((npy_float *)src)[0]; > src_value[1] = ((npy_float *)src)[1]; ># 796 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst_value[0] = ((npy_float)src_value[0]); > dst_value[1] = ((npy_float)src_value[1]); ># 820 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > ((npy_float *)dst)[0] = dst_value[0]; > ((npy_float *)dst)[1] = dst_value[1]; ># 833 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst += dst_stride; > src += src_stride; > > } >} ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_cast_cfloat_to_cfloat( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ > > npy_float src_value[2]; > > > > > npy_float dst_value[2]; > > > > > > > while (N--) { ># 790 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(&src_value, src, sizeof(src_value)); > > > > > > dst_value[0] = ((npy_float)src_value[0]); > dst_value[1] = ((npy_float)src_value[1]); ># 826 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(dst, &dst_value, sizeof(dst_value)); > > > > > > > dst += dst_stride; > src += src_stride; > > } >} ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_aligned_contig_cast_cfloat_to_cfloat( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ > > npy_float src_value[2]; > > > > > npy_float dst_value[2]; > > > > > > > while (N--) { > > > src_value[0] = ((npy_float *)src)[0]; > src_value[1] = ((npy_float *)src)[1]; ># 796 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst_value[0] = ((npy_float)src_value[0]); > dst_value[1] = ((npy_float)src_value[1]); ># 820 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > ((npy_float *)dst)[0] = dst_value[0]; > ((npy_float *)dst)[1] = dst_value[1]; ># 830 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst += sizeof(npy_cfloat); > src += sizeof(npy_cfloat); > > > > > } >} ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_contig_cast_cfloat_to_cfloat( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ > > npy_float src_value[2]; > > > > > npy_float dst_value[2]; > > > > > > > while (N--) { ># 790 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(&src_value, src, sizeof(src_value)); > > > > > > dst_value[0] = ((npy_float)src_value[0]); > dst_value[1] = ((npy_float)src_value[1]); ># 826 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(dst, &dst_value, sizeof(dst_value)); > > > > dst += sizeof(npy_cfloat); > src += sizeof(npy_cfloat); > > > > > } >} ># 691 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_aligned_cast_cfloat_to_cdouble( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ > > npy_float src_value[2]; > > > > > npy_double dst_value[2]; > > > > > > > while (N--) { > > > src_value[0] = ((npy_float *)src)[0]; > src_value[1] = ((npy_float *)src)[1]; ># 796 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst_value[0] = ((npy_double)src_value[0]); > dst_value[1] = ((npy_double)src_value[1]); ># 820 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > ((npy_double *)dst)[0] = dst_value[0]; > ((npy_double *)dst)[1] = dst_value[1]; ># 833 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst += dst_stride; > src += src_stride; > > } >} ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_cast_cfloat_to_cdouble( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ > > npy_float src_value[2]; > > > > > npy_double dst_value[2]; > > > > > > > while (N--) { ># 790 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(&src_value, src, sizeof(src_value)); > > > > > > dst_value[0] = ((npy_double)src_value[0]); > dst_value[1] = ((npy_double)src_value[1]); ># 826 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(dst, &dst_value, sizeof(dst_value)); > > > > > > > dst += dst_stride; > src += src_stride; > > } >} ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_aligned_contig_cast_cfloat_to_cdouble( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ > > npy_float src_value[2]; > > > > > npy_double dst_value[2]; > > > > > > > while (N--) { > > > src_value[0] = ((npy_float *)src)[0]; > src_value[1] = ((npy_float *)src)[1]; ># 796 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst_value[0] = ((npy_double)src_value[0]); > dst_value[1] = ((npy_double)src_value[1]); ># 820 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > ((npy_double *)dst)[0] = dst_value[0]; > ((npy_double *)dst)[1] = dst_value[1]; ># 830 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst += sizeof(npy_cdouble); > src += sizeof(npy_cfloat); > > > > > } >} ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_contig_cast_cfloat_to_cdouble( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ > > npy_float src_value[2]; > > > > > npy_double dst_value[2]; > > > > > > > while (N--) { ># 790 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(&src_value, src, sizeof(src_value)); > > > > > > dst_value[0] = ((npy_double)src_value[0]); > dst_value[1] = ((npy_double)src_value[1]); ># 826 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(dst, &dst_value, sizeof(dst_value)); > > > > dst += sizeof(npy_cdouble); > src += sizeof(npy_cfloat); > > > > > } >} ># 691 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_aligned_cast_cfloat_to_clongdouble( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ > > npy_float src_value[2]; > > > > > npy_longdouble dst_value[2]; > > > > > > > while (N--) { > > > src_value[0] = ((npy_float *)src)[0]; > src_value[1] = ((npy_float *)src)[1]; ># 796 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst_value[0] = ((npy_longdouble)src_value[0]); > dst_value[1] = ((npy_longdouble)src_value[1]); ># 820 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > ((npy_longdouble *)dst)[0] = dst_value[0]; > ((npy_longdouble *)dst)[1] = dst_value[1]; ># 833 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst += dst_stride; > src += src_stride; > > } >} ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_cast_cfloat_to_clongdouble( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ > > npy_float src_value[2]; > > > > > npy_longdouble dst_value[2]; > > > > > > > while (N--) { ># 790 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(&src_value, src, sizeof(src_value)); > > > > > > dst_value[0] = ((npy_longdouble)src_value[0]); > dst_value[1] = ((npy_longdouble)src_value[1]); ># 826 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(dst, &dst_value, sizeof(dst_value)); > > > > > > > dst += dst_stride; > src += src_stride; > > } >} ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_aligned_contig_cast_cfloat_to_clongdouble( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ > > npy_float src_value[2]; > > > > > npy_longdouble dst_value[2]; > > > > > > > while (N--) { > > > src_value[0] = ((npy_float *)src)[0]; > src_value[1] = ((npy_float *)src)[1]; ># 796 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst_value[0] = ((npy_longdouble)src_value[0]); > dst_value[1] = ((npy_longdouble)src_value[1]); ># 820 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > ((npy_longdouble *)dst)[0] = dst_value[0]; > ((npy_longdouble *)dst)[1] = dst_value[1]; ># 830 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst += sizeof(npy_clongdouble); > src += sizeof(npy_cfloat); > > > > > } >} ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_contig_cast_cfloat_to_clongdouble( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ > > npy_float src_value[2]; > > > > > npy_longdouble dst_value[2]; > > > > > > > while (N--) { ># 790 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(&src_value, src, sizeof(src_value)); > > > > > > dst_value[0] = ((npy_longdouble)src_value[0]); > dst_value[1] = ((npy_longdouble)src_value[1]); ># 826 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(dst, &dst_value, sizeof(dst_value)); > > > > dst += sizeof(npy_clongdouble); > src += sizeof(npy_cfloat); > > > > > } >} ># 667 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 691 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_aligned_cast_cdouble_to_bool( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ > > npy_double src_value[2]; ># 781 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > while (N--) { > > > src_value[0] = ((npy_double *)src)[0]; > src_value[1] = ((npy_double *)src)[1]; ># 801 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > *(npy_bool *)dst = ((npy_bool)(src_value[0] != 0)); ># 833 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst += dst_stride; > src += src_stride; > > } >} ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_cast_cdouble_to_bool( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ > > npy_double src_value[2]; > > > > > > > npy_bool dst_value; > > > > > while (N--) { ># 790 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(&src_value, src, sizeof(src_value)); ># 799 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst_value = ((npy_bool)(src_value[0] != 0)); ># 826 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(dst, &dst_value, sizeof(dst_value)); > > > > > > > dst += dst_stride; > src += src_stride; > > } >} ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_aligned_contig_cast_cdouble_to_bool( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ > > npy_double src_value[2]; ># 781 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > while (N--) { > > > src_value[0] = ((npy_double *)src)[0]; > src_value[1] = ((npy_double *)src)[1]; ># 801 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > *(npy_bool *)dst = ((npy_bool)(src_value[0] != 0)); ># 830 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst += sizeof(npy_bool); > src += sizeof(npy_cdouble); > > > > > } >} ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_contig_cast_cdouble_to_bool( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ > > npy_double src_value[2]; > > > > > > > npy_bool dst_value; > > > > > while (N--) { ># 790 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(&src_value, src, sizeof(src_value)); ># 799 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst_value = ((npy_bool)(src_value[0] != 0)); ># 826 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(dst, &dst_value, sizeof(dst_value)); > > > > dst += sizeof(npy_bool); > src += sizeof(npy_cdouble); > > > > > } >} ># 691 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_aligned_cast_cdouble_to_ubyte( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ > > npy_double src_value[2]; ># 781 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > while (N--) { > > > src_value[0] = ((npy_double *)src)[0]; > src_value[1] = ((npy_double *)src)[1]; ># 801 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > *(npy_ubyte *)dst = ((npy_ubyte)src_value[0]); ># 833 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst += dst_stride; > src += src_stride; > > } >} ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_cast_cdouble_to_ubyte( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ > > npy_double src_value[2]; > > > > > > > npy_ubyte dst_value; > > > > > while (N--) { ># 790 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(&src_value, src, sizeof(src_value)); ># 799 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst_value = ((npy_ubyte)src_value[0]); ># 826 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(dst, &dst_value, sizeof(dst_value)); > > > > > > > dst += dst_stride; > src += src_stride; > > } >} ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_aligned_contig_cast_cdouble_to_ubyte( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ > > npy_double src_value[2]; ># 781 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > while (N--) { > > > src_value[0] = ((npy_double *)src)[0]; > src_value[1] = ((npy_double *)src)[1]; ># 801 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > *(npy_ubyte *)dst = ((npy_ubyte)src_value[0]); ># 830 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst += sizeof(npy_ubyte); > src += sizeof(npy_cdouble); > > > > > } >} ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_contig_cast_cdouble_to_ubyte( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ > > npy_double src_value[2]; > > > > > > > npy_ubyte dst_value; > > > > > while (N--) { ># 790 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(&src_value, src, sizeof(src_value)); ># 799 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst_value = ((npy_ubyte)src_value[0]); ># 826 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(dst, &dst_value, sizeof(dst_value)); > > > > dst += sizeof(npy_ubyte); > src += sizeof(npy_cdouble); > > > > > } >} ># 691 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_aligned_cast_cdouble_to_ushort( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ > > npy_double src_value[2]; ># 781 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > while (N--) { > > > src_value[0] = ((npy_double *)src)[0]; > src_value[1] = ((npy_double *)src)[1]; ># 801 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > *(npy_ushort *)dst = ((npy_ushort)src_value[0]); ># 833 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst += dst_stride; > src += src_stride; > > } >} ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_cast_cdouble_to_ushort( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ > > npy_double src_value[2]; > > > > > > > npy_ushort dst_value; > > > > > while (N--) { ># 790 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(&src_value, src, sizeof(src_value)); ># 799 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst_value = ((npy_ushort)src_value[0]); ># 826 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(dst, &dst_value, sizeof(dst_value)); > > > > > > > dst += dst_stride; > src += src_stride; > > } >} ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_aligned_contig_cast_cdouble_to_ushort( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ > > npy_double src_value[2]; ># 781 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > while (N--) { > > > src_value[0] = ((npy_double *)src)[0]; > src_value[1] = ((npy_double *)src)[1]; ># 801 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > *(npy_ushort *)dst = ((npy_ushort)src_value[0]); ># 830 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst += sizeof(npy_ushort); > src += sizeof(npy_cdouble); > > > > > } >} ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_contig_cast_cdouble_to_ushort( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ > > npy_double src_value[2]; > > > > > > > npy_ushort dst_value; > > > > > while (N--) { ># 790 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(&src_value, src, sizeof(src_value)); ># 799 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst_value = ((npy_ushort)src_value[0]); ># 826 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(dst, &dst_value, sizeof(dst_value)); > > > > dst += sizeof(npy_ushort); > src += sizeof(npy_cdouble); > > > > > } >} ># 691 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_aligned_cast_cdouble_to_uint( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ > > npy_double src_value[2]; ># 781 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > while (N--) { > > > src_value[0] = ((npy_double *)src)[0]; > src_value[1] = ((npy_double *)src)[1]; ># 801 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > *(npy_uint *)dst = ((npy_uint)src_value[0]); ># 833 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst += dst_stride; > src += src_stride; > > } >} ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_cast_cdouble_to_uint( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ > > npy_double src_value[2]; > > > > > > > npy_uint dst_value; > > > > > while (N--) { ># 790 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(&src_value, src, sizeof(src_value)); ># 799 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst_value = ((npy_uint)src_value[0]); ># 826 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(dst, &dst_value, sizeof(dst_value)); > > > > > > > dst += dst_stride; > src += src_stride; > > } >} ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_aligned_contig_cast_cdouble_to_uint( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ > > npy_double src_value[2]; ># 781 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > while (N--) { > > > src_value[0] = ((npy_double *)src)[0]; > src_value[1] = ((npy_double *)src)[1]; ># 801 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > *(npy_uint *)dst = ((npy_uint)src_value[0]); ># 830 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst += sizeof(npy_uint); > src += sizeof(npy_cdouble); > > > > > } >} ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_contig_cast_cdouble_to_uint( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ > > npy_double src_value[2]; > > > > > > > npy_uint dst_value; > > > > > while (N--) { ># 790 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(&src_value, src, sizeof(src_value)); ># 799 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst_value = ((npy_uint)src_value[0]); ># 826 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(dst, &dst_value, sizeof(dst_value)); > > > > dst += sizeof(npy_uint); > src += sizeof(npy_cdouble); > > > > > } >} ># 691 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_aligned_cast_cdouble_to_ulong( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ > > npy_double src_value[2]; ># 781 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > while (N--) { > > > src_value[0] = ((npy_double *)src)[0]; > src_value[1] = ((npy_double *)src)[1]; ># 801 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > *(npy_ulong *)dst = ((npy_ulong)src_value[0]); ># 833 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst += dst_stride; > src += src_stride; > > } >} ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_cast_cdouble_to_ulong( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ > > npy_double src_value[2]; > > > > > > > npy_ulong dst_value; > > > > > while (N--) { ># 790 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(&src_value, src, sizeof(src_value)); ># 799 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst_value = ((npy_ulong)src_value[0]); ># 826 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(dst, &dst_value, sizeof(dst_value)); > > > > > > > dst += dst_stride; > src += src_stride; > > } >} ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_aligned_contig_cast_cdouble_to_ulong( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ > > npy_double src_value[2]; ># 781 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > while (N--) { > > > src_value[0] = ((npy_double *)src)[0]; > src_value[1] = ((npy_double *)src)[1]; ># 801 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > *(npy_ulong *)dst = ((npy_ulong)src_value[0]); ># 830 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst += sizeof(npy_ulong); > src += sizeof(npy_cdouble); > > > > > } >} ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_contig_cast_cdouble_to_ulong( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ > > npy_double src_value[2]; > > > > > > > npy_ulong dst_value; > > > > > while (N--) { ># 790 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(&src_value, src, sizeof(src_value)); ># 799 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst_value = ((npy_ulong)src_value[0]); ># 826 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(dst, &dst_value, sizeof(dst_value)); > > > > dst += sizeof(npy_ulong); > src += sizeof(npy_cdouble); > > > > > } >} ># 691 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_aligned_cast_cdouble_to_ulonglong( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ > > npy_double src_value[2]; ># 781 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > while (N--) { > > > src_value[0] = ((npy_double *)src)[0]; > src_value[1] = ((npy_double *)src)[1]; ># 801 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > *(npy_ulonglong *)dst = ((npy_ulonglong)src_value[0]); ># 833 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst += dst_stride; > src += src_stride; > > } >} ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_cast_cdouble_to_ulonglong( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ > > npy_double src_value[2]; > > > > > > > npy_ulonglong dst_value; > > > > > while (N--) { ># 790 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(&src_value, src, sizeof(src_value)); ># 799 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst_value = ((npy_ulonglong)src_value[0]); ># 826 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(dst, &dst_value, sizeof(dst_value)); > > > > > > > dst += dst_stride; > src += src_stride; > > } >} ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_aligned_contig_cast_cdouble_to_ulonglong( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ > > npy_double src_value[2]; ># 781 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > while (N--) { > > > src_value[0] = ((npy_double *)src)[0]; > src_value[1] = ((npy_double *)src)[1]; ># 801 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > *(npy_ulonglong *)dst = ((npy_ulonglong)src_value[0]); ># 830 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst += sizeof(npy_ulonglong); > src += sizeof(npy_cdouble); > > > > > } >} ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_contig_cast_cdouble_to_ulonglong( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ > > npy_double src_value[2]; > > > > > > > npy_ulonglong dst_value; > > > > > while (N--) { ># 790 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(&src_value, src, sizeof(src_value)); ># 799 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst_value = ((npy_ulonglong)src_value[0]); ># 826 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(dst, &dst_value, sizeof(dst_value)); > > > > dst += sizeof(npy_ulonglong); > src += sizeof(npy_cdouble); > > > > > } >} ># 691 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_aligned_cast_cdouble_to_byte( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ > > npy_double src_value[2]; ># 781 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > while (N--) { > > > src_value[0] = ((npy_double *)src)[0]; > src_value[1] = ((npy_double *)src)[1]; ># 801 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > *(npy_byte *)dst = ((npy_byte)src_value[0]); ># 833 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst += dst_stride; > src += src_stride; > > } >} ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_cast_cdouble_to_byte( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ > > npy_double src_value[2]; > > > > > > > npy_byte dst_value; > > > > > while (N--) { ># 790 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(&src_value, src, sizeof(src_value)); ># 799 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst_value = ((npy_byte)src_value[0]); ># 826 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(dst, &dst_value, sizeof(dst_value)); > > > > > > > dst += dst_stride; > src += src_stride; > > } >} ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_aligned_contig_cast_cdouble_to_byte( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ > > npy_double src_value[2]; ># 781 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > while (N--) { > > > src_value[0] = ((npy_double *)src)[0]; > src_value[1] = ((npy_double *)src)[1]; ># 801 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > *(npy_byte *)dst = ((npy_byte)src_value[0]); ># 830 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst += sizeof(npy_byte); > src += sizeof(npy_cdouble); > > > > > } >} ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_contig_cast_cdouble_to_byte( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ > > npy_double src_value[2]; > > > > > > > npy_byte dst_value; > > > > > while (N--) { ># 790 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(&src_value, src, sizeof(src_value)); ># 799 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst_value = ((npy_byte)src_value[0]); ># 826 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(dst, &dst_value, sizeof(dst_value)); > > > > dst += sizeof(npy_byte); > src += sizeof(npy_cdouble); > > > > > } >} ># 691 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_aligned_cast_cdouble_to_short( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ > > npy_double src_value[2]; ># 781 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > while (N--) { > > > src_value[0] = ((npy_double *)src)[0]; > src_value[1] = ((npy_double *)src)[1]; ># 801 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > *(npy_short *)dst = ((npy_short)src_value[0]); ># 833 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst += dst_stride; > src += src_stride; > > } >} ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_cast_cdouble_to_short( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ > > npy_double src_value[2]; > > > > > > > npy_short dst_value; > > > > > while (N--) { ># 790 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(&src_value, src, sizeof(src_value)); ># 799 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst_value = ((npy_short)src_value[0]); ># 826 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(dst, &dst_value, sizeof(dst_value)); > > > > > > > dst += dst_stride; > src += src_stride; > > } >} ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_aligned_contig_cast_cdouble_to_short( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ > > npy_double src_value[2]; ># 781 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > while (N--) { > > > src_value[0] = ((npy_double *)src)[0]; > src_value[1] = ((npy_double *)src)[1]; ># 801 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > *(npy_short *)dst = ((npy_short)src_value[0]); ># 830 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst += sizeof(npy_short); > src += sizeof(npy_cdouble); > > > > > } >} ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_contig_cast_cdouble_to_short( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ > > npy_double src_value[2]; > > > > > > > npy_short dst_value; > > > > > while (N--) { ># 790 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(&src_value, src, sizeof(src_value)); ># 799 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst_value = ((npy_short)src_value[0]); ># 826 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(dst, &dst_value, sizeof(dst_value)); > > > > dst += sizeof(npy_short); > src += sizeof(npy_cdouble); > > > > > } >} ># 691 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_aligned_cast_cdouble_to_int( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ > > npy_double src_value[2]; ># 781 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > while (N--) { > > > src_value[0] = ((npy_double *)src)[0]; > src_value[1] = ((npy_double *)src)[1]; ># 801 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > *(npy_int *)dst = ((npy_int)src_value[0]); ># 833 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst += dst_stride; > src += src_stride; > > } >} ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_cast_cdouble_to_int( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ > > npy_double src_value[2]; > > > > > > > npy_int dst_value; > > > > > while (N--) { ># 790 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(&src_value, src, sizeof(src_value)); ># 799 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst_value = ((npy_int)src_value[0]); ># 826 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(dst, &dst_value, sizeof(dst_value)); > > > > > > > dst += dst_stride; > src += src_stride; > > } >} ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_aligned_contig_cast_cdouble_to_int( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ > > npy_double src_value[2]; ># 781 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > while (N--) { > > > src_value[0] = ((npy_double *)src)[0]; > src_value[1] = ((npy_double *)src)[1]; ># 801 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > *(npy_int *)dst = ((npy_int)src_value[0]); ># 830 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst += sizeof(npy_int); > src += sizeof(npy_cdouble); > > > > > } >} ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_contig_cast_cdouble_to_int( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ > > npy_double src_value[2]; > > > > > > > npy_int dst_value; > > > > > while (N--) { ># 790 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(&src_value, src, sizeof(src_value)); ># 799 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst_value = ((npy_int)src_value[0]); ># 826 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(dst, &dst_value, sizeof(dst_value)); > > > > dst += sizeof(npy_int); > src += sizeof(npy_cdouble); > > > > > } >} ># 691 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_aligned_cast_cdouble_to_long( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ > > npy_double src_value[2]; ># 781 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > while (N--) { > > > src_value[0] = ((npy_double *)src)[0]; > src_value[1] = ((npy_double *)src)[1]; ># 801 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > *(npy_long *)dst = ((npy_long)src_value[0]); ># 833 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst += dst_stride; > src += src_stride; > > } >} ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_cast_cdouble_to_long( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ > > npy_double src_value[2]; > > > > > > > npy_long dst_value; > > > > > while (N--) { ># 790 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(&src_value, src, sizeof(src_value)); ># 799 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst_value = ((npy_long)src_value[0]); ># 826 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(dst, &dst_value, sizeof(dst_value)); > > > > > > > dst += dst_stride; > src += src_stride; > > } >} ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_aligned_contig_cast_cdouble_to_long( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ > > npy_double src_value[2]; ># 781 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > while (N--) { > > > src_value[0] = ((npy_double *)src)[0]; > src_value[1] = ((npy_double *)src)[1]; ># 801 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > *(npy_long *)dst = ((npy_long)src_value[0]); ># 830 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst += sizeof(npy_long); > src += sizeof(npy_cdouble); > > > > > } >} ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_contig_cast_cdouble_to_long( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ > > npy_double src_value[2]; > > > > > > > npy_long dst_value; > > > > > while (N--) { ># 790 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(&src_value, src, sizeof(src_value)); ># 799 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst_value = ((npy_long)src_value[0]); ># 826 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(dst, &dst_value, sizeof(dst_value)); > > > > dst += sizeof(npy_long); > src += sizeof(npy_cdouble); > > > > > } >} ># 691 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_aligned_cast_cdouble_to_longlong( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ > > npy_double src_value[2]; ># 781 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > while (N--) { > > > src_value[0] = ((npy_double *)src)[0]; > src_value[1] = ((npy_double *)src)[1]; ># 801 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > *(npy_longlong *)dst = ((npy_longlong)src_value[0]); ># 833 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst += dst_stride; > src += src_stride; > > } >} ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_cast_cdouble_to_longlong( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ > > npy_double src_value[2]; > > > > > > > npy_longlong dst_value; > > > > > while (N--) { ># 790 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(&src_value, src, sizeof(src_value)); ># 799 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst_value = ((npy_longlong)src_value[0]); ># 826 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(dst, &dst_value, sizeof(dst_value)); > > > > > > > dst += dst_stride; > src += src_stride; > > } >} ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_aligned_contig_cast_cdouble_to_longlong( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ > > npy_double src_value[2]; ># 781 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > while (N--) { > > > src_value[0] = ((npy_double *)src)[0]; > src_value[1] = ((npy_double *)src)[1]; ># 801 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > *(npy_longlong *)dst = ((npy_longlong)src_value[0]); ># 830 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst += sizeof(npy_longlong); > src += sizeof(npy_cdouble); > > > > > } >} ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_contig_cast_cdouble_to_longlong( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ > > npy_double src_value[2]; > > > > > > > npy_longlong dst_value; > > > > > while (N--) { ># 790 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(&src_value, src, sizeof(src_value)); ># 799 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst_value = ((npy_longlong)src_value[0]); ># 826 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(dst, &dst_value, sizeof(dst_value)); > > > > dst += sizeof(npy_longlong); > src += sizeof(npy_cdouble); > > > > > } >} ># 691 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_aligned_cast_cdouble_to_half( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ > > npy_uint64 src_value[2]; ># 781 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > while (N--) { > > > src_value[0] = ((npy_uint64 *)src)[0]; > src_value[1] = ((npy_uint64 *)src)[1]; ># 801 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > *(npy_half *)dst = npy_doublebits_to_halfbits(src_value[0]); ># 833 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst += dst_stride; > src += src_stride; > > } >} ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_cast_cdouble_to_half( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ > > npy_uint64 src_value[2]; > > > > > > > npy_half dst_value; > > > > > while (N--) { ># 790 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(&src_value, src, sizeof(src_value)); ># 799 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst_value = npy_doublebits_to_halfbits(src_value[0]); ># 826 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(dst, &dst_value, sizeof(dst_value)); > > > > > > > dst += dst_stride; > src += src_stride; > > } >} ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_aligned_contig_cast_cdouble_to_half( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ > > npy_uint64 src_value[2]; ># 781 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > while (N--) { > > > src_value[0] = ((npy_uint64 *)src)[0]; > src_value[1] = ((npy_uint64 *)src)[1]; ># 801 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > *(npy_half *)dst = npy_doublebits_to_halfbits(src_value[0]); ># 830 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst += sizeof(npy_half); > src += sizeof(npy_cdouble); > > > > > } >} ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_contig_cast_cdouble_to_half( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ > > npy_uint64 src_value[2]; > > > > > > > npy_half dst_value; > > > > > while (N--) { ># 790 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(&src_value, src, sizeof(src_value)); ># 799 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst_value = npy_doublebits_to_halfbits(src_value[0]); ># 826 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(dst, &dst_value, sizeof(dst_value)); > > > > dst += sizeof(npy_half); > src += sizeof(npy_cdouble); > > > > > } >} ># 691 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_aligned_cast_cdouble_to_float( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ > > npy_double src_value[2]; ># 781 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > while (N--) { > > > src_value[0] = ((npy_double *)src)[0]; > src_value[1] = ((npy_double *)src)[1]; ># 801 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > *(npy_float *)dst = ((npy_float)src_value[0]); ># 833 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst += dst_stride; > src += src_stride; > > } >} ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_cast_cdouble_to_float( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ > > npy_double src_value[2]; > > > > > > > npy_float dst_value; > > > > > while (N--) { ># 790 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(&src_value, src, sizeof(src_value)); ># 799 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst_value = ((npy_float)src_value[0]); ># 826 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(dst, &dst_value, sizeof(dst_value)); > > > > > > > dst += dst_stride; > src += src_stride; > > } >} ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_aligned_contig_cast_cdouble_to_float( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ > > npy_double src_value[2]; ># 781 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > while (N--) { > > > src_value[0] = ((npy_double *)src)[0]; > src_value[1] = ((npy_double *)src)[1]; ># 801 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > *(npy_float *)dst = ((npy_float)src_value[0]); ># 830 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst += sizeof(npy_float); > src += sizeof(npy_cdouble); > > > > > } >} ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_contig_cast_cdouble_to_float( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ > > npy_double src_value[2]; > > > > > > > npy_float dst_value; > > > > > while (N--) { ># 790 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(&src_value, src, sizeof(src_value)); ># 799 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst_value = ((npy_float)src_value[0]); ># 826 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(dst, &dst_value, sizeof(dst_value)); > > > > dst += sizeof(npy_float); > src += sizeof(npy_cdouble); > > > > > } >} ># 691 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_aligned_cast_cdouble_to_double( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ > > npy_double src_value[2]; ># 781 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > while (N--) { > > > src_value[0] = ((npy_double *)src)[0]; > src_value[1] = ((npy_double *)src)[1]; ># 801 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > *(npy_double *)dst = ((npy_double)src_value[0]); ># 833 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst += dst_stride; > src += src_stride; > > } >} ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_cast_cdouble_to_double( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ > > npy_double src_value[2]; > > > > > > > npy_double dst_value; > > > > > while (N--) { ># 790 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(&src_value, src, sizeof(src_value)); ># 799 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst_value = ((npy_double)src_value[0]); ># 826 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(dst, &dst_value, sizeof(dst_value)); > > > > > > > dst += dst_stride; > src += src_stride; > > } >} ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_aligned_contig_cast_cdouble_to_double( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ > > npy_double src_value[2]; ># 781 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > while (N--) { > > > src_value[0] = ((npy_double *)src)[0]; > src_value[1] = ((npy_double *)src)[1]; ># 801 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > *(npy_double *)dst = ((npy_double)src_value[0]); ># 830 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst += sizeof(npy_double); > src += sizeof(npy_cdouble); > > > > > } >} ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_contig_cast_cdouble_to_double( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ > > npy_double src_value[2]; > > > > > > > npy_double dst_value; > > > > > while (N--) { ># 790 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(&src_value, src, sizeof(src_value)); ># 799 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst_value = ((npy_double)src_value[0]); ># 826 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(dst, &dst_value, sizeof(dst_value)); > > > > dst += sizeof(npy_double); > src += sizeof(npy_cdouble); > > > > > } >} ># 691 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_aligned_cast_cdouble_to_longdouble( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ > > npy_double src_value[2]; ># 781 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > while (N--) { > > > src_value[0] = ((npy_double *)src)[0]; > src_value[1] = ((npy_double *)src)[1]; ># 801 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > *(npy_longdouble *)dst = ((npy_longdouble)src_value[0]); ># 833 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst += dst_stride; > src += src_stride; > > } >} ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_cast_cdouble_to_longdouble( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ > > npy_double src_value[2]; > > > > > > > npy_longdouble dst_value; > > > > > while (N--) { ># 790 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(&src_value, src, sizeof(src_value)); ># 799 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst_value = ((npy_longdouble)src_value[0]); ># 826 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(dst, &dst_value, sizeof(dst_value)); > > > > > > > dst += dst_stride; > src += src_stride; > > } >} ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_aligned_contig_cast_cdouble_to_longdouble( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ > > npy_double src_value[2]; ># 781 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > while (N--) { > > > src_value[0] = ((npy_double *)src)[0]; > src_value[1] = ((npy_double *)src)[1]; ># 801 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > *(npy_longdouble *)dst = ((npy_longdouble)src_value[0]); ># 830 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst += sizeof(npy_longdouble); > src += sizeof(npy_cdouble); > > > > > } >} ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_contig_cast_cdouble_to_longdouble( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ > > npy_double src_value[2]; > > > > > > > npy_longdouble dst_value; > > > > > while (N--) { ># 790 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(&src_value, src, sizeof(src_value)); ># 799 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst_value = ((npy_longdouble)src_value[0]); ># 826 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(dst, &dst_value, sizeof(dst_value)); > > > > dst += sizeof(npy_longdouble); > src += sizeof(npy_cdouble); > > > > > } >} ># 691 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_aligned_cast_cdouble_to_cfloat( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ > > npy_double src_value[2]; > > > > > npy_float dst_value[2]; > > > > > > > while (N--) { > > > src_value[0] = ((npy_double *)src)[0]; > src_value[1] = ((npy_double *)src)[1]; ># 796 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst_value[0] = ((npy_float)src_value[0]); > dst_value[1] = ((npy_float)src_value[1]); ># 820 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > ((npy_float *)dst)[0] = dst_value[0]; > ((npy_float *)dst)[1] = dst_value[1]; ># 833 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst += dst_stride; > src += src_stride; > > } >} ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_cast_cdouble_to_cfloat( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ > > npy_double src_value[2]; > > > > > npy_float dst_value[2]; > > > > > > > while (N--) { ># 790 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(&src_value, src, sizeof(src_value)); > > > > > > dst_value[0] = ((npy_float)src_value[0]); > dst_value[1] = ((npy_float)src_value[1]); ># 826 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(dst, &dst_value, sizeof(dst_value)); > > > > > > > dst += dst_stride; > src += src_stride; > > } >} ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_aligned_contig_cast_cdouble_to_cfloat( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ > > npy_double src_value[2]; > > > > > npy_float dst_value[2]; > > > > > > > while (N--) { > > > src_value[0] = ((npy_double *)src)[0]; > src_value[1] = ((npy_double *)src)[1]; ># 796 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst_value[0] = ((npy_float)src_value[0]); > dst_value[1] = ((npy_float)src_value[1]); ># 820 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > ((npy_float *)dst)[0] = dst_value[0]; > ((npy_float *)dst)[1] = dst_value[1]; ># 830 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst += sizeof(npy_cfloat); > src += sizeof(npy_cdouble); > > > > > } >} ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_contig_cast_cdouble_to_cfloat( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ > > npy_double src_value[2]; > > > > > npy_float dst_value[2]; > > > > > > > while (N--) { ># 790 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(&src_value, src, sizeof(src_value)); > > > > > > dst_value[0] = ((npy_float)src_value[0]); > dst_value[1] = ((npy_float)src_value[1]); ># 826 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(dst, &dst_value, sizeof(dst_value)); > > > > dst += sizeof(npy_cfloat); > src += sizeof(npy_cdouble); > > > > > } >} ># 691 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_aligned_cast_cdouble_to_cdouble( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ > > npy_double src_value[2]; > > > > > npy_double dst_value[2]; > > > > > > > while (N--) { > > > src_value[0] = ((npy_double *)src)[0]; > src_value[1] = ((npy_double *)src)[1]; ># 796 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst_value[0] = ((npy_double)src_value[0]); > dst_value[1] = ((npy_double)src_value[1]); ># 820 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > ((npy_double *)dst)[0] = dst_value[0]; > ((npy_double *)dst)[1] = dst_value[1]; ># 833 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst += dst_stride; > src += src_stride; > > } >} ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_cast_cdouble_to_cdouble( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ > > npy_double src_value[2]; > > > > > npy_double dst_value[2]; > > > > > > > while (N--) { ># 790 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(&src_value, src, sizeof(src_value)); > > > > > > dst_value[0] = ((npy_double)src_value[0]); > dst_value[1] = ((npy_double)src_value[1]); ># 826 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(dst, &dst_value, sizeof(dst_value)); > > > > > > > dst += dst_stride; > src += src_stride; > > } >} ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_aligned_contig_cast_cdouble_to_cdouble( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ > > npy_double src_value[2]; > > > > > npy_double dst_value[2]; > > > > > > > while (N--) { > > > src_value[0] = ((npy_double *)src)[0]; > src_value[1] = ((npy_double *)src)[1]; ># 796 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst_value[0] = ((npy_double)src_value[0]); > dst_value[1] = ((npy_double)src_value[1]); ># 820 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > ((npy_double *)dst)[0] = dst_value[0]; > ((npy_double *)dst)[1] = dst_value[1]; ># 830 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst += sizeof(npy_cdouble); > src += sizeof(npy_cdouble); > > > > > } >} ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_contig_cast_cdouble_to_cdouble( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ > > npy_double src_value[2]; > > > > > npy_double dst_value[2]; > > > > > > > while (N--) { ># 790 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(&src_value, src, sizeof(src_value)); > > > > > > dst_value[0] = ((npy_double)src_value[0]); > dst_value[1] = ((npy_double)src_value[1]); ># 826 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(dst, &dst_value, sizeof(dst_value)); > > > > dst += sizeof(npy_cdouble); > src += sizeof(npy_cdouble); > > > > > } >} ># 691 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_aligned_cast_cdouble_to_clongdouble( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ > > npy_double src_value[2]; > > > > > npy_longdouble dst_value[2]; > > > > > > > while (N--) { > > > src_value[0] = ((npy_double *)src)[0]; > src_value[1] = ((npy_double *)src)[1]; ># 796 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst_value[0] = ((npy_longdouble)src_value[0]); > dst_value[1] = ((npy_longdouble)src_value[1]); ># 820 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > ((npy_longdouble *)dst)[0] = dst_value[0]; > ((npy_longdouble *)dst)[1] = dst_value[1]; ># 833 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst += dst_stride; > src += src_stride; > > } >} ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_cast_cdouble_to_clongdouble( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ > > npy_double src_value[2]; > > > > > npy_longdouble dst_value[2]; > > > > > > > while (N--) { ># 790 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(&src_value, src, sizeof(src_value)); > > > > > > dst_value[0] = ((npy_longdouble)src_value[0]); > dst_value[1] = ((npy_longdouble)src_value[1]); ># 826 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(dst, &dst_value, sizeof(dst_value)); > > > > > > > dst += dst_stride; > src += src_stride; > > } >} ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_aligned_contig_cast_cdouble_to_clongdouble( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ > > npy_double src_value[2]; > > > > > npy_longdouble dst_value[2]; > > > > > > > while (N--) { > > > src_value[0] = ((npy_double *)src)[0]; > src_value[1] = ((npy_double *)src)[1]; ># 796 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst_value[0] = ((npy_longdouble)src_value[0]); > dst_value[1] = ((npy_longdouble)src_value[1]); ># 820 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > ((npy_longdouble *)dst)[0] = dst_value[0]; > ((npy_longdouble *)dst)[1] = dst_value[1]; ># 830 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst += sizeof(npy_clongdouble); > src += sizeof(npy_cdouble); > > > > > } >} ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_contig_cast_cdouble_to_clongdouble( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ > > npy_double src_value[2]; > > > > > npy_longdouble dst_value[2]; > > > > > > > while (N--) { ># 790 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(&src_value, src, sizeof(src_value)); > > > > > > dst_value[0] = ((npy_longdouble)src_value[0]); > dst_value[1] = ((npy_longdouble)src_value[1]); ># 826 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(dst, &dst_value, sizeof(dst_value)); > > > > dst += sizeof(npy_clongdouble); > src += sizeof(npy_cdouble); > > > > > } >} ># 667 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 691 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_aligned_cast_clongdouble_to_bool( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ > > npy_longdouble src_value[2]; ># 781 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > while (N--) { > > > src_value[0] = ((npy_longdouble *)src)[0]; > src_value[1] = ((npy_longdouble *)src)[1]; ># 801 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > *(npy_bool *)dst = ((npy_bool)(src_value[0] != 0)); ># 833 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst += dst_stride; > src += src_stride; > > } >} ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_cast_clongdouble_to_bool( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ > > npy_longdouble src_value[2]; > > > > > > > npy_bool dst_value; > > > > > while (N--) { ># 790 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(&src_value, src, sizeof(src_value)); ># 799 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst_value = ((npy_bool)(src_value[0] != 0)); ># 826 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(dst, &dst_value, sizeof(dst_value)); > > > > > > > dst += dst_stride; > src += src_stride; > > } >} ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_aligned_contig_cast_clongdouble_to_bool( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ > > npy_longdouble src_value[2]; ># 781 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > while (N--) { > > > src_value[0] = ((npy_longdouble *)src)[0]; > src_value[1] = ((npy_longdouble *)src)[1]; ># 801 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > *(npy_bool *)dst = ((npy_bool)(src_value[0] != 0)); ># 830 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst += sizeof(npy_bool); > src += sizeof(npy_clongdouble); > > > > > } >} ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_contig_cast_clongdouble_to_bool( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ > > npy_longdouble src_value[2]; > > > > > > > npy_bool dst_value; > > > > > while (N--) { ># 790 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(&src_value, src, sizeof(src_value)); ># 799 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst_value = ((npy_bool)(src_value[0] != 0)); ># 826 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(dst, &dst_value, sizeof(dst_value)); > > > > dst += sizeof(npy_bool); > src += sizeof(npy_clongdouble); > > > > > } >} ># 691 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_aligned_cast_clongdouble_to_ubyte( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ > > npy_longdouble src_value[2]; ># 781 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > while (N--) { > > > src_value[0] = ((npy_longdouble *)src)[0]; > src_value[1] = ((npy_longdouble *)src)[1]; ># 801 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > *(npy_ubyte *)dst = ((npy_ubyte)src_value[0]); ># 833 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst += dst_stride; > src += src_stride; > > } >} ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_cast_clongdouble_to_ubyte( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ > > npy_longdouble src_value[2]; > > > > > > > npy_ubyte dst_value; > > > > > while (N--) { ># 790 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(&src_value, src, sizeof(src_value)); ># 799 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst_value = ((npy_ubyte)src_value[0]); ># 826 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(dst, &dst_value, sizeof(dst_value)); > > > > > > > dst += dst_stride; > src += src_stride; > > } >} ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_aligned_contig_cast_clongdouble_to_ubyte( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ > > npy_longdouble src_value[2]; ># 781 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > while (N--) { > > > src_value[0] = ((npy_longdouble *)src)[0]; > src_value[1] = ((npy_longdouble *)src)[1]; ># 801 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > *(npy_ubyte *)dst = ((npy_ubyte)src_value[0]); ># 830 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst += sizeof(npy_ubyte); > src += sizeof(npy_clongdouble); > > > > > } >} ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_contig_cast_clongdouble_to_ubyte( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ > > npy_longdouble src_value[2]; > > > > > > > npy_ubyte dst_value; > > > > > while (N--) { ># 790 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(&src_value, src, sizeof(src_value)); ># 799 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst_value = ((npy_ubyte)src_value[0]); ># 826 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(dst, &dst_value, sizeof(dst_value)); > > > > dst += sizeof(npy_ubyte); > src += sizeof(npy_clongdouble); > > > > > } >} ># 691 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_aligned_cast_clongdouble_to_ushort( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ > > npy_longdouble src_value[2]; ># 781 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > while (N--) { > > > src_value[0] = ((npy_longdouble *)src)[0]; > src_value[1] = ((npy_longdouble *)src)[1]; ># 801 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > *(npy_ushort *)dst = ((npy_ushort)src_value[0]); ># 833 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst += dst_stride; > src += src_stride; > > } >} ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_cast_clongdouble_to_ushort( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ > > npy_longdouble src_value[2]; > > > > > > > npy_ushort dst_value; > > > > > while (N--) { ># 790 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(&src_value, src, sizeof(src_value)); ># 799 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst_value = ((npy_ushort)src_value[0]); ># 826 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(dst, &dst_value, sizeof(dst_value)); > > > > > > > dst += dst_stride; > src += src_stride; > > } >} ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_aligned_contig_cast_clongdouble_to_ushort( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ > > npy_longdouble src_value[2]; ># 781 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > while (N--) { > > > src_value[0] = ((npy_longdouble *)src)[0]; > src_value[1] = ((npy_longdouble *)src)[1]; ># 801 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > *(npy_ushort *)dst = ((npy_ushort)src_value[0]); ># 830 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst += sizeof(npy_ushort); > src += sizeof(npy_clongdouble); > > > > > } >} ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_contig_cast_clongdouble_to_ushort( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ > > npy_longdouble src_value[2]; > > > > > > > npy_ushort dst_value; > > > > > while (N--) { ># 790 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(&src_value, src, sizeof(src_value)); ># 799 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst_value = ((npy_ushort)src_value[0]); ># 826 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(dst, &dst_value, sizeof(dst_value)); > > > > dst += sizeof(npy_ushort); > src += sizeof(npy_clongdouble); > > > > > } >} ># 691 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_aligned_cast_clongdouble_to_uint( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ > > npy_longdouble src_value[2]; ># 781 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > while (N--) { > > > src_value[0] = ((npy_longdouble *)src)[0]; > src_value[1] = ((npy_longdouble *)src)[1]; ># 801 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > *(npy_uint *)dst = ((npy_uint)src_value[0]); ># 833 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst += dst_stride; > src += src_stride; > > } >} ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_cast_clongdouble_to_uint( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ > > npy_longdouble src_value[2]; > > > > > > > npy_uint dst_value; > > > > > while (N--) { ># 790 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(&src_value, src, sizeof(src_value)); ># 799 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst_value = ((npy_uint)src_value[0]); ># 826 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(dst, &dst_value, sizeof(dst_value)); > > > > > > > dst += dst_stride; > src += src_stride; > > } >} ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_aligned_contig_cast_clongdouble_to_uint( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ > > npy_longdouble src_value[2]; ># 781 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > while (N--) { > > > src_value[0] = ((npy_longdouble *)src)[0]; > src_value[1] = ((npy_longdouble *)src)[1]; ># 801 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > *(npy_uint *)dst = ((npy_uint)src_value[0]); ># 830 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst += sizeof(npy_uint); > src += sizeof(npy_clongdouble); > > > > > } >} ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_contig_cast_clongdouble_to_uint( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ > > npy_longdouble src_value[2]; > > > > > > > npy_uint dst_value; > > > > > while (N--) { ># 790 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(&src_value, src, sizeof(src_value)); ># 799 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst_value = ((npy_uint)src_value[0]); ># 826 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(dst, &dst_value, sizeof(dst_value)); > > > > dst += sizeof(npy_uint); > src += sizeof(npy_clongdouble); > > > > > } >} ># 691 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_aligned_cast_clongdouble_to_ulong( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ > > npy_longdouble src_value[2]; ># 781 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > while (N--) { > > > src_value[0] = ((npy_longdouble *)src)[0]; > src_value[1] = ((npy_longdouble *)src)[1]; ># 801 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > *(npy_ulong *)dst = ((npy_ulong)src_value[0]); ># 833 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst += dst_stride; > src += src_stride; > > } >} ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_cast_clongdouble_to_ulong( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ > > npy_longdouble src_value[2]; > > > > > > > npy_ulong dst_value; > > > > > while (N--) { ># 790 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(&src_value, src, sizeof(src_value)); ># 799 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst_value = ((npy_ulong)src_value[0]); ># 826 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(dst, &dst_value, sizeof(dst_value)); > > > > > > > dst += dst_stride; > src += src_stride; > > } >} ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_aligned_contig_cast_clongdouble_to_ulong( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ > > npy_longdouble src_value[2]; ># 781 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > while (N--) { > > > src_value[0] = ((npy_longdouble *)src)[0]; > src_value[1] = ((npy_longdouble *)src)[1]; ># 801 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > *(npy_ulong *)dst = ((npy_ulong)src_value[0]); ># 830 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst += sizeof(npy_ulong); > src += sizeof(npy_clongdouble); > > > > > } >} ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_contig_cast_clongdouble_to_ulong( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ > > npy_longdouble src_value[2]; > > > > > > > npy_ulong dst_value; > > > > > while (N--) { ># 790 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(&src_value, src, sizeof(src_value)); ># 799 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst_value = ((npy_ulong)src_value[0]); ># 826 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(dst, &dst_value, sizeof(dst_value)); > > > > dst += sizeof(npy_ulong); > src += sizeof(npy_clongdouble); > > > > > } >} ># 691 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_aligned_cast_clongdouble_to_ulonglong( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ > > npy_longdouble src_value[2]; ># 781 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > while (N--) { > > > src_value[0] = ((npy_longdouble *)src)[0]; > src_value[1] = ((npy_longdouble *)src)[1]; ># 801 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > *(npy_ulonglong *)dst = ((npy_ulonglong)src_value[0]); ># 833 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst += dst_stride; > src += src_stride; > > } >} ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_cast_clongdouble_to_ulonglong( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ > > npy_longdouble src_value[2]; > > > > > > > npy_ulonglong dst_value; > > > > > while (N--) { ># 790 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(&src_value, src, sizeof(src_value)); ># 799 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst_value = ((npy_ulonglong)src_value[0]); ># 826 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(dst, &dst_value, sizeof(dst_value)); > > > > > > > dst += dst_stride; > src += src_stride; > > } >} ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_aligned_contig_cast_clongdouble_to_ulonglong( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ > > npy_longdouble src_value[2]; ># 781 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > while (N--) { > > > src_value[0] = ((npy_longdouble *)src)[0]; > src_value[1] = ((npy_longdouble *)src)[1]; ># 801 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > *(npy_ulonglong *)dst = ((npy_ulonglong)src_value[0]); ># 830 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst += sizeof(npy_ulonglong); > src += sizeof(npy_clongdouble); > > > > > } >} ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_contig_cast_clongdouble_to_ulonglong( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ > > npy_longdouble src_value[2]; > > > > > > > npy_ulonglong dst_value; > > > > > while (N--) { ># 790 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(&src_value, src, sizeof(src_value)); ># 799 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst_value = ((npy_ulonglong)src_value[0]); ># 826 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(dst, &dst_value, sizeof(dst_value)); > > > > dst += sizeof(npy_ulonglong); > src += sizeof(npy_clongdouble); > > > > > } >} ># 691 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_aligned_cast_clongdouble_to_byte( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ > > npy_longdouble src_value[2]; ># 781 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > while (N--) { > > > src_value[0] = ((npy_longdouble *)src)[0]; > src_value[1] = ((npy_longdouble *)src)[1]; ># 801 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > *(npy_byte *)dst = ((npy_byte)src_value[0]); ># 833 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst += dst_stride; > src += src_stride; > > } >} ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_cast_clongdouble_to_byte( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ > > npy_longdouble src_value[2]; > > > > > > > npy_byte dst_value; > > > > > while (N--) { ># 790 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(&src_value, src, sizeof(src_value)); ># 799 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst_value = ((npy_byte)src_value[0]); ># 826 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(dst, &dst_value, sizeof(dst_value)); > > > > > > > dst += dst_stride; > src += src_stride; > > } >} ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_aligned_contig_cast_clongdouble_to_byte( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ > > npy_longdouble src_value[2]; ># 781 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > while (N--) { > > > src_value[0] = ((npy_longdouble *)src)[0]; > src_value[1] = ((npy_longdouble *)src)[1]; ># 801 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > *(npy_byte *)dst = ((npy_byte)src_value[0]); ># 830 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst += sizeof(npy_byte); > src += sizeof(npy_clongdouble); > > > > > } >} ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_contig_cast_clongdouble_to_byte( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ > > npy_longdouble src_value[2]; > > > > > > > npy_byte dst_value; > > > > > while (N--) { ># 790 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(&src_value, src, sizeof(src_value)); ># 799 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst_value = ((npy_byte)src_value[0]); ># 826 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(dst, &dst_value, sizeof(dst_value)); > > > > dst += sizeof(npy_byte); > src += sizeof(npy_clongdouble); > > > > > } >} ># 691 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_aligned_cast_clongdouble_to_short( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ > > npy_longdouble src_value[2]; ># 781 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > while (N--) { > > > src_value[0] = ((npy_longdouble *)src)[0]; > src_value[1] = ((npy_longdouble *)src)[1]; ># 801 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > *(npy_short *)dst = ((npy_short)src_value[0]); ># 833 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst += dst_stride; > src += src_stride; > > } >} ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_cast_clongdouble_to_short( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ > > npy_longdouble src_value[2]; > > > > > > > npy_short dst_value; > > > > > while (N--) { ># 790 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(&src_value, src, sizeof(src_value)); ># 799 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst_value = ((npy_short)src_value[0]); ># 826 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(dst, &dst_value, sizeof(dst_value)); > > > > > > > dst += dst_stride; > src += src_stride; > > } >} ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_aligned_contig_cast_clongdouble_to_short( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ > > npy_longdouble src_value[2]; ># 781 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > while (N--) { > > > src_value[0] = ((npy_longdouble *)src)[0]; > src_value[1] = ((npy_longdouble *)src)[1]; ># 801 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > *(npy_short *)dst = ((npy_short)src_value[0]); ># 830 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst += sizeof(npy_short); > src += sizeof(npy_clongdouble); > > > > > } >} ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_contig_cast_clongdouble_to_short( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ > > npy_longdouble src_value[2]; > > > > > > > npy_short dst_value; > > > > > while (N--) { ># 790 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(&src_value, src, sizeof(src_value)); ># 799 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst_value = ((npy_short)src_value[0]); ># 826 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(dst, &dst_value, sizeof(dst_value)); > > > > dst += sizeof(npy_short); > src += sizeof(npy_clongdouble); > > > > > } >} ># 691 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_aligned_cast_clongdouble_to_int( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ > > npy_longdouble src_value[2]; ># 781 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > while (N--) { > > > src_value[0] = ((npy_longdouble *)src)[0]; > src_value[1] = ((npy_longdouble *)src)[1]; ># 801 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > *(npy_int *)dst = ((npy_int)src_value[0]); ># 833 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst += dst_stride; > src += src_stride; > > } >} ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_cast_clongdouble_to_int( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ > > npy_longdouble src_value[2]; > > > > > > > npy_int dst_value; > > > > > while (N--) { ># 790 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(&src_value, src, sizeof(src_value)); ># 799 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst_value = ((npy_int)src_value[0]); ># 826 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(dst, &dst_value, sizeof(dst_value)); > > > > > > > dst += dst_stride; > src += src_stride; > > } >} ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_aligned_contig_cast_clongdouble_to_int( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ > > npy_longdouble src_value[2]; ># 781 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > while (N--) { > > > src_value[0] = ((npy_longdouble *)src)[0]; > src_value[1] = ((npy_longdouble *)src)[1]; ># 801 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > *(npy_int *)dst = ((npy_int)src_value[0]); ># 830 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst += sizeof(npy_int); > src += sizeof(npy_clongdouble); > > > > > } >} ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_contig_cast_clongdouble_to_int( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ > > npy_longdouble src_value[2]; > > > > > > > npy_int dst_value; > > > > > while (N--) { ># 790 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(&src_value, src, sizeof(src_value)); ># 799 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst_value = ((npy_int)src_value[0]); ># 826 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(dst, &dst_value, sizeof(dst_value)); > > > > dst += sizeof(npy_int); > src += sizeof(npy_clongdouble); > > > > > } >} ># 691 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_aligned_cast_clongdouble_to_long( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ > > npy_longdouble src_value[2]; ># 781 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > while (N--) { > > > src_value[0] = ((npy_longdouble *)src)[0]; > src_value[1] = ((npy_longdouble *)src)[1]; ># 801 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > *(npy_long *)dst = ((npy_long)src_value[0]); ># 833 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst += dst_stride; > src += src_stride; > > } >} ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_cast_clongdouble_to_long( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ > > npy_longdouble src_value[2]; > > > > > > > npy_long dst_value; > > > > > while (N--) { ># 790 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(&src_value, src, sizeof(src_value)); ># 799 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst_value = ((npy_long)src_value[0]); ># 826 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(dst, &dst_value, sizeof(dst_value)); > > > > > > > dst += dst_stride; > src += src_stride; > > } >} ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_aligned_contig_cast_clongdouble_to_long( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ > > npy_longdouble src_value[2]; ># 781 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > while (N--) { > > > src_value[0] = ((npy_longdouble *)src)[0]; > src_value[1] = ((npy_longdouble *)src)[1]; ># 801 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > *(npy_long *)dst = ((npy_long)src_value[0]); ># 830 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst += sizeof(npy_long); > src += sizeof(npy_clongdouble); > > > > > } >} ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_contig_cast_clongdouble_to_long( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ > > npy_longdouble src_value[2]; > > > > > > > npy_long dst_value; > > > > > while (N--) { ># 790 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(&src_value, src, sizeof(src_value)); ># 799 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst_value = ((npy_long)src_value[0]); ># 826 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(dst, &dst_value, sizeof(dst_value)); > > > > dst += sizeof(npy_long); > src += sizeof(npy_clongdouble); > > > > > } >} ># 691 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_aligned_cast_clongdouble_to_longlong( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ > > npy_longdouble src_value[2]; ># 781 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > while (N--) { > > > src_value[0] = ((npy_longdouble *)src)[0]; > src_value[1] = ((npy_longdouble *)src)[1]; ># 801 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > *(npy_longlong *)dst = ((npy_longlong)src_value[0]); ># 833 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst += dst_stride; > src += src_stride; > > } >} ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_cast_clongdouble_to_longlong( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ > > npy_longdouble src_value[2]; > > > > > > > npy_longlong dst_value; > > > > > while (N--) { ># 790 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(&src_value, src, sizeof(src_value)); ># 799 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst_value = ((npy_longlong)src_value[0]); ># 826 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(dst, &dst_value, sizeof(dst_value)); > > > > > > > dst += dst_stride; > src += src_stride; > > } >} ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_aligned_contig_cast_clongdouble_to_longlong( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ > > npy_longdouble src_value[2]; ># 781 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > while (N--) { > > > src_value[0] = ((npy_longdouble *)src)[0]; > src_value[1] = ((npy_longdouble *)src)[1]; ># 801 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > *(npy_longlong *)dst = ((npy_longlong)src_value[0]); ># 830 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst += sizeof(npy_longlong); > src += sizeof(npy_clongdouble); > > > > > } >} ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_contig_cast_clongdouble_to_longlong( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ > > npy_longdouble src_value[2]; > > > > > > > npy_longlong dst_value; > > > > > while (N--) { ># 790 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(&src_value, src, sizeof(src_value)); ># 799 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst_value = ((npy_longlong)src_value[0]); ># 826 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(dst, &dst_value, sizeof(dst_value)); > > > > dst += sizeof(npy_longlong); > src += sizeof(npy_clongdouble); > > > > > } >} ># 691 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_aligned_cast_clongdouble_to_half( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ > > npy_longdouble src_value[2]; ># 781 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > while (N--) { > > > src_value[0] = ((npy_longdouble *)src)[0]; > src_value[1] = ((npy_longdouble *)src)[1]; ># 801 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > *(npy_half *)dst = npy_float_to_half((float)src_value[0]); ># 833 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst += dst_stride; > src += src_stride; > > } >} ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_cast_clongdouble_to_half( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ > > npy_longdouble src_value[2]; > > > > > > > npy_half dst_value; > > > > > while (N--) { ># 790 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(&src_value, src, sizeof(src_value)); ># 799 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst_value = npy_float_to_half((float)src_value[0]); ># 826 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(dst, &dst_value, sizeof(dst_value)); > > > > > > > dst += dst_stride; > src += src_stride; > > } >} ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_aligned_contig_cast_clongdouble_to_half( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ > > npy_longdouble src_value[2]; ># 781 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > while (N--) { > > > src_value[0] = ((npy_longdouble *)src)[0]; > src_value[1] = ((npy_longdouble *)src)[1]; ># 801 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > *(npy_half *)dst = npy_float_to_half((float)src_value[0]); ># 830 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst += sizeof(npy_half); > src += sizeof(npy_clongdouble); > > > > > } >} ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_contig_cast_clongdouble_to_half( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ > > npy_longdouble src_value[2]; > > > > > > > npy_half dst_value; > > > > > while (N--) { ># 790 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(&src_value, src, sizeof(src_value)); ># 799 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst_value = npy_float_to_half((float)src_value[0]); ># 826 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(dst, &dst_value, sizeof(dst_value)); > > > > dst += sizeof(npy_half); > src += sizeof(npy_clongdouble); > > > > > } >} ># 691 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_aligned_cast_clongdouble_to_float( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ > > npy_longdouble src_value[2]; ># 781 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > while (N--) { > > > src_value[0] = ((npy_longdouble *)src)[0]; > src_value[1] = ((npy_longdouble *)src)[1]; ># 801 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > *(npy_float *)dst = ((npy_float)src_value[0]); ># 833 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst += dst_stride; > src += src_stride; > > } >} ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_cast_clongdouble_to_float( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ > > npy_longdouble src_value[2]; > > > > > > > npy_float dst_value; > > > > > while (N--) { ># 790 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(&src_value, src, sizeof(src_value)); ># 799 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst_value = ((npy_float)src_value[0]); ># 826 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(dst, &dst_value, sizeof(dst_value)); > > > > > > > dst += dst_stride; > src += src_stride; > > } >} ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_aligned_contig_cast_clongdouble_to_float( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ > > npy_longdouble src_value[2]; ># 781 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > while (N--) { > > > src_value[0] = ((npy_longdouble *)src)[0]; > src_value[1] = ((npy_longdouble *)src)[1]; ># 801 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > *(npy_float *)dst = ((npy_float)src_value[0]); ># 830 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst += sizeof(npy_float); > src += sizeof(npy_clongdouble); > > > > > } >} ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_contig_cast_clongdouble_to_float( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ > > npy_longdouble src_value[2]; > > > > > > > npy_float dst_value; > > > > > while (N--) { ># 790 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(&src_value, src, sizeof(src_value)); ># 799 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst_value = ((npy_float)src_value[0]); ># 826 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(dst, &dst_value, sizeof(dst_value)); > > > > dst += sizeof(npy_float); > src += sizeof(npy_clongdouble); > > > > > } >} ># 691 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_aligned_cast_clongdouble_to_double( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ > > npy_longdouble src_value[2]; ># 781 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > while (N--) { > > > src_value[0] = ((npy_longdouble *)src)[0]; > src_value[1] = ((npy_longdouble *)src)[1]; ># 801 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > *(npy_double *)dst = ((npy_double)src_value[0]); ># 833 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst += dst_stride; > src += src_stride; > > } >} ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_cast_clongdouble_to_double( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ > > npy_longdouble src_value[2]; > > > > > > > npy_double dst_value; > > > > > while (N--) { ># 790 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(&src_value, src, sizeof(src_value)); ># 799 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst_value = ((npy_double)src_value[0]); ># 826 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(dst, &dst_value, sizeof(dst_value)); > > > > > > > dst += dst_stride; > src += src_stride; > > } >} ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_aligned_contig_cast_clongdouble_to_double( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ > > npy_longdouble src_value[2]; ># 781 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > while (N--) { > > > src_value[0] = ((npy_longdouble *)src)[0]; > src_value[1] = ((npy_longdouble *)src)[1]; ># 801 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > *(npy_double *)dst = ((npy_double)src_value[0]); ># 830 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst += sizeof(npy_double); > src += sizeof(npy_clongdouble); > > > > > } >} ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_contig_cast_clongdouble_to_double( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ > > npy_longdouble src_value[2]; > > > > > > > npy_double dst_value; > > > > > while (N--) { ># 790 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(&src_value, src, sizeof(src_value)); ># 799 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst_value = ((npy_double)src_value[0]); ># 826 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(dst, &dst_value, sizeof(dst_value)); > > > > dst += sizeof(npy_double); > src += sizeof(npy_clongdouble); > > > > > } >} ># 691 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_aligned_cast_clongdouble_to_longdouble( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ > > npy_longdouble src_value[2]; ># 781 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > while (N--) { > > > src_value[0] = ((npy_longdouble *)src)[0]; > src_value[1] = ((npy_longdouble *)src)[1]; ># 801 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > *(npy_longdouble *)dst = ((npy_longdouble)src_value[0]); ># 833 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst += dst_stride; > src += src_stride; > > } >} ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_cast_clongdouble_to_longdouble( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ > > npy_longdouble src_value[2]; > > > > > > > npy_longdouble dst_value; > > > > > while (N--) { ># 790 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(&src_value, src, sizeof(src_value)); ># 799 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst_value = ((npy_longdouble)src_value[0]); ># 826 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(dst, &dst_value, sizeof(dst_value)); > > > > > > > dst += dst_stride; > src += src_stride; > > } >} ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_aligned_contig_cast_clongdouble_to_longdouble( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ > > npy_longdouble src_value[2]; ># 781 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > while (N--) { > > > src_value[0] = ((npy_longdouble *)src)[0]; > src_value[1] = ((npy_longdouble *)src)[1]; ># 801 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > *(npy_longdouble *)dst = ((npy_longdouble)src_value[0]); ># 830 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst += sizeof(npy_longdouble); > src += sizeof(npy_clongdouble); > > > > > } >} ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_contig_cast_clongdouble_to_longdouble( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ > > npy_longdouble src_value[2]; > > > > > > > npy_longdouble dst_value; > > > > > while (N--) { ># 790 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(&src_value, src, sizeof(src_value)); ># 799 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst_value = ((npy_longdouble)src_value[0]); ># 826 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(dst, &dst_value, sizeof(dst_value)); > > > > dst += sizeof(npy_longdouble); > src += sizeof(npy_clongdouble); > > > > > } >} ># 691 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_aligned_cast_clongdouble_to_cfloat( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ > > npy_longdouble src_value[2]; > > > > > npy_float dst_value[2]; > > > > > > > while (N--) { > > > src_value[0] = ((npy_longdouble *)src)[0]; > src_value[1] = ((npy_longdouble *)src)[1]; ># 796 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst_value[0] = ((npy_float)src_value[0]); > dst_value[1] = ((npy_float)src_value[1]); ># 820 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > ((npy_float *)dst)[0] = dst_value[0]; > ((npy_float *)dst)[1] = dst_value[1]; ># 833 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst += dst_stride; > src += src_stride; > > } >} ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_cast_clongdouble_to_cfloat( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ > > npy_longdouble src_value[2]; > > > > > npy_float dst_value[2]; > > > > > > > while (N--) { ># 790 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(&src_value, src, sizeof(src_value)); > > > > > > dst_value[0] = ((npy_float)src_value[0]); > dst_value[1] = ((npy_float)src_value[1]); ># 826 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(dst, &dst_value, sizeof(dst_value)); > > > > > > > dst += dst_stride; > src += src_stride; > > } >} ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_aligned_contig_cast_clongdouble_to_cfloat( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ > > npy_longdouble src_value[2]; > > > > > npy_float dst_value[2]; > > > > > > > while (N--) { > > > src_value[0] = ((npy_longdouble *)src)[0]; > src_value[1] = ((npy_longdouble *)src)[1]; ># 796 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst_value[0] = ((npy_float)src_value[0]); > dst_value[1] = ((npy_float)src_value[1]); ># 820 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > ((npy_float *)dst)[0] = dst_value[0]; > ((npy_float *)dst)[1] = dst_value[1]; ># 830 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst += sizeof(npy_cfloat); > src += sizeof(npy_clongdouble); > > > > > } >} ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_contig_cast_clongdouble_to_cfloat( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ > > npy_longdouble src_value[2]; > > > > > npy_float dst_value[2]; > > > > > > > while (N--) { ># 790 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(&src_value, src, sizeof(src_value)); > > > > > > dst_value[0] = ((npy_float)src_value[0]); > dst_value[1] = ((npy_float)src_value[1]); ># 826 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(dst, &dst_value, sizeof(dst_value)); > > > > dst += sizeof(npy_cfloat); > src += sizeof(npy_clongdouble); > > > > > } >} ># 691 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_aligned_cast_clongdouble_to_cdouble( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ > > npy_longdouble src_value[2]; > > > > > npy_double dst_value[2]; > > > > > > > while (N--) { > > > src_value[0] = ((npy_longdouble *)src)[0]; > src_value[1] = ((npy_longdouble *)src)[1]; ># 796 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst_value[0] = ((npy_double)src_value[0]); > dst_value[1] = ((npy_double)src_value[1]); ># 820 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > ((npy_double *)dst)[0] = dst_value[0]; > ((npy_double *)dst)[1] = dst_value[1]; ># 833 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst += dst_stride; > src += src_stride; > > } >} ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_cast_clongdouble_to_cdouble( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ > > npy_longdouble src_value[2]; > > > > > npy_double dst_value[2]; > > > > > > > while (N--) { ># 790 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(&src_value, src, sizeof(src_value)); > > > > > > dst_value[0] = ((npy_double)src_value[0]); > dst_value[1] = ((npy_double)src_value[1]); ># 826 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(dst, &dst_value, sizeof(dst_value)); > > > > > > > dst += dst_stride; > src += src_stride; > > } >} ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_aligned_contig_cast_clongdouble_to_cdouble( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ > > npy_longdouble src_value[2]; > > > > > npy_double dst_value[2]; > > > > > > > while (N--) { > > > src_value[0] = ((npy_longdouble *)src)[0]; > src_value[1] = ((npy_longdouble *)src)[1]; ># 796 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst_value[0] = ((npy_double)src_value[0]); > dst_value[1] = ((npy_double)src_value[1]); ># 820 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > ((npy_double *)dst)[0] = dst_value[0]; > ((npy_double *)dst)[1] = dst_value[1]; ># 830 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst += sizeof(npy_cdouble); > src += sizeof(npy_clongdouble); > > > > > } >} ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_contig_cast_clongdouble_to_cdouble( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ > > npy_longdouble src_value[2]; > > > > > npy_double dst_value[2]; > > > > > > > while (N--) { ># 790 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(&src_value, src, sizeof(src_value)); > > > > > > dst_value[0] = ((npy_double)src_value[0]); > dst_value[1] = ((npy_double)src_value[1]); ># 826 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(dst, &dst_value, sizeof(dst_value)); > > > > dst += sizeof(npy_cdouble); > src += sizeof(npy_clongdouble); > > > > > } >} ># 691 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_aligned_cast_clongdouble_to_clongdouble( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ > > npy_longdouble src_value[2]; > > > > > npy_longdouble dst_value[2]; > > > > > > > while (N--) { > > > src_value[0] = ((npy_longdouble *)src)[0]; > src_value[1] = ((npy_longdouble *)src)[1]; ># 796 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst_value[0] = ((npy_longdouble)src_value[0]); > dst_value[1] = ((npy_longdouble)src_value[1]); ># 820 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > ((npy_longdouble *)dst)[0] = dst_value[0]; > ((npy_longdouble *)dst)[1] = dst_value[1]; ># 833 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst += dst_stride; > src += src_stride; > > } >} ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_cast_clongdouble_to_clongdouble( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ > > npy_longdouble src_value[2]; > > > > > npy_longdouble dst_value[2]; > > > > > > > while (N--) { ># 790 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(&src_value, src, sizeof(src_value)); > > > > > > dst_value[0] = ((npy_longdouble)src_value[0]); > dst_value[1] = ((npy_longdouble)src_value[1]); ># 826 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(dst, &dst_value, sizeof(dst_value)); > > > > > > > dst += dst_stride; > src += src_stride; > > } >} ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_aligned_contig_cast_clongdouble_to_clongdouble( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ > > npy_longdouble src_value[2]; > > > > > npy_longdouble dst_value[2]; > > > > > > > while (N--) { > > > src_value[0] = ((npy_longdouble *)src)[0]; > src_value[1] = ((npy_longdouble *)src)[1]; ># 796 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst_value[0] = ((npy_longdouble)src_value[0]); > dst_value[1] = ((npy_longdouble)src_value[1]); ># 820 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > ((npy_longdouble *)dst)[0] = dst_value[0]; > ((npy_longdouble *)dst)[1] = dst_value[1]; ># 830 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > dst += sizeof(npy_clongdouble); > src += sizeof(npy_clongdouble); > > > > > } >} ># 697 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" ># 761 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static void >_contig_cast_clongdouble_to_clongdouble( > char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ > > npy_longdouble src_value[2]; > > > > > npy_longdouble dst_value[2]; > > > > > > > while (N--) { ># 790 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(&src_value, src, sizeof(src_value)); > > > > > > dst_value[0] = ((npy_longdouble)src_value[0]); > dst_value[1] = ((npy_longdouble)src_value[1]); ># 826 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > memcpy(dst, &dst_value, sizeof(dst_value)); > > > > dst += sizeof(npy_clongdouble); > src += sizeof(npy_clongdouble); > > > > > } >} ># 851 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" >static PyArray_StridedTransferFn * >PyArray_GetStridedNumericCastFn(npy_intp aligned, npy_intp src_stride, > npy_intp dst_stride, > int src_type_num, int dst_type_num) >{ > switch (src_type_num) { ># 870 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > > case NPY_BOOL: > > switch (dst_type_num) { ># 887 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > > case NPY_BOOL: ># 899 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > if (src_stride == sizeof(npy_bool) && > dst_stride == sizeof(npy_bool)) { > return aligned ? > &_aligned_contig_cast_bool_to_bool : > &_contig_cast_bool_to_bool; > } > else { > return aligned ? &_aligned_cast_bool_to_bool : > &_cast_bool_to_bool; > } ># 887 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > > case NPY_UBYTE: ># 899 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > if (src_stride == sizeof(npy_bool) && > dst_stride == sizeof(npy_ubyte)) { > return aligned ? > &_aligned_contig_cast_bool_to_ubyte : > &_contig_cast_bool_to_ubyte; > } > else { > return aligned ? &_aligned_cast_bool_to_ubyte : > &_cast_bool_to_ubyte; > } ># 887 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > > case NPY_USHORT: ># 899 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > if (src_stride == sizeof(npy_bool) && > dst_stride == sizeof(npy_ushort)) { > return aligned ? > &_aligned_contig_cast_bool_to_ushort : > &_contig_cast_bool_to_ushort; > } > else { > return aligned ? &_aligned_cast_bool_to_ushort : > &_cast_bool_to_ushort; > } ># 887 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > > case NPY_UINT: ># 899 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > if (src_stride == sizeof(npy_bool) && > dst_stride == sizeof(npy_uint)) { > return aligned ? > &_aligned_contig_cast_bool_to_uint : > &_contig_cast_bool_to_uint; > } > else { > return aligned ? &_aligned_cast_bool_to_uint : > &_cast_bool_to_uint; > } ># 887 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > > case NPY_ULONG: ># 899 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > if (src_stride == sizeof(npy_bool) && > dst_stride == sizeof(npy_ulong)) { > return aligned ? > &_aligned_contig_cast_bool_to_ulong : > &_contig_cast_bool_to_ulong; > } > else { > return aligned ? &_aligned_cast_bool_to_ulong : > &_cast_bool_to_ulong; > } ># 887 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > > case NPY_ULONGLONG: ># 899 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > if (src_stride == sizeof(npy_bool) && > dst_stride == sizeof(npy_ulonglong)) { > return aligned ? > &_aligned_contig_cast_bool_to_ulonglong : > &_contig_cast_bool_to_ulonglong; > } > else { > return aligned ? &_aligned_cast_bool_to_ulonglong : > &_cast_bool_to_ulonglong; > } ># 887 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > > case NPY_BYTE: ># 899 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > if (src_stride == sizeof(npy_bool) && > dst_stride == sizeof(npy_byte)) { > return aligned ? > &_aligned_contig_cast_bool_to_byte : > &_contig_cast_bool_to_byte; > } > else { > return aligned ? &_aligned_cast_bool_to_byte : > &_cast_bool_to_byte; > } ># 887 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > > case NPY_SHORT: ># 899 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > if (src_stride == sizeof(npy_bool) && > dst_stride == sizeof(npy_short)) { > return aligned ? > &_aligned_contig_cast_bool_to_short : > &_contig_cast_bool_to_short; > } > else { > return aligned ? &_aligned_cast_bool_to_short : > &_cast_bool_to_short; > } ># 887 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > > case NPY_INT: ># 899 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > if (src_stride == sizeof(npy_bool) && > dst_stride == sizeof(npy_int)) { > return aligned ? > &_aligned_contig_cast_bool_to_int : > &_contig_cast_bool_to_int; > } > else { > return aligned ? &_aligned_cast_bool_to_int : > &_cast_bool_to_int; > } ># 887 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > > case NPY_LONG: ># 899 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > if (src_stride == sizeof(npy_bool) && > dst_stride == sizeof(npy_long)) { > return aligned ? > &_aligned_contig_cast_bool_to_long : > &_contig_cast_bool_to_long; > } > else { > return aligned ? &_aligned_cast_bool_to_long : > &_cast_bool_to_long; > } ># 887 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > > case NPY_LONGLONG: ># 899 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > if (src_stride == sizeof(npy_bool) && > dst_stride == sizeof(npy_longlong)) { > return aligned ? > &_aligned_contig_cast_bool_to_longlong : > &_contig_cast_bool_to_longlong; > } > else { > return aligned ? &_aligned_cast_bool_to_longlong : > &_cast_bool_to_longlong; > } ># 887 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > > case NPY_HALF: ># 899 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > if (src_stride == sizeof(npy_bool) && > dst_stride == sizeof(npy_half)) { > return aligned ? > &_aligned_contig_cast_bool_to_half : > &_contig_cast_bool_to_half; > } > else { > return aligned ? &_aligned_cast_bool_to_half : > &_cast_bool_to_half; > } ># 887 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > > case NPY_FLOAT: ># 899 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > if (src_stride == sizeof(npy_bool) && > dst_stride == sizeof(npy_float)) { > return aligned ? > &_aligned_contig_cast_bool_to_float : > &_contig_cast_bool_to_float; > } > else { > return aligned ? &_aligned_cast_bool_to_float : > &_cast_bool_to_float; > } ># 887 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > > case NPY_DOUBLE: ># 899 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > if (src_stride == sizeof(npy_bool) && > dst_stride == sizeof(npy_double)) { > return aligned ? > &_aligned_contig_cast_bool_to_double : > &_contig_cast_bool_to_double; > } > else { > return aligned ? &_aligned_cast_bool_to_double : > &_cast_bool_to_double; > } ># 887 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > > case NPY_LONGDOUBLE: ># 899 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > if (src_stride == sizeof(npy_bool) && > dst_stride == sizeof(npy_longdouble)) { > return aligned ? > &_aligned_contig_cast_bool_to_longdouble : > &_contig_cast_bool_to_longdouble; > } > else { > return aligned ? &_aligned_cast_bool_to_longdouble : > &_cast_bool_to_longdouble; > } ># 887 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > > case NPY_CFLOAT: ># 899 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > if (src_stride == sizeof(npy_bool) && > dst_stride == sizeof(npy_cfloat)) { > return aligned ? > &_aligned_contig_cast_bool_to_cfloat : > &_contig_cast_bool_to_cfloat; > } > else { > return aligned ? &_aligned_cast_bool_to_cfloat : > &_cast_bool_to_cfloat; > } ># 887 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > > case NPY_CDOUBLE: ># 899 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > if (src_stride == sizeof(npy_bool) && > dst_stride == sizeof(npy_cdouble)) { > return aligned ? > &_aligned_contig_cast_bool_to_cdouble : > &_contig_cast_bool_to_cdouble; > } > else { > return aligned ? &_aligned_cast_bool_to_cdouble : > &_cast_bool_to_cdouble; > } ># 887 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > > case NPY_CLONGDOUBLE: ># 899 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > if (src_stride == sizeof(npy_bool) && > dst_stride == sizeof(npy_clongdouble)) { > return aligned ? > &_aligned_contig_cast_bool_to_clongdouble : > &_contig_cast_bool_to_clongdouble; > } > else { > return aligned ? &_aligned_cast_bool_to_clongdouble : > &_cast_bool_to_clongdouble; > } > > > > } ># 870 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > > case NPY_UBYTE: > > switch (dst_type_num) { ># 887 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > > case NPY_BOOL: ># 899 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > if (src_stride == sizeof(npy_ubyte) && > dst_stride == sizeof(npy_bool)) { > return aligned ? > &_aligned_contig_cast_ubyte_to_bool : > &_contig_cast_ubyte_to_bool; > } > else { > return aligned ? &_aligned_cast_ubyte_to_bool : > &_cast_ubyte_to_bool; > } ># 887 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > > case NPY_UBYTE: ># 899 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > if (src_stride == sizeof(npy_ubyte) && > dst_stride == sizeof(npy_ubyte)) { > return aligned ? > &_aligned_contig_cast_ubyte_to_ubyte : > &_contig_cast_ubyte_to_ubyte; > } > else { > return aligned ? &_aligned_cast_ubyte_to_ubyte : > &_cast_ubyte_to_ubyte; > } ># 887 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > > case NPY_USHORT: ># 899 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > if (src_stride == sizeof(npy_ubyte) && > dst_stride == sizeof(npy_ushort)) { > return aligned ? > &_aligned_contig_cast_ubyte_to_ushort : > &_contig_cast_ubyte_to_ushort; > } > else { > return aligned ? &_aligned_cast_ubyte_to_ushort : > &_cast_ubyte_to_ushort; > } ># 887 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > > case NPY_UINT: ># 899 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > if (src_stride == sizeof(npy_ubyte) && > dst_stride == sizeof(npy_uint)) { > return aligned ? > &_aligned_contig_cast_ubyte_to_uint : > &_contig_cast_ubyte_to_uint; > } > else { > return aligned ? &_aligned_cast_ubyte_to_uint : > &_cast_ubyte_to_uint; > } ># 887 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > > case NPY_ULONG: ># 899 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > if (src_stride == sizeof(npy_ubyte) && > dst_stride == sizeof(npy_ulong)) { > return aligned ? > &_aligned_contig_cast_ubyte_to_ulong : > &_contig_cast_ubyte_to_ulong; > } > else { > return aligned ? &_aligned_cast_ubyte_to_ulong : > &_cast_ubyte_to_ulong; > } ># 887 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > > case NPY_ULONGLONG: ># 899 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > if (src_stride == sizeof(npy_ubyte) && > dst_stride == sizeof(npy_ulonglong)) { > return aligned ? > &_aligned_contig_cast_ubyte_to_ulonglong : > &_contig_cast_ubyte_to_ulonglong; > } > else { > return aligned ? &_aligned_cast_ubyte_to_ulonglong : > &_cast_ubyte_to_ulonglong; > } ># 887 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > > case NPY_BYTE: ># 899 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > if (src_stride == sizeof(npy_ubyte) && > dst_stride == sizeof(npy_byte)) { > return aligned ? > &_aligned_contig_cast_ubyte_to_byte : > &_contig_cast_ubyte_to_byte; > } > else { > return aligned ? &_aligned_cast_ubyte_to_byte : > &_cast_ubyte_to_byte; > } ># 887 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > > case NPY_SHORT: ># 899 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > if (src_stride == sizeof(npy_ubyte) && > dst_stride == sizeof(npy_short)) { > return aligned ? > &_aligned_contig_cast_ubyte_to_short : > &_contig_cast_ubyte_to_short; > } > else { > return aligned ? &_aligned_cast_ubyte_to_short : > &_cast_ubyte_to_short; > } ># 887 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > > case NPY_INT: ># 899 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > if (src_stride == sizeof(npy_ubyte) && > dst_stride == sizeof(npy_int)) { > return aligned ? > &_aligned_contig_cast_ubyte_to_int : > &_contig_cast_ubyte_to_int; > } > else { > return aligned ? &_aligned_cast_ubyte_to_int : > &_cast_ubyte_to_int; > } ># 887 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > > case NPY_LONG: ># 899 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > if (src_stride == sizeof(npy_ubyte) && > dst_stride == sizeof(npy_long)) { > return aligned ? > &_aligned_contig_cast_ubyte_to_long : > &_contig_cast_ubyte_to_long; > } > else { > return aligned ? &_aligned_cast_ubyte_to_long : > &_cast_ubyte_to_long; > } ># 887 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > > case NPY_LONGLONG: ># 899 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > if (src_stride == sizeof(npy_ubyte) && > dst_stride == sizeof(npy_longlong)) { > return aligned ? > &_aligned_contig_cast_ubyte_to_longlong : > &_contig_cast_ubyte_to_longlong; > } > else { > return aligned ? &_aligned_cast_ubyte_to_longlong : > &_cast_ubyte_to_longlong; > } ># 887 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > > case NPY_HALF: ># 899 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > if (src_stride == sizeof(npy_ubyte) && > dst_stride == sizeof(npy_half)) { > return aligned ? > &_aligned_contig_cast_ubyte_to_half : > &_contig_cast_ubyte_to_half; > } > else { > return aligned ? &_aligned_cast_ubyte_to_half : > &_cast_ubyte_to_half; > } ># 887 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > > case NPY_FLOAT: ># 899 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > if (src_stride == sizeof(npy_ubyte) && > dst_stride == sizeof(npy_float)) { > return aligned ? > &_aligned_contig_cast_ubyte_to_float : > &_contig_cast_ubyte_to_float; > } > else { > return aligned ? &_aligned_cast_ubyte_to_float : > &_cast_ubyte_to_float; > } ># 887 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > > case NPY_DOUBLE: ># 899 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > if (src_stride == sizeof(npy_ubyte) && > dst_stride == sizeof(npy_double)) { > return aligned ? > &_aligned_contig_cast_ubyte_to_double : > &_contig_cast_ubyte_to_double; > } > else { > return aligned ? &_aligned_cast_ubyte_to_double : > &_cast_ubyte_to_double; > } ># 887 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > > case NPY_LONGDOUBLE: ># 899 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > if (src_stride == sizeof(npy_ubyte) && > dst_stride == sizeof(npy_longdouble)) { > return aligned ? > &_aligned_contig_cast_ubyte_to_longdouble : > &_contig_cast_ubyte_to_longdouble; > } > else { > return aligned ? &_aligned_cast_ubyte_to_longdouble : > &_cast_ubyte_to_longdouble; > } ># 887 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > > case NPY_CFLOAT: ># 899 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > if (src_stride == sizeof(npy_ubyte) && > dst_stride == sizeof(npy_cfloat)) { > return aligned ? > &_aligned_contig_cast_ubyte_to_cfloat : > &_contig_cast_ubyte_to_cfloat; > } > else { > return aligned ? &_aligned_cast_ubyte_to_cfloat : > &_cast_ubyte_to_cfloat; > } ># 887 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > > case NPY_CDOUBLE: ># 899 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > if (src_stride == sizeof(npy_ubyte) && > dst_stride == sizeof(npy_cdouble)) { > return aligned ? > &_aligned_contig_cast_ubyte_to_cdouble : > &_contig_cast_ubyte_to_cdouble; > } > else { > return aligned ? &_aligned_cast_ubyte_to_cdouble : > &_cast_ubyte_to_cdouble; > } ># 887 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > > case NPY_CLONGDOUBLE: ># 899 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > if (src_stride == sizeof(npy_ubyte) && > dst_stride == sizeof(npy_clongdouble)) { > return aligned ? > &_aligned_contig_cast_ubyte_to_clongdouble : > &_contig_cast_ubyte_to_clongdouble; > } > else { > return aligned ? &_aligned_cast_ubyte_to_clongdouble : > &_cast_ubyte_to_clongdouble; > } > > > > } ># 870 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > > case NPY_USHORT: > > switch (dst_type_num) { ># 887 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > > case NPY_BOOL: ># 899 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > if (src_stride == sizeof(npy_ushort) && > dst_stride == sizeof(npy_bool)) { > return aligned ? > &_aligned_contig_cast_ushort_to_bool : > &_contig_cast_ushort_to_bool; > } > else { > return aligned ? &_aligned_cast_ushort_to_bool : > &_cast_ushort_to_bool; > } ># 887 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > > case NPY_UBYTE: ># 899 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > if (src_stride == sizeof(npy_ushort) && > dst_stride == sizeof(npy_ubyte)) { > return aligned ? > &_aligned_contig_cast_ushort_to_ubyte : > &_contig_cast_ushort_to_ubyte; > } > else { > return aligned ? &_aligned_cast_ushort_to_ubyte : > &_cast_ushort_to_ubyte; > } ># 887 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > > case NPY_USHORT: ># 899 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > if (src_stride == sizeof(npy_ushort) && > dst_stride == sizeof(npy_ushort)) { > return aligned ? > &_aligned_contig_cast_ushort_to_ushort : > &_contig_cast_ushort_to_ushort; > } > else { > return aligned ? &_aligned_cast_ushort_to_ushort : > &_cast_ushort_to_ushort; > } ># 887 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > > case NPY_UINT: ># 899 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > if (src_stride == sizeof(npy_ushort) && > dst_stride == sizeof(npy_uint)) { > return aligned ? > &_aligned_contig_cast_ushort_to_uint : > &_contig_cast_ushort_to_uint; > } > else { > return aligned ? &_aligned_cast_ushort_to_uint : > &_cast_ushort_to_uint; > } ># 887 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > > case NPY_ULONG: ># 899 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > if (src_stride == sizeof(npy_ushort) && > dst_stride == sizeof(npy_ulong)) { > return aligned ? > &_aligned_contig_cast_ushort_to_ulong : > &_contig_cast_ushort_to_ulong; > } > else { > return aligned ? &_aligned_cast_ushort_to_ulong : > &_cast_ushort_to_ulong; > } ># 887 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > > case NPY_ULONGLONG: ># 899 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > if (src_stride == sizeof(npy_ushort) && > dst_stride == sizeof(npy_ulonglong)) { > return aligned ? > &_aligned_contig_cast_ushort_to_ulonglong : > &_contig_cast_ushort_to_ulonglong; > } > else { > return aligned ? &_aligned_cast_ushort_to_ulonglong : > &_cast_ushort_to_ulonglong; > } ># 887 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > > case NPY_BYTE: ># 899 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > if (src_stride == sizeof(npy_ushort) && > dst_stride == sizeof(npy_byte)) { > return aligned ? > &_aligned_contig_cast_ushort_to_byte : > &_contig_cast_ushort_to_byte; > } > else { > return aligned ? &_aligned_cast_ushort_to_byte : > &_cast_ushort_to_byte; > } ># 887 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > > case NPY_SHORT: ># 899 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > if (src_stride == sizeof(npy_ushort) && > dst_stride == sizeof(npy_short)) { > return aligned ? > &_aligned_contig_cast_ushort_to_short : > &_contig_cast_ushort_to_short; > } > else { > return aligned ? &_aligned_cast_ushort_to_short : > &_cast_ushort_to_short; > } ># 887 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > > case NPY_INT: ># 899 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > if (src_stride == sizeof(npy_ushort) && > dst_stride == sizeof(npy_int)) { > return aligned ? > &_aligned_contig_cast_ushort_to_int : > &_contig_cast_ushort_to_int; > } > else { > return aligned ? &_aligned_cast_ushort_to_int : > &_cast_ushort_to_int; > } ># 887 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > > case NPY_LONG: ># 899 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > if (src_stride == sizeof(npy_ushort) && > dst_stride == sizeof(npy_long)) { > return aligned ? > &_aligned_contig_cast_ushort_to_long : > &_contig_cast_ushort_to_long; > } > else { > return aligned ? &_aligned_cast_ushort_to_long : > &_cast_ushort_to_long; > } ># 887 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > > case NPY_LONGLONG: ># 899 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > if (src_stride == sizeof(npy_ushort) && > dst_stride == sizeof(npy_longlong)) { > return aligned ? > &_aligned_contig_cast_ushort_to_longlong : > &_contig_cast_ushort_to_longlong; > } > else { > return aligned ? &_aligned_cast_ushort_to_longlong : > &_cast_ushort_to_longlong; > } ># 887 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > > case NPY_HALF: ># 899 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > if (src_stride == sizeof(npy_ushort) && > dst_stride == sizeof(npy_half)) { > return aligned ? > &_aligned_contig_cast_ushort_to_half : > &_contig_cast_ushort_to_half; > } > else { > return aligned ? &_aligned_cast_ushort_to_half : > &_cast_ushort_to_half; > } ># 887 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > > case NPY_FLOAT: ># 899 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > if (src_stride == sizeof(npy_ushort) && > dst_stride == sizeof(npy_float)) { > return aligned ? > &_aligned_contig_cast_ushort_to_float : > &_contig_cast_ushort_to_float; > } > else { > return aligned ? &_aligned_cast_ushort_to_float : > &_cast_ushort_to_float; > } ># 887 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > > case NPY_DOUBLE: ># 899 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > if (src_stride == sizeof(npy_ushort) && > dst_stride == sizeof(npy_double)) { > return aligned ? > &_aligned_contig_cast_ushort_to_double : > &_contig_cast_ushort_to_double; > } > else { > return aligned ? &_aligned_cast_ushort_to_double : > &_cast_ushort_to_double; > } ># 887 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > > case NPY_LONGDOUBLE: ># 899 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > if (src_stride == sizeof(npy_ushort) && > dst_stride == sizeof(npy_longdouble)) { > return aligned ? > &_aligned_contig_cast_ushort_to_longdouble : > &_contig_cast_ushort_to_longdouble; > } > else { > return aligned ? &_aligned_cast_ushort_to_longdouble : > &_cast_ushort_to_longdouble; > } ># 887 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > > case NPY_CFLOAT: ># 899 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > if (src_stride == sizeof(npy_ushort) && > dst_stride == sizeof(npy_cfloat)) { > return aligned ? > &_aligned_contig_cast_ushort_to_cfloat : > &_contig_cast_ushort_to_cfloat; > } > else { > return aligned ? &_aligned_cast_ushort_to_cfloat : > &_cast_ushort_to_cfloat; > } ># 887 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > > case NPY_CDOUBLE: ># 899 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > if (src_stride == sizeof(npy_ushort) && > dst_stride == sizeof(npy_cdouble)) { > return aligned ? > &_aligned_contig_cast_ushort_to_cdouble : > &_contig_cast_ushort_to_cdouble; > } > else { > return aligned ? &_aligned_cast_ushort_to_cdouble : > &_cast_ushort_to_cdouble; > } ># 887 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > > case NPY_CLONGDOUBLE: ># 899 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > if (src_stride == sizeof(npy_ushort) && > dst_stride == sizeof(npy_clongdouble)) { > return aligned ? > &_aligned_contig_cast_ushort_to_clongdouble : > &_contig_cast_ushort_to_clongdouble; > } > else { > return aligned ? &_aligned_cast_ushort_to_clongdouble : > &_cast_ushort_to_clongdouble; > } > > > > } ># 870 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > > case NPY_UINT: > > switch (dst_type_num) { ># 887 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > > case NPY_BOOL: ># 899 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > if (src_stride == sizeof(npy_uint) && > dst_stride == sizeof(npy_bool)) { > return aligned ? > &_aligned_contig_cast_uint_to_bool : > &_contig_cast_uint_to_bool; > } > else { > return aligned ? &_aligned_cast_uint_to_bool : > &_cast_uint_to_bool; > } ># 887 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > > case NPY_UBYTE: ># 899 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > if (src_stride == sizeof(npy_uint) && > dst_stride == sizeof(npy_ubyte)) { > return aligned ? > &_aligned_contig_cast_uint_to_ubyte : > &_contig_cast_uint_to_ubyte; > } > else { > return aligned ? &_aligned_cast_uint_to_ubyte : > &_cast_uint_to_ubyte; > } ># 887 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > > case NPY_USHORT: ># 899 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > if (src_stride == sizeof(npy_uint) && > dst_stride == sizeof(npy_ushort)) { > return aligned ? > &_aligned_contig_cast_uint_to_ushort : > &_contig_cast_uint_to_ushort; > } > else { > return aligned ? &_aligned_cast_uint_to_ushort : > &_cast_uint_to_ushort; > } ># 887 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > > case NPY_UINT: ># 899 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > if (src_stride == sizeof(npy_uint) && > dst_stride == sizeof(npy_uint)) { > return aligned ? > &_aligned_contig_cast_uint_to_uint : > &_contig_cast_uint_to_uint; > } > else { > return aligned ? &_aligned_cast_uint_to_uint : > &_cast_uint_to_uint; > } ># 887 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > > case NPY_ULONG: ># 899 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > if (src_stride == sizeof(npy_uint) && > dst_stride == sizeof(npy_ulong)) { > return aligned ? > &_aligned_contig_cast_uint_to_ulong : > &_contig_cast_uint_to_ulong; > } > else { > return aligned ? &_aligned_cast_uint_to_ulong : > &_cast_uint_to_ulong; > } ># 887 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > > case NPY_ULONGLONG: ># 899 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > if (src_stride == sizeof(npy_uint) && > dst_stride == sizeof(npy_ulonglong)) { > return aligned ? > &_aligned_contig_cast_uint_to_ulonglong : > &_contig_cast_uint_to_ulonglong; > } > else { > return aligned ? &_aligned_cast_uint_to_ulonglong : > &_cast_uint_to_ulonglong; > } ># 887 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > > case NPY_BYTE: ># 899 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > if (src_stride == sizeof(npy_uint) && > dst_stride == sizeof(npy_byte)) { > return aligned ? > &_aligned_contig_cast_uint_to_byte : > &_contig_cast_uint_to_byte; > } > else { > return aligned ? &_aligned_cast_uint_to_byte : > &_cast_uint_to_byte; > } ># 887 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > > case NPY_SHORT: ># 899 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > if (src_stride == sizeof(npy_uint) && > dst_stride == sizeof(npy_short)) { > return aligned ? > &_aligned_contig_cast_uint_to_short : > &_contig_cast_uint_to_short; > } > else { > return aligned ? &_aligned_cast_uint_to_short : > &_cast_uint_to_short; > } ># 887 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > > case NPY_INT: ># 899 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > if (src_stride == sizeof(npy_uint) && > dst_stride == sizeof(npy_int)) { > return aligned ? > &_aligned_contig_cast_uint_to_int : > &_contig_cast_uint_to_int; > } > else { > return aligned ? &_aligned_cast_uint_to_int : > &_cast_uint_to_int; > } ># 887 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > > case NPY_LONG: ># 899 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > if (src_stride == sizeof(npy_uint) && > dst_stride == sizeof(npy_long)) { > return aligned ? > &_aligned_contig_cast_uint_to_long : > &_contig_cast_uint_to_long; > } > else { > return aligned ? &_aligned_cast_uint_to_long : > &_cast_uint_to_long; > } ># 887 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > > case NPY_LONGLONG: ># 899 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > if (src_stride == sizeof(npy_uint) && > dst_stride == sizeof(npy_longlong)) { > return aligned ? > &_aligned_contig_cast_uint_to_longlong : > &_contig_cast_uint_to_longlong; > } > else { > return aligned ? &_aligned_cast_uint_to_longlong : > &_cast_uint_to_longlong; > } ># 887 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > > case NPY_HALF: ># 899 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > if (src_stride == sizeof(npy_uint) && > dst_stride == sizeof(npy_half)) { > return aligned ? > &_aligned_contig_cast_uint_to_half : > &_contig_cast_uint_to_half; > } > else { > return aligned ? &_aligned_cast_uint_to_half : > &_cast_uint_to_half; > } ># 887 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > > case NPY_FLOAT: ># 899 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > if (src_stride == sizeof(npy_uint) && > dst_stride == sizeof(npy_float)) { > return aligned ? > &_aligned_contig_cast_uint_to_float : > &_contig_cast_uint_to_float; > } > else { > return aligned ? &_aligned_cast_uint_to_float : > &_cast_uint_to_float; > } ># 887 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > > case NPY_DOUBLE: ># 899 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > if (src_stride == sizeof(npy_uint) && > dst_stride == sizeof(npy_double)) { > return aligned ? > &_aligned_contig_cast_uint_to_double : > &_contig_cast_uint_to_double; > } > else { > return aligned ? &_aligned_cast_uint_to_double : > &_cast_uint_to_double; > } ># 887 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > > case NPY_LONGDOUBLE: ># 899 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > if (src_stride == sizeof(npy_uint) && > dst_stride == sizeof(npy_longdouble)) { > return aligned ? > &_aligned_contig_cast_uint_to_longdouble : > &_contig_cast_uint_to_longdouble; > } > else { > return aligned ? &_aligned_cast_uint_to_longdouble : > &_cast_uint_to_longdouble; > } ># 887 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > > case NPY_CFLOAT: ># 899 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > if (src_stride == sizeof(npy_uint) && > dst_stride == sizeof(npy_cfloat)) { > return aligned ? > &_aligned_contig_cast_uint_to_cfloat : > &_contig_cast_uint_to_cfloat; > } > else { > return aligned ? &_aligned_cast_uint_to_cfloat : > &_cast_uint_to_cfloat; > } ># 887 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > > case NPY_CDOUBLE: ># 899 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > if (src_stride == sizeof(npy_uint) && > dst_stride == sizeof(npy_cdouble)) { > return aligned ? > &_aligned_contig_cast_uint_to_cdouble : > &_contig_cast_uint_to_cdouble; > } > else { > return aligned ? &_aligned_cast_uint_to_cdouble : > &_cast_uint_to_cdouble; > } ># 887 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > > case NPY_CLONGDOUBLE: ># 899 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > if (src_stride == sizeof(npy_uint) && > dst_stride == sizeof(npy_clongdouble)) { > return aligned ? > &_aligned_contig_cast_uint_to_clongdouble : > &_contig_cast_uint_to_clongdouble; > } > else { > return aligned ? &_aligned_cast_uint_to_clongdouble : > &_cast_uint_to_clongdouble; > } > > > > } ># 870 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > > case NPY_ULONG: > > switch (dst_type_num) { ># 887 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > > case NPY_BOOL: ># 899 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > if (src_stride == sizeof(npy_ulong) && > dst_stride == sizeof(npy_bool)) { > return aligned ? > &_aligned_contig_cast_ulong_to_bool : > &_contig_cast_ulong_to_bool; > } > else { > return aligned ? &_aligned_cast_ulong_to_bool : > &_cast_ulong_to_bool; > } ># 887 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > > case NPY_UBYTE: ># 899 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > if (src_stride == sizeof(npy_ulong) && > dst_stride == sizeof(npy_ubyte)) { > return aligned ? > &_aligned_contig_cast_ulong_to_ubyte : > &_contig_cast_ulong_to_ubyte; > } > else { > return aligned ? &_aligned_cast_ulong_to_ubyte : > &_cast_ulong_to_ubyte; > } ># 887 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > > case NPY_USHORT: ># 899 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > if (src_stride == sizeof(npy_ulong) && > dst_stride == sizeof(npy_ushort)) { > return aligned ? > &_aligned_contig_cast_ulong_to_ushort : > &_contig_cast_ulong_to_ushort; > } > else { > return aligned ? &_aligned_cast_ulong_to_ushort : > &_cast_ulong_to_ushort; > } ># 887 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > > case NPY_UINT: ># 899 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > if (src_stride == sizeof(npy_ulong) && > dst_stride == sizeof(npy_uint)) { > return aligned ? > &_aligned_contig_cast_ulong_to_uint : > &_contig_cast_ulong_to_uint; > } > else { > return aligned ? &_aligned_cast_ulong_to_uint : > &_cast_ulong_to_uint; > } ># 887 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > > case NPY_ULONG: ># 899 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > if (src_stride == sizeof(npy_ulong) && > dst_stride == sizeof(npy_ulong)) { > return aligned ? > &_aligned_contig_cast_ulong_to_ulong : > &_contig_cast_ulong_to_ulong; > } > else { > return aligned ? &_aligned_cast_ulong_to_ulong : > &_cast_ulong_to_ulong; > } ># 887 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > > case NPY_ULONGLONG: ># 899 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > if (src_stride == sizeof(npy_ulong) && > dst_stride == sizeof(npy_ulonglong)) { > return aligned ? > &_aligned_contig_cast_ulong_to_ulonglong : > &_contig_cast_ulong_to_ulonglong; > } > else { > return aligned ? &_aligned_cast_ulong_to_ulonglong : > &_cast_ulong_to_ulonglong; > } ># 887 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > > case NPY_BYTE: ># 899 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > if (src_stride == sizeof(npy_ulong) && > dst_stride == sizeof(npy_byte)) { > return aligned ? > &_aligned_contig_cast_ulong_to_byte : > &_contig_cast_ulong_to_byte; > } > else { > return aligned ? &_aligned_cast_ulong_to_byte : > &_cast_ulong_to_byte; > } ># 887 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > > case NPY_SHORT: ># 899 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > if (src_stride == sizeof(npy_ulong) && > dst_stride == sizeof(npy_short)) { > return aligned ? > &_aligned_contig_cast_ulong_to_short : > &_contig_cast_ulong_to_short; > } > else { > return aligned ? &_aligned_cast_ulong_to_short : > &_cast_ulong_to_short; > } ># 887 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > > case NPY_INT: ># 899 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > if (src_stride == sizeof(npy_ulong) && > dst_stride == sizeof(npy_int)) { > return aligned ? > &_aligned_contig_cast_ulong_to_int : > &_contig_cast_ulong_to_int; > } > else { > return aligned ? &_aligned_cast_ulong_to_int : > &_cast_ulong_to_int; > } ># 887 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > > case NPY_LONG: ># 899 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > if (src_stride == sizeof(npy_ulong) && > dst_stride == sizeof(npy_long)) { > return aligned ? > &_aligned_contig_cast_ulong_to_long : > &_contig_cast_ulong_to_long; > } > else { > return aligned ? &_aligned_cast_ulong_to_long : > &_cast_ulong_to_long; > } ># 887 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > > case NPY_LONGLONG: ># 899 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > if (src_stride == sizeof(npy_ulong) && > dst_stride == sizeof(npy_longlong)) { > return aligned ? > &_aligned_contig_cast_ulong_to_longlong : > &_contig_cast_ulong_to_longlong; > } > else { > return aligned ? &_aligned_cast_ulong_to_longlong : > &_cast_ulong_to_longlong; > } ># 887 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > > case NPY_HALF: ># 899 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > if (src_stride == sizeof(npy_ulong) && > dst_stride == sizeof(npy_half)) { > return aligned ? > &_aligned_contig_cast_ulong_to_half : > &_contig_cast_ulong_to_half; > } > else { > return aligned ? &_aligned_cast_ulong_to_half : > &_cast_ulong_to_half; > } ># 887 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > > case NPY_FLOAT: ># 899 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > if (src_stride == sizeof(npy_ulong) && > dst_stride == sizeof(npy_float)) { > return aligned ? > &_aligned_contig_cast_ulong_to_float : > &_contig_cast_ulong_to_float; > } > else { > return aligned ? &_aligned_cast_ulong_to_float : > &_cast_ulong_to_float; > } ># 887 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > > case NPY_DOUBLE: ># 899 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > if (src_stride == sizeof(npy_ulong) && > dst_stride == sizeof(npy_double)) { > return aligned ? > &_aligned_contig_cast_ulong_to_double : > &_contig_cast_ulong_to_double; > } > else { > return aligned ? &_aligned_cast_ulong_to_double : > &_cast_ulong_to_double; > } ># 887 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > > case NPY_LONGDOUBLE: ># 899 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > if (src_stride == sizeof(npy_ulong) && > dst_stride == sizeof(npy_longdouble)) { > return aligned ? > &_aligned_contig_cast_ulong_to_longdouble : > &_contig_cast_ulong_to_longdouble; > } > else { > return aligned ? &_aligned_cast_ulong_to_longdouble : > &_cast_ulong_to_longdouble; > } ># 887 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > > case NPY_CFLOAT: ># 899 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > if (src_stride == sizeof(npy_ulong) && > dst_stride == sizeof(npy_cfloat)) { > return aligned ? > &_aligned_contig_cast_ulong_to_cfloat : > &_contig_cast_ulong_to_cfloat; > } > else { > return aligned ? &_aligned_cast_ulong_to_cfloat : > &_cast_ulong_to_cfloat; > } ># 887 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > > case NPY_CDOUBLE: ># 899 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > if (src_stride == sizeof(npy_ulong) && > dst_stride == sizeof(npy_cdouble)) { > return aligned ? > &_aligned_contig_cast_ulong_to_cdouble : > &_contig_cast_ulong_to_cdouble; > } > else { > return aligned ? &_aligned_cast_ulong_to_cdouble : > &_cast_ulong_to_cdouble; > } ># 887 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > > case NPY_CLONGDOUBLE: ># 899 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > if (src_stride == sizeof(npy_ulong) && > dst_stride == sizeof(npy_clongdouble)) { > return aligned ? > &_aligned_contig_cast_ulong_to_clongdouble : > &_contig_cast_ulong_to_clongdouble; > } > else { > return aligned ? &_aligned_cast_ulong_to_clongdouble : > &_cast_ulong_to_clongdouble; > } > > > > } ># 870 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > > case NPY_ULONGLONG: > > switch (dst_type_num) { ># 887 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > > case NPY_BOOL: ># 899 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > if (src_stride == sizeof(npy_ulonglong) && > dst_stride == sizeof(npy_bool)) { > return aligned ? > &_aligned_contig_cast_ulonglong_to_bool : > &_contig_cast_ulonglong_to_bool; > } > else { > return aligned ? &_aligned_cast_ulonglong_to_bool : > &_cast_ulonglong_to_bool; > } ># 887 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > > case NPY_UBYTE: ># 899 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > if (src_stride == sizeof(npy_ulonglong) && > dst_stride == sizeof(npy_ubyte)) { > return aligned ? > &_aligned_contig_cast_ulonglong_to_ubyte : > &_contig_cast_ulonglong_to_ubyte; > } > else { > return aligned ? &_aligned_cast_ulonglong_to_ubyte : > &_cast_ulonglong_to_ubyte; > } ># 887 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > > case NPY_USHORT: ># 899 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > if (src_stride == sizeof(npy_ulonglong) && > dst_stride == sizeof(npy_ushort)) { > return aligned ? > &_aligned_contig_cast_ulonglong_to_ushort : > &_contig_cast_ulonglong_to_ushort; > } > else { > return aligned ? &_aligned_cast_ulonglong_to_ushort : > &_cast_ulonglong_to_ushort; > } ># 887 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > > case NPY_UINT: ># 899 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > if (src_stride == sizeof(npy_ulonglong) && > dst_stride == sizeof(npy_uint)) { > return aligned ? > &_aligned_contig_cast_ulonglong_to_uint : > &_contig_cast_ulonglong_to_uint; > } > else { > return aligned ? &_aligned_cast_ulonglong_to_uint : > &_cast_ulonglong_to_uint; > } ># 887 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > > case NPY_ULONG: ># 899 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > if (src_stride == sizeof(npy_ulonglong) && > dst_stride == sizeof(npy_ulong)) { > return aligned ? > &_aligned_contig_cast_ulonglong_to_ulong : > &_contig_cast_ulonglong_to_ulong; > } > else { > return aligned ? &_aligned_cast_ulonglong_to_ulong : > &_cast_ulonglong_to_ulong; > } ># 887 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > > case NPY_ULONGLONG: ># 899 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > if (src_stride == sizeof(npy_ulonglong) && > dst_stride == sizeof(npy_ulonglong)) { > return aligned ? > &_aligned_contig_cast_ulonglong_to_ulonglong : > &_contig_cast_ulonglong_to_ulonglong; > } > else { > return aligned ? &_aligned_cast_ulonglong_to_ulonglong : > &_cast_ulonglong_to_ulonglong; > } ># 887 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > > case NPY_BYTE: ># 899 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > if (src_stride == sizeof(npy_ulonglong) && > dst_stride == sizeof(npy_byte)) { > return aligned ? > &_aligned_contig_cast_ulonglong_to_byte : > &_contig_cast_ulonglong_to_byte; > } > else { > return aligned ? &_aligned_cast_ulonglong_to_byte : > &_cast_ulonglong_to_byte; > } ># 887 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > > case NPY_SHORT: ># 899 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > if (src_stride == sizeof(npy_ulonglong) && > dst_stride == sizeof(npy_short)) { > return aligned ? > &_aligned_contig_cast_ulonglong_to_short : > &_contig_cast_ulonglong_to_short; > } > else { > return aligned ? &_aligned_cast_ulonglong_to_short : > &_cast_ulonglong_to_short; > } ># 887 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > > case NPY_INT: ># 899 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > if (src_stride == sizeof(npy_ulonglong) && > dst_stride == sizeof(npy_int)) { > return aligned ? > &_aligned_contig_cast_ulonglong_to_int : > &_contig_cast_ulonglong_to_int; > } > else { > return aligned ? &_aligned_cast_ulonglong_to_int : > &_cast_ulonglong_to_int; > } ># 887 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > > case NPY_LONG: ># 899 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > if (src_stride == sizeof(npy_ulonglong) && > dst_stride == sizeof(npy_long)) { > return aligned ? > &_aligned_contig_cast_ulonglong_to_long : > &_contig_cast_ulonglong_to_long; > } > else { > return aligned ? &_aligned_cast_ulonglong_to_long : > &_cast_ulonglong_to_long; > } ># 887 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > > case NPY_LONGLONG: ># 899 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > if (src_stride == sizeof(npy_ulonglong) && > dst_stride == sizeof(npy_longlong)) { > return aligned ? > &_aligned_contig_cast_ulonglong_to_longlong : > &_contig_cast_ulonglong_to_longlong; > } > else { > return aligned ? &_aligned_cast_ulonglong_to_longlong : > &_cast_ulonglong_to_longlong; > } ># 887 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > > case NPY_HALF: ># 899 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > if (src_stride == sizeof(npy_ulonglong) && > dst_stride == sizeof(npy_half)) { > return aligned ? > &_aligned_contig_cast_ulonglong_to_half : > &_contig_cast_ulonglong_to_half; > } > else { > return aligned ? &_aligned_cast_ulonglong_to_half : > &_cast_ulonglong_to_half; > } ># 887 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > > case NPY_FLOAT: ># 899 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > if (src_stride == sizeof(npy_ulonglong) && > dst_stride == sizeof(npy_float)) { > return aligned ? > &_aligned_contig_cast_ulonglong_to_float : > &_contig_cast_ulonglong_to_float; > } > else { > return aligned ? &_aligned_cast_ulonglong_to_float : > &_cast_ulonglong_to_float; > } ># 887 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > > case NPY_DOUBLE: ># 899 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > if (src_stride == sizeof(npy_ulonglong) && > dst_stride == sizeof(npy_double)) { > return aligned ? > &_aligned_contig_cast_ulonglong_to_double : > &_contig_cast_ulonglong_to_double; > } > else { > return aligned ? &_aligned_cast_ulonglong_to_double : > &_cast_ulonglong_to_double; > } ># 887 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > > case NPY_LONGDOUBLE: ># 899 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > if (src_stride == sizeof(npy_ulonglong) && > dst_stride == sizeof(npy_longdouble)) { > return aligned ? > &_aligned_contig_cast_ulonglong_to_longdouble : > &_contig_cast_ulonglong_to_longdouble; > } > else { > return aligned ? &_aligned_cast_ulonglong_to_longdouble : > &_cast_ulonglong_to_longdouble; > } ># 887 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > > case NPY_CFLOAT: ># 899 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > if (src_stride == sizeof(npy_ulonglong) && > dst_stride == sizeof(npy_cfloat)) { > return aligned ? > &_aligned_contig_cast_ulonglong_to_cfloat : > &_contig_cast_ulonglong_to_cfloat; > } > else { > return aligned ? &_aligned_cast_ulonglong_to_cfloat : > &_cast_ulonglong_to_cfloat; > } ># 887 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > > case NPY_CDOUBLE: ># 899 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > if (src_stride == sizeof(npy_ulonglong) && > dst_stride == sizeof(npy_cdouble)) { > return aligned ? > &_aligned_contig_cast_ulonglong_to_cdouble : > &_contig_cast_ulonglong_to_cdouble; > } > else { > return aligned ? &_aligned_cast_ulonglong_to_cdouble : > &_cast_ulonglong_to_cdouble; > } ># 887 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > > case NPY_CLONGDOUBLE: ># 899 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > if (src_stride == sizeof(npy_ulonglong) && > dst_stride == sizeof(npy_clongdouble)) { > return aligned ? > &_aligned_contig_cast_ulonglong_to_clongdouble : > &_contig_cast_ulonglong_to_clongdouble; > } > else { > return aligned ? &_aligned_cast_ulonglong_to_clongdouble : > &_cast_ulonglong_to_clongdouble; > } > > > > } ># 870 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > > case NPY_BYTE: > > switch (dst_type_num) { ># 887 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > > case NPY_BOOL: ># 899 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > if (src_stride == sizeof(npy_byte) && > dst_stride == sizeof(npy_bool)) { > return aligned ? > &_aligned_contig_cast_byte_to_bool : > &_contig_cast_byte_to_bool; > } > else { > return aligned ? &_aligned_cast_byte_to_bool : > &_cast_byte_to_bool; > } ># 887 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > > case NPY_UBYTE: ># 899 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > if (src_stride == sizeof(npy_byte) && > dst_stride == sizeof(npy_ubyte)) { > return aligned ? > &_aligned_contig_cast_byte_to_ubyte : > &_contig_cast_byte_to_ubyte; > } > else { > return aligned ? &_aligned_cast_byte_to_ubyte : > &_cast_byte_to_ubyte; > } ># 887 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > > case NPY_USHORT: ># 899 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > if (src_stride == sizeof(npy_byte) && > dst_stride == sizeof(npy_ushort)) { > return aligned ? > &_aligned_contig_cast_byte_to_ushort : > &_contig_cast_byte_to_ushort; > } > else { > return aligned ? &_aligned_cast_byte_to_ushort : > &_cast_byte_to_ushort; > } ># 887 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > > case NPY_UINT: ># 899 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > if (src_stride == sizeof(npy_byte) && > dst_stride == sizeof(npy_uint)) { > return aligned ? > &_aligned_contig_cast_byte_to_uint : > &_contig_cast_byte_to_uint; > } > else { > return aligned ? &_aligned_cast_byte_to_uint : > &_cast_byte_to_uint; > } ># 887 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > > case NPY_ULONG: ># 899 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > if (src_stride == sizeof(npy_byte) && > dst_stride == sizeof(npy_ulong)) { > return aligned ? > &_aligned_contig_cast_byte_to_ulong : > &_contig_cast_byte_to_ulong; > } > else { > return aligned ? &_aligned_cast_byte_to_ulong : > &_cast_byte_to_ulong; > } ># 887 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > > case NPY_ULONGLONG: ># 899 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > if (src_stride == sizeof(npy_byte) && > dst_stride == sizeof(npy_ulonglong)) { > return aligned ? > &_aligned_contig_cast_byte_to_ulonglong : > &_contig_cast_byte_to_ulonglong; > } > else { > return aligned ? &_aligned_cast_byte_to_ulonglong : > &_cast_byte_to_ulonglong; > } ># 887 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > > case NPY_BYTE: ># 899 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > if (src_stride == sizeof(npy_byte) && > dst_stride == sizeof(npy_byte)) { > return aligned ? > &_aligned_contig_cast_byte_to_byte : > &_contig_cast_byte_to_byte; > } > else { > return aligned ? &_aligned_cast_byte_to_byte : > &_cast_byte_to_byte; > } ># 887 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > > case NPY_SHORT: ># 899 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > if (src_stride == sizeof(npy_byte) && > dst_stride == sizeof(npy_short)) { > return aligned ? > &_aligned_contig_cast_byte_to_short : > &_contig_cast_byte_to_short; > } > else { > return aligned ? &_aligned_cast_byte_to_short : > &_cast_byte_to_short; > } ># 887 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > > case NPY_INT: ># 899 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > if (src_stride == sizeof(npy_byte) && > dst_stride == sizeof(npy_int)) { > return aligned ? > &_aligned_contig_cast_byte_to_int : > &_contig_cast_byte_to_int; > } > else { > return aligned ? &_aligned_cast_byte_to_int : > &_cast_byte_to_int; > } ># 887 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > > case NPY_LONG: ># 899 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > if (src_stride == sizeof(npy_byte) && > dst_stride == sizeof(npy_long)) { > return aligned ? > &_aligned_contig_cast_byte_to_long : > &_contig_cast_byte_to_long; > } > else { > return aligned ? &_aligned_cast_byte_to_long : > &_cast_byte_to_long; > } ># 887 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > > case NPY_LONGLONG: ># 899 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > if (src_stride == sizeof(npy_byte) && > dst_stride == sizeof(npy_longlong)) { > return aligned ? > &_aligned_contig_cast_byte_to_longlong : > &_contig_cast_byte_to_longlong; > } > else { > return aligned ? &_aligned_cast_byte_to_longlong : > &_cast_byte_to_longlong; > } ># 887 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > > case NPY_HALF: ># 899 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > if (src_stride == sizeof(npy_byte) && > dst_stride == sizeof(npy_half)) { > return aligned ? > &_aligned_contig_cast_byte_to_half : > &_contig_cast_byte_to_half; > } > else { > return aligned ? &_aligned_cast_byte_to_half : > &_cast_byte_to_half; > } ># 887 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > > case NPY_FLOAT: ># 899 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > if (src_stride == sizeof(npy_byte) && > dst_stride == sizeof(npy_float)) { > return aligned ? > &_aligned_contig_cast_byte_to_float : > &_contig_cast_byte_to_float; > } > else { > return aligned ? &_aligned_cast_byte_to_float : > &_cast_byte_to_float; > } ># 887 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > > case NPY_DOUBLE: ># 899 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > if (src_stride == sizeof(npy_byte) && > dst_stride == sizeof(npy_double)) { > return aligned ? > &_aligned_contig_cast_byte_to_double : > &_contig_cast_byte_to_double; > } > else { > return aligned ? &_aligned_cast_byte_to_double : > &_cast_byte_to_double; > } ># 887 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > > case NPY_LONGDOUBLE: ># 899 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > if (src_stride == sizeof(npy_byte) && > dst_stride == sizeof(npy_longdouble)) { > return aligned ? > &_aligned_contig_cast_byte_to_longdouble : > &_contig_cast_byte_to_longdouble; > } > else { > return aligned ? &_aligned_cast_byte_to_longdouble : > &_cast_byte_to_longdouble; > } ># 887 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > > case NPY_CFLOAT: ># 899 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > if (src_stride == sizeof(npy_byte) && > dst_stride == sizeof(npy_cfloat)) { > return aligned ? > &_aligned_contig_cast_byte_to_cfloat : > &_contig_cast_byte_to_cfloat; > } > else { > return aligned ? &_aligned_cast_byte_to_cfloat : > &_cast_byte_to_cfloat; > } ># 887 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > > case NPY_CDOUBLE: ># 899 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > if (src_stride == sizeof(npy_byte) && > dst_stride == sizeof(npy_cdouble)) { > return aligned ? > &_aligned_contig_cast_byte_to_cdouble : > &_contig_cast_byte_to_cdouble; > } > else { > return aligned ? &_aligned_cast_byte_to_cdouble : > &_cast_byte_to_cdouble; > } ># 887 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > > case NPY_CLONGDOUBLE: ># 899 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > if (src_stride == sizeof(npy_byte) && > dst_stride == sizeof(npy_clongdouble)) { > return aligned ? > &_aligned_contig_cast_byte_to_clongdouble : > &_contig_cast_byte_to_clongdouble; > } > else { > return aligned ? &_aligned_cast_byte_to_clongdouble : > &_cast_byte_to_clongdouble; > } > > > > } ># 870 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > > case NPY_SHORT: > > switch (dst_type_num) { ># 887 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > > case NPY_BOOL: ># 899 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > if (src_stride == sizeof(npy_short) && > dst_stride == sizeof(npy_bool)) { > return aligned ? > &_aligned_contig_cast_short_to_bool : > &_contig_cast_short_to_bool; > } > else { > return aligned ? &_aligned_cast_short_to_bool : > &_cast_short_to_bool; > } ># 887 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > > case NPY_UBYTE: ># 899 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > if (src_stride == sizeof(npy_short) && > dst_stride == sizeof(npy_ubyte)) { > return aligned ? > &_aligned_contig_cast_short_to_ubyte : > &_contig_cast_short_to_ubyte; > } > else { > return aligned ? &_aligned_cast_short_to_ubyte : > &_cast_short_to_ubyte; > } ># 887 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > > case NPY_USHORT: ># 899 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > if (src_stride == sizeof(npy_short) && > dst_stride == sizeof(npy_ushort)) { > return aligned ? > &_aligned_contig_cast_short_to_ushort : > &_contig_cast_short_to_ushort; > } > else { > return aligned ? &_aligned_cast_short_to_ushort : > &_cast_short_to_ushort; > } ># 887 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > > case NPY_UINT: ># 899 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > if (src_stride == sizeof(npy_short) && > dst_stride == sizeof(npy_uint)) { > return aligned ? > &_aligned_contig_cast_short_to_uint : > &_contig_cast_short_to_uint; > } > else { > return aligned ? &_aligned_cast_short_to_uint : > &_cast_short_to_uint; > } ># 887 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > > case NPY_ULONG: ># 899 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > if (src_stride == sizeof(npy_short) && > dst_stride == sizeof(npy_ulong)) { > return aligned ? > &_aligned_contig_cast_short_to_ulong : > &_contig_cast_short_to_ulong; > } > else { > return aligned ? &_aligned_cast_short_to_ulong : > &_cast_short_to_ulong; > } ># 887 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > > case NPY_ULONGLONG: ># 899 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > if (src_stride == sizeof(npy_short) && > dst_stride == sizeof(npy_ulonglong)) { > return aligned ? > &_aligned_contig_cast_short_to_ulonglong : > &_contig_cast_short_to_ulonglong; > } > else { > return aligned ? &_aligned_cast_short_to_ulonglong : > &_cast_short_to_ulonglong; > } ># 887 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > > case NPY_BYTE: ># 899 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > if (src_stride == sizeof(npy_short) && > dst_stride == sizeof(npy_byte)) { > return aligned ? > &_aligned_contig_cast_short_to_byte : > &_contig_cast_short_to_byte; > } > else { > return aligned ? &_aligned_cast_short_to_byte : > &_cast_short_to_byte; > } ># 887 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > > case NPY_SHORT: ># 899 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > if (src_stride == sizeof(npy_short) && > dst_stride == sizeof(npy_short)) { > return aligned ? > &_aligned_contig_cast_short_to_short : > &_contig_cast_short_to_short; > } > else { > return aligned ? &_aligned_cast_short_to_short : > &_cast_short_to_short; > } ># 887 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > > case NPY_INT: ># 899 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > if (src_stride == sizeof(npy_short) && > dst_stride == sizeof(npy_int)) { > return aligned ? > &_aligned_contig_cast_short_to_int : > &_contig_cast_short_to_int; > } > else { > return aligned ? &_aligned_cast_short_to_int : > &_cast_short_to_int; > } ># 887 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > > case NPY_LONG: ># 899 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > if (src_stride == sizeof(npy_short) && > dst_stride == sizeof(npy_long)) { > return aligned ? > &_aligned_contig_cast_short_to_long : > &_contig_cast_short_to_long; > } > else { > return aligned ? &_aligned_cast_short_to_long : > &_cast_short_to_long; > } ># 887 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > > case NPY_LONGLONG: ># 899 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > if (src_stride == sizeof(npy_short) && > dst_stride == sizeof(npy_longlong)) { > return aligned ? > &_aligned_contig_cast_short_to_longlong : > &_contig_cast_short_to_longlong; > } > else { > return aligned ? &_aligned_cast_short_to_longlong : > &_cast_short_to_longlong; > } ># 887 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > > case NPY_HALF: ># 899 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > if (src_stride == sizeof(npy_short) && > dst_stride == sizeof(npy_half)) { > return aligned ? > &_aligned_contig_cast_short_to_half : > &_contig_cast_short_to_half; > } > else { > return aligned ? &_aligned_cast_short_to_half : > &_cast_short_to_half; > } ># 887 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > > case NPY_FLOAT: ># 899 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > if (src_stride == sizeof(npy_short) && > dst_stride == sizeof(npy_float)) { > return aligned ? > &_aligned_contig_cast_short_to_float : > &_contig_cast_short_to_float; > } > else { > return aligned ? &_aligned_cast_short_to_float : > &_cast_short_to_float; > } ># 887 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > > case NPY_DOUBLE: ># 899 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > if (src_stride == sizeof(npy_short) && > dst_stride == sizeof(npy_double)) { > return aligned ? > &_aligned_contig_cast_short_to_double : > &_contig_cast_short_to_double; > } > else { > return aligned ? &_aligned_cast_short_to_double : > &_cast_short_to_double; > } ># 887 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > > case NPY_LONGDOUBLE: ># 899 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > if (src_stride == sizeof(npy_short) && > dst_stride == sizeof(npy_longdouble)) { > return aligned ? > &_aligned_contig_cast_short_to_longdouble : > &_contig_cast_short_to_longdouble; > } > else { > return aligned ? &_aligned_cast_short_to_longdouble : > &_cast_short_to_longdouble; > } ># 887 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > > case NPY_CFLOAT: ># 899 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > if (src_stride == sizeof(npy_short) && > dst_stride == sizeof(npy_cfloat)) { > return aligned ? > &_aligned_contig_cast_short_to_cfloat : > &_contig_cast_short_to_cfloat; > } > else { > return aligned ? &_aligned_cast_short_to_cfloat : > &_cast_short_to_cfloat; > } ># 887 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > > case NPY_CDOUBLE: ># 899 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > if (src_stride == sizeof(npy_short) && > dst_stride == sizeof(npy_cdouble)) { > return aligned ? > &_aligned_contig_cast_short_to_cdouble : > &_contig_cast_short_to_cdouble; > } > else { > return aligned ? &_aligned_cast_short_to_cdouble : > &_cast_short_to_cdouble; > } ># 887 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > > case NPY_CLONGDOUBLE: ># 899 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > if (src_stride == sizeof(npy_short) && > dst_stride == sizeof(npy_clongdouble)) { > return aligned ? > &_aligned_contig_cast_short_to_clongdouble : > &_contig_cast_short_to_clongdouble; > } > else { > return aligned ? &_aligned_cast_short_to_clongdouble : > &_cast_short_to_clongdouble; > } > > > > } ># 870 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > > case NPY_INT: > > switch (dst_type_num) { ># 887 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > > case NPY_BOOL: ># 899 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > if (src_stride == sizeof(npy_int) && > dst_stride == sizeof(npy_bool)) { > return aligned ? > &_aligned_contig_cast_int_to_bool : > &_contig_cast_int_to_bool; > } > else { > return aligned ? &_aligned_cast_int_to_bool : > &_cast_int_to_bool; > } ># 887 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > > case NPY_UBYTE: ># 899 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > if (src_stride == sizeof(npy_int) && > dst_stride == sizeof(npy_ubyte)) { > return aligned ? > &_aligned_contig_cast_int_to_ubyte : > &_contig_cast_int_to_ubyte; > } > else { > return aligned ? &_aligned_cast_int_to_ubyte : > &_cast_int_to_ubyte; > } ># 887 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > > case NPY_USHORT: ># 899 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > if (src_stride == sizeof(npy_int) && > dst_stride == sizeof(npy_ushort)) { > return aligned ? > &_aligned_contig_cast_int_to_ushort : > &_contig_cast_int_to_ushort; > } > else { > return aligned ? &_aligned_cast_int_to_ushort : > &_cast_int_to_ushort; > } ># 887 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > > case NPY_UINT: ># 899 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > if (src_stride == sizeof(npy_int) && > dst_stride == sizeof(npy_uint)) { > return aligned ? > &_aligned_contig_cast_int_to_uint : > &_contig_cast_int_to_uint; > } > else { > return aligned ? &_aligned_cast_int_to_uint : > &_cast_int_to_uint; > } ># 887 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > > case NPY_ULONG: ># 899 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > if (src_stride == sizeof(npy_int) && > dst_stride == sizeof(npy_ulong)) { > return aligned ? > &_aligned_contig_cast_int_to_ulong : > &_contig_cast_int_to_ulong; > } > else { > return aligned ? &_aligned_cast_int_to_ulong : > &_cast_int_to_ulong; > } ># 887 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > > case NPY_ULONGLONG: ># 899 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > if (src_stride == sizeof(npy_int) && > dst_stride == sizeof(npy_ulonglong)) { > return aligned ? > &_aligned_contig_cast_int_to_ulonglong : > &_contig_cast_int_to_ulonglong; > } > else { > return aligned ? &_aligned_cast_int_to_ulonglong : > &_cast_int_to_ulonglong; > } ># 887 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > > case NPY_BYTE: ># 899 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > if (src_stride == sizeof(npy_int) && > dst_stride == sizeof(npy_byte)) { > return aligned ? > &_aligned_contig_cast_int_to_byte : > &_contig_cast_int_to_byte; > } > else { > return aligned ? &_aligned_cast_int_to_byte : > &_cast_int_to_byte; > } ># 887 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > > case NPY_SHORT: ># 899 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > if (src_stride == sizeof(npy_int) && > dst_stride == sizeof(npy_short)) { > return aligned ? > &_aligned_contig_cast_int_to_short : > &_contig_cast_int_to_short; > } > else { > return aligned ? &_aligned_cast_int_to_short : > &_cast_int_to_short; > } ># 887 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > > case NPY_INT: ># 899 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > if (src_stride == sizeof(npy_int) && > dst_stride == sizeof(npy_int)) { > return aligned ? > &_aligned_contig_cast_int_to_int : > &_contig_cast_int_to_int; > } > else { > return aligned ? &_aligned_cast_int_to_int : > &_cast_int_to_int; > } ># 887 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > > case NPY_LONG: ># 899 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > if (src_stride == sizeof(npy_int) && > dst_stride == sizeof(npy_long)) { > return aligned ? > &_aligned_contig_cast_int_to_long : > &_contig_cast_int_to_long; > } > else { > return aligned ? &_aligned_cast_int_to_long : > &_cast_int_to_long; > } ># 887 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > > case NPY_LONGLONG: ># 899 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > if (src_stride == sizeof(npy_int) && > dst_stride == sizeof(npy_longlong)) { > return aligned ? > &_aligned_contig_cast_int_to_longlong : > &_contig_cast_int_to_longlong; > } > else { > return aligned ? &_aligned_cast_int_to_longlong : > &_cast_int_to_longlong; > } ># 887 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > > case NPY_HALF: ># 899 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > if (src_stride == sizeof(npy_int) && > dst_stride == sizeof(npy_half)) { > return aligned ? > &_aligned_contig_cast_int_to_half : > &_contig_cast_int_to_half; > } > else { > return aligned ? &_aligned_cast_int_to_half : > &_cast_int_to_half; > } ># 887 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > > case NPY_FLOAT: ># 899 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > if (src_stride == sizeof(npy_int) && > dst_stride == sizeof(npy_float)) { > return aligned ? > &_aligned_contig_cast_int_to_float : > &_contig_cast_int_to_float; > } > else { > return aligned ? &_aligned_cast_int_to_float : > &_cast_int_to_float; > } ># 887 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > > case NPY_DOUBLE: ># 899 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > if (src_stride == sizeof(npy_int) && > dst_stride == sizeof(npy_double)) { > return aligned ? > &_aligned_contig_cast_int_to_double : > &_contig_cast_int_to_double; > } > else { > return aligned ? &_aligned_cast_int_to_double : > &_cast_int_to_double; > } ># 887 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > > case NPY_LONGDOUBLE: ># 899 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > if (src_stride == sizeof(npy_int) && > dst_stride == sizeof(npy_longdouble)) { > return aligned ? > &_aligned_contig_cast_int_to_longdouble : > &_contig_cast_int_to_longdouble; > } > else { > return aligned ? &_aligned_cast_int_to_longdouble : > &_cast_int_to_longdouble; > } ># 887 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > > case NPY_CFLOAT: ># 899 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > if (src_stride == sizeof(npy_int) && > dst_stride == sizeof(npy_cfloat)) { > return aligned ? > &_aligned_contig_cast_int_to_cfloat : > &_contig_cast_int_to_cfloat; > } > else { > return aligned ? &_aligned_cast_int_to_cfloat : > &_cast_int_to_cfloat; > } ># 887 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > > case NPY_CDOUBLE: ># 899 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > if (src_stride == sizeof(npy_int) && > dst_stride == sizeof(npy_cdouble)) { > return aligned ? > &_aligned_contig_cast_int_to_cdouble : > &_contig_cast_int_to_cdouble; > } > else { > return aligned ? &_aligned_cast_int_to_cdouble : > &_cast_int_to_cdouble; > } ># 887 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > > case NPY_CLONGDOUBLE: ># 899 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > if (src_stride == sizeof(npy_int) && > dst_stride == sizeof(npy_clongdouble)) { > return aligned ? > &_aligned_contig_cast_int_to_clongdouble : > &_contig_cast_int_to_clongdouble; > } > else { > return aligned ? &_aligned_cast_int_to_clongdouble : > &_cast_int_to_clongdouble; > } > > > > } ># 870 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > > case NPY_LONG: > > switch (dst_type_num) { ># 887 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > > case NPY_BOOL: ># 899 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > if (src_stride == sizeof(npy_long) && > dst_stride == sizeof(npy_bool)) { > return aligned ? > &_aligned_contig_cast_long_to_bool : > &_contig_cast_long_to_bool; > } > else { > return aligned ? &_aligned_cast_long_to_bool : > &_cast_long_to_bool; > } ># 887 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > > case NPY_UBYTE: ># 899 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > if (src_stride == sizeof(npy_long) && > dst_stride == sizeof(npy_ubyte)) { > return aligned ? > &_aligned_contig_cast_long_to_ubyte : > &_contig_cast_long_to_ubyte; > } > else { > return aligned ? &_aligned_cast_long_to_ubyte : > &_cast_long_to_ubyte; > } ># 887 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > > case NPY_USHORT: ># 899 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > if (src_stride == sizeof(npy_long) && > dst_stride == sizeof(npy_ushort)) { > return aligned ? > &_aligned_contig_cast_long_to_ushort : > &_contig_cast_long_to_ushort; > } > else { > return aligned ? &_aligned_cast_long_to_ushort : > &_cast_long_to_ushort; > } ># 887 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > > case NPY_UINT: ># 899 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > if (src_stride == sizeof(npy_long) && > dst_stride == sizeof(npy_uint)) { > return aligned ? > &_aligned_contig_cast_long_to_uint : > &_contig_cast_long_to_uint; > } > else { > return aligned ? &_aligned_cast_long_to_uint : > &_cast_long_to_uint; > } ># 887 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > > case NPY_ULONG: ># 899 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > if (src_stride == sizeof(npy_long) && > dst_stride == sizeof(npy_ulong)) { > return aligned ? > &_aligned_contig_cast_long_to_ulong : > &_contig_cast_long_to_ulong; > } > else { > return aligned ? &_aligned_cast_long_to_ulong : > &_cast_long_to_ulong; > } ># 887 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > > case NPY_ULONGLONG: ># 899 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > if (src_stride == sizeof(npy_long) && > dst_stride == sizeof(npy_ulonglong)) { > return aligned ? > &_aligned_contig_cast_long_to_ulonglong : > &_contig_cast_long_to_ulonglong; > } > else { > return aligned ? &_aligned_cast_long_to_ulonglong : > &_cast_long_to_ulonglong; > } ># 887 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > > case NPY_BYTE: ># 899 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > if (src_stride == sizeof(npy_long) && > dst_stride == sizeof(npy_byte)) { > return aligned ? > &_aligned_contig_cast_long_to_byte : > &_contig_cast_long_to_byte; > } > else { > return aligned ? &_aligned_cast_long_to_byte : > &_cast_long_to_byte; > } ># 887 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > > case NPY_SHORT: ># 899 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > if (src_stride == sizeof(npy_long) && > dst_stride == sizeof(npy_short)) { > return aligned ? > &_aligned_contig_cast_long_to_short : > &_contig_cast_long_to_short; > } > else { > return aligned ? &_aligned_cast_long_to_short : > &_cast_long_to_short; > } ># 887 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > > case NPY_INT: ># 899 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > if (src_stride == sizeof(npy_long) && > dst_stride == sizeof(npy_int)) { > return aligned ? > &_aligned_contig_cast_long_to_int : > &_contig_cast_long_to_int; > } > else { > return aligned ? &_aligned_cast_long_to_int : > &_cast_long_to_int; > } ># 887 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > > case NPY_LONG: ># 899 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > if (src_stride == sizeof(npy_long) && > dst_stride == sizeof(npy_long)) { > return aligned ? > &_aligned_contig_cast_long_to_long : > &_contig_cast_long_to_long; > } > else { > return aligned ? &_aligned_cast_long_to_long : > &_cast_long_to_long; > } ># 887 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > > case NPY_LONGLONG: ># 899 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > if (src_stride == sizeof(npy_long) && > dst_stride == sizeof(npy_longlong)) { > return aligned ? > &_aligned_contig_cast_long_to_longlong : > &_contig_cast_long_to_longlong; > } > else { > return aligned ? &_aligned_cast_long_to_longlong : > &_cast_long_to_longlong; > } ># 887 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > > case NPY_HALF: ># 899 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > if (src_stride == sizeof(npy_long) && > dst_stride == sizeof(npy_half)) { > return aligned ? > &_aligned_contig_cast_long_to_half : > &_contig_cast_long_to_half; > } > else { > return aligned ? &_aligned_cast_long_to_half : > &_cast_long_to_half; > } ># 887 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > > case NPY_FLOAT: ># 899 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > if (src_stride == sizeof(npy_long) && > dst_stride == sizeof(npy_float)) { > return aligned ? > &_aligned_contig_cast_long_to_float : > &_contig_cast_long_to_float; > } > else { > return aligned ? &_aligned_cast_long_to_float : > &_cast_long_to_float; > } ># 887 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > > case NPY_DOUBLE: ># 899 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > if (src_stride == sizeof(npy_long) && > dst_stride == sizeof(npy_double)) { > return aligned ? > &_aligned_contig_cast_long_to_double : > &_contig_cast_long_to_double; > } > else { > return aligned ? &_aligned_cast_long_to_double : > &_cast_long_to_double; > } ># 887 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > > case NPY_LONGDOUBLE: ># 899 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > if (src_stride == sizeof(npy_long) && > dst_stride == sizeof(npy_longdouble)) { > return aligned ? > &_aligned_contig_cast_long_to_longdouble : > &_contig_cast_long_to_longdouble; > } > else { > return aligned ? &_aligned_cast_long_to_longdouble : > &_cast_long_to_longdouble; > } ># 887 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > > case NPY_CFLOAT: ># 899 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > if (src_stride == sizeof(npy_long) && > dst_stride == sizeof(npy_cfloat)) { > return aligned ? > &_aligned_contig_cast_long_to_cfloat : > &_contig_cast_long_to_cfloat; > } > else { > return aligned ? &_aligned_cast_long_to_cfloat : > &_cast_long_to_cfloat; > } ># 887 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > > case NPY_CDOUBLE: ># 899 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > if (src_stride == sizeof(npy_long) && > dst_stride == sizeof(npy_cdouble)) { > return aligned ? > &_aligned_contig_cast_long_to_cdouble : > &_contig_cast_long_to_cdouble; > } > else { > return aligned ? &_aligned_cast_long_to_cdouble : > &_cast_long_to_cdouble; > } ># 887 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > > case NPY_CLONGDOUBLE: ># 899 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > if (src_stride == sizeof(npy_long) && > dst_stride == sizeof(npy_clongdouble)) { > return aligned ? > &_aligned_contig_cast_long_to_clongdouble : > &_contig_cast_long_to_clongdouble; > } > else { > return aligned ? &_aligned_cast_long_to_clongdouble : > &_cast_long_to_clongdouble; > } > > > > } ># 870 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > > case NPY_LONGLONG: > > switch (dst_type_num) { ># 887 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > > case NPY_BOOL: ># 899 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > if (src_stride == sizeof(npy_longlong) && > dst_stride == sizeof(npy_bool)) { > return aligned ? > &_aligned_contig_cast_longlong_to_bool : > &_contig_cast_longlong_to_bool; > } > else { > return aligned ? &_aligned_cast_longlong_to_bool : > &_cast_longlong_to_bool; > } ># 887 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > > case NPY_UBYTE: ># 899 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > if (src_stride == sizeof(npy_longlong) && > dst_stride == sizeof(npy_ubyte)) { > return aligned ? > &_aligned_contig_cast_longlong_to_ubyte : > &_contig_cast_longlong_to_ubyte; > } > else { > return aligned ? &_aligned_cast_longlong_to_ubyte : > &_cast_longlong_to_ubyte; > } ># 887 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > > case NPY_USHORT: ># 899 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > if (src_stride == sizeof(npy_longlong) && > dst_stride == sizeof(npy_ushort)) { > return aligned ? > &_aligned_contig_cast_longlong_to_ushort : > &_contig_cast_longlong_to_ushort; > } > else { > return aligned ? &_aligned_cast_longlong_to_ushort : > &_cast_longlong_to_ushort; > } ># 887 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > > case NPY_UINT: ># 899 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > if (src_stride == sizeof(npy_longlong) && > dst_stride == sizeof(npy_uint)) { > return aligned ? > &_aligned_contig_cast_longlong_to_uint : > &_contig_cast_longlong_to_uint; > } > else { > return aligned ? &_aligned_cast_longlong_to_uint : > &_cast_longlong_to_uint; > } ># 887 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > > case NPY_ULONG: ># 899 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > if (src_stride == sizeof(npy_longlong) && > dst_stride == sizeof(npy_ulong)) { > return aligned ? > &_aligned_contig_cast_longlong_to_ulong : > &_contig_cast_longlong_to_ulong; > } > else { > return aligned ? &_aligned_cast_longlong_to_ulong : > &_cast_longlong_to_ulong; > } ># 887 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > > case NPY_ULONGLONG: ># 899 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > if (src_stride == sizeof(npy_longlong) && > dst_stride == sizeof(npy_ulonglong)) { > return aligned ? > &_aligned_contig_cast_longlong_to_ulonglong : > &_contig_cast_longlong_to_ulonglong; > } > else { > return aligned ? &_aligned_cast_longlong_to_ulonglong : > &_cast_longlong_to_ulonglong; > } ># 887 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > > case NPY_BYTE: ># 899 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > if (src_stride == sizeof(npy_longlong) && > dst_stride == sizeof(npy_byte)) { > return aligned ? > &_aligned_contig_cast_longlong_to_byte : > &_contig_cast_longlong_to_byte; > } > else { > return aligned ? &_aligned_cast_longlong_to_byte : > &_cast_longlong_to_byte; > } ># 887 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > > case NPY_SHORT: ># 899 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > if (src_stride == sizeof(npy_longlong) && > dst_stride == sizeof(npy_short)) { > return aligned ? > &_aligned_contig_cast_longlong_to_short : > &_contig_cast_longlong_to_short; > } > else { > return aligned ? &_aligned_cast_longlong_to_short : > &_cast_longlong_to_short; > } ># 887 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > > case NPY_INT: ># 899 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > if (src_stride == sizeof(npy_longlong) && > dst_stride == sizeof(npy_int)) { > return aligned ? > &_aligned_contig_cast_longlong_to_int : > &_contig_cast_longlong_to_int; > } > else { > return aligned ? &_aligned_cast_longlong_to_int : > &_cast_longlong_to_int; > } ># 887 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > > case NPY_LONG: ># 899 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > if (src_stride == sizeof(npy_longlong) && > dst_stride == sizeof(npy_long)) { > return aligned ? > &_aligned_contig_cast_longlong_to_long : > &_contig_cast_longlong_to_long; > } > else { > return aligned ? &_aligned_cast_longlong_to_long : > &_cast_longlong_to_long; > } ># 887 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > > case NPY_LONGLONG: ># 899 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > if (src_stride == sizeof(npy_longlong) && > dst_stride == sizeof(npy_longlong)) { > return aligned ? > &_aligned_contig_cast_longlong_to_longlong : > &_contig_cast_longlong_to_longlong; > } > else { > return aligned ? &_aligned_cast_longlong_to_longlong : > &_cast_longlong_to_longlong; > } ># 887 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > > case NPY_HALF: ># 899 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > if (src_stride == sizeof(npy_longlong) && > dst_stride == sizeof(npy_half)) { > return aligned ? > &_aligned_contig_cast_longlong_to_half : > &_contig_cast_longlong_to_half; > } > else { > return aligned ? &_aligned_cast_longlong_to_half : > &_cast_longlong_to_half; > } ># 887 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > > case NPY_FLOAT: ># 899 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > if (src_stride == sizeof(npy_longlong) && > dst_stride == sizeof(npy_float)) { > return aligned ? > &_aligned_contig_cast_longlong_to_float : > &_contig_cast_longlong_to_float; > } > else { > return aligned ? &_aligned_cast_longlong_to_float : > &_cast_longlong_to_float; > } ># 887 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > > case NPY_DOUBLE: ># 899 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > if (src_stride == sizeof(npy_longlong) && > dst_stride == sizeof(npy_double)) { > return aligned ? > &_aligned_contig_cast_longlong_to_double : > &_contig_cast_longlong_to_double; > } > else { > return aligned ? &_aligned_cast_longlong_to_double : > &_cast_longlong_to_double; > } ># 887 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > > case NPY_LONGDOUBLE: ># 899 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > if (src_stride == sizeof(npy_longlong) && > dst_stride == sizeof(npy_longdouble)) { > return aligned ? > &_aligned_contig_cast_longlong_to_longdouble : > &_contig_cast_longlong_to_longdouble; > } > else { > return aligned ? &_aligned_cast_longlong_to_longdouble : > &_cast_longlong_to_longdouble; > } ># 887 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > > case NPY_CFLOAT: ># 899 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > if (src_stride == sizeof(npy_longlong) && > dst_stride == sizeof(npy_cfloat)) { > return aligned ? > &_aligned_contig_cast_longlong_to_cfloat : > &_contig_cast_longlong_to_cfloat; > } > else { > return aligned ? &_aligned_cast_longlong_to_cfloat : > &_cast_longlong_to_cfloat; > } ># 887 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > > case NPY_CDOUBLE: ># 899 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > if (src_stride == sizeof(npy_longlong) && > dst_stride == sizeof(npy_cdouble)) { > return aligned ? > &_aligned_contig_cast_longlong_to_cdouble : > &_contig_cast_longlong_to_cdouble; > } > else { > return aligned ? &_aligned_cast_longlong_to_cdouble : > &_cast_longlong_to_cdouble; > } ># 887 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > > case NPY_CLONGDOUBLE: ># 899 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > if (src_stride == sizeof(npy_longlong) && > dst_stride == sizeof(npy_clongdouble)) { > return aligned ? > &_aligned_contig_cast_longlong_to_clongdouble : > &_contig_cast_longlong_to_clongdouble; > } > else { > return aligned ? &_aligned_cast_longlong_to_clongdouble : > &_cast_longlong_to_clongdouble; > } > > > > } ># 870 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > > case NPY_HALF: > > switch (dst_type_num) { ># 887 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > > case NPY_BOOL: ># 899 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > if (src_stride == sizeof(npy_half) && > dst_stride == sizeof(npy_bool)) { > return aligned ? > &_aligned_contig_cast_half_to_bool : > &_contig_cast_half_to_bool; > } > else { > return aligned ? &_aligned_cast_half_to_bool : > &_cast_half_to_bool; > } ># 887 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > > case NPY_UBYTE: ># 899 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > if (src_stride == sizeof(npy_half) && > dst_stride == sizeof(npy_ubyte)) { > return aligned ? > &_aligned_contig_cast_half_to_ubyte : > &_contig_cast_half_to_ubyte; > } > else { > return aligned ? &_aligned_cast_half_to_ubyte : > &_cast_half_to_ubyte; > } ># 887 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > > case NPY_USHORT: ># 899 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > if (src_stride == sizeof(npy_half) && > dst_stride == sizeof(npy_ushort)) { > return aligned ? > &_aligned_contig_cast_half_to_ushort : > &_contig_cast_half_to_ushort; > } > else { > return aligned ? &_aligned_cast_half_to_ushort : > &_cast_half_to_ushort; > } ># 887 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > > case NPY_UINT: ># 899 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > if (src_stride == sizeof(npy_half) && > dst_stride == sizeof(npy_uint)) { > return aligned ? > &_aligned_contig_cast_half_to_uint : > &_contig_cast_half_to_uint; > } > else { > return aligned ? &_aligned_cast_half_to_uint : > &_cast_half_to_uint; > } ># 887 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > > case NPY_ULONG: ># 899 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > if (src_stride == sizeof(npy_half) && > dst_stride == sizeof(npy_ulong)) { > return aligned ? > &_aligned_contig_cast_half_to_ulong : > &_contig_cast_half_to_ulong; > } > else { > return aligned ? &_aligned_cast_half_to_ulong : > &_cast_half_to_ulong; > } ># 887 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > > case NPY_ULONGLONG: ># 899 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > if (src_stride == sizeof(npy_half) && > dst_stride == sizeof(npy_ulonglong)) { > return aligned ? > &_aligned_contig_cast_half_to_ulonglong : > &_contig_cast_half_to_ulonglong; > } > else { > return aligned ? &_aligned_cast_half_to_ulonglong : > &_cast_half_to_ulonglong; > } ># 887 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > > case NPY_BYTE: ># 899 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > if (src_stride == sizeof(npy_half) && > dst_stride == sizeof(npy_byte)) { > return aligned ? > &_aligned_contig_cast_half_to_byte : > &_contig_cast_half_to_byte; > } > else { > return aligned ? &_aligned_cast_half_to_byte : > &_cast_half_to_byte; > } ># 887 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > > case NPY_SHORT: ># 899 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > if (src_stride == sizeof(npy_half) && > dst_stride == sizeof(npy_short)) { > return aligned ? > &_aligned_contig_cast_half_to_short : > &_contig_cast_half_to_short; > } > else { > return aligned ? &_aligned_cast_half_to_short : > &_cast_half_to_short; > } ># 887 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > > case NPY_INT: ># 899 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > if (src_stride == sizeof(npy_half) && > dst_stride == sizeof(npy_int)) { > return aligned ? > &_aligned_contig_cast_half_to_int : > &_contig_cast_half_to_int; > } > else { > return aligned ? &_aligned_cast_half_to_int : > &_cast_half_to_int; > } ># 887 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > > case NPY_LONG: ># 899 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > if (src_stride == sizeof(npy_half) && > dst_stride == sizeof(npy_long)) { > return aligned ? > &_aligned_contig_cast_half_to_long : > &_contig_cast_half_to_long; > } > else { > return aligned ? &_aligned_cast_half_to_long : > &_cast_half_to_long; > } ># 887 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > > case NPY_LONGLONG: ># 899 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > if (src_stride == sizeof(npy_half) && > dst_stride == sizeof(npy_longlong)) { > return aligned ? > &_aligned_contig_cast_half_to_longlong : > &_contig_cast_half_to_longlong; > } > else { > return aligned ? &_aligned_cast_half_to_longlong : > &_cast_half_to_longlong; > } ># 887 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > > case NPY_HALF: ># 899 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > if (src_stride == sizeof(npy_half) && > dst_stride == sizeof(npy_half)) { > return aligned ? > &_aligned_contig_cast_half_to_half : > &_contig_cast_half_to_half; > } > else { > return aligned ? &_aligned_cast_half_to_half : > &_cast_half_to_half; > } ># 887 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > > case NPY_FLOAT: ># 899 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > if (src_stride == sizeof(npy_half) && > dst_stride == sizeof(npy_float)) { > return aligned ? > &_aligned_contig_cast_half_to_float : > &_contig_cast_half_to_float; > } > else { > return aligned ? &_aligned_cast_half_to_float : > &_cast_half_to_float; > } ># 887 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > > case NPY_DOUBLE: ># 899 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > if (src_stride == sizeof(npy_half) && > dst_stride == sizeof(npy_double)) { > return aligned ? > &_aligned_contig_cast_half_to_double : > &_contig_cast_half_to_double; > } > else { > return aligned ? &_aligned_cast_half_to_double : > &_cast_half_to_double; > } ># 887 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > > case NPY_LONGDOUBLE: ># 899 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > if (src_stride == sizeof(npy_half) && > dst_stride == sizeof(npy_longdouble)) { > return aligned ? > &_aligned_contig_cast_half_to_longdouble : > &_contig_cast_half_to_longdouble; > } > else { > return aligned ? &_aligned_cast_half_to_longdouble : > &_cast_half_to_longdouble; > } ># 887 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > > case NPY_CFLOAT: ># 899 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > if (src_stride == sizeof(npy_half) && > dst_stride == sizeof(npy_cfloat)) { > return aligned ? > &_aligned_contig_cast_half_to_cfloat : > &_contig_cast_half_to_cfloat; > } > else { > return aligned ? &_aligned_cast_half_to_cfloat : > &_cast_half_to_cfloat; > } ># 887 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > > case NPY_CDOUBLE: ># 899 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > if (src_stride == sizeof(npy_half) && > dst_stride == sizeof(npy_cdouble)) { > return aligned ? > &_aligned_contig_cast_half_to_cdouble : > &_contig_cast_half_to_cdouble; > } > else { > return aligned ? &_aligned_cast_half_to_cdouble : > &_cast_half_to_cdouble; > } ># 887 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > > case NPY_CLONGDOUBLE: ># 899 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > if (src_stride == sizeof(npy_half) && > dst_stride == sizeof(npy_clongdouble)) { > return aligned ? > &_aligned_contig_cast_half_to_clongdouble : > &_contig_cast_half_to_clongdouble; > } > else { > return aligned ? &_aligned_cast_half_to_clongdouble : > &_cast_half_to_clongdouble; > } > > > > } ># 870 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > > case NPY_FLOAT: > > switch (dst_type_num) { ># 887 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > > case NPY_BOOL: ># 899 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > if (src_stride == sizeof(npy_float) && > dst_stride == sizeof(npy_bool)) { > return aligned ? > &_aligned_contig_cast_float_to_bool : > &_contig_cast_float_to_bool; > } > else { > return aligned ? &_aligned_cast_float_to_bool : > &_cast_float_to_bool; > } ># 887 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > > case NPY_UBYTE: ># 899 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > if (src_stride == sizeof(npy_float) && > dst_stride == sizeof(npy_ubyte)) { > return aligned ? > &_aligned_contig_cast_float_to_ubyte : > &_contig_cast_float_to_ubyte; > } > else { > return aligned ? &_aligned_cast_float_to_ubyte : > &_cast_float_to_ubyte; > } ># 887 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > > case NPY_USHORT: ># 899 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > if (src_stride == sizeof(npy_float) && > dst_stride == sizeof(npy_ushort)) { > return aligned ? > &_aligned_contig_cast_float_to_ushort : > &_contig_cast_float_to_ushort; > } > else { > return aligned ? &_aligned_cast_float_to_ushort : > &_cast_float_to_ushort; > } ># 887 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > > case NPY_UINT: ># 899 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > if (src_stride == sizeof(npy_float) && > dst_stride == sizeof(npy_uint)) { > return aligned ? > &_aligned_contig_cast_float_to_uint : > &_contig_cast_float_to_uint; > } > else { > return aligned ? &_aligned_cast_float_to_uint : > &_cast_float_to_uint; > } ># 887 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > > case NPY_ULONG: ># 899 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > if (src_stride == sizeof(npy_float) && > dst_stride == sizeof(npy_ulong)) { > return aligned ? > &_aligned_contig_cast_float_to_ulong : > &_contig_cast_float_to_ulong; > } > else { > return aligned ? &_aligned_cast_float_to_ulong : > &_cast_float_to_ulong; > } ># 887 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > > case NPY_ULONGLONG: ># 899 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > if (src_stride == sizeof(npy_float) && > dst_stride == sizeof(npy_ulonglong)) { > return aligned ? > &_aligned_contig_cast_float_to_ulonglong : > &_contig_cast_float_to_ulonglong; > } > else { > return aligned ? &_aligned_cast_float_to_ulonglong : > &_cast_float_to_ulonglong; > } ># 887 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > > case NPY_BYTE: ># 899 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > if (src_stride == sizeof(npy_float) && > dst_stride == sizeof(npy_byte)) { > return aligned ? > &_aligned_contig_cast_float_to_byte : > &_contig_cast_float_to_byte; > } > else { > return aligned ? &_aligned_cast_float_to_byte : > &_cast_float_to_byte; > } ># 887 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > > case NPY_SHORT: ># 899 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > if (src_stride == sizeof(npy_float) && > dst_stride == sizeof(npy_short)) { > return aligned ? > &_aligned_contig_cast_float_to_short : > &_contig_cast_float_to_short; > } > else { > return aligned ? &_aligned_cast_float_to_short : > &_cast_float_to_short; > } ># 887 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > > case NPY_INT: ># 899 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > if (src_stride == sizeof(npy_float) && > dst_stride == sizeof(npy_int)) { > return aligned ? > &_aligned_contig_cast_float_to_int : > &_contig_cast_float_to_int; > } > else { > return aligned ? &_aligned_cast_float_to_int : > &_cast_float_to_int; > } ># 887 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > > case NPY_LONG: ># 899 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > if (src_stride == sizeof(npy_float) && > dst_stride == sizeof(npy_long)) { > return aligned ? > &_aligned_contig_cast_float_to_long : > &_contig_cast_float_to_long; > } > else { > return aligned ? &_aligned_cast_float_to_long : > &_cast_float_to_long; > } ># 887 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > > case NPY_LONGLONG: ># 899 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > if (src_stride == sizeof(npy_float) && > dst_stride == sizeof(npy_longlong)) { > return aligned ? > &_aligned_contig_cast_float_to_longlong : > &_contig_cast_float_to_longlong; > } > else { > return aligned ? &_aligned_cast_float_to_longlong : > &_cast_float_to_longlong; > } ># 887 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > > case NPY_HALF: ># 899 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > if (src_stride == sizeof(npy_float) && > dst_stride == sizeof(npy_half)) { > return aligned ? > &_aligned_contig_cast_float_to_half : > &_contig_cast_float_to_half; > } > else { > return aligned ? &_aligned_cast_float_to_half : > &_cast_float_to_half; > } ># 887 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > > case NPY_FLOAT: ># 899 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > if (src_stride == sizeof(npy_float) && > dst_stride == sizeof(npy_float)) { > return aligned ? > &_aligned_contig_cast_float_to_float : > &_contig_cast_float_to_float; > } > else { > return aligned ? &_aligned_cast_float_to_float : > &_cast_float_to_float; > } ># 887 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > > case NPY_DOUBLE: ># 899 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > if (src_stride == sizeof(npy_float) && > dst_stride == sizeof(npy_double)) { > return aligned ? > &_aligned_contig_cast_float_to_double : > &_contig_cast_float_to_double; > } > else { > return aligned ? &_aligned_cast_float_to_double : > &_cast_float_to_double; > } ># 887 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > > case NPY_LONGDOUBLE: ># 899 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > if (src_stride == sizeof(npy_float) && > dst_stride == sizeof(npy_longdouble)) { > return aligned ? > &_aligned_contig_cast_float_to_longdouble : > &_contig_cast_float_to_longdouble; > } > else { > return aligned ? &_aligned_cast_float_to_longdouble : > &_cast_float_to_longdouble; > } ># 887 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > > case NPY_CFLOAT: ># 899 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > if (src_stride == sizeof(npy_float) && > dst_stride == sizeof(npy_cfloat)) { > return aligned ? > &_aligned_contig_cast_float_to_cfloat : > &_contig_cast_float_to_cfloat; > } > else { > return aligned ? &_aligned_cast_float_to_cfloat : > &_cast_float_to_cfloat; > } ># 887 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > > case NPY_CDOUBLE: ># 899 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > if (src_stride == sizeof(npy_float) && > dst_stride == sizeof(npy_cdouble)) { > return aligned ? > &_aligned_contig_cast_float_to_cdouble : > &_contig_cast_float_to_cdouble; > } > else { > return aligned ? &_aligned_cast_float_to_cdouble : > &_cast_float_to_cdouble; > } ># 887 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > > case NPY_CLONGDOUBLE: ># 899 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > if (src_stride == sizeof(npy_float) && > dst_stride == sizeof(npy_clongdouble)) { > return aligned ? > &_aligned_contig_cast_float_to_clongdouble : > &_contig_cast_float_to_clongdouble; > } > else { > return aligned ? &_aligned_cast_float_to_clongdouble : > &_cast_float_to_clongdouble; > } > > > > } ># 870 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > > case NPY_DOUBLE: > > switch (dst_type_num) { ># 887 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > > case NPY_BOOL: ># 899 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > if (src_stride == sizeof(npy_double) && > dst_stride == sizeof(npy_bool)) { > return aligned ? > &_aligned_contig_cast_double_to_bool : > &_contig_cast_double_to_bool; > } > else { > return aligned ? &_aligned_cast_double_to_bool : > &_cast_double_to_bool; > } ># 887 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > > case NPY_UBYTE: ># 899 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > if (src_stride == sizeof(npy_double) && > dst_stride == sizeof(npy_ubyte)) { > return aligned ? > &_aligned_contig_cast_double_to_ubyte : > &_contig_cast_double_to_ubyte; > } > else { > return aligned ? &_aligned_cast_double_to_ubyte : > &_cast_double_to_ubyte; > } ># 887 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > > case NPY_USHORT: ># 899 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > if (src_stride == sizeof(npy_double) && > dst_stride == sizeof(npy_ushort)) { > return aligned ? > &_aligned_contig_cast_double_to_ushort : > &_contig_cast_double_to_ushort; > } > else { > return aligned ? &_aligned_cast_double_to_ushort : > &_cast_double_to_ushort; > } ># 887 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > > case NPY_UINT: ># 899 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > if (src_stride == sizeof(npy_double) && > dst_stride == sizeof(npy_uint)) { > return aligned ? > &_aligned_contig_cast_double_to_uint : > &_contig_cast_double_to_uint; > } > else { > return aligned ? &_aligned_cast_double_to_uint : > &_cast_double_to_uint; > } ># 887 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > > case NPY_ULONG: ># 899 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > if (src_stride == sizeof(npy_double) && > dst_stride == sizeof(npy_ulong)) { > return aligned ? > &_aligned_contig_cast_double_to_ulong : > &_contig_cast_double_to_ulong; > } > else { > return aligned ? &_aligned_cast_double_to_ulong : > &_cast_double_to_ulong; > } ># 887 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > > case NPY_ULONGLONG: ># 899 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > if (src_stride == sizeof(npy_double) && > dst_stride == sizeof(npy_ulonglong)) { > return aligned ? > &_aligned_contig_cast_double_to_ulonglong : > &_contig_cast_double_to_ulonglong; > } > else { > return aligned ? &_aligned_cast_double_to_ulonglong : > &_cast_double_to_ulonglong; > } ># 887 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > > case NPY_BYTE: ># 899 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > if (src_stride == sizeof(npy_double) && > dst_stride == sizeof(npy_byte)) { > return aligned ? > &_aligned_contig_cast_double_to_byte : > &_contig_cast_double_to_byte; > } > else { > return aligned ? &_aligned_cast_double_to_byte : > &_cast_double_to_byte; > } ># 887 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > > case NPY_SHORT: ># 899 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > if (src_stride == sizeof(npy_double) && > dst_stride == sizeof(npy_short)) { > return aligned ? > &_aligned_contig_cast_double_to_short : > &_contig_cast_double_to_short; > } > else { > return aligned ? &_aligned_cast_double_to_short : > &_cast_double_to_short; > } ># 887 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > > case NPY_INT: ># 899 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > if (src_stride == sizeof(npy_double) && > dst_stride == sizeof(npy_int)) { > return aligned ? > &_aligned_contig_cast_double_to_int : > &_contig_cast_double_to_int; > } > else { > return aligned ? &_aligned_cast_double_to_int : > &_cast_double_to_int; > } ># 887 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > > case NPY_LONG: ># 899 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > if (src_stride == sizeof(npy_double) && > dst_stride == sizeof(npy_long)) { > return aligned ? > &_aligned_contig_cast_double_to_long : > &_contig_cast_double_to_long; > } > else { > return aligned ? &_aligned_cast_double_to_long : > &_cast_double_to_long; > } ># 887 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > > case NPY_LONGLONG: ># 899 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > if (src_stride == sizeof(npy_double) && > dst_stride == sizeof(npy_longlong)) { > return aligned ? > &_aligned_contig_cast_double_to_longlong : > &_contig_cast_double_to_longlong; > } > else { > return aligned ? &_aligned_cast_double_to_longlong : > &_cast_double_to_longlong; > } ># 887 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > > case NPY_HALF: ># 899 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > if (src_stride == sizeof(npy_double) && > dst_stride == sizeof(npy_half)) { > return aligned ? > &_aligned_contig_cast_double_to_half : > &_contig_cast_double_to_half; > } > else { > return aligned ? &_aligned_cast_double_to_half : > &_cast_double_to_half; > } ># 887 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > > case NPY_FLOAT: ># 899 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > if (src_stride == sizeof(npy_double) && > dst_stride == sizeof(npy_float)) { > return aligned ? > &_aligned_contig_cast_double_to_float : > &_contig_cast_double_to_float; > } > else { > return aligned ? &_aligned_cast_double_to_float : > &_cast_double_to_float; > } ># 887 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > > case NPY_DOUBLE: ># 899 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > if (src_stride == sizeof(npy_double) && > dst_stride == sizeof(npy_double)) { > return aligned ? > &_aligned_contig_cast_double_to_double : > &_contig_cast_double_to_double; > } > else { > return aligned ? &_aligned_cast_double_to_double : > &_cast_double_to_double; > } ># 887 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > > case NPY_LONGDOUBLE: ># 899 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > if (src_stride == sizeof(npy_double) && > dst_stride == sizeof(npy_longdouble)) { > return aligned ? > &_aligned_contig_cast_double_to_longdouble : > &_contig_cast_double_to_longdouble; > } > else { > return aligned ? &_aligned_cast_double_to_longdouble : > &_cast_double_to_longdouble; > } ># 887 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > > case NPY_CFLOAT: ># 899 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > if (src_stride == sizeof(npy_double) && > dst_stride == sizeof(npy_cfloat)) { > return aligned ? > &_aligned_contig_cast_double_to_cfloat : > &_contig_cast_double_to_cfloat; > } > else { > return aligned ? &_aligned_cast_double_to_cfloat : > &_cast_double_to_cfloat; > } ># 887 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > > case NPY_CDOUBLE: ># 899 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > if (src_stride == sizeof(npy_double) && > dst_stride == sizeof(npy_cdouble)) { > return aligned ? > &_aligned_contig_cast_double_to_cdouble : > &_contig_cast_double_to_cdouble; > } > else { > return aligned ? &_aligned_cast_double_to_cdouble : > &_cast_double_to_cdouble; > } ># 887 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > > case NPY_CLONGDOUBLE: ># 899 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > if (src_stride == sizeof(npy_double) && > dst_stride == sizeof(npy_clongdouble)) { > return aligned ? > &_aligned_contig_cast_double_to_clongdouble : > &_contig_cast_double_to_clongdouble; > } > else { > return aligned ? &_aligned_cast_double_to_clongdouble : > &_cast_double_to_clongdouble; > } > > > > } ># 870 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > > case NPY_LONGDOUBLE: > > switch (dst_type_num) { ># 887 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > > case NPY_BOOL: ># 899 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > if (src_stride == sizeof(npy_longdouble) && > dst_stride == sizeof(npy_bool)) { > return aligned ? > &_aligned_contig_cast_longdouble_to_bool : > &_contig_cast_longdouble_to_bool; > } > else { > return aligned ? &_aligned_cast_longdouble_to_bool : > &_cast_longdouble_to_bool; > } ># 887 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > > case NPY_UBYTE: ># 899 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > if (src_stride == sizeof(npy_longdouble) && > dst_stride == sizeof(npy_ubyte)) { > return aligned ? > &_aligned_contig_cast_longdouble_to_ubyte : > &_contig_cast_longdouble_to_ubyte; > } > else { > return aligned ? &_aligned_cast_longdouble_to_ubyte : > &_cast_longdouble_to_ubyte; > } ># 887 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > > case NPY_USHORT: ># 899 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > if (src_stride == sizeof(npy_longdouble) && > dst_stride == sizeof(npy_ushort)) { > return aligned ? > &_aligned_contig_cast_longdouble_to_ushort : > &_contig_cast_longdouble_to_ushort; > } > else { > return aligned ? &_aligned_cast_longdouble_to_ushort : > &_cast_longdouble_to_ushort; > } ># 887 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > > case NPY_UINT: ># 899 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > if (src_stride == sizeof(npy_longdouble) && > dst_stride == sizeof(npy_uint)) { > return aligned ? > &_aligned_contig_cast_longdouble_to_uint : > &_contig_cast_longdouble_to_uint; > } > else { > return aligned ? &_aligned_cast_longdouble_to_uint : > &_cast_longdouble_to_uint; > } ># 887 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > > case NPY_ULONG: ># 899 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > if (src_stride == sizeof(npy_longdouble) && > dst_stride == sizeof(npy_ulong)) { > return aligned ? > &_aligned_contig_cast_longdouble_to_ulong : > &_contig_cast_longdouble_to_ulong; > } > else { > return aligned ? &_aligned_cast_longdouble_to_ulong : > &_cast_longdouble_to_ulong; > } ># 887 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > > case NPY_ULONGLONG: ># 899 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > if (src_stride == sizeof(npy_longdouble) && > dst_stride == sizeof(npy_ulonglong)) { > return aligned ? > &_aligned_contig_cast_longdouble_to_ulonglong : > &_contig_cast_longdouble_to_ulonglong; > } > else { > return aligned ? &_aligned_cast_longdouble_to_ulonglong : > &_cast_longdouble_to_ulonglong; > } ># 887 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > > case NPY_BYTE: ># 899 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > if (src_stride == sizeof(npy_longdouble) && > dst_stride == sizeof(npy_byte)) { > return aligned ? > &_aligned_contig_cast_longdouble_to_byte : > &_contig_cast_longdouble_to_byte; > } > else { > return aligned ? &_aligned_cast_longdouble_to_byte : > &_cast_longdouble_to_byte; > } ># 887 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > > case NPY_SHORT: ># 899 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > if (src_stride == sizeof(npy_longdouble) && > dst_stride == sizeof(npy_short)) { > return aligned ? > &_aligned_contig_cast_longdouble_to_short : > &_contig_cast_longdouble_to_short; > } > else { > return aligned ? &_aligned_cast_longdouble_to_short : > &_cast_longdouble_to_short; > } ># 887 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > > case NPY_INT: ># 899 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > if (src_stride == sizeof(npy_longdouble) && > dst_stride == sizeof(npy_int)) { > return aligned ? > &_aligned_contig_cast_longdouble_to_int : > &_contig_cast_longdouble_to_int; > } > else { > return aligned ? &_aligned_cast_longdouble_to_int : > &_cast_longdouble_to_int; > } ># 887 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > > case NPY_LONG: ># 899 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > if (src_stride == sizeof(npy_longdouble) && > dst_stride == sizeof(npy_long)) { > return aligned ? > &_aligned_contig_cast_longdouble_to_long : > &_contig_cast_longdouble_to_long; > } > else { > return aligned ? &_aligned_cast_longdouble_to_long : > &_cast_longdouble_to_long; > } ># 887 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > > case NPY_LONGLONG: ># 899 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > if (src_stride == sizeof(npy_longdouble) && > dst_stride == sizeof(npy_longlong)) { > return aligned ? > &_aligned_contig_cast_longdouble_to_longlong : > &_contig_cast_longdouble_to_longlong; > } > else { > return aligned ? &_aligned_cast_longdouble_to_longlong : > &_cast_longdouble_to_longlong; > } ># 887 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > > case NPY_HALF: ># 899 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > if (src_stride == sizeof(npy_longdouble) && > dst_stride == sizeof(npy_half)) { > return aligned ? > &_aligned_contig_cast_longdouble_to_half : > &_contig_cast_longdouble_to_half; > } > else { > return aligned ? &_aligned_cast_longdouble_to_half : > &_cast_longdouble_to_half; > } ># 887 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > > case NPY_FLOAT: ># 899 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > if (src_stride == sizeof(npy_longdouble) && > dst_stride == sizeof(npy_float)) { > return aligned ? > &_aligned_contig_cast_longdouble_to_float : > &_contig_cast_longdouble_to_float; > } > else { > return aligned ? &_aligned_cast_longdouble_to_float : > &_cast_longdouble_to_float; > } ># 887 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > > case NPY_DOUBLE: ># 899 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > if (src_stride == sizeof(npy_longdouble) && > dst_stride == sizeof(npy_double)) { > return aligned ? > &_aligned_contig_cast_longdouble_to_double : > &_contig_cast_longdouble_to_double; > } > else { > return aligned ? &_aligned_cast_longdouble_to_double : > &_cast_longdouble_to_double; > } ># 887 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > > case NPY_LONGDOUBLE: ># 899 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > if (src_stride == sizeof(npy_longdouble) && > dst_stride == sizeof(npy_longdouble)) { > return aligned ? > &_aligned_contig_cast_longdouble_to_longdouble : > &_contig_cast_longdouble_to_longdouble; > } > else { > return aligned ? &_aligned_cast_longdouble_to_longdouble : > &_cast_longdouble_to_longdouble; > } ># 887 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > > case NPY_CFLOAT: ># 899 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > if (src_stride == sizeof(npy_longdouble) && > dst_stride == sizeof(npy_cfloat)) { > return aligned ? > &_aligned_contig_cast_longdouble_to_cfloat : > &_contig_cast_longdouble_to_cfloat; > } > else { > return aligned ? &_aligned_cast_longdouble_to_cfloat : > &_cast_longdouble_to_cfloat; > } ># 887 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > > case NPY_CDOUBLE: ># 899 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > if (src_stride == sizeof(npy_longdouble) && > dst_stride == sizeof(npy_cdouble)) { > return aligned ? > &_aligned_contig_cast_longdouble_to_cdouble : > &_contig_cast_longdouble_to_cdouble; > } > else { > return aligned ? &_aligned_cast_longdouble_to_cdouble : > &_cast_longdouble_to_cdouble; > } ># 887 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > > case NPY_CLONGDOUBLE: ># 899 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > if (src_stride == sizeof(npy_longdouble) && > dst_stride == sizeof(npy_clongdouble)) { > return aligned ? > &_aligned_contig_cast_longdouble_to_clongdouble : > &_contig_cast_longdouble_to_clongdouble; > } > else { > return aligned ? &_aligned_cast_longdouble_to_clongdouble : > &_cast_longdouble_to_clongdouble; > } > > > > } ># 870 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > > case NPY_CFLOAT: > > switch (dst_type_num) { ># 887 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > > case NPY_BOOL: ># 899 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > if (src_stride == sizeof(npy_cfloat) && > dst_stride == sizeof(npy_bool)) { > return aligned ? > &_aligned_contig_cast_cfloat_to_bool : > &_contig_cast_cfloat_to_bool; > } > else { > return aligned ? &_aligned_cast_cfloat_to_bool : > &_cast_cfloat_to_bool; > } ># 887 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > > case NPY_UBYTE: ># 899 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > if (src_stride == sizeof(npy_cfloat) && > dst_stride == sizeof(npy_ubyte)) { > return aligned ? > &_aligned_contig_cast_cfloat_to_ubyte : > &_contig_cast_cfloat_to_ubyte; > } > else { > return aligned ? &_aligned_cast_cfloat_to_ubyte : > &_cast_cfloat_to_ubyte; > } ># 887 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > > case NPY_USHORT: ># 899 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > if (src_stride == sizeof(npy_cfloat) && > dst_stride == sizeof(npy_ushort)) { > return aligned ? > &_aligned_contig_cast_cfloat_to_ushort : > &_contig_cast_cfloat_to_ushort; > } > else { > return aligned ? &_aligned_cast_cfloat_to_ushort : > &_cast_cfloat_to_ushort; > } ># 887 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > > case NPY_UINT: ># 899 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > if (src_stride == sizeof(npy_cfloat) && > dst_stride == sizeof(npy_uint)) { > return aligned ? > &_aligned_contig_cast_cfloat_to_uint : > &_contig_cast_cfloat_to_uint; > } > else { > return aligned ? &_aligned_cast_cfloat_to_uint : > &_cast_cfloat_to_uint; > } ># 887 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > > case NPY_ULONG: ># 899 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > if (src_stride == sizeof(npy_cfloat) && > dst_stride == sizeof(npy_ulong)) { > return aligned ? > &_aligned_contig_cast_cfloat_to_ulong : > &_contig_cast_cfloat_to_ulong; > } > else { > return aligned ? &_aligned_cast_cfloat_to_ulong : > &_cast_cfloat_to_ulong; > } ># 887 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > > case NPY_ULONGLONG: ># 899 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > if (src_stride == sizeof(npy_cfloat) && > dst_stride == sizeof(npy_ulonglong)) { > return aligned ? > &_aligned_contig_cast_cfloat_to_ulonglong : > &_contig_cast_cfloat_to_ulonglong; > } > else { > return aligned ? &_aligned_cast_cfloat_to_ulonglong : > &_cast_cfloat_to_ulonglong; > } ># 887 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > > case NPY_BYTE: ># 899 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > if (src_stride == sizeof(npy_cfloat) && > dst_stride == sizeof(npy_byte)) { > return aligned ? > &_aligned_contig_cast_cfloat_to_byte : > &_contig_cast_cfloat_to_byte; > } > else { > return aligned ? &_aligned_cast_cfloat_to_byte : > &_cast_cfloat_to_byte; > } ># 887 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > > case NPY_SHORT: ># 899 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > if (src_stride == sizeof(npy_cfloat) && > dst_stride == sizeof(npy_short)) { > return aligned ? > &_aligned_contig_cast_cfloat_to_short : > &_contig_cast_cfloat_to_short; > } > else { > return aligned ? &_aligned_cast_cfloat_to_short : > &_cast_cfloat_to_short; > } ># 887 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > > case NPY_INT: ># 899 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > if (src_stride == sizeof(npy_cfloat) && > dst_stride == sizeof(npy_int)) { > return aligned ? > &_aligned_contig_cast_cfloat_to_int : > &_contig_cast_cfloat_to_int; > } > else { > return aligned ? &_aligned_cast_cfloat_to_int : > &_cast_cfloat_to_int; > } ># 887 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > > case NPY_LONG: ># 899 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > if (src_stride == sizeof(npy_cfloat) && > dst_stride == sizeof(npy_long)) { > return aligned ? > &_aligned_contig_cast_cfloat_to_long : > &_contig_cast_cfloat_to_long; > } > else { > return aligned ? &_aligned_cast_cfloat_to_long : > &_cast_cfloat_to_long; > } ># 887 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > > case NPY_LONGLONG: ># 899 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > if (src_stride == sizeof(npy_cfloat) && > dst_stride == sizeof(npy_longlong)) { > return aligned ? > &_aligned_contig_cast_cfloat_to_longlong : > &_contig_cast_cfloat_to_longlong; > } > else { > return aligned ? &_aligned_cast_cfloat_to_longlong : > &_cast_cfloat_to_longlong; > } ># 887 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > > case NPY_HALF: ># 899 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > if (src_stride == sizeof(npy_cfloat) && > dst_stride == sizeof(npy_half)) { > return aligned ? > &_aligned_contig_cast_cfloat_to_half : > &_contig_cast_cfloat_to_half; > } > else { > return aligned ? &_aligned_cast_cfloat_to_half : > &_cast_cfloat_to_half; > } ># 887 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > > case NPY_FLOAT: ># 899 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > if (src_stride == sizeof(npy_cfloat) && > dst_stride == sizeof(npy_float)) { > return aligned ? > &_aligned_contig_cast_cfloat_to_float : > &_contig_cast_cfloat_to_float; > } > else { > return aligned ? &_aligned_cast_cfloat_to_float : > &_cast_cfloat_to_float; > } ># 887 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > > case NPY_DOUBLE: ># 899 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > if (src_stride == sizeof(npy_cfloat) && > dst_stride == sizeof(npy_double)) { > return aligned ? > &_aligned_contig_cast_cfloat_to_double : > &_contig_cast_cfloat_to_double; > } > else { > return aligned ? &_aligned_cast_cfloat_to_double : > &_cast_cfloat_to_double; > } ># 887 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > > case NPY_LONGDOUBLE: ># 899 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > if (src_stride == sizeof(npy_cfloat) && > dst_stride == sizeof(npy_longdouble)) { > return aligned ? > &_aligned_contig_cast_cfloat_to_longdouble : > &_contig_cast_cfloat_to_longdouble; > } > else { > return aligned ? &_aligned_cast_cfloat_to_longdouble : > &_cast_cfloat_to_longdouble; > } ># 887 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > > case NPY_CFLOAT: ># 899 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > if (src_stride == sizeof(npy_cfloat) && > dst_stride == sizeof(npy_cfloat)) { > return aligned ? > &_aligned_contig_cast_cfloat_to_cfloat : > &_contig_cast_cfloat_to_cfloat; > } > else { > return aligned ? &_aligned_cast_cfloat_to_cfloat : > &_cast_cfloat_to_cfloat; > } ># 887 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > > case NPY_CDOUBLE: ># 899 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > if (src_stride == sizeof(npy_cfloat) && > dst_stride == sizeof(npy_cdouble)) { > return aligned ? > &_aligned_contig_cast_cfloat_to_cdouble : > &_contig_cast_cfloat_to_cdouble; > } > else { > return aligned ? &_aligned_cast_cfloat_to_cdouble : > &_cast_cfloat_to_cdouble; > } ># 887 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > > case NPY_CLONGDOUBLE: ># 899 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > if (src_stride == sizeof(npy_cfloat) && > dst_stride == sizeof(npy_clongdouble)) { > return aligned ? > &_aligned_contig_cast_cfloat_to_clongdouble : > &_contig_cast_cfloat_to_clongdouble; > } > else { > return aligned ? &_aligned_cast_cfloat_to_clongdouble : > &_cast_cfloat_to_clongdouble; > } > > > > } ># 870 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > > case NPY_CDOUBLE: > > switch (dst_type_num) { ># 887 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > > case NPY_BOOL: ># 899 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > if (src_stride == sizeof(npy_cdouble) && > dst_stride == sizeof(npy_bool)) { > return aligned ? > &_aligned_contig_cast_cdouble_to_bool : > &_contig_cast_cdouble_to_bool; > } > else { > return aligned ? &_aligned_cast_cdouble_to_bool : > &_cast_cdouble_to_bool; > } ># 887 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > > case NPY_UBYTE: ># 899 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > if (src_stride == sizeof(npy_cdouble) && > dst_stride == sizeof(npy_ubyte)) { > return aligned ? > &_aligned_contig_cast_cdouble_to_ubyte : > &_contig_cast_cdouble_to_ubyte; > } > else { > return aligned ? &_aligned_cast_cdouble_to_ubyte : > &_cast_cdouble_to_ubyte; > } ># 887 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > > case NPY_USHORT: ># 899 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > if (src_stride == sizeof(npy_cdouble) && > dst_stride == sizeof(npy_ushort)) { > return aligned ? > &_aligned_contig_cast_cdouble_to_ushort : > &_contig_cast_cdouble_to_ushort; > } > else { > return aligned ? &_aligned_cast_cdouble_to_ushort : > &_cast_cdouble_to_ushort; > } ># 887 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > > case NPY_UINT: ># 899 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > if (src_stride == sizeof(npy_cdouble) && > dst_stride == sizeof(npy_uint)) { > return aligned ? > &_aligned_contig_cast_cdouble_to_uint : > &_contig_cast_cdouble_to_uint; > } > else { > return aligned ? &_aligned_cast_cdouble_to_uint : > &_cast_cdouble_to_uint; > } ># 887 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > > case NPY_ULONG: ># 899 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > if (src_stride == sizeof(npy_cdouble) && > dst_stride == sizeof(npy_ulong)) { > return aligned ? > &_aligned_contig_cast_cdouble_to_ulong : > &_contig_cast_cdouble_to_ulong; > } > else { > return aligned ? &_aligned_cast_cdouble_to_ulong : > &_cast_cdouble_to_ulong; > } ># 887 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > > case NPY_ULONGLONG: ># 899 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > if (src_stride == sizeof(npy_cdouble) && > dst_stride == sizeof(npy_ulonglong)) { > return aligned ? > &_aligned_contig_cast_cdouble_to_ulonglong : > &_contig_cast_cdouble_to_ulonglong; > } > else { > return aligned ? &_aligned_cast_cdouble_to_ulonglong : > &_cast_cdouble_to_ulonglong; > } ># 887 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > > case NPY_BYTE: ># 899 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > if (src_stride == sizeof(npy_cdouble) && > dst_stride == sizeof(npy_byte)) { > return aligned ? > &_aligned_contig_cast_cdouble_to_byte : > &_contig_cast_cdouble_to_byte; > } > else { > return aligned ? &_aligned_cast_cdouble_to_byte : > &_cast_cdouble_to_byte; > } ># 887 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > > case NPY_SHORT: ># 899 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > if (src_stride == sizeof(npy_cdouble) && > dst_stride == sizeof(npy_short)) { > return aligned ? > &_aligned_contig_cast_cdouble_to_short : > &_contig_cast_cdouble_to_short; > } > else { > return aligned ? &_aligned_cast_cdouble_to_short : > &_cast_cdouble_to_short; > } ># 887 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > > case NPY_INT: ># 899 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > if (src_stride == sizeof(npy_cdouble) && > dst_stride == sizeof(npy_int)) { > return aligned ? > &_aligned_contig_cast_cdouble_to_int : > &_contig_cast_cdouble_to_int; > } > else { > return aligned ? &_aligned_cast_cdouble_to_int : > &_cast_cdouble_to_int; > } ># 887 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > > case NPY_LONG: ># 899 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > if (src_stride == sizeof(npy_cdouble) && > dst_stride == sizeof(npy_long)) { > return aligned ? > &_aligned_contig_cast_cdouble_to_long : > &_contig_cast_cdouble_to_long; > } > else { > return aligned ? &_aligned_cast_cdouble_to_long : > &_cast_cdouble_to_long; > } ># 887 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > > case NPY_LONGLONG: ># 899 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > if (src_stride == sizeof(npy_cdouble) && > dst_stride == sizeof(npy_longlong)) { > return aligned ? > &_aligned_contig_cast_cdouble_to_longlong : > &_contig_cast_cdouble_to_longlong; > } > else { > return aligned ? &_aligned_cast_cdouble_to_longlong : > &_cast_cdouble_to_longlong; > } ># 887 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > > case NPY_HALF: ># 899 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > if (src_stride == sizeof(npy_cdouble) && > dst_stride == sizeof(npy_half)) { > return aligned ? > &_aligned_contig_cast_cdouble_to_half : > &_contig_cast_cdouble_to_half; > } > else { > return aligned ? &_aligned_cast_cdouble_to_half : > &_cast_cdouble_to_half; > } ># 887 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > > case NPY_FLOAT: ># 899 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > if (src_stride == sizeof(npy_cdouble) && > dst_stride == sizeof(npy_float)) { > return aligned ? > &_aligned_contig_cast_cdouble_to_float : > &_contig_cast_cdouble_to_float; > } > else { > return aligned ? &_aligned_cast_cdouble_to_float : > &_cast_cdouble_to_float; > } ># 887 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > > case NPY_DOUBLE: ># 899 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > if (src_stride == sizeof(npy_cdouble) && > dst_stride == sizeof(npy_double)) { > return aligned ? > &_aligned_contig_cast_cdouble_to_double : > &_contig_cast_cdouble_to_double; > } > else { > return aligned ? &_aligned_cast_cdouble_to_double : > &_cast_cdouble_to_double; > } ># 887 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > > case NPY_LONGDOUBLE: ># 899 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > if (src_stride == sizeof(npy_cdouble) && > dst_stride == sizeof(npy_longdouble)) { > return aligned ? > &_aligned_contig_cast_cdouble_to_longdouble : > &_contig_cast_cdouble_to_longdouble; > } > else { > return aligned ? &_aligned_cast_cdouble_to_longdouble : > &_cast_cdouble_to_longdouble; > } ># 887 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > > case NPY_CFLOAT: ># 899 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > if (src_stride == sizeof(npy_cdouble) && > dst_stride == sizeof(npy_cfloat)) { > return aligned ? > &_aligned_contig_cast_cdouble_to_cfloat : > &_contig_cast_cdouble_to_cfloat; > } > else { > return aligned ? &_aligned_cast_cdouble_to_cfloat : > &_cast_cdouble_to_cfloat; > } ># 887 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > > case NPY_CDOUBLE: ># 899 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > if (src_stride == sizeof(npy_cdouble) && > dst_stride == sizeof(npy_cdouble)) { > return aligned ? > &_aligned_contig_cast_cdouble_to_cdouble : > &_contig_cast_cdouble_to_cdouble; > } > else { > return aligned ? &_aligned_cast_cdouble_to_cdouble : > &_cast_cdouble_to_cdouble; > } ># 887 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > > case NPY_CLONGDOUBLE: ># 899 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > if (src_stride == sizeof(npy_cdouble) && > dst_stride == sizeof(npy_clongdouble)) { > return aligned ? > &_aligned_contig_cast_cdouble_to_clongdouble : > &_contig_cast_cdouble_to_clongdouble; > } > else { > return aligned ? &_aligned_cast_cdouble_to_clongdouble : > &_cast_cdouble_to_clongdouble; > } > > > > } ># 870 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > > case NPY_CLONGDOUBLE: > > switch (dst_type_num) { ># 887 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > > case NPY_BOOL: ># 899 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > if (src_stride == sizeof(npy_clongdouble) && > dst_stride == sizeof(npy_bool)) { > return aligned ? > &_aligned_contig_cast_clongdouble_to_bool : > &_contig_cast_clongdouble_to_bool; > } > else { > return aligned ? &_aligned_cast_clongdouble_to_bool : > &_cast_clongdouble_to_bool; > } ># 887 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > > case NPY_UBYTE: ># 899 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > if (src_stride == sizeof(npy_clongdouble) && > dst_stride == sizeof(npy_ubyte)) { > return aligned ? > &_aligned_contig_cast_clongdouble_to_ubyte : > &_contig_cast_clongdouble_to_ubyte; > } > else { > return aligned ? &_aligned_cast_clongdouble_to_ubyte : > &_cast_clongdouble_to_ubyte; > } ># 887 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > > case NPY_USHORT: ># 899 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > if (src_stride == sizeof(npy_clongdouble) && > dst_stride == sizeof(npy_ushort)) { > return aligned ? > &_aligned_contig_cast_clongdouble_to_ushort : > &_contig_cast_clongdouble_to_ushort; > } > else { > return aligned ? &_aligned_cast_clongdouble_to_ushort : > &_cast_clongdouble_to_ushort; > } ># 887 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > > case NPY_UINT: ># 899 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > if (src_stride == sizeof(npy_clongdouble) && > dst_stride == sizeof(npy_uint)) { > return aligned ? > &_aligned_contig_cast_clongdouble_to_uint : > &_contig_cast_clongdouble_to_uint; > } > else { > return aligned ? &_aligned_cast_clongdouble_to_uint : > &_cast_clongdouble_to_uint; > } ># 887 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > > case NPY_ULONG: ># 899 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > if (src_stride == sizeof(npy_clongdouble) && > dst_stride == sizeof(npy_ulong)) { > return aligned ? > &_aligned_contig_cast_clongdouble_to_ulong : > &_contig_cast_clongdouble_to_ulong; > } > else { > return aligned ? &_aligned_cast_clongdouble_to_ulong : > &_cast_clongdouble_to_ulong; > } ># 887 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > > case NPY_ULONGLONG: ># 899 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > if (src_stride == sizeof(npy_clongdouble) && > dst_stride == sizeof(npy_ulonglong)) { > return aligned ? > &_aligned_contig_cast_clongdouble_to_ulonglong : > &_contig_cast_clongdouble_to_ulonglong; > } > else { > return aligned ? &_aligned_cast_clongdouble_to_ulonglong : > &_cast_clongdouble_to_ulonglong; > } ># 887 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > > case NPY_BYTE: ># 899 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > if (src_stride == sizeof(npy_clongdouble) && > dst_stride == sizeof(npy_byte)) { > return aligned ? > &_aligned_contig_cast_clongdouble_to_byte : > &_contig_cast_clongdouble_to_byte; > } > else { > return aligned ? &_aligned_cast_clongdouble_to_byte : > &_cast_clongdouble_to_byte; > } ># 887 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > > case NPY_SHORT: ># 899 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > if (src_stride == sizeof(npy_clongdouble) && > dst_stride == sizeof(npy_short)) { > return aligned ? > &_aligned_contig_cast_clongdouble_to_short : > &_contig_cast_clongdouble_to_short; > } > else { > return aligned ? &_aligned_cast_clongdouble_to_short : > &_cast_clongdouble_to_short; > } ># 887 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > > case NPY_INT: ># 899 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > if (src_stride == sizeof(npy_clongdouble) && > dst_stride == sizeof(npy_int)) { > return aligned ? > &_aligned_contig_cast_clongdouble_to_int : > &_contig_cast_clongdouble_to_int; > } > else { > return aligned ? &_aligned_cast_clongdouble_to_int : > &_cast_clongdouble_to_int; > } ># 887 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > > case NPY_LONG: ># 899 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > if (src_stride == sizeof(npy_clongdouble) && > dst_stride == sizeof(npy_long)) { > return aligned ? > &_aligned_contig_cast_clongdouble_to_long : > &_contig_cast_clongdouble_to_long; > } > else { > return aligned ? &_aligned_cast_clongdouble_to_long : > &_cast_clongdouble_to_long; > } ># 887 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > > case NPY_LONGLONG: ># 899 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > if (src_stride == sizeof(npy_clongdouble) && > dst_stride == sizeof(npy_longlong)) { > return aligned ? > &_aligned_contig_cast_clongdouble_to_longlong : > &_contig_cast_clongdouble_to_longlong; > } > else { > return aligned ? &_aligned_cast_clongdouble_to_longlong : > &_cast_clongdouble_to_longlong; > } ># 887 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > > case NPY_HALF: ># 899 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > if (src_stride == sizeof(npy_clongdouble) && > dst_stride == sizeof(npy_half)) { > return aligned ? > &_aligned_contig_cast_clongdouble_to_half : > &_contig_cast_clongdouble_to_half; > } > else { > return aligned ? &_aligned_cast_clongdouble_to_half : > &_cast_clongdouble_to_half; > } ># 887 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > > case NPY_FLOAT: ># 899 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > if (src_stride == sizeof(npy_clongdouble) && > dst_stride == sizeof(npy_float)) { > return aligned ? > &_aligned_contig_cast_clongdouble_to_float : > &_contig_cast_clongdouble_to_float; > } > else { > return aligned ? &_aligned_cast_clongdouble_to_float : > &_cast_clongdouble_to_float; > } ># 887 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > > case NPY_DOUBLE: ># 899 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > if (src_stride == sizeof(npy_clongdouble) && > dst_stride == sizeof(npy_double)) { > return aligned ? > &_aligned_contig_cast_clongdouble_to_double : > &_contig_cast_clongdouble_to_double; > } > else { > return aligned ? &_aligned_cast_clongdouble_to_double : > &_cast_clongdouble_to_double; > } ># 887 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > > case NPY_LONGDOUBLE: ># 899 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > if (src_stride == sizeof(npy_clongdouble) && > dst_stride == sizeof(npy_longdouble)) { > return aligned ? > &_aligned_contig_cast_clongdouble_to_longdouble : > &_contig_cast_clongdouble_to_longdouble; > } > else { > return aligned ? &_aligned_cast_clongdouble_to_longdouble : > &_cast_clongdouble_to_longdouble; > } ># 887 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > > case NPY_CFLOAT: ># 899 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > if (src_stride == sizeof(npy_clongdouble) && > dst_stride == sizeof(npy_cfloat)) { > return aligned ? > &_aligned_contig_cast_clongdouble_to_cfloat : > &_contig_cast_clongdouble_to_cfloat; > } > else { > return aligned ? &_aligned_cast_clongdouble_to_cfloat : > &_cast_clongdouble_to_cfloat; > } ># 887 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > > case NPY_CDOUBLE: ># 899 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > if (src_stride == sizeof(npy_clongdouble) && > dst_stride == sizeof(npy_cdouble)) { > return aligned ? > &_aligned_contig_cast_clongdouble_to_cdouble : > &_contig_cast_clongdouble_to_cdouble; > } > else { > return aligned ? &_aligned_cast_clongdouble_to_cdouble : > &_cast_clongdouble_to_cdouble; > } ># 887 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > > case NPY_CLONGDOUBLE: ># 899 "numpy/core/src/multiarray/lowlevel_strided_loops.c.src" > if (src_stride == sizeof(npy_clongdouble) && > dst_stride == sizeof(npy_clongdouble)) { > return aligned ? > &_aligned_contig_cast_clongdouble_to_clongdouble : > &_contig_cast_clongdouble_to_clongdouble; > } > else { > return aligned ? &_aligned_cast_clongdouble_to_clongdouble : > &_cast_clongdouble_to_clongdouble; > } > > > > } > > > > } > > return ((void *)0); >} > > > > >typedef void (*_npy_stridedtransfer_dealloc)(void *); >static void >PyArray_FreeStridedTransferData(void *transferdata) >{ > if (transferdata != ((void *)0)) { > _npy_stridedtransfer_dealloc dealloc = > *((_npy_stridedtransfer_dealloc *)transferdata); > dealloc(transferdata); > } >} > >typedef void *(*_npy_stridedtransfer_copy)(void *); >static void * >PyArray_CopyStridedTransferData(void *transferdata) >{ > if (transferdata != ((void *)0)) { > _npy_stridedtransfer_copy copy = > *((_npy_stridedtransfer_copy *)transferdata + 1); > return copy(transferdata); > } > > return ((void *)0); >} > > > >static npy_intp >PyArray_TransferNDimToStrided(npy_intp ndim, > char *dst, npy_intp dst_stride, > char *src, npy_intp *src_strides, npy_intp src_strides_inc, > npy_intp *coords, npy_intp coords_inc, > npy_intp *shape, npy_intp shape_inc, > npy_intp count, npy_intp src_itemsize, > PyArray_StridedTransferFn *stransfer, > void *data) >{ > npy_intp i, M, N, coord0, shape0, src_stride0, coord1, shape1, src_stride1; > > > coord0 = coords[0]; > shape0 = shape[0]; > src_stride0 = src_strides[0]; > N = shape0 - coord0; > if (N >= count) { > stransfer(dst, dst_stride, src, src_stride0, count, src_itemsize, data); > return 0; > } > stransfer(dst, dst_stride, src, src_stride0, N, src_itemsize, data); > count -= N; > > > if (ndim == 1) { > return count; > } > > > coord1 = (coords + coords_inc)[0]; > shape1 = (shape + shape_inc)[0]; > src_stride1 = (src_strides + src_strides_inc)[0]; > src = src - coord0*src_stride0 + src_stride1; > dst += N*dst_stride; > > > M = (shape1 - coord1 - 1); > N = shape0*M; > for (i = 0; i < M; ++i) { > if (shape0 >= count) { > stransfer(dst, dst_stride, src, src_stride0, > count, src_itemsize, data); > return 0; > } > else { > stransfer(dst, dst_stride, src, src_stride0, > shape0, src_itemsize, data); > } > count -= shape0; > src += src_stride1; > dst += shape0*dst_stride; > } > > > if (ndim == 2) { > return count; > } > > > else { > > struct { > npy_intp coord, shape, src_stride; > } it[32]; > > > coords += 2*coords_inc; > shape += 2*shape_inc; > src_strides += 2*src_strides_inc; > for (i = 0; i < ndim-2; ++i) { > it[i].coord = coords[0]; > it[i].shape = shape[0]; > it[i].src_stride = src_strides[0]; > coords += coords_inc; > shape += shape_inc; > src_strides += src_strides_inc; > } > > for (;;) { > > src = src - shape1*src_stride1; > > > for (i = 0; i < ndim-2; ++i) { > src += it[i].src_stride; > if (++it[i].coord >= it[i].shape) { > it[i].coord = 0; > src -= it[i].src_stride*it[i].shape; > } > else { > break; > } > } > > if (i == ndim-2) { > return count; > } > > > for (i = 0; i < shape1; ++i) { > if (shape0 >= count) { > stransfer(dst, dst_stride, src, src_stride0, > count, src_itemsize, data); > return 0; > } > else { > stransfer(dst, dst_stride, src, src_stride0, > shape0, src_itemsize, data); > } > count -= shape0; > src += src_stride1; > dst += shape0*dst_stride; > } > } > } >} > >static npy_intp >PyArray_TransferStridedToNDim(npy_intp ndim, > char *dst, npy_intp *dst_strides, npy_intp dst_strides_inc, > char *src, npy_intp src_stride, > npy_intp *coords, npy_intp coords_inc, > npy_intp *shape, npy_intp shape_inc, > npy_intp count, npy_intp src_itemsize, > PyArray_StridedTransferFn *stransfer, > void *data) >{ > npy_intp i, M, N, coord0, shape0, dst_stride0, coord1, shape1, dst_stride1; > > > coord0 = coords[0]; > shape0 = shape[0]; > dst_stride0 = dst_strides[0]; > N = shape0 - coord0; > if (N >= count) { > stransfer(dst, dst_stride0, src, src_stride, count, src_itemsize, data); > return 0; > } > stransfer(dst, dst_stride0, src, src_stride, N, src_itemsize, data); > count -= N; > > > if (ndim == 1) { > return count; > } > > > coord1 = (coords + coords_inc)[0]; > shape1 = (shape + shape_inc)[0]; > dst_stride1 = (dst_strides + dst_strides_inc)[0]; > dst = dst - coord0*dst_stride0 + dst_stride1; > src += N*src_stride; > > > M = (shape1 - coord1 - 1); > N = shape0*M; > for (i = 0; i < M; ++i) { > if (shape0 >= count) { > stransfer(dst, dst_stride0, src, src_stride, > count, src_itemsize, data); > return 0; > } > else { > stransfer(dst, dst_stride0, src, src_stride, > shape0, src_itemsize, data); > } > count -= shape0; > dst += dst_stride1; > src += shape0*src_stride; > } > > > if (ndim == 2) { > return count; > } > > > else { > > struct { > npy_intp coord, shape, dst_stride; > } it[32]; > > > coords += 2*coords_inc; > shape += 2*shape_inc; > dst_strides += 2*dst_strides_inc; > for (i = 0; i < ndim-2; ++i) { > it[i].coord = coords[0]; > it[i].shape = shape[0]; > it[i].dst_stride = dst_strides[0]; > coords += coords_inc; > shape += shape_inc; > dst_strides += dst_strides_inc; > } > > for (;;) { > > dst = dst - shape1*dst_stride1; > > > for (i = 0; i < ndim-2; ++i) { > dst += it[i].dst_stride; > if (++it[i].coord >= it[i].shape) { > it[i].coord = 0; > dst -= it[i].dst_stride*it[i].shape; > } > else { > break; > } > } > > if (i == ndim-2) { > return count; > } > > > for (i = 0; i < shape1; ++i) { > if (shape0 >= count) { > stransfer(dst, dst_stride0, src, src_stride, > count, src_itemsize, data); > return 0; > } > else { > stransfer(dst, dst_stride0, src, src_stride, > shape0, src_itemsize, data); > } > count -= shape0; > dst += dst_stride1; > src += shape0*src_stride; > } > } > } >} ># 41 "numpy/core/src/multiarray/multiarraymodule_onefile.c" 2 ># 1 "numpy/core/src/multiarray/dtype_transfer.c" 1 ># 49 "numpy/core/src/multiarray/dtype_transfer.c" >static int >get_decsrcref_transfer_function(int aligned, > npy_intp src_stride, > PyArray_Descr *src_dtype, > PyArray_StridedTransferFn **out_stransfer, > void **out_transferdata, > int *out_needs_api); > > > > > > >static int >get_setdstzero_transfer_function(int aligned, > npy_intp dst_stride, > PyArray_Descr *dst_dtype, > PyArray_StridedTransferFn **out_stransfer, > void **out_transferdata, > int *out_needs_api); > > > > > > >static int >get_bool_setdstone_transfer_function(npy_intp dst_stride, > PyArray_StridedTransferFn **out_stransfer, > void **out_transferdata, > int *(__NPY_UNUSED_TAGGEDout_needs_api) __attribute__ ((__unused__))); > > > > >static void >_strided_to_strided_move_references(char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp src_itemsize, > void *data) >{ > PyObject *src_ref = ((void *)0), *dst_ref = ((void *)0); > while (N > 0) { > (*((PyObject **)(&src_ref)) = *((PyObject **)(src))); > (*((PyObject **)(&dst_ref)) = *((PyObject **)(dst))); > > > ; > do { if ((dst_ref) == ((void *)0)) ; else do { if ( --((PyObject*)(dst_ref))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(dst_ref)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(dst_ref)))); } while (0); } while (0); > > ; > (*((PyObject **)(dst)) = *((PyObject **)(&src_ref))); > > src_ref = ((void *)0); > (*((PyObject **)(src)) = *((PyObject **)(&src_ref))); > > src += src_stride; > dst += dst_stride; > --N; > } >} > > >static void >_strided_to_strided_copy_references(char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp src_itemsize, > void *data) >{ > PyObject *src_ref = ((void *)0), *dst_ref = ((void *)0); > while (N > 0) { > (*((PyObject **)(&src_ref)) = *((PyObject **)(src))); > (*((PyObject **)(&dst_ref)) = *((PyObject **)(dst))); > > > ; > do { if ((dst_ref) == ((void *)0)) ; else do { if ( --((PyObject*)(dst_ref))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(dst_ref)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(dst_ref)))); } while (0); } while (0); > > ; > (*((PyObject **)(dst)) = *((PyObject **)(&src_ref))); > > do { if ((src_ref) == ((void *)0)) ; else ( ((PyObject*)(src_ref))->ob_refcnt++); } while (0); > > src += src_stride; > dst += dst_stride; > --N; > } >} > > > >typedef void (*free_strided_transfer_data)(void *); >typedef void *(*copy_strided_transfer_data)(void *); > > >typedef struct { > free_strided_transfer_data freefunc; > copy_strided_transfer_data copyfunc; > npy_intp dst_itemsize; >} _strided_zero_pad_data; > > >void *_strided_zero_pad_data_copy(void *data) >{ > _strided_zero_pad_data *newdata = > (_strided_zero_pad_data *)PyMem_Malloc( > sizeof(_strided_zero_pad_data)); > if (newdata == ((void *)0)) { > return ((void *)0); > } > > memcpy(newdata, data, sizeof(_strided_zero_pad_data)); > > return newdata; >} > > > > > >static void >_strided_to_strided_zero_pad_copy(char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp src_itemsize, > void *data) >{ > _strided_zero_pad_data *d = (_strided_zero_pad_data *)data; > npy_intp dst_itemsize = d->dst_itemsize; > npy_intp zero_size = dst_itemsize-src_itemsize; > > while (N > 0) { > memcpy(dst, src, src_itemsize); > memset(dst + src_itemsize, 0, zero_size); > src += src_stride; > dst += dst_stride; > --N; > } >} > > > > > >static void >_strided_to_strided_truncate_copy(char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp src_itemsize, > void *data) >{ > _strided_zero_pad_data *d = (_strided_zero_pad_data *)data; > npy_intp dst_itemsize = d->dst_itemsize; > > while (N > 0) { > memcpy(dst, src, dst_itemsize); > src += src_stride; > dst += dst_stride; > --N; > } >} > >static int >PyArray_GetStridedZeroPadCopyFn(int aligned, > npy_intp src_stride, npy_intp dst_stride, > npy_intp src_itemsize, npy_intp dst_itemsize, > PyArray_StridedTransferFn **out_stransfer, > void **out_transferdata) >{ > if (src_itemsize == dst_itemsize) { > *out_stransfer = PyArray_GetStridedCopyFn(aligned, src_stride, > dst_stride, src_itemsize); > *out_transferdata = ((void *)0); > return (*out_stransfer == ((void *)0)) ? 0 : 1; > } > else { > _strided_zero_pad_data *d = PyMem_Malloc( > sizeof(_strided_zero_pad_data)); > if (d == ((void *)0)) { > PyErr_NoMemory(); > return 0; > } > d->dst_itemsize = dst_itemsize; > d->freefunc = &PyMem_Free; > d->copyfunc = &_strided_zero_pad_data_copy; > > if (src_itemsize < dst_itemsize) { > *out_stransfer = &_strided_to_strided_zero_pad_copy; > } > else { > *out_stransfer = &_strided_to_strided_truncate_copy; > } > > *out_transferdata = d; > return 1; > } >} > > > > >typedef struct { > free_strided_transfer_data freefunc; > copy_strided_transfer_data copyfunc; > PyArray_StridedTransferFn *wrapped, > *tobuffer, *frombuffer; > void *wrappeddata, *todata, *fromdata; > npy_intp src_itemsize, dst_itemsize; > char *bufferin, *bufferout; >} _align_wrap_data; > > >void _align_wrap_data_free(void *data) >{ > _align_wrap_data *d = (_align_wrap_data *)data; > PyArray_FreeStridedTransferData(d->wrappeddata); > PyArray_FreeStridedTransferData(d->todata); > PyArray_FreeStridedTransferData(d->fromdata); > PyMem_Free(data); >} > > >void *_align_wrap_data_copy(void *data) >{ > _align_wrap_data *d = (_align_wrap_data *)data; > _align_wrap_data *newdata; > npy_intp basedatasize, datasize; > > > basedatasize = (sizeof(_align_wrap_data)+15)&(-0x10); > > datasize = basedatasize + > 128*d->src_itemsize + > 128*d->dst_itemsize; > > > newdata = (_align_wrap_data *)PyMem_Malloc(datasize); > if (newdata == ((void *)0)) { > return ((void *)0); > } > memcpy(newdata, data, basedatasize); > newdata->bufferin = (char *)newdata + basedatasize; > newdata->bufferout = newdata->bufferin + > 128*newdata->src_itemsize; > if (newdata->wrappeddata != ((void *)0)) { > newdata->wrappeddata = > PyArray_CopyStridedTransferData(d->wrappeddata); > if (newdata->wrappeddata == ((void *)0)) { > PyMem_Free(newdata); > return ((void *)0); > } > } > if (newdata->todata != ((void *)0)) { > newdata->todata = PyArray_CopyStridedTransferData(d->todata); > if (newdata->todata == ((void *)0)) { > PyArray_FreeStridedTransferData(newdata->wrappeddata); > PyMem_Free(newdata); > return ((void *)0); > } > } > if (newdata->fromdata != ((void *)0)) { > newdata->fromdata = PyArray_CopyStridedTransferData(d->fromdata); > if (newdata->fromdata == ((void *)0)) { > PyArray_FreeStridedTransferData(newdata->wrappeddata); > PyArray_FreeStridedTransferData(newdata->todata); > PyMem_Free(newdata); > return ((void *)0); > } > } > > return (void *)newdata; >} > >static void >_strided_to_strided_contig_align_wrap(char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp src_itemsize, > void *data) >{ > _align_wrap_data *d = (_align_wrap_data *)data; > PyArray_StridedTransferFn *wrapped = d->wrapped, > *tobuffer = d->tobuffer, > *frombuffer = d->frombuffer; > npy_intp dst_itemsize = d->dst_itemsize; > void *wrappeddata = d->wrappeddata, > *todata = d->todata, > *fromdata = d->fromdata; > char *bufferin = d->bufferin, *bufferout = d->bufferout; > > for(;;) { > if (N > 128) { > tobuffer(bufferin, src_itemsize, src, src_stride, > 128, > src_itemsize, todata); > wrapped(bufferout, dst_itemsize, bufferin, src_itemsize, > 128, > src_itemsize, wrappeddata); > frombuffer(dst, dst_stride, bufferout, dst_itemsize, > 128, > dst_itemsize, fromdata); > N -= 128; > src += 128*src_stride; > dst += 128*dst_stride; > } > else { > tobuffer(bufferin, src_itemsize, src, src_stride, N, > src_itemsize, todata); > wrapped(bufferout, dst_itemsize, bufferin, src_itemsize, N, > src_itemsize, wrappeddata); > frombuffer(dst, dst_stride, bufferout, dst_itemsize, N, > dst_itemsize, fromdata); > return; > } > } >} > >static void >_strided_to_strided_contig_align_wrap_init_dest(char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp src_itemsize, > void *data) >{ > _align_wrap_data *d = (_align_wrap_data *)data; > PyArray_StridedTransferFn *wrapped = d->wrapped, > *tobuffer = d->tobuffer, > *frombuffer = d->frombuffer; > npy_intp dst_itemsize = d->dst_itemsize; > void *wrappeddata = d->wrappeddata, > *todata = d->todata, > *fromdata = d->fromdata; > char *bufferin = d->bufferin, *bufferout = d->bufferout; > > for(;;) { > if (N > 128) { > tobuffer(bufferin, src_itemsize, src, src_stride, > 128, > src_itemsize, todata); > memset(bufferout, 0, dst_itemsize*128); > wrapped(bufferout, dst_itemsize, bufferin, src_itemsize, > 128, > src_itemsize, wrappeddata); > frombuffer(dst, dst_stride, bufferout, dst_itemsize, > 128, > dst_itemsize, fromdata); > N -= 128; > src += 128*src_stride; > dst += 128*dst_stride; > } > else { > tobuffer(bufferin, src_itemsize, src, src_stride, N, > src_itemsize, todata); > memset(bufferout, 0, dst_itemsize*N); > wrapped(bufferout, dst_itemsize, bufferin, src_itemsize, N, > src_itemsize, wrappeddata); > frombuffer(dst, dst_stride, bufferout, dst_itemsize, N, > dst_itemsize, fromdata); > return; > } > } >} ># 423 "numpy/core/src/multiarray/dtype_transfer.c" >static int >wrap_aligned_contig_transfer_function( > npy_intp src_itemsize, npy_intp dst_itemsize, > PyArray_StridedTransferFn *tobuffer, void *todata, > PyArray_StridedTransferFn *frombuffer, void *fromdata, > PyArray_StridedTransferFn *wrapped, void *wrappeddata, > int init_dest, > PyArray_StridedTransferFn **out_stransfer, > void **out_transferdata) >{ > _align_wrap_data *data; > npy_intp basedatasize, datasize; > > > basedatasize = (sizeof(_align_wrap_data)+15)&(-0x10); > > datasize = basedatasize + > 128*src_itemsize + > 128*dst_itemsize; > > > data = (_align_wrap_data *)PyMem_Malloc(datasize); > if (data == ((void *)0)) { > PyErr_NoMemory(); > return 0; > } > data->freefunc = &_align_wrap_data_free; > data->copyfunc = &_align_wrap_data_copy; > data->tobuffer = tobuffer; > data->todata = todata; > data->frombuffer = frombuffer; > data->fromdata = fromdata; > data->wrapped = wrapped; > data->wrappeddata = wrappeddata; > data->src_itemsize = src_itemsize; > data->dst_itemsize = dst_itemsize; > data->bufferin = (char *)data + basedatasize; > data->bufferout = data->bufferin + > 128*src_itemsize; > > > if (init_dest) { > *out_stransfer = &_strided_to_strided_contig_align_wrap_init_dest; > } > else { > *out_stransfer = &_strided_to_strided_contig_align_wrap; > } > *out_transferdata = data; > > return 1; >} > > > >typedef struct { > free_strided_transfer_data freefunc; > copy_strided_transfer_data copyfunc; > PyArray_CopySwapNFunc *copyswapn; > int swap; > PyArrayObject *arr; >} _wrap_copy_swap_data; > > >void _wrap_copy_swap_data_free(void *data) >{ > _wrap_copy_swap_data *d = (_wrap_copy_swap_data *)data; > do { if ( --((PyObject*)(d->arr))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(d->arr)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(d->arr)))); } while (0); > PyMem_Free(data); >} > > >void *_wrap_copy_swap_data_copy(void *data) >{ > _wrap_copy_swap_data *newdata = > (_wrap_copy_swap_data *)PyMem_Malloc(sizeof(_wrap_copy_swap_data)); > if (newdata == ((void *)0)) { > return ((void *)0); > } > > memcpy(newdata, data, sizeof(_wrap_copy_swap_data)); > ( ((PyObject*)(newdata->arr))->ob_refcnt++); > > return (void *)newdata; >} > >static void >_strided_to_strided_wrap_copy_swap(char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *data) >{ > _wrap_copy_swap_data *d = (_wrap_copy_swap_data *)data; > > d->copyswapn(dst, dst_stride, src, src_stride, N, d->swap, d->arr); >} > > >static int >wrap_copy_swap_function(int aligned, > npy_intp src_stride, npy_intp dst_stride, > PyArray_Descr *dtype, > int should_swap, > PyArray_StridedTransferFn **out_stransfer, > void **out_transferdata) >{ > _wrap_copy_swap_data *data; > npy_intp shape = 1; > > > data = (_wrap_copy_swap_data *)PyMem_Malloc(sizeof(_wrap_copy_swap_data)); > if (data == ((void *)0)) { > PyErr_NoMemory(); > *out_stransfer = ((void *)0); > *out_transferdata = ((void *)0); > return 0; > } > > data->freefunc = &_wrap_copy_swap_data_free; > data->copyfunc = &_wrap_copy_swap_data_copy; > data->copyswapn = dtype->f->copyswapn; > data->swap = should_swap; > > > > > > ( ((PyObject*)(dtype))->ob_refcnt++); > data->arr = (PyArrayObject *)PyArray_NewFromDescr(&PyArray_Type, dtype, > 1, &shape, ((void *)0), ((void *)0), 0, ((void *)0)); > if (data->arr == ((void *)0)) { > PyMem_Free(data); > return 0; > } > > *out_stransfer = &_strided_to_strided_wrap_copy_swap; > *out_transferdata = data; > > return 1; >} > > > > >typedef struct { > free_strided_transfer_data freefunc; > copy_strided_transfer_data copyfunc; > PyArray_VectorUnaryFunc *castfunc; > PyArrayObject *aip, *aop; >} _strided_cast_data; > > >void _strided_cast_data_free(void *data) >{ > _strided_cast_data *d = (_strided_cast_data *)data; > do { if ( --((PyObject*)(d->aip))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(d->aip)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(d->aip)))); } while (0); > do { if ( --((PyObject*)(d->aop))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(d->aop)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(d->aop)))); } while (0); > PyMem_Free(data); >} > > >void *_strided_cast_data_copy(void *data) >{ > _strided_cast_data *newdata = > (_strided_cast_data *)PyMem_Malloc(sizeof(_strided_cast_data)); > if (newdata == ((void *)0)) { > return ((void *)0); > } > > memcpy(newdata, data, sizeof(_strided_cast_data)); > ( ((PyObject*)(newdata->aip))->ob_refcnt++); > ( ((PyObject*)(newdata->aop))->ob_refcnt++); > > return (void *)newdata; >} > >static void >_aligned_strided_to_strided_cast(char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp src_itemsize, > void *data) >{ > _strided_cast_data *d = (_strided_cast_data *)data; > PyArray_VectorUnaryFunc *castfunc = d->castfunc; > PyArrayObject *aip = d->aip, *aop = d->aop; > > while (N > 0) { > castfunc(src, dst, 1, aip, aop); > dst += dst_stride; > src += src_stride; > --N; > } >} > > >static void >_aligned_strided_to_strided_cast_decref_src(char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp src_itemsize, > void *data) >{ > _strided_cast_data *d = (_strided_cast_data *)data; > PyArray_VectorUnaryFunc *castfunc = d->castfunc; > PyArrayObject *aip = d->aip, *aop = d->aop; > PyObject *src_ref; > > while (N > 0) { > castfunc(src, dst, 1, aip, aop); > > > (*((PyObject **)(&src_ref)) = *((PyObject **)(src))); > ; > do { if ((src_ref) == ((void *)0)) ; else do { if ( --((PyObject*)(src_ref))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(src_ref)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(src_ref)))); } while (0); } while (0); > > dst += dst_stride; > src += src_stride; > --N; > } >} > >static void >_aligned_contig_to_contig_cast(char *dst, npy_intp (__NPY_UNUSED_TAGGEDdst_stride) __attribute__ ((__unused__)), > char *src, npy_intp (__NPY_UNUSED_TAGGEDsrc_stride) __attribute__ ((__unused__)), > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDitemsize) __attribute__ ((__unused__)), > void *data) >{ > _strided_cast_data *d = (_strided_cast_data *)data; > > d->castfunc(src, dst, N, d->aip, d->aop); >} > >static int >get_nbo_cast_numeric_transfer_function(int aligned, > npy_intp src_stride, npy_intp dst_stride, > int src_type_num, int dst_type_num, > PyArray_StridedTransferFn **out_stransfer, > void **out_transferdata) >{ > > if ((((src_type_num) >= NPY_CFLOAT) && ((src_type_num) <= NPY_CLONGDOUBLE)) && > !(((dst_type_num) >= NPY_CFLOAT) && ((dst_type_num) <= NPY_CLONGDOUBLE)) && > !((dst_type_num) == NPY_BOOL)) { > PyObject *cls = ((void *)0), *obj = ((void *)0); > int ret; > obj = PyImport_ImportModule("numpy.core"); > if (obj) { > cls = PyObject_GetAttrString(obj, "ComplexWarning"); > do { if ( --((PyObject*)(obj))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(obj)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(obj)))); } while (0); > } > > ret = PyErr_WarnEx(cls, > "Casting complex values to real discards " > "the imaginary part", 1); > > > > > > do { if ((cls) == ((void *)0)) ; else do { if ( --((PyObject*)(cls))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(cls)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(cls)))); } while (0); } while (0); > if (ret < 0) { > return 0; > } > } > > *out_stransfer = PyArray_GetStridedNumericCastFn(aligned, > src_stride, dst_stride, > src_type_num, dst_type_num); > *out_transferdata = ((void *)0); > if (*out_stransfer == ((void *)0)) { > PyErr_SetString(PyExc_ValueError, > "unexpected error in GetStridedNumericCastFn"); > return 0; > } > > return 1; >} > >static int >get_nbo_cast_transfer_function(int aligned, > npy_intp src_stride, npy_intp dst_stride, > PyArray_Descr *src_dtype, PyArray_Descr *dst_dtype, > int move_references, > PyArray_StridedTransferFn **out_stransfer, > void **out_transferdata, > int *out_needs_api, > int *out_needs_wrap) >{ > _strided_cast_data *data; > PyArray_VectorUnaryFunc *castfunc; > PyArray_Descr *tmp_dtype; > npy_intp shape = 1, src_itemsize = src_dtype->elsize, > dst_itemsize = dst_dtype->elsize; > > if ((((src_dtype->type_num) <= NPY_CLONGDOUBLE) || ((src_dtype->type_num) == NPY_HALF)) && > (((dst_dtype->type_num) <= NPY_CLONGDOUBLE) || ((dst_dtype->type_num) == NPY_HALF))) { > *out_needs_wrap = !((src_dtype->byteorder) != '>') || > !((dst_dtype->byteorder) != '>'); > return get_nbo_cast_numeric_transfer_function(aligned, > src_stride, dst_stride, > src_dtype->type_num, dst_dtype->type_num, > out_stransfer, out_transferdata); > } > > *out_needs_wrap = !aligned || > !((src_dtype->byteorder) != '>') || > !((dst_dtype->byteorder) != '>'); > > > switch (src_dtype->type_num) { > case NPY_OBJECT: > case NPY_STRING: > case NPY_UNICODE: > case NPY_VOID: > if (out_needs_api) { > *out_needs_api = 1; > } > break; > } > switch (dst_dtype->type_num) { > case NPY_OBJECT: > case NPY_STRING: > case NPY_UNICODE: > case NPY_VOID: > if (out_needs_api) { > *out_needs_api = 1; > } > break; > } > > > castfunc = PyArray_GetCastFunc(src_dtype, dst_dtype->type_num); > if (!castfunc) { > *out_stransfer = ((void *)0); > *out_transferdata = ((void *)0); > return 0; > } > > > data = (_strided_cast_data *)PyMem_Malloc(sizeof(_strided_cast_data)); > if (data == ((void *)0)) { > PyErr_NoMemory(); > *out_stransfer = ((void *)0); > *out_transferdata = ((void *)0); > return 0; > } > data->freefunc = &_strided_cast_data_free; > data->copyfunc = &_strided_cast_data_copy; > data->castfunc = castfunc; > > > > > > > if (((src_dtype->byteorder) != '>')) { > tmp_dtype = src_dtype; > ( ((PyObject*)(tmp_dtype))->ob_refcnt++); > } > else { > tmp_dtype = PyArray_DescrNewByteorder(src_dtype, '='); > if (tmp_dtype == ((void *)0)) { > PyMem_Free(data); > return 0; > } > } > data->aip = (PyArrayObject *)PyArray_NewFromDescr(&PyArray_Type, tmp_dtype, > 1, &shape, ((void *)0), ((void *)0), 0, ((void *)0)); > if (data->aip == ((void *)0)) { > PyMem_Free(data); > return 0; > } > > > > > > > if (((dst_dtype->byteorder) != '>')) { > tmp_dtype = dst_dtype; > ( ((PyObject*)(tmp_dtype))->ob_refcnt++); > } > else { > tmp_dtype = PyArray_DescrNewByteorder(dst_dtype, '='); > if (tmp_dtype == ((void *)0)) { > do { if ( --((PyObject*)(data->aip))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(data->aip)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(data->aip)))); } while (0); > PyMem_Free(data); > return 0; > } > } > data->aop = (PyArrayObject *)PyArray_NewFromDescr(&PyArray_Type, tmp_dtype, > 1, &shape, ((void *)0), ((void *)0), 0, ((void *)0)); > if (data->aop == ((void *)0)) { > do { if ( --((PyObject*)(data->aip))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(data->aip)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(data->aip)))); } while (0); > PyMem_Free(data); > return 0; > } > > > if (move_references && src_dtype->type_num == NPY_OBJECT) { > *out_stransfer = _aligned_strided_to_strided_cast_decref_src; > } > else { > > > > > > if ((src_stride == src_itemsize && dst_stride == dst_itemsize) || > *out_needs_wrap) { > *out_stransfer = _aligned_contig_to_contig_cast; > } > else { > *out_stransfer = _aligned_strided_to_strided_cast; > } > } > *out_transferdata = data; > > return 1; >} > >static int >get_cast_transfer_function(int aligned, > npy_intp src_stride, npy_intp dst_stride, > PyArray_Descr *src_dtype, PyArray_Descr *dst_dtype, > int move_references, > PyArray_StridedTransferFn **out_stransfer, > void **out_transferdata, > int *out_needs_api) >{ > PyArray_StridedTransferFn *caststransfer; > void *castdata, *todata = ((void *)0), *fromdata = ((void *)0); > int needs_wrap = 0; > npy_intp src_itemsize = src_dtype->elsize, > dst_itemsize = dst_dtype->elsize; > > if (src_dtype->type_num == dst_dtype->type_num) { > PyErr_SetString(PyExc_ValueError, > "low level cast function is for unequal type numbers"); > return 0; > } > > if (get_nbo_cast_transfer_function(aligned, > src_stride, dst_stride, > src_dtype, dst_dtype, > move_references, > &caststransfer, > &castdata, > out_needs_api, > &needs_wrap) != 1) { > return 0; > } > > > > > > if (!needs_wrap) { > *out_stransfer = caststransfer; > *out_transferdata = castdata; > > return 1; > } > > else { > PyArray_StridedTransferFn *tobuffer, *frombuffer; > > > > > if (src_dtype->type_num >= NPY_NTYPES) { > tobuffer = ((void *)0); > wrap_copy_swap_function(aligned, > src_stride, src_itemsize, > src_dtype, > !((src_dtype->byteorder) != '>'), > &tobuffer, &todata); > } > > else if (src_itemsize == 1 || ((src_dtype->byteorder) != '>')) { > tobuffer = PyArray_GetStridedCopyFn(aligned, > src_stride, src_itemsize, > src_itemsize); > } > > else if(src_dtype->kind != 'c') { > tobuffer = PyArray_GetStridedCopySwapFn(aligned, > src_stride, src_itemsize, > src_itemsize); > } > > else { > tobuffer = PyArray_GetStridedCopySwapPairFn(aligned, > src_stride, src_itemsize, > src_itemsize); > } > > > > > if (dst_dtype->type_num >= NPY_NTYPES) { > frombuffer = ((void *)0); > wrap_copy_swap_function(aligned, > dst_itemsize, dst_stride, > dst_dtype, > !((dst_dtype->byteorder) != '>'), > &frombuffer, &fromdata); > } > > else if (dst_itemsize == 1 || ((dst_dtype->byteorder) != '>')) { > if (dst_dtype->type_num == NPY_OBJECT) { > frombuffer = &_strided_to_strided_move_references; > } > else { > frombuffer = PyArray_GetStridedCopyFn(aligned, > dst_itemsize, dst_stride, > dst_itemsize); > } > } > > else if(dst_dtype->kind != 'c') { > frombuffer = PyArray_GetStridedCopySwapFn(aligned, > dst_itemsize, dst_stride, > dst_itemsize); > } > > else { > frombuffer = PyArray_GetStridedCopySwapPairFn(aligned, > dst_itemsize, dst_stride, > dst_itemsize); > } > > if (frombuffer == ((void *)0) || tobuffer == ((void *)0)) { > PyArray_FreeStridedTransferData(castdata); > PyArray_FreeStridedTransferData(todata); > PyArray_FreeStridedTransferData(fromdata); > return 0; > } > > *out_stransfer = caststransfer; > > > if (wrap_aligned_contig_transfer_function( > src_itemsize, dst_itemsize, > tobuffer, todata, > frombuffer, fromdata, > caststransfer, castdata, > (((dst_dtype)->flags & (0x08)) == (0x08)), > out_stransfer, out_transferdata) != 1) { > PyArray_FreeStridedTransferData(castdata); > PyArray_FreeStridedTransferData(todata); > PyArray_FreeStridedTransferData(fromdata); > return 0; > } > > return 1; > } >} > > > > >typedef struct { > free_strided_transfer_data freefunc; > copy_strided_transfer_data copyfunc; > PyArray_StridedTransferFn *stransfer; > void *data; > npy_intp N, dst_itemsize; > > PyArray_StridedTransferFn *stransfer_finish_src; > void *data_finish_src; >} _one_to_n_data; > > >void _one_to_n_data_free(void *data) >{ > _one_to_n_data *d = (_one_to_n_data *)data; > PyArray_FreeStridedTransferData(d->data); > PyArray_FreeStridedTransferData(d->data_finish_src); > PyMem_Free(data); >} > > >void *_one_to_n_data_copy(void *data) >{ > _one_to_n_data *d = (_one_to_n_data *)data; > _one_to_n_data *newdata; > > > newdata = (_one_to_n_data *)PyMem_Malloc(sizeof(_one_to_n_data)); > if (newdata == ((void *)0)) { > return ((void *)0); > } > memcpy(newdata, data, sizeof(_one_to_n_data)); > if (d->data != ((void *)0)) { > newdata->data = PyArray_CopyStridedTransferData(d->data); > if (newdata->data == ((void *)0)) { > PyMem_Free(newdata); > return ((void *)0); > } > } > if (d->data_finish_src != ((void *)0)) { > newdata->data_finish_src = > PyArray_CopyStridedTransferData(d->data_finish_src); > if (newdata->data_finish_src == ((void *)0)) { > PyArray_FreeStridedTransferData(newdata->data); > PyMem_Free(newdata); > return ((void *)0); > } > } > > return (void *)newdata; >} > >static void >_strided_to_strided_one_to_n(char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp src_itemsize, > void *data) >{ > _one_to_n_data *d = (_one_to_n_data *)data; > PyArray_StridedTransferFn *subtransfer = d->stransfer; > void *subdata = d->data; > npy_intp subN = d->N, dst_itemsize = d->dst_itemsize; > > while (N > 0) { > subtransfer(dst, dst_itemsize, > src, 0, > subN, src_itemsize, > subdata); > > src += src_stride; > dst += dst_stride; > --N; > } >} > >static void >_strided_to_strided_one_to_n_with_finish(char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp src_itemsize, > void *data) >{ > _one_to_n_data *d = (_one_to_n_data *)data; > PyArray_StridedTransferFn *subtransfer = d->stransfer, > *stransfer_finish_src = d->stransfer_finish_src; > void *subdata = d->data, *data_finish_src = data_finish_src; > npy_intp subN = d->N, dst_itemsize = d->dst_itemsize; > > while (N > 0) { > subtransfer(dst, dst_itemsize, > src, 0, > subN, src_itemsize, > subdata); > > > stransfer_finish_src(((void *)0), 0, > src, 0, > 1, src_itemsize, > data_finish_src); > > src += src_stride; > dst += dst_stride; > --N; > } >} > > > > > > > >static int >wrap_transfer_function_one_to_n( > PyArray_StridedTransferFn *stransfer_inner, > void *data_inner, > PyArray_StridedTransferFn *stransfer_finish_src, > void *data_finish_src, > npy_intp dst_itemsize, > npy_intp N, > PyArray_StridedTransferFn **out_stransfer, > void **out_transferdata) >{ > _one_to_n_data *data; > > > data = PyMem_Malloc(sizeof(_one_to_n_data)); > if (data == ((void *)0)) { > PyErr_NoMemory(); > return 0; > } > > data->freefunc = &_one_to_n_data_free; > data->copyfunc = &_one_to_n_data_copy; > data->stransfer = stransfer_inner; > data->data = data_inner; > data->stransfer_finish_src = stransfer_finish_src; > data->data_finish_src = data_finish_src; > data->N = N; > data->dst_itemsize = dst_itemsize; > > if (stransfer_finish_src == ((void *)0)) { > *out_stransfer = &_strided_to_strided_one_to_n; > } > else { > *out_stransfer = &_strided_to_strided_one_to_n_with_finish; > } > *out_transferdata = data; > > return 1; >} > >static int >get_one_to_n_transfer_function(int aligned, > npy_intp src_stride, npy_intp dst_stride, > PyArray_Descr *src_dtype, PyArray_Descr *dst_dtype, > int move_references, > npy_intp N, > PyArray_StridedTransferFn **out_stransfer, > void **out_transferdata, > int *out_needs_api) >{ > PyArray_StridedTransferFn *stransfer, *stransfer_finish_src = ((void *)0); > void *data, *data_finish_src = ((void *)0); > > > > > > > > if (PyArray_GetDTypeTransferFunction(aligned, > 0, dst_dtype->elsize, > src_dtype, dst_dtype, > 0, > &stransfer, &data, > out_needs_api) != 1) { > return 0; > } > > > if (move_references && (((src_dtype)->flags & (0x01)) == (0x01))) { > if (get_decsrcref_transfer_function(aligned, > src_stride, > src_dtype, > &stransfer_finish_src, > &data_finish_src, > out_needs_api) != 1) { > PyArray_FreeStridedTransferData(data); > return 0; > } > } > > if (wrap_transfer_function_one_to_n(stransfer, data, > stransfer_finish_src, data_finish_src, > dst_dtype->elsize, > N, > out_stransfer, out_transferdata) != 1) { > PyArray_FreeStridedTransferData(data); > PyArray_FreeStridedTransferData(data_finish_src); > return 0; > } > > return 1; >} > > > > >typedef struct { > free_strided_transfer_data freefunc; > copy_strided_transfer_data copyfunc; > PyArray_StridedTransferFn *stransfer; > void *data; > npy_intp N, src_itemsize, dst_itemsize; >} _n_to_n_data; > > >void _n_to_n_data_free(void *data) >{ > _n_to_n_data *d = (_n_to_n_data *)data; > PyArray_FreeStridedTransferData(d->data); > PyMem_Free(data); >} > > >void *_n_to_n_data_copy(void *data) >{ > _n_to_n_data *d = (_n_to_n_data *)data; > _n_to_n_data *newdata; > > > newdata = (_n_to_n_data *)PyMem_Malloc(sizeof(_n_to_n_data)); > if (newdata == ((void *)0)) { > return ((void *)0); > } > memcpy(newdata, data, sizeof(_n_to_n_data)); > if (newdata->data != ((void *)0)) { > newdata->data = PyArray_CopyStridedTransferData(d->data); > if (newdata->data == ((void *)0)) { > PyMem_Free(newdata); > return ((void *)0); > } > } > > return (void *)newdata; >} > >static void >_strided_to_strided_n_to_n(char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp src_itemsize, > void *data) >{ > _n_to_n_data *d = (_n_to_n_data *)data; > PyArray_StridedTransferFn *subtransfer = d->stransfer; > void *subdata = d->data; > npy_intp subN = d->N, src_subitemsize = d->src_itemsize, > dst_subitemsize = d->dst_itemsize; > > while (N > 0) { > subtransfer(dst, dst_subitemsize, > src, src_subitemsize, > subN, src_subitemsize, > subdata); > > src += src_stride; > dst += dst_stride; > --N; > } >} > >static void >_contig_to_contig_n_to_n(char *dst, npy_intp (__NPY_UNUSED_TAGGEDdst_stride) __attribute__ ((__unused__)), > char *src, npy_intp (__NPY_UNUSED_TAGGEDsrc_stride) __attribute__ ((__unused__)), > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *data) >{ > _n_to_n_data *d = (_n_to_n_data *)data; > PyArray_StridedTransferFn *subtransfer = d->stransfer; > void *subdata = d->data; > npy_intp subN = d->N, src_subitemsize = d->src_itemsize, > dst_subitemsize = d->dst_itemsize; > > subtransfer(dst, dst_subitemsize, > src, src_subitemsize, > subN*N, src_subitemsize, > subdata); >} > > > > > >static int >wrap_transfer_function_n_to_n( > PyArray_StridedTransferFn *stransfer_inner, > void *data_inner, > npy_intp src_stride, npy_intp dst_stride, > npy_intp src_itemsize, npy_intp dst_itemsize, > npy_intp N, > PyArray_StridedTransferFn **out_stransfer, > void **out_transferdata) >{ > _n_to_n_data *data; > > data = PyMem_Malloc(sizeof(_n_to_n_data)); > if (data == ((void *)0)) { > PyErr_NoMemory(); > return 0; > } > > data->freefunc = &_n_to_n_data_free; > data->copyfunc = &_n_to_n_data_copy; > data->stransfer = stransfer_inner; > data->data = data_inner; > data->N = N; > data->src_itemsize = src_itemsize; > data->dst_itemsize = dst_itemsize; > > > > > > if (src_stride == N * src_itemsize && > dst_stride == N * dst_itemsize) { > *out_stransfer = &_contig_to_contig_n_to_n; > } > else { > *out_stransfer = &_strided_to_strided_n_to_n; > } > *out_transferdata = data; > > return 1; >} > >static int >get_n_to_n_transfer_function(int aligned, > npy_intp src_stride, npy_intp dst_stride, > PyArray_Descr *src_dtype, PyArray_Descr *dst_dtype, > int move_references, > npy_intp N, > PyArray_StridedTransferFn **out_stransfer, > void **out_transferdata, > int *out_needs_api) >{ > PyArray_StridedTransferFn *stransfer; > void *data; > > > > > > if (PyArray_GetDTypeTransferFunction(aligned, > src_dtype->elsize, dst_dtype->elsize, > src_dtype, dst_dtype, > move_references, > &stransfer, &data, > out_needs_api) != 1) { > return 0; > } > > if (wrap_transfer_function_n_to_n(stransfer, data, > src_stride, dst_stride, > src_dtype->elsize, dst_dtype->elsize, > N, > out_stransfer, > out_transferdata) != 1) { > PyArray_FreeStridedTransferData(data); > return 0; > } > > return 1; >} > > > >typedef struct { > npy_intp offset, count; >} _subarray_broadcast_offsetrun; > > >typedef struct { > free_strided_transfer_data freefunc; > copy_strided_transfer_data copyfunc; > PyArray_StridedTransferFn *stransfer; > void *data; > npy_intp src_N, dst_N, src_itemsize, dst_itemsize; > PyArray_StridedTransferFn *stransfer_decsrcref; > void *data_decsrcref; > PyArray_StridedTransferFn *stransfer_decdstref; > void *data_decdstref; > > npy_intp run_count; > _subarray_broadcast_offsetrun offsetruns; >} _subarray_broadcast_data; > > >void _subarray_broadcast_data_free(void *data) >{ > _subarray_broadcast_data *d = (_subarray_broadcast_data *)data; > PyArray_FreeStridedTransferData(d->data); > PyArray_FreeStridedTransferData(d->data_decsrcref); > PyArray_FreeStridedTransferData(d->data_decdstref); > PyMem_Free(data); >} > > >void *_subarray_broadcast_data_copy( void *data) >{ > _subarray_broadcast_data *d = (_subarray_broadcast_data *)data; > _subarray_broadcast_data *newdata; > npy_intp run_count = d->run_count, structsize; > > structsize = sizeof(_subarray_broadcast_data) + > run_count*sizeof(_subarray_broadcast_offsetrun); > > > newdata = (_subarray_broadcast_data *)PyMem_Malloc(structsize); > if (newdata == ((void *)0)) { > return ((void *)0); > } > memcpy(newdata, data, structsize); > if (d->data != ((void *)0)) { > newdata->data = PyArray_CopyStridedTransferData(d->data); > if (newdata->data == ((void *)0)) { > PyMem_Free(newdata); > return ((void *)0); > } > } > if (d->data_decsrcref != ((void *)0)) { > newdata->data_decsrcref = > PyArray_CopyStridedTransferData(d->data_decsrcref); > if (newdata->data_decsrcref == ((void *)0)) { > PyArray_FreeStridedTransferData(newdata->data); > PyMem_Free(newdata); > return ((void *)0); > } > } > if (d->data_decdstref != ((void *)0)) { > newdata->data_decdstref = > PyArray_CopyStridedTransferData(d->data_decdstref); > if (newdata->data_decdstref == ((void *)0)) { > PyArray_FreeStridedTransferData(newdata->data); > PyArray_FreeStridedTransferData(newdata->data_decsrcref); > PyMem_Free(newdata); > return ((void *)0); > } > } > > return newdata; >} > >static void >_strided_to_strided_subarray_broadcast(char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *data) >{ > _subarray_broadcast_data *d = (_subarray_broadcast_data *)data; > PyArray_StridedTransferFn *subtransfer = d->stransfer; > void *subdata = d->data; > npy_intp run, run_count = d->run_count, > src_subitemsize = d->src_itemsize, > dst_subitemsize = d->dst_itemsize; > npy_intp loop_index, offset, count; > char *dst_ptr; > _subarray_broadcast_offsetrun *offsetruns = &d->offsetruns; > > while (N > 0) { > loop_index = 0; > for (run = 0; run < run_count; ++run) { > offset = offsetruns[run].offset; > count = offsetruns[run].count; > dst_ptr = dst + loop_index*dst_subitemsize; > if (offset != -1) { > subtransfer(dst_ptr, dst_subitemsize, > src + offset, src_subitemsize, > count, src_subitemsize, > subdata); > } > else { > memset(dst_ptr, 0, count*dst_subitemsize); > } > loop_index += count; > } > > src += src_stride; > dst += dst_stride; > --N; > } >} > > >static void >_strided_to_strided_subarray_broadcast_withrefs(char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *data) >{ > _subarray_broadcast_data *d = (_subarray_broadcast_data *)data; > PyArray_StridedTransferFn *subtransfer = d->stransfer; > void *subdata = d->data; > PyArray_StridedTransferFn *stransfer_decsrcref = d->stransfer_decsrcref; > void *data_decsrcref = d->data_decsrcref; > PyArray_StridedTransferFn *stransfer_decdstref = d->stransfer_decdstref; > void *data_decdstref = d->data_decdstref; > npy_intp run, run_count = d->run_count, > src_subitemsize = d->src_itemsize, > dst_subitemsize = d->dst_itemsize, > src_subN = d->src_N; > npy_intp loop_index, offset, count; > char *dst_ptr; > _subarray_broadcast_offsetrun *offsetruns = &d->offsetruns; > > while (N > 0) { > loop_index = 0; > for (run = 0; run < run_count; ++run) { > offset = offsetruns[run].offset; > count = offsetruns[run].count; > dst_ptr = dst + loop_index*dst_subitemsize; > if (offset != -1) { > subtransfer(dst_ptr, dst_subitemsize, > src + offset, src_subitemsize, > count, src_subitemsize, > subdata); > } > else { > if (stransfer_decdstref != ((void *)0)) { > stransfer_decdstref(((void *)0), 0, dst_ptr, dst_subitemsize, > count, dst_subitemsize, > data_decdstref); > } > memset(dst_ptr, 0, count*dst_subitemsize); > } > loop_index += count; > } > > if (stransfer_decsrcref != ((void *)0)) { > stransfer_decsrcref(((void *)0), 0, src, src_subitemsize, > src_subN, src_subitemsize, > data_decsrcref); > } > > src += src_stride; > dst += dst_stride; > --N; > } >} > > >static int >get_subarray_broadcast_transfer_function(int aligned, > npy_intp src_stride, npy_intp dst_stride, > PyArray_Descr *src_dtype, PyArray_Descr *dst_dtype, > npy_intp src_size, npy_intp dst_size, > PyArray_Dims src_shape, PyArray_Dims dst_shape, > int move_references, > PyArray_StridedTransferFn **out_stransfer, > void **out_transferdata, > int *out_needs_api) >{ > _subarray_broadcast_data *data; > npy_intp structsize, loop_index, run, run_size, > src_index, dst_index, i, ndim; > _subarray_broadcast_offsetrun *offsetruns; > > structsize = sizeof(_subarray_broadcast_data) + > dst_size*sizeof(_subarray_broadcast_offsetrun); > > > data = (_subarray_broadcast_data *)PyMem_Malloc(structsize); > if (data == ((void *)0)) { > PyErr_NoMemory(); > return 0; > } > > > > > > > if (PyArray_GetDTypeTransferFunction(aligned, > src_dtype->elsize, dst_dtype->elsize, > src_dtype, dst_dtype, > 0, > &data->stransfer, &data->data, > out_needs_api) != 1) { > PyMem_Free(data); > return 0; > } > data->freefunc = &_subarray_broadcast_data_free; > data->copyfunc = &_subarray_broadcast_data_copy; > data->src_N = src_size; > data->dst_N = dst_size; > data->src_itemsize = src_dtype->elsize; > data->dst_itemsize = dst_dtype->elsize; > > > if (move_references && (((src_dtype)->flags & (0x01)) == (0x01))) { > if (PyArray_GetDTypeTransferFunction(aligned, > src_dtype->elsize, 0, > src_dtype, ((void *)0), > 1, > &data->stransfer_decsrcref, > &data->data_decsrcref, > out_needs_api) != 1) { > PyArray_FreeStridedTransferData(data->data); > PyMem_Free(data); > return 0; > } > } > else { > data->stransfer_decsrcref = ((void *)0); > data->data_decsrcref = ((void *)0); > } > > > if ((((dst_dtype)->flags & (0x01)) == (0x01))) { > if (PyArray_GetDTypeTransferFunction(aligned, > dst_dtype->elsize, 0, > dst_dtype, ((void *)0), > 1, > &data->stransfer_decdstref, > &data->data_decdstref, > out_needs_api) != 1) { > PyArray_FreeStridedTransferData(data->data); > PyArray_FreeStridedTransferData(data->data_decsrcref); > PyMem_Free(data); > return 0; > } > } > else { > data->stransfer_decdstref = ((void *)0); > data->data_decdstref = ((void *)0); > } > > > offsetruns = &data->offsetruns; > ndim = (src_shape.len > dst_shape.len) ? src_shape.len : dst_shape.len; > for (loop_index = 0; loop_index < dst_size; ++loop_index) { > npy_intp src_factor = 1; > > dst_index = loop_index; > src_index = 0; > for (i = ndim-1; i >= 0; --i) { > npy_intp coord = 0, shape; > > > if (i >= ndim - dst_shape.len) { > shape = dst_shape.ptr[i-(ndim-dst_shape.len)]; > coord = dst_index % shape; > dst_index /= shape; > } > > > if (i >= ndim - src_shape.len) { > shape = src_shape.ptr[i-(ndim-src_shape.len)]; > if (shape == 1) { > coord = 0; > } > else { > if (coord < shape) { > src_index += src_factor*coord; > src_factor *= shape; > } > else { > > src_index = -1; > break; > } > } > } > } > > if (src_index == -1) { > offsetruns[loop_index].offset = -1; > } > else { > offsetruns[loop_index].offset = src_index; > } > } > > > run = 0; > run_size = 1; > for (loop_index = 1; loop_index < dst_size; ++loop_index) { > if (offsetruns[run].offset == -1) { > > if (offsetruns[loop_index].offset != -1) { > offsetruns[run].count = run_size; > run++; > run_size = 1; > offsetruns[run].offset = offsetruns[loop_index].offset; > } > else { > run_size++; > } > } > else { > > if (offsetruns[loop_index].offset != > offsetruns[loop_index-1].offset + 1) { > offsetruns[run].count = run_size; > run++; > run_size = 1; > offsetruns[run].offset = offsetruns[loop_index].offset; > } > else { > run_size++; > } > } > } > offsetruns[run].count = run_size; > run++; > data->run_count = run; > > > while (run--) { > if (offsetruns[run].offset != -1) { > offsetruns[run].offset *= src_dtype->elsize; > } > } > > if (data->stransfer_decsrcref == ((void *)0) && > data->stransfer_decdstref == ((void *)0)) { > *out_stransfer = &_strided_to_strided_subarray_broadcast; > } > else { > *out_stransfer = &_strided_to_strided_subarray_broadcast_withrefs; > } > *out_transferdata = data; > > return 1; >} > > > > > >static int >get_subarray_transfer_function(int aligned, > npy_intp src_stride, npy_intp dst_stride, > PyArray_Descr *src_dtype, PyArray_Descr *dst_dtype, > int move_references, > PyArray_StridedTransferFn **out_stransfer, > void **out_transferdata, > int *out_needs_api) >{ > PyArray_Dims src_shape = {((void *)0), -1}, dst_shape = {((void *)0), -1}; > npy_intp src_size = 1, dst_size = 1; > > > if (src_dtype->subarray != ((void *)0)) { > if (!(PyArray_IntpConverter(src_dtype->subarray->shape, > &src_shape))) { > PyErr_SetString(PyExc_ValueError, > "invalid subarray shape"); > return 0; > } > src_size = PyArray_MultiplyList(src_shape.ptr, src_shape.len); > src_dtype = src_dtype->subarray->base; > } > if (dst_dtype->subarray != ((void *)0)) { > if (!(PyArray_IntpConverter(dst_dtype->subarray->shape, > &dst_shape))) { > if (src_shape.ptr != ((void *)0)) { > PyMem_Free(src_shape.ptr); > } > PyErr_SetString(PyExc_ValueError, > "invalid subarray shape"); > return 0; > } > dst_size = PyArray_MultiplyList(dst_shape.ptr, dst_shape.len); > dst_dtype = dst_dtype->subarray->base; > } > > > > > if (dst_size == 1 && src_size == 1) { > PyMem_Free(src_shape.ptr); > PyMem_Free(dst_shape.ptr); > > return PyArray_GetDTypeTransferFunction(aligned, > src_stride, dst_stride, > src_dtype, dst_dtype, > move_references, > out_stransfer, out_transferdata, > out_needs_api); > } > > else if (src_size == 1) { > PyMem_Free(src_shape.ptr); > PyMem_Free(dst_shape.ptr); > > return get_one_to_n_transfer_function(aligned, > src_stride, dst_stride, > src_dtype, dst_dtype, > move_references, > dst_size, > out_stransfer, out_transferdata, > out_needs_api); > } > > else if (src_shape.len == dst_shape.len && > PyArray_CompareLists(src_shape.ptr, dst_shape.ptr, > src_shape.len)) { > PyMem_Free(src_shape.ptr); > PyMem_Free(dst_shape.ptr); > > return get_n_to_n_transfer_function(aligned, > src_stride, dst_stride, > src_dtype, dst_dtype, > move_references, > src_size, > out_stransfer, out_transferdata, > out_needs_api); > } > > > > > else { > int ret = get_subarray_broadcast_transfer_function(aligned, > src_stride, dst_stride, > src_dtype, dst_dtype, > src_size, dst_size, > src_shape, dst_shape, > move_references, > out_stransfer, out_transferdata, > out_needs_api); > > PyMem_Free(src_shape.ptr); > PyMem_Free(dst_shape.ptr); > return ret; > } >} > > >typedef struct { > npy_intp src_offset, dst_offset, src_itemsize; > PyArray_StridedTransferFn *stransfer; > void *data; >} _single_field_transfer; > >typedef struct { > free_strided_transfer_data freefunc; > copy_strided_transfer_data copyfunc; > npy_intp field_count; > > _single_field_transfer fields; >} _field_transfer_data; > > >void _field_transfer_data_free(void *data) >{ > _field_transfer_data *d = (_field_transfer_data *)data; > npy_intp i, field_count; > _single_field_transfer *fields; > > field_count = d->field_count; > fields = &d->fields; > > for (i = 0; i < field_count; ++i) { > PyArray_FreeStridedTransferData(fields[i].data); > } > PyMem_Free(d); >} > > >void *_field_transfer_data_copy(void *data) >{ > _field_transfer_data *d = (_field_transfer_data *)data; > _field_transfer_data *newdata; > npy_intp i, field_count = d->field_count, structsize; > _single_field_transfer *fields, *newfields; > > structsize = sizeof(_field_transfer_data) + > field_count * sizeof(_single_field_transfer); > > > newdata = (_field_transfer_data *)PyMem_Malloc(structsize); > if (newdata == ((void *)0)) { > return ((void *)0); > } > memcpy(newdata, d, structsize); > > fields = &d->fields; > newfields = &newdata->fields; > for (i = 0; i < field_count; ++i) { > if (fields[i].data != ((void *)0)) { > newfields[i].data = > PyArray_CopyStridedTransferData(fields[i].data); > if (newfields[i].data == ((void *)0)) { > for (i = i-1; i >= 0; --i) { > PyArray_FreeStridedTransferData(newfields[i].data); > } > PyMem_Free(newdata); > return ((void *)0); > } > } > > } > > return (void *)newdata; >} > >static void >_strided_to_strided_field_transfer(char *dst, npy_intp dst_stride, > char *src, npy_intp src_stride, > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *data) >{ > _field_transfer_data *d = (_field_transfer_data *)data; > npy_intp i, field_count = d->field_count; > _single_field_transfer *field; > > > for (;;) { > field = &d->fields; > if (N > 128) { > for (i = 0; i < field_count; ++i, ++field) { > field->stransfer(dst + field->dst_offset, dst_stride, > src + field->src_offset, src_stride, > 128, > field->src_itemsize, > field->data); > } > N -= 128; > src += 128*src_stride; > dst += 128*dst_stride; > } > else { > for (i = 0; i < field_count; ++i, ++field) { > field->stransfer(dst + field->dst_offset, dst_stride, > src + field->src_offset, src_stride, > N, > field->src_itemsize, > field->data); > } > return; > } > } >} > > > > > >static int >get_fields_transfer_function(int aligned, > npy_intp src_stride, npy_intp dst_stride, > PyArray_Descr *src_dtype, PyArray_Descr *dst_dtype, > int move_references, > PyArray_StridedTransferFn **out_stransfer, > void **out_transferdata, > int *out_needs_api) >{ > PyObject *names, *key, *tup, *title; > PyArray_Descr *src_fld_dtype, *dst_fld_dtype; > npy_int i, names_size, field_count, structsize; > int src_offset, dst_offset; > _field_transfer_data *data; > _single_field_transfer *fields; > > > if (!(((PyArray_Descr *)(src_dtype))->names != ((void *)0))) { > names = dst_dtype->names; > names_size = (((PyVarObject*)(dst_dtype->names))->ob_size); > > field_count = names_size; > structsize = sizeof(_field_transfer_data) + > (field_count + 1) * sizeof(_single_field_transfer); > > data = (_field_transfer_data *)PyMem_Malloc(structsize); > if (data == ((void *)0)) { > PyErr_NoMemory(); > return 0; > } > data->freefunc = &_field_transfer_data_free; > data->copyfunc = &_field_transfer_data_copy; > fields = &data->fields; > > for (i = 0; i < names_size; ++i) { > key = (((PyTupleObject *)(names))->ob_item[i]); > tup = PyDict_GetItem(dst_dtype->fields, key); > if (!_PyArg_ParseTuple_SizeT(tup, "Oi|O", &dst_fld_dtype, > &dst_offset, &title)) { > PyMem_Free(data); > return 0; > } > if (PyArray_GetDTypeTransferFunction(0, > src_stride, dst_stride, > src_dtype, dst_fld_dtype, > 0, > &fields[i].stransfer, > &fields[i].data, > out_needs_api) != 1) { > for (i = i-1; i >= 0; --i) { > PyArray_FreeStridedTransferData(fields[i].data); > } > PyMem_Free(data); > return 0; > } > fields[i].src_offset = 0; > fields[i].dst_offset = dst_offset; > fields[i].src_itemsize = src_dtype->elsize; > } > > > > > > if (move_references && (((src_dtype)->flags & (0x01)) == (0x01))) { > if (get_decsrcref_transfer_function(0, > src_stride, > src_dtype, > &fields[field_count].stransfer, > &fields[field_count].data, > out_needs_api) != 1) { > for (i = 0; i < field_count; ++i) { > PyArray_FreeStridedTransferData(fields[i].data); > } > PyMem_Free(data); > return 0; > } > fields[field_count].src_offset = 0; > fields[field_count].dst_offset = 0; > fields[field_count].src_itemsize = src_dtype->elsize; > field_count++; > } > data->field_count = field_count; > > *out_stransfer = &_strided_to_strided_field_transfer; > *out_transferdata = data; > > return 1; > } > > else if (!(((PyArray_Descr *)(dst_dtype))->names != ((void *)0))) { > names = src_dtype->names; > names_size = (((PyVarObject*)(src_dtype->names))->ob_size); > > > > > > if (move_references && (((src_dtype)->flags & (0x01)) == (0x01))) { > field_count = names_size + 1; > } > else { > field_count = 1; > } > structsize = sizeof(_field_transfer_data) + > field_count * sizeof(_single_field_transfer); > > data = (_field_transfer_data *)PyMem_Malloc(structsize); > if (data == ((void *)0)) { > PyErr_NoMemory(); > return 0; > } > data->freefunc = &_field_transfer_data_free; > data->copyfunc = &_field_transfer_data_copy; > fields = &data->fields; > > key = (((PyTupleObject *)(names))->ob_item[0]); > tup = PyDict_GetItem(src_dtype->fields, key); > if (!_PyArg_ParseTuple_SizeT(tup, "Oi|O", &src_fld_dtype, > &src_offset, &title)) { > PyMem_Free(data); > return 0; > } > field_count = 0; > > > > > > > if (dst_dtype->type_num == NPY_BOOL) { > if (get_bool_setdstone_transfer_function(dst_stride, > &fields[field_count].stransfer, > &fields[field_count].data, > out_needs_api) != 1) { > PyMem_Free(data); > return 0; > } > fields[field_count].src_offset = 0; > fields[field_count].dst_offset = 0; > fields[field_count].src_itemsize = 0; > field_count++; > > > if (move_references && (((src_fld_dtype)->flags & (0x01)) == (0x01))) { > if (get_decsrcref_transfer_function(0, > src_stride, > src_fld_dtype, > &fields[field_count].stransfer, > &fields[field_count].data, > out_needs_api) != 1) { > PyArray_FreeStridedTransferData(fields[0].data); > PyMem_Free(data); > return 0; > } > fields[field_count].src_offset = src_offset; > fields[field_count].dst_offset = 0; > fields[field_count].src_itemsize = src_fld_dtype->elsize; > field_count++; > } > } > > else { > if (PyArray_GetDTypeTransferFunction(0, > src_stride, dst_stride, > src_fld_dtype, dst_dtype, > move_references, > &fields[field_count].stransfer, > &fields[field_count].data, > out_needs_api) != 1) { > PyMem_Free(data); > return 0; > } > fields[field_count].src_offset = src_offset; > fields[field_count].dst_offset = 0; > fields[field_count].src_itemsize = src_fld_dtype->elsize; > field_count++; > } > > > > > > > if (move_references && (((src_dtype)->flags & (0x01)) == (0x01))) { > for (i = 1; i < names_size; ++i) { > key = (((PyTupleObject *)(names))->ob_item[i]); > tup = PyDict_GetItem(src_dtype->fields, key); > if (!_PyArg_ParseTuple_SizeT(tup, "Oi|O", &src_fld_dtype, > &src_offset, &title)) { > return 0; > } > if ((((src_fld_dtype)->flags & (0x01)) == (0x01))) { > if (get_decsrcref_transfer_function(0, > src_stride, > src_fld_dtype, > &fields[field_count].stransfer, > &fields[field_count].data, > out_needs_api) != 1) { > for (i = field_count-1; i >= 0; --i) { > PyArray_FreeStridedTransferData(fields[i].data); > } > PyMem_Free(data); > return 0; > } > fields[field_count].src_offset = src_offset; > fields[field_count].dst_offset = 0; > fields[field_count].src_itemsize = src_fld_dtype->elsize; > field_count++; > } > } > } > > data->field_count = field_count; > > *out_stransfer = &_strided_to_strided_field_transfer; > *out_transferdata = data; > > return 1; > } > > else { > > PyObject *used_names_dict = ((void *)0); > > names = dst_dtype->names; > names_size = (((PyVarObject*)(dst_dtype->names))->ob_size); > > > > > > if (move_references && (((src_dtype)->flags & (0x01)) == (0x01))) { > field_count = names_size + (((PyVarObject*)(src_dtype->names))->ob_size); > used_names_dict = PyDict_New(); > if (used_names_dict == ((void *)0)) { > return 0; > } > } > else { > field_count = names_size; > } > structsize = sizeof(_field_transfer_data) + > field_count * sizeof(_single_field_transfer); > > data = (_field_transfer_data *)PyMem_Malloc(structsize); > if (data == ((void *)0)) { > PyErr_NoMemory(); > do { if ((used_names_dict) == ((void *)0)) ; else do { if ( --((PyObject*)(used_names_dict))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(used_names_dict)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(used_names_dict)))); } while (0); } while (0); > return 0; > } > data->freefunc = &_field_transfer_data_free; > data->copyfunc = &_field_transfer_data_copy; > fields = &data->fields; > > for (i = 0; i < names_size; ++i) { > key = (((PyTupleObject *)(names))->ob_item[i]); > tup = PyDict_GetItem(dst_dtype->fields, key); > if (!_PyArg_ParseTuple_SizeT(tup, "Oi|O", &dst_fld_dtype, > &dst_offset, &title)) { > for (i = i-1; i >= 0; --i) { > PyArray_FreeStridedTransferData(fields[i].data); > } > PyMem_Free(data); > do { if ((used_names_dict) == ((void *)0)) ; else do { if ( --((PyObject*)(used_names_dict))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(used_names_dict)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(used_names_dict)))); } while (0); } while (0); > return 0; > } > tup = PyDict_GetItem(src_dtype->fields, key); > if (tup != ((void *)0)) { > if (!_PyArg_ParseTuple_SizeT(tup, "Oi|O", &src_fld_dtype, > &src_offset, &title)) { > for (i = i-1; i >= 0; --i) { > PyArray_FreeStridedTransferData(fields[i].data); > } > PyMem_Free(data); > do { if ((used_names_dict) == ((void *)0)) ; else do { if ( --((PyObject*)(used_names_dict))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(used_names_dict)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(used_names_dict)))); } while (0); } while (0); > return 0; > } > if (PyArray_GetDTypeTransferFunction(0, > src_stride, dst_stride, > src_fld_dtype, dst_fld_dtype, > move_references, > &fields[i].stransfer, > &fields[i].data, > out_needs_api) != 1) { > for (i = i-1; i >= 0; --i) { > PyArray_FreeStridedTransferData(fields[i].data); > } > PyMem_Free(data); > do { if ((used_names_dict) == ((void *)0)) ; else do { if ( --((PyObject*)(used_names_dict))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(used_names_dict)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(used_names_dict)))); } while (0); } while (0); > return 0; > } > fields[i].src_offset = src_offset; > fields[i].dst_offset = dst_offset; > fields[i].src_itemsize = src_fld_dtype->elsize; > > if (used_names_dict != ((void *)0)) { > PyDict_SetItem(used_names_dict, key, ((PyObject *) &_Py_TrueStruct)); > } > } > else { > if (get_setdstzero_transfer_function(0, > dst_stride, > dst_fld_dtype, > &fields[i].stransfer, > &fields[i].data, > out_needs_api) != 1) { > for (i = i-1; i >= 0; --i) { > PyArray_FreeStridedTransferData(fields[i].data); > } > PyMem_Free(data); > do { if ((used_names_dict) == ((void *)0)) ; else do { if ( --((PyObject*)(used_names_dict))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(used_names_dict)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(used_names_dict)))); } while (0); } while (0); > return 0; > } > fields[i].src_offset = 0; > fields[i].dst_offset = dst_offset; > fields[i].src_itemsize = 0; > } > } > > if (move_references && (((src_dtype)->flags & (0x01)) == (0x01))) { > > field_count = names_size; > > names = src_dtype->names; > names_size = (((PyVarObject*)(src_dtype->names))->ob_size); > for (i = 0; i < names_size; ++i) { > key = (((PyTupleObject *)(names))->ob_item[i]); > if (PyDict_GetItem(used_names_dict, key) == ((void *)0)) { > tup = PyDict_GetItem(src_dtype->fields, key); > if (!_PyArg_ParseTuple_SizeT(tup, "Oi|O", &src_fld_dtype, > &src_offset, &title)) { > for (i = field_count-1; i >= 0; --i) { > PyArray_FreeStridedTransferData(fields[i].data); > } > PyMem_Free(data); > do { if ((used_names_dict) == ((void *)0)) ; else do { if ( --((PyObject*)(used_names_dict))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(used_names_dict)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(used_names_dict)))); } while (0); } while (0); > return 0; > } > if ((((src_fld_dtype)->flags & (0x01)) == (0x01))) { > if (get_decsrcref_transfer_function(0, > src_stride, > src_fld_dtype, > &fields[field_count].stransfer, > &fields[field_count].data, > out_needs_api) != 1) { > for (i = field_count-1; i >= 0; --i) { > PyArray_FreeStridedTransferData(fields[i].data); > } > PyMem_Free(data); > return 0; > } > fields[field_count].src_offset = src_offset; > fields[field_count].dst_offset = 0; > fields[field_count].src_itemsize = > src_fld_dtype->elsize; > field_count++; > } > } > } > } > > do { if ((used_names_dict) == ((void *)0)) ; else do { if ( --((PyObject*)(used_names_dict))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(used_names_dict)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(used_names_dict)))); } while (0); } while (0); > > data->field_count = field_count; > > *out_stransfer = &_strided_to_strided_field_transfer; > *out_transferdata = data; > > return 1; > } >} > >static int >get_decsrcref_fields_transfer_function(int aligned, > npy_intp src_stride, > PyArray_Descr *src_dtype, > PyArray_StridedTransferFn **out_stransfer, > void **out_transferdata, > int *out_needs_api) >{ > PyObject *names, *key, *tup, *title; > PyArray_Descr *src_fld_dtype; > npy_int i, names_size, field_count, structsize; > int src_offset; > _field_transfer_data *data; > _single_field_transfer *fields; > > names = src_dtype->names; > names_size = (((PyVarObject*)(src_dtype->names))->ob_size); > > field_count = names_size; > structsize = sizeof(_field_transfer_data) + > field_count * sizeof(_single_field_transfer); > > data = (_field_transfer_data *)PyMem_Malloc(structsize); > if (data == ((void *)0)) { > PyErr_NoMemory(); > return 0; > } > data->freefunc = &_field_transfer_data_free; > data->copyfunc = &_field_transfer_data_copy; > fields = &data->fields; > > field_count = 0; > for (i = 0; i < names_size; ++i) { > key = (((PyTupleObject *)(names))->ob_item[i]); > tup = PyDict_GetItem(src_dtype->fields, key); > if (!_PyArg_ParseTuple_SizeT(tup, "Oi|O", &src_fld_dtype, > &src_offset, &title)) { > PyMem_Free(data); > return 0; > } > if ((((src_fld_dtype)->flags & (0x01)) == (0x01))) { > if (out_needs_api) { > *out_needs_api = 1; > } > if (get_decsrcref_transfer_function(0, > src_stride, > src_fld_dtype, > &fields[field_count].stransfer, > &fields[field_count].data, > out_needs_api) != 1) { > for (i = field_count-1; i >= 0; --i) { > PyArray_FreeStridedTransferData(fields[i].data); > } > PyMem_Free(data); > return 0; > } > fields[field_count].src_offset = src_offset; > fields[field_count].dst_offset = 0; > fields[field_count].src_itemsize = src_dtype->elsize; > field_count++; > } > } > > data->field_count = field_count; > > *out_stransfer = &_strided_to_strided_field_transfer; > *out_transferdata = data; > > return 1; >} > >static int >get_setdestzero_fields_transfer_function(int aligned, > npy_intp dst_stride, > PyArray_Descr *dst_dtype, > PyArray_StridedTransferFn **out_stransfer, > void **out_transferdata, > int *out_needs_api) >{ > PyObject *names, *key, *tup, *title; > PyArray_Descr *dst_fld_dtype; > npy_int i, names_size, field_count, structsize; > int dst_offset; > _field_transfer_data *data; > _single_field_transfer *fields; > > names = dst_dtype->names; > names_size = (((PyVarObject*)(dst_dtype->names))->ob_size); > > field_count = names_size; > structsize = sizeof(_field_transfer_data) + > field_count * sizeof(_single_field_transfer); > > data = (_field_transfer_data *)PyMem_Malloc(structsize); > if (data == ((void *)0)) { > PyErr_NoMemory(); > return 0; > } > data->freefunc = &_field_transfer_data_free; > data->copyfunc = &_field_transfer_data_copy; > fields = &data->fields; > > for (i = 0; i < names_size; ++i) { > key = (((PyTupleObject *)(names))->ob_item[i]); > tup = PyDict_GetItem(dst_dtype->fields, key); > if (!_PyArg_ParseTuple_SizeT(tup, "Oi|O", &dst_fld_dtype, > &dst_offset, &title)) { > PyMem_Free(data); > return 0; > } > if (get_setdstzero_transfer_function(0, > dst_stride, > dst_fld_dtype, > &fields[i].stransfer, > &fields[i].data, > out_needs_api) != 1) { > for (i = i-1; i >= 0; --i) { > PyArray_FreeStridedTransferData(fields[i].data); > } > PyMem_Free(data); > return 0; > } > fields[i].src_offset = 0; > fields[i].dst_offset = dst_offset; > fields[i].src_itemsize = 0; > } > > data->field_count = field_count; > > *out_stransfer = &_strided_to_strided_field_transfer; > *out_transferdata = data; > > return 1; >} > > > >static void >_null_to_strided_set_bool_one(char *dst, > npy_intp dst_stride, > char *(__NPY_UNUSED_TAGGEDsrc) __attribute__ ((__unused__)), npy_intp (__NPY_UNUSED_TAGGEDsrc_stride) __attribute__ ((__unused__)), > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ > > > while (N > 0) { > *dst = 1; > > dst += dst_stride; > --N; > } >} > >static void >_null_to_contig_set_bool_one(char *dst, > npy_intp (__NPY_UNUSED_TAGGEDdst_stride) __attribute__ ((__unused__)), > char *(__NPY_UNUSED_TAGGEDsrc) __attribute__ ((__unused__)), npy_intp (__NPY_UNUSED_TAGGEDsrc_stride) __attribute__ ((__unused__)), > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ > > > memset(dst, 1, N); >} > > >static int >get_bool_setdstone_transfer_function(npy_intp dst_stride, > PyArray_StridedTransferFn **out_stransfer, > void **out_transferdata, > int *(__NPY_UNUSED_TAGGEDout_needs_api) __attribute__ ((__unused__))) >{ > if (dst_stride == 1) { > *out_stransfer = &_null_to_contig_set_bool_one; > } > else { > *out_stransfer = &_null_to_strided_set_bool_one; > } > *out_transferdata = ((void *)0); > > return 1; >} > > > > >typedef struct { > free_strided_transfer_data freefunc; > copy_strided_transfer_data copyfunc; > npy_intp dst_itemsize; >} _dst_memset_zero_data; > > >void *_dst_memset_zero_data_copy(void *data) >{ > _dst_memset_zero_data *newdata = > (_dst_memset_zero_data *)PyMem_Malloc( > sizeof(_dst_memset_zero_data)); > if (newdata == ((void *)0)) { > return ((void *)0); > } > > memcpy(newdata, data, sizeof(_dst_memset_zero_data)); > > return newdata; >} > >static void >_null_to_strided_memset_zero(char *dst, > npy_intp dst_stride, > char *(__NPY_UNUSED_TAGGEDsrc) __attribute__ ((__unused__)), npy_intp (__NPY_UNUSED_TAGGEDsrc_stride) __attribute__ ((__unused__)), > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *data) >{ > _dst_memset_zero_data *d = (_dst_memset_zero_data *)data; > npy_intp dst_itemsize = d->dst_itemsize; > > while (N > 0) { > memset(dst, 0, dst_itemsize); > dst += dst_stride; > --N; > } >} > >static void >_null_to_contig_memset_zero(char *dst, > npy_intp dst_stride, > char *(__NPY_UNUSED_TAGGEDsrc) __attribute__ ((__unused__)), npy_intp (__NPY_UNUSED_TAGGEDsrc_stride) __attribute__ ((__unused__)), > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *data) >{ > _dst_memset_zero_data *d = (_dst_memset_zero_data *)data; > npy_intp dst_itemsize = d->dst_itemsize; > > memset(dst, 0, N*dst_itemsize); >} > >static void >_null_to_strided_reference_setzero(char *dst, > npy_intp dst_stride, > char *(__NPY_UNUSED_TAGGEDsrc) __attribute__ ((__unused__)), npy_intp (__NPY_UNUSED_TAGGEDsrc_stride) __attribute__ ((__unused__)), > npy_intp N, npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ > PyObject *dst_ref = ((void *)0); > > while (N > 0) { > (*((PyObject **)(&dst_ref)) = *((PyObject **)(dst))); > > > ; > do { if ((dst_ref) == ((void *)0)) ; else do { if ( --((PyObject*)(dst_ref))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(dst_ref)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(dst_ref)))); } while (0); } while (0); > > > dst_ref = ((void *)0); > (*((PyObject **)(dst)) = *((PyObject **)(&dst_ref))); > > dst += dst_stride; > --N; > } >} > >static int >get_setdstzero_transfer_function(int aligned, > npy_intp dst_stride, > PyArray_Descr *dst_dtype, > PyArray_StridedTransferFn **out_stransfer, > void **out_transferdata, > int *out_needs_api) >{ > _dst_memset_zero_data *data; > > > if (!(((dst_dtype)->flags & (0x01)) == (0x01))) { > data = (_dst_memset_zero_data *) > PyMem_Malloc(sizeof(_dst_memset_zero_data)); > if (data == ((void *)0)) { > PyErr_NoMemory(); > return 0; > } > > data->freefunc = &PyMem_Free; > data->copyfunc = &_dst_memset_zero_data_copy; > data->dst_itemsize = dst_dtype->elsize; > > if (dst_stride == data->dst_itemsize) { > *out_stransfer = &_null_to_contig_memset_zero; > } > else { > *out_stransfer = &_null_to_strided_memset_zero; > } > *out_transferdata = data; > } > > else if (dst_dtype->type_num == NPY_OBJECT) { > if (out_needs_api) { > *out_needs_api = 1; > } > > *out_stransfer = &_null_to_strided_reference_setzero; > *out_transferdata = ((void *)0); > } > > else if (dst_dtype->subarray != ((void *)0)) { > PyArray_Dims dst_shape = {((void *)0), -1}; > npy_intp dst_size = 1; > PyArray_StridedTransferFn *contig_stransfer; > void *contig_data; > > if (out_needs_api) { > *out_needs_api = 1; > } > > if (!(PyArray_IntpConverter(dst_dtype->subarray->shape, > &dst_shape))) { > PyErr_SetString(PyExc_ValueError, > "invalid subarray shape"); > return 0; > } > dst_size = PyArray_MultiplyList(dst_shape.ptr, dst_shape.len); > PyMem_Free(dst_shape.ptr); > > > if (get_setdstzero_transfer_function(aligned, > dst_dtype->subarray->base->elsize, > dst_dtype->subarray->base, > &contig_stransfer, &contig_data, > out_needs_api) != 1) { > return 0; > } > > if (wrap_transfer_function_n_to_n(contig_stransfer, contig_data, > 0, dst_stride, > 0, dst_dtype->subarray->base->elsize, > dst_size, > out_stransfer, out_transferdata) != 1) { > PyArray_FreeStridedTransferData(contig_data); > return 0; > } > } > > else if ((((PyArray_Descr *)(dst_dtype))->names != ((void *)0))) { > if (out_needs_api) { > *out_needs_api = 1; > } > > return get_setdestzero_fields_transfer_function(aligned, > dst_stride, dst_dtype, > out_stransfer, > out_transferdata, > out_needs_api); > } > > return 1; >} > >static void >_dec_src_ref_nop(char *(__NPY_UNUSED_TAGGEDdst) __attribute__ ((__unused__)), > npy_intp (__NPY_UNUSED_TAGGEDdst_stride) __attribute__ ((__unused__)), > char *(__NPY_UNUSED_TAGGEDsrc) __attribute__ ((__unused__)), npy_intp (__NPY_UNUSED_TAGGEDsrc_stride) __attribute__ ((__unused__)), > npy_intp (__NPY_UNUSED_TAGGEDN) __attribute__ ((__unused__)), > npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ > >} > >static void >_strided_to_null_dec_src_ref_reference(char *(__NPY_UNUSED_TAGGEDdst) __attribute__ ((__unused__)), > npy_intp (__NPY_UNUSED_TAGGEDdst_stride) __attribute__ ((__unused__)), > char *src, npy_intp src_stride, > npy_intp N, > npy_intp (__NPY_UNUSED_TAGGEDsrc_itemsize) __attribute__ ((__unused__)), > void *(__NPY_UNUSED_TAGGEDdata) __attribute__ ((__unused__))) >{ > PyObject *src_ref = ((void *)0); > while (N > 0) { > (*((PyObject **)(&src_ref)) = *((PyObject **)(src))); > > > ; > do { if ((src_ref) == ((void *)0)) ; else do { if ( --((PyObject*)(src_ref))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(src_ref)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(src_ref)))); } while (0); } while (0); > > src += src_stride; > --N; > } >} > > >static int >get_decsrcref_transfer_function(int aligned, > npy_intp src_stride, > PyArray_Descr *src_dtype, > PyArray_StridedTransferFn **out_stransfer, > void **out_transferdata, > int *out_needs_api) >{ > > if (!(((src_dtype)->flags & (0x01)) == (0x01))) { > *out_stransfer = &_dec_src_ref_nop; > *out_transferdata = ((void *)0); > > return 1; > } > > else if (src_dtype->type_num == NPY_OBJECT) { > if (out_needs_api) { > *out_needs_api = 1; > } > > *out_stransfer = &_strided_to_null_dec_src_ref_reference; > *out_transferdata = ((void *)0); > > return 1; > } > > else if (src_dtype->subarray != ((void *)0)) { > PyArray_Dims src_shape = {((void *)0), -1}; > npy_intp src_size = 1; > PyArray_StridedTransferFn *stransfer; > void *data; > > if (out_needs_api) { > *out_needs_api = 1; > } > > if (!(PyArray_IntpConverter(src_dtype->subarray->shape, > &src_shape))) { > PyErr_SetString(PyExc_ValueError, > "invalid subarray shape"); > return 0; > } > src_size = PyArray_MultiplyList(src_shape.ptr, src_shape.len); > PyMem_Free(src_shape.ptr); > > > if (get_decsrcref_transfer_function(aligned, > src_dtype->subarray->base->elsize, > src_dtype->subarray->base, > &stransfer, &data, > out_needs_api) != 1) { > return 0; > } > > if (wrap_transfer_function_n_to_n(stransfer, data, > src_stride, 0, > src_dtype->subarray->base->elsize, 0, > src_size, > out_stransfer, out_transferdata) != 1) { > PyArray_FreeStridedTransferData(data); > return 0; > } > > return 1; > } > > else { > if (out_needs_api) { > *out_needs_api = 1; > } > > return get_decsrcref_fields_transfer_function(aligned, > src_stride, src_dtype, > out_stransfer, > out_transferdata, > out_needs_api); > } >} > > > >static int >PyArray_GetDTypeTransferFunction(int aligned, > npy_intp src_stride, npy_intp dst_stride, > PyArray_Descr *src_dtype, PyArray_Descr *dst_dtype, > int move_references, > PyArray_StridedTransferFn **out_stransfer, > void **out_transferdata, > int *out_needs_api) >{ > npy_intp src_itemsize, dst_itemsize; > int src_type_num, dst_type_num; ># 2801 "numpy/core/src/multiarray/dtype_transfer.c" > if (dst_dtype == ((void *)0)) { > if (move_references) { > return get_decsrcref_transfer_function(aligned, > src_dtype->elsize, > src_dtype, > out_stransfer, out_transferdata, > out_needs_api); > } > else { > *out_stransfer = &_dec_src_ref_nop; > *out_transferdata = ((void *)0); > return 1; > } > } > else if (src_dtype == ((void *)0)) { > return get_setdstzero_transfer_function(aligned, > dst_dtype->elsize, > dst_dtype, > out_stransfer, out_transferdata, > out_needs_api); > } > > src_itemsize = src_dtype->elsize; > dst_itemsize = dst_dtype->elsize; > src_type_num = src_dtype->type_num; > dst_type_num = dst_dtype->type_num; > > > if ((((src_type_num) <= NPY_CLONGDOUBLE) || ((src_type_num) == NPY_HALF)) && > (((dst_type_num) <= NPY_CLONGDOUBLE) || ((dst_type_num) == NPY_HALF)) && > ((src_dtype->byteorder) != '>') && > ((dst_dtype->byteorder) != '>')) { > if (PyArray_EquivTypenums(src_type_num, dst_type_num)) { > *out_stransfer = PyArray_GetStridedCopyFn(aligned, > src_stride, dst_stride, > src_itemsize); > *out_transferdata = ((void *)0); > return (*out_stransfer == ((void *)0)) ? 0 : 1; > } > else { > return get_nbo_cast_numeric_transfer_function (aligned, > src_stride, dst_stride, > src_type_num, dst_type_num, > out_stransfer, out_transferdata); > } > } > > > > > > if (!(((src_dtype)->flags & (0x01)) == (0x01)) && !(((dst_dtype)->flags & (0x01)) == (0x01)) && > PyArray_EquivTypes(src_dtype, dst_dtype)) { ># 2864 "numpy/core/src/multiarray/dtype_transfer.c" > *out_stransfer = PyArray_GetStridedCopyFn(0, > src_stride, dst_stride, > src_dtype->elsize); > *out_transferdata = ((void *)0); > return 1; > } > > > if (src_itemsize == dst_itemsize && src_dtype->kind == dst_dtype->kind && > !(((PyArray_Descr *)(src_dtype))->names != ((void *)0)) && > !(((PyArray_Descr *)(dst_dtype))->names != ((void *)0)) && > src_dtype->subarray == ((void *)0) && dst_dtype->subarray == ((void *)0)) { > > if (src_type_num >= NPY_NTYPES || dst_type_num >= NPY_NTYPES) { > > > > > if (src_type_num != dst_type_num) { > return get_cast_transfer_function(aligned, > src_stride, dst_stride, > src_dtype, dst_dtype, > move_references, > out_stransfer, out_transferdata, > out_needs_api); > } > else { > return wrap_copy_swap_function(aligned, > src_stride, dst_stride, > src_dtype, > ((src_dtype->byteorder) != '>') != > ((dst_dtype->byteorder) != '>'), > out_stransfer, out_transferdata); > } > > > } > > > switch (src_type_num) { > case NPY_VOID: > case NPY_STRING: > case NPY_UNICODE: > *out_stransfer = PyArray_GetStridedCopyFn(0, > src_stride, dst_stride, > src_itemsize); > *out_transferdata = ((void *)0); > return 1; > case NPY_OBJECT: > if (out_needs_api) { > *out_needs_api = 1; > } > if (move_references) { > *out_stransfer = &_strided_to_strided_move_references; > *out_transferdata = ((void *)0); > } > else { > *out_stransfer = &_strided_to_strided_copy_references; > *out_transferdata = ((void *)0); > } > return 1; > } > > > if (src_itemsize == 1 || ((src_dtype->byteorder) != '>') == > ((dst_dtype->byteorder) != '>')) { > *out_stransfer = PyArray_GetStridedCopyFn(aligned, > src_stride, dst_stride, > src_itemsize); > *out_transferdata = ((void *)0); > return (*out_stransfer == ((void *)0)) ? 0 : 1; > } > > else if (!(((src_type_num) >= NPY_CFLOAT) && ((src_type_num) <= NPY_CLONGDOUBLE))) { > *out_stransfer = PyArray_GetStridedCopySwapFn(aligned, > src_stride, dst_stride, > src_itemsize); > *out_transferdata = ((void *)0); > return (*out_stransfer == ((void *)0)) ? 0 : 1; > } > > else { > *out_stransfer = PyArray_GetStridedCopySwapPairFn(aligned, > src_stride, dst_stride, > src_itemsize); > *out_transferdata = ((void *)0); > return (*out_stransfer == ((void *)0)) ? 0 : 1; > } > } > > > if (src_dtype->subarray != ((void *)0) || dst_dtype->subarray != ((void *)0)) { > return get_subarray_transfer_function(aligned, > src_stride, dst_stride, > src_dtype, dst_dtype, > move_references, > out_stransfer, out_transferdata, > out_needs_api); > } > > > if (((((PyArray_Descr *)(src_dtype))->names != ((void *)0)) || (((PyArray_Descr *)(dst_dtype))->names != ((void *)0))) && > src_type_num != NPY_OBJECT && dst_type_num != NPY_OBJECT) { > return get_fields_transfer_function(aligned, > src_stride, dst_stride, > src_dtype, dst_dtype, > move_references, > out_stransfer, out_transferdata, > out_needs_api); > } > > > if (src_type_num == dst_type_num) { > switch (src_type_num) { > case NPY_STRING: > case NPY_UNICODE: > case NPY_VOID: > return PyArray_GetStridedZeroPadCopyFn(0, > src_stride, dst_stride, > src_dtype->elsize, dst_dtype->elsize, > out_stransfer, out_transferdata); > } > } > > > return get_cast_transfer_function(aligned, > src_stride, dst_stride, > src_dtype, dst_dtype, > move_references, > out_stransfer, out_transferdata, > out_needs_api); >} ># 42 "numpy/core/src/multiarray/multiarraymodule_onefile.c" 2 ># 1 "build/src.linux-x86_64-2.7/numpy/core/src/multiarray/einsum.c" 1 ># 1 "numpy/core/src/multiarray/einsum.c.src" ># 1 "numpy/core/src/multiarray/einsum.c.src" ># 22 "numpy/core/src/multiarray/einsum.c.src" ># 1 "numpy/core/src/multiarray/convert.h" 1 ># 23 "numpy/core/src/multiarray/einsum.c.src" 2 ># 40 "numpy/core/src/multiarray/einsum.c.src" ># 1 "/usr/lib/gcc/x86_64-redhat-linux/3.4.5/include/xmmintrin.h" 1 3 4 ># 38 "/usr/lib/gcc/x86_64-redhat-linux/3.4.5/include/xmmintrin.h" 3 4 ># 1 "/usr/lib/gcc/x86_64-redhat-linux/3.4.5/include/mmintrin.h" 1 3 4 ># 37 "/usr/lib/gcc/x86_64-redhat-linux/3.4.5/include/mmintrin.h" 3 4 >typedef int __m64 __attribute__ ((__mode__ (__V2SI__))); > > >typedef int __v2si __attribute__ ((__mode__ (__V2SI__))); >typedef int __v4hi __attribute__ ((__mode__ (__V4HI__))); >typedef int __v8qi __attribute__ ((__mode__ (__V8QI__))); > > >static __inline void >_mm_empty (void) >{ > __builtin_ia32_emms (); >} > >static __inline void >_m_empty (void) >{ > _mm_empty (); >} > > >static __inline __m64 >_mm_cvtsi32_si64 (int __i) >{ > long long __tmp = (unsigned int)__i; > return (__m64) __tmp; >} > >static __inline __m64 >_m_from_int (int __i) >{ > return _mm_cvtsi32_si64 (__i); >} > > > >static __inline __m64 >_mm_cvtsi64x_si64 (long long __i) >{ > return (__m64) __i; >} > > >static __inline __m64 >_mm_set_pi64x (long long __i) >{ > return (__m64) __i; >} > > > >static __inline int >_mm_cvtsi64_si32 (__m64 __i) >{ > long long __tmp = (long long)__i; > return __tmp; >} > >static __inline int >_m_to_int (__m64 __i) >{ > return _mm_cvtsi64_si32 (__i); >} > > > >static __inline long long >_mm_cvtsi64_si64x (__m64 __i) >{ > return (long long)__i; >} > > > > > >static __inline __m64 >_mm_packs_pi16 (__m64 __m1, __m64 __m2) >{ > return (__m64) __builtin_ia32_packsswb ((__v4hi)__m1, (__v4hi)__m2); >} > >static __inline __m64 >_m_packsswb (__m64 __m1, __m64 __m2) >{ > return _mm_packs_pi16 (__m1, __m2); >} > > > > >static __inline __m64 >_mm_packs_pi32 (__m64 __m1, __m64 __m2) >{ > return (__m64) __builtin_ia32_packssdw ((__v2si)__m1, (__v2si)__m2); >} > >static __inline __m64 >_m_packssdw (__m64 __m1, __m64 __m2) >{ > return _mm_packs_pi32 (__m1, __m2); >} > > > > >static __inline __m64 >_mm_packs_pu16 (__m64 __m1, __m64 __m2) >{ > return (__m64) __builtin_ia32_packuswb ((__v4hi)__m1, (__v4hi)__m2); >} > >static __inline __m64 >_m_packuswb (__m64 __m1, __m64 __m2) >{ > return _mm_packs_pu16 (__m1, __m2); >} > > > >static __inline __m64 >_mm_unpackhi_pi8 (__m64 __m1, __m64 __m2) >{ > return (__m64) __builtin_ia32_punpckhbw ((__v8qi)__m1, (__v8qi)__m2); >} > >static __inline __m64 >_m_punpckhbw (__m64 __m1, __m64 __m2) >{ > return _mm_unpackhi_pi8 (__m1, __m2); >} > > > >static __inline __m64 >_mm_unpackhi_pi16 (__m64 __m1, __m64 __m2) >{ > return (__m64) __builtin_ia32_punpckhwd ((__v4hi)__m1, (__v4hi)__m2); >} > >static __inline __m64 >_m_punpckhwd (__m64 __m1, __m64 __m2) >{ > return _mm_unpackhi_pi16 (__m1, __m2); >} > > > >static __inline __m64 >_mm_unpackhi_pi32 (__m64 __m1, __m64 __m2) >{ > return (__m64) __builtin_ia32_punpckhdq ((__v2si)__m1, (__v2si)__m2); >} > >static __inline __m64 >_m_punpckhdq (__m64 __m1, __m64 __m2) >{ > return _mm_unpackhi_pi32 (__m1, __m2); >} > > > >static __inline __m64 >_mm_unpacklo_pi8 (__m64 __m1, __m64 __m2) >{ > return (__m64) __builtin_ia32_punpcklbw ((__v8qi)__m1, (__v8qi)__m2); >} > >static __inline __m64 >_m_punpcklbw (__m64 __m1, __m64 __m2) >{ > return _mm_unpacklo_pi8 (__m1, __m2); >} > > > >static __inline __m64 >_mm_unpacklo_pi16 (__m64 __m1, __m64 __m2) >{ > return (__m64) __builtin_ia32_punpcklwd ((__v4hi)__m1, (__v4hi)__m2); >} > >static __inline __m64 >_m_punpcklwd (__m64 __m1, __m64 __m2) >{ > return _mm_unpacklo_pi16 (__m1, __m2); >} > > > >static __inline __m64 >_mm_unpacklo_pi32 (__m64 __m1, __m64 __m2) >{ > return (__m64) __builtin_ia32_punpckldq ((__v2si)__m1, (__v2si)__m2); >} > >static __inline __m64 >_m_punpckldq (__m64 __m1, __m64 __m2) >{ > return _mm_unpacklo_pi32 (__m1, __m2); >} > > >static __inline __m64 >_mm_add_pi8 (__m64 __m1, __m64 __m2) >{ > return (__m64) __builtin_ia32_paddb ((__v8qi)__m1, (__v8qi)__m2); >} > >static __inline __m64 >_m_paddb (__m64 __m1, __m64 __m2) >{ > return _mm_add_pi8 (__m1, __m2); >} > > >static __inline __m64 >_mm_add_pi16 (__m64 __m1, __m64 __m2) >{ > return (__m64) __builtin_ia32_paddw ((__v4hi)__m1, (__v4hi)__m2); >} > >static __inline __m64 >_m_paddw (__m64 __m1, __m64 __m2) >{ > return _mm_add_pi16 (__m1, __m2); >} > > >static __inline __m64 >_mm_add_pi32 (__m64 __m1, __m64 __m2) >{ > return (__m64) __builtin_ia32_paddd ((__v2si)__m1, (__v2si)__m2); >} > >static __inline __m64 >_m_paddd (__m64 __m1, __m64 __m2) >{ > return _mm_add_pi32 (__m1, __m2); >} > > >static __inline __m64 >_mm_add_si64 (__m64 __m1, __m64 __m2) >{ > return (__m64) __builtin_ia32_paddq ((long long)__m1, (long long)__m2); >} > > > >static __inline __m64 >_mm_adds_pi8 (__m64 __m1, __m64 __m2) >{ > return (__m64) __builtin_ia32_paddsb ((__v8qi)__m1, (__v8qi)__m2); >} > >static __inline __m64 >_m_paddsb (__m64 __m1, __m64 __m2) >{ > return _mm_adds_pi8 (__m1, __m2); >} > > > >static __inline __m64 >_mm_adds_pi16 (__m64 __m1, __m64 __m2) >{ > return (__m64) __builtin_ia32_paddsw ((__v4hi)__m1, (__v4hi)__m2); >} > >static __inline __m64 >_m_paddsw (__m64 __m1, __m64 __m2) >{ > return _mm_adds_pi16 (__m1, __m2); >} > > > >static __inline __m64 >_mm_adds_pu8 (__m64 __m1, __m64 __m2) >{ > return (__m64) __builtin_ia32_paddusb ((__v8qi)__m1, (__v8qi)__m2); >} > >static __inline __m64 >_m_paddusb (__m64 __m1, __m64 __m2) >{ > return _mm_adds_pu8 (__m1, __m2); >} > > > >static __inline __m64 >_mm_adds_pu16 (__m64 __m1, __m64 __m2) >{ > return (__m64) __builtin_ia32_paddusw ((__v4hi)__m1, (__v4hi)__m2); >} > >static __inline __m64 >_m_paddusw (__m64 __m1, __m64 __m2) >{ > return _mm_adds_pu16 (__m1, __m2); >} > > >static __inline __m64 >_mm_sub_pi8 (__m64 __m1, __m64 __m2) >{ > return (__m64) __builtin_ia32_psubb ((__v8qi)__m1, (__v8qi)__m2); >} > >static __inline __m64 >_m_psubb (__m64 __m1, __m64 __m2) >{ > return _mm_sub_pi8 (__m1, __m2); >} > > >static __inline __m64 >_mm_sub_pi16 (__m64 __m1, __m64 __m2) >{ > return (__m64) __builtin_ia32_psubw ((__v4hi)__m1, (__v4hi)__m2); >} > >static __inline __m64 >_m_psubw (__m64 __m1, __m64 __m2) >{ > return _mm_sub_pi16 (__m1, __m2); >} > > >static __inline __m64 >_mm_sub_pi32 (__m64 __m1, __m64 __m2) >{ > return (__m64) __builtin_ia32_psubd ((__v2si)__m1, (__v2si)__m2); >} > >static __inline __m64 >_m_psubd (__m64 __m1, __m64 __m2) >{ > return _mm_sub_pi32 (__m1, __m2); >} > > >static __inline __m64 >_mm_sub_si64 (__m64 __m1, __m64 __m2) >{ > return (__m64) __builtin_ia32_psubq ((long long)__m1, (long long)__m2); >} > > > >static __inline __m64 >_mm_subs_pi8 (__m64 __m1, __m64 __m2) >{ > return (__m64) __builtin_ia32_psubsb ((__v8qi)__m1, (__v8qi)__m2); >} > >static __inline __m64 >_m_psubsb (__m64 __m1, __m64 __m2) >{ > return _mm_subs_pi8 (__m1, __m2); >} > > > >static __inline __m64 >_mm_subs_pi16 (__m64 __m1, __m64 __m2) >{ > return (__m64) __builtin_ia32_psubsw ((__v4hi)__m1, (__v4hi)__m2); >} > >static __inline __m64 >_m_psubsw (__m64 __m1, __m64 __m2) >{ > return _mm_subs_pi16 (__m1, __m2); >} > > > >static __inline __m64 >_mm_subs_pu8 (__m64 __m1, __m64 __m2) >{ > return (__m64) __builtin_ia32_psubusb ((__v8qi)__m1, (__v8qi)__m2); >} > >static __inline __m64 >_m_psubusb (__m64 __m1, __m64 __m2) >{ > return _mm_subs_pu8 (__m1, __m2); >} > > > >static __inline __m64 >_mm_subs_pu16 (__m64 __m1, __m64 __m2) >{ > return (__m64) __builtin_ia32_psubusw ((__v4hi)__m1, (__v4hi)__m2); >} > >static __inline __m64 >_m_psubusw (__m64 __m1, __m64 __m2) >{ > return _mm_subs_pu16 (__m1, __m2); >} > > > > >static __inline __m64 >_mm_madd_pi16 (__m64 __m1, __m64 __m2) >{ > return (__m64) __builtin_ia32_pmaddwd ((__v4hi)__m1, (__v4hi)__m2); >} > >static __inline __m64 >_m_pmaddwd (__m64 __m1, __m64 __m2) >{ > return _mm_madd_pi16 (__m1, __m2); >} > > > >static __inline __m64 >_mm_mulhi_pi16 (__m64 __m1, __m64 __m2) >{ > return (__m64) __builtin_ia32_pmulhw ((__v4hi)__m1, (__v4hi)__m2); >} > >static __inline __m64 >_m_pmulhw (__m64 __m1, __m64 __m2) >{ > return _mm_mulhi_pi16 (__m1, __m2); >} > > > >static __inline __m64 >_mm_mullo_pi16 (__m64 __m1, __m64 __m2) >{ > return (__m64) __builtin_ia32_pmullw ((__v4hi)__m1, (__v4hi)__m2); >} > >static __inline __m64 >_m_pmullw (__m64 __m1, __m64 __m2) >{ > return _mm_mullo_pi16 (__m1, __m2); >} > > >static __inline __m64 >_mm_sll_pi16 (__m64 __m, __m64 __count) >{ > return (__m64) __builtin_ia32_psllw ((__v4hi)__m, (long long)__count); >} > >static __inline __m64 >_m_psllw (__m64 __m, __m64 __count) >{ > return _mm_sll_pi16 (__m, __count); >} > >static __inline __m64 >_mm_slli_pi16 (__m64 __m, int __count) >{ > return (__m64) __builtin_ia32_psllw ((__v4hi)__m, __count); >} > >static __inline __m64 >_m_psllwi (__m64 __m, int __count) >{ > return _mm_slli_pi16 (__m, __count); >} > > >static __inline __m64 >_mm_sll_pi32 (__m64 __m, __m64 __count) >{ > return (__m64) __builtin_ia32_pslld ((__v2si)__m, (long long)__count); >} > >static __inline __m64 >_m_pslld (__m64 __m, __m64 __count) >{ > return _mm_sll_pi32 (__m, __count); >} > >static __inline __m64 >_mm_slli_pi32 (__m64 __m, int __count) >{ > return (__m64) __builtin_ia32_pslld ((__v2si)__m, __count); >} > >static __inline __m64 >_m_pslldi (__m64 __m, int __count) >{ > return _mm_slli_pi32 (__m, __count); >} > > >static __inline __m64 >_mm_sll_si64 (__m64 __m, __m64 __count) >{ > return (__m64) __builtin_ia32_psllq ((long long)__m, (long long)__count); >} > >static __inline __m64 >_m_psllq (__m64 __m, __m64 __count) >{ > return _mm_sll_si64 (__m, __count); >} > >static __inline __m64 >_mm_slli_si64 (__m64 __m, int __count) >{ > return (__m64) __builtin_ia32_psllq ((long long)__m, (long long)__count); >} > >static __inline __m64 >_m_psllqi (__m64 __m, int __count) >{ > return _mm_slli_si64 (__m, __count); >} > > >static __inline __m64 >_mm_sra_pi16 (__m64 __m, __m64 __count) >{ > return (__m64) __builtin_ia32_psraw ((__v4hi)__m, (long long)__count); >} > >static __inline __m64 >_m_psraw (__m64 __m, __m64 __count) >{ > return _mm_sra_pi16 (__m, __count); >} > >static __inline __m64 >_mm_srai_pi16 (__m64 __m, int __count) >{ > return (__m64) __builtin_ia32_psraw ((__v4hi)__m, __count); >} > >static __inline __m64 >_m_psrawi (__m64 __m, int __count) >{ > return _mm_srai_pi16 (__m, __count); >} > > >static __inline __m64 >_mm_sra_pi32 (__m64 __m, __m64 __count) >{ > return (__m64) __builtin_ia32_psrad ((__v2si)__m, (long long)__count); >} > >static __inline __m64 >_m_psrad (__m64 __m, __m64 __count) >{ > return _mm_sra_pi32 (__m, __count); >} > >static __inline __m64 >_mm_srai_pi32 (__m64 __m, int __count) >{ > return (__m64) __builtin_ia32_psrad ((__v2si)__m, __count); >} > >static __inline __m64 >_m_psradi (__m64 __m, int __count) >{ > return _mm_srai_pi32 (__m, __count); >} > > >static __inline __m64 >_mm_srl_pi16 (__m64 __m, __m64 __count) >{ > return (__m64) __builtin_ia32_psrlw ((__v4hi)__m, (long long)__count); >} > >static __inline __m64 >_m_psrlw (__m64 __m, __m64 __count) >{ > return _mm_srl_pi16 (__m, __count); >} > >static __inline __m64 >_mm_srli_pi16 (__m64 __m, int __count) >{ > return (__m64) __builtin_ia32_psrlw ((__v4hi)__m, __count); >} > >static __inline __m64 >_m_psrlwi (__m64 __m, int __count) >{ > return _mm_srli_pi16 (__m, __count); >} > > >static __inline __m64 >_mm_srl_pi32 (__m64 __m, __m64 __count) >{ > return (__m64) __builtin_ia32_psrld ((__v2si)__m, (long long)__count); >} > >static __inline __m64 >_m_psrld (__m64 __m, __m64 __count) >{ > return _mm_srl_pi32 (__m, __count); >} > >static __inline __m64 >_mm_srli_pi32 (__m64 __m, int __count) >{ > return (__m64) __builtin_ia32_psrld ((__v2si)__m, __count); >} > >static __inline __m64 >_m_psrldi (__m64 __m, int __count) >{ > return _mm_srli_pi32 (__m, __count); >} > > >static __inline __m64 >_mm_srl_si64 (__m64 __m, __m64 __count) >{ > return (__m64) __builtin_ia32_psrlq ((long long)__m, (long long)__count); >} > >static __inline __m64 >_m_psrlq (__m64 __m, __m64 __count) >{ > return _mm_srl_si64 (__m, __count); >} > >static __inline __m64 >_mm_srli_si64 (__m64 __m, int __count) >{ > return (__m64) __builtin_ia32_psrlq ((long long)__m, (long long)__count); >} > >static __inline __m64 >_m_psrlqi (__m64 __m, int __count) >{ > return _mm_srli_si64 (__m, __count); >} > > >static __inline __m64 >_mm_and_si64 (__m64 __m1, __m64 __m2) >{ > return (__m64) __builtin_ia32_pand ((long long)__m1, (long long)__m2); >} > >static __inline __m64 >_m_pand (__m64 __m1, __m64 __m2) >{ > return _mm_and_si64 (__m1, __m2); >} > > > >static __inline __m64 >_mm_andnot_si64 (__m64 __m1, __m64 __m2) >{ > return (__m64) __builtin_ia32_pandn ((long long)__m1, (long long)__m2); >} > >static __inline __m64 >_m_pandn (__m64 __m1, __m64 __m2) >{ > return _mm_andnot_si64 (__m1, __m2); >} > > >static __inline __m64 >_mm_or_si64 (__m64 __m1, __m64 __m2) >{ > return (__m64)__builtin_ia32_por ((long long)__m1, (long long)__m2); >} > >static __inline __m64 >_m_por (__m64 __m1, __m64 __m2) >{ > return _mm_or_si64 (__m1, __m2); >} > > >static __inline __m64 >_mm_xor_si64 (__m64 __m1, __m64 __m2) >{ > return (__m64)__builtin_ia32_pxor ((long long)__m1, (long long)__m2); >} > >static __inline __m64 >_m_pxor (__m64 __m1, __m64 __m2) >{ > return _mm_xor_si64 (__m1, __m2); >} > > > >static __inline __m64 >_mm_cmpeq_pi8 (__m64 __m1, __m64 __m2) >{ > return (__m64) __builtin_ia32_pcmpeqb ((__v8qi)__m1, (__v8qi)__m2); >} > >static __inline __m64 >_m_pcmpeqb (__m64 __m1, __m64 __m2) >{ > return _mm_cmpeq_pi8 (__m1, __m2); >} > >static __inline __m64 >_mm_cmpgt_pi8 (__m64 __m1, __m64 __m2) >{ > return (__m64) __builtin_ia32_pcmpgtb ((__v8qi)__m1, (__v8qi)__m2); >} > >static __inline __m64 >_m_pcmpgtb (__m64 __m1, __m64 __m2) >{ > return _mm_cmpgt_pi8 (__m1, __m2); >} > > > >static __inline __m64 >_mm_cmpeq_pi16 (__m64 __m1, __m64 __m2) >{ > return (__m64) __builtin_ia32_pcmpeqw ((__v4hi)__m1, (__v4hi)__m2); >} > >static __inline __m64 >_m_pcmpeqw (__m64 __m1, __m64 __m2) >{ > return _mm_cmpeq_pi16 (__m1, __m2); >} > >static __inline __m64 >_mm_cmpgt_pi16 (__m64 __m1, __m64 __m2) >{ > return (__m64) __builtin_ia32_pcmpgtw ((__v4hi)__m1, (__v4hi)__m2); >} > >static __inline __m64 >_m_pcmpgtw (__m64 __m1, __m64 __m2) >{ > return _mm_cmpgt_pi16 (__m1, __m2); >} > > > >static __inline __m64 >_mm_cmpeq_pi32 (__m64 __m1, __m64 __m2) >{ > return (__m64) __builtin_ia32_pcmpeqd ((__v2si)__m1, (__v2si)__m2); >} > >static __inline __m64 >_m_pcmpeqd (__m64 __m1, __m64 __m2) >{ > return _mm_cmpeq_pi32 (__m1, __m2); >} > >static __inline __m64 >_mm_cmpgt_pi32 (__m64 __m1, __m64 __m2) >{ > return (__m64) __builtin_ia32_pcmpgtd ((__v2si)__m1, (__v2si)__m2); >} > >static __inline __m64 >_m_pcmpgtd (__m64 __m1, __m64 __m2) >{ > return _mm_cmpgt_pi32 (__m1, __m2); >} > > >static __inline __m64 >_mm_setzero_si64 (void) >{ > return (__m64)__builtin_ia32_mmx_zero (); >} > > >static __inline __m64 >_mm_set_pi32 (int __i1, int __i0) >{ > union { > __m64 __q; > struct { > unsigned int __i0; > unsigned int __i1; > } __s; > } __u; > > __u.__s.__i0 = __i0; > __u.__s.__i1 = __i1; > > return __u.__q; >} > > >static __inline __m64 >_mm_set_pi16 (short __w3, short __w2, short __w1, short __w0) >{ > unsigned int __i1 = (unsigned short)__w3 << 16 | (unsigned short)__w2; > unsigned int __i0 = (unsigned short)__w1 << 16 | (unsigned short)__w0; > return _mm_set_pi32 (__i1, __i0); > >} > > >static __inline __m64 >_mm_set_pi8 (char __b7, char __b6, char __b5, char __b4, > char __b3, char __b2, char __b1, char __b0) >{ > unsigned int __i1, __i0; > > __i1 = (unsigned char)__b7; > __i1 = __i1 << 8 | (unsigned char)__b6; > __i1 = __i1 << 8 | (unsigned char)__b5; > __i1 = __i1 << 8 | (unsigned char)__b4; > > __i0 = (unsigned char)__b3; > __i0 = __i0 << 8 | (unsigned char)__b2; > __i0 = __i0 << 8 | (unsigned char)__b1; > __i0 = __i0 << 8 | (unsigned char)__b0; > > return _mm_set_pi32 (__i1, __i0); >} > > >static __inline __m64 >_mm_setr_pi32 (int __i0, int __i1) >{ > return _mm_set_pi32 (__i1, __i0); >} > >static __inline __m64 >_mm_setr_pi16 (short __w0, short __w1, short __w2, short __w3) >{ > return _mm_set_pi16 (__w3, __w2, __w1, __w0); >} > >static __inline __m64 >_mm_setr_pi8 (char __b0, char __b1, char __b2, char __b3, > char __b4, char __b5, char __b6, char __b7) >{ > return _mm_set_pi8 (__b7, __b6, __b5, __b4, __b3, __b2, __b1, __b0); >} > > >static __inline __m64 >_mm_set1_pi32 (int __i) >{ > return _mm_set_pi32 (__i, __i); >} > > >static __inline __m64 >_mm_set1_pi16 (short __w) >{ > unsigned int __i = (unsigned short)__w << 16 | (unsigned short)__w; > return _mm_set1_pi32 (__i); >} > > >static __inline __m64 >_mm_set1_pi8 (char __b) >{ > unsigned int __w = (unsigned char)__b << 8 | (unsigned char)__b; > unsigned int __i = __w << 16 | __w; > return _mm_set1_pi32 (__i); >} ># 39 "/usr/lib/gcc/x86_64-redhat-linux/3.4.5/include/xmmintrin.h" 2 3 4 > > >typedef float __m128 __attribute__ ((__mode__(__V4SF__))); > > >typedef float __v4sf __attribute__ ((__mode__(__V4SF__))); > > > > > > >enum _mm_hint >{ > _MM_HINT_T0 = 3, > _MM_HINT_T1 = 2, > _MM_HINT_T2 = 1, > _MM_HINT_NTA = 0 >}; ># 90 "/usr/lib/gcc/x86_64-redhat-linux/3.4.5/include/xmmintrin.h" 3 4 >static __inline __m128 >_mm_add_ss (__m128 __A, __m128 __B) >{ > return (__m128) __builtin_ia32_addss ((__v4sf)__A, (__v4sf)__B); >} > >static __inline __m128 >_mm_sub_ss (__m128 __A, __m128 __B) >{ > return (__m128) __builtin_ia32_subss ((__v4sf)__A, (__v4sf)__B); >} > >static __inline __m128 >_mm_mul_ss (__m128 __A, __m128 __B) >{ > return (__m128) __builtin_ia32_mulss ((__v4sf)__A, (__v4sf)__B); >} > >static __inline __m128 >_mm_div_ss (__m128 __A, __m128 __B) >{ > return (__m128) __builtin_ia32_divss ((__v4sf)__A, (__v4sf)__B); >} > >static __inline __m128 >_mm_sqrt_ss (__m128 __A) >{ > return (__m128) __builtin_ia32_sqrtss ((__v4sf)__A); >} > >static __inline __m128 >_mm_rcp_ss (__m128 __A) >{ > return (__m128) __builtin_ia32_rcpss ((__v4sf)__A); >} > >static __inline __m128 >_mm_rsqrt_ss (__m128 __A) >{ > return (__m128) __builtin_ia32_rsqrtss ((__v4sf)__A); >} > >static __inline __m128 >_mm_min_ss (__m128 __A, __m128 __B) >{ > return (__m128) __builtin_ia32_minss ((__v4sf)__A, (__v4sf)__B); >} > >static __inline __m128 >_mm_max_ss (__m128 __A, __m128 __B) >{ > return (__m128) __builtin_ia32_maxss ((__v4sf)__A, (__v4sf)__B); >} > > > >static __inline __m128 >_mm_add_ps (__m128 __A, __m128 __B) >{ > return (__m128) __builtin_ia32_addps ((__v4sf)__A, (__v4sf)__B); >} > >static __inline __m128 >_mm_sub_ps (__m128 __A, __m128 __B) >{ > return (__m128) __builtin_ia32_subps ((__v4sf)__A, (__v4sf)__B); >} > >static __inline __m128 >_mm_mul_ps (__m128 __A, __m128 __B) >{ > return (__m128) __builtin_ia32_mulps ((__v4sf)__A, (__v4sf)__B); >} > >static __inline __m128 >_mm_div_ps (__m128 __A, __m128 __B) >{ > return (__m128) __builtin_ia32_divps ((__v4sf)__A, (__v4sf)__B); >} > >static __inline __m128 >_mm_sqrt_ps (__m128 __A) >{ > return (__m128) __builtin_ia32_sqrtps ((__v4sf)__A); >} > >static __inline __m128 >_mm_rcp_ps (__m128 __A) >{ > return (__m128) __builtin_ia32_rcpps ((__v4sf)__A); >} > >static __inline __m128 >_mm_rsqrt_ps (__m128 __A) >{ > return (__m128) __builtin_ia32_rsqrtps ((__v4sf)__A); >} > >static __inline __m128 >_mm_min_ps (__m128 __A, __m128 __B) >{ > return (__m128) __builtin_ia32_minps ((__v4sf)__A, (__v4sf)__B); >} > >static __inline __m128 >_mm_max_ps (__m128 __A, __m128 __B) >{ > return (__m128) __builtin_ia32_maxps ((__v4sf)__A, (__v4sf)__B); >} > > > >static __inline __m128 >_mm_and_ps (__m128 __A, __m128 __B) >{ > return __builtin_ia32_andps (__A, __B); >} > >static __inline __m128 >_mm_andnot_ps (__m128 __A, __m128 __B) >{ > return __builtin_ia32_andnps (__A, __B); >} > >static __inline __m128 >_mm_or_ps (__m128 __A, __m128 __B) >{ > return __builtin_ia32_orps (__A, __B); >} > >static __inline __m128 >_mm_xor_ps (__m128 __A, __m128 __B) >{ > return __builtin_ia32_xorps (__A, __B); >} > > > > > >static __inline __m128 >_mm_cmpeq_ss (__m128 __A, __m128 __B) >{ > return (__m128) __builtin_ia32_cmpeqss ((__v4sf)__A, (__v4sf)__B); >} > >static __inline __m128 >_mm_cmplt_ss (__m128 __A, __m128 __B) >{ > return (__m128) __builtin_ia32_cmpltss ((__v4sf)__A, (__v4sf)__B); >} > >static __inline __m128 >_mm_cmple_ss (__m128 __A, __m128 __B) >{ > return (__m128) __builtin_ia32_cmpless ((__v4sf)__A, (__v4sf)__B); >} > >static __inline __m128 >_mm_cmpgt_ss (__m128 __A, __m128 __B) >{ > return (__m128) __builtin_ia32_movss ((__v4sf) __A, > (__v4sf) > __builtin_ia32_cmpltss ((__v4sf) __B, > (__v4sf) > __A)); >} > >static __inline __m128 >_mm_cmpge_ss (__m128 __A, __m128 __B) >{ > return (__m128) __builtin_ia32_movss ((__v4sf) __A, > (__v4sf) > __builtin_ia32_cmpless ((__v4sf) __B, > (__v4sf) > __A)); >} > >static __inline __m128 >_mm_cmpneq_ss (__m128 __A, __m128 __B) >{ > return (__m128) __builtin_ia32_cmpneqss ((__v4sf)__A, (__v4sf)__B); >} > >static __inline __m128 >_mm_cmpnlt_ss (__m128 __A, __m128 __B) >{ > return (__m128) __builtin_ia32_cmpnltss ((__v4sf)__A, (__v4sf)__B); >} > >static __inline __m128 >_mm_cmpnle_ss (__m128 __A, __m128 __B) >{ > return (__m128) __builtin_ia32_cmpnless ((__v4sf)__A, (__v4sf)__B); >} > >static __inline __m128 >_mm_cmpngt_ss (__m128 __A, __m128 __B) >{ > return (__m128) __builtin_ia32_movss ((__v4sf) __A, > (__v4sf) > __builtin_ia32_cmpnltss ((__v4sf) __B, > (__v4sf) > __A)); >} > >static __inline __m128 >_mm_cmpnge_ss (__m128 __A, __m128 __B) >{ > return (__m128) __builtin_ia32_movss ((__v4sf) __A, > (__v4sf) > __builtin_ia32_cmpnless ((__v4sf) __B, > (__v4sf) > __A)); >} > >static __inline __m128 >_mm_cmpord_ss (__m128 __A, __m128 __B) >{ > return (__m128) __builtin_ia32_cmpordss ((__v4sf)__A, (__v4sf)__B); >} > >static __inline __m128 >_mm_cmpunord_ss (__m128 __A, __m128 __B) >{ > return (__m128) __builtin_ia32_cmpunordss ((__v4sf)__A, (__v4sf)__B); >} > > > > > >static __inline __m128 >_mm_cmpeq_ps (__m128 __A, __m128 __B) >{ > return (__m128) __builtin_ia32_cmpeqps ((__v4sf)__A, (__v4sf)__B); >} > >static __inline __m128 >_mm_cmplt_ps (__m128 __A, __m128 __B) >{ > return (__m128) __builtin_ia32_cmpltps ((__v4sf)__A, (__v4sf)__B); >} > >static __inline __m128 >_mm_cmple_ps (__m128 __A, __m128 __B) >{ > return (__m128) __builtin_ia32_cmpleps ((__v4sf)__A, (__v4sf)__B); >} > >static __inline __m128 >_mm_cmpgt_ps (__m128 __A, __m128 __B) >{ > return (__m128) __builtin_ia32_cmpgtps ((__v4sf)__A, (__v4sf)__B); >} > >static __inline __m128 >_mm_cmpge_ps (__m128 __A, __m128 __B) >{ > return (__m128) __builtin_ia32_cmpgeps ((__v4sf)__A, (__v4sf)__B); >} > >static __inline __m128 >_mm_cmpneq_ps (__m128 __A, __m128 __B) >{ > return (__m128) __builtin_ia32_cmpneqps ((__v4sf)__A, (__v4sf)__B); >} > >static __inline __m128 >_mm_cmpnlt_ps (__m128 __A, __m128 __B) >{ > return (__m128) __builtin_ia32_cmpnltps ((__v4sf)__A, (__v4sf)__B); >} > >static __inline __m128 >_mm_cmpnle_ps (__m128 __A, __m128 __B) >{ > return (__m128) __builtin_ia32_cmpnleps ((__v4sf)__A, (__v4sf)__B); >} > >static __inline __m128 >_mm_cmpngt_ps (__m128 __A, __m128 __B) >{ > return (__m128) __builtin_ia32_cmpngtps ((__v4sf)__A, (__v4sf)__B); >} > >static __inline __m128 >_mm_cmpnge_ps (__m128 __A, __m128 __B) >{ > return (__m128) __builtin_ia32_cmpngeps ((__v4sf)__A, (__v4sf)__B); >} > >static __inline __m128 >_mm_cmpord_ps (__m128 __A, __m128 __B) >{ > return (__m128) __builtin_ia32_cmpordps ((__v4sf)__A, (__v4sf)__B); >} > >static __inline __m128 >_mm_cmpunord_ps (__m128 __A, __m128 __B) >{ > return (__m128) __builtin_ia32_cmpunordps ((__v4sf)__A, (__v4sf)__B); >} > > > > >static __inline int >_mm_comieq_ss (__m128 __A, __m128 __B) >{ > return __builtin_ia32_comieq ((__v4sf)__A, (__v4sf)__B); >} > >static __inline int >_mm_comilt_ss (__m128 __A, __m128 __B) >{ > return __builtin_ia32_comilt ((__v4sf)__A, (__v4sf)__B); >} > >static __inline int >_mm_comile_ss (__m128 __A, __m128 __B) >{ > return __builtin_ia32_comile ((__v4sf)__A, (__v4sf)__B); >} > >static __inline int >_mm_comigt_ss (__m128 __A, __m128 __B) >{ > return __builtin_ia32_comigt ((__v4sf)__A, (__v4sf)__B); >} > >static __inline int >_mm_comige_ss (__m128 __A, __m128 __B) >{ > return __builtin_ia32_comige ((__v4sf)__A, (__v4sf)__B); >} > >static __inline int >_mm_comineq_ss (__m128 __A, __m128 __B) >{ > return __builtin_ia32_comineq ((__v4sf)__A, (__v4sf)__B); >} > >static __inline int >_mm_ucomieq_ss (__m128 __A, __m128 __B) >{ > return __builtin_ia32_ucomieq ((__v4sf)__A, (__v4sf)__B); >} > >static __inline int >_mm_ucomilt_ss (__m128 __A, __m128 __B) >{ > return __builtin_ia32_ucomilt ((__v4sf)__A, (__v4sf)__B); >} > >static __inline int >_mm_ucomile_ss (__m128 __A, __m128 __B) >{ > return __builtin_ia32_ucomile ((__v4sf)__A, (__v4sf)__B); >} > >static __inline int >_mm_ucomigt_ss (__m128 __A, __m128 __B) >{ > return __builtin_ia32_ucomigt ((__v4sf)__A, (__v4sf)__B); >} > >static __inline int >_mm_ucomige_ss (__m128 __A, __m128 __B) >{ > return __builtin_ia32_ucomige ((__v4sf)__A, (__v4sf)__B); >} > >static __inline int >_mm_ucomineq_ss (__m128 __A, __m128 __B) >{ > return __builtin_ia32_ucomineq ((__v4sf)__A, (__v4sf)__B); >} > > > >static __inline int >_mm_cvtss_si32 (__m128 __A) >{ > return __builtin_ia32_cvtss2si ((__v4sf) __A); >} > >static __inline int >_mm_cvt_ss2si (__m128 __A) >{ > return _mm_cvtss_si32 (__A); >} > > > > >static __inline long long >_mm_cvtss_si64x (__m128 __A) >{ > return __builtin_ia32_cvtss2si64 ((__v4sf) __A); >} > > > > >static __inline __m64 >_mm_cvtps_pi32 (__m128 __A) >{ > return (__m64) __builtin_ia32_cvtps2pi ((__v4sf) __A); >} > >static __inline __m64 >_mm_cvt_ps2pi (__m128 __A) >{ > return _mm_cvtps_pi32 (__A); >} > > >static __inline int >_mm_cvttss_si32 (__m128 __A) >{ > return __builtin_ia32_cvttss2si ((__v4sf) __A); >} > >static __inline int >_mm_cvtt_ss2si (__m128 __A) >{ > return _mm_cvttss_si32 (__A); >} > > > >static __inline long long >_mm_cvttss_si64x (__m128 __A) >{ > return __builtin_ia32_cvttss2si64 ((__v4sf) __A); >} > > > > >static __inline __m64 >_mm_cvttps_pi32 (__m128 __A) >{ > return (__m64) __builtin_ia32_cvttps2pi ((__v4sf) __A); >} > >static __inline __m64 >_mm_cvtt_ps2pi (__m128 __A) >{ > return _mm_cvttps_pi32 (__A); >} > > >static __inline __m128 >_mm_cvtsi32_ss (__m128 __A, int __B) >{ > return (__m128) __builtin_ia32_cvtsi2ss ((__v4sf) __A, __B); >} > >static __inline __m128 >_mm_cvt_si2ss (__m128 __A, int __B) >{ > return _mm_cvtsi32_ss (__A, __B); >} > > > >static __inline __m128 >_mm_cvtsi64x_ss (__m128 __A, long long __B) >{ > return (__m128) __builtin_ia32_cvtsi642ss ((__v4sf) __A, __B); >} > > > > >static __inline __m128 >_mm_cvtpi32_ps (__m128 __A, __m64 __B) >{ > return (__m128) __builtin_ia32_cvtpi2ps ((__v4sf) __A, (__v2si)__B); >} > >static __inline __m128 >_mm_cvt_pi2ps (__m128 __A, __m64 __B) >{ > return _mm_cvtpi32_ps (__A, __B); >} > > >static __inline __m128 >_mm_cvtpi16_ps (__m64 __A) >{ > __v4hi __sign; > __v2si __hisi, __losi; > __v4sf __r; > > > > > __sign = (__v4hi) __builtin_ia32_mmx_zero (); > __sign = __builtin_ia32_pcmpgtw (__sign, (__v4hi)__A); > > > __hisi = (__v2si) __builtin_ia32_punpckhwd ((__v4hi)__A, __sign); > __losi = (__v2si) __builtin_ia32_punpcklwd ((__v4hi)__A, __sign); > > > __r = (__v4sf) __builtin_ia32_setzerops (); > __r = __builtin_ia32_cvtpi2ps (__r, __hisi); > __r = __builtin_ia32_movlhps (__r, __r); > __r = __builtin_ia32_cvtpi2ps (__r, __losi); > > return (__m128) __r; >} > > >static __inline __m128 >_mm_cvtpu16_ps (__m64 __A) >{ > __v4hi __zero = (__v4hi) __builtin_ia32_mmx_zero (); > __v2si __hisi, __losi; > __v4sf __r; > > > __hisi = (__v2si) __builtin_ia32_punpckhwd ((__v4hi)__A, __zero); > __losi = (__v2si) __builtin_ia32_punpcklwd ((__v4hi)__A, __zero); > > > __r = (__v4sf) __builtin_ia32_setzerops (); > __r = __builtin_ia32_cvtpi2ps (__r, __hisi); > __r = __builtin_ia32_movlhps (__r, __r); > __r = __builtin_ia32_cvtpi2ps (__r, __losi); > > return (__m128) __r; >} > > >static __inline __m128 >_mm_cvtpi8_ps (__m64 __A) >{ > __v8qi __sign; > > > > > __sign = (__v8qi) __builtin_ia32_mmx_zero (); > __sign = __builtin_ia32_pcmpgtb (__sign, (__v8qi)__A); > > > __A = (__m64) __builtin_ia32_punpcklbw ((__v8qi)__A, __sign); > > return _mm_cvtpi16_ps(__A); >} > > >static __inline __m128 >_mm_cvtpu8_ps(__m64 __A) >{ > __v8qi __zero = (__v8qi) __builtin_ia32_mmx_zero (); > __A = (__m64) __builtin_ia32_punpcklbw ((__v8qi)__A, __zero); > return _mm_cvtpu16_ps(__A); >} > > >static __inline __m128 >_mm_cvtpi32x2_ps(__m64 __A, __m64 __B) >{ > __v4sf __zero = (__v4sf) __builtin_ia32_setzerops (); > __v4sf __sfa = __builtin_ia32_cvtpi2ps (__zero, (__v2si)__A); > __v4sf __sfb = __builtin_ia32_cvtpi2ps (__zero, (__v2si)__B); > return (__m128) __builtin_ia32_movlhps (__sfa, __sfb); >} > > >static __inline __m64 >_mm_cvtps_pi16(__m128 __A) >{ > __v4sf __hisf = (__v4sf)__A; > __v4sf __losf = __builtin_ia32_movhlps (__hisf, __hisf); > __v2si __hisi = __builtin_ia32_cvtps2pi (__hisf); > __v2si __losi = __builtin_ia32_cvtps2pi (__losf); > return (__m64) __builtin_ia32_packssdw (__hisi, __losi); >} > > >static __inline __m64 >_mm_cvtps_pi8(__m128 __A) >{ > __v4hi __tmp = (__v4hi) _mm_cvtps_pi16 (__A); > __v4hi __zero = (__v4hi) __builtin_ia32_mmx_zero (); > return (__m64) __builtin_ia32_packsswb (__tmp, __zero); >} ># 698 "/usr/lib/gcc/x86_64-redhat-linux/3.4.5/include/xmmintrin.h" 3 4 >static __inline __m128 >_mm_unpackhi_ps (__m128 __A, __m128 __B) >{ > return (__m128) __builtin_ia32_unpckhps ((__v4sf)__A, (__v4sf)__B); >} > > >static __inline __m128 >_mm_unpacklo_ps (__m128 __A, __m128 __B) >{ > return (__m128) __builtin_ia32_unpcklps ((__v4sf)__A, (__v4sf)__B); >} > > > >static __inline __m128 >_mm_loadh_pi (__m128 __A, __m64 const *__P) >{ > return (__m128) __builtin_ia32_loadhps ((__v4sf)__A, (__v2si *)__P); >} > > >static __inline void >_mm_storeh_pi (__m64 *__P, __m128 __A) >{ > __builtin_ia32_storehps ((__v2si *)__P, (__v4sf)__A); >} > > >static __inline __m128 >_mm_movehl_ps (__m128 __A, __m128 __B) >{ > return (__m128) __builtin_ia32_movhlps ((__v4sf)__A, (__v4sf)__B); >} > > >static __inline __m128 >_mm_movelh_ps (__m128 __A, __m128 __B) >{ > return (__m128) __builtin_ia32_movlhps ((__v4sf)__A, (__v4sf)__B); >} > > > >static __inline __m128 >_mm_loadl_pi (__m128 __A, __m64 const *__P) >{ > return (__m128) __builtin_ia32_loadlps ((__v4sf)__A, (__v2si *)__P); >} > > >static __inline void >_mm_storel_pi (__m64 *__P, __m128 __A) >{ > __builtin_ia32_storelps ((__v2si *)__P, (__v4sf)__A); >} > > >static __inline int >_mm_movemask_ps (__m128 __A) >{ > return __builtin_ia32_movmskps ((__v4sf)__A); >} > > >static __inline unsigned int >_mm_getcsr (void) >{ > return __builtin_ia32_stmxcsr (); >} > > >static __inline unsigned int >_MM_GET_EXCEPTION_STATE (void) >{ > return _mm_getcsr() & 0x003f; >} > >static __inline unsigned int >_MM_GET_EXCEPTION_MASK (void) >{ > return _mm_getcsr() & 0x1f80; >} > >static __inline unsigned int >_MM_GET_ROUNDING_MODE (void) >{ > return _mm_getcsr() & 0x6000; >} > >static __inline unsigned int >_MM_GET_FLUSH_ZERO_MODE (void) >{ > return _mm_getcsr() & 0x8000; >} > > >static __inline void >_mm_setcsr (unsigned int __I) >{ > __builtin_ia32_ldmxcsr (__I); >} > > >static __inline void >_MM_SET_EXCEPTION_STATE(unsigned int __mask) >{ > _mm_setcsr((_mm_getcsr() & ~0x003f) | __mask); >} > >static __inline void >_MM_SET_EXCEPTION_MASK (unsigned int __mask) >{ > _mm_setcsr((_mm_getcsr() & ~0x1f80) | __mask); >} > >static __inline void >_MM_SET_ROUNDING_MODE (unsigned int __mode) >{ > _mm_setcsr((_mm_getcsr() & ~0x6000) | __mode); >} > >static __inline void >_MM_SET_FLUSH_ZERO_MODE (unsigned int __mode) >{ > _mm_setcsr((_mm_getcsr() & ~0x8000) | __mode); >} > > >static __inline __m128 >_mm_load_ss (float const *__P) >{ > return (__m128) __builtin_ia32_loadss (__P); >} > > >static __inline __m128 >_mm_load1_ps (float const *__P) >{ > __v4sf __tmp = __builtin_ia32_loadss (__P); > return (__m128) __builtin_ia32_shufps (__tmp, __tmp, (((0) << 6) | ((0) << 4) | ((0) << 2) | (0))); >} > >static __inline __m128 >_mm_load_ps1 (float const *__P) >{ > return _mm_load1_ps (__P); >} > > >static __inline __m128 >_mm_load_ps (float const *__P) >{ > return (__m128) __builtin_ia32_loadaps (__P); >} > > >static __inline __m128 >_mm_loadu_ps (float const *__P) >{ > return (__m128) __builtin_ia32_loadups (__P); >} > > >static __inline __m128 >_mm_loadr_ps (float const *__P) >{ > __v4sf __tmp = __builtin_ia32_loadaps (__P); > return (__m128) __builtin_ia32_shufps (__tmp, __tmp, (((0) << 6) | ((1) << 4) | ((2) << 2) | (3))); >} > > >static __inline __m128 >_mm_set_ss (float __F) >{ > return (__m128) __builtin_ia32_loadss (&__F); >} > > >static __inline __m128 >_mm_set1_ps (float __F) >{ > __v4sf __tmp = __builtin_ia32_loadss (&__F); > return (__m128) __builtin_ia32_shufps (__tmp, __tmp, (((0) << 6) | ((0) << 4) | ((0) << 2) | (0))); >} > >static __inline __m128 >_mm_set_ps1 (float __F) >{ > return _mm_set1_ps (__F); >} > > >static __inline __m128 >_mm_set_ps (const float __Z, const float __Y, const float __X, const float __W) >{ > return (__v4sf) {__W, __X, __Y, __Z}; >} > > >static __inline __m128 >_mm_setr_ps (float __Z, float __Y, float __X, float __W) >{ > return _mm_set_ps (__W, __X, __Y, __Z); >} > > >static __inline __m128 >_mm_setzero_ps (void) >{ > return (__m128) __builtin_ia32_setzerops (); >} > > >static __inline void >_mm_store_ss (float *__P, __m128 __A) >{ > __builtin_ia32_storess (__P, (__v4sf)__A); >} > > >static __inline void >_mm_store1_ps (float *__P, __m128 __A) >{ > __v4sf __va = (__v4sf)__A; > __v4sf __tmp = __builtin_ia32_shufps (__va, __va, (((0) << 6) | ((0) << 4) | ((0) << 2) | (0))); > __builtin_ia32_storeaps (__P, __tmp); >} > >static __inline void >_mm_store_ps1 (float *__P, __m128 __A) >{ > _mm_store1_ps (__P, __A); >} > > >static __inline void >_mm_store_ps (float *__P, __m128 __A) >{ > __builtin_ia32_storeaps (__P, (__v4sf)__A); >} > > >static __inline void >_mm_storeu_ps (float *__P, __m128 __A) >{ > __builtin_ia32_storeups (__P, (__v4sf)__A); >} > > >static __inline void >_mm_storer_ps (float *__P, __m128 __A) >{ > __v4sf __va = (__v4sf)__A; > __v4sf __tmp = __builtin_ia32_shufps (__va, __va, (((0) << 6) | ((1) << 4) | ((2) << 2) | (3))); > __builtin_ia32_storeaps (__P, __tmp); >} > > >static __inline __m128 >_mm_move_ss (__m128 __A, __m128 __B) >{ > return (__m128) __builtin_ia32_movss ((__v4sf)__A, (__v4sf)__B); >} ># 1003 "/usr/lib/gcc/x86_64-redhat-linux/3.4.5/include/xmmintrin.h" 3 4 >static __inline __m64 >_mm_max_pi16 (__m64 __A, __m64 __B) >{ > return (__m64) __builtin_ia32_pmaxsw ((__v4hi)__A, (__v4hi)__B); >} > >static __inline __m64 >_m_pmaxsw (__m64 __A, __m64 __B) >{ > return _mm_max_pi16 (__A, __B); >} > > >static __inline __m64 >_mm_max_pu8 (__m64 __A, __m64 __B) >{ > return (__m64) __builtin_ia32_pmaxub ((__v8qi)__A, (__v8qi)__B); >} > >static __inline __m64 >_m_pmaxub (__m64 __A, __m64 __B) >{ > return _mm_max_pu8 (__A, __B); >} > > >static __inline __m64 >_mm_min_pi16 (__m64 __A, __m64 __B) >{ > return (__m64) __builtin_ia32_pminsw ((__v4hi)__A, (__v4hi)__B); >} > >static __inline __m64 >_m_pminsw (__m64 __A, __m64 __B) >{ > return _mm_min_pi16 (__A, __B); >} > > >static __inline __m64 >_mm_min_pu8 (__m64 __A, __m64 __B) >{ > return (__m64) __builtin_ia32_pminub ((__v8qi)__A, (__v8qi)__B); >} > >static __inline __m64 >_m_pminub (__m64 __A, __m64 __B) >{ > return _mm_min_pu8 (__A, __B); >} > > >static __inline int >_mm_movemask_pi8 (__m64 __A) >{ > return __builtin_ia32_pmovmskb ((__v8qi)__A); >} > >static __inline int >_m_pmovmskb (__m64 __A) >{ > return _mm_movemask_pi8 (__A); >} > > > >static __inline __m64 >_mm_mulhi_pu16 (__m64 __A, __m64 __B) >{ > return (__m64) __builtin_ia32_pmulhuw ((__v4hi)__A, (__v4hi)__B); >} > >static __inline __m64 >_m_pmulhuw (__m64 __A, __m64 __B) >{ > return _mm_mulhi_pu16 (__A, __B); >} ># 1104 "/usr/lib/gcc/x86_64-redhat-linux/3.4.5/include/xmmintrin.h" 3 4 >static __inline void >_mm_maskmove_si64 (__m64 __A, __m64 __N, char *__P) >{ > __builtin_ia32_maskmovq ((__v8qi)__A, (__v8qi)__N, __P); >} > >static __inline void >_m_maskmovq (__m64 __A, __m64 __N, char *__P) >{ > _mm_maskmove_si64 (__A, __N, __P); >} > > >static __inline __m64 >_mm_avg_pu8 (__m64 __A, __m64 __B) >{ > return (__m64) __builtin_ia32_pavgb ((__v8qi)__A, (__v8qi)__B); >} > >static __inline __m64 >_m_pavgb (__m64 __A, __m64 __B) >{ > return _mm_avg_pu8 (__A, __B); >} > > >static __inline __m64 >_mm_avg_pu16 (__m64 __A, __m64 __B) >{ > return (__m64) __builtin_ia32_pavgw ((__v4hi)__A, (__v4hi)__B); >} > >static __inline __m64 >_m_pavgw (__m64 __A, __m64 __B) >{ > return _mm_avg_pu16 (__A, __B); >} > > > > >static __inline __m64 >_mm_sad_pu8 (__m64 __A, __m64 __B) >{ > return (__m64) __builtin_ia32_psadbw ((__v8qi)__A, (__v8qi)__B); >} > >static __inline __m64 >_m_psadbw (__m64 __A, __m64 __B) >{ > return _mm_sad_pu8 (__A, __B); >} ># 1171 "/usr/lib/gcc/x86_64-redhat-linux/3.4.5/include/xmmintrin.h" 3 4 >static __inline void >_mm_stream_pi (__m64 *__P, __m64 __A) >{ > __builtin_ia32_movntq ((unsigned long long *)__P, (unsigned long long)__A); >} > > >static __inline void >_mm_stream_ps (float *__P, __m128 __A) >{ > __builtin_ia32_movntps (__P, (__v4sf)__A); >} > > > >static __inline void >_mm_sfence (void) >{ > __builtin_ia32_sfence (); >} > > > > >static __inline void >_mm_pause (void) >{ > __asm__ __volatile__ ("rep; nop" : : ); >} ># 1216 "/usr/lib/gcc/x86_64-redhat-linux/3.4.5/include/xmmintrin.h" 3 4 ># 1 "/usr/lib/gcc/x86_64-redhat-linux/3.4.5/include/emmintrin.h" 1 3 4 ># 34 "/usr/lib/gcc/x86_64-redhat-linux/3.4.5/include/emmintrin.h" 3 4 ># 1 "/usr/lib/gcc/x86_64-redhat-linux/3.4.5/include/xmmintrin.h" 1 3 4 ># 35 "/usr/lib/gcc/x86_64-redhat-linux/3.4.5/include/emmintrin.h" 2 3 4 > > >typedef double __v2df __attribute__ ((mode (V2DF))); >typedef int __v2di __attribute__ ((mode (V2DI))); >typedef int __v4si __attribute__ ((mode (V4SI))); >typedef int __v8hi __attribute__ ((mode (V8HI))); >typedef int __v16qi __attribute__ ((mode (V16QI))); ># 51 "/usr/lib/gcc/x86_64-redhat-linux/3.4.5/include/emmintrin.h" 3 4 >static __inline __v2df >_mm_load_sd (double const *__P) >{ > return (__v2df) __builtin_ia32_loadsd (__P); >} > > >static __inline __v2df >_mm_load1_pd (double const *__P) >{ > __v2df __tmp = __builtin_ia32_loadsd (__P); > return (__v2df) __builtin_ia32_shufpd (__tmp, __tmp, (((0) << 1) | (0))); >} > >static __inline __v2df >_mm_load_pd1 (double const *__P) >{ > return _mm_load1_pd (__P); >} > > >static __inline __v2df >_mm_load_pd (double const *__P) >{ > return (__v2df) __builtin_ia32_loadapd (__P); >} > > >static __inline __v2df >_mm_loadu_pd (double const *__P) >{ > return (__v2df) __builtin_ia32_loadupd (__P); >} > > >static __inline __v2df >_mm_loadr_pd (double const *__P) >{ > __v2df __tmp = __builtin_ia32_loadapd (__P); > return (__v2df) __builtin_ia32_shufpd (__tmp, __tmp, (((0) << 1) | (1))); >} > > >static __inline __v2df >_mm_set_sd (double __F) >{ > return (__v2df) __builtin_ia32_loadsd (&__F); >} > > >static __inline __v2df >_mm_set1_pd (double __F) >{ > __v2df __tmp = __builtin_ia32_loadsd (&__F); > return (__v2df) __builtin_ia32_shufpd (__tmp, __tmp, (((0) << 1) | (0))); >} > >static __inline __v2df >_mm_set_pd1 (double __F) >{ > return _mm_set1_pd (__F); >} > > >static __inline __v2df >_mm_set_pd (double __Z, double __Y) >{ > return (__v2df) {__Y, __Z}; >} > > >static __inline __v2df >_mm_setr_pd (double __Z, double __Y) >{ > return _mm_set_pd (__Y, __Z); >} > > >static __inline __v2df >_mm_setzero_pd (void) >{ > return (__v2df) __builtin_ia32_setzeropd (); >} > > >static __inline void >_mm_store_sd (double *__P, __v2df __A) >{ > __builtin_ia32_storesd (__P, (__v2df)__A); >} > > >static __inline void >_mm_store1_pd (double *__P, __v2df __A) >{ > __v2df __va = (__v2df)__A; > __v2df __tmp = __builtin_ia32_shufpd (__va, __va, (((0) << 1) | (0))); > __builtin_ia32_storeapd (__P, __tmp); >} > >static __inline void >_mm_store_pd1 (double *__P, __v2df __A) >{ > _mm_store1_pd (__P, __A); >} > > >static __inline void >_mm_store_pd (double *__P, __v2df __A) >{ > __builtin_ia32_storeapd (__P, (__v2df)__A); >} > > >static __inline void >_mm_storeu_pd (double *__P, __v2df __A) >{ > __builtin_ia32_storeupd (__P, (__v2df)__A); >} > > >static __inline void >_mm_storer_pd (double *__P, __v2df __A) >{ > __v2df __va = (__v2df)__A; > __v2df __tmp = __builtin_ia32_shufpd (__va, __va, (((0) << 1) | (1))); > __builtin_ia32_storeapd (__P, __tmp); >} > > >static __inline __v2df >_mm_move_sd (__v2df __A, __v2df __B) >{ > return (__v2df) __builtin_ia32_movsd ((__v2df)__A, (__v2df)__B); >} > > >static __inline __v2df >_mm_add_pd (__v2df __A, __v2df __B) >{ > return (__v2df)__builtin_ia32_addpd ((__v2df)__A, (__v2df)__B); >} > >static __inline __v2df >_mm_add_sd (__v2df __A, __v2df __B) >{ > return (__v2df)__builtin_ia32_addsd ((__v2df)__A, (__v2df)__B); >} > >static __inline __v2df >_mm_sub_pd (__v2df __A, __v2df __B) >{ > return (__v2df)__builtin_ia32_subpd ((__v2df)__A, (__v2df)__B); >} > >static __inline __v2df >_mm_sub_sd (__v2df __A, __v2df __B) >{ > return (__v2df)__builtin_ia32_subsd ((__v2df)__A, (__v2df)__B); >} > >static __inline __v2df >_mm_mul_pd (__v2df __A, __v2df __B) >{ > return (__v2df)__builtin_ia32_mulpd ((__v2df)__A, (__v2df)__B); >} > >static __inline __v2df >_mm_mul_sd (__v2df __A, __v2df __B) >{ > return (__v2df)__builtin_ia32_mulsd ((__v2df)__A, (__v2df)__B); >} > >static __inline __v2df >_mm_div_pd (__v2df __A, __v2df __B) >{ > return (__v2df)__builtin_ia32_divpd ((__v2df)__A, (__v2df)__B); >} > >static __inline __v2df >_mm_div_sd (__v2df __A, __v2df __B) >{ > return (__v2df)__builtin_ia32_divsd ((__v2df)__A, (__v2df)__B); >} > >static __inline __v2df >_mm_sqrt_pd (__v2df __A) >{ > return (__v2df)__builtin_ia32_sqrtpd ((__v2df)__A); >} > > >static __inline __v2df >_mm_sqrt_sd (__v2df __A, __v2df __B) >{ > __v2df __tmp = __builtin_ia32_movsd ((__v2df)__A, (__v2df)__B); > return (__v2df)__builtin_ia32_sqrtsd ((__v2df)__tmp); >} > >static __inline __v2df >_mm_min_pd (__v2df __A, __v2df __B) >{ > return (__v2df)__builtin_ia32_minpd ((__v2df)__A, (__v2df)__B); >} > >static __inline __v2df >_mm_min_sd (__v2df __A, __v2df __B) >{ > return (__v2df)__builtin_ia32_minsd ((__v2df)__A, (__v2df)__B); >} > >static __inline __v2df >_mm_max_pd (__v2df __A, __v2df __B) >{ > return (__v2df)__builtin_ia32_maxpd ((__v2df)__A, (__v2df)__B); >} > >static __inline __v2df >_mm_max_sd (__v2df __A, __v2df __B) >{ > return (__v2df)__builtin_ia32_maxsd ((__v2df)__A, (__v2df)__B); >} > >static __inline __v2df >_mm_and_pd (__v2df __A, __v2df __B) >{ > return (__v2df)__builtin_ia32_andpd ((__v2df)__A, (__v2df)__B); >} > >static __inline __v2df >_mm_andnot_pd (__v2df __A, __v2df __B) >{ > return (__v2df)__builtin_ia32_andnpd ((__v2df)__A, (__v2df)__B); >} > >static __inline __v2df >_mm_or_pd (__v2df __A, __v2df __B) >{ > return (__v2df)__builtin_ia32_orpd ((__v2df)__A, (__v2df)__B); >} > >static __inline __v2df >_mm_xor_pd (__v2df __A, __v2df __B) >{ > return (__v2df)__builtin_ia32_xorpd ((__v2df)__A, (__v2df)__B); >} > >static __inline __v2df >_mm_cmpeq_pd (__v2df __A, __v2df __B) >{ > return (__v2df)__builtin_ia32_cmpeqpd ((__v2df)__A, (__v2df)__B); >} > >static __inline __v2df >_mm_cmplt_pd (__v2df __A, __v2df __B) >{ > return (__v2df)__builtin_ia32_cmpltpd ((__v2df)__A, (__v2df)__B); >} > >static __inline __v2df >_mm_cmple_pd (__v2df __A, __v2df __B) >{ > return (__v2df)__builtin_ia32_cmplepd ((__v2df)__A, (__v2df)__B); >} > >static __inline __v2df >_mm_cmpgt_pd (__v2df __A, __v2df __B) >{ > return (__v2df)__builtin_ia32_cmpgtpd ((__v2df)__A, (__v2df)__B); >} > >static __inline __v2df >_mm_cmpge_pd (__v2df __A, __v2df __B) >{ > return (__v2df)__builtin_ia32_cmpgepd ((__v2df)__A, (__v2df)__B); >} > >static __inline __v2df >_mm_cmpneq_pd (__v2df __A, __v2df __B) >{ > return (__v2df)__builtin_ia32_cmpneqpd ((__v2df)__A, (__v2df)__B); >} > >static __inline __v2df >_mm_cmpnlt_pd (__v2df __A, __v2df __B) >{ > return (__v2df)__builtin_ia32_cmpnltpd ((__v2df)__A, (__v2df)__B); >} > >static __inline __v2df >_mm_cmpnle_pd (__v2df __A, __v2df __B) >{ > return (__v2df)__builtin_ia32_cmpnlepd ((__v2df)__A, (__v2df)__B); >} > >static __inline __v2df >_mm_cmpngt_pd (__v2df __A, __v2df __B) >{ > return (__v2df)__builtin_ia32_cmpngtpd ((__v2df)__A, (__v2df)__B); >} > >static __inline __v2df >_mm_cmpnge_pd (__v2df __A, __v2df __B) >{ > return (__v2df)__builtin_ia32_cmpngepd ((__v2df)__A, (__v2df)__B); >} > >static __inline __v2df >_mm_cmpord_pd (__v2df __A, __v2df __B) >{ > return (__v2df)__builtin_ia32_cmpordpd ((__v2df)__A, (__v2df)__B); >} > >static __inline __v2df >_mm_cmpunord_pd (__v2df __A, __v2df __B) >{ > return (__v2df)__builtin_ia32_cmpunordpd ((__v2df)__A, (__v2df)__B); >} > >static __inline __v2df >_mm_cmpeq_sd (__v2df __A, __v2df __B) >{ > return (__v2df)__builtin_ia32_cmpeqsd ((__v2df)__A, (__v2df)__B); >} > >static __inline __v2df >_mm_cmplt_sd (__v2df __A, __v2df __B) >{ > return (__v2df)__builtin_ia32_cmpltsd ((__v2df)__A, (__v2df)__B); >} > >static __inline __v2df >_mm_cmple_sd (__v2df __A, __v2df __B) >{ > return (__v2df)__builtin_ia32_cmplesd ((__v2df)__A, (__v2df)__B); >} > >static __inline __v2df >_mm_cmpgt_sd (__v2df __A, __v2df __B) >{ > return (__v2df) __builtin_ia32_movsd ((__v2df) __A, > (__v2df) > __builtin_ia32_cmpltsd ((__v2df) __B, > (__v2df) > __A)); >} > >static __inline __v2df >_mm_cmpge_sd (__v2df __A, __v2df __B) >{ > return (__v2df) __builtin_ia32_movsd ((__v2df) __A, > (__v2df) > __builtin_ia32_cmplesd ((__v2df) __B, > (__v2df) > __A)); >} > >static __inline __v2df >_mm_cmpneq_sd (__v2df __A, __v2df __B) >{ > return (__v2df)__builtin_ia32_cmpneqsd ((__v2df)__A, (__v2df)__B); >} > >static __inline __v2df >_mm_cmpnlt_sd (__v2df __A, __v2df __B) >{ > return (__v2df)__builtin_ia32_cmpnltsd ((__v2df)__A, (__v2df)__B); >} > >static __inline __v2df >_mm_cmpnle_sd (__v2df __A, __v2df __B) >{ > return (__v2df)__builtin_ia32_cmpnlesd ((__v2df)__A, (__v2df)__B); >} > >static __inline __v2df >_mm_cmpngt_sd (__v2df __A, __v2df __B) >{ > return (__v2df) __builtin_ia32_movsd ((__v2df) __A, > (__v2df) > __builtin_ia32_cmpnltsd ((__v2df) __B, > (__v2df) > __A)); >} > >static __inline __v2df >_mm_cmpnge_sd (__v2df __A, __v2df __B) >{ > return (__v2df) __builtin_ia32_movsd ((__v2df) __A, > (__v2df) > __builtin_ia32_cmpnlesd ((__v2df) __B, > (__v2df) > __A)); >} > >static __inline __v2df >_mm_cmpord_sd (__v2df __A, __v2df __B) >{ > return (__v2df)__builtin_ia32_cmpordsd ((__v2df)__A, (__v2df)__B); >} > >static __inline __v2df >_mm_cmpunord_sd (__v2df __A, __v2df __B) >{ > return (__v2df)__builtin_ia32_cmpunordsd ((__v2df)__A, (__v2df)__B); >} > >static __inline int >_mm_comieq_sd (__v2df __A, __v2df __B) >{ > return __builtin_ia32_comisdeq ((__v2df)__A, (__v2df)__B); >} > >static __inline int >_mm_comilt_sd (__v2df __A, __v2df __B) >{ > return __builtin_ia32_comisdlt ((__v2df)__A, (__v2df)__B); >} > >static __inline int >_mm_comile_sd (__v2df __A, __v2df __B) >{ > return __builtin_ia32_comisdle ((__v2df)__A, (__v2df)__B); >} > >static __inline int >_mm_comigt_sd (__v2df __A, __v2df __B) >{ > return __builtin_ia32_comisdgt ((__v2df)__A, (__v2df)__B); >} > >static __inline int >_mm_comige_sd (__v2df __A, __v2df __B) >{ > return __builtin_ia32_comisdge ((__v2df)__A, (__v2df)__B); >} > >static __inline int >_mm_comineq_sd (__v2df __A, __v2df __B) >{ > return __builtin_ia32_comisdneq ((__v2df)__A, (__v2df)__B); >} > >static __inline int >_mm_ucomieq_sd (__v2df __A, __v2df __B) >{ > return __builtin_ia32_ucomisdeq ((__v2df)__A, (__v2df)__B); >} > >static __inline int >_mm_ucomilt_sd (__v2df __A, __v2df __B) >{ > return __builtin_ia32_ucomisdlt ((__v2df)__A, (__v2df)__B); >} > >static __inline int >_mm_ucomile_sd (__v2df __A, __v2df __B) >{ > return __builtin_ia32_ucomisdle ((__v2df)__A, (__v2df)__B); >} > >static __inline int >_mm_ucomigt_sd (__v2df __A, __v2df __B) >{ > return __builtin_ia32_ucomisdgt ((__v2df)__A, (__v2df)__B); >} > >static __inline int >_mm_ucomige_sd (__v2df __A, __v2df __B) >{ > return __builtin_ia32_ucomisdge ((__v2df)__A, (__v2df)__B); >} > >static __inline int >_mm_ucomineq_sd (__v2df __A, __v2df __B) >{ > return __builtin_ia32_ucomisdneq ((__v2df)__A, (__v2df)__B); >} > > > >static __inline __v2di >_mm_load_si128 (__v2di const *__P) >{ > return (__v2di) __builtin_ia32_loaddqa ((char const *)__P); >} > >static __inline __v2di >_mm_loadu_si128 (__v2di const *__P) >{ > return (__v2di) __builtin_ia32_loaddqu ((char const *)__P); >} > >static __inline __v2di >_mm_loadl_epi64 (__v2di const *__P) >{ > return (__v2di) __builtin_ia32_movq2dq (*(unsigned long long *)__P); >} > >static __inline void >_mm_store_si128 (__v2di *__P, __v2di __B) >{ > __builtin_ia32_storedqa ((char *)__P, (__v16qi)__B); >} > >static __inline void >_mm_storeu_si128 (__v2di *__P, __v2di __B) >{ > __builtin_ia32_storedqu ((char *)__P, (__v16qi)__B); >} > >static __inline void >_mm_storel_epi64 (__v2di *__P, __v2di __B) >{ > *(long long *)__P = __builtin_ia32_movdq2q ((__v2di)__B); >} > >static __inline __m64 >_mm_movepi64_pi64 (__v2di __B) >{ > return (__m64) __builtin_ia32_movdq2q ((__v2di)__B); >} > >static __inline __v2di >_mm_move_epi64 (__v2di __A) >{ > return (__v2di) __builtin_ia32_movq ((__v2di)__A); >} > > >static __inline __v2di >_mm_setzero_si128 (void) >{ > return (__v2di) __builtin_ia32_setzero128 (); >} > >static __inline __v2di >_mm_set_epi64 (__m64 __A, __m64 __B) >{ > __v2di __tmp = (__v2di)__builtin_ia32_movq2dq ((unsigned long long)__A); > __v2di __tmp2 = (__v2di)__builtin_ia32_movq2dq ((unsigned long long)__B); > return (__v2di)__builtin_ia32_punpcklqdq128 (__tmp2, __tmp); >} > > >static __inline __v2di >_mm_set_epi32 (int __Z, int __Y, int __X, int __W) >{ > union { > int __a[4]; > __v2di __v; > } __u; > > __u.__a[0] = __W; > __u.__a[1] = __X; > __u.__a[2] = __Y; > __u.__a[3] = __Z; > > return __u.__v; >} > > > >static __inline __v2di >_mm_set_epi64x (long long __Z, long long __Y) >{ > union { > long __a[2]; > __v2di __v; > } __u; > > __u.__a[0] = __Y; > __u.__a[1] = __Z; > > return __u.__v; >} > > > >static __inline __v2di >_mm_set_epi16 (short __Z, short __Y, short __X, short __W, > short __V, short __U, short __T, short __S) >{ > union { > short __a[8]; > __v2di __v; > } __u; > > __u.__a[0] = __S; > __u.__a[1] = __T; > __u.__a[2] = __U; > __u.__a[3] = __V; > __u.__a[4] = __W; > __u.__a[5] = __X; > __u.__a[6] = __Y; > __u.__a[7] = __Z; > > return __u.__v; >} > > >static __inline __v2di >_mm_set_epi8 (char __Z, char __Y, char __X, char __W, > char __V, char __U, char __T, char __S, > char __Z1, char __Y1, char __X1, char __W1, > char __V1, char __U1, char __T1, char __S1) >{ > union { > char __a[16]; > __v2di __v; > } __u; > > __u.__a[0] = __S1; > __u.__a[1] = __T1; > __u.__a[2] = __U1; > __u.__a[3] = __V1; > __u.__a[4] = __W1; > __u.__a[5] = __X1; > __u.__a[6] = __Y1; > __u.__a[7] = __Z1; > __u.__a[8] = __S; > __u.__a[9] = __T; > __u.__a[10] = __U; > __u.__a[11] = __V; > __u.__a[12] = __W; > __u.__a[13] = __X; > __u.__a[14] = __Y; > __u.__a[15] = __Z; > > return __u.__v; >} > >static __inline __v2di >_mm_set1_epi64 (__m64 __A) >{ > __v2di __tmp = (__v2di)__builtin_ia32_movq2dq ((unsigned long long)__A); > return (__v2di)__builtin_ia32_punpcklqdq128 (__tmp, __tmp); >} > >static __inline __v2di >_mm_set1_epi32 (int __A) >{ > __v4si __tmp = (__v4si)__builtin_ia32_loadd (&__A); > return (__v2di) __builtin_ia32_pshufd ((__v4si)__tmp, (((0) << 6) | ((0) << 4) | ((0) << 2) | (0))); >} > > >static __inline __v2di >_mm_set1_epi64x (long long __A) >{ > __v2di __tmp = (__v2di)__builtin_ia32_movq2dq ((unsigned long long)__A); > return (__v2di) __builtin_ia32_shufpd ((__v2df)__tmp, (__v2df)__tmp, (((0) << 1) | (0))); >} > > >static __inline __v2di >_mm_set1_epi16 (short __A) >{ > int __Acopy = (unsigned short)__A; > __v4si __tmp = (__v4si)__builtin_ia32_loadd (&__Acopy); > __tmp = (__v4si)__builtin_ia32_punpcklwd128 ((__v8hi)__tmp, (__v8hi)__tmp); > return (__v2di) __builtin_ia32_pshufd ((__v4si)__tmp, (((0) << 6) | ((0) << 4) | ((0) << 2) | (0))); >} > >static __inline __v2di >_mm_set1_epi8 (char __A) >{ > int __Acopy = (unsigned char)__A; > __v4si __tmp = (__v4si)__builtin_ia32_loadd (&__Acopy); > __tmp = (__v4si)__builtin_ia32_punpcklbw128 ((__v16qi)__tmp, (__v16qi)__tmp); > __tmp = (__v4si)__builtin_ia32_punpcklbw128 ((__v16qi)__tmp, (__v16qi)__tmp); > return (__v2di) __builtin_ia32_pshufd ((__v4si)__tmp, (((0) << 6) | ((0) << 4) | ((0) << 2) | (0))); >} > >static __inline __v2di >_mm_setr_epi64 (__m64 __A, __m64 __B) >{ > __v2di __tmp = (__v2di)__builtin_ia32_movq2dq ((unsigned long long)__A); > __v2di __tmp2 = (__v2di)__builtin_ia32_movq2dq ((unsigned long long)__B); > return (__v2di)__builtin_ia32_punpcklqdq128 (__tmp, __tmp2); >} > > >static __inline __v2di >_mm_setr_epi32 (int __W, int __X, int __Y, int __Z) >{ > union { > int __a[4]; > __v2di __v; > } __u; > > __u.__a[0] = __W; > __u.__a[1] = __X; > __u.__a[2] = __Y; > __u.__a[3] = __Z; > > return __u.__v; >} > >static __inline __v2di >_mm_setr_epi16 (short __S, short __T, short __U, short __V, > short __W, short __X, short __Y, short __Z) >{ > union { > short __a[8]; > __v2di __v; > } __u; > > __u.__a[0] = __S; > __u.__a[1] = __T; > __u.__a[2] = __U; > __u.__a[3] = __V; > __u.__a[4] = __W; > __u.__a[5] = __X; > __u.__a[6] = __Y; > __u.__a[7] = __Z; > > return __u.__v; >} > > >static __inline __v2di >_mm_setr_epi8 (char __S1, char __T1, char __U1, char __V1, > char __W1, char __X1, char __Y1, char __Z1, > char __S, char __T, char __U, char __V, > char __W, char __X, char __Y, char __Z) >{ > union { > char __a[16]; > __v2di __v; > } __u; > > __u.__a[0] = __S1; > __u.__a[1] = __T1; > __u.__a[2] = __U1; > __u.__a[3] = __V1; > __u.__a[4] = __W1; > __u.__a[5] = __X1; > __u.__a[6] = __Y1; > __u.__a[7] = __Z1; > __u.__a[8] = __S; > __u.__a[9] = __T; > __u.__a[10] = __U; > __u.__a[11] = __V; > __u.__a[12] = __W; > __u.__a[13] = __X; > __u.__a[14] = __Y; > __u.__a[15] = __Z; > > return __u.__v; >} > >static __inline __v2df >_mm_cvtepi32_pd (__v2di __A) >{ > return (__v2df)__builtin_ia32_cvtdq2pd ((__v4si) __A); >} > >static __inline __m128 >_mm_cvtepi32_ps (__v2di __A) >{ > return (__m128)__builtin_ia32_cvtdq2ps ((__v4si) __A); >} > >static __inline __v2di >_mm_cvtpd_epi32 (__v2df __A) >{ > return (__v2di)__builtin_ia32_cvtpd2dq ((__v2df) __A); >} > >static __inline __m64 >_mm_cvtpd_pi32 (__v2df __A) >{ > return (__m64)__builtin_ia32_cvtpd2pi ((__v2df) __A); >} > >static __inline __m128 >_mm_cvtpd_ps (__v2df __A) >{ > return (__m128)__builtin_ia32_cvtpd2ps ((__v2df) __A); >} > >static __inline __v2di >_mm_cvttpd_epi32 (__v2df __A) >{ > return (__v2di)__builtin_ia32_cvttpd2dq ((__v2df) __A); >} > >static __inline __m64 >_mm_cvttpd_pi32 (__v2df __A) >{ > return (__m64)__builtin_ia32_cvttpd2pi ((__v2df) __A); >} > >static __inline __v2df >_mm_cvtpi32_pd (__m64 __A) >{ > return (__v2df)__builtin_ia32_cvtpi2pd ((__v2si) __A); >} > >static __inline __v2di >_mm_cvtps_epi32 (__m128 __A) >{ > return (__v2di)__builtin_ia32_cvtps2dq ((__v4sf) __A); >} > >static __inline __v2di >_mm_cvttps_epi32 (__m128 __A) >{ > return (__v2di)__builtin_ia32_cvttps2dq ((__v4sf) __A); >} > >static __inline __v2df >_mm_cvtps_pd (__m128 __A) >{ > return (__v2df)__builtin_ia32_cvtps2pd ((__v4sf) __A); >} > >static __inline int >_mm_cvtsd_si32 (__v2df __A) >{ > return __builtin_ia32_cvtsd2si ((__v2df) __A); >} > > >static __inline long long >_mm_cvtsd_si64x (__v2df __A) >{ > return __builtin_ia32_cvtsd2si64 ((__v2df) __A); >} > > >static __inline int >_mm_cvttsd_si32 (__v2df __A) >{ > return __builtin_ia32_cvttsd2si ((__v2df) __A); >} > > >static __inline long long >_mm_cvttsd_si64x (__v2df __A) >{ > return __builtin_ia32_cvttsd2si64 ((__v2df) __A); >} > > >static __inline __m128 >_mm_cvtsd_ss (__m128 __A, __v2df __B) >{ > return (__m128)__builtin_ia32_cvtsd2ss ((__v4sf) __A, (__v2df) __B); >} > >static __inline __v2df >_mm_cvtsi32_sd (__v2df __A, int __B) >{ > return (__v2df)__builtin_ia32_cvtsi2sd ((__v2df) __A, __B); >} > > >static __inline __v2df >_mm_cvtsi64x_sd (__v2df __A, long long __B) >{ > return (__v2df)__builtin_ia32_cvtsi642sd ((__v2df) __A, __B); >} > > >static __inline __v2df >_mm_cvtss_sd (__v2df __A, __m128 __B) >{ > return (__v2df)__builtin_ia32_cvtss2sd ((__v2df) __A, (__v4sf)__B); >} > > > >static __inline __v2df >_mm_unpackhi_pd (__v2df __A, __v2df __B) >{ > return (__v2df)__builtin_ia32_unpckhpd ((__v2df)__A, (__v2df)__B); >} > >static __inline __v2df >_mm_unpacklo_pd (__v2df __A, __v2df __B) >{ > return (__v2df)__builtin_ia32_unpcklpd ((__v2df)__A, (__v2df)__B); >} > >static __inline __v2df >_mm_loadh_pd (__v2df __A, double const *__B) >{ > return (__v2df)__builtin_ia32_loadhpd ((__v2df)__A, (__v2si *)__B); >} > >static __inline void >_mm_storeh_pd (double *__A, __v2df __B) >{ > __builtin_ia32_storehpd ((__v2si *)__A, (__v2df)__B); >} > >static __inline __v2df >_mm_loadl_pd (__v2df __A, double const *__B) >{ > return (__v2df)__builtin_ia32_loadlpd ((__v2df)__A, (__v2si *)__B); >} > >static __inline void >_mm_storel_pd (double *__A, __v2df __B) >{ > __builtin_ia32_storelpd ((__v2si *)__A, (__v2df)__B); >} > >static __inline int >_mm_movemask_pd (__v2df __A) >{ > return __builtin_ia32_movmskpd ((__v2df)__A); >} > >static __inline __v2di >_mm_packs_epi16 (__v2di __A, __v2di __B) >{ > return (__v2di)__builtin_ia32_packsswb128 ((__v8hi)__A, (__v8hi)__B); >} > >static __inline __v2di >_mm_packs_epi32 (__v2di __A, __v2di __B) >{ > return (__v2di)__builtin_ia32_packssdw128 ((__v4si)__A, (__v4si)__B); >} > >static __inline __v2di >_mm_packus_epi16 (__v2di __A, __v2di __B) >{ > return (__v2di)__builtin_ia32_packuswb128 ((__v8hi)__A, (__v8hi)__B); >} > >static __inline __v2di >_mm_unpackhi_epi8 (__v2di __A, __v2di __B) >{ > return (__v2di)__builtin_ia32_punpckhbw128 ((__v16qi)__A, (__v16qi)__B); >} > >static __inline __v2di >_mm_unpackhi_epi16 (__v2di __A, __v2di __B) >{ > return (__v2di)__builtin_ia32_punpckhwd128 ((__v8hi)__A, (__v8hi)__B); >} > >static __inline __v2di >_mm_unpackhi_epi32 (__v2di __A, __v2di __B) >{ > return (__v2di)__builtin_ia32_punpckhdq128 ((__v4si)__A, (__v4si)__B); >} > >static __inline __v2di >_mm_unpackhi_epi64 (__v2di __A, __v2di __B) >{ > return (__v2di)__builtin_ia32_punpckhqdq128 ((__v2di)__A, (__v2di)__B); >} > >static __inline __v2di >_mm_unpacklo_epi8 (__v2di __A, __v2di __B) >{ > return (__v2di)__builtin_ia32_punpcklbw128 ((__v16qi)__A, (__v16qi)__B); >} > >static __inline __v2di >_mm_unpacklo_epi16 (__v2di __A, __v2di __B) >{ > return (__v2di)__builtin_ia32_punpcklwd128 ((__v8hi)__A, (__v8hi)__B); >} > >static __inline __v2di >_mm_unpacklo_epi32 (__v2di __A, __v2di __B) >{ > return (__v2di)__builtin_ia32_punpckldq128 ((__v4si)__A, (__v4si)__B); >} > >static __inline __v2di >_mm_unpacklo_epi64 (__v2di __A, __v2di __B) >{ > return (__v2di)__builtin_ia32_punpcklqdq128 ((__v2di)__A, (__v2di)__B); >} > >static __inline __v2di >_mm_add_epi8 (__v2di __A, __v2di __B) >{ > return (__v2di)__builtin_ia32_paddb128 ((__v16qi)__A, (__v16qi)__B); >} > >static __inline __v2di >_mm_add_epi16 (__v2di __A, __v2di __B) >{ > return (__v2di)__builtin_ia32_paddw128 ((__v8hi)__A, (__v8hi)__B); >} > >static __inline __v2di >_mm_add_epi32 (__v2di __A, __v2di __B) >{ > return (__v2di)__builtin_ia32_paddd128 ((__v4si)__A, (__v4si)__B); >} > >static __inline __v2di >_mm_add_epi64 (__v2di __A, __v2di __B) >{ > return (__v2di)__builtin_ia32_paddq128 ((__v2di)__A, (__v2di)__B); >} > >static __inline __v2di >_mm_adds_epi8 (__v2di __A, __v2di __B) >{ > return (__v2di)__builtin_ia32_paddsb128 ((__v16qi)__A, (__v16qi)__B); >} > >static __inline __v2di >_mm_adds_epi16 (__v2di __A, __v2di __B) >{ > return (__v2di)__builtin_ia32_paddsw128 ((__v8hi)__A, (__v8hi)__B); >} > >static __inline __v2di >_mm_adds_epu8 (__v2di __A, __v2di __B) >{ > return (__v2di)__builtin_ia32_paddusb128 ((__v16qi)__A, (__v16qi)__B); >} > >static __inline __v2di >_mm_adds_epu16 (__v2di __A, __v2di __B) >{ > return (__v2di)__builtin_ia32_paddusw128 ((__v8hi)__A, (__v8hi)__B); >} > >static __inline __v2di >_mm_sub_epi8 (__v2di __A, __v2di __B) >{ > return (__v2di)__builtin_ia32_psubb128 ((__v16qi)__A, (__v16qi)__B); >} > >static __inline __v2di >_mm_sub_epi16 (__v2di __A, __v2di __B) >{ > return (__v2di)__builtin_ia32_psubw128 ((__v8hi)__A, (__v8hi)__B); >} > >static __inline __v2di >_mm_sub_epi32 (__v2di __A, __v2di __B) >{ > return (__v2di)__builtin_ia32_psubd128 ((__v4si)__A, (__v4si)__B); >} > >static __inline __v2di >_mm_sub_epi64 (__v2di __A, __v2di __B) >{ > return (__v2di)__builtin_ia32_psubq128 ((__v2di)__A, (__v2di)__B); >} > >static __inline __v2di >_mm_subs_epi8 (__v2di __A, __v2di __B) >{ > return (__v2di)__builtin_ia32_psubsb128 ((__v16qi)__A, (__v16qi)__B); >} > >static __inline __v2di >_mm_subs_epi16 (__v2di __A, __v2di __B) >{ > return (__v2di)__builtin_ia32_psubsw128 ((__v8hi)__A, (__v8hi)__B); >} > >static __inline __v2di >_mm_subs_epu8 (__v2di __A, __v2di __B) >{ > return (__v2di)__builtin_ia32_psubusb128 ((__v16qi)__A, (__v16qi)__B); >} > >static __inline __v2di >_mm_subs_epu16 (__v2di __A, __v2di __B) >{ > return (__v2di)__builtin_ia32_psubusw128 ((__v8hi)__A, (__v8hi)__B); >} > >static __inline __v2di >_mm_madd_epi16 (__v2di __A, __v2di __B) >{ > return (__v2di)__builtin_ia32_pmaddwd128 ((__v8hi)__A, (__v8hi)__B); >} > >static __inline __v2di >_mm_mulhi_epi16 (__v2di __A, __v2di __B) >{ > return (__v2di)__builtin_ia32_pmulhw128 ((__v8hi)__A, (__v8hi)__B); >} > >static __inline __v2di >_mm_mullo_epi16 (__v2di __A, __v2di __B) >{ > return (__v2di)__builtin_ia32_pmullw128 ((__v8hi)__A, (__v8hi)__B); >} > >static __inline __m64 >_mm_mul_su32 (__m64 __A, __m64 __B) >{ > return (__m64)__builtin_ia32_pmuludq ((__v2si)__A, (__v2si)__B); >} > >static __inline __v2di >_mm_mul_epu32 (__v2di __A, __v2di __B) >{ > return (__v2di)__builtin_ia32_pmuludq128 ((__v4si)__A, (__v4si)__B); >} > >static __inline __v2di >_mm_sll_epi16 (__v2di __A, __v2di __B) >{ > return (__v2di)__builtin_ia32_psllw128 ((__v8hi)__A, (__v2di)__B); >} > >static __inline __v2di >_mm_sll_epi32 (__v2di __A, __v2di __B) >{ > return (__v2di)__builtin_ia32_pslld128 ((__v4si)__A, (__v2di)__B); >} > >static __inline __v2di >_mm_sll_epi64 (__v2di __A, __v2di __B) >{ > return (__v2di)__builtin_ia32_psllq128 ((__v2di)__A, (__v2di)__B); >} > >static __inline __v2di >_mm_sra_epi16 (__v2di __A, __v2di __B) >{ > return (__v2di)__builtin_ia32_psraw128 ((__v8hi)__A, (__v2di)__B); >} > >static __inline __v2di >_mm_sra_epi32 (__v2di __A, __v2di __B) >{ > return (__v2di)__builtin_ia32_psrad128 ((__v4si)__A, (__v2di)__B); >} > >static __inline __v2di >_mm_srl_epi16 (__v2di __A, __v2di __B) >{ > return (__v2di)__builtin_ia32_psrlw128 ((__v8hi)__A, (__v2di)__B); >} > >static __inline __v2di >_mm_srl_epi32 (__v2di __A, __v2di __B) >{ > return (__v2di)__builtin_ia32_psrld128 ((__v4si)__A, (__v2di)__B); >} > >static __inline __v2di >_mm_srl_epi64 (__v2di __A, __v2di __B) >{ > return (__v2di)__builtin_ia32_psrlq128 ((__v2di)__A, (__v2di)__B); >} > >static __inline __v2di >_mm_slli_epi16 (__v2di __A, int __B) >{ > return (__v2di)__builtin_ia32_psllwi128 ((__v8hi)__A, __B); >} > >static __inline __v2di >_mm_slli_epi32 (__v2di __A, int __B) >{ > return (__v2di)__builtin_ia32_pslldi128 ((__v4si)__A, __B); >} > >static __inline __v2di >_mm_slli_epi64 (__v2di __A, int __B) >{ > return (__v2di)__builtin_ia32_psllqi128 ((__v2di)__A, __B); >} > >static __inline __v2di >_mm_srai_epi16 (__v2di __A, int __B) >{ > return (__v2di)__builtin_ia32_psrawi128 ((__v8hi)__A, __B); >} > >static __inline __v2di >_mm_srai_epi32 (__v2di __A, int __B) >{ > return (__v2di)__builtin_ia32_psradi128 ((__v4si)__A, __B); >} ># 1253 "/usr/lib/gcc/x86_64-redhat-linux/3.4.5/include/emmintrin.h" 3 4 >static __inline __v2di >_mm_srli_epi16 (__v2di __A, int __B) >{ > return (__v2di)__builtin_ia32_psrlwi128 ((__v8hi)__A, __B); >} > >static __inline __v2di >_mm_srli_epi32 (__v2di __A, int __B) >{ > return (__v2di)__builtin_ia32_psrldi128 ((__v4si)__A, __B); >} > >static __inline __v2di >_mm_srli_epi64 (__v2di __A, int __B) >{ > return (__v2di)__builtin_ia32_psrlqi128 ((__v2di)__A, __B); >} > >static __inline __v2di >_mm_and_si128 (__v2di __A, __v2di __B) >{ > return (__v2di)__builtin_ia32_pand128 ((__v2di)__A, (__v2di)__B); >} > >static __inline __v2di >_mm_andnot_si128 (__v2di __A, __v2di __B) >{ > return (__v2di)__builtin_ia32_pandn128 ((__v2di)__A, (__v2di)__B); >} > >static __inline __v2di >_mm_or_si128 (__v2di __A, __v2di __B) >{ > return (__v2di)__builtin_ia32_por128 ((__v2di)__A, (__v2di)__B); >} > >static __inline __v2di >_mm_xor_si128 (__v2di __A, __v2di __B) >{ > return (__v2di)__builtin_ia32_pxor128 ((__v2di)__A, (__v2di)__B); >} > >static __inline __v2di >_mm_cmpeq_epi8 (__v2di __A, __v2di __B) >{ > return (__v2di)__builtin_ia32_pcmpeqb128 ((__v16qi)__A, (__v16qi)__B); >} > >static __inline __v2di >_mm_cmpeq_epi16 (__v2di __A, __v2di __B) >{ > return (__v2di)__builtin_ia32_pcmpeqw128 ((__v8hi)__A, (__v8hi)__B); >} > >static __inline __v2di >_mm_cmpeq_epi32 (__v2di __A, __v2di __B) >{ > return (__v2di)__builtin_ia32_pcmpeqd128 ((__v4si)__A, (__v4si)__B); >} > >static __inline __v2di >_mm_cmplt_epi8 (__v2di __A, __v2di __B) >{ > return (__v2di)__builtin_ia32_pcmpgtb128 ((__v16qi)__B, (__v16qi)__A); >} > >static __inline __v2di >_mm_cmplt_epi16 (__v2di __A, __v2di __B) >{ > return (__v2di)__builtin_ia32_pcmpgtw128 ((__v8hi)__B, (__v8hi)__A); >} > >static __inline __v2di >_mm_cmplt_epi32 (__v2di __A, __v2di __B) >{ > return (__v2di)__builtin_ia32_pcmpgtd128 ((__v4si)__B, (__v4si)__A); >} > >static __inline __v2di >_mm_cmpgt_epi8 (__v2di __A, __v2di __B) >{ > return (__v2di)__builtin_ia32_pcmpgtb128 ((__v16qi)__A, (__v16qi)__B); >} > >static __inline __v2di >_mm_cmpgt_epi16 (__v2di __A, __v2di __B) >{ > return (__v2di)__builtin_ia32_pcmpgtw128 ((__v8hi)__A, (__v8hi)__B); >} > >static __inline __v2di >_mm_cmpgt_epi32 (__v2di __A, __v2di __B) >{ > return (__v2di)__builtin_ia32_pcmpgtd128 ((__v4si)__A, (__v4si)__B); >} > > > > > >static __inline __v2di >_mm_max_epi16 (__v2di __A, __v2di __B) >{ > return (__v2di)__builtin_ia32_pmaxsw128 ((__v8hi)__A, (__v8hi)__B); >} > >static __inline __v2di >_mm_max_epu8 (__v2di __A, __v2di __B) >{ > return (__v2di)__builtin_ia32_pmaxub128 ((__v16qi)__A, (__v16qi)__B); >} > >static __inline __v2di >_mm_min_epi16 (__v2di __A, __v2di __B) >{ > return (__v2di)__builtin_ia32_pminsw128 ((__v8hi)__A, (__v8hi)__B); >} > >static __inline __v2di >_mm_min_epu8 (__v2di __A, __v2di __B) >{ > return (__v2di)__builtin_ia32_pminub128 ((__v16qi)__A, (__v16qi)__B); >} > >static __inline int >_mm_movemask_epi8 (__v2di __A) >{ > return __builtin_ia32_pmovmskb128 ((__v16qi)__A); >} > >static __inline __v2di >_mm_mulhi_epu16 (__v2di __A, __v2di __B) >{ > return (__v2di)__builtin_ia32_pmulhuw128 ((__v8hi)__A, (__v8hi)__B); >} > > > > > >static __inline void >_mm_maskmoveu_si128 (__v2di __A, __v2di __B, char *__C) >{ > __builtin_ia32_maskmovdqu ((__v16qi)__A, (__v16qi)__B, __C); >} > >static __inline __v2di >_mm_avg_epu8 (__v2di __A, __v2di __B) >{ > return (__v2di)__builtin_ia32_pavgb128 ((__v16qi)__A, (__v16qi)__B); >} > >static __inline __v2di >_mm_avg_epu16 (__v2di __A, __v2di __B) >{ > return (__v2di)__builtin_ia32_pavgw128 ((__v8hi)__A, (__v8hi)__B); >} > >static __inline __v2di >_mm_sad_epu8 (__v2di __A, __v2di __B) >{ > return (__v2di)__builtin_ia32_psadbw128 ((__v16qi)__A, (__v16qi)__B); >} > >static __inline void >_mm_stream_si32 (int *__A, int __B) >{ > __builtin_ia32_movnti (__A, __B); >} > >static __inline void >_mm_stream_si128 (__v2di *__A, __v2di __B) >{ > __builtin_ia32_movntdq ((__v2di *)__A, (__v2di)__B); >} > >static __inline void >_mm_stream_pd (double *__A, __v2df __B) >{ > __builtin_ia32_movntpd (__A, (__v2df)__B); >} > >static __inline __v2di >_mm_movpi64_epi64 (__m64 __A) >{ > return (__v2di)__builtin_ia32_movq2dq ((unsigned long long)__A); >} > >static __inline void >_mm_clflush (void const *__A) >{ > return __builtin_ia32_clflush (__A); >} > >static __inline void >_mm_lfence (void) >{ > __builtin_ia32_lfence (); >} > >static __inline void >_mm_mfence (void) >{ > __builtin_ia32_mfence (); >} > >static __inline __v2di >_mm_cvtsi32_si128 (int __A) >{ > return (__v2di) __builtin_ia32_loadd (&__A); >} > > >static __inline __v2di >_mm_cvtsi64x_si128 (long long __A) >{ > return (__v2di) __builtin_ia32_movq2dq (__A); >} > > >static __inline int >_mm_cvtsi128_si32 (__v2di __A) >{ > int __tmp; > __builtin_ia32_stored (&__tmp, (__v4si)__A); > return __tmp; >} > > >static __inline long long >_mm_cvtsi128_si64x (__v2di __A) >{ > return __builtin_ia32_movdq2q ((__v2di)__A); >} ># 1217 "/usr/lib/gcc/x86_64-redhat-linux/3.4.5/include/xmmintrin.h" 2 3 4 ># 41 "numpy/core/src/multiarray/einsum.c.src" 2 ># 65 "numpy/core/src/multiarray/einsum.c.src" >typedef enum { > BROADCAST_NONE, > BROADCAST_LEFT, > BROADCAST_RIGHT, > BROADCAST_MIDDLE >} EINSUM_BROADCAST; ># 102 "numpy/core/src/multiarray/einsum.c.src" ># 107 "numpy/core/src/multiarray/einsum.c.src" >static void >byte_sum_of_products_one(int nop, char **dataptr, > npy_intp *strides, npy_intp count) >{ > > char *data0 = dataptr[0]; > npy_intp stride0 = strides[0]; ># 124 "numpy/core/src/multiarray/einsum.c.src" > char *data_out = dataptr[1]; > npy_intp stride_out = strides[1]; > > > ; > > while (count--) { > > > *(npy_byte *)data_out = ((*(npy_byte *)data0) + > (*(npy_byte *)data_out)); > data0 += stride0; > data_out += stride_out; ># 201 "numpy/core/src/multiarray/einsum.c.src" > } >} > > > >static void >byte_sum_of_products_contig_one(int nop, char **dataptr, > npy_intp *(__NPY_UNUSED_TAGGEDstrides) __attribute__ ((__unused__)), npy_intp count) >{ > npy_byte *data0 = (npy_byte *)dataptr[0]; > npy_byte *data_out = (npy_byte *)dataptr[1]; > > ; > > > >finish_after_unrolled_loop: > switch (count) { ># 222 "numpy/core/src/multiarray/einsum.c.src" > case 6+1: > > data_out[6] = ((data0[6]) + > (data_out[6])); ># 222 "numpy/core/src/multiarray/einsum.c.src" > case 5+1: > > data_out[5] = ((data0[5]) + > (data_out[5])); ># 222 "numpy/core/src/multiarray/einsum.c.src" > case 4+1: > > data_out[4] = ((data0[4]) + > (data_out[4])); ># 222 "numpy/core/src/multiarray/einsum.c.src" > case 3+1: > > data_out[3] = ((data0[3]) + > (data_out[3])); ># 222 "numpy/core/src/multiarray/einsum.c.src" > case 2+1: > > data_out[2] = ((data0[2]) + > (data_out[2])); ># 222 "numpy/core/src/multiarray/einsum.c.src" > case 1+1: > > data_out[1] = ((data0[1]) + > (data_out[1])); ># 222 "numpy/core/src/multiarray/einsum.c.src" > case 0+1: > > data_out[0] = ((data0[0]) + > (data_out[0])); ># 235 "numpy/core/src/multiarray/einsum.c.src" > case 0: > return; > } > > > while (count >= 8) { > count -= 8; ># 246 "numpy/core/src/multiarray/einsum.c.src" > > data_out[0] = ((data0[0]) + > (data_out[0])); ># 246 "numpy/core/src/multiarray/einsum.c.src" > > data_out[1] = ((data0[1]) + > (data_out[1])); ># 246 "numpy/core/src/multiarray/einsum.c.src" > > data_out[2] = ((data0[2]) + > (data_out[2])); ># 246 "numpy/core/src/multiarray/einsum.c.src" > > data_out[3] = ((data0[3]) + > (data_out[3])); ># 246 "numpy/core/src/multiarray/einsum.c.src" > > data_out[4] = ((data0[4]) + > (data_out[4])); ># 246 "numpy/core/src/multiarray/einsum.c.src" > > data_out[5] = ((data0[5]) + > (data_out[5])); ># 246 "numpy/core/src/multiarray/einsum.c.src" > > data_out[6] = ((data0[6]) + > (data_out[6])); ># 246 "numpy/core/src/multiarray/einsum.c.src" > > data_out[7] = ((data0[7]) + > (data_out[7])); ># 258 "numpy/core/src/multiarray/einsum.c.src" > data0 += 8; > data_out += 8; > } > > > goto finish_after_unrolled_loop; >} ># 1568 "numpy/core/src/multiarray/einsum.c.src" >static void >byte_sum_of_products_contig_outstride0_one(int nop, char **dataptr, > npy_intp *strides, npy_intp count) >{ > > > > > npy_byte accum = 0; > npy_byte *data0 = (npy_byte *)dataptr[0]; ># 1587 "numpy/core/src/multiarray/einsum.c.src" > ; > > > >finish_after_unrolled_loop: > switch (count) { ># 1051 "numpy/core/src/multiarray/einsum.c.src" > case 6+1: > > accum += (data0[6]); ># 1051 "numpy/core/src/multiarray/einsum.c.src" > case 5+1: > > accum += (data0[5]); ># 1051 "numpy/core/src/multiarray/einsum.c.src" > case 4+1: > > accum += (data0[4]); ># 1051 "numpy/core/src/multiarray/einsum.c.src" > case 3+1: > > accum += (data0[3]); ># 1051 "numpy/core/src/multiarray/einsum.c.src" > case 2+1: > > accum += (data0[2]); ># 1051 "numpy/core/src/multiarray/einsum.c.src" > case 1+1: > > accum += (data0[1]); ># 1051 "numpy/core/src/multiarray/einsum.c.src" > case 0+1: > > accum += (data0[0]); > > > > > > case 0: > > > > > *((npy_byte *)dataptr[1]) = (accum + > (*((npy_byte *)dataptr[1]))); > > return; > } ># 1157 "numpy/core/src/multiarray/einsum.c.src" > while (count >= 8) { > count -= 8; ># 1164 "numpy/core/src/multiarray/einsum.c.src" > > accum += (data0[0]); ># 1164 "numpy/core/src/multiarray/einsum.c.src" > > accum += (data0[1]); ># 1164 "numpy/core/src/multiarray/einsum.c.src" > > accum += (data0[2]); ># 1164 "numpy/core/src/multiarray/einsum.c.src" > > accum += (data0[3]); ># 1164 "numpy/core/src/multiarray/einsum.c.src" > > accum += (data0[4]); ># 1164 "numpy/core/src/multiarray/einsum.c.src" > > accum += (data0[5]); ># 1164 "numpy/core/src/multiarray/einsum.c.src" > > accum += (data0[6]); ># 1164 "numpy/core/src/multiarray/einsum.c.src" > > accum += (data0[7]); ># 1174 "numpy/core/src/multiarray/einsum.c.src" > data0 += 8; > > > > } ># 1195 "numpy/core/src/multiarray/einsum.c.src" > goto finish_after_unrolled_loop; >} > > > >static void >byte_sum_of_products_outstride0_one(int nop, char **dataptr, > npy_intp *strides, npy_intp count) >{ > > > > npy_byte accum = 0; > > > > char *data0 = dataptr[0]; > npy_intp stride0 = strides[0]; ># 1223 "numpy/core/src/multiarray/einsum.c.src" > ; > > > while (count--) { > > > accum += (*(npy_byte *)data0); > data0 += stride0; ># 1284 "numpy/core/src/multiarray/einsum.c.src" > } ># 1296 "numpy/core/src/multiarray/einsum.c.src" > *((npy_byte *)dataptr[1]) = (accum + > (*((npy_byte *)dataptr[1]))); > > > > > > >} ># 107 "numpy/core/src/multiarray/einsum.c.src" >static void >byte_sum_of_products_two(int nop, char **dataptr, > npy_intp *strides, npy_intp count) >{ > > char *data0 = dataptr[0]; > npy_intp stride0 = strides[0]; > > > char *data1 = dataptr[1]; > npy_intp stride1 = strides[1]; > > > > > > > char *data_out = dataptr[2]; > npy_intp stride_out = strides[2]; > > > ; > > while (count--) { > > > > > > > > *(npy_byte *)data_out = ((*(npy_byte *)data0) * > (*(npy_byte *)data1) + > (*(npy_byte *)data_out)); > data0 += stride0; > data1 += stride1; > data_out += stride_out; ># 201 "numpy/core/src/multiarray/einsum.c.src" > } >} ># 439 "numpy/core/src/multiarray/einsum.c.src" >static void >byte_sum_of_products_contig_two(int nop, char **dataptr, > npy_intp *(__NPY_UNUSED_TAGGEDstrides) __attribute__ ((__unused__)), npy_intp count) >{ > npy_byte *data0 = (npy_byte *)dataptr[0]; > npy_byte *data1 = (npy_byte *)dataptr[1]; > npy_byte *data_out = (npy_byte *)dataptr[2]; > > > > > > ; > > > >finish_after_unrolled_loop: > switch (count) { ># 289 "numpy/core/src/multiarray/einsum.c.src" > case 6+1: > data_out[6] = ((data0[6]) * > (data1[6]) + > (data_out[6])); ># 289 "numpy/core/src/multiarray/einsum.c.src" > case 5+1: > data_out[5] = ((data0[5]) * > (data1[5]) + > (data_out[5])); ># 289 "numpy/core/src/multiarray/einsum.c.src" > case 4+1: > data_out[4] = ((data0[4]) * > (data1[4]) + > (data_out[4])); ># 289 "numpy/core/src/multiarray/einsum.c.src" > case 3+1: > data_out[3] = ((data0[3]) * > (data1[3]) + > (data_out[3])); ># 289 "numpy/core/src/multiarray/einsum.c.src" > case 2+1: > data_out[2] = ((data0[2]) * > (data1[2]) + > (data_out[2])); ># 289 "numpy/core/src/multiarray/einsum.c.src" > case 1+1: > data_out[1] = ((data0[1]) * > (data1[1]) + > (data_out[1])); ># 289 "numpy/core/src/multiarray/einsum.c.src" > case 0+1: > data_out[0] = ((data0[0]) * > (data1[0]) + > (data_out[0])); > > case 0: > return; > } ># 327 "numpy/core/src/multiarray/einsum.c.src" > while (count >= 8) { > count -= 8; ># 339 "numpy/core/src/multiarray/einsum.c.src" > data_out[0] = ((data0[0]) * > (data1[0]) + > (data_out[0])); ># 339 "numpy/core/src/multiarray/einsum.c.src" > data_out[1] = ((data0[1]) * > (data1[1]) + > (data_out[1])); ># 339 "numpy/core/src/multiarray/einsum.c.src" > data_out[2] = ((data0[2]) * > (data1[2]) + > (data_out[2])); ># 339 "numpy/core/src/multiarray/einsum.c.src" > data_out[3] = ((data0[3]) * > (data1[3]) + > (data_out[3])); ># 339 "numpy/core/src/multiarray/einsum.c.src" > data_out[4] = ((data0[4]) * > (data1[4]) + > (data_out[4])); ># 339 "numpy/core/src/multiarray/einsum.c.src" > data_out[5] = ((data0[5]) * > (data1[5]) + > (data_out[5])); ># 339 "numpy/core/src/multiarray/einsum.c.src" > data_out[6] = ((data0[6]) * > (data1[6]) + > (data_out[6])); ># 339 "numpy/core/src/multiarray/einsum.c.src" > data_out[7] = ((data0[7]) * > (data1[7]) + > (data_out[7])); > > > data0 += 8; > data1 += 8; > data_out += 8; > } > > > goto finish_after_unrolled_loop; >} > > >static void >byte_sum_of_products_stride0_contig_outcontig_two(int nop, char **dataptr, > npy_intp *(__NPY_UNUSED_TAGGEDstrides) __attribute__ ((__unused__)), npy_intp count) >{ > npy_byte value0 = (*(npy_byte *)dataptr[0]); > npy_byte *data1 = (npy_byte *)dataptr[1]; > npy_byte *data_out = (npy_byte *)dataptr[2]; > > > > > > > > ; > > > >finish_after_unrolled_loop: > switch (count) { ># 377 "numpy/core/src/multiarray/einsum.c.src" > case 6+1: > data_out[6] = (value0 * > (data1[6]) + > (data_out[6])); ># 377 "numpy/core/src/multiarray/einsum.c.src" > case 5+1: > data_out[5] = (value0 * > (data1[5]) + > (data_out[5])); ># 377 "numpy/core/src/multiarray/einsum.c.src" > case 4+1: > data_out[4] = (value0 * > (data1[4]) + > (data_out[4])); ># 377 "numpy/core/src/multiarray/einsum.c.src" > case 3+1: > data_out[3] = (value0 * > (data1[3]) + > (data_out[3])); ># 377 "numpy/core/src/multiarray/einsum.c.src" > case 2+1: > data_out[2] = (value0 * > (data1[2]) + > (data_out[2])); ># 377 "numpy/core/src/multiarray/einsum.c.src" > case 1+1: > data_out[1] = (value0 * > (data1[1]) + > (data_out[1])); ># 377 "numpy/core/src/multiarray/einsum.c.src" > case 0+1: > data_out[0] = (value0 * > (data1[0]) + > (data_out[0])); > > case 0: > return; > } ># 461 "numpy/core/src/multiarray/einsum.c.src" > while (count >= 8) { > count -= 8; ># 468 "numpy/core/src/multiarray/einsum.c.src" > data_out[0] = (value0 * > (data1[0]) + > (data_out[0])); ># 468 "numpy/core/src/multiarray/einsum.c.src" > data_out[1] = (value0 * > (data1[1]) + > (data_out[1])); ># 468 "numpy/core/src/multiarray/einsum.c.src" > data_out[2] = (value0 * > (data1[2]) + > (data_out[2])); ># 468 "numpy/core/src/multiarray/einsum.c.src" > data_out[3] = (value0 * > (data1[3]) + > (data_out[3])); ># 468 "numpy/core/src/multiarray/einsum.c.src" > data_out[4] = (value0 * > (data1[4]) + > (data_out[4])); ># 468 "numpy/core/src/multiarray/einsum.c.src" > data_out[5] = (value0 * > (data1[5]) + > (data_out[5])); ># 468 "numpy/core/src/multiarray/einsum.c.src" > data_out[6] = (value0 * > (data1[6]) + > (data_out[6])); ># 468 "numpy/core/src/multiarray/einsum.c.src" > data_out[7] = (value0 * > (data1[7]) + > (data_out[7])); > > > data1 += 8; > data_out += 8; > } > > > if (count > 0) { > goto finish_after_unrolled_loop; > } >} > >static void >byte_sum_of_products_contig_stride0_outcontig_two(int nop, char **dataptr, > npy_intp *(__NPY_UNUSED_TAGGEDstrides) __attribute__ ((__unused__)), npy_intp count) >{ > npy_byte *data0 = (npy_byte *)dataptr[0]; > npy_byte value1 = (*(npy_byte *)dataptr[1]); > npy_byte *data_out = (npy_byte *)dataptr[2]; > > > > > > ; > > > >finish_after_unrolled_loop: > switch (count) { ># 504 "numpy/core/src/multiarray/einsum.c.src" > case 6+1: > data_out[6] = ((data0[6])* > value1 + > (data_out[6])); ># 504 "numpy/core/src/multiarray/einsum.c.src" > case 5+1: > data_out[5] = ((data0[5])* > value1 + > (data_out[5])); ># 504 "numpy/core/src/multiarray/einsum.c.src" > case 4+1: > data_out[4] = ((data0[4])* > value1 + > (data_out[4])); ># 504 "numpy/core/src/multiarray/einsum.c.src" > case 3+1: > data_out[3] = ((data0[3])* > value1 + > (data_out[3])); ># 504 "numpy/core/src/multiarray/einsum.c.src" > case 2+1: > data_out[2] = ((data0[2])* > value1 + > (data_out[2])); ># 504 "numpy/core/src/multiarray/einsum.c.src" > case 1+1: > data_out[1] = ((data0[1])* > value1 + > (data_out[1])); ># 504 "numpy/core/src/multiarray/einsum.c.src" > case 0+1: > data_out[0] = ((data0[0])* > value1 + > (data_out[0])); > > case 0: > return; > } ># 542 "numpy/core/src/multiarray/einsum.c.src" > while (count >= 8) { > count -= 8; ># 554 "numpy/core/src/multiarray/einsum.c.src" > data_out[0] = ((data0[0])* > value1 + > (data_out[0])); ># 554 "numpy/core/src/multiarray/einsum.c.src" > data_out[1] = ((data0[1])* > value1 + > (data_out[1])); ># 554 "numpy/core/src/multiarray/einsum.c.src" > data_out[2] = ((data0[2])* > value1 + > (data_out[2])); ># 554 "numpy/core/src/multiarray/einsum.c.src" > data_out[3] = ((data0[3])* > value1 + > (data_out[3])); ># 554 "numpy/core/src/multiarray/einsum.c.src" > data_out[4] = ((data0[4])* > value1 + > (data_out[4])); ># 554 "numpy/core/src/multiarray/einsum.c.src" > data_out[5] = ((data0[5])* > value1 + > (data_out[5])); ># 554 "numpy/core/src/multiarray/einsum.c.src" > data_out[6] = ((data0[6])* > value1 + > (data_out[6])); ># 554 "numpy/core/src/multiarray/einsum.c.src" > data_out[7] = ((data0[7])* > value1 + > (data_out[7])); > > > data0 += 8; > data_out += 8; > } > > > goto finish_after_unrolled_loop; >} > >static void >byte_sum_of_products_contig_contig_outstride0_two(int nop, char **dataptr, > npy_intp *(__NPY_UNUSED_TAGGEDstrides) __attribute__ ((__unused__)), npy_intp count) >{ > npy_byte *data0 = (npy_byte *)dataptr[0]; > npy_byte *data1 = (npy_byte *)dataptr[1]; > npy_byte accum = 0; > > > > > > > > ; > > > >finish_after_unrolled_loop: > switch (count) { ># 590 "numpy/core/src/multiarray/einsum.c.src" > case 6+1: > accum += (data0[6]) * (data1[6]); ># 590 "numpy/core/src/multiarray/einsum.c.src" > case 5+1: > accum += (data0[5]) * (data1[5]); ># 590 "numpy/core/src/multiarray/einsum.c.src" > case 4+1: > accum += (data0[4]) * (data1[4]); ># 590 "numpy/core/src/multiarray/einsum.c.src" > case 3+1: > accum += (data0[3]) * (data1[3]); ># 590 "numpy/core/src/multiarray/einsum.c.src" > case 2+1: > accum += (data0[2]) * (data1[2]); ># 590 "numpy/core/src/multiarray/einsum.c.src" > case 1+1: > accum += (data0[1]) * (data1[1]); ># 590 "numpy/core/src/multiarray/einsum.c.src" > case 0+1: > accum += (data0[0]) * (data1[0]); > > case 0: > *(npy_byte *)dataptr[2] += (accum); > return; > } ># 695 "numpy/core/src/multiarray/einsum.c.src" > while (count >= 8) { > count -= 8; ># 702 "numpy/core/src/multiarray/einsum.c.src" > accum += (data0[0]) * (data1[0]); ># 702 "numpy/core/src/multiarray/einsum.c.src" > accum += (data0[1]) * (data1[1]); ># 702 "numpy/core/src/multiarray/einsum.c.src" > accum += (data0[2]) * (data1[2]); ># 702 "numpy/core/src/multiarray/einsum.c.src" > accum += (data0[3]) * (data1[3]); ># 702 "numpy/core/src/multiarray/einsum.c.src" > accum += (data0[4]) * (data1[4]); ># 702 "numpy/core/src/multiarray/einsum.c.src" > accum += (data0[5]) * (data1[5]); ># 702 "numpy/core/src/multiarray/einsum.c.src" > accum += (data0[6]) * (data1[6]); ># 702 "numpy/core/src/multiarray/einsum.c.src" > accum += (data0[7]) * (data1[7]); > > > data0 += 8; > data1 += 8; > } ># 724 "numpy/core/src/multiarray/einsum.c.src" > goto finish_after_unrolled_loop; >} > >static void >byte_sum_of_products_stride0_contig_outstride0_two(int nop, char **dataptr, > npy_intp *(__NPY_UNUSED_TAGGEDstrides) __attribute__ ((__unused__)), npy_intp count) >{ > npy_byte value0 = (*(npy_byte *)dataptr[0]); > npy_byte *data1 = (npy_byte *)dataptr[1]; > npy_byte accum = 0; > > > > > > ; > > > >finish_after_unrolled_loop: > switch (count) { ># 748 "numpy/core/src/multiarray/einsum.c.src" > case 6+1: > accum += (data1[6]); ># 748 "numpy/core/src/multiarray/einsum.c.src" > case 5+1: > accum += (data1[5]); ># 748 "numpy/core/src/multiarray/einsum.c.src" > case 4+1: > accum += (data1[4]); ># 748 "numpy/core/src/multiarray/einsum.c.src" > case 3+1: > accum += (data1[3]); ># 748 "numpy/core/src/multiarray/einsum.c.src" > case 2+1: > accum += (data1[2]); ># 748 "numpy/core/src/multiarray/einsum.c.src" > case 1+1: > accum += (data1[1]); ># 748 "numpy/core/src/multiarray/einsum.c.src" > case 0+1: > accum += (data1[0]); > > case 0: > *(npy_byte *)dataptr[2] += (value0 * accum); > return; > } ># 795 "numpy/core/src/multiarray/einsum.c.src" > while (count >= 8) { > count -= 8; ># 807 "numpy/core/src/multiarray/einsum.c.src" > accum += (data1[0]); ># 807 "numpy/core/src/multiarray/einsum.c.src" > accum += (data1[1]); ># 807 "numpy/core/src/multiarray/einsum.c.src" > accum += (data1[2]); ># 807 "numpy/core/src/multiarray/einsum.c.src" > accum += (data1[3]); ># 807 "numpy/core/src/multiarray/einsum.c.src" > accum += (data1[4]); ># 807 "numpy/core/src/multiarray/einsum.c.src" > accum += (data1[5]); ># 807 "numpy/core/src/multiarray/einsum.c.src" > accum += (data1[6]); ># 807 "numpy/core/src/multiarray/einsum.c.src" > accum += (data1[7]); > > > data1 += 8; > } ># 823 "numpy/core/src/multiarray/einsum.c.src" > goto finish_after_unrolled_loop; >} > >static void >byte_sum_of_products_contig_stride0_outstride0_two(int nop, char **dataptr, > npy_intp *(__NPY_UNUSED_TAGGEDstrides) __attribute__ ((__unused__)), npy_intp count) >{ > npy_byte *data0 = (npy_byte *)dataptr[0]; > npy_byte value1 = (*(npy_byte *)dataptr[1]); > npy_byte accum = 0; > > > > > > ; > > > >finish_after_unrolled_loop: > switch (count) { ># 847 "numpy/core/src/multiarray/einsum.c.src" > case 6+1: > accum += (data0[6]); ># 847 "numpy/core/src/multiarray/einsum.c.src" > case 5+1: > accum += (data0[5]); ># 847 "numpy/core/src/multiarray/einsum.c.src" > case 4+1: > accum += (data0[4]); ># 847 "numpy/core/src/multiarray/einsum.c.src" > case 3+1: > accum += (data0[3]); ># 847 "numpy/core/src/multiarray/einsum.c.src" > case 2+1: > accum += (data0[2]); ># 847 "numpy/core/src/multiarray/einsum.c.src" > case 1+1: > accum += (data0[1]); ># 847 "numpy/core/src/multiarray/einsum.c.src" > case 0+1: > accum += (data0[0]); > > case 0: > *(npy_byte *)dataptr[2] += (accum * value1); > return; > } ># 894 "numpy/core/src/multiarray/einsum.c.src" > while (count >= 8) { > count -= 8; ># 906 "numpy/core/src/multiarray/einsum.c.src" > accum += (data0[0]); ># 906 "numpy/core/src/multiarray/einsum.c.src" > accum += (data0[1]); ># 906 "numpy/core/src/multiarray/einsum.c.src" > accum += (data0[2]); ># 906 "numpy/core/src/multiarray/einsum.c.src" > accum += (data0[3]); ># 906 "numpy/core/src/multiarray/einsum.c.src" > accum += (data0[4]); ># 906 "numpy/core/src/multiarray/einsum.c.src" > accum += (data0[5]); ># 906 "numpy/core/src/multiarray/einsum.c.src" > accum += (data0[6]); ># 906 "numpy/core/src/multiarray/einsum.c.src" > accum += (data0[7]); > > > data0 += 8; > } ># 922 "numpy/core/src/multiarray/einsum.c.src" > goto finish_after_unrolled_loop; >} ># 1455 "numpy/core/src/multiarray/einsum.c.src" >static void >byte_sum_of_products_outstride0_two(int nop, char **dataptr, > npy_intp *strides, npy_intp count) >{ > > > > npy_byte accum = 0; > > > > char *data0 = dataptr[0]; > npy_intp stride0 = strides[0]; > > > char *data1 = dataptr[1]; > npy_intp stride1 = strides[1]; > > > > > > > ; > > > while (count--) { > > > > > > accum += (*(npy_byte *)data0) * > (*(npy_byte *)data1); > data0 += stride0; > data1 += stride1; ># 1539 "numpy/core/src/multiarray/einsum.c.src" > } ># 1551 "numpy/core/src/multiarray/einsum.c.src" > *((npy_byte *)dataptr[2]) = (accum + > (*((npy_byte *)dataptr[2]))); > > > > > > >} ># 107 "numpy/core/src/multiarray/einsum.c.src" >static void >byte_sum_of_products_three(int nop, char **dataptr, > npy_intp *strides, npy_intp count) >{ > > char *data0 = dataptr[0]; > npy_intp stride0 = strides[0]; > > > char *data1 = dataptr[1]; > npy_intp stride1 = strides[1]; > > > char *data2 = dataptr[2]; > npy_intp stride2 = strides[2]; > > > char *data_out = dataptr[3]; > npy_intp stride_out = strides[3]; > > > ; > > while (count--) { ># 145 "numpy/core/src/multiarray/einsum.c.src" > *(npy_byte *)data_out = ((*(npy_byte *)data0) * > (*(npy_byte *)data1) * > (*(npy_byte *)data2) + > (*(npy_byte *)data_out)); > data0 += stride0; > data1 += stride1; > data2 += stride2; > data_out += stride_out; ># 201 "numpy/core/src/multiarray/einsum.c.src" > } >} ># 1542 "numpy/core/src/multiarray/einsum.c.src" >static void >byte_sum_of_products_contig_three(int nop, char **dataptr, > npy_intp *(__NPY_UNUSED_TAGGEDstrides) __attribute__ ((__unused__)), npy_intp count) >{ > npy_byte *data0 = (npy_byte *)dataptr[0]; > npy_byte *data1 = (npy_byte *)dataptr[1]; > npy_byte *data2 = (npy_byte *)dataptr[2]; > npy_byte *data_out = (npy_byte *)dataptr[3]; > > > while (count >= 8) { > count -= 8; ># 943 "numpy/core/src/multiarray/einsum.c.src" > data_out[0] = ((data0[0]) * > (data1[0]) * > (data2[0]) + > (data_out[0])); ># 943 "numpy/core/src/multiarray/einsum.c.src" > data_out[1] = ((data0[1]) * > (data1[1]) * > (data2[1]) + > (data_out[1])); ># 943 "numpy/core/src/multiarray/einsum.c.src" > data_out[2] = ((data0[2]) * > (data1[2]) * > (data2[2]) + > (data_out[2])); ># 943 "numpy/core/src/multiarray/einsum.c.src" > data_out[3] = ((data0[3]) * > (data1[3]) * > (data2[3]) + > (data_out[3])); ># 943 "numpy/core/src/multiarray/einsum.c.src" > data_out[4] = ((data0[4]) * > (data1[4]) * > (data2[4]) + > (data_out[4])); ># 943 "numpy/core/src/multiarray/einsum.c.src" > data_out[5] = ((data0[5]) * > (data1[5]) * > (data2[5]) + > (data_out[5])); ># 943 "numpy/core/src/multiarray/einsum.c.src" > data_out[6] = ((data0[6]) * > (data1[6]) * > (data2[6]) + > (data_out[6])); ># 943 "numpy/core/src/multiarray/einsum.c.src" > data_out[7] = ((data0[7]) * > (data1[7]) * > (data2[7]) + > (data_out[7])); > > data0 += 8; > data1 += 8; > data_out += 8; > } ># 958 "numpy/core/src/multiarray/einsum.c.src" > if (count-- == 0) { > return; > } > data_out[0] = ((data0[0]) * > (data1[0]) * > (data2[0]) + > (data_out[0])); ># 958 "numpy/core/src/multiarray/einsum.c.src" > if (count-- == 0) { > return; > } > data_out[1] = ((data0[1]) * > (data1[1]) * > (data2[1]) + > (data_out[1])); ># 958 "numpy/core/src/multiarray/einsum.c.src" > if (count-- == 0) { > return; > } > data_out[2] = ((data0[2]) * > (data1[2]) * > (data2[2]) + > (data_out[2])); ># 958 "numpy/core/src/multiarray/einsum.c.src" > if (count-- == 0) { > return; > } > data_out[3] = ((data0[3]) * > (data1[3]) * > (data2[3]) + > (data_out[3])); ># 958 "numpy/core/src/multiarray/einsum.c.src" > if (count-- == 0) { > return; > } > data_out[4] = ((data0[4]) * > (data1[4]) * > (data2[4]) + > (data_out[4])); ># 958 "numpy/core/src/multiarray/einsum.c.src" > if (count-- == 0) { > return; > } > data_out[5] = ((data0[5]) * > (data1[5]) * > (data2[5]) + > (data_out[5])); ># 958 "numpy/core/src/multiarray/einsum.c.src" > if (count-- == 0) { > return; > } > data_out[6] = ((data0[6]) * > (data1[6]) * > (data2[6]) + > (data_out[6])); ># 958 "numpy/core/src/multiarray/einsum.c.src" > if (count-- == 0) { > return; > } > data_out[7] = ((data0[7]) * > (data1[7]) * > (data2[7]) + > (data_out[7])); > >} ># 1354 "numpy/core/src/multiarray/einsum.c.src" >static void >byte_sum_of_products_outstride0_three(int nop, char **dataptr, > npy_intp *strides, npy_intp count) >{ > > > > npy_byte accum = 0; > > > > char *data0 = dataptr[0]; > npy_intp stride0 = strides[0]; > > > char *data1 = dataptr[1]; > npy_intp stride1 = strides[1]; > > > char *data2 = dataptr[2]; > npy_intp stride2 = strides[2]; > > > ; > > > while (count--) { ># 1391 "numpy/core/src/multiarray/einsum.c.src" > accum += (*(npy_byte *)data0) * > (*(npy_byte *)data1) * > (*(npy_byte *)data2); > data0 += stride0; > data1 += stride1; > data2 += stride2; ># 1438 "numpy/core/src/multiarray/einsum.c.src" > } ># 1450 "numpy/core/src/multiarray/einsum.c.src" > *((npy_byte *)dataptr[3]) = (accum + > (*((npy_byte *)dataptr[3]))); > > > > > > >} ># 107 "numpy/core/src/multiarray/einsum.c.src" >static void >byte_sum_of_products_any(int nop, char **dataptr, > npy_intp *strides, npy_intp count) >{ ># 128 "numpy/core/src/multiarray/einsum.c.src" > ; > > while (count--) { ># 154 "numpy/core/src/multiarray/einsum.c.src" > npy_byte temp = (*(npy_byte *)dataptr[0]); > int i; > for (i = 1; i < nop; ++i) { > temp *= (*(npy_byte *)dataptr[i]); > } > *(npy_byte *)dataptr[nop] = (temp + > (*(npy_byte *)dataptr[i])); > for (i = 0; i <= nop; ++i) { > dataptr[i] += strides[i]; > } ># 201 "numpy/core/src/multiarray/einsum.c.src" > } >} ># 1686 "numpy/core/src/multiarray/einsum.c.src" >static void >byte_sum_of_products_contig_any(int nop, char **dataptr, > npy_intp *(__NPY_UNUSED_TAGGEDstrides) __attribute__ ((__unused__)), npy_intp count) >{ > ; > > > while (count--) { > > npy_byte temp = (*(npy_byte *)dataptr[0]); > int i; > for (i = 1; i < nop; ++i) { > temp *= (*(npy_byte *)dataptr[i]); > } > *(npy_byte *)dataptr[nop] = (temp + > (*(npy_byte *)dataptr[i])); > for (i = 0; i <= nop; ++i) { > dataptr[i] += sizeof(npy_byte); > } ># 1732 "numpy/core/src/multiarray/einsum.c.src" > } >} ># 2070 "numpy/core/src/multiarray/einsum.c.src" >static void >byte_sum_of_products_outstride0_any(int nop, char **dataptr, > npy_intp *strides, npy_intp count) >{ > > > > npy_byte accum = 0; ># 2093 "numpy/core/src/multiarray/einsum.c.src" > ; > > > while (count--) { ># 2114 "numpy/core/src/multiarray/einsum.c.src" > npy_byte temp = (*(npy_byte *)dataptr[0]); > int i; > for (i = 1; i < nop; ++i) { > temp *= (*(npy_byte *)dataptr[i]); > } > accum += temp; > for (i = 0; i < nop; ++i) { > dataptr[i] += strides[i]; > } ># 2154 "numpy/core/src/multiarray/einsum.c.src" > } ># 2169 "numpy/core/src/multiarray/einsum.c.src" > *((npy_byte *)dataptr[nop]) = (accum + > (*((npy_byte *)dataptr[nop]))); > > > >} ># 102 "numpy/core/src/multiarray/einsum.c.src" ># 107 "numpy/core/src/multiarray/einsum.c.src" >static void >short_sum_of_products_one(int nop, char **dataptr, > npy_intp *strides, npy_intp count) >{ > > char *data0 = dataptr[0]; > npy_intp stride0 = strides[0]; ># 124 "numpy/core/src/multiarray/einsum.c.src" > char *data_out = dataptr[1]; > npy_intp stride_out = strides[1]; > > > ; > > while (count--) { > > > *(npy_short *)data_out = ((*(npy_short *)data0) + > (*(npy_short *)data_out)); > data0 += stride0; > data_out += stride_out; ># 201 "numpy/core/src/multiarray/einsum.c.src" > } >} > > > >static void >short_sum_of_products_contig_one(int nop, char **dataptr, > npy_intp *(__NPY_UNUSED_TAGGEDstrides) __attribute__ ((__unused__)), npy_intp count) >{ > npy_short *data0 = (npy_short *)dataptr[0]; > npy_short *data_out = (npy_short *)dataptr[1]; > > ; > > > >finish_after_unrolled_loop: > switch (count) { ># 222 "numpy/core/src/multiarray/einsum.c.src" > case 6+1: > > data_out[6] = ((data0[6]) + > (data_out[6])); ># 222 "numpy/core/src/multiarray/einsum.c.src" > case 5+1: > > data_out[5] = ((data0[5]) + > (data_out[5])); ># 222 "numpy/core/src/multiarray/einsum.c.src" > case 4+1: > > data_out[4] = ((data0[4]) + > (data_out[4])); ># 222 "numpy/core/src/multiarray/einsum.c.src" > case 3+1: > > data_out[3] = ((data0[3]) + > (data_out[3])); ># 222 "numpy/core/src/multiarray/einsum.c.src" > case 2+1: > > data_out[2] = ((data0[2]) + > (data_out[2])); ># 222 "numpy/core/src/multiarray/einsum.c.src" > case 1+1: > > data_out[1] = ((data0[1]) + > (data_out[1])); ># 222 "numpy/core/src/multiarray/einsum.c.src" > case 0+1: > > data_out[0] = ((data0[0]) + > (data_out[0])); ># 235 "numpy/core/src/multiarray/einsum.c.src" > case 0: > return; > } > > > while (count >= 8) { > count -= 8; ># 246 "numpy/core/src/multiarray/einsum.c.src" > > data_out[0] = ((data0[0]) + > (data_out[0])); ># 246 "numpy/core/src/multiarray/einsum.c.src" > > data_out[1] = ((data0[1]) + > (data_out[1])); ># 246 "numpy/core/src/multiarray/einsum.c.src" > > data_out[2] = ((data0[2]) + > (data_out[2])); ># 246 "numpy/core/src/multiarray/einsum.c.src" > > data_out[3] = ((data0[3]) + > (data_out[3])); ># 246 "numpy/core/src/multiarray/einsum.c.src" > > data_out[4] = ((data0[4]) + > (data_out[4])); ># 246 "numpy/core/src/multiarray/einsum.c.src" > > data_out[5] = ((data0[5]) + > (data_out[5])); ># 246 "numpy/core/src/multiarray/einsum.c.src" > > data_out[6] = ((data0[6]) + > (data_out[6])); ># 246 "numpy/core/src/multiarray/einsum.c.src" > > data_out[7] = ((data0[7]) + > (data_out[7])); ># 258 "numpy/core/src/multiarray/einsum.c.src" > data0 += 8; > data_out += 8; > } > > > goto finish_after_unrolled_loop; >} ># 1568 "numpy/core/src/multiarray/einsum.c.src" >static void >short_sum_of_products_contig_outstride0_one(int nop, char **dataptr, > npy_intp *strides, npy_intp count) >{ > > > > > npy_short accum = 0; > npy_short *data0 = (npy_short *)dataptr[0]; ># 1587 "numpy/core/src/multiarray/einsum.c.src" > ; > > > >finish_after_unrolled_loop: > switch (count) { ># 1051 "numpy/core/src/multiarray/einsum.c.src" > case 6+1: > > accum += (data0[6]); ># 1051 "numpy/core/src/multiarray/einsum.c.src" > case 5+1: > > accum += (data0[5]); ># 1051 "numpy/core/src/multiarray/einsum.c.src" > case 4+1: > > accum += (data0[4]); ># 1051 "numpy/core/src/multiarray/einsum.c.src" > case 3+1: > > accum += (data0[3]); ># 1051 "numpy/core/src/multiarray/einsum.c.src" > case 2+1: > > accum += (data0[2]); ># 1051 "numpy/core/src/multiarray/einsum.c.src" > case 1+1: > > accum += (data0[1]); ># 1051 "numpy/core/src/multiarray/einsum.c.src" > case 0+1: > > accum += (data0[0]); > > > > > > case 0: > > > > > *((npy_short *)dataptr[1]) = (accum + > (*((npy_short *)dataptr[1]))); > > return; > } ># 1157 "numpy/core/src/multiarray/einsum.c.src" > while (count >= 8) { > count -= 8; ># 1164 "numpy/core/src/multiarray/einsum.c.src" > > accum += (data0[0]); ># 1164 "numpy/core/src/multiarray/einsum.c.src" > > accum += (data0[1]); ># 1164 "numpy/core/src/multiarray/einsum.c.src" > > accum += (data0[2]); ># 1164 "numpy/core/src/multiarray/einsum.c.src" > > accum += (data0[3]); ># 1164 "numpy/core/src/multiarray/einsum.c.src" > > accum += (data0[4]); ># 1164 "numpy/core/src/multiarray/einsum.c.src" > > accum += (data0[5]); ># 1164 "numpy/core/src/multiarray/einsum.c.src" > > accum += (data0[6]); ># 1164 "numpy/core/src/multiarray/einsum.c.src" > > accum += (data0[7]); ># 1174 "numpy/core/src/multiarray/einsum.c.src" > data0 += 8; > > > > } ># 1195 "numpy/core/src/multiarray/einsum.c.src" > goto finish_after_unrolled_loop; >} > > > >static void >short_sum_of_products_outstride0_one(int nop, char **dataptr, > npy_intp *strides, npy_intp count) >{ > > > > npy_short accum = 0; > > > > char *data0 = dataptr[0]; > npy_intp stride0 = strides[0]; ># 1223 "numpy/core/src/multiarray/einsum.c.src" > ; > > > while (count--) { > > > accum += (*(npy_short *)data0); > data0 += stride0; ># 1284 "numpy/core/src/multiarray/einsum.c.src" > } ># 1296 "numpy/core/src/multiarray/einsum.c.src" > *((npy_short *)dataptr[1]) = (accum + > (*((npy_short *)dataptr[1]))); > > > > > > >} ># 107 "numpy/core/src/multiarray/einsum.c.src" >static void >short_sum_of_products_two(int nop, char **dataptr, > npy_intp *strides, npy_intp count) >{ > > char *data0 = dataptr[0]; > npy_intp stride0 = strides[0]; > > > char *data1 = dataptr[1]; > npy_intp stride1 = strides[1]; > > > > > > > char *data_out = dataptr[2]; > npy_intp stride_out = strides[2]; > > > ; > > while (count--) { > > > > > > > > *(npy_short *)data_out = ((*(npy_short *)data0) * > (*(npy_short *)data1) + > (*(npy_short *)data_out)); > data0 += stride0; > data1 += stride1; > data_out += stride_out; ># 201 "numpy/core/src/multiarray/einsum.c.src" > } >} ># 439 "numpy/core/src/multiarray/einsum.c.src" >static void >short_sum_of_products_contig_two(int nop, char **dataptr, > npy_intp *(__NPY_UNUSED_TAGGEDstrides) __attribute__ ((__unused__)), npy_intp count) >{ > npy_short *data0 = (npy_short *)dataptr[0]; > npy_short *data1 = (npy_short *)dataptr[1]; > npy_short *data_out = (npy_short *)dataptr[2]; > > > > > > ; > > > >finish_after_unrolled_loop: > switch (count) { ># 289 "numpy/core/src/multiarray/einsum.c.src" > case 6+1: > data_out[6] = ((data0[6]) * > (data1[6]) + > (data_out[6])); ># 289 "numpy/core/src/multiarray/einsum.c.src" > case 5+1: > data_out[5] = ((data0[5]) * > (data1[5]) + > (data_out[5])); ># 289 "numpy/core/src/multiarray/einsum.c.src" > case 4+1: > data_out[4] = ((data0[4]) * > (data1[4]) + > (data_out[4])); ># 289 "numpy/core/src/multiarray/einsum.c.src" > case 3+1: > data_out[3] = ((data0[3]) * > (data1[3]) + > (data_out[3])); ># 289 "numpy/core/src/multiarray/einsum.c.src" > case 2+1: > data_out[2] = ((data0[2]) * > (data1[2]) + > (data_out[2])); ># 289 "numpy/core/src/multiarray/einsum.c.src" > case 1+1: > data_out[1] = ((data0[1]) * > (data1[1]) + > (data_out[1])); ># 289 "numpy/core/src/multiarray/einsum.c.src" > case 0+1: > data_out[0] = ((data0[0]) * > (data1[0]) + > (data_out[0])); > > case 0: > return; > } ># 327 "numpy/core/src/multiarray/einsum.c.src" > while (count >= 8) { > count -= 8; ># 339 "numpy/core/src/multiarray/einsum.c.src" > data_out[0] = ((data0[0]) * > (data1[0]) + > (data_out[0])); ># 339 "numpy/core/src/multiarray/einsum.c.src" > data_out[1] = ((data0[1]) * > (data1[1]) + > (data_out[1])); ># 339 "numpy/core/src/multiarray/einsum.c.src" > data_out[2] = ((data0[2]) * > (data1[2]) + > (data_out[2])); ># 339 "numpy/core/src/multiarray/einsum.c.src" > data_out[3] = ((data0[3]) * > (data1[3]) + > (data_out[3])); ># 339 "numpy/core/src/multiarray/einsum.c.src" > data_out[4] = ((data0[4]) * > (data1[4]) + > (data_out[4])); ># 339 "numpy/core/src/multiarray/einsum.c.src" > data_out[5] = ((data0[5]) * > (data1[5]) + > (data_out[5])); ># 339 "numpy/core/src/multiarray/einsum.c.src" > data_out[6] = ((data0[6]) * > (data1[6]) + > (data_out[6])); ># 339 "numpy/core/src/multiarray/einsum.c.src" > data_out[7] = ((data0[7]) * > (data1[7]) + > (data_out[7])); > > > data0 += 8; > data1 += 8; > data_out += 8; > } > > > goto finish_after_unrolled_loop; >} > > >static void >short_sum_of_products_stride0_contig_outcontig_two(int nop, char **dataptr, > npy_intp *(__NPY_UNUSED_TAGGEDstrides) __attribute__ ((__unused__)), npy_intp count) >{ > npy_short value0 = (*(npy_short *)dataptr[0]); > npy_short *data1 = (npy_short *)dataptr[1]; > npy_short *data_out = (npy_short *)dataptr[2]; > > > > > > > > ; > > > >finish_after_unrolled_loop: > switch (count) { ># 377 "numpy/core/src/multiarray/einsum.c.src" > case 6+1: > data_out[6] = (value0 * > (data1[6]) + > (data_out[6])); ># 377 "numpy/core/src/multiarray/einsum.c.src" > case 5+1: > data_out[5] = (value0 * > (data1[5]) + > (data_out[5])); ># 377 "numpy/core/src/multiarray/einsum.c.src" > case 4+1: > data_out[4] = (value0 * > (data1[4]) + > (data_out[4])); ># 377 "numpy/core/src/multiarray/einsum.c.src" > case 3+1: > data_out[3] = (value0 * > (data1[3]) + > (data_out[3])); ># 377 "numpy/core/src/multiarray/einsum.c.src" > case 2+1: > data_out[2] = (value0 * > (data1[2]) + > (data_out[2])); ># 377 "numpy/core/src/multiarray/einsum.c.src" > case 1+1: > data_out[1] = (value0 * > (data1[1]) + > (data_out[1])); ># 377 "numpy/core/src/multiarray/einsum.c.src" > case 0+1: > data_out[0] = (value0 * > (data1[0]) + > (data_out[0])); > > case 0: > return; > } ># 461 "numpy/core/src/multiarray/einsum.c.src" > while (count >= 8) { > count -= 8; ># 468 "numpy/core/src/multiarray/einsum.c.src" > data_out[0] = (value0 * > (data1[0]) + > (data_out[0])); ># 468 "numpy/core/src/multiarray/einsum.c.src" > data_out[1] = (value0 * > (data1[1]) + > (data_out[1])); ># 468 "numpy/core/src/multiarray/einsum.c.src" > data_out[2] = (value0 * > (data1[2]) + > (data_out[2])); ># 468 "numpy/core/src/multiarray/einsum.c.src" > data_out[3] = (value0 * > (data1[3]) + > (data_out[3])); ># 468 "numpy/core/src/multiarray/einsum.c.src" > data_out[4] = (value0 * > (data1[4]) + > (data_out[4])); ># 468 "numpy/core/src/multiarray/einsum.c.src" > data_out[5] = (value0 * > (data1[5]) + > (data_out[5])); ># 468 "numpy/core/src/multiarray/einsum.c.src" > data_out[6] = (value0 * > (data1[6]) + > (data_out[6])); ># 468 "numpy/core/src/multiarray/einsum.c.src" > data_out[7] = (value0 * > (data1[7]) + > (data_out[7])); > > > data1 += 8; > data_out += 8; > } > > > if (count > 0) { > goto finish_after_unrolled_loop; > } >} > >static void >short_sum_of_products_contig_stride0_outcontig_two(int nop, char **dataptr, > npy_intp *(__NPY_UNUSED_TAGGEDstrides) __attribute__ ((__unused__)), npy_intp count) >{ > npy_short *data0 = (npy_short *)dataptr[0]; > npy_short value1 = (*(npy_short *)dataptr[1]); > npy_short *data_out = (npy_short *)dataptr[2]; > > > > > > ; > > > >finish_after_unrolled_loop: > switch (count) { ># 504 "numpy/core/src/multiarray/einsum.c.src" > case 6+1: > data_out[6] = ((data0[6])* > value1 + > (data_out[6])); ># 504 "numpy/core/src/multiarray/einsum.c.src" > case 5+1: > data_out[5] = ((data0[5])* > value1 + > (data_out[5])); ># 504 "numpy/core/src/multiarray/einsum.c.src" > case 4+1: > data_out[4] = ((data0[4])* > value1 + > (data_out[4])); ># 504 "numpy/core/src/multiarray/einsum.c.src" > case 3+1: > data_out[3] = ((data0[3])* > value1 + > (data_out[3])); ># 504 "numpy/core/src/multiarray/einsum.c.src" > case 2+1: > data_out[2] = ((data0[2])* > value1 + > (data_out[2])); ># 504 "numpy/core/src/multiarray/einsum.c.src" > case 1+1: > data_out[1] = ((data0[1])* > value1 + > (data_out[1])); ># 504 "numpy/core/src/multiarray/einsum.c.src" > case 0+1: > data_out[0] = ((data0[0])* > value1 + > (data_out[0])); > > case 0: > return; > } ># 542 "numpy/core/src/multiarray/einsum.c.src" > while (count >= 8) { > count -= 8; ># 554 "numpy/core/src/multiarray/einsum.c.src" > data_out[0] = ((data0[0])* > value1 + > (data_out[0])); ># 554 "numpy/core/src/multiarray/einsum.c.src" > data_out[1] = ((data0[1])* > value1 + > (data_out[1])); ># 554 "numpy/core/src/multiarray/einsum.c.src" > data_out[2] = ((data0[2])* > value1 + > (data_out[2])); ># 554 "numpy/core/src/multiarray/einsum.c.src" > data_out[3] = ((data0[3])* > value1 + > (data_out[3])); ># 554 "numpy/core/src/multiarray/einsum.c.src" > data_out[4] = ((data0[4])* > value1 + > (data_out[4])); ># 554 "numpy/core/src/multiarray/einsum.c.src" > data_out[5] = ((data0[5])* > value1 + > (data_out[5])); ># 554 "numpy/core/src/multiarray/einsum.c.src" > data_out[6] = ((data0[6])* > value1 + > (data_out[6])); ># 554 "numpy/core/src/multiarray/einsum.c.src" > data_out[7] = ((data0[7])* > value1 + > (data_out[7])); > > > data0 += 8; > data_out += 8; > } > > > goto finish_after_unrolled_loop; >} > >static void >short_sum_of_products_contig_contig_outstride0_two(int nop, char **dataptr, > npy_intp *(__NPY_UNUSED_TAGGEDstrides) __attribute__ ((__unused__)), npy_intp count) >{ > npy_short *data0 = (npy_short *)dataptr[0]; > npy_short *data1 = (npy_short *)dataptr[1]; > npy_short accum = 0; > > > > > > > > ; > > > >finish_after_unrolled_loop: > switch (count) { ># 590 "numpy/core/src/multiarray/einsum.c.src" > case 6+1: > accum += (data0[6]) * (data1[6]); ># 590 "numpy/core/src/multiarray/einsum.c.src" > case 5+1: > accum += (data0[5]) * (data1[5]); ># 590 "numpy/core/src/multiarray/einsum.c.src" > case 4+1: > accum += (data0[4]) * (data1[4]); ># 590 "numpy/core/src/multiarray/einsum.c.src" > case 3+1: > accum += (data0[3]) * (data1[3]); ># 590 "numpy/core/src/multiarray/einsum.c.src" > case 2+1: > accum += (data0[2]) * (data1[2]); ># 590 "numpy/core/src/multiarray/einsum.c.src" > case 1+1: > accum += (data0[1]) * (data1[1]); ># 590 "numpy/core/src/multiarray/einsum.c.src" > case 0+1: > accum += (data0[0]) * (data1[0]); > > case 0: > *(npy_short *)dataptr[2] += (accum); > return; > } ># 695 "numpy/core/src/multiarray/einsum.c.src" > while (count >= 8) { > count -= 8; ># 702 "numpy/core/src/multiarray/einsum.c.src" > accum += (data0[0]) * (data1[0]); ># 702 "numpy/core/src/multiarray/einsum.c.src" > accum += (data0[1]) * (data1[1]); ># 702 "numpy/core/src/multiarray/einsum.c.src" > accum += (data0[2]) * (data1[2]); ># 702 "numpy/core/src/multiarray/einsum.c.src" > accum += (data0[3]) * (data1[3]); ># 702 "numpy/core/src/multiarray/einsum.c.src" > accum += (data0[4]) * (data1[4]); ># 702 "numpy/core/src/multiarray/einsum.c.src" > accum += (data0[5]) * (data1[5]); ># 702 "numpy/core/src/multiarray/einsum.c.src" > accum += (data0[6]) * (data1[6]); ># 702 "numpy/core/src/multiarray/einsum.c.src" > accum += (data0[7]) * (data1[7]); > > > data0 += 8; > data1 += 8; > } ># 724 "numpy/core/src/multiarray/einsum.c.src" > goto finish_after_unrolled_loop; >} > >static void >short_sum_of_products_stride0_contig_outstride0_two(int nop, char **dataptr, > npy_intp *(__NPY_UNUSED_TAGGEDstrides) __attribute__ ((__unused__)), npy_intp count) >{ > npy_short value0 = (*(npy_short *)dataptr[0]); > npy_short *data1 = (npy_short *)dataptr[1]; > npy_short accum = 0; > > > > > > ; > > > >finish_after_unrolled_loop: > switch (count) { ># 748 "numpy/core/src/multiarray/einsum.c.src" > case 6+1: > accum += (data1[6]); ># 748 "numpy/core/src/multiarray/einsum.c.src" > case 5+1: > accum += (data1[5]); ># 748 "numpy/core/src/multiarray/einsum.c.src" > case 4+1: > accum += (data1[4]); ># 748 "numpy/core/src/multiarray/einsum.c.src" > case 3+1: > accum += (data1[3]); ># 748 "numpy/core/src/multiarray/einsum.c.src" > case 2+1: > accum += (data1[2]); ># 748 "numpy/core/src/multiarray/einsum.c.src" > case 1+1: > accum += (data1[1]); ># 748 "numpy/core/src/multiarray/einsum.c.src" > case 0+1: > accum += (data1[0]); > > case 0: > *(npy_short *)dataptr[2] += (value0 * accum); > return; > } ># 795 "numpy/core/src/multiarray/einsum.c.src" > while (count >= 8) { > count -= 8; ># 807 "numpy/core/src/multiarray/einsum.c.src" > accum += (data1[0]); ># 807 "numpy/core/src/multiarray/einsum.c.src" > accum += (data1[1]); ># 807 "numpy/core/src/multiarray/einsum.c.src" > accum += (data1[2]); ># 807 "numpy/core/src/multiarray/einsum.c.src" > accum += (data1[3]); ># 807 "numpy/core/src/multiarray/einsum.c.src" > accum += (data1[4]); ># 807 "numpy/core/src/multiarray/einsum.c.src" > accum += (data1[5]); ># 807 "numpy/core/src/multiarray/einsum.c.src" > accum += (data1[6]); ># 807 "numpy/core/src/multiarray/einsum.c.src" > accum += (data1[7]); > > > data1 += 8; > } ># 823 "numpy/core/src/multiarray/einsum.c.src" > goto finish_after_unrolled_loop; >} > >static void >short_sum_of_products_contig_stride0_outstride0_two(int nop, char **dataptr, > npy_intp *(__NPY_UNUSED_TAGGEDstrides) __attribute__ ((__unused__)), npy_intp count) >{ > npy_short *data0 = (npy_short *)dataptr[0]; > npy_short value1 = (*(npy_short *)dataptr[1]); > npy_short accum = 0; > > > > > > ; > > > >finish_after_unrolled_loop: > switch (count) { ># 847 "numpy/core/src/multiarray/einsum.c.src" > case 6+1: > accum += (data0[6]); ># 847 "numpy/core/src/multiarray/einsum.c.src" > case 5+1: > accum += (data0[5]); ># 847 "numpy/core/src/multiarray/einsum.c.src" > case 4+1: > accum += (data0[4]); ># 847 "numpy/core/src/multiarray/einsum.c.src" > case 3+1: > accum += (data0[3]); ># 847 "numpy/core/src/multiarray/einsum.c.src" > case 2+1: > accum += (data0[2]); ># 847 "numpy/core/src/multiarray/einsum.c.src" > case 1+1: > accum += (data0[1]); ># 847 "numpy/core/src/multiarray/einsum.c.src" > case 0+1: > accum += (data0[0]); > > case 0: > *(npy_short *)dataptr[2] += (accum * value1); > return; > } ># 894 "numpy/core/src/multiarray/einsum.c.src" > while (count >= 8) { > count -= 8; ># 906 "numpy/core/src/multiarray/einsum.c.src" > accum += (data0[0]); ># 906 "numpy/core/src/multiarray/einsum.c.src" > accum += (data0[1]); ># 906 "numpy/core/src/multiarray/einsum.c.src" > accum += (data0[2]); ># 906 "numpy/core/src/multiarray/einsum.c.src" > accum += (data0[3]); ># 906 "numpy/core/src/multiarray/einsum.c.src" > accum += (data0[4]); ># 906 "numpy/core/src/multiarray/einsum.c.src" > accum += (data0[5]); ># 906 "numpy/core/src/multiarray/einsum.c.src" > accum += (data0[6]); ># 906 "numpy/core/src/multiarray/einsum.c.src" > accum += (data0[7]); > > > data0 += 8; > } ># 922 "numpy/core/src/multiarray/einsum.c.src" > goto finish_after_unrolled_loop; >} ># 1455 "numpy/core/src/multiarray/einsum.c.src" >static void >short_sum_of_products_outstride0_two(int nop, char **dataptr, > npy_intp *strides, npy_intp count) >{ > > > > npy_short accum = 0; > > > > char *data0 = dataptr[0]; > npy_intp stride0 = strides[0]; > > > char *data1 = dataptr[1]; > npy_intp stride1 = strides[1]; > > > > > > > ; > > > while (count--) { > > > > > > accum += (*(npy_short *)data0) * > (*(npy_short *)data1); > data0 += stride0; > data1 += stride1; ># 1539 "numpy/core/src/multiarray/einsum.c.src" > } ># 1551 "numpy/core/src/multiarray/einsum.c.src" > *((npy_short *)dataptr[2]) = (accum + > (*((npy_short *)dataptr[2]))); > > > > > > >} ># 107 "numpy/core/src/multiarray/einsum.c.src" >static void >short_sum_of_products_three(int nop, char **dataptr, > npy_intp *strides, npy_intp count) >{ > > char *data0 = dataptr[0]; > npy_intp stride0 = strides[0]; > > > char *data1 = dataptr[1]; > npy_intp stride1 = strides[1]; > > > char *data2 = dataptr[2]; > npy_intp stride2 = strides[2]; > > > char *data_out = dataptr[3]; > npy_intp stride_out = strides[3]; > > > ; > > while (count--) { ># 145 "numpy/core/src/multiarray/einsum.c.src" > *(npy_short *)data_out = ((*(npy_short *)data0) * > (*(npy_short *)data1) * > (*(npy_short *)data2) + > (*(npy_short *)data_out)); > data0 += stride0; > data1 += stride1; > data2 += stride2; > data_out += stride_out; ># 201 "numpy/core/src/multiarray/einsum.c.src" > } >} ># 1542 "numpy/core/src/multiarray/einsum.c.src" >static void >short_sum_of_products_contig_three(int nop, char **dataptr, > npy_intp *(__NPY_UNUSED_TAGGEDstrides) __attribute__ ((__unused__)), npy_intp count) >{ > npy_short *data0 = (npy_short *)dataptr[0]; > npy_short *data1 = (npy_short *)dataptr[1]; > npy_short *data2 = (npy_short *)dataptr[2]; > npy_short *data_out = (npy_short *)dataptr[3]; > > > while (count >= 8) { > count -= 8; ># 943 "numpy/core/src/multiarray/einsum.c.src" > data_out[0] = ((data0[0]) * > (data1[0]) * > (data2[0]) + > (data_out[0])); ># 943 "numpy/core/src/multiarray/einsum.c.src" > data_out[1] = ((data0[1]) * > (data1[1]) * > (data2[1]) + > (data_out[1])); ># 943 "numpy/core/src/multiarray/einsum.c.src" > data_out[2] = ((data0[2]) * > (data1[2]) * > (data2[2]) + > (data_out[2])); ># 943 "numpy/core/src/multiarray/einsum.c.src" > data_out[3] = ((data0[3]) * > (data1[3]) * > (data2[3]) + > (data_out[3])); ># 943 "numpy/core/src/multiarray/einsum.c.src" > data_out[4] = ((data0[4]) * > (data1[4]) * > (data2[4]) + > (data_out[4])); ># 943 "numpy/core/src/multiarray/einsum.c.src" > data_out[5] = ((data0[5]) * > (data1[5]) * > (data2[5]) + > (data_out[5])); ># 943 "numpy/core/src/multiarray/einsum.c.src" > data_out[6] = ((data0[6]) * > (data1[6]) * > (data2[6]) + > (data_out[6])); ># 943 "numpy/core/src/multiarray/einsum.c.src" > data_out[7] = ((data0[7]) * > (data1[7]) * > (data2[7]) + > (data_out[7])); > > data0 += 8; > data1 += 8; > data_out += 8; > } ># 958 "numpy/core/src/multiarray/einsum.c.src" > if (count-- == 0) { > return; > } > data_out[0] = ((data0[0]) * > (data1[0]) * > (data2[0]) + > (data_out[0])); ># 958 "numpy/core/src/multiarray/einsum.c.src" > if (count-- == 0) { > return; > } > data_out[1] = ((data0[1]) * > (data1[1]) * > (data2[1]) + > (data_out[1])); ># 958 "numpy/core/src/multiarray/einsum.c.src" > if (count-- == 0) { > return; > } > data_out[2] = ((data0[2]) * > (data1[2]) * > (data2[2]) + > (data_out[2])); ># 958 "numpy/core/src/multiarray/einsum.c.src" > if (count-- == 0) { > return; > } > data_out[3] = ((data0[3]) * > (data1[3]) * > (data2[3]) + > (data_out[3])); ># 958 "numpy/core/src/multiarray/einsum.c.src" > if (count-- == 0) { > return; > } > data_out[4] = ((data0[4]) * > (data1[4]) * > (data2[4]) + > (data_out[4])); ># 958 "numpy/core/src/multiarray/einsum.c.src" > if (count-- == 0) { > return; > } > data_out[5] = ((data0[5]) * > (data1[5]) * > (data2[5]) + > (data_out[5])); ># 958 "numpy/core/src/multiarray/einsum.c.src" > if (count-- == 0) { > return; > } > data_out[6] = ((data0[6]) * > (data1[6]) * > (data2[6]) + > (data_out[6])); ># 958 "numpy/core/src/multiarray/einsum.c.src" > if (count-- == 0) { > return; > } > data_out[7] = ((data0[7]) * > (data1[7]) * > (data2[7]) + > (data_out[7])); > >} ># 1354 "numpy/core/src/multiarray/einsum.c.src" >static void >short_sum_of_products_outstride0_three(int nop, char **dataptr, > npy_intp *strides, npy_intp count) >{ > > > > npy_short accum = 0; > > > > char *data0 = dataptr[0]; > npy_intp stride0 = strides[0]; > > > char *data1 = dataptr[1]; > npy_intp stride1 = strides[1]; > > > char *data2 = dataptr[2]; > npy_intp stride2 = strides[2]; > > > ; > > > while (count--) { ># 1391 "numpy/core/src/multiarray/einsum.c.src" > accum += (*(npy_short *)data0) * > (*(npy_short *)data1) * > (*(npy_short *)data2); > data0 += stride0; > data1 += stride1; > data2 += stride2; ># 1438 "numpy/core/src/multiarray/einsum.c.src" > } ># 1450 "numpy/core/src/multiarray/einsum.c.src" > *((npy_short *)dataptr[3]) = (accum + > (*((npy_short *)dataptr[3]))); > > > > > > >} ># 107 "numpy/core/src/multiarray/einsum.c.src" >static void >short_sum_of_products_any(int nop, char **dataptr, > npy_intp *strides, npy_intp count) >{ ># 128 "numpy/core/src/multiarray/einsum.c.src" > ; > > while (count--) { ># 154 "numpy/core/src/multiarray/einsum.c.src" > npy_short temp = (*(npy_short *)dataptr[0]); > int i; > for (i = 1; i < nop; ++i) { > temp *= (*(npy_short *)dataptr[i]); > } > *(npy_short *)dataptr[nop] = (temp + > (*(npy_short *)dataptr[i])); > for (i = 0; i <= nop; ++i) { > dataptr[i] += strides[i]; > } ># 201 "numpy/core/src/multiarray/einsum.c.src" > } >} ># 1686 "numpy/core/src/multiarray/einsum.c.src" >static void >short_sum_of_products_contig_any(int nop, char **dataptr, > npy_intp *(__NPY_UNUSED_TAGGEDstrides) __attribute__ ((__unused__)), npy_intp count) >{ > ; > > > while (count--) { > > npy_short temp = (*(npy_short *)dataptr[0]); > int i; > for (i = 1; i < nop; ++i) { > temp *= (*(npy_short *)dataptr[i]); > } > *(npy_short *)dataptr[nop] = (temp + > (*(npy_short *)dataptr[i])); > for (i = 0; i <= nop; ++i) { > dataptr[i] += sizeof(npy_short); > } ># 1732 "numpy/core/src/multiarray/einsum.c.src" > } >} ># 2070 "numpy/core/src/multiarray/einsum.c.src" >static void >short_sum_of_products_outstride0_any(int nop, char **dataptr, > npy_intp *strides, npy_intp count) >{ > > > > npy_short accum = 0; ># 2093 "numpy/core/src/multiarray/einsum.c.src" > ; > > > while (count--) { ># 2114 "numpy/core/src/multiarray/einsum.c.src" > npy_short temp = (*(npy_short *)dataptr[0]); > int i; > for (i = 1; i < nop; ++i) { > temp *= (*(npy_short *)dataptr[i]); > } > accum += temp; > for (i = 0; i < nop; ++i) { > dataptr[i] += strides[i]; > } ># 2154 "numpy/core/src/multiarray/einsum.c.src" > } ># 2169 "numpy/core/src/multiarray/einsum.c.src" > *((npy_short *)dataptr[nop]) = (accum + > (*((npy_short *)dataptr[nop]))); > > > >} ># 102 "numpy/core/src/multiarray/einsum.c.src" ># 107 "numpy/core/src/multiarray/einsum.c.src" >static void >int_sum_of_products_one(int nop, char **dataptr, > npy_intp *strides, npy_intp count) >{ > > char *data0 = dataptr[0]; > npy_intp stride0 = strides[0]; ># 124 "numpy/core/src/multiarray/einsum.c.src" > char *data_out = dataptr[1]; > npy_intp stride_out = strides[1]; > > > ; > > while (count--) { > > > *(npy_int *)data_out = ((*(npy_int *)data0) + > (*(npy_int *)data_out)); > data0 += stride0; > data_out += stride_out; ># 201 "numpy/core/src/multiarray/einsum.c.src" > } >} > > > >static void >int_sum_of_products_contig_one(int nop, char **dataptr, > npy_intp *(__NPY_UNUSED_TAGGEDstrides) __attribute__ ((__unused__)), npy_intp count) >{ > npy_int *data0 = (npy_int *)dataptr[0]; > npy_int *data_out = (npy_int *)dataptr[1]; > > ; > > > >finish_after_unrolled_loop: > switch (count) { ># 222 "numpy/core/src/multiarray/einsum.c.src" > case 6+1: > > data_out[6] = ((data0[6]) + > (data_out[6])); ># 222 "numpy/core/src/multiarray/einsum.c.src" > case 5+1: > > data_out[5] = ((data0[5]) + > (data_out[5])); ># 222 "numpy/core/src/multiarray/einsum.c.src" > case 4+1: > > data_out[4] = ((data0[4]) + > (data_out[4])); ># 222 "numpy/core/src/multiarray/einsum.c.src" > case 3+1: > > data_out[3] = ((data0[3]) + > (data_out[3])); ># 222 "numpy/core/src/multiarray/einsum.c.src" > case 2+1: > > data_out[2] = ((data0[2]) + > (data_out[2])); ># 222 "numpy/core/src/multiarray/einsum.c.src" > case 1+1: > > data_out[1] = ((data0[1]) + > (data_out[1])); ># 222 "numpy/core/src/multiarray/einsum.c.src" > case 0+1: > > data_out[0] = ((data0[0]) + > (data_out[0])); ># 235 "numpy/core/src/multiarray/einsum.c.src" > case 0: > return; > } > > > while (count >= 8) { > count -= 8; ># 246 "numpy/core/src/multiarray/einsum.c.src" > > data_out[0] = ((data0[0]) + > (data_out[0])); ># 246 "numpy/core/src/multiarray/einsum.c.src" > > data_out[1] = ((data0[1]) + > (data_out[1])); ># 246 "numpy/core/src/multiarray/einsum.c.src" > > data_out[2] = ((data0[2]) + > (data_out[2])); ># 246 "numpy/core/src/multiarray/einsum.c.src" > > data_out[3] = ((data0[3]) + > (data_out[3])); ># 246 "numpy/core/src/multiarray/einsum.c.src" > > data_out[4] = ((data0[4]) + > (data_out[4])); ># 246 "numpy/core/src/multiarray/einsum.c.src" > > data_out[5] = ((data0[5]) + > (data_out[5])); ># 246 "numpy/core/src/multiarray/einsum.c.src" > > data_out[6] = ((data0[6]) + > (data_out[6])); ># 246 "numpy/core/src/multiarray/einsum.c.src" > > data_out[7] = ((data0[7]) + > (data_out[7])); ># 258 "numpy/core/src/multiarray/einsum.c.src" > data0 += 8; > data_out += 8; > } > > > goto finish_after_unrolled_loop; >} ># 1568 "numpy/core/src/multiarray/einsum.c.src" >static void >int_sum_of_products_contig_outstride0_one(int nop, char **dataptr, > npy_intp *strides, npy_intp count) >{ > > > > > npy_int accum = 0; > npy_int *data0 = (npy_int *)dataptr[0]; ># 1587 "numpy/core/src/multiarray/einsum.c.src" > ; > > > >finish_after_unrolled_loop: > switch (count) { ># 1051 "numpy/core/src/multiarray/einsum.c.src" > case 6+1: > > accum += (data0[6]); ># 1051 "numpy/core/src/multiarray/einsum.c.src" > case 5+1: > > accum += (data0[5]); ># 1051 "numpy/core/src/multiarray/einsum.c.src" > case 4+1: > > accum += (data0[4]); ># 1051 "numpy/core/src/multiarray/einsum.c.src" > case 3+1: > > accum += (data0[3]); ># 1051 "numpy/core/src/multiarray/einsum.c.src" > case 2+1: > > accum += (data0[2]); ># 1051 "numpy/core/src/multiarray/einsum.c.src" > case 1+1: > > accum += (data0[1]); ># 1051 "numpy/core/src/multiarray/einsum.c.src" > case 0+1: > > accum += (data0[0]); > > > > > > case 0: > > > > > *((npy_int *)dataptr[1]) = (accum + > (*((npy_int *)dataptr[1]))); > > return; > } ># 1157 "numpy/core/src/multiarray/einsum.c.src" > while (count >= 8) { > count -= 8; ># 1164 "numpy/core/src/multiarray/einsum.c.src" > > accum += (data0[0]); ># 1164 "numpy/core/src/multiarray/einsum.c.src" > > accum += (data0[1]); ># 1164 "numpy/core/src/multiarray/einsum.c.src" > > accum += (data0[2]); ># 1164 "numpy/core/src/multiarray/einsum.c.src" > > accum += (data0[3]); ># 1164 "numpy/core/src/multiarray/einsum.c.src" > > accum += (data0[4]); ># 1164 "numpy/core/src/multiarray/einsum.c.src" > > accum += (data0[5]); ># 1164 "numpy/core/src/multiarray/einsum.c.src" > > accum += (data0[6]); ># 1164 "numpy/core/src/multiarray/einsum.c.src" > > accum += (data0[7]); ># 1174 "numpy/core/src/multiarray/einsum.c.src" > data0 += 8; > > > > } ># 1195 "numpy/core/src/multiarray/einsum.c.src" > goto finish_after_unrolled_loop; >} > > > >static void >int_sum_of_products_outstride0_one(int nop, char **dataptr, > npy_intp *strides, npy_intp count) >{ > > > > npy_int accum = 0; > > > > char *data0 = dataptr[0]; > npy_intp stride0 = strides[0]; ># 1223 "numpy/core/src/multiarray/einsum.c.src" > ; > > > while (count--) { > > > accum += (*(npy_int *)data0); > data0 += stride0; ># 1284 "numpy/core/src/multiarray/einsum.c.src" > } ># 1296 "numpy/core/src/multiarray/einsum.c.src" > *((npy_int *)dataptr[1]) = (accum + > (*((npy_int *)dataptr[1]))); > > > > > > >} ># 107 "numpy/core/src/multiarray/einsum.c.src" >static void >int_sum_of_products_two(int nop, char **dataptr, > npy_intp *strides, npy_intp count) >{ > > char *data0 = dataptr[0]; > npy_intp stride0 = strides[0]; > > > char *data1 = dataptr[1]; > npy_intp stride1 = strides[1]; > > > > > > > char *data_out = dataptr[2]; > npy_intp stride_out = strides[2]; > > > ; > > while (count--) { > > > > > > > > *(npy_int *)data_out = ((*(npy_int *)data0) * > (*(npy_int *)data1) + > (*(npy_int *)data_out)); > data0 += stride0; > data1 += stride1; > data_out += stride_out; ># 201 "numpy/core/src/multiarray/einsum.c.src" > } >} ># 439 "numpy/core/src/multiarray/einsum.c.src" >static void >int_sum_of_products_contig_two(int nop, char **dataptr, > npy_intp *(__NPY_UNUSED_TAGGEDstrides) __attribute__ ((__unused__)), npy_intp count) >{ > npy_int *data0 = (npy_int *)dataptr[0]; > npy_int *data1 = (npy_int *)dataptr[1]; > npy_int *data_out = (npy_int *)dataptr[2]; > > > > > > ; > > > >finish_after_unrolled_loop: > switch (count) { ># 289 "numpy/core/src/multiarray/einsum.c.src" > case 6+1: > data_out[6] = ((data0[6]) * > (data1[6]) + > (data_out[6])); ># 289 "numpy/core/src/multiarray/einsum.c.src" > case 5+1: > data_out[5] = ((data0[5]) * > (data1[5]) + > (data_out[5])); ># 289 "numpy/core/src/multiarray/einsum.c.src" > case 4+1: > data_out[4] = ((data0[4]) * > (data1[4]) + > (data_out[4])); ># 289 "numpy/core/src/multiarray/einsum.c.src" > case 3+1: > data_out[3] = ((data0[3]) * > (data1[3]) + > (data_out[3])); ># 289 "numpy/core/src/multiarray/einsum.c.src" > case 2+1: > data_out[2] = ((data0[2]) * > (data1[2]) + > (data_out[2])); ># 289 "numpy/core/src/multiarray/einsum.c.src" > case 1+1: > data_out[1] = ((data0[1]) * > (data1[1]) + > (data_out[1])); ># 289 "numpy/core/src/multiarray/einsum.c.src" > case 0+1: > data_out[0] = ((data0[0]) * > (data1[0]) + > (data_out[0])); > > case 0: > return; > } ># 327 "numpy/core/src/multiarray/einsum.c.src" > while (count >= 8) { > count -= 8; ># 339 "numpy/core/src/multiarray/einsum.c.src" > data_out[0] = ((data0[0]) * > (data1[0]) + > (data_out[0])); ># 339 "numpy/core/src/multiarray/einsum.c.src" > data_out[1] = ((data0[1]) * > (data1[1]) + > (data_out[1])); ># 339 "numpy/core/src/multiarray/einsum.c.src" > data_out[2] = ((data0[2]) * > (data1[2]) + > (data_out[2])); ># 339 "numpy/core/src/multiarray/einsum.c.src" > data_out[3] = ((data0[3]) * > (data1[3]) + > (data_out[3])); ># 339 "numpy/core/src/multiarray/einsum.c.src" > data_out[4] = ((data0[4]) * > (data1[4]) + > (data_out[4])); ># 339 "numpy/core/src/multiarray/einsum.c.src" > data_out[5] = ((data0[5]) * > (data1[5]) + > (data_out[5])); ># 339 "numpy/core/src/multiarray/einsum.c.src" > data_out[6] = ((data0[6]) * > (data1[6]) + > (data_out[6])); ># 339 "numpy/core/src/multiarray/einsum.c.src" > data_out[7] = ((data0[7]) * > (data1[7]) + > (data_out[7])); > > > data0 += 8; > data1 += 8; > data_out += 8; > } > > > goto finish_after_unrolled_loop; >} > > >static void >int_sum_of_products_stride0_contig_outcontig_two(int nop, char **dataptr, > npy_intp *(__NPY_UNUSED_TAGGEDstrides) __attribute__ ((__unused__)), npy_intp count) >{ > npy_int value0 = (*(npy_int *)dataptr[0]); > npy_int *data1 = (npy_int *)dataptr[1]; > npy_int *data_out = (npy_int *)dataptr[2]; > > > > > > > > ; > > > >finish_after_unrolled_loop: > switch (count) { ># 377 "numpy/core/src/multiarray/einsum.c.src" > case 6+1: > data_out[6] = (value0 * > (data1[6]) + > (data_out[6])); ># 377 "numpy/core/src/multiarray/einsum.c.src" > case 5+1: > data_out[5] = (value0 * > (data1[5]) + > (data_out[5])); ># 377 "numpy/core/src/multiarray/einsum.c.src" > case 4+1: > data_out[4] = (value0 * > (data1[4]) + > (data_out[4])); ># 377 "numpy/core/src/multiarray/einsum.c.src" > case 3+1: > data_out[3] = (value0 * > (data1[3]) + > (data_out[3])); ># 377 "numpy/core/src/multiarray/einsum.c.src" > case 2+1: > data_out[2] = (value0 * > (data1[2]) + > (data_out[2])); ># 377 "numpy/core/src/multiarray/einsum.c.src" > case 1+1: > data_out[1] = (value0 * > (data1[1]) + > (data_out[1])); ># 377 "numpy/core/src/multiarray/einsum.c.src" > case 0+1: > data_out[0] = (value0 * > (data1[0]) + > (data_out[0])); > > case 0: > return; > } ># 461 "numpy/core/src/multiarray/einsum.c.src" > while (count >= 8) { > count -= 8; ># 468 "numpy/core/src/multiarray/einsum.c.src" > data_out[0] = (value0 * > (data1[0]) + > (data_out[0])); ># 468 "numpy/core/src/multiarray/einsum.c.src" > data_out[1] = (value0 * > (data1[1]) + > (data_out[1])); ># 468 "numpy/core/src/multiarray/einsum.c.src" > data_out[2] = (value0 * > (data1[2]) + > (data_out[2])); ># 468 "numpy/core/src/multiarray/einsum.c.src" > data_out[3] = (value0 * > (data1[3]) + > (data_out[3])); ># 468 "numpy/core/src/multiarray/einsum.c.src" > data_out[4] = (value0 * > (data1[4]) + > (data_out[4])); ># 468 "numpy/core/src/multiarray/einsum.c.src" > data_out[5] = (value0 * > (data1[5]) + > (data_out[5])); ># 468 "numpy/core/src/multiarray/einsum.c.src" > data_out[6] = (value0 * > (data1[6]) + > (data_out[6])); ># 468 "numpy/core/src/multiarray/einsum.c.src" > data_out[7] = (value0 * > (data1[7]) + > (data_out[7])); > > > data1 += 8; > data_out += 8; > } > > > if (count > 0) { > goto finish_after_unrolled_loop; > } >} > >static void >int_sum_of_products_contig_stride0_outcontig_two(int nop, char **dataptr, > npy_intp *(__NPY_UNUSED_TAGGEDstrides) __attribute__ ((__unused__)), npy_intp count) >{ > npy_int *data0 = (npy_int *)dataptr[0]; > npy_int value1 = (*(npy_int *)dataptr[1]); > npy_int *data_out = (npy_int *)dataptr[2]; > > > > > > ; > > > >finish_after_unrolled_loop: > switch (count) { ># 504 "numpy/core/src/multiarray/einsum.c.src" > case 6+1: > data_out[6] = ((data0[6])* > value1 + > (data_out[6])); ># 504 "numpy/core/src/multiarray/einsum.c.src" > case 5+1: > data_out[5] = ((data0[5])* > value1 + > (data_out[5])); ># 504 "numpy/core/src/multiarray/einsum.c.src" > case 4+1: > data_out[4] = ((data0[4])* > value1 + > (data_out[4])); ># 504 "numpy/core/src/multiarray/einsum.c.src" > case 3+1: > data_out[3] = ((data0[3])* > value1 + > (data_out[3])); ># 504 "numpy/core/src/multiarray/einsum.c.src" > case 2+1: > data_out[2] = ((data0[2])* > value1 + > (data_out[2])); ># 504 "numpy/core/src/multiarray/einsum.c.src" > case 1+1: > data_out[1] = ((data0[1])* > value1 + > (data_out[1])); ># 504 "numpy/core/src/multiarray/einsum.c.src" > case 0+1: > data_out[0] = ((data0[0])* > value1 + > (data_out[0])); > > case 0: > return; > } ># 542 "numpy/core/src/multiarray/einsum.c.src" > while (count >= 8) { > count -= 8; ># 554 "numpy/core/src/multiarray/einsum.c.src" > data_out[0] = ((data0[0])* > value1 + > (data_out[0])); ># 554 "numpy/core/src/multiarray/einsum.c.src" > data_out[1] = ((data0[1])* > value1 + > (data_out[1])); ># 554 "numpy/core/src/multiarray/einsum.c.src" > data_out[2] = ((data0[2])* > value1 + > (data_out[2])); ># 554 "numpy/core/src/multiarray/einsum.c.src" > data_out[3] = ((data0[3])* > value1 + > (data_out[3])); ># 554 "numpy/core/src/multiarray/einsum.c.src" > data_out[4] = ((data0[4])* > value1 + > (data_out[4])); ># 554 "numpy/core/src/multiarray/einsum.c.src" > data_out[5] = ((data0[5])* > value1 + > (data_out[5])); ># 554 "numpy/core/src/multiarray/einsum.c.src" > data_out[6] = ((data0[6])* > value1 + > (data_out[6])); ># 554 "numpy/core/src/multiarray/einsum.c.src" > data_out[7] = ((data0[7])* > value1 + > (data_out[7])); > > > data0 += 8; > data_out += 8; > } > > > goto finish_after_unrolled_loop; >} > >static void >int_sum_of_products_contig_contig_outstride0_two(int nop, char **dataptr, > npy_intp *(__NPY_UNUSED_TAGGEDstrides) __attribute__ ((__unused__)), npy_intp count) >{ > npy_int *data0 = (npy_int *)dataptr[0]; > npy_int *data1 = (npy_int *)dataptr[1]; > npy_int accum = 0; > > > > > > > > ; > > > >finish_after_unrolled_loop: > switch (count) { ># 590 "numpy/core/src/multiarray/einsum.c.src" > case 6+1: > accum += (data0[6]) * (data1[6]); ># 590 "numpy/core/src/multiarray/einsum.c.src" > case 5+1: > accum += (data0[5]) * (data1[5]); ># 590 "numpy/core/src/multiarray/einsum.c.src" > case 4+1: > accum += (data0[4]) * (data1[4]); ># 590 "numpy/core/src/multiarray/einsum.c.src" > case 3+1: > accum += (data0[3]) * (data1[3]); ># 590 "numpy/core/src/multiarray/einsum.c.src" > case 2+1: > accum += (data0[2]) * (data1[2]); ># 590 "numpy/core/src/multiarray/einsum.c.src" > case 1+1: > accum += (data0[1]) * (data1[1]); ># 590 "numpy/core/src/multiarray/einsum.c.src" > case 0+1: > accum += (data0[0]) * (data1[0]); > > case 0: > *(npy_int *)dataptr[2] += (accum); > return; > } ># 695 "numpy/core/src/multiarray/einsum.c.src" > while (count >= 8) { > count -= 8; ># 702 "numpy/core/src/multiarray/einsum.c.src" > accum += (data0[0]) * (data1[0]); ># 702 "numpy/core/src/multiarray/einsum.c.src" > accum += (data0[1]) * (data1[1]); ># 702 "numpy/core/src/multiarray/einsum.c.src" > accum += (data0[2]) * (data1[2]); ># 702 "numpy/core/src/multiarray/einsum.c.src" > accum += (data0[3]) * (data1[3]); ># 702 "numpy/core/src/multiarray/einsum.c.src" > accum += (data0[4]) * (data1[4]); ># 702 "numpy/core/src/multiarray/einsum.c.src" > accum += (data0[5]) * (data1[5]); ># 702 "numpy/core/src/multiarray/einsum.c.src" > accum += (data0[6]) * (data1[6]); ># 702 "numpy/core/src/multiarray/einsum.c.src" > accum += (data0[7]) * (data1[7]); > > > data0 += 8; > data1 += 8; > } ># 724 "numpy/core/src/multiarray/einsum.c.src" > goto finish_after_unrolled_loop; >} > >static void >int_sum_of_products_stride0_contig_outstride0_two(int nop, char **dataptr, > npy_intp *(__NPY_UNUSED_TAGGEDstrides) __attribute__ ((__unused__)), npy_intp count) >{ > npy_int value0 = (*(npy_int *)dataptr[0]); > npy_int *data1 = (npy_int *)dataptr[1]; > npy_int accum = 0; > > > > > > ; > > > >finish_after_unrolled_loop: > switch (count) { ># 748 "numpy/core/src/multiarray/einsum.c.src" > case 6+1: > accum += (data1[6]); ># 748 "numpy/core/src/multiarray/einsum.c.src" > case 5+1: > accum += (data1[5]); ># 748 "numpy/core/src/multiarray/einsum.c.src" > case 4+1: > accum += (data1[4]); ># 748 "numpy/core/src/multiarray/einsum.c.src" > case 3+1: > accum += (data1[3]); ># 748 "numpy/core/src/multiarray/einsum.c.src" > case 2+1: > accum += (data1[2]); ># 748 "numpy/core/src/multiarray/einsum.c.src" > case 1+1: > accum += (data1[1]); ># 748 "numpy/core/src/multiarray/einsum.c.src" > case 0+1: > accum += (data1[0]); > > case 0: > *(npy_int *)dataptr[2] += (value0 * accum); > return; > } ># 795 "numpy/core/src/multiarray/einsum.c.src" > while (count >= 8) { > count -= 8; ># 807 "numpy/core/src/multiarray/einsum.c.src" > accum += (data1[0]); ># 807 "numpy/core/src/multiarray/einsum.c.src" > accum += (data1[1]); ># 807 "numpy/core/src/multiarray/einsum.c.src" > accum += (data1[2]); ># 807 "numpy/core/src/multiarray/einsum.c.src" > accum += (data1[3]); ># 807 "numpy/core/src/multiarray/einsum.c.src" > accum += (data1[4]); ># 807 "numpy/core/src/multiarray/einsum.c.src" > accum += (data1[5]); ># 807 "numpy/core/src/multiarray/einsum.c.src" > accum += (data1[6]); ># 807 "numpy/core/src/multiarray/einsum.c.src" > accum += (data1[7]); > > > data1 += 8; > } ># 823 "numpy/core/src/multiarray/einsum.c.src" > goto finish_after_unrolled_loop; >} > >static void >int_sum_of_products_contig_stride0_outstride0_two(int nop, char **dataptr, > npy_intp *(__NPY_UNUSED_TAGGEDstrides) __attribute__ ((__unused__)), npy_intp count) >{ > npy_int *data0 = (npy_int *)dataptr[0]; > npy_int value1 = (*(npy_int *)dataptr[1]); > npy_int accum = 0; > > > > > > ; > > > >finish_after_unrolled_loop: > switch (count) { ># 847 "numpy/core/src/multiarray/einsum.c.src" > case 6+1: > accum += (data0[6]); ># 847 "numpy/core/src/multiarray/einsum.c.src" > case 5+1: > accum += (data0[5]); ># 847 "numpy/core/src/multiarray/einsum.c.src" > case 4+1: > accum += (data0[4]); ># 847 "numpy/core/src/multiarray/einsum.c.src" > case 3+1: > accum += (data0[3]); ># 847 "numpy/core/src/multiarray/einsum.c.src" > case 2+1: > accum += (data0[2]); ># 847 "numpy/core/src/multiarray/einsum.c.src" > case 1+1: > accum += (data0[1]); ># 847 "numpy/core/src/multiarray/einsum.c.src" > case 0+1: > accum += (data0[0]); > > case 0: > *(npy_int *)dataptr[2] += (accum * value1); > return; > } ># 894 "numpy/core/src/multiarray/einsum.c.src" > while (count >= 8) { > count -= 8; ># 906 "numpy/core/src/multiarray/einsum.c.src" > accum += (data0[0]); ># 906 "numpy/core/src/multiarray/einsum.c.src" > accum += (data0[1]); ># 906 "numpy/core/src/multiarray/einsum.c.src" > accum += (data0[2]); ># 906 "numpy/core/src/multiarray/einsum.c.src" > accum += (data0[3]); ># 906 "numpy/core/src/multiarray/einsum.c.src" > accum += (data0[4]); ># 906 "numpy/core/src/multiarray/einsum.c.src" > accum += (data0[5]); ># 906 "numpy/core/src/multiarray/einsum.c.src" > accum += (data0[6]); ># 906 "numpy/core/src/multiarray/einsum.c.src" > accum += (data0[7]); > > > data0 += 8; > } ># 922 "numpy/core/src/multiarray/einsum.c.src" > goto finish_after_unrolled_loop; >} ># 1455 "numpy/core/src/multiarray/einsum.c.src" >static void >int_sum_of_products_outstride0_two(int nop, char **dataptr, > npy_intp *strides, npy_intp count) >{ > > > > npy_int accum = 0; > > > > char *data0 = dataptr[0]; > npy_intp stride0 = strides[0]; > > > char *data1 = dataptr[1]; > npy_intp stride1 = strides[1]; > > > > > > > ; > > > while (count--) { > > > > > > accum += (*(npy_int *)data0) * > (*(npy_int *)data1); > data0 += stride0; > data1 += stride1; ># 1539 "numpy/core/src/multiarray/einsum.c.src" > } ># 1551 "numpy/core/src/multiarray/einsum.c.src" > *((npy_int *)dataptr[2]) = (accum + > (*((npy_int *)dataptr[2]))); > > > > > > >} ># 107 "numpy/core/src/multiarray/einsum.c.src" >static void >int_sum_of_products_three(int nop, char **dataptr, > npy_intp *strides, npy_intp count) >{ > > char *data0 = dataptr[0]; > npy_intp stride0 = strides[0]; > > > char *data1 = dataptr[1]; > npy_intp stride1 = strides[1]; > > > char *data2 = dataptr[2]; > npy_intp stride2 = strides[2]; > > > char *data_out = dataptr[3]; > npy_intp stride_out = strides[3]; > > > ; > > while (count--) { ># 145 "numpy/core/src/multiarray/einsum.c.src" > *(npy_int *)data_out = ((*(npy_int *)data0) * > (*(npy_int *)data1) * > (*(npy_int *)data2) + > (*(npy_int *)data_out)); > data0 += stride0; > data1 += stride1; > data2 += stride2; > data_out += stride_out; ># 201 "numpy/core/src/multiarray/einsum.c.src" > } >} ># 1542 "numpy/core/src/multiarray/einsum.c.src" >static void >int_sum_of_products_contig_three(int nop, char **dataptr, > npy_intp *(__NPY_UNUSED_TAGGEDstrides) __attribute__ ((__unused__)), npy_intp count) >{ > npy_int *data0 = (npy_int *)dataptr[0]; > npy_int *data1 = (npy_int *)dataptr[1]; > npy_int *data2 = (npy_int *)dataptr[2]; > npy_int *data_out = (npy_int *)dataptr[3]; > > > while (count >= 8) { > count -= 8; ># 943 "numpy/core/src/multiarray/einsum.c.src" > data_out[0] = ((data0[0]) * > (data1[0]) * > (data2[0]) + > (data_out[0])); ># 943 "numpy/core/src/multiarray/einsum.c.src" > data_out[1] = ((data0[1]) * > (data1[1]) * > (data2[1]) + > (data_out[1])); ># 943 "numpy/core/src/multiarray/einsum.c.src" > data_out[2] = ((data0[2]) * > (data1[2]) * > (data2[2]) + > (data_out[2])); ># 943 "numpy/core/src/multiarray/einsum.c.src" > data_out[3] = ((data0[3]) * > (data1[3]) * > (data2[3]) + > (data_out[3])); ># 943 "numpy/core/src/multiarray/einsum.c.src" > data_out[4] = ((data0[4]) * > (data1[4]) * > (data2[4]) + > (data_out[4])); ># 943 "numpy/core/src/multiarray/einsum.c.src" > data_out[5] = ((data0[5]) * > (data1[5]) * > (data2[5]) + > (data_out[5])); ># 943 "numpy/core/src/multiarray/einsum.c.src" > data_out[6] = ((data0[6]) * > (data1[6]) * > (data2[6]) + > (data_out[6])); ># 943 "numpy/core/src/multiarray/einsum.c.src" > data_out[7] = ((data0[7]) * > (data1[7]) * > (data2[7]) + > (data_out[7])); > > data0 += 8; > data1 += 8; > data_out += 8; > } ># 958 "numpy/core/src/multiarray/einsum.c.src" > if (count-- == 0) { > return; > } > data_out[0] = ((data0[0]) * > (data1[0]) * > (data2[0]) + > (data_out[0])); ># 958 "numpy/core/src/multiarray/einsum.c.src" > if (count-- == 0) { > return; > } > data_out[1] = ((data0[1]) * > (data1[1]) * > (data2[1]) + > (data_out[1])); ># 958 "numpy/core/src/multiarray/einsum.c.src" > if (count-- == 0) { > return; > } > data_out[2] = ((data0[2]) * > (data1[2]) * > (data2[2]) + > (data_out[2])); ># 958 "numpy/core/src/multiarray/einsum.c.src" > if (count-- == 0) { > return; > } > data_out[3] = ((data0[3]) * > (data1[3]) * > (data2[3]) + > (data_out[3])); ># 958 "numpy/core/src/multiarray/einsum.c.src" > if (count-- == 0) { > return; > } > data_out[4] = ((data0[4]) * > (data1[4]) * > (data2[4]) + > (data_out[4])); ># 958 "numpy/core/src/multiarray/einsum.c.src" > if (count-- == 0) { > return; > } > data_out[5] = ((data0[5]) * > (data1[5]) * > (data2[5]) + > (data_out[5])); ># 958 "numpy/core/src/multiarray/einsum.c.src" > if (count-- == 0) { > return; > } > data_out[6] = ((data0[6]) * > (data1[6]) * > (data2[6]) + > (data_out[6])); ># 958 "numpy/core/src/multiarray/einsum.c.src" > if (count-- == 0) { > return; > } > data_out[7] = ((data0[7]) * > (data1[7]) * > (data2[7]) + > (data_out[7])); > >} ># 1354 "numpy/core/src/multiarray/einsum.c.src" >static void >int_sum_of_products_outstride0_three(int nop, char **dataptr, > npy_intp *strides, npy_intp count) >{ > > > > npy_int accum = 0; > > > > char *data0 = dataptr[0]; > npy_intp stride0 = strides[0]; > > > char *data1 = dataptr[1]; > npy_intp stride1 = strides[1]; > > > char *data2 = dataptr[2]; > npy_intp stride2 = strides[2]; > > > ; > > > while (count--) { ># 1391 "numpy/core/src/multiarray/einsum.c.src" > accum += (*(npy_int *)data0) * > (*(npy_int *)data1) * > (*(npy_int *)data2); > data0 += stride0; > data1 += stride1; > data2 += stride2; ># 1438 "numpy/core/src/multiarray/einsum.c.src" > } ># 1450 "numpy/core/src/multiarray/einsum.c.src" > *((npy_int *)dataptr[3]) = (accum + > (*((npy_int *)dataptr[3]))); > > > > > > >} ># 107 "numpy/core/src/multiarray/einsum.c.src" >static void >int_sum_of_products_any(int nop, char **dataptr, > npy_intp *strides, npy_intp count) >{ ># 128 "numpy/core/src/multiarray/einsum.c.src" > ; > > while (count--) { ># 154 "numpy/core/src/multiarray/einsum.c.src" > npy_int temp = (*(npy_int *)dataptr[0]); > int i; > for (i = 1; i < nop; ++i) { > temp *= (*(npy_int *)dataptr[i]); > } > *(npy_int *)dataptr[nop] = (temp + > (*(npy_int *)dataptr[i])); > for (i = 0; i <= nop; ++i) { > dataptr[i] += strides[i]; > } ># 201 "numpy/core/src/multiarray/einsum.c.src" > } >} ># 1686 "numpy/core/src/multiarray/einsum.c.src" >static void >int_sum_of_products_contig_any(int nop, char **dataptr, > npy_intp *(__NPY_UNUSED_TAGGEDstrides) __attribute__ ((__unused__)), npy_intp count) >{ > ; > > > while (count--) { > > npy_int temp = (*(npy_int *)dataptr[0]); > int i; > for (i = 1; i < nop; ++i) { > temp *= (*(npy_int *)dataptr[i]); > } > *(npy_int *)dataptr[nop] = (temp + > (*(npy_int *)dataptr[i])); > for (i = 0; i <= nop; ++i) { > dataptr[i] += sizeof(npy_int); > } ># 1732 "numpy/core/src/multiarray/einsum.c.src" > } >} ># 2070 "numpy/core/src/multiarray/einsum.c.src" >static void >int_sum_of_products_outstride0_any(int nop, char **dataptr, > npy_intp *strides, npy_intp count) >{ > > > > npy_int accum = 0; ># 2093 "numpy/core/src/multiarray/einsum.c.src" > ; > > > while (count--) { ># 2114 "numpy/core/src/multiarray/einsum.c.src" > npy_int temp = (*(npy_int *)dataptr[0]); > int i; > for (i = 1; i < nop; ++i) { > temp *= (*(npy_int *)dataptr[i]); > } > accum += temp; > for (i = 0; i < nop; ++i) { > dataptr[i] += strides[i]; > } ># 2154 "numpy/core/src/multiarray/einsum.c.src" > } ># 2169 "numpy/core/src/multiarray/einsum.c.src" > *((npy_int *)dataptr[nop]) = (accum + > (*((npy_int *)dataptr[nop]))); > > > >} ># 102 "numpy/core/src/multiarray/einsum.c.src" ># 107 "numpy/core/src/multiarray/einsum.c.src" >static void >long_sum_of_products_one(int nop, char **dataptr, > npy_intp *strides, npy_intp count) >{ > > char *data0 = dataptr[0]; > npy_intp stride0 = strides[0]; ># 124 "numpy/core/src/multiarray/einsum.c.src" > char *data_out = dataptr[1]; > npy_intp stride_out = strides[1]; > > > ; > > while (count--) { > > > *(npy_long *)data_out = ((*(npy_long *)data0) + > (*(npy_long *)data_out)); > data0 += stride0; > data_out += stride_out; ># 201 "numpy/core/src/multiarray/einsum.c.src" > } >} > > > >static void >long_sum_of_products_contig_one(int nop, char **dataptr, > npy_intp *(__NPY_UNUSED_TAGGEDstrides) __attribute__ ((__unused__)), npy_intp count) >{ > npy_long *data0 = (npy_long *)dataptr[0]; > npy_long *data_out = (npy_long *)dataptr[1]; > > ; > > > >finish_after_unrolled_loop: > switch (count) { ># 222 "numpy/core/src/multiarray/einsum.c.src" > case 6+1: > > data_out[6] = ((data0[6]) + > (data_out[6])); ># 222 "numpy/core/src/multiarray/einsum.c.src" > case 5+1: > > data_out[5] = ((data0[5]) + > (data_out[5])); ># 222 "numpy/core/src/multiarray/einsum.c.src" > case 4+1: > > data_out[4] = ((data0[4]) + > (data_out[4])); ># 222 "numpy/core/src/multiarray/einsum.c.src" > case 3+1: > > data_out[3] = ((data0[3]) + > (data_out[3])); ># 222 "numpy/core/src/multiarray/einsum.c.src" > case 2+1: > > data_out[2] = ((data0[2]) + > (data_out[2])); ># 222 "numpy/core/src/multiarray/einsum.c.src" > case 1+1: > > data_out[1] = ((data0[1]) + > (data_out[1])); ># 222 "numpy/core/src/multiarray/einsum.c.src" > case 0+1: > > data_out[0] = ((data0[0]) + > (data_out[0])); ># 235 "numpy/core/src/multiarray/einsum.c.src" > case 0: > return; > } > > > while (count >= 8) { > count -= 8; ># 246 "numpy/core/src/multiarray/einsum.c.src" > > data_out[0] = ((data0[0]) + > (data_out[0])); ># 246 "numpy/core/src/multiarray/einsum.c.src" > > data_out[1] = ((data0[1]) + > (data_out[1])); ># 246 "numpy/core/src/multiarray/einsum.c.src" > > data_out[2] = ((data0[2]) + > (data_out[2])); ># 246 "numpy/core/src/multiarray/einsum.c.src" > > data_out[3] = ((data0[3]) + > (data_out[3])); ># 246 "numpy/core/src/multiarray/einsum.c.src" > > data_out[4] = ((data0[4]) + > (data_out[4])); ># 246 "numpy/core/src/multiarray/einsum.c.src" > > data_out[5] = ((data0[5]) + > (data_out[5])); ># 246 "numpy/core/src/multiarray/einsum.c.src" > > data_out[6] = ((data0[6]) + > (data_out[6])); ># 246 "numpy/core/src/multiarray/einsum.c.src" > > data_out[7] = ((data0[7]) + > (data_out[7])); ># 258 "numpy/core/src/multiarray/einsum.c.src" > data0 += 8; > data_out += 8; > } > > > goto finish_after_unrolled_loop; >} ># 1568 "numpy/core/src/multiarray/einsum.c.src" >static void >long_sum_of_products_contig_outstride0_one(int nop, char **dataptr, > npy_intp *strides, npy_intp count) >{ > > > > > npy_long accum = 0; > npy_long *data0 = (npy_long *)dataptr[0]; ># 1587 "numpy/core/src/multiarray/einsum.c.src" > ; > > > >finish_after_unrolled_loop: > switch (count) { ># 1051 "numpy/core/src/multiarray/einsum.c.src" > case 6+1: > > accum += (data0[6]); ># 1051 "numpy/core/src/multiarray/einsum.c.src" > case 5+1: > > accum += (data0[5]); ># 1051 "numpy/core/src/multiarray/einsum.c.src" > case 4+1: > > accum += (data0[4]); ># 1051 "numpy/core/src/multiarray/einsum.c.src" > case 3+1: > > accum += (data0[3]); ># 1051 "numpy/core/src/multiarray/einsum.c.src" > case 2+1: > > accum += (data0[2]); ># 1051 "numpy/core/src/multiarray/einsum.c.src" > case 1+1: > > accum += (data0[1]); ># 1051 "numpy/core/src/multiarray/einsum.c.src" > case 0+1: > > accum += (data0[0]); > > > > > > case 0: > > > > > *((npy_long *)dataptr[1]) = (accum + > (*((npy_long *)dataptr[1]))); > > return; > } ># 1157 "numpy/core/src/multiarray/einsum.c.src" > while (count >= 8) { > count -= 8; ># 1164 "numpy/core/src/multiarray/einsum.c.src" > > accum += (data0[0]); ># 1164 "numpy/core/src/multiarray/einsum.c.src" > > accum += (data0[1]); ># 1164 "numpy/core/src/multiarray/einsum.c.src" > > accum += (data0[2]); ># 1164 "numpy/core/src/multiarray/einsum.c.src" > > accum += (data0[3]); ># 1164 "numpy/core/src/multiarray/einsum.c.src" > > accum += (data0[4]); ># 1164 "numpy/core/src/multiarray/einsum.c.src" > > accum += (data0[5]); ># 1164 "numpy/core/src/multiarray/einsum.c.src" > > accum += (data0[6]); ># 1164 "numpy/core/src/multiarray/einsum.c.src" > > accum += (data0[7]); ># 1174 "numpy/core/src/multiarray/einsum.c.src" > data0 += 8; > > > > } ># 1195 "numpy/core/src/multiarray/einsum.c.src" > goto finish_after_unrolled_loop; >} > > > >static void >long_sum_of_products_outstride0_one(int nop, char **dataptr, > npy_intp *strides, npy_intp count) >{ > > > > npy_long accum = 0; > > > > char *data0 = dataptr[0]; > npy_intp stride0 = strides[0]; ># 1223 "numpy/core/src/multiarray/einsum.c.src" > ; > > > while (count--) { > > > accum += (*(npy_long *)data0); > data0 += stride0; ># 1284 "numpy/core/src/multiarray/einsum.c.src" > } ># 1296 "numpy/core/src/multiarray/einsum.c.src" > *((npy_long *)dataptr[1]) = (accum + > (*((npy_long *)dataptr[1]))); > > > > > > >} ># 107 "numpy/core/src/multiarray/einsum.c.src" >static void >long_sum_of_products_two(int nop, char **dataptr, > npy_intp *strides, npy_intp count) >{ > > char *data0 = dataptr[0]; > npy_intp stride0 = strides[0]; > > > char *data1 = dataptr[1]; > npy_intp stride1 = strides[1]; > > > > > > > char *data_out = dataptr[2]; > npy_intp stride_out = strides[2]; > > > ; > > while (count--) { > > > > > > > > *(npy_long *)data_out = ((*(npy_long *)data0) * > (*(npy_long *)data1) + > (*(npy_long *)data_out)); > data0 += stride0; > data1 += stride1; > data_out += stride_out; ># 201 "numpy/core/src/multiarray/einsum.c.src" > } >} ># 439 "numpy/core/src/multiarray/einsum.c.src" >static void >long_sum_of_products_contig_two(int nop, char **dataptr, > npy_intp *(__NPY_UNUSED_TAGGEDstrides) __attribute__ ((__unused__)), npy_intp count) >{ > npy_long *data0 = (npy_long *)dataptr[0]; > npy_long *data1 = (npy_long *)dataptr[1]; > npy_long *data_out = (npy_long *)dataptr[2]; > > > > > > ; > > > >finish_after_unrolled_loop: > switch (count) { ># 289 "numpy/core/src/multiarray/einsum.c.src" > case 6+1: > data_out[6] = ((data0[6]) * > (data1[6]) + > (data_out[6])); ># 289 "numpy/core/src/multiarray/einsum.c.src" > case 5+1: > data_out[5] = ((data0[5]) * > (data1[5]) + > (data_out[5])); ># 289 "numpy/core/src/multiarray/einsum.c.src" > case 4+1: > data_out[4] = ((data0[4]) * > (data1[4]) + > (data_out[4])); ># 289 "numpy/core/src/multiarray/einsum.c.src" > case 3+1: > data_out[3] = ((data0[3]) * > (data1[3]) + > (data_out[3])); ># 289 "numpy/core/src/multiarray/einsum.c.src" > case 2+1: > data_out[2] = ((data0[2]) * > (data1[2]) + > (data_out[2])); ># 289 "numpy/core/src/multiarray/einsum.c.src" > case 1+1: > data_out[1] = ((data0[1]) * > (data1[1]) + > (data_out[1])); ># 289 "numpy/core/src/multiarray/einsum.c.src" > case 0+1: > data_out[0] = ((data0[0]) * > (data1[0]) + > (data_out[0])); > > case 0: > return; > } ># 327 "numpy/core/src/multiarray/einsum.c.src" > while (count >= 8) { > count -= 8; ># 339 "numpy/core/src/multiarray/einsum.c.src" > data_out[0] = ((data0[0]) * > (data1[0]) + > (data_out[0])); ># 339 "numpy/core/src/multiarray/einsum.c.src" > data_out[1] = ((data0[1]) * > (data1[1]) + > (data_out[1])); ># 339 "numpy/core/src/multiarray/einsum.c.src" > data_out[2] = ((data0[2]) * > (data1[2]) + > (data_out[2])); ># 339 "numpy/core/src/multiarray/einsum.c.src" > data_out[3] = ((data0[3]) * > (data1[3]) + > (data_out[3])); ># 339 "numpy/core/src/multiarray/einsum.c.src" > data_out[4] = ((data0[4]) * > (data1[4]) + > (data_out[4])); ># 339 "numpy/core/src/multiarray/einsum.c.src" > data_out[5] = ((data0[5]) * > (data1[5]) + > (data_out[5])); ># 339 "numpy/core/src/multiarray/einsum.c.src" > data_out[6] = ((data0[6]) * > (data1[6]) + > (data_out[6])); ># 339 "numpy/core/src/multiarray/einsum.c.src" > data_out[7] = ((data0[7]) * > (data1[7]) + > (data_out[7])); > > > data0 += 8; > data1 += 8; > data_out += 8; > } > > > goto finish_after_unrolled_loop; >} > > >static void >long_sum_of_products_stride0_contig_outcontig_two(int nop, char **dataptr, > npy_intp *(__NPY_UNUSED_TAGGEDstrides) __attribute__ ((__unused__)), npy_intp count) >{ > npy_long value0 = (*(npy_long *)dataptr[0]); > npy_long *data1 = (npy_long *)dataptr[1]; > npy_long *data_out = (npy_long *)dataptr[2]; > > > > > > > > ; > > > >finish_after_unrolled_loop: > switch (count) { ># 377 "numpy/core/src/multiarray/einsum.c.src" > case 6+1: > data_out[6] = (value0 * > (data1[6]) + > (data_out[6])); ># 377 "numpy/core/src/multiarray/einsum.c.src" > case 5+1: > data_out[5] = (value0 * > (data1[5]) + > (data_out[5])); ># 377 "numpy/core/src/multiarray/einsum.c.src" > case 4+1: > data_out[4] = (value0 * > (data1[4]) + > (data_out[4])); ># 377 "numpy/core/src/multiarray/einsum.c.src" > case 3+1: > data_out[3] = (value0 * > (data1[3]) + > (data_out[3])); ># 377 "numpy/core/src/multiarray/einsum.c.src" > case 2+1: > data_out[2] = (value0 * > (data1[2]) + > (data_out[2])); ># 377 "numpy/core/src/multiarray/einsum.c.src" > case 1+1: > data_out[1] = (value0 * > (data1[1]) + > (data_out[1])); ># 377 "numpy/core/src/multiarray/einsum.c.src" > case 0+1: > data_out[0] = (value0 * > (data1[0]) + > (data_out[0])); > > case 0: > return; > } ># 461 "numpy/core/src/multiarray/einsum.c.src" > while (count >= 8) { > count -= 8; ># 468 "numpy/core/src/multiarray/einsum.c.src" > data_out[0] = (value0 * > (data1[0]) + > (data_out[0])); ># 468 "numpy/core/src/multiarray/einsum.c.src" > data_out[1] = (value0 * > (data1[1]) + > (data_out[1])); ># 468 "numpy/core/src/multiarray/einsum.c.src" > data_out[2] = (value0 * > (data1[2]) + > (data_out[2])); ># 468 "numpy/core/src/multiarray/einsum.c.src" > data_out[3] = (value0 * > (data1[3]) + > (data_out[3])); ># 468 "numpy/core/src/multiarray/einsum.c.src" > data_out[4] = (value0 * > (data1[4]) + > (data_out[4])); ># 468 "numpy/core/src/multiarray/einsum.c.src" > data_out[5] = (value0 * > (data1[5]) + > (data_out[5])); ># 468 "numpy/core/src/multiarray/einsum.c.src" > data_out[6] = (value0 * > (data1[6]) + > (data_out[6])); ># 468 "numpy/core/src/multiarray/einsum.c.src" > data_out[7] = (value0 * > (data1[7]) + > (data_out[7])); > > > data1 += 8; > data_out += 8; > } > > > if (count > 0) { > goto finish_after_unrolled_loop; > } >} > >static void >long_sum_of_products_contig_stride0_outcontig_two(int nop, char **dataptr, > npy_intp *(__NPY_UNUSED_TAGGEDstrides) __attribute__ ((__unused__)), npy_intp count) >{ > npy_long *data0 = (npy_long *)dataptr[0]; > npy_long value1 = (*(npy_long *)dataptr[1]); > npy_long *data_out = (npy_long *)dataptr[2]; > > > > > > ; > > > >finish_after_unrolled_loop: > switch (count) { ># 504 "numpy/core/src/multiarray/einsum.c.src" > case 6+1: > data_out[6] = ((data0[6])* > value1 + > (data_out[6])); ># 504 "numpy/core/src/multiarray/einsum.c.src" > case 5+1: > data_out[5] = ((data0[5])* > value1 + > (data_out[5])); ># 504 "numpy/core/src/multiarray/einsum.c.src" > case 4+1: > data_out[4] = ((data0[4])* > value1 + > (data_out[4])); ># 504 "numpy/core/src/multiarray/einsum.c.src" > case 3+1: > data_out[3] = ((data0[3])* > value1 + > (data_out[3])); ># 504 "numpy/core/src/multiarray/einsum.c.src" > case 2+1: > data_out[2] = ((data0[2])* > value1 + > (data_out[2])); ># 504 "numpy/core/src/multiarray/einsum.c.src" > case 1+1: > data_out[1] = ((data0[1])* > value1 + > (data_out[1])); ># 504 "numpy/core/src/multiarray/einsum.c.src" > case 0+1: > data_out[0] = ((data0[0])* > value1 + > (data_out[0])); > > case 0: > return; > } ># 542 "numpy/core/src/multiarray/einsum.c.src" > while (count >= 8) { > count -= 8; ># 554 "numpy/core/src/multiarray/einsum.c.src" > data_out[0] = ((data0[0])* > value1 + > (data_out[0])); ># 554 "numpy/core/src/multiarray/einsum.c.src" > data_out[1] = ((data0[1])* > value1 + > (data_out[1])); ># 554 "numpy/core/src/multiarray/einsum.c.src" > data_out[2] = ((data0[2])* > value1 + > (data_out[2])); ># 554 "numpy/core/src/multiarray/einsum.c.src" > data_out[3] = ((data0[3])* > value1 + > (data_out[3])); ># 554 "numpy/core/src/multiarray/einsum.c.src" > data_out[4] = ((data0[4])* > value1 + > (data_out[4])); ># 554 "numpy/core/src/multiarray/einsum.c.src" > data_out[5] = ((data0[5])* > value1 + > (data_out[5])); ># 554 "numpy/core/src/multiarray/einsum.c.src" > data_out[6] = ((data0[6])* > value1 + > (data_out[6])); ># 554 "numpy/core/src/multiarray/einsum.c.src" > data_out[7] = ((data0[7])* > value1 + > (data_out[7])); > > > data0 += 8; > data_out += 8; > } > > > goto finish_after_unrolled_loop; >} > >static void >long_sum_of_products_contig_contig_outstride0_two(int nop, char **dataptr, > npy_intp *(__NPY_UNUSED_TAGGEDstrides) __attribute__ ((__unused__)), npy_intp count) >{ > npy_long *data0 = (npy_long *)dataptr[0]; > npy_long *data1 = (npy_long *)dataptr[1]; > npy_long accum = 0; > > > > > > > > ; > > > >finish_after_unrolled_loop: > switch (count) { ># 590 "numpy/core/src/multiarray/einsum.c.src" > case 6+1: > accum += (data0[6]) * (data1[6]); ># 590 "numpy/core/src/multiarray/einsum.c.src" > case 5+1: > accum += (data0[5]) * (data1[5]); ># 590 "numpy/core/src/multiarray/einsum.c.src" > case 4+1: > accum += (data0[4]) * (data1[4]); ># 590 "numpy/core/src/multiarray/einsum.c.src" > case 3+1: > accum += (data0[3]) * (data1[3]); ># 590 "numpy/core/src/multiarray/einsum.c.src" > case 2+1: > accum += (data0[2]) * (data1[2]); ># 590 "numpy/core/src/multiarray/einsum.c.src" > case 1+1: > accum += (data0[1]) * (data1[1]); ># 590 "numpy/core/src/multiarray/einsum.c.src" > case 0+1: > accum += (data0[0]) * (data1[0]); > > case 0: > *(npy_long *)dataptr[2] += (accum); > return; > } ># 695 "numpy/core/src/multiarray/einsum.c.src" > while (count >= 8) { > count -= 8; ># 702 "numpy/core/src/multiarray/einsum.c.src" > accum += (data0[0]) * (data1[0]); ># 702 "numpy/core/src/multiarray/einsum.c.src" > accum += (data0[1]) * (data1[1]); ># 702 "numpy/core/src/multiarray/einsum.c.src" > accum += (data0[2]) * (data1[2]); ># 702 "numpy/core/src/multiarray/einsum.c.src" > accum += (data0[3]) * (data1[3]); ># 702 "numpy/core/src/multiarray/einsum.c.src" > accum += (data0[4]) * (data1[4]); ># 702 "numpy/core/src/multiarray/einsum.c.src" > accum += (data0[5]) * (data1[5]); ># 702 "numpy/core/src/multiarray/einsum.c.src" > accum += (data0[6]) * (data1[6]); ># 702 "numpy/core/src/multiarray/einsum.c.src" > accum += (data0[7]) * (data1[7]); > > > data0 += 8; > data1 += 8; > } ># 724 "numpy/core/src/multiarray/einsum.c.src" > goto finish_after_unrolled_loop; >} > >static void >long_sum_of_products_stride0_contig_outstride0_two(int nop, char **dataptr, > npy_intp *(__NPY_UNUSED_TAGGEDstrides) __attribute__ ((__unused__)), npy_intp count) >{ > npy_long value0 = (*(npy_long *)dataptr[0]); > npy_long *data1 = (npy_long *)dataptr[1]; > npy_long accum = 0; > > > > > > ; > > > >finish_after_unrolled_loop: > switch (count) { ># 748 "numpy/core/src/multiarray/einsum.c.src" > case 6+1: > accum += (data1[6]); ># 748 "numpy/core/src/multiarray/einsum.c.src" > case 5+1: > accum += (data1[5]); ># 748 "numpy/core/src/multiarray/einsum.c.src" > case 4+1: > accum += (data1[4]); ># 748 "numpy/core/src/multiarray/einsum.c.src" > case 3+1: > accum += (data1[3]); ># 748 "numpy/core/src/multiarray/einsum.c.src" > case 2+1: > accum += (data1[2]); ># 748 "numpy/core/src/multiarray/einsum.c.src" > case 1+1: > accum += (data1[1]); ># 748 "numpy/core/src/multiarray/einsum.c.src" > case 0+1: > accum += (data1[0]); > > case 0: > *(npy_long *)dataptr[2] += (value0 * accum); > return; > } ># 795 "numpy/core/src/multiarray/einsum.c.src" > while (count >= 8) { > count -= 8; ># 807 "numpy/core/src/multiarray/einsum.c.src" > accum += (data1[0]); ># 807 "numpy/core/src/multiarray/einsum.c.src" > accum += (data1[1]); ># 807 "numpy/core/src/multiarray/einsum.c.src" > accum += (data1[2]); ># 807 "numpy/core/src/multiarray/einsum.c.src" > accum += (data1[3]); ># 807 "numpy/core/src/multiarray/einsum.c.src" > accum += (data1[4]); ># 807 "numpy/core/src/multiarray/einsum.c.src" > accum += (data1[5]); ># 807 "numpy/core/src/multiarray/einsum.c.src" > accum += (data1[6]); ># 807 "numpy/core/src/multiarray/einsum.c.src" > accum += (data1[7]); > > > data1 += 8; > } ># 823 "numpy/core/src/multiarray/einsum.c.src" > goto finish_after_unrolled_loop; >} > >static void >long_sum_of_products_contig_stride0_outstride0_two(int nop, char **dataptr, > npy_intp *(__NPY_UNUSED_TAGGEDstrides) __attribute__ ((__unused__)), npy_intp count) >{ > npy_long *data0 = (npy_long *)dataptr[0]; > npy_long value1 = (*(npy_long *)dataptr[1]); > npy_long accum = 0; > > > > > > ; > > > >finish_after_unrolled_loop: > switch (count) { ># 847 "numpy/core/src/multiarray/einsum.c.src" > case 6+1: > accum += (data0[6]); ># 847 "numpy/core/src/multiarray/einsum.c.src" > case 5+1: > accum += (data0[5]); ># 847 "numpy/core/src/multiarray/einsum.c.src" > case 4+1: > accum += (data0[4]); ># 847 "numpy/core/src/multiarray/einsum.c.src" > case 3+1: > accum += (data0[3]); ># 847 "numpy/core/src/multiarray/einsum.c.src" > case 2+1: > accum += (data0[2]); ># 847 "numpy/core/src/multiarray/einsum.c.src" > case 1+1: > accum += (data0[1]); ># 847 "numpy/core/src/multiarray/einsum.c.src" > case 0+1: > accum += (data0[0]); > > case 0: > *(npy_long *)dataptr[2] += (accum * value1); > return; > } ># 894 "numpy/core/src/multiarray/einsum.c.src" > while (count >= 8) { > count -= 8; ># 906 "numpy/core/src/multiarray/einsum.c.src" > accum += (data0[0]); ># 906 "numpy/core/src/multiarray/einsum.c.src" > accum += (data0[1]); ># 906 "numpy/core/src/multiarray/einsum.c.src" > accum += (data0[2]); ># 906 "numpy/core/src/multiarray/einsum.c.src" > accum += (data0[3]); ># 906 "numpy/core/src/multiarray/einsum.c.src" > accum += (data0[4]); ># 906 "numpy/core/src/multiarray/einsum.c.src" > accum += (data0[5]); ># 906 "numpy/core/src/multiarray/einsum.c.src" > accum += (data0[6]); ># 906 "numpy/core/src/multiarray/einsum.c.src" > accum += (data0[7]); > > > data0 += 8; > } ># 922 "numpy/core/src/multiarray/einsum.c.src" > goto finish_after_unrolled_loop; >} ># 1455 "numpy/core/src/multiarray/einsum.c.src" >static void >long_sum_of_products_outstride0_two(int nop, char **dataptr, > npy_intp *strides, npy_intp count) >{ > > > > npy_long accum = 0; > > > > char *data0 = dataptr[0]; > npy_intp stride0 = strides[0]; > > > char *data1 = dataptr[1]; > npy_intp stride1 = strides[1]; > > > > > > > ; > > > while (count--) { > > > > > > accum += (*(npy_long *)data0) * > (*(npy_long *)data1); > data0 += stride0; > data1 += stride1; ># 1539 "numpy/core/src/multiarray/einsum.c.src" > } ># 1551 "numpy/core/src/multiarray/einsum.c.src" > *((npy_long *)dataptr[2]) = (accum + > (*((npy_long *)dataptr[2]))); > > > > > > >} ># 107 "numpy/core/src/multiarray/einsum.c.src" >static void >long_sum_of_products_three(int nop, char **dataptr, > npy_intp *strides, npy_intp count) >{ > > char *data0 = dataptr[0]; > npy_intp stride0 = strides[0]; > > > char *data1 = dataptr[1]; > npy_intp stride1 = strides[1]; > > > char *data2 = dataptr[2]; > npy_intp stride2 = strides[2]; > > > char *data_out = dataptr[3]; > npy_intp stride_out = strides[3]; > > > ; > > while (count--) { ># 145 "numpy/core/src/multiarray/einsum.c.src" > *(npy_long *)data_out = ((*(npy_long *)data0) * > (*(npy_long *)data1) * > (*(npy_long *)data2) + > (*(npy_long *)data_out)); > data0 += stride0; > data1 += stride1; > data2 += stride2; > data_out += stride_out; ># 201 "numpy/core/src/multiarray/einsum.c.src" > } >} ># 1542 "numpy/core/src/multiarray/einsum.c.src" >static void >long_sum_of_products_contig_three(int nop, char **dataptr, > npy_intp *(__NPY_UNUSED_TAGGEDstrides) __attribute__ ((__unused__)), npy_intp count) >{ > npy_long *data0 = (npy_long *)dataptr[0]; > npy_long *data1 = (npy_long *)dataptr[1]; > npy_long *data2 = (npy_long *)dataptr[2]; > npy_long *data_out = (npy_long *)dataptr[3]; > > > while (count >= 8) { > count -= 8; ># 943 "numpy/core/src/multiarray/einsum.c.src" > data_out[0] = ((data0[0]) * > (data1[0]) * > (data2[0]) + > (data_out[0])); ># 943 "numpy/core/src/multiarray/einsum.c.src" > data_out[1] = ((data0[1]) * > (data1[1]) * > (data2[1]) + > (data_out[1])); ># 943 "numpy/core/src/multiarray/einsum.c.src" > data_out[2] = ((data0[2]) * > (data1[2]) * > (data2[2]) + > (data_out[2])); ># 943 "numpy/core/src/multiarray/einsum.c.src" > data_out[3] = ((data0[3]) * > (data1[3]) * > (data2[3]) + > (data_out[3])); ># 943 "numpy/core/src/multiarray/einsum.c.src" > data_out[4] = ((data0[4]) * > (data1[4]) * > (data2[4]) + > (data_out[4])); ># 943 "numpy/core/src/multiarray/einsum.c.src" > data_out[5] = ((data0[5]) * > (data1[5]) * > (data2[5]) + > (data_out[5])); ># 943 "numpy/core/src/multiarray/einsum.c.src" > data_out[6] = ((data0[6]) * > (data1[6]) * > (data2[6]) + > (data_out[6])); ># 943 "numpy/core/src/multiarray/einsum.c.src" > data_out[7] = ((data0[7]) * > (data1[7]) * > (data2[7]) + > (data_out[7])); > > data0 += 8; > data1 += 8; > data_out += 8; > } ># 958 "numpy/core/src/multiarray/einsum.c.src" > if (count-- == 0) { > return; > } > data_out[0] = ((data0[0]) * > (data1[0]) * > (data2[0]) + > (data_out[0])); ># 958 "numpy/core/src/multiarray/einsum.c.src" > if (count-- == 0) { > return; > } > data_out[1] = ((data0[1]) * > (data1[1]) * > (data2[1]) + > (data_out[1])); ># 958 "numpy/core/src/multiarray/einsum.c.src" > if (count-- == 0) { > return; > } > data_out[2] = ((data0[2]) * > (data1[2]) * > (data2[2]) + > (data_out[2])); ># 958 "numpy/core/src/multiarray/einsum.c.src" > if (count-- == 0) { > return; > } > data_out[3] = ((data0[3]) * > (data1[3]) * > (data2[3]) + > (data_out[3])); ># 958 "numpy/core/src/multiarray/einsum.c.src" > if (count-- == 0) { > return; > } > data_out[4] = ((data0[4]) * > (data1[4]) * > (data2[4]) + > (data_out[4])); ># 958 "numpy/core/src/multiarray/einsum.c.src" > if (count-- == 0) { > return; > } > data_out[5] = ((data0[5]) * > (data1[5]) * > (data2[5]) + > (data_out[5])); ># 958 "numpy/core/src/multiarray/einsum.c.src" > if (count-- == 0) { > return; > } > data_out[6] = ((data0[6]) * > (data1[6]) * > (data2[6]) + > (data_out[6])); ># 958 "numpy/core/src/multiarray/einsum.c.src" > if (count-- == 0) { > return; > } > data_out[7] = ((data0[7]) * > (data1[7]) * > (data2[7]) + > (data_out[7])); > >} ># 1354 "numpy/core/src/multiarray/einsum.c.src" >static void >long_sum_of_products_outstride0_three(int nop, char **dataptr, > npy_intp *strides, npy_intp count) >{ > > > > npy_long accum = 0; > > > > char *data0 = dataptr[0]; > npy_intp stride0 = strides[0]; > > > char *data1 = dataptr[1]; > npy_intp stride1 = strides[1]; > > > char *data2 = dataptr[2]; > npy_intp stride2 = strides[2]; > > > ; > > > while (count--) { ># 1391 "numpy/core/src/multiarray/einsum.c.src" > accum += (*(npy_long *)data0) * > (*(npy_long *)data1) * > (*(npy_long *)data2); > data0 += stride0; > data1 += stride1; > data2 += stride2; ># 1438 "numpy/core/src/multiarray/einsum.c.src" > } ># 1450 "numpy/core/src/multiarray/einsum.c.src" > *((npy_long *)dataptr[3]) = (accum + > (*((npy_long *)dataptr[3]))); > > > > > > >} ># 107 "numpy/core/src/multiarray/einsum.c.src" >static void >long_sum_of_products_any(int nop, char **dataptr, > npy_intp *strides, npy_intp count) >{ ># 128 "numpy/core/src/multiarray/einsum.c.src" > ; > > while (count--) { ># 154 "numpy/core/src/multiarray/einsum.c.src" > npy_long temp = (*(npy_long *)dataptr[0]); > int i; > for (i = 1; i < nop; ++i) { > temp *= (*(npy_long *)dataptr[i]); > } > *(npy_long *)dataptr[nop] = (temp + > (*(npy_long *)dataptr[i])); > for (i = 0; i <= nop; ++i) { > dataptr[i] += strides[i]; > } ># 201 "numpy/core/src/multiarray/einsum.c.src" > } >} ># 1686 "numpy/core/src/multiarray/einsum.c.src" >static void >long_sum_of_products_contig_any(int nop, char **dataptr, > npy_intp *(__NPY_UNUSED_TAGGEDstrides) __attribute__ ((__unused__)), npy_intp count) >{ > ; > > > while (count--) { > > npy_long temp = (*(npy_long *)dataptr[0]); > int i; > for (i = 1; i < nop; ++i) { > temp *= (*(npy_long *)dataptr[i]); > } > *(npy_long *)dataptr[nop] = (temp + > (*(npy_long *)dataptr[i])); > for (i = 0; i <= nop; ++i) { > dataptr[i] += sizeof(npy_long); > } ># 1732 "numpy/core/src/multiarray/einsum.c.src" > } >} ># 2070 "numpy/core/src/multiarray/einsum.c.src" >static void >long_sum_of_products_outstride0_any(int nop, char **dataptr, > npy_intp *strides, npy_intp count) >{ > > > > npy_long accum = 0; ># 2093 "numpy/core/src/multiarray/einsum.c.src" > ; > > > while (count--) { ># 2114 "numpy/core/src/multiarray/einsum.c.src" > npy_long temp = (*(npy_long *)dataptr[0]); > int i; > for (i = 1; i < nop; ++i) { > temp *= (*(npy_long *)dataptr[i]); > } > accum += temp; > for (i = 0; i < nop; ++i) { > dataptr[i] += strides[i]; > } ># 2154 "numpy/core/src/multiarray/einsum.c.src" > } ># 2169 "numpy/core/src/multiarray/einsum.c.src" > *((npy_long *)dataptr[nop]) = (accum + > (*((npy_long *)dataptr[nop]))); > > > >} ># 102 "numpy/core/src/multiarray/einsum.c.src" ># 107 "numpy/core/src/multiarray/einsum.c.src" >static void >longlong_sum_of_products_one(int nop, char **dataptr, > npy_intp *strides, npy_intp count) >{ > > char *data0 = dataptr[0]; > npy_intp stride0 = strides[0]; ># 124 "numpy/core/src/multiarray/einsum.c.src" > char *data_out = dataptr[1]; > npy_intp stride_out = strides[1]; > > > ; > > while (count--) { > > > *(npy_longlong *)data_out = ((*(npy_longlong *)data0) + > (*(npy_longlong *)data_out)); > data0 += stride0; > data_out += stride_out; ># 201 "numpy/core/src/multiarray/einsum.c.src" > } >} > > > >static void >longlong_sum_of_products_contig_one(int nop, char **dataptr, > npy_intp *(__NPY_UNUSED_TAGGEDstrides) __attribute__ ((__unused__)), npy_intp count) >{ > npy_longlong *data0 = (npy_longlong *)dataptr[0]; > npy_longlong *data_out = (npy_longlong *)dataptr[1]; > > ; > > > >finish_after_unrolled_loop: > switch (count) { ># 222 "numpy/core/src/multiarray/einsum.c.src" > case 6+1: > > data_out[6] = ((data0[6]) + > (data_out[6])); ># 222 "numpy/core/src/multiarray/einsum.c.src" > case 5+1: > > data_out[5] = ((data0[5]) + > (data_out[5])); ># 222 "numpy/core/src/multiarray/einsum.c.src" > case 4+1: > > data_out[4] = ((data0[4]) + > (data_out[4])); ># 222 "numpy/core/src/multiarray/einsum.c.src" > case 3+1: > > data_out[3] = ((data0[3]) + > (data_out[3])); ># 222 "numpy/core/src/multiarray/einsum.c.src" > case 2+1: > > data_out[2] = ((data0[2]) + > (data_out[2])); ># 222 "numpy/core/src/multiarray/einsum.c.src" > case 1+1: > > data_out[1] = ((data0[1]) + > (data_out[1])); ># 222 "numpy/core/src/multiarray/einsum.c.src" > case 0+1: > > data_out[0] = ((data0[0]) + > (data_out[0])); ># 235 "numpy/core/src/multiarray/einsum.c.src" > case 0: > return; > } > > > while (count >= 8) { > count -= 8; ># 246 "numpy/core/src/multiarray/einsum.c.src" > > data_out[0] = ((data0[0]) + > (data_out[0])); ># 246 "numpy/core/src/multiarray/einsum.c.src" > > data_out[1] = ((data0[1]) + > (data_out[1])); ># 246 "numpy/core/src/multiarray/einsum.c.src" > > data_out[2] = ((data0[2]) + > (data_out[2])); ># 246 "numpy/core/src/multiarray/einsum.c.src" > > data_out[3] = ((data0[3]) + > (data_out[3])); ># 246 "numpy/core/src/multiarray/einsum.c.src" > > data_out[4] = ((data0[4]) + > (data_out[4])); ># 246 "numpy/core/src/multiarray/einsum.c.src" > > data_out[5] = ((data0[5]) + > (data_out[5])); ># 246 "numpy/core/src/multiarray/einsum.c.src" > > data_out[6] = ((data0[6]) + > (data_out[6])); ># 246 "numpy/core/src/multiarray/einsum.c.src" > > data_out[7] = ((data0[7]) + > (data_out[7])); ># 258 "numpy/core/src/multiarray/einsum.c.src" > data0 += 8; > data_out += 8; > } > > > goto finish_after_unrolled_loop; >} ># 1568 "numpy/core/src/multiarray/einsum.c.src" >static void >longlong_sum_of_products_contig_outstride0_one(int nop, char **dataptr, > npy_intp *strides, npy_intp count) >{ > > > > > npy_longlong accum = 0; > npy_longlong *data0 = (npy_longlong *)dataptr[0]; ># 1587 "numpy/core/src/multiarray/einsum.c.src" > ; > > > >finish_after_unrolled_loop: > switch (count) { ># 1051 "numpy/core/src/multiarray/einsum.c.src" > case 6+1: > > accum += (data0[6]); ># 1051 "numpy/core/src/multiarray/einsum.c.src" > case 5+1: > > accum += (data0[5]); ># 1051 "numpy/core/src/multiarray/einsum.c.src" > case 4+1: > > accum += (data0[4]); ># 1051 "numpy/core/src/multiarray/einsum.c.src" > case 3+1: > > accum += (data0[3]); ># 1051 "numpy/core/src/multiarray/einsum.c.src" > case 2+1: > > accum += (data0[2]); ># 1051 "numpy/core/src/multiarray/einsum.c.src" > case 1+1: > > accum += (data0[1]); ># 1051 "numpy/core/src/multiarray/einsum.c.src" > case 0+1: > > accum += (data0[0]); > > > > > > case 0: > > > > > *((npy_longlong *)dataptr[1]) = (accum + > (*((npy_longlong *)dataptr[1]))); > > return; > } ># 1157 "numpy/core/src/multiarray/einsum.c.src" > while (count >= 8) { > count -= 8; ># 1164 "numpy/core/src/multiarray/einsum.c.src" > > accum += (data0[0]); ># 1164 "numpy/core/src/multiarray/einsum.c.src" > > accum += (data0[1]); ># 1164 "numpy/core/src/multiarray/einsum.c.src" > > accum += (data0[2]); ># 1164 "numpy/core/src/multiarray/einsum.c.src" > > accum += (data0[3]); ># 1164 "numpy/core/src/multiarray/einsum.c.src" > > accum += (data0[4]); ># 1164 "numpy/core/src/multiarray/einsum.c.src" > > accum += (data0[5]); ># 1164 "numpy/core/src/multiarray/einsum.c.src" > > accum += (data0[6]); ># 1164 "numpy/core/src/multiarray/einsum.c.src" > > accum += (data0[7]); ># 1174 "numpy/core/src/multiarray/einsum.c.src" > data0 += 8; > > > > } ># 1195 "numpy/core/src/multiarray/einsum.c.src" > goto finish_after_unrolled_loop; >} > > > >static void >longlong_sum_of_products_outstride0_one(int nop, char **dataptr, > npy_intp *strides, npy_intp count) >{ > > > > npy_longlong accum = 0; > > > > char *data0 = dataptr[0]; > npy_intp stride0 = strides[0]; ># 1223 "numpy/core/src/multiarray/einsum.c.src" > ; > > > while (count--) { > > > accum += (*(npy_longlong *)data0); > data0 += stride0; ># 1284 "numpy/core/src/multiarray/einsum.c.src" > } ># 1296 "numpy/core/src/multiarray/einsum.c.src" > *((npy_longlong *)dataptr[1]) = (accum + > (*((npy_longlong *)dataptr[1]))); > > > > > > >} ># 107 "numpy/core/src/multiarray/einsum.c.src" >static void >longlong_sum_of_products_two(int nop, char **dataptr, > npy_intp *strides, npy_intp count) >{ > > char *data0 = dataptr[0]; > npy_intp stride0 = strides[0]; > > > char *data1 = dataptr[1]; > npy_intp stride1 = strides[1]; > > > > > > > char *data_out = dataptr[2]; > npy_intp stride_out = strides[2]; > > > ; > > while (count--) { > > > > > > > > *(npy_longlong *)data_out = ((*(npy_longlong *)data0) * > (*(npy_longlong *)data1) + > (*(npy_longlong *)data_out)); > data0 += stride0; > data1 += stride1; > data_out += stride_out; ># 201 "numpy/core/src/multiarray/einsum.c.src" > } >} ># 439 "numpy/core/src/multiarray/einsum.c.src" >static void >longlong_sum_of_products_contig_two(int nop, char **dataptr, > npy_intp *(__NPY_UNUSED_TAGGEDstrides) __attribute__ ((__unused__)), npy_intp count) >{ > npy_longlong *data0 = (npy_longlong *)dataptr[0]; > npy_longlong *data1 = (npy_longlong *)dataptr[1]; > npy_longlong *data_out = (npy_longlong *)dataptr[2]; > > > > > > ; > > > >finish_after_unrolled_loop: > switch (count) { ># 289 "numpy/core/src/multiarray/einsum.c.src" > case 6+1: > data_out[6] = ((data0[6]) * > (data1[6]) + > (data_out[6])); ># 289 "numpy/core/src/multiarray/einsum.c.src" > case 5+1: > data_out[5] = ((data0[5]) * > (data1[5]) + > (data_out[5])); ># 289 "numpy/core/src/multiarray/einsum.c.src" > case 4+1: > data_out[4] = ((data0[4]) * > (data1[4]) + > (data_out[4])); ># 289 "numpy/core/src/multiarray/einsum.c.src" > case 3+1: > data_out[3] = ((data0[3]) * > (data1[3]) + > (data_out[3])); ># 289 "numpy/core/src/multiarray/einsum.c.src" > case 2+1: > data_out[2] = ((data0[2]) * > (data1[2]) + > (data_out[2])); ># 289 "numpy/core/src/multiarray/einsum.c.src" > case 1+1: > data_out[1] = ((data0[1]) * > (data1[1]) + > (data_out[1])); ># 289 "numpy/core/src/multiarray/einsum.c.src" > case 0+1: > data_out[0] = ((data0[0]) * > (data1[0]) + > (data_out[0])); > > case 0: > return; > } ># 327 "numpy/core/src/multiarray/einsum.c.src" > while (count >= 8) { > count -= 8; ># 339 "numpy/core/src/multiarray/einsum.c.src" > data_out[0] = ((data0[0]) * > (data1[0]) + > (data_out[0])); ># 339 "numpy/core/src/multiarray/einsum.c.src" > data_out[1] = ((data0[1]) * > (data1[1]) + > (data_out[1])); ># 339 "numpy/core/src/multiarray/einsum.c.src" > data_out[2] = ((data0[2]) * > (data1[2]) + > (data_out[2])); ># 339 "numpy/core/src/multiarray/einsum.c.src" > data_out[3] = ((data0[3]) * > (data1[3]) + > (data_out[3])); ># 339 "numpy/core/src/multiarray/einsum.c.src" > data_out[4] = ((data0[4]) * > (data1[4]) + > (data_out[4])); ># 339 "numpy/core/src/multiarray/einsum.c.src" > data_out[5] = ((data0[5]) * > (data1[5]) + > (data_out[5])); ># 339 "numpy/core/src/multiarray/einsum.c.src" > data_out[6] = ((data0[6]) * > (data1[6]) + > (data_out[6])); ># 339 "numpy/core/src/multiarray/einsum.c.src" > data_out[7] = ((data0[7]) * > (data1[7]) + > (data_out[7])); > > > data0 += 8; > data1 += 8; > data_out += 8; > } > > > goto finish_after_unrolled_loop; >} > > >static void >longlong_sum_of_products_stride0_contig_outcontig_two(int nop, char **dataptr, > npy_intp *(__NPY_UNUSED_TAGGEDstrides) __attribute__ ((__unused__)), npy_intp count) >{ > npy_longlong value0 = (*(npy_longlong *)dataptr[0]); > npy_longlong *data1 = (npy_longlong *)dataptr[1]; > npy_longlong *data_out = (npy_longlong *)dataptr[2]; > > > > > > > > ; > > > >finish_after_unrolled_loop: > switch (count) { ># 377 "numpy/core/src/multiarray/einsum.c.src" > case 6+1: > data_out[6] = (value0 * > (data1[6]) + > (data_out[6])); ># 377 "numpy/core/src/multiarray/einsum.c.src" > case 5+1: > data_out[5] = (value0 * > (data1[5]) + > (data_out[5])); ># 377 "numpy/core/src/multiarray/einsum.c.src" > case 4+1: > data_out[4] = (value0 * > (data1[4]) + > (data_out[4])); ># 377 "numpy/core/src/multiarray/einsum.c.src" > case 3+1: > data_out[3] = (value0 * > (data1[3]) + > (data_out[3])); ># 377 "numpy/core/src/multiarray/einsum.c.src" > case 2+1: > data_out[2] = (value0 * > (data1[2]) + > (data_out[2])); ># 377 "numpy/core/src/multiarray/einsum.c.src" > case 1+1: > data_out[1] = (value0 * > (data1[1]) + > (data_out[1])); ># 377 "numpy/core/src/multiarray/einsum.c.src" > case 0+1: > data_out[0] = (value0 * > (data1[0]) + > (data_out[0])); > > case 0: > return; > } ># 461 "numpy/core/src/multiarray/einsum.c.src" > while (count >= 8) { > count -= 8; ># 468 "numpy/core/src/multiarray/einsum.c.src" > data_out[0] = (value0 * > (data1[0]) + > (data_out[0])); ># 468 "numpy/core/src/multiarray/einsum.c.src" > data_out[1] = (value0 * > (data1[1]) + > (data_out[1])); ># 468 "numpy/core/src/multiarray/einsum.c.src" > data_out[2] = (value0 * > (data1[2]) + > (data_out[2])); ># 468 "numpy/core/src/multiarray/einsum.c.src" > data_out[3] = (value0 * > (data1[3]) + > (data_out[3])); ># 468 "numpy/core/src/multiarray/einsum.c.src" > data_out[4] = (value0 * > (data1[4]) + > (data_out[4])); ># 468 "numpy/core/src/multiarray/einsum.c.src" > data_out[5] = (value0 * > (data1[5]) + > (data_out[5])); ># 468 "numpy/core/src/multiarray/einsum.c.src" > data_out[6] = (value0 * > (data1[6]) + > (data_out[6])); ># 468 "numpy/core/src/multiarray/einsum.c.src" > data_out[7] = (value0 * > (data1[7]) + > (data_out[7])); > > > data1 += 8; > data_out += 8; > } > > > if (count > 0) { > goto finish_after_unrolled_loop; > } >} > >static void >longlong_sum_of_products_contig_stride0_outcontig_two(int nop, char **dataptr, > npy_intp *(__NPY_UNUSED_TAGGEDstrides) __attribute__ ((__unused__)), npy_intp count) >{ > npy_longlong *data0 = (npy_longlong *)dataptr[0]; > npy_longlong value1 = (*(npy_longlong *)dataptr[1]); > npy_longlong *data_out = (npy_longlong *)dataptr[2]; > > > > > > ; > > > >finish_after_unrolled_loop: > switch (count) { ># 504 "numpy/core/src/multiarray/einsum.c.src" > case 6+1: > data_out[6] = ((data0[6])* > value1 + > (data_out[6])); ># 504 "numpy/core/src/multiarray/einsum.c.src" > case 5+1: > data_out[5] = ((data0[5])* > value1 + > (data_out[5])); ># 504 "numpy/core/src/multiarray/einsum.c.src" > case 4+1: > data_out[4] = ((data0[4])* > value1 + > (data_out[4])); ># 504 "numpy/core/src/multiarray/einsum.c.src" > case 3+1: > data_out[3] = ((data0[3])* > value1 + > (data_out[3])); ># 504 "numpy/core/src/multiarray/einsum.c.src" > case 2+1: > data_out[2] = ((data0[2])* > value1 + > (data_out[2])); ># 504 "numpy/core/src/multiarray/einsum.c.src" > case 1+1: > data_out[1] = ((data0[1])* > value1 + > (data_out[1])); ># 504 "numpy/core/src/multiarray/einsum.c.src" > case 0+1: > data_out[0] = ((data0[0])* > value1 + > (data_out[0])); > > case 0: > return; > } ># 542 "numpy/core/src/multiarray/einsum.c.src" > while (count >= 8) { > count -= 8; ># 554 "numpy/core/src/multiarray/einsum.c.src" > data_out[0] = ((data0[0])* > value1 + > (data_out[0])); ># 554 "numpy/core/src/multiarray/einsum.c.src" > data_out[1] = ((data0[1])* > value1 + > (data_out[1])); ># 554 "numpy/core/src/multiarray/einsum.c.src" > data_out[2] = ((data0[2])* > value1 + > (data_out[2])); ># 554 "numpy/core/src/multiarray/einsum.c.src" > data_out[3] = ((data0[3])* > value1 + > (data_out[3])); ># 554 "numpy/core/src/multiarray/einsum.c.src" > data_out[4] = ((data0[4])* > value1 + > (data_out[4])); ># 554 "numpy/core/src/multiarray/einsum.c.src" > data_out[5] = ((data0[5])* > value1 + > (data_out[5])); ># 554 "numpy/core/src/multiarray/einsum.c.src" > data_out[6] = ((data0[6])* > value1 + > (data_out[6])); ># 554 "numpy/core/src/multiarray/einsum.c.src" > data_out[7] = ((data0[7])* > value1 + > (data_out[7])); > > > data0 += 8; > data_out += 8; > } > > > goto finish_after_unrolled_loop; >} > >static void >longlong_sum_of_products_contig_contig_outstride0_two(int nop, char **dataptr, > npy_intp *(__NPY_UNUSED_TAGGEDstrides) __attribute__ ((__unused__)), npy_intp count) >{ > npy_longlong *data0 = (npy_longlong *)dataptr[0]; > npy_longlong *data1 = (npy_longlong *)dataptr[1]; > npy_longlong accum = 0; > > > > > > > > ; > > > >finish_after_unrolled_loop: > switch (count) { ># 590 "numpy/core/src/multiarray/einsum.c.src" > case 6+1: > accum += (data0[6]) * (data1[6]); ># 590 "numpy/core/src/multiarray/einsum.c.src" > case 5+1: > accum += (data0[5]) * (data1[5]); ># 590 "numpy/core/src/multiarray/einsum.c.src" > case 4+1: > accum += (data0[4]) * (data1[4]); ># 590 "numpy/core/src/multiarray/einsum.c.src" > case 3+1: > accum += (data0[3]) * (data1[3]); ># 590 "numpy/core/src/multiarray/einsum.c.src" > case 2+1: > accum += (data0[2]) * (data1[2]); ># 590 "numpy/core/src/multiarray/einsum.c.src" > case 1+1: > accum += (data0[1]) * (data1[1]); ># 590 "numpy/core/src/multiarray/einsum.c.src" > case 0+1: > accum += (data0[0]) * (data1[0]); > > case 0: > *(npy_longlong *)dataptr[2] += (accum); > return; > } ># 695 "numpy/core/src/multiarray/einsum.c.src" > while (count >= 8) { > count -= 8; ># 702 "numpy/core/src/multiarray/einsum.c.src" > accum += (data0[0]) * (data1[0]); ># 702 "numpy/core/src/multiarray/einsum.c.src" > accum += (data0[1]) * (data1[1]); ># 702 "numpy/core/src/multiarray/einsum.c.src" > accum += (data0[2]) * (data1[2]); ># 702 "numpy/core/src/multiarray/einsum.c.src" > accum += (data0[3]) * (data1[3]); ># 702 "numpy/core/src/multiarray/einsum.c.src" > accum += (data0[4]) * (data1[4]); ># 702 "numpy/core/src/multiarray/einsum.c.src" > accum += (data0[5]) * (data1[5]); ># 702 "numpy/core/src/multiarray/einsum.c.src" > accum += (data0[6]) * (data1[6]); ># 702 "numpy/core/src/multiarray/einsum.c.src" > accum += (data0[7]) * (data1[7]); > > > data0 += 8; > data1 += 8; > } ># 724 "numpy/core/src/multiarray/einsum.c.src" > goto finish_after_unrolled_loop; >} > >static void >longlong_sum_of_products_stride0_contig_outstride0_two(int nop, char **dataptr, > npy_intp *(__NPY_UNUSED_TAGGEDstrides) __attribute__ ((__unused__)), npy_intp count) >{ > npy_longlong value0 = (*(npy_longlong *)dataptr[0]); > npy_longlong *data1 = (npy_longlong *)dataptr[1]; > npy_longlong accum = 0; > > > > > > ; > > > >finish_after_unrolled_loop: > switch (count) { ># 748 "numpy/core/src/multiarray/einsum.c.src" > case 6+1: > accum += (data1[6]); ># 748 "numpy/core/src/multiarray/einsum.c.src" > case 5+1: > accum += (data1[5]); ># 748 "numpy/core/src/multiarray/einsum.c.src" > case 4+1: > accum += (data1[4]); ># 748 "numpy/core/src/multiarray/einsum.c.src" > case 3+1: > accum += (data1[3]); ># 748 "numpy/core/src/multiarray/einsum.c.src" > case 2+1: > accum += (data1[2]); ># 748 "numpy/core/src/multiarray/einsum.c.src" > case 1+1: > accum += (data1[1]); ># 748 "numpy/core/src/multiarray/einsum.c.src" > case 0+1: > accum += (data1[0]); > > case 0: > *(npy_longlong *)dataptr[2] += (value0 * accum); > return; > } ># 795 "numpy/core/src/multiarray/einsum.c.src" > while (count >= 8) { > count -= 8; ># 807 "numpy/core/src/multiarray/einsum.c.src" > accum += (data1[0]); ># 807 "numpy/core/src/multiarray/einsum.c.src" > accum += (data1[1]); ># 807 "numpy/core/src/multiarray/einsum.c.src" > accum += (data1[2]); ># 807 "numpy/core/src/multiarray/einsum.c.src" > accum += (data1[3]); ># 807 "numpy/core/src/multiarray/einsum.c.src" > accum += (data1[4]); ># 807 "numpy/core/src/multiarray/einsum.c.src" > accum += (data1[5]); ># 807 "numpy/core/src/multiarray/einsum.c.src" > accum += (data1[6]); ># 807 "numpy/core/src/multiarray/einsum.c.src" > accum += (data1[7]); > > > data1 += 8; > } ># 823 "numpy/core/src/multiarray/einsum.c.src" > goto finish_after_unrolled_loop; >} > >static void >longlong_sum_of_products_contig_stride0_outstride0_two(int nop, char **dataptr, > npy_intp *(__NPY_UNUSED_TAGGEDstrides) __attribute__ ((__unused__)), npy_intp count) >{ > npy_longlong *data0 = (npy_longlong *)dataptr[0]; > npy_longlong value1 = (*(npy_longlong *)dataptr[1]); > npy_longlong accum = 0; > > > > > > ; > > > >finish_after_unrolled_loop: > switch (count) { ># 847 "numpy/core/src/multiarray/einsum.c.src" > case 6+1: > accum += (data0[6]); ># 847 "numpy/core/src/multiarray/einsum.c.src" > case 5+1: > accum += (data0[5]); ># 847 "numpy/core/src/multiarray/einsum.c.src" > case 4+1: > accum += (data0[4]); ># 847 "numpy/core/src/multiarray/einsum.c.src" > case 3+1: > accum += (data0[3]); ># 847 "numpy/core/src/multiarray/einsum.c.src" > case 2+1: > accum += (data0[2]); ># 847 "numpy/core/src/multiarray/einsum.c.src" > case 1+1: > accum += (data0[1]); ># 847 "numpy/core/src/multiarray/einsum.c.src" > case 0+1: > accum += (data0[0]); > > case 0: > *(npy_longlong *)dataptr[2] += (accum * value1); > return; > } ># 894 "numpy/core/src/multiarray/einsum.c.src" > while (count >= 8) { > count -= 8; ># 906 "numpy/core/src/multiarray/einsum.c.src" > accum += (data0[0]); ># 906 "numpy/core/src/multiarray/einsum.c.src" > accum += (data0[1]); ># 906 "numpy/core/src/multiarray/einsum.c.src" > accum += (data0[2]); ># 906 "numpy/core/src/multiarray/einsum.c.src" > accum += (data0[3]); ># 906 "numpy/core/src/multiarray/einsum.c.src" > accum += (data0[4]); ># 906 "numpy/core/src/multiarray/einsum.c.src" > accum += (data0[5]); ># 906 "numpy/core/src/multiarray/einsum.c.src" > accum += (data0[6]); ># 906 "numpy/core/src/multiarray/einsum.c.src" > accum += (data0[7]); > > > data0 += 8; > } ># 922 "numpy/core/src/multiarray/einsum.c.src" > goto finish_after_unrolled_loop; >} ># 1455 "numpy/core/src/multiarray/einsum.c.src" >static void >longlong_sum_of_products_outstride0_two(int nop, char **dataptr, > npy_intp *strides, npy_intp count) >{ > > > > npy_longlong accum = 0; > > > > char *data0 = dataptr[0]; > npy_intp stride0 = strides[0]; > > > char *data1 = dataptr[1]; > npy_intp stride1 = strides[1]; > > > > > > > ; > > > while (count--) { > > > > > > accum += (*(npy_longlong *)data0) * > (*(npy_longlong *)data1); > data0 += stride0; > data1 += stride1; ># 1539 "numpy/core/src/multiarray/einsum.c.src" > } ># 1551 "numpy/core/src/multiarray/einsum.c.src" > *((npy_longlong *)dataptr[2]) = (accum + > (*((npy_longlong *)dataptr[2]))); > > > > > > >} ># 107 "numpy/core/src/multiarray/einsum.c.src" >static void >longlong_sum_of_products_three(int nop, char **dataptr, > npy_intp *strides, npy_intp count) >{ > > char *data0 = dataptr[0]; > npy_intp stride0 = strides[0]; > > > char *data1 = dataptr[1]; > npy_intp stride1 = strides[1]; > > > char *data2 = dataptr[2]; > npy_intp stride2 = strides[2]; > > > char *data_out = dataptr[3]; > npy_intp stride_out = strides[3]; > > > ; > > while (count--) { ># 145 "numpy/core/src/multiarray/einsum.c.src" > *(npy_longlong *)data_out = ((*(npy_longlong *)data0) * > (*(npy_longlong *)data1) * > (*(npy_longlong *)data2) + > (*(npy_longlong *)data_out)); > data0 += stride0; > data1 += stride1; > data2 += stride2; > data_out += stride_out; ># 201 "numpy/core/src/multiarray/einsum.c.src" > } >} ># 1542 "numpy/core/src/multiarray/einsum.c.src" >static void >longlong_sum_of_products_contig_three(int nop, char **dataptr, > npy_intp *(__NPY_UNUSED_TAGGEDstrides) __attribute__ ((__unused__)), npy_intp count) >{ > npy_longlong *data0 = (npy_longlong *)dataptr[0]; > npy_longlong *data1 = (npy_longlong *)dataptr[1]; > npy_longlong *data2 = (npy_longlong *)dataptr[2]; > npy_longlong *data_out = (npy_longlong *)dataptr[3]; > > > while (count >= 8) { > count -= 8; ># 943 "numpy/core/src/multiarray/einsum.c.src" > data_out[0] = ((data0[0]) * > (data1[0]) * > (data2[0]) + > (data_out[0])); ># 943 "numpy/core/src/multiarray/einsum.c.src" > data_out[1] = ((data0[1]) * > (data1[1]) * > (data2[1]) + > (data_out[1])); ># 943 "numpy/core/src/multiarray/einsum.c.src" > data_out[2] = ((data0[2]) * > (data1[2]) * > (data2[2]) + > (data_out[2])); ># 943 "numpy/core/src/multiarray/einsum.c.src" > data_out[3] = ((data0[3]) * > (data1[3]) * > (data2[3]) + > (data_out[3])); ># 943 "numpy/core/src/multiarray/einsum.c.src" > data_out[4] = ((data0[4]) * > (data1[4]) * > (data2[4]) + > (data_out[4])); ># 943 "numpy/core/src/multiarray/einsum.c.src" > data_out[5] = ((data0[5]) * > (data1[5]) * > (data2[5]) + > (data_out[5])); ># 943 "numpy/core/src/multiarray/einsum.c.src" > data_out[6] = ((data0[6]) * > (data1[6]) * > (data2[6]) + > (data_out[6])); ># 943 "numpy/core/src/multiarray/einsum.c.src" > data_out[7] = ((data0[7]) * > (data1[7]) * > (data2[7]) + > (data_out[7])); > > data0 += 8; > data1 += 8; > data_out += 8; > } ># 958 "numpy/core/src/multiarray/einsum.c.src" > if (count-- == 0) { > return; > } > data_out[0] = ((data0[0]) * > (data1[0]) * > (data2[0]) + > (data_out[0])); ># 958 "numpy/core/src/multiarray/einsum.c.src" > if (count-- == 0) { > return; > } > data_out[1] = ((data0[1]) * > (data1[1]) * > (data2[1]) + > (data_out[1])); ># 958 "numpy/core/src/multiarray/einsum.c.src" > if (count-- == 0) { > return; > } > data_out[2] = ((data0[2]) * > (data1[2]) * > (data2[2]) + > (data_out[2])); ># 958 "numpy/core/src/multiarray/einsum.c.src" > if (count-- == 0) { > return; > } > data_out[3] = ((data0[3]) * > (data1[3]) * > (data2[3]) + > (data_out[3])); ># 958 "numpy/core/src/multiarray/einsum.c.src" > if (count-- == 0) { > return; > } > data_out[4] = ((data0[4]) * > (data1[4]) * > (data2[4]) + > (data_out[4])); ># 958 "numpy/core/src/multiarray/einsum.c.src" > if (count-- == 0) { > return; > } > data_out[5] = ((data0[5]) * > (data1[5]) * > (data2[5]) + > (data_out[5])); ># 958 "numpy/core/src/multiarray/einsum.c.src" > if (count-- == 0) { > return; > } > data_out[6] = ((data0[6]) * > (data1[6]) * > (data2[6]) + > (data_out[6])); ># 958 "numpy/core/src/multiarray/einsum.c.src" > if (count-- == 0) { > return; > } > data_out[7] = ((data0[7]) * > (data1[7]) * > (data2[7]) + > (data_out[7])); > >} ># 1354 "numpy/core/src/multiarray/einsum.c.src" >static void >longlong_sum_of_products_outstride0_three(int nop, char **dataptr, > npy_intp *strides, npy_intp count) >{ > > > > npy_longlong accum = 0; > > > > char *data0 = dataptr[0]; > npy_intp stride0 = strides[0]; > > > char *data1 = dataptr[1]; > npy_intp stride1 = strides[1]; > > > char *data2 = dataptr[2]; > npy_intp stride2 = strides[2]; > > > ; > > > while (count--) { ># 1391 "numpy/core/src/multiarray/einsum.c.src" > accum += (*(npy_longlong *)data0) * > (*(npy_longlong *)data1) * > (*(npy_longlong *)data2); > data0 += stride0; > data1 += stride1; > data2 += stride2; ># 1438 "numpy/core/src/multiarray/einsum.c.src" > } ># 1450 "numpy/core/src/multiarray/einsum.c.src" > *((npy_longlong *)dataptr[3]) = (accum + > (*((npy_longlong *)dataptr[3]))); > > > > > > >} ># 107 "numpy/core/src/multiarray/einsum.c.src" >static void >longlong_sum_of_products_any(int nop, char **dataptr, > npy_intp *strides, npy_intp count) >{ ># 128 "numpy/core/src/multiarray/einsum.c.src" > ; > > while (count--) { ># 154 "numpy/core/src/multiarray/einsum.c.src" > npy_longlong temp = (*(npy_longlong *)dataptr[0]); > int i; > for (i = 1; i < nop; ++i) { > temp *= (*(npy_longlong *)dataptr[i]); > } > *(npy_longlong *)dataptr[nop] = (temp + > (*(npy_longlong *)dataptr[i])); > for (i = 0; i <= nop; ++i) { > dataptr[i] += strides[i]; > } ># 201 "numpy/core/src/multiarray/einsum.c.src" > } >} ># 1686 "numpy/core/src/multiarray/einsum.c.src" >static void >longlong_sum_of_products_contig_any(int nop, char **dataptr, > npy_intp *(__NPY_UNUSED_TAGGEDstrides) __attribute__ ((__unused__)), npy_intp count) >{ > ; > > > while (count--) { > > npy_longlong temp = (*(npy_longlong *)dataptr[0]); > int i; > for (i = 1; i < nop; ++i) { > temp *= (*(npy_longlong *)dataptr[i]); > } > *(npy_longlong *)dataptr[nop] = (temp + > (*(npy_longlong *)dataptr[i])); > for (i = 0; i <= nop; ++i) { > dataptr[i] += sizeof(npy_longlong); > } ># 1732 "numpy/core/src/multiarray/einsum.c.src" > } >} ># 2070 "numpy/core/src/multiarray/einsum.c.src" >static void >longlong_sum_of_products_outstride0_any(int nop, char **dataptr, > npy_intp *strides, npy_intp count) >{ > > > > npy_longlong accum = 0; ># 2093 "numpy/core/src/multiarray/einsum.c.src" > ; > > > while (count--) { ># 2114 "numpy/core/src/multiarray/einsum.c.src" > npy_longlong temp = (*(npy_longlong *)dataptr[0]); > int i; > for (i = 1; i < nop; ++i) { > temp *= (*(npy_longlong *)dataptr[i]); > } > accum += temp; > for (i = 0; i < nop; ++i) { > dataptr[i] += strides[i]; > } ># 2154 "numpy/core/src/multiarray/einsum.c.src" > } ># 2169 "numpy/core/src/multiarray/einsum.c.src" > *((npy_longlong *)dataptr[nop]) = (accum + > (*((npy_longlong *)dataptr[nop]))); > > > >} ># 102 "numpy/core/src/multiarray/einsum.c.src" ># 107 "numpy/core/src/multiarray/einsum.c.src" >static void >ubyte_sum_of_products_one(int nop, char **dataptr, > npy_intp *strides, npy_intp count) >{ > > char *data0 = dataptr[0]; > npy_intp stride0 = strides[0]; ># 124 "numpy/core/src/multiarray/einsum.c.src" > char *data_out = dataptr[1]; > npy_intp stride_out = strides[1]; > > > ; > > while (count--) { > > > *(npy_ubyte *)data_out = ((*(npy_ubyte *)data0) + > (*(npy_ubyte *)data_out)); > data0 += stride0; > data_out += stride_out; ># 201 "numpy/core/src/multiarray/einsum.c.src" > } >} > > > >static void >ubyte_sum_of_products_contig_one(int nop, char **dataptr, > npy_intp *(__NPY_UNUSED_TAGGEDstrides) __attribute__ ((__unused__)), npy_intp count) >{ > npy_ubyte *data0 = (npy_ubyte *)dataptr[0]; > npy_ubyte *data_out = (npy_ubyte *)dataptr[1]; > > ; > > > >finish_after_unrolled_loop: > switch (count) { ># 222 "numpy/core/src/multiarray/einsum.c.src" > case 6+1: > > data_out[6] = ((data0[6]) + > (data_out[6])); ># 222 "numpy/core/src/multiarray/einsum.c.src" > case 5+1: > > data_out[5] = ((data0[5]) + > (data_out[5])); ># 222 "numpy/core/src/multiarray/einsum.c.src" > case 4+1: > > data_out[4] = ((data0[4]) + > (data_out[4])); ># 222 "numpy/core/src/multiarray/einsum.c.src" > case 3+1: > > data_out[3] = ((data0[3]) + > (data_out[3])); ># 222 "numpy/core/src/multiarray/einsum.c.src" > case 2+1: > > data_out[2] = ((data0[2]) + > (data_out[2])); ># 222 "numpy/core/src/multiarray/einsum.c.src" > case 1+1: > > data_out[1] = ((data0[1]) + > (data_out[1])); ># 222 "numpy/core/src/multiarray/einsum.c.src" > case 0+1: > > data_out[0] = ((data0[0]) + > (data_out[0])); ># 235 "numpy/core/src/multiarray/einsum.c.src" > case 0: > return; > } > > > while (count >= 8) { > count -= 8; ># 246 "numpy/core/src/multiarray/einsum.c.src" > > data_out[0] = ((data0[0]) + > (data_out[0])); ># 246 "numpy/core/src/multiarray/einsum.c.src" > > data_out[1] = ((data0[1]) + > (data_out[1])); ># 246 "numpy/core/src/multiarray/einsum.c.src" > > data_out[2] = ((data0[2]) + > (data_out[2])); ># 246 "numpy/core/src/multiarray/einsum.c.src" > > data_out[3] = ((data0[3]) + > (data_out[3])); ># 246 "numpy/core/src/multiarray/einsum.c.src" > > data_out[4] = ((data0[4]) + > (data_out[4])); ># 246 "numpy/core/src/multiarray/einsum.c.src" > > data_out[5] = ((data0[5]) + > (data_out[5])); ># 246 "numpy/core/src/multiarray/einsum.c.src" > > data_out[6] = ((data0[6]) + > (data_out[6])); ># 246 "numpy/core/src/multiarray/einsum.c.src" > > data_out[7] = ((data0[7]) + > (data_out[7])); ># 258 "numpy/core/src/multiarray/einsum.c.src" > data0 += 8; > data_out += 8; > } > > > goto finish_after_unrolled_loop; >} ># 1568 "numpy/core/src/multiarray/einsum.c.src" >static void >ubyte_sum_of_products_contig_outstride0_one(int nop, char **dataptr, > npy_intp *strides, npy_intp count) >{ > > > > > npy_ubyte accum = 0; > npy_ubyte *data0 = (npy_ubyte *)dataptr[0]; ># 1587 "numpy/core/src/multiarray/einsum.c.src" > ; > > > >finish_after_unrolled_loop: > switch (count) { ># 1051 "numpy/core/src/multiarray/einsum.c.src" > case 6+1: > > accum += (data0[6]); ># 1051 "numpy/core/src/multiarray/einsum.c.src" > case 5+1: > > accum += (data0[5]); ># 1051 "numpy/core/src/multiarray/einsum.c.src" > case 4+1: > > accum += (data0[4]); ># 1051 "numpy/core/src/multiarray/einsum.c.src" > case 3+1: > > accum += (data0[3]); ># 1051 "numpy/core/src/multiarray/einsum.c.src" > case 2+1: > > accum += (data0[2]); ># 1051 "numpy/core/src/multiarray/einsum.c.src" > case 1+1: > > accum += (data0[1]); ># 1051 "numpy/core/src/multiarray/einsum.c.src" > case 0+1: > > accum += (data0[0]); > > > > > > case 0: > > > > > *((npy_ubyte *)dataptr[1]) = (accum + > (*((npy_ubyte *)dataptr[1]))); > > return; > } ># 1157 "numpy/core/src/multiarray/einsum.c.src" > while (count >= 8) { > count -= 8; ># 1164 "numpy/core/src/multiarray/einsum.c.src" > > accum += (data0[0]); ># 1164 "numpy/core/src/multiarray/einsum.c.src" > > accum += (data0[1]); ># 1164 "numpy/core/src/multiarray/einsum.c.src" > > accum += (data0[2]); ># 1164 "numpy/core/src/multiarray/einsum.c.src" > > accum += (data0[3]); ># 1164 "numpy/core/src/multiarray/einsum.c.src" > > accum += (data0[4]); ># 1164 "numpy/core/src/multiarray/einsum.c.src" > > accum += (data0[5]); ># 1164 "numpy/core/src/multiarray/einsum.c.src" > > accum += (data0[6]); ># 1164 "numpy/core/src/multiarray/einsum.c.src" > > accum += (data0[7]); ># 1174 "numpy/core/src/multiarray/einsum.c.src" > data0 += 8; > > > > } ># 1195 "numpy/core/src/multiarray/einsum.c.src" > goto finish_after_unrolled_loop; >} > > > >static void >ubyte_sum_of_products_outstride0_one(int nop, char **dataptr, > npy_intp *strides, npy_intp count) >{ > > > > npy_ubyte accum = 0; > > > > char *data0 = dataptr[0]; > npy_intp stride0 = strides[0]; ># 1223 "numpy/core/src/multiarray/einsum.c.src" > ; > > > while (count--) { > > > accum += (*(npy_ubyte *)data0); > data0 += stride0; ># 1284 "numpy/core/src/multiarray/einsum.c.src" > } ># 1296 "numpy/core/src/multiarray/einsum.c.src" > *((npy_ubyte *)dataptr[1]) = (accum + > (*((npy_ubyte *)dataptr[1]))); > > > > > > >} ># 107 "numpy/core/src/multiarray/einsum.c.src" >static void >ubyte_sum_of_products_two(int nop, char **dataptr, > npy_intp *strides, npy_intp count) >{ > > char *data0 = dataptr[0]; > npy_intp stride0 = strides[0]; > > > char *data1 = dataptr[1]; > npy_intp stride1 = strides[1]; > > > > > > > char *data_out = dataptr[2]; > npy_intp stride_out = strides[2]; > > > ; > > while (count--) { > > > > > > > > *(npy_ubyte *)data_out = ((*(npy_ubyte *)data0) * > (*(npy_ubyte *)data1) + > (*(npy_ubyte *)data_out)); > data0 += stride0; > data1 += stride1; > data_out += stride_out; ># 201 "numpy/core/src/multiarray/einsum.c.src" > } >} ># 439 "numpy/core/src/multiarray/einsum.c.src" >static void >ubyte_sum_of_products_contig_two(int nop, char **dataptr, > npy_intp *(__NPY_UNUSED_TAGGEDstrides) __attribute__ ((__unused__)), npy_intp count) >{ > npy_ubyte *data0 = (npy_ubyte *)dataptr[0]; > npy_ubyte *data1 = (npy_ubyte *)dataptr[1]; > npy_ubyte *data_out = (npy_ubyte *)dataptr[2]; > > > > > > ; > > > >finish_after_unrolled_loop: > switch (count) { ># 289 "numpy/core/src/multiarray/einsum.c.src" > case 6+1: > data_out[6] = ((data0[6]) * > (data1[6]) + > (data_out[6])); ># 289 "numpy/core/src/multiarray/einsum.c.src" > case 5+1: > data_out[5] = ((data0[5]) * > (data1[5]) + > (data_out[5])); ># 289 "numpy/core/src/multiarray/einsum.c.src" > case 4+1: > data_out[4] = ((data0[4]) * > (data1[4]) + > (data_out[4])); ># 289 "numpy/core/src/multiarray/einsum.c.src" > case 3+1: > data_out[3] = ((data0[3]) * > (data1[3]) + > (data_out[3])); ># 289 "numpy/core/src/multiarray/einsum.c.src" > case 2+1: > data_out[2] = ((data0[2]) * > (data1[2]) + > (data_out[2])); ># 289 "numpy/core/src/multiarray/einsum.c.src" > case 1+1: > data_out[1] = ((data0[1]) * > (data1[1]) + > (data_out[1])); ># 289 "numpy/core/src/multiarray/einsum.c.src" > case 0+1: > data_out[0] = ((data0[0]) * > (data1[0]) + > (data_out[0])); > > case 0: > return; > } ># 327 "numpy/core/src/multiarray/einsum.c.src" > while (count >= 8) { > count -= 8; ># 339 "numpy/core/src/multiarray/einsum.c.src" > data_out[0] = ((data0[0]) * > (data1[0]) + > (data_out[0])); ># 339 "numpy/core/src/multiarray/einsum.c.src" > data_out[1] = ((data0[1]) * > (data1[1]) + > (data_out[1])); ># 339 "numpy/core/src/multiarray/einsum.c.src" > data_out[2] = ((data0[2]) * > (data1[2]) + > (data_out[2])); ># 339 "numpy/core/src/multiarray/einsum.c.src" > data_out[3] = ((data0[3]) * > (data1[3]) + > (data_out[3])); ># 339 "numpy/core/src/multiarray/einsum.c.src" > data_out[4] = ((data0[4]) * > (data1[4]) + > (data_out[4])); ># 339 "numpy/core/src/multiarray/einsum.c.src" > data_out[5] = ((data0[5]) * > (data1[5]) + > (data_out[5])); ># 339 "numpy/core/src/multiarray/einsum.c.src" > data_out[6] = ((data0[6]) * > (data1[6]) + > (data_out[6])); ># 339 "numpy/core/src/multiarray/einsum.c.src" > data_out[7] = ((data0[7]) * > (data1[7]) + > (data_out[7])); > > > data0 += 8; > data1 += 8; > data_out += 8; > } > > > goto finish_after_unrolled_loop; >} > > >static void >ubyte_sum_of_products_stride0_contig_outcontig_two(int nop, char **dataptr, > npy_intp *(__NPY_UNUSED_TAGGEDstrides) __attribute__ ((__unused__)), npy_intp count) >{ > npy_ubyte value0 = (*(npy_ubyte *)dataptr[0]); > npy_ubyte *data1 = (npy_ubyte *)dataptr[1]; > npy_ubyte *data_out = (npy_ubyte *)dataptr[2]; > > > > > > > > ; > > > >finish_after_unrolled_loop: > switch (count) { ># 377 "numpy/core/src/multiarray/einsum.c.src" > case 6+1: > data_out[6] = (value0 * > (data1[6]) + > (data_out[6])); ># 377 "numpy/core/src/multiarray/einsum.c.src" > case 5+1: > data_out[5] = (value0 * > (data1[5]) + > (data_out[5])); ># 377 "numpy/core/src/multiarray/einsum.c.src" > case 4+1: > data_out[4] = (value0 * > (data1[4]) + > (data_out[4])); ># 377 "numpy/core/src/multiarray/einsum.c.src" > case 3+1: > data_out[3] = (value0 * > (data1[3]) + > (data_out[3])); ># 377 "numpy/core/src/multiarray/einsum.c.src" > case 2+1: > data_out[2] = (value0 * > (data1[2]) + > (data_out[2])); ># 377 "numpy/core/src/multiarray/einsum.c.src" > case 1+1: > data_out[1] = (value0 * > (data1[1]) + > (data_out[1])); ># 377 "numpy/core/src/multiarray/einsum.c.src" > case 0+1: > data_out[0] = (value0 * > (data1[0]) + > (data_out[0])); > > case 0: > return; > } ># 461 "numpy/core/src/multiarray/einsum.c.src" > while (count >= 8) { > count -= 8; ># 468 "numpy/core/src/multiarray/einsum.c.src" > data_out[0] = (value0 * > (data1[0]) + > (data_out[0])); ># 468 "numpy/core/src/multiarray/einsum.c.src" > data_out[1] = (value0 * > (data1[1]) + > (data_out[1])); ># 468 "numpy/core/src/multiarray/einsum.c.src" > data_out[2] = (value0 * > (data1[2]) + > (data_out[2])); ># 468 "numpy/core/src/multiarray/einsum.c.src" > data_out[3] = (value0 * > (data1[3]) + > (data_out[3])); ># 468 "numpy/core/src/multiarray/einsum.c.src" > data_out[4] = (value0 * > (data1[4]) + > (data_out[4])); ># 468 "numpy/core/src/multiarray/einsum.c.src" > data_out[5] = (value0 * > (data1[5]) + > (data_out[5])); ># 468 "numpy/core/src/multiarray/einsum.c.src" > data_out[6] = (value0 * > (data1[6]) + > (data_out[6])); ># 468 "numpy/core/src/multiarray/einsum.c.src" > data_out[7] = (value0 * > (data1[7]) + > (data_out[7])); > > > data1 += 8; > data_out += 8; > } > > > if (count > 0) { > goto finish_after_unrolled_loop; > } >} > >static void >ubyte_sum_of_products_contig_stride0_outcontig_two(int nop, char **dataptr, > npy_intp *(__NPY_UNUSED_TAGGEDstrides) __attribute__ ((__unused__)), npy_intp count) >{ > npy_ubyte *data0 = (npy_ubyte *)dataptr[0]; > npy_ubyte value1 = (*(npy_ubyte *)dataptr[1]); > npy_ubyte *data_out = (npy_ubyte *)dataptr[2]; > > > > > > ; > > > >finish_after_unrolled_loop: > switch (count) { ># 504 "numpy/core/src/multiarray/einsum.c.src" > case 6+1: > data_out[6] = ((data0[6])* > value1 + > (data_out[6])); ># 504 "numpy/core/src/multiarray/einsum.c.src" > case 5+1: > data_out[5] = ((data0[5])* > value1 + > (data_out[5])); ># 504 "numpy/core/src/multiarray/einsum.c.src" > case 4+1: > data_out[4] = ((data0[4])* > value1 + > (data_out[4])); ># 504 "numpy/core/src/multiarray/einsum.c.src" > case 3+1: > data_out[3] = ((data0[3])* > value1 + > (data_out[3])); ># 504 "numpy/core/src/multiarray/einsum.c.src" > case 2+1: > data_out[2] = ((data0[2])* > value1 + > (data_out[2])); ># 504 "numpy/core/src/multiarray/einsum.c.src" > case 1+1: > data_out[1] = ((data0[1])* > value1 + > (data_out[1])); ># 504 "numpy/core/src/multiarray/einsum.c.src" > case 0+1: > data_out[0] = ((data0[0])* > value1 + > (data_out[0])); > > case 0: > return; > } ># 542 "numpy/core/src/multiarray/einsum.c.src" > while (count >= 8) { > count -= 8; ># 554 "numpy/core/src/multiarray/einsum.c.src" > data_out[0] = ((data0[0])* > value1 + > (data_out[0])); ># 554 "numpy/core/src/multiarray/einsum.c.src" > data_out[1] = ((data0[1])* > value1 + > (data_out[1])); ># 554 "numpy/core/src/multiarray/einsum.c.src" > data_out[2] = ((data0[2])* > value1 + > (data_out[2])); ># 554 "numpy/core/src/multiarray/einsum.c.src" > data_out[3] = ((data0[3])* > value1 + > (data_out[3])); ># 554 "numpy/core/src/multiarray/einsum.c.src" > data_out[4] = ((data0[4])* > value1 + > (data_out[4])); ># 554 "numpy/core/src/multiarray/einsum.c.src" > data_out[5] = ((data0[5])* > value1 + > (data_out[5])); ># 554 "numpy/core/src/multiarray/einsum.c.src" > data_out[6] = ((data0[6])* > value1 + > (data_out[6])); ># 554 "numpy/core/src/multiarray/einsum.c.src" > data_out[7] = ((data0[7])* > value1 + > (data_out[7])); > > > data0 += 8; > data_out += 8; > } > > > goto finish_after_unrolled_loop; >} > >static void >ubyte_sum_of_products_contig_contig_outstride0_two(int nop, char **dataptr, > npy_intp *(__NPY_UNUSED_TAGGEDstrides) __attribute__ ((__unused__)), npy_intp count) >{ > npy_ubyte *data0 = (npy_ubyte *)dataptr[0]; > npy_ubyte *data1 = (npy_ubyte *)dataptr[1]; > npy_ubyte accum = 0; > > > > > > > > ; > > > >finish_after_unrolled_loop: > switch (count) { ># 590 "numpy/core/src/multiarray/einsum.c.src" > case 6+1: > accum += (data0[6]) * (data1[6]); ># 590 "numpy/core/src/multiarray/einsum.c.src" > case 5+1: > accum += (data0[5]) * (data1[5]); ># 590 "numpy/core/src/multiarray/einsum.c.src" > case 4+1: > accum += (data0[4]) * (data1[4]); ># 590 "numpy/core/src/multiarray/einsum.c.src" > case 3+1: > accum += (data0[3]) * (data1[3]); ># 590 "numpy/core/src/multiarray/einsum.c.src" > case 2+1: > accum += (data0[2]) * (data1[2]); ># 590 "numpy/core/src/multiarray/einsum.c.src" > case 1+1: > accum += (data0[1]) * (data1[1]); ># 590 "numpy/core/src/multiarray/einsum.c.src" > case 0+1: > accum += (data0[0]) * (data1[0]); > > case 0: > *(npy_ubyte *)dataptr[2] += (accum); > return; > } ># 695 "numpy/core/src/multiarray/einsum.c.src" > while (count >= 8) { > count -= 8; ># 702 "numpy/core/src/multiarray/einsum.c.src" > accum += (data0[0]) * (data1[0]); ># 702 "numpy/core/src/multiarray/einsum.c.src" > accum += (data0[1]) * (data1[1]); ># 702 "numpy/core/src/multiarray/einsum.c.src" > accum += (data0[2]) * (data1[2]); ># 702 "numpy/core/src/multiarray/einsum.c.src" > accum += (data0[3]) * (data1[3]); ># 702 "numpy/core/src/multiarray/einsum.c.src" > accum += (data0[4]) * (data1[4]); ># 702 "numpy/core/src/multiarray/einsum.c.src" > accum += (data0[5]) * (data1[5]); ># 702 "numpy/core/src/multiarray/einsum.c.src" > accum += (data0[6]) * (data1[6]); ># 702 "numpy/core/src/multiarray/einsum.c.src" > accum += (data0[7]) * (data1[7]); > > > data0 += 8; > data1 += 8; > } ># 724 "numpy/core/src/multiarray/einsum.c.src" > goto finish_after_unrolled_loop; >} > >static void >ubyte_sum_of_products_stride0_contig_outstride0_two(int nop, char **dataptr, > npy_intp *(__NPY_UNUSED_TAGGEDstrides) __attribute__ ((__unused__)), npy_intp count) >{ > npy_ubyte value0 = (*(npy_ubyte *)dataptr[0]); > npy_ubyte *data1 = (npy_ubyte *)dataptr[1]; > npy_ubyte accum = 0; > > > > > > ; > > > >finish_after_unrolled_loop: > switch (count) { ># 748 "numpy/core/src/multiarray/einsum.c.src" > case 6+1: > accum += (data1[6]); ># 748 "numpy/core/src/multiarray/einsum.c.src" > case 5+1: > accum += (data1[5]); ># 748 "numpy/core/src/multiarray/einsum.c.src" > case 4+1: > accum += (data1[4]); ># 748 "numpy/core/src/multiarray/einsum.c.src" > case 3+1: > accum += (data1[3]); ># 748 "numpy/core/src/multiarray/einsum.c.src" > case 2+1: > accum += (data1[2]); ># 748 "numpy/core/src/multiarray/einsum.c.src" > case 1+1: > accum += (data1[1]); ># 748 "numpy/core/src/multiarray/einsum.c.src" > case 0+1: > accum += (data1[0]); > > case 0: > *(npy_ubyte *)dataptr[2] += (value0 * accum); > return; > } ># 795 "numpy/core/src/multiarray/einsum.c.src" > while (count >= 8) { > count -= 8; ># 807 "numpy/core/src/multiarray/einsum.c.src" > accum += (data1[0]); ># 807 "numpy/core/src/multiarray/einsum.c.src" > accum += (data1[1]); ># 807 "numpy/core/src/multiarray/einsum.c.src" > accum += (data1[2]); ># 807 "numpy/core/src/multiarray/einsum.c.src" > accum += (data1[3]); ># 807 "numpy/core/src/multiarray/einsum.c.src" > accum += (data1[4]); ># 807 "numpy/core/src/multiarray/einsum.c.src" > accum += (data1[5]); ># 807 "numpy/core/src/multiarray/einsum.c.src" > accum += (data1[6]); ># 807 "numpy/core/src/multiarray/einsum.c.src" > accum += (data1[7]); > > > data1 += 8; > } ># 823 "numpy/core/src/multiarray/einsum.c.src" > goto finish_after_unrolled_loop; >} > >static void >ubyte_sum_of_products_contig_stride0_outstride0_two(int nop, char **dataptr, > npy_intp *(__NPY_UNUSED_TAGGEDstrides) __attribute__ ((__unused__)), npy_intp count) >{ > npy_ubyte *data0 = (npy_ubyte *)dataptr[0]; > npy_ubyte value1 = (*(npy_ubyte *)dataptr[1]); > npy_ubyte accum = 0; > > > > > > ; > > > >finish_after_unrolled_loop: > switch (count) { ># 847 "numpy/core/src/multiarray/einsum.c.src" > case 6+1: > accum += (data0[6]); ># 847 "numpy/core/src/multiarray/einsum.c.src" > case 5+1: > accum += (data0[5]); ># 847 "numpy/core/src/multiarray/einsum.c.src" > case 4+1: > accum += (data0[4]); ># 847 "numpy/core/src/multiarray/einsum.c.src" > case 3+1: > accum += (data0[3]); ># 847 "numpy/core/src/multiarray/einsum.c.src" > case 2+1: > accum += (data0[2]); ># 847 "numpy/core/src/multiarray/einsum.c.src" > case 1+1: > accum += (data0[1]); ># 847 "numpy/core/src/multiarray/einsum.c.src" > case 0+1: > accum += (data0[0]); > > case 0: > *(npy_ubyte *)dataptr[2] += (accum * value1); > return; > } ># 894 "numpy/core/src/multiarray/einsum.c.src" > while (count >= 8) { > count -= 8; ># 906 "numpy/core/src/multiarray/einsum.c.src" > accum += (data0[0]); ># 906 "numpy/core/src/multiarray/einsum.c.src" > accum += (data0[1]); ># 906 "numpy/core/src/multiarray/einsum.c.src" > accum += (data0[2]); ># 906 "numpy/core/src/multiarray/einsum.c.src" > accum += (data0[3]); ># 906 "numpy/core/src/multiarray/einsum.c.src" > accum += (data0[4]); ># 906 "numpy/core/src/multiarray/einsum.c.src" > accum += (data0[5]); ># 906 "numpy/core/src/multiarray/einsum.c.src" > accum += (data0[6]); ># 906 "numpy/core/src/multiarray/einsum.c.src" > accum += (data0[7]); > > > data0 += 8; > } ># 922 "numpy/core/src/multiarray/einsum.c.src" > goto finish_after_unrolled_loop; >} ># 1455 "numpy/core/src/multiarray/einsum.c.src" >static void >ubyte_sum_of_products_outstride0_two(int nop, char **dataptr, > npy_intp *strides, npy_intp count) >{ > > > > npy_ubyte accum = 0; > > > > char *data0 = dataptr[0]; > npy_intp stride0 = strides[0]; > > > char *data1 = dataptr[1]; > npy_intp stride1 = strides[1]; > > > > > > > ; > > > while (count--) { > > > > > > accum += (*(npy_ubyte *)data0) * > (*(npy_ubyte *)data1); > data0 += stride0; > data1 += stride1; ># 1539 "numpy/core/src/multiarray/einsum.c.src" > } ># 1551 "numpy/core/src/multiarray/einsum.c.src" > *((npy_ubyte *)dataptr[2]) = (accum + > (*((npy_ubyte *)dataptr[2]))); > > > > > > >} ># 107 "numpy/core/src/multiarray/einsum.c.src" >static void >ubyte_sum_of_products_three(int nop, char **dataptr, > npy_intp *strides, npy_intp count) >{ > > char *data0 = dataptr[0]; > npy_intp stride0 = strides[0]; > > > char *data1 = dataptr[1]; > npy_intp stride1 = strides[1]; > > > char *data2 = dataptr[2]; > npy_intp stride2 = strides[2]; > > > char *data_out = dataptr[3]; > npy_intp stride_out = strides[3]; > > > ; > > while (count--) { ># 145 "numpy/core/src/multiarray/einsum.c.src" > *(npy_ubyte *)data_out = ((*(npy_ubyte *)data0) * > (*(npy_ubyte *)data1) * > (*(npy_ubyte *)data2) + > (*(npy_ubyte *)data_out)); > data0 += stride0; > data1 += stride1; > data2 += stride2; > data_out += stride_out; ># 201 "numpy/core/src/multiarray/einsum.c.src" > } >} ># 1542 "numpy/core/src/multiarray/einsum.c.src" >static void >ubyte_sum_of_products_contig_three(int nop, char **dataptr, > npy_intp *(__NPY_UNUSED_TAGGEDstrides) __attribute__ ((__unused__)), npy_intp count) >{ > npy_ubyte *data0 = (npy_ubyte *)dataptr[0]; > npy_ubyte *data1 = (npy_ubyte *)dataptr[1]; > npy_ubyte *data2 = (npy_ubyte *)dataptr[2]; > npy_ubyte *data_out = (npy_ubyte *)dataptr[3]; > > > while (count >= 8) { > count -= 8; ># 943 "numpy/core/src/multiarray/einsum.c.src" > data_out[0] = ((data0[0]) * > (data1[0]) * > (data2[0]) + > (data_out[0])); ># 943 "numpy/core/src/multiarray/einsum.c.src" > data_out[1] = ((data0[1]) * > (data1[1]) * > (data2[1]) + > (data_out[1])); ># 943 "numpy/core/src/multiarray/einsum.c.src" > data_out[2] = ((data0[2]) * > (data1[2]) * > (data2[2]) + > (data_out[2])); ># 943 "numpy/core/src/multiarray/einsum.c.src" > data_out[3] = ((data0[3]) * > (data1[3]) * > (data2[3]) + > (data_out[3])); ># 943 "numpy/core/src/multiarray/einsum.c.src" > data_out[4] = ((data0[4]) * > (data1[4]) * > (data2[4]) + > (data_out[4])); ># 943 "numpy/core/src/multiarray/einsum.c.src" > data_out[5] = ((data0[5]) * > (data1[5]) * > (data2[5]) + > (data_out[5])); ># 943 "numpy/core/src/multiarray/einsum.c.src" > data_out[6] = ((data0[6]) * > (data1[6]) * > (data2[6]) + > (data_out[6])); ># 943 "numpy/core/src/multiarray/einsum.c.src" > data_out[7] = ((data0[7]) * > (data1[7]) * > (data2[7]) + > (data_out[7])); > > data0 += 8; > data1 += 8; > data_out += 8; > } ># 958 "numpy/core/src/multiarray/einsum.c.src" > if (count-- == 0) { > return; > } > data_out[0] = ((data0[0]) * > (data1[0]) * > (data2[0]) + > (data_out[0])); ># 958 "numpy/core/src/multiarray/einsum.c.src" > if (count-- == 0) { > return; > } > data_out[1] = ((data0[1]) * > (data1[1]) * > (data2[1]) + > (data_out[1])); ># 958 "numpy/core/src/multiarray/einsum.c.src" > if (count-- == 0) { > return; > } > data_out[2] = ((data0[2]) * > (data1[2]) * > (data2[2]) + > (data_out[2])); ># 958 "numpy/core/src/multiarray/einsum.c.src" > if (count-- == 0) { > return; > } > data_out[3] = ((data0[3]) * > (data1[3]) * > (data2[3]) + > (data_out[3])); ># 958 "numpy/core/src/multiarray/einsum.c.src" > if (count-- == 0) { > return; > } > data_out[4] = ((data0[4]) * > (data1[4]) * > (data2[4]) + > (data_out[4])); ># 958 "numpy/core/src/multiarray/einsum.c.src" > if (count-- == 0) { > return; > } > data_out[5] = ((data0[5]) * > (data1[5]) * > (data2[5]) + > (data_out[5])); ># 958 "numpy/core/src/multiarray/einsum.c.src" > if (count-- == 0) { > return; > } > data_out[6] = ((data0[6]) * > (data1[6]) * > (data2[6]) + > (data_out[6])); ># 958 "numpy/core/src/multiarray/einsum.c.src" > if (count-- == 0) { > return; > } > data_out[7] = ((data0[7]) * > (data1[7]) * > (data2[7]) + > (data_out[7])); > >} ># 1354 "numpy/core/src/multiarray/einsum.c.src" >static void >ubyte_sum_of_products_outstride0_three(int nop, char **dataptr, > npy_intp *strides, npy_intp count) >{ > > > > npy_ubyte accum = 0; > > > > char *data0 = dataptr[0]; > npy_intp stride0 = strides[0]; > > > char *data1 = dataptr[1]; > npy_intp stride1 = strides[1]; > > > char *data2 = dataptr[2]; > npy_intp stride2 = strides[2]; > > > ; > > > while (count--) { ># 1391 "numpy/core/src/multiarray/einsum.c.src" > accum += (*(npy_ubyte *)data0) * > (*(npy_ubyte *)data1) * > (*(npy_ubyte *)data2); > data0 += stride0; > data1 += stride1; > data2 += stride2; ># 1438 "numpy/core/src/multiarray/einsum.c.src" > } ># 1450 "numpy/core/src/multiarray/einsum.c.src" > *((npy_ubyte *)dataptr[3]) = (accum + > (*((npy_ubyte *)dataptr[3]))); > > > > > > >} ># 107 "numpy/core/src/multiarray/einsum.c.src" >static void >ubyte_sum_of_products_any(int nop, char **dataptr, > npy_intp *strides, npy_intp count) >{ ># 128 "numpy/core/src/multiarray/einsum.c.src" > ; > > while (count--) { ># 154 "numpy/core/src/multiarray/einsum.c.src" > npy_ubyte temp = (*(npy_ubyte *)dataptr[0]); > int i; > for (i = 1; i < nop; ++i) { > temp *= (*(npy_ubyte *)dataptr[i]); > } > *(npy_ubyte *)dataptr[nop] = (temp + > (*(npy_ubyte *)dataptr[i])); > for (i = 0; i <= nop; ++i) { > dataptr[i] += strides[i]; > } ># 201 "numpy/core/src/multiarray/einsum.c.src" > } >} ># 1686 "numpy/core/src/multiarray/einsum.c.src" >static void >ubyte_sum_of_products_contig_any(int nop, char **dataptr, > npy_intp *(__NPY_UNUSED_TAGGEDstrides) __attribute__ ((__unused__)), npy_intp count) >{ > ; > > > while (count--) { > > npy_ubyte temp = (*(npy_ubyte *)dataptr[0]); > int i; > for (i = 1; i < nop; ++i) { > temp *= (*(npy_ubyte *)dataptr[i]); > } > *(npy_ubyte *)dataptr[nop] = (temp + > (*(npy_ubyte *)dataptr[i])); > for (i = 0; i <= nop; ++i) { > dataptr[i] += sizeof(npy_ubyte); > } ># 1732 "numpy/core/src/multiarray/einsum.c.src" > } >} ># 2070 "numpy/core/src/multiarray/einsum.c.src" >static void >ubyte_sum_of_products_outstride0_any(int nop, char **dataptr, > npy_intp *strides, npy_intp count) >{ > > > > npy_ubyte accum = 0; ># 2093 "numpy/core/src/multiarray/einsum.c.src" > ; > > > while (count--) { ># 2114 "numpy/core/src/multiarray/einsum.c.src" > npy_ubyte temp = (*(npy_ubyte *)dataptr[0]); > int i; > for (i = 1; i < nop; ++i) { > temp *= (*(npy_ubyte *)dataptr[i]); > } > accum += temp; > for (i = 0; i < nop; ++i) { > dataptr[i] += strides[i]; > } ># 2154 "numpy/core/src/multiarray/einsum.c.src" > } ># 2169 "numpy/core/src/multiarray/einsum.c.src" > *((npy_ubyte *)dataptr[nop]) = (accum + > (*((npy_ubyte *)dataptr[nop]))); > > > >} ># 102 "numpy/core/src/multiarray/einsum.c.src" ># 107 "numpy/core/src/multiarray/einsum.c.src" >static void >ushort_sum_of_products_one(int nop, char **dataptr, > npy_intp *strides, npy_intp count) >{ > > char *data0 = dataptr[0]; > npy_intp stride0 = strides[0]; ># 124 "numpy/core/src/multiarray/einsum.c.src" > char *data_out = dataptr[1]; > npy_intp stride_out = strides[1]; > > > ; > > while (count--) { > > > *(npy_ushort *)data_out = ((*(npy_ushort *)data0) + > (*(npy_ushort *)data_out)); > data0 += stride0; > data_out += stride_out; ># 201 "numpy/core/src/multiarray/einsum.c.src" > } >} > > > >static void >ushort_sum_of_products_contig_one(int nop, char **dataptr, > npy_intp *(__NPY_UNUSED_TAGGEDstrides) __attribute__ ((__unused__)), npy_intp count) >{ > npy_ushort *data0 = (npy_ushort *)dataptr[0]; > npy_ushort *data_out = (npy_ushort *)dataptr[1]; > > ; > > > >finish_after_unrolled_loop: > switch (count) { ># 222 "numpy/core/src/multiarray/einsum.c.src" > case 6+1: > > data_out[6] = ((data0[6]) + > (data_out[6])); ># 222 "numpy/core/src/multiarray/einsum.c.src" > case 5+1: > > data_out[5] = ((data0[5]) + > (data_out[5])); ># 222 "numpy/core/src/multiarray/einsum.c.src" > case 4+1: > > data_out[4] = ((data0[4]) + > (data_out[4])); ># 222 "numpy/core/src/multiarray/einsum.c.src" > case 3+1: > > data_out[3] = ((data0[3]) + > (data_out[3])); ># 222 "numpy/core/src/multiarray/einsum.c.src" > case 2+1: > > data_out[2] = ((data0[2]) + > (data_out[2])); ># 222 "numpy/core/src/multiarray/einsum.c.src" > case 1+1: > > data_out[1] = ((data0[1]) + > (data_out[1])); ># 222 "numpy/core/src/multiarray/einsum.c.src" > case 0+1: > > data_out[0] = ((data0[0]) + > (data_out[0])); ># 235 "numpy/core/src/multiarray/einsum.c.src" > case 0: > return; > } > > > while (count >= 8) { > count -= 8; ># 246 "numpy/core/src/multiarray/einsum.c.src" > > data_out[0] = ((data0[0]) + > (data_out[0])); ># 246 "numpy/core/src/multiarray/einsum.c.src" > > data_out[1] = ((data0[1]) + > (data_out[1])); ># 246 "numpy/core/src/multiarray/einsum.c.src" > > data_out[2] = ((data0[2]) + > (data_out[2])); ># 246 "numpy/core/src/multiarray/einsum.c.src" > > data_out[3] = ((data0[3]) + > (data_out[3])); ># 246 "numpy/core/src/multiarray/einsum.c.src" > > data_out[4] = ((data0[4]) + > (data_out[4])); ># 246 "numpy/core/src/multiarray/einsum.c.src" > > data_out[5] = ((data0[5]) + > (data_out[5])); ># 246 "numpy/core/src/multiarray/einsum.c.src" > > data_out[6] = ((data0[6]) + > (data_out[6])); ># 246 "numpy/core/src/multiarray/einsum.c.src" > > data_out[7] = ((data0[7]) + > (data_out[7])); ># 258 "numpy/core/src/multiarray/einsum.c.src" > data0 += 8; > data_out += 8; > } > > > goto finish_after_unrolled_loop; >} ># 1568 "numpy/core/src/multiarray/einsum.c.src" >static void >ushort_sum_of_products_contig_outstride0_one(int nop, char **dataptr, > npy_intp *strides, npy_intp count) >{ > > > > > npy_ushort accum = 0; > npy_ushort *data0 = (npy_ushort *)dataptr[0]; ># 1587 "numpy/core/src/multiarray/einsum.c.src" > ; > > > >finish_after_unrolled_loop: > switch (count) { ># 1051 "numpy/core/src/multiarray/einsum.c.src" > case 6+1: > > accum += (data0[6]); ># 1051 "numpy/core/src/multiarray/einsum.c.src" > case 5+1: > > accum += (data0[5]); ># 1051 "numpy/core/src/multiarray/einsum.c.src" > case 4+1: > > accum += (data0[4]); ># 1051 "numpy/core/src/multiarray/einsum.c.src" > case 3+1: > > accum += (data0[3]); ># 1051 "numpy/core/src/multiarray/einsum.c.src" > case 2+1: > > accum += (data0[2]); ># 1051 "numpy/core/src/multiarray/einsum.c.src" > case 1+1: > > accum += (data0[1]); ># 1051 "numpy/core/src/multiarray/einsum.c.src" > case 0+1: > > accum += (data0[0]); > > > > > > case 0: > > > > > *((npy_ushort *)dataptr[1]) = (accum + > (*((npy_ushort *)dataptr[1]))); > > return; > } ># 1157 "numpy/core/src/multiarray/einsum.c.src" > while (count >= 8) { > count -= 8; ># 1164 "numpy/core/src/multiarray/einsum.c.src" > > accum += (data0[0]); ># 1164 "numpy/core/src/multiarray/einsum.c.src" > > accum += (data0[1]); ># 1164 "numpy/core/src/multiarray/einsum.c.src" > > accum += (data0[2]); ># 1164 "numpy/core/src/multiarray/einsum.c.src" > > accum += (data0[3]); ># 1164 "numpy/core/src/multiarray/einsum.c.src" > > accum += (data0[4]); ># 1164 "numpy/core/src/multiarray/einsum.c.src" > > accum += (data0[5]); ># 1164 "numpy/core/src/multiarray/einsum.c.src" > > accum += (data0[6]); ># 1164 "numpy/core/src/multiarray/einsum.c.src" > > accum += (data0[7]); ># 1174 "numpy/core/src/multiarray/einsum.c.src" > data0 += 8; > > > > } ># 1195 "numpy/core/src/multiarray/einsum.c.src" > goto finish_after_unrolled_loop; >} > > > >static void >ushort_sum_of_products_outstride0_one(int nop, char **dataptr, > npy_intp *strides, npy_intp count) >{ > > > > npy_ushort accum = 0; > > > > char *data0 = dataptr[0]; > npy_intp stride0 = strides[0]; ># 1223 "numpy/core/src/multiarray/einsum.c.src" > ; > > > while (count--) { > > > accum += (*(npy_ushort *)data0); > data0 += stride0; ># 1284 "numpy/core/src/multiarray/einsum.c.src" > } ># 1296 "numpy/core/src/multiarray/einsum.c.src" > *((npy_ushort *)dataptr[1]) = (accum + > (*((npy_ushort *)dataptr[1]))); > > > > > > >} ># 107 "numpy/core/src/multiarray/einsum.c.src" >static void >ushort_sum_of_products_two(int nop, char **dataptr, > npy_intp *strides, npy_intp count) >{ > > char *data0 = dataptr[0]; > npy_intp stride0 = strides[0]; > > > char *data1 = dataptr[1]; > npy_intp stride1 = strides[1]; > > > > > > > char *data_out = dataptr[2]; > npy_intp stride_out = strides[2]; > > > ; > > while (count--) { > > > > > > > > *(npy_ushort *)data_out = ((*(npy_ushort *)data0) * > (*(npy_ushort *)data1) + > (*(npy_ushort *)data_out)); > data0 += stride0; > data1 += stride1; > data_out += stride_out; ># 201 "numpy/core/src/multiarray/einsum.c.src" > } >} ># 439 "numpy/core/src/multiarray/einsum.c.src" >static void >ushort_sum_of_products_contig_two(int nop, char **dataptr, > npy_intp *(__NPY_UNUSED_TAGGEDstrides) __attribute__ ((__unused__)), npy_intp count) >{ > npy_ushort *data0 = (npy_ushort *)dataptr[0]; > npy_ushort *data1 = (npy_ushort *)dataptr[1]; > npy_ushort *data_out = (npy_ushort *)dataptr[2]; > > > > > > ; > > > >finish_after_unrolled_loop: > switch (count) { ># 289 "numpy/core/src/multiarray/einsum.c.src" > case 6+1: > data_out[6] = ((data0[6]) * > (data1[6]) + > (data_out[6])); ># 289 "numpy/core/src/multiarray/einsum.c.src" > case 5+1: > data_out[5] = ((data0[5]) * > (data1[5]) + > (data_out[5])); ># 289 "numpy/core/src/multiarray/einsum.c.src" > case 4+1: > data_out[4] = ((data0[4]) * > (data1[4]) + > (data_out[4])); ># 289 "numpy/core/src/multiarray/einsum.c.src" > case 3+1: > data_out[3] = ((data0[3]) * > (data1[3]) + > (data_out[3])); ># 289 "numpy/core/src/multiarray/einsum.c.src" > case 2+1: > data_out[2] = ((data0[2]) * > (data1[2]) + > (data_out[2])); ># 289 "numpy/core/src/multiarray/einsum.c.src" > case 1+1: > data_out[1] = ((data0[1]) * > (data1[1]) + > (data_out[1])); ># 289 "numpy/core/src/multiarray/einsum.c.src" > case 0+1: > data_out[0] = ((data0[0]) * > (data1[0]) + > (data_out[0])); > > case 0: > return; > } ># 327 "numpy/core/src/multiarray/einsum.c.src" > while (count >= 8) { > count -= 8; ># 339 "numpy/core/src/multiarray/einsum.c.src" > data_out[0] = ((data0[0]) * > (data1[0]) + > (data_out[0])); ># 339 "numpy/core/src/multiarray/einsum.c.src" > data_out[1] = ((data0[1]) * > (data1[1]) + > (data_out[1])); ># 339 "numpy/core/src/multiarray/einsum.c.src" > data_out[2] = ((data0[2]) * > (data1[2]) + > (data_out[2])); ># 339 "numpy/core/src/multiarray/einsum.c.src" > data_out[3] = ((data0[3]) * > (data1[3]) + > (data_out[3])); ># 339 "numpy/core/src/multiarray/einsum.c.src" > data_out[4] = ((data0[4]) * > (data1[4]) + > (data_out[4])); ># 339 "numpy/core/src/multiarray/einsum.c.src" > data_out[5] = ((data0[5]) * > (data1[5]) + > (data_out[5])); ># 339 "numpy/core/src/multiarray/einsum.c.src" > data_out[6] = ((data0[6]) * > (data1[6]) + > (data_out[6])); ># 339 "numpy/core/src/multiarray/einsum.c.src" > data_out[7] = ((data0[7]) * > (data1[7]) + > (data_out[7])); > > > data0 += 8; > data1 += 8; > data_out += 8; > } > > > goto finish_after_unrolled_loop; >} > > >static void >ushort_sum_of_products_stride0_contig_outcontig_two(int nop, char **dataptr, > npy_intp *(__NPY_UNUSED_TAGGEDstrides) __attribute__ ((__unused__)), npy_intp count) >{ > npy_ushort value0 = (*(npy_ushort *)dataptr[0]); > npy_ushort *data1 = (npy_ushort *)dataptr[1]; > npy_ushort *data_out = (npy_ushort *)dataptr[2]; > > > > > > > > ; > > > >finish_after_unrolled_loop: > switch (count) { ># 377 "numpy/core/src/multiarray/einsum.c.src" > case 6+1: > data_out[6] = (value0 * > (data1[6]) + > (data_out[6])); ># 377 "numpy/core/src/multiarray/einsum.c.src" > case 5+1: > data_out[5] = (value0 * > (data1[5]) + > (data_out[5])); ># 377 "numpy/core/src/multiarray/einsum.c.src" > case 4+1: > data_out[4] = (value0 * > (data1[4]) + > (data_out[4])); ># 377 "numpy/core/src/multiarray/einsum.c.src" > case 3+1: > data_out[3] = (value0 * > (data1[3]) + > (data_out[3])); ># 377 "numpy/core/src/multiarray/einsum.c.src" > case 2+1: > data_out[2] = (value0 * > (data1[2]) + > (data_out[2])); ># 377 "numpy/core/src/multiarray/einsum.c.src" > case 1+1: > data_out[1] = (value0 * > (data1[1]) + > (data_out[1])); ># 377 "numpy/core/src/multiarray/einsum.c.src" > case 0+1: > data_out[0] = (value0 * > (data1[0]) + > (data_out[0])); > > case 0: > return; > } ># 461 "numpy/core/src/multiarray/einsum.c.src" > while (count >= 8) { > count -= 8; ># 468 "numpy/core/src/multiarray/einsum.c.src" > data_out[0] = (value0 * > (data1[0]) + > (data_out[0])); ># 468 "numpy/core/src/multiarray/einsum.c.src" > data_out[1] = (value0 * > (data1[1]) + > (data_out[1])); ># 468 "numpy/core/src/multiarray/einsum.c.src" > data_out[2] = (value0 * > (data1[2]) + > (data_out[2])); ># 468 "numpy/core/src/multiarray/einsum.c.src" > data_out[3] = (value0 * > (data1[3]) + > (data_out[3])); ># 468 "numpy/core/src/multiarray/einsum.c.src" > data_out[4] = (value0 * > (data1[4]) + > (data_out[4])); ># 468 "numpy/core/src/multiarray/einsum.c.src" > data_out[5] = (value0 * > (data1[5]) + > (data_out[5])); ># 468 "numpy/core/src/multiarray/einsum.c.src" > data_out[6] = (value0 * > (data1[6]) + > (data_out[6])); ># 468 "numpy/core/src/multiarray/einsum.c.src" > data_out[7] = (value0 * > (data1[7]) + > (data_out[7])); > > > data1 += 8; > data_out += 8; > } > > > if (count > 0) { > goto finish_after_unrolled_loop; > } >} > >static void >ushort_sum_of_products_contig_stride0_outcontig_two(int nop, char **dataptr, > npy_intp *(__NPY_UNUSED_TAGGEDstrides) __attribute__ ((__unused__)), npy_intp count) >{ > npy_ushort *data0 = (npy_ushort *)dataptr[0]; > npy_ushort value1 = (*(npy_ushort *)dataptr[1]); > npy_ushort *data_out = (npy_ushort *)dataptr[2]; > > > > > > ; > > > >finish_after_unrolled_loop: > switch (count) { ># 504 "numpy/core/src/multiarray/einsum.c.src" > case 6+1: > data_out[6] = ((data0[6])* > value1 + > (data_out[6])); ># 504 "numpy/core/src/multiarray/einsum.c.src" > case 5+1: > data_out[5] = ((data0[5])* > value1 + > (data_out[5])); ># 504 "numpy/core/src/multiarray/einsum.c.src" > case 4+1: > data_out[4] = ((data0[4])* > value1 + > (data_out[4])); ># 504 "numpy/core/src/multiarray/einsum.c.src" > case 3+1: > data_out[3] = ((data0[3])* > value1 + > (data_out[3])); ># 504 "numpy/core/src/multiarray/einsum.c.src" > case 2+1: > data_out[2] = ((data0[2])* > value1 + > (data_out[2])); ># 504 "numpy/core/src/multiarray/einsum.c.src" > case 1+1: > data_out[1] = ((data0[1])* > value1 + > (data_out[1])); ># 504 "numpy/core/src/multiarray/einsum.c.src" > case 0+1: > data_out[0] = ((data0[0])* > value1 + > (data_out[0])); > > case 0: > return; > } ># 542 "numpy/core/src/multiarray/einsum.c.src" > while (count >= 8) { > count -= 8; ># 554 "numpy/core/src/multiarray/einsum.c.src" > data_out[0] = ((data0[0])* > value1 + > (data_out[0])); ># 554 "numpy/core/src/multiarray/einsum.c.src" > data_out[1] = ((data0[1])* > value1 + > (data_out[1])); ># 554 "numpy/core/src/multiarray/einsum.c.src" > data_out[2] = ((data0[2])* > value1 + > (data_out[2])); ># 554 "numpy/core/src/multiarray/einsum.c.src" > data_out[3] = ((data0[3])* > value1 + > (data_out[3])); ># 554 "numpy/core/src/multiarray/einsum.c.src" > data_out[4] = ((data0[4])* > value1 + > (data_out[4])); ># 554 "numpy/core/src/multiarray/einsum.c.src" > data_out[5] = ((data0[5])* > value1 + > (data_out[5])); ># 554 "numpy/core/src/multiarray/einsum.c.src" > data_out[6] = ((data0[6])* > value1 + > (data_out[6])); ># 554 "numpy/core/src/multiarray/einsum.c.src" > data_out[7] = ((data0[7])* > value1 + > (data_out[7])); > > > data0 += 8; > data_out += 8; > } > > > goto finish_after_unrolled_loop; >} > >static void >ushort_sum_of_products_contig_contig_outstride0_two(int nop, char **dataptr, > npy_intp *(__NPY_UNUSED_TAGGEDstrides) __attribute__ ((__unused__)), npy_intp count) >{ > npy_ushort *data0 = (npy_ushort *)dataptr[0]; > npy_ushort *data1 = (npy_ushort *)dataptr[1]; > npy_ushort accum = 0; > > > > > > > > ; > > > >finish_after_unrolled_loop: > switch (count) { ># 590 "numpy/core/src/multiarray/einsum.c.src" > case 6+1: > accum += (data0[6]) * (data1[6]); ># 590 "numpy/core/src/multiarray/einsum.c.src" > case 5+1: > accum += (data0[5]) * (data1[5]); ># 590 "numpy/core/src/multiarray/einsum.c.src" > case 4+1: > accum += (data0[4]) * (data1[4]); ># 590 "numpy/core/src/multiarray/einsum.c.src" > case 3+1: > accum += (data0[3]) * (data1[3]); ># 590 "numpy/core/src/multiarray/einsum.c.src" > case 2+1: > accum += (data0[2]) * (data1[2]); ># 590 "numpy/core/src/multiarray/einsum.c.src" > case 1+1: > accum += (data0[1]) * (data1[1]); ># 590 "numpy/core/src/multiarray/einsum.c.src" > case 0+1: > accum += (data0[0]) * (data1[0]); > > case 0: > *(npy_ushort *)dataptr[2] += (accum); > return; > } ># 695 "numpy/core/src/multiarray/einsum.c.src" > while (count >= 8) { > count -= 8; ># 702 "numpy/core/src/multiarray/einsum.c.src" > accum += (data0[0]) * (data1[0]); ># 702 "numpy/core/src/multiarray/einsum.c.src" > accum += (data0[1]) * (data1[1]); ># 702 "numpy/core/src/multiarray/einsum.c.src" > accum += (data0[2]) * (data1[2]); ># 702 "numpy/core/src/multiarray/einsum.c.src" > accum += (data0[3]) * (data1[3]); ># 702 "numpy/core/src/multiarray/einsum.c.src" > accum += (data0[4]) * (data1[4]); ># 702 "numpy/core/src/multiarray/einsum.c.src" > accum += (data0[5]) * (data1[5]); ># 702 "numpy/core/src/multiarray/einsum.c.src" > accum += (data0[6]) * (data1[6]); ># 702 "numpy/core/src/multiarray/einsum.c.src" > accum += (data0[7]) * (data1[7]); > > > data0 += 8; > data1 += 8; > } ># 724 "numpy/core/src/multiarray/einsum.c.src" > goto finish_after_unrolled_loop; >} > >static void >ushort_sum_of_products_stride0_contig_outstride0_two(int nop, char **dataptr, > npy_intp *(__NPY_UNUSED_TAGGEDstrides) __attribute__ ((__unused__)), npy_intp count) >{ > npy_ushort value0 = (*(npy_ushort *)dataptr[0]); > npy_ushort *data1 = (npy_ushort *)dataptr[1]; > npy_ushort accum = 0; > > > > > > ; > > > >finish_after_unrolled_loop: > switch (count) { ># 748 "numpy/core/src/multiarray/einsum.c.src" > case 6+1: > accum += (data1[6]); ># 748 "numpy/core/src/multiarray/einsum.c.src" > case 5+1: > accum += (data1[5]); ># 748 "numpy/core/src/multiarray/einsum.c.src" > case 4+1: > accum += (data1[4]); ># 748 "numpy/core/src/multiarray/einsum.c.src" > case 3+1: > accum += (data1[3]); ># 748 "numpy/core/src/multiarray/einsum.c.src" > case 2+1: > accum += (data1[2]); ># 748 "numpy/core/src/multiarray/einsum.c.src" > case 1+1: > accum += (data1[1]); ># 748 "numpy/core/src/multiarray/einsum.c.src" > case 0+1: > accum += (data1[0]); > > case 0: > *(npy_ushort *)dataptr[2] += (value0 * accum); > return; > } ># 795 "numpy/core/src/multiarray/einsum.c.src" > while (count >= 8) { > count -= 8; ># 807 "numpy/core/src/multiarray/einsum.c.src" > accum += (data1[0]); ># 807 "numpy/core/src/multiarray/einsum.c.src" > accum += (data1[1]); ># 807 "numpy/core/src/multiarray/einsum.c.src" > accum += (data1[2]); ># 807 "numpy/core/src/multiarray/einsum.c.src" > accum += (data1[3]); ># 807 "numpy/core/src/multiarray/einsum.c.src" > accum += (data1[4]); ># 807 "numpy/core/src/multiarray/einsum.c.src" > accum += (data1[5]); ># 807 "numpy/core/src/multiarray/einsum.c.src" > accum += (data1[6]); ># 807 "numpy/core/src/multiarray/einsum.c.src" > accum += (data1[7]); > > > data1 += 8; > } ># 823 "numpy/core/src/multiarray/einsum.c.src" > goto finish_after_unrolled_loop; >} > >static void >ushort_sum_of_products_contig_stride0_outstride0_two(int nop, char **dataptr, > npy_intp *(__NPY_UNUSED_TAGGEDstrides) __attribute__ ((__unused__)), npy_intp count) >{ > npy_ushort *data0 = (npy_ushort *)dataptr[0]; > npy_ushort value1 = (*(npy_ushort *)dataptr[1]); > npy_ushort accum = 0; > > > > > > ; > > > >finish_after_unrolled_loop: > switch (count) { ># 847 "numpy/core/src/multiarray/einsum.c.src" > case 6+1: > accum += (data0[6]); ># 847 "numpy/core/src/multiarray/einsum.c.src" > case 5+1: > accum += (data0[5]); ># 847 "numpy/core/src/multiarray/einsum.c.src" > case 4+1: > accum += (data0[4]); ># 847 "numpy/core/src/multiarray/einsum.c.src" > case 3+1: > accum += (data0[3]); ># 847 "numpy/core/src/multiarray/einsum.c.src" > case 2+1: > accum += (data0[2]); ># 847 "numpy/core/src/multiarray/einsum.c.src" > case 1+1: > accum += (data0[1]); ># 847 "numpy/core/src/multiarray/einsum.c.src" > case 0+1: > accum += (data0[0]); > > case 0: > *(npy_ushort *)dataptr[2] += (accum * value1); > return; > } ># 894 "numpy/core/src/multiarray/einsum.c.src" > while (count >= 8) { > count -= 8; ># 906 "numpy/core/src/multiarray/einsum.c.src" > accum += (data0[0]); ># 906 "numpy/core/src/multiarray/einsum.c.src" > accum += (data0[1]); ># 906 "numpy/core/src/multiarray/einsum.c.src" > accum += (data0[2]); ># 906 "numpy/core/src/multiarray/einsum.c.src" > accum += (data0[3]); ># 906 "numpy/core/src/multiarray/einsum.c.src" > accum += (data0[4]); ># 906 "numpy/core/src/multiarray/einsum.c.src" > accum += (data0[5]); ># 906 "numpy/core/src/multiarray/einsum.c.src" > accum += (data0[6]); ># 906 "numpy/core/src/multiarray/einsum.c.src" > accum += (data0[7]); > > > data0 += 8; > } ># 922 "numpy/core/src/multiarray/einsum.c.src" > goto finish_after_unrolled_loop; >} ># 1455 "numpy/core/src/multiarray/einsum.c.src" >static void >ushort_sum_of_products_outstride0_two(int nop, char **dataptr, > npy_intp *strides, npy_intp count) >{ > > > > npy_ushort accum = 0; > > > > char *data0 = dataptr[0]; > npy_intp stride0 = strides[0]; > > > char *data1 = dataptr[1]; > npy_intp stride1 = strides[1]; > > > > > > > ; > > > while (count--) { > > > > > > accum += (*(npy_ushort *)data0) * > (*(npy_ushort *)data1); > data0 += stride0; > data1 += stride1; ># 1539 "numpy/core/src/multiarray/einsum.c.src" > } ># 1551 "numpy/core/src/multiarray/einsum.c.src" > *((npy_ushort *)dataptr[2]) = (accum + > (*((npy_ushort *)dataptr[2]))); > > > > > > >} ># 107 "numpy/core/src/multiarray/einsum.c.src" >static void >ushort_sum_of_products_three(int nop, char **dataptr, > npy_intp *strides, npy_intp count) >{ > > char *data0 = dataptr[0]; > npy_intp stride0 = strides[0]; > > > char *data1 = dataptr[1]; > npy_intp stride1 = strides[1]; > > > char *data2 = dataptr[2]; > npy_intp stride2 = strides[2]; > > > char *data_out = dataptr[3]; > npy_intp stride_out = strides[3]; > > > ; > > while (count--) { ># 145 "numpy/core/src/multiarray/einsum.c.src" > *(npy_ushort *)data_out = ((*(npy_ushort *)data0) * > (*(npy_ushort *)data1) * > (*(npy_ushort *)data2) + > (*(npy_ushort *)data_out)); > data0 += stride0; > data1 += stride1; > data2 += stride2; > data_out += stride_out; ># 201 "numpy/core/src/multiarray/einsum.c.src" > } >} ># 1542 "numpy/core/src/multiarray/einsum.c.src" >static void >ushort_sum_of_products_contig_three(int nop, char **dataptr, > npy_intp *(__NPY_UNUSED_TAGGEDstrides) __attribute__ ((__unused__)), npy_intp count) >{ > npy_ushort *data0 = (npy_ushort *)dataptr[0]; > npy_ushort *data1 = (npy_ushort *)dataptr[1]; > npy_ushort *data2 = (npy_ushort *)dataptr[2]; > npy_ushort *data_out = (npy_ushort *)dataptr[3]; > > > while (count >= 8) { > count -= 8; ># 943 "numpy/core/src/multiarray/einsum.c.src" > data_out[0] = ((data0[0]) * > (data1[0]) * > (data2[0]) + > (data_out[0])); ># 943 "numpy/core/src/multiarray/einsum.c.src" > data_out[1] = ((data0[1]) * > (data1[1]) * > (data2[1]) + > (data_out[1])); ># 943 "numpy/core/src/multiarray/einsum.c.src" > data_out[2] = ((data0[2]) * > (data1[2]) * > (data2[2]) + > (data_out[2])); ># 943 "numpy/core/src/multiarray/einsum.c.src" > data_out[3] = ((data0[3]) * > (data1[3]) * > (data2[3]) + > (data_out[3])); ># 943 "numpy/core/src/multiarray/einsum.c.src" > data_out[4] = ((data0[4]) * > (data1[4]) * > (data2[4]) + > (data_out[4])); ># 943 "numpy/core/src/multiarray/einsum.c.src" > data_out[5] = ((data0[5]) * > (data1[5]) * > (data2[5]) + > (data_out[5])); ># 943 "numpy/core/src/multiarray/einsum.c.src" > data_out[6] = ((data0[6]) * > (data1[6]) * > (data2[6]) + > (data_out[6])); ># 943 "numpy/core/src/multiarray/einsum.c.src" > data_out[7] = ((data0[7]) * > (data1[7]) * > (data2[7]) + > (data_out[7])); > > data0 += 8; > data1 += 8; > data_out += 8; > } ># 958 "numpy/core/src/multiarray/einsum.c.src" > if (count-- == 0) { > return; > } > data_out[0] = ((data0[0]) * > (data1[0]) * > (data2[0]) + > (data_out[0])); ># 958 "numpy/core/src/multiarray/einsum.c.src" > if (count-- == 0) { > return; > } > data_out[1] = ((data0[1]) * > (data1[1]) * > (data2[1]) + > (data_out[1])); ># 958 "numpy/core/src/multiarray/einsum.c.src" > if (count-- == 0) { > return; > } > data_out[2] = ((data0[2]) * > (data1[2]) * > (data2[2]) + > (data_out[2])); ># 958 "numpy/core/src/multiarray/einsum.c.src" > if (count-- == 0) { > return; > } > data_out[3] = ((data0[3]) * > (data1[3]) * > (data2[3]) + > (data_out[3])); ># 958 "numpy/core/src/multiarray/einsum.c.src" > if (count-- == 0) { > return; > } > data_out[4] = ((data0[4]) * > (data1[4]) * > (data2[4]) + > (data_out[4])); ># 958 "numpy/core/src/multiarray/einsum.c.src" > if (count-- == 0) { > return; > } > data_out[5] = ((data0[5]) * > (data1[5]) * > (data2[5]) + > (data_out[5])); ># 958 "numpy/core/src/multiarray/einsum.c.src" > if (count-- == 0) { > return; > } > data_out[6] = ((data0[6]) * > (data1[6]) * > (data2[6]) + > (data_out[6])); ># 958 "numpy/core/src/multiarray/einsum.c.src" > if (count-- == 0) { > return; > } > data_out[7] = ((data0[7]) * > (data1[7]) * > (data2[7]) + > (data_out[7])); > >} ># 1354 "numpy/core/src/multiarray/einsum.c.src" >static void >ushort_sum_of_products_outstride0_three(int nop, char **dataptr, > npy_intp *strides, npy_intp count) >{ > > > > npy_ushort accum = 0; > > > > char *data0 = dataptr[0]; > npy_intp stride0 = strides[0]; > > > char *data1 = dataptr[1]; > npy_intp stride1 = strides[1]; > > > char *data2 = dataptr[2]; > npy_intp stride2 = strides[2]; > > > ; > > > while (count--) { ># 1391 "numpy/core/src/multiarray/einsum.c.src" > accum += (*(npy_ushort *)data0) * > (*(npy_ushort *)data1) * > (*(npy_ushort *)data2); > data0 += stride0; > data1 += stride1; > data2 += stride2; ># 1438 "numpy/core/src/multiarray/einsum.c.src" > } ># 1450 "numpy/core/src/multiarray/einsum.c.src" > *((npy_ushort *)dataptr[3]) = (accum + > (*((npy_ushort *)dataptr[3]))); > > > > > > >} ># 107 "numpy/core/src/multiarray/einsum.c.src" >static void >ushort_sum_of_products_any(int nop, char **dataptr, > npy_intp *strides, npy_intp count) >{ ># 128 "numpy/core/src/multiarray/einsum.c.src" > ; > > while (count--) { ># 154 "numpy/core/src/multiarray/einsum.c.src" > npy_ushort temp = (*(npy_ushort *)dataptr[0]); > int i; > for (i = 1; i < nop; ++i) { > temp *= (*(npy_ushort *)dataptr[i]); > } > *(npy_ushort *)dataptr[nop] = (temp + > (*(npy_ushort *)dataptr[i])); > for (i = 0; i <= nop; ++i) { > dataptr[i] += strides[i]; > } ># 201 "numpy/core/src/multiarray/einsum.c.src" > } >} ># 1686 "numpy/core/src/multiarray/einsum.c.src" >static void >ushort_sum_of_products_contig_any(int nop, char **dataptr, > npy_intp *(__NPY_UNUSED_TAGGEDstrides) __attribute__ ((__unused__)), npy_intp count) >{ > ; > > > while (count--) { > > npy_ushort temp = (*(npy_ushort *)dataptr[0]); > int i; > for (i = 1; i < nop; ++i) { > temp *= (*(npy_ushort *)dataptr[i]); > } > *(npy_ushort *)dataptr[nop] = (temp + > (*(npy_ushort *)dataptr[i])); > for (i = 0; i <= nop; ++i) { > dataptr[i] += sizeof(npy_ushort); > } ># 1732 "numpy/core/src/multiarray/einsum.c.src" > } >} ># 2070 "numpy/core/src/multiarray/einsum.c.src" >static void >ushort_sum_of_products_outstride0_any(int nop, char **dataptr, > npy_intp *strides, npy_intp count) >{ > > > > npy_ushort accum = 0; ># 2093 "numpy/core/src/multiarray/einsum.c.src" > ; > > > while (count--) { ># 2114 "numpy/core/src/multiarray/einsum.c.src" > npy_ushort temp = (*(npy_ushort *)dataptr[0]); > int i; > for (i = 1; i < nop; ++i) { > temp *= (*(npy_ushort *)dataptr[i]); > } > accum += temp; > for (i = 0; i < nop; ++i) { > dataptr[i] += strides[i]; > } ># 2154 "numpy/core/src/multiarray/einsum.c.src" > } ># 2169 "numpy/core/src/multiarray/einsum.c.src" > *((npy_ushort *)dataptr[nop]) = (accum + > (*((npy_ushort *)dataptr[nop]))); > > > >} ># 102 "numpy/core/src/multiarray/einsum.c.src" ># 107 "numpy/core/src/multiarray/einsum.c.src" >static void >uint_sum_of_products_one(int nop, char **dataptr, > npy_intp *strides, npy_intp count) >{ > > char *data0 = dataptr[0]; > npy_intp stride0 = strides[0]; ># 124 "numpy/core/src/multiarray/einsum.c.src" > char *data_out = dataptr[1]; > npy_intp stride_out = strides[1]; > > > ; > > while (count--) { > > > *(npy_uint *)data_out = ((*(npy_uint *)data0) + > (*(npy_uint *)data_out)); > data0 += stride0; > data_out += stride_out; ># 201 "numpy/core/src/multiarray/einsum.c.src" > } >} > > > >static void >uint_sum_of_products_contig_one(int nop, char **dataptr, > npy_intp *(__NPY_UNUSED_TAGGEDstrides) __attribute__ ((__unused__)), npy_intp count) >{ > npy_uint *data0 = (npy_uint *)dataptr[0]; > npy_uint *data_out = (npy_uint *)dataptr[1]; > > ; > > > >finish_after_unrolled_loop: > switch (count) { ># 222 "numpy/core/src/multiarray/einsum.c.src" > case 6+1: > > data_out[6] = ((data0[6]) + > (data_out[6])); ># 222 "numpy/core/src/multiarray/einsum.c.src" > case 5+1: > > data_out[5] = ((data0[5]) + > (data_out[5])); ># 222 "numpy/core/src/multiarray/einsum.c.src" > case 4+1: > > data_out[4] = ((data0[4]) + > (data_out[4])); ># 222 "numpy/core/src/multiarray/einsum.c.src" > case 3+1: > > data_out[3] = ((data0[3]) + > (data_out[3])); ># 222 "numpy/core/src/multiarray/einsum.c.src" > case 2+1: > > data_out[2] = ((data0[2]) + > (data_out[2])); ># 222 "numpy/core/src/multiarray/einsum.c.src" > case 1+1: > > data_out[1] = ((data0[1]) + > (data_out[1])); ># 222 "numpy/core/src/multiarray/einsum.c.src" > case 0+1: > > data_out[0] = ((data0[0]) + > (data_out[0])); ># 235 "numpy/core/src/multiarray/einsum.c.src" > case 0: > return; > } > > > while (count >= 8) { > count -= 8; ># 246 "numpy/core/src/multiarray/einsum.c.src" > > data_out[0] = ((data0[0]) + > (data_out[0])); ># 246 "numpy/core/src/multiarray/einsum.c.src" > > data_out[1] = ((data0[1]) + > (data_out[1])); ># 246 "numpy/core/src/multiarray/einsum.c.src" > > data_out[2] = ((data0[2]) + > (data_out[2])); ># 246 "numpy/core/src/multiarray/einsum.c.src" > > data_out[3] = ((data0[3]) + > (data_out[3])); ># 246 "numpy/core/src/multiarray/einsum.c.src" > > data_out[4] = ((data0[4]) + > (data_out[4])); ># 246 "numpy/core/src/multiarray/einsum.c.src" > > data_out[5] = ((data0[5]) + > (data_out[5])); ># 246 "numpy/core/src/multiarray/einsum.c.src" > > data_out[6] = ((data0[6]) + > (data_out[6])); ># 246 "numpy/core/src/multiarray/einsum.c.src" > > data_out[7] = ((data0[7]) + > (data_out[7])); ># 258 "numpy/core/src/multiarray/einsum.c.src" > data0 += 8; > data_out += 8; > } > > > goto finish_after_unrolled_loop; >} ># 1568 "numpy/core/src/multiarray/einsum.c.src" >static void >uint_sum_of_products_contig_outstride0_one(int nop, char **dataptr, > npy_intp *strides, npy_intp count) >{ > > > > > npy_uint accum = 0; > npy_uint *data0 = (npy_uint *)dataptr[0]; ># 1587 "numpy/core/src/multiarray/einsum.c.src" > ; > > > >finish_after_unrolled_loop: > switch (count) { ># 1051 "numpy/core/src/multiarray/einsum.c.src" > case 6+1: > > accum += (data0[6]); ># 1051 "numpy/core/src/multiarray/einsum.c.src" > case 5+1: > > accum += (data0[5]); ># 1051 "numpy/core/src/multiarray/einsum.c.src" > case 4+1: > > accum += (data0[4]); ># 1051 "numpy/core/src/multiarray/einsum.c.src" > case 3+1: > > accum += (data0[3]); ># 1051 "numpy/core/src/multiarray/einsum.c.src" > case 2+1: > > accum += (data0[2]); ># 1051 "numpy/core/src/multiarray/einsum.c.src" > case 1+1: > > accum += (data0[1]); ># 1051 "numpy/core/src/multiarray/einsum.c.src" > case 0+1: > > accum += (data0[0]); > > > > > > case 0: > > > > > *((npy_uint *)dataptr[1]) = (accum + > (*((npy_uint *)dataptr[1]))); > > return; > } ># 1157 "numpy/core/src/multiarray/einsum.c.src" > while (count >= 8) { > count -= 8; ># 1164 "numpy/core/src/multiarray/einsum.c.src" > > accum += (data0[0]); ># 1164 "numpy/core/src/multiarray/einsum.c.src" > > accum += (data0[1]); ># 1164 "numpy/core/src/multiarray/einsum.c.src" > > accum += (data0[2]); ># 1164 "numpy/core/src/multiarray/einsum.c.src" > > accum += (data0[3]); ># 1164 "numpy/core/src/multiarray/einsum.c.src" > > accum += (data0[4]); ># 1164 "numpy/core/src/multiarray/einsum.c.src" > > accum += (data0[5]); ># 1164 "numpy/core/src/multiarray/einsum.c.src" > > accum += (data0[6]); ># 1164 "numpy/core/src/multiarray/einsum.c.src" > > accum += (data0[7]); ># 1174 "numpy/core/src/multiarray/einsum.c.src" > data0 += 8; > > > > } ># 1195 "numpy/core/src/multiarray/einsum.c.src" > goto finish_after_unrolled_loop; >} > > > >static void >uint_sum_of_products_outstride0_one(int nop, char **dataptr, > npy_intp *strides, npy_intp count) >{ > > > > npy_uint accum = 0; > > > > char *data0 = dataptr[0]; > npy_intp stride0 = strides[0]; ># 1223 "numpy/core/src/multiarray/einsum.c.src" > ; > > > while (count--) { > > > accum += (*(npy_uint *)data0); > data0 += stride0; ># 1284 "numpy/core/src/multiarray/einsum.c.src" > } ># 1296 "numpy/core/src/multiarray/einsum.c.src" > *((npy_uint *)dataptr[1]) = (accum + > (*((npy_uint *)dataptr[1]))); > > > > > > >} ># 107 "numpy/core/src/multiarray/einsum.c.src" >static void >uint_sum_of_products_two(int nop, char **dataptr, > npy_intp *strides, npy_intp count) >{ > > char *data0 = dataptr[0]; > npy_intp stride0 = strides[0]; > > > char *data1 = dataptr[1]; > npy_intp stride1 = strides[1]; > > > > > > > char *data_out = dataptr[2]; > npy_intp stride_out = strides[2]; > > > ; > > while (count--) { > > > > > > > > *(npy_uint *)data_out = ((*(npy_uint *)data0) * > (*(npy_uint *)data1) + > (*(npy_uint *)data_out)); > data0 += stride0; > data1 += stride1; > data_out += stride_out; ># 201 "numpy/core/src/multiarray/einsum.c.src" > } >} ># 439 "numpy/core/src/multiarray/einsum.c.src" >static void >uint_sum_of_products_contig_two(int nop, char **dataptr, > npy_intp *(__NPY_UNUSED_TAGGEDstrides) __attribute__ ((__unused__)), npy_intp count) >{ > npy_uint *data0 = (npy_uint *)dataptr[0]; > npy_uint *data1 = (npy_uint *)dataptr[1]; > npy_uint *data_out = (npy_uint *)dataptr[2]; > > > > > > ; > > > >finish_after_unrolled_loop: > switch (count) { ># 289 "numpy/core/src/multiarray/einsum.c.src" > case 6+1: > data_out[6] = ((data0[6]) * > (data1[6]) + > (data_out[6])); ># 289 "numpy/core/src/multiarray/einsum.c.src" > case 5+1: > data_out[5] = ((data0[5]) * > (data1[5]) + > (data_out[5])); ># 289 "numpy/core/src/multiarray/einsum.c.src" > case 4+1: > data_out[4] = ((data0[4]) * > (data1[4]) + > (data_out[4])); ># 289 "numpy/core/src/multiarray/einsum.c.src" > case 3+1: > data_out[3] = ((data0[3]) * > (data1[3]) + > (data_out[3])); ># 289 "numpy/core/src/multiarray/einsum.c.src" > case 2+1: > data_out[2] = ((data0[2]) * > (data1[2]) + > (data_out[2])); ># 289 "numpy/core/src/multiarray/einsum.c.src" > case 1+1: > data_out[1] = ((data0[1]) * > (data1[1]) + > (data_out[1])); ># 289 "numpy/core/src/multiarray/einsum.c.src" > case 0+1: > data_out[0] = ((data0[0]) * > (data1[0]) + > (data_out[0])); > > case 0: > return; > } ># 327 "numpy/core/src/multiarray/einsum.c.src" > while (count >= 8) { > count -= 8; ># 339 "numpy/core/src/multiarray/einsum.c.src" > data_out[0] = ((data0[0]) * > (data1[0]) + > (data_out[0])); ># 339 "numpy/core/src/multiarray/einsum.c.src" > data_out[1] = ((data0[1]) * > (data1[1]) + > (data_out[1])); ># 339 "numpy/core/src/multiarray/einsum.c.src" > data_out[2] = ((data0[2]) * > (data1[2]) + > (data_out[2])); ># 339 "numpy/core/src/multiarray/einsum.c.src" > data_out[3] = ((data0[3]) * > (data1[3]) + > (data_out[3])); ># 339 "numpy/core/src/multiarray/einsum.c.src" > data_out[4] = ((data0[4]) * > (data1[4]) + > (data_out[4])); ># 339 "numpy/core/src/multiarray/einsum.c.src" > data_out[5] = ((data0[5]) * > (data1[5]) + > (data_out[5])); ># 339 "numpy/core/src/multiarray/einsum.c.src" > data_out[6] = ((data0[6]) * > (data1[6]) + > (data_out[6])); ># 339 "numpy/core/src/multiarray/einsum.c.src" > data_out[7] = ((data0[7]) * > (data1[7]) + > (data_out[7])); > > > data0 += 8; > data1 += 8; > data_out += 8; > } > > > goto finish_after_unrolled_loop; >} > > >static void >uint_sum_of_products_stride0_contig_outcontig_two(int nop, char **dataptr, > npy_intp *(__NPY_UNUSED_TAGGEDstrides) __attribute__ ((__unused__)), npy_intp count) >{ > npy_uint value0 = (*(npy_uint *)dataptr[0]); > npy_uint *data1 = (npy_uint *)dataptr[1]; > npy_uint *data_out = (npy_uint *)dataptr[2]; > > > > > > > > ; > > > >finish_after_unrolled_loop: > switch (count) { ># 377 "numpy/core/src/multiarray/einsum.c.src" > case 6+1: > data_out[6] = (value0 * > (data1[6]) + > (data_out[6])); ># 377 "numpy/core/src/multiarray/einsum.c.src" > case 5+1: > data_out[5] = (value0 * > (data1[5]) + > (data_out[5])); ># 377 "numpy/core/src/multiarray/einsum.c.src" > case 4+1: > data_out[4] = (value0 * > (data1[4]) + > (data_out[4])); ># 377 "numpy/core/src/multiarray/einsum.c.src" > case 3+1: > data_out[3] = (value0 * > (data1[3]) + > (data_out[3])); ># 377 "numpy/core/src/multiarray/einsum.c.src" > case 2+1: > data_out[2] = (value0 * > (data1[2]) + > (data_out[2])); ># 377 "numpy/core/src/multiarray/einsum.c.src" > case 1+1: > data_out[1] = (value0 * > (data1[1]) + > (data_out[1])); ># 377 "numpy/core/src/multiarray/einsum.c.src" > case 0+1: > data_out[0] = (value0 * > (data1[0]) + > (data_out[0])); > > case 0: > return; > } ># 461 "numpy/core/src/multiarray/einsum.c.src" > while (count >= 8) { > count -= 8; ># 468 "numpy/core/src/multiarray/einsum.c.src" > data_out[0] = (value0 * > (data1[0]) + > (data_out[0])); ># 468 "numpy/core/src/multiarray/einsum.c.src" > data_out[1] = (value0 * > (data1[1]) + > (data_out[1])); ># 468 "numpy/core/src/multiarray/einsum.c.src" > data_out[2] = (value0 * > (data1[2]) + > (data_out[2])); ># 468 "numpy/core/src/multiarray/einsum.c.src" > data_out[3] = (value0 * > (data1[3]) + > (data_out[3])); ># 468 "numpy/core/src/multiarray/einsum.c.src" > data_out[4] = (value0 * > (data1[4]) + > (data_out[4])); ># 468 "numpy/core/src/multiarray/einsum.c.src" > data_out[5] = (value0 * > (data1[5]) + > (data_out[5])); ># 468 "numpy/core/src/multiarray/einsum.c.src" > data_out[6] = (value0 * > (data1[6]) + > (data_out[6])); ># 468 "numpy/core/src/multiarray/einsum.c.src" > data_out[7] = (value0 * > (data1[7]) + > (data_out[7])); > > > data1 += 8; > data_out += 8; > } > > > if (count > 0) { > goto finish_after_unrolled_loop; > } >} > >static void >uint_sum_of_products_contig_stride0_outcontig_two(int nop, char **dataptr, > npy_intp *(__NPY_UNUSED_TAGGEDstrides) __attribute__ ((__unused__)), npy_intp count) >{ > npy_uint *data0 = (npy_uint *)dataptr[0]; > npy_uint value1 = (*(npy_uint *)dataptr[1]); > npy_uint *data_out = (npy_uint *)dataptr[2]; > > > > > > ; > > > >finish_after_unrolled_loop: > switch (count) { ># 504 "numpy/core/src/multiarray/einsum.c.src" > case 6+1: > data_out[6] = ((data0[6])* > value1 + > (data_out[6])); ># 504 "numpy/core/src/multiarray/einsum.c.src" > case 5+1: > data_out[5] = ((data0[5])* > value1 + > (data_out[5])); ># 504 "numpy/core/src/multiarray/einsum.c.src" > case 4+1: > data_out[4] = ((data0[4])* > value1 + > (data_out[4])); ># 504 "numpy/core/src/multiarray/einsum.c.src" > case 3+1: > data_out[3] = ((data0[3])* > value1 + > (data_out[3])); ># 504 "numpy/core/src/multiarray/einsum.c.src" > case 2+1: > data_out[2] = ((data0[2])* > value1 + > (data_out[2])); ># 504 "numpy/core/src/multiarray/einsum.c.src" > case 1+1: > data_out[1] = ((data0[1])* > value1 + > (data_out[1])); ># 504 "numpy/core/src/multiarray/einsum.c.src" > case 0+1: > data_out[0] = ((data0[0])* > value1 + > (data_out[0])); > > case 0: > return; > } ># 542 "numpy/core/src/multiarray/einsum.c.src" > while (count >= 8) { > count -= 8; ># 554 "numpy/core/src/multiarray/einsum.c.src" > data_out[0] = ((data0[0])* > value1 + > (data_out[0])); ># 554 "numpy/core/src/multiarray/einsum.c.src" > data_out[1] = ((data0[1])* > value1 + > (data_out[1])); ># 554 "numpy/core/src/multiarray/einsum.c.src" > data_out[2] = ((data0[2])* > value1 + > (data_out[2])); ># 554 "numpy/core/src/multiarray/einsum.c.src" > data_out[3] = ((data0[3])* > value1 + > (data_out[3])); ># 554 "numpy/core/src/multiarray/einsum.c.src" > data_out[4] = ((data0[4])* > value1 + > (data_out[4])); ># 554 "numpy/core/src/multiarray/einsum.c.src" > data_out[5] = ((data0[5])* > value1 + > (data_out[5])); ># 554 "numpy/core/src/multiarray/einsum.c.src" > data_out[6] = ((data0[6])* > value1 + > (data_out[6])); ># 554 "numpy/core/src/multiarray/einsum.c.src" > data_out[7] = ((data0[7])* > value1 + > (data_out[7])); > > > data0 += 8; > data_out += 8; > } > > > goto finish_after_unrolled_loop; >} > >static void >uint_sum_of_products_contig_contig_outstride0_two(int nop, char **dataptr, > npy_intp *(__NPY_UNUSED_TAGGEDstrides) __attribute__ ((__unused__)), npy_intp count) >{ > npy_uint *data0 = (npy_uint *)dataptr[0]; > npy_uint *data1 = (npy_uint *)dataptr[1]; > npy_uint accum = 0; > > > > > > > > ; > > > >finish_after_unrolled_loop: > switch (count) { ># 590 "numpy/core/src/multiarray/einsum.c.src" > case 6+1: > accum += (data0[6]) * (data1[6]); ># 590 "numpy/core/src/multiarray/einsum.c.src" > case 5+1: > accum += (data0[5]) * (data1[5]); ># 590 "numpy/core/src/multiarray/einsum.c.src" > case 4+1: > accum += (data0[4]) * (data1[4]); ># 590 "numpy/core/src/multiarray/einsum.c.src" > case 3+1: > accum += (data0[3]) * (data1[3]); ># 590 "numpy/core/src/multiarray/einsum.c.src" > case 2+1: > accum += (data0[2]) * (data1[2]); ># 590 "numpy/core/src/multiarray/einsum.c.src" > case 1+1: > accum += (data0[1]) * (data1[1]); ># 590 "numpy/core/src/multiarray/einsum.c.src" > case 0+1: > accum += (data0[0]) * (data1[0]); > > case 0: > *(npy_uint *)dataptr[2] += (accum); > return; > } ># 695 "numpy/core/src/multiarray/einsum.c.src" > while (count >= 8) { > count -= 8; ># 702 "numpy/core/src/multiarray/einsum.c.src" > accum += (data0[0]) * (data1[0]); ># 702 "numpy/core/src/multiarray/einsum.c.src" > accum += (data0[1]) * (data1[1]); ># 702 "numpy/core/src/multiarray/einsum.c.src" > accum += (data0[2]) * (data1[2]); ># 702 "numpy/core/src/multiarray/einsum.c.src" > accum += (data0[3]) * (data1[3]); ># 702 "numpy/core/src/multiarray/einsum.c.src" > accum += (data0[4]) * (data1[4]); ># 702 "numpy/core/src/multiarray/einsum.c.src" > accum += (data0[5]) * (data1[5]); ># 702 "numpy/core/src/multiarray/einsum.c.src" > accum += (data0[6]) * (data1[6]); ># 702 "numpy/core/src/multiarray/einsum.c.src" > accum += (data0[7]) * (data1[7]); > > > data0 += 8; > data1 += 8; > } ># 724 "numpy/core/src/multiarray/einsum.c.src" > goto finish_after_unrolled_loop; >} > >static void >uint_sum_of_products_stride0_contig_outstride0_two(int nop, char **dataptr, > npy_intp *(__NPY_UNUSED_TAGGEDstrides) __attribute__ ((__unused__)), npy_intp count) >{ > npy_uint value0 = (*(npy_uint *)dataptr[0]); > npy_uint *data1 = (npy_uint *)dataptr[1]; > npy_uint accum = 0; > > > > > > ; > > > >finish_after_unrolled_loop: > switch (count) { ># 748 "numpy/core/src/multiarray/einsum.c.src" > case 6+1: > accum += (data1[6]); ># 748 "numpy/core/src/multiarray/einsum.c.src" > case 5+1: > accum += (data1[5]); ># 748 "numpy/core/src/multiarray/einsum.c.src" > case 4+1: > accum += (data1[4]); ># 748 "numpy/core/src/multiarray/einsum.c.src" > case 3+1: > accum += (data1[3]); ># 748 "numpy/core/src/multiarray/einsum.c.src" > case 2+1: > accum += (data1[2]); ># 748 "numpy/core/src/multiarray/einsum.c.src" > case 1+1: > accum += (data1[1]); ># 748 "numpy/core/src/multiarray/einsum.c.src" > case 0+1: > accum += (data1[0]); > > case 0: > *(npy_uint *)dataptr[2] += (value0 * accum); > return; > } ># 795 "numpy/core/src/multiarray/einsum.c.src" > while (count >= 8) { > count -= 8; ># 807 "numpy/core/src/multiarray/einsum.c.src" > accum += (data1[0]); ># 807 "numpy/core/src/multiarray/einsum.c.src" > accum += (data1[1]); ># 807 "numpy/core/src/multiarray/einsum.c.src" > accum += (data1[2]); ># 807 "numpy/core/src/multiarray/einsum.c.src" > accum += (data1[3]); ># 807 "numpy/core/src/multiarray/einsum.c.src" > accum += (data1[4]); ># 807 "numpy/core/src/multiarray/einsum.c.src" > accum += (data1[5]); ># 807 "numpy/core/src/multiarray/einsum.c.src" > accum += (data1[6]); ># 807 "numpy/core/src/multiarray/einsum.c.src" > accum += (data1[7]); > > > data1 += 8; > } ># 823 "numpy/core/src/multiarray/einsum.c.src" > goto finish_after_unrolled_loop; >} > >static void >uint_sum_of_products_contig_stride0_outstride0_two(int nop, char **dataptr, > npy_intp *(__NPY_UNUSED_TAGGEDstrides) __attribute__ ((__unused__)), npy_intp count) >{ > npy_uint *data0 = (npy_uint *)dataptr[0]; > npy_uint value1 = (*(npy_uint *)dataptr[1]); > npy_uint accum = 0; > > > > > > ; > > > >finish_after_unrolled_loop: > switch (count) { ># 847 "numpy/core/src/multiarray/einsum.c.src" > case 6+1: > accum += (data0[6]); ># 847 "numpy/core/src/multiarray/einsum.c.src" > case 5+1: > accum += (data0[5]); ># 847 "numpy/core/src/multiarray/einsum.c.src" > case 4+1: > accum += (data0[4]); ># 847 "numpy/core/src/multiarray/einsum.c.src" > case 3+1: > accum += (data0[3]); ># 847 "numpy/core/src/multiarray/einsum.c.src" > case 2+1: > accum += (data0[2]); ># 847 "numpy/core/src/multiarray/einsum.c.src" > case 1+1: > accum += (data0[1]); ># 847 "numpy/core/src/multiarray/einsum.c.src" > case 0+1: > accum += (data0[0]); > > case 0: > *(npy_uint *)dataptr[2] += (accum * value1); > return; > } ># 894 "numpy/core/src/multiarray/einsum.c.src" > while (count >= 8) { > count -= 8; ># 906 "numpy/core/src/multiarray/einsum.c.src" > accum += (data0[0]); ># 906 "numpy/core/src/multiarray/einsum.c.src" > accum += (data0[1]); ># 906 "numpy/core/src/multiarray/einsum.c.src" > accum += (data0[2]); ># 906 "numpy/core/src/multiarray/einsum.c.src" > accum += (data0[3]); ># 906 "numpy/core/src/multiarray/einsum.c.src" > accum += (data0[4]); ># 906 "numpy/core/src/multiarray/einsum.c.src" > accum += (data0[5]); ># 906 "numpy/core/src/multiarray/einsum.c.src" > accum += (data0[6]); ># 906 "numpy/core/src/multiarray/einsum.c.src" > accum += (data0[7]); > > > data0 += 8; > } ># 922 "numpy/core/src/multiarray/einsum.c.src" > goto finish_after_unrolled_loop; >} ># 1455 "numpy/core/src/multiarray/einsum.c.src" >static void >uint_sum_of_products_outstride0_two(int nop, char **dataptr, > npy_intp *strides, npy_intp count) >{ > > > > npy_uint accum = 0; > > > > char *data0 = dataptr[0]; > npy_intp stride0 = strides[0]; > > > char *data1 = dataptr[1]; > npy_intp stride1 = strides[1]; > > > > > > > ; > > > while (count--) { > > > > > > accum += (*(npy_uint *)data0) * > (*(npy_uint *)data1); > data0 += stride0; > data1 += stride1; ># 1539 "numpy/core/src/multiarray/einsum.c.src" > } ># 1551 "numpy/core/src/multiarray/einsum.c.src" > *((npy_uint *)dataptr[2]) = (accum + > (*((npy_uint *)dataptr[2]))); > > > > > > >} ># 107 "numpy/core/src/multiarray/einsum.c.src" >static void >uint_sum_of_products_three(int nop, char **dataptr, > npy_intp *strides, npy_intp count) >{ > > char *data0 = dataptr[0]; > npy_intp stride0 = strides[0]; > > > char *data1 = dataptr[1]; > npy_intp stride1 = strides[1]; > > > char *data2 = dataptr[2]; > npy_intp stride2 = strides[2]; > > > char *data_out = dataptr[3]; > npy_intp stride_out = strides[3]; > > > ; > > while (count--) { ># 145 "numpy/core/src/multiarray/einsum.c.src" > *(npy_uint *)data_out = ((*(npy_uint *)data0) * > (*(npy_uint *)data1) * > (*(npy_uint *)data2) + > (*(npy_uint *)data_out)); > data0 += stride0; > data1 += stride1; > data2 += stride2; > data_out += stride_out; ># 201 "numpy/core/src/multiarray/einsum.c.src" > } >} ># 1542 "numpy/core/src/multiarray/einsum.c.src" >static void >uint_sum_of_products_contig_three(int nop, char **dataptr, > npy_intp *(__NPY_UNUSED_TAGGEDstrides) __attribute__ ((__unused__)), npy_intp count) >{ > npy_uint *data0 = (npy_uint *)dataptr[0]; > npy_uint *data1 = (npy_uint *)dataptr[1]; > npy_uint *data2 = (npy_uint *)dataptr[2]; > npy_uint *data_out = (npy_uint *)dataptr[3]; > > > while (count >= 8) { > count -= 8; ># 943 "numpy/core/src/multiarray/einsum.c.src" > data_out[0] = ((data0[0]) * > (data1[0]) * > (data2[0]) + > (data_out[0])); ># 943 "numpy/core/src/multiarray/einsum.c.src" > data_out[1] = ((data0[1]) * > (data1[1]) * > (data2[1]) + > (data_out[1])); ># 943 "numpy/core/src/multiarray/einsum.c.src" > data_out[2] = ((data0[2]) * > (data1[2]) * > (data2[2]) + > (data_out[2])); ># 943 "numpy/core/src/multiarray/einsum.c.src" > data_out[3] = ((data0[3]) * > (data1[3]) * > (data2[3]) + > (data_out[3])); ># 943 "numpy/core/src/multiarray/einsum.c.src" > data_out[4] = ((data0[4]) * > (data1[4]) * > (data2[4]) + > (data_out[4])); ># 943 "numpy/core/src/multiarray/einsum.c.src" > data_out[5] = ((data0[5]) * > (data1[5]) * > (data2[5]) + > (data_out[5])); ># 943 "numpy/core/src/multiarray/einsum.c.src" > data_out[6] = ((data0[6]) * > (data1[6]) * > (data2[6]) + > (data_out[6])); ># 943 "numpy/core/src/multiarray/einsum.c.src" > data_out[7] = ((data0[7]) * > (data1[7]) * > (data2[7]) + > (data_out[7])); > > data0 += 8; > data1 += 8; > data_out += 8; > } ># 958 "numpy/core/src/multiarray/einsum.c.src" > if (count-- == 0) { > return; > } > data_out[0] = ((data0[0]) * > (data1[0]) * > (data2[0]) + > (data_out[0])); ># 958 "numpy/core/src/multiarray/einsum.c.src" > if (count-- == 0) { > return; > } > data_out[1] = ((data0[1]) * > (data1[1]) * > (data2[1]) + > (data_out[1])); ># 958 "numpy/core/src/multiarray/einsum.c.src" > if (count-- == 0) { > return; > } > data_out[2] = ((data0[2]) * > (data1[2]) * > (data2[2]) + > (data_out[2])); ># 958 "numpy/core/src/multiarray/einsum.c.src" > if (count-- == 0) { > return; > } > data_out[3] = ((data0[3]) * > (data1[3]) * > (data2[3]) + > (data_out[3])); ># 958 "numpy/core/src/multiarray/einsum.c.src" > if (count-- == 0) { > return; > } > data_out[4] = ((data0[4]) * > (data1[4]) * > (data2[4]) + > (data_out[4])); ># 958 "numpy/core/src/multiarray/einsum.c.src" > if (count-- == 0) { > return; > } > data_out[5] = ((data0[5]) * > (data1[5]) * > (data2[5]) + > (data_out[5])); ># 958 "numpy/core/src/multiarray/einsum.c.src" > if (count-- == 0) { > return; > } > data_out[6] = ((data0[6]) * > (data1[6]) * > (data2[6]) + > (data_out[6])); ># 958 "numpy/core/src/multiarray/einsum.c.src" > if (count-- == 0) { > return; > } > data_out[7] = ((data0[7]) * > (data1[7]) * > (data2[7]) + > (data_out[7])); > >} ># 1354 "numpy/core/src/multiarray/einsum.c.src" >static void >uint_sum_of_products_outstride0_three(int nop, char **dataptr, > npy_intp *strides, npy_intp count) >{ > > > > npy_uint accum = 0; > > > > char *data0 = dataptr[0]; > npy_intp stride0 = strides[0]; > > > char *data1 = dataptr[1]; > npy_intp stride1 = strides[1]; > > > char *data2 = dataptr[2]; > npy_intp stride2 = strides[2]; > > > ; > > > while (count--) { ># 1391 "numpy/core/src/multiarray/einsum.c.src" > accum += (*(npy_uint *)data0) * > (*(npy_uint *)data1) * > (*(npy_uint *)data2); > data0 += stride0; > data1 += stride1; > data2 += stride2; ># 1438 "numpy/core/src/multiarray/einsum.c.src" > } ># 1450 "numpy/core/src/multiarray/einsum.c.src" > *((npy_uint *)dataptr[3]) = (accum + > (*((npy_uint *)dataptr[3]))); > > > > > > >} ># 107 "numpy/core/src/multiarray/einsum.c.src" >static void >uint_sum_of_products_any(int nop, char **dataptr, > npy_intp *strides, npy_intp count) >{ ># 128 "numpy/core/src/multiarray/einsum.c.src" > ; > > while (count--) { ># 154 "numpy/core/src/multiarray/einsum.c.src" > npy_uint temp = (*(npy_uint *)dataptr[0]); > int i; > for (i = 1; i < nop; ++i) { > temp *= (*(npy_uint *)dataptr[i]); > } > *(npy_uint *)dataptr[nop] = (temp + > (*(npy_uint *)dataptr[i])); > for (i = 0; i <= nop; ++i) { > dataptr[i] += strides[i]; > } ># 201 "numpy/core/src/multiarray/einsum.c.src" > } >} ># 1686 "numpy/core/src/multiarray/einsum.c.src" >static void >uint_sum_of_products_contig_any(int nop, char **dataptr, > npy_intp *(__NPY_UNUSED_TAGGEDstrides) __attribute__ ((__unused__)), npy_intp count) >{ > ; > > > while (count--) { > > npy_uint temp = (*(npy_uint *)dataptr[0]); > int i; > for (i = 1; i < nop; ++i) { > temp *= (*(npy_uint *)dataptr[i]); > } > *(npy_uint *)dataptr[nop] = (temp + > (*(npy_uint *)dataptr[i])); > for (i = 0; i <= nop; ++i) { > dataptr[i] += sizeof(npy_uint); > } ># 1732 "numpy/core/src/multiarray/einsum.c.src" > } >} ># 2070 "numpy/core/src/multiarray/einsum.c.src" >static void >uint_sum_of_products_outstride0_any(int nop, char **dataptr, > npy_intp *strides, npy_intp count) >{ > > > > npy_uint accum = 0; ># 2093 "numpy/core/src/multiarray/einsum.c.src" > ; > > > while (count--) { ># 2114 "numpy/core/src/multiarray/einsum.c.src" > npy_uint temp = (*(npy_uint *)dataptr[0]); > int i; > for (i = 1; i < nop; ++i) { > temp *= (*(npy_uint *)dataptr[i]); > } > accum += temp; > for (i = 0; i < nop; ++i) { > dataptr[i] += strides[i]; > } ># 2154 "numpy/core/src/multiarray/einsum.c.src" > } ># 2169 "numpy/core/src/multiarray/einsum.c.src" > *((npy_uint *)dataptr[nop]) = (accum + > (*((npy_uint *)dataptr[nop]))); > > > >} ># 102 "numpy/core/src/multiarray/einsum.c.src" ># 107 "numpy/core/src/multiarray/einsum.c.src" >static void >ulong_sum_of_products_one(int nop, char **dataptr, > npy_intp *strides, npy_intp count) >{ > > char *data0 = dataptr[0]; > npy_intp stride0 = strides[0]; ># 124 "numpy/core/src/multiarray/einsum.c.src" > char *data_out = dataptr[1]; > npy_intp stride_out = strides[1]; > > > ; > > while (count--) { > > > *(npy_ulong *)data_out = ((*(npy_ulong *)data0) + > (*(npy_ulong *)data_out)); > data0 += stride0; > data_out += stride_out; ># 201 "numpy/core/src/multiarray/einsum.c.src" > } >} > > > >static void >ulong_sum_of_products_contig_one(int nop, char **dataptr, > npy_intp *(__NPY_UNUSED_TAGGEDstrides) __attribute__ ((__unused__)), npy_intp count) >{ > npy_ulong *data0 = (npy_ulong *)dataptr[0]; > npy_ulong *data_out = (npy_ulong *)dataptr[1]; > > ; > > > >finish_after_unrolled_loop: > switch (count) { ># 222 "numpy/core/src/multiarray/einsum.c.src" > case 6+1: > > data_out[6] = ((data0[6]) + > (data_out[6])); ># 222 "numpy/core/src/multiarray/einsum.c.src" > case 5+1: > > data_out[5] = ((data0[5]) + > (data_out[5])); ># 222 "numpy/core/src/multiarray/einsum.c.src" > case 4+1: > > data_out[4] = ((data0[4]) + > (data_out[4])); ># 222 "numpy/core/src/multiarray/einsum.c.src" > case 3+1: > > data_out[3] = ((data0[3]) + > (data_out[3])); ># 222 "numpy/core/src/multiarray/einsum.c.src" > case 2+1: > > data_out[2] = ((data0[2]) + > (data_out[2])); ># 222 "numpy/core/src/multiarray/einsum.c.src" > case 1+1: > > data_out[1] = ((data0[1]) + > (data_out[1])); ># 222 "numpy/core/src/multiarray/einsum.c.src" > case 0+1: > > data_out[0] = ((data0[0]) + > (data_out[0])); ># 235 "numpy/core/src/multiarray/einsum.c.src" > case 0: > return; > } > > > while (count >= 8) { > count -= 8; ># 246 "numpy/core/src/multiarray/einsum.c.src" > > data_out[0] = ((data0[0]) + > (data_out[0])); ># 246 "numpy/core/src/multiarray/einsum.c.src" > > data_out[1] = ((data0[1]) + > (data_out[1])); ># 246 "numpy/core/src/multiarray/einsum.c.src" > > data_out[2] = ((data0[2]) + > (data_out[2])); ># 246 "numpy/core/src/multiarray/einsum.c.src" > > data_out[3] = ((data0[3]) + > (data_out[3])); ># 246 "numpy/core/src/multiarray/einsum.c.src" > > data_out[4] = ((data0[4]) + > (data_out[4])); ># 246 "numpy/core/src/multiarray/einsum.c.src" > > data_out[5] = ((data0[5]) + > (data_out[5])); ># 246 "numpy/core/src/multiarray/einsum.c.src" > > data_out[6] = ((data0[6]) + > (data_out[6])); ># 246 "numpy/core/src/multiarray/einsum.c.src" > > data_out[7] = ((data0[7]) + > (data_out[7])); ># 258 "numpy/core/src/multiarray/einsum.c.src" > data0 += 8; > data_out += 8; > } > > > goto finish_after_unrolled_loop; >} ># 1568 "numpy/core/src/multiarray/einsum.c.src" >static void >ulong_sum_of_products_contig_outstride0_one(int nop, char **dataptr, > npy_intp *strides, npy_intp count) >{ > > > > > npy_ulong accum = 0; > npy_ulong *data0 = (npy_ulong *)dataptr[0]; ># 1587 "numpy/core/src/multiarray/einsum.c.src" > ; > > > >finish_after_unrolled_loop: > switch (count) { ># 1051 "numpy/core/src/multiarray/einsum.c.src" > case 6+1: > > accum += (data0[6]); ># 1051 "numpy/core/src/multiarray/einsum.c.src" > case 5+1: > > accum += (data0[5]); ># 1051 "numpy/core/src/multiarray/einsum.c.src" > case 4+1: > > accum += (data0[4]); ># 1051 "numpy/core/src/multiarray/einsum.c.src" > case 3+1: > > accum += (data0[3]); ># 1051 "numpy/core/src/multiarray/einsum.c.src" > case 2+1: > > accum += (data0[2]); ># 1051 "numpy/core/src/multiarray/einsum.c.src" > case 1+1: > > accum += (data0[1]); ># 1051 "numpy/core/src/multiarray/einsum.c.src" > case 0+1: > > accum += (data0[0]); > > > > > > case 0: > > > > > *((npy_ulong *)dataptr[1]) = (accum + > (*((npy_ulong *)dataptr[1]))); > > return; > } ># 1157 "numpy/core/src/multiarray/einsum.c.src" > while (count >= 8) { > count -= 8; ># 1164 "numpy/core/src/multiarray/einsum.c.src" > > accum += (data0[0]); ># 1164 "numpy/core/src/multiarray/einsum.c.src" > > accum += (data0[1]); ># 1164 "numpy/core/src/multiarray/einsum.c.src" > > accum += (data0[2]); ># 1164 "numpy/core/src/multiarray/einsum.c.src" > > accum += (data0[3]); ># 1164 "numpy/core/src/multiarray/einsum.c.src" > > accum += (data0[4]); ># 1164 "numpy/core/src/multiarray/einsum.c.src" > > accum += (data0[5]); ># 1164 "numpy/core/src/multiarray/einsum.c.src" > > accum += (data0[6]); ># 1164 "numpy/core/src/multiarray/einsum.c.src" > > accum += (data0[7]); ># 1174 "numpy/core/src/multiarray/einsum.c.src" > data0 += 8; > > > > } ># 1195 "numpy/core/src/multiarray/einsum.c.src" > goto finish_after_unrolled_loop; >} > > > >static void >ulong_sum_of_products_outstride0_one(int nop, char **dataptr, > npy_intp *strides, npy_intp count) >{ > > > > npy_ulong accum = 0; > > > > char *data0 = dataptr[0]; > npy_intp stride0 = strides[0]; ># 1223 "numpy/core/src/multiarray/einsum.c.src" > ; > > > while (count--) { > > > accum += (*(npy_ulong *)data0); > data0 += stride0; ># 1284 "numpy/core/src/multiarray/einsum.c.src" > } ># 1296 "numpy/core/src/multiarray/einsum.c.src" > *((npy_ulong *)dataptr[1]) = (accum + > (*((npy_ulong *)dataptr[1]))); > > > > > > >} ># 107 "numpy/core/src/multiarray/einsum.c.src" >static void >ulong_sum_of_products_two(int nop, char **dataptr, > npy_intp *strides, npy_intp count) >{ > > char *data0 = dataptr[0]; > npy_intp stride0 = strides[0]; > > > char *data1 = dataptr[1]; > npy_intp stride1 = strides[1]; > > > > > > > char *data_out = dataptr[2]; > npy_intp stride_out = strides[2]; > > > ; > > while (count--) { > > > > > > > > *(npy_ulong *)data_out = ((*(npy_ulong *)data0) * > (*(npy_ulong *)data1) + > (*(npy_ulong *)data_out)); > data0 += stride0; > data1 += stride1; > data_out += stride_out; ># 201 "numpy/core/src/multiarray/einsum.c.src" > } >} ># 439 "numpy/core/src/multiarray/einsum.c.src" >static void >ulong_sum_of_products_contig_two(int nop, char **dataptr, > npy_intp *(__NPY_UNUSED_TAGGEDstrides) __attribute__ ((__unused__)), npy_intp count) >{ > npy_ulong *data0 = (npy_ulong *)dataptr[0]; > npy_ulong *data1 = (npy_ulong *)dataptr[1]; > npy_ulong *data_out = (npy_ulong *)dataptr[2]; > > > > > > ; > > > >finish_after_unrolled_loop: > switch (count) { ># 289 "numpy/core/src/multiarray/einsum.c.src" > case 6+1: > data_out[6] = ((data0[6]) * > (data1[6]) + > (data_out[6])); ># 289 "numpy/core/src/multiarray/einsum.c.src" > case 5+1: > data_out[5] = ((data0[5]) * > (data1[5]) + > (data_out[5])); ># 289 "numpy/core/src/multiarray/einsum.c.src" > case 4+1: > data_out[4] = ((data0[4]) * > (data1[4]) + > (data_out[4])); ># 289 "numpy/core/src/multiarray/einsum.c.src" > case 3+1: > data_out[3] = ((data0[3]) * > (data1[3]) + > (data_out[3])); ># 289 "numpy/core/src/multiarray/einsum.c.src" > case 2+1: > data_out[2] = ((data0[2]) * > (data1[2]) + > (data_out[2])); ># 289 "numpy/core/src/multiarray/einsum.c.src" > case 1+1: > data_out[1] = ((data0[1]) * > (data1[1]) + > (data_out[1])); ># 289 "numpy/core/src/multiarray/einsum.c.src" > case 0+1: > data_out[0] = ((data0[0]) * > (data1[0]) + > (data_out[0])); > > case 0: > return; > } ># 327 "numpy/core/src/multiarray/einsum.c.src" > while (count >= 8) { > count -= 8; ># 339 "numpy/core/src/multiarray/einsum.c.src" > data_out[0] = ((data0[0]) * > (data1[0]) + > (data_out[0])); ># 339 "numpy/core/src/multiarray/einsum.c.src" > data_out[1] = ((data0[1]) * > (data1[1]) + > (data_out[1])); ># 339 "numpy/core/src/multiarray/einsum.c.src" > data_out[2] = ((data0[2]) * > (data1[2]) + > (data_out[2])); ># 339 "numpy/core/src/multiarray/einsum.c.src" > data_out[3] = ((data0[3]) * > (data1[3]) + > (data_out[3])); ># 339 "numpy/core/src/multiarray/einsum.c.src" > data_out[4] = ((data0[4]) * > (data1[4]) + > (data_out[4])); ># 339 "numpy/core/src/multiarray/einsum.c.src" > data_out[5] = ((data0[5]) * > (data1[5]) + > (data_out[5])); ># 339 "numpy/core/src/multiarray/einsum.c.src" > data_out[6] = ((data0[6]) * > (data1[6]) + > (data_out[6])); ># 339 "numpy/core/src/multiarray/einsum.c.src" > data_out[7] = ((data0[7]) * > (data1[7]) + > (data_out[7])); > > > data0 += 8; > data1 += 8; > data_out += 8; > } > > > goto finish_after_unrolled_loop; >} > > >static void >ulong_sum_of_products_stride0_contig_outcontig_two(int nop, char **dataptr, > npy_intp *(__NPY_UNUSED_TAGGEDstrides) __attribute__ ((__unused__)), npy_intp count) >{ > npy_ulong value0 = (*(npy_ulong *)dataptr[0]); > npy_ulong *data1 = (npy_ulong *)dataptr[1]; > npy_ulong *data_out = (npy_ulong *)dataptr[2]; > > > > > > > > ; > > > >finish_after_unrolled_loop: > switch (count) { ># 377 "numpy/core/src/multiarray/einsum.c.src" > case 6+1: > data_out[6] = (value0 * > (data1[6]) + > (data_out[6])); ># 377 "numpy/core/src/multiarray/einsum.c.src" > case 5+1: > data_out[5] = (value0 * > (data1[5]) + > (data_out[5])); ># 377 "numpy/core/src/multiarray/einsum.c.src" > case 4+1: > data_out[4] = (value0 * > (data1[4]) + > (data_out[4])); ># 377 "numpy/core/src/multiarray/einsum.c.src" > case 3+1: > data_out[3] = (value0 * > (data1[3]) + > (data_out[3])); ># 377 "numpy/core/src/multiarray/einsum.c.src" > case 2+1: > data_out[2] = (value0 * > (data1[2]) + > (data_out[2])); ># 377 "numpy/core/src/multiarray/einsum.c.src" > case 1+1: > data_out[1] = (value0 * > (data1[1]) + > (data_out[1])); ># 377 "numpy/core/src/multiarray/einsum.c.src" > case 0+1: > data_out[0] = (value0 * > (data1[0]) + > (data_out[0])); > > case 0: > return; > } ># 461 "numpy/core/src/multiarray/einsum.c.src" > while (count >= 8) { > count -= 8; ># 468 "numpy/core/src/multiarray/einsum.c.src" > data_out[0] = (value0 * > (data1[0]) + > (data_out[0])); ># 468 "numpy/core/src/multiarray/einsum.c.src" > data_out[1] = (value0 * > (data1[1]) + > (data_out[1])); ># 468 "numpy/core/src/multiarray/einsum.c.src" > data_out[2] = (value0 * > (data1[2]) + > (data_out[2])); ># 468 "numpy/core/src/multiarray/einsum.c.src" > data_out[3] = (value0 * > (data1[3]) + > (data_out[3])); ># 468 "numpy/core/src/multiarray/einsum.c.src" > data_out[4] = (value0 * > (data1[4]) + > (data_out[4])); ># 468 "numpy/core/src/multiarray/einsum.c.src" > data_out[5] = (value0 * > (data1[5]) + > (data_out[5])); ># 468 "numpy/core/src/multiarray/einsum.c.src" > data_out[6] = (value0 * > (data1[6]) + > (data_out[6])); ># 468 "numpy/core/src/multiarray/einsum.c.src" > data_out[7] = (value0 * > (data1[7]) + > (data_out[7])); > > > data1 += 8; > data_out += 8; > } > > > if (count > 0) { > goto finish_after_unrolled_loop; > } >} > >static void >ulong_sum_of_products_contig_stride0_outcontig_two(int nop, char **dataptr, > npy_intp *(__NPY_UNUSED_TAGGEDstrides) __attribute__ ((__unused__)), npy_intp count) >{ > npy_ulong *data0 = (npy_ulong *)dataptr[0]; > npy_ulong value1 = (*(npy_ulong *)dataptr[1]); > npy_ulong *data_out = (npy_ulong *)dataptr[2]; > > > > > > ; > > > >finish_after_unrolled_loop: > switch (count) { ># 504 "numpy/core/src/multiarray/einsum.c.src" > case 6+1: > data_out[6] = ((data0[6])* > value1 + > (data_out[6])); ># 504 "numpy/core/src/multiarray/einsum.c.src" > case 5+1: > data_out[5] = ((data0[5])* > value1 + > (data_out[5])); ># 504 "numpy/core/src/multiarray/einsum.c.src" > case 4+1: > data_out[4] = ((data0[4])* > value1 + > (data_out[4])); ># 504 "numpy/core/src/multiarray/einsum.c.src" > case 3+1: > data_out[3] = ((data0[3])* > value1 + > (data_out[3])); ># 504 "numpy/core/src/multiarray/einsum.c.src" > case 2+1: > data_out[2] = ((data0[2])* > value1 + > (data_out[2])); ># 504 "numpy/core/src/multiarray/einsum.c.src" > case 1+1: > data_out[1] = ((data0[1])* > value1 + > (data_out[1])); ># 504 "numpy/core/src/multiarray/einsum.c.src" > case 0+1: > data_out[0] = ((data0[0])* > value1 + > (data_out[0])); > > case 0: > return; > } ># 542 "numpy/core/src/multiarray/einsum.c.src" > while (count >= 8) { > count -= 8; ># 554 "numpy/core/src/multiarray/einsum.c.src" > data_out[0] = ((data0[0])* > value1 + > (data_out[0])); ># 554 "numpy/core/src/multiarray/einsum.c.src" > data_out[1] = ((data0[1])* > value1 + > (data_out[1])); ># 554 "numpy/core/src/multiarray/einsum.c.src" > data_out[2] = ((data0[2])* > value1 + > (data_out[2])); ># 554 "numpy/core/src/multiarray/einsum.c.src" > data_out[3] = ((data0[3])* > value1 + > (data_out[3])); ># 554 "numpy/core/src/multiarray/einsum.c.src" > data_out[4] = ((data0[4])* > value1 + > (data_out[4])); ># 554 "numpy/core/src/multiarray/einsum.c.src" > data_out[5] = ((data0[5])* > value1 + > (data_out[5])); ># 554 "numpy/core/src/multiarray/einsum.c.src" > data_out[6] = ((data0[6])* > value1 + > (data_out[6])); ># 554 "numpy/core/src/multiarray/einsum.c.src" > data_out[7] = ((data0[7])* > value1 + > (data_out[7])); > > > data0 += 8; > data_out += 8; > } > > > goto finish_after_unrolled_loop; >} > >static void >ulong_sum_of_products_contig_contig_outstride0_two(int nop, char **dataptr, > npy_intp *(__NPY_UNUSED_TAGGEDstrides) __attribute__ ((__unused__)), npy_intp count) >{ > npy_ulong *data0 = (npy_ulong *)dataptr[0]; > npy_ulong *data1 = (npy_ulong *)dataptr[1]; > npy_ulong accum = 0; > > > > > > > > ; > > > >finish_after_unrolled_loop: > switch (count) { ># 590 "numpy/core/src/multiarray/einsum.c.src" > case 6+1: > accum += (data0[6]) * (data1[6]); ># 590 "numpy/core/src/multiarray/einsum.c.src" > case 5+1: > accum += (data0[5]) * (data1[5]); ># 590 "numpy/core/src/multiarray/einsum.c.src" > case 4+1: > accum += (data0[4]) * (data1[4]); ># 590 "numpy/core/src/multiarray/einsum.c.src" > case 3+1: > accum += (data0[3]) * (data1[3]); ># 590 "numpy/core/src/multiarray/einsum.c.src" > case 2+1: > accum += (data0[2]) * (data1[2]); ># 590 "numpy/core/src/multiarray/einsum.c.src" > case 1+1: > accum += (data0[1]) * (data1[1]); ># 590 "numpy/core/src/multiarray/einsum.c.src" > case 0+1: > accum += (data0[0]) * (data1[0]); > > case 0: > *(npy_ulong *)dataptr[2] += (accum); > return; > } ># 695 "numpy/core/src/multiarray/einsum.c.src" > while (count >= 8) { > count -= 8; ># 702 "numpy/core/src/multiarray/einsum.c.src" > accum += (data0[0]) * (data1[0]); ># 702 "numpy/core/src/multiarray/einsum.c.src" > accum += (data0[1]) * (data1[1]); ># 702 "numpy/core/src/multiarray/einsum.c.src" > accum += (data0[2]) * (data1[2]); ># 702 "numpy/core/src/multiarray/einsum.c.src" > accum += (data0[3]) * (data1[3]); ># 702 "numpy/core/src/multiarray/einsum.c.src" > accum += (data0[4]) * (data1[4]); ># 702 "numpy/core/src/multiarray/einsum.c.src" > accum += (data0[5]) * (data1[5]); ># 702 "numpy/core/src/multiarray/einsum.c.src" > accum += (data0[6]) * (data1[6]); ># 702 "numpy/core/src/multiarray/einsum.c.src" > accum += (data0[7]) * (data1[7]); > > > data0 += 8; > data1 += 8; > } ># 724 "numpy/core/src/multiarray/einsum.c.src" > goto finish_after_unrolled_loop; >} > >static void >ulong_sum_of_products_stride0_contig_outstride0_two(int nop, char **dataptr, > npy_intp *(__NPY_UNUSED_TAGGEDstrides) __attribute__ ((__unused__)), npy_intp count) >{ > npy_ulong value0 = (*(npy_ulong *)dataptr[0]); > npy_ulong *data1 = (npy_ulong *)dataptr[1]; > npy_ulong accum = 0; > > > > > > ; > > > >finish_after_unrolled_loop: > switch (count) { ># 748 "numpy/core/src/multiarray/einsum.c.src" > case 6+1: > accum += (data1[6]); ># 748 "numpy/core/src/multiarray/einsum.c.src" > case 5+1: > accum += (data1[5]); ># 748 "numpy/core/src/multiarray/einsum.c.src" > case 4+1: > accum += (data1[4]); ># 748 "numpy/core/src/multiarray/einsum.c.src" > case 3+1: > accum += (data1[3]); ># 748 "numpy/core/src/multiarray/einsum.c.src" > case 2+1: > accum += (data1[2]); ># 748 "numpy/core/src/multiarray/einsum.c.src" > case 1+1: > accum += (data1[1]); ># 748 "numpy/core/src/multiarray/einsum.c.src" > case 0+1: > accum += (data1[0]); > > case 0: > *(npy_ulong *)dataptr[2] += (value0 * accum); > return; > } ># 795 "numpy/core/src/multiarray/einsum.c.src" > while (count >= 8) { > count -= 8; ># 807 "numpy/core/src/multiarray/einsum.c.src" > accum += (data1[0]); ># 807 "numpy/core/src/multiarray/einsum.c.src" > accum += (data1[1]); ># 807 "numpy/core/src/multiarray/einsum.c.src" > accum += (data1[2]); ># 807 "numpy/core/src/multiarray/einsum.c.src" > accum += (data1[3]); ># 807 "numpy/core/src/multiarray/einsum.c.src" > accum += (data1[4]); ># 807 "numpy/core/src/multiarray/einsum.c.src" > accum += (data1[5]); ># 807 "numpy/core/src/multiarray/einsum.c.src" > accum += (data1[6]); ># 807 "numpy/core/src/multiarray/einsum.c.src" > accum += (data1[7]); > > > data1 += 8; > } ># 823 "numpy/core/src/multiarray/einsum.c.src" > goto finish_after_unrolled_loop; >} > >static void >ulong_sum_of_products_contig_stride0_outstride0_two(int nop, char **dataptr, > npy_intp *(__NPY_UNUSED_TAGGEDstrides) __attribute__ ((__unused__)), npy_intp count) >{ > npy_ulong *data0 = (npy_ulong *)dataptr[0]; > npy_ulong value1 = (*(npy_ulong *)dataptr[1]); > npy_ulong accum = 0; > > > > > > ; > > > >finish_after_unrolled_loop: > switch (count) { ># 847 "numpy/core/src/multiarray/einsum.c.src" > case 6+1: > accum += (data0[6]); ># 847 "numpy/core/src/multiarray/einsum.c.src" > case 5+1: > accum += (data0[5]); ># 847 "numpy/core/src/multiarray/einsum.c.src" > case 4+1: > accum += (data0[4]); ># 847 "numpy/core/src/multiarray/einsum.c.src" > case 3+1: > accum += (data0[3]); ># 847 "numpy/core/src/multiarray/einsum.c.src" > case 2+1: > accum += (data0[2]); ># 847 "numpy/core/src/multiarray/einsum.c.src" > case 1+1: > accum += (data0[1]); ># 847 "numpy/core/src/multiarray/einsum.c.src" > case 0+1: > accum += (data0[0]); > > case 0: > *(npy_ulong *)dataptr[2] += (accum * value1); > return; > } ># 894 "numpy/core/src/multiarray/einsum.c.src" > while (count >= 8) { > count -= 8; ># 906 "numpy/core/src/multiarray/einsum.c.src" > accum += (data0[0]); ># 906 "numpy/core/src/multiarray/einsum.c.src" > accum += (data0[1]); ># 906 "numpy/core/src/multiarray/einsum.c.src" > accum += (data0[2]); ># 906 "numpy/core/src/multiarray/einsum.c.src" > accum += (data0[3]); ># 906 "numpy/core/src/multiarray/einsum.c.src" > accum += (data0[4]); ># 906 "numpy/core/src/multiarray/einsum.c.src" > accum += (data0[5]); ># 906 "numpy/core/src/multiarray/einsum.c.src" > accum += (data0[6]); ># 906 "numpy/core/src/multiarray/einsum.c.src" > accum += (data0[7]); > > > data0 += 8; > } ># 922 "numpy/core/src/multiarray/einsum.c.src" > goto finish_after_unrolled_loop; >} ># 1455 "numpy/core/src/multiarray/einsum.c.src" >static void >ulong_sum_of_products_outstride0_two(int nop, char **dataptr, > npy_intp *strides, npy_intp count) >{ > > > > npy_ulong accum = 0; > > > > char *data0 = dataptr[0]; > npy_intp stride0 = strides[0]; > > > char *data1 = dataptr[1]; > npy_intp stride1 = strides[1]; > > > > > > > ; > > > while (count--) { > > > > > > accum += (*(npy_ulong *)data0) * > (*(npy_ulong *)data1); > data0 += stride0; > data1 += stride1; ># 1539 "numpy/core/src/multiarray/einsum.c.src" > } ># 1551 "numpy/core/src/multiarray/einsum.c.src" > *((npy_ulong *)dataptr[2]) = (accum + > (*((npy_ulong *)dataptr[2]))); > > > > > > >} ># 107 "numpy/core/src/multiarray/einsum.c.src" >static void >ulong_sum_of_products_three(int nop, char **dataptr, > npy_intp *strides, npy_intp count) >{ > > char *data0 = dataptr[0]; > npy_intp stride0 = strides[0]; > > > char *data1 = dataptr[1]; > npy_intp stride1 = strides[1]; > > > char *data2 = dataptr[2]; > npy_intp stride2 = strides[2]; > > > char *data_out = dataptr[3]; > npy_intp stride_out = strides[3]; > > > ; > > while (count--) { ># 145 "numpy/core/src/multiarray/einsum.c.src" > *(npy_ulong *)data_out = ((*(npy_ulong *)data0) * > (*(npy_ulong *)data1) * > (*(npy_ulong *)data2) + > (*(npy_ulong *)data_out)); > data0 += stride0; > data1 += stride1; > data2 += stride2; > data_out += stride_out; ># 201 "numpy/core/src/multiarray/einsum.c.src" > } >} ># 1542 "numpy/core/src/multiarray/einsum.c.src" >static void >ulong_sum_of_products_contig_three(int nop, char **dataptr, > npy_intp *(__NPY_UNUSED_TAGGEDstrides) __attribute__ ((__unused__)), npy_intp count) >{ > npy_ulong *data0 = (npy_ulong *)dataptr[0]; > npy_ulong *data1 = (npy_ulong *)dataptr[1]; > npy_ulong *data2 = (npy_ulong *)dataptr[2]; > npy_ulong *data_out = (npy_ulong *)dataptr[3]; > > > while (count >= 8) { > count -= 8; ># 943 "numpy/core/src/multiarray/einsum.c.src" > data_out[0] = ((data0[0]) * > (data1[0]) * > (data2[0]) + > (data_out[0])); ># 943 "numpy/core/src/multiarray/einsum.c.src" > data_out[1] = ((data0[1]) * > (data1[1]) * > (data2[1]) + > (data_out[1])); ># 943 "numpy/core/src/multiarray/einsum.c.src" > data_out[2] = ((data0[2]) * > (data1[2]) * > (data2[2]) + > (data_out[2])); ># 943 "numpy/core/src/multiarray/einsum.c.src" > data_out[3] = ((data0[3]) * > (data1[3]) * > (data2[3]) + > (data_out[3])); ># 943 "numpy/core/src/multiarray/einsum.c.src" > data_out[4] = ((data0[4]) * > (data1[4]) * > (data2[4]) + > (data_out[4])); ># 943 "numpy/core/src/multiarray/einsum.c.src" > data_out[5] = ((data0[5]) * > (data1[5]) * > (data2[5]) + > (data_out[5])); ># 943 "numpy/core/src/multiarray/einsum.c.src" > data_out[6] = ((data0[6]) * > (data1[6]) * > (data2[6]) + > (data_out[6])); ># 943 "numpy/core/src/multiarray/einsum.c.src" > data_out[7] = ((data0[7]) * > (data1[7]) * > (data2[7]) + > (data_out[7])); > > data0 += 8; > data1 += 8; > data_out += 8; > } ># 958 "numpy/core/src/multiarray/einsum.c.src" > if (count-- == 0) { > return; > } > data_out[0] = ((data0[0]) * > (data1[0]) * > (data2[0]) + > (data_out[0])); ># 958 "numpy/core/src/multiarray/einsum.c.src" > if (count-- == 0) { > return; > } > data_out[1] = ((data0[1]) * > (data1[1]) * > (data2[1]) + > (data_out[1])); ># 958 "numpy/core/src/multiarray/einsum.c.src" > if (count-- == 0) { > return; > } > data_out[2] = ((data0[2]) * > (data1[2]) * > (data2[2]) + > (data_out[2])); ># 958 "numpy/core/src/multiarray/einsum.c.src" > if (count-- == 0) { > return; > } > data_out[3] = ((data0[3]) * > (data1[3]) * > (data2[3]) + > (data_out[3])); ># 958 "numpy/core/src/multiarray/einsum.c.src" > if (count-- == 0) { > return; > } > data_out[4] = ((data0[4]) * > (data1[4]) * > (data2[4]) + > (data_out[4])); ># 958 "numpy/core/src/multiarray/einsum.c.src" > if (count-- == 0) { > return; > } > data_out[5] = ((data0[5]) * > (data1[5]) * > (data2[5]) + > (data_out[5])); ># 958 "numpy/core/src/multiarray/einsum.c.src" > if (count-- == 0) { > return; > } > data_out[6] = ((data0[6]) * > (data1[6]) * > (data2[6]) + > (data_out[6])); ># 958 "numpy/core/src/multiarray/einsum.c.src" > if (count-- == 0) { > return; > } > data_out[7] = ((data0[7]) * > (data1[7]) * > (data2[7]) + > (data_out[7])); > >} ># 1354 "numpy/core/src/multiarray/einsum.c.src" >static void >ulong_sum_of_products_outstride0_three(int nop, char **dataptr, > npy_intp *strides, npy_intp count) >{ > > > > npy_ulong accum = 0; > > > > char *data0 = dataptr[0]; > npy_intp stride0 = strides[0]; > > > char *data1 = dataptr[1]; > npy_intp stride1 = strides[1]; > > > char *data2 = dataptr[2]; > npy_intp stride2 = strides[2]; > > > ; > > > while (count--) { ># 1391 "numpy/core/src/multiarray/einsum.c.src" > accum += (*(npy_ulong *)data0) * > (*(npy_ulong *)data1) * > (*(npy_ulong *)data2); > data0 += stride0; > data1 += stride1; > data2 += stride2; ># 1438 "numpy/core/src/multiarray/einsum.c.src" > } ># 1450 "numpy/core/src/multiarray/einsum.c.src" > *((npy_ulong *)dataptr[3]) = (accum + > (*((npy_ulong *)dataptr[3]))); > > > > > > >} ># 107 "numpy/core/src/multiarray/einsum.c.src" >static void >ulong_sum_of_products_any(int nop, char **dataptr, > npy_intp *strides, npy_intp count) >{ ># 128 "numpy/core/src/multiarray/einsum.c.src" > ; > > while (count--) { ># 154 "numpy/core/src/multiarray/einsum.c.src" > npy_ulong temp = (*(npy_ulong *)dataptr[0]); > int i; > for (i = 1; i < nop; ++i) { > temp *= (*(npy_ulong *)dataptr[i]); > } > *(npy_ulong *)dataptr[nop] = (temp + > (*(npy_ulong *)dataptr[i])); > for (i = 0; i <= nop; ++i) { > dataptr[i] += strides[i]; > } ># 201 "numpy/core/src/multiarray/einsum.c.src" > } >} ># 1686 "numpy/core/src/multiarray/einsum.c.src" >static void >ulong_sum_of_products_contig_any(int nop, char **dataptr, > npy_intp *(__NPY_UNUSED_TAGGEDstrides) __attribute__ ((__unused__)), npy_intp count) >{ > ; > > > while (count--) { > > npy_ulong temp = (*(npy_ulong *)dataptr[0]); > int i; > for (i = 1; i < nop; ++i) { > temp *= (*(npy_ulong *)dataptr[i]); > } > *(npy_ulong *)dataptr[nop] = (temp + > (*(npy_ulong *)dataptr[i])); > for (i = 0; i <= nop; ++i) { > dataptr[i] += sizeof(npy_ulong); > } ># 1732 "numpy/core/src/multiarray/einsum.c.src" > } >} ># 2070 "numpy/core/src/multiarray/einsum.c.src" >static void >ulong_sum_of_products_outstride0_any(int nop, char **dataptr, > npy_intp *strides, npy_intp count) >{ > > > > npy_ulong accum = 0; ># 2093 "numpy/core/src/multiarray/einsum.c.src" > ; > > > while (count--) { ># 2114 "numpy/core/src/multiarray/einsum.c.src" > npy_ulong temp = (*(npy_ulong *)dataptr[0]); > int i; > for (i = 1; i < nop; ++i) { > temp *= (*(npy_ulong *)dataptr[i]); > } > accum += temp; > for (i = 0; i < nop; ++i) { > dataptr[i] += strides[i]; > } ># 2154 "numpy/core/src/multiarray/einsum.c.src" > } ># 2169 "numpy/core/src/multiarray/einsum.c.src" > *((npy_ulong *)dataptr[nop]) = (accum + > (*((npy_ulong *)dataptr[nop]))); > > > >} ># 102 "numpy/core/src/multiarray/einsum.c.src" ># 107 "numpy/core/src/multiarray/einsum.c.src" >static void >ulonglong_sum_of_products_one(int nop, char **dataptr, > npy_intp *strides, npy_intp count) >{ > > char *data0 = dataptr[0]; > npy_intp stride0 = strides[0]; ># 124 "numpy/core/src/multiarray/einsum.c.src" > char *data_out = dataptr[1]; > npy_intp stride_out = strides[1]; > > > ; > > while (count--) { > > > *(npy_ulonglong *)data_out = ((*(npy_ulonglong *)data0) + > (*(npy_ulonglong *)data_out)); > data0 += stride0; > data_out += stride_out; ># 201 "numpy/core/src/multiarray/einsum.c.src" > } >} > > > >static void >ulonglong_sum_of_products_contig_one(int nop, char **dataptr, > npy_intp *(__NPY_UNUSED_TAGGEDstrides) __attribute__ ((__unused__)), npy_intp count) >{ > npy_ulonglong *data0 = (npy_ulonglong *)dataptr[0]; > npy_ulonglong *data_out = (npy_ulonglong *)dataptr[1]; > > ; > > > >finish_after_unrolled_loop: > switch (count) { ># 222 "numpy/core/src/multiarray/einsum.c.src" > case 6+1: > > data_out[6] = ((data0[6]) + > (data_out[6])); ># 222 "numpy/core/src/multiarray/einsum.c.src" > case 5+1: > > data_out[5] = ((data0[5]) + > (data_out[5])); ># 222 "numpy/core/src/multiarray/einsum.c.src" > case 4+1: > > data_out[4] = ((data0[4]) + > (data_out[4])); ># 222 "numpy/core/src/multiarray/einsum.c.src" > case 3+1: > > data_out[3] = ((data0[3]) + > (data_out[3])); ># 222 "numpy/core/src/multiarray/einsum.c.src" > case 2+1: > > data_out[2] = ((data0[2]) + > (data_out[2])); ># 222 "numpy/core/src/multiarray/einsum.c.src" > case 1+1: > > data_out[1] = ((data0[1]) + > (data_out[1])); ># 222 "numpy/core/src/multiarray/einsum.c.src" > case 0+1: > > data_out[0] = ((data0[0]) + > (data_out[0])); ># 235 "numpy/core/src/multiarray/einsum.c.src" > case 0: > return; > } > > > while (count >= 8) { > count -= 8; ># 246 "numpy/core/src/multiarray/einsum.c.src" > > data_out[0] = ((data0[0]) + > (data_out[0])); ># 246 "numpy/core/src/multiarray/einsum.c.src" > > data_out[1] = ((data0[1]) + > (data_out[1])); ># 246 "numpy/core/src/multiarray/einsum.c.src" > > data_out[2] = ((data0[2]) + > (data_out[2])); ># 246 "numpy/core/src/multiarray/einsum.c.src" > > data_out[3] = ((data0[3]) + > (data_out[3])); ># 246 "numpy/core/src/multiarray/einsum.c.src" > > data_out[4] = ((data0[4]) + > (data_out[4])); ># 246 "numpy/core/src/multiarray/einsum.c.src" > > data_out[5] = ((data0[5]) + > (data_out[5])); ># 246 "numpy/core/src/multiarray/einsum.c.src" > > data_out[6] = ((data0[6]) + > (data_out[6])); ># 246 "numpy/core/src/multiarray/einsum.c.src" > > data_out[7] = ((data0[7]) + > (data_out[7])); ># 258 "numpy/core/src/multiarray/einsum.c.src" > data0 += 8; > data_out += 8; > } > > > goto finish_after_unrolled_loop; >} ># 1568 "numpy/core/src/multiarray/einsum.c.src" >static void >ulonglong_sum_of_products_contig_outstride0_one(int nop, char **dataptr, > npy_intp *strides, npy_intp count) >{ > > > > > npy_ulonglong accum = 0; > npy_ulonglong *data0 = (npy_ulonglong *)dataptr[0]; ># 1587 "numpy/core/src/multiarray/einsum.c.src" > ; > > > >finish_after_unrolled_loop: > switch (count) { ># 1051 "numpy/core/src/multiarray/einsum.c.src" > case 6+1: > > accum += (data0[6]); ># 1051 "numpy/core/src/multiarray/einsum.c.src" > case 5+1: > > accum += (data0[5]); ># 1051 "numpy/core/src/multiarray/einsum.c.src" > case 4+1: > > accum += (data0[4]); ># 1051 "numpy/core/src/multiarray/einsum.c.src" > case 3+1: > > accum += (data0[3]); ># 1051 "numpy/core/src/multiarray/einsum.c.src" > case 2+1: > > accum += (data0[2]); ># 1051 "numpy/core/src/multiarray/einsum.c.src" > case 1+1: > > accum += (data0[1]); ># 1051 "numpy/core/src/multiarray/einsum.c.src" > case 0+1: > > accum += (data0[0]); > > > > > > case 0: > > > > > *((npy_ulonglong *)dataptr[1]) = (accum + > (*((npy_ulonglong *)dataptr[1]))); > > return; > } ># 1157 "numpy/core/src/multiarray/einsum.c.src" > while (count >= 8) { > count -= 8; ># 1164 "numpy/core/src/multiarray/einsum.c.src" > > accum += (data0[0]); ># 1164 "numpy/core/src/multiarray/einsum.c.src" > > accum += (data0[1]); ># 1164 "numpy/core/src/multiarray/einsum.c.src" > > accum += (data0[2]); ># 1164 "numpy/core/src/multiarray/einsum.c.src" > > accum += (data0[3]); ># 1164 "numpy/core/src/multiarray/einsum.c.src" > > accum += (data0[4]); ># 1164 "numpy/core/src/multiarray/einsum.c.src" > > accum += (data0[5]); ># 1164 "numpy/core/src/multiarray/einsum.c.src" > > accum += (data0[6]); ># 1164 "numpy/core/src/multiarray/einsum.c.src" > > accum += (data0[7]); ># 1174 "numpy/core/src/multiarray/einsum.c.src" > data0 += 8; > > > > } ># 1195 "numpy/core/src/multiarray/einsum.c.src" > goto finish_after_unrolled_loop; >} > > > >static void >ulonglong_sum_of_products_outstride0_one(int nop, char **dataptr, > npy_intp *strides, npy_intp count) >{ > > > > npy_ulonglong accum = 0; > > > > char *data0 = dataptr[0]; > npy_intp stride0 = strides[0]; ># 1223 "numpy/core/src/multiarray/einsum.c.src" > ; > > > while (count--) { > > > accum += (*(npy_ulonglong *)data0); > data0 += stride0; ># 1284 "numpy/core/src/multiarray/einsum.c.src" > } ># 1296 "numpy/core/src/multiarray/einsum.c.src" > *((npy_ulonglong *)dataptr[1]) = (accum + > (*((npy_ulonglong *)dataptr[1]))); > > > > > > >} ># 107 "numpy/core/src/multiarray/einsum.c.src" >static void >ulonglong_sum_of_products_two(int nop, char **dataptr, > npy_intp *strides, npy_intp count) >{ > > char *data0 = dataptr[0]; > npy_intp stride0 = strides[0]; > > > char *data1 = dataptr[1]; > npy_intp stride1 = strides[1]; > > > > > > > char *data_out = dataptr[2]; > npy_intp stride_out = strides[2]; > > > ; > > while (count--) { > > > > > > > > *(npy_ulonglong *)data_out = ((*(npy_ulonglong *)data0) * > (*(npy_ulonglong *)data1) + > (*(npy_ulonglong *)data_out)); > data0 += stride0; > data1 += stride1; > data_out += stride_out; ># 201 "numpy/core/src/multiarray/einsum.c.src" > } >} ># 439 "numpy/core/src/multiarray/einsum.c.src" >static void >ulonglong_sum_of_products_contig_two(int nop, char **dataptr, > npy_intp *(__NPY_UNUSED_TAGGEDstrides) __attribute__ ((__unused__)), npy_intp count) >{ > npy_ulonglong *data0 = (npy_ulonglong *)dataptr[0]; > npy_ulonglong *data1 = (npy_ulonglong *)dataptr[1]; > npy_ulonglong *data_out = (npy_ulonglong *)dataptr[2]; > > > > > > ; > > > >finish_after_unrolled_loop: > switch (count) { ># 289 "numpy/core/src/multiarray/einsum.c.src" > case 6+1: > data_out[6] = ((data0[6]) * > (data1[6]) + > (data_out[6])); ># 289 "numpy/core/src/multiarray/einsum.c.src" > case 5+1: > data_out[5] = ((data0[5]) * > (data1[5]) + > (data_out[5])); ># 289 "numpy/core/src/multiarray/einsum.c.src" > case 4+1: > data_out[4] = ((data0[4]) * > (data1[4]) + > (data_out[4])); ># 289 "numpy/core/src/multiarray/einsum.c.src" > case 3+1: > data_out[3] = ((data0[3]) * > (data1[3]) + > (data_out[3])); ># 289 "numpy/core/src/multiarray/einsum.c.src" > case 2+1: > data_out[2] = ((data0[2]) * > (data1[2]) + > (data_out[2])); ># 289 "numpy/core/src/multiarray/einsum.c.src" > case 1+1: > data_out[1] = ((data0[1]) * > (data1[1]) + > (data_out[1])); ># 289 "numpy/core/src/multiarray/einsum.c.src" > case 0+1: > data_out[0] = ((data0[0]) * > (data1[0]) + > (data_out[0])); > > case 0: > return; > } ># 327 "numpy/core/src/multiarray/einsum.c.src" > while (count >= 8) { > count -= 8; ># 339 "numpy/core/src/multiarray/einsum.c.src" > data_out[0] = ((data0[0]) * > (data1[0]) + > (data_out[0])); ># 339 "numpy/core/src/multiarray/einsum.c.src" > data_out[1] = ((data0[1]) * > (data1[1]) + > (data_out[1])); ># 339 "numpy/core/src/multiarray/einsum.c.src" > data_out[2] = ((data0[2]) * > (data1[2]) + > (data_out[2])); ># 339 "numpy/core/src/multiarray/einsum.c.src" > data_out[3] = ((data0[3]) * > (data1[3]) + > (data_out[3])); ># 339 "numpy/core/src/multiarray/einsum.c.src" > data_out[4] = ((data0[4]) * > (data1[4]) + > (data_out[4])); ># 339 "numpy/core/src/multiarray/einsum.c.src" > data_out[5] = ((data0[5]) * > (data1[5]) + > (data_out[5])); ># 339 "numpy/core/src/multiarray/einsum.c.src" > data_out[6] = ((data0[6]) * > (data1[6]) + > (data_out[6])); ># 339 "numpy/core/src/multiarray/einsum.c.src" > data_out[7] = ((data0[7]) * > (data1[7]) + > (data_out[7])); > > > data0 += 8; > data1 += 8; > data_out += 8; > } > > > goto finish_after_unrolled_loop; >} > > >static void >ulonglong_sum_of_products_stride0_contig_outcontig_two(int nop, char **dataptr, > npy_intp *(__NPY_UNUSED_TAGGEDstrides) __attribute__ ((__unused__)), npy_intp count) >{ > npy_ulonglong value0 = (*(npy_ulonglong *)dataptr[0]); > npy_ulonglong *data1 = (npy_ulonglong *)dataptr[1]; > npy_ulonglong *data_out = (npy_ulonglong *)dataptr[2]; > > > > > > > > ; > > > >finish_after_unrolled_loop: > switch (count) { ># 377 "numpy/core/src/multiarray/einsum.c.src" > case 6+1: > data_out[6] = (value0 * > (data1[6]) + > (data_out[6])); ># 377 "numpy/core/src/multiarray/einsum.c.src" > case 5+1: > data_out[5] = (value0 * > (data1[5]) + > (data_out[5])); ># 377 "numpy/core/src/multiarray/einsum.c.src" > case 4+1: > data_out[4] = (value0 * > (data1[4]) + > (data_out[4])); ># 377 "numpy/core/src/multiarray/einsum.c.src" > case 3+1: > data_out[3] = (value0 * > (data1[3]) + > (data_out[3])); ># 377 "numpy/core/src/multiarray/einsum.c.src" > case 2+1: > data_out[2] = (value0 * > (data1[2]) + > (data_out[2])); ># 377 "numpy/core/src/multiarray/einsum.c.src" > case 1+1: > data_out[1] = (value0 * > (data1[1]) + > (data_out[1])); ># 377 "numpy/core/src/multiarray/einsum.c.src" > case 0+1: > data_out[0] = (value0 * > (data1[0]) + > (data_out[0])); > > case 0: > return; > } ># 461 "numpy/core/src/multiarray/einsum.c.src" > while (count >= 8) { > count -= 8; ># 468 "numpy/core/src/multiarray/einsum.c.src" > data_out[0] = (value0 * > (data1[0]) + > (data_out[0])); ># 468 "numpy/core/src/multiarray/einsum.c.src" > data_out[1] = (value0 * > (data1[1]) + > (data_out[1])); ># 468 "numpy/core/src/multiarray/einsum.c.src" > data_out[2] = (value0 * > (data1[2]) + > (data_out[2])); ># 468 "numpy/core/src/multiarray/einsum.c.src" > data_out[3] = (value0 * > (data1[3]) + > (data_out[3])); ># 468 "numpy/core/src/multiarray/einsum.c.src" > data_out[4] = (value0 * > (data1[4]) + > (data_out[4])); ># 468 "numpy/core/src/multiarray/einsum.c.src" > data_out[5] = (value0 * > (data1[5]) + > (data_out[5])); ># 468 "numpy/core/src/multiarray/einsum.c.src" > data_out[6] = (value0 * > (data1[6]) + > (data_out[6])); ># 468 "numpy/core/src/multiarray/einsum.c.src" > data_out[7] = (value0 * > (data1[7]) + > (data_out[7])); > > > data1 += 8; > data_out += 8; > } > > > if (count > 0) { > goto finish_after_unrolled_loop; > } >} > >static void >ulonglong_sum_of_products_contig_stride0_outcontig_two(int nop, char **dataptr, > npy_intp *(__NPY_UNUSED_TAGGEDstrides) __attribute__ ((__unused__)), npy_intp count) >{ > npy_ulonglong *data0 = (npy_ulonglong *)dataptr[0]; > npy_ulonglong value1 = (*(npy_ulonglong *)dataptr[1]); > npy_ulonglong *data_out = (npy_ulonglong *)dataptr[2]; > > > > > > ; > > > >finish_after_unrolled_loop: > switch (count) { ># 504 "numpy/core/src/multiarray/einsum.c.src" > case 6+1: > data_out[6] = ((data0[6])* > value1 + > (data_out[6])); ># 504 "numpy/core/src/multiarray/einsum.c.src" > case 5+1: > data_out[5] = ((data0[5])* > value1 + > (data_out[5])); ># 504 "numpy/core/src/multiarray/einsum.c.src" > case 4+1: > data_out[4] = ((data0[4])* > value1 + > (data_out[4])); ># 504 "numpy/core/src/multiarray/einsum.c.src" > case 3+1: > data_out[3] = ((data0[3])* > value1 + > (data_out[3])); ># 504 "numpy/core/src/multiarray/einsum.c.src" > case 2+1: > data_out[2] = ((data0[2])* > value1 + > (data_out[2])); ># 504 "numpy/core/src/multiarray/einsum.c.src" > case 1+1: > data_out[1] = ((data0[1])* > value1 + > (data_out[1])); ># 504 "numpy/core/src/multiarray/einsum.c.src" > case 0+1: > data_out[0] = ((data0[0])* > value1 + > (data_out[0])); > > case 0: > return; > } ># 542 "numpy/core/src/multiarray/einsum.c.src" > while (count >= 8) { > count -= 8; ># 554 "numpy/core/src/multiarray/einsum.c.src" > data_out[0] = ((data0[0])* > value1 + > (data_out[0])); ># 554 "numpy/core/src/multiarray/einsum.c.src" > data_out[1] = ((data0[1])* > value1 + > (data_out[1])); ># 554 "numpy/core/src/multiarray/einsum.c.src" > data_out[2] = ((data0[2])* > value1 + > (data_out[2])); ># 554 "numpy/core/src/multiarray/einsum.c.src" > data_out[3] = ((data0[3])* > value1 + > (data_out[3])); ># 554 "numpy/core/src/multiarray/einsum.c.src" > data_out[4] = ((data0[4])* > value1 + > (data_out[4])); ># 554 "numpy/core/src/multiarray/einsum.c.src" > data_out[5] = ((data0[5])* > value1 + > (data_out[5])); ># 554 "numpy/core/src/multiarray/einsum.c.src" > data_out[6] = ((data0[6])* > value1 + > (data_out[6])); ># 554 "numpy/core/src/multiarray/einsum.c.src" > data_out[7] = ((data0[7])* > value1 + > (data_out[7])); > > > data0 += 8; > data_out += 8; > } > > > goto finish_after_unrolled_loop; >} > >static void >ulonglong_sum_of_products_contig_contig_outstride0_two(int nop, char **dataptr, > npy_intp *(__NPY_UNUSED_TAGGEDstrides) __attribute__ ((__unused__)), npy_intp count) >{ > npy_ulonglong *data0 = (npy_ulonglong *)dataptr[0]; > npy_ulonglong *data1 = (npy_ulonglong *)dataptr[1]; > npy_ulonglong accum = 0; > > > > > > > > ; > > > >finish_after_unrolled_loop: > switch (count) { ># 590 "numpy/core/src/multiarray/einsum.c.src" > case 6+1: > accum += (data0[6]) * (data1[6]); ># 590 "numpy/core/src/multiarray/einsum.c.src" > case 5+1: > accum += (data0[5]) * (data1[5]); ># 590 "numpy/core/src/multiarray/einsum.c.src" > case 4+1: > accum += (data0[4]) * (data1[4]); ># 590 "numpy/core/src/multiarray/einsum.c.src" > case 3+1: > accum += (data0[3]) * (data1[3]); ># 590 "numpy/core/src/multiarray/einsum.c.src" > case 2+1: > accum += (data0[2]) * (data1[2]); ># 590 "numpy/core/src/multiarray/einsum.c.src" > case 1+1: > accum += (data0[1]) * (data1[1]); ># 590 "numpy/core/src/multiarray/einsum.c.src" > case 0+1: > accum += (data0[0]) * (data1[0]); > > case 0: > *(npy_ulonglong *)dataptr[2] += (accum); > return; > } ># 695 "numpy/core/src/multiarray/einsum.c.src" > while (count >= 8) { > count -= 8; ># 702 "numpy/core/src/multiarray/einsum.c.src" > accum += (data0[0]) * (data1[0]); ># 702 "numpy/core/src/multiarray/einsum.c.src" > accum += (data0[1]) * (data1[1]); ># 702 "numpy/core/src/multiarray/einsum.c.src" > accum += (data0[2]) * (data1[2]); ># 702 "numpy/core/src/multiarray/einsum.c.src" > accum += (data0[3]) * (data1[3]); ># 702 "numpy/core/src/multiarray/einsum.c.src" > accum += (data0[4]) * (data1[4]); ># 702 "numpy/core/src/multiarray/einsum.c.src" > accum += (data0[5]) * (data1[5]); ># 702 "numpy/core/src/multiarray/einsum.c.src" > accum += (data0[6]) * (data1[6]); ># 702 "numpy/core/src/multiarray/einsum.c.src" > accum += (data0[7]) * (data1[7]); > > > data0 += 8; > data1 += 8; > } ># 724 "numpy/core/src/multiarray/einsum.c.src" > goto finish_after_unrolled_loop; >} > >static void >ulonglong_sum_of_products_stride0_contig_outstride0_two(int nop, char **dataptr, > npy_intp *(__NPY_UNUSED_TAGGEDstrides) __attribute__ ((__unused__)), npy_intp count) >{ > npy_ulonglong value0 = (*(npy_ulonglong *)dataptr[0]); > npy_ulonglong *data1 = (npy_ulonglong *)dataptr[1]; > npy_ulonglong accum = 0; > > > > > > ; > > > >finish_after_unrolled_loop: > switch (count) { ># 748 "numpy/core/src/multiarray/einsum.c.src" > case 6+1: > accum += (data1[6]); ># 748 "numpy/core/src/multiarray/einsum.c.src" > case 5+1: > accum += (data1[5]); ># 748 "numpy/core/src/multiarray/einsum.c.src" > case 4+1: > accum += (data1[4]); ># 748 "numpy/core/src/multiarray/einsum.c.src" > case 3+1: > accum += (data1[3]); ># 748 "numpy/core/src/multiarray/einsum.c.src" > case 2+1: > accum += (data1[2]); ># 748 "numpy/core/src/multiarray/einsum.c.src" > case 1+1: > accum += (data1[1]); ># 748 "numpy/core/src/multiarray/einsum.c.src" > case 0+1: > accum += (data1[0]); > > case 0: > *(npy_ulonglong *)dataptr[2] += (value0 * accum); > return; > } ># 795 "numpy/core/src/multiarray/einsum.c.src" > while (count >= 8) { > count -= 8; ># 807 "numpy/core/src/multiarray/einsum.c.src" > accum += (data1[0]); ># 807 "numpy/core/src/multiarray/einsum.c.src" > accum += (data1[1]); ># 807 "numpy/core/src/multiarray/einsum.c.src" > accum += (data1[2]); ># 807 "numpy/core/src/multiarray/einsum.c.src" > accum += (data1[3]); ># 807 "numpy/core/src/multiarray/einsum.c.src" > accum += (data1[4]); ># 807 "numpy/core/src/multiarray/einsum.c.src" > accum += (data1[5]); ># 807 "numpy/core/src/multiarray/einsum.c.src" > accum += (data1[6]); ># 807 "numpy/core/src/multiarray/einsum.c.src" > accum += (data1[7]); > > > data1 += 8; > } ># 823 "numpy/core/src/multiarray/einsum.c.src" > goto finish_after_unrolled_loop; >} > >static void >ulonglong_sum_of_products_contig_stride0_outstride0_two(int nop, char **dataptr, > npy_intp *(__NPY_UNUSED_TAGGEDstrides) __attribute__ ((__unused__)), npy_intp count) >{ > npy_ulonglong *data0 = (npy_ulonglong *)dataptr[0]; > npy_ulonglong value1 = (*(npy_ulonglong *)dataptr[1]); > npy_ulonglong accum = 0; > > > > > > ; > > > >finish_after_unrolled_loop: > switch (count) { ># 847 "numpy/core/src/multiarray/einsum.c.src" > case 6+1: > accum += (data0[6]); ># 847 "numpy/core/src/multiarray/einsum.c.src" > case 5+1: > accum += (data0[5]); ># 847 "numpy/core/src/multiarray/einsum.c.src" > case 4+1: > accum += (data0[4]); ># 847 "numpy/core/src/multiarray/einsum.c.src" > case 3+1: > accum += (data0[3]); ># 847 "numpy/core/src/multiarray/einsum.c.src" > case 2+1: > accum += (data0[2]); ># 847 "numpy/core/src/multiarray/einsum.c.src" > case 1+1: > accum += (data0[1]); ># 847 "numpy/core/src/multiarray/einsum.c.src" > case 0+1: > accum += (data0[0]); > > case 0: > *(npy_ulonglong *)dataptr[2] += (accum * value1); > return; > } ># 894 "numpy/core/src/multiarray/einsum.c.src" > while (count >= 8) { > count -= 8; ># 906 "numpy/core/src/multiarray/einsum.c.src" > accum += (data0[0]); ># 906 "numpy/core/src/multiarray/einsum.c.src" > accum += (data0[1]); ># 906 "numpy/core/src/multiarray/einsum.c.src" > accum += (data0[2]); ># 906 "numpy/core/src/multiarray/einsum.c.src" > accum += (data0[3]); ># 906 "numpy/core/src/multiarray/einsum.c.src" > accum += (data0[4]); ># 906 "numpy/core/src/multiarray/einsum.c.src" > accum += (data0[5]); ># 906 "numpy/core/src/multiarray/einsum.c.src" > accum += (data0[6]); ># 906 "numpy/core/src/multiarray/einsum.c.src" > accum += (data0[7]); > > > data0 += 8; > } ># 922 "numpy/core/src/multiarray/einsum.c.src" > goto finish_after_unrolled_loop; >} ># 1455 "numpy/core/src/multiarray/einsum.c.src" >static void >ulonglong_sum_of_products_outstride0_two(int nop, char **dataptr, > npy_intp *strides, npy_intp count) >{ > > > > npy_ulonglong accum = 0; > > > > char *data0 = dataptr[0]; > npy_intp stride0 = strides[0]; > > > char *data1 = dataptr[1]; > npy_intp stride1 = strides[1]; > > > > > > > ; > > > while (count--) { > > > > > > accum += (*(npy_ulonglong *)data0) * > (*(npy_ulonglong *)data1); > data0 += stride0; > data1 += stride1; ># 1539 "numpy/core/src/multiarray/einsum.c.src" > } ># 1551 "numpy/core/src/multiarray/einsum.c.src" > *((npy_ulonglong *)dataptr[2]) = (accum + > (*((npy_ulonglong *)dataptr[2]))); > > > > > > >} ># 107 "numpy/core/src/multiarray/einsum.c.src" >static void >ulonglong_sum_of_products_three(int nop, char **dataptr, > npy_intp *strides, npy_intp count) >{ > > char *data0 = dataptr[0]; > npy_intp stride0 = strides[0]; > > > char *data1 = dataptr[1]; > npy_intp stride1 = strides[1]; > > > char *data2 = dataptr[2]; > npy_intp stride2 = strides[2]; > > > char *data_out = dataptr[3]; > npy_intp stride_out = strides[3]; > > > ; > > while (count--) { ># 145 "numpy/core/src/multiarray/einsum.c.src" > *(npy_ulonglong *)data_out = ((*(npy_ulonglong *)data0) * > (*(npy_ulonglong *)data1) * > (*(npy_ulonglong *)data2) + > (*(npy_ulonglong *)data_out)); > data0 += stride0; > data1 += stride1; > data2 += stride2; > data_out += stride_out; ># 201 "numpy/core/src/multiarray/einsum.c.src" > } >} ># 1542 "numpy/core/src/multiarray/einsum.c.src" >static void >ulonglong_sum_of_products_contig_three(int nop, char **dataptr, > npy_intp *(__NPY_UNUSED_TAGGEDstrides) __attribute__ ((__unused__)), npy_intp count) >{ > npy_ulonglong *data0 = (npy_ulonglong *)dataptr[0]; > npy_ulonglong *data1 = (npy_ulonglong *)dataptr[1]; > npy_ulonglong *data2 = (npy_ulonglong *)dataptr[2]; > npy_ulonglong *data_out = (npy_ulonglong *)dataptr[3]; > > > while (count >= 8) { > count -= 8; ># 943 "numpy/core/src/multiarray/einsum.c.src" > data_out[0] = ((data0[0]) * > (data1[0]) * > (data2[0]) + > (data_out[0])); ># 943 "numpy/core/src/multiarray/einsum.c.src" > data_out[1] = ((data0[1]) * > (data1[1]) * > (data2[1]) + > (data_out[1])); ># 943 "numpy/core/src/multiarray/einsum.c.src" > data_out[2] = ((data0[2]) * > (data1[2]) * > (data2[2]) + > (data_out[2])); ># 943 "numpy/core/src/multiarray/einsum.c.src" > data_out[3] = ((data0[3]) * > (data1[3]) * > (data2[3]) + > (data_out[3])); ># 943 "numpy/core/src/multiarray/einsum.c.src" > data_out[4] = ((data0[4]) * > (data1[4]) * > (data2[4]) + > (data_out[4])); ># 943 "numpy/core/src/multiarray/einsum.c.src" > data_out[5] = ((data0[5]) * > (data1[5]) * > (data2[5]) + > (data_out[5])); ># 943 "numpy/core/src/multiarray/einsum.c.src" > data_out[6] = ((data0[6]) * > (data1[6]) * > (data2[6]) + > (data_out[6])); ># 943 "numpy/core/src/multiarray/einsum.c.src" > data_out[7] = ((data0[7]) * > (data1[7]) * > (data2[7]) + > (data_out[7])); > > data0 += 8; > data1 += 8; > data_out += 8; > } ># 958 "numpy/core/src/multiarray/einsum.c.src" > if (count-- == 0) { > return; > } > data_out[0] = ((data0[0]) * > (data1[0]) * > (data2[0]) + > (data_out[0])); ># 958 "numpy/core/src/multiarray/einsum.c.src" > if (count-- == 0) { > return; > } > data_out[1] = ((data0[1]) * > (data1[1]) * > (data2[1]) + > (data_out[1])); ># 958 "numpy/core/src/multiarray/einsum.c.src" > if (count-- == 0) { > return; > } > data_out[2] = ((data0[2]) * > (data1[2]) * > (data2[2]) + > (data_out[2])); ># 958 "numpy/core/src/multiarray/einsum.c.src" > if (count-- == 0) { > return; > } > data_out[3] = ((data0[3]) * > (data1[3]) * > (data2[3]) + > (data_out[3])); ># 958 "numpy/core/src/multiarray/einsum.c.src" > if (count-- == 0) { > return; > } > data_out[4] = ((data0[4]) * > (data1[4]) * > (data2[4]) + > (data_out[4])); ># 958 "numpy/core/src/multiarray/einsum.c.src" > if (count-- == 0) { > return; > } > data_out[5] = ((data0[5]) * > (data1[5]) * > (data2[5]) + > (data_out[5])); ># 958 "numpy/core/src/multiarray/einsum.c.src" > if (count-- == 0) { > return; > } > data_out[6] = ((data0[6]) * > (data1[6]) * > (data2[6]) + > (data_out[6])); ># 958 "numpy/core/src/multiarray/einsum.c.src" > if (count-- == 0) { > return; > } > data_out[7] = ((data0[7]) * > (data1[7]) * > (data2[7]) + > (data_out[7])); > >} ># 1354 "numpy/core/src/multiarray/einsum.c.src" >static void >ulonglong_sum_of_products_outstride0_three(int nop, char **dataptr, > npy_intp *strides, npy_intp count) >{ > > > > npy_ulonglong accum = 0; > > > > char *data0 = dataptr[0]; > npy_intp stride0 = strides[0]; > > > char *data1 = dataptr[1]; > npy_intp stride1 = strides[1]; > > > char *data2 = dataptr[2]; > npy_intp stride2 = strides[2]; > > > ; > > > while (count--) { ># 1391 "numpy/core/src/multiarray/einsum.c.src" > accum += (*(npy_ulonglong *)data0) * > (*(npy_ulonglong *)data1) * > (*(npy_ulonglong *)data2); > data0 += stride0; > data1 += stride1; > data2 += stride2; ># 1438 "numpy/core/src/multiarray/einsum.c.src" > } ># 1450 "numpy/core/src/multiarray/einsum.c.src" > *((npy_ulonglong *)dataptr[3]) = (accum + > (*((npy_ulonglong *)dataptr[3]))); > > > > > > >} ># 107 "numpy/core/src/multiarray/einsum.c.src" >static void >ulonglong_sum_of_products_any(int nop, char **dataptr, > npy_intp *strides, npy_intp count) >{ ># 128 "numpy/core/src/multiarray/einsum.c.src" > ; > > while (count--) { ># 154 "numpy/core/src/multiarray/einsum.c.src" > npy_ulonglong temp = (*(npy_ulonglong *)dataptr[0]); > int i; > for (i = 1; i < nop; ++i) { > temp *= (*(npy_ulonglong *)dataptr[i]); > } > *(npy_ulonglong *)dataptr[nop] = (temp + > (*(npy_ulonglong *)dataptr[i])); > for (i = 0; i <= nop; ++i) { > dataptr[i] += strides[i]; > } ># 201 "numpy/core/src/multiarray/einsum.c.src" > } >} ># 1686 "numpy/core/src/multiarray/einsum.c.src" >static void >ulonglong_sum_of_products_contig_any(int nop, char **dataptr, > npy_intp *(__NPY_UNUSED_TAGGEDstrides) __attribute__ ((__unused__)), npy_intp count) >{ > ; > > > while (count--) { > > npy_ulonglong temp = (*(npy_ulonglong *)dataptr[0]); > int i; > for (i = 1; i < nop; ++i) { > temp *= (*(npy_ulonglong *)dataptr[i]); > } > *(npy_ulonglong *)dataptr[nop] = (temp + > (*(npy_ulonglong *)dataptr[i])); > for (i = 0; i <= nop; ++i) { > dataptr[i] += sizeof(npy_ulonglong); > } ># 1732 "numpy/core/src/multiarray/einsum.c.src" > } >} ># 2070 "numpy/core/src/multiarray/einsum.c.src" >static void >ulonglong_sum_of_products_outstride0_any(int nop, char **dataptr, > npy_intp *strides, npy_intp count) >{ > > > > npy_ulonglong accum = 0; ># 2093 "numpy/core/src/multiarray/einsum.c.src" > ; > > > while (count--) { ># 2114 "numpy/core/src/multiarray/einsum.c.src" > npy_ulonglong temp = (*(npy_ulonglong *)dataptr[0]); > int i; > for (i = 1; i < nop; ++i) { > temp *= (*(npy_ulonglong *)dataptr[i]); > } > accum += temp; > for (i = 0; i < nop; ++i) { > dataptr[i] += strides[i]; > } ># 2154 "numpy/core/src/multiarray/einsum.c.src" > } ># 2169 "numpy/core/src/multiarray/einsum.c.src" > *((npy_ulonglong *)dataptr[nop]) = (accum + > (*((npy_ulonglong *)dataptr[nop]))); > > > >} ># 102 "numpy/core/src/multiarray/einsum.c.src" ># 107 "numpy/core/src/multiarray/einsum.c.src" >static void >half_sum_of_products_one(int nop, char **dataptr, > npy_intp *strides, npy_intp count) >{ > > char *data0 = dataptr[0]; > npy_intp stride0 = strides[0]; ># 124 "numpy/core/src/multiarray/einsum.c.src" > char *data_out = dataptr[1]; > npy_intp stride_out = strides[1]; > > > ; > > while (count--) { > > > *(npy_half *)data_out = npy_float_to_half(npy_half_to_float(*(npy_half *)data0) + > npy_half_to_float(*(npy_half *)data_out)); > data0 += stride0; > data_out += stride_out; ># 201 "numpy/core/src/multiarray/einsum.c.src" > } >} > > > >static void >half_sum_of_products_contig_one(int nop, char **dataptr, > npy_intp *(__NPY_UNUSED_TAGGEDstrides) __attribute__ ((__unused__)), npy_intp count) >{ > npy_half *data0 = (npy_half *)dataptr[0]; > npy_half *data_out = (npy_half *)dataptr[1]; > > ; > > > >finish_after_unrolled_loop: > switch (count) { ># 222 "numpy/core/src/multiarray/einsum.c.src" > case 6+1: > > data_out[6] = npy_float_to_half(npy_half_to_float(data0[6]) + > npy_half_to_float(data_out[6])); ># 222 "numpy/core/src/multiarray/einsum.c.src" > case 5+1: > > data_out[5] = npy_float_to_half(npy_half_to_float(data0[5]) + > npy_half_to_float(data_out[5])); ># 222 "numpy/core/src/multiarray/einsum.c.src" > case 4+1: > > data_out[4] = npy_float_to_half(npy_half_to_float(data0[4]) + > npy_half_to_float(data_out[4])); ># 222 "numpy/core/src/multiarray/einsum.c.src" > case 3+1: > > data_out[3] = npy_float_to_half(npy_half_to_float(data0[3]) + > npy_half_to_float(data_out[3])); ># 222 "numpy/core/src/multiarray/einsum.c.src" > case 2+1: > > data_out[2] = npy_float_to_half(npy_half_to_float(data0[2]) + > npy_half_to_float(data_out[2])); ># 222 "numpy/core/src/multiarray/einsum.c.src" > case 1+1: > > data_out[1] = npy_float_to_half(npy_half_to_float(data0[1]) + > npy_half_to_float(data_out[1])); ># 222 "numpy/core/src/multiarray/einsum.c.src" > case 0+1: > > data_out[0] = npy_float_to_half(npy_half_to_float(data0[0]) + > npy_half_to_float(data_out[0])); ># 235 "numpy/core/src/multiarray/einsum.c.src" > case 0: > return; > } > > > while (count >= 8) { > count -= 8; ># 246 "numpy/core/src/multiarray/einsum.c.src" > > data_out[0] = npy_float_to_half(npy_half_to_float(data0[0]) + > npy_half_to_float(data_out[0])); ># 246 "numpy/core/src/multiarray/einsum.c.src" > > data_out[1] = npy_float_to_half(npy_half_to_float(data0[1]) + > npy_half_to_float(data_out[1])); ># 246 "numpy/core/src/multiarray/einsum.c.src" > > data_out[2] = npy_float_to_half(npy_half_to_float(data0[2]) + > npy_half_to_float(data_out[2])); ># 246 "numpy/core/src/multiarray/einsum.c.src" > > data_out[3] = npy_float_to_half(npy_half_to_float(data0[3]) + > npy_half_to_float(data_out[3])); ># 246 "numpy/core/src/multiarray/einsum.c.src" > > data_out[4] = npy_float_to_half(npy_half_to_float(data0[4]) + > npy_half_to_float(data_out[4])); ># 246 "numpy/core/src/multiarray/einsum.c.src" > > data_out[5] = npy_float_to_half(npy_half_to_float(data0[5]) + > npy_half_to_float(data_out[5])); ># 246 "numpy/core/src/multiarray/einsum.c.src" > > data_out[6] = npy_float_to_half(npy_half_to_float(data0[6]) + > npy_half_to_float(data_out[6])); ># 246 "numpy/core/src/multiarray/einsum.c.src" > > data_out[7] = npy_float_to_half(npy_half_to_float(data0[7]) + > npy_half_to_float(data_out[7])); ># 258 "numpy/core/src/multiarray/einsum.c.src" > data0 += 8; > data_out += 8; > } > > > goto finish_after_unrolled_loop; >} ># 1568 "numpy/core/src/multiarray/einsum.c.src" >static void >half_sum_of_products_contig_outstride0_one(int nop, char **dataptr, > npy_intp *strides, npy_intp count) >{ > > > > > npy_float accum = 0; > npy_half *data0 = (npy_half *)dataptr[0]; ># 1587 "numpy/core/src/multiarray/einsum.c.src" > ; > > > >finish_after_unrolled_loop: > switch (count) { ># 1051 "numpy/core/src/multiarray/einsum.c.src" > case 6+1: > > accum += npy_half_to_float(data0[6]); ># 1051 "numpy/core/src/multiarray/einsum.c.src" > case 5+1: > > accum += npy_half_to_float(data0[5]); ># 1051 "numpy/core/src/multiarray/einsum.c.src" > case 4+1: > > accum += npy_half_to_float(data0[4]); ># 1051 "numpy/core/src/multiarray/einsum.c.src" > case 3+1: > > accum += npy_half_to_float(data0[3]); ># 1051 "numpy/core/src/multiarray/einsum.c.src" > case 2+1: > > accum += npy_half_to_float(data0[2]); ># 1051 "numpy/core/src/multiarray/einsum.c.src" > case 1+1: > > accum += npy_half_to_float(data0[1]); ># 1051 "numpy/core/src/multiarray/einsum.c.src" > case 0+1: > > accum += npy_half_to_float(data0[0]); > > > > > > case 0: > > > > > *((npy_half *)dataptr[1]) = npy_float_to_half(accum + > npy_half_to_float(*((npy_half *)dataptr[1]))); > > return; > } ># 1157 "numpy/core/src/multiarray/einsum.c.src" > while (count >= 8) { > count -= 8; ># 1164 "numpy/core/src/multiarray/einsum.c.src" > > accum += npy_half_to_float(data0[0]); ># 1164 "numpy/core/src/multiarray/einsum.c.src" > > accum += npy_half_to_float(data0[1]); ># 1164 "numpy/core/src/multiarray/einsum.c.src" > > accum += npy_half_to_float(data0[2]); ># 1164 "numpy/core/src/multiarray/einsum.c.src" > > accum += npy_half_to_float(data0[3]); ># 1164 "numpy/core/src/multiarray/einsum.c.src" > > accum += npy_half_to_float(data0[4]); ># 1164 "numpy/core/src/multiarray/einsum.c.src" > > accum += npy_half_to_float(data0[5]); ># 1164 "numpy/core/src/multiarray/einsum.c.src" > > accum += npy_half_to_float(data0[6]); ># 1164 "numpy/core/src/multiarray/einsum.c.src" > > accum += npy_half_to_float(data0[7]); ># 1174 "numpy/core/src/multiarray/einsum.c.src" > data0 += 8; > > > > } ># 1195 "numpy/core/src/multiarray/einsum.c.src" > goto finish_after_unrolled_loop; >} > > > >static void >half_sum_of_products_outstride0_one(int nop, char **dataptr, > npy_intp *strides, npy_intp count) >{ > > > > npy_float accum = 0; > > > > char *data0 = dataptr[0]; > npy_intp stride0 = strides[0]; ># 1223 "numpy/core/src/multiarray/einsum.c.src" > ; > > > while (count--) { > > > accum += npy_half_to_float(*(npy_half *)data0); > data0 += stride0; ># 1284 "numpy/core/src/multiarray/einsum.c.src" > } ># 1296 "numpy/core/src/multiarray/einsum.c.src" > *((npy_half *)dataptr[1]) = npy_float_to_half(accum + > npy_half_to_float(*((npy_half *)dataptr[1]))); > > > > > > >} ># 107 "numpy/core/src/multiarray/einsum.c.src" >static void >half_sum_of_products_two(int nop, char **dataptr, > npy_intp *strides, npy_intp count) >{ > > char *data0 = dataptr[0]; > npy_intp stride0 = strides[0]; > > > char *data1 = dataptr[1]; > npy_intp stride1 = strides[1]; > > > > > > > char *data_out = dataptr[2]; > npy_intp stride_out = strides[2]; > > > ; > > while (count--) { > > > > > > > > *(npy_half *)data_out = npy_float_to_half(npy_half_to_float(*(npy_half *)data0) * > npy_half_to_float(*(npy_half *)data1) + > npy_half_to_float(*(npy_half *)data_out)); > data0 += stride0; > data1 += stride1; > data_out += stride_out; ># 201 "numpy/core/src/multiarray/einsum.c.src" > } >} ># 439 "numpy/core/src/multiarray/einsum.c.src" >static void >half_sum_of_products_contig_two(int nop, char **dataptr, > npy_intp *(__NPY_UNUSED_TAGGEDstrides) __attribute__ ((__unused__)), npy_intp count) >{ > npy_half *data0 = (npy_half *)dataptr[0]; > npy_half *data1 = (npy_half *)dataptr[1]; > npy_half *data_out = (npy_half *)dataptr[2]; > > > > > > ; > > > >finish_after_unrolled_loop: > switch (count) { ># 289 "numpy/core/src/multiarray/einsum.c.src" > case 6+1: > data_out[6] = npy_float_to_half(npy_half_to_float(data0[6]) * > npy_half_to_float(data1[6]) + > npy_half_to_float(data_out[6])); ># 289 "numpy/core/src/multiarray/einsum.c.src" > case 5+1: > data_out[5] = npy_float_to_half(npy_half_to_float(data0[5]) * > npy_half_to_float(data1[5]) + > npy_half_to_float(data_out[5])); ># 289 "numpy/core/src/multiarray/einsum.c.src" > case 4+1: > data_out[4] = npy_float_to_half(npy_half_to_float(data0[4]) * > npy_half_to_float(data1[4]) + > npy_half_to_float(data_out[4])); ># 289 "numpy/core/src/multiarray/einsum.c.src" > case 3+1: > data_out[3] = npy_float_to_half(npy_half_to_float(data0[3]) * > npy_half_to_float(data1[3]) + > npy_half_to_float(data_out[3])); ># 289 "numpy/core/src/multiarray/einsum.c.src" > case 2+1: > data_out[2] = npy_float_to_half(npy_half_to_float(data0[2]) * > npy_half_to_float(data1[2]) + > npy_half_to_float(data_out[2])); ># 289 "numpy/core/src/multiarray/einsum.c.src" > case 1+1: > data_out[1] = npy_float_to_half(npy_half_to_float(data0[1]) * > npy_half_to_float(data1[1]) + > npy_half_to_float(data_out[1])); ># 289 "numpy/core/src/multiarray/einsum.c.src" > case 0+1: > data_out[0] = npy_float_to_half(npy_half_to_float(data0[0]) * > npy_half_to_float(data1[0]) + > npy_half_to_float(data_out[0])); > > case 0: > return; > } ># 327 "numpy/core/src/multiarray/einsum.c.src" > while (count >= 8) { > count -= 8; ># 339 "numpy/core/src/multiarray/einsum.c.src" > data_out[0] = npy_float_to_half(npy_half_to_float(data0[0]) * > npy_half_to_float(data1[0]) + > npy_half_to_float(data_out[0])); ># 339 "numpy/core/src/multiarray/einsum.c.src" > data_out[1] = npy_float_to_half(npy_half_to_float(data0[1]) * > npy_half_to_float(data1[1]) + > npy_half_to_float(data_out[1])); ># 339 "numpy/core/src/multiarray/einsum.c.src" > data_out[2] = npy_float_to_half(npy_half_to_float(data0[2]) * > npy_half_to_float(data1[2]) + > npy_half_to_float(data_out[2])); ># 339 "numpy/core/src/multiarray/einsum.c.src" > data_out[3] = npy_float_to_half(npy_half_to_float(data0[3]) * > npy_half_to_float(data1[3]) + > npy_half_to_float(data_out[3])); ># 339 "numpy/core/src/multiarray/einsum.c.src" > data_out[4] = npy_float_to_half(npy_half_to_float(data0[4]) * > npy_half_to_float(data1[4]) + > npy_half_to_float(data_out[4])); ># 339 "numpy/core/src/multiarray/einsum.c.src" > data_out[5] = npy_float_to_half(npy_half_to_float(data0[5]) * > npy_half_to_float(data1[5]) + > npy_half_to_float(data_out[5])); ># 339 "numpy/core/src/multiarray/einsum.c.src" > data_out[6] = npy_float_to_half(npy_half_to_float(data0[6]) * > npy_half_to_float(data1[6]) + > npy_half_to_float(data_out[6])); ># 339 "numpy/core/src/multiarray/einsum.c.src" > data_out[7] = npy_float_to_half(npy_half_to_float(data0[7]) * > npy_half_to_float(data1[7]) + > npy_half_to_float(data_out[7])); > > > data0 += 8; > data1 += 8; > data_out += 8; > } > > > goto finish_after_unrolled_loop; >} > > >static void >half_sum_of_products_stride0_contig_outcontig_two(int nop, char **dataptr, > npy_intp *(__NPY_UNUSED_TAGGEDstrides) __attribute__ ((__unused__)), npy_intp count) >{ > npy_float value0 = npy_half_to_float(*(npy_half *)dataptr[0]); > npy_half *data1 = (npy_half *)dataptr[1]; > npy_half *data_out = (npy_half *)dataptr[2]; > > > > > > > > ; > > > >finish_after_unrolled_loop: > switch (count) { ># 377 "numpy/core/src/multiarray/einsum.c.src" > case 6+1: > data_out[6] = npy_float_to_half(value0 * > npy_half_to_float(data1[6]) + > npy_half_to_float(data_out[6])); ># 377 "numpy/core/src/multiarray/einsum.c.src" > case 5+1: > data_out[5] = npy_float_to_half(value0 * > npy_half_to_float(data1[5]) + > npy_half_to_float(data_out[5])); ># 377 "numpy/core/src/multiarray/einsum.c.src" > case 4+1: > data_out[4] = npy_float_to_half(value0 * > npy_half_to_float(data1[4]) + > npy_half_to_float(data_out[4])); ># 377 "numpy/core/src/multiarray/einsum.c.src" > case 3+1: > data_out[3] = npy_float_to_half(value0 * > npy_half_to_float(data1[3]) + > npy_half_to_float(data_out[3])); ># 377 "numpy/core/src/multiarray/einsum.c.src" > case 2+1: > data_out[2] = npy_float_to_half(value0 * > npy_half_to_float(data1[2]) + > npy_half_to_float(data_out[2])); ># 377 "numpy/core/src/multiarray/einsum.c.src" > case 1+1: > data_out[1] = npy_float_to_half(value0 * > npy_half_to_float(data1[1]) + > npy_half_to_float(data_out[1])); ># 377 "numpy/core/src/multiarray/einsum.c.src" > case 0+1: > data_out[0] = npy_float_to_half(value0 * > npy_half_to_float(data1[0]) + > npy_half_to_float(data_out[0])); > > case 0: > return; > } ># 461 "numpy/core/src/multiarray/einsum.c.src" > while (count >= 8) { > count -= 8; ># 468 "numpy/core/src/multiarray/einsum.c.src" > data_out[0] = npy_float_to_half(value0 * > npy_half_to_float(data1[0]) + > npy_half_to_float(data_out[0])); ># 468 "numpy/core/src/multiarray/einsum.c.src" > data_out[1] = npy_float_to_half(value0 * > npy_half_to_float(data1[1]) + > npy_half_to_float(data_out[1])); ># 468 "numpy/core/src/multiarray/einsum.c.src" > data_out[2] = npy_float_to_half(value0 * > npy_half_to_float(data1[2]) + > npy_half_to_float(data_out[2])); ># 468 "numpy/core/src/multiarray/einsum.c.src" > data_out[3] = npy_float_to_half(value0 * > npy_half_to_float(data1[3]) + > npy_half_to_float(data_out[3])); ># 468 "numpy/core/src/multiarray/einsum.c.src" > data_out[4] = npy_float_to_half(value0 * > npy_half_to_float(data1[4]) + > npy_half_to_float(data_out[4])); ># 468 "numpy/core/src/multiarray/einsum.c.src" > data_out[5] = npy_float_to_half(value0 * > npy_half_to_float(data1[5]) + > npy_half_to_float(data_out[5])); ># 468 "numpy/core/src/multiarray/einsum.c.src" > data_out[6] = npy_float_to_half(value0 * > npy_half_to_float(data1[6]) + > npy_half_to_float(data_out[6])); ># 468 "numpy/core/src/multiarray/einsum.c.src" > data_out[7] = npy_float_to_half(value0 * > npy_half_to_float(data1[7]) + > npy_half_to_float(data_out[7])); > > > data1 += 8; > data_out += 8; > } > > > if (count > 0) { > goto finish_after_unrolled_loop; > } >} > >static void >half_sum_of_products_contig_stride0_outcontig_two(int nop, char **dataptr, > npy_intp *(__NPY_UNUSED_TAGGEDstrides) __attribute__ ((__unused__)), npy_intp count) >{ > npy_half *data0 = (npy_half *)dataptr[0]; > npy_float value1 = npy_half_to_float(*(npy_half *)dataptr[1]); > npy_half *data_out = (npy_half *)dataptr[2]; > > > > > > ; > > > >finish_after_unrolled_loop: > switch (count) { ># 504 "numpy/core/src/multiarray/einsum.c.src" > case 6+1: > data_out[6] = npy_float_to_half(npy_half_to_float(data0[6])* > value1 + > npy_half_to_float(data_out[6])); ># 504 "numpy/core/src/multiarray/einsum.c.src" > case 5+1: > data_out[5] = npy_float_to_half(npy_half_to_float(data0[5])* > value1 + > npy_half_to_float(data_out[5])); ># 504 "numpy/core/src/multiarray/einsum.c.src" > case 4+1: > data_out[4] = npy_float_to_half(npy_half_to_float(data0[4])* > value1 + > npy_half_to_float(data_out[4])); ># 504 "numpy/core/src/multiarray/einsum.c.src" > case 3+1: > data_out[3] = npy_float_to_half(npy_half_to_float(data0[3])* > value1 + > npy_half_to_float(data_out[3])); ># 504 "numpy/core/src/multiarray/einsum.c.src" > case 2+1: > data_out[2] = npy_float_to_half(npy_half_to_float(data0[2])* > value1 + > npy_half_to_float(data_out[2])); ># 504 "numpy/core/src/multiarray/einsum.c.src" > case 1+1: > data_out[1] = npy_float_to_half(npy_half_to_float(data0[1])* > value1 + > npy_half_to_float(data_out[1])); ># 504 "numpy/core/src/multiarray/einsum.c.src" > case 0+1: > data_out[0] = npy_float_to_half(npy_half_to_float(data0[0])* > value1 + > npy_half_to_float(data_out[0])); > > case 0: > return; > } ># 542 "numpy/core/src/multiarray/einsum.c.src" > while (count >= 8) { > count -= 8; ># 554 "numpy/core/src/multiarray/einsum.c.src" > data_out[0] = npy_float_to_half(npy_half_to_float(data0[0])* > value1 + > npy_half_to_float(data_out[0])); ># 554 "numpy/core/src/multiarray/einsum.c.src" > data_out[1] = npy_float_to_half(npy_half_to_float(data0[1])* > value1 + > npy_half_to_float(data_out[1])); ># 554 "numpy/core/src/multiarray/einsum.c.src" > data_out[2] = npy_float_to_half(npy_half_to_float(data0[2])* > value1 + > npy_half_to_float(data_out[2])); ># 554 "numpy/core/src/multiarray/einsum.c.src" > data_out[3] = npy_float_to_half(npy_half_to_float(data0[3])* > value1 + > npy_half_to_float(data_out[3])); ># 554 "numpy/core/src/multiarray/einsum.c.src" > data_out[4] = npy_float_to_half(npy_half_to_float(data0[4])* > value1 + > npy_half_to_float(data_out[4])); ># 554 "numpy/core/src/multiarray/einsum.c.src" > data_out[5] = npy_float_to_half(npy_half_to_float(data0[5])* > value1 + > npy_half_to_float(data_out[5])); ># 554 "numpy/core/src/multiarray/einsum.c.src" > data_out[6] = npy_float_to_half(npy_half_to_float(data0[6])* > value1 + > npy_half_to_float(data_out[6])); ># 554 "numpy/core/src/multiarray/einsum.c.src" > data_out[7] = npy_float_to_half(npy_half_to_float(data0[7])* > value1 + > npy_half_to_float(data_out[7])); > > > data0 += 8; > data_out += 8; > } > > > goto finish_after_unrolled_loop; >} > >static void >half_sum_of_products_contig_contig_outstride0_two(int nop, char **dataptr, > npy_intp *(__NPY_UNUSED_TAGGEDstrides) __attribute__ ((__unused__)), npy_intp count) >{ > npy_half *data0 = (npy_half *)dataptr[0]; > npy_half *data1 = (npy_half *)dataptr[1]; > npy_float accum = 0; > > > > > > > > ; > > > >finish_after_unrolled_loop: > switch (count) { ># 590 "numpy/core/src/multiarray/einsum.c.src" > case 6+1: > accum += npy_half_to_float(data0[6]) * npy_half_to_float(data1[6]); ># 590 "numpy/core/src/multiarray/einsum.c.src" > case 5+1: > accum += npy_half_to_float(data0[5]) * npy_half_to_float(data1[5]); ># 590 "numpy/core/src/multiarray/einsum.c.src" > case 4+1: > accum += npy_half_to_float(data0[4]) * npy_half_to_float(data1[4]); ># 590 "numpy/core/src/multiarray/einsum.c.src" > case 3+1: > accum += npy_half_to_float(data0[3]) * npy_half_to_float(data1[3]); ># 590 "numpy/core/src/multiarray/einsum.c.src" > case 2+1: > accum += npy_half_to_float(data0[2]) * npy_half_to_float(data1[2]); ># 590 "numpy/core/src/multiarray/einsum.c.src" > case 1+1: > accum += npy_half_to_float(data0[1]) * npy_half_to_float(data1[1]); ># 590 "numpy/core/src/multiarray/einsum.c.src" > case 0+1: > accum += npy_half_to_float(data0[0]) * npy_half_to_float(data1[0]); > > case 0: > *(npy_half *)dataptr[2] += npy_float_to_half(accum); > return; > } ># 695 "numpy/core/src/multiarray/einsum.c.src" > while (count >= 8) { > count -= 8; ># 702 "numpy/core/src/multiarray/einsum.c.src" > accum += npy_half_to_float(data0[0]) * npy_half_to_float(data1[0]); ># 702 "numpy/core/src/multiarray/einsum.c.src" > accum += npy_half_to_float(data0[1]) * npy_half_to_float(data1[1]); ># 702 "numpy/core/src/multiarray/einsum.c.src" > accum += npy_half_to_float(data0[2]) * npy_half_to_float(data1[2]); ># 702 "numpy/core/src/multiarray/einsum.c.src" > accum += npy_half_to_float(data0[3]) * npy_half_to_float(data1[3]); ># 702 "numpy/core/src/multiarray/einsum.c.src" > accum += npy_half_to_float(data0[4]) * npy_half_to_float(data1[4]); ># 702 "numpy/core/src/multiarray/einsum.c.src" > accum += npy_half_to_float(data0[5]) * npy_half_to_float(data1[5]); ># 702 "numpy/core/src/multiarray/einsum.c.src" > accum += npy_half_to_float(data0[6]) * npy_half_to_float(data1[6]); ># 702 "numpy/core/src/multiarray/einsum.c.src" > accum += npy_half_to_float(data0[7]) * npy_half_to_float(data1[7]); > > > data0 += 8; > data1 += 8; > } ># 724 "numpy/core/src/multiarray/einsum.c.src" > goto finish_after_unrolled_loop; >} > >static void >half_sum_of_products_stride0_contig_outstride0_two(int nop, char **dataptr, > npy_intp *(__NPY_UNUSED_TAGGEDstrides) __attribute__ ((__unused__)), npy_intp count) >{ > npy_float value0 = npy_half_to_float(*(npy_half *)dataptr[0]); > npy_half *data1 = (npy_half *)dataptr[1]; > npy_float accum = 0; > > > > > > ; > > > >finish_after_unrolled_loop: > switch (count) { ># 748 "numpy/core/src/multiarray/einsum.c.src" > case 6+1: > accum += npy_half_to_float(data1[6]); ># 748 "numpy/core/src/multiarray/einsum.c.src" > case 5+1: > accum += npy_half_to_float(data1[5]); ># 748 "numpy/core/src/multiarray/einsum.c.src" > case 4+1: > accum += npy_half_to_float(data1[4]); ># 748 "numpy/core/src/multiarray/einsum.c.src" > case 3+1: > accum += npy_half_to_float(data1[3]); ># 748 "numpy/core/src/multiarray/einsum.c.src" > case 2+1: > accum += npy_half_to_float(data1[2]); ># 748 "numpy/core/src/multiarray/einsum.c.src" > case 1+1: > accum += npy_half_to_float(data1[1]); ># 748 "numpy/core/src/multiarray/einsum.c.src" > case 0+1: > accum += npy_half_to_float(data1[0]); > > case 0: > *(npy_half *)dataptr[2] += npy_float_to_half(value0 * accum); > return; > } ># 795 "numpy/core/src/multiarray/einsum.c.src" > while (count >= 8) { > count -= 8; ># 807 "numpy/core/src/multiarray/einsum.c.src" > accum += npy_half_to_float(data1[0]); ># 807 "numpy/core/src/multiarray/einsum.c.src" > accum += npy_half_to_float(data1[1]); ># 807 "numpy/core/src/multiarray/einsum.c.src" > accum += npy_half_to_float(data1[2]); ># 807 "numpy/core/src/multiarray/einsum.c.src" > accum += npy_half_to_float(data1[3]); ># 807 "numpy/core/src/multiarray/einsum.c.src" > accum += npy_half_to_float(data1[4]); ># 807 "numpy/core/src/multiarray/einsum.c.src" > accum += npy_half_to_float(data1[5]); ># 807 "numpy/core/src/multiarray/einsum.c.src" > accum += npy_half_to_float(data1[6]); ># 807 "numpy/core/src/multiarray/einsum.c.src" > accum += npy_half_to_float(data1[7]); > > > data1 += 8; > } ># 823 "numpy/core/src/multiarray/einsum.c.src" > goto finish_after_unrolled_loop; >} > >static void >half_sum_of_products_contig_stride0_outstride0_two(int nop, char **dataptr, > npy_intp *(__NPY_UNUSED_TAGGEDstrides) __attribute__ ((__unused__)), npy_intp count) >{ > npy_half *data0 = (npy_half *)dataptr[0]; > npy_float value1 = npy_half_to_float(*(npy_half *)dataptr[1]); > npy_float accum = 0; > > > > > > ; > > > >finish_after_unrolled_loop: > switch (count) { ># 847 "numpy/core/src/multiarray/einsum.c.src" > case 6+1: > accum += npy_half_to_float(data0[6]); ># 847 "numpy/core/src/multiarray/einsum.c.src" > case 5+1: > accum += npy_half_to_float(data0[5]); ># 847 "numpy/core/src/multiarray/einsum.c.src" > case 4+1: > accum += npy_half_to_float(data0[4]); ># 847 "numpy/core/src/multiarray/einsum.c.src" > case 3+1: > accum += npy_half_to_float(data0[3]); ># 847 "numpy/core/src/multiarray/einsum.c.src" > case 2+1: > accum += npy_half_to_float(data0[2]); ># 847 "numpy/core/src/multiarray/einsum.c.src" > case 1+1: > accum += npy_half_to_float(data0[1]); ># 847 "numpy/core/src/multiarray/einsum.c.src" > case 0+1: > accum += npy_half_to_float(data0[0]); > > case 0: > *(npy_half *)dataptr[2] += npy_float_to_half(accum * value1); > return; > } ># 894 "numpy/core/src/multiarray/einsum.c.src" > while (count >= 8) { > count -= 8; ># 906 "numpy/core/src/multiarray/einsum.c.src" > accum += npy_half_to_float(data0[0]); ># 906 "numpy/core/src/multiarray/einsum.c.src" > accum += npy_half_to_float(data0[1]); ># 906 "numpy/core/src/multiarray/einsum.c.src" > accum += npy_half_to_float(data0[2]); ># 906 "numpy/core/src/multiarray/einsum.c.src" > accum += npy_half_to_float(data0[3]); ># 906 "numpy/core/src/multiarray/einsum.c.src" > accum += npy_half_to_float(data0[4]); ># 906 "numpy/core/src/multiarray/einsum.c.src" > accum += npy_half_to_float(data0[5]); ># 906 "numpy/core/src/multiarray/einsum.c.src" > accum += npy_half_to_float(data0[6]); ># 906 "numpy/core/src/multiarray/einsum.c.src" > accum += npy_half_to_float(data0[7]); > > > data0 += 8; > } ># 922 "numpy/core/src/multiarray/einsum.c.src" > goto finish_after_unrolled_loop; >} ># 1455 "numpy/core/src/multiarray/einsum.c.src" >static void >half_sum_of_products_outstride0_two(int nop, char **dataptr, > npy_intp *strides, npy_intp count) >{ > > > > npy_float accum = 0; > > > > char *data0 = dataptr[0]; > npy_intp stride0 = strides[0]; > > > char *data1 = dataptr[1]; > npy_intp stride1 = strides[1]; > > > > > > > ; > > > while (count--) { > > > > > > accum += npy_half_to_float(*(npy_half *)data0) * > npy_half_to_float(*(npy_half *)data1); > data0 += stride0; > data1 += stride1; ># 1539 "numpy/core/src/multiarray/einsum.c.src" > } ># 1551 "numpy/core/src/multiarray/einsum.c.src" > *((npy_half *)dataptr[2]) = npy_float_to_half(accum + > npy_half_to_float(*((npy_half *)dataptr[2]))); > > > > > > >} ># 107 "numpy/core/src/multiarray/einsum.c.src" >static void >half_sum_of_products_three(int nop, char **dataptr, > npy_intp *strides, npy_intp count) >{ > > char *data0 = dataptr[0]; > npy_intp stride0 = strides[0]; > > > char *data1 = dataptr[1]; > npy_intp stride1 = strides[1]; > > > char *data2 = dataptr[2]; > npy_intp stride2 = strides[2]; > > > char *data_out = dataptr[3]; > npy_intp stride_out = strides[3]; > > > ; > > while (count--) { ># 145 "numpy/core/src/multiarray/einsum.c.src" > *(npy_half *)data_out = npy_float_to_half(npy_half_to_float(*(npy_half *)data0) * > npy_half_to_float(*(npy_half *)data1) * > npy_half_to_float(*(npy_half *)data2) + > npy_half_to_float(*(npy_half *)data_out)); > data0 += stride0; > data1 += stride1; > data2 += stride2; > data_out += stride_out; ># 201 "numpy/core/src/multiarray/einsum.c.src" > } >} ># 1542 "numpy/core/src/multiarray/einsum.c.src" >static void >half_sum_of_products_contig_three(int nop, char **dataptr, > npy_intp *(__NPY_UNUSED_TAGGEDstrides) __attribute__ ((__unused__)), npy_intp count) >{ > npy_half *data0 = (npy_half *)dataptr[0]; > npy_half *data1 = (npy_half *)dataptr[1]; > npy_half *data2 = (npy_half *)dataptr[2]; > npy_half *data_out = (npy_half *)dataptr[3]; > > > while (count >= 8) { > count -= 8; ># 943 "numpy/core/src/multiarray/einsum.c.src" > data_out[0] = npy_float_to_half(npy_half_to_float(data0[0]) * > npy_half_to_float(data1[0]) * > npy_half_to_float(data2[0]) + > npy_half_to_float(data_out[0])); ># 943 "numpy/core/src/multiarray/einsum.c.src" > data_out[1] = npy_float_to_half(npy_half_to_float(data0[1]) * > npy_half_to_float(data1[1]) * > npy_half_to_float(data2[1]) + > npy_half_to_float(data_out[1])); ># 943 "numpy/core/src/multiarray/einsum.c.src" > data_out[2] = npy_float_to_half(npy_half_to_float(data0[2]) * > npy_half_to_float(data1[2]) * > npy_half_to_float(data2[2]) + > npy_half_to_float(data_out[2])); ># 943 "numpy/core/src/multiarray/einsum.c.src" > data_out[3] = npy_float_to_half(npy_half_to_float(data0[3]) * > npy_half_to_float(data1[3]) * > npy_half_to_float(data2[3]) + > npy_half_to_float(data_out[3])); ># 943 "numpy/core/src/multiarray/einsum.c.src" > data_out[4] = npy_float_to_half(npy_half_to_float(data0[4]) * > npy_half_to_float(data1[4]) * > npy_half_to_float(data2[4]) + > npy_half_to_float(data_out[4])); ># 943 "numpy/core/src/multiarray/einsum.c.src" > data_out[5] = npy_float_to_half(npy_half_to_float(data0[5]) * > npy_half_to_float(data1[5]) * > npy_half_to_float(data2[5]) + > npy_half_to_float(data_out[5])); ># 943 "numpy/core/src/multiarray/einsum.c.src" > data_out[6] = npy_float_to_half(npy_half_to_float(data0[6]) * > npy_half_to_float(data1[6]) * > npy_half_to_float(data2[6]) + > npy_half_to_float(data_out[6])); ># 943 "numpy/core/src/multiarray/einsum.c.src" > data_out[7] = npy_float_to_half(npy_half_to_float(data0[7]) * > npy_half_to_float(data1[7]) * > npy_half_to_float(data2[7]) + > npy_half_to_float(data_out[7])); > > data0 += 8; > data1 += 8; > data_out += 8; > } ># 958 "numpy/core/src/multiarray/einsum.c.src" > if (count-- == 0) { > return; > } > data_out[0] = npy_float_to_half(npy_half_to_float(data0[0]) * > npy_half_to_float(data1[0]) * > npy_half_to_float(data2[0]) + > npy_half_to_float(data_out[0])); ># 958 "numpy/core/src/multiarray/einsum.c.src" > if (count-- == 0) { > return; > } > data_out[1] = npy_float_to_half(npy_half_to_float(data0[1]) * > npy_half_to_float(data1[1]) * > npy_half_to_float(data2[1]) + > npy_half_to_float(data_out[1])); ># 958 "numpy/core/src/multiarray/einsum.c.src" > if (count-- == 0) { > return; > } > data_out[2] = npy_float_to_half(npy_half_to_float(data0[2]) * > npy_half_to_float(data1[2]) * > npy_half_to_float(data2[2]) + > npy_half_to_float(data_out[2])); ># 958 "numpy/core/src/multiarray/einsum.c.src" > if (count-- == 0) { > return; > } > data_out[3] = npy_float_to_half(npy_half_to_float(data0[3]) * > npy_half_to_float(data1[3]) * > npy_half_to_float(data2[3]) + > npy_half_to_float(data_out[3])); ># 958 "numpy/core/src/multiarray/einsum.c.src" > if (count-- == 0) { > return; > } > data_out[4] = npy_float_to_half(npy_half_to_float(data0[4]) * > npy_half_to_float(data1[4]) * > npy_half_to_float(data2[4]) + > npy_half_to_float(data_out[4])); ># 958 "numpy/core/src/multiarray/einsum.c.src" > if (count-- == 0) { > return; > } > data_out[5] = npy_float_to_half(npy_half_to_float(data0[5]) * > npy_half_to_float(data1[5]) * > npy_half_to_float(data2[5]) + > npy_half_to_float(data_out[5])); ># 958 "numpy/core/src/multiarray/einsum.c.src" > if (count-- == 0) { > return; > } > data_out[6] = npy_float_to_half(npy_half_to_float(data0[6]) * > npy_half_to_float(data1[6]) * > npy_half_to_float(data2[6]) + > npy_half_to_float(data_out[6])); ># 958 "numpy/core/src/multiarray/einsum.c.src" > if (count-- == 0) { > return; > } > data_out[7] = npy_float_to_half(npy_half_to_float(data0[7]) * > npy_half_to_float(data1[7]) * > npy_half_to_float(data2[7]) + > npy_half_to_float(data_out[7])); > >} ># 1354 "numpy/core/src/multiarray/einsum.c.src" >static void >half_sum_of_products_outstride0_three(int nop, char **dataptr, > npy_intp *strides, npy_intp count) >{ > > > > npy_float accum = 0; > > > > char *data0 = dataptr[0]; > npy_intp stride0 = strides[0]; > > > char *data1 = dataptr[1]; > npy_intp stride1 = strides[1]; > > > char *data2 = dataptr[2]; > npy_intp stride2 = strides[2]; > > > ; > > > while (count--) { ># 1391 "numpy/core/src/multiarray/einsum.c.src" > accum += npy_half_to_float(*(npy_half *)data0) * > npy_half_to_float(*(npy_half *)data1) * > npy_half_to_float(*(npy_half *)data2); > data0 += stride0; > data1 += stride1; > data2 += stride2; ># 1438 "numpy/core/src/multiarray/einsum.c.src" > } ># 1450 "numpy/core/src/multiarray/einsum.c.src" > *((npy_half *)dataptr[3]) = npy_float_to_half(accum + > npy_half_to_float(*((npy_half *)dataptr[3]))); > > > > > > >} ># 107 "numpy/core/src/multiarray/einsum.c.src" >static void >half_sum_of_products_any(int nop, char **dataptr, > npy_intp *strides, npy_intp count) >{ ># 128 "numpy/core/src/multiarray/einsum.c.src" > ; > > while (count--) { ># 154 "numpy/core/src/multiarray/einsum.c.src" > npy_float temp = npy_half_to_float(*(npy_half *)dataptr[0]); > int i; > for (i = 1; i < nop; ++i) { > temp *= npy_half_to_float(*(npy_half *)dataptr[i]); > } > *(npy_half *)dataptr[nop] = npy_float_to_half(temp + > npy_half_to_float(*(npy_half *)dataptr[i])); > for (i = 0; i <= nop; ++i) { > dataptr[i] += strides[i]; > } ># 201 "numpy/core/src/multiarray/einsum.c.src" > } >} ># 1686 "numpy/core/src/multiarray/einsum.c.src" >static void >half_sum_of_products_contig_any(int nop, char **dataptr, > npy_intp *(__NPY_UNUSED_TAGGEDstrides) __attribute__ ((__unused__)), npy_intp count) >{ > ; > > > while (count--) { > > npy_float temp = npy_half_to_float(*(npy_half *)dataptr[0]); > int i; > for (i = 1; i < nop; ++i) { > temp *= npy_half_to_float(*(npy_half *)dataptr[i]); > } > *(npy_half *)dataptr[nop] = npy_float_to_half(temp + > npy_half_to_float(*(npy_half *)dataptr[i])); > for (i = 0; i <= nop; ++i) { > dataptr[i] += sizeof(npy_half); > } ># 1732 "numpy/core/src/multiarray/einsum.c.src" > } >} ># 2070 "numpy/core/src/multiarray/einsum.c.src" >static void >half_sum_of_products_outstride0_any(int nop, char **dataptr, > npy_intp *strides, npy_intp count) >{ > > > > npy_float accum = 0; ># 2093 "numpy/core/src/multiarray/einsum.c.src" > ; > > > while (count--) { ># 2114 "numpy/core/src/multiarray/einsum.c.src" > npy_float temp = npy_half_to_float(*(npy_half *)dataptr[0]); > int i; > for (i = 1; i < nop; ++i) { > temp *= npy_half_to_float(*(npy_half *)dataptr[i]); > } > accum += temp; > for (i = 0; i < nop; ++i) { > dataptr[i] += strides[i]; > } ># 2154 "numpy/core/src/multiarray/einsum.c.src" > } ># 2169 "numpy/core/src/multiarray/einsum.c.src" > *((npy_half *)dataptr[nop]) = npy_float_to_half(accum + > npy_half_to_float(*((npy_half *)dataptr[nop]))); > > > >} ># 102 "numpy/core/src/multiarray/einsum.c.src" ># 107 "numpy/core/src/multiarray/einsum.c.src" >static void >float_sum_of_products_one(int nop, char **dataptr, > npy_intp *strides, npy_intp count) >{ > > char *data0 = dataptr[0]; > npy_intp stride0 = strides[0]; ># 124 "numpy/core/src/multiarray/einsum.c.src" > char *data_out = dataptr[1]; > npy_intp stride_out = strides[1]; > > > ; > > while (count--) { > > > *(npy_float *)data_out = ((*(npy_float *)data0) + > (*(npy_float *)data_out)); > data0 += stride0; > data_out += stride_out; ># 201 "numpy/core/src/multiarray/einsum.c.src" > } >} > > > >static void >float_sum_of_products_contig_one(int nop, char **dataptr, > npy_intp *(__NPY_UNUSED_TAGGEDstrides) __attribute__ ((__unused__)), npy_intp count) >{ > npy_float *data0 = (npy_float *)dataptr[0]; > npy_float *data_out = (npy_float *)dataptr[1]; > > ; > > > >finish_after_unrolled_loop: > switch (count) { ># 222 "numpy/core/src/multiarray/einsum.c.src" > case 6+1: > > data_out[6] = ((data0[6]) + > (data_out[6])); ># 222 "numpy/core/src/multiarray/einsum.c.src" > case 5+1: > > data_out[5] = ((data0[5]) + > (data_out[5])); ># 222 "numpy/core/src/multiarray/einsum.c.src" > case 4+1: > > data_out[4] = ((data0[4]) + > (data_out[4])); ># 222 "numpy/core/src/multiarray/einsum.c.src" > case 3+1: > > data_out[3] = ((data0[3]) + > (data_out[3])); ># 222 "numpy/core/src/multiarray/einsum.c.src" > case 2+1: > > data_out[2] = ((data0[2]) + > (data_out[2])); ># 222 "numpy/core/src/multiarray/einsum.c.src" > case 1+1: > > data_out[1] = ((data0[1]) + > (data_out[1])); ># 222 "numpy/core/src/multiarray/einsum.c.src" > case 0+1: > > data_out[0] = ((data0[0]) + > (data_out[0])); ># 235 "numpy/core/src/multiarray/einsum.c.src" > case 0: > return; > } > > > while (count >= 8) { > count -= 8; ># 246 "numpy/core/src/multiarray/einsum.c.src" > > data_out[0] = ((data0[0]) + > (data_out[0])); ># 246 "numpy/core/src/multiarray/einsum.c.src" > > data_out[1] = ((data0[1]) + > (data_out[1])); ># 246 "numpy/core/src/multiarray/einsum.c.src" > > data_out[2] = ((data0[2]) + > (data_out[2])); ># 246 "numpy/core/src/multiarray/einsum.c.src" > > data_out[3] = ((data0[3]) + > (data_out[3])); ># 246 "numpy/core/src/multiarray/einsum.c.src" > > data_out[4] = ((data0[4]) + > (data_out[4])); ># 246 "numpy/core/src/multiarray/einsum.c.src" > > data_out[5] = ((data0[5]) + > (data_out[5])); ># 246 "numpy/core/src/multiarray/einsum.c.src" > > data_out[6] = ((data0[6]) + > (data_out[6])); ># 246 "numpy/core/src/multiarray/einsum.c.src" > > data_out[7] = ((data0[7]) + > (data_out[7])); ># 258 "numpy/core/src/multiarray/einsum.c.src" > data0 += 8; > data_out += 8; > } > > > goto finish_after_unrolled_loop; >} ># 1568 "numpy/core/src/multiarray/einsum.c.src" >static void >float_sum_of_products_contig_outstride0_one(int nop, char **dataptr, > npy_intp *strides, npy_intp count) >{ > > > > > npy_float accum = 0; > npy_float *data0 = (npy_float *)dataptr[0]; > > > > __m128 a, accum_sse = _mm_setzero_ps(); > > > > > > ; > > > >finish_after_unrolled_loop: > switch (count) { ># 1051 "numpy/core/src/multiarray/einsum.c.src" > case 6+1: > > accum += (data0[6]); ># 1051 "numpy/core/src/multiarray/einsum.c.src" > case 5+1: > > accum += (data0[5]); ># 1051 "numpy/core/src/multiarray/einsum.c.src" > case 4+1: > > accum += (data0[4]); ># 1051 "numpy/core/src/multiarray/einsum.c.src" > case 3+1: > > accum += (data0[3]); ># 1051 "numpy/core/src/multiarray/einsum.c.src" > case 2+1: > > accum += (data0[2]); ># 1051 "numpy/core/src/multiarray/einsum.c.src" > case 1+1: > > accum += (data0[1]); ># 1051 "numpy/core/src/multiarray/einsum.c.src" > case 0+1: > > accum += (data0[0]); > > > > > > case 0: > > > > > *((npy_float *)dataptr[1]) = (accum + > (*((npy_float *)dataptr[1]))); > > return; > } > > > > if (((((npy_intp)data0)&0xf) == 0)) { > > while (count >= 8) { > count -= 8; > > __builtin_prefetch ((data0 + 512), 0, (_MM_HINT_T0)); ># 1082 "numpy/core/src/multiarray/einsum.c.src" > > > > > accum_sse = _mm_add_ps(accum_sse, _mm_load_ps(data0+0)); ># 1082 "numpy/core/src/multiarray/einsum.c.src" > > > > > accum_sse = _mm_add_ps(accum_sse, _mm_load_ps(data0+4)); > > data0 += 8; > } > > > a = ((__m128) __builtin_ia32_shufps ((__v4sf)(accum_sse), (__v4sf)(accum_sse), ((((2) << 6) | ((3) << 4) | ((0) << 2) | (1))))); > accum_sse = _mm_add_ps(a, accum_sse); > a = ((__m128) __builtin_ia32_shufps ((__v4sf)(accum_sse), (__v4sf)(accum_sse), ((((1) << 6) | ((0) << 4) | ((3) << 2) | (2))))); > accum_sse = _mm_add_ps(a, accum_sse); > _mm_store_ss(&accum, accum_sse); > > > goto finish_after_unrolled_loop; > } ># 1152 "numpy/core/src/multiarray/einsum.c.src" > while (count >= 8) { > count -= 8; > > > __builtin_prefetch ((data0 + 512), 0, (_MM_HINT_T0)); ># 1142 "numpy/core/src/multiarray/einsum.c.src" > > > > > accum_sse = _mm_add_ps(accum_sse, _mm_loadu_ps(data0+0)); ># 1142 "numpy/core/src/multiarray/einsum.c.src" > > > > > accum_sse = _mm_add_ps(accum_sse, _mm_loadu_ps(data0+4)); ># 1247 "numpy/core/src/multiarray/einsum.c.src" > data0 += 8; > > > > } > > > > a = ((__m128) __builtin_ia32_shufps ((__v4sf)(accum_sse), (__v4sf)(accum_sse), ((((2) << 6) | ((3) << 4) | ((0) << 2) | (1))))); > accum_sse = _mm_add_ps(a, accum_sse); > a = ((__m128) __builtin_ia32_shufps ((__v4sf)(accum_sse), (__v4sf)(accum_sse), ((((1) << 6) | ((0) << 4) | ((3) << 2) | (2))))); > accum_sse = _mm_add_ps(a, accum_sse); > _mm_store_ss(&accum, accum_sse); ># 1268 "numpy/core/src/multiarray/einsum.c.src" > goto finish_after_unrolled_loop; >} > > > >static void >float_sum_of_products_outstride0_one(int nop, char **dataptr, > npy_intp *strides, npy_intp count) >{ > > > > npy_float accum = 0; > > > > char *data0 = dataptr[0]; > npy_intp stride0 = strides[0]; ># 1296 "numpy/core/src/multiarray/einsum.c.src" > ; > > > while (count--) { > > > accum += (*(npy_float *)data0); > data0 += stride0; ># 1357 "numpy/core/src/multiarray/einsum.c.src" > } ># 1369 "numpy/core/src/multiarray/einsum.c.src" > *((npy_float *)dataptr[1]) = (accum + > (*((npy_float *)dataptr[1]))); > > > > > > >} ># 107 "numpy/core/src/multiarray/einsum.c.src" >static void >float_sum_of_products_two(int nop, char **dataptr, > npy_intp *strides, npy_intp count) >{ > > char *data0 = dataptr[0]; > npy_intp stride0 = strides[0]; > > > char *data1 = dataptr[1]; > npy_intp stride1 = strides[1]; > > > > > > > char *data_out = dataptr[2]; > npy_intp stride_out = strides[2]; > > > ; > > while (count--) { > > > > > > > > *(npy_float *)data_out = ((*(npy_float *)data0) * > (*(npy_float *)data1) + > (*(npy_float *)data_out)); > data0 += stride0; > data1 += stride1; > data_out += stride_out; ># 201 "numpy/core/src/multiarray/einsum.c.src" > } >} ># 439 "numpy/core/src/multiarray/einsum.c.src" >static void >float_sum_of_products_contig_two(int nop, char **dataptr, > npy_intp *(__NPY_UNUSED_TAGGEDstrides) __attribute__ ((__unused__)), npy_intp count) >{ > npy_float *data0 = (npy_float *)dataptr[0]; > npy_float *data1 = (npy_float *)dataptr[1]; > npy_float *data_out = (npy_float *)dataptr[2]; > > > __m128 a, b; > > > ; > > > >finish_after_unrolled_loop: > switch (count) { ># 289 "numpy/core/src/multiarray/einsum.c.src" > case 6+1: > data_out[6] = ((data0[6]) * > (data1[6]) + > (data_out[6])); ># 289 "numpy/core/src/multiarray/einsum.c.src" > case 5+1: > data_out[5] = ((data0[5]) * > (data1[5]) + > (data_out[5])); ># 289 "numpy/core/src/multiarray/einsum.c.src" > case 4+1: > data_out[4] = ((data0[4]) * > (data1[4]) + > (data_out[4])); ># 289 "numpy/core/src/multiarray/einsum.c.src" > case 3+1: > data_out[3] = ((data0[3]) * > (data1[3]) + > (data_out[3])); ># 289 "numpy/core/src/multiarray/einsum.c.src" > case 2+1: > data_out[2] = ((data0[2]) * > (data1[2]) + > (data_out[2])); ># 289 "numpy/core/src/multiarray/einsum.c.src" > case 1+1: > data_out[1] = ((data0[1]) * > (data1[1]) + > (data_out[1])); ># 289 "numpy/core/src/multiarray/einsum.c.src" > case 0+1: > data_out[0] = ((data0[0]) * > (data1[0]) + > (data_out[0])); > > case 0: > return; > } > > > > if (((((npy_intp)data0)&0xf) == 0) && ((((npy_intp)data1)&0xf) == 0) && > ((((npy_intp)data_out)&0xf) == 0)) { > > while (count >= 8) { > count -= 8; ># 309 "numpy/core/src/multiarray/einsum.c.src" > a = _mm_mul_ps(_mm_load_ps(data0+0), _mm_load_ps(data1+0)); > b = _mm_add_ps(a, _mm_load_ps(data_out+0)); > _mm_store_ps(data_out+0, b); ># 309 "numpy/core/src/multiarray/einsum.c.src" > a = _mm_mul_ps(_mm_load_ps(data0+4), _mm_load_ps(data1+4)); > b = _mm_add_ps(a, _mm_load_ps(data_out+4)); > _mm_store_ps(data_out+4, b); > > data0 += 8; > data1 += 8; > data_out += 8; > } > > > goto finish_after_unrolled_loop; > } > > > > while (count >= 8) { > count -= 8; ># 331 "numpy/core/src/multiarray/einsum.c.src" > a = _mm_mul_ps(_mm_loadu_ps(data0+0), _mm_loadu_ps(data1+0)); > b = _mm_add_ps(a, _mm_loadu_ps(data_out+0)); > _mm_storeu_ps(data_out+0, b); ># 331 "numpy/core/src/multiarray/einsum.c.src" > a = _mm_mul_ps(_mm_loadu_ps(data0+4), _mm_loadu_ps(data1+4)); > b = _mm_add_ps(a, _mm_loadu_ps(data_out+4)); > _mm_storeu_ps(data_out+4, b); ># 377 "numpy/core/src/multiarray/einsum.c.src" > data0 += 8; > data1 += 8; > data_out += 8; > } > > > goto finish_after_unrolled_loop; >} > > >static void >float_sum_of_products_stride0_contig_outcontig_two(int nop, char **dataptr, > npy_intp *(__NPY_UNUSED_TAGGEDstrides) __attribute__ ((__unused__)), npy_intp count) >{ > npy_float value0 = (*(npy_float *)dataptr[0]); > npy_float *data1 = (npy_float *)dataptr[1]; > npy_float *data_out = (npy_float *)dataptr[2]; > > > __m128 a, b, value0_sse; > > > > > ; > > > >finish_after_unrolled_loop: > switch (count) { ># 377 "numpy/core/src/multiarray/einsum.c.src" > case 6+1: > data_out[6] = (value0 * > (data1[6]) + > (data_out[6])); ># 377 "numpy/core/src/multiarray/einsum.c.src" > case 5+1: > data_out[5] = (value0 * > (data1[5]) + > (data_out[5])); ># 377 "numpy/core/src/multiarray/einsum.c.src" > case 4+1: > data_out[4] = (value0 * > (data1[4]) + > (data_out[4])); ># 377 "numpy/core/src/multiarray/einsum.c.src" > case 3+1: > data_out[3] = (value0 * > (data1[3]) + > (data_out[3])); ># 377 "numpy/core/src/multiarray/einsum.c.src" > case 2+1: > data_out[2] = (value0 * > (data1[2]) + > (data_out[2])); ># 377 "numpy/core/src/multiarray/einsum.c.src" > case 1+1: > data_out[1] = (value0 * > (data1[1]) + > (data_out[1])); ># 377 "numpy/core/src/multiarray/einsum.c.src" > case 0+1: > data_out[0] = (value0 * > (data1[0]) + > (data_out[0])); > > case 0: > return; > } > > > value0_sse = _mm_set_ps1(value0); > > > if (((((npy_intp)data1)&0xf) == 0) && ((((npy_intp)data_out)&0xf) == 0)) { > > while (count >= 8) { > count -= 8; ># 398 "numpy/core/src/multiarray/einsum.c.src" > a = _mm_mul_ps(value0_sse, _mm_load_ps(data1+0)); > b = _mm_add_ps(a, _mm_load_ps(data_out+0)); > _mm_store_ps(data_out+0, b); ># 398 "numpy/core/src/multiarray/einsum.c.src" > a = _mm_mul_ps(value0_sse, _mm_load_ps(data1+4)); > b = _mm_add_ps(a, _mm_load_ps(data_out+4)); > _mm_store_ps(data_out+4, b); > > data1 += 8; > data_out += 8; > } > > > if (count > 0) { > goto finish_after_unrolled_loop; > } > else { > return; > } > } ># 458 "numpy/core/src/multiarray/einsum.c.src" > while (count >= 8) { > count -= 8; ># 452 "numpy/core/src/multiarray/einsum.c.src" > a = _mm_mul_ps(value0_sse, _mm_loadu_ps(data1+0)); > b = _mm_add_ps(a, _mm_loadu_ps(data_out+0)); > _mm_storeu_ps(data_out+0, b); ># 452 "numpy/core/src/multiarray/einsum.c.src" > a = _mm_mul_ps(value0_sse, _mm_loadu_ps(data1+4)); > b = _mm_add_ps(a, _mm_loadu_ps(data_out+4)); > _mm_storeu_ps(data_out+4, b); ># 519 "numpy/core/src/multiarray/einsum.c.src" > data1 += 8; > data_out += 8; > } > > > if (count > 0) { > goto finish_after_unrolled_loop; > } >} > >static void >float_sum_of_products_contig_stride0_outcontig_two(int nop, char **dataptr, > npy_intp *(__NPY_UNUSED_TAGGEDstrides) __attribute__ ((__unused__)), npy_intp count) >{ > npy_float *data0 = (npy_float *)dataptr[0]; > npy_float value1 = (*(npy_float *)dataptr[1]); > npy_float *data_out = (npy_float *)dataptr[2]; > > > __m128 a, b, value1_sse; > > > ; > > > >finish_after_unrolled_loop: > switch (count) { ># 504 "numpy/core/src/multiarray/einsum.c.src" > case 6+1: > data_out[6] = ((data0[6])* > value1 + > (data_out[6])); ># 504 "numpy/core/src/multiarray/einsum.c.src" > case 5+1: > data_out[5] = ((data0[5])* > value1 + > (data_out[5])); ># 504 "numpy/core/src/multiarray/einsum.c.src" > case 4+1: > data_out[4] = ((data0[4])* > value1 + > (data_out[4])); ># 504 "numpy/core/src/multiarray/einsum.c.src" > case 3+1: > data_out[3] = ((data0[3])* > value1 + > (data_out[3])); ># 504 "numpy/core/src/multiarray/einsum.c.src" > case 2+1: > data_out[2] = ((data0[2])* > value1 + > (data_out[2])); ># 504 "numpy/core/src/multiarray/einsum.c.src" > case 1+1: > data_out[1] = ((data0[1])* > value1 + > (data_out[1])); ># 504 "numpy/core/src/multiarray/einsum.c.src" > case 0+1: > data_out[0] = ((data0[0])* > value1 + > (data_out[0])); > > case 0: > return; > } > > > value1_sse = _mm_set_ps1(value1); > > > if (((((npy_intp)data0)&0xf) == 0) && ((((npy_intp)data_out)&0xf) == 0)) { > > while (count >= 8) { > count -= 8; ># 525 "numpy/core/src/multiarray/einsum.c.src" > a = _mm_mul_ps(_mm_load_ps(data0+0), value1_sse); > b = _mm_add_ps(a, _mm_load_ps(data_out+0)); > _mm_store_ps(data_out+0, b); ># 525 "numpy/core/src/multiarray/einsum.c.src" > a = _mm_mul_ps(_mm_load_ps(data0+4), value1_sse); > b = _mm_add_ps(a, _mm_load_ps(data_out+4)); > _mm_store_ps(data_out+4, b); > > data0 += 8; > data_out += 8; > } > > > goto finish_after_unrolled_loop; > } > > > > while (count >= 8) { > count -= 8; ># 546 "numpy/core/src/multiarray/einsum.c.src" > a = _mm_mul_ps(_mm_loadu_ps(data0+0), value1_sse); > b = _mm_add_ps(a, _mm_loadu_ps(data_out+0)); > _mm_storeu_ps(data_out+0, b); ># 546 "numpy/core/src/multiarray/einsum.c.src" > a = _mm_mul_ps(_mm_loadu_ps(data0+4), value1_sse); > b = _mm_add_ps(a, _mm_loadu_ps(data_out+4)); > _mm_storeu_ps(data_out+4, b); ># 592 "numpy/core/src/multiarray/einsum.c.src" > data0 += 8; > data_out += 8; > } > > > goto finish_after_unrolled_loop; >} > >static void >float_sum_of_products_contig_contig_outstride0_two(int nop, char **dataptr, > npy_intp *(__NPY_UNUSED_TAGGEDstrides) __attribute__ ((__unused__)), npy_intp count) >{ > npy_float *data0 = (npy_float *)dataptr[0]; > npy_float *data1 = (npy_float *)dataptr[1]; > npy_float accum = 0; > > > __m128 a, accum_sse = _mm_setzero_ps(); > > > > > ; > > > >finish_after_unrolled_loop: > switch (count) { ># 590 "numpy/core/src/multiarray/einsum.c.src" > case 6+1: > accum += (data0[6]) * (data1[6]); ># 590 "numpy/core/src/multiarray/einsum.c.src" > case 5+1: > accum += (data0[5]) * (data1[5]); ># 590 "numpy/core/src/multiarray/einsum.c.src" > case 4+1: > accum += (data0[4]) * (data1[4]); ># 590 "numpy/core/src/multiarray/einsum.c.src" > case 3+1: > accum += (data0[3]) * (data1[3]); ># 590 "numpy/core/src/multiarray/einsum.c.src" > case 2+1: > accum += (data0[2]) * (data1[2]); ># 590 "numpy/core/src/multiarray/einsum.c.src" > case 1+1: > accum += (data0[1]) * (data1[1]); ># 590 "numpy/core/src/multiarray/einsum.c.src" > case 0+1: > accum += (data0[0]) * (data1[0]); > > case 0: > *(npy_float *)dataptr[2] += (accum); > return; > } > > > > if (((((npy_intp)data0)&0xf) == 0) && ((((npy_intp)data1)&0xf) == 0)) { > > while (count >= 8) { > count -= 8; > > __builtin_prefetch ((data0 + 512), 0, (_MM_HINT_T0)); > __builtin_prefetch ((data1 + 512), 0, (_MM_HINT_T0)); ># 611 "numpy/core/src/multiarray/einsum.c.src" > > > > > a = _mm_mul_ps(_mm_load_ps(data0+0), _mm_load_ps(data1+0)); > accum_sse = _mm_add_ps(accum_sse, a); ># 611 "numpy/core/src/multiarray/einsum.c.src" > > > > > a = _mm_mul_ps(_mm_load_ps(data0+4), _mm_load_ps(data1+4)); > accum_sse = _mm_add_ps(accum_sse, a); > > data0 += 8; > data1 += 8; > } > > > a = ((__m128) __builtin_ia32_shufps ((__v4sf)(accum_sse), (__v4sf)(accum_sse), ((((2) << 6) | ((3) << 4) | ((0) << 2) | (1))))); > accum_sse = _mm_add_ps(a, accum_sse); > a = ((__m128) __builtin_ia32_shufps ((__v4sf)(accum_sse), (__v4sf)(accum_sse), ((((1) << 6) | ((0) << 4) | ((3) << 2) | (2))))); > accum_sse = _mm_add_ps(a, accum_sse); > _mm_store_ss(&accum, accum_sse); > > > goto finish_after_unrolled_loop; > } ># 689 "numpy/core/src/multiarray/einsum.c.src" > while (count >= 8) { > count -= 8; > > > __builtin_prefetch ((data0 + 512), 0, (_MM_HINT_T0)); > __builtin_prefetch ((data1 + 512), 0, (_MM_HINT_T0)); ># 677 "numpy/core/src/multiarray/einsum.c.src" > > > > > a = _mm_mul_ps(_mm_loadu_ps(data0+0), _mm_loadu_ps(data1+0)); > accum_sse = _mm_add_ps(accum_sse, a); ># 677 "numpy/core/src/multiarray/einsum.c.src" > > > > > a = _mm_mul_ps(_mm_loadu_ps(data0+4), _mm_loadu_ps(data1+4)); > accum_sse = _mm_add_ps(accum_sse, a); ># 746 "numpy/core/src/multiarray/einsum.c.src" > data0 += 8; > data1 += 8; > } > > > > a = ((__m128) __builtin_ia32_shufps ((__v4sf)(accum_sse), (__v4sf)(accum_sse), ((((2) << 6) | ((3) << 4) | ((0) << 2) | (1))))); > accum_sse = _mm_add_ps(a, accum_sse); > a = ((__m128) __builtin_ia32_shufps ((__v4sf)(accum_sse), (__v4sf)(accum_sse), ((((1) << 6) | ((0) << 4) | ((3) << 2) | (2))))); > accum_sse = _mm_add_ps(a, accum_sse); > _mm_store_ss(&accum, accum_sse); ># 765 "numpy/core/src/multiarray/einsum.c.src" > goto finish_after_unrolled_loop; >} > >static void >float_sum_of_products_stride0_contig_outstride0_two(int nop, char **dataptr, > npy_intp *(__NPY_UNUSED_TAGGEDstrides) __attribute__ ((__unused__)), npy_intp count) >{ > npy_float value0 = (*(npy_float *)dataptr[0]); > npy_float *data1 = (npy_float *)dataptr[1]; > npy_float accum = 0; > > > __m128 a, accum_sse = _mm_setzero_ps(); > > > ; > > > >finish_after_unrolled_loop: > switch (count) { ># 748 "numpy/core/src/multiarray/einsum.c.src" > case 6+1: > accum += (data1[6]); ># 748 "numpy/core/src/multiarray/einsum.c.src" > case 5+1: > accum += (data1[5]); ># 748 "numpy/core/src/multiarray/einsum.c.src" > case 4+1: > accum += (data1[4]); ># 748 "numpy/core/src/multiarray/einsum.c.src" > case 3+1: > accum += (data1[3]); ># 748 "numpy/core/src/multiarray/einsum.c.src" > case 2+1: > accum += (data1[2]); ># 748 "numpy/core/src/multiarray/einsum.c.src" > case 1+1: > accum += (data1[1]); ># 748 "numpy/core/src/multiarray/einsum.c.src" > case 0+1: > accum += (data1[0]); > > case 0: > *(npy_float *)dataptr[2] += (value0 * accum); > return; > } > > > > if (((((npy_intp)data1)&0xf) == 0)) { > > while (count >= 8) { > count -= 8; ># 766 "numpy/core/src/multiarray/einsum.c.src" > > > > > accum_sse = _mm_add_ps(accum_sse, _mm_load_ps(data1+0)); ># 766 "numpy/core/src/multiarray/einsum.c.src" > > > > > accum_sse = _mm_add_ps(accum_sse, _mm_load_ps(data1+4)); > > data1 += 8; > } > > > > a = ((__m128) __builtin_ia32_shufps ((__v4sf)(accum_sse), (__v4sf)(accum_sse), ((((2) << 6) | ((3) << 4) | ((0) << 2) | (1))))); > accum_sse = _mm_add_ps(a, accum_sse); > a = ((__m128) __builtin_ia32_shufps ((__v4sf)(accum_sse), (__v4sf)(accum_sse), ((((1) << 6) | ((0) << 4) | ((3) << 2) | (2))))); > accum_sse = _mm_add_ps(a, accum_sse); > _mm_store_ss(&accum, accum_sse); > > > > goto finish_after_unrolled_loop; > } > > > > while (count >= 8) { > count -= 8; ># 797 "numpy/core/src/multiarray/einsum.c.src" > > > > > accum_sse = _mm_add_ps(accum_sse, _mm_loadu_ps(data1+0)); ># 797 "numpy/core/src/multiarray/einsum.c.src" > > > > > accum_sse = _mm_add_ps(accum_sse, _mm_loadu_ps(data1+4)); ># 829 "numpy/core/src/multiarray/einsum.c.src" > data1 += 8; > } > > > > a = ((__m128) __builtin_ia32_shufps ((__v4sf)(accum_sse), (__v4sf)(accum_sse), ((((2) << 6) | ((3) << 4) | ((0) << 2) | (1))))); > accum_sse = _mm_add_ps(a, accum_sse); > a = ((__m128) __builtin_ia32_shufps ((__v4sf)(accum_sse), (__v4sf)(accum_sse), ((((1) << 6) | ((0) << 4) | ((3) << 2) | (2))))); > accum_sse = _mm_add_ps(a, accum_sse); > _mm_store_ss(&accum, accum_sse); > > > > goto finish_after_unrolled_loop; >} > >static void >float_sum_of_products_contig_stride0_outstride0_two(int nop, char **dataptr, > npy_intp *(__NPY_UNUSED_TAGGEDstrides) __attribute__ ((__unused__)), npy_intp count) >{ > npy_float *data0 = (npy_float *)dataptr[0]; > npy_float value1 = (*(npy_float *)dataptr[1]); > npy_float accum = 0; > > > __m128 a, accum_sse = _mm_setzero_ps(); > > > ; > > > >finish_after_unrolled_loop: > switch (count) { ># 847 "numpy/core/src/multiarray/einsum.c.src" > case 6+1: > accum += (data0[6]); ># 847 "numpy/core/src/multiarray/einsum.c.src" > case 5+1: > accum += (data0[5]); ># 847 "numpy/core/src/multiarray/einsum.c.src" > case 4+1: > accum += (data0[4]); ># 847 "numpy/core/src/multiarray/einsum.c.src" > case 3+1: > accum += (data0[3]); ># 847 "numpy/core/src/multiarray/einsum.c.src" > case 2+1: > accum += (data0[2]); ># 847 "numpy/core/src/multiarray/einsum.c.src" > case 1+1: > accum += (data0[1]); ># 847 "numpy/core/src/multiarray/einsum.c.src" > case 0+1: > accum += (data0[0]); > > case 0: > *(npy_float *)dataptr[2] += (accum * value1); > return; > } > > > > if (((((npy_intp)data0)&0xf) == 0)) { > > while (count >= 8) { > count -= 8; ># 865 "numpy/core/src/multiarray/einsum.c.src" > > > > > accum_sse = _mm_add_ps(accum_sse, _mm_load_ps(data0+0)); ># 865 "numpy/core/src/multiarray/einsum.c.src" > > > > > accum_sse = _mm_add_ps(accum_sse, _mm_load_ps(data0+4)); > > data0 += 8; > } > > > > a = ((__m128) __builtin_ia32_shufps ((__v4sf)(accum_sse), (__v4sf)(accum_sse), ((((2) << 6) | ((3) << 4) | ((0) << 2) | (1))))); > accum_sse = _mm_add_ps(a, accum_sse); > a = ((__m128) __builtin_ia32_shufps ((__v4sf)(accum_sse), (__v4sf)(accum_sse), ((((1) << 6) | ((0) << 4) | ((3) << 2) | (2))))); > accum_sse = _mm_add_ps(a, accum_sse); > _mm_store_ss(&accum, accum_sse); > > > > goto finish_after_unrolled_loop; > } > > > > while (count >= 8) { > count -= 8; ># 896 "numpy/core/src/multiarray/einsum.c.src" > > > > > accum_sse = _mm_add_ps(accum_sse, _mm_loadu_ps(data0+0)); ># 896 "numpy/core/src/multiarray/einsum.c.src" > > > > > accum_sse = _mm_add_ps(accum_sse, _mm_loadu_ps(data0+4)); ># 928 "numpy/core/src/multiarray/einsum.c.src" > data0 += 8; > } > > > > a = ((__m128) __builtin_ia32_shufps ((__v4sf)(accum_sse), (__v4sf)(accum_sse), ((((2) << 6) | ((3) << 4) | ((0) << 2) | (1))))); > accum_sse = _mm_add_ps(a, accum_sse); > a = ((__m128) __builtin_ia32_shufps ((__v4sf)(accum_sse), (__v4sf)(accum_sse), ((((1) << 6) | ((0) << 4) | ((3) << 2) | (2))))); > accum_sse = _mm_add_ps(a, accum_sse); > _mm_store_ss(&accum, accum_sse); > > > > goto finish_after_unrolled_loop; >} ># 1474 "numpy/core/src/multiarray/einsum.c.src" >static void >float_sum_of_products_outstride0_two(int nop, char **dataptr, > npy_intp *strides, npy_intp count) >{ > > > > npy_float accum = 0; > > > > char *data0 = dataptr[0]; > npy_intp stride0 = strides[0]; > > > char *data1 = dataptr[1]; > npy_intp stride1 = strides[1]; > > > > > > > ; > > > while (count--) { > > > > > > accum += (*(npy_float *)data0) * > (*(npy_float *)data1); > data0 += stride0; > data1 += stride1; ># 1558 "numpy/core/src/multiarray/einsum.c.src" > } ># 1570 "numpy/core/src/multiarray/einsum.c.src" > *((npy_float *)dataptr[2]) = (accum + > (*((npy_float *)dataptr[2]))); > > > > > > >} ># 107 "numpy/core/src/multiarray/einsum.c.src" >static void >float_sum_of_products_three(int nop, char **dataptr, > npy_intp *strides, npy_intp count) >{ > > char *data0 = dataptr[0]; > npy_intp stride0 = strides[0]; > > > char *data1 = dataptr[1]; > npy_intp stride1 = strides[1]; > > > char *data2 = dataptr[2]; > npy_intp stride2 = strides[2]; > > > char *data_out = dataptr[3]; > npy_intp stride_out = strides[3]; > > > ; > > while (count--) { ># 145 "numpy/core/src/multiarray/einsum.c.src" > *(npy_float *)data_out = ((*(npy_float *)data0) * > (*(npy_float *)data1) * > (*(npy_float *)data2) + > (*(npy_float *)data_out)); > data0 += stride0; > data1 += stride1; > data2 += stride2; > data_out += stride_out; ># 201 "numpy/core/src/multiarray/einsum.c.src" > } >} ># 1542 "numpy/core/src/multiarray/einsum.c.src" >static void >float_sum_of_products_contig_three(int nop, char **dataptr, > npy_intp *(__NPY_UNUSED_TAGGEDstrides) __attribute__ ((__unused__)), npy_intp count) >{ > npy_float *data0 = (npy_float *)dataptr[0]; > npy_float *data1 = (npy_float *)dataptr[1]; > npy_float *data2 = (npy_float *)dataptr[2]; > npy_float *data_out = (npy_float *)dataptr[3]; > > > while (count >= 8) { > count -= 8; ># 943 "numpy/core/src/multiarray/einsum.c.src" > data_out[0] = ((data0[0]) * > (data1[0]) * > (data2[0]) + > (data_out[0])); ># 943 "numpy/core/src/multiarray/einsum.c.src" > data_out[1] = ((data0[1]) * > (data1[1]) * > (data2[1]) + > (data_out[1])); ># 943 "numpy/core/src/multiarray/einsum.c.src" > data_out[2] = ((data0[2]) * > (data1[2]) * > (data2[2]) + > (data_out[2])); ># 943 "numpy/core/src/multiarray/einsum.c.src" > data_out[3] = ((data0[3]) * > (data1[3]) * > (data2[3]) + > (data_out[3])); ># 943 "numpy/core/src/multiarray/einsum.c.src" > data_out[4] = ((data0[4]) * > (data1[4]) * > (data2[4]) + > (data_out[4])); ># 943 "numpy/core/src/multiarray/einsum.c.src" > data_out[5] = ((data0[5]) * > (data1[5]) * > (data2[5]) + > (data_out[5])); ># 943 "numpy/core/src/multiarray/einsum.c.src" > data_out[6] = ((data0[6]) * > (data1[6]) * > (data2[6]) + > (data_out[6])); ># 943 "numpy/core/src/multiarray/einsum.c.src" > data_out[7] = ((data0[7]) * > (data1[7]) * > (data2[7]) + > (data_out[7])); > > data0 += 8; > data1 += 8; > data_out += 8; > } ># 958 "numpy/core/src/multiarray/einsum.c.src" > if (count-- == 0) { > return; > } > data_out[0] = ((data0[0]) * > (data1[0]) * > (data2[0]) + > (data_out[0])); ># 958 "numpy/core/src/multiarray/einsum.c.src" > if (count-- == 0) { > return; > } > data_out[1] = ((data0[1]) * > (data1[1]) * > (data2[1]) + > (data_out[1])); ># 958 "numpy/core/src/multiarray/einsum.c.src" > if (count-- == 0) { > return; > } > data_out[2] = ((data0[2]) * > (data1[2]) * > (data2[2]) + > (data_out[2])); ># 958 "numpy/core/src/multiarray/einsum.c.src" > if (count-- == 0) { > return; > } > data_out[3] = ((data0[3]) * > (data1[3]) * > (data2[3]) + > (data_out[3])); ># 958 "numpy/core/src/multiarray/einsum.c.src" > if (count-- == 0) { > return; > } > data_out[4] = ((data0[4]) * > (data1[4]) * > (data2[4]) + > (data_out[4])); ># 958 "numpy/core/src/multiarray/einsum.c.src" > if (count-- == 0) { > return; > } > data_out[5] = ((data0[5]) * > (data1[5]) * > (data2[5]) + > (data_out[5])); ># 958 "numpy/core/src/multiarray/einsum.c.src" > if (count-- == 0) { > return; > } > data_out[6] = ((data0[6]) * > (data1[6]) * > (data2[6]) + > (data_out[6])); ># 958 "numpy/core/src/multiarray/einsum.c.src" > if (count-- == 0) { > return; > } > data_out[7] = ((data0[7]) * > (data1[7]) * > (data2[7]) + > (data_out[7])); > >} ># 1354 "numpy/core/src/multiarray/einsum.c.src" >static void >float_sum_of_products_outstride0_three(int nop, char **dataptr, > npy_intp *strides, npy_intp count) >{ > > > > npy_float accum = 0; > > > > char *data0 = dataptr[0]; > npy_intp stride0 = strides[0]; > > > char *data1 = dataptr[1]; > npy_intp stride1 = strides[1]; > > > char *data2 = dataptr[2]; > npy_intp stride2 = strides[2]; > > > ; > > > while (count--) { ># 1391 "numpy/core/src/multiarray/einsum.c.src" > accum += (*(npy_float *)data0) * > (*(npy_float *)data1) * > (*(npy_float *)data2); > data0 += stride0; > data1 += stride1; > data2 += stride2; ># 1438 "numpy/core/src/multiarray/einsum.c.src" > } ># 1450 "numpy/core/src/multiarray/einsum.c.src" > *((npy_float *)dataptr[3]) = (accum + > (*((npy_float *)dataptr[3]))); > > > > > > >} ># 107 "numpy/core/src/multiarray/einsum.c.src" >static void >float_sum_of_products_any(int nop, char **dataptr, > npy_intp *strides, npy_intp count) >{ ># 128 "numpy/core/src/multiarray/einsum.c.src" > ; > > while (count--) { ># 154 "numpy/core/src/multiarray/einsum.c.src" > npy_float temp = (*(npy_float *)dataptr[0]); > int i; > for (i = 1; i < nop; ++i) { > temp *= (*(npy_float *)dataptr[i]); > } > *(npy_float *)dataptr[nop] = (temp + > (*(npy_float *)dataptr[i])); > for (i = 0; i <= nop; ++i) { > dataptr[i] += strides[i]; > } ># 201 "numpy/core/src/multiarray/einsum.c.src" > } >} ># 1686 "numpy/core/src/multiarray/einsum.c.src" >static void >float_sum_of_products_contig_any(int nop, char **dataptr, > npy_intp *(__NPY_UNUSED_TAGGEDstrides) __attribute__ ((__unused__)), npy_intp count) >{ > ; > > > while (count--) { > > npy_float temp = (*(npy_float *)dataptr[0]); > int i; > for (i = 1; i < nop; ++i) { > temp *= (*(npy_float *)dataptr[i]); > } > *(npy_float *)dataptr[nop] = (temp + > (*(npy_float *)dataptr[i])); > for (i = 0; i <= nop; ++i) { > dataptr[i] += sizeof(npy_float); > } ># 1732 "numpy/core/src/multiarray/einsum.c.src" > } >} ># 2070 "numpy/core/src/multiarray/einsum.c.src" >static void >float_sum_of_products_outstride0_any(int nop, char **dataptr, > npy_intp *strides, npy_intp count) >{ > > > > npy_float accum = 0; ># 2093 "numpy/core/src/multiarray/einsum.c.src" > ; > > > while (count--) { ># 2114 "numpy/core/src/multiarray/einsum.c.src" > npy_float temp = (*(npy_float *)dataptr[0]); > int i; > for (i = 1; i < nop; ++i) { > temp *= (*(npy_float *)dataptr[i]); > } > accum += temp; > for (i = 0; i < nop; ++i) { > dataptr[i] += strides[i]; > } ># 2154 "numpy/core/src/multiarray/einsum.c.src" > } ># 2169 "numpy/core/src/multiarray/einsum.c.src" > *((npy_float *)dataptr[nop]) = (accum + > (*((npy_float *)dataptr[nop]))); > > > >} ># 102 "numpy/core/src/multiarray/einsum.c.src" ># 107 "numpy/core/src/multiarray/einsum.c.src" >static void >double_sum_of_products_one(int nop, char **dataptr, > npy_intp *strides, npy_intp count) >{ > > char *data0 = dataptr[0]; > npy_intp stride0 = strides[0]; ># 124 "numpy/core/src/multiarray/einsum.c.src" > char *data_out = dataptr[1]; > npy_intp stride_out = strides[1]; > > > ; > > while (count--) { > > > *(npy_double *)data_out = ((*(npy_double *)data0) + > (*(npy_double *)data_out)); > data0 += stride0; > data_out += stride_out; ># 201 "numpy/core/src/multiarray/einsum.c.src" > } >} > > > >static void >double_sum_of_products_contig_one(int nop, char **dataptr, > npy_intp *(__NPY_UNUSED_TAGGEDstrides) __attribute__ ((__unused__)), npy_intp count) >{ > npy_double *data0 = (npy_double *)dataptr[0]; > npy_double *data_out = (npy_double *)dataptr[1]; > > ; > > > >finish_after_unrolled_loop: > switch (count) { ># 222 "numpy/core/src/multiarray/einsum.c.src" > case 6+1: > > data_out[6] = ((data0[6]) + > (data_out[6])); ># 222 "numpy/core/src/multiarray/einsum.c.src" > case 5+1: > > data_out[5] = ((data0[5]) + > (data_out[5])); ># 222 "numpy/core/src/multiarray/einsum.c.src" > case 4+1: > > data_out[4] = ((data0[4]) + > (data_out[4])); ># 222 "numpy/core/src/multiarray/einsum.c.src" > case 3+1: > > data_out[3] = ((data0[3]) + > (data_out[3])); ># 222 "numpy/core/src/multiarray/einsum.c.src" > case 2+1: > > data_out[2] = ((data0[2]) + > (data_out[2])); ># 222 "numpy/core/src/multiarray/einsum.c.src" > case 1+1: > > data_out[1] = ((data0[1]) + > (data_out[1])); ># 222 "numpy/core/src/multiarray/einsum.c.src" > case 0+1: > > data_out[0] = ((data0[0]) + > (data_out[0])); ># 235 "numpy/core/src/multiarray/einsum.c.src" > case 0: > return; > } > > > while (count >= 8) { > count -= 8; ># 246 "numpy/core/src/multiarray/einsum.c.src" > > data_out[0] = ((data0[0]) + > (data_out[0])); ># 246 "numpy/core/src/multiarray/einsum.c.src" > > data_out[1] = ((data0[1]) + > (data_out[1])); ># 246 "numpy/core/src/multiarray/einsum.c.src" > > data_out[2] = ((data0[2]) + > (data_out[2])); ># 246 "numpy/core/src/multiarray/einsum.c.src" > > data_out[3] = ((data0[3]) + > (data_out[3])); ># 246 "numpy/core/src/multiarray/einsum.c.src" > > data_out[4] = ((data0[4]) + > (data_out[4])); ># 246 "numpy/core/src/multiarray/einsum.c.src" > > data_out[5] = ((data0[5]) + > (data_out[5])); ># 246 "numpy/core/src/multiarray/einsum.c.src" > > data_out[6] = ((data0[6]) + > (data_out[6])); ># 246 "numpy/core/src/multiarray/einsum.c.src" > > data_out[7] = ((data0[7]) + > (data_out[7])); ># 258 "numpy/core/src/multiarray/einsum.c.src" > data0 += 8; > data_out += 8; > } > > > goto finish_after_unrolled_loop; >} ># 1568 "numpy/core/src/multiarray/einsum.c.src" >static void >double_sum_of_products_contig_outstride0_one(int nop, char **dataptr, > npy_intp *strides, npy_intp count) >{ > > > > > npy_double accum = 0; > npy_double *data0 = (npy_double *)dataptr[0]; > > > > > > __v2df a, accum_sse = _mm_setzero_pd(); > > > > ; > > > >finish_after_unrolled_loop: > switch (count) { ># 1051 "numpy/core/src/multiarray/einsum.c.src" > case 6+1: > > accum += (data0[6]); ># 1051 "numpy/core/src/multiarray/einsum.c.src" > case 5+1: > > accum += (data0[5]); ># 1051 "numpy/core/src/multiarray/einsum.c.src" > case 4+1: > > accum += (data0[4]); ># 1051 "numpy/core/src/multiarray/einsum.c.src" > case 3+1: > > accum += (data0[3]); ># 1051 "numpy/core/src/multiarray/einsum.c.src" > case 2+1: > > accum += (data0[2]); ># 1051 "numpy/core/src/multiarray/einsum.c.src" > case 1+1: > > accum += (data0[1]); ># 1051 "numpy/core/src/multiarray/einsum.c.src" > case 0+1: > > accum += (data0[0]); > > > > > > case 0: > > > > > *((npy_double *)dataptr[1]) = (accum + > (*((npy_double *)dataptr[1]))); > > return; > } ># 1108 "numpy/core/src/multiarray/einsum.c.src" > if (((((npy_intp)data0)&0xf) == 0)) { > > while (count >= 8) { > count -= 8; > > __builtin_prefetch ((data0 + 512), 0, (_MM_HINT_T0)); ># 1113 "numpy/core/src/multiarray/einsum.c.src" > > > > > accum_sse = _mm_add_pd(accum_sse, _mm_load_pd(data0+0)); ># 1113 "numpy/core/src/multiarray/einsum.c.src" > > > > > accum_sse = _mm_add_pd(accum_sse, _mm_load_pd(data0+2)); ># 1113 "numpy/core/src/multiarray/einsum.c.src" > > > > > accum_sse = _mm_add_pd(accum_sse, _mm_load_pd(data0+4)); ># 1113 "numpy/core/src/multiarray/einsum.c.src" > > > > > accum_sse = _mm_add_pd(accum_sse, _mm_load_pd(data0+6)); > > data0 += 8; > } > > > a = ((__v2df)__builtin_ia32_shufpd ((__v2df)accum_sse, (__v2df)accum_sse, ((((0) << 1) | (1))))); > accum_sse = _mm_add_pd(a, accum_sse); > _mm_store_sd(&accum, accum_sse); > > > goto finish_after_unrolled_loop; > } > > > > while (count >= 8) { > count -= 8; ># 1154 "numpy/core/src/multiarray/einsum.c.src" > __builtin_prefetch ((data0 + 512), 0, (_MM_HINT_T0)); ># 1154 "numpy/core/src/multiarray/einsum.c.src" > > > > > accum_sse = _mm_add_pd(accum_sse, _mm_loadu_pd(data0+0)); ># 1154 "numpy/core/src/multiarray/einsum.c.src" > > > > > accum_sse = _mm_add_pd(accum_sse, _mm_loadu_pd(data0+2)); ># 1154 "numpy/core/src/multiarray/einsum.c.src" > > > > > accum_sse = _mm_add_pd(accum_sse, _mm_loadu_pd(data0+4)); ># 1154 "numpy/core/src/multiarray/einsum.c.src" > > > > > accum_sse = _mm_add_pd(accum_sse, _mm_loadu_pd(data0+6)); ># 1228 "numpy/core/src/multiarray/einsum.c.src" > data0 += 8; > > > > } ># 1243 "numpy/core/src/multiarray/einsum.c.src" > a = ((__v2df)__builtin_ia32_shufpd ((__v2df)accum_sse, (__v2df)accum_sse, ((((0) << 1) | (1))))); > accum_sse = _mm_add_pd(a, accum_sse); > _mm_store_sd(&accum, accum_sse); > > > > goto finish_after_unrolled_loop; >} > > > >static void >double_sum_of_products_outstride0_one(int nop, char **dataptr, > npy_intp *strides, npy_intp count) >{ > > > > npy_double accum = 0; > > > > char *data0 = dataptr[0]; > npy_intp stride0 = strides[0]; ># 1277 "numpy/core/src/multiarray/einsum.c.src" > ; > > > while (count--) { > > > accum += (*(npy_double *)data0); > data0 += stride0; ># 1338 "numpy/core/src/multiarray/einsum.c.src" > } ># 1350 "numpy/core/src/multiarray/einsum.c.src" > *((npy_double *)dataptr[1]) = (accum + > (*((npy_double *)dataptr[1]))); > > > > > > >} ># 107 "numpy/core/src/multiarray/einsum.c.src" >static void >double_sum_of_products_two(int nop, char **dataptr, > npy_intp *strides, npy_intp count) >{ > > char *data0 = dataptr[0]; > npy_intp stride0 = strides[0]; > > > char *data1 = dataptr[1]; > npy_intp stride1 = strides[1]; > > > > > > > char *data_out = dataptr[2]; > npy_intp stride_out = strides[2]; > > > ; > > while (count--) { > > > > > > > > *(npy_double *)data_out = ((*(npy_double *)data0) * > (*(npy_double *)data1) + > (*(npy_double *)data_out)); > data0 += stride0; > data1 += stride1; > data_out += stride_out; ># 201 "numpy/core/src/multiarray/einsum.c.src" > } >} ># 439 "numpy/core/src/multiarray/einsum.c.src" >static void >double_sum_of_products_contig_two(int nop, char **dataptr, > npy_intp *(__NPY_UNUSED_TAGGEDstrides) __attribute__ ((__unused__)), npy_intp count) >{ > npy_double *data0 = (npy_double *)dataptr[0]; > npy_double *data1 = (npy_double *)dataptr[1]; > npy_double *data_out = (npy_double *)dataptr[2]; > > > > > > ; > > > >finish_after_unrolled_loop: > switch (count) { ># 289 "numpy/core/src/multiarray/einsum.c.src" > case 6+1: > data_out[6] = ((data0[6]) * > (data1[6]) + > (data_out[6])); ># 289 "numpy/core/src/multiarray/einsum.c.src" > case 5+1: > data_out[5] = ((data0[5]) * > (data1[5]) + > (data_out[5])); ># 289 "numpy/core/src/multiarray/einsum.c.src" > case 4+1: > data_out[4] = ((data0[4]) * > (data1[4]) + > (data_out[4])); ># 289 "numpy/core/src/multiarray/einsum.c.src" > case 3+1: > data_out[3] = ((data0[3]) * > (data1[3]) + > (data_out[3])); ># 289 "numpy/core/src/multiarray/einsum.c.src" > case 2+1: > data_out[2] = ((data0[2]) * > (data1[2]) + > (data_out[2])); ># 289 "numpy/core/src/multiarray/einsum.c.src" > case 1+1: > data_out[1] = ((data0[1]) * > (data1[1]) + > (data_out[1])); ># 289 "numpy/core/src/multiarray/einsum.c.src" > case 0+1: > data_out[0] = ((data0[0]) * > (data1[0]) + > (data_out[0])); > > case 0: > return; > } ># 327 "numpy/core/src/multiarray/einsum.c.src" > while (count >= 8) { > count -= 8; ># 339 "numpy/core/src/multiarray/einsum.c.src" > data_out[0] = ((data0[0]) * > (data1[0]) + > (data_out[0])); ># 339 "numpy/core/src/multiarray/einsum.c.src" > data_out[1] = ((data0[1]) * > (data1[1]) + > (data_out[1])); ># 339 "numpy/core/src/multiarray/einsum.c.src" > data_out[2] = ((data0[2]) * > (data1[2]) + > (data_out[2])); ># 339 "numpy/core/src/multiarray/einsum.c.src" > data_out[3] = ((data0[3]) * > (data1[3]) + > (data_out[3])); ># 339 "numpy/core/src/multiarray/einsum.c.src" > data_out[4] = ((data0[4]) * > (data1[4]) + > (data_out[4])); ># 339 "numpy/core/src/multiarray/einsum.c.src" > data_out[5] = ((data0[5]) * > (data1[5]) + > (data_out[5])); ># 339 "numpy/core/src/multiarray/einsum.c.src" > data_out[6] = ((data0[6]) * > (data1[6]) + > (data_out[6])); ># 339 "numpy/core/src/multiarray/einsum.c.src" > data_out[7] = ((data0[7]) * > (data1[7]) + > (data_out[7])); > > > data0 += 8; > data1 += 8; > data_out += 8; > } > > > goto finish_after_unrolled_loop; >} > > >static void >double_sum_of_products_stride0_contig_outcontig_two(int nop, char **dataptr, > npy_intp *(__NPY_UNUSED_TAGGEDstrides) __attribute__ ((__unused__)), npy_intp count) >{ > npy_double value0 = (*(npy_double *)dataptr[0]); > npy_double *data1 = (npy_double *)dataptr[1]; > npy_double *data_out = (npy_double *)dataptr[2]; > > > > > __v2df a, b, value0_sse; > > > ; > > > >finish_after_unrolled_loop: > switch (count) { ># 377 "numpy/core/src/multiarray/einsum.c.src" > case 6+1: > data_out[6] = (value0 * > (data1[6]) + > (data_out[6])); ># 377 "numpy/core/src/multiarray/einsum.c.src" > case 5+1: > data_out[5] = (value0 * > (data1[5]) + > (data_out[5])); ># 377 "numpy/core/src/multiarray/einsum.c.src" > case 4+1: > data_out[4] = (value0 * > (data1[4]) + > (data_out[4])); ># 377 "numpy/core/src/multiarray/einsum.c.src" > case 3+1: > data_out[3] = (value0 * > (data1[3]) + > (data_out[3])); ># 377 "numpy/core/src/multiarray/einsum.c.src" > case 2+1: > data_out[2] = (value0 * > (data1[2]) + > (data_out[2])); ># 377 "numpy/core/src/multiarray/einsum.c.src" > case 1+1: > data_out[1] = (value0 * > (data1[1]) + > (data_out[1])); ># 377 "numpy/core/src/multiarray/einsum.c.src" > case 0+1: > data_out[0] = (value0 * > (data1[0]) + > (data_out[0])); > > case 0: > return; > } ># 418 "numpy/core/src/multiarray/einsum.c.src" > value0_sse = _mm_set1_pd(value0); > > > if (((((npy_intp)data1)&0xf) == 0) && ((((npy_intp)data_out)&0xf) == 0)) { > > while (count >= 8) { > count -= 8; ># 426 "numpy/core/src/multiarray/einsum.c.src" > a = _mm_mul_pd(value0_sse, _mm_load_pd(data1+0)); > b = _mm_add_pd(a, _mm_load_pd(data_out+0)); > _mm_store_pd(data_out+0, b); ># 426 "numpy/core/src/multiarray/einsum.c.src" > a = _mm_mul_pd(value0_sse, _mm_load_pd(data1+2)); > b = _mm_add_pd(a, _mm_load_pd(data_out+2)); > _mm_store_pd(data_out+2, b); ># 426 "numpy/core/src/multiarray/einsum.c.src" > a = _mm_mul_pd(value0_sse, _mm_load_pd(data1+4)); > b = _mm_add_pd(a, _mm_load_pd(data_out+4)); > _mm_store_pd(data_out+4, b); ># 426 "numpy/core/src/multiarray/einsum.c.src" > a = _mm_mul_pd(value0_sse, _mm_load_pd(data1+6)); > b = _mm_add_pd(a, _mm_load_pd(data_out+6)); > _mm_store_pd(data_out+6, b); > > data1 += 8; > data_out += 8; > } > > > if (count > 0) { > goto finish_after_unrolled_loop; > } > else { > return; > } > } > > > > while (count >= 8) { > count -= 8; ># 460 "numpy/core/src/multiarray/einsum.c.src" > a = _mm_mul_pd(value0_sse, _mm_loadu_pd(data1+0)); > b = _mm_add_pd(a, _mm_loadu_pd(data_out+0)); > _mm_storeu_pd(data_out+0, b); ># 460 "numpy/core/src/multiarray/einsum.c.src" > a = _mm_mul_pd(value0_sse, _mm_loadu_pd(data1+2)); > b = _mm_add_pd(a, _mm_loadu_pd(data_out+2)); > _mm_storeu_pd(data_out+2, b); ># 460 "numpy/core/src/multiarray/einsum.c.src" > a = _mm_mul_pd(value0_sse, _mm_loadu_pd(data1+4)); > b = _mm_add_pd(a, _mm_loadu_pd(data_out+4)); > _mm_storeu_pd(data_out+4, b); ># 460 "numpy/core/src/multiarray/einsum.c.src" > a = _mm_mul_pd(value0_sse, _mm_loadu_pd(data1+6)); > b = _mm_add_pd(a, _mm_loadu_pd(data_out+6)); > _mm_storeu_pd(data_out+6, b); ># 506 "numpy/core/src/multiarray/einsum.c.src" > data1 += 8; > data_out += 8; > } > > > if (count > 0) { > goto finish_after_unrolled_loop; > } >} > >static void >double_sum_of_products_contig_stride0_outcontig_two(int nop, char **dataptr, > npy_intp *(__NPY_UNUSED_TAGGEDstrides) __attribute__ ((__unused__)), npy_intp count) >{ > npy_double *data0 = (npy_double *)dataptr[0]; > npy_double value1 = (*(npy_double *)dataptr[1]); > npy_double *data_out = (npy_double *)dataptr[2]; > > > > > > ; > > > >finish_after_unrolled_loop: > switch (count) { ># 504 "numpy/core/src/multiarray/einsum.c.src" > case 6+1: > data_out[6] = ((data0[6])* > value1 + > (data_out[6])); ># 504 "numpy/core/src/multiarray/einsum.c.src" > case 5+1: > data_out[5] = ((data0[5])* > value1 + > (data_out[5])); ># 504 "numpy/core/src/multiarray/einsum.c.src" > case 4+1: > data_out[4] = ((data0[4])* > value1 + > (data_out[4])); ># 504 "numpy/core/src/multiarray/einsum.c.src" > case 3+1: > data_out[3] = ((data0[3])* > value1 + > (data_out[3])); ># 504 "numpy/core/src/multiarray/einsum.c.src" > case 2+1: > data_out[2] = ((data0[2])* > value1 + > (data_out[2])); ># 504 "numpy/core/src/multiarray/einsum.c.src" > case 1+1: > data_out[1] = ((data0[1])* > value1 + > (data_out[1])); ># 504 "numpy/core/src/multiarray/einsum.c.src" > case 0+1: > data_out[0] = ((data0[0])* > value1 + > (data_out[0])); > > case 0: > return; > } ># 542 "numpy/core/src/multiarray/einsum.c.src" > while (count >= 8) { > count -= 8; ># 554 "numpy/core/src/multiarray/einsum.c.src" > data_out[0] = ((data0[0])* > value1 + > (data_out[0])); ># 554 "numpy/core/src/multiarray/einsum.c.src" > data_out[1] = ((data0[1])* > value1 + > (data_out[1])); ># 554 "numpy/core/src/multiarray/einsum.c.src" > data_out[2] = ((data0[2])* > value1 + > (data_out[2])); ># 554 "numpy/core/src/multiarray/einsum.c.src" > data_out[3] = ((data0[3])* > value1 + > (data_out[3])); ># 554 "numpy/core/src/multiarray/einsum.c.src" > data_out[4] = ((data0[4])* > value1 + > (data_out[4])); ># 554 "numpy/core/src/multiarray/einsum.c.src" > data_out[5] = ((data0[5])* > value1 + > (data_out[5])); ># 554 "numpy/core/src/multiarray/einsum.c.src" > data_out[6] = ((data0[6])* > value1 + > (data_out[6])); ># 554 "numpy/core/src/multiarray/einsum.c.src" > data_out[7] = ((data0[7])* > value1 + > (data_out[7])); > > > data0 += 8; > data_out += 8; > } > > > goto finish_after_unrolled_loop; >} > >static void >double_sum_of_products_contig_contig_outstride0_two(int nop, char **dataptr, > npy_intp *(__NPY_UNUSED_TAGGEDstrides) __attribute__ ((__unused__)), npy_intp count) >{ > npy_double *data0 = (npy_double *)dataptr[0]; > npy_double *data1 = (npy_double *)dataptr[1]; > npy_double accum = 0; > > > > > __v2df a, accum_sse = _mm_setzero_pd(); > > > ; > > > >finish_after_unrolled_loop: > switch (count) { ># 590 "numpy/core/src/multiarray/einsum.c.src" > case 6+1: > accum += (data0[6]) * (data1[6]); ># 590 "numpy/core/src/multiarray/einsum.c.src" > case 5+1: > accum += (data0[5]) * (data1[5]); ># 590 "numpy/core/src/multiarray/einsum.c.src" > case 4+1: > accum += (data0[4]) * (data1[4]); ># 590 "numpy/core/src/multiarray/einsum.c.src" > case 3+1: > accum += (data0[3]) * (data1[3]); ># 590 "numpy/core/src/multiarray/einsum.c.src" > case 2+1: > accum += (data0[2]) * (data1[2]); ># 590 "numpy/core/src/multiarray/einsum.c.src" > case 1+1: > accum += (data0[1]) * (data1[1]); ># 590 "numpy/core/src/multiarray/einsum.c.src" > case 0+1: > accum += (data0[0]) * (data1[0]); > > case 0: > *(npy_double *)dataptr[2] += (accum); > return; > } ># 640 "numpy/core/src/multiarray/einsum.c.src" > if (((((npy_intp)data0)&0xf) == 0) && ((((npy_intp)data1)&0xf) == 0)) { > > while (count >= 8) { > count -= 8; > > __builtin_prefetch ((data0 + 512), 0, (_MM_HINT_T0)); > __builtin_prefetch ((data1 + 512), 0, (_MM_HINT_T0)); ># 645 "numpy/core/src/multiarray/einsum.c.src" > > > > > a = _mm_mul_pd(_mm_load_pd(data0+0), _mm_load_pd(data1+0)); > accum_sse = _mm_add_pd(accum_sse, a); ># 645 "numpy/core/src/multiarray/einsum.c.src" > > > > > a = _mm_mul_pd(_mm_load_pd(data0+2), _mm_load_pd(data1+2)); > accum_sse = _mm_add_pd(accum_sse, a); ># 645 "numpy/core/src/multiarray/einsum.c.src" > > > > > a = _mm_mul_pd(_mm_load_pd(data0+4), _mm_load_pd(data1+4)); > accum_sse = _mm_add_pd(accum_sse, a); ># 645 "numpy/core/src/multiarray/einsum.c.src" > > > > > a = _mm_mul_pd(_mm_load_pd(data0+6), _mm_load_pd(data1+6)); > accum_sse = _mm_add_pd(accum_sse, a); > > data0 += 8; > data1 += 8; > } > > > a = ((__v2df)__builtin_ia32_shufpd ((__v2df)accum_sse, (__v2df)accum_sse, ((((0) << 1) | (1))))); > accum_sse = _mm_add_pd(a, accum_sse); > _mm_store_sd(&accum, accum_sse); > > > goto finish_after_unrolled_loop; > } > > > > while (count >= 8) { > count -= 8; ># 691 "numpy/core/src/multiarray/einsum.c.src" > __builtin_prefetch ((data0 + 512), 0, (_MM_HINT_T0)); > __builtin_prefetch ((data1 + 512), 0, (_MM_HINT_T0)); ># 691 "numpy/core/src/multiarray/einsum.c.src" > > > > > a = _mm_mul_pd(_mm_loadu_pd(data0+0), _mm_loadu_pd(data1+0)); > accum_sse = _mm_add_pd(accum_sse, a); ># 691 "numpy/core/src/multiarray/einsum.c.src" > > > > > a = _mm_mul_pd(_mm_loadu_pd(data0+2), _mm_loadu_pd(data1+2)); > accum_sse = _mm_add_pd(accum_sse, a); ># 691 "numpy/core/src/multiarray/einsum.c.src" > > > > > a = _mm_mul_pd(_mm_loadu_pd(data0+4), _mm_loadu_pd(data1+4)); > accum_sse = _mm_add_pd(accum_sse, a); ># 691 "numpy/core/src/multiarray/einsum.c.src" > > > > > a = _mm_mul_pd(_mm_loadu_pd(data0+6), _mm_loadu_pd(data1+6)); > accum_sse = _mm_add_pd(accum_sse, a); ># 724 "numpy/core/src/multiarray/einsum.c.src" > data0 += 8; > data1 += 8; > } ># 737 "numpy/core/src/multiarray/einsum.c.src" > a = ((__v2df)__builtin_ia32_shufpd ((__v2df)accum_sse, (__v2df)accum_sse, ((((0) << 1) | (1))))); > accum_sse = _mm_add_pd(a, accum_sse); > _mm_store_sd(&accum, accum_sse); > > > > goto finish_after_unrolled_loop; >} > >static void >double_sum_of_products_stride0_contig_outstride0_two(int nop, char **dataptr, > npy_intp *(__NPY_UNUSED_TAGGEDstrides) __attribute__ ((__unused__)), npy_intp count) >{ > npy_double value0 = (*(npy_double *)dataptr[0]); > npy_double *data1 = (npy_double *)dataptr[1]; > npy_double accum = 0; > > > > > > ; > > > >finish_after_unrolled_loop: > switch (count) { ># 748 "numpy/core/src/multiarray/einsum.c.src" > case 6+1: > accum += (data1[6]); ># 748 "numpy/core/src/multiarray/einsum.c.src" > case 5+1: > accum += (data1[5]); ># 748 "numpy/core/src/multiarray/einsum.c.src" > case 4+1: > accum += (data1[4]); ># 748 "numpy/core/src/multiarray/einsum.c.src" > case 3+1: > accum += (data1[3]); ># 748 "numpy/core/src/multiarray/einsum.c.src" > case 2+1: > accum += (data1[2]); ># 748 "numpy/core/src/multiarray/einsum.c.src" > case 1+1: > accum += (data1[1]); ># 748 "numpy/core/src/multiarray/einsum.c.src" > case 0+1: > accum += (data1[0]); > > case 0: > *(npy_double *)dataptr[2] += (value0 * accum); > return; > } ># 795 "numpy/core/src/multiarray/einsum.c.src" > while (count >= 8) { > count -= 8; ># 807 "numpy/core/src/multiarray/einsum.c.src" > accum += (data1[0]); ># 807 "numpy/core/src/multiarray/einsum.c.src" > accum += (data1[1]); ># 807 "numpy/core/src/multiarray/einsum.c.src" > accum += (data1[2]); ># 807 "numpy/core/src/multiarray/einsum.c.src" > accum += (data1[3]); ># 807 "numpy/core/src/multiarray/einsum.c.src" > accum += (data1[4]); ># 807 "numpy/core/src/multiarray/einsum.c.src" > accum += (data1[5]); ># 807 "numpy/core/src/multiarray/einsum.c.src" > accum += (data1[6]); ># 807 "numpy/core/src/multiarray/einsum.c.src" > accum += (data1[7]); > > > data1 += 8; > } ># 823 "numpy/core/src/multiarray/einsum.c.src" > goto finish_after_unrolled_loop; >} > >static void >double_sum_of_products_contig_stride0_outstride0_two(int nop, char **dataptr, > npy_intp *(__NPY_UNUSED_TAGGEDstrides) __attribute__ ((__unused__)), npy_intp count) >{ > npy_double *data0 = (npy_double *)dataptr[0]; > npy_double value1 = (*(npy_double *)dataptr[1]); > npy_double accum = 0; > > > > > > ; > > > >finish_after_unrolled_loop: > switch (count) { ># 847 "numpy/core/src/multiarray/einsum.c.src" > case 6+1: > accum += (data0[6]); ># 847 "numpy/core/src/multiarray/einsum.c.src" > case 5+1: > accum += (data0[5]); ># 847 "numpy/core/src/multiarray/einsum.c.src" > case 4+1: > accum += (data0[4]); ># 847 "numpy/core/src/multiarray/einsum.c.src" > case 3+1: > accum += (data0[3]); ># 847 "numpy/core/src/multiarray/einsum.c.src" > case 2+1: > accum += (data0[2]); ># 847 "numpy/core/src/multiarray/einsum.c.src" > case 1+1: > accum += (data0[1]); ># 847 "numpy/core/src/multiarray/einsum.c.src" > case 0+1: > accum += (data0[0]); > > case 0: > *(npy_double *)dataptr[2] += (accum * value1); > return; > } ># 894 "numpy/core/src/multiarray/einsum.c.src" > while (count >= 8) { > count -= 8; ># 906 "numpy/core/src/multiarray/einsum.c.src" > accum += (data0[0]); ># 906 "numpy/core/src/multiarray/einsum.c.src" > accum += (data0[1]); ># 906 "numpy/core/src/multiarray/einsum.c.src" > accum += (data0[2]); ># 906 "numpy/core/src/multiarray/einsum.c.src" > accum += (data0[3]); ># 906 "numpy/core/src/multiarray/einsum.c.src" > accum += (data0[4]); ># 906 "numpy/core/src/multiarray/einsum.c.src" > accum += (data0[5]); ># 906 "numpy/core/src/multiarray/einsum.c.src" > accum += (data0[6]); ># 906 "numpy/core/src/multiarray/einsum.c.src" > accum += (data0[7]); > > > data0 += 8; > } ># 922 "numpy/core/src/multiarray/einsum.c.src" > goto finish_after_unrolled_loop; >} ># 1455 "numpy/core/src/multiarray/einsum.c.src" >static void >double_sum_of_products_outstride0_two(int nop, char **dataptr, > npy_intp *strides, npy_intp count) >{ > > > > npy_double accum = 0; > > > > char *data0 = dataptr[0]; > npy_intp stride0 = strides[0]; > > > char *data1 = dataptr[1]; > npy_intp stride1 = strides[1]; > > > > > > > ; > > > while (count--) { > > > > > > accum += (*(npy_double *)data0) * > (*(npy_double *)data1); > data0 += stride0; > data1 += stride1; ># 1539 "numpy/core/src/multiarray/einsum.c.src" > } ># 1551 "numpy/core/src/multiarray/einsum.c.src" > *((npy_double *)dataptr[2]) = (accum + > (*((npy_double *)dataptr[2]))); > > > > > > >} ># 107 "numpy/core/src/multiarray/einsum.c.src" >static void >double_sum_of_products_three(int nop, char **dataptr, > npy_intp *strides, npy_intp count) >{ > > char *data0 = dataptr[0]; > npy_intp stride0 = strides[0]; > > > char *data1 = dataptr[1]; > npy_intp stride1 = strides[1]; > > > char *data2 = dataptr[2]; > npy_intp stride2 = strides[2]; > > > char *data_out = dataptr[3]; > npy_intp stride_out = strides[3]; > > > ; > > while (count--) { ># 145 "numpy/core/src/multiarray/einsum.c.src" > *(npy_double *)data_out = ((*(npy_double *)data0) * > (*(npy_double *)data1) * > (*(npy_double *)data2) + > (*(npy_double *)data_out)); > data0 += stride0; > data1 += stride1; > data2 += stride2; > data_out += stride_out; ># 201 "numpy/core/src/multiarray/einsum.c.src" > } >} ># 1542 "numpy/core/src/multiarray/einsum.c.src" >static void >double_sum_of_products_contig_three(int nop, char **dataptr, > npy_intp *(__NPY_UNUSED_TAGGEDstrides) __attribute__ ((__unused__)), npy_intp count) >{ > npy_double *data0 = (npy_double *)dataptr[0]; > npy_double *data1 = (npy_double *)dataptr[1]; > npy_double *data2 = (npy_double *)dataptr[2]; > npy_double *data_out = (npy_double *)dataptr[3]; > > > while (count >= 8) { > count -= 8; ># 943 "numpy/core/src/multiarray/einsum.c.src" > data_out[0] = ((data0[0]) * > (data1[0]) * > (data2[0]) + > (data_out[0])); ># 943 "numpy/core/src/multiarray/einsum.c.src" > data_out[1] = ((data0[1]) * > (data1[1]) * > (data2[1]) + > (data_out[1])); ># 943 "numpy/core/src/multiarray/einsum.c.src" > data_out[2] = ((data0[2]) * > (data1[2]) * > (data2[2]) + > (data_out[2])); ># 943 "numpy/core/src/multiarray/einsum.c.src" > data_out[3] = ((data0[3]) * > (data1[3]) * > (data2[3]) + > (data_out[3])); ># 943 "numpy/core/src/multiarray/einsum.c.src" > data_out[4] = ((data0[4]) * > (data1[4]) * > (data2[4]) + > (data_out[4])); ># 943 "numpy/core/src/multiarray/einsum.c.src" > data_out[5] = ((data0[5]) * > (data1[5]) * > (data2[5]) + > (data_out[5])); ># 943 "numpy/core/src/multiarray/einsum.c.src" > data_out[6] = ((data0[6]) * > (data1[6]) * > (data2[6]) + > (data_out[6])); ># 943 "numpy/core/src/multiarray/einsum.c.src" > data_out[7] = ((data0[7]) * > (data1[7]) * > (data2[7]) + > (data_out[7])); > > data0 += 8; > data1 += 8; > data_out += 8; > } ># 958 "numpy/core/src/multiarray/einsum.c.src" > if (count-- == 0) { > return; > } > data_out[0] = ((data0[0]) * > (data1[0]) * > (data2[0]) + > (data_out[0])); ># 958 "numpy/core/src/multiarray/einsum.c.src" > if (count-- == 0) { > return; > } > data_out[1] = ((data0[1]) * > (data1[1]) * > (data2[1]) + > (data_out[1])); ># 958 "numpy/core/src/multiarray/einsum.c.src" > if (count-- == 0) { > return; > } > data_out[2] = ((data0[2]) * > (data1[2]) * > (data2[2]) + > (data_out[2])); ># 958 "numpy/core/src/multiarray/einsum.c.src" > if (count-- == 0) { > return; > } > data_out[3] = ((data0[3]) * > (data1[3]) * > (data2[3]) + > (data_out[3])); ># 958 "numpy/core/src/multiarray/einsum.c.src" > if (count-- == 0) { > return; > } > data_out[4] = ((data0[4]) * > (data1[4]) * > (data2[4]) + > (data_out[4])); ># 958 "numpy/core/src/multiarray/einsum.c.src" > if (count-- == 0) { > return; > } > data_out[5] = ((data0[5]) * > (data1[5]) * > (data2[5]) + > (data_out[5])); ># 958 "numpy/core/src/multiarray/einsum.c.src" > if (count-- == 0) { > return; > } > data_out[6] = ((data0[6]) * > (data1[6]) * > (data2[6]) + > (data_out[6])); ># 958 "numpy/core/src/multiarray/einsum.c.src" > if (count-- == 0) { > return; > } > data_out[7] = ((data0[7]) * > (data1[7]) * > (data2[7]) + > (data_out[7])); > >} ># 1354 "numpy/core/src/multiarray/einsum.c.src" >static void >double_sum_of_products_outstride0_three(int nop, char **dataptr, > npy_intp *strides, npy_intp count) >{ > > > > npy_double accum = 0; > > > > char *data0 = dataptr[0]; > npy_intp stride0 = strides[0]; > > > char *data1 = dataptr[1]; > npy_intp stride1 = strides[1]; > > > char *data2 = dataptr[2]; > npy_intp stride2 = strides[2]; > > > ; > > > while (count--) { ># 1391 "numpy/core/src/multiarray/einsum.c.src" > accum += (*(npy_double *)data0) * > (*(npy_double *)data1) * > (*(npy_double *)data2); > data0 += stride0; > data1 += stride1; > data2 += stride2; ># 1438 "numpy/core/src/multiarray/einsum.c.src" > } ># 1450 "numpy/core/src/multiarray/einsum.c.src" > *((npy_double *)dataptr[3]) = (accum + > (*((npy_double *)dataptr[3]))); > > > > > > >} ># 107 "numpy/core/src/multiarray/einsum.c.src" >static void >double_sum_of_products_any(int nop, char **dataptr, > npy_intp *strides, npy_intp count) >{ ># 128 "numpy/core/src/multiarray/einsum.c.src" > ; > > while (count--) { ># 154 "numpy/core/src/multiarray/einsum.c.src" > npy_double temp = (*(npy_double *)dataptr[0]); > int i; > for (i = 1; i < nop; ++i) { > temp *= (*(npy_double *)dataptr[i]); > } > *(npy_double *)dataptr[nop] = (temp + > (*(npy_double *)dataptr[i])); > for (i = 0; i <= nop; ++i) { > dataptr[i] += strides[i]; > } ># 201 "numpy/core/src/multiarray/einsum.c.src" > } >} ># 1686 "numpy/core/src/multiarray/einsum.c.src" >static void >double_sum_of_products_contig_any(int nop, char **dataptr, > npy_intp *(__NPY_UNUSED_TAGGEDstrides) __attribute__ ((__unused__)), npy_intp count) >{ > ; > > > while (count--) { > > npy_double temp = (*(npy_double *)dataptr[0]); > int i; > for (i = 1; i < nop; ++i) { > temp *= (*(npy_double *)dataptr[i]); > } > *(npy_double *)dataptr[nop] = (temp + > (*(npy_double *)dataptr[i])); > for (i = 0; i <= nop; ++i) { > dataptr[i] += sizeof(npy_double); > } ># 1732 "numpy/core/src/multiarray/einsum.c.src" > } >} ># 2070 "numpy/core/src/multiarray/einsum.c.src" >static void >double_sum_of_products_outstride0_any(int nop, char **dataptr, > npy_intp *strides, npy_intp count) >{ > > > > npy_double accum = 0; ># 2093 "numpy/core/src/multiarray/einsum.c.src" > ; > > > while (count--) { ># 2114 "numpy/core/src/multiarray/einsum.c.src" > npy_double temp = (*(npy_double *)dataptr[0]); > int i; > for (i = 1; i < nop; ++i) { > temp *= (*(npy_double *)dataptr[i]); > } > accum += temp; > for (i = 0; i < nop; ++i) { > dataptr[i] += strides[i]; > } ># 2154 "numpy/core/src/multiarray/einsum.c.src" > } ># 2169 "numpy/core/src/multiarray/einsum.c.src" > *((npy_double *)dataptr[nop]) = (accum + > (*((npy_double *)dataptr[nop]))); > > > >} ># 102 "numpy/core/src/multiarray/einsum.c.src" ># 107 "numpy/core/src/multiarray/einsum.c.src" >static void >longdouble_sum_of_products_one(int nop, char **dataptr, > npy_intp *strides, npy_intp count) >{ > > char *data0 = dataptr[0]; > npy_intp stride0 = strides[0]; ># 124 "numpy/core/src/multiarray/einsum.c.src" > char *data_out = dataptr[1]; > npy_intp stride_out = strides[1]; > > > ; > > while (count--) { > > > *(npy_longdouble *)data_out = ((*(npy_longdouble *)data0) + > (*(npy_longdouble *)data_out)); > data0 += stride0; > data_out += stride_out; ># 201 "numpy/core/src/multiarray/einsum.c.src" > } >} > > > >static void >longdouble_sum_of_products_contig_one(int nop, char **dataptr, > npy_intp *(__NPY_UNUSED_TAGGEDstrides) __attribute__ ((__unused__)), npy_intp count) >{ > npy_longdouble *data0 = (npy_longdouble *)dataptr[0]; > npy_longdouble *data_out = (npy_longdouble *)dataptr[1]; > > ; > > > >finish_after_unrolled_loop: > switch (count) { ># 222 "numpy/core/src/multiarray/einsum.c.src" > case 6+1: > > data_out[6] = ((data0[6]) + > (data_out[6])); ># 222 "numpy/core/src/multiarray/einsum.c.src" > case 5+1: > > data_out[5] = ((data0[5]) + > (data_out[5])); ># 222 "numpy/core/src/multiarray/einsum.c.src" > case 4+1: > > data_out[4] = ((data0[4]) + > (data_out[4])); ># 222 "numpy/core/src/multiarray/einsum.c.src" > case 3+1: > > data_out[3] = ((data0[3]) + > (data_out[3])); ># 222 "numpy/core/src/multiarray/einsum.c.src" > case 2+1: > > data_out[2] = ((data0[2]) + > (data_out[2])); ># 222 "numpy/core/src/multiarray/einsum.c.src" > case 1+1: > > data_out[1] = ((data0[1]) + > (data_out[1])); ># 222 "numpy/core/src/multiarray/einsum.c.src" > case 0+1: > > data_out[0] = ((data0[0]) + > (data_out[0])); ># 235 "numpy/core/src/multiarray/einsum.c.src" > case 0: > return; > } > > > while (count >= 8) { > count -= 8; ># 246 "numpy/core/src/multiarray/einsum.c.src" > > data_out[0] = ((data0[0]) + > (data_out[0])); ># 246 "numpy/core/src/multiarray/einsum.c.src" > > data_out[1] = ((data0[1]) + > (data_out[1])); ># 246 "numpy/core/src/multiarray/einsum.c.src" > > data_out[2] = ((data0[2]) + > (data_out[2])); ># 246 "numpy/core/src/multiarray/einsum.c.src" > > data_out[3] = ((data0[3]) + > (data_out[3])); ># 246 "numpy/core/src/multiarray/einsum.c.src" > > data_out[4] = ((data0[4]) + > (data_out[4])); ># 246 "numpy/core/src/multiarray/einsum.c.src" > > data_out[5] = ((data0[5]) + > (data_out[5])); ># 246 "numpy/core/src/multiarray/einsum.c.src" > > data_out[6] = ((data0[6]) + > (data_out[6])); ># 246 "numpy/core/src/multiarray/einsum.c.src" > > data_out[7] = ((data0[7]) + > (data_out[7])); ># 258 "numpy/core/src/multiarray/einsum.c.src" > data0 += 8; > data_out += 8; > } > > > goto finish_after_unrolled_loop; >} ># 1568 "numpy/core/src/multiarray/einsum.c.src" >static void >longdouble_sum_of_products_contig_outstride0_one(int nop, char **dataptr, > npy_intp *strides, npy_intp count) >{ > > > > > npy_longdouble accum = 0; > npy_longdouble *data0 = (npy_longdouble *)dataptr[0]; ># 1587 "numpy/core/src/multiarray/einsum.c.src" > ; > > > >finish_after_unrolled_loop: > switch (count) { ># 1051 "numpy/core/src/multiarray/einsum.c.src" > case 6+1: > > accum += (data0[6]); ># 1051 "numpy/core/src/multiarray/einsum.c.src" > case 5+1: > > accum += (data0[5]); ># 1051 "numpy/core/src/multiarray/einsum.c.src" > case 4+1: > > accum += (data0[4]); ># 1051 "numpy/core/src/multiarray/einsum.c.src" > case 3+1: > > accum += (data0[3]); ># 1051 "numpy/core/src/multiarray/einsum.c.src" > case 2+1: > > accum += (data0[2]); ># 1051 "numpy/core/src/multiarray/einsum.c.src" > case 1+1: > > accum += (data0[1]); ># 1051 "numpy/core/src/multiarray/einsum.c.src" > case 0+1: > > accum += (data0[0]); > > > > > > case 0: > > > > > *((npy_longdouble *)dataptr[1]) = (accum + > (*((npy_longdouble *)dataptr[1]))); > > return; > } ># 1157 "numpy/core/src/multiarray/einsum.c.src" > while (count >= 8) { > count -= 8; ># 1164 "numpy/core/src/multiarray/einsum.c.src" > > accum += (data0[0]); ># 1164 "numpy/core/src/multiarray/einsum.c.src" > > accum += (data0[1]); ># 1164 "numpy/core/src/multiarray/einsum.c.src" > > accum += (data0[2]); ># 1164 "numpy/core/src/multiarray/einsum.c.src" > > accum += (data0[3]); ># 1164 "numpy/core/src/multiarray/einsum.c.src" > > accum += (data0[4]); ># 1164 "numpy/core/src/multiarray/einsum.c.src" > > accum += (data0[5]); ># 1164 "numpy/core/src/multiarray/einsum.c.src" > > accum += (data0[6]); ># 1164 "numpy/core/src/multiarray/einsum.c.src" > > accum += (data0[7]); ># 1174 "numpy/core/src/multiarray/einsum.c.src" > data0 += 8; > > > > } ># 1195 "numpy/core/src/multiarray/einsum.c.src" > goto finish_after_unrolled_loop; >} > > > >static void >longdouble_sum_of_products_outstride0_one(int nop, char **dataptr, > npy_intp *strides, npy_intp count) >{ > > > > npy_longdouble accum = 0; > > > > char *data0 = dataptr[0]; > npy_intp stride0 = strides[0]; ># 1223 "numpy/core/src/multiarray/einsum.c.src" > ; > > > while (count--) { > > > accum += (*(npy_longdouble *)data0); > data0 += stride0; ># 1284 "numpy/core/src/multiarray/einsum.c.src" > } ># 1296 "numpy/core/src/multiarray/einsum.c.src" > *((npy_longdouble *)dataptr[1]) = (accum + > (*((npy_longdouble *)dataptr[1]))); > > > > > > >} ># 107 "numpy/core/src/multiarray/einsum.c.src" >static void >longdouble_sum_of_products_two(int nop, char **dataptr, > npy_intp *strides, npy_intp count) >{ > > char *data0 = dataptr[0]; > npy_intp stride0 = strides[0]; > > > char *data1 = dataptr[1]; > npy_intp stride1 = strides[1]; > > > > > > > char *data_out = dataptr[2]; > npy_intp stride_out = strides[2]; > > > ; > > while (count--) { > > > > > > > > *(npy_longdouble *)data_out = ((*(npy_longdouble *)data0) * > (*(npy_longdouble *)data1) + > (*(npy_longdouble *)data_out)); > data0 += stride0; > data1 += stride1; > data_out += stride_out; ># 201 "numpy/core/src/multiarray/einsum.c.src" > } >} ># 439 "numpy/core/src/multiarray/einsum.c.src" >static void >longdouble_sum_of_products_contig_two(int nop, char **dataptr, > npy_intp *(__NPY_UNUSED_TAGGEDstrides) __attribute__ ((__unused__)), npy_intp count) >{ > npy_longdouble *data0 = (npy_longdouble *)dataptr[0]; > npy_longdouble *data1 = (npy_longdouble *)dataptr[1]; > npy_longdouble *data_out = (npy_longdouble *)dataptr[2]; > > > > > > ; > > > >finish_after_unrolled_loop: > switch (count) { ># 289 "numpy/core/src/multiarray/einsum.c.src" > case 6+1: > data_out[6] = ((data0[6]) * > (data1[6]) + > (data_out[6])); ># 289 "numpy/core/src/multiarray/einsum.c.src" > case 5+1: > data_out[5] = ((data0[5]) * > (data1[5]) + > (data_out[5])); ># 289 "numpy/core/src/multiarray/einsum.c.src" > case 4+1: > data_out[4] = ((data0[4]) * > (data1[4]) + > (data_out[4])); ># 289 "numpy/core/src/multiarray/einsum.c.src" > case 3+1: > data_out[3] = ((data0[3]) * > (data1[3]) + > (data_out[3])); ># 289 "numpy/core/src/multiarray/einsum.c.src" > case 2+1: > data_out[2] = ((data0[2]) * > (data1[2]) + > (data_out[2])); ># 289 "numpy/core/src/multiarray/einsum.c.src" > case 1+1: > data_out[1] = ((data0[1]) * > (data1[1]) + > (data_out[1])); ># 289 "numpy/core/src/multiarray/einsum.c.src" > case 0+1: > data_out[0] = ((data0[0]) * > (data1[0]) + > (data_out[0])); > > case 0: > return; > } ># 327 "numpy/core/src/multiarray/einsum.c.src" > while (count >= 8) { > count -= 8; ># 339 "numpy/core/src/multiarray/einsum.c.src" > data_out[0] = ((data0[0]) * > (data1[0]) + > (data_out[0])); ># 339 "numpy/core/src/multiarray/einsum.c.src" > data_out[1] = ((data0[1]) * > (data1[1]) + > (data_out[1])); ># 339 "numpy/core/src/multiarray/einsum.c.src" > data_out[2] = ((data0[2]) * > (data1[2]) + > (data_out[2])); ># 339 "numpy/core/src/multiarray/einsum.c.src" > data_out[3] = ((data0[3]) * > (data1[3]) + > (data_out[3])); ># 339 "numpy/core/src/multiarray/einsum.c.src" > data_out[4] = ((data0[4]) * > (data1[4]) + > (data_out[4])); ># 339 "numpy/core/src/multiarray/einsum.c.src" > data_out[5] = ((data0[5]) * > (data1[5]) + > (data_out[5])); ># 339 "numpy/core/src/multiarray/einsum.c.src" > data_out[6] = ((data0[6]) * > (data1[6]) + > (data_out[6])); ># 339 "numpy/core/src/multiarray/einsum.c.src" > data_out[7] = ((data0[7]) * > (data1[7]) + > (data_out[7])); > > > data0 += 8; > data1 += 8; > data_out += 8; > } > > > goto finish_after_unrolled_loop; >} > > >static void >longdouble_sum_of_products_stride0_contig_outcontig_two(int nop, char **dataptr, > npy_intp *(__NPY_UNUSED_TAGGEDstrides) __attribute__ ((__unused__)), npy_intp count) >{ > npy_longdouble value0 = (*(npy_longdouble *)dataptr[0]); > npy_longdouble *data1 = (npy_longdouble *)dataptr[1]; > npy_longdouble *data_out = (npy_longdouble *)dataptr[2]; > > > > > > > > ; > > > >finish_after_unrolled_loop: > switch (count) { ># 377 "numpy/core/src/multiarray/einsum.c.src" > case 6+1: > data_out[6] = (value0 * > (data1[6]) + > (data_out[6])); ># 377 "numpy/core/src/multiarray/einsum.c.src" > case 5+1: > data_out[5] = (value0 * > (data1[5]) + > (data_out[5])); ># 377 "numpy/core/src/multiarray/einsum.c.src" > case 4+1: > data_out[4] = (value0 * > (data1[4]) + > (data_out[4])); ># 377 "numpy/core/src/multiarray/einsum.c.src" > case 3+1: > data_out[3] = (value0 * > (data1[3]) + > (data_out[3])); ># 377 "numpy/core/src/multiarray/einsum.c.src" > case 2+1: > data_out[2] = (value0 * > (data1[2]) + > (data_out[2])); ># 377 "numpy/core/src/multiarray/einsum.c.src" > case 1+1: > data_out[1] = (value0 * > (data1[1]) + > (data_out[1])); ># 377 "numpy/core/src/multiarray/einsum.c.src" > case 0+1: > data_out[0] = (value0 * > (data1[0]) + > (data_out[0])); > > case 0: > return; > } ># 461 "numpy/core/src/multiarray/einsum.c.src" > while (count >= 8) { > count -= 8; ># 468 "numpy/core/src/multiarray/einsum.c.src" > data_out[0] = (value0 * > (data1[0]) + > (data_out[0])); ># 468 "numpy/core/src/multiarray/einsum.c.src" > data_out[1] = (value0 * > (data1[1]) + > (data_out[1])); ># 468 "numpy/core/src/multiarray/einsum.c.src" > data_out[2] = (value0 * > (data1[2]) + > (data_out[2])); ># 468 "numpy/core/src/multiarray/einsum.c.src" > data_out[3] = (value0 * > (data1[3]) + > (data_out[3])); ># 468 "numpy/core/src/multiarray/einsum.c.src" > data_out[4] = (value0 * > (data1[4]) + > (data_out[4])); ># 468 "numpy/core/src/multiarray/einsum.c.src" > data_out[5] = (value0 * > (data1[5]) + > (data_out[5])); ># 468 "numpy/core/src/multiarray/einsum.c.src" > data_out[6] = (value0 * > (data1[6]) + > (data_out[6])); ># 468 "numpy/core/src/multiarray/einsum.c.src" > data_out[7] = (value0 * > (data1[7]) + > (data_out[7])); > > > data1 += 8; > data_out += 8; > } > > > if (count > 0) { > goto finish_after_unrolled_loop; > } >} > >static void >longdouble_sum_of_products_contig_stride0_outcontig_two(int nop, char **dataptr, > npy_intp *(__NPY_UNUSED_TAGGEDstrides) __attribute__ ((__unused__)), npy_intp count) >{ > npy_longdouble *data0 = (npy_longdouble *)dataptr[0]; > npy_longdouble value1 = (*(npy_longdouble *)dataptr[1]); > npy_longdouble *data_out = (npy_longdouble *)dataptr[2]; > > > > > > ; > > > >finish_after_unrolled_loop: > switch (count) { ># 504 "numpy/core/src/multiarray/einsum.c.src" > case 6+1: > data_out[6] = ((data0[6])* > value1 + > (data_out[6])); ># 504 "numpy/core/src/multiarray/einsum.c.src" > case 5+1: > data_out[5] = ((data0[5])* > value1 + > (data_out[5])); ># 504 "numpy/core/src/multiarray/einsum.c.src" > case 4+1: > data_out[4] = ((data0[4])* > value1 + > (data_out[4])); ># 504 "numpy/core/src/multiarray/einsum.c.src" > case 3+1: > data_out[3] = ((data0[3])* > value1 + > (data_out[3])); ># 504 "numpy/core/src/multiarray/einsum.c.src" > case 2+1: > data_out[2] = ((data0[2])* > value1 + > (data_out[2])); ># 504 "numpy/core/src/multiarray/einsum.c.src" > case 1+1: > data_out[1] = ((data0[1])* > value1 + > (data_out[1])); ># 504 "numpy/core/src/multiarray/einsum.c.src" > case 0+1: > data_out[0] = ((data0[0])* > value1 + > (data_out[0])); > > case 0: > return; > } ># 542 "numpy/core/src/multiarray/einsum.c.src" > while (count >= 8) { > count -= 8; ># 554 "numpy/core/src/multiarray/einsum.c.src" > data_out[0] = ((data0[0])* > value1 + > (data_out[0])); ># 554 "numpy/core/src/multiarray/einsum.c.src" > data_out[1] = ((data0[1])* > value1 + > (data_out[1])); ># 554 "numpy/core/src/multiarray/einsum.c.src" > data_out[2] = ((data0[2])* > value1 + > (data_out[2])); ># 554 "numpy/core/src/multiarray/einsum.c.src" > data_out[3] = ((data0[3])* > value1 + > (data_out[3])); ># 554 "numpy/core/src/multiarray/einsum.c.src" > data_out[4] = ((data0[4])* > value1 + > (data_out[4])); ># 554 "numpy/core/src/multiarray/einsum.c.src" > data_out[5] = ((data0[5])* > value1 + > (data_out[5])); ># 554 "numpy/core/src/multiarray/einsum.c.src" > data_out[6] = ((data0[6])* > value1 + > (data_out[6])); ># 554 "numpy/core/src/multiarray/einsum.c.src" > data_out[7] = ((data0[7])* > value1 + > (data_out[7])); > > > data0 += 8; > data_out += 8; > } > > > goto finish_after_unrolled_loop; >} > >static void >longdouble_sum_of_products_contig_contig_outstride0_two(int nop, char **dataptr, > npy_intp *(__NPY_UNUSED_TAGGEDstrides) __attribute__ ((__unused__)), npy_intp count) >{ > npy_longdouble *data0 = (npy_longdouble *)dataptr[0]; > npy_longdouble *data1 = (npy_longdouble *)dataptr[1]; > npy_longdouble accum = 0; > > > > > > > > ; > > > >finish_after_unrolled_loop: > switch (count) { ># 590 "numpy/core/src/multiarray/einsum.c.src" > case 6+1: > accum += (data0[6]) * (data1[6]); ># 590 "numpy/core/src/multiarray/einsum.c.src" > case 5+1: > accum += (data0[5]) * (data1[5]); ># 590 "numpy/core/src/multiarray/einsum.c.src" > case 4+1: > accum += (data0[4]) * (data1[4]); ># 590 "numpy/core/src/multiarray/einsum.c.src" > case 3+1: > accum += (data0[3]) * (data1[3]); ># 590 "numpy/core/src/multiarray/einsum.c.src" > case 2+1: > accum += (data0[2]) * (data1[2]); ># 590 "numpy/core/src/multiarray/einsum.c.src" > case 1+1: > accum += (data0[1]) * (data1[1]); ># 590 "numpy/core/src/multiarray/einsum.c.src" > case 0+1: > accum += (data0[0]) * (data1[0]); > > case 0: > *(npy_longdouble *)dataptr[2] += (accum); > return; > } ># 695 "numpy/core/src/multiarray/einsum.c.src" > while (count >= 8) { > count -= 8; ># 702 "numpy/core/src/multiarray/einsum.c.src" > accum += (data0[0]) * (data1[0]); ># 702 "numpy/core/src/multiarray/einsum.c.src" > accum += (data0[1]) * (data1[1]); ># 702 "numpy/core/src/multiarray/einsum.c.src" > accum += (data0[2]) * (data1[2]); ># 702 "numpy/core/src/multiarray/einsum.c.src" > accum += (data0[3]) * (data1[3]); ># 702 "numpy/core/src/multiarray/einsum.c.src" > accum += (data0[4]) * (data1[4]); ># 702 "numpy/core/src/multiarray/einsum.c.src" > accum += (data0[5]) * (data1[5]); ># 702 "numpy/core/src/multiarray/einsum.c.src" > accum += (data0[6]) * (data1[6]); ># 702 "numpy/core/src/multiarray/einsum.c.src" > accum += (data0[7]) * (data1[7]); > > > data0 += 8; > data1 += 8; > } ># 724 "numpy/core/src/multiarray/einsum.c.src" > goto finish_after_unrolled_loop; >} > >static void >longdouble_sum_of_products_stride0_contig_outstride0_two(int nop, char **dataptr, > npy_intp *(__NPY_UNUSED_TAGGEDstrides) __attribute__ ((__unused__)), npy_intp count) >{ > npy_longdouble value0 = (*(npy_longdouble *)dataptr[0]); > npy_longdouble *data1 = (npy_longdouble *)dataptr[1]; > npy_longdouble accum = 0; > > > > > > ; > > > >finish_after_unrolled_loop: > switch (count) { ># 748 "numpy/core/src/multiarray/einsum.c.src" > case 6+1: > accum += (data1[6]); ># 748 "numpy/core/src/multiarray/einsum.c.src" > case 5+1: > accum += (data1[5]); ># 748 "numpy/core/src/multiarray/einsum.c.src" > case 4+1: > accum += (data1[4]); ># 748 "numpy/core/src/multiarray/einsum.c.src" > case 3+1: > accum += (data1[3]); ># 748 "numpy/core/src/multiarray/einsum.c.src" > case 2+1: > accum += (data1[2]); ># 748 "numpy/core/src/multiarray/einsum.c.src" > case 1+1: > accum += (data1[1]); ># 748 "numpy/core/src/multiarray/einsum.c.src" > case 0+1: > accum += (data1[0]); > > case 0: > *(npy_longdouble *)dataptr[2] += (value0 * accum); > return; > } ># 795 "numpy/core/src/multiarray/einsum.c.src" > while (count >= 8) { > count -= 8; ># 807 "numpy/core/src/multiarray/einsum.c.src" > accum += (data1[0]); ># 807 "numpy/core/src/multiarray/einsum.c.src" > accum += (data1[1]); ># 807 "numpy/core/src/multiarray/einsum.c.src" > accum += (data1[2]); ># 807 "numpy/core/src/multiarray/einsum.c.src" > accum += (data1[3]); ># 807 "numpy/core/src/multiarray/einsum.c.src" > accum += (data1[4]); ># 807 "numpy/core/src/multiarray/einsum.c.src" > accum += (data1[5]); ># 807 "numpy/core/src/multiarray/einsum.c.src" > accum += (data1[6]); ># 807 "numpy/core/src/multiarray/einsum.c.src" > accum += (data1[7]); > > > data1 += 8; > } ># 823 "numpy/core/src/multiarray/einsum.c.src" > goto finish_after_unrolled_loop; >} > >static void >longdouble_sum_of_products_contig_stride0_outstride0_two(int nop, char **dataptr, > npy_intp *(__NPY_UNUSED_TAGGEDstrides) __attribute__ ((__unused__)), npy_intp count) >{ > npy_longdouble *data0 = (npy_longdouble *)dataptr[0]; > npy_longdouble value1 = (*(npy_longdouble *)dataptr[1]); > npy_longdouble accum = 0; > > > > > > ; > > > >finish_after_unrolled_loop: > switch (count) { ># 847 "numpy/core/src/multiarray/einsum.c.src" > case 6+1: > accum += (data0[6]); ># 847 "numpy/core/src/multiarray/einsum.c.src" > case 5+1: > accum += (data0[5]); ># 847 "numpy/core/src/multiarray/einsum.c.src" > case 4+1: > accum += (data0[4]); ># 847 "numpy/core/src/multiarray/einsum.c.src" > case 3+1: > accum += (data0[3]); ># 847 "numpy/core/src/multiarray/einsum.c.src" > case 2+1: > accum += (data0[2]); ># 847 "numpy/core/src/multiarray/einsum.c.src" > case 1+1: > accum += (data0[1]); ># 847 "numpy/core/src/multiarray/einsum.c.src" > case 0+1: > accum += (data0[0]); > > case 0: > *(npy_longdouble *)dataptr[2] += (accum * value1); > return; > } ># 894 "numpy/core/src/multiarray/einsum.c.src" > while (count >= 8) { > count -= 8; ># 906 "numpy/core/src/multiarray/einsum.c.src" > accum += (data0[0]); ># 906 "numpy/core/src/multiarray/einsum.c.src" > accum += (data0[1]); ># 906 "numpy/core/src/multiarray/einsum.c.src" > accum += (data0[2]); ># 906 "numpy/core/src/multiarray/einsum.c.src" > accum += (data0[3]); ># 906 "numpy/core/src/multiarray/einsum.c.src" > accum += (data0[4]); ># 906 "numpy/core/src/multiarray/einsum.c.src" > accum += (data0[5]); ># 906 "numpy/core/src/multiarray/einsum.c.src" > accum += (data0[6]); ># 906 "numpy/core/src/multiarray/einsum.c.src" > accum += (data0[7]); > > > data0 += 8; > } ># 922 "numpy/core/src/multiarray/einsum.c.src" > goto finish_after_unrolled_loop; >} ># 1455 "numpy/core/src/multiarray/einsum.c.src" >static void >longdouble_sum_of_products_outstride0_two(int nop, char **dataptr, > npy_intp *strides, npy_intp count) >{ > > > > npy_longdouble accum = 0; > > > > char *data0 = dataptr[0]; > npy_intp stride0 = strides[0]; > > > char *data1 = dataptr[1]; > npy_intp stride1 = strides[1]; > > > > > > > ; > > > while (count--) { > > > > > > accum += (*(npy_longdouble *)data0) * > (*(npy_longdouble *)data1); > data0 += stride0; > data1 += stride1; ># 1539 "numpy/core/src/multiarray/einsum.c.src" > } ># 1551 "numpy/core/src/multiarray/einsum.c.src" > *((npy_longdouble *)dataptr[2]) = (accum + > (*((npy_longdouble *)dataptr[2]))); > > > > > > >} ># 107 "numpy/core/src/multiarray/einsum.c.src" >static void >longdouble_sum_of_products_three(int nop, char **dataptr, > npy_intp *strides, npy_intp count) >{ > > char *data0 = dataptr[0]; > npy_intp stride0 = strides[0]; > > > char *data1 = dataptr[1]; > npy_intp stride1 = strides[1]; > > > char *data2 = dataptr[2]; > npy_intp stride2 = strides[2]; > > > char *data_out = dataptr[3]; > npy_intp stride_out = strides[3]; > > > ; > > while (count--) { ># 145 "numpy/core/src/multiarray/einsum.c.src" > *(npy_longdouble *)data_out = ((*(npy_longdouble *)data0) * > (*(npy_longdouble *)data1) * > (*(npy_longdouble *)data2) + > (*(npy_longdouble *)data_out)); > data0 += stride0; > data1 += stride1; > data2 += stride2; > data_out += stride_out; ># 201 "numpy/core/src/multiarray/einsum.c.src" > } >} ># 1542 "numpy/core/src/multiarray/einsum.c.src" >static void >longdouble_sum_of_products_contig_three(int nop, char **dataptr, > npy_intp *(__NPY_UNUSED_TAGGEDstrides) __attribute__ ((__unused__)), npy_intp count) >{ > npy_longdouble *data0 = (npy_longdouble *)dataptr[0]; > npy_longdouble *data1 = (npy_longdouble *)dataptr[1]; > npy_longdouble *data2 = (npy_longdouble *)dataptr[2]; > npy_longdouble *data_out = (npy_longdouble *)dataptr[3]; > > > while (count >= 8) { > count -= 8; ># 943 "numpy/core/src/multiarray/einsum.c.src" > data_out[0] = ((data0[0]) * > (data1[0]) * > (data2[0]) + > (data_out[0])); ># 943 "numpy/core/src/multiarray/einsum.c.src" > data_out[1] = ((data0[1]) * > (data1[1]) * > (data2[1]) + > (data_out[1])); ># 943 "numpy/core/src/multiarray/einsum.c.src" > data_out[2] = ((data0[2]) * > (data1[2]) * > (data2[2]) + > (data_out[2])); ># 943 "numpy/core/src/multiarray/einsum.c.src" > data_out[3] = ((data0[3]) * > (data1[3]) * > (data2[3]) + > (data_out[3])); ># 943 "numpy/core/src/multiarray/einsum.c.src" > data_out[4] = ((data0[4]) * > (data1[4]) * > (data2[4]) + > (data_out[4])); ># 943 "numpy/core/src/multiarray/einsum.c.src" > data_out[5] = ((data0[5]) * > (data1[5]) * > (data2[5]) + > (data_out[5])); ># 943 "numpy/core/src/multiarray/einsum.c.src" > data_out[6] = ((data0[6]) * > (data1[6]) * > (data2[6]) + > (data_out[6])); ># 943 "numpy/core/src/multiarray/einsum.c.src" > data_out[7] = ((data0[7]) * > (data1[7]) * > (data2[7]) + > (data_out[7])); > > data0 += 8; > data1 += 8; > data_out += 8; > } ># 958 "numpy/core/src/multiarray/einsum.c.src" > if (count-- == 0) { > return; > } > data_out[0] = ((data0[0]) * > (data1[0]) * > (data2[0]) + > (data_out[0])); ># 958 "numpy/core/src/multiarray/einsum.c.src" > if (count-- == 0) { > return; > } > data_out[1] = ((data0[1]) * > (data1[1]) * > (data2[1]) + > (data_out[1])); ># 958 "numpy/core/src/multiarray/einsum.c.src" > if (count-- == 0) { > return; > } > data_out[2] = ((data0[2]) * > (data1[2]) * > (data2[2]) + > (data_out[2])); ># 958 "numpy/core/src/multiarray/einsum.c.src" > if (count-- == 0) { > return; > } > data_out[3] = ((data0[3]) * > (data1[3]) * > (data2[3]) + > (data_out[3])); ># 958 "numpy/core/src/multiarray/einsum.c.src" > if (count-- == 0) { > return; > } > data_out[4] = ((data0[4]) * > (data1[4]) * > (data2[4]) + > (data_out[4])); ># 958 "numpy/core/src/multiarray/einsum.c.src" > if (count-- == 0) { > return; > } > data_out[5] = ((data0[5]) * > (data1[5]) * > (data2[5]) + > (data_out[5])); ># 958 "numpy/core/src/multiarray/einsum.c.src" > if (count-- == 0) { > return; > } > data_out[6] = ((data0[6]) * > (data1[6]) * > (data2[6]) + > (data_out[6])); ># 958 "numpy/core/src/multiarray/einsum.c.src" > if (count-- == 0) { > return; > } > data_out[7] = ((data0[7]) * > (data1[7]) * > (data2[7]) + > (data_out[7])); > >} ># 1354 "numpy/core/src/multiarray/einsum.c.src" >static void >longdouble_sum_of_products_outstride0_three(int nop, char **dataptr, > npy_intp *strides, npy_intp count) >{ > > > > npy_longdouble accum = 0; > > > > char *data0 = dataptr[0]; > npy_intp stride0 = strides[0]; > > > char *data1 = dataptr[1]; > npy_intp stride1 = strides[1]; > > > char *data2 = dataptr[2]; > npy_intp stride2 = strides[2]; > > > ; > > > while (count--) { ># 1391 "numpy/core/src/multiarray/einsum.c.src" > accum += (*(npy_longdouble *)data0) * > (*(npy_longdouble *)data1) * > (*(npy_longdouble *)data2); > data0 += stride0; > data1 += stride1; > data2 += stride2; ># 1438 "numpy/core/src/multiarray/einsum.c.src" > } ># 1450 "numpy/core/src/multiarray/einsum.c.src" > *((npy_longdouble *)dataptr[3]) = (accum + > (*((npy_longdouble *)dataptr[3]))); > > > > > > >} ># 107 "numpy/core/src/multiarray/einsum.c.src" >static void >longdouble_sum_of_products_any(int nop, char **dataptr, > npy_intp *strides, npy_intp count) >{ ># 128 "numpy/core/src/multiarray/einsum.c.src" > ; > > while (count--) { ># 154 "numpy/core/src/multiarray/einsum.c.src" > npy_longdouble temp = (*(npy_longdouble *)dataptr[0]); > int i; > for (i = 1; i < nop; ++i) { > temp *= (*(npy_longdouble *)dataptr[i]); > } > *(npy_longdouble *)dataptr[nop] = (temp + > (*(npy_longdouble *)dataptr[i])); > for (i = 0; i <= nop; ++i) { > dataptr[i] += strides[i]; > } ># 201 "numpy/core/src/multiarray/einsum.c.src" > } >} ># 1686 "numpy/core/src/multiarray/einsum.c.src" >static void >longdouble_sum_of_products_contig_any(int nop, char **dataptr, > npy_intp *(__NPY_UNUSED_TAGGEDstrides) __attribute__ ((__unused__)), npy_intp count) >{ > ; > > > while (count--) { > > npy_longdouble temp = (*(npy_longdouble *)dataptr[0]); > int i; > for (i = 1; i < nop; ++i) { > temp *= (*(npy_longdouble *)dataptr[i]); > } > *(npy_longdouble *)dataptr[nop] = (temp + > (*(npy_longdouble *)dataptr[i])); > for (i = 0; i <= nop; ++i) { > dataptr[i] += sizeof(npy_longdouble); > } ># 1732 "numpy/core/src/multiarray/einsum.c.src" > } >} ># 2070 "numpy/core/src/multiarray/einsum.c.src" >static void >longdouble_sum_of_products_outstride0_any(int nop, char **dataptr, > npy_intp *strides, npy_intp count) >{ > > > > npy_longdouble accum = 0; ># 2093 "numpy/core/src/multiarray/einsum.c.src" > ; > > > while (count--) { ># 2114 "numpy/core/src/multiarray/einsum.c.src" > npy_longdouble temp = (*(npy_longdouble *)dataptr[0]); > int i; > for (i = 1; i < nop; ++i) { > temp *= (*(npy_longdouble *)dataptr[i]); > } > accum += temp; > for (i = 0; i < nop; ++i) { > dataptr[i] += strides[i]; > } ># 2154 "numpy/core/src/multiarray/einsum.c.src" > } ># 2169 "numpy/core/src/multiarray/einsum.c.src" > *((npy_longdouble *)dataptr[nop]) = (accum + > (*((npy_longdouble *)dataptr[nop]))); > > > >} ># 102 "numpy/core/src/multiarray/einsum.c.src" ># 107 "numpy/core/src/multiarray/einsum.c.src" >static void >cfloat_sum_of_products_one(int nop, char **dataptr, > npy_intp *strides, npy_intp count) >{ > > char *data0 = dataptr[0]; > npy_intp stride0 = strides[0]; ># 124 "numpy/core/src/multiarray/einsum.c.src" > char *data_out = dataptr[1]; > npy_intp stride_out = strides[1]; > > > ; > > while (count--) { ># 167 "numpy/core/src/multiarray/einsum.c.src" > ((npy_float *)data_out)[0] = ((npy_float *)data0)[0] + > ((npy_float *)data_out)[0]; > ((npy_float *)data_out)[1] = ((npy_float *)data0)[1] + > ((npy_float *)data_out)[1]; > data0 += stride0; > data_out += stride_out; ># 201 "numpy/core/src/multiarray/einsum.c.src" > } >} > > > >static void >cfloat_sum_of_products_contig_one(int nop, char **dataptr, > npy_intp *(__NPY_UNUSED_TAGGEDstrides) __attribute__ ((__unused__)), npy_intp count) >{ > npy_cfloat *data0 = (npy_cfloat *)dataptr[0]; > npy_cfloat *data_out = (npy_cfloat *)dataptr[1]; > > ; > > > >finish_after_unrolled_loop: > switch (count) { ># 222 "numpy/core/src/multiarray/einsum.c.src" > case 6+1: > > > > > ((npy_float *)data_out + 2*6)[0] = > ((npy_float *)data0 + 2*6)[0] + > ((npy_float *)data_out + 2*6)[0]; > ((npy_float *)data_out + 2*6)[1] = > ((npy_float *)data0 + 2*6)[1] + > ((npy_float *)data_out + 2*6)[1]; ># 222 "numpy/core/src/multiarray/einsum.c.src" > case 5+1: > > > > > ((npy_float *)data_out + 2*5)[0] = > ((npy_float *)data0 + 2*5)[0] + > ((npy_float *)data_out + 2*5)[0]; > ((npy_float *)data_out + 2*5)[1] = > ((npy_float *)data0 + 2*5)[1] + > ((npy_float *)data_out + 2*5)[1]; ># 222 "numpy/core/src/multiarray/einsum.c.src" > case 4+1: > > > > > ((npy_float *)data_out + 2*4)[0] = > ((npy_float *)data0 + 2*4)[0] + > ((npy_float *)data_out + 2*4)[0]; > ((npy_float *)data_out + 2*4)[1] = > ((npy_float *)data0 + 2*4)[1] + > ((npy_float *)data_out + 2*4)[1]; ># 222 "numpy/core/src/multiarray/einsum.c.src" > case 3+1: > > > > > ((npy_float *)data_out + 2*3)[0] = > ((npy_float *)data0 + 2*3)[0] + > ((npy_float *)data_out + 2*3)[0]; > ((npy_float *)data_out + 2*3)[1] = > ((npy_float *)data0 + 2*3)[1] + > ((npy_float *)data_out + 2*3)[1]; ># 222 "numpy/core/src/multiarray/einsum.c.src" > case 2+1: > > > > > ((npy_float *)data_out + 2*2)[0] = > ((npy_float *)data0 + 2*2)[0] + > ((npy_float *)data_out + 2*2)[0]; > ((npy_float *)data_out + 2*2)[1] = > ((npy_float *)data0 + 2*2)[1] + > ((npy_float *)data_out + 2*2)[1]; ># 222 "numpy/core/src/multiarray/einsum.c.src" > case 1+1: > > > > > ((npy_float *)data_out + 2*1)[0] = > ((npy_float *)data0 + 2*1)[0] + > ((npy_float *)data_out + 2*1)[0]; > ((npy_float *)data_out + 2*1)[1] = > ((npy_float *)data0 + 2*1)[1] + > ((npy_float *)data_out + 2*1)[1]; ># 222 "numpy/core/src/multiarray/einsum.c.src" > case 0+1: > > > > > ((npy_float *)data_out + 2*0)[0] = > ((npy_float *)data0 + 2*0)[0] + > ((npy_float *)data_out + 2*0)[0]; > ((npy_float *)data_out + 2*0)[1] = > ((npy_float *)data0 + 2*0)[1] + > ((npy_float *)data_out + 2*0)[1]; > > > case 0: > return; > } > > > while (count >= 8) { > count -= 8; ># 246 "numpy/core/src/multiarray/einsum.c.src" > > > > > ((npy_float *)data_out + 2*0)[0] = > ((npy_float *)data0 + 2*0)[0] + > ((npy_float *)data_out + 2*0)[0]; > ((npy_float *)data_out + 2*0)[1] = > ((npy_float *)data0 + 2*0)[1] + > ((npy_float *)data_out + 2*0)[1]; ># 246 "numpy/core/src/multiarray/einsum.c.src" > > > > > ((npy_float *)data_out + 2*1)[0] = > ((npy_float *)data0 + 2*1)[0] + > ((npy_float *)data_out + 2*1)[0]; > ((npy_float *)data_out + 2*1)[1] = > ((npy_float *)data0 + 2*1)[1] + > ((npy_float *)data_out + 2*1)[1]; ># 246 "numpy/core/src/multiarray/einsum.c.src" > > > > > ((npy_float *)data_out + 2*2)[0] = > ((npy_float *)data0 + 2*2)[0] + > ((npy_float *)data_out + 2*2)[0]; > ((npy_float *)data_out + 2*2)[1] = > ((npy_float *)data0 + 2*2)[1] + > ((npy_float *)data_out + 2*2)[1]; ># 246 "numpy/core/src/multiarray/einsum.c.src" > > > > > ((npy_float *)data_out + 2*3)[0] = > ((npy_float *)data0 + 2*3)[0] + > ((npy_float *)data_out + 2*3)[0]; > ((npy_float *)data_out + 2*3)[1] = > ((npy_float *)data0 + 2*3)[1] + > ((npy_float *)data_out + 2*3)[1]; ># 246 "numpy/core/src/multiarray/einsum.c.src" > > > > > ((npy_float *)data_out + 2*4)[0] = > ((npy_float *)data0 + 2*4)[0] + > ((npy_float *)data_out + 2*4)[0]; > ((npy_float *)data_out + 2*4)[1] = > ((npy_float *)data0 + 2*4)[1] + > ((npy_float *)data_out + 2*4)[1]; ># 246 "numpy/core/src/multiarray/einsum.c.src" > > > > > ((npy_float *)data_out + 2*5)[0] = > ((npy_float *)data0 + 2*5)[0] + > ((npy_float *)data_out + 2*5)[0]; > ((npy_float *)data_out + 2*5)[1] = > ((npy_float *)data0 + 2*5)[1] + > ((npy_float *)data_out + 2*5)[1]; ># 246 "numpy/core/src/multiarray/einsum.c.src" > > > > > ((npy_float *)data_out + 2*6)[0] = > ((npy_float *)data0 + 2*6)[0] + > ((npy_float *)data_out + 2*6)[0]; > ((npy_float *)data_out + 2*6)[1] = > ((npy_float *)data0 + 2*6)[1] + > ((npy_float *)data_out + 2*6)[1]; ># 246 "numpy/core/src/multiarray/einsum.c.src" > > > > > ((npy_float *)data_out + 2*7)[0] = > ((npy_float *)data0 + 2*7)[0] + > ((npy_float *)data_out + 2*7)[0]; > ((npy_float *)data_out + 2*7)[1] = > ((npy_float *)data0 + 2*7)[1] + > ((npy_float *)data_out + 2*7)[1]; > > > data0 += 8; > data_out += 8; > } > > > goto finish_after_unrolled_loop; >} ># 1568 "numpy/core/src/multiarray/einsum.c.src" >static void >cfloat_sum_of_products_contig_outstride0_one(int nop, char **dataptr, > npy_intp *strides, npy_intp count) >{ > > npy_float accum_re = 0, accum_im = 0; > npy_float *data0 = (npy_float *)dataptr[0]; ># 1587 "numpy/core/src/multiarray/einsum.c.src" > ; > > > >finish_after_unrolled_loop: > switch (count) { ># 1051 "numpy/core/src/multiarray/einsum.c.src" > case 6+1: > > > > accum_re += data0[2*6+0]; > accum_im += data0[2*6+1]; ># 1051 "numpy/core/src/multiarray/einsum.c.src" > case 5+1: > > > > accum_re += data0[2*5+0]; > accum_im += data0[2*5+1]; ># 1051 "numpy/core/src/multiarray/einsum.c.src" > case 4+1: > > > > accum_re += data0[2*4+0]; > accum_im += data0[2*4+1]; ># 1051 "numpy/core/src/multiarray/einsum.c.src" > case 3+1: > > > > accum_re += data0[2*3+0]; > accum_im += data0[2*3+1]; ># 1051 "numpy/core/src/multiarray/einsum.c.src" > case 2+1: > > > > accum_re += data0[2*2+0]; > accum_im += data0[2*2+1]; ># 1051 "numpy/core/src/multiarray/einsum.c.src" > case 1+1: > > > > accum_re += data0[2*1+0]; > accum_im += data0[2*1+1]; ># 1051 "numpy/core/src/multiarray/einsum.c.src" > case 0+1: > > > > accum_re += data0[2*0+0]; > accum_im += data0[2*0+1]; > > > case 0: > > ((npy_float *)dataptr[1])[0] += accum_re; > ((npy_float *)dataptr[1])[1] += accum_im; > > > > > return; > } ># 1157 "numpy/core/src/multiarray/einsum.c.src" > while (count >= 8) { > count -= 8; ># 1164 "numpy/core/src/multiarray/einsum.c.src" > > > > accum_re += data0[2*0+0]; > accum_im += data0[2*0+1]; ># 1164 "numpy/core/src/multiarray/einsum.c.src" > > > > accum_re += data0[2*1+0]; > accum_im += data0[2*1+1]; ># 1164 "numpy/core/src/multiarray/einsum.c.src" > > > > accum_re += data0[2*2+0]; > accum_im += data0[2*2+1]; ># 1164 "numpy/core/src/multiarray/einsum.c.src" > > > > accum_re += data0[2*3+0]; > accum_im += data0[2*3+1]; ># 1164 "numpy/core/src/multiarray/einsum.c.src" > > > > accum_re += data0[2*4+0]; > accum_im += data0[2*4+1]; ># 1164 "numpy/core/src/multiarray/einsum.c.src" > > > > accum_re += data0[2*5+0]; > accum_im += data0[2*5+1]; ># 1164 "numpy/core/src/multiarray/einsum.c.src" > > > > accum_re += data0[2*6+0]; > accum_im += data0[2*6+1]; ># 1164 "numpy/core/src/multiarray/einsum.c.src" > > > > accum_re += data0[2*7+0]; > accum_im += data0[2*7+1]; > > > > > > > > data0 += 8*2; > > } ># 1195 "numpy/core/src/multiarray/einsum.c.src" > goto finish_after_unrolled_loop; >} > > > >static void >cfloat_sum_of_products_outstride0_one(int nop, char **dataptr, > npy_intp *strides, npy_intp count) >{ > > npy_float accum_re = 0, accum_im = 0; > > > > > > char *data0 = dataptr[0]; > npy_intp stride0 = strides[0]; ># 1223 "numpy/core/src/multiarray/einsum.c.src" > ; > > > while (count--) { ># 1256 "numpy/core/src/multiarray/einsum.c.src" > accum_re += ((npy_float *)data0)[0]; > accum_im += ((npy_float *)data0)[1]; > data0 += stride0; ># 1284 "numpy/core/src/multiarray/einsum.c.src" > } > > > > ((npy_float *)dataptr[1])[0] += accum_re; > ((npy_float *)dataptr[1])[1] += accum_im; ># 1304 "numpy/core/src/multiarray/einsum.c.src" >} ># 107 "numpy/core/src/multiarray/einsum.c.src" >static void >cfloat_sum_of_products_two(int nop, char **dataptr, > npy_intp *strides, npy_intp count) >{ ># 128 "numpy/core/src/multiarray/einsum.c.src" > ; > > while (count--) { ># 179 "numpy/core/src/multiarray/einsum.c.src" > npy_float re, im, tmp; > int i; > re = ((npy_float *)dataptr[0])[0]; > im = ((npy_float *)dataptr[0])[1]; > for (i = 1; i < 2; ++i) { > tmp = re * ((npy_float *)dataptr[i])[0] - > im * ((npy_float *)dataptr[i])[1]; > im = re * ((npy_float *)dataptr[i])[1] + > im * ((npy_float *)dataptr[i])[0]; > re = tmp; > } > ((npy_float *)dataptr[2])[0] = re + > ((npy_float *)dataptr[2])[0]; > ((npy_float *)dataptr[2])[1] = im + > ((npy_float *)dataptr[2])[1]; > > for (i = 0; i <= 2; ++i) { > dataptr[i] += strides[i]; > } > > > > } >} ># 1686 "numpy/core/src/multiarray/einsum.c.src" >static void >cfloat_sum_of_products_contig_two(int nop, char **dataptr, > npy_intp *(__NPY_UNUSED_TAGGEDstrides) __attribute__ ((__unused__)), npy_intp count) >{ > ; > > > while (count--) { ># 1711 "numpy/core/src/multiarray/einsum.c.src" > npy_float re, im, tmp; > int i; > re = ((npy_float *)dataptr[0])[0]; > im = ((npy_float *)dataptr[0])[1]; > for (i = 1; i < 2; ++i) { > tmp = re * ((npy_float *)dataptr[i])[0] - > im * ((npy_float *)dataptr[i])[1]; > im = re * ((npy_float *)dataptr[i])[1] + > im * ((npy_float *)dataptr[i])[0]; > re = tmp; > } > ((npy_float *)dataptr[2])[0] = re + > ((npy_float *)dataptr[2])[0]; > ((npy_float *)dataptr[2])[1] = im + > ((npy_float *)dataptr[2])[1]; > > for (i = 0; i <= 2; ++i) { > dataptr[i] += sizeof(npy_cfloat); > } > > > } >} ># 2070 "numpy/core/src/multiarray/einsum.c.src" >static void >cfloat_sum_of_products_outstride0_two(int nop, char **dataptr, > npy_intp *strides, npy_intp count) >{ > > npy_float accum_re = 0, accum_im = 0; ># 2093 "numpy/core/src/multiarray/einsum.c.src" > ; > > > while (count--) { ># 2135 "numpy/core/src/multiarray/einsum.c.src" > npy_float re, im, tmp; > int i; > re = ((npy_float *)dataptr[0])[0]; > im = ((npy_float *)dataptr[0])[1]; > for (i = 1; i < 2; ++i) { > tmp = re * ((npy_float *)dataptr[i])[0] - > im * ((npy_float *)dataptr[i])[1]; > im = re * ((npy_float *)dataptr[i])[1] + > im * ((npy_float *)dataptr[i])[0]; > re = tmp; > } > accum_re += re; > accum_im += im; > for (i = 0; i < 2; ++i) { > dataptr[i] += strides[i]; > } > > > > } > > > > ((npy_float *)dataptr[2])[0] += accum_re; > ((npy_float *)dataptr[2])[1] += accum_im; ># 2174 "numpy/core/src/multiarray/einsum.c.src" >} ># 107 "numpy/core/src/multiarray/einsum.c.src" >static void >cfloat_sum_of_products_three(int nop, char **dataptr, > npy_intp *strides, npy_intp count) >{ ># 128 "numpy/core/src/multiarray/einsum.c.src" > ; > > while (count--) { ># 179 "numpy/core/src/multiarray/einsum.c.src" > npy_float re, im, tmp; > int i; > re = ((npy_float *)dataptr[0])[0]; > im = ((npy_float *)dataptr[0])[1]; > for (i = 1; i < 3; ++i) { > tmp = re * ((npy_float *)dataptr[i])[0] - > im * ((npy_float *)dataptr[i])[1]; > im = re * ((npy_float *)dataptr[i])[1] + > im * ((npy_float *)dataptr[i])[0]; > re = tmp; > } > ((npy_float *)dataptr[3])[0] = re + > ((npy_float *)dataptr[3])[0]; > ((npy_float *)dataptr[3])[1] = im + > ((npy_float *)dataptr[3])[1]; > > for (i = 0; i <= 3; ++i) { > dataptr[i] += strides[i]; > } > > > > } >} ># 1686 "numpy/core/src/multiarray/einsum.c.src" >static void >cfloat_sum_of_products_contig_three(int nop, char **dataptr, > npy_intp *(__NPY_UNUSED_TAGGEDstrides) __attribute__ ((__unused__)), npy_intp count) >{ > ; > > > while (count--) { ># 1711 "numpy/core/src/multiarray/einsum.c.src" > npy_float re, im, tmp; > int i; > re = ((npy_float *)dataptr[0])[0]; > im = ((npy_float *)dataptr[0])[1]; > for (i = 1; i < 3; ++i) { > tmp = re * ((npy_float *)dataptr[i])[0] - > im * ((npy_float *)dataptr[i])[1]; > im = re * ((npy_float *)dataptr[i])[1] + > im * ((npy_float *)dataptr[i])[0]; > re = tmp; > } > ((npy_float *)dataptr[3])[0] = re + > ((npy_float *)dataptr[3])[0]; > ((npy_float *)dataptr[3])[1] = im + > ((npy_float *)dataptr[3])[1]; > > for (i = 0; i <= 3; ++i) { > dataptr[i] += sizeof(npy_cfloat); > } > > > } >} ># 2070 "numpy/core/src/multiarray/einsum.c.src" >static void >cfloat_sum_of_products_outstride0_three(int nop, char **dataptr, > npy_intp *strides, npy_intp count) >{ > > npy_float accum_re = 0, accum_im = 0; ># 2093 "numpy/core/src/multiarray/einsum.c.src" > ; > > > while (count--) { ># 2135 "numpy/core/src/multiarray/einsum.c.src" > npy_float re, im, tmp; > int i; > re = ((npy_float *)dataptr[0])[0]; > im = ((npy_float *)dataptr[0])[1]; > for (i = 1; i < 3; ++i) { > tmp = re * ((npy_float *)dataptr[i])[0] - > im * ((npy_float *)dataptr[i])[1]; > im = re * ((npy_float *)dataptr[i])[1] + > im * ((npy_float *)dataptr[i])[0]; > re = tmp; > } > accum_re += re; > accum_im += im; > for (i = 0; i < 3; ++i) { > dataptr[i] += strides[i]; > } > > > > } > > > > ((npy_float *)dataptr[3])[0] += accum_re; > ((npy_float *)dataptr[3])[1] += accum_im; ># 2174 "numpy/core/src/multiarray/einsum.c.src" >} ># 107 "numpy/core/src/multiarray/einsum.c.src" >static void >cfloat_sum_of_products_any(int nop, char **dataptr, > npy_intp *strides, npy_intp count) >{ ># 128 "numpy/core/src/multiarray/einsum.c.src" > ; > > while (count--) { ># 179 "numpy/core/src/multiarray/einsum.c.src" > npy_float re, im, tmp; > int i; > re = ((npy_float *)dataptr[0])[0]; > im = ((npy_float *)dataptr[0])[1]; > for (i = 1; i < nop; ++i) { > tmp = re * ((npy_float *)dataptr[i])[0] - > im * ((npy_float *)dataptr[i])[1]; > im = re * ((npy_float *)dataptr[i])[1] + > im * ((npy_float *)dataptr[i])[0]; > re = tmp; > } > ((npy_float *)dataptr[nop])[0] = re + > ((npy_float *)dataptr[nop])[0]; > ((npy_float *)dataptr[nop])[1] = im + > ((npy_float *)dataptr[nop])[1]; > > for (i = 0; i <= nop; ++i) { > dataptr[i] += strides[i]; > } > > > > } >} ># 1686 "numpy/core/src/multiarray/einsum.c.src" >static void >cfloat_sum_of_products_contig_any(int nop, char **dataptr, > npy_intp *(__NPY_UNUSED_TAGGEDstrides) __attribute__ ((__unused__)), npy_intp count) >{ > ; > > > while (count--) { ># 1711 "numpy/core/src/multiarray/einsum.c.src" > npy_float re, im, tmp; > int i; > re = ((npy_float *)dataptr[0])[0]; > im = ((npy_float *)dataptr[0])[1]; > for (i = 1; i < nop; ++i) { > tmp = re * ((npy_float *)dataptr[i])[0] - > im * ((npy_float *)dataptr[i])[1]; > im = re * ((npy_float *)dataptr[i])[1] + > im * ((npy_float *)dataptr[i])[0]; > re = tmp; > } > ((npy_float *)dataptr[nop])[0] = re + > ((npy_float *)dataptr[nop])[0]; > ((npy_float *)dataptr[nop])[1] = im + > ((npy_float *)dataptr[nop])[1]; > > for (i = 0; i <= nop; ++i) { > dataptr[i] += sizeof(npy_cfloat); > } > > > } >} ># 2070 "numpy/core/src/multiarray/einsum.c.src" >static void >cfloat_sum_of_products_outstride0_any(int nop, char **dataptr, > npy_intp *strides, npy_intp count) >{ > > npy_float accum_re = 0, accum_im = 0; ># 2093 "numpy/core/src/multiarray/einsum.c.src" > ; > > > while (count--) { ># 2135 "numpy/core/src/multiarray/einsum.c.src" > npy_float re, im, tmp; > int i; > re = ((npy_float *)dataptr[0])[0]; > im = ((npy_float *)dataptr[0])[1]; > for (i = 1; i < nop; ++i) { > tmp = re * ((npy_float *)dataptr[i])[0] - > im * ((npy_float *)dataptr[i])[1]; > im = re * ((npy_float *)dataptr[i])[1] + > im * ((npy_float *)dataptr[i])[0]; > re = tmp; > } > accum_re += re; > accum_im += im; > for (i = 0; i < nop; ++i) { > dataptr[i] += strides[i]; > } > > > > } > > > > > > > ((npy_float *)dataptr[nop])[0] += accum_re; > ((npy_float *)dataptr[nop])[1] += accum_im; ># 2174 "numpy/core/src/multiarray/einsum.c.src" >} ># 102 "numpy/core/src/multiarray/einsum.c.src" ># 107 "numpy/core/src/multiarray/einsum.c.src" >static void >cdouble_sum_of_products_one(int nop, char **dataptr, > npy_intp *strides, npy_intp count) >{ > > char *data0 = dataptr[0]; > npy_intp stride0 = strides[0]; ># 124 "numpy/core/src/multiarray/einsum.c.src" > char *data_out = dataptr[1]; > npy_intp stride_out = strides[1]; > > > ; > > while (count--) { ># 167 "numpy/core/src/multiarray/einsum.c.src" > ((npy_double *)data_out)[0] = ((npy_double *)data0)[0] + > ((npy_double *)data_out)[0]; > ((npy_double *)data_out)[1] = ((npy_double *)data0)[1] + > ((npy_double *)data_out)[1]; > data0 += stride0; > data_out += stride_out; ># 201 "numpy/core/src/multiarray/einsum.c.src" > } >} > > > >static void >cdouble_sum_of_products_contig_one(int nop, char **dataptr, > npy_intp *(__NPY_UNUSED_TAGGEDstrides) __attribute__ ((__unused__)), npy_intp count) >{ > npy_cdouble *data0 = (npy_cdouble *)dataptr[0]; > npy_cdouble *data_out = (npy_cdouble *)dataptr[1]; > > ; > > > >finish_after_unrolled_loop: > switch (count) { ># 222 "numpy/core/src/multiarray/einsum.c.src" > case 6+1: > > > > > ((npy_double *)data_out + 2*6)[0] = > ((npy_double *)data0 + 2*6)[0] + > ((npy_double *)data_out + 2*6)[0]; > ((npy_double *)data_out + 2*6)[1] = > ((npy_double *)data0 + 2*6)[1] + > ((npy_double *)data_out + 2*6)[1]; ># 222 "numpy/core/src/multiarray/einsum.c.src" > case 5+1: > > > > > ((npy_double *)data_out + 2*5)[0] = > ((npy_double *)data0 + 2*5)[0] + > ((npy_double *)data_out + 2*5)[0]; > ((npy_double *)data_out + 2*5)[1] = > ((npy_double *)data0 + 2*5)[1] + > ((npy_double *)data_out + 2*5)[1]; ># 222 "numpy/core/src/multiarray/einsum.c.src" > case 4+1: > > > > > ((npy_double *)data_out + 2*4)[0] = > ((npy_double *)data0 + 2*4)[0] + > ((npy_double *)data_out + 2*4)[0]; > ((npy_double *)data_out + 2*4)[1] = > ((npy_double *)data0 + 2*4)[1] + > ((npy_double *)data_out + 2*4)[1]; ># 222 "numpy/core/src/multiarray/einsum.c.src" > case 3+1: > > > > > ((npy_double *)data_out + 2*3)[0] = > ((npy_double *)data0 + 2*3)[0] + > ((npy_double *)data_out + 2*3)[0]; > ((npy_double *)data_out + 2*3)[1] = > ((npy_double *)data0 + 2*3)[1] + > ((npy_double *)data_out + 2*3)[1]; ># 222 "numpy/core/src/multiarray/einsum.c.src" > case 2+1: > > > > > ((npy_double *)data_out + 2*2)[0] = > ((npy_double *)data0 + 2*2)[0] + > ((npy_double *)data_out + 2*2)[0]; > ((npy_double *)data_out + 2*2)[1] = > ((npy_double *)data0 + 2*2)[1] + > ((npy_double *)data_out + 2*2)[1]; ># 222 "numpy/core/src/multiarray/einsum.c.src" > case 1+1: > > > > > ((npy_double *)data_out + 2*1)[0] = > ((npy_double *)data0 + 2*1)[0] + > ((npy_double *)data_out + 2*1)[0]; > ((npy_double *)data_out + 2*1)[1] = > ((npy_double *)data0 + 2*1)[1] + > ((npy_double *)data_out + 2*1)[1]; ># 222 "numpy/core/src/multiarray/einsum.c.src" > case 0+1: > > > > > ((npy_double *)data_out + 2*0)[0] = > ((npy_double *)data0 + 2*0)[0] + > ((npy_double *)data_out + 2*0)[0]; > ((npy_double *)data_out + 2*0)[1] = > ((npy_double *)data0 + 2*0)[1] + > ((npy_double *)data_out + 2*0)[1]; > > > case 0: > return; > } > > > while (count >= 8) { > count -= 8; ># 246 "numpy/core/src/multiarray/einsum.c.src" > > > > > ((npy_double *)data_out + 2*0)[0] = > ((npy_double *)data0 + 2*0)[0] + > ((npy_double *)data_out + 2*0)[0]; > ((npy_double *)data_out + 2*0)[1] = > ((npy_double *)data0 + 2*0)[1] + > ((npy_double *)data_out + 2*0)[1]; ># 246 "numpy/core/src/multiarray/einsum.c.src" > > > > > ((npy_double *)data_out + 2*1)[0] = > ((npy_double *)data0 + 2*1)[0] + > ((npy_double *)data_out + 2*1)[0]; > ((npy_double *)data_out + 2*1)[1] = > ((npy_double *)data0 + 2*1)[1] + > ((npy_double *)data_out + 2*1)[1]; ># 246 "numpy/core/src/multiarray/einsum.c.src" > > > > > ((npy_double *)data_out + 2*2)[0] = > ((npy_double *)data0 + 2*2)[0] + > ((npy_double *)data_out + 2*2)[0]; > ((npy_double *)data_out + 2*2)[1] = > ((npy_double *)data0 + 2*2)[1] + > ((npy_double *)data_out + 2*2)[1]; ># 246 "numpy/core/src/multiarray/einsum.c.src" > > > > > ((npy_double *)data_out + 2*3)[0] = > ((npy_double *)data0 + 2*3)[0] + > ((npy_double *)data_out + 2*3)[0]; > ((npy_double *)data_out + 2*3)[1] = > ((npy_double *)data0 + 2*3)[1] + > ((npy_double *)data_out + 2*3)[1]; ># 246 "numpy/core/src/multiarray/einsum.c.src" > > > > > ((npy_double *)data_out + 2*4)[0] = > ((npy_double *)data0 + 2*4)[0] + > ((npy_double *)data_out + 2*4)[0]; > ((npy_double *)data_out + 2*4)[1] = > ((npy_double *)data0 + 2*4)[1] + > ((npy_double *)data_out + 2*4)[1]; ># 246 "numpy/core/src/multiarray/einsum.c.src" > > > > > ((npy_double *)data_out + 2*5)[0] = > ((npy_double *)data0 + 2*5)[0] + > ((npy_double *)data_out + 2*5)[0]; > ((npy_double *)data_out + 2*5)[1] = > ((npy_double *)data0 + 2*5)[1] + > ((npy_double *)data_out + 2*5)[1]; ># 246 "numpy/core/src/multiarray/einsum.c.src" > > > > > ((npy_double *)data_out + 2*6)[0] = > ((npy_double *)data0 + 2*6)[0] + > ((npy_double *)data_out + 2*6)[0]; > ((npy_double *)data_out + 2*6)[1] = > ((npy_double *)data0 + 2*6)[1] + > ((npy_double *)data_out + 2*6)[1]; ># 246 "numpy/core/src/multiarray/einsum.c.src" > > > > > ((npy_double *)data_out + 2*7)[0] = > ((npy_double *)data0 + 2*7)[0] + > ((npy_double *)data_out + 2*7)[0]; > ((npy_double *)data_out + 2*7)[1] = > ((npy_double *)data0 + 2*7)[1] + > ((npy_double *)data_out + 2*7)[1]; > > > data0 += 8; > data_out += 8; > } > > > goto finish_after_unrolled_loop; >} ># 1568 "numpy/core/src/multiarray/einsum.c.src" >static void >cdouble_sum_of_products_contig_outstride0_one(int nop, char **dataptr, > npy_intp *strides, npy_intp count) >{ > > npy_double accum_re = 0, accum_im = 0; > npy_double *data0 = (npy_double *)dataptr[0]; ># 1587 "numpy/core/src/multiarray/einsum.c.src" > ; > > > >finish_after_unrolled_loop: > switch (count) { ># 1051 "numpy/core/src/multiarray/einsum.c.src" > case 6+1: > > > > accum_re += data0[2*6+0]; > accum_im += data0[2*6+1]; ># 1051 "numpy/core/src/multiarray/einsum.c.src" > case 5+1: > > > > accum_re += data0[2*5+0]; > accum_im += data0[2*5+1]; ># 1051 "numpy/core/src/multiarray/einsum.c.src" > case 4+1: > > > > accum_re += data0[2*4+0]; > accum_im += data0[2*4+1]; ># 1051 "numpy/core/src/multiarray/einsum.c.src" > case 3+1: > > > > accum_re += data0[2*3+0]; > accum_im += data0[2*3+1]; ># 1051 "numpy/core/src/multiarray/einsum.c.src" > case 2+1: > > > > accum_re += data0[2*2+0]; > accum_im += data0[2*2+1]; ># 1051 "numpy/core/src/multiarray/einsum.c.src" > case 1+1: > > > > accum_re += data0[2*1+0]; > accum_im += data0[2*1+1]; ># 1051 "numpy/core/src/multiarray/einsum.c.src" > case 0+1: > > > > accum_re += data0[2*0+0]; > accum_im += data0[2*0+1]; > > > case 0: > > ((npy_double *)dataptr[1])[0] += accum_re; > ((npy_double *)dataptr[1])[1] += accum_im; > > > > > return; > } ># 1157 "numpy/core/src/multiarray/einsum.c.src" > while (count >= 8) { > count -= 8; ># 1164 "numpy/core/src/multiarray/einsum.c.src" > > > > accum_re += data0[2*0+0]; > accum_im += data0[2*0+1]; ># 1164 "numpy/core/src/multiarray/einsum.c.src" > > > > accum_re += data0[2*1+0]; > accum_im += data0[2*1+1]; ># 1164 "numpy/core/src/multiarray/einsum.c.src" > > > > accum_re += data0[2*2+0]; > accum_im += data0[2*2+1]; ># 1164 "numpy/core/src/multiarray/einsum.c.src" > > > > accum_re += data0[2*3+0]; > accum_im += data0[2*3+1]; ># 1164 "numpy/core/src/multiarray/einsum.c.src" > > > > accum_re += data0[2*4+0]; > accum_im += data0[2*4+1]; ># 1164 "numpy/core/src/multiarray/einsum.c.src" > > > > accum_re += data0[2*5+0]; > accum_im += data0[2*5+1]; ># 1164 "numpy/core/src/multiarray/einsum.c.src" > > > > accum_re += data0[2*6+0]; > accum_im += data0[2*6+1]; ># 1164 "numpy/core/src/multiarray/einsum.c.src" > > > > accum_re += data0[2*7+0]; > accum_im += data0[2*7+1]; > > > > > > > > data0 += 8*2; > > } ># 1195 "numpy/core/src/multiarray/einsum.c.src" > goto finish_after_unrolled_loop; >} > > > >static void >cdouble_sum_of_products_outstride0_one(int nop, char **dataptr, > npy_intp *strides, npy_intp count) >{ > > npy_double accum_re = 0, accum_im = 0; > > > > > > char *data0 = dataptr[0]; > npy_intp stride0 = strides[0]; ># 1223 "numpy/core/src/multiarray/einsum.c.src" > ; > > > while (count--) { ># 1256 "numpy/core/src/multiarray/einsum.c.src" > accum_re += ((npy_double *)data0)[0]; > accum_im += ((npy_double *)data0)[1]; > data0 += stride0; ># 1284 "numpy/core/src/multiarray/einsum.c.src" > } > > > > ((npy_double *)dataptr[1])[0] += accum_re; > ((npy_double *)dataptr[1])[1] += accum_im; ># 1304 "numpy/core/src/multiarray/einsum.c.src" >} ># 107 "numpy/core/src/multiarray/einsum.c.src" >static void >cdouble_sum_of_products_two(int nop, char **dataptr, > npy_intp *strides, npy_intp count) >{ ># 128 "numpy/core/src/multiarray/einsum.c.src" > ; > > while (count--) { ># 179 "numpy/core/src/multiarray/einsum.c.src" > npy_double re, im, tmp; > int i; > re = ((npy_double *)dataptr[0])[0]; > im = ((npy_double *)dataptr[0])[1]; > for (i = 1; i < 2; ++i) { > tmp = re * ((npy_double *)dataptr[i])[0] - > im * ((npy_double *)dataptr[i])[1]; > im = re * ((npy_double *)dataptr[i])[1] + > im * ((npy_double *)dataptr[i])[0]; > re = tmp; > } > ((npy_double *)dataptr[2])[0] = re + > ((npy_double *)dataptr[2])[0]; > ((npy_double *)dataptr[2])[1] = im + > ((npy_double *)dataptr[2])[1]; > > for (i = 0; i <= 2; ++i) { > dataptr[i] += strides[i]; > } > > > > } >} ># 1686 "numpy/core/src/multiarray/einsum.c.src" >static void >cdouble_sum_of_products_contig_two(int nop, char **dataptr, > npy_intp *(__NPY_UNUSED_TAGGEDstrides) __attribute__ ((__unused__)), npy_intp count) >{ > ; > > > while (count--) { ># 1711 "numpy/core/src/multiarray/einsum.c.src" > npy_double re, im, tmp; > int i; > re = ((npy_double *)dataptr[0])[0]; > im = ((npy_double *)dataptr[0])[1]; > for (i = 1; i < 2; ++i) { > tmp = re * ((npy_double *)dataptr[i])[0] - > im * ((npy_double *)dataptr[i])[1]; > im = re * ((npy_double *)dataptr[i])[1] + > im * ((npy_double *)dataptr[i])[0]; > re = tmp; > } > ((npy_double *)dataptr[2])[0] = re + > ((npy_double *)dataptr[2])[0]; > ((npy_double *)dataptr[2])[1] = im + > ((npy_double *)dataptr[2])[1]; > > for (i = 0; i <= 2; ++i) { > dataptr[i] += sizeof(npy_cdouble); > } > > > } >} ># 2070 "numpy/core/src/multiarray/einsum.c.src" >static void >cdouble_sum_of_products_outstride0_two(int nop, char **dataptr, > npy_intp *strides, npy_intp count) >{ > > npy_double accum_re = 0, accum_im = 0; ># 2093 "numpy/core/src/multiarray/einsum.c.src" > ; > > > while (count--) { ># 2135 "numpy/core/src/multiarray/einsum.c.src" > npy_double re, im, tmp; > int i; > re = ((npy_double *)dataptr[0])[0]; > im = ((npy_double *)dataptr[0])[1]; > for (i = 1; i < 2; ++i) { > tmp = re * ((npy_double *)dataptr[i])[0] - > im * ((npy_double *)dataptr[i])[1]; > im = re * ((npy_double *)dataptr[i])[1] + > im * ((npy_double *)dataptr[i])[0]; > re = tmp; > } > accum_re += re; > accum_im += im; > for (i = 0; i < 2; ++i) { > dataptr[i] += strides[i]; > } > > > > } > > > > ((npy_double *)dataptr[2])[0] += accum_re; > ((npy_double *)dataptr[2])[1] += accum_im; ># 2174 "numpy/core/src/multiarray/einsum.c.src" >} ># 107 "numpy/core/src/multiarray/einsum.c.src" >static void >cdouble_sum_of_products_three(int nop, char **dataptr, > npy_intp *strides, npy_intp count) >{ ># 128 "numpy/core/src/multiarray/einsum.c.src" > ; > > while (count--) { ># 179 "numpy/core/src/multiarray/einsum.c.src" > npy_double re, im, tmp; > int i; > re = ((npy_double *)dataptr[0])[0]; > im = ((npy_double *)dataptr[0])[1]; > for (i = 1; i < 3; ++i) { > tmp = re * ((npy_double *)dataptr[i])[0] - > im * ((npy_double *)dataptr[i])[1]; > im = re * ((npy_double *)dataptr[i])[1] + > im * ((npy_double *)dataptr[i])[0]; > re = tmp; > } > ((npy_double *)dataptr[3])[0] = re + > ((npy_double *)dataptr[3])[0]; > ((npy_double *)dataptr[3])[1] = im + > ((npy_double *)dataptr[3])[1]; > > for (i = 0; i <= 3; ++i) { > dataptr[i] += strides[i]; > } > > > > } >} ># 1686 "numpy/core/src/multiarray/einsum.c.src" >static void >cdouble_sum_of_products_contig_three(int nop, char **dataptr, > npy_intp *(__NPY_UNUSED_TAGGEDstrides) __attribute__ ((__unused__)), npy_intp count) >{ > ; > > > while (count--) { ># 1711 "numpy/core/src/multiarray/einsum.c.src" > npy_double re, im, tmp; > int i; > re = ((npy_double *)dataptr[0])[0]; > im = ((npy_double *)dataptr[0])[1]; > for (i = 1; i < 3; ++i) { > tmp = re * ((npy_double *)dataptr[i])[0] - > im * ((npy_double *)dataptr[i])[1]; > im = re * ((npy_double *)dataptr[i])[1] + > im * ((npy_double *)dataptr[i])[0]; > re = tmp; > } > ((npy_double *)dataptr[3])[0] = re + > ((npy_double *)dataptr[3])[0]; > ((npy_double *)dataptr[3])[1] = im + > ((npy_double *)dataptr[3])[1]; > > for (i = 0; i <= 3; ++i) { > dataptr[i] += sizeof(npy_cdouble); > } > > > } >} ># 2070 "numpy/core/src/multiarray/einsum.c.src" >static void >cdouble_sum_of_products_outstride0_three(int nop, char **dataptr, > npy_intp *strides, npy_intp count) >{ > > npy_double accum_re = 0, accum_im = 0; ># 2093 "numpy/core/src/multiarray/einsum.c.src" > ; > > > while (count--) { ># 2135 "numpy/core/src/multiarray/einsum.c.src" > npy_double re, im, tmp; > int i; > re = ((npy_double *)dataptr[0])[0]; > im = ((npy_double *)dataptr[0])[1]; > for (i = 1; i < 3; ++i) { > tmp = re * ((npy_double *)dataptr[i])[0] - > im * ((npy_double *)dataptr[i])[1]; > im = re * ((npy_double *)dataptr[i])[1] + > im * ((npy_double *)dataptr[i])[0]; > re = tmp; > } > accum_re += re; > accum_im += im; > for (i = 0; i < 3; ++i) { > dataptr[i] += strides[i]; > } > > > > } > > > > ((npy_double *)dataptr[3])[0] += accum_re; > ((npy_double *)dataptr[3])[1] += accum_im; ># 2174 "numpy/core/src/multiarray/einsum.c.src" >} ># 107 "numpy/core/src/multiarray/einsum.c.src" >static void >cdouble_sum_of_products_any(int nop, char **dataptr, > npy_intp *strides, npy_intp count) >{ ># 128 "numpy/core/src/multiarray/einsum.c.src" > ; > > while (count--) { ># 179 "numpy/core/src/multiarray/einsum.c.src" > npy_double re, im, tmp; > int i; > re = ((npy_double *)dataptr[0])[0]; > im = ((npy_double *)dataptr[0])[1]; > for (i = 1; i < nop; ++i) { > tmp = re * ((npy_double *)dataptr[i])[0] - > im * ((npy_double *)dataptr[i])[1]; > im = re * ((npy_double *)dataptr[i])[1] + > im * ((npy_double *)dataptr[i])[0]; > re = tmp; > } > ((npy_double *)dataptr[nop])[0] = re + > ((npy_double *)dataptr[nop])[0]; > ((npy_double *)dataptr[nop])[1] = im + > ((npy_double *)dataptr[nop])[1]; > > for (i = 0; i <= nop; ++i) { > dataptr[i] += strides[i]; > } > > > > } >} ># 1686 "numpy/core/src/multiarray/einsum.c.src" >static void >cdouble_sum_of_products_contig_any(int nop, char **dataptr, > npy_intp *(__NPY_UNUSED_TAGGEDstrides) __attribute__ ((__unused__)), npy_intp count) >{ > ; > > > while (count--) { ># 1711 "numpy/core/src/multiarray/einsum.c.src" > npy_double re, im, tmp; > int i; > re = ((npy_double *)dataptr[0])[0]; > im = ((npy_double *)dataptr[0])[1]; > for (i = 1; i < nop; ++i) { > tmp = re * ((npy_double *)dataptr[i])[0] - > im * ((npy_double *)dataptr[i])[1]; > im = re * ((npy_double *)dataptr[i])[1] + > im * ((npy_double *)dataptr[i])[0]; > re = tmp; > } > ((npy_double *)dataptr[nop])[0] = re + > ((npy_double *)dataptr[nop])[0]; > ((npy_double *)dataptr[nop])[1] = im + > ((npy_double *)dataptr[nop])[1]; > > for (i = 0; i <= nop; ++i) { > dataptr[i] += sizeof(npy_cdouble); > } > > > } >} ># 2070 "numpy/core/src/multiarray/einsum.c.src" >static void >cdouble_sum_of_products_outstride0_any(int nop, char **dataptr, > npy_intp *strides, npy_intp count) >{ > > npy_double accum_re = 0, accum_im = 0; ># 2093 "numpy/core/src/multiarray/einsum.c.src" > ; > > > while (count--) { ># 2135 "numpy/core/src/multiarray/einsum.c.src" > npy_double re, im, tmp; > int i; > re = ((npy_double *)dataptr[0])[0]; > im = ((npy_double *)dataptr[0])[1]; > for (i = 1; i < nop; ++i) { > tmp = re * ((npy_double *)dataptr[i])[0] - > im * ((npy_double *)dataptr[i])[1]; > im = re * ((npy_double *)dataptr[i])[1] + > im * ((npy_double *)dataptr[i])[0]; > re = tmp; > } > accum_re += re; > accum_im += im; > for (i = 0; i < nop; ++i) { > dataptr[i] += strides[i]; > } > > > > } > > > > > > > ((npy_double *)dataptr[nop])[0] += accum_re; > ((npy_double *)dataptr[nop])[1] += accum_im; ># 2174 "numpy/core/src/multiarray/einsum.c.src" >} ># 102 "numpy/core/src/multiarray/einsum.c.src" ># 107 "numpy/core/src/multiarray/einsum.c.src" >static void >clongdouble_sum_of_products_one(int nop, char **dataptr, > npy_intp *strides, npy_intp count) >{ > > char *data0 = dataptr[0]; > npy_intp stride0 = strides[0]; ># 124 "numpy/core/src/multiarray/einsum.c.src" > char *data_out = dataptr[1]; > npy_intp stride_out = strides[1]; > > > ; > > while (count--) { ># 167 "numpy/core/src/multiarray/einsum.c.src" > ((npy_longdouble *)data_out)[0] = ((npy_longdouble *)data0)[0] + > ((npy_longdouble *)data_out)[0]; > ((npy_longdouble *)data_out)[1] = ((npy_longdouble *)data0)[1] + > ((npy_longdouble *)data_out)[1]; > data0 += stride0; > data_out += stride_out; ># 201 "numpy/core/src/multiarray/einsum.c.src" > } >} > > > >static void >clongdouble_sum_of_products_contig_one(int nop, char **dataptr, > npy_intp *(__NPY_UNUSED_TAGGEDstrides) __attribute__ ((__unused__)), npy_intp count) >{ > npy_clongdouble *data0 = (npy_clongdouble *)dataptr[0]; > npy_clongdouble *data_out = (npy_clongdouble *)dataptr[1]; > > ; > > > >finish_after_unrolled_loop: > switch (count) { ># 222 "numpy/core/src/multiarray/einsum.c.src" > case 6+1: > > > > > ((npy_longdouble *)data_out + 2*6)[0] = > ((npy_longdouble *)data0 + 2*6)[0] + > ((npy_longdouble *)data_out + 2*6)[0]; > ((npy_longdouble *)data_out + 2*6)[1] = > ((npy_longdouble *)data0 + 2*6)[1] + > ((npy_longdouble *)data_out + 2*6)[1]; ># 222 "numpy/core/src/multiarray/einsum.c.src" > case 5+1: > > > > > ((npy_longdouble *)data_out + 2*5)[0] = > ((npy_longdouble *)data0 + 2*5)[0] + > ((npy_longdouble *)data_out + 2*5)[0]; > ((npy_longdouble *)data_out + 2*5)[1] = > ((npy_longdouble *)data0 + 2*5)[1] + > ((npy_longdouble *)data_out + 2*5)[1]; ># 222 "numpy/core/src/multiarray/einsum.c.src" > case 4+1: > > > > > ((npy_longdouble *)data_out + 2*4)[0] = > ((npy_longdouble *)data0 + 2*4)[0] + > ((npy_longdouble *)data_out + 2*4)[0]; > ((npy_longdouble *)data_out + 2*4)[1] = > ((npy_longdouble *)data0 + 2*4)[1] + > ((npy_longdouble *)data_out + 2*4)[1]; ># 222 "numpy/core/src/multiarray/einsum.c.src" > case 3+1: > > > > > ((npy_longdouble *)data_out + 2*3)[0] = > ((npy_longdouble *)data0 + 2*3)[0] + > ((npy_longdouble *)data_out + 2*3)[0]; > ((npy_longdouble *)data_out + 2*3)[1] = > ((npy_longdouble *)data0 + 2*3)[1] + > ((npy_longdouble *)data_out + 2*3)[1]; ># 222 "numpy/core/src/multiarray/einsum.c.src" > case 2+1: > > > > > ((npy_longdouble *)data_out + 2*2)[0] = > ((npy_longdouble *)data0 + 2*2)[0] + > ((npy_longdouble *)data_out + 2*2)[0]; > ((npy_longdouble *)data_out + 2*2)[1] = > ((npy_longdouble *)data0 + 2*2)[1] + > ((npy_longdouble *)data_out + 2*2)[1]; ># 222 "numpy/core/src/multiarray/einsum.c.src" > case 1+1: > > > > > ((npy_longdouble *)data_out + 2*1)[0] = > ((npy_longdouble *)data0 + 2*1)[0] + > ((npy_longdouble *)data_out + 2*1)[0]; > ((npy_longdouble *)data_out + 2*1)[1] = > ((npy_longdouble *)data0 + 2*1)[1] + > ((npy_longdouble *)data_out + 2*1)[1]; ># 222 "numpy/core/src/multiarray/einsum.c.src" > case 0+1: > > > > > ((npy_longdouble *)data_out + 2*0)[0] = > ((npy_longdouble *)data0 + 2*0)[0] + > ((npy_longdouble *)data_out + 2*0)[0]; > ((npy_longdouble *)data_out + 2*0)[1] = > ((npy_longdouble *)data0 + 2*0)[1] + > ((npy_longdouble *)data_out + 2*0)[1]; > > > case 0: > return; > } > > > while (count >= 8) { > count -= 8; ># 246 "numpy/core/src/multiarray/einsum.c.src" > > > > > ((npy_longdouble *)data_out + 2*0)[0] = > ((npy_longdouble *)data0 + 2*0)[0] + > ((npy_longdouble *)data_out + 2*0)[0]; > ((npy_longdouble *)data_out + 2*0)[1] = > ((npy_longdouble *)data0 + 2*0)[1] + > ((npy_longdouble *)data_out + 2*0)[1]; ># 246 "numpy/core/src/multiarray/einsum.c.src" > > > > > ((npy_longdouble *)data_out + 2*1)[0] = > ((npy_longdouble *)data0 + 2*1)[0] + > ((npy_longdouble *)data_out + 2*1)[0]; > ((npy_longdouble *)data_out + 2*1)[1] = > ((npy_longdouble *)data0 + 2*1)[1] + > ((npy_longdouble *)data_out + 2*1)[1]; ># 246 "numpy/core/src/multiarray/einsum.c.src" > > > > > ((npy_longdouble *)data_out + 2*2)[0] = > ((npy_longdouble *)data0 + 2*2)[0] + > ((npy_longdouble *)data_out + 2*2)[0]; > ((npy_longdouble *)data_out + 2*2)[1] = > ((npy_longdouble *)data0 + 2*2)[1] + > ((npy_longdouble *)data_out + 2*2)[1]; ># 246 "numpy/core/src/multiarray/einsum.c.src" > > > > > ((npy_longdouble *)data_out + 2*3)[0] = > ((npy_longdouble *)data0 + 2*3)[0] + > ((npy_longdouble *)data_out + 2*3)[0]; > ((npy_longdouble *)data_out + 2*3)[1] = > ((npy_longdouble *)data0 + 2*3)[1] + > ((npy_longdouble *)data_out + 2*3)[1]; ># 246 "numpy/core/src/multiarray/einsum.c.src" > > > > > ((npy_longdouble *)data_out + 2*4)[0] = > ((npy_longdouble *)data0 + 2*4)[0] + > ((npy_longdouble *)data_out + 2*4)[0]; > ((npy_longdouble *)data_out + 2*4)[1] = > ((npy_longdouble *)data0 + 2*4)[1] + > ((npy_longdouble *)data_out + 2*4)[1]; ># 246 "numpy/core/src/multiarray/einsum.c.src" > > > > > ((npy_longdouble *)data_out + 2*5)[0] = > ((npy_longdouble *)data0 + 2*5)[0] + > ((npy_longdouble *)data_out + 2*5)[0]; > ((npy_longdouble *)data_out + 2*5)[1] = > ((npy_longdouble *)data0 + 2*5)[1] + > ((npy_longdouble *)data_out + 2*5)[1]; ># 246 "numpy/core/src/multiarray/einsum.c.src" > > > > > ((npy_longdouble *)data_out + 2*6)[0] = > ((npy_longdouble *)data0 + 2*6)[0] + > ((npy_longdouble *)data_out + 2*6)[0]; > ((npy_longdouble *)data_out + 2*6)[1] = > ((npy_longdouble *)data0 + 2*6)[1] + > ((npy_longdouble *)data_out + 2*6)[1]; ># 246 "numpy/core/src/multiarray/einsum.c.src" > > > > > ((npy_longdouble *)data_out + 2*7)[0] = > ((npy_longdouble *)data0 + 2*7)[0] + > ((npy_longdouble *)data_out + 2*7)[0]; > ((npy_longdouble *)data_out + 2*7)[1] = > ((npy_longdouble *)data0 + 2*7)[1] + > ((npy_longdouble *)data_out + 2*7)[1]; > > > data0 += 8; > data_out += 8; > } > > > goto finish_after_unrolled_loop; >} ># 1568 "numpy/core/src/multiarray/einsum.c.src" >static void >clongdouble_sum_of_products_contig_outstride0_one(int nop, char **dataptr, > npy_intp *strides, npy_intp count) >{ > > npy_longdouble accum_re = 0, accum_im = 0; > npy_longdouble *data0 = (npy_longdouble *)dataptr[0]; ># 1587 "numpy/core/src/multiarray/einsum.c.src" > ; > > > >finish_after_unrolled_loop: > switch (count) { ># 1051 "numpy/core/src/multiarray/einsum.c.src" > case 6+1: > > > > accum_re += data0[2*6+0]; > accum_im += data0[2*6+1]; ># 1051 "numpy/core/src/multiarray/einsum.c.src" > case 5+1: > > > > accum_re += data0[2*5+0]; > accum_im += data0[2*5+1]; ># 1051 "numpy/core/src/multiarray/einsum.c.src" > case 4+1: > > > > accum_re += data0[2*4+0]; > accum_im += data0[2*4+1]; ># 1051 "numpy/core/src/multiarray/einsum.c.src" > case 3+1: > > > > accum_re += data0[2*3+0]; > accum_im += data0[2*3+1]; ># 1051 "numpy/core/src/multiarray/einsum.c.src" > case 2+1: > > > > accum_re += data0[2*2+0]; > accum_im += data0[2*2+1]; ># 1051 "numpy/core/src/multiarray/einsum.c.src" > case 1+1: > > > > accum_re += data0[2*1+0]; > accum_im += data0[2*1+1]; ># 1051 "numpy/core/src/multiarray/einsum.c.src" > case 0+1: > > > > accum_re += data0[2*0+0]; > accum_im += data0[2*0+1]; > > > case 0: > > ((npy_longdouble *)dataptr[1])[0] += accum_re; > ((npy_longdouble *)dataptr[1])[1] += accum_im; > > > > > return; > } ># 1157 "numpy/core/src/multiarray/einsum.c.src" > while (count >= 8) { > count -= 8; ># 1164 "numpy/core/src/multiarray/einsum.c.src" > > > > accum_re += data0[2*0+0]; > accum_im += data0[2*0+1]; ># 1164 "numpy/core/src/multiarray/einsum.c.src" > > > > accum_re += data0[2*1+0]; > accum_im += data0[2*1+1]; ># 1164 "numpy/core/src/multiarray/einsum.c.src" > > > > accum_re += data0[2*2+0]; > accum_im += data0[2*2+1]; ># 1164 "numpy/core/src/multiarray/einsum.c.src" > > > > accum_re += data0[2*3+0]; > accum_im += data0[2*3+1]; ># 1164 "numpy/core/src/multiarray/einsum.c.src" > > > > accum_re += data0[2*4+0]; > accum_im += data0[2*4+1]; ># 1164 "numpy/core/src/multiarray/einsum.c.src" > > > > accum_re += data0[2*5+0]; > accum_im += data0[2*5+1]; ># 1164 "numpy/core/src/multiarray/einsum.c.src" > > > > accum_re += data0[2*6+0]; > accum_im += data0[2*6+1]; ># 1164 "numpy/core/src/multiarray/einsum.c.src" > > > > accum_re += data0[2*7+0]; > accum_im += data0[2*7+1]; > > > > > > > > data0 += 8*2; > > } ># 1195 "numpy/core/src/multiarray/einsum.c.src" > goto finish_after_unrolled_loop; >} > > > >static void >clongdouble_sum_of_products_outstride0_one(int nop, char **dataptr, > npy_intp *strides, npy_intp count) >{ > > npy_longdouble accum_re = 0, accum_im = 0; > > > > > > char *data0 = dataptr[0]; > npy_intp stride0 = strides[0]; ># 1223 "numpy/core/src/multiarray/einsum.c.src" > ; > > > while (count--) { ># 1256 "numpy/core/src/multiarray/einsum.c.src" > accum_re += ((npy_longdouble *)data0)[0]; > accum_im += ((npy_longdouble *)data0)[1]; > data0 += stride0; ># 1284 "numpy/core/src/multiarray/einsum.c.src" > } > > > > ((npy_longdouble *)dataptr[1])[0] += accum_re; > ((npy_longdouble *)dataptr[1])[1] += accum_im; ># 1304 "numpy/core/src/multiarray/einsum.c.src" >} ># 107 "numpy/core/src/multiarray/einsum.c.src" >static void >clongdouble_sum_of_products_two(int nop, char **dataptr, > npy_intp *strides, npy_intp count) >{ ># 128 "numpy/core/src/multiarray/einsum.c.src" > ; > > while (count--) { ># 179 "numpy/core/src/multiarray/einsum.c.src" > npy_longdouble re, im, tmp; > int i; > re = ((npy_longdouble *)dataptr[0])[0]; > im = ((npy_longdouble *)dataptr[0])[1]; > for (i = 1; i < 2; ++i) { > tmp = re * ((npy_longdouble *)dataptr[i])[0] - > im * ((npy_longdouble *)dataptr[i])[1]; > im = re * ((npy_longdouble *)dataptr[i])[1] + > im * ((npy_longdouble *)dataptr[i])[0]; > re = tmp; > } > ((npy_longdouble *)dataptr[2])[0] = re + > ((npy_longdouble *)dataptr[2])[0]; > ((npy_longdouble *)dataptr[2])[1] = im + > ((npy_longdouble *)dataptr[2])[1]; > > for (i = 0; i <= 2; ++i) { > dataptr[i] += strides[i]; > } > > > > } >} ># 1686 "numpy/core/src/multiarray/einsum.c.src" >static void >clongdouble_sum_of_products_contig_two(int nop, char **dataptr, > npy_intp *(__NPY_UNUSED_TAGGEDstrides) __attribute__ ((__unused__)), npy_intp count) >{ > ; > > > while (count--) { ># 1711 "numpy/core/src/multiarray/einsum.c.src" > npy_longdouble re, im, tmp; > int i; > re = ((npy_longdouble *)dataptr[0])[0]; > im = ((npy_longdouble *)dataptr[0])[1]; > for (i = 1; i < 2; ++i) { > tmp = re * ((npy_longdouble *)dataptr[i])[0] - > im * ((npy_longdouble *)dataptr[i])[1]; > im = re * ((npy_longdouble *)dataptr[i])[1] + > im * ((npy_longdouble *)dataptr[i])[0]; > re = tmp; > } > ((npy_longdouble *)dataptr[2])[0] = re + > ((npy_longdouble *)dataptr[2])[0]; > ((npy_longdouble *)dataptr[2])[1] = im + > ((npy_longdouble *)dataptr[2])[1]; > > for (i = 0; i <= 2; ++i) { > dataptr[i] += sizeof(npy_clongdouble); > } > > > } >} ># 2070 "numpy/core/src/multiarray/einsum.c.src" >static void >clongdouble_sum_of_products_outstride0_two(int nop, char **dataptr, > npy_intp *strides, npy_intp count) >{ > > npy_longdouble accum_re = 0, accum_im = 0; ># 2093 "numpy/core/src/multiarray/einsum.c.src" > ; > > > while (count--) { ># 2135 "numpy/core/src/multiarray/einsum.c.src" > npy_longdouble re, im, tmp; > int i; > re = ((npy_longdouble *)dataptr[0])[0]; > im = ((npy_longdouble *)dataptr[0])[1]; > for (i = 1; i < 2; ++i) { > tmp = re * ((npy_longdouble *)dataptr[i])[0] - > im * ((npy_longdouble *)dataptr[i])[1]; > im = re * ((npy_longdouble *)dataptr[i])[1] + > im * ((npy_longdouble *)dataptr[i])[0]; > re = tmp; > } > accum_re += re; > accum_im += im; > for (i = 0; i < 2; ++i) { > dataptr[i] += strides[i]; > } > > > > } > > > > ((npy_longdouble *)dataptr[2])[0] += accum_re; > ((npy_longdouble *)dataptr[2])[1] += accum_im; ># 2174 "numpy/core/src/multiarray/einsum.c.src" >} ># 107 "numpy/core/src/multiarray/einsum.c.src" >static void >clongdouble_sum_of_products_three(int nop, char **dataptr, > npy_intp *strides, npy_intp count) >{ ># 128 "numpy/core/src/multiarray/einsum.c.src" > ; > > while (count--) { ># 179 "numpy/core/src/multiarray/einsum.c.src" > npy_longdouble re, im, tmp; > int i; > re = ((npy_longdouble *)dataptr[0])[0]; > im = ((npy_longdouble *)dataptr[0])[1]; > for (i = 1; i < 3; ++i) { > tmp = re * ((npy_longdouble *)dataptr[i])[0] - > im * ((npy_longdouble *)dataptr[i])[1]; > im = re * ((npy_longdouble *)dataptr[i])[1] + > im * ((npy_longdouble *)dataptr[i])[0]; > re = tmp; > } > ((npy_longdouble *)dataptr[3])[0] = re + > ((npy_longdouble *)dataptr[3])[0]; > ((npy_longdouble *)dataptr[3])[1] = im + > ((npy_longdouble *)dataptr[3])[1]; > > for (i = 0; i <= 3; ++i) { > dataptr[i] += strides[i]; > } > > > > } >} ># 1686 "numpy/core/src/multiarray/einsum.c.src" >static void >clongdouble_sum_of_products_contig_three(int nop, char **dataptr, > npy_intp *(__NPY_UNUSED_TAGGEDstrides) __attribute__ ((__unused__)), npy_intp count) >{ > ; > > > while (count--) { ># 1711 "numpy/core/src/multiarray/einsum.c.src" > npy_longdouble re, im, tmp; > int i; > re = ((npy_longdouble *)dataptr[0])[0]; > im = ((npy_longdouble *)dataptr[0])[1]; > for (i = 1; i < 3; ++i) { > tmp = re * ((npy_longdouble *)dataptr[i])[0] - > im * ((npy_longdouble *)dataptr[i])[1]; > im = re * ((npy_longdouble *)dataptr[i])[1] + > im * ((npy_longdouble *)dataptr[i])[0]; > re = tmp; > } > ((npy_longdouble *)dataptr[3])[0] = re + > ((npy_longdouble *)dataptr[3])[0]; > ((npy_longdouble *)dataptr[3])[1] = im + > ((npy_longdouble *)dataptr[3])[1]; > > for (i = 0; i <= 3; ++i) { > dataptr[i] += sizeof(npy_clongdouble); > } > > > } >} ># 2070 "numpy/core/src/multiarray/einsum.c.src" >static void >clongdouble_sum_of_products_outstride0_three(int nop, char **dataptr, > npy_intp *strides, npy_intp count) >{ > > npy_longdouble accum_re = 0, accum_im = 0; ># 2093 "numpy/core/src/multiarray/einsum.c.src" > ; > > > while (count--) { ># 2135 "numpy/core/src/multiarray/einsum.c.src" > npy_longdouble re, im, tmp; > int i; > re = ((npy_longdouble *)dataptr[0])[0]; > im = ((npy_longdouble *)dataptr[0])[1]; > for (i = 1; i < 3; ++i) { > tmp = re * ((npy_longdouble *)dataptr[i])[0] - > im * ((npy_longdouble *)dataptr[i])[1]; > im = re * ((npy_longdouble *)dataptr[i])[1] + > im * ((npy_longdouble *)dataptr[i])[0]; > re = tmp; > } > accum_re += re; > accum_im += im; > for (i = 0; i < 3; ++i) { > dataptr[i] += strides[i]; > } > > > > } > > > > ((npy_longdouble *)dataptr[3])[0] += accum_re; > ((npy_longdouble *)dataptr[3])[1] += accum_im; ># 2174 "numpy/core/src/multiarray/einsum.c.src" >} ># 107 "numpy/core/src/multiarray/einsum.c.src" >static void >clongdouble_sum_of_products_any(int nop, char **dataptr, > npy_intp *strides, npy_intp count) >{ ># 128 "numpy/core/src/multiarray/einsum.c.src" > ; > > while (count--) { ># 179 "numpy/core/src/multiarray/einsum.c.src" > npy_longdouble re, im, tmp; > int i; > re = ((npy_longdouble *)dataptr[0])[0]; > im = ((npy_longdouble *)dataptr[0])[1]; > for (i = 1; i < nop; ++i) { > tmp = re * ((npy_longdouble *)dataptr[i])[0] - > im * ((npy_longdouble *)dataptr[i])[1]; > im = re * ((npy_longdouble *)dataptr[i])[1] + > im * ((npy_longdouble *)dataptr[i])[0]; > re = tmp; > } > ((npy_longdouble *)dataptr[nop])[0] = re + > ((npy_longdouble *)dataptr[nop])[0]; > ((npy_longdouble *)dataptr[nop])[1] = im + > ((npy_longdouble *)dataptr[nop])[1]; > > for (i = 0; i <= nop; ++i) { > dataptr[i] += strides[i]; > } > > > > } >} ># 1686 "numpy/core/src/multiarray/einsum.c.src" >static void >clongdouble_sum_of_products_contig_any(int nop, char **dataptr, > npy_intp *(__NPY_UNUSED_TAGGEDstrides) __attribute__ ((__unused__)), npy_intp count) >{ > ; > > > while (count--) { ># 1711 "numpy/core/src/multiarray/einsum.c.src" > npy_longdouble re, im, tmp; > int i; > re = ((npy_longdouble *)dataptr[0])[0]; > im = ((npy_longdouble *)dataptr[0])[1]; > for (i = 1; i < nop; ++i) { > tmp = re * ((npy_longdouble *)dataptr[i])[0] - > im * ((npy_longdouble *)dataptr[i])[1]; > im = re * ((npy_longdouble *)dataptr[i])[1] + > im * ((npy_longdouble *)dataptr[i])[0]; > re = tmp; > } > ((npy_longdouble *)dataptr[nop])[0] = re + > ((npy_longdouble *)dataptr[nop])[0]; > ((npy_longdouble *)dataptr[nop])[1] = im + > ((npy_longdouble *)dataptr[nop])[1]; > > for (i = 0; i <= nop; ++i) { > dataptr[i] += sizeof(npy_clongdouble); > } > > > } >} ># 2070 "numpy/core/src/multiarray/einsum.c.src" >static void >clongdouble_sum_of_products_outstride0_any(int nop, char **dataptr, > npy_intp *strides, npy_intp count) >{ > > npy_longdouble accum_re = 0, accum_im = 0; ># 2093 "numpy/core/src/multiarray/einsum.c.src" > ; > > > while (count--) { ># 2135 "numpy/core/src/multiarray/einsum.c.src" > npy_longdouble re, im, tmp; > int i; > re = ((npy_longdouble *)dataptr[0])[0]; > im = ((npy_longdouble *)dataptr[0])[1]; > for (i = 1; i < nop; ++i) { > tmp = re * ((npy_longdouble *)dataptr[i])[0] - > im * ((npy_longdouble *)dataptr[i])[1]; > im = re * ((npy_longdouble *)dataptr[i])[1] + > im * ((npy_longdouble *)dataptr[i])[0]; > re = tmp; > } > accum_re += re; > accum_im += im; > for (i = 0; i < nop; ++i) { > dataptr[i] += strides[i]; > } > > > > } > > > > > > > ((npy_longdouble *)dataptr[nop])[0] += accum_re; > ((npy_longdouble *)dataptr[nop])[1] += accum_im; ># 2174 "numpy/core/src/multiarray/einsum.c.src" >} ># 1317 "numpy/core/src/multiarray/einsum.c.src" > >static void >bool_sum_of_products_one(int nop, char **dataptr, > npy_intp *strides, npy_intp count) >{ > > char *data0 = dataptr[0]; > npy_intp stride0 = strides[0]; ># 1335 "numpy/core/src/multiarray/einsum.c.src" > char *data_out = dataptr[1]; > npy_intp stride_out = strides[1]; > > > while (count--) { > > *(npy_bool *)data_out = *(npy_bool *)data0 || > *(npy_bool *)data_out; > data0 += stride0; > data_out += stride_out; ># 1372 "numpy/core/src/multiarray/einsum.c.src" > } >} > >static void >bool_sum_of_products_contig_one(int nop, char **dataptr, > npy_intp *strides, npy_intp count) >{ > > char *data0 = dataptr[0]; ># 1389 "numpy/core/src/multiarray/einsum.c.src" > char *data_out = dataptr[1]; > > > > >finish_after_unrolled_loop: > switch (count) { ># 1399 "numpy/core/src/multiarray/einsum.c.src" > case 6+1: > > *((npy_bool *)data_out + 6) = (*((npy_bool *)data0 + 6)) || > (*((npy_bool *)data_out + 6)); > data0 += 8*sizeof(npy_bool); > data_out += 8*sizeof(npy_bool); ># 1399 "numpy/core/src/multiarray/einsum.c.src" > case 5+1: > > *((npy_bool *)data_out + 5) = (*((npy_bool *)data0 + 5)) || > (*((npy_bool *)data_out + 5)); > data0 += 8*sizeof(npy_bool); > data_out += 8*sizeof(npy_bool); ># 1399 "numpy/core/src/multiarray/einsum.c.src" > case 4+1: > > *((npy_bool *)data_out + 4) = (*((npy_bool *)data0 + 4)) || > (*((npy_bool *)data_out + 4)); > data0 += 8*sizeof(npy_bool); > data_out += 8*sizeof(npy_bool); ># 1399 "numpy/core/src/multiarray/einsum.c.src" > case 3+1: > > *((npy_bool *)data_out + 3) = (*((npy_bool *)data0 + 3)) || > (*((npy_bool *)data_out + 3)); > data0 += 8*sizeof(npy_bool); > data_out += 8*sizeof(npy_bool); ># 1399 "numpy/core/src/multiarray/einsum.c.src" > case 2+1: > > *((npy_bool *)data_out + 2) = (*((npy_bool *)data0 + 2)) || > (*((npy_bool *)data_out + 2)); > data0 += 8*sizeof(npy_bool); > data_out += 8*sizeof(npy_bool); ># 1399 "numpy/core/src/multiarray/einsum.c.src" > case 1+1: > > *((npy_bool *)data_out + 1) = (*((npy_bool *)data0 + 1)) || > (*((npy_bool *)data_out + 1)); > data0 += 8*sizeof(npy_bool); > data_out += 8*sizeof(npy_bool); ># 1399 "numpy/core/src/multiarray/einsum.c.src" > case 0+1: > > *((npy_bool *)data_out + 0) = (*((npy_bool *)data0 + 0)) || > (*((npy_bool *)data_out + 0)); > data0 += 8*sizeof(npy_bool); > data_out += 8*sizeof(npy_bool); ># 1425 "numpy/core/src/multiarray/einsum.c.src" > case 0: > return; > } > > > > > while (count >= 8) { > count -= 8; ># 1442 "numpy/core/src/multiarray/einsum.c.src" > *((npy_bool *)data_out + 0) = (*((npy_bool *)data0 + 0)) || > (*((npy_bool *)data_out + 0)); ># 1442 "numpy/core/src/multiarray/einsum.c.src" > *((npy_bool *)data_out + 1) = (*((npy_bool *)data0 + 1)) || > (*((npy_bool *)data_out + 1)); ># 1442 "numpy/core/src/multiarray/einsum.c.src" > *((npy_bool *)data_out + 2) = (*((npy_bool *)data0 + 2)) || > (*((npy_bool *)data_out + 2)); ># 1442 "numpy/core/src/multiarray/einsum.c.src" > *((npy_bool *)data_out + 3) = (*((npy_bool *)data0 + 3)) || > (*((npy_bool *)data_out + 3)); ># 1442 "numpy/core/src/multiarray/einsum.c.src" > *((npy_bool *)data_out + 4) = (*((npy_bool *)data0 + 4)) || > (*((npy_bool *)data_out + 4)); ># 1442 "numpy/core/src/multiarray/einsum.c.src" > *((npy_bool *)data_out + 5) = (*((npy_bool *)data0 + 5)) || > (*((npy_bool *)data_out + 5)); ># 1442 "numpy/core/src/multiarray/einsum.c.src" > *((npy_bool *)data_out + 6) = (*((npy_bool *)data0 + 6)) || > (*((npy_bool *)data_out + 6)); ># 1442 "numpy/core/src/multiarray/einsum.c.src" > *((npy_bool *)data_out + 7) = (*((npy_bool *)data0 + 7)) || > (*((npy_bool *)data_out + 7)); > > data0 += 8*sizeof(npy_bool); > data_out += 8*sizeof(npy_bool); ># 1571 "numpy/core/src/multiarray/einsum.c.src" > } > > > > goto finish_after_unrolled_loop; > >} > >static void >bool_sum_of_products_outstride0_one(int nop, char **dataptr, > npy_intp *strides, npy_intp count) >{ > npy_bool accum = 0; > > > char *data0 = dataptr[0]; > npy_intp stride0 = strides[0]; ># 1598 "numpy/core/src/multiarray/einsum.c.src" > while (count--) { > > accum = *(npy_bool *)data0 || accum; > data0 += stride0; ># 1624 "numpy/core/src/multiarray/einsum.c.src" > } > > > *((npy_bool *)dataptr[1]) = accum || *((npy_bool *)dataptr[1]); > > > >} ># 1317 "numpy/core/src/multiarray/einsum.c.src" > >static void >bool_sum_of_products_two(int nop, char **dataptr, > npy_intp *strides, npy_intp count) >{ > > char *data0 = dataptr[0]; > npy_intp stride0 = strides[0]; > > > char *data1 = dataptr[1]; > npy_intp stride1 = strides[1]; > > > > > > > char *data_out = dataptr[2]; > npy_intp stride_out = strides[2]; > > > while (count--) { > > > > > > > *(npy_bool *)data_out = (*(npy_bool *)data0 && > *(npy_bool *)data1) || > *(npy_bool *)data_out; > data0 += stride0; > data1 += stride1; > data_out += stride_out; ># 1372 "numpy/core/src/multiarray/einsum.c.src" > } >} > >static void >bool_sum_of_products_contig_two(int nop, char **dataptr, > npy_intp *strides, npy_intp count) >{ > > char *data0 = dataptr[0]; > > > char *data1 = dataptr[1]; > > > > > > char *data_out = dataptr[2]; > > > > >finish_after_unrolled_loop: > switch (count) { ># 1399 "numpy/core/src/multiarray/einsum.c.src" > case 6+1: > > > > > > > *((npy_bool *)data_out + 6) = > ((*((npy_bool *)data0 + 6)) && > (*((npy_bool *)data1 + 6))) || > (*((npy_bool *)data_out + 6)); > data0 += 8*sizeof(npy_bool); > data1 += 8*sizeof(npy_bool); > data_out += 8*sizeof(npy_bool); ># 1399 "numpy/core/src/multiarray/einsum.c.src" > case 5+1: > > > > > > > *((npy_bool *)data_out + 5) = > ((*((npy_bool *)data0 + 5)) && > (*((npy_bool *)data1 + 5))) || > (*((npy_bool *)data_out + 5)); > data0 += 8*sizeof(npy_bool); > data1 += 8*sizeof(npy_bool); > data_out += 8*sizeof(npy_bool); ># 1399 "numpy/core/src/multiarray/einsum.c.src" > case 4+1: > > > > > > > *((npy_bool *)data_out + 4) = > ((*((npy_bool *)data0 + 4)) && > (*((npy_bool *)data1 + 4))) || > (*((npy_bool *)data_out + 4)); > data0 += 8*sizeof(npy_bool); > data1 += 8*sizeof(npy_bool); > data_out += 8*sizeof(npy_bool); ># 1399 "numpy/core/src/multiarray/einsum.c.src" > case 3+1: > > > > > > > *((npy_bool *)data_out + 3) = > ((*((npy_bool *)data0 + 3)) && > (*((npy_bool *)data1 + 3))) || > (*((npy_bool *)data_out + 3)); > data0 += 8*sizeof(npy_bool); > data1 += 8*sizeof(npy_bool); > data_out += 8*sizeof(npy_bool); ># 1399 "numpy/core/src/multiarray/einsum.c.src" > case 2+1: > > > > > > > *((npy_bool *)data_out + 2) = > ((*((npy_bool *)data0 + 2)) && > (*((npy_bool *)data1 + 2))) || > (*((npy_bool *)data_out + 2)); > data0 += 8*sizeof(npy_bool); > data1 += 8*sizeof(npy_bool); > data_out += 8*sizeof(npy_bool); ># 1399 "numpy/core/src/multiarray/einsum.c.src" > case 1+1: > > > > > > > *((npy_bool *)data_out + 1) = > ((*((npy_bool *)data0 + 1)) && > (*((npy_bool *)data1 + 1))) || > (*((npy_bool *)data_out + 1)); > data0 += 8*sizeof(npy_bool); > data1 += 8*sizeof(npy_bool); > data_out += 8*sizeof(npy_bool); ># 1399 "numpy/core/src/multiarray/einsum.c.src" > case 0+1: > > > > > > > *((npy_bool *)data_out + 0) = > ((*((npy_bool *)data0 + 0)) && > (*((npy_bool *)data1 + 0))) || > (*((npy_bool *)data_out + 0)); > data0 += 8*sizeof(npy_bool); > data1 += 8*sizeof(npy_bool); > data_out += 8*sizeof(npy_bool); ># 1425 "numpy/core/src/multiarray/einsum.c.src" > case 0: > return; > } > > > > > while (count >= 8) { > count -= 8; ># 1451 "numpy/core/src/multiarray/einsum.c.src" > *((npy_bool *)data_out + 0) = > ((*((npy_bool *)data0 + 0)) && > (*((npy_bool *)data1 + 0))) || > (*((npy_bool *)data_out + 0)); ># 1451 "numpy/core/src/multiarray/einsum.c.src" > *((npy_bool *)data_out + 1) = > ((*((npy_bool *)data0 + 1)) && > (*((npy_bool *)data1 + 1))) || > (*((npy_bool *)data_out + 1)); ># 1451 "numpy/core/src/multiarray/einsum.c.src" > *((npy_bool *)data_out + 2) = > ((*((npy_bool *)data0 + 2)) && > (*((npy_bool *)data1 + 2))) || > (*((npy_bool *)data_out + 2)); ># 1451 "numpy/core/src/multiarray/einsum.c.src" > *((npy_bool *)data_out + 3) = > ((*((npy_bool *)data0 + 3)) && > (*((npy_bool *)data1 + 3))) || > (*((npy_bool *)data_out + 3)); ># 1451 "numpy/core/src/multiarray/einsum.c.src" > *((npy_bool *)data_out + 4) = > ((*((npy_bool *)data0 + 4)) && > (*((npy_bool *)data1 + 4))) || > (*((npy_bool *)data_out + 4)); ># 1451 "numpy/core/src/multiarray/einsum.c.src" > *((npy_bool *)data_out + 5) = > ((*((npy_bool *)data0 + 5)) && > (*((npy_bool *)data1 + 5))) || > (*((npy_bool *)data_out + 5)); ># 1451 "numpy/core/src/multiarray/einsum.c.src" > *((npy_bool *)data_out + 6) = > ((*((npy_bool *)data0 + 6)) && > (*((npy_bool *)data1 + 6))) || > (*((npy_bool *)data_out + 6)); ># 1451 "numpy/core/src/multiarray/einsum.c.src" > *((npy_bool *)data_out + 7) = > ((*((npy_bool *)data0 + 7)) && > (*((npy_bool *)data1 + 7))) || > (*((npy_bool *)data_out + 7)); > > data0 += 8*sizeof(npy_bool); > data1 += 8*sizeof(npy_bool); > data_out += 8*sizeof(npy_bool); ># 1531 "numpy/core/src/multiarray/einsum.c.src" > } > > > > goto finish_after_unrolled_loop; > >} > >static void >bool_sum_of_products_outstride0_two(int nop, char **dataptr, > npy_intp *strides, npy_intp count) >{ > npy_bool accum = 0; > > > char *data0 = dataptr[0]; > npy_intp stride0 = strides[0]; > > > char *data1 = dataptr[1]; > npy_intp stride1 = strides[1]; > > > > > > > while (count--) { > > > > > accum = (*(npy_bool *)data0 && *(npy_bool *)data1) || accum; > data0 += stride0; > data1 += stride1; ># 1584 "numpy/core/src/multiarray/einsum.c.src" > } > > > *((npy_bool *)dataptr[2]) = accum || *((npy_bool *)dataptr[2]); > > > >} ># 1317 "numpy/core/src/multiarray/einsum.c.src" > >static void >bool_sum_of_products_three(int nop, char **dataptr, > npy_intp *strides, npy_intp count) >{ > > char *data0 = dataptr[0]; > npy_intp stride0 = strides[0]; > > > char *data1 = dataptr[1]; > npy_intp stride1 = strides[1]; > > > char *data2 = dataptr[2]; > npy_intp stride2 = strides[2]; > > > char *data_out = dataptr[3]; > npy_intp stride_out = strides[3]; > > > while (count--) { ># 1353 "numpy/core/src/multiarray/einsum.c.src" > *(npy_bool *)data_out = (*(npy_bool *)data0 && > *(npy_bool *)data1 && > *(npy_bool *)data2) || > *(npy_bool *)data_out; > data0 += stride0; > data1 += stride1; > data2 += stride2; > data_out += stride_out; ># 1372 "numpy/core/src/multiarray/einsum.c.src" > } >} > >static void >bool_sum_of_products_contig_three(int nop, char **dataptr, > npy_intp *strides, npy_intp count) >{ > > char *data0 = dataptr[0]; > > > char *data1 = dataptr[1]; > > > char *data2 = dataptr[2]; > > > char *data_out = dataptr[3]; > > > > >finish_after_unrolled_loop: > switch (count) { ># 1399 "numpy/core/src/multiarray/einsum.c.src" > case 6+1: ># 1414 "numpy/core/src/multiarray/einsum.c.src" > *((npy_bool *)data_out + 6) = > ((*((npy_bool *)data0 + 6)) && > (*((npy_bool *)data1 + 6)) && > (*((npy_bool *)data2 + 6))) || > (*((npy_bool *)data_out + 6)); > data0 += 8*sizeof(npy_bool); > data1 += 8*sizeof(npy_bool); > data2 += 8*sizeof(npy_bool); > data_out += 8*sizeof(npy_bool); ># 1399 "numpy/core/src/multiarray/einsum.c.src" > case 5+1: ># 1414 "numpy/core/src/multiarray/einsum.c.src" > *((npy_bool *)data_out + 5) = > ((*((npy_bool *)data0 + 5)) && > (*((npy_bool *)data1 + 5)) && > (*((npy_bool *)data2 + 5))) || > (*((npy_bool *)data_out + 5)); > data0 += 8*sizeof(npy_bool); > data1 += 8*sizeof(npy_bool); > data2 += 8*sizeof(npy_bool); > data_out += 8*sizeof(npy_bool); ># 1399 "numpy/core/src/multiarray/einsum.c.src" > case 4+1: ># 1414 "numpy/core/src/multiarray/einsum.c.src" > *((npy_bool *)data_out + 4) = > ((*((npy_bool *)data0 + 4)) && > (*((npy_bool *)data1 + 4)) && > (*((npy_bool *)data2 + 4))) || > (*((npy_bool *)data_out + 4)); > data0 += 8*sizeof(npy_bool); > data1 += 8*sizeof(npy_bool); > data2 += 8*sizeof(npy_bool); > data_out += 8*sizeof(npy_bool); ># 1399 "numpy/core/src/multiarray/einsum.c.src" > case 3+1: ># 1414 "numpy/core/src/multiarray/einsum.c.src" > *((npy_bool *)data_out + 3) = > ((*((npy_bool *)data0 + 3)) && > (*((npy_bool *)data1 + 3)) && > (*((npy_bool *)data2 + 3))) || > (*((npy_bool *)data_out + 3)); > data0 += 8*sizeof(npy_bool); > data1 += 8*sizeof(npy_bool); > data2 += 8*sizeof(npy_bool); > data_out += 8*sizeof(npy_bool); ># 1399 "numpy/core/src/multiarray/einsum.c.src" > case 2+1: ># 1414 "numpy/core/src/multiarray/einsum.c.src" > *((npy_bool *)data_out + 2) = > ((*((npy_bool *)data0 + 2)) && > (*((npy_bool *)data1 + 2)) && > (*((npy_bool *)data2 + 2))) || > (*((npy_bool *)data_out + 2)); > data0 += 8*sizeof(npy_bool); > data1 += 8*sizeof(npy_bool); > data2 += 8*sizeof(npy_bool); > data_out += 8*sizeof(npy_bool); ># 1399 "numpy/core/src/multiarray/einsum.c.src" > case 1+1: ># 1414 "numpy/core/src/multiarray/einsum.c.src" > *((npy_bool *)data_out + 1) = > ((*((npy_bool *)data0 + 1)) && > (*((npy_bool *)data1 + 1)) && > (*((npy_bool *)data2 + 1))) || > (*((npy_bool *)data_out + 1)); > data0 += 8*sizeof(npy_bool); > data1 += 8*sizeof(npy_bool); > data2 += 8*sizeof(npy_bool); > data_out += 8*sizeof(npy_bool); ># 1399 "numpy/core/src/multiarray/einsum.c.src" > case 0+1: ># 1414 "numpy/core/src/multiarray/einsum.c.src" > *((npy_bool *)data_out + 0) = > ((*((npy_bool *)data0 + 0)) && > (*((npy_bool *)data1 + 0)) && > (*((npy_bool *)data2 + 0))) || > (*((npy_bool *)data_out + 0)); > data0 += 8*sizeof(npy_bool); > data1 += 8*sizeof(npy_bool); > data2 += 8*sizeof(npy_bool); > data_out += 8*sizeof(npy_bool); > > > case 0: > return; > } > > > > > while (count >= 8) { > count -= 8; ># 1463 "numpy/core/src/multiarray/einsum.c.src" > *((npy_bool *)data_out + 0) = > ((*((npy_bool *)data0 + 0)) && > (*((npy_bool *)data1 + 0)) && > (*((npy_bool *)data2 + 0))) || > (*((npy_bool *)data_out + 0)); ># 1463 "numpy/core/src/multiarray/einsum.c.src" > *((npy_bool *)data_out + 1) = > ((*((npy_bool *)data0 + 1)) && > (*((npy_bool *)data1 + 1)) && > (*((npy_bool *)data2 + 1))) || > (*((npy_bool *)data_out + 1)); ># 1463 "numpy/core/src/multiarray/einsum.c.src" > *((npy_bool *)data_out + 2) = > ((*((npy_bool *)data0 + 2)) && > (*((npy_bool *)data1 + 2)) && > (*((npy_bool *)data2 + 2))) || > (*((npy_bool *)data_out + 2)); ># 1463 "numpy/core/src/multiarray/einsum.c.src" > *((npy_bool *)data_out + 3) = > ((*((npy_bool *)data0 + 3)) && > (*((npy_bool *)data1 + 3)) && > (*((npy_bool *)data2 + 3))) || > (*((npy_bool *)data_out + 3)); ># 1463 "numpy/core/src/multiarray/einsum.c.src" > *((npy_bool *)data_out + 4) = > ((*((npy_bool *)data0 + 4)) && > (*((npy_bool *)data1 + 4)) && > (*((npy_bool *)data2 + 4))) || > (*((npy_bool *)data_out + 4)); ># 1463 "numpy/core/src/multiarray/einsum.c.src" > *((npy_bool *)data_out + 5) = > ((*((npy_bool *)data0 + 5)) && > (*((npy_bool *)data1 + 5)) && > (*((npy_bool *)data2 + 5))) || > (*((npy_bool *)data_out + 5)); ># 1463 "numpy/core/src/multiarray/einsum.c.src" > *((npy_bool *)data_out + 6) = > ((*((npy_bool *)data0 + 6)) && > (*((npy_bool *)data1 + 6)) && > (*((npy_bool *)data2 + 6))) || > (*((npy_bool *)data_out + 6)); ># 1463 "numpy/core/src/multiarray/einsum.c.src" > *((npy_bool *)data_out + 7) = > ((*((npy_bool *)data0 + 7)) && > (*((npy_bool *)data1 + 7)) && > (*((npy_bool *)data2 + 7))) || > (*((npy_bool *)data_out + 7)); > > data0 += 8*sizeof(npy_bool); > data1 += 8*sizeof(npy_bool); > data2 += 8*sizeof(npy_bool); > data_out += 8*sizeof(npy_bool); ># 1484 "numpy/core/src/multiarray/einsum.c.src" > } > > > > goto finish_after_unrolled_loop; > >} > >static void >bool_sum_of_products_outstride0_three(int nop, char **dataptr, > npy_intp *strides, npy_intp count) >{ > npy_bool accum = 0; > > > char *data0 = dataptr[0]; > npy_intp stride0 = strides[0]; > > > char *data1 = dataptr[1]; > npy_intp stride1 = strides[1]; > > > char *data2 = dataptr[2]; > npy_intp stride2 = strides[2]; > > > while (count--) { ># 1520 "numpy/core/src/multiarray/einsum.c.src" > accum = (*(npy_bool *)data0 && > *(npy_bool *)data1 && > *(npy_bool *)data2) || accum; > data0 += stride0; > data1 += stride1; > data2 += stride2; ># 1537 "numpy/core/src/multiarray/einsum.c.src" > } > > > *((npy_bool *)dataptr[3]) = accum || *((npy_bool *)dataptr[3]); > > > >} ># 1317 "numpy/core/src/multiarray/einsum.c.src" > >static void >bool_sum_of_products_any(int nop, char **dataptr, > npy_intp *strides, npy_intp count) >{ ># 1339 "numpy/core/src/multiarray/einsum.c.src" > while (count--) { ># 1362 "numpy/core/src/multiarray/einsum.c.src" > npy_bool temp = *(npy_bool *)dataptr[0]; > int i; > for (i = 1; i < nop; ++i) { > temp = temp && *(npy_bool *)dataptr[i]; > } > *(npy_bool *)dataptr[nop] = temp || *(npy_bool *)dataptr[i]; > for (i = 0; i <= nop; ++i) { > dataptr[i] += strides[i]; > } > > } >} > >static void >bool_sum_of_products_contig_any(int nop, char **dataptr, > npy_intp *strides, npy_intp count) >{ ># 1595 "numpy/core/src/multiarray/einsum.c.src" > while (count--) { ># 1747 "numpy/core/src/multiarray/einsum.c.src" > npy_bool temp = *(npy_bool *)dataptr[0]; > int i; > for (i = 1; i < nop; ++i) { > temp = temp && *(npy_bool *)dataptr[i]; > } > *(npy_bool *)dataptr[nop] = temp || *(npy_bool *)dataptr[i]; > for (i = 0; i <= nop; ++i) { > dataptr[i] += sizeof(npy_bool); > } > > } > > > > > >} > >static void >bool_sum_of_products_outstride0_any(int nop, char **dataptr, > npy_intp *strides, npy_intp count) >{ > npy_bool accum = 0; ># 1784 "numpy/core/src/multiarray/einsum.c.src" > while (count--) { ># 1800 "numpy/core/src/multiarray/einsum.c.src" > npy_bool temp = *(npy_bool *)dataptr[0]; > int i; > for (i = 1; i < nop; ++i) { > temp = temp && *(npy_bool *)dataptr[i]; > } > accum = temp || accum; > for (i = 0; i <= nop; ++i) { > dataptr[i] += strides[i]; > } > > } > > > > > *((npy_bool *)dataptr[nop]) = accum || *((npy_bool *)dataptr[nop]); > >} > > > >typedef void (*sum_of_products_fn)(int, char **, npy_intp *, npy_intp); > > >static sum_of_products_fn >_contig_outstride0_unary_specialization_table[NPY_NTYPES] = { ># 1575 "numpy/core/src/multiarray/einsum.c.src" > > > > ((void *)0), ># 1575 "numpy/core/src/multiarray/einsum.c.src" > > &byte_sum_of_products_contig_outstride0_one, ># 1575 "numpy/core/src/multiarray/einsum.c.src" > > &ubyte_sum_of_products_contig_outstride0_one, ># 1575 "numpy/core/src/multiarray/einsum.c.src" > > &short_sum_of_products_contig_outstride0_one, ># 1575 "numpy/core/src/multiarray/einsum.c.src" > > &ushort_sum_of_products_contig_outstride0_one, ># 1575 "numpy/core/src/multiarray/einsum.c.src" > > &int_sum_of_products_contig_outstride0_one, ># 1575 "numpy/core/src/multiarray/einsum.c.src" > > &uint_sum_of_products_contig_outstride0_one, ># 1575 "numpy/core/src/multiarray/einsum.c.src" > > &long_sum_of_products_contig_outstride0_one, ># 1575 "numpy/core/src/multiarray/einsum.c.src" > > &ulong_sum_of_products_contig_outstride0_one, ># 1575 "numpy/core/src/multiarray/einsum.c.src" > > &longlong_sum_of_products_contig_outstride0_one, ># 1575 "numpy/core/src/multiarray/einsum.c.src" > > &ulonglong_sum_of_products_contig_outstride0_one, ># 1575 "numpy/core/src/multiarray/einsum.c.src" > > &float_sum_of_products_contig_outstride0_one, ># 1575 "numpy/core/src/multiarray/einsum.c.src" > > &double_sum_of_products_contig_outstride0_one, ># 1575 "numpy/core/src/multiarray/einsum.c.src" > > &longdouble_sum_of_products_contig_outstride0_one, ># 1575 "numpy/core/src/multiarray/einsum.c.src" > > &cfloat_sum_of_products_contig_outstride0_one, ># 1575 "numpy/core/src/multiarray/einsum.c.src" > > &cdouble_sum_of_products_contig_outstride0_one, ># 1575 "numpy/core/src/multiarray/einsum.c.src" > > &clongdouble_sum_of_products_contig_outstride0_one, ># 1575 "numpy/core/src/multiarray/einsum.c.src" > > > > ((void *)0), ># 1575 "numpy/core/src/multiarray/einsum.c.src" > > > > ((void *)0), ># 1575 "numpy/core/src/multiarray/einsum.c.src" > > > > ((void *)0), ># 1575 "numpy/core/src/multiarray/einsum.c.src" > > > > ((void *)0), ># 1575 "numpy/core/src/multiarray/einsum.c.src" > > > > ((void *)0), ># 1575 "numpy/core/src/multiarray/einsum.c.src" > > > > ((void *)0), ># 1575 "numpy/core/src/multiarray/einsum.c.src" > > &half_sum_of_products_contig_outstride0_one, > > > > >}; > >static sum_of_products_fn _binary_specialization_table[NPY_NTYPES][5] = { ># 1606 "numpy/core/src/multiarray/einsum.c.src" ># 1615 "numpy/core/src/multiarray/einsum.c.src" > {((void *)0), ((void *)0), ((void *)0), ((void *)0), ((void *)0)}, ># 1606 "numpy/core/src/multiarray/einsum.c.src" > >{ > &byte_sum_of_products_stride0_contig_outstride0_two, > &byte_sum_of_products_stride0_contig_outcontig_two, > &byte_sum_of_products_contig_stride0_outstride0_two, > &byte_sum_of_products_contig_stride0_outcontig_two, > &byte_sum_of_products_contig_contig_outstride0_two, >}, ># 1606 "numpy/core/src/multiarray/einsum.c.src" > >{ > &ubyte_sum_of_products_stride0_contig_outstride0_two, > &ubyte_sum_of_products_stride0_contig_outcontig_two, > &ubyte_sum_of_products_contig_stride0_outstride0_two, > &ubyte_sum_of_products_contig_stride0_outcontig_two, > &ubyte_sum_of_products_contig_contig_outstride0_two, >}, ># 1606 "numpy/core/src/multiarray/einsum.c.src" > >{ > &short_sum_of_products_stride0_contig_outstride0_two, > &short_sum_of_products_stride0_contig_outcontig_two, > &short_sum_of_products_contig_stride0_outstride0_two, > &short_sum_of_products_contig_stride0_outcontig_two, > &short_sum_of_products_contig_contig_outstride0_two, >}, ># 1606 "numpy/core/src/multiarray/einsum.c.src" > >{ > &ushort_sum_of_products_stride0_contig_outstride0_two, > &ushort_sum_of_products_stride0_contig_outcontig_two, > &ushort_sum_of_products_contig_stride0_outstride0_two, > &ushort_sum_of_products_contig_stride0_outcontig_two, > &ushort_sum_of_products_contig_contig_outstride0_two, >}, ># 1606 "numpy/core/src/multiarray/einsum.c.src" > >{ > &int_sum_of_products_stride0_contig_outstride0_two, > &int_sum_of_products_stride0_contig_outcontig_two, > &int_sum_of_products_contig_stride0_outstride0_two, > &int_sum_of_products_contig_stride0_outcontig_two, > &int_sum_of_products_contig_contig_outstride0_two, >}, ># 1606 "numpy/core/src/multiarray/einsum.c.src" > >{ > &uint_sum_of_products_stride0_contig_outstride0_two, > &uint_sum_of_products_stride0_contig_outcontig_two, > &uint_sum_of_products_contig_stride0_outstride0_two, > &uint_sum_of_products_contig_stride0_outcontig_two, > &uint_sum_of_products_contig_contig_outstride0_two, >}, ># 1606 "numpy/core/src/multiarray/einsum.c.src" > >{ > &long_sum_of_products_stride0_contig_outstride0_two, > &long_sum_of_products_stride0_contig_outcontig_two, > &long_sum_of_products_contig_stride0_outstride0_two, > &long_sum_of_products_contig_stride0_outcontig_two, > &long_sum_of_products_contig_contig_outstride0_two, >}, ># 1606 "numpy/core/src/multiarray/einsum.c.src" > >{ > &ulong_sum_of_products_stride0_contig_outstride0_two, > &ulong_sum_of_products_stride0_contig_outcontig_two, > &ulong_sum_of_products_contig_stride0_outstride0_two, > &ulong_sum_of_products_contig_stride0_outcontig_two, > &ulong_sum_of_products_contig_contig_outstride0_two, >}, ># 1606 "numpy/core/src/multiarray/einsum.c.src" > >{ > &longlong_sum_of_products_stride0_contig_outstride0_two, > &longlong_sum_of_products_stride0_contig_outcontig_two, > &longlong_sum_of_products_contig_stride0_outstride0_two, > &longlong_sum_of_products_contig_stride0_outcontig_two, > &longlong_sum_of_products_contig_contig_outstride0_two, >}, ># 1606 "numpy/core/src/multiarray/einsum.c.src" > >{ > &ulonglong_sum_of_products_stride0_contig_outstride0_two, > &ulonglong_sum_of_products_stride0_contig_outcontig_two, > &ulonglong_sum_of_products_contig_stride0_outstride0_two, > &ulonglong_sum_of_products_contig_stride0_outcontig_two, > &ulonglong_sum_of_products_contig_contig_outstride0_two, >}, ># 1606 "numpy/core/src/multiarray/einsum.c.src" > >{ > &float_sum_of_products_stride0_contig_outstride0_two, > &float_sum_of_products_stride0_contig_outcontig_two, > &float_sum_of_products_contig_stride0_outstride0_two, > &float_sum_of_products_contig_stride0_outcontig_two, > &float_sum_of_products_contig_contig_outstride0_two, >}, ># 1606 "numpy/core/src/multiarray/einsum.c.src" > >{ > &double_sum_of_products_stride0_contig_outstride0_two, > &double_sum_of_products_stride0_contig_outcontig_two, > &double_sum_of_products_contig_stride0_outstride0_two, > &double_sum_of_products_contig_stride0_outcontig_two, > &double_sum_of_products_contig_contig_outstride0_two, >}, ># 1606 "numpy/core/src/multiarray/einsum.c.src" > >{ > &longdouble_sum_of_products_stride0_contig_outstride0_two, > &longdouble_sum_of_products_stride0_contig_outcontig_two, > &longdouble_sum_of_products_contig_stride0_outstride0_two, > &longdouble_sum_of_products_contig_stride0_outcontig_two, > &longdouble_sum_of_products_contig_contig_outstride0_two, >}, ># 1606 "numpy/core/src/multiarray/einsum.c.src" ># 1615 "numpy/core/src/multiarray/einsum.c.src" > {((void *)0), ((void *)0), ((void *)0), ((void *)0), ((void *)0)}, ># 1606 "numpy/core/src/multiarray/einsum.c.src" ># 1615 "numpy/core/src/multiarray/einsum.c.src" > {((void *)0), ((void *)0), ((void *)0), ((void *)0), ((void *)0)}, ># 1606 "numpy/core/src/multiarray/einsum.c.src" ># 1615 "numpy/core/src/multiarray/einsum.c.src" > {((void *)0), ((void *)0), ((void *)0), ((void *)0), ((void *)0)}, ># 1606 "numpy/core/src/multiarray/einsum.c.src" ># 1615 "numpy/core/src/multiarray/einsum.c.src" > {((void *)0), ((void *)0), ((void *)0), ((void *)0), ((void *)0)}, ># 1606 "numpy/core/src/multiarray/einsum.c.src" ># 1615 "numpy/core/src/multiarray/einsum.c.src" > {((void *)0), ((void *)0), ((void *)0), ((void *)0), ((void *)0)}, ># 1606 "numpy/core/src/multiarray/einsum.c.src" ># 1615 "numpy/core/src/multiarray/einsum.c.src" > {((void *)0), ((void *)0), ((void *)0), ((void *)0), ((void *)0)}, ># 1606 "numpy/core/src/multiarray/einsum.c.src" ># 1615 "numpy/core/src/multiarray/einsum.c.src" > {((void *)0), ((void *)0), ((void *)0), ((void *)0), ((void *)0)}, ># 1606 "numpy/core/src/multiarray/einsum.c.src" ># 1615 "numpy/core/src/multiarray/einsum.c.src" > {((void *)0), ((void *)0), ((void *)0), ((void *)0), ((void *)0)}, ># 1606 "numpy/core/src/multiarray/einsum.c.src" ># 1615 "numpy/core/src/multiarray/einsum.c.src" > {((void *)0), ((void *)0), ((void *)0), ((void *)0), ((void *)0)}, ># 1606 "numpy/core/src/multiarray/einsum.c.src" > >{ > &half_sum_of_products_stride0_contig_outstride0_two, > &half_sum_of_products_stride0_contig_outcontig_two, > &half_sum_of_products_contig_stride0_outstride0_two, > &half_sum_of_products_contig_stride0_outcontig_two, > &half_sum_of_products_contig_contig_outstride0_two, >}, > > > > >}; > >static sum_of_products_fn _outstride0_specialized_table[NPY_NTYPES][4] = { ># 1643 "numpy/core/src/multiarray/einsum.c.src" > >{ > &bool_sum_of_products_outstride0_any, > &bool_sum_of_products_outstride0_one, > &bool_sum_of_products_outstride0_two, > &bool_sum_of_products_outstride0_three >}, ># 1643 "numpy/core/src/multiarray/einsum.c.src" > >{ > &byte_sum_of_products_outstride0_any, > &byte_sum_of_products_outstride0_one, > &byte_sum_of_products_outstride0_two, > &byte_sum_of_products_outstride0_three >}, ># 1643 "numpy/core/src/multiarray/einsum.c.src" > >{ > &ubyte_sum_of_products_outstride0_any, > &ubyte_sum_of_products_outstride0_one, > &ubyte_sum_of_products_outstride0_two, > &ubyte_sum_of_products_outstride0_three >}, ># 1643 "numpy/core/src/multiarray/einsum.c.src" > >{ > &short_sum_of_products_outstride0_any, > &short_sum_of_products_outstride0_one, > &short_sum_of_products_outstride0_two, > &short_sum_of_products_outstride0_three >}, ># 1643 "numpy/core/src/multiarray/einsum.c.src" > >{ > &ushort_sum_of_products_outstride0_any, > &ushort_sum_of_products_outstride0_one, > &ushort_sum_of_products_outstride0_two, > &ushort_sum_of_products_outstride0_three >}, ># 1643 "numpy/core/src/multiarray/einsum.c.src" > >{ > &int_sum_of_products_outstride0_any, > &int_sum_of_products_outstride0_one, > &int_sum_of_products_outstride0_two, > &int_sum_of_products_outstride0_three >}, ># 1643 "numpy/core/src/multiarray/einsum.c.src" > >{ > &uint_sum_of_products_outstride0_any, > &uint_sum_of_products_outstride0_one, > &uint_sum_of_products_outstride0_two, > &uint_sum_of_products_outstride0_three >}, ># 1643 "numpy/core/src/multiarray/einsum.c.src" > >{ > &long_sum_of_products_outstride0_any, > &long_sum_of_products_outstride0_one, > &long_sum_of_products_outstride0_two, > &long_sum_of_products_outstride0_three >}, ># 1643 "numpy/core/src/multiarray/einsum.c.src" > >{ > &ulong_sum_of_products_outstride0_any, > &ulong_sum_of_products_outstride0_one, > &ulong_sum_of_products_outstride0_two, > &ulong_sum_of_products_outstride0_three >}, ># 1643 "numpy/core/src/multiarray/einsum.c.src" > >{ > &longlong_sum_of_products_outstride0_any, > &longlong_sum_of_products_outstride0_one, > &longlong_sum_of_products_outstride0_two, > &longlong_sum_of_products_outstride0_three >}, ># 1643 "numpy/core/src/multiarray/einsum.c.src" > >{ > &ulonglong_sum_of_products_outstride0_any, > &ulonglong_sum_of_products_outstride0_one, > &ulonglong_sum_of_products_outstride0_two, > &ulonglong_sum_of_products_outstride0_three >}, ># 1643 "numpy/core/src/multiarray/einsum.c.src" > >{ > &float_sum_of_products_outstride0_any, > &float_sum_of_products_outstride0_one, > &float_sum_of_products_outstride0_two, > &float_sum_of_products_outstride0_three >}, ># 1643 "numpy/core/src/multiarray/einsum.c.src" > >{ > &double_sum_of_products_outstride0_any, > &double_sum_of_products_outstride0_one, > &double_sum_of_products_outstride0_two, > &double_sum_of_products_outstride0_three >}, ># 1643 "numpy/core/src/multiarray/einsum.c.src" > >{ > &longdouble_sum_of_products_outstride0_any, > &longdouble_sum_of_products_outstride0_one, > &longdouble_sum_of_products_outstride0_two, > &longdouble_sum_of_products_outstride0_three >}, ># 1643 "numpy/core/src/multiarray/einsum.c.src" > >{ > &cfloat_sum_of_products_outstride0_any, > &cfloat_sum_of_products_outstride0_one, > &cfloat_sum_of_products_outstride0_two, > &cfloat_sum_of_products_outstride0_three >}, ># 1643 "numpy/core/src/multiarray/einsum.c.src" > >{ > &cdouble_sum_of_products_outstride0_any, > &cdouble_sum_of_products_outstride0_one, > &cdouble_sum_of_products_outstride0_two, > &cdouble_sum_of_products_outstride0_three >}, ># 1643 "numpy/core/src/multiarray/einsum.c.src" > >{ > &clongdouble_sum_of_products_outstride0_any, > &clongdouble_sum_of_products_outstride0_one, > &clongdouble_sum_of_products_outstride0_two, > &clongdouble_sum_of_products_outstride0_three >}, ># 1643 "numpy/core/src/multiarray/einsum.c.src" ># 1651 "numpy/core/src/multiarray/einsum.c.src" > {((void *)0), ((void *)0), ((void *)0), ((void *)0)}, ># 1643 "numpy/core/src/multiarray/einsum.c.src" ># 1651 "numpy/core/src/multiarray/einsum.c.src" > {((void *)0), ((void *)0), ((void *)0), ((void *)0)}, ># 1643 "numpy/core/src/multiarray/einsum.c.src" ># 1651 "numpy/core/src/multiarray/einsum.c.src" > {((void *)0), ((void *)0), ((void *)0), ((void *)0)}, ># 1643 "numpy/core/src/multiarray/einsum.c.src" ># 1651 "numpy/core/src/multiarray/einsum.c.src" > {((void *)0), ((void *)0), ((void *)0), ((void *)0)}, ># 1643 "numpy/core/src/multiarray/einsum.c.src" ># 1651 "numpy/core/src/multiarray/einsum.c.src" > {((void *)0), ((void *)0), ((void *)0), ((void *)0)}, ># 1643 "numpy/core/src/multiarray/einsum.c.src" ># 1651 "numpy/core/src/multiarray/einsum.c.src" > {((void *)0), ((void *)0), ((void *)0), ((void *)0)}, ># 1643 "numpy/core/src/multiarray/einsum.c.src" > >{ > &half_sum_of_products_outstride0_any, > &half_sum_of_products_outstride0_one, > &half_sum_of_products_outstride0_two, > &half_sum_of_products_outstride0_three >}, > > > > >}; > >static sum_of_products_fn _allcontig_specialized_table[NPY_NTYPES][4] = { ># 1679 "numpy/core/src/multiarray/einsum.c.src" > >{ > &bool_sum_of_products_contig_any, > &bool_sum_of_products_contig_one, > &bool_sum_of_products_contig_two, > &bool_sum_of_products_contig_three >}, ># 1679 "numpy/core/src/multiarray/einsum.c.src" > >{ > &byte_sum_of_products_contig_any, > &byte_sum_of_products_contig_one, > &byte_sum_of_products_contig_two, > &byte_sum_of_products_contig_three >}, ># 1679 "numpy/core/src/multiarray/einsum.c.src" > >{ > &ubyte_sum_of_products_contig_any, > &ubyte_sum_of_products_contig_one, > &ubyte_sum_of_products_contig_two, > &ubyte_sum_of_products_contig_three >}, ># 1679 "numpy/core/src/multiarray/einsum.c.src" > >{ > &short_sum_of_products_contig_any, > &short_sum_of_products_contig_one, > &short_sum_of_products_contig_two, > &short_sum_of_products_contig_three >}, ># 1679 "numpy/core/src/multiarray/einsum.c.src" > >{ > &ushort_sum_of_products_contig_any, > &ushort_sum_of_products_contig_one, > &ushort_sum_of_products_contig_two, > &ushort_sum_of_products_contig_three >}, ># 1679 "numpy/core/src/multiarray/einsum.c.src" > >{ > &int_sum_of_products_contig_any, > &int_sum_of_products_contig_one, > &int_sum_of_products_contig_two, > &int_sum_of_products_contig_three >}, ># 1679 "numpy/core/src/multiarray/einsum.c.src" > >{ > &uint_sum_of_products_contig_any, > &uint_sum_of_products_contig_one, > &uint_sum_of_products_contig_two, > &uint_sum_of_products_contig_three >}, ># 1679 "numpy/core/src/multiarray/einsum.c.src" > >{ > &long_sum_of_products_contig_any, > &long_sum_of_products_contig_one, > &long_sum_of_products_contig_two, > &long_sum_of_products_contig_three >}, ># 1679 "numpy/core/src/multiarray/einsum.c.src" > >{ > &ulong_sum_of_products_contig_any, > &ulong_sum_of_products_contig_one, > &ulong_sum_of_products_contig_two, > &ulong_sum_of_products_contig_three >}, ># 1679 "numpy/core/src/multiarray/einsum.c.src" > >{ > &longlong_sum_of_products_contig_any, > &longlong_sum_of_products_contig_one, > &longlong_sum_of_products_contig_two, > &longlong_sum_of_products_contig_three >}, ># 1679 "numpy/core/src/multiarray/einsum.c.src" > >{ > &ulonglong_sum_of_products_contig_any, > &ulonglong_sum_of_products_contig_one, > &ulonglong_sum_of_products_contig_two, > &ulonglong_sum_of_products_contig_three >}, ># 1679 "numpy/core/src/multiarray/einsum.c.src" > >{ > &float_sum_of_products_contig_any, > &float_sum_of_products_contig_one, > &float_sum_of_products_contig_two, > &float_sum_of_products_contig_three >}, ># 1679 "numpy/core/src/multiarray/einsum.c.src" > >{ > &double_sum_of_products_contig_any, > &double_sum_of_products_contig_one, > &double_sum_of_products_contig_two, > &double_sum_of_products_contig_three >}, ># 1679 "numpy/core/src/multiarray/einsum.c.src" > >{ > &longdouble_sum_of_products_contig_any, > &longdouble_sum_of_products_contig_one, > &longdouble_sum_of_products_contig_two, > &longdouble_sum_of_products_contig_three >}, ># 1679 "numpy/core/src/multiarray/einsum.c.src" > >{ > &cfloat_sum_of_products_contig_any, > &cfloat_sum_of_products_contig_one, > &cfloat_sum_of_products_contig_two, > &cfloat_sum_of_products_contig_three >}, ># 1679 "numpy/core/src/multiarray/einsum.c.src" > >{ > &cdouble_sum_of_products_contig_any, > &cdouble_sum_of_products_contig_one, > &cdouble_sum_of_products_contig_two, > &cdouble_sum_of_products_contig_three >}, ># 1679 "numpy/core/src/multiarray/einsum.c.src" > >{ > &clongdouble_sum_of_products_contig_any, > &clongdouble_sum_of_products_contig_one, > &clongdouble_sum_of_products_contig_two, > &clongdouble_sum_of_products_contig_three >}, ># 1679 "numpy/core/src/multiarray/einsum.c.src" ># 1687 "numpy/core/src/multiarray/einsum.c.src" > {((void *)0), ((void *)0), ((void *)0), ((void *)0)}, ># 1679 "numpy/core/src/multiarray/einsum.c.src" ># 1687 "numpy/core/src/multiarray/einsum.c.src" > {((void *)0), ((void *)0), ((void *)0), ((void *)0)}, ># 1679 "numpy/core/src/multiarray/einsum.c.src" ># 1687 "numpy/core/src/multiarray/einsum.c.src" > {((void *)0), ((void *)0), ((void *)0), ((void *)0)}, ># 1679 "numpy/core/src/multiarray/einsum.c.src" ># 1687 "numpy/core/src/multiarray/einsum.c.src" > {((void *)0), ((void *)0), ((void *)0), ((void *)0)}, ># 1679 "numpy/core/src/multiarray/einsum.c.src" ># 1687 "numpy/core/src/multiarray/einsum.c.src" > {((void *)0), ((void *)0), ((void *)0), ((void *)0)}, ># 1679 "numpy/core/src/multiarray/einsum.c.src" ># 1687 "numpy/core/src/multiarray/einsum.c.src" > {((void *)0), ((void *)0), ((void *)0), ((void *)0)}, ># 1679 "numpy/core/src/multiarray/einsum.c.src" > >{ > &half_sum_of_products_contig_any, > &half_sum_of_products_contig_one, > &half_sum_of_products_contig_two, > &half_sum_of_products_contig_three >}, > > > > >}; > >static sum_of_products_fn _unspecialized_table[NPY_NTYPES][4] = { ># 1715 "numpy/core/src/multiarray/einsum.c.src" > >{ > &bool_sum_of_products_any, > &bool_sum_of_products_one, > &bool_sum_of_products_two, > &bool_sum_of_products_three >}, ># 1715 "numpy/core/src/multiarray/einsum.c.src" > >{ > &byte_sum_of_products_any, > &byte_sum_of_products_one, > &byte_sum_of_products_two, > &byte_sum_of_products_three >}, ># 1715 "numpy/core/src/multiarray/einsum.c.src" > >{ > &ubyte_sum_of_products_any, > &ubyte_sum_of_products_one, > &ubyte_sum_of_products_two, > &ubyte_sum_of_products_three >}, ># 1715 "numpy/core/src/multiarray/einsum.c.src" > >{ > &short_sum_of_products_any, > &short_sum_of_products_one, > &short_sum_of_products_two, > &short_sum_of_products_three >}, ># 1715 "numpy/core/src/multiarray/einsum.c.src" > >{ > &ushort_sum_of_products_any, > &ushort_sum_of_products_one, > &ushort_sum_of_products_two, > &ushort_sum_of_products_three >}, ># 1715 "numpy/core/src/multiarray/einsum.c.src" > >{ > &int_sum_of_products_any, > &int_sum_of_products_one, > &int_sum_of_products_two, > &int_sum_of_products_three >}, ># 1715 "numpy/core/src/multiarray/einsum.c.src" > >{ > &uint_sum_of_products_any, > &uint_sum_of_products_one, > &uint_sum_of_products_two, > &uint_sum_of_products_three >}, ># 1715 "numpy/core/src/multiarray/einsum.c.src" > >{ > &long_sum_of_products_any, > &long_sum_of_products_one, > &long_sum_of_products_two, > &long_sum_of_products_three >}, ># 1715 "numpy/core/src/multiarray/einsum.c.src" > >{ > &ulong_sum_of_products_any, > &ulong_sum_of_products_one, > &ulong_sum_of_products_two, > &ulong_sum_of_products_three >}, ># 1715 "numpy/core/src/multiarray/einsum.c.src" > >{ > &longlong_sum_of_products_any, > &longlong_sum_of_products_one, > &longlong_sum_of_products_two, > &longlong_sum_of_products_three >}, ># 1715 "numpy/core/src/multiarray/einsum.c.src" > >{ > &ulonglong_sum_of_products_any, > &ulonglong_sum_of_products_one, > &ulonglong_sum_of_products_two, > &ulonglong_sum_of_products_three >}, ># 1715 "numpy/core/src/multiarray/einsum.c.src" > >{ > &float_sum_of_products_any, > &float_sum_of_products_one, > &float_sum_of_products_two, > &float_sum_of_products_three >}, ># 1715 "numpy/core/src/multiarray/einsum.c.src" > >{ > &double_sum_of_products_any, > &double_sum_of_products_one, > &double_sum_of_products_two, > &double_sum_of_products_three >}, ># 1715 "numpy/core/src/multiarray/einsum.c.src" > >{ > &longdouble_sum_of_products_any, > &longdouble_sum_of_products_one, > &longdouble_sum_of_products_two, > &longdouble_sum_of_products_three >}, ># 1715 "numpy/core/src/multiarray/einsum.c.src" > >{ > &cfloat_sum_of_products_any, > &cfloat_sum_of_products_one, > &cfloat_sum_of_products_two, > &cfloat_sum_of_products_three >}, ># 1715 "numpy/core/src/multiarray/einsum.c.src" > >{ > &cdouble_sum_of_products_any, > &cdouble_sum_of_products_one, > &cdouble_sum_of_products_two, > &cdouble_sum_of_products_three >}, ># 1715 "numpy/core/src/multiarray/einsum.c.src" > >{ > &clongdouble_sum_of_products_any, > &clongdouble_sum_of_products_one, > &clongdouble_sum_of_products_two, > &clongdouble_sum_of_products_three >}, ># 1715 "numpy/core/src/multiarray/einsum.c.src" ># 1723 "numpy/core/src/multiarray/einsum.c.src" > {((void *)0), ((void *)0), ((void *)0), ((void *)0)}, ># 1715 "numpy/core/src/multiarray/einsum.c.src" ># 1723 "numpy/core/src/multiarray/einsum.c.src" > {((void *)0), ((void *)0), ((void *)0), ((void *)0)}, ># 1715 "numpy/core/src/multiarray/einsum.c.src" ># 1723 "numpy/core/src/multiarray/einsum.c.src" > {((void *)0), ((void *)0), ((void *)0), ((void *)0)}, ># 1715 "numpy/core/src/multiarray/einsum.c.src" ># 1723 "numpy/core/src/multiarray/einsum.c.src" > {((void *)0), ((void *)0), ((void *)0), ((void *)0)}, ># 1715 "numpy/core/src/multiarray/einsum.c.src" ># 1723 "numpy/core/src/multiarray/einsum.c.src" > {((void *)0), ((void *)0), ((void *)0), ((void *)0)}, ># 1715 "numpy/core/src/multiarray/einsum.c.src" ># 1723 "numpy/core/src/multiarray/einsum.c.src" > {((void *)0), ((void *)0), ((void *)0), ((void *)0)}, ># 1715 "numpy/core/src/multiarray/einsum.c.src" > >{ > &half_sum_of_products_any, > &half_sum_of_products_one, > &half_sum_of_products_two, > &half_sum_of_products_three >}, > > > > >}; > >static sum_of_products_fn >get_sum_of_products_function(int nop, int type_num, > npy_intp itemsize, npy_intp *fixed_strides) >{ > int iop; > > if (type_num >= NPY_NTYPES) { > return ((void *)0); > } > > > if (nop == 1 && fixed_strides[0] == itemsize && fixed_strides[1] == 0) { > sum_of_products_fn ret = > _contig_outstride0_unary_specialization_table[type_num]; > if (ret != ((void *)0)) { > return ret; > } > } > > > if (nop == 2) { > > int code; > code = (fixed_strides[0] == 0) ? 0 : > (fixed_strides[0] == itemsize) ? 2*2*1 : 8; > code += (fixed_strides[1] == 0) ? 0 : > (fixed_strides[1] == itemsize) ? 2*1 : 8; > code += (fixed_strides[2] == 0) ? 0 : > (fixed_strides[2] == itemsize) ? 1 : 8; > if (code >= 2 && code < 7) { > sum_of_products_fn ret = > _binary_specialization_table[type_num][code-2]; > if (ret != ((void *)0)) { > return ret; > } > } > } > > > if (fixed_strides[nop] == 0) { > return _outstride0_specialized_table[type_num][nop <= 3 ? nop : 0]; > } > > > for (iop = 0; iop < nop; ++iop) { > if (fixed_strides[iop] != itemsize) { > break; > } > } > > > if (iop == nop) { > return _allcontig_specialized_table[type_num][nop <= 3 ? nop : 0]; > } > > > return _unspecialized_table[type_num][nop <= 3 ? nop : 0]; >} > > > > > >static int >parse_operand_subscripts(char *subscripts, int length, > int ndim, > int iop, char *out_labels, > char *out_label_counts, > int *out_min_label, > int *out_max_label, > int *out_num_labels, > EINSUM_BROADCAST *out_broadcast) >{ > int i, idim, ndim_left, label; > int left_labels = 0, right_labels = 0, ellipsis = 0; > > > idim = ndim-1; > for (i = length-1; i >= 0; --i) { > label = subscripts[i]; > > if (label > 0 && ((*__ctype_b_loc ())[(int) ((label))] & (unsigned short int) _ISalpha)) { > if (idim >= 0) { > out_labels[idim--] = label; > > if (label < *out_min_label) { > *out_min_label = label; > } > if (label > *out_max_label) { > *out_max_label = label; > } > > if (out_label_counts[label] == 0) { > (*out_num_labels)++; > } > out_label_counts[label]++; > right_labels = 1; > } > else { > PyErr_Format(PyExc_ValueError, > "einstein sum subscripts string contains " > "too many subscripts for operand %d", iop); > return 0; > } > } > > else if (label == '.') { > > if (i >= 2 && subscripts[i-1] == '.' && subscripts[i-2] == '.') { > ellipsis = 1; > length = i-2; > break; > } > else { > PyErr_SetString(PyExc_ValueError, > "einstein sum subscripts string contains a " > "'.' that is not part of an ellipsis ('...')"); > return 0; > > } > } > else if (label != ' ') { > PyErr_Format(PyExc_ValueError, > "invalid subscript '%c' in einstein sum " > "subscripts string, subscripts must " > "be letters", (char)label); > return 0; > } > } > > if (!ellipsis && idim != -1) { > PyErr_Format(PyExc_ValueError, > "operand has more dimensions than subscripts " > "given in einstein sum, but no '...' ellipsis " > "provided to broadcast the extra dimensions."); > return 0; > } > > > ndim_left = idim+1; > idim = 0; > > > > > > if (i > 0) { > for (i = 0; i < length; ++i) { > label = subscripts[i]; > > if (label > 0 && ((*__ctype_b_loc ())[(int) ((label))] & (unsigned short int) _ISalnum)) { > if (idim < ndim_left) { > out_labels[idim++] = label; > > if (label < *out_min_label) { > *out_min_label = label; > } > if (label > *out_max_label) { > *out_max_label = label; > } > > if (out_label_counts[label] == 0) { > (*out_num_labels)++; > } > out_label_counts[label]++; > left_labels = 1; > } > else { > PyErr_Format(PyExc_ValueError, > "einstein sum subscripts string contains " > "too many subscripts for operand %d", iop); > return 0; > } > } > else if (label != ' ') { > PyErr_Format(PyExc_ValueError, > "invalid subscript '%c' in einstein sum " > "subscripts string, subscripts must " > "be letters", (char)label); > return 0; > } > } > } > > > while (idim < ndim_left) { > out_labels[idim++] = 0; > } ># 1925 "numpy/core/src/multiarray/einsum.c.src" > for (idim = 0; idim < ndim-1; ++idim) { > char *next; > > label = out_labels[idim]; > if (label > 0) { > > next = (char *)memchr(out_labels+idim+1, label, > ndim-idim-1); > while (next != ((void *)0)) { > > *next = (char)((out_labels+idim)-next); > > next = (char *)memchr(next+1, label, > out_labels+ndim-1-next); > } > } > } > > if (!ellipsis) { > *out_broadcast = BROADCAST_NONE; > } > else if (left_labels && right_labels) { > *out_broadcast = BROADCAST_MIDDLE; > } > else if (!left_labels) { > *out_broadcast = BROADCAST_RIGHT; > } > else { > *out_broadcast = BROADCAST_LEFT; > } > > return 1; >} > > > > > > >static int >parse_output_subscripts(char *subscripts, int length, > int ndim_broadcast, > const char *label_counts, > char *out_labels, > EINSUM_BROADCAST *out_broadcast) >{ > int i, nlabels, label, idim, ndim, ndim_left; > int left_labels = 0, right_labels = 0, ellipsis = 0; > > > nlabels = 0; > for (i = 0; i < length; ++i) { > label = subscripts[i]; > if (label > 0 && ((*__ctype_b_loc ())[(int) ((label))] & (unsigned short int) _ISalpha)) { > > if (memchr(subscripts+i+1, label, length-i-1) == ((void *)0)) { > > if (label_counts[label] == 0) { > PyErr_Format(PyExc_ValueError, > "einstein sum subscripts string included " > "output subscript '%c' which never appeared " > "in an input", (char)label); > return -1; > } > > nlabels++; > } > else { > PyErr_Format(PyExc_ValueError, > "einstein sum subscripts string includes " > "output subscript '%c' multiple times", > (char)label); > return -1; > } > } > else if (label != '.' && label != ' ') { > PyErr_Format(PyExc_ValueError, > "invalid subscript '%c' in einstein sum " > "subscripts string, subscripts must " > "be letters", (char)label); > return -1; > } > } > > > ndim = ndim_broadcast + nlabels; > > > idim = ndim-1; > for (i = length-1; i >= 0; --i) { > label = subscripts[i]; > > if (label != '.' && label != ' ') { > if (idim >= 0) { > out_labels[idim--] = label; > } > else { > PyErr_Format(PyExc_ValueError, > "einstein sum subscripts string contains " > "too many output subscripts"); > return -1; > } > right_labels = 1; > } > > else if (label == '.') { > > if (i >= 2 && subscripts[i-1] == '.' && subscripts[i-2] == '.') { > ellipsis = 1; > length = i-2; > break; > } > else { > PyErr_SetString(PyExc_ValueError, > "einstein sum subscripts string contains a " > "'.' that is not part of an ellipsis ('...')"); > return -1; > > } > } > } > > if (!ellipsis && idim != -1) { > PyErr_SetString(PyExc_ValueError, > "output has more dimensions than subscripts " > "given in einstein sum, but no '...' ellipsis " > "provided to broadcast the extra dimensions."); > return 0; > } > > > ndim_left = idim+1; > idim = 0; > > > > > > if (i > 0) { > for (i = 0; i < length; ++i) { > label = subscripts[i]; > > if (label != '.' && label != ' ') { > if (idim < ndim_left) { > out_labels[idim++] = label; > } > else { > PyErr_Format(PyExc_ValueError, > "einstein sum subscripts string contains " > "too many subscripts for the output"); > return -1; > } > left_labels = 1; > } > else { > PyErr_SetString(PyExc_ValueError, > "einstein sum subscripts string contains a " > "'.' that is not part of an ellipsis ('...')"); > return -1; > } > } > } > > > while (idim < ndim_left) { > out_labels[idim++] = 0; > } > > if (!ellipsis) { > *out_broadcast = BROADCAST_NONE; > } > else if (left_labels && right_labels) { > *out_broadcast = BROADCAST_MIDDLE; > } > else if (!left_labels) { > *out_broadcast = BROADCAST_RIGHT; > } > else { > *out_broadcast = BROADCAST_LEFT; > } > > return ndim; >} > > > > > > > >static int >get_single_op_view(PyArrayObject *op, int iop, char *labels, > int ndim_output, char *output_labels, > PyArrayObject **ret) >{ > npy_intp new_strides[32]; > npy_intp new_dims[32]; > char *out_label; > int label, i, idim, ndim, ibroadcast = 0; > > ndim = (((PyArrayObject *)(op))->nd); > > > for (idim = 0; idim < ndim_output; ++idim) { > new_dims[idim] = 0; > new_strides[idim] = 0; > } > > > for (idim = 0; idim < ndim; ++idim) { > > > > > label = (signed char)labels[idim]; > > if (label < 0) { > label = labels[idim+label]; > } > > if (label == 0) { > > for (; ibroadcast < ndim_output; ++ibroadcast) { > if (output_labels[ibroadcast] == 0) { > break; > } > } > if (ibroadcast == ndim_output) { > PyErr_SetString(PyExc_ValueError, > "output had too few broadcast dimensions"); > return 0; > } > new_dims[ibroadcast] = ((((PyArrayObject *)(op))->dimensions)[idim]); > new_strides[ibroadcast] = ((((PyArrayObject *)(op))->strides)[idim]); > ++ibroadcast; > } > else { > > out_label = (char *)memchr(output_labels, label, > ndim_output); > > if (out_label == ((void *)0)) { > break; > } > > i = out_label - output_labels; > if (new_dims[i] != 0 && > new_dims[i] != ((((PyArrayObject *)(op))->dimensions)[idim])) { > PyErr_Format(PyExc_ValueError, > "dimensions in operand %d for collapsing " > "index '%c' don't match (%d != %d)", > iop, label, (int)new_dims[i], > (int)((((PyArrayObject *)(op))->dimensions)[idim])); > return 0; > } > new_dims[i] = ((((PyArrayObject *)(op))->dimensions)[idim]); > new_strides[i] += ((((PyArrayObject *)(op))->strides)[idim]); > } > } > > if (idim == ndim) { > ( ((PyObject*)((((PyArrayObject *)(op))->descr)))->ob_refcnt++); > *ret = (PyArrayObject *)PyArray_NewFromDescr( > (((PyObject*)(op))->ob_type), > (((PyArrayObject *)(op))->descr), > ndim_output, new_dims, new_strides, > ((void *)(((PyArrayObject *)(op))->data)), > 0, (PyObject *)op); > > if (*ret == ((void *)0)) { > return 0; > } > if (!((((PyObject*)(*ret))->ob_type) == (&PyArray_Type) || PyType_IsSubtype((((PyObject*)(*ret))->ob_type), (&PyArray_Type)))) { > do { if ( --((PyObject*)(*ret))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(*ret)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(*ret)))); } while (0); > *ret = ((void *)0); > PyErr_SetString(PyExc_RuntimeError, > "NewFromDescr failed to return an array"); > return 0; > } > PyArray_UpdateFlags(*ret, > 0x0001|0x0100|0x0002); > ( ((PyObject*)(op))->ob_refcnt++); > (((PyArrayObject *)(*ret))->base) = (PyObject *)op; > return 1; > } > > > *ret = ((void *)0); > return 1; >} > >static PyArrayObject * >get_combined_dims_view(PyArrayObject *op, int iop, char *labels) >{ > npy_intp new_strides[32]; > npy_intp new_dims[32]; > int i, idim, ndim, icombine, combineoffset, label; > int icombinemap[32]; > > PyArrayObject *ret = ((void *)0); > > ndim = (((PyArrayObject *)(op))->nd); > > > for (idim = 0; idim < ndim; ++idim) { > new_dims[idim] = 0; > new_strides[idim] = 0; > } > > > icombine = 0; > for (idim = 0; idim < ndim; ++idim) { > > > > > label = (signed char)labels[idim]; > > if (label < 0) { > combineoffset = label; > label = labels[idim+label]; > } > else { > combineoffset = 0; > if (icombine != idim) { > labels[icombine] = labels[idim]; > } > icombinemap[idim] = icombine; > } > > if (label == 0) { > new_dims[icombine] = ((((PyArrayObject *)(op))->dimensions)[idim]); > new_strides[icombine] = ((((PyArrayObject *)(op))->strides)[idim]); > } > else { > > i = idim + combineoffset; > if (combineoffset < 0 && > new_dims[i] != ((((PyArrayObject *)(op))->dimensions)[idim])) { > PyErr_Format(PyExc_ValueError, > "dimensions in operand %d for collapsing " > "index '%c' don't match (%d != %d)", > iop, label, (int)new_dims[i], > (int)((((PyArrayObject *)(op))->dimensions)[idim])); > return ((void *)0); > } > i = icombinemap[i]; > new_dims[i] = ((((PyArrayObject *)(op))->dimensions)[idim]); > new_strides[i] += ((((PyArrayObject *)(op))->strides)[idim]); > } > > > if (combineoffset == 0) { > icombine++; > } > } > > > ndim = icombine; > > ( ((PyObject*)((((PyArrayObject *)(op))->descr)))->ob_refcnt++); > ret = (PyArrayObject *)PyArray_NewFromDescr( > (((PyObject*)(op))->ob_type), > (((PyArrayObject *)(op))->descr), > ndim, new_dims, new_strides, > ((void *)(((PyArrayObject *)(op))->data)), > ((((PyArrayObject *)(op))->flags & (0x0400)) == (0x0400)) ? 0x0400 : 0, > (PyObject *)op); > > if (ret == ((void *)0)) { > return ((void *)0); > } > if (!((((PyObject*)(ret))->ob_type) == (&PyArray_Type) || PyType_IsSubtype((((PyObject*)(ret))->ob_type), (&PyArray_Type)))) { > do { if ( --((PyObject*)(ret))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(ret)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(ret)))); } while (0); > PyErr_SetString(PyExc_RuntimeError, > "NewFromDescr failed to return an array"); > return ((void *)0); > } > PyArray_UpdateFlags(ret, > 0x0001|0x0100|0x0002); > ( ((PyObject*)(op))->ob_refcnt++); > (((PyArrayObject *)(ret))->base) = (PyObject *)op; > > return ret; >} > >static int >prepare_op_axes(int ndim, int iop, char *labels, int *axes, > int ndim_iter, char *iter_labels, EINSUM_BROADCAST broadcast) >{ > int i, label, ibroadcast; > > > if (broadcast == BROADCAST_RIGHT) { > > ibroadcast = ndim-1; > for (i = ndim_iter-1; i >= 0; --i) { > label = iter_labels[i]; > > > > > if (label == 0) { > while (ibroadcast >= 0 && labels[ibroadcast] != 0) { > --ibroadcast; > } > > > > > if (ibroadcast < 0) { > axes[i] = -1; > } > > else { > axes[i] = ibroadcast; > --ibroadcast; > } > } > > else { > char *match = memchr(labels, label, ndim); > > if (match == ((void *)0)) { > axes[i] = -1; > } > > else { > axes[i] = match - labels; > } > } > } > } > > else if (broadcast == BROADCAST_LEFT) { > > ibroadcast = 0; > for (i = 0; i < ndim_iter; ++i) { > label = iter_labels[i]; > > > > > if (label == 0) { > while (ibroadcast < ndim && labels[ibroadcast] != 0) { > ++ibroadcast; > } > > > > > if (ibroadcast >= ndim) { > axes[i] = -1; > } > > else { > axes[i] = ibroadcast; > ++ibroadcast; > } > } > > else { > char *match = memchr(labels, label, ndim); > > if (match == ((void *)0)) { > axes[i] = -1; > } > > else { > axes[i] = match - labels; > } > } > } > } > > else { > > ibroadcast = 0; > for (i = 0; i < ndim_iter; ++i) { > label = iter_labels[i]; > > > > > if (label == 0) { > while (ibroadcast < ndim && labels[ibroadcast] != 0) { > ++ibroadcast; > } > > > > > if (ibroadcast >= ndim) { > PyErr_Format(PyExc_ValueError, > "operand %d did not have enough dimensions " > "to match the broadcasting, and couldn't be " > "extended because einstein sum subscripts " > "were specified at both the start and end", > iop); > return 0; > } > > else { > axes[i] = ibroadcast; > ++ibroadcast; > } > } > > else { > char *match = memchr(labels, label, ndim); > > if (match == ((void *)0)) { > axes[i] = -1; > } > > else { > axes[i] = match - labels; > } > } > } > } > > return 1; >} > >static int >unbuffered_loop_nop1_ndim2(NpyIter *iter) >{ > npy_intp coord, shape[2], strides[2][2]; > char *ptrs[2][2], *ptr; > sum_of_products_fn sop; > > > > > ; > > NpyIter_GetShape(iter, shape); > memcpy(strides[0], NpyIter_GetAxisStrideArray(iter, 0), > 2*sizeof(npy_intp)); > memcpy(strides[1], NpyIter_GetAxisStrideArray(iter, 1), > 2*sizeof(npy_intp)); > memcpy(ptrs[0], NpyIter_GetInitialDataPtrArray(iter), > 2*sizeof(char *)); > memcpy(ptrs[1], ptrs[0], 2*sizeof(char*)); > > sop = get_sum_of_products_function(1, > NpyIter_GetDescrArray(iter)[0]->type_num, > NpyIter_GetDescrArray(iter)[0]->elsize, > strides[0]); > > if (sop == ((void *)0)) { > PyErr_SetString(PyExc_TypeError, > "invalid data type for einsum"); > return -1; > } > > > > > > for (coord = shape[1]; coord > 0; --coord) { > sop(1, ptrs[0], strides[0], shape[0]); > > ptr = ptrs[1][0] + strides[1][0]; > ptrs[0][0] = ptrs[1][0] = ptr; > ptr = ptrs[1][1] + strides[1][1]; > ptrs[0][1] = ptrs[1][1] = ptr; > } > > return 0; >} > >static int >unbuffered_loop_nop1_ndim3(NpyIter *iter) >{ > npy_intp coords[2], shape[3], strides[3][2]; > char *ptrs[3][2], *ptr; > sum_of_products_fn sop; > > > > > ; > > NpyIter_GetShape(iter, shape); > memcpy(strides[0], NpyIter_GetAxisStrideArray(iter, 0), > 2*sizeof(npy_intp)); > memcpy(strides[1], NpyIter_GetAxisStrideArray(iter, 1), > 2*sizeof(npy_intp)); > memcpy(strides[2], NpyIter_GetAxisStrideArray(iter, 2), > 2*sizeof(npy_intp)); > memcpy(ptrs[0], NpyIter_GetInitialDataPtrArray(iter), > 2*sizeof(char *)); > memcpy(ptrs[1], ptrs[0], 2*sizeof(char*)); > memcpy(ptrs[2], ptrs[0], 2*sizeof(char*)); > > sop = get_sum_of_products_function(1, > NpyIter_GetDescrArray(iter)[0]->type_num, > NpyIter_GetDescrArray(iter)[0]->elsize, > strides[0]); > > if (sop == ((void *)0)) { > PyErr_SetString(PyExc_TypeError, > "invalid data type for einsum"); > return -1; > } > > > > > > for (coords[1] = shape[2]; coords[1] > 0; --coords[1]) { > for (coords[0] = shape[1]; coords[0] > 0; --coords[0]) { > sop(1, ptrs[0], strides[0], shape[0]); > > ptr = ptrs[1][0] + strides[1][0]; > ptrs[0][0] = ptrs[1][0] = ptr; > ptr = ptrs[1][1] + strides[1][1]; > ptrs[0][1] = ptrs[1][1] = ptr; > } > ptr = ptrs[2][0] + strides[2][0]; > ptrs[0][0] = ptrs[1][0] = ptrs[2][0] = ptr; > ptr = ptrs[2][1] + strides[2][1]; > ptrs[0][1] = ptrs[1][1] = ptrs[2][1] = ptr; > } > > return 0; >} > >static int >unbuffered_loop_nop2_ndim2(NpyIter *iter) >{ > npy_intp coord, shape[2], strides[2][3]; > char *ptrs[2][3], *ptr; > sum_of_products_fn sop; > > > > > ; > > NpyIter_GetShape(iter, shape); > memcpy(strides[0], NpyIter_GetAxisStrideArray(iter, 0), > 3*sizeof(npy_intp)); > memcpy(strides[1], NpyIter_GetAxisStrideArray(iter, 1), > 3*sizeof(npy_intp)); > memcpy(ptrs[0], NpyIter_GetInitialDataPtrArray(iter), > 3*sizeof(char *)); > memcpy(ptrs[1], ptrs[0], 3*sizeof(char*)); > > sop = get_sum_of_products_function(2, > NpyIter_GetDescrArray(iter)[0]->type_num, > NpyIter_GetDescrArray(iter)[0]->elsize, > strides[0]); > > if (sop == ((void *)0)) { > PyErr_SetString(PyExc_TypeError, > "invalid data type for einsum"); > return -1; > } > > > > > > for (coord = shape[1]; coord > 0; --coord) { > sop(2, ptrs[0], strides[0], shape[0]); > > ptr = ptrs[1][0] + strides[1][0]; > ptrs[0][0] = ptrs[1][0] = ptr; > ptr = ptrs[1][1] + strides[1][1]; > ptrs[0][1] = ptrs[1][1] = ptr; > ptr = ptrs[1][2] + strides[1][2]; > ptrs[0][2] = ptrs[1][2] = ptr; > } > > return 0; >} > >static int >unbuffered_loop_nop2_ndim3(NpyIter *iter) >{ > npy_intp coords[2], shape[3], strides[3][3]; > char *ptrs[3][3], *ptr; > sum_of_products_fn sop; > > > > > ; > > NpyIter_GetShape(iter, shape); > memcpy(strides[0], NpyIter_GetAxisStrideArray(iter, 0), > 3*sizeof(npy_intp)); > memcpy(strides[1], NpyIter_GetAxisStrideArray(iter, 1), > 3*sizeof(npy_intp)); > memcpy(strides[2], NpyIter_GetAxisStrideArray(iter, 2), > 3*sizeof(npy_intp)); > memcpy(ptrs[0], NpyIter_GetInitialDataPtrArray(iter), > 3*sizeof(char *)); > memcpy(ptrs[1], ptrs[0], 3*sizeof(char*)); > memcpy(ptrs[2], ptrs[0], 3*sizeof(char*)); > > sop = get_sum_of_products_function(2, > NpyIter_GetDescrArray(iter)[0]->type_num, > NpyIter_GetDescrArray(iter)[0]->elsize, > strides[0]); > > if (sop == ((void *)0)) { > PyErr_SetString(PyExc_TypeError, > "invalid data type for einsum"); > return -1; > } > > > > > > for (coords[1] = shape[2]; coords[1] > 0; --coords[1]) { > for (coords[0] = shape[1]; coords[0] > 0; --coords[0]) { > sop(2, ptrs[0], strides[0], shape[0]); > > ptr = ptrs[1][0] + strides[1][0]; > ptrs[0][0] = ptrs[1][0] = ptr; > ptr = ptrs[1][1] + strides[1][1]; > ptrs[0][1] = ptrs[1][1] = ptr; > ptr = ptrs[1][2] + strides[1][2]; > ptrs[0][2] = ptrs[1][2] = ptr; > } > ptr = ptrs[2][0] + strides[2][0]; > ptrs[0][0] = ptrs[1][0] = ptrs[2][0] = ptr; > ptr = ptrs[2][1] + strides[2][1]; > ptrs[0][1] = ptrs[1][1] = ptrs[2][1] = ptr; > ptr = ptrs[2][2] + strides[2][2]; > ptrs[0][2] = ptrs[1][2] = ptrs[2][2] = ptr; > } > > return 0; >} ># 2709 "numpy/core/src/multiarray/einsum.c.src" >static PyArrayObject * >PyArray_EinsteinSum(char *subscripts, npy_intp nop, > PyArrayObject **op_in, > PyArray_Descr *dtype, > NPY_ORDER order, NPY_CASTING casting, > PyArrayObject *out) >{ > int iop, label, min_label = 127, max_label = 0, num_labels; > char label_counts[128]; > char op_labels[32][32]; > char output_labels[32], *iter_labels; > int idim, ndim_output, ndim_broadcast, ndim_iter; > > EINSUM_BROADCAST broadcast[32]; > PyArrayObject *op[32], *ret = ((void *)0); > PyArray_Descr *op_dtypes_array[32], **op_dtypes; > > int op_axes_arrays[32][32]; > int *op_axes[32]; > npy_uint32 op_flags[32]; > > NpyIter *iter; > sum_of_products_fn sop; > npy_intp fixed_strides[32]; > > > if (nop >= 32) { > PyErr_SetString(PyExc_ValueError, > "too many operands provided to einstein sum function"); > return ((void *)0); > } > else if (nop < 1) { > PyErr_SetString(PyExc_ValueError, > "not enough operands provided to einstein sum function"); > return ((void *)0); > } > > > memset(label_counts, 0, sizeof(label_counts)); > num_labels = 0; > for (iop = 0; iop < nop; ++iop) { > int length = (int)__extension__ ({ char __r0, __r1, __r2; (__builtin_constant_p (",-") && ((size_t)(const void *)((",-") + 1) - (size_t)(const void *)(",-") == 1) ? ((__builtin_constant_p (subscripts) && ((size_t)(const void *)((subscripts) + 1) - (size_t)(const void *)(subscripts) == 1)) ? __builtin_strcspn (subscripts, ",-") : ((__r0 = ((__const char *) (",-"))[0], __r0 == '\0') ? strlen (subscripts) : ((__r1 = ((__const char *) (",-"))[1], __r1 == '\0') ? __strcspn_c1 (subscripts, __r0) : ((__r2 = ((__const char *) (",-"))[2], __r2 == '\0') ? __strcspn_c2 (subscripts, __r0, __r1) : (((__const char *) (",-"))[3] == '\0' ? __strcspn_c3 (subscripts, __r0, __r1, __r2) : __builtin_strcspn (subscripts, ",-")))))) : __builtin_strcspn (subscripts, ",-")); }); > > if (iop == nop-1 && subscripts[length] == ',') { > PyErr_SetString(PyExc_ValueError, > "more operands provided to einstein sum function " > "than specified in the subscripts string"); > return ((void *)0); > } > else if(iop < nop-1 && subscripts[length] != ',') { > PyErr_SetString(PyExc_ValueError, > "fewer operands provided to einstein sum function " > "than specified in the subscripts string"); > return ((void *)0); > } > > if (!parse_operand_subscripts(subscripts, length, > (((PyArrayObject *)(op_in[iop]))->nd), > iop, op_labels[iop], label_counts, > &min_label, &max_label, &num_labels, > &broadcast[iop])) { > return ((void *)0); > } > > > subscripts += length; > if (iop < nop-1) { > subscripts++; > } > } > > > > > > ndim_broadcast = 0; > for (iop = 0; iop < nop; ++iop) { > npy_intp count_zeros = 0; > int ndim; > char *labels = op_labels[iop]; > > ndim = (((PyArrayObject *)(op_in[iop]))->nd); > for (idim = 0; idim < ndim; ++idim) { > if (labels[idim] == 0) { > ++count_zeros; > } > } > > if (count_zeros > ndim_broadcast) { > ndim_broadcast = count_zeros; > } > } > > > > > > if (subscripts[0] == '\0') { > char outsubscripts[32 + 3]; > int length; > > outsubscripts[0] = '.'; > outsubscripts[1] = '.'; > outsubscripts[2] = '.'; > length = 3; > for (label = min_label; label <= max_label; ++label) { > if (label_counts[label] == 1) { > if (length < 32 -1) { > outsubscripts[length++] = label; > } > else { > PyErr_SetString(PyExc_ValueError, > "einstein sum subscript string has too many " > "distinct labels"); > return ((void *)0); > } > } > } > > ndim_output = parse_output_subscripts(outsubscripts, length, > ndim_broadcast, label_counts, > output_labels, &broadcast[nop]); > } > else { > if (subscripts[0] != '-' || subscripts[1] != '>') { > PyErr_SetString(PyExc_ValueError, > "einstein sum subscript string does not " > "contain proper '->' output specified"); > return ((void *)0); > } > subscripts += 2; > > > ndim_output = parse_output_subscripts(subscripts, strlen(subscripts), > ndim_broadcast, label_counts, > output_labels, &broadcast[nop]); > } > if (ndim_output < 0) { > return ((void *)0); > } > > if (out != ((void *)0) && (((PyArrayObject *)(out))->nd) != ndim_output) { > PyErr_Format(PyExc_ValueError, > "out parameter does not have the correct number of " > "dimensions, has %d but should have %d", > (int)(((PyArrayObject *)(out))->nd), (int)ndim_output); > return ((void *)0); > } > > > for (iop = 0; iop < nop; ++iop) { > op[iop] = ((void *)0); > } > > > > > > for (iop = 0; iop < nop; ++iop) { > char *labels = op_labels[iop]; > int combine, ndim; > > ndim = (((PyArrayObject *)(op_in[iop]))->nd); > > > > > > > if (iop == 0 && nop == 1 && out == ((void *)0)) { > ret = ((void *)0); > > if (!get_single_op_view(op_in[iop], iop, labels, > ndim_output, output_labels, > &ret)) { > return ((void *)0); > } > > if (ret != ((void *)0)) { > return ret; > } > } > > > > > > > > combine = 0; > for (idim = 0; idim < ndim; ++idim) { > if ((signed char)labels[idim] < 0) { > combine = 1; > } > } > > > if (combine) { > op[iop] = get_combined_dims_view(op_in[iop], iop, labels); > if (op[iop] == ((void *)0)) { > goto fail; > } > } > > else { > ( ((PyObject*)(op_in[iop]))->ob_refcnt++); > op[iop] = op_in[iop]; > } > } > > > op[nop] = out; > > > > > > > iter_labels = output_labels; > ndim_iter = ndim_output; > for (label = min_label; label <= max_label; ++label) { > if (label_counts[label] > 0 && > memchr(output_labels, label, ndim_output) == ((void *)0)) { > if (ndim_iter >= 32) { > PyErr_SetString(PyExc_ValueError, > "too many subscripts in einsum"); > goto fail; > } > iter_labels[ndim_iter++] = label; > } > } > > > for (iop = 0; iop < nop; ++iop) { > op_axes[iop] = op_axes_arrays[iop]; > > if (!prepare_op_axes((((PyArrayObject *)(op[iop]))->nd), iop, op_labels[iop], > op_axes[iop], ndim_iter, iter_labels, broadcast[iop])) { > goto fail; > } > } > > > if (dtype == ((void *)0)) { > op_dtypes = ((void *)0); > } > else { > op_dtypes = op_dtypes_array; > for (iop = 0; iop <= nop; ++iop) { > op_dtypes[iop] = dtype; > } > } > > > op_axes[nop] = op_axes_arrays[nop]; > for (idim = 0; idim < ndim_output; ++idim) { > op_axes[nop][idim] = idim; > } > for (idim = ndim_output; idim < ndim_iter; ++idim) { > op_axes[nop][idim] = -1; > } > > > > for (iop = 0; iop < nop; ++iop) { > op_flags[iop] = 0x00020000| > 0x00080000| > 0x00100000; > } > op_flags[nop] = 0x00010000| > 0x00080000| > 0x00100000| > 0x01000000| > 0x08000000; > > > iter = NpyIter_AdvancedNew(nop+1, op, 0x00000008| > ((dtype != ((void *)0)) ? 0 : 0x00000010)| > 0x00000200| > 0x00000800| > 0x00000400| > 0x00000080| > 0x00000020| > 0x00000040, > order, casting, > op_flags, op_dtypes, > ndim_iter, op_axes, ((void *)0), 0); > > if (iter == ((void *)0)) { > goto fail; > } > > > ret = NpyIter_GetOperandArray(iter)[nop]; > ( ((PyObject*)(ret))->ob_refcnt++); > PyArray_FillWithZero(ret); ># 3013 "numpy/core/src/multiarray/einsum.c.src" > if (!NpyIter_RequiresBuffering(iter)) { > int ndim = NpyIter_GetNDim(iter); > switch (nop) { > case 1: > if (ndim == 2) { > if (unbuffered_loop_nop1_ndim2(iter) < 0) { > do { if ( --((PyObject*)(ret))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(ret)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(ret)))); } while (0); > ret = ((void *)0); > goto fail; > } > goto finish; > } > else if (ndim == 3) { > if (unbuffered_loop_nop1_ndim3(iter) < 0) { > do { if ( --((PyObject*)(ret))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(ret)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(ret)))); } while (0); > ret = ((void *)0); > goto fail; > } > goto finish; > } > break; > case 2: > if (ndim == 2) { > if (unbuffered_loop_nop2_ndim2(iter) < 0) { > do { if ( --((PyObject*)(ret))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(ret)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(ret)))); } while (0); > ret = ((void *)0); > goto fail; > } > goto finish; > } > else if (ndim == 3) { > if (unbuffered_loop_nop2_ndim3(iter) < 0) { > do { if ( --((PyObject*)(ret))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(ret)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(ret)))); } while (0); > ret = ((void *)0); > goto fail; > } > goto finish; > } > break; > } > } > > > if (NpyIter_Reset(iter, ((void *)0)) != 1) { > do { if ( --((PyObject*)(ret))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(ret)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(ret)))); } while (0); > goto fail; > } > > > > > > NpyIter_GetInnerFixedStrideArray(iter, fixed_strides); > sop = get_sum_of_products_function(nop, > NpyIter_GetDescrArray(iter)[0]->type_num, > NpyIter_GetDescrArray(iter)[0]->elsize, > fixed_strides); > > > > > > > if (sop == ((void *)0)) { > PyErr_SetString(PyExc_TypeError, > "invalid data type for einsum"); > do { if ( --((PyObject*)(ret))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(ret)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(ret)))); } while (0); > ret = ((void *)0); > } > else if (NpyIter_GetIterSize(iter) != 0) { > NpyIter_IterNextFunc *iternext; > char **dataptr; > npy_intp *stride; > npy_intp *countptr; > int needs_api = NpyIter_IterationNeedsAPI(iter); > PyThreadState *_save=((void *)0);; > > iternext = NpyIter_GetIterNext(iter, ((void *)0)); > if (iternext == ((void *)0)) { > NpyIter_Deallocate(iter); > do { if ( --((PyObject*)(ret))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(ret)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(ret)))); } while (0); > goto fail; > } > dataptr = NpyIter_GetDataPtrArray(iter); > stride = NpyIter_GetInnerStrideArray(iter); > countptr = NpyIter_GetInnerLoopSizePtr(iter); > > if (!needs_api) { > _save = PyEval_SaveThread();; > } > ; > do { > sop(nop, dataptr, stride, *countptr); > } while(iternext(iter)); > if (!needs_api) { > do {if (_save) PyEval_RestoreThread(_save);} while (0);; > } > > > if (needs_api && PyErr_Occurred()) { > do { if ( --((PyObject*)(ret))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(ret)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(ret)))); } while (0); > ret = ((void *)0); > } > } > >finish: > NpyIter_Deallocate(iter); > for (iop = 0; iop < nop; ++iop) { > do { if ( --((PyObject*)(op[iop]))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(op[iop])))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(op[iop])))); } while (0); > } > > return ret; > >fail: > for (iop = 0; iop < nop; ++iop) { > do { if ((op[iop]) == ((void *)0)) ; else do { if ( --((PyObject*)(op[iop]))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(op[iop])))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(op[iop])))); } while (0); } while (0); > } > > return ((void *)0); >} ># 43 "numpy/core/src/multiarray/multiarraymodule_onefile.c" 2 > > > > > > ># 1 "numpy/core/src/multiarray/arrayobject.c" 1 ># 56 "numpy/core/src/multiarray/arrayobject.c" >static npy_intp >PyArray_Size(PyObject *op) >{ > if (((((PyObject*)(op))->ob_type) == (&PyArray_Type) || PyType_IsSubtype((((PyObject*)(op))->ob_type), (&PyArray_Type)))) { > return PyArray_MultiplyList((((PyArrayObject *)((PyArrayObject *)op))->dimensions), (((PyArrayObject *)((PyArrayObject *)op))->nd)); > } > else { > return 0; > } >} > > >static int >PyArray_CopyObject(PyArrayObject *dest, PyObject *src_object) >{ > int ret; > PyArrayObject *src; > PyArray_Descr *dtype = ((void *)0); > int ndim = 0; > npy_intp dims[32]; > > ( ((PyObject*)(src_object))->ob_refcnt++); > > > > > if (dest->descr->type == NPY_CHARLTR && dest->nd > 0 && ((((((PyObject*)(src_object))->ob_type))->tp_flags & ((1L<<27))) != 0)) { > > npy_intp n_new, n_old; > char *new_string; > PyObject *tmp; > > n_new = dest->dimensions[dest->nd-1]; > n_old = PyString_Size(src_object); > if (n_new > n_old) { > new_string = (char *)malloc(n_new); > memmove(new_string, (((PyStringObject *)(src_object))->ob_sval), n_old); > memset(new_string + n_old, ' ', n_new - n_old); > tmp = PyString_FromStringAndSize(new_string, n_new); > free(new_string); > do { if ( --((PyObject*)(src_object))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(src_object)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(src_object)))); } while (0); > src_object = tmp; > } > } > > > > > > if (PyArray_GetArrayParamsFromObject(src_object, (((PyArrayObject *)(dest))->descr), > 0, &dtype, &ndim, dims, &src, ((void *)0)) < 0) { > do { if ( --((PyObject*)(src_object))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(src_object)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(src_object)))); } while (0); > return -1; > } > > > if (src == ((void *)0)) { > > if (ndim == 0) { > > if ((((((PyObject*)(src_object))->ob_type) == (&PyGenericArrType_Type) || PyType_IsSubtype((((PyObject*)(src_object))->ob_type), (&PyGenericArrType_Type))))) { > src = (PyArrayObject *)PyArray_FromScalar(src_object, dtype); > if (src == ((void *)0)) { > do { if ( --((PyObject*)(src_object))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(src_object)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(src_object)))); } while (0); > return -1; > } > } > else { > if (PyArray_MultiplyList((((PyArrayObject *)(dest))->dimensions), (((PyArrayObject *)(dest))->nd)) == 1) { > do { if ( --((PyObject*)(dtype))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(dtype)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(dtype)))); } while (0); > return (((PyArrayObject *)(dest))->descr)->f->setitem(src_object, > ((void *)(((PyArrayObject *)(dest))->data)), dest); > } > else { > src = (PyArrayObject *)PyArray_NewFromDescr(&PyArray_Type, > dtype, 0, ((void *)0), ((void *)0), > ((void *)0), 0, ((void *)0)); > if (src == ((void *)0)) { > do { if ( --((PyObject*)(src_object))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(src_object)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(src_object)))); } while (0); > return -1; > } > if ((((PyArrayObject *)(src))->descr)->f->setitem(src_object, > ((void *)(((PyArrayObject *)(src))->data)), src) < 0) { > do { if ( --((PyObject*)(src_object))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(src_object)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(src_object)))); } while (0); > do { if ( --((PyObject*)(src))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(src)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(src)))); } while (0); > return -1; > } > } > } > } > else { > > > > > if (ndim >= (((PyArrayObject *)(dest))->nd)) { > int res; > do { if ( --((PyObject*)(dtype))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(dtype)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(dtype)))); } while (0); > res = PyArray_AssignFromSequence(dest, src_object); > do { if ( --((PyObject*)(src_object))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(src_object)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(src_object)))); } while (0); > return res; > } > > src = (PyArrayObject *)PyArray_NewFromDescr(&PyArray_Type, > dtype, ndim, dims, ((void *)0), ((void *)0), > (((((PyArrayObject *)(dest))->flags & (0x0002)) == (0x0002)) && ((((PyArrayObject *)(dest))->nd) > 1)), ((void *)0)); > if (src == ((void *)0)) { > do { if ( --((PyObject*)(src_object))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(src_object)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(src_object)))); } while (0); > return -1; > } > if (PyArray_AssignFromSequence(src, src_object) < 0) { > do { if ( --((PyObject*)(src))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(src)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(src)))); } while (0); > do { if ( --((PyObject*)(src_object))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(src_object)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(src_object)))); } while (0); > return -1; > } > } > } > > > ret = PyArray_MoveInto(dest, src); > do { if ( --((PyObject*)(src))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(src)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(src)))); } while (0); > do { if ( --((PyObject*)(src_object))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(src_object)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(src_object)))); } while (0); > return ret; >} ># 202 "numpy/core/src/multiarray/arrayobject.c" >static int >PyArray_TypeNumFromName(char *str) >{ > int i; > PyArray_Descr *descr; > > for (i = 0; i < NPY_NUMUSERTYPES; i++) { > descr = userdescrs[i]; > if (__extension__ ({ size_t __s1_len, __s2_len; (__builtin_constant_p (descr->typeobj->tp_name) && __builtin_constant_p (str) && (__s1_len = strlen (descr->typeobj->tp_name), __s2_len = strlen (str), (!((size_t)(const void *)((descr->typeobj->tp_name) + 1) - (size_t)(const void *)(descr->typeobj->tp_name) == 1) || __s1_len >= 4) && (!((size_t)(const void *)((str) + 1) - (size_t)(const void *)(str) == 1) || __s2_len >= 4)) ? __builtin_strcmp (descr->typeobj->tp_name, str) : (__builtin_constant_p (descr->typeobj->tp_name) && ((size_t)(const void *)((descr->typeobj->tp_name) + 1) - (size_t)(const void *)(descr->typeobj->tp_name) == 1) && (__s1_len = strlen (descr->typeobj->tp_name), __s1_len < 4) ? (__builtin_constant_p (str) && ((size_t)(const void *)((str) + 1) - (size_t)(const void *)(str) == 1) ? __builtin_strcmp (descr->typeobj->tp_name, str) : (__extension__ ({ __const unsigned char *__s2 = (__const unsigned char *) (__const char *) (str); register int __result = (((__const unsigned char *) (__const char *) (descr->typeobj->tp_name))[0] - __s2[0]); if (__s1_len > 0 && __result == 0) { __result = (((__const unsigned char *) (__const char *) (descr->typeobj->tp_name))[1] - __s2[1]); if (__s1_len > 1 && __result == 0) { __result = (((__const unsigned char *) (__const char *) (descr->typeobj->tp_name))[2] - __s2[2]); if (__s1_len > 2 && __result == 0) __result = (((__const unsigned char *) (__const char *) (descr->typeobj->tp_name))[3] - __s2[3]); } } __result; }))) : (__builtin_constant_p (str) && ((size_t)(const void *)((str) + 1) - (size_t)(const void *)(str) == 1) && (__s2_len = strlen (str), __s2_len < 4) ? (__builtin_constant_p (descr->typeobj->tp_name) && ((size_t)(const void *)((descr->typeobj->tp_name) + 1) - (size_t)(const void *)(descr->typeobj->tp_name) == 1) ? __builtin_strcmp (descr->typeobj->tp_name, str) : (__extension__ ({ __const unsigned char *__s1 = (__const unsigned char *) (__const char *) (descr->typeobj->tp_name); register int __result = __s1[0] - ((__const unsigned char *) (__const char *) (str))[0]; if (__s2_len > 0 && __result == 0) { __result = (__s1[1] - ((__const unsigned char *) (__const char *) (str))[1]); if (__s2_len > 1 && __result == 0) { __result = (__s1[2] - ((__const unsigned char *) (__const char *) (str))[2]); if (__s2_len > 2 && __result == 0) __result = (__s1[3] - ((__const unsigned char *) (__const char *) (str))[3]); } } __result; }))) : __builtin_strcmp (descr->typeobj->tp_name, str)))); }) == 0) { > return descr->type_num; > } > } > return NPY_NOTYPE; >} > > > > > >static void >array_dealloc(PyArrayObject *self) { > > _array_dealloc_buffer_info(self); > > if (self->weakreflist != ((void *)0)) { > PyObject_ClearWeakRefs((PyObject *)self); > } > if (self->base) { ># 238 "numpy/core/src/multiarray/arrayobject.c" > if (self->flags & 0x1000) { > ((PyArrayObject *)self->base)->flags |= 0x0400; > ( ((PyObject*)(self))->ob_refcnt++); > if (PyArray_CopyAnyInto((PyArrayObject *)self->base, self) < 0) { > PyErr_Print(); > PyErr_Clear(); > } > > > > > } > > > > > do { if ( --((PyObject*)(self->base))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(self->base)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(self->base)))); } while (0); > } > > if ((self->flags & 0x0004) && self->data) { > > if ((((self->descr)->flags & (0x01)) == (0x01))) { > ( ((PyObject*)(self))->ob_refcnt++); > PyArray_XDECREF(self); > > > > > } > free(self->data); > } > > PyMem_Free(self->dimensions); > do { if ( --((PyObject*)(self->descr))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(self->descr)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(self->descr)))); } while (0); > (((PyObject*)(self))->ob_type)->tp_free((PyObject *)self); >} > >static int >dump_data(char **string, int *n, int *max_n, char *data, int nd, > npy_intp *dimensions, npy_intp *strides, PyArrayObject* self) >{ > PyArray_Descr *descr=self->descr; > PyObject *op, *sp; > char *ostring; > npy_intp i, N; > > > > > > > if (nd == 0) { > if ((op = descr->f->getitem(data, self)) == ((void *)0)) { > return -1; > } > sp = PyObject_Repr(op); > if (sp == ((void *)0)) { > do { if ( --((PyObject*)(op))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(op)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(op)))); } while (0); > return -1; > } > ostring = PyString_AsString(sp); > N = PyString_Size(sp)*sizeof(char); > *n += N; > do { if (*n >= *max_n-16) { *max_n *= 2; *string = (char *)PyMem_Realloc(*string, *max_n); }} while (0); > memmove(*string + (*n - N), ostring, N); > do { if ( --((PyObject*)(sp))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(sp)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(sp)))); } while (0); > do { if ( --((PyObject*)(op))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(op)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(op)))); } while (0); > return 0; > } > else { > do { if (*n >= *max_n-16) { *max_n *= 2; *string = (char *)PyMem_Realloc(*string, *max_n); }} while (0); > (*string)[*n] = '['; > *n += 1; > for (i = 0; i < dimensions[0]; i++) { > if (dump_data(string, n, max_n, > data + (*strides)*i, > nd - 1, dimensions + 1, > strides + 1, self) < 0) { > return -1; > } > do { if (*n >= *max_n-16) { *max_n *= 2; *string = (char *)PyMem_Realloc(*string, *max_n); }} while (0); > if (i < dimensions[0] - 1) { > (*string)[*n] = ','; > (*string)[*n+1] = ' '; > *n += 2; > } > } > do { if (*n >= *max_n-16) { *max_n *= 2; *string = (char *)PyMem_Realloc(*string, *max_n); }} while (0); > (*string)[*n] = ']'; > *n += 1; > return 0; > } > > >} > >static PyObject * >array_repr_builtin(PyArrayObject *self, int repr) >{ > PyObject *ret; > char *string; > int n, max_n; > > max_n = ((((PyArrayObject *)(self))->descr->elsize) * PyArray_MultiplyList((((PyArrayObject *)(self))->dimensions), (((PyArrayObject *)(self))->nd)))*4*sizeof(char) + 7; > > if ((string = (char *)PyMem_Malloc(max_n)) == ((void *)0)) { > PyErr_SetString(PyExc_MemoryError, "out of memory"); > return ((void *)0); > } > > if (repr) { > n = 6; > sprintf(string, "array("); > } > else { > n = 0; > } > if (dump_data(&string, &n, &max_n, self->data, > self->nd, self->dimensions, > self->strides, self) < 0) { > PyMem_Free(string); > return ((void *)0); > } > > if (repr) { > if ((((((((PyArrayObject *)(self))->descr->type_num)) >=NPY_STRING) && (((((PyArrayObject *)(self))->descr->type_num)) <=NPY_VOID)) || ((((((PyArrayObject *)(self))->descr->type_num)) >= NPY_USERDEF) && (((((PyArrayObject *)(self))->descr->type_num)) < NPY_USERDEF+ NPY_NUMUSERTYPES)))) { > char buf[100]; > PyOS_snprintf(buf, sizeof(buf), "%d", self->descr->elsize); > sprintf(string+n, ", '%c%s')", self->descr->type, buf); > ret = PyString_FromStringAndSize(string, n + 6 + strlen(buf)); > } > else { > sprintf(string+n, ", '%c')", self->descr->type); > ret = PyString_FromStringAndSize(string, n+6); > } > } > else { > ret = PyString_FromStringAndSize(string, n); > } > > PyMem_Free(string); > return ret; >} > >static PyObject *PyArray_StrFunction = ((void *)0); >static PyObject *PyArray_ReprFunction = ((void *)0); >static PyObject *PyArray_DatetimeParseFunction = ((void *)0); > > > > >static void >PyArray_SetStringFunction(PyObject *op, int repr) >{ > if (repr) { > > do { if ((PyArray_ReprFunction) == ((void *)0)) ; else do { if ( --((PyObject*)(PyArray_ReprFunction))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(PyArray_ReprFunction)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(PyArray_ReprFunction)))); } while (0); } while (0); > > do { if ((op) == ((void *)0)) ; else ( ((PyObject*)(op))->ob_refcnt++); } while (0); > > PyArray_ReprFunction = op; > } > else { > > do { if ((PyArray_StrFunction) == ((void *)0)) ; else do { if ( --((PyObject*)(PyArray_StrFunction))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(PyArray_StrFunction)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(PyArray_StrFunction)))); } while (0); } while (0); > > do { if ((op) == ((void *)0)) ; else ( ((PyObject*)(op))->ob_refcnt++); } while (0); > > PyArray_StrFunction = op; > } >} > > > > >static void >PyArray_SetDatetimeParseFunction(PyObject *op) >{ > > do { if ((PyArray_DatetimeParseFunction) == ((void *)0)) ; else do { if ( --((PyObject*)(PyArray_DatetimeParseFunction))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(PyArray_DatetimeParseFunction)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(PyArray_DatetimeParseFunction)))); } while (0); } while (0); > > do { if ((op) == ((void *)0)) ; else ( ((PyObject*)(op))->ob_refcnt++); } while (0); > > PyArray_DatetimeParseFunction = op; >} > > >static PyObject * >array_repr(PyArrayObject *self) >{ > PyObject *s, *arglist; > > if (PyArray_ReprFunction == ((void *)0)) { > s = array_repr_builtin(self, 1); > } > else { > arglist = _Py_BuildValue_SizeT("(O)", self); > s = PyEval_CallObjectWithKeywords(PyArray_ReprFunction, arglist, (PyObject *)((void *)0)); > do { if ( --((PyObject*)(arglist))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(arglist)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(arglist)))); } while (0); > } > return s; >} > >static PyObject * >array_str(PyArrayObject *self) >{ > PyObject *s, *arglist; > > if (PyArray_StrFunction == ((void *)0)) { > s = array_repr_builtin(self, 0); > } > else { > arglist = _Py_BuildValue_SizeT("(O)", self); > s = PyEval_CallObjectWithKeywords(PyArray_StrFunction, arglist, (PyObject *)((void *)0)); > do { if ( --((PyObject*)(arglist))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(arglist)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(arglist)))); } while (0); > } > return s; >} > > > > > >static int >PyArray_CompareUCS4(npy_ucs4 *s1, npy_ucs4 *s2, size_t len) >{ > npy_ucs4 c1, c2; > while(len-- > 0) { > c1 = *s1++; > c2 = *s2++; > if (c1 != c2) { > return (c1 < c2) ? -1 : 1; > } > } > return 0; >} > > > >static int >PyArray_CompareString(char *s1, char *s2, size_t len) >{ > const unsigned char *c1 = (unsigned char *)s1; > const unsigned char *c2 = (unsigned char *)s2; > size_t i; > > for(i = 0; i < len; ++i) { > if (c1[i] != c2[i]) { > return (c1[i] > c2[i]) ? 1 : -1; > } > } > return 0; >} ># 499 "numpy/core/src/multiarray/arrayobject.c" >static int >_myunincmp(npy_ucs4 *s1, npy_ucs4 *s2, int len1, int len2) >{ > npy_ucs4 *sptr; > npy_ucs4 *s1t=s1, *s2t=s2; > int val; > npy_intp size; > int diff; > > if ((npy_intp)s1 % sizeof(npy_ucs4) != 0) { > size = len1*sizeof(npy_ucs4); > s1t = malloc(size); > memcpy(s1t, s1, size); > } > if ((npy_intp)s2 % sizeof(npy_ucs4) != 0) { > size = len2*sizeof(npy_ucs4); > s2t = malloc(size); > memcpy(s2t, s2, size); > } > val = PyArray_CompareUCS4(s1t, s2t, (((len1)<(len2))?(len1):(len2))); > if ((val != 0) || (len1 == len2)) { > goto finish; > } > if (len2 > len1) { > sptr = s2t+len1; > val = -1; > diff = len2-len1; > } > else { > sptr = s1t+len2; > val = 1; > diff=len1-len2; > } > while (diff--) { > if (*sptr != 0) { > goto finish; > } > sptr++; > } > val = 0; > > finish: > if (s1t != s1) { > free(s1t); > } > if (s2t != s2) { > free(s2t); > } > return val; >} ># 559 "numpy/core/src/multiarray/arrayobject.c" >static int >_mystrncmp(char *s1, char *s2, int len1, int len2) >{ > char *sptr; > int val; > int diff; > > val = memcmp(s1, s2, (((len1)<(len2))?(len1):(len2))); > if ((val != 0) || (len1 == len2)) { > return val; > } > if (len2 > len1) { > sptr = s2 + len1; > val = -1; > diff = len2 - len1; > } > else { > sptr = s1 + len2; > val = 1; > diff = len1 - len2; > } > while (diff--) { > if (*sptr != 0) { > return val; > } > sptr++; > } > return 0; >} ># 598 "numpy/core/src/multiarray/arrayobject.c" >static void _rstripw(char *s, int n) >{ > int i; > for (i = n - 1; i >= 1; i--) { > int c = s[i]; > > if (!c || ((c==' ')||(c=='\t')||(c=='\n')||(c=='\r')||(c=='\v')||(c=='\f'))) { > s[i] = 0; > } > else { > break; > } > } >} > >static void _unistripw(npy_ucs4 *s, int n) >{ > int i; > for (i = n - 1; i >= 1; i--) { > npy_ucs4 c = s[i]; > if (!c || ((c==' ')||(c=='\t')||(c=='\n')||(c=='\r')||(c=='\v')||(c=='\f'))) { > s[i] = 0; > } > else { > break; > } > } >} > > >static char * >_char_copy_n_strip(char *original, char *temp, int nc) >{ > if (nc > 2048) { > temp = malloc(nc); > if (!temp) { > PyErr_NoMemory(); > return ((void *)0); > } > } > memcpy(temp, original, nc); > _rstripw(temp, nc); > return temp; >} > >static void >_char_release(char *ptr, int nc) >{ > if (nc > 2048) { > free(ptr); > } >} > >static char * >_uni_copy_n_strip(char *original, char *temp, int nc) >{ > if (nc*sizeof(npy_ucs4) > 2048) { > temp = malloc(nc*sizeof(npy_ucs4)); > if (!temp) { > PyErr_NoMemory(); > return ((void *)0); > } > } > memcpy(temp, original, nc*sizeof(npy_ucs4)); > _unistripw((npy_ucs4 *)temp, nc); > return temp; >} > >static void >_uni_release(char *ptr, int nc) >{ > if (nc*sizeof(npy_ucs4) > 2048) { > free(ptr); > } >} ># 713 "numpy/core/src/multiarray/arrayobject.c" >static int >_compare_strings(PyObject *result, PyArrayMultiIterObject *multi, > int cmp_op, void *func, int rstrip) >{ > PyArrayIterObject *iself, *iother; > npy_bool *dptr; > npy_intp size; > int val; > int N1, N2; > int (*compfunc)(void *, void *, int, int); > void (*relfunc)(char *, int); > char* (*stripfunc)(char *, char *, int); > > compfunc = func; > dptr = (npy_bool *)((void *)(((PyArrayObject *)(result))->data)); > iself = multi->iters[0]; > iother = multi->iters[1]; > size = multi->size; > N1 = iself->ao->descr->elsize; > N2 = iother->ao->descr->elsize; > if ((void *)compfunc == (void *)_myunincmp) { > N1 >>= 2; > N2 >>= 2; > stripfunc = _uni_copy_n_strip; > relfunc = _uni_release; > } > else { > stripfunc = _char_copy_n_strip; > relfunc = _char_release; > } > switch (cmp_op) { > case 2: > if (rstrip) { void *aptr, *bptr; char atemp[2048], btemp[2048]; while(size--) { aptr = stripfunc(iself->dataptr, atemp, N1); if (!aptr) return -1; bptr = stripfunc(iother->dataptr, btemp, N2); if (!bptr) { relfunc(aptr, N1); return -1; } val = compfunc(aptr, bptr, N1, N2); *dptr = (val == 0); { ((PyArrayIterObject *)(iself))->index++; if (((PyArrayIterObject *)(iself))->nd_m1 == 0) { { (((PyArrayIterObject *)(iself)))->dataptr += ((PyArrayIterObject *)(((PyArrayIterObject *)(iself))))->strides[0]; (((PyArrayIterObject *)(iself)))->coordinates[0]++; }; } else if (((PyArrayIterObject *)(iself))->contiguous) ((PyArrayIterObject *)(iself))->dataptr += ((PyArrayIterObject *)(iself))->ao->descr->elsize; else if (((PyArrayIterObject *)(iself))->nd_m1 == 1) { { if ((((PyArrayIterObject *)(iself)))->coordinates[1] < (((PyArrayIterObject *)(iself)))->dims_m1[1]) { (((PyArrayIterObject *)(iself)))->coordinates[1]++; (((PyArrayIterObject *)(iself)))->dataptr += (((PyArrayIterObject *)(iself)))->strides[1]; } else { (((PyArrayIterObject *)(iself)))->coordinates[1] = 0; (((PyArrayIterObject *)(iself)))->coordinates[0]++; (((PyArrayIterObject *)(iself)))->dataptr += (((PyArrayIterObject *)(iself)))->strides[0] - (((PyArrayIterObject *)(iself)))->backstrides[1]; } }; } else { int __npy_i; for (__npy_i=((PyArrayIterObject *)(iself))->nd_m1; __npy_i >= 0; __npy_i--) { if (((PyArrayIterObject *)(iself))->coordinates[__npy_i] < ((PyArrayIterObject *)(iself))->dims_m1[__npy_i]) { ((PyArrayIterObject *)(iself))->coordinates[__npy_i]++; ((PyArrayIterObject *)(iself))->dataptr += ((PyArrayIterObject *)(iself))->strides[__npy_i]; break; } else { ((PyArrayIterObject *)(iself))->coordinates[__npy_i] = 0; ((PyArrayIterObject *)(iself))->dataptr -= ((PyArrayIterObject *)(iself))->backstrides[__npy_i]; } } } }; { ((PyArrayIterObject *)(iother))->index++; if (((PyArrayIterObject *)(iother))->nd_m1 == 0) { { (((PyArrayIterObject *)(iother)))->dataptr += ((PyArrayIterObject *)(((PyArrayIterObject *)(iother))))->strides[0]; (((PyArrayIterObject *)(iother)))->coordinates[0]++; }; } else if (((PyArrayIterObject *)(iother))->contiguous) ((PyArrayIterObject *)(iother))->dataptr += ((PyArrayIterObject *)(iother))->ao->descr->elsize; else if (((PyArrayIterObject *)(iother))->nd_m1 == 1) { { if ((((PyArrayIterObject *)(iother)))->coordinates[1] < (((PyArrayIterObject *)(iother)))->dims_m1[1]) { (((PyArrayIterObject *)(iother)))->coordinates[1]++; (((PyArrayIterObject *)(iother)))->dataptr += (((PyArrayIterObject *)(iother)))->strides[1]; } else { (((PyArrayIterObject *)(iother)))->coordinates[1] = 0; (((PyArrayIterObject *)(iother)))->coordinates[0]++; (((PyArrayIterObject *)(iother)))->dataptr += (((PyArrayIterObject *)(iother)))->strides[0] - (((PyArrayIterObject *)(iother)))->backstrides[1]; } }; } else { int __npy_i; for (__npy_i=((PyArrayIterObject *)(iother))->nd_m1; __npy_i >= 0; __npy_i--) { if (((PyArrayIterObject *)(iother))->coordinates[__npy_i] < ((PyArrayIterObject *)(iother))->dims_m1[__npy_i]) { ((PyArrayIterObject *)(iother))->coordinates[__npy_i]++; ((PyArrayIterObject *)(iother))->dataptr += ((PyArrayIterObject *)(iother))->strides[__npy_i]; break; } else { ((PyArrayIterObject *)(iother))->coordinates[__npy_i] = 0; ((PyArrayIterObject *)(iother))->dataptr -= ((PyArrayIterObject *)(iother))->backstrides[__npy_i]; } } } }; dptr += 1; relfunc(aptr, N1); relfunc(bptr, N2); } } else { while(size--) { val = compfunc((void *)iself->dataptr, (void *)iother->dataptr, N1, N2); *dptr = (val == 0); { ((PyArrayIterObject *)(iself))->index++; if (((PyArrayIterObject *)(iself))->nd_m1 == 0) { { (((PyArrayIterObject *)(iself)))->dataptr += ((PyArrayIterObject *)(((PyArrayIterObject *)(iself))))->strides[0]; (((PyArrayIterObject *)(iself)))->coordinates[0]++; }; } else if (((PyArrayIterObject *)(iself))->contiguous) ((PyArrayIterObject *)(iself))->dataptr += ((PyArrayIterObject *)(iself))->ao->descr->elsize; else if (((PyArrayIterObject *)(iself))->nd_m1 == 1) { { if ((((PyArrayIterObject *)(iself)))->coordinates[1] < (((PyArrayIterObject *)(iself)))->dims_m1[1]) { (((PyArrayIterObject *)(iself)))->coordinates[1]++; (((PyArrayIterObject *)(iself)))->dataptr += (((PyArrayIterObject *)(iself)))->strides[1]; } else { (((PyArrayIterObject *)(iself)))->coordinates[1] = 0; (((PyArrayIterObject *)(iself)))->coordinates[0]++; (((PyArrayIterObject *)(iself)))->dataptr += (((PyArrayIterObject *)(iself)))->strides[0] - (((PyArrayIterObject *)(iself)))->backstrides[1]; } }; } else { int __npy_i; for (__npy_i=((PyArrayIterObject *)(iself))->nd_m1; __npy_i >= 0; __npy_i--) { if (((PyArrayIterObject *)(iself))->coordinates[__npy_i] < ((PyArrayIterObject *)(iself))->dims_m1[__npy_i]) { ((PyArrayIterObject *)(iself))->coordinates[__npy_i]++; ((PyArrayIterObject *)(iself))->dataptr += ((PyArrayIterObject *)(iself))->strides[__npy_i]; break; } else { ((PyArrayIterObject *)(iself))->coordinates[__npy_i] = 0; ((PyArrayIterObject *)(iself))->dataptr -= ((PyArrayIterObject *)(iself))->backstrides[__npy_i]; } } } }; { ((PyArrayIterObject *)(iother))->index++; if (((PyArrayIterObject *)(iother))->nd_m1 == 0) { { (((PyArrayIterObject *)(iother)))->dataptr += ((PyArrayIterObject *)(((PyArrayIterObject *)(iother))))->strides[0]; (((PyArrayIterObject *)(iother)))->coordinates[0]++; }; } else if (((PyArrayIterObject *)(iother))->contiguous) ((PyArrayIterObject *)(iother))->dataptr += ((PyArrayIterObject *)(iother))->ao->descr->elsize; else if (((PyArrayIterObject *)(iother))->nd_m1 == 1) { { if ((((PyArrayIterObject *)(iother)))->coordinates[1] < (((PyArrayIterObject *)(iother)))->dims_m1[1]) { (((PyArrayIterObject *)(iother)))->coordinates[1]++; (((PyArrayIterObject *)(iother)))->dataptr += (((PyArrayIterObject *)(iother)))->strides[1]; } else { (((PyArrayIterObject *)(iother)))->coordinates[1] = 0; (((PyArrayIterObject *)(iother)))->coordinates[0]++; (((PyArrayIterObject *)(iother)))->dataptr += (((PyArrayIterObject *)(iother)))->strides[0] - (((PyArrayIterObject *)(iother)))->backstrides[1]; } }; } else { int __npy_i; for (__npy_i=((PyArrayIterObject *)(iother))->nd_m1; __npy_i >= 0; __npy_i--) { if (((PyArrayIterObject *)(iother))->coordinates[__npy_i] < ((PyArrayIterObject *)(iother))->dims_m1[__npy_i]) { ((PyArrayIterObject *)(iother))->coordinates[__npy_i]++; ((PyArrayIterObject *)(iother))->dataptr += ((PyArrayIterObject *)(iother))->strides[__npy_i]; break; } else { ((PyArrayIterObject *)(iother))->coordinates[__npy_i] = 0; ((PyArrayIterObject *)(iother))->dataptr -= ((PyArrayIterObject *)(iother))->backstrides[__npy_i]; } } } }; dptr += 1; } } > break; > case 3: > if (rstrip) { void *aptr, *bptr; char atemp[2048], btemp[2048]; while(size--) { aptr = stripfunc(iself->dataptr, atemp, N1); if (!aptr) return -1; bptr = stripfunc(iother->dataptr, btemp, N2); if (!bptr) { relfunc(aptr, N1); return -1; } val = compfunc(aptr, bptr, N1, N2); *dptr = (val != 0); { ((PyArrayIterObject *)(iself))->index++; if (((PyArrayIterObject *)(iself))->nd_m1 == 0) { { (((PyArrayIterObject *)(iself)))->dataptr += ((PyArrayIterObject *)(((PyArrayIterObject *)(iself))))->strides[0]; (((PyArrayIterObject *)(iself)))->coordinates[0]++; }; } else if (((PyArrayIterObject *)(iself))->contiguous) ((PyArrayIterObject *)(iself))->dataptr += ((PyArrayIterObject *)(iself))->ao->descr->elsize; else if (((PyArrayIterObject *)(iself))->nd_m1 == 1) { { if ((((PyArrayIterObject *)(iself)))->coordinates[1] < (((PyArrayIterObject *)(iself)))->dims_m1[1]) { (((PyArrayIterObject *)(iself)))->coordinates[1]++; (((PyArrayIterObject *)(iself)))->dataptr += (((PyArrayIterObject *)(iself)))->strides[1]; } else { (((PyArrayIterObject *)(iself)))->coordinates[1] = 0; (((PyArrayIterObject *)(iself)))->coordinates[0]++; (((PyArrayIterObject *)(iself)))->dataptr += (((PyArrayIterObject *)(iself)))->strides[0] - (((PyArrayIterObject *)(iself)))->backstrides[1]; } }; } else { int __npy_i; for (__npy_i=((PyArrayIterObject *)(iself))->nd_m1; __npy_i >= 0; __npy_i--) { if (((PyArrayIterObject *)(iself))->coordinates[__npy_i] < ((PyArrayIterObject *)(iself))->dims_m1[__npy_i]) { ((PyArrayIterObject *)(iself))->coordinates[__npy_i]++; ((PyArrayIterObject *)(iself))->dataptr += ((PyArrayIterObject *)(iself))->strides[__npy_i]; break; } else { ((PyArrayIterObject *)(iself))->coordinates[__npy_i] = 0; ((PyArrayIterObject *)(iself))->dataptr -= ((PyArrayIterObject *)(iself))->backstrides[__npy_i]; } } } }; { ((PyArrayIterObject *)(iother))->index++; if (((PyArrayIterObject *)(iother))->nd_m1 == 0) { { (((PyArrayIterObject *)(iother)))->dataptr += ((PyArrayIterObject *)(((PyArrayIterObject *)(iother))))->strides[0]; (((PyArrayIterObject *)(iother)))->coordinates[0]++; }; } else if (((PyArrayIterObject *)(iother))->contiguous) ((PyArrayIterObject *)(iother))->dataptr += ((PyArrayIterObject *)(iother))->ao->descr->elsize; else if (((PyArrayIterObject *)(iother))->nd_m1 == 1) { { if ((((PyArrayIterObject *)(iother)))->coordinates[1] < (((PyArrayIterObject *)(iother)))->dims_m1[1]) { (((PyArrayIterObject *)(iother)))->coordinates[1]++; (((PyArrayIterObject *)(iother)))->dataptr += (((PyArrayIterObject *)(iother)))->strides[1]; } else { (((PyArrayIterObject *)(iother)))->coordinates[1] = 0; (((PyArrayIterObject *)(iother)))->coordinates[0]++; (((PyArrayIterObject *)(iother)))->dataptr += (((PyArrayIterObject *)(iother)))->strides[0] - (((PyArrayIterObject *)(iother)))->backstrides[1]; } }; } else { int __npy_i; for (__npy_i=((PyArrayIterObject *)(iother))->nd_m1; __npy_i >= 0; __npy_i--) { if (((PyArrayIterObject *)(iother))->coordinates[__npy_i] < ((PyArrayIterObject *)(iother))->dims_m1[__npy_i]) { ((PyArrayIterObject *)(iother))->coordinates[__npy_i]++; ((PyArrayIterObject *)(iother))->dataptr += ((PyArrayIterObject *)(iother))->strides[__npy_i]; break; } else { ((PyArrayIterObject *)(iother))->coordinates[__npy_i] = 0; ((PyArrayIterObject *)(iother))->dataptr -= ((PyArrayIterObject *)(iother))->backstrides[__npy_i]; } } } }; dptr += 1; relfunc(aptr, N1); relfunc(bptr, N2); } } else { while(size--) { val = compfunc((void *)iself->dataptr, (void *)iother->dataptr, N1, N2); *dptr = (val != 0); { ((PyArrayIterObject *)(iself))->index++; if (((PyArrayIterObject *)(iself))->nd_m1 == 0) { { (((PyArrayIterObject *)(iself)))->dataptr += ((PyArrayIterObject *)(((PyArrayIterObject *)(iself))))->strides[0]; (((PyArrayIterObject *)(iself)))->coordinates[0]++; }; } else if (((PyArrayIterObject *)(iself))->contiguous) ((PyArrayIterObject *)(iself))->dataptr += ((PyArrayIterObject *)(iself))->ao->descr->elsize; else if (((PyArrayIterObject *)(iself))->nd_m1 == 1) { { if ((((PyArrayIterObject *)(iself)))->coordinates[1] < (((PyArrayIterObject *)(iself)))->dims_m1[1]) { (((PyArrayIterObject *)(iself)))->coordinates[1]++; (((PyArrayIterObject *)(iself)))->dataptr += (((PyArrayIterObject *)(iself)))->strides[1]; } else { (((PyArrayIterObject *)(iself)))->coordinates[1] = 0; (((PyArrayIterObject *)(iself)))->coordinates[0]++; (((PyArrayIterObject *)(iself)))->dataptr += (((PyArrayIterObject *)(iself)))->strides[0] - (((PyArrayIterObject *)(iself)))->backstrides[1]; } }; } else { int __npy_i; for (__npy_i=((PyArrayIterObject *)(iself))->nd_m1; __npy_i >= 0; __npy_i--) { if (((PyArrayIterObject *)(iself))->coordinates[__npy_i] < ((PyArrayIterObject *)(iself))->dims_m1[__npy_i]) { ((PyArrayIterObject *)(iself))->coordinates[__npy_i]++; ((PyArrayIterObject *)(iself))->dataptr += ((PyArrayIterObject *)(iself))->strides[__npy_i]; break; } else { ((PyArrayIterObject *)(iself))->coordinates[__npy_i] = 0; ((PyArrayIterObject *)(iself))->dataptr -= ((PyArrayIterObject *)(iself))->backstrides[__npy_i]; } } } }; { ((PyArrayIterObject *)(iother))->index++; if (((PyArrayIterObject *)(iother))->nd_m1 == 0) { { (((PyArrayIterObject *)(iother)))->dataptr += ((PyArrayIterObject *)(((PyArrayIterObject *)(iother))))->strides[0]; (((PyArrayIterObject *)(iother)))->coordinates[0]++; }; } else if (((PyArrayIterObject *)(iother))->contiguous) ((PyArrayIterObject *)(iother))->dataptr += ((PyArrayIterObject *)(iother))->ao->descr->elsize; else if (((PyArrayIterObject *)(iother))->nd_m1 == 1) { { if ((((PyArrayIterObject *)(iother)))->coordinates[1] < (((PyArrayIterObject *)(iother)))->dims_m1[1]) { (((PyArrayIterObject *)(iother)))->coordinates[1]++; (((PyArrayIterObject *)(iother)))->dataptr += (((PyArrayIterObject *)(iother)))->strides[1]; } else { (((PyArrayIterObject *)(iother)))->coordinates[1] = 0; (((PyArrayIterObject *)(iother)))->coordinates[0]++; (((PyArrayIterObject *)(iother)))->dataptr += (((PyArrayIterObject *)(iother)))->strides[0] - (((PyArrayIterObject *)(iother)))->backstrides[1]; } }; } else { int __npy_i; for (__npy_i=((PyArrayIterObject *)(iother))->nd_m1; __npy_i >= 0; __npy_i--) { if (((PyArrayIterObject *)(iother))->coordinates[__npy_i] < ((PyArrayIterObject *)(iother))->dims_m1[__npy_i]) { ((PyArrayIterObject *)(iother))->coordinates[__npy_i]++; ((PyArrayIterObject *)(iother))->dataptr += ((PyArrayIterObject *)(iother))->strides[__npy_i]; break; } else { ((PyArrayIterObject *)(iother))->coordinates[__npy_i] = 0; ((PyArrayIterObject *)(iother))->dataptr -= ((PyArrayIterObject *)(iother))->backstrides[__npy_i]; } } } }; dptr += 1; } } > break; > case 0: > if (rstrip) { void *aptr, *bptr; char atemp[2048], btemp[2048]; while(size--) { aptr = stripfunc(iself->dataptr, atemp, N1); if (!aptr) return -1; bptr = stripfunc(iother->dataptr, btemp, N2); if (!bptr) { relfunc(aptr, N1); return -1; } val = compfunc(aptr, bptr, N1, N2); *dptr = (val < 0); { ((PyArrayIterObject *)(iself))->index++; if (((PyArrayIterObject *)(iself))->nd_m1 == 0) { { (((PyArrayIterObject *)(iself)))->dataptr += ((PyArrayIterObject *)(((PyArrayIterObject *)(iself))))->strides[0]; (((PyArrayIterObject *)(iself)))->coordinates[0]++; }; } else if (((PyArrayIterObject *)(iself))->contiguous) ((PyArrayIterObject *)(iself))->dataptr += ((PyArrayIterObject *)(iself))->ao->descr->elsize; else if (((PyArrayIterObject *)(iself))->nd_m1 == 1) { { if ((((PyArrayIterObject *)(iself)))->coordinates[1] < (((PyArrayIterObject *)(iself)))->dims_m1[1]) { (((PyArrayIterObject *)(iself)))->coordinates[1]++; (((PyArrayIterObject *)(iself)))->dataptr += (((PyArrayIterObject *)(iself)))->strides[1]; } else { (((PyArrayIterObject *)(iself)))->coordinates[1] = 0; (((PyArrayIterObject *)(iself)))->coordinates[0]++; (((PyArrayIterObject *)(iself)))->dataptr += (((PyArrayIterObject *)(iself)))->strides[0] - (((PyArrayIterObject *)(iself)))->backstrides[1]; } }; } else { int __npy_i; for (__npy_i=((PyArrayIterObject *)(iself))->nd_m1; __npy_i >= 0; __npy_i--) { if (((PyArrayIterObject *)(iself))->coordinates[__npy_i] < ((PyArrayIterObject *)(iself))->dims_m1[__npy_i]) { ((PyArrayIterObject *)(iself))->coordinates[__npy_i]++; ((PyArrayIterObject *)(iself))->dataptr += ((PyArrayIterObject *)(iself))->strides[__npy_i]; break; } else { ((PyArrayIterObject *)(iself))->coordinates[__npy_i] = 0; ((PyArrayIterObject *)(iself))->dataptr -= ((PyArrayIterObject *)(iself))->backstrides[__npy_i]; } } } }; { ((PyArrayIterObject *)(iother))->index++; if (((PyArrayIterObject *)(iother))->nd_m1 == 0) { { (((PyArrayIterObject *)(iother)))->dataptr += ((PyArrayIterObject *)(((PyArrayIterObject *)(iother))))->strides[0]; (((PyArrayIterObject *)(iother)))->coordinates[0]++; }; } else if (((PyArrayIterObject *)(iother))->contiguous) ((PyArrayIterObject *)(iother))->dataptr += ((PyArrayIterObject *)(iother))->ao->descr->elsize; else if (((PyArrayIterObject *)(iother))->nd_m1 == 1) { { if ((((PyArrayIterObject *)(iother)))->coordinates[1] < (((PyArrayIterObject *)(iother)))->dims_m1[1]) { (((PyArrayIterObject *)(iother)))->coordinates[1]++; (((PyArrayIterObject *)(iother)))->dataptr += (((PyArrayIterObject *)(iother)))->strides[1]; } else { (((PyArrayIterObject *)(iother)))->coordinates[1] = 0; (((PyArrayIterObject *)(iother)))->coordinates[0]++; (((PyArrayIterObject *)(iother)))->dataptr += (((PyArrayIterObject *)(iother)))->strides[0] - (((PyArrayIterObject *)(iother)))->backstrides[1]; } }; } else { int __npy_i; for (__npy_i=((PyArrayIterObject *)(iother))->nd_m1; __npy_i >= 0; __npy_i--) { if (((PyArrayIterObject *)(iother))->coordinates[__npy_i] < ((PyArrayIterObject *)(iother))->dims_m1[__npy_i]) { ((PyArrayIterObject *)(iother))->coordinates[__npy_i]++; ((PyArrayIterObject *)(iother))->dataptr += ((PyArrayIterObject *)(iother))->strides[__npy_i]; break; } else { ((PyArrayIterObject *)(iother))->coordinates[__npy_i] = 0; ((PyArrayIterObject *)(iother))->dataptr -= ((PyArrayIterObject *)(iother))->backstrides[__npy_i]; } } } }; dptr += 1; relfunc(aptr, N1); relfunc(bptr, N2); } } else { while(size--) { val = compfunc((void *)iself->dataptr, (void *)iother->dataptr, N1, N2); *dptr = (val < 0); { ((PyArrayIterObject *)(iself))->index++; if (((PyArrayIterObject *)(iself))->nd_m1 == 0) { { (((PyArrayIterObject *)(iself)))->dataptr += ((PyArrayIterObject *)(((PyArrayIterObject *)(iself))))->strides[0]; (((PyArrayIterObject *)(iself)))->coordinates[0]++; }; } else if (((PyArrayIterObject *)(iself))->contiguous) ((PyArrayIterObject *)(iself))->dataptr += ((PyArrayIterObject *)(iself))->ao->descr->elsize; else if (((PyArrayIterObject *)(iself))->nd_m1 == 1) { { if ((((PyArrayIterObject *)(iself)))->coordinates[1] < (((PyArrayIterObject *)(iself)))->dims_m1[1]) { (((PyArrayIterObject *)(iself)))->coordinates[1]++; (((PyArrayIterObject *)(iself)))->dataptr += (((PyArrayIterObject *)(iself)))->strides[1]; } else { (((PyArrayIterObject *)(iself)))->coordinates[1] = 0; (((PyArrayIterObject *)(iself)))->coordinates[0]++; (((PyArrayIterObject *)(iself)))->dataptr += (((PyArrayIterObject *)(iself)))->strides[0] - (((PyArrayIterObject *)(iself)))->backstrides[1]; } }; } else { int __npy_i; for (__npy_i=((PyArrayIterObject *)(iself))->nd_m1; __npy_i >= 0; __npy_i--) { if (((PyArrayIterObject *)(iself))->coordinates[__npy_i] < ((PyArrayIterObject *)(iself))->dims_m1[__npy_i]) { ((PyArrayIterObject *)(iself))->coordinates[__npy_i]++; ((PyArrayIterObject *)(iself))->dataptr += ((PyArrayIterObject *)(iself))->strides[__npy_i]; break; } else { ((PyArrayIterObject *)(iself))->coordinates[__npy_i] = 0; ((PyArrayIterObject *)(iself))->dataptr -= ((PyArrayIterObject *)(iself))->backstrides[__npy_i]; } } } }; { ((PyArrayIterObject *)(iother))->index++; if (((PyArrayIterObject *)(iother))->nd_m1 == 0) { { (((PyArrayIterObject *)(iother)))->dataptr += ((PyArrayIterObject *)(((PyArrayIterObject *)(iother))))->strides[0]; (((PyArrayIterObject *)(iother)))->coordinates[0]++; }; } else if (((PyArrayIterObject *)(iother))->contiguous) ((PyArrayIterObject *)(iother))->dataptr += ((PyArrayIterObject *)(iother))->ao->descr->elsize; else if (((PyArrayIterObject *)(iother))->nd_m1 == 1) { { if ((((PyArrayIterObject *)(iother)))->coordinates[1] < (((PyArrayIterObject *)(iother)))->dims_m1[1]) { (((PyArrayIterObject *)(iother)))->coordinates[1]++; (((PyArrayIterObject *)(iother)))->dataptr += (((PyArrayIterObject *)(iother)))->strides[1]; } else { (((PyArrayIterObject *)(iother)))->coordinates[1] = 0; (((PyArrayIterObject *)(iother)))->coordinates[0]++; (((PyArrayIterObject *)(iother)))->dataptr += (((PyArrayIterObject *)(iother)))->strides[0] - (((PyArrayIterObject *)(iother)))->backstrides[1]; } }; } else { int __npy_i; for (__npy_i=((PyArrayIterObject *)(iother))->nd_m1; __npy_i >= 0; __npy_i--) { if (((PyArrayIterObject *)(iother))->coordinates[__npy_i] < ((PyArrayIterObject *)(iother))->dims_m1[__npy_i]) { ((PyArrayIterObject *)(iother))->coordinates[__npy_i]++; ((PyArrayIterObject *)(iother))->dataptr += ((PyArrayIterObject *)(iother))->strides[__npy_i]; break; } else { ((PyArrayIterObject *)(iother))->coordinates[__npy_i] = 0; ((PyArrayIterObject *)(iother))->dataptr -= ((PyArrayIterObject *)(iother))->backstrides[__npy_i]; } } } }; dptr += 1; } } > break; > case 1: > if (rstrip) { void *aptr, *bptr; char atemp[2048], btemp[2048]; while(size--) { aptr = stripfunc(iself->dataptr, atemp, N1); if (!aptr) return -1; bptr = stripfunc(iother->dataptr, btemp, N2); if (!bptr) { relfunc(aptr, N1); return -1; } val = compfunc(aptr, bptr, N1, N2); *dptr = (val <= 0); { ((PyArrayIterObject *)(iself))->index++; if (((PyArrayIterObject *)(iself))->nd_m1 == 0) { { (((PyArrayIterObject *)(iself)))->dataptr += ((PyArrayIterObject *)(((PyArrayIterObject *)(iself))))->strides[0]; (((PyArrayIterObject *)(iself)))->coordinates[0]++; }; } else if (((PyArrayIterObject *)(iself))->contiguous) ((PyArrayIterObject *)(iself))->dataptr += ((PyArrayIterObject *)(iself))->ao->descr->elsize; else if (((PyArrayIterObject *)(iself))->nd_m1 == 1) { { if ((((PyArrayIterObject *)(iself)))->coordinates[1] < (((PyArrayIterObject *)(iself)))->dims_m1[1]) { (((PyArrayIterObject *)(iself)))->coordinates[1]++; (((PyArrayIterObject *)(iself)))->dataptr += (((PyArrayIterObject *)(iself)))->strides[1]; } else { (((PyArrayIterObject *)(iself)))->coordinates[1] = 0; (((PyArrayIterObject *)(iself)))->coordinates[0]++; (((PyArrayIterObject *)(iself)))->dataptr += (((PyArrayIterObject *)(iself)))->strides[0] - (((PyArrayIterObject *)(iself)))->backstrides[1]; } }; } else { int __npy_i; for (__npy_i=((PyArrayIterObject *)(iself))->nd_m1; __npy_i >= 0; __npy_i--) { if (((PyArrayIterObject *)(iself))->coordinates[__npy_i] < ((PyArrayIterObject *)(iself))->dims_m1[__npy_i]) { ((PyArrayIterObject *)(iself))->coordinates[__npy_i]++; ((PyArrayIterObject *)(iself))->dataptr += ((PyArrayIterObject *)(iself))->strides[__npy_i]; break; } else { ((PyArrayIterObject *)(iself))->coordinates[__npy_i] = 0; ((PyArrayIterObject *)(iself))->dataptr -= ((PyArrayIterObject *)(iself))->backstrides[__npy_i]; } } } }; { ((PyArrayIterObject *)(iother))->index++; if (((PyArrayIterObject *)(iother))->nd_m1 == 0) { { (((PyArrayIterObject *)(iother)))->dataptr += ((PyArrayIterObject *)(((PyArrayIterObject *)(iother))))->strides[0]; (((PyArrayIterObject *)(iother)))->coordinates[0]++; }; } else if (((PyArrayIterObject *)(iother))->contiguous) ((PyArrayIterObject *)(iother))->dataptr += ((PyArrayIterObject *)(iother))->ao->descr->elsize; else if (((PyArrayIterObject *)(iother))->nd_m1 == 1) { { if ((((PyArrayIterObject *)(iother)))->coordinates[1] < (((PyArrayIterObject *)(iother)))->dims_m1[1]) { (((PyArrayIterObject *)(iother)))->coordinates[1]++; (((PyArrayIterObject *)(iother)))->dataptr += (((PyArrayIterObject *)(iother)))->strides[1]; } else { (((PyArrayIterObject *)(iother)))->coordinates[1] = 0; (((PyArrayIterObject *)(iother)))->coordinates[0]++; (((PyArrayIterObject *)(iother)))->dataptr += (((PyArrayIterObject *)(iother)))->strides[0] - (((PyArrayIterObject *)(iother)))->backstrides[1]; } }; } else { int __npy_i; for (__npy_i=((PyArrayIterObject *)(iother))->nd_m1; __npy_i >= 0; __npy_i--) { if (((PyArrayIterObject *)(iother))->coordinates[__npy_i] < ((PyArrayIterObject *)(iother))->dims_m1[__npy_i]) { ((PyArrayIterObject *)(iother))->coordinates[__npy_i]++; ((PyArrayIterObject *)(iother))->dataptr += ((PyArrayIterObject *)(iother))->strides[__npy_i]; break; } else { ((PyArrayIterObject *)(iother))->coordinates[__npy_i] = 0; ((PyArrayIterObject *)(iother))->dataptr -= ((PyArrayIterObject *)(iother))->backstrides[__npy_i]; } } } }; dptr += 1; relfunc(aptr, N1); relfunc(bptr, N2); } } else { while(size--) { val = compfunc((void *)iself->dataptr, (void *)iother->dataptr, N1, N2); *dptr = (val <= 0); { ((PyArrayIterObject *)(iself))->index++; if (((PyArrayIterObject *)(iself))->nd_m1 == 0) { { (((PyArrayIterObject *)(iself)))->dataptr += ((PyArrayIterObject *)(((PyArrayIterObject *)(iself))))->strides[0]; (((PyArrayIterObject *)(iself)))->coordinates[0]++; }; } else if (((PyArrayIterObject *)(iself))->contiguous) ((PyArrayIterObject *)(iself))->dataptr += ((PyArrayIterObject *)(iself))->ao->descr->elsize; else if (((PyArrayIterObject *)(iself))->nd_m1 == 1) { { if ((((PyArrayIterObject *)(iself)))->coordinates[1] < (((PyArrayIterObject *)(iself)))->dims_m1[1]) { (((PyArrayIterObject *)(iself)))->coordinates[1]++; (((PyArrayIterObject *)(iself)))->dataptr += (((PyArrayIterObject *)(iself)))->strides[1]; } else { (((PyArrayIterObject *)(iself)))->coordinates[1] = 0; (((PyArrayIterObject *)(iself)))->coordinates[0]++; (((PyArrayIterObject *)(iself)))->dataptr += (((PyArrayIterObject *)(iself)))->strides[0] - (((PyArrayIterObject *)(iself)))->backstrides[1]; } }; } else { int __npy_i; for (__npy_i=((PyArrayIterObject *)(iself))->nd_m1; __npy_i >= 0; __npy_i--) { if (((PyArrayIterObject *)(iself))->coordinates[__npy_i] < ((PyArrayIterObject *)(iself))->dims_m1[__npy_i]) { ((PyArrayIterObject *)(iself))->coordinates[__npy_i]++; ((PyArrayIterObject *)(iself))->dataptr += ((PyArrayIterObject *)(iself))->strides[__npy_i]; break; } else { ((PyArrayIterObject *)(iself))->coordinates[__npy_i] = 0; ((PyArrayIterObject *)(iself))->dataptr -= ((PyArrayIterObject *)(iself))->backstrides[__npy_i]; } } } }; { ((PyArrayIterObject *)(iother))->index++; if (((PyArrayIterObject *)(iother))->nd_m1 == 0) { { (((PyArrayIterObject *)(iother)))->dataptr += ((PyArrayIterObject *)(((PyArrayIterObject *)(iother))))->strides[0]; (((PyArrayIterObject *)(iother)))->coordinates[0]++; }; } else if (((PyArrayIterObject *)(iother))->contiguous) ((PyArrayIterObject *)(iother))->dataptr += ((PyArrayIterObject *)(iother))->ao->descr->elsize; else if (((PyArrayIterObject *)(iother))->nd_m1 == 1) { { if ((((PyArrayIterObject *)(iother)))->coordinates[1] < (((PyArrayIterObject *)(iother)))->dims_m1[1]) { (((PyArrayIterObject *)(iother)))->coordinates[1]++; (((PyArrayIterObject *)(iother)))->dataptr += (((PyArrayIterObject *)(iother)))->strides[1]; } else { (((PyArrayIterObject *)(iother)))->coordinates[1] = 0; (((PyArrayIterObject *)(iother)))->coordinates[0]++; (((PyArrayIterObject *)(iother)))->dataptr += (((PyArrayIterObject *)(iother)))->strides[0] - (((PyArrayIterObject *)(iother)))->backstrides[1]; } }; } else { int __npy_i; for (__npy_i=((PyArrayIterObject *)(iother))->nd_m1; __npy_i >= 0; __npy_i--) { if (((PyArrayIterObject *)(iother))->coordinates[__npy_i] < ((PyArrayIterObject *)(iother))->dims_m1[__npy_i]) { ((PyArrayIterObject *)(iother))->coordinates[__npy_i]++; ((PyArrayIterObject *)(iother))->dataptr += ((PyArrayIterObject *)(iother))->strides[__npy_i]; break; } else { ((PyArrayIterObject *)(iother))->coordinates[__npy_i] = 0; ((PyArrayIterObject *)(iother))->dataptr -= ((PyArrayIterObject *)(iother))->backstrides[__npy_i]; } } } }; dptr += 1; } } > break; > case 4: > if (rstrip) { void *aptr, *bptr; char atemp[2048], btemp[2048]; while(size--) { aptr = stripfunc(iself->dataptr, atemp, N1); if (!aptr) return -1; bptr = stripfunc(iother->dataptr, btemp, N2); if (!bptr) { relfunc(aptr, N1); return -1; } val = compfunc(aptr, bptr, N1, N2); *dptr = (val > 0); { ((PyArrayIterObject *)(iself))->index++; if (((PyArrayIterObject *)(iself))->nd_m1 == 0) { { (((PyArrayIterObject *)(iself)))->dataptr += ((PyArrayIterObject *)(((PyArrayIterObject *)(iself))))->strides[0]; (((PyArrayIterObject *)(iself)))->coordinates[0]++; }; } else if (((PyArrayIterObject *)(iself))->contiguous) ((PyArrayIterObject *)(iself))->dataptr += ((PyArrayIterObject *)(iself))->ao->descr->elsize; else if (((PyArrayIterObject *)(iself))->nd_m1 == 1) { { if ((((PyArrayIterObject *)(iself)))->coordinates[1] < (((PyArrayIterObject *)(iself)))->dims_m1[1]) { (((PyArrayIterObject *)(iself)))->coordinates[1]++; (((PyArrayIterObject *)(iself)))->dataptr += (((PyArrayIterObject *)(iself)))->strides[1]; } else { (((PyArrayIterObject *)(iself)))->coordinates[1] = 0; (((PyArrayIterObject *)(iself)))->coordinates[0]++; (((PyArrayIterObject *)(iself)))->dataptr += (((PyArrayIterObject *)(iself)))->strides[0] - (((PyArrayIterObject *)(iself)))->backstrides[1]; } }; } else { int __npy_i; for (__npy_i=((PyArrayIterObject *)(iself))->nd_m1; __npy_i >= 0; __npy_i--) { if (((PyArrayIterObject *)(iself))->coordinates[__npy_i] < ((PyArrayIterObject *)(iself))->dims_m1[__npy_i]) { ((PyArrayIterObject *)(iself))->coordinates[__npy_i]++; ((PyArrayIterObject *)(iself))->dataptr += ((PyArrayIterObject *)(iself))->strides[__npy_i]; break; } else { ((PyArrayIterObject *)(iself))->coordinates[__npy_i] = 0; ((PyArrayIterObject *)(iself))->dataptr -= ((PyArrayIterObject *)(iself))->backstrides[__npy_i]; } } } }; { ((PyArrayIterObject *)(iother))->index++; if (((PyArrayIterObject *)(iother))->nd_m1 == 0) { { (((PyArrayIterObject *)(iother)))->dataptr += ((PyArrayIterObject *)(((PyArrayIterObject *)(iother))))->strides[0]; (((PyArrayIterObject *)(iother)))->coordinates[0]++; }; } else if (((PyArrayIterObject *)(iother))->contiguous) ((PyArrayIterObject *)(iother))->dataptr += ((PyArrayIterObject *)(iother))->ao->descr->elsize; else if (((PyArrayIterObject *)(iother))->nd_m1 == 1) { { if ((((PyArrayIterObject *)(iother)))->coordinates[1] < (((PyArrayIterObject *)(iother)))->dims_m1[1]) { (((PyArrayIterObject *)(iother)))->coordinates[1]++; (((PyArrayIterObject *)(iother)))->dataptr += (((PyArrayIterObject *)(iother)))->strides[1]; } else { (((PyArrayIterObject *)(iother)))->coordinates[1] = 0; (((PyArrayIterObject *)(iother)))->coordinates[0]++; (((PyArrayIterObject *)(iother)))->dataptr += (((PyArrayIterObject *)(iother)))->strides[0] - (((PyArrayIterObject *)(iother)))->backstrides[1]; } }; } else { int __npy_i; for (__npy_i=((PyArrayIterObject *)(iother))->nd_m1; __npy_i >= 0; __npy_i--) { if (((PyArrayIterObject *)(iother))->coordinates[__npy_i] < ((PyArrayIterObject *)(iother))->dims_m1[__npy_i]) { ((PyArrayIterObject *)(iother))->coordinates[__npy_i]++; ((PyArrayIterObject *)(iother))->dataptr += ((PyArrayIterObject *)(iother))->strides[__npy_i]; break; } else { ((PyArrayIterObject *)(iother))->coordinates[__npy_i] = 0; ((PyArrayIterObject *)(iother))->dataptr -= ((PyArrayIterObject *)(iother))->backstrides[__npy_i]; } } } }; dptr += 1; relfunc(aptr, N1); relfunc(bptr, N2); } } else { while(size--) { val = compfunc((void *)iself->dataptr, (void *)iother->dataptr, N1, N2); *dptr = (val > 0); { ((PyArrayIterObject *)(iself))->index++; if (((PyArrayIterObject *)(iself))->nd_m1 == 0) { { (((PyArrayIterObject *)(iself)))->dataptr += ((PyArrayIterObject *)(((PyArrayIterObject *)(iself))))->strides[0]; (((PyArrayIterObject *)(iself)))->coordinates[0]++; }; } else if (((PyArrayIterObject *)(iself))->contiguous) ((PyArrayIterObject *)(iself))->dataptr += ((PyArrayIterObject *)(iself))->ao->descr->elsize; else if (((PyArrayIterObject *)(iself))->nd_m1 == 1) { { if ((((PyArrayIterObject *)(iself)))->coordinates[1] < (((PyArrayIterObject *)(iself)))->dims_m1[1]) { (((PyArrayIterObject *)(iself)))->coordinates[1]++; (((PyArrayIterObject *)(iself)))->dataptr += (((PyArrayIterObject *)(iself)))->strides[1]; } else { (((PyArrayIterObject *)(iself)))->coordinates[1] = 0; (((PyArrayIterObject *)(iself)))->coordinates[0]++; (((PyArrayIterObject *)(iself)))->dataptr += (((PyArrayIterObject *)(iself)))->strides[0] - (((PyArrayIterObject *)(iself)))->backstrides[1]; } }; } else { int __npy_i; for (__npy_i=((PyArrayIterObject *)(iself))->nd_m1; __npy_i >= 0; __npy_i--) { if (((PyArrayIterObject *)(iself))->coordinates[__npy_i] < ((PyArrayIterObject *)(iself))->dims_m1[__npy_i]) { ((PyArrayIterObject *)(iself))->coordinates[__npy_i]++; ((PyArrayIterObject *)(iself))->dataptr += ((PyArrayIterObject *)(iself))->strides[__npy_i]; break; } else { ((PyArrayIterObject *)(iself))->coordinates[__npy_i] = 0; ((PyArrayIterObject *)(iself))->dataptr -= ((PyArrayIterObject *)(iself))->backstrides[__npy_i]; } } } }; { ((PyArrayIterObject *)(iother))->index++; if (((PyArrayIterObject *)(iother))->nd_m1 == 0) { { (((PyArrayIterObject *)(iother)))->dataptr += ((PyArrayIterObject *)(((PyArrayIterObject *)(iother))))->strides[0]; (((PyArrayIterObject *)(iother)))->coordinates[0]++; }; } else if (((PyArrayIterObject *)(iother))->contiguous) ((PyArrayIterObject *)(iother))->dataptr += ((PyArrayIterObject *)(iother))->ao->descr->elsize; else if (((PyArrayIterObject *)(iother))->nd_m1 == 1) { { if ((((PyArrayIterObject *)(iother)))->coordinates[1] < (((PyArrayIterObject *)(iother)))->dims_m1[1]) { (((PyArrayIterObject *)(iother)))->coordinates[1]++; (((PyArrayIterObject *)(iother)))->dataptr += (((PyArrayIterObject *)(iother)))->strides[1]; } else { (((PyArrayIterObject *)(iother)))->coordinates[1] = 0; (((PyArrayIterObject *)(iother)))->coordinates[0]++; (((PyArrayIterObject *)(iother)))->dataptr += (((PyArrayIterObject *)(iother)))->strides[0] - (((PyArrayIterObject *)(iother)))->backstrides[1]; } }; } else { int __npy_i; for (__npy_i=((PyArrayIterObject *)(iother))->nd_m1; __npy_i >= 0; __npy_i--) { if (((PyArrayIterObject *)(iother))->coordinates[__npy_i] < ((PyArrayIterObject *)(iother))->dims_m1[__npy_i]) { ((PyArrayIterObject *)(iother))->coordinates[__npy_i]++; ((PyArrayIterObject *)(iother))->dataptr += ((PyArrayIterObject *)(iother))->strides[__npy_i]; break; } else { ((PyArrayIterObject *)(iother))->coordinates[__npy_i] = 0; ((PyArrayIterObject *)(iother))->dataptr -= ((PyArrayIterObject *)(iother))->backstrides[__npy_i]; } } } }; dptr += 1; } } > break; > case 5: > if (rstrip) { void *aptr, *bptr; char atemp[2048], btemp[2048]; while(size--) { aptr = stripfunc(iself->dataptr, atemp, N1); if (!aptr) return -1; bptr = stripfunc(iother->dataptr, btemp, N2); if (!bptr) { relfunc(aptr, N1); return -1; } val = compfunc(aptr, bptr, N1, N2); *dptr = (val >= 0); { ((PyArrayIterObject *)(iself))->index++; if (((PyArrayIterObject *)(iself))->nd_m1 == 0) { { (((PyArrayIterObject *)(iself)))->dataptr += ((PyArrayIterObject *)(((PyArrayIterObject *)(iself))))->strides[0]; (((PyArrayIterObject *)(iself)))->coordinates[0]++; }; } else if (((PyArrayIterObject *)(iself))->contiguous) ((PyArrayIterObject *)(iself))->dataptr += ((PyArrayIterObject *)(iself))->ao->descr->elsize; else if (((PyArrayIterObject *)(iself))->nd_m1 == 1) { { if ((((PyArrayIterObject *)(iself)))->coordinates[1] < (((PyArrayIterObject *)(iself)))->dims_m1[1]) { (((PyArrayIterObject *)(iself)))->coordinates[1]++; (((PyArrayIterObject *)(iself)))->dataptr += (((PyArrayIterObject *)(iself)))->strides[1]; } else { (((PyArrayIterObject *)(iself)))->coordinates[1] = 0; (((PyArrayIterObject *)(iself)))->coordinates[0]++; (((PyArrayIterObject *)(iself)))->dataptr += (((PyArrayIterObject *)(iself)))->strides[0] - (((PyArrayIterObject *)(iself)))->backstrides[1]; } }; } else { int __npy_i; for (__npy_i=((PyArrayIterObject *)(iself))->nd_m1; __npy_i >= 0; __npy_i--) { if (((PyArrayIterObject *)(iself))->coordinates[__npy_i] < ((PyArrayIterObject *)(iself))->dims_m1[__npy_i]) { ((PyArrayIterObject *)(iself))->coordinates[__npy_i]++; ((PyArrayIterObject *)(iself))->dataptr += ((PyArrayIterObject *)(iself))->strides[__npy_i]; break; } else { ((PyArrayIterObject *)(iself))->coordinates[__npy_i] = 0; ((PyArrayIterObject *)(iself))->dataptr -= ((PyArrayIterObject *)(iself))->backstrides[__npy_i]; } } } }; { ((PyArrayIterObject *)(iother))->index++; if (((PyArrayIterObject *)(iother))->nd_m1 == 0) { { (((PyArrayIterObject *)(iother)))->dataptr += ((PyArrayIterObject *)(((PyArrayIterObject *)(iother))))->strides[0]; (((PyArrayIterObject *)(iother)))->coordinates[0]++; }; } else if (((PyArrayIterObject *)(iother))->contiguous) ((PyArrayIterObject *)(iother))->dataptr += ((PyArrayIterObject *)(iother))->ao->descr->elsize; else if (((PyArrayIterObject *)(iother))->nd_m1 == 1) { { if ((((PyArrayIterObject *)(iother)))->coordinates[1] < (((PyArrayIterObject *)(iother)))->dims_m1[1]) { (((PyArrayIterObject *)(iother)))->coordinates[1]++; (((PyArrayIterObject *)(iother)))->dataptr += (((PyArrayIterObject *)(iother)))->strides[1]; } else { (((PyArrayIterObject *)(iother)))->coordinates[1] = 0; (((PyArrayIterObject *)(iother)))->coordinates[0]++; (((PyArrayIterObject *)(iother)))->dataptr += (((PyArrayIterObject *)(iother)))->strides[0] - (((PyArrayIterObject *)(iother)))->backstrides[1]; } }; } else { int __npy_i; for (__npy_i=((PyArrayIterObject *)(iother))->nd_m1; __npy_i >= 0; __npy_i--) { if (((PyArrayIterObject *)(iother))->coordinates[__npy_i] < ((PyArrayIterObject *)(iother))->dims_m1[__npy_i]) { ((PyArrayIterObject *)(iother))->coordinates[__npy_i]++; ((PyArrayIterObject *)(iother))->dataptr += ((PyArrayIterObject *)(iother))->strides[__npy_i]; break; } else { ((PyArrayIterObject *)(iother))->coordinates[__npy_i] = 0; ((PyArrayIterObject *)(iother))->dataptr -= ((PyArrayIterObject *)(iother))->backstrides[__npy_i]; } } } }; dptr += 1; relfunc(aptr, N1); relfunc(bptr, N2); } } else { while(size--) { val = compfunc((void *)iself->dataptr, (void *)iother->dataptr, N1, N2); *dptr = (val >= 0); { ((PyArrayIterObject *)(iself))->index++; if (((PyArrayIterObject *)(iself))->nd_m1 == 0) { { (((PyArrayIterObject *)(iself)))->dataptr += ((PyArrayIterObject *)(((PyArrayIterObject *)(iself))))->strides[0]; (((PyArrayIterObject *)(iself)))->coordinates[0]++; }; } else if (((PyArrayIterObject *)(iself))->contiguous) ((PyArrayIterObject *)(iself))->dataptr += ((PyArrayIterObject *)(iself))->ao->descr->elsize; else if (((PyArrayIterObject *)(iself))->nd_m1 == 1) { { if ((((PyArrayIterObject *)(iself)))->coordinates[1] < (((PyArrayIterObject *)(iself)))->dims_m1[1]) { (((PyArrayIterObject *)(iself)))->coordinates[1]++; (((PyArrayIterObject *)(iself)))->dataptr += (((PyArrayIterObject *)(iself)))->strides[1]; } else { (((PyArrayIterObject *)(iself)))->coordinates[1] = 0; (((PyArrayIterObject *)(iself)))->coordinates[0]++; (((PyArrayIterObject *)(iself)))->dataptr += (((PyArrayIterObject *)(iself)))->strides[0] - (((PyArrayIterObject *)(iself)))->backstrides[1]; } }; } else { int __npy_i; for (__npy_i=((PyArrayIterObject *)(iself))->nd_m1; __npy_i >= 0; __npy_i--) { if (((PyArrayIterObject *)(iself))->coordinates[__npy_i] < ((PyArrayIterObject *)(iself))->dims_m1[__npy_i]) { ((PyArrayIterObject *)(iself))->coordinates[__npy_i]++; ((PyArrayIterObject *)(iself))->dataptr += ((PyArrayIterObject *)(iself))->strides[__npy_i]; break; } else { ((PyArrayIterObject *)(iself))->coordinates[__npy_i] = 0; ((PyArrayIterObject *)(iself))->dataptr -= ((PyArrayIterObject *)(iself))->backstrides[__npy_i]; } } } }; { ((PyArrayIterObject *)(iother))->index++; if (((PyArrayIterObject *)(iother))->nd_m1 == 0) { { (((PyArrayIterObject *)(iother)))->dataptr += ((PyArrayIterObject *)(((PyArrayIterObject *)(iother))))->strides[0]; (((PyArrayIterObject *)(iother)))->coordinates[0]++; }; } else if (((PyArrayIterObject *)(iother))->contiguous) ((PyArrayIterObject *)(iother))->dataptr += ((PyArrayIterObject *)(iother))->ao->descr->elsize; else if (((PyArrayIterObject *)(iother))->nd_m1 == 1) { { if ((((PyArrayIterObject *)(iother)))->coordinates[1] < (((PyArrayIterObject *)(iother)))->dims_m1[1]) { (((PyArrayIterObject *)(iother)))->coordinates[1]++; (((PyArrayIterObject *)(iother)))->dataptr += (((PyArrayIterObject *)(iother)))->strides[1]; } else { (((PyArrayIterObject *)(iother)))->coordinates[1] = 0; (((PyArrayIterObject *)(iother)))->coordinates[0]++; (((PyArrayIterObject *)(iother)))->dataptr += (((PyArrayIterObject *)(iother)))->strides[0] - (((PyArrayIterObject *)(iother)))->backstrides[1]; } }; } else { int __npy_i; for (__npy_i=((PyArrayIterObject *)(iother))->nd_m1; __npy_i >= 0; __npy_i--) { if (((PyArrayIterObject *)(iother))->coordinates[__npy_i] < ((PyArrayIterObject *)(iother))->dims_m1[__npy_i]) { ((PyArrayIterObject *)(iother))->coordinates[__npy_i]++; ((PyArrayIterObject *)(iother))->dataptr += ((PyArrayIterObject *)(iother))->strides[__npy_i]; break; } else { ((PyArrayIterObject *)(iother))->coordinates[__npy_i] = 0; ((PyArrayIterObject *)(iother))->dataptr -= ((PyArrayIterObject *)(iother))->backstrides[__npy_i]; } } } }; dptr += 1; } } > break; > default: > PyErr_SetString(PyExc_RuntimeError, "bad comparison operator"); > return -1; > } > return 0; >} > > > > > > >static PyObject * >_strings_richcompare(PyArrayObject *self, PyArrayObject *other, int cmp_op, > int rstrip) >{ > PyObject *result; > PyArrayMultiIterObject *mit; > int val; > > > if (self->descr->type_num != other->descr->type_num) { ># 793 "numpy/core/src/multiarray/arrayobject.c" > PyObject *new; > if (self->descr->type_num == NPY_STRING && > other->descr->type_num == NPY_UNICODE) { > PyArray_Descr* unicode = PyArray_DescrNew(other->descr); > unicode->elsize = self->descr->elsize << 2; > new = PyArray_FromAny((PyObject *)self, unicode, > 0, 0, 0, ((void *)0)); > if (new == ((void *)0)) { > return ((void *)0); > } > ( ((PyObject*)(other))->ob_refcnt++); > self = (PyArrayObject *)new; > } > else if (self->descr->type_num == NPY_UNICODE && > other->descr->type_num == NPY_STRING) { > PyArray_Descr* unicode = PyArray_DescrNew(self->descr); > unicode->elsize = other->descr->elsize << 2; > new = PyArray_FromAny((PyObject *)other, unicode, > 0, 0, 0, ((void *)0)); > if (new == ((void *)0)) { > return ((void *)0); > } > ( ((PyObject*)(self))->ob_refcnt++); > other = (PyArrayObject *)new; > } > else { > PyErr_SetString(PyExc_TypeError, > "invalid string data-types " > "in comparison"); > return ((void *)0); > } > > } > else { > ( ((PyObject*)(self))->ob_refcnt++); > ( ((PyObject*)(other))->ob_refcnt++); > } > > > mit = (PyArrayMultiIterObject *)PyArray_MultiIterNew(2, self, other); > do { if ( --((PyObject*)(self))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(self)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(self)))); } while (0); > do { if ( --((PyObject*)(other))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(other)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(other)))); } while (0); > if (mit == ((void *)0)) { > return ((void *)0); > } > > result = PyArray_NewFromDescr(&PyArray_Type, > PyArray_DescrFromType(NPY_BOOL), > mit->nd, > mit->dimensions, > ((void *)0), ((void *)0), 0, > ((void *)0)); > if (result == ((void *)0)) { > goto finish; > } > > if (self->descr->type_num == NPY_UNICODE) { > val = _compare_strings(result, mit, cmp_op, _myunincmp, rstrip); > } > else { > val = _compare_strings(result, mit, cmp_op, _mystrncmp, rstrip); > } > > if (val < 0) { > do { if ( --((PyObject*)(result))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(result)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(result)))); } while (0); result = ((void *)0); > } > > finish: > do { if ( --((PyObject*)(mit))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(mit)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(mit)))); } while (0); > return result; >} ># 875 "numpy/core/src/multiarray/arrayobject.c" >static PyObject * >_void_compare(PyArrayObject *self, PyArrayObject *other, int cmp_op) >{ > if (!(cmp_op == 2 || cmp_op == 3)) { > PyErr_SetString(PyExc_ValueError, > "Void-arrays can only be compared for equality."); > return ((void *)0); > } > if ((((PyArray_Descr *)((((PyArrayObject *)(self))->descr)))->names != ((void *)0))) { > PyObject *res = ((void *)0), *temp, *a, *b; > PyObject *key, *value, *temp2; > PyObject *op; > Py_ssize_t pos = 0; > npy_intp result_ndim = (((PyArrayObject *)(self))->nd) > (((PyArrayObject *)(other))->nd) ? > (((PyArrayObject *)(self))->nd) : (((PyArrayObject *)(other))->nd); > > op = (cmp_op == 2 ? n_ops.logical_and : n_ops.logical_or); > while (PyDict_Next(self->descr->fields, &pos, &key, &value)) { > if (((((PyVarObject*)((value)))->ob_size)==3) && ((((PyTupleObject *)((value)))->ob_item[2]) == (key))) { > continue; > } > a = PyArray_EnsureAnyArray(array_subscript(self, key)); > if (a == ((void *)0)) { > do { if ((res) == ((void *)0)) ; else do { if ( --((PyObject*)(res))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(res)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(res)))); } while (0); } while (0); > return ((void *)0); > } > b = array_subscript(other, key); > if (b == ((void *)0)) { > do { if ((res) == ((void *)0)) ; else do { if ( --((PyObject*)(res))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(res)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(res)))); } while (0); } while (0); > do { if ( --((PyObject*)(a))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(a)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(a)))); } while (0); > return ((void *)0); > } > temp = array_richcompare((PyArrayObject *)a,b,cmp_op); > do { if ( --((PyObject*)(a))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(a)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(a)))); } while (0); > do { if ( --((PyObject*)(b))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(b)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(b)))); } while (0); > if (temp == ((void *)0)) { > do { if ((res) == ((void *)0)) ; else do { if ( --((PyObject*)(res))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(res)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(res)))); } while (0); } while (0); > return ((void *)0); > } > > > > > > > if (((((PyObject*)(temp))->ob_type) == (&PyArray_Type) || PyType_IsSubtype((((PyObject*)(temp))->ob_type), (&PyArray_Type))) && (((PyArrayObject *)(temp))->nd) > result_ndim) { > > > if ((((PyArrayObject *)(temp))->nd) != result_ndim+1) { > npy_intp dimensions[32]; > PyArray_Dims newdims; > > newdims.ptr = dimensions; > newdims.len = result_ndim+1; > memcpy(dimensions, (((PyArrayObject *)(temp))->dimensions), > sizeof(npy_intp)*result_ndim); > dimensions[result_ndim] = -1; > temp2 = PyArray_Newshape((PyArrayObject *)temp, > &newdims, NPY_ANYORDER); > if (temp2 == ((void *)0)) { > do { if ( --((PyObject*)(temp))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(temp)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(temp)))); } while (0); > do { if ((res) == ((void *)0)) ; else do { if ( --((PyObject*)(res))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(res)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(res)))); } while (0); } while (0); > return ((void *)0); > } > do { if ( --((PyObject*)(temp))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(temp)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(temp)))); } while (0); > temp = temp2; > } > > temp2 = PyArray_GenericReduceFunction((PyArrayObject *)temp, > op, result_ndim, > NPY_BOOL, ((void *)0)); > if (temp2 == ((void *)0)) { > do { if ( --((PyObject*)(temp))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(temp)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(temp)))); } while (0); > do { if ((res) == ((void *)0)) ; else do { if ( --((PyObject*)(res))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(res)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(res)))); } while (0); } while (0); > return ((void *)0); > } > do { if ( --((PyObject*)(temp))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(temp)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(temp)))); } while (0); > temp = temp2; > } > > if (res == ((void *)0)) { > res = temp; > } > else { > temp2 = _PyObject_CallFunction_SizeT(op, "OO", res, temp); > do { if ( --((PyObject*)(temp))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(temp)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(temp)))); } while (0); > do { if ( --((PyObject*)(res))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(res)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(res)))); } while (0); > if (temp2 == ((void *)0)) { > return ((void *)0); > } > res = temp2; > } > } > if (res == ((void *)0) && !PyErr_Occurred()) { > PyErr_SetString(PyExc_ValueError, "No fields found."); > } > return res; > } > else { > > > > > return _strings_richcompare(self, other, cmp_op, 0); > } >} > >static PyObject * >array_richcompare(PyArrayObject *self, PyObject *other, int cmp_op) >{ > PyObject *array_other, *result = ((void *)0); > int typenum; > > switch (cmp_op) { > case 0: > result = PyArray_GenericBinaryFunction(self, other, > n_ops.less); > break; > case 1: > result = PyArray_GenericBinaryFunction(self, other, > n_ops.less_equal); > break; > case 2: > if (other == (&_Py_NoneStruct)) { > ( ((PyObject*)(((PyObject *) &_Py_ZeroStruct)))->ob_refcnt++); > return ((PyObject *) &_Py_ZeroStruct); > } > > if (!((((PyObject*)(other))->ob_type) == (&PyArray_Type) || PyType_IsSubtype((((PyObject*)(other))->ob_type), (&PyArray_Type)))) { > typenum = self->descr->type_num; > if (typenum != NPY_OBJECT) { > typenum = NPY_NOTYPE; > } > array_other = PyArray_FromAny(other, PyArray_DescrFromType(typenum), 0, 0, (0x0100 | 0x0400) | 0x0040, ((void *)0)); > > > > > > if ((array_other == ((void *)0)) || > (array_other == (&_Py_NoneStruct))) { > do { if ((array_other) == ((void *)0)) ; else do { if ( --((PyObject*)(array_other))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(array_other)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(array_other)))); } while (0); } while (0); > PyErr_Clear(); > ( ((PyObject*)((&_Py_NotImplementedStruct)))->ob_refcnt++); > return (&_Py_NotImplementedStruct); > } > } > else { > ( ((PyObject*)(other))->ob_refcnt++); > array_other = other; > } > result = PyArray_GenericBinaryFunction(self, > array_other, > n_ops.equal); > if ((result == (&_Py_NotImplementedStruct)) && > (self->descr->type_num == NPY_VOID)) { > int _res; > > _res = PyObject_RichCompareBool > ((PyObject *)self->descr, > (PyObject *) (((PyArrayObject *)(array_other))->descr), > > 2); > if (_res < 0) { > do { if ( --((PyObject*)(result))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(result)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(result)))); } while (0); > do { if ( --((PyObject*)(array_other))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(array_other)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(array_other)))); } while (0); > return ((void *)0); > } > if (_res) { > do { if ( --((PyObject*)(result))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(result)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(result)))); } while (0); > result = _void_compare > (self, > (PyArrayObject *)array_other, > cmp_op); > do { if ( --((PyObject*)(array_other))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(array_other)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(array_other)))); } while (0); > } > return result; > } > > > > > > do { if ( --((PyObject*)(array_other))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(array_other)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(array_other)))); } while (0); > if (result == ((void *)0)) { > PyErr_Clear(); > ( ((PyObject*)((&_Py_NotImplementedStruct)))->ob_refcnt++); > return (&_Py_NotImplementedStruct); > } > break; > case 3: > if (other == (&_Py_NoneStruct)) { > ( ((PyObject*)(((PyObject *) &_Py_TrueStruct)))->ob_refcnt++); > return ((PyObject *) &_Py_TrueStruct); > } > > if (!((((PyObject*)(other))->ob_type) == (&PyArray_Type) || PyType_IsSubtype((((PyObject*)(other))->ob_type), (&PyArray_Type)))) { > typenum = self->descr->type_num; > if (typenum != NPY_OBJECT) { > typenum = NPY_NOTYPE; > } > array_other = PyArray_FromAny(other, PyArray_DescrFromType(typenum), 0, 0, (0x0100 | 0x0400) | 0x0040, ((void *)0)); > > > > > if ((array_other == ((void *)0)) || (array_other == (&_Py_NoneStruct))) { > do { if ((array_other) == ((void *)0)) ; else do { if ( --((PyObject*)(array_other))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(array_other)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(array_other)))); } while (0); } while (0); > PyErr_Clear(); > ( ((PyObject*)((&_Py_NotImplementedStruct)))->ob_refcnt++); > return (&_Py_NotImplementedStruct); > } > } > else { > ( ((PyObject*)(other))->ob_refcnt++); > array_other = other; > } > result = PyArray_GenericBinaryFunction(self, > array_other, > n_ops.not_equal); > if ((result == (&_Py_NotImplementedStruct)) && > (self->descr->type_num == NPY_VOID)) { > int _res; > > _res = PyObject_RichCompareBool( > (PyObject *)self->descr, > (PyObject *) > (((PyArrayObject *)(array_other))->descr), > 2); > if (_res < 0) { > do { if ( --((PyObject*)(result))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(result)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(result)))); } while (0); > do { if ( --((PyObject*)(array_other))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(array_other)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(array_other)))); } while (0); > return ((void *)0); > } > if (_res) { > do { if ( --((PyObject*)(result))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(result)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(result)))); } while (0); > result = _void_compare( > self, > (PyArrayObject *)array_other, > cmp_op); > do { if ( --((PyObject*)(array_other))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(array_other)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(array_other)))); } while (0); > } > return result; > } > > do { if ( --((PyObject*)(array_other))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(array_other)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(array_other)))); } while (0); > if (result == ((void *)0)) { > PyErr_Clear(); > ( ((PyObject*)((&_Py_NotImplementedStruct)))->ob_refcnt++); > return (&_Py_NotImplementedStruct); > } > break; > case 4: > result = PyArray_GenericBinaryFunction(self, other, > n_ops.greater); > break; > case 5: > result = PyArray_GenericBinaryFunction(self, other, > n_ops.greater_equal); > break; > default: > result = (&_Py_NotImplementedStruct); > ( ((PyObject*)(result))->ob_refcnt++); > } > if (result == (&_Py_NotImplementedStruct)) { > > if (self->descr->type_num == NPY_OBJECT) { > return result; > } > array_other = PyArray_FromAny(other, PyArray_DescrFromType(NPY_NOTYPE), 0, 0, (0x0100 | 0x0400) | 0x0040, ((void *)0)); > if (((((((PyArrayObject *)(self))->descr->type_num)) == NPY_STRING) || (((((PyArrayObject *)(self))->descr->type_num)) == NPY_UNICODE)) && ((((((PyArrayObject *)(array_other))->descr->type_num)) == NPY_STRING) || (((((PyArrayObject *)(array_other))->descr->type_num)) == NPY_UNICODE))) { > do { if ( --((PyObject*)(result))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(result)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(result)))); } while (0); > result = _strings_richcompare(self, (PyArrayObject *) > array_other, cmp_op, 0); > } > do { if ( --((PyObject*)(array_other))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(array_other)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(array_other)))); } while (0); > } > return result; >} > > > >static int >PyArray_ElementStrides(PyObject *arr) >{ > int itemsize = (((PyArrayObject *)(arr))->descr->elsize); > int i, N = (((PyArrayObject *)(arr))->nd); > npy_intp *strides = (((PyArrayObject *)(arr))->strides); > > for (i = 0; i < N; i++) { > if ((strides[i] % itemsize) != 0) { > return 0; > } > } > return 1; >} ># 1190 "numpy/core/src/multiarray/arrayobject.c" >static npy_bool >PyArray_CheckStrides(int elsize, int nd, npy_intp numbytes, npy_intp offset, > npy_intp *dims, npy_intp *newstrides) >{ > int i; > npy_intp byte_begin; > npy_intp begin; > npy_intp end; > > if (numbytes == 0) { > numbytes = PyArray_MultiplyList(dims, nd) * elsize; > } > begin = -offset; > end = numbytes - offset - elsize; > for (i = 0; i < nd; i++) { > byte_begin = newstrides[i]*(dims[i] - 1); > if ((byte_begin < begin) || (byte_begin > end)) { > return 0; > } > } > return 1; >} > > >static PyObject * >array_new(PyTypeObject *subtype, PyObject *args, PyObject *kwds) >{ > static char *kwlist[] = {"shape", "dtype", "buffer", "offset", "strides", > "order", ((void *)0)}; > PyArray_Descr *descr = ((void *)0); > int itemsize; > PyArray_Dims dims = {((void *)0), 0}; > PyArray_Dims strides = {((void *)0), 0}; > PyArray_Chunk buffer; > npy_longlong offset = 0; > NPY_ORDER order = NPY_CORDER; > int fortran_ = 0; > PyArrayObject *ret; > > buffer.ptr = ((void *)0); > > > > > > if (!_PyArg_ParseTupleAndKeywords_SizeT(args, kwds, "O&|O&O&LO&O&", > kwlist, PyArray_IntpConverter, > &dims, > PyArray_DescrConverter, > &descr, > PyArray_BufferConverter, > &buffer, > &offset, > &PyArray_IntpConverter, > &strides, > &PyArray_OrderConverter, > &order)) { > goto fail; > } > if (order == NPY_FORTRANORDER) { > fortran_ = 1; > } > if (descr == ((void *)0)) { > descr = PyArray_DescrFromType(NPY_DOUBLE); > } > > itemsize = descr->elsize; > if (itemsize == 0) { > PyErr_SetString(PyExc_ValueError, > "data-type with unspecified variable length"); > goto fail; > } > > if (strides.ptr != ((void *)0)) { > npy_intp nb, off; > if (strides.len != dims.len) { > PyErr_SetString(PyExc_ValueError, > "strides, if given, must be " "the same length as shape"); > > goto fail; > } > > if (buffer.ptr == ((void *)0)) { > nb = 0; > off = 0; > } > else { > nb = buffer.len; > off = (npy_intp) offset; > } > > > if (!PyArray_CheckStrides(itemsize, dims.len, > nb, off, > dims.ptr, strides.ptr)) { > PyErr_SetString(PyExc_ValueError, > "strides is incompatible " "with shape of requested " "array and size of buffer"); > > > goto fail; > } > } > > if (buffer.ptr == ((void *)0)) { > ret = (PyArrayObject *) > PyArray_NewFromDescr(subtype, descr, > (int)dims.len, > dims.ptr, > strides.ptr, ((void *)0), fortran_, ((void *)0)); > if (ret == ((void *)0)) { > descr = ((void *)0); > goto fail; > } > if ((((descr)->flags & (0x01)) == (0x01))) { > > PyArray_FillObjectArray(ret, (&_Py_NoneStruct)); > if (PyErr_Occurred()) { > descr = ((void *)0); > goto fail; > } > } > } > else { > > if (dims.len == 1 && dims.ptr[0] == -1) { > dims.ptr[0] = (buffer.len-(npy_intp)offset) / itemsize; > } > else if ((strides.ptr == ((void *)0)) && > (buffer.len < (offset + (((npy_intp)itemsize)* > PyArray_MultiplyList(dims.ptr, > dims.len))))) { > PyErr_SetString(PyExc_TypeError, > "buffer is too small for " "requested array"); > > goto fail; > } > > if (fortran_) { > buffer.flags |= 0x0002; > } > ret = (PyArrayObject *) PyArray_NewFromDescr(subtype, descr, > > dims.len, dims.ptr, > strides.ptr, > offset + (char *)buffer.ptr, > buffer.flags, ((void *)0)); > if (ret == ((void *)0)) { > descr = ((void *)0); > goto fail; > } > PyArray_UpdateFlags(ret, (0x0001 | 0x0002 | 0x0100)); > ret->base = buffer.base; > ( ((PyObject*)(buffer.base))->ob_refcnt++); > } > > PyMem_Free(dims.ptr); > if (strides.ptr) { > PyMem_Free(strides.ptr); > } > return (PyObject *)ret; > > fail: > do { if ((descr) == ((void *)0)) ; else do { if ( --((PyObject*)(descr))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(descr)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(descr)))); } while (0); } while (0); > if (dims.ptr) { > PyMem_Free(dims.ptr); > } > if (strides.ptr) { > PyMem_Free(strides.ptr); > } > return ((void *)0); >} > > >static PyObject * >array_iter(PyArrayObject *arr) >{ > if (arr->nd == 0) { > PyErr_SetString(PyExc_TypeError, > "iteration over a 0-d array"); > return ((void *)0); > } > return PySeqIter_New((PyObject *)arr); >} > >static PyObject * >array_alloc(PyTypeObject *type, Py_ssize_t (__NPY_UNUSED_TAGGEDnitems) __attribute__ ((__unused__))) >{ > PyObject *obj; > > obj = (PyObject *)PyMem_Malloc(sizeof(PyArrayObject)); > PyObject_Init(obj, type); > return obj; >} > > >static PyTypeObject PyArray_Type = { > > > > 1, ((void *)0), > 0, > > "numpy.ndarray", > sizeof(PyArrayObject), > 0, > > (destructor)array_dealloc, > (printfunc)((void *)0), > 0, > 0, > > > > 0, > > (reprfunc)array_repr, > &array_as_number, > &array_as_sequence, > &array_as_mapping, > (hashfunc)0, > (ternaryfunc)0, > (reprfunc)array_str, > (getattrofunc)0, > (setattrofunc)0, > &array_as_buffer, > (( (1L<<0) | (1L<<1) | (1L<<3) | (1L<<5) | (1L<<6) | (1L<<7) | (1L<<8) | 0 | (1L<<17) | 0) > > | (1L<<4) > > > | (1L<<21) > > | (1L<<10)), > 0, > > (traverseproc)0, > (inquiry)0, > (richcmpfunc)array_richcompare, > ((size_t) &((PyArrayObject *)0)->weakreflist), > (getiterfunc)array_iter, > (iternextfunc)0, > array_methods, > 0, > array_getsetlist, > 0, > 0, > 0, > 0, > 0, > (initproc)0, > array_alloc, > (newfunc)array_new, > 0, > 0, > 0, > 0, > 0, > 0, > 0, > 0, > > 0, > >}; ># 50 "numpy/core/src/multiarray/multiarraymodule_onefile.c" 2 > ># 1 "numpy/core/src/multiarray/numpymemoryview.c" 1 ># 303 "numpy/core/src/multiarray/numpymemoryview.c" >static int >_numpymemoryview_init(PyObject **typeobject) >{ > *typeobject = ((void *)0); > return 0; >} ># 52 "numpy/core/src/multiarray/multiarraymodule_onefile.c" 2 > ># 1 "numpy/core/src/multiarray/multiarraymodule.c" 1 ># 32 "numpy/core/src/multiarray/multiarraymodule.c" >static int NPY_NUMUSERTYPES = 0; ># 46 "numpy/core/src/multiarray/multiarraymodule.c" ># 1 "numpy/core/src/multiarray/nditer_pywrap.h" 1 > > > >static PyObject * >NpyIter_NestedIters(PyObject *(__NPY_UNUSED_TAGGEDself) __attribute__ ((__unused__)), > PyObject *args, PyObject *kwds); ># 47 "numpy/core/src/multiarray/multiarraymodule.c" 2 > > >static PyTypeObject PyBigArray_Type; > > > > >static double >PyArray_GetPriority(PyObject *obj, double default_) >{ > PyObject *ret; > double priority = 0.0; > > if ((((PyObject*)(obj))->ob_type == &PyArray_Type)) > return priority; > > ret = PyObject_GetAttrString(obj, "__array_priority__"); > if (ret != ((void *)0)) { > priority = PyFloat_AsDouble(ret); > } > if (PyErr_Occurred()) { > PyErr_Clear(); > priority = default_; > } > do { if ((ret) == ((void *)0)) ; else do { if ( --((PyObject*)(ret))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(ret)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(ret)))); } while (0); } while (0); > return priority; >} > > > > >static int >PyArray_MultiplyIntList(int *l1, int n) >{ > int s = 1; > > while (n--) { > s *= (*l1++); > } > return s; >} > > > > >static npy_intp >PyArray_MultiplyList(npy_intp *l1, int n) >{ > npy_intp s = 1; > > while (n--) { > s *= (*l1++); > } > return s; >} > > > > >static npy_intp >PyArray_OverflowMultiplyList(npy_intp *l1, int n) >{ > npy_intp prod = 1; > npy_intp imax = 9223372036854775807L; > int i; > > for (i = 0; i < n; i++) { > npy_intp dim = l1[i]; > > if (dim == 0) { > return 0; > } > if (dim > imax) { > return -1; > } > imax /= dim; > prod *= dim; > } > return prod; >} > > > > >static void * >PyArray_GetPtr(PyArrayObject *obj, npy_intp* ind) >{ > int n = obj->nd; > npy_intp *strides = obj->strides; > char *dptr = obj->data; > > while (n--) { > dptr += (*strides++) * (*ind++); > } > return (void *)dptr; >} > > > > >static int >PyArray_CompareLists(npy_intp *l1, npy_intp *l2, int n) >{ > int i; > > for (i = 0; i < n; i++) { > if (l1[i] != l2[i]) { > return 0; > } > } > return 1; >} ># 174 "numpy/core/src/multiarray/multiarraymodule.c" >static int >PyArray_AsCArray(PyObject **op, void *ptr, npy_intp *dims, int nd, > PyArray_Descr* typedescr) >{ > PyArrayObject *ap; > npy_intp n, m, i, j; > char **ptr2; > char ***ptr3; > > if ((nd < 1) || (nd > 3)) { > PyErr_SetString(PyExc_ValueError, > "C arrays of only 1-3 dimensions available"); > do { if ((typedescr) == ((void *)0)) ; else do { if ( --((PyObject*)(typedescr))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(typedescr)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(typedescr)))); } while (0); } while (0); > return -1; > } > if ((ap = (PyArrayObject*)PyArray_FromAny(*op, typedescr, nd, nd, > (0x0001 | (0x0100 | 0x0400)), ((void *)0))) == ((void *)0)) { > return -1; > } > switch(nd) { > case 1: > *((char **)ptr) = ap->data; > break; > case 2: > n = ap->dimensions[0]; > ptr2 = (char **)PyMem_Malloc(n * sizeof(char *)); > if (!ptr2) { > goto fail; > } > for (i = 0; i < n; i++) { > ptr2[i] = ap->data + i*ap->strides[0]; > } > *((char ***)ptr) = ptr2; > break; > case 3: > n = ap->dimensions[0]; > m = ap->dimensions[1]; > ptr3 = (char ***)PyMem_Malloc(n*(m+1) * sizeof(char *)); > if (!ptr3) { > goto fail; > } > for (i = 0; i < n; i++) { > ptr3[i] = ptr3[n + (m-1)*i]; > for (j = 0; j < m; j++) { > ptr3[i][j] = ap->data + i*ap->strides[0] + j*ap->strides[1]; > } > } > *((char ****)ptr) = ptr3; > } > memcpy(dims, ap->dimensions, nd*sizeof(npy_intp)); > *op = (PyObject *)ap; > return 0; > > fail: > PyErr_SetString(PyExc_MemoryError, "no memory"); > return -1; >} > > > > > > >static int >PyArray_As1D(PyObject **op, char **ptr, int *d1, int typecode) >{ > npy_intp newd1; > PyArray_Descr *descr; > char msg[] = "PyArray_As1D: use PyArray_AsCArray."; > > if (PyErr_WarnEx(PyExc_DeprecationWarning,msg,1) < 0) { > return -1; > } > descr = PyArray_DescrFromType(typecode); > if (PyArray_AsCArray(op, (void *)ptr, &newd1, 1, descr) == -1) { > return -1; > } > *d1 = (int) newd1; > return 0; >} > > > > >static int >PyArray_As2D(PyObject **op, char ***ptr, int *d1, int *d2, int typecode) >{ > npy_intp newdims[2]; > PyArray_Descr *descr; > char msg[] = "PyArray_As1D: use PyArray_AsCArray."; > > if (PyErr_WarnEx(PyExc_DeprecationWarning,msg,1) < 0) { > return -1; > } > descr = PyArray_DescrFromType(typecode); > if (PyArray_AsCArray(op, (void *)ptr, newdims, 2, descr) == -1) { > return -1; > } > *d1 = (int ) newdims[0]; > *d2 = (int ) newdims[1]; > return 0; >} > > > > > > >static int >PyArray_Free(PyObject *op, void *ptr) >{ > PyArrayObject *ap = (PyArrayObject *)op; > > if ((ap->nd < 1) || (ap->nd > 3)) { > return -1; > } > if (ap->nd >= 2) { > PyMem_Free(ptr); > } > do { if ( --((PyObject*)(ap))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(ap)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(ap)))); } while (0); > return 0; >} > > >static PyObject * >_swap_and_concat(PyObject *op, int axis, int n) >{ > PyObject *newtup = ((void *)0); > PyObject *otmp, *arr; > int i; > > newtup = PyTuple_New(n); > if (newtup == ((void *)0)) { > return ((void *)0); > } > for (i = 0; i < n; i++) { > otmp = PySequence_GetItem(op, i); > arr = PyArray_FromAny(otmp, ((void *)0), 0, 0, 0, ((void *)0)); > do { if ( --((PyObject*)(otmp))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(otmp)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(otmp)))); } while (0); > if (arr == ((void *)0)) { > goto fail; > } > otmp = PyArray_SwapAxes((PyArrayObject *)arr, axis, 0); > do { if ( --((PyObject*)(arr))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(arr)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(arr)))); } while (0); > if (otmp == ((void *)0)) { > goto fail; > } > (((PyTupleObject *)(newtup))->ob_item[i] = otmp); > } > otmp = PyArray_Concatenate(newtup, 0); > do { if ( --((PyObject*)(newtup))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(newtup)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(newtup)))); } while (0); > if (otmp == ((void *)0)) { > return ((void *)0); > } > arr = PyArray_SwapAxes((PyArrayObject *)otmp, axis, 0); > do { if ( --((PyObject*)(otmp))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(otmp)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(otmp)))); } while (0); > return arr; > > fail: > do { if ( --((PyObject*)(newtup))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(newtup)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(newtup)))); } while (0); > return ((void *)0); >} ># 346 "numpy/core/src/multiarray/multiarraymodule.c" >static PyObject * >PyArray_Concatenate(PyObject *op, int axis) >{ > PyArrayObject *ret, **mps; > PyObject *otmp; > int i, n, tmp, nd = 0, new_dim; > char *data; > PyTypeObject *subtype; > double prior1, prior2; > npy_intp numbytes; > > n = PySequence_Size(op); > if (n == -1) { > return ((void *)0); > } > if (n == 0) { > PyErr_SetString(PyExc_ValueError, > "concatenation of zero-length sequences is " "impossible"); > > return ((void *)0); > } > > if ((axis < 0) || ((0 < axis) && (axis < 32))) { > return _swap_and_concat(op, axis, n); > } > mps = PyArray_ConvertToCommonType(op, &n); > if (mps == ((void *)0)) { > return ((void *)0); > } > > > > > > prior1 = 0.0; > subtype = &PyArray_Type; > ret = ((void *)0); > for (i = 0; i < n; i++) { > if (axis >= 32) { > otmp = PyArray_Ravel(mps[i],0); > do { if ( --((PyObject*)(mps[i]))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(mps[i])))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(mps[i])))); } while (0); > mps[i] = (PyArrayObject *)otmp; > } > if ((((PyObject*)(mps[i]))->ob_type) != subtype) { > prior2 = PyArray_GetPriority((PyObject *)(mps[i]), 0.0); > if (prior2 > prior1) { > prior1 = prior2; > subtype = (((PyObject*)(mps[i]))->ob_type); > } > } > } > > new_dim = 0; > for (i = 0; i < n; i++) { > if (mps[i] == ((void *)0)) { > goto fail; > } > if (i == 0) { > nd = mps[i]->nd; > } > else { > if (nd != mps[i]->nd) { > PyErr_SetString(PyExc_ValueError, > "arrays must have same " "number of dimensions"); > > goto fail; > } > if (!PyArray_CompareLists(mps[0]->dimensions+1, > mps[i]->dimensions+1, > nd-1)) { > PyErr_SetString(PyExc_ValueError, > "array dimensions must " "agree except for d_0"); > > goto fail; > } > } > if (nd == 0) { > PyErr_SetString(PyExc_ValueError, > "0-d arrays can't be concatenated"); > goto fail; > } > new_dim += mps[i]->dimensions[0]; > } > tmp = mps[0]->dimensions[0]; > mps[0]->dimensions[0] = new_dim; > ( ((PyObject*)(mps[0]->descr))->ob_refcnt++); > ret = (PyArrayObject *)PyArray_NewFromDescr(subtype, > mps[0]->descr, nd, > mps[0]->dimensions, > ((void *)0), ((void *)0), 0, > (PyObject *)ret); > mps[0]->dimensions[0] = tmp; > > if (ret == ((void *)0)) { > goto fail; > } > data = ret->data; > for (i = 0; i < n; i++) { > numbytes = ((((PyArrayObject *)(mps[i]))->descr->elsize) * PyArray_MultiplyList((((PyArrayObject *)(mps[i]))->dimensions), (((PyArrayObject *)(mps[i]))->nd))); > memcpy(data, mps[i]->data, numbytes); > data += numbytes; > } > > PyArray_INCREF(ret); > for (i = 0; i < n; i++) { > do { if ((mps[i]) == ((void *)0)) ; else do { if ( --((PyObject*)(mps[i]))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(mps[i])))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(mps[i])))); } while (0); } while (0); > } > free(mps); > return (PyObject *)ret; > > fail: > do { if ((ret) == ((void *)0)) ; else do { if ( --((PyObject*)(ret))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(ret)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(ret)))); } while (0); } while (0); > for (i = 0; i < n; i++) { > do { if ((mps[i]) == ((void *)0)) ; else do { if ( --((PyObject*)(mps[i]))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(mps[i])))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(mps[i])))); } while (0); } while (0); > } > free(mps); > return ((void *)0); >} > >static int >_signbit_set(PyArrayObject *arr) >{ > static char bitmask = (char) 0x80; > char *ptr; > char byteorder; > int elsize; > > elsize = arr->descr->elsize; > byteorder = arr->descr->byteorder; > ptr = arr->data; > if (elsize > 1 && > (byteorder == '<' || > (byteorder == '=' && > (('<') != '>')))) { > ptr += elsize - 1; > } > return ((*ptr & bitmask) != 0); >} ># 496 "numpy/core/src/multiarray/multiarraymodule.c" >static NPY_SCALARKIND >PyArray_ScalarKind(int typenum, PyArrayObject **arr) >{ > NPY_SCALARKIND ret = NPY_NOSCALAR; > > if ((unsigned int)typenum < NPY_NTYPES) { > ret = _npy_scalar_kinds_table[typenum]; > > if (ret == NPY_INTNEG_SCALAR) { > if (!arr || !_signbit_set(*arr)) { > ret = NPY_INTPOS_SCALAR; > } > } > } else if ((((typenum) >= NPY_USERDEF) && ((typenum) < NPY_USERDEF+ NPY_NUMUSERTYPES))) { > PyArray_Descr* descr = PyArray_DescrFromType(typenum); > > if (descr->f->scalarkind) { > ret = descr->f->scalarkind((arr ? *arr : ((void *)0))); > } > do { if ( --((PyObject*)(descr))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(descr)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(descr)))); } while (0); > } > > return ret; >} > > > > > > >static int >PyArray_CanCoerceScalar(int thistype, int neededtype, > NPY_SCALARKIND scalar) >{ > PyArray_Descr* from; > int *castlist; > > > if (scalar == NPY_NOSCALAR) { > return PyArray_CanCastSafely(thistype, neededtype); > } > if ((unsigned int)neededtype < NPY_NTYPES) { > NPY_SCALARKIND neededscalar; > > if (scalar == NPY_OBJECT_SCALAR) { > return PyArray_CanCastSafely(thistype, neededtype); > } ># 557 "numpy/core/src/multiarray/multiarraymodule.c" > neededscalar = _npy_scalar_kinds_table[neededtype]; > if (neededscalar >= scalar) { > return 1; > } > if (!(((thistype) >= NPY_USERDEF) && ((thistype) < NPY_USERDEF+ NPY_NUMUSERTYPES))) { > return 0; > } > } > > from = PyArray_DescrFromType(thistype); > if (from->f->cancastscalarkindto > && (castlist = from->f->cancastscalarkindto[scalar])) { > while (*castlist != NPY_NOTYPE) { > if (*castlist++ == neededtype) { > do { if ( --((PyObject*)(from))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(from)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(from)))); } while (0); > return 1; > } > } > } > do { if ( --((PyObject*)(from))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(from)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(from)))); } while (0); > > return 0; >} > > > > > >static PyArrayObject * >new_array_for_sum(PyArrayObject *ap1, PyArrayObject *ap2, PyArrayObject* out, > int nd, npy_intp dimensions[], int typenum) >{ > PyArrayObject *ret; > PyTypeObject *subtype; > double prior1, prior2; > > > > > if ((((PyObject*)(ap2))->ob_type) != (((PyObject*)(ap1))->ob_type)) { > prior2 = PyArray_GetPriority((PyObject *)ap2, 0.0); > prior1 = PyArray_GetPriority((PyObject *)ap1, 0.0); > subtype = (prior2 > prior1 ? (((PyObject*)(ap2))->ob_type) : (((PyObject*)(ap1))->ob_type)); > } > else { > prior1 = prior2 = 0.0; > subtype = (((PyObject*)(ap1))->ob_type); > } > if (out) { > int d; > > if ((((PyObject*)(out))->ob_type) != subtype || > (((PyArrayObject *)(out))->nd) != nd || > (((PyArrayObject *)(out))->descr->type_num) != typenum || > !(((((PyArrayObject *)(out))->flags & ((0x0001 | (0x0100 | 0x0400)))) == ((0x0001 | (0x0100 | 0x0400)))) && (((((PyArrayObject *)(out))->descr)->byteorder) != '>'))) { > PyErr_SetString(PyExc_ValueError, > "output array is not acceptable " > "(must have the right type, nr dimensions, and be a C-Array)"); > return 0; > } > for (d = 0; d < nd; ++d) { > if (dimensions[d] != ((((PyArrayObject *)(out))->dimensions)[d])) { > PyErr_SetString(PyExc_ValueError, > "output array has wrong dimensions"); > return 0; > } > } > ( ((PyObject*)(out))->ob_refcnt++); > return out; > } > > ret = (PyArrayObject *)PyArray_New(subtype, nd, dimensions, > typenum, ((void *)0), ((void *)0), 0, 0, > (PyObject *) > (prior2 > prior1 ? ap2 : ap1)); > return ret; >} > > > > > > >static PyObject * >PyArray_InnerProduct(PyObject *op1, PyObject *op2) >{ > PyArrayObject *ap1, *ap2, *ret = ((void *)0); > PyArrayIterObject *it1, *it2; > npy_intp i, j, l; > int typenum, nd, axis; > npy_intp is1, is2, os; > char *op; > npy_intp dimensions[32]; > PyArray_DotFunc *dot; > PyArray_Descr *typec; > PyThreadState *_save=((void *)0);; > > typenum = PyArray_ObjectType(op1, 0); > typenum = PyArray_ObjectType(op2, typenum); > > typec = PyArray_DescrFromType(typenum); > ( ((PyObject*)(typec))->ob_refcnt++); > ap1 = (PyArrayObject *)PyArray_FromAny(op1, typec, 0, 0, 0x0100, ((void *)0)); > if (ap1 == ((void *)0)) { > do { if ( --((PyObject*)(typec))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(typec)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(typec)))); } while (0); > return ((void *)0); > } > ap2 = (PyArrayObject *)PyArray_FromAny(op2, typec, 0, 0, 0x0100, ((void *)0)); > if (ap2 == ((void *)0)) { > goto fail; > } > if (ap1->nd == 0 || ap2->nd == 0) { > ret = (ap1->nd == 0 ? ap1 : ap2); > ret = (PyArrayObject *)(((PyObject*)(ret))->ob_type)->tp_as_number->nb_multiply( > (PyObject *)ap1, (PyObject *)ap2); > do { if ( --((PyObject*)(ap1))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(ap1)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(ap1)))); } while (0); > do { if ( --((PyObject*)(ap2))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(ap2)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(ap2)))); } while (0); > return (PyObject *)ret; > } > > l = ap1->dimensions[ap1->nd - 1]; > if (ap2->dimensions[ap2->nd - 1] != l) { > PyErr_SetString(PyExc_ValueError, "matrices are not aligned"); > goto fail; > } > > nd = ap1->nd + ap2->nd - 2; > j = 0; > for (i = 0; i < ap1->nd - 1; i++) { > dimensions[j++] = ap1->dimensions[i]; > } > for (i = 0; i < ap2->nd - 1; i++) { > dimensions[j++] = ap2->dimensions[i]; > } > > > > > > ret = new_array_for_sum(ap1, ap2, ((void *)0), nd, dimensions, typenum); > if (ret == ((void *)0)) { > goto fail; > } > dot = (ret->descr->f->dotfunc); > if (dot == ((void *)0)) { > PyErr_SetString(PyExc_ValueError, > "dot not available for this type"); > goto fail; > } > is1 = ap1->strides[ap1->nd - 1]; > is2 = ap2->strides[ap2->nd - 1]; > op = ret->data; os = ret->descr->elsize; > axis = ap1->nd - 1; > it1 = (PyArrayIterObject *) PyArray_IterAllButAxis((PyObject *)ap1, &axis); > axis = ap2->nd - 1; > it2 = (PyArrayIterObject *) PyArray_IterAllButAxis((PyObject *)ap2, &axis); > do {if (!((((ap2->descr)->flags & (0x10)) == (0x10)))) _save = PyEval_SaveThread();;} while (0);; > while (1) { > while (it2->index < it2->size) { > dot(it1->dataptr, is1, it2->dataptr, is2, op, l, ret); > op += os; > { ((PyArrayIterObject *)(it2))->index++; if (((PyArrayIterObject *)(it2))->nd_m1 == 0) { { (((PyArrayIterObject *)(it2)))->dataptr += ((PyArrayIterObject *)(((PyArrayIterObject *)(it2))))->strides[0]; (((PyArrayIterObject *)(it2)))->coordinates[0]++; }; } else if (((PyArrayIterObject *)(it2))->contiguous) ((PyArrayIterObject *)(it2))->dataptr += ((PyArrayIterObject *)(it2))->ao->descr->elsize; else if (((PyArrayIterObject *)(it2))->nd_m1 == 1) { { if ((((PyArrayIterObject *)(it2)))->coordinates[1] < (((PyArrayIterObject *)(it2)))->dims_m1[1]) { (((PyArrayIterObject *)(it2)))->coordinates[1]++; (((PyArrayIterObject *)(it2)))->dataptr += (((PyArrayIterObject *)(it2)))->strides[1]; } else { (((PyArrayIterObject *)(it2)))->coordinates[1] = 0; (((PyArrayIterObject *)(it2)))->coordinates[0]++; (((PyArrayIterObject *)(it2)))->dataptr += (((PyArrayIterObject *)(it2)))->strides[0] - (((PyArrayIterObject *)(it2)))->backstrides[1]; } }; } else { int __npy_i; for (__npy_i=((PyArrayIterObject *)(it2))->nd_m1; __npy_i >= 0; __npy_i--) { if (((PyArrayIterObject *)(it2))->coordinates[__npy_i] < ((PyArrayIterObject *)(it2))->dims_m1[__npy_i]) { ((PyArrayIterObject *)(it2))->coordinates[__npy_i]++; ((PyArrayIterObject *)(it2))->dataptr += ((PyArrayIterObject *)(it2))->strides[__npy_i]; break; } else { ((PyArrayIterObject *)(it2))->coordinates[__npy_i] = 0; ((PyArrayIterObject *)(it2))->dataptr -= ((PyArrayIterObject *)(it2))->backstrides[__npy_i]; } } } }; > } > { ((PyArrayIterObject *)(it1))->index++; if (((PyArrayIterObject *)(it1))->nd_m1 == 0) { { (((PyArrayIterObject *)(it1)))->dataptr += ((PyArrayIterObject *)(((PyArrayIterObject *)(it1))))->strides[0]; (((PyArrayIterObject *)(it1)))->coordinates[0]++; }; } else if (((PyArrayIterObject *)(it1))->contiguous) ((PyArrayIterObject *)(it1))->dataptr += ((PyArrayIterObject *)(it1))->ao->descr->elsize; else if (((PyArrayIterObject *)(it1))->nd_m1 == 1) { { if ((((PyArrayIterObject *)(it1)))->coordinates[1] < (((PyArrayIterObject *)(it1)))->dims_m1[1]) { (((PyArrayIterObject *)(it1)))->coordinates[1]++; (((PyArrayIterObject *)(it1)))->dataptr += (((PyArrayIterObject *)(it1)))->strides[1]; } else { (((PyArrayIterObject *)(it1)))->coordinates[1] = 0; (((PyArrayIterObject *)(it1)))->coordinates[0]++; (((PyArrayIterObject *)(it1)))->dataptr += (((PyArrayIterObject *)(it1)))->strides[0] - (((PyArrayIterObject *)(it1)))->backstrides[1]; } }; } else { int __npy_i; for (__npy_i=((PyArrayIterObject *)(it1))->nd_m1; __npy_i >= 0; __npy_i--) { if (((PyArrayIterObject *)(it1))->coordinates[__npy_i] < ((PyArrayIterObject *)(it1))->dims_m1[__npy_i]) { ((PyArrayIterObject *)(it1))->coordinates[__npy_i]++; ((PyArrayIterObject *)(it1))->dataptr += ((PyArrayIterObject *)(it1))->strides[__npy_i]; break; } else { ((PyArrayIterObject *)(it1))->coordinates[__npy_i] = 0; ((PyArrayIterObject *)(it1))->dataptr -= ((PyArrayIterObject *)(it1))->backstrides[__npy_i]; } } } }; > if (it1->index >= it1->size) { > break; > } > { ((PyArrayIterObject *)(it2))->index = 0; ((PyArrayIterObject *)(it2))->dataptr = ((PyArrayIterObject *)(it2))->ao->data; memset(((PyArrayIterObject *)(it2))->coordinates, 0, (((PyArrayIterObject *)(it2))->nd_m1+1)*sizeof(npy_intp)); }; > } > do {if (!((((ap2->descr)->flags & (0x10)) == (0x10)))) do {if (_save) PyEval_RestoreThread(_save);} while (0);; } while (0);; > do { if ( --((PyObject*)(it1))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(it1)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(it1)))); } while (0); > do { if ( --((PyObject*)(it2))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(it2)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(it2)))); } while (0); > if (PyErr_Occurred()) { > goto fail; > } > do { if ( --((PyObject*)(ap1))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(ap1)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(ap1)))); } while (0); > do { if ( --((PyObject*)(ap2))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(ap2)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(ap2)))); } while (0); > return (PyObject *)ret; > > fail: > do { if ((ap1) == ((void *)0)) ; else do { if ( --((PyObject*)(ap1))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(ap1)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(ap1)))); } while (0); } while (0); > do { if ((ap2) == ((void *)0)) ; else do { if ( --((PyObject*)(ap2))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(ap2)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(ap2)))); } while (0); } while (0); > do { if ((ret) == ((void *)0)) ; else do { if ( --((PyObject*)(ret))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(ret)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(ret)))); } while (0); } while (0); > return ((void *)0); >} > > > > > >static PyObject * >PyArray_MatrixProduct2(PyObject *op1, PyObject *op2, PyArrayObject* out) >{ > PyArrayObject *ap1, *ap2, *ret = ((void *)0); > PyArrayIterObject *it1, *it2; > npy_intp i, j, l; > int typenum, nd, axis, matchDim; > npy_intp is1, is2, os; > char *op; > npy_intp dimensions[32]; > PyArray_DotFunc *dot; > PyArray_Descr *typec; > PyThreadState *_save=((void *)0);; > > typenum = PyArray_ObjectType(op1, 0); > typenum = PyArray_ObjectType(op2, typenum); > typec = PyArray_DescrFromType(typenum); > > ( ((PyObject*)(typec))->ob_refcnt++); > ap1 = (PyArrayObject *)PyArray_FromAny(op1, typec, 0, 0, 0x0100, ((void *)0)); > if (ap1 == ((void *)0)) { > do { if ( --((PyObject*)(typec))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(typec)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(typec)))); } while (0); > return ((void *)0); > } > ap2 = (PyArrayObject *)PyArray_FromAny(op2, typec, 0, 0, 0x0100, ((void *)0)); > if (ap2 == ((void *)0)) { > goto fail; > } > if (ap1->nd == 0 || ap2->nd == 0) { > ret = (ap1->nd == 0 ? ap1 : ap2); > ret = (PyArrayObject *)(((PyObject*)(ret))->ob_type)->tp_as_number->nb_multiply( > (PyObject *)ap1, (PyObject *)ap2); > do { if ( --((PyObject*)(ap1))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(ap1)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(ap1)))); } while (0); > do { if ( --((PyObject*)(ap2))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(ap2)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(ap2)))); } while (0); > return (PyObject *)ret; > } > l = ap1->dimensions[ap1->nd - 1]; > if (ap2->nd > 1) { > matchDim = ap2->nd - 2; > } > else { > matchDim = 0; > } > if (ap2->dimensions[matchDim] != l) { > PyErr_SetString(PyExc_ValueError, "objects are not aligned"); > goto fail; > } > nd = ap1->nd + ap2->nd - 2; > if (nd > 32) { > PyErr_SetString(PyExc_ValueError, "dot: too many dimensions in result"); > goto fail; > } > j = 0; > for (i = 0; i < ap1->nd - 1; i++) { > dimensions[j++] = ap1->dimensions[i]; > } > for (i = 0; i < ap2->nd - 2; i++) { > dimensions[j++] = ap2->dimensions[i]; > } > if(ap2->nd > 1) { > dimensions[j++] = ap2->dimensions[ap2->nd-1]; > } > > > > > > > > is1 = ap1->strides[ap1->nd-1]; is2 = ap2->strides[matchDim]; > > ret = new_array_for_sum(ap1, ap2, out, nd, dimensions, typenum); > if (ret == ((void *)0)) { > goto fail; > } > > if (PyArray_MultiplyList((((PyArrayObject *)(ap1))->dimensions), (((PyArrayObject *)(ap1))->nd)) == 0 && PyArray_MultiplyList((((PyArrayObject *)(ap2))->dimensions), (((PyArrayObject *)(ap2))->nd)) == 0) { > memset(((void *)(((PyArrayObject *)(ret))->data)), 0, ((((PyArrayObject *)(ret))->descr->elsize) * PyArray_MultiplyList((((PyArrayObject *)(ret))->dimensions), (((PyArrayObject *)(ret))->nd)))); > } > else { > > memset(((void *)(((PyArrayObject *)(ret))->data)), 0, (((PyArrayObject *)(ret))->descr->elsize)); > } > > dot = ret->descr->f->dotfunc; > if (dot == ((void *)0)) { > PyErr_SetString(PyExc_ValueError, > "dot not available for this type"); > goto fail; > } > > op = ret->data; os = ret->descr->elsize; > axis = ap1->nd-1; > it1 = (PyArrayIterObject *) > PyArray_IterAllButAxis((PyObject *)ap1, &axis); > it2 = (PyArrayIterObject *) > PyArray_IterAllButAxis((PyObject *)ap2, &matchDim); > do {if (!((((ap2->descr)->flags & (0x10)) == (0x10)))) _save = PyEval_SaveThread();;} while (0);; > while (1) { > while (it2->index < it2->size) { > dot(it1->dataptr, is1, it2->dataptr, is2, op, l, ret); > op += os; > { ((PyArrayIterObject *)(it2))->index++; if (((PyArrayIterObject *)(it2))->nd_m1 == 0) { { (((PyArrayIterObject *)(it2)))->dataptr += ((PyArrayIterObject *)(((PyArrayIterObject *)(it2))))->strides[0]; (((PyArrayIterObject *)(it2)))->coordinates[0]++; }; } else if (((PyArrayIterObject *)(it2))->contiguous) ((PyArrayIterObject *)(it2))->dataptr += ((PyArrayIterObject *)(it2))->ao->descr->elsize; else if (((PyArrayIterObject *)(it2))->nd_m1 == 1) { { if ((((PyArrayIterObject *)(it2)))->coordinates[1] < (((PyArrayIterObject *)(it2)))->dims_m1[1]) { (((PyArrayIterObject *)(it2)))->coordinates[1]++; (((PyArrayIterObject *)(it2)))->dataptr += (((PyArrayIterObject *)(it2)))->strides[1]; } else { (((PyArrayIterObject *)(it2)))->coordinates[1] = 0; (((PyArrayIterObject *)(it2)))->coordinates[0]++; (((PyArrayIterObject *)(it2)))->dataptr += (((PyArrayIterObject *)(it2)))->strides[0] - (((PyArrayIterObject *)(it2)))->backstrides[1]; } }; } else { int __npy_i; for (__npy_i=((PyArrayIterObject *)(it2))->nd_m1; __npy_i >= 0; __npy_i--) { if (((PyArrayIterObject *)(it2))->coordinates[__npy_i] < ((PyArrayIterObject *)(it2))->dims_m1[__npy_i]) { ((PyArrayIterObject *)(it2))->coordinates[__npy_i]++; ((PyArrayIterObject *)(it2))->dataptr += ((PyArrayIterObject *)(it2))->strides[__npy_i]; break; } else { ((PyArrayIterObject *)(it2))->coordinates[__npy_i] = 0; ((PyArrayIterObject *)(it2))->dataptr -= ((PyArrayIterObject *)(it2))->backstrides[__npy_i]; } } } }; > } > { ((PyArrayIterObject *)(it1))->index++; if (((PyArrayIterObject *)(it1))->nd_m1 == 0) { { (((PyArrayIterObject *)(it1)))->dataptr += ((PyArrayIterObject *)(((PyArrayIterObject *)(it1))))->strides[0]; (((PyArrayIterObject *)(it1)))->coordinates[0]++; }; } else if (((PyArrayIterObject *)(it1))->contiguous) ((PyArrayIterObject *)(it1))->dataptr += ((PyArrayIterObject *)(it1))->ao->descr->elsize; else if (((PyArrayIterObject *)(it1))->nd_m1 == 1) { { if ((((PyArrayIterObject *)(it1)))->coordinates[1] < (((PyArrayIterObject *)(it1)))->dims_m1[1]) { (((PyArrayIterObject *)(it1)))->coordinates[1]++; (((PyArrayIterObject *)(it1)))->dataptr += (((PyArrayIterObject *)(it1)))->strides[1]; } else { (((PyArrayIterObject *)(it1)))->coordinates[1] = 0; (((PyArrayIterObject *)(it1)))->coordinates[0]++; (((PyArrayIterObject *)(it1)))->dataptr += (((PyArrayIterObject *)(it1)))->strides[0] - (((PyArrayIterObject *)(it1)))->backstrides[1]; } }; } else { int __npy_i; for (__npy_i=((PyArrayIterObject *)(it1))->nd_m1; __npy_i >= 0; __npy_i--) { if (((PyArrayIterObject *)(it1))->coordinates[__npy_i] < ((PyArrayIterObject *)(it1))->dims_m1[__npy_i]) { ((PyArrayIterObject *)(it1))->coordinates[__npy_i]++; ((PyArrayIterObject *)(it1))->dataptr += ((PyArrayIterObject *)(it1))->strides[__npy_i]; break; } else { ((PyArrayIterObject *)(it1))->coordinates[__npy_i] = 0; ((PyArrayIterObject *)(it1))->dataptr -= ((PyArrayIterObject *)(it1))->backstrides[__npy_i]; } } } }; > if (it1->index >= it1->size) { > break; > } > { ((PyArrayIterObject *)(it2))->index = 0; ((PyArrayIterObject *)(it2))->dataptr = ((PyArrayIterObject *)(it2))->ao->data; memset(((PyArrayIterObject *)(it2))->coordinates, 0, (((PyArrayIterObject *)(it2))->nd_m1+1)*sizeof(npy_intp)); }; > } > do {if (!((((ap2->descr)->flags & (0x10)) == (0x10)))) do {if (_save) PyEval_RestoreThread(_save);} while (0);; } while (0);; > do { if ( --((PyObject*)(it1))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(it1)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(it1)))); } while (0); > do { if ( --((PyObject*)(it2))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(it2)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(it2)))); } while (0); > if (PyErr_Occurred()) { > > goto fail; > } > do { if ( --((PyObject*)(ap1))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(ap1)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(ap1)))); } while (0); > do { if ( --((PyObject*)(ap2))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(ap2)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(ap2)))); } while (0); > return (PyObject *)ret; > > fail: > do { if ((ap1) == ((void *)0)) ; else do { if ( --((PyObject*)(ap1))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(ap1)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(ap1)))); } while (0); } while (0); > do { if ((ap2) == ((void *)0)) ; else do { if ( --((PyObject*)(ap2))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(ap2)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(ap2)))); } while (0); } while (0); > do { if ((ret) == ((void *)0)) ; else do { if ( --((PyObject*)(ret))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(ret)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(ret)))); } while (0); } while (0); > return ((void *)0); >} > > > > > >static PyObject * >PyArray_MatrixProduct(PyObject *op1, PyObject *op2) >{ > return PyArray_MatrixProduct2(op1, op2, ((void *)0)); >} > > > > > > > >static PyObject * >PyArray_CopyAndTranspose(PyObject *op) >{ > PyArrayObject *arr, *tmp, *ret; > int i; > npy_intp new_axes_values[32]; > PyArray_Dims new_axes; > > > arr = (PyArrayObject *)PyArray_FromAny(op, ((void *)0), 0, 0, 0, ((void *)0)); > if (arr == ((void *)0)) { > return ((void *)0); > } > > if ((((PyArrayObject *)(arr))->nd) > 1) { > > new_axes.len = (((PyArrayObject *)(arr))->nd); > for (i = 0; i < new_axes.len; ++i) { > new_axes_values[i] = new_axes.len - i - 1; > } > new_axes.ptr = new_axes_values; > > > tmp = (PyArrayObject *)PyArray_Transpose(arr, &new_axes); > if (tmp == ((void *)0)) { > do { if ( --((PyObject*)(arr))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(arr)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(arr)))); } while (0); > return ((void *)0); > } > } > else { > tmp = arr; > arr = ((void *)0); > } > > > ret = (PyArrayObject *)PyArray_NewCopy(tmp, NPY_CORDER); > > do { if ((arr) == ((void *)0)) ; else do { if ( --((PyObject*)(arr))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(arr)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(arr)))); } while (0); } while (0); > do { if ( --((PyObject*)(tmp))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(tmp)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(tmp)))); } while (0); > return (PyObject *)ret; >} > > > > > > >static PyArrayObject* >_pyarray_correlate(PyArrayObject *ap1, PyArrayObject *ap2, int typenum, > int mode, int *inverted) >{ > PyArrayObject *ret; > npy_intp length; > npy_intp i, n1, n2, n, n_left, n_right; > npy_intp is1, is2, os; > char *ip1, *ip2, *op; > PyArray_DotFunc *dot; > > PyThreadState *_save=((void *)0);; > > n1 = ap1->dimensions[0]; > n2 = ap2->dimensions[0]; > if (n1 < n2) { > ret = ap1; > ap1 = ap2; > ap2 = ret; > ret = ((void *)0); > i = n1; > n1 = n2; > n2 = i; > *inverted = 1; > } else { > *inverted = 0; > } > > length = n1; > n = n2; > switch(mode) { > case 0: > length = length - n + 1; > n_left = n_right = 0; > break; > case 1: > n_left = (npy_intp)(n/2); > n_right = n - n_left - 1; > break; > case 2: > n_right = n - 1; > n_left = n - 1; > length = length + n - 1; > break; > default: > PyErr_SetString(PyExc_ValueError, "mode must be 0, 1, or 2"); > return ((void *)0); > } > > > > > > ret = new_array_for_sum(ap1, ap2, ((void *)0), 1, &length, typenum); > if (ret == ((void *)0)) { > return ((void *)0); > } > dot = ret->descr->f->dotfunc; > if (dot == ((void *)0)) { > PyErr_SetString(PyExc_ValueError, > "function not available for this data type"); > goto clean_ret; > } > > do {if (!((((ret->descr)->flags & (0x10)) == (0x10)))) _save = PyEval_SaveThread();;} while (0);; > is1 = ap1->strides[0]; > is2 = ap2->strides[0]; > op = ret->data; > os = ret->descr->elsize; > ip1 = ap1->data; > ip2 = ap2->data + n_left*is2; > n = n - n_left; > for (i = 0; i < n_left; i++) { > dot(ip1, is1, ip2, is2, op, n, ret); > n++; > ip2 -= is2; > op += os; > } > for (i = 0; i < (n1 - n2 + 1); i++) { > dot(ip1, is1, ip2, is2, op, n, ret); > ip1 += is1; > op += os; > } > for (i = 0; i < n_right; i++) { > n--; > dot(ip1, is1, ip2, is2, op, n, ret); > ip1 += is1; > op += os; > } > > do {if (!((((ret->descr)->flags & (0x10)) == (0x10)))) do {if (_save) PyEval_RestoreThread(_save);} while (0);; } while (0);; > if (PyErr_Occurred()) { > goto clean_ret; > } > > return ret; > >clean_ret: > do { if ( --((PyObject*)(ret))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(ret)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(ret)))); } while (0); > return ((void *)0); >} > > > > > > >static int >_pyarray_revert(PyArrayObject *ret) >{ > npy_intp length; > npy_intp i; > PyArray_CopySwapFunc *copyswap; > char *tmp = ((void *)0), *sw1, *sw2; > npy_intp os; > char *op; > > length = ret->dimensions[0]; > copyswap = ret->descr->f->copyswap; > > tmp = PyMem_Malloc(ret->descr->elsize); > if (tmp == ((void *)0)) { > return -1; > } > > os = ret->descr->elsize; > op = ret->data; > sw1 = op; > sw2 = op + (length - 1) * os; > if (((((((PyArrayObject *)(ret))->descr->type_num)) >=NPY_STRING) && (((((PyArrayObject *)(ret))->descr->type_num)) <=NPY_VOID)) || (((((PyArrayObject *)(ret))->descr->type_num)) == NPY_OBJECT)) { > for(i = 0; i < length/2; ++i) { > memmove(tmp, sw1, os); > copyswap(tmp, ((void *)0), 0, ((void *)0)); > memmove(sw1, sw2, os); > copyswap(sw1, ((void *)0), 0, ((void *)0)); > memmove(sw2, tmp, os); > copyswap(sw2, ((void *)0), 0, ((void *)0)); > sw1 += os; > sw2 -= os; > } > } else { > for(i = 0; i < length/2; ++i) { > memcpy(tmp, sw1, os); > memcpy(sw1, sw2, os); > memcpy(sw2, tmp, os); > sw1 += os; > sw2 -= os; > } > } > > PyMem_Free(tmp); > return 0; >} > > > > > > > >static PyObject * >PyArray_Correlate2(PyObject *op1, PyObject *op2, int mode) >{ > PyArrayObject *ap1, *ap2, *ret = ((void *)0); > int typenum; > PyArray_Descr *typec; > int inverted; > int st; > > typenum = PyArray_ObjectType(op1, 0); > typenum = PyArray_ObjectType(op2, typenum); > > typec = PyArray_DescrFromType(typenum); > ( ((PyObject*)(typec))->ob_refcnt++); > ap1 = (PyArrayObject *)PyArray_FromAny(op1, typec, 1, 1, (0x0001 | (0x0100 | 0x0400)), ((void *)0)); > if (ap1 == ((void *)0)) { > do { if ( --((PyObject*)(typec))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(typec)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(typec)))); } while (0); > return ((void *)0); > } > ap2 = (PyArrayObject *)PyArray_FromAny(op2, typec, 1, 1, (0x0001 | (0x0100 | 0x0400)), ((void *)0)); > if (ap2 == ((void *)0)) { > goto clean_ap1; > } > > if (((((((PyArrayObject *)(ap2))->descr->type_num)) >= NPY_CFLOAT) && (((((PyArrayObject *)(ap2))->descr->type_num)) <= NPY_CLONGDOUBLE))) { > PyArrayObject *cap2; > cap2 = (PyArrayObject *)PyArray_Conjugate(ap2, ((void *)0)); > if (cap2 == ((void *)0)) { > goto clean_ap2; > } > do { if ( --((PyObject*)(ap2))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(ap2)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(ap2)))); } while (0); > ap2 = cap2; > } > > ret = _pyarray_correlate(ap1, ap2, typenum, mode, &inverted); > if (ret == ((void *)0)) { > goto clean_ap2; > } > > > > > > if (inverted) { > st = _pyarray_revert(ret); > if(st) { > goto clean_ret; > } > } > > do { if ( --((PyObject*)(ap1))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(ap1)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(ap1)))); } while (0); > do { if ( --((PyObject*)(ap2))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(ap2)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(ap2)))); } while (0); > return (PyObject *)ret; > >clean_ret: > do { if ( --((PyObject*)(ret))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(ret)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(ret)))); } while (0); >clean_ap2: > do { if ( --((PyObject*)(ap2))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(ap2)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(ap2)))); } while (0); >clean_ap1: > do { if ( --((PyObject*)(ap1))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(ap1)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(ap1)))); } while (0); > return ((void *)0); >} > > > > >static PyObject * >PyArray_Correlate(PyObject *op1, PyObject *op2, int mode) >{ > PyArrayObject *ap1, *ap2, *ret = ((void *)0); > int typenum; > int unused; > PyArray_Descr *typec; > > typenum = PyArray_ObjectType(op1, 0); > typenum = PyArray_ObjectType(op2, typenum); > > typec = PyArray_DescrFromType(typenum); > ( ((PyObject*)(typec))->ob_refcnt++); > ap1 = (PyArrayObject *)PyArray_FromAny(op1, typec, 1, 1, (0x0001 | (0x0100 | 0x0400)), ((void *)0)); > if (ap1 == ((void *)0)) { > do { if ( --((PyObject*)(typec))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(typec)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(typec)))); } while (0); > return ((void *)0); > } > ap2 = (PyArrayObject *)PyArray_FromAny(op2, typec, 1, 1, (0x0001 | (0x0100 | 0x0400)), ((void *)0)); > if (ap2 == ((void *)0)) { > goto fail; > } > > ret = _pyarray_correlate(ap1, ap2, typenum, mode, &unused); > if(ret == ((void *)0)) { > goto fail; > } > do { if ( --((PyObject*)(ap1))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(ap1)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(ap1)))); } while (0); > do { if ( --((PyObject*)(ap2))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(ap2)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(ap2)))); } while (0); > return (PyObject *)ret; > >fail: > do { if ((ap1) == ((void *)0)) ; else do { if ( --((PyObject*)(ap1))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(ap1)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(ap1)))); } while (0); } while (0); > do { if ((ap2) == ((void *)0)) ; else do { if ( --((PyObject*)(ap2))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(ap2)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(ap2)))); } while (0); } while (0); > do { if ((ret) == ((void *)0)) ; else do { if ( --((PyObject*)(ret))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(ret)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(ret)))); } while (0); } while (0); > return ((void *)0); >} > > >static PyObject * >array_putmask(PyObject *(__NPY_UNUSED_TAGGEDmodule) __attribute__ ((__unused__)), PyObject *args, PyObject *kwds) >{ > PyObject *mask, *values; > PyObject *array; > > static char *kwlist[] = {"arr", "mask", "values", ((void *)0)}; > > if (!_PyArg_ParseTupleAndKeywords_SizeT(args, kwds, "O!OO:putmask", kwlist, > &PyArray_Type, &array, &mask, &values)) { > return ((void *)0); > } > return PyArray_PutMask((PyArrayObject *)array, values, mask); >} > > > > >static int >PyArray_OrderConverter(PyObject *object, NPY_ORDER *val) >{ > char *str; > > if (object == ((void *)0) || object == (&_Py_NoneStruct)) { > return 1; > } > else if (((((((PyObject*)(object))->ob_type))->tp_flags & ((1L<<28))) != 0)) { > PyObject *tmp; > int ret; > tmp = PyUnicodeUCS4_AsASCIIString(object); > ret = PyArray_OrderConverter(tmp, val); > do { if ( --((PyObject*)(tmp))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(tmp)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(tmp)))); } while (0); > return ret; > } > else if (!((((((PyObject*)(object))->ob_type))->tp_flags & ((1L<<27))) != 0) || (((PyVarObject*)(object))->ob_size) < 1) { > if (PyObject_IsTrue(object)) { > *val = NPY_FORTRANORDER; > } > else { > *val = NPY_CORDER; > } > if (PyErr_Occurred()) { > return 0; > } > return 1; > } > else { > str = (((PyStringObject *)(object))->ob_sval); > if (str[0] == 'C' || str[0] == 'c') { > *val = NPY_CORDER; > } > else if (str[0] == 'F' || str[0] == 'f') { > *val = NPY_FORTRANORDER; > } > else if (str[0] == 'A' || str[0] == 'a') { > *val = NPY_ANYORDER; > } > else if (str[0] == 'K' || str[0] == 'k') { > *val = NPY_KEEPORDER; > } > else { > PyErr_SetString(PyExc_TypeError, > "order not understood"); > return 0; > } > } > return 1; >} > > > > >static int >PyArray_ClipmodeConverter(PyObject *object, NPY_CLIPMODE *val) >{ > if (object == ((void *)0) || object == (&_Py_NoneStruct)) { > *val = NPY_RAISE; > } > else if (((((((PyObject*)(object))->ob_type))->tp_flags & ((1L<<27))) != 0)) { > char *str; > str = (((PyStringObject *)(object))->ob_sval); > if (str[0] == 'C' || str[0] == 'c') { > *val = NPY_CLIP; > } > else if (str[0] == 'W' || str[0] == 'w') { > *val = NPY_WRAP; > } > else if (str[0] == 'R' || str[0] == 'r') { > *val = NPY_RAISE; > } > else { > PyErr_SetString(PyExc_TypeError, > "clipmode not understood"); > return 0; > } > } > else if (((((((PyObject*)(object))->ob_type))->tp_flags & ((1L<<28))) != 0)) { > PyObject *tmp; > int ret; > tmp = PyUnicodeUCS4_AsASCIIString(object); > ret = PyArray_ClipmodeConverter(tmp, val); > do { if ( --((PyObject*)(tmp))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(tmp)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(tmp)))); } while (0); > return ret; > } > else { > int number = PyInt_AsLong(object); > if (number == -1 && PyErr_Occurred()) { > goto fail; > } > if (number <= (int) NPY_RAISE > && number >= (int) NPY_CLIP) { > *val = (NPY_CLIPMODE) number; > } > else { > goto fail; > } > } > return 1; > > fail: > PyErr_SetString(PyExc_TypeError, > "clipmode not understood"); > return 0; >} > > > > > > >static int >PyArray_ConvertClipmodeSequence(PyObject *object, NPY_CLIPMODE *modes, int n) >{ > int i; > > if (object && (((((((PyObject*)(object))->ob_type))->tp_flags & ((1L<<26))) != 0) || ((((((PyObject*)(object))->ob_type))->tp_flags & ((1L<<25))) != 0))) { > if (PySequence_Size(object) != n) { > PyErr_Format(PyExc_ValueError, > "list of clipmodes has wrong length (%d instead of %d)", > (int)PySequence_Size(object), n); > return 0; > } > > for (i = 0; i < n; ++i) { > PyObject *item = PySequence_GetItem(object, i); > if(item == ((void *)0)) { > return 0; > } > > if(PyArray_ClipmodeConverter(item, &modes[i]) != 1) { > do { if ( --((PyObject*)(item))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(item)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(item)))); } while (0); > return 0; > } > > do { if ( --((PyObject*)(item))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(item)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(item)))); } while (0); > } > } > else if (PyArray_ClipmodeConverter(object, &modes[0]) == 1) { > for (i = 1; i < n; ++i) { > modes[i] = modes[0]; > } > } > else { > return 0; > } > return 1; >} > > > > > > >static int >_equivalent_fields(PyObject *field1, PyObject *field2) { > > int same, val; > > if (field1 == field2) { > return 1; > } > if (field1 == ((void *)0) || field2 == ((void *)0)) { > return 0; > } > > > > > val = PyObject_Compare(field1, field2); > if (val != 0 || PyErr_Occurred()) { > > same = 0; > } > else { > same = 1; > } > PyErr_Clear(); > return same; >} > > > > > > >static int >_equivalent_units(PyObject *meta1, PyObject *meta2) >{ > PyObject *cobj1, *cobj2; > PyArray_DatetimeMetaData *data1, *data2; > > > if (meta1 == meta2) { > return 1; > } > > cobj1 = PyDict_GetItemString(meta1, "__frequency__"); > cobj2 = PyDict_GetItemString(meta2, "__frequency__"); > if (cobj1 == cobj2) { > return 1; > } > > > > > data1 = NpyCapsule_AsVoidPtr(cobj1); > data2 = NpyCapsule_AsVoidPtr(cobj2); > return ((data1->base == data2->base) > && (data1->num == data2->num) > && (data1->den == data2->den) > && (data1->events == data2->events)); >} > > > > > >static int >_equivalent_subarrays(PyArray_ArrayDescr *sub1, PyArray_ArrayDescr *sub2) >{ > int val; > > if (sub1 == sub2) { > return 1; > > } > if (sub1 == ((void *)0) || sub2 == ((void *)0)) { > return 0; > } > > > > > > val = PyObject_Compare(sub1->shape, sub2->shape); > if (val != 0 || PyErr_Occurred()) { > > PyErr_Clear(); > return 0; > } > > return PyArray_EquivTypes(sub1->base, sub2->base); >} > > > > > > > >static unsigned char >PyArray_EquivTypes(PyArray_Descr *typ1, PyArray_Descr *typ2) >{ > int typenum1, typenum2, size1, size2; > > if (typ1 == typ2) { > return 1; > } > > typenum1 = typ1->type_num; > typenum2 = typ2->type_num; > size1 = typ1->elsize; > size2 = typ2->elsize; > > if (size1 != size2) { > return 0; > } > if (((typ1->byteorder) != '>') != ((typ2->byteorder) != '>')) { > return 0; > } > if (typ1->subarray || typ2->subarray) { > return ((typenum1 == typenum2) > && _equivalent_subarrays(typ1->subarray, typ2->subarray)); > } > if (typenum1 == NPY_VOID > || typenum2 == NPY_VOID) { > return ((typenum1 == typenum2) > && _equivalent_fields(typ1->fields, typ2->fields)); > } > if (typenum1 == NPY_DATETIME > || typenum1 == NPY_DATETIME > || typenum2 == NPY_TIMEDELTA > || typenum2 == NPY_TIMEDELTA) { > return ((typenum1 == typenum2) > && _equivalent_units(typ1->metadata, typ2->metadata)); > } > return typ1->kind == typ2->kind; >} > > >static unsigned char >PyArray_EquivTypenums(int typenum1, int typenum2) >{ > PyArray_Descr *d1, *d2; > npy_bool ret; > > d1 = PyArray_DescrFromType(typenum1); > d2 = PyArray_DescrFromType(typenum2); > ret = PyArray_EquivTypes(d1, d2); > do { if ( --((PyObject*)(d1))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(d1)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(d1)))); } while (0); > do { if ( --((PyObject*)(d2))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(d2)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(d2)))); } while (0); > return ret; >} > > > >static PyObject * >_prepend_ones(PyArrayObject *arr, int nd, int ndmin) >{ > npy_intp newdims[32]; > npy_intp newstrides[32]; > int i, k, num; > PyObject *ret; > > num = ndmin - nd; > for (i = 0; i < num; i++) { > newdims[i] = 1; > newstrides[i] = arr->descr->elsize; > } > for (i = num; i < ndmin; i++) { > k = i - num; > newdims[i] = arr->dimensions[k]; > newstrides[i] = arr->strides[k]; > } > ( ((PyObject*)(arr->descr))->ob_refcnt++); > ret = PyArray_NewFromDescr((((PyObject*)(arr))->ob_type), arr->descr, ndmin, > newdims, newstrides, arr->data, arr->flags, (PyObject *)arr); > > (((PyArrayObject *)(ret))->base) = (PyObject *)arr; > return ret; >} ># 1564 "numpy/core/src/multiarray/multiarraymodule.c" >static PyObject * >_array_fromobject(PyObject *(__NPY_UNUSED_TAGGEDignored) __attribute__ ((__unused__)), PyObject *args, PyObject *kws) >{ > PyObject *op, *ret = ((void *)0); > static char *kwd[]= {"object", "dtype", "copy", "order", "subok", > "ndmin", ((void *)0)}; > npy_bool subok = 0; > npy_bool copy = 1; > int ndmin = 0, nd; > PyArray_Descr *type = ((void *)0); > PyArray_Descr *oldtype = ((void *)0); > NPY_ORDER order = NPY_ANYORDER; > int flags = 0; > > if ((((PyVarObject*)(args))->ob_size) > 2) { > PyErr_SetString(PyExc_ValueError, > "only 2 non-keyword arguments accepted"); > return ((void *)0); > } > if(!_PyArg_ParseTupleAndKeywords_SizeT(args, kws, "O|O&O&O&O&i", kwd, &op, > PyArray_DescrConverter2, &type, > PyArray_BoolConverter, ©, > PyArray_OrderConverter, &order, > PyArray_BoolConverter, &subok, > &ndmin)) { > goto clean_type; > } > > if (ndmin > 32) { > PyErr_Format(PyExc_ValueError, > "ndmin bigger than allowable number of dimensions " "NPY_MAXDIMS (=%d)", 32); > > goto clean_type; > } > > if ((subok && ((((PyObject*)(op))->ob_type) == (&PyArray_Type) || PyType_IsSubtype((((PyObject*)(op))->ob_type), (&PyArray_Type)))) > || (!subok && (((PyObject*)(op))->ob_type == &PyArray_Type))) { > if (type == ((void *)0)) { > if (!copy && ((order) == NPY_ANYORDER || ((order) == NPY_CORDER && ((((PyArrayObject *)(op))->flags & (0x0001)) == (0x0001))) || ((order) == NPY_FORTRANORDER && (((((PyArrayObject *)(op))->flags & (0x0002)) == (0x0002)) && ((((PyArrayObject *)(op))->nd) > 1))))) { > ( ((PyObject*)(op))->ob_refcnt++); > ret = op; > goto finish; > } > else { > ret = PyArray_NewCopy((PyArrayObject*)op, order); > goto finish; > } > } > > oldtype = (((PyArrayObject *)(op))->descr); > if (PyArray_EquivTypes(oldtype, type)) { > if (!copy && ((order) == NPY_ANYORDER || ((order) == NPY_CORDER && ((((PyArrayObject *)(op))->flags & (0x0001)) == (0x0001))) || ((order) == NPY_FORTRANORDER && (((((PyArrayObject *)(op))->flags & (0x0002)) == (0x0002)) && ((((PyArrayObject *)(op))->nd) > 1))))) { > ( ((PyObject*)(op))->ob_refcnt++); > ret = op; > goto finish; > } > else { > ret = PyArray_NewCopy((PyArrayObject*)op, order); > if (oldtype == type) { > goto finish; > } > ( ((PyObject*)(oldtype))->ob_refcnt++); > do { if ( --((PyObject*)((((PyArrayObject *)(ret))->descr)))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)((((PyArrayObject *)(ret))->descr))))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)((((PyArrayObject *)(ret))->descr))))); } while (0); > (((PyArrayObject *)(ret))->descr) = oldtype; > goto finish; > } > } > } > > if (copy) { > flags = 0x0020; > } > if (order == NPY_CORDER) { > flags |= 0x0001; > } > else if ((order == NPY_FORTRANORDER) > > || (((((PyObject*)(op))->ob_type) == (&PyArray_Type) || PyType_IsSubtype((((PyObject*)(op))->ob_type), (&PyArray_Type))) && (((((PyArrayObject *)(op))->flags & (0x0002)) == (0x0002)) && ((((PyArrayObject *)(op))->nd) > 1)))) { > flags |= 0x0002; > } > if (!subok) { > flags |= 0x0040; > } > > flags |= 0x0010; > do { if ((type) == ((void *)0)) ; else ( ((PyObject*)(type))->ob_refcnt++); } while (0); > ret = PyArray_CheckFromAny(op, type, 0, 0, flags, ((void *)0)); > > finish: > do { if ((type) == ((void *)0)) ; else do { if ( --((PyObject*)(type))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(type)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(type)))); } while (0); } while (0); > if (!ret) { > return ret; > } > else if ((nd=(((PyArrayObject *)(ret))->nd)) >= ndmin) { > return ret; > } > > > > > return _prepend_ones((PyArrayObject *)ret, nd, ndmin); > >clean_type: > do { if ((type) == ((void *)0)) ; else do { if ( --((PyObject*)(type))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(type)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(type)))); } while (0); } while (0); > return ((void *)0); >} > >static PyObject * >array_empty(PyObject *(__NPY_UNUSED_TAGGEDignored) __attribute__ ((__unused__)), PyObject *args, PyObject *kwds) >{ > > static char *kwlist[] = {"shape","dtype","order",((void *)0)}; > PyArray_Descr *typecode = ((void *)0); > PyArray_Dims shape = {((void *)0), 0}; > NPY_ORDER order = NPY_CORDER; > npy_bool fortran_; > PyObject *ret = ((void *)0); > > if (!_PyArg_ParseTupleAndKeywords_SizeT(args, kwds, "O&|O&O&", kwlist, > PyArray_IntpConverter, &shape, > PyArray_DescrConverter, &typecode, > PyArray_OrderConverter, &order)) { > goto fail; > } > > switch (order) { > case NPY_CORDER: > fortran_ = 0; > break; > case NPY_FORTRANORDER: > fortran_ = 1; > break; > default: > PyErr_SetString(PyExc_ValueError, > "only 'C' or 'F' order is permitted"); > goto fail; > } > > ret = PyArray_Empty(shape.len, shape.ptr, typecode, fortran_); > PyMem_Free(shape.ptr); > return ret; > > fail: > do { if ((typecode) == ((void *)0)) ; else do { if ( --((PyObject*)(typecode))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(typecode)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(typecode)))); } while (0); } while (0); > PyMem_Free(shape.ptr); > return ((void *)0); >} > >static PyObject * >array_empty_like(PyObject *(__NPY_UNUSED_TAGGEDignored) __attribute__ ((__unused__)), PyObject *args, PyObject *kwds) >{ > > static char *kwlist[] = {"prototype","dtype","order","subok",((void *)0)}; > PyArrayObject *prototype = ((void *)0); > PyArray_Descr *dtype = ((void *)0); > NPY_ORDER order = NPY_KEEPORDER; > PyObject *ret = ((void *)0); > int subok = 1; > > if (!_PyArg_ParseTupleAndKeywords_SizeT(args, kwds, "O&|O&O&i", kwlist, > PyArray_Converter, &prototype, > PyArray_DescrConverter2, &dtype, > PyArray_OrderConverter, &order, > &subok)) { > goto fail; > } > > ret = PyArray_NewLikeArray(prototype, order, dtype, subok); > do { if ( --((PyObject*)(prototype))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(prototype)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(prototype)))); } while (0); > return ret; > > fail: > do { if ((prototype) == ((void *)0)) ; else do { if ( --((PyObject*)(prototype))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(prototype)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(prototype)))); } while (0); } while (0); > do { if ((dtype) == ((void *)0)) ; else do { if ( --((PyObject*)(dtype))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(dtype)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(dtype)))); } while (0); } while (0); > return ((void *)0); >} > > > > > >static PyObject * >array_scalar(PyObject *(__NPY_UNUSED_TAGGEDignored) __attribute__ ((__unused__)), PyObject *args, PyObject *kwds) >{ > > static char *kwlist[] = {"dtype","obj", ((void *)0)}; > PyArray_Descr *typecode; > PyObject *obj = ((void *)0); > int alloc = 0; > void *dptr; > PyObject *ret; > > > if (!_PyArg_ParseTupleAndKeywords_SizeT(args, kwds, "O!|O", kwlist, > &PyArrayDescr_Type, &typecode, &obj)) { > return ((void *)0); > } > if (typecode->elsize == 0) { > PyErr_SetString(PyExc_ValueError, > "itemsize cannot be zero"); > return ((void *)0); > } > > if ((((typecode)->flags & (0x04)) == (0x04))) { > if (obj == ((void *)0)) { > obj = (&_Py_NoneStruct); > } > dptr = &obj; > } > else { > if (obj == ((void *)0)) { > dptr = PyMem_Malloc(typecode->elsize); > if (dptr == ((void *)0)) { > return PyErr_NoMemory(); > } > memset(dptr, '\0', typecode->elsize); > alloc = 1; > } > else { > if (!((((((PyObject*)(obj))->ob_type))->tp_flags & ((1L<<27))) != 0)) { > PyErr_SetString(PyExc_TypeError, > "initializing object must be a string"); > return ((void *)0); > } > if ((((PyVarObject*)(obj))->ob_size) < typecode->elsize) { > PyErr_SetString(PyExc_ValueError, > "initialization string is too small"); > return ((void *)0); > } > dptr = (((PyStringObject *)(obj))->ob_sval); > } > } > ret = PyArray_Scalar(dptr, typecode, ((void *)0)); > > > if (alloc) { > PyMem_Free(dptr); > } > return ret; >} > >static PyObject * >array_zeros(PyObject *(__NPY_UNUSED_TAGGEDignored) __attribute__ ((__unused__)), PyObject *args, PyObject *kwds) >{ > static char *kwlist[] = {"shape","dtype","order",((void *)0)}; > PyArray_Descr *typecode = ((void *)0); > PyArray_Dims shape = {((void *)0), 0}; > NPY_ORDER order = NPY_CORDER; > npy_bool fortran_ = 0; > PyObject *ret = ((void *)0); > > if (!_PyArg_ParseTupleAndKeywords_SizeT(args, kwds, "O&|O&O&", kwlist, > PyArray_IntpConverter, &shape, > PyArray_DescrConverter, &typecode, > PyArray_OrderConverter, &order)) { > goto fail; > } > > switch (order) { > case NPY_CORDER: > fortran_ = 0; > break; > case NPY_FORTRANORDER: > fortran_ = 1; > break; > default: > PyErr_SetString(PyExc_ValueError, > "only 'C' or 'F' order is permitted"); > goto fail; > } > > ret = PyArray_Zeros(shape.len, shape.ptr, typecode, (int) fortran_); > PyMem_Free(shape.ptr); > return ret; > > fail: > do { if ((typecode) == ((void *)0)) ; else do { if ( --((PyObject*)(typecode))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(typecode)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(typecode)))); } while (0); } while (0); > PyMem_Free(shape.ptr); > return ret; >} > >static PyObject * >array_count_nonzero(PyObject *(__NPY_UNUSED_TAGGEDself) __attribute__ ((__unused__)), PyObject *args) >{ > PyObject *array_in; > PyArrayObject *array; > npy_intp count; > > if (!_PyArg_ParseTuple_SizeT(args, "O", &array_in)) { > return ((void *)0); > } > > array = (PyArrayObject *)PyArray_FromAny(array_in, ((void *)0), 0, 0, 0, ((void *)0)); > if (array == ((void *)0)) { > return ((void *)0); > } > > count = PyArray_CountNonzero(array); > > do { if ( --((PyObject*)(array))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(array)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(array)))); } while (0); > > > > > return (count == -1) ? ((void *)0) : PyInt_FromSsize_t(count); ># 1877 "numpy/core/src/multiarray/multiarraymodule.c" >} > >static PyObject * >array_fromstring(PyObject *(__NPY_UNUSED_TAGGEDignored) __attribute__ ((__unused__)), PyObject *args, PyObject *keywds) >{ > char *data; > Py_ssize_t nin = -1; > char *sep = ((void *)0); > Py_ssize_t s; > static char *kwlist[] = {"string", "dtype", "count", "sep", ((void *)0)}; > PyArray_Descr *descr = ((void *)0); > > if (!_PyArg_ParseTupleAndKeywords_SizeT(args, keywds, > "s#|O&" "n" "s", kwlist, > &data, &s, PyArray_DescrConverter, &descr, &nin, &sep)) { > do { if ((descr) == ((void *)0)) ; else do { if ( --((PyObject*)(descr))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(descr)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(descr)))); } while (0); } while (0); > return ((void *)0); > } > return PyArray_FromString(data, (npy_intp)s, descr, (npy_intp)nin, sep); >} > > > >static PyObject * >array_fromfile(PyObject *(__NPY_UNUSED_TAGGEDignored) __attribute__ ((__unused__)), PyObject *args, PyObject *keywds) >{ > PyObject *file = ((void *)0), *ret; > int ok; > FILE *fp; > char *sep = ""; > Py_ssize_t nin = -1; > static char *kwlist[] = {"file", "dtype", "count", "sep", ((void *)0)}; > PyArray_Descr *type = ((void *)0); > > if (!_PyArg_ParseTupleAndKeywords_SizeT(args, keywds, > "O|O&" "n" "s", kwlist, > &file, PyArray_DescrConverter, &type, &nin, &sep)) { > do { if ((type) == ((void *)0)) ; else do { if ( --((PyObject*)(type))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(type)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(type)))); } while (0); } while (0); > return ((void *)0); > } > if (((((((PyObject*)(file))->ob_type))->tp_flags & ((1L<<27))) != 0) || ((((((PyObject*)(file))->ob_type))->tp_flags & ((1L<<28))) != 0)) { > file = npy_PyFile_OpenFile(file, "rb"); > if (file == ((void *)0)) { > return ((void *)0); > } > } > else { > ( ((PyObject*)(file))->ob_refcnt++); > } > fp = PyFile_AsFile(file); > if (fp == ((void *)0)) { > PyErr_SetString(PyExc_IOError, > "first argument must be an open file"); > do { if ( --((PyObject*)(file))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(file)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(file)))); } while (0); > return ((void *)0); > } > if (type == ((void *)0)) { > type = PyArray_DescrFromType(NPY_DOUBLE); > } > ret = PyArray_FromFile(fp, type, (npy_intp) nin, sep); > ok = (0); > do { if ( --((PyObject*)(file))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(file)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(file)))); } while (0); > if (ok < 0) { > do { if ( --((PyObject*)(ret))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(ret)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(ret)))); } while (0); > return ((void *)0); > } > return ret; >} > >static PyObject * >array_fromiter(PyObject *(__NPY_UNUSED_TAGGEDignored) __attribute__ ((__unused__)), PyObject *args, PyObject *keywds) >{ > PyObject *iter; > Py_ssize_t nin = -1; > static char *kwlist[] = {"iter", "dtype", "count", ((void *)0)}; > PyArray_Descr *descr = ((void *)0); > > if (!_PyArg_ParseTupleAndKeywords_SizeT(args, keywds, > "OO&|" "n", kwlist, > &iter, PyArray_DescrConverter, &descr, &nin)) { > do { if ((descr) == ((void *)0)) ; else do { if ( --((PyObject*)(descr))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(descr)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(descr)))); } while (0); } while (0); > return ((void *)0); > } > return PyArray_FromIter(iter, descr, (npy_intp)nin); >} > >static PyObject * >array_frombuffer(PyObject *(__NPY_UNUSED_TAGGEDignored) __attribute__ ((__unused__)), PyObject *args, PyObject *keywds) >{ > PyObject *obj = ((void *)0); > Py_ssize_t nin = -1, offset = 0; > static char *kwlist[] = {"buffer", "dtype", "count", "offset", ((void *)0)}; > PyArray_Descr *type = ((void *)0); > > if (!_PyArg_ParseTupleAndKeywords_SizeT(args, keywds, > "O|O&" "n" "n", kwlist, > &obj, PyArray_DescrConverter, &type, &nin, &offset)) { > do { if ((type) == ((void *)0)) ; else do { if ( --((PyObject*)(type))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(type)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(type)))); } while (0); } while (0); > return ((void *)0); > } > if (type == ((void *)0)) { > type = PyArray_DescrFromType(NPY_DOUBLE); > } > return PyArray_FromBuffer(obj, type, (npy_intp)nin, (npy_intp)offset); >} > >static PyObject * >array_concatenate(PyObject *(__NPY_UNUSED_TAGGEDdummy) __attribute__ ((__unused__)), PyObject *args, PyObject *kwds) >{ > PyObject *a0; > int axis = 0; > static char *kwlist[] = {"seq", "axis", ((void *)0)}; > > if (!_PyArg_ParseTupleAndKeywords_SizeT(args, kwds, "O|O&", kwlist, > &a0, PyArray_AxisConverter, &axis)) { > return ((void *)0); > } > return PyArray_Concatenate(a0, axis); >} > >static PyObject * >array_innerproduct(PyObject *(__NPY_UNUSED_TAGGEDdummy) __attribute__ ((__unused__)), PyObject *args) >{ > PyObject *b0, *a0; > > if (!_PyArg_ParseTuple_SizeT(args, "OO", &a0, &b0)) { > return ((void *)0); > } > return PyArray_Return((PyArrayObject *)(PyArray_InnerProduct(a0, b0))); >} > >static PyObject * >array_matrixproduct(PyObject *(__NPY_UNUSED_TAGGEDdummy) __attribute__ ((__unused__)), PyObject *args, PyObject* kwds) >{ > PyObject *v, *a, *o = ((void *)0); > char* kwlist[] = {"a", "b", "out", ((void *)0) }; > > if (!_PyArg_ParseTupleAndKeywords_SizeT(args, kwds, "OO|O", kwlist, &a, &v, &o)) { > return ((void *)0); > } > if (o == (&_Py_NoneStruct)) { > o = ((void *)0); > } > if (o != ((void *)0) && !((((PyObject*)(o))->ob_type) == (&PyArray_Type) || PyType_IsSubtype((((PyObject*)(o))->ob_type), (&PyArray_Type)))) { > PyErr_SetString(PyExc_TypeError, > "'out' must be an array"); > return ((void *)0); > } > return PyArray_Return((PyArrayObject *)(PyArray_MatrixProduct2(a, v, (PyArrayObject *)o))); >} > >static int >einsum_sub_op_from_str(PyObject *args, PyObject **str_obj, char **subscripts, > PyArrayObject **op) >{ > int i, nop; > PyObject *subscripts_str; > > nop = (((PyVarObject*)(args))->ob_size) - 1; > if (nop <= 0) { > PyErr_SetString(PyExc_ValueError, > "must specify the einstein sum subscripts string " > "and at least one operand"); > return -1; > } > else if (nop >= 32) { > PyErr_SetString(PyExc_ValueError, "too many operands"); > return -1; > } > > > subscripts_str = (((PyTupleObject *)(args))->ob_item[0]); > if (((((((PyObject*)(subscripts_str))->ob_type))->tp_flags & ((1L<<28))) != 0)) { > *str_obj = PyUnicodeUCS4_AsASCIIString(subscripts_str); > if (*str_obj == ((void *)0)) { > return -1; > } > subscripts_str = *str_obj; > } > > *subscripts = PyString_AsString(subscripts_str); > if (subscripts == ((void *)0)) { > do { if ((*str_obj) == ((void *)0)) ; else do { if ( --((PyObject*)(*str_obj))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(*str_obj)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(*str_obj)))); } while (0); } while (0); > *str_obj = ((void *)0); > return -1; > } > > > for (i = 0; i < nop; ++i) { > op[i] = ((void *)0); > } > > > for (i = 0; i < nop; ++i) { > PyObject *obj = (((PyTupleObject *)(args))->ob_item[i+1]); > > op[i] = (PyArrayObject *)PyArray_FromAny(obj, > ((void *)0), 0, 0, 0x0040, ((void *)0)); > if (op[i] == ((void *)0)) { > goto fail; > } > } > > return nop; > >fail: > for (i = 0; i < nop; ++i) { > do { if ((op[i]) == ((void *)0)) ; else do { if ( --((PyObject*)(op[i]))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(op[i])))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(op[i])))); } while (0); } while (0); > op[i] = ((void *)0); > } > > return -1; >} > > > > > > > >static int >einsum_list_to_subscripts(PyObject *obj, char *subscripts, int subsize) >{ > int ellipsis = 0, subindex = 0; > npy_intp i, size; > PyObject *item; > > obj = PySequence_Fast(obj, "the subscripts for each operand must " > "be a list or a tuple"); > if (obj == ((void *)0)) { > return -1; > } > size = PySequence_Size(obj); > > > for (i = 0; i < size; ++i) { > item = (((((((PyObject*)(obj))->ob_type))->tp_flags & ((1L<<25))) != 0) ? (((PyListObject *)(obj))->ob_item[i]) : (((PyTupleObject *)(obj))->ob_item[i])); > > if (item == (&_Py_EllipsisObject)) { > if (ellipsis) { > PyErr_SetString(PyExc_ValueError, > "each subscripts list may have only one ellipsis"); > do { if ( --((PyObject*)(obj))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(obj)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(obj)))); } while (0); > return -1; > } > if (subindex + 3 >= subsize) { > PyErr_SetString(PyExc_ValueError, > "subscripts list is too long"); > do { if ( --((PyObject*)(obj))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(obj)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(obj)))); } while (0); > return -1; > } > subscripts[subindex++] = '.'; > subscripts[subindex++] = '.'; > subscripts[subindex++] = '.'; > ellipsis = 1; > } > > else if (((((item)->ob_type)->tp_flags & ((1L<<23))) != 0) || ((((((PyObject*)(item))->ob_type))->tp_flags & ((1L<<24))) != 0)) { > long s = PyInt_AsLong(item); > if ( s < 0 || s > 2*26) { > PyErr_SetString(PyExc_ValueError, > "subscript is not within the valid range [0, 52]"); > do { if ( --((PyObject*)(obj))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(obj)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(obj)))); } while (0); > return -1; > } > if (s < 26) { > subscripts[subindex++] = 'A' + s; > } > else { > subscripts[subindex++] = 'a' + s; > } > if (subindex >= subsize) { > PyErr_SetString(PyExc_ValueError, > "subscripts list is too long"); > do { if ( --((PyObject*)(obj))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(obj)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(obj)))); } while (0); > return -1; > } > } > > else { > PyErr_SetString(PyExc_ValueError, > "each subscript must be either an integer " > "or an ellipsis"); > do { if ( --((PyObject*)(obj))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(obj)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(obj)))); } while (0); > return -1; > } > } > > do { if ( --((PyObject*)(obj))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(obj)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(obj)))); } while (0); > > return subindex; >} > > > > > > > >static int >einsum_sub_op_from_lists(PyObject *args, > char *subscripts, int subsize, PyArrayObject **op) >{ > int subindex = 0; > npy_intp i, nop; > > nop = PyTuple_Size(args)/2; > > if (nop == 0) { > PyErr_SetString(PyExc_ValueError, "must provide at least an " > "operand and a subscripts list to einsum"); > return -1; > } > else if(nop >= 32) { > PyErr_SetString(PyExc_ValueError, "too many operands"); > return -1; > } > > > for (i = 0; i < nop; ++i) { > op[nop] = ((void *)0); > } > > > for (i = 0; i < nop; ++i) { > PyObject *obj = (((PyTupleObject *)(args))->ob_item[2*i]); > int n; > > > if (i != 0) { > subscripts[subindex++] = ','; > if (subindex >= subsize) { > PyErr_SetString(PyExc_ValueError, > "subscripts list is too long"); > goto fail; > } > } > > op[i] = (PyArrayObject *)PyArray_FromAny(obj, > ((void *)0), 0, 0, 0x0040, ((void *)0)); > if (op[i] == ((void *)0)) { > goto fail; > } > > obj = (((PyTupleObject *)(args))->ob_item[2*i+1]); > n = einsum_list_to_subscripts(obj, subscripts+subindex, > subsize-subindex); > if (n < 0) { > goto fail; > } > subindex += n; > } > > > if (PyTuple_Size(args) == 2*nop+1) { > PyObject *obj; > int n; > > if (subindex + 2 >= subsize) { > PyErr_SetString(PyExc_ValueError, > "subscripts list is too long"); > goto fail; > } > subscripts[subindex++] = '-'; > subscripts[subindex++] = '>'; > > obj = (((PyTupleObject *)(args))->ob_item[2*nop]); > n = einsum_list_to_subscripts(obj, subscripts+subindex, > subsize-subindex); > if (n < 0) { > goto fail; > } > subindex += n; > } > > > subscripts[subindex] = '\0'; > > return nop; > >fail: > for (i = 0; i < nop; ++i) { > do { if ((op[i]) == ((void *)0)) ; else do { if ( --((PyObject*)(op[i]))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(op[i])))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(op[i])))); } while (0); } while (0); > op[i] = ((void *)0); > } > > return -1; >} > >static PyObject * >array_einsum(PyObject *(__NPY_UNUSED_TAGGEDdummy) __attribute__ ((__unused__)), PyObject *args, PyObject *kwds) >{ > char *subscripts = ((void *)0), subscripts_buffer[256]; > PyObject *str_obj = ((void *)0), *str_key_obj = ((void *)0); > PyObject *arg0; > int i, nop; > PyArrayObject *op[32]; > NPY_ORDER order = NPY_KEEPORDER; > NPY_CASTING casting = NPY_SAFE_CASTING; > PyArrayObject *out = ((void *)0); > PyArray_Descr *dtype = ((void *)0); > PyObject *ret = ((void *)0); > > if ((((PyVarObject*)(args))->ob_size) < 1) { > PyErr_SetString(PyExc_ValueError, > "must specify the einstein sum subscripts string " > "and at least one operand, or at least one operand " > "and its corresponding subscripts list"); > return ((void *)0); > } > arg0 = (((PyTupleObject *)(args))->ob_item[0]); > > > if (((((((PyObject*)(arg0))->ob_type))->tp_flags & ((1L<<27))) != 0) || ((((((PyObject*)(arg0))->ob_type))->tp_flags & ((1L<<28))) != 0)) { > nop = einsum_sub_op_from_str(args, &str_obj, &subscripts, op); > } > > else { > nop = einsum_sub_op_from_lists(args, subscripts_buffer, > sizeof(subscripts_buffer), op); > subscripts = subscripts_buffer; > } > if (nop <= 0) { > goto finish; > } > > > if (kwds != ((void *)0)) { > PyObject *key, *value; > Py_ssize_t pos = 0; > while (PyDict_Next(kwds, &pos, &key, &value)) { > char *str = ((void *)0); ># 2318 "numpy/core/src/multiarray/multiarraymodule.c" > str = PyString_AsString(key); > > if (str == ((void *)0)) { > PyErr_Clear(); > PyErr_SetString(PyExc_TypeError, "invalid keyword"); > goto finish; > } > > if (__extension__ ({ size_t __s1_len, __s2_len; (__builtin_constant_p (str) && __builtin_constant_p ("out") && (__s1_len = strlen (str), __s2_len = strlen ("out"), (!((size_t)(const void *)((str) + 1) - (size_t)(const void *)(str) == 1) || __s1_len >= 4) && (!((size_t)(const void *)(("out") + 1) - (size_t)(const void *)("out") == 1) || __s2_len >= 4)) ? __builtin_strcmp (str, "out") : (__builtin_constant_p (str) && ((size_t)(const void *)((str) + 1) - (size_t)(const void *)(str) == 1) && (__s1_len = strlen (str), __s1_len < 4) ? (__builtin_constant_p ("out") && ((size_t)(const void *)(("out") + 1) - (size_t)(const void *)("out") == 1) ? __builtin_strcmp (str, "out") : (__extension__ ({ __const unsigned char *__s2 = (__const unsigned char *) (__const char *) ("out"); register int __result = (((__const unsigned char *) (__const char *) (str))[0] - __s2[0]); if (__s1_len > 0 && __result == 0) { __result = (((__const unsigned char *) (__const char *) (str))[1] - __s2[1]); if (__s1_len > 1 && __result == 0) { __result = (((__const unsigned char *) (__const char *) (str))[2] - __s2[2]); if (__s1_len > 2 && __result == 0) __result = (((__const unsigned char *) (__const char *) (str))[3] - __s2[3]); } } __result; }))) : (__builtin_constant_p ("out") && ((size_t)(const void *)(("out") + 1) - (size_t)(const void *)("out") == 1) && (__s2_len = strlen ("out"), __s2_len < 4) ? (__builtin_constant_p (str) && ((size_t)(const void *)((str) + 1) - (size_t)(const void *)(str) == 1) ? __builtin_strcmp (str, "out") : (__extension__ ({ __const unsigned char *__s1 = (__const unsigned char *) (__const char *) (str); register int __result = __s1[0] - ((__const unsigned char *) (__const char *) ("out"))[0]; if (__s2_len > 0 && __result == 0) { __result = (__s1[1] - ((__const unsigned char *) (__const char *) ("out"))[1]); if (__s2_len > 1 && __result == 0) { __result = (__s1[2] - ((__const unsigned char *) (__const char *) ("out"))[2]); if (__s2_len > 2 && __result == 0) __result = (__s1[3] - ((__const unsigned char *) (__const char *) ("out"))[3]); } } __result; }))) : __builtin_strcmp (str, "out")))); }) == 0) { > if (((((PyObject*)(value))->ob_type) == (&PyArray_Type) || PyType_IsSubtype((((PyObject*)(value))->ob_type), (&PyArray_Type)))) { > out = (PyArrayObject *)value; > } > else { > PyErr_SetString(PyExc_TypeError, > "keyword parameter out must be an " > "array for einsum"); > goto finish; > } > } > else if (__extension__ ({ size_t __s1_len, __s2_len; (__builtin_constant_p (str) && __builtin_constant_p ("order") && (__s1_len = strlen (str), __s2_len = strlen ("order"), (!((size_t)(const void *)((str) + 1) - (size_t)(const void *)(str) == 1) || __s1_len >= 4) && (!((size_t)(const void *)(("order") + 1) - (size_t)(const void *)("order") == 1) || __s2_len >= 4)) ? __builtin_strcmp (str, "order") : (__builtin_constant_p (str) && ((size_t)(const void *)((str) + 1) - (size_t)(const void *)(str) == 1) && (__s1_len = strlen (str), __s1_len < 4) ? (__builtin_constant_p ("order") && ((size_t)(const void *)(("order") + 1) - (size_t)(const void *)("order") == 1) ? __builtin_strcmp (str, "order") : (__extension__ ({ __const unsigned char *__s2 = (__const unsigned char *) (__const char *) ("order"); register int __result = (((__const unsigned char *) (__const char *) (str))[0] - __s2[0]); if (__s1_len > 0 && __result == 0) { __result = (((__const unsigned char *) (__const char *) (str))[1] - __s2[1]); if (__s1_len > 1 && __result == 0) { __result = (((__const unsigned char *) (__const char *) (str))[2] - __s2[2]); if (__s1_len > 2 && __result == 0) __result = (((__const unsigned char *) (__const char *) (str))[3] - __s2[3]); } } __result; }))) : (__builtin_constant_p ("order") && ((size_t)(const void *)(("order") + 1) - (size_t)(const void *)("order") == 1) && (__s2_len = strlen ("order"), __s2_len < 4) ? (__builtin_constant_p (str) && ((size_t)(const void *)((str) + 1) - (size_t)(const void *)(str) == 1) ? __builtin_strcmp (str, "order") : (__extension__ ({ __const unsigned char *__s1 = (__const unsigned char *) (__const char *) (str); register int __result = __s1[0] - ((__const unsigned char *) (__const char *) ("order"))[0]; if (__s2_len > 0 && __result == 0) { __result = (__s1[1] - ((__const unsigned char *) (__const char *) ("order"))[1]); if (__s2_len > 1 && __result == 0) { __result = (__s1[2] - ((__const unsigned char *) (__const char *) ("order"))[2]); if (__s2_len > 2 && __result == 0) __result = (__s1[3] - ((__const unsigned char *) (__const char *) ("order"))[3]); } } __result; }))) : __builtin_strcmp (str, "order")))); }) == 0) { > if (!PyArray_OrderConverter(value, &order)) { > goto finish; > } > } > else if (__extension__ ({ size_t __s1_len, __s2_len; (__builtin_constant_p (str) && __builtin_constant_p ("casting") && (__s1_len = strlen (str), __s2_len = strlen ("casting"), (!((size_t)(const void *)((str) + 1) - (size_t)(const void *)(str) == 1) || __s1_len >= 4) && (!((size_t)(const void *)(("casting") + 1) - (size_t)(const void *)("casting") == 1) || __s2_len >= 4)) ? __builtin_strcmp (str, "casting") : (__builtin_constant_p (str) && ((size_t)(const void *)((str) + 1) - (size_t)(const void *)(str) == 1) && (__s1_len = strlen (str), __s1_len < 4) ? (__builtin_constant_p ("casting") && ((size_t)(const void *)(("casting") + 1) - (size_t)(const void *)("casting") == 1) ? __builtin_strcmp (str, "casting") : (__extension__ ({ __const unsigned char *__s2 = (__const unsigned char *) (__const char *) ("casting"); register int __result = (((__const unsigned char *) (__const char *) (str))[0] - __s2[0]); if (__s1_len > 0 && __result == 0) { __result = (((__const unsigned char *) (__const char *) (str))[1] - __s2[1]); if (__s1_len > 1 && __result == 0) { __result = (((__const unsigned char *) (__const char *) (str))[2] - __s2[2]); if (__s1_len > 2 && __result == 0) __result = (((__const unsigned char *) (__const char *) (str))[3] - __s2[3]); } } __result; }))) : (__builtin_constant_p ("casting") && ((size_t)(const void *)(("casting") + 1) - (size_t)(const void *)("casting") == 1) && (__s2_len = strlen ("casting"), __s2_len < 4) ? (__builtin_constant_p (str) && ((size_t)(const void *)((str) + 1) - (size_t)(const void *)(str) == 1) ? __builtin_strcmp (str, "casting") : (__extension__ ({ __const unsigned char *__s1 = (__const unsigned char *) (__const char *) (str); register int __result = __s1[0] - ((__const unsigned char *) (__const char *) ("casting"))[0]; if (__s2_len > 0 && __result == 0) { __result = (__s1[1] - ((__const unsigned char *) (__const char *) ("casting"))[1]); if (__s2_len > 1 && __result == 0) { __result = (__s1[2] - ((__const unsigned char *) (__const char *) ("casting"))[2]); if (__s2_len > 2 && __result == 0) __result = (__s1[3] - ((__const unsigned char *) (__const char *) ("casting"))[3]); } } __result; }))) : __builtin_strcmp (str, "casting")))); }) == 0) { > if (!PyArray_CastingConverter(value, &casting)) { > goto finish; > } > } > else if (__extension__ ({ size_t __s1_len, __s2_len; (__builtin_constant_p (str) && __builtin_constant_p ("dtype") && (__s1_len = strlen (str), __s2_len = strlen ("dtype"), (!((size_t)(const void *)((str) + 1) - (size_t)(const void *)(str) == 1) || __s1_len >= 4) && (!((size_t)(const void *)(("dtype") + 1) - (size_t)(const void *)("dtype") == 1) || __s2_len >= 4)) ? __builtin_strcmp (str, "dtype") : (__builtin_constant_p (str) && ((size_t)(const void *)((str) + 1) - (size_t)(const void *)(str) == 1) && (__s1_len = strlen (str), __s1_len < 4) ? (__builtin_constant_p ("dtype") && ((size_t)(const void *)(("dtype") + 1) - (size_t)(const void *)("dtype") == 1) ? __builtin_strcmp (str, "dtype") : (__extension__ ({ __const unsigned char *__s2 = (__const unsigned char *) (__const char *) ("dtype"); register int __result = (((__const unsigned char *) (__const char *) (str))[0] - __s2[0]); if (__s1_len > 0 && __result == 0) { __result = (((__const unsigned char *) (__const char *) (str))[1] - __s2[1]); if (__s1_len > 1 && __result == 0) { __result = (((__const unsigned char *) (__const char *) (str))[2] - __s2[2]); if (__s1_len > 2 && __result == 0) __result = (((__const unsigned char *) (__const char *) (str))[3] - __s2[3]); } } __result; }))) : (__builtin_constant_p ("dtype") && ((size_t)(const void *)(("dtype") + 1) - (size_t)(const void *)("dtype") == 1) && (__s2_len = strlen ("dtype"), __s2_len < 4) ? (__builtin_constant_p (str) && ((size_t)(const void *)((str) + 1) - (size_t)(const void *)(str) == 1) ? __builtin_strcmp (str, "dtype") : (__extension__ ({ __const unsigned char *__s1 = (__const unsigned char *) (__const char *) (str); register int __result = __s1[0] - ((__const unsigned char *) (__const char *) ("dtype"))[0]; if (__s2_len > 0 && __result == 0) { __result = (__s1[1] - ((__const unsigned char *) (__const char *) ("dtype"))[1]); if (__s2_len > 1 && __result == 0) { __result = (__s1[2] - ((__const unsigned char *) (__const char *) ("dtype"))[2]); if (__s2_len > 2 && __result == 0) __result = (__s1[3] - ((__const unsigned char *) (__const char *) ("dtype"))[3]); } } __result; }))) : __builtin_strcmp (str, "dtype")))); }) == 0) { > if (!PyArray_DescrConverter2(value, &dtype)) { > goto finish; > } > } > else { > PyErr_Format(PyExc_TypeError, > "'%s' is an invalid keyword for einsum", > str); > goto finish; > } > } > } > > ret = (PyObject *)PyArray_EinsteinSum(subscripts, nop, op, dtype, > order, casting, out); > > > if (ret != ((void *)0) && out == ((void *)0)) { > ret = PyArray_Return((PyArrayObject *)(ret)); > } > >finish: > for (i = 0; i < nop; ++i) { > do { if ((op[i]) == ((void *)0)) ; else do { if ( --((PyObject*)(op[i]))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(op[i])))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(op[i])))); } while (0); } while (0); > } > do { if ((dtype) == ((void *)0)) ; else do { if ( --((PyObject*)(dtype))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(dtype)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(dtype)))); } while (0); } while (0); > do { if ((str_obj) == ((void *)0)) ; else do { if ( --((PyObject*)(str_obj))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(str_obj)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(str_obj)))); } while (0); } while (0); > do { if ((str_key_obj) == ((void *)0)) ; else do { if ( --((PyObject*)(str_key_obj))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(str_key_obj)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(str_key_obj)))); } while (0); } while (0); > > > return ret; >} > >static PyObject * >array_fastCopyAndTranspose(PyObject *(__NPY_UNUSED_TAGGEDdummy) __attribute__ ((__unused__)), PyObject *args) >{ > PyObject *a0; > > if (!_PyArg_ParseTuple_SizeT(args, "O", &a0)) { > return ((void *)0); > } > return PyArray_Return((PyArrayObject *)(PyArray_CopyAndTranspose(a0))); >} > >static PyObject * >array_correlate(PyObject *(__NPY_UNUSED_TAGGEDdummy) __attribute__ ((__unused__)), PyObject *args, PyObject *kwds) >{ > PyObject *shape, *a0; > int mode = 0; > static char *kwlist[] = {"a", "v", "mode", ((void *)0)}; > > if (!_PyArg_ParseTupleAndKeywords_SizeT(args, kwds, "OO|i", kwlist, > &a0, &shape, &mode)) { > return ((void *)0); > } > return PyArray_Correlate(a0, shape, mode); >} > >static PyObject* >array_correlate2(PyObject *(__NPY_UNUSED_TAGGEDdummy) __attribute__ ((__unused__)), PyObject *args, PyObject *kwds) >{ > PyObject *shape, *a0; > int mode = 0; > static char *kwlist[] = {"a", "v", "mode", ((void *)0)}; > > if (!_PyArg_ParseTupleAndKeywords_SizeT(args, kwds, "OO|i", kwlist, > &a0, &shape, &mode)) { > return ((void *)0); > } > return PyArray_Correlate2(a0, shape, mode); >} > >static PyObject * >array_arange(PyObject *(__NPY_UNUSED_TAGGEDignored) __attribute__ ((__unused__)), PyObject *args, PyObject *kws) { > PyObject *o_start = ((void *)0), *o_stop = ((void *)0), *o_step = ((void *)0), *range=((void *)0); > static char *kwd[]= {"start", "stop", "step", "dtype", ((void *)0)}; > PyArray_Descr *typecode = ((void *)0); > > if(!_PyArg_ParseTupleAndKeywords_SizeT(args, kws, "O|OOO&", kwd, > &o_start, &o_stop, &o_step, > PyArray_DescrConverter2, &typecode)) { > do { if ((typecode) == ((void *)0)) ; else do { if ( --((PyObject*)(typecode))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(typecode)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(typecode)))); } while (0); } while (0); > return ((void *)0); > } > range = PyArray_ArangeObj(o_start, o_stop, o_step, typecode); > do { if ((typecode) == ((void *)0)) ; else do { if ( --((PyObject*)(typecode))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(typecode)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(typecode)))); } while (0); } while (0); > return range; >} > > > > > >static unsigned int >PyArray_GetNDArrayCVersion(void) >{ > return (unsigned int)0x01000009; >} > > > > >static unsigned int >PyArray_GetNDArrayCFeatureVersion(void) >{ > return (unsigned int)0x00000006; >} > >static PyObject * >array__get_ndarray_c_version(PyObject *(__NPY_UNUSED_TAGGEDdummy) __attribute__ ((__unused__)), PyObject *args, PyObject *kwds) >{ > static char *kwlist[] = {((void *)0)}; > > if(!_PyArg_ParseTupleAndKeywords_SizeT(args, kwds, "", kwlist )) { > return ((void *)0); > } > return PyInt_FromLong( (long) PyArray_GetNDArrayCVersion() ); >} > > > >static int >PyArray_GetEndianness(void) >{ > const union { > npy_uint32 i; > char c[4]; > } bint = {0x01020304}; > > if (bint.c[0] == 1) { > return NPY_CPU_BIG; > } > else if (bint.c[0] == 4) { > return NPY_CPU_LITTLE; > } > else { > return NPY_CPU_UNKNOWN_ENDIAN; > } >} > >static PyObject * >array__reconstruct(PyObject *(__NPY_UNUSED_TAGGEDdummy) __attribute__ ((__unused__)), PyObject *args) >{ > > PyObject *ret; > PyTypeObject *subtype; > PyArray_Dims shape = {((void *)0), 0}; > PyArray_Descr *dtype = ((void *)0); > > if (!_PyArg_ParseTuple_SizeT(args, "O!O&O&", > &PyType_Type, &subtype, > PyArray_IntpConverter, &shape, > PyArray_DescrConverter, &dtype)) { > goto fail; > } > if (!PyType_IsSubtype(subtype, &PyArray_Type)) { > PyErr_SetString(PyExc_TypeError, > "_reconstruct: First argument must be a sub-type of ndarray"); > goto fail; > } > ret = PyArray_NewFromDescr(subtype, dtype, > (int)shape.len, shape.ptr, ((void *)0), ((void *)0), 0, ((void *)0)); > if (shape.ptr) { > PyMem_Free(shape.ptr); > } > return ret; > > fail: > do { if ((dtype) == ((void *)0)) ; else do { if ( --((PyObject*)(dtype))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(dtype)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(dtype)))); } while (0); } while (0); > if (shape.ptr) { > PyMem_Free(shape.ptr); > } > return ((void *)0); >} > >static PyObject * >array_set_string_function(PyObject *(__NPY_UNUSED_TAGGEDself) __attribute__ ((__unused__)), PyObject *args, > PyObject *kwds) >{ > PyObject *op = ((void *)0); > int repr = 1; > static char *kwlist[] = {"f", "repr", ((void *)0)}; > > if(!_PyArg_ParseTupleAndKeywords_SizeT(args, kwds, "|Oi", kwlist, &op, &repr)) { > return ((void *)0); > } > > if (op == (&_Py_NoneStruct)) { > op = ((void *)0); > } > if (op != ((void *)0) && !PyCallable_Check(op)) { > PyErr_SetString(PyExc_TypeError, > "Argument must be callable."); > return ((void *)0); > } > PyArray_SetStringFunction(op, repr); > ( ((PyObject*)((&_Py_NoneStruct)))->ob_refcnt++); > return (&_Py_NoneStruct); >} > >static PyObject * >array_set_ops_function(PyObject *(__NPY_UNUSED_TAGGEDself) __attribute__ ((__unused__)), PyObject *(__NPY_UNUSED_TAGGEDargs) __attribute__ ((__unused__)), > PyObject *kwds) >{ > PyObject *oldops = ((void *)0); > > if ((oldops = PyArray_GetNumericOps()) == ((void *)0)) { > return ((void *)0); > } > > > > > > if (kwds && PyArray_SetNumericOps(kwds) == -1) { > do { if ( --((PyObject*)(oldops))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(oldops)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(oldops)))); } while (0); > PyErr_SetString(PyExc_ValueError, > "one or more objects not callable"); > return ((void *)0); > } > return oldops; >} > >static PyObject * >array_set_datetimeparse_function(PyObject *(__NPY_UNUSED_TAGGEDself) __attribute__ ((__unused__)), PyObject *args, > PyObject *kwds) >{ > PyObject *op = ((void *)0); > static char *kwlist[] = {"f", ((void *)0)}; > PyObject *_numpy_internal; > > if(!_PyArg_ParseTupleAndKeywords_SizeT(args, kwds, "|O", kwlist, &op)) { > return ((void *)0); > } > > if (op == (&_Py_NoneStruct)) { > _numpy_internal = PyImport_ImportModule("numpy.core._internal"); > if (_numpy_internal == ((void *)0)) { > return ((void *)0); > } > op = PyObject_GetAttrString(_numpy_internal, "datetime_from_string"); > } > else { > if (!PyCallable_Check(op)) { > PyErr_SetString(PyExc_TypeError, > "Argument must be callable."); > return ((void *)0); > } > ( ((PyObject*)(op))->ob_refcnt++); > } > PyArray_SetDatetimeParseFunction(op); > do { if ( --((PyObject*)(op))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(op)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(op)))); } while (0); > ( ((PyObject*)((&_Py_NoneStruct)))->ob_refcnt++); > return (&_Py_NoneStruct); >} > > > > > >static PyObject * >PyArray_Where(PyObject *condition, PyObject *x, PyObject *y) >{ > PyArrayObject *arr; > PyObject *tup = ((void *)0), *obj = ((void *)0); > PyObject *ret = ((void *)0), *zero = ((void *)0); > > arr = (PyArrayObject *)PyArray_FromAny(condition, ((void *)0), 0, 0, 0, ((void *)0)); > if (arr == ((void *)0)) { > return ((void *)0); > } > if ((x == ((void *)0)) && (y == ((void *)0))) { > ret = PyArray_Nonzero(arr); > do { if ( --((PyObject*)(arr))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(arr)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(arr)))); } while (0); > return ret; > } > if ((x == ((void *)0)) || (y == ((void *)0))) { > do { if ( --((PyObject*)(arr))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(arr)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(arr)))); } while (0); > PyErr_SetString(PyExc_ValueError, > "either both or neither of x and y should be given"); > return ((void *)0); > } > > > zero = PyInt_FromLong((long) 0); > obj = PyArray_EnsureAnyArray(PyArray_GenericBinaryFunction(arr, zero, > n_ops.not_equal)); > do { if ( --((PyObject*)(zero))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(zero)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(zero)))); } while (0); > do { if ( --((PyObject*)(arr))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(arr)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(arr)))); } while (0); > if (obj == ((void *)0)) { > return ((void *)0); > } > tup = _Py_BuildValue_SizeT("(OO)", y, x); > if (tup == ((void *)0)) { > do { if ( --((PyObject*)(obj))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(obj)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(obj)))); } while (0); > return ((void *)0); > } > ret = PyArray_Choose((PyArrayObject *)obj, tup, ((void *)0), NPY_RAISE); > do { if ( --((PyObject*)(obj))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(obj)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(obj)))); } while (0); > do { if ( --((PyObject*)(tup))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(tup)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(tup)))); } while (0); > return ret; >} > >static PyObject * >array_where(PyObject *(__NPY_UNUSED_TAGGEDignored) __attribute__ ((__unused__)), PyObject *args) >{ > PyObject *obj = ((void *)0), *x = ((void *)0), *y = ((void *)0); > > if (!_PyArg_ParseTuple_SizeT(args, "O|OO", &obj, &x, &y)) { > return ((void *)0); > } > return PyArray_Where(obj, x, y); >} > >static PyObject * >array_lexsort(PyObject *(__NPY_UNUSED_TAGGEDignored) __attribute__ ((__unused__)), PyObject *args, PyObject *kwds) >{ > int axis = -1; > PyObject *obj; > static char *kwlist[] = {"keys", "axis", ((void *)0)}; > > if (!_PyArg_ParseTupleAndKeywords_SizeT(args, kwds, "O|i", kwlist, &obj, &axis)) { > return ((void *)0); > } > return PyArray_Return((PyArrayObject *)(PyArray_LexSort(obj, axis))); >} > > > >static PyObject * >array_can_cast_safely(PyObject *(__NPY_UNUSED_TAGGEDself) __attribute__ ((__unused__)), PyObject *args, > PyObject *kwds) >{ > PyObject *from_obj = ((void *)0); > PyArray_Descr *d1 = ((void *)0); > PyArray_Descr *d2 = ((void *)0); > npy_bool ret; > PyObject *retobj = ((void *)0); > NPY_CASTING casting = NPY_SAFE_CASTING; > static char *kwlist[] = {"from", "to", "casting", ((void *)0)}; > > if(!_PyArg_ParseTupleAndKeywords_SizeT(args, kwds, "OO&|O&", kwlist, > &from_obj, > PyArray_DescrConverter2, &d2, > PyArray_CastingConverter, &casting)) { > goto finish; > } > if (d2 == ((void *)0)) { > PyErr_SetString(PyExc_TypeError, > "did not understand one of the types; 'None' not accepted"); > goto finish; > } > > > if (((((PyObject*)(from_obj))->ob_type) == (&PyArray_Type) || PyType_IsSubtype((((PyObject*)(from_obj))->ob_type), (&PyArray_Type)))) { > ret = PyArray_CanCastArrayTo((PyArrayObject *)from_obj, d2, casting); > } > else if ((((((PyObject*)(from_obj))->ob_type) == (&PyGenericArrType_Type) || PyType_IsSubtype((((PyObject*)(from_obj))->ob_type), (&PyGenericArrType_Type)))) || > (((((from_obj)->ob_type)->tp_flags & ((1L<<23))) != 0) || ((((PyObject*)(from_obj))->ob_type) == (&PyFloat_Type) || PyType_IsSubtype((((PyObject*)(from_obj))->ob_type), (&PyFloat_Type))) || ((((PyObject*)(from_obj))->ob_type) == (&PyComplex_Type) || PyType_IsSubtype((((PyObject*)(from_obj))->ob_type), (&PyComplex_Type))) || ((((((PyObject*)(from_obj))->ob_type))->tp_flags & ((1L<<24))) != 0) || ((((PyObject*)(from_obj))->ob_type) == &PyBool_Type))) { > PyArrayObject *arr; > arr = (PyArrayObject *)PyArray_FromAny(from_obj, > ((void *)0), 0, 0, 0, ((void *)0)); > if (arr == ((void *)0)) { > goto finish; > } > ret = PyArray_CanCastArrayTo(arr, d2, casting); > do { if ( --((PyObject*)(arr))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(arr)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(arr)))); } while (0); > } > > else { > if (!PyArray_DescrConverter2(from_obj, &d1) || d1 == ((void *)0)) { > PyErr_SetString(PyExc_TypeError, > "did not understand one of the types; 'None' not accepted"); > goto finish; > } > ret = PyArray_CanCastTypeTo(d1, d2, casting); > } > > retobj = ret ? ((PyObject *) &_Py_TrueStruct) : ((PyObject *) &_Py_ZeroStruct); > ( ((PyObject*)(retobj))->ob_refcnt++); > > finish: > do { if ((d1) == ((void *)0)) ; else do { if ( --((PyObject*)(d1))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(d1)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(d1)))); } while (0); } while (0); > do { if ((d2) == ((void *)0)) ; else do { if ( --((PyObject*)(d2))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(d2)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(d2)))); } while (0); } while (0); > return retobj; >} > >static PyObject * >array_promote_types(PyObject *(__NPY_UNUSED_TAGGEDdummy) __attribute__ ((__unused__)), PyObject *args) >{ > PyArray_Descr *d1 = ((void *)0); > PyArray_Descr *d2 = ((void *)0); > PyObject *ret = ((void *)0); > if(!_PyArg_ParseTuple_SizeT(args, "O&O&", > PyArray_DescrConverter2, &d1, PyArray_DescrConverter2, &d2)) { > goto finish; > } > > if (d1 == ((void *)0) || d2 == ((void *)0)) { > PyErr_SetString(PyExc_TypeError, > "did not understand one of the types"); > goto finish; > } > > ret = (PyObject *)PyArray_PromoteTypes(d1, d2); > > finish: > do { if ((d1) == ((void *)0)) ; else do { if ( --((PyObject*)(d1))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(d1)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(d1)))); } while (0); } while (0); > do { if ((d2) == ((void *)0)) ; else do { if ( --((PyObject*)(d2))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(d2)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(d2)))); } while (0); } while (0); > return ret; >} > >static PyObject * >array_min_scalar_type(PyObject *(__NPY_UNUSED_TAGGEDdummy) __attribute__ ((__unused__)), PyObject *args) >{ > PyObject *array_in = ((void *)0); > PyArrayObject *array; > PyObject *ret = ((void *)0); > > if(!_PyArg_ParseTuple_SizeT(args, "O", &array_in)) { > return ((void *)0); > } > > array = (PyArrayObject *)PyArray_FromAny(array_in, ((void *)0), 0, 0, 0, ((void *)0)); > if (array == ((void *)0)) { > return ((void *)0); > } > > ret = (PyObject *)PyArray_MinScalarType(array); > do { if ( --((PyObject*)(array))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(array)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(array)))); } while (0); > return ret; >} > >static PyObject * >array_result_type(PyObject *(__NPY_UNUSED_TAGGEDdummy) __attribute__ ((__unused__)), PyObject *args) >{ > npy_intp i, len, narr = 0, ndtypes = 0; > PyArrayObject *arr[32]; > PyArray_Descr *dtypes[32]; > PyObject *ret = ((void *)0); > > len = (((PyVarObject*)(args))->ob_size); > if (len == 0) { > PyErr_SetString(PyExc_ValueError, > "at least one array or dtype is required"); > goto finish; > } > > for (i = 0; i < len; ++i) { > PyObject *obj = (((PyTupleObject *)(args))->ob_item[i]); > if (((((PyObject*)(obj))->ob_type) == (&PyArray_Type) || PyType_IsSubtype((((PyObject*)(obj))->ob_type), (&PyArray_Type)))) { > if (narr == 32) { > PyErr_SetString(PyExc_ValueError, > "too many arguments"); > goto finish; > } > ( ((PyObject*)(obj))->ob_refcnt++); > arr[narr] = (PyArrayObject *)obj; > ++narr; > } > else if ((((((PyObject*)(obj))->ob_type) == (&PyGenericArrType_Type) || PyType_IsSubtype((((PyObject*)(obj))->ob_type), (&PyGenericArrType_Type)))) || > (((((obj)->ob_type)->tp_flags & ((1L<<23))) != 0) || ((((PyObject*)(obj))->ob_type) == (&PyFloat_Type) || PyType_IsSubtype((((PyObject*)(obj))->ob_type), (&PyFloat_Type))) || ((((PyObject*)(obj))->ob_type) == (&PyComplex_Type) || PyType_IsSubtype((((PyObject*)(obj))->ob_type), (&PyComplex_Type))) || ((((((PyObject*)(obj))->ob_type))->tp_flags & ((1L<<24))) != 0) || ((((PyObject*)(obj))->ob_type) == &PyBool_Type))) { > if (narr == 32) { > PyErr_SetString(PyExc_ValueError, > "too many arguments"); > goto finish; > } > arr[narr] = (PyArrayObject *)PyArray_FromAny(obj, > ((void *)0), 0, 0, 0, ((void *)0)); > if (arr[narr] == ((void *)0)) { > goto finish; > } > ++narr; > } > else { > if (ndtypes == 32) { > PyErr_SetString(PyExc_ValueError, > "too many arguments"); > goto finish; > } > if (!PyArray_DescrConverter2(obj, &dtypes[ndtypes])) { > goto finish; > } > ++ndtypes; > } > } > > ret = (PyObject *)PyArray_ResultType(narr, arr, ndtypes, dtypes); > >finish: > for (i = 0; i < narr; ++i) { > do { if ( --((PyObject*)(arr[i]))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(arr[i])))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(arr[i])))); } while (0); > } > for (i = 0; i < ndtypes; ++i) { > do { if ( --((PyObject*)(dtypes[i]))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(dtypes[i])))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(dtypes[i])))); } while (0); > } > return ret; >} > > >static PyObject * >new_buffer(PyObject *(__NPY_UNUSED_TAGGEDdummy) __attribute__ ((__unused__)), PyObject *args) >{ > int size; > > if(!_PyArg_ParseTuple_SizeT(args, "i", &size)) { > return ((void *)0); > } > return PyBuffer_New(size); >} > >static PyObject * >buffer_buffer(PyObject *(__NPY_UNUSED_TAGGEDdummy) __attribute__ ((__unused__)), PyObject *args, PyObject *kwds) >{ > PyObject *obj; > Py_ssize_t offset = 0, n; > Py_ssize_t size = (-1); > void *unused; > static char *kwlist[] = {"object", "offset", "size", ((void *)0)}; > > if (!_PyArg_ParseTupleAndKeywords_SizeT(args, kwds, > "O|" "n" "n", kwlist, > &obj, &offset, &size)) { > return ((void *)0); > } > if (PyObject_AsWriteBuffer(obj, &unused, &n) < 0) { > PyErr_Clear(); > return PyBuffer_FromObject(obj, offset, size); > } > else { > return PyBuffer_FromReadWriteObject(obj, offset, size); > } >} > > > > > >jmp_buf _NPY_SIGSEGV_BUF; >static void >_SigSegv_Handler(int signum) >{ > longjmp(_NPY_SIGSEGV_BUF, signum); >} ># 2907 "numpy/core/src/multiarray/multiarraymodule.c" >static PyObject * >as_buffer(PyObject *(__NPY_UNUSED_TAGGEDdummy) __attribute__ ((__unused__)), PyObject *args, PyObject *kwds) >{ > PyObject *mem; > Py_ssize_t size; > npy_bool ro = 0, check = 1; > void *memptr; > static char *kwlist[] = {"mem", "size", "readonly", "check", ((void *)0)}; > > if (!_PyArg_ParseTupleAndKeywords_SizeT(args, kwds, > "O" "n" "|O&O&", kwlist, > &mem, &size, PyArray_BoolConverter, &ro, > PyArray_BoolConverter, &check)) { > return ((void *)0); > } > memptr = PyLong_AsVoidPtr(mem); > if (memptr == ((void *)0)) { > return ((void *)0); > } > if (check) { > > > > > char test; > int err = 0; ># 2942 "numpy/core/src/multiarray/multiarraymodule.c" > PyOS_sighandler_t _npy_sig_save; > _npy_sig_save = PyOS_setsig(11, _SigSegv_Handler); > if (_setjmp (_NPY_SIGSEGV_BUF) == 0) { > { test = *((char*)memptr); if (!ro) { *((char *)memptr) = '\0'; *((char *)memptr) = test; } test = *((char*)memptr+size-1); if (!ro) { *((char *)memptr+size-1) = '\0'; *((char *)memptr+size-1) = test; } }; > } > else { > err = 1; > } > PyOS_setsig(11, _npy_sig_save); > > if (err) { > PyErr_SetString(PyExc_ValueError, > "cannot use memory location as a buffer."); > return ((void *)0); > } > } > > > > > > > > if (ro) { > return PyBuffer_FromMemory(memptr, size); > } > return PyBuffer_FromReadWriteMemory(memptr, size); > >} > > > >static PyObject * >format_longfloat(PyObject *(__NPY_UNUSED_TAGGEDdummy) __attribute__ ((__unused__)), PyObject *args, PyObject *kwds) >{ > PyObject *obj; > unsigned int precision; > npy_longdouble x; > static char *kwlist[] = {"x", "precision", ((void *)0)}; > static char repr[100]; > > if (!_PyArg_ParseTupleAndKeywords_SizeT(args, kwds, "OI", kwlist, > &obj, &precision)) { > return ((void *)0); > } > if (!(((((PyObject*)(obj))->ob_type) == (&PyLongDoubleArrType_Type) || PyType_IsSubtype((((PyObject*)(obj))->ob_type), (&PyLongDoubleArrType_Type))))) { > PyErr_SetString(PyExc_TypeError, > "not a longfloat"); > return ((void *)0); > } > x = ((PyLongDoubleScalarObject *)obj)->obval; > if (precision > 70) { > precision = 70; > } > format_longdouble(repr, 100, x, precision); > return PyString_FromString(repr); >} > >static PyObject * >compare_chararrays(PyObject *(__NPY_UNUSED_TAGGEDdummy) __attribute__ ((__unused__)), PyObject *args, PyObject *kwds) >{ > PyObject *array; > PyObject *other; > PyArrayObject *newarr, *newoth; > int cmp_op; > npy_bool rstrip; > char *cmp_str; > Py_ssize_t strlength; > PyObject *res = ((void *)0); > static char msg[] = "comparision must be '==', '!=', '<', '>', '<=', '>='"; > static char *kwlist[] = {"a1", "a2", "cmp", "rstrip", ((void *)0)}; > > if (!_PyArg_ParseTupleAndKeywords_SizeT(args, kwds, "OOs#O&", kwlist, > &array, &other, &cmp_str, &strlength, > PyArray_BoolConverter, &rstrip)) { > return ((void *)0); > } > if (strlength < 1 || strlength > 2) { > goto err; > } > if (strlength > 1) { > if (cmp_str[1] != '=') { > goto err; > } > if (cmp_str[0] == '=') { > cmp_op = 2; > } > else if (cmp_str[0] == '!') { > cmp_op = 3; > } > else if (cmp_str[0] == '<') { > cmp_op = 1; > } > else if (cmp_str[0] == '>') { > cmp_op = 5; > } > else { > goto err; > } > } > else { > if (cmp_str[0] == '<') { > cmp_op = 0; > } > else if (cmp_str[0] == '>') { > cmp_op = 4; > } > else { > goto err; > } > } > > newarr = (PyArrayObject *)PyArray_FromAny(array, ((void *)0), 0, 0, 0, ((void *)0)); > if (newarr == ((void *)0)) { > return ((void *)0); > } > newoth = (PyArrayObject *)PyArray_FromAny(other, ((void *)0), 0, 0, 0, ((void *)0)); > if (newoth == ((void *)0)) { > do { if ( --((PyObject*)(newarr))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(newarr)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(newarr)))); } while (0); > return ((void *)0); > } > if (((((((PyArrayObject *)(newarr))->descr->type_num)) == NPY_STRING) || (((((PyArrayObject *)(newarr))->descr->type_num)) == NPY_UNICODE)) && ((((((PyArrayObject *)(newoth))->descr->type_num)) == NPY_STRING) || (((((PyArrayObject *)(newoth))->descr->type_num)) == NPY_UNICODE))) { > res = _strings_richcompare(newarr, newoth, cmp_op, rstrip != 0); > } > else { > PyErr_SetString(PyExc_TypeError, > "comparison of non-string arrays"); > } > do { if ( --((PyObject*)(newarr))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(newarr)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(newarr)))); } while (0); > do { if ( --((PyObject*)(newoth))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(newoth)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(newoth)))); } while (0); > return res; > > err: > PyErr_SetString(PyExc_ValueError, msg); > return ((void *)0); >} > >static PyObject * >_vec_string_with_args(PyArrayObject* char_array, PyArray_Descr* type, > PyObject* method, PyObject* args) >{ > PyObject* broadcast_args[32]; > PyArrayMultiIterObject* in_iter = ((void *)0); > PyArrayObject* result = ((void *)0); > PyArrayIterObject* out_iter = ((void *)0); > PyObject* args_tuple = ((void *)0); > Py_ssize_t i, n, nargs; > > nargs = PySequence_Size(args) + 1; > if (nargs == -1 || nargs > 32) { > PyErr_Format(PyExc_ValueError, > "len(args) must be < %d", 32 - 1); > goto err; > } > > broadcast_args[0] = (PyObject*)char_array; > for (i = 1; i < nargs; i++) { > PyObject* item = PySequence_GetItem(args, i-1); > if (item == ((void *)0)) { > goto err; > } > broadcast_args[i] = item; > do { if ( --((PyObject*)(item))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(item)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(item)))); } while (0); > } > in_iter = (PyArrayMultiIterObject*)PyArray_MultiIterFromObjects > (broadcast_args, nargs, 0); > if (in_iter == ((void *)0)) { > goto err; > } > n = in_iter->numiter; > > result = (PyArrayObject*)PyArray_NewFromDescr(&PyArray_Type, type, in_iter->nd, in_iter->dimensions, ((void *)0), ((void *)0), 0, ((void *)0)); > > if (result == ((void *)0)) { > goto err; > } > > out_iter = (PyArrayIterObject*)PyArray_IterNew((PyObject*)result); > if (out_iter == ((void *)0)) { > goto err; > } > > args_tuple = PyTuple_New(n); > if (args_tuple == ((void *)0)) { > goto err; > } > > while ((((PyArrayMultiIterObject *)(in_iter))->index < ((PyArrayMultiIterObject *)(in_iter))->size)) { > PyObject* item_result; > > for (i = 0; i < n; i++) { > PyArrayIterObject* it = in_iter->iters[i]; > PyObject* arg = PyArray_Scalar(((void *)(((PyArrayIterObject *)(it))->dataptr)), (((PyArrayObject *)(it->ao))->descr), (PyObject *)it->ao); > if (arg == ((void *)0)) { > goto err; > } > > PyTuple_SetItem(args_tuple, i, arg); > } > > item_result = PyObject_CallObject(method, args_tuple); > if (item_result == ((void *)0)) { > goto err; > } > > if (((PyArrayObject *)(result))->descr->f->setitem((PyObject *)(item_result), (char *)(((void *)(((PyArrayIterObject *)(out_iter))->dataptr))), (PyArrayObject *)(result))) { > do { if ( --((PyObject*)(item_result))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(item_result)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(item_result)))); } while (0); > PyErr_SetString( PyExc_TypeError, > "result array type does not match underlying function"); > goto err; > } > do { if ( --((PyObject*)(item_result))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(item_result)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(item_result)))); } while (0); > > { int __npy_mi; ((PyArrayMultiIterObject *)(in_iter))->index++; for (__npy_mi=0; __npy_mi < ((PyArrayMultiIterObject *)(in_iter))->numiter; __npy_mi++) { { ((PyArrayIterObject *)(((PyArrayMultiIterObject *)(in_iter))->iters[__npy_mi]))->index++; if (((PyArrayIterObject *)(((PyArrayMultiIterObject *)(in_iter))->iters[__npy_mi]))->nd_m1 == 0) { { (((PyArrayIterObject *)(((PyArrayMultiIterObject *)(in_iter))->iters[__npy_mi])))->dataptr += ((PyArrayIterObject *)(((PyArrayIterObject *)(((PyArrayMultiIterObject *)(in_iter))->iters[__npy_mi]))))->strides[0]; (((PyArrayIterObject *)(((PyArrayMultiIterObject *)(in_iter))->iters[__npy_mi])))->coordinates[0]++; }; } else if (((PyArrayIterObject *)(((PyArrayMultiIterObject *)(in_iter))->iters[__npy_mi]))->contiguous) ((PyArrayIterObject *)(((PyArrayMultiIterObject *)(in_iter))->iters[__npy_mi]))->dataptr += ((PyArrayIterObject *)(((PyArrayMultiIterObject *)(in_iter))->iters[__npy_mi]))->ao->descr->elsize; else if (((PyArrayIterObject *)(((PyArrayMultiIterObject *)(in_iter))->iters[__npy_mi]))->nd_m1 == 1) { { if ((((PyArrayIterObject *)(((PyArrayMultiIterObject *)(in_iter))->iters[__npy_mi])))->coordinates[1] < (((PyArrayIterObject *)(((PyArrayMultiIterObject *)(in_iter))->iters[__npy_mi])))->dims_m1[1]) { (((PyArrayIterObject *)(((PyArrayMultiIterObject *)(in_iter))->iters[__npy_mi])))->coordinates[1]++; (((PyArrayIterObject *)(((PyArrayMultiIterObject *)(in_iter))->iters[__npy_mi])))->dataptr += (((PyArrayIterObject *)(((PyArrayMultiIterObject *)(in_iter))->iters[__npy_mi])))->strides[1]; } else { (((PyArrayIterObject *)(((PyArrayMultiIterObject *)(in_iter))->iters[__npy_mi])))->coordinates[1] = 0; (((PyArrayIterObject *)(((PyArrayMultiIterObject *)(in_iter))->iters[__npy_mi])))->coordinates[0]++; (((PyArrayIterObject *)(((PyArrayMultiIterObject *)(in_iter))->iters[__npy_mi])))->dataptr += (((PyArrayIterObject *)(((PyArrayMultiIterObject *)(in_iter))->iters[__npy_mi])))->strides[0] - (((PyArrayIterObject *)(((PyArrayMultiIterObject *)(in_iter))->iters[__npy_mi])))->backstrides[1]; } }; } else { int __npy_i; for (__npy_i=((PyArrayIterObject *)(((PyArrayMultiIterObject *)(in_iter))->iters[__npy_mi]))->nd_m1; __npy_i >= 0; __npy_i--) { if (((PyArrayIterObject *)(((PyArrayMultiIterObject *)(in_iter))->iters[__npy_mi]))->coordinates[__npy_i] < ((PyArrayIterObject *)(((PyArrayMultiIterObject *)(in_iter))->iters[__npy_mi]))->dims_m1[__npy_i]) { ((PyArrayIterObject *)(((PyArrayMultiIterObject *)(in_iter))->iters[__npy_mi]))->coordinates[__npy_i]++; ((PyArrayIterObject *)(((PyArrayMultiIterObject *)(in_iter))->iters[__npy_mi]))->dataptr += ((PyArrayIterObject *)(((PyArrayMultiIterObject *)(in_iter))->iters[__npy_mi]))->strides[__npy_i]; break; } else { ((PyArrayIterObject *)(((PyArrayMultiIterObject *)(in_iter))->iters[__npy_mi]))->coordinates[__npy_i] = 0; ((PyArrayIterObject *)(((PyArrayMultiIterObject *)(in_iter))->iters[__npy_mi]))->dataptr -= ((PyArrayIterObject *)(((PyArrayMultiIterObject *)(in_iter))->iters[__npy_mi]))->backstrides[__npy_i]; } } } }; } }; > { ((PyArrayIterObject *)(out_iter))->index++; if (((PyArrayIterObject *)(out_iter))->nd_m1 == 0) { { (((PyArrayIterObject *)(out_iter)))->dataptr += ((PyArrayIterObject *)(((PyArrayIterObject *)(out_iter))))->strides[0]; (((PyArrayIterObject *)(out_iter)))->coordinates[0]++; }; } else if (((PyArrayIterObject *)(out_iter))->contiguous) ((PyArrayIterObject *)(out_iter))->dataptr += ((PyArrayIterObject *)(out_iter))->ao->descr->elsize; else if (((PyArrayIterObject *)(out_iter))->nd_m1 == 1) { { if ((((PyArrayIterObject *)(out_iter)))->coordinates[1] < (((PyArrayIterObject *)(out_iter)))->dims_m1[1]) { (((PyArrayIterObject *)(out_iter)))->coordinates[1]++; (((PyArrayIterObject *)(out_iter)))->dataptr += (((PyArrayIterObject *)(out_iter)))->strides[1]; } else { (((PyArrayIterObject *)(out_iter)))->coordinates[1] = 0; (((PyArrayIterObject *)(out_iter)))->coordinates[0]++; (((PyArrayIterObject *)(out_iter)))->dataptr += (((PyArrayIterObject *)(out_iter)))->strides[0] - (((PyArrayIterObject *)(out_iter)))->backstrides[1]; } }; } else { int __npy_i; for (__npy_i=((PyArrayIterObject *)(out_iter))->nd_m1; __npy_i >= 0; __npy_i--) { if (((PyArrayIterObject *)(out_iter))->coordinates[__npy_i] < ((PyArrayIterObject *)(out_iter))->dims_m1[__npy_i]) { ((PyArrayIterObject *)(out_iter))->coordinates[__npy_i]++; ((PyArrayIterObject *)(out_iter))->dataptr += ((PyArrayIterObject *)(out_iter))->strides[__npy_i]; break; } else { ((PyArrayIterObject *)(out_iter))->coordinates[__npy_i] = 0; ((PyArrayIterObject *)(out_iter))->dataptr -= ((PyArrayIterObject *)(out_iter))->backstrides[__npy_i]; } } } }; > } > > do { if ( --((PyObject*)(in_iter))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(in_iter)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(in_iter)))); } while (0); > do { if ( --((PyObject*)(out_iter))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(out_iter)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(out_iter)))); } while (0); > do { if ( --((PyObject*)(args_tuple))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(args_tuple)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(args_tuple)))); } while (0); > > return (PyObject*)result; > > err: > do { if ((in_iter) == ((void *)0)) ; else do { if ( --((PyObject*)(in_iter))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(in_iter)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(in_iter)))); } while (0); } while (0); > do { if ((out_iter) == ((void *)0)) ; else do { if ( --((PyObject*)(out_iter))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(out_iter)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(out_iter)))); } while (0); } while (0); > do { if ((args_tuple) == ((void *)0)) ; else do { if ( --((PyObject*)(args_tuple))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(args_tuple)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(args_tuple)))); } while (0); } while (0); > do { if ((result) == ((void *)0)) ; else do { if ( --((PyObject*)(result))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(result)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(result)))); } while (0); } while (0); > > return 0; >} > >static PyObject * >_vec_string_no_args(PyArrayObject* char_array, > PyArray_Descr* type, PyObject* method) >{ > > > > > > > PyArrayIterObject* in_iter = ((void *)0); > PyArrayObject* result = ((void *)0); > PyArrayIterObject* out_iter = ((void *)0); > > in_iter = (PyArrayIterObject*)PyArray_IterNew((PyObject*)char_array); > if (in_iter == ((void *)0)) { > goto err; > } > > result = (PyArrayObject*)PyArray_NewFromDescr(&PyArray_Type, type, (((PyArrayObject *)(char_array))->nd), (((PyArrayObject *)(char_array))->dimensions), ((void *)0), ((void *)0), 0, ((void *)0)); > > if (result == ((void *)0)) { > goto err; > } > > out_iter = (PyArrayIterObject*)PyArray_IterNew((PyObject*)result); > if (out_iter == ((void *)0)) { > goto err; > } > > while ((((PyArrayIterObject *)(in_iter))->index < ((PyArrayIterObject *)(in_iter))->size)) { > PyObject* item_result; > PyObject* item = PyArray_Scalar(in_iter->dataptr, (((PyArrayObject *)(in_iter->ao))->descr), (PyObject *)in_iter->ao); > if (item == ((void *)0)) { > goto err; > } > > item_result = PyObject_CallFunctionObjArgs(method, item, ((void *)0)); > do { if ( --((PyObject*)(item))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(item)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(item)))); } while (0); > if (item_result == ((void *)0)) { > goto err; > } > > if (((PyArrayObject *)(result))->descr->f->setitem((PyObject *)(item_result), (char *)(((void *)(((PyArrayIterObject *)(out_iter))->dataptr))), (PyArrayObject *)(result))) { > do { if ( --((PyObject*)(item_result))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(item_result)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(item_result)))); } while (0); > PyErr_SetString( PyExc_TypeError, > "result array type does not match underlying function"); > goto err; > } > do { if ( --((PyObject*)(item_result))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(item_result)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(item_result)))); } while (0); > > { ((PyArrayIterObject *)(in_iter))->index++; if (((PyArrayIterObject *)(in_iter))->nd_m1 == 0) { { (((PyArrayIterObject *)(in_iter)))->dataptr += ((PyArrayIterObject *)(((PyArrayIterObject *)(in_iter))))->strides[0]; (((PyArrayIterObject *)(in_iter)))->coordinates[0]++; }; } else if (((PyArrayIterObject *)(in_iter))->contiguous) ((PyArrayIterObject *)(in_iter))->dataptr += ((PyArrayIterObject *)(in_iter))->ao->descr->elsize; else if (((PyArrayIterObject *)(in_iter))->nd_m1 == 1) { { if ((((PyArrayIterObject *)(in_iter)))->coordinates[1] < (((PyArrayIterObject *)(in_iter)))->dims_m1[1]) { (((PyArrayIterObject *)(in_iter)))->coordinates[1]++; (((PyArrayIterObject *)(in_iter)))->dataptr += (((PyArrayIterObject *)(in_iter)))->strides[1]; } else { (((PyArrayIterObject *)(in_iter)))->coordinates[1] = 0; (((PyArrayIterObject *)(in_iter)))->coordinates[0]++; (((PyArrayIterObject *)(in_iter)))->dataptr += (((PyArrayIterObject *)(in_iter)))->strides[0] - (((PyArrayIterObject *)(in_iter)))->backstrides[1]; } }; } else { int __npy_i; for (__npy_i=((PyArrayIterObject *)(in_iter))->nd_m1; __npy_i >= 0; __npy_i--) { if (((PyArrayIterObject *)(in_iter))->coordinates[__npy_i] < ((PyArrayIterObject *)(in_iter))->dims_m1[__npy_i]) { ((PyArrayIterObject *)(in_iter))->coordinates[__npy_i]++; ((PyArrayIterObject *)(in_iter))->dataptr += ((PyArrayIterObject *)(in_iter))->strides[__npy_i]; break; } else { ((PyArrayIterObject *)(in_iter))->coordinates[__npy_i] = 0; ((PyArrayIterObject *)(in_iter))->dataptr -= ((PyArrayIterObject *)(in_iter))->backstrides[__npy_i]; } } } }; > { ((PyArrayIterObject *)(out_iter))->index++; if (((PyArrayIterObject *)(out_iter))->nd_m1 == 0) { { (((PyArrayIterObject *)(out_iter)))->dataptr += ((PyArrayIterObject *)(((PyArrayIterObject *)(out_iter))))->strides[0]; (((PyArrayIterObject *)(out_iter)))->coordinates[0]++; }; } else if (((PyArrayIterObject *)(out_iter))->contiguous) ((PyArrayIterObject *)(out_iter))->dataptr += ((PyArrayIterObject *)(out_iter))->ao->descr->elsize; else if (((PyArrayIterObject *)(out_iter))->nd_m1 == 1) { { if ((((PyArrayIterObject *)(out_iter)))->coordinates[1] < (((PyArrayIterObject *)(out_iter)))->dims_m1[1]) { (((PyArrayIterObject *)(out_iter)))->coordinates[1]++; (((PyArrayIterObject *)(out_iter)))->dataptr += (((PyArrayIterObject *)(out_iter)))->strides[1]; } else { (((PyArrayIterObject *)(out_iter)))->coordinates[1] = 0; (((PyArrayIterObject *)(out_iter)))->coordinates[0]++; (((PyArrayIterObject *)(out_iter)))->dataptr += (((PyArrayIterObject *)(out_iter)))->strides[0] - (((PyArrayIterObject *)(out_iter)))->backstrides[1]; } }; } else { int __npy_i; for (__npy_i=((PyArrayIterObject *)(out_iter))->nd_m1; __npy_i >= 0; __npy_i--) { if (((PyArrayIterObject *)(out_iter))->coordinates[__npy_i] < ((PyArrayIterObject *)(out_iter))->dims_m1[__npy_i]) { ((PyArrayIterObject *)(out_iter))->coordinates[__npy_i]++; ((PyArrayIterObject *)(out_iter))->dataptr += ((PyArrayIterObject *)(out_iter))->strides[__npy_i]; break; } else { ((PyArrayIterObject *)(out_iter))->coordinates[__npy_i] = 0; ((PyArrayIterObject *)(out_iter))->dataptr -= ((PyArrayIterObject *)(out_iter))->backstrides[__npy_i]; } } } }; > } > > do { if ( --((PyObject*)(in_iter))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(in_iter)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(in_iter)))); } while (0); > do { if ( --((PyObject*)(out_iter))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(out_iter)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(out_iter)))); } while (0); > > return (PyObject*)result; > > err: > do { if ((in_iter) == ((void *)0)) ; else do { if ( --((PyObject*)(in_iter))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(in_iter)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(in_iter)))); } while (0); } while (0); > do { if ((out_iter) == ((void *)0)) ; else do { if ( --((PyObject*)(out_iter))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(out_iter)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(out_iter)))); } while (0); } while (0); > do { if ((result) == ((void *)0)) ; else do { if ( --((PyObject*)(result))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(result)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(result)))); } while (0); } while (0); > > return 0; >} > >static PyObject * >_vec_string(PyObject *(__NPY_UNUSED_TAGGEDdummy) __attribute__ ((__unused__)), PyObject *args, PyObject *kwds) >{ > PyArrayObject* char_array = ((void *)0); > PyArray_Descr *type = ((void *)0); > PyObject* method_name; > PyObject* args_seq = ((void *)0); > > PyObject* method = ((void *)0); > PyObject* result = ((void *)0); > > if (!_PyArg_ParseTuple_SizeT(args, "O&O&O|O", > PyArray_Converter, &char_array, > PyArray_DescrConverter, &type, > &method_name, &args_seq)) { > goto err; > } > > if ((((PyArrayObject *)(char_array))->descr->type_num) == NPY_STRING) { > method = PyObject_GetAttr((PyObject *)&PyString_Type, method_name); > } > else if ((((PyArrayObject *)(char_array))->descr->type_num) == NPY_UNICODE) { > method = PyObject_GetAttr((PyObject *)&PyUnicode_Type, method_name); > } > else { > PyErr_SetString(PyExc_TypeError, > "string operation on non-string array"); > goto err; > } > if (method == ((void *)0)) { > goto err; > } > > if (args_seq == ((void *)0) > || (PySequence_Check(args_seq) && PySequence_Size(args_seq) == 0)) { > result = _vec_string_no_args(char_array, type, method); > } > else if (PySequence_Check(args_seq)) { > result = _vec_string_with_args(char_array, type, method, args_seq); > } > else { > PyErr_SetString(PyExc_TypeError, > "'args' must be a sequence of arguments"); > goto err; > } > if (result == ((void *)0)) { > goto err; > } > > do { if ( --((PyObject*)(char_array))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(char_array)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(char_array)))); } while (0); > do { if ( --((PyObject*)(method))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(method)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(method)))); } while (0); > > return (PyObject*)result; > > err: > do { if ((char_array) == ((void *)0)) ; else do { if ( --((PyObject*)(char_array))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(char_array)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(char_array)))); } while (0); } while (0); > do { if ((method) == ((void *)0)) ; else do { if ( --((PyObject*)(method))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(method)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(method)))); } while (0); } while (0); > > return 0; >} > > > >sigjmp_buf _NPY_SIGINT_BUF; > > > >static void >_PyArray_SigintHandler(int signum) >{ > PyOS_setsig(signum, ((__sighandler_t) 1)); > siglongjmp(_NPY_SIGINT_BUF, signum); >} > > > >static void* >_PyArray_GetSigintBuf(void) >{ > return (void *)&_NPY_SIGINT_BUF; >} ># 3341 "numpy/core/src/multiarray/multiarraymodule.c" >static PyObject * >test_interrupt(PyObject *(__NPY_UNUSED_TAGGEDself) __attribute__ ((__unused__)), PyObject *args) >{ > int kind = 0; > int a = 0; > > if (!_PyArg_ParseTuple_SizeT(args, "|i", &kind)) { > return ((void *)0); > } > if (kind) { > { PyThreadState *_save; _save = PyEval_SaveThread();; > while (a >= 0) { > if ((a % 1000 == 0) && PyOS_InterruptOccurred()) { > break; > } > a += 1; > } > PyEval_RestoreThread(_save); }; > } > else { > { PyOS_sighandler_t _npy_sig_save; _npy_sig_save = PyOS_setsig(2, _PyArray_SigintHandler); if (__sigsetjmp (*((sigjmp_buf *)_PyArray_GetSigintBuf()), 1) == 0) { > while(a >= 0) { > a += 1; > } > } PyOS_setsig(2, _npy_sig_save); } > } > return PyInt_FromLong(a); >} > >static struct PyMethodDef array_module_methods[] = { > {"_get_ndarray_c_version", > (PyCFunction)array__get_ndarray_c_version, > 0x0001|0x0002, ((void *)0)}, > {"_reconstruct", > (PyCFunction)array__reconstruct, > 0x0001, ((void *)0)}, > {"set_string_function", > (PyCFunction)array_set_string_function, > 0x0001|0x0002, ((void *)0)}, > {"set_numeric_ops", > (PyCFunction)array_set_ops_function, > 0x0001|0x0002, ((void *)0)}, > {"set_datetimeparse_function", > (PyCFunction)array_set_datetimeparse_function, > 0x0001|0x0002, ((void *)0)}, > {"set_typeDict", > (PyCFunction)array_set_typeDict, > 0x0001, ((void *)0)}, > {"array", > (PyCFunction)_array_fromobject, > 0x0001|0x0002, ((void *)0)}, > {"nested_iters", > (PyCFunction)NpyIter_NestedIters, > 0x0001|0x0002, ((void *)0)}, > {"arange", > (PyCFunction)array_arange, > 0x0001|0x0002, ((void *)0)}, > {"zeros", > (PyCFunction)array_zeros, > 0x0001|0x0002, ((void *)0)}, > {"count_nonzero", > (PyCFunction)array_count_nonzero, > 0x0001, ((void *)0)}, > {"empty", > (PyCFunction)array_empty, > 0x0001|0x0002, ((void *)0)}, > {"empty_like", > (PyCFunction)array_empty_like, > 0x0001|0x0002, ((void *)0)}, > {"scalar", > (PyCFunction)array_scalar, > 0x0001|0x0002, ((void *)0)}, > {"where", > (PyCFunction)array_where, > 0x0001, ((void *)0)}, > {"lexsort", > (PyCFunction)array_lexsort, > 0x0001 | 0x0002, ((void *)0)}, > {"putmask", > (PyCFunction)array_putmask, > 0x0001 | 0x0002, ((void *)0)}, > {"fromstring", > (PyCFunction)array_fromstring, > 0x0001|0x0002, ((void *)0)}, > {"fromiter", > (PyCFunction)array_fromiter, > 0x0001|0x0002, ((void *)0)}, > {"concatenate", > (PyCFunction)array_concatenate, > 0x0001|0x0002, ((void *)0)}, > {"inner", > (PyCFunction)array_innerproduct, > 0x0001, ((void *)0)}, > {"dot", > (PyCFunction)array_matrixproduct, > 0x0001 | 0x0002, ((void *)0)}, > {"einsum", > (PyCFunction)array_einsum, > 0x0001|0x0002, ((void *)0)}, > {"_fastCopyAndTranspose", > (PyCFunction)array_fastCopyAndTranspose, > 0x0001, ((void *)0)}, > {"correlate", > (PyCFunction)array_correlate, > 0x0001 | 0x0002, ((void *)0)}, > {"correlate2", > (PyCFunction)array_correlate2, > 0x0001 | 0x0002, ((void *)0)}, > {"frombuffer", > (PyCFunction)array_frombuffer, > 0x0001 | 0x0002, ((void *)0)}, > {"fromfile", > (PyCFunction)array_fromfile, > 0x0001 | 0x0002, ((void *)0)}, > {"can_cast", > (PyCFunction)array_can_cast_safely, > 0x0001 | 0x0002, ((void *)0)}, > {"promote_types", > (PyCFunction)array_promote_types, > 0x0001, ((void *)0)}, > {"min_scalar_type", > (PyCFunction)array_min_scalar_type, > 0x0001, ((void *)0)}, > {"result_type", > (PyCFunction)array_result_type, > 0x0001, ((void *)0)}, > > {"newbuffer", > (PyCFunction)new_buffer, > 0x0001, ((void *)0)}, > {"getbuffer", > (PyCFunction)buffer_buffer, > 0x0001 | 0x0002, ((void *)0)}, > > {"int_asbuffer", > (PyCFunction)as_buffer, > 0x0001 | 0x0002, ((void *)0)}, > {"format_longfloat", > (PyCFunction)format_longfloat, > 0x0001 | 0x0002, ((void *)0)}, > {"compare_chararrays", > (PyCFunction)compare_chararrays, > 0x0001 | 0x0002, ((void *)0)}, > {"_vec_string", > (PyCFunction)_vec_string, > 0x0001 | 0x0002, ((void *)0)}, > {"test_interrupt", > (PyCFunction)test_interrupt, > 0x0001, ((void *)0)}, > {((void *)0), ((void *)0), 0, ((void *)0)} >}; > ># 1 "build/src.linux-x86_64-2.7/numpy/core/include/numpy/__multiarray_api.c" 1 > > > > > >void *PyArray_API[] = { > (void *) PyArray_GetNDArrayCVersion, > (void *) &PyBigArray_Type, > (void *) &PyArray_Type, > (void *) &PyArrayDescr_Type, > (void *) &PyArrayFlags_Type, > (void *) &PyArrayIter_Type, > (void *) &PyArrayMultiIter_Type, > (int *) &NPY_NUMUSERTYPES, > (void *) &PyBoolArrType_Type, > (void *) &_PyArrayScalar_BoolValues, > (void *) &PyGenericArrType_Type, > (void *) &PyNumberArrType_Type, > (void *) &PyIntegerArrType_Type, > (void *) &PySignedIntegerArrType_Type, > (void *) &PyUnsignedIntegerArrType_Type, > (void *) &PyInexactArrType_Type, > (void *) &PyFloatingArrType_Type, > (void *) &PyComplexFloatingArrType_Type, > (void *) &PyFlexibleArrType_Type, > (void *) &PyCharacterArrType_Type, > (void *) &PyByteArrType_Type, > (void *) &PyShortArrType_Type, > (void *) &PyIntArrType_Type, > (void *) &PyLongArrType_Type, > (void *) &PyLongLongArrType_Type, > (void *) &PyUByteArrType_Type, > (void *) &PyUShortArrType_Type, > (void *) &PyUIntArrType_Type, > (void *) &PyULongArrType_Type, > (void *) &PyULongLongArrType_Type, > (void *) &PyFloatArrType_Type, > (void *) &PyDoubleArrType_Type, > (void *) &PyLongDoubleArrType_Type, > (void *) &PyCFloatArrType_Type, > (void *) &PyCDoubleArrType_Type, > (void *) &PyCLongDoubleArrType_Type, > (void *) &PyObjectArrType_Type, > (void *) &PyStringArrType_Type, > (void *) &PyUnicodeArrType_Type, > (void *) &PyVoidArrType_Type, > (void *) PyArray_SetNumericOps, > (void *) PyArray_GetNumericOps, > (void *) PyArray_INCREF, > (void *) PyArray_XDECREF, > (void *) PyArray_SetStringFunction, > (void *) PyArray_DescrFromType, > (void *) PyArray_TypeObjectFromType, > (void *) PyArray_Zero, > (void *) PyArray_One, > (void *) PyArray_CastToType, > (void *) PyArray_CastTo, > (void *) PyArray_CastAnyTo, > (void *) PyArray_CanCastSafely, > (void *) PyArray_CanCastTo, > (void *) PyArray_ObjectType, > (void *) PyArray_DescrFromObject, > (void *) PyArray_ConvertToCommonType, > (void *) PyArray_DescrFromScalar, > (void *) PyArray_DescrFromTypeObject, > (void *) PyArray_Size, > (void *) PyArray_Scalar, > (void *) PyArray_FromScalar, > (void *) PyArray_ScalarAsCtype, > (void *) PyArray_CastScalarToCtype, > (void *) PyArray_CastScalarDirect, > (void *) PyArray_ScalarFromObject, > (void *) PyArray_GetCastFunc, > (void *) PyArray_FromDims, > (void *) PyArray_FromDimsAndDataAndDescr, > (void *) PyArray_FromAny, > (void *) PyArray_EnsureArray, > (void *) PyArray_EnsureAnyArray, > (void *) PyArray_FromFile, > (void *) PyArray_FromString, > (void *) PyArray_FromBuffer, > (void *) PyArray_FromIter, > (void *) PyArray_Return, > (void *) PyArray_GetField, > (void *) PyArray_SetField, > (void *) PyArray_Byteswap, > (void *) PyArray_Resize, > (void *) PyArray_MoveInto, > (void *) PyArray_CopyInto, > (void *) PyArray_CopyAnyInto, > (void *) PyArray_CopyObject, > (void *) PyArray_NewCopy, > (void *) PyArray_ToList, > (void *) PyArray_ToString, > (void *) PyArray_ToFile, > (void *) PyArray_Dump, > (void *) PyArray_Dumps, > (void *) PyArray_ValidType, > (void *) PyArray_UpdateFlags, > (void *) PyArray_New, > (void *) PyArray_NewFromDescr, > (void *) PyArray_DescrNew, > (void *) PyArray_DescrNewFromType, > (void *) PyArray_GetPriority, > (void *) PyArray_IterNew, > (void *) PyArray_MultiIterNew, > (void *) PyArray_PyIntAsInt, > (void *) PyArray_PyIntAsIntp, > (void *) PyArray_Broadcast, > (void *) PyArray_FillObjectArray, > (void *) PyArray_FillWithScalar, > (void *) PyArray_CheckStrides, > (void *) PyArray_DescrNewByteorder, > (void *) PyArray_IterAllButAxis, > (void *) PyArray_CheckFromAny, > (void *) PyArray_FromArray, > (void *) PyArray_FromInterface, > (void *) PyArray_FromStructInterface, > (void *) PyArray_FromArrayAttr, > (void *) PyArray_ScalarKind, > (void *) PyArray_CanCoerceScalar, > (void *) PyArray_NewFlagsObject, > (void *) PyArray_CanCastScalar, > (void *) PyArray_CompareUCS4, > (void *) PyArray_RemoveSmallest, > (void *) PyArray_ElementStrides, > (void *) PyArray_Item_INCREF, > (void *) PyArray_Item_XDECREF, > (void *) PyArray_FieldNames, > (void *) PyArray_Transpose, > (void *) PyArray_TakeFrom, > (void *) PyArray_PutTo, > (void *) PyArray_PutMask, > (void *) PyArray_Repeat, > (void *) PyArray_Choose, > (void *) PyArray_Sort, > (void *) PyArray_ArgSort, > (void *) PyArray_SearchSorted, > (void *) PyArray_ArgMax, > (void *) PyArray_ArgMin, > (void *) PyArray_Reshape, > (void *) PyArray_Newshape, > (void *) PyArray_Squeeze, > (void *) PyArray_View, > (void *) PyArray_SwapAxes, > (void *) PyArray_Max, > (void *) PyArray_Min, > (void *) PyArray_Ptp, > (void *) PyArray_Mean, > (void *) PyArray_Trace, > (void *) PyArray_Diagonal, > (void *) PyArray_Clip, > (void *) PyArray_Conjugate, > (void *) PyArray_Nonzero, > (void *) PyArray_Std, > (void *) PyArray_Sum, > (void *) PyArray_CumSum, > (void *) PyArray_Prod, > (void *) PyArray_CumProd, > (void *) PyArray_All, > (void *) PyArray_Any, > (void *) PyArray_Compress, > (void *) PyArray_Flatten, > (void *) PyArray_Ravel, > (void *) PyArray_MultiplyList, > (void *) PyArray_MultiplyIntList, > (void *) PyArray_GetPtr, > (void *) PyArray_CompareLists, > (void *) PyArray_AsCArray, > (void *) PyArray_As1D, > (void *) PyArray_As2D, > (void *) PyArray_Free, > (void *) PyArray_Converter, > (void *) PyArray_IntpFromSequence, > (void *) PyArray_Concatenate, > (void *) PyArray_InnerProduct, > (void *) PyArray_MatrixProduct, > (void *) PyArray_CopyAndTranspose, > (void *) PyArray_Correlate, > (void *) PyArray_TypestrConvert, > (void *) PyArray_DescrConverter, > (void *) PyArray_DescrConverter2, > (void *) PyArray_IntpConverter, > (void *) PyArray_BufferConverter, > (void *) PyArray_AxisConverter, > (void *) PyArray_BoolConverter, > (void *) PyArray_ByteorderConverter, > (void *) PyArray_OrderConverter, > (void *) PyArray_EquivTypes, > (void *) PyArray_Zeros, > (void *) PyArray_Empty, > (void *) PyArray_Where, > (void *) PyArray_Arange, > (void *) PyArray_ArangeObj, > (void *) PyArray_SortkindConverter, > (void *) PyArray_LexSort, > (void *) PyArray_Round, > (void *) PyArray_EquivTypenums, > (void *) PyArray_RegisterDataType, > (void *) PyArray_RegisterCastFunc, > (void *) PyArray_RegisterCanCast, > (void *) PyArray_InitArrFuncs, > (void *) PyArray_IntTupleFromIntp, > (void *) PyArray_TypeNumFromName, > (void *) PyArray_ClipmodeConverter, > (void *) PyArray_OutputConverter, > (void *) PyArray_BroadcastToShape, > (void *) _PyArray_SigintHandler, > (void *) _PyArray_GetSigintBuf, > (void *) PyArray_DescrAlignConverter, > (void *) PyArray_DescrAlignConverter2, > (void *) PyArray_SearchsideConverter, > (void *) PyArray_CheckAxis, > (void *) PyArray_OverflowMultiplyList, > (void *) PyArray_CompareString, > (void *) PyArray_MultiIterFromObjects, > (void *) PyArray_GetEndianness, > (void *) PyArray_GetNDArrayCFeatureVersion, > (void *) PyArray_Correlate2, > (void *) PyArray_NeighborhoodIterNew, > (void *) &PyTimeIntegerArrType_Type, > (void *) &PyDatetimeArrType_Type, > (void *) &PyTimedeltaArrType_Type, > (void *) &PyHalfArrType_Type, > (void *) &NpyIter_Type, > (void *) PyArray_SetDatetimeParseFunction, > (void *) PyArray_DatetimeToDatetimeStruct, > (void *) PyArray_TimedeltaToTimedeltaStruct, > (void *) PyArray_DatetimeStructToDatetime, > (void *) PyArray_TimedeltaStructToTimedelta, > (void *) NpyIter_New, > (void *) NpyIter_MultiNew, > (void *) NpyIter_AdvancedNew, > (void *) NpyIter_Copy, > (void *) NpyIter_Deallocate, > (void *) NpyIter_HasDelayedBufAlloc, > (void *) NpyIter_HasExternalLoop, > (void *) NpyIter_EnableExternalLoop, > (void *) NpyIter_GetInnerStrideArray, > (void *) NpyIter_GetInnerLoopSizePtr, > (void *) NpyIter_Reset, > (void *) NpyIter_ResetBasePointers, > (void *) NpyIter_ResetToIterIndexRange, > (void *) NpyIter_GetNDim, > (void *) NpyIter_GetNOp, > (void *) NpyIter_GetIterNext, > (void *) NpyIter_GetIterSize, > (void *) NpyIter_GetIterIndexRange, > (void *) NpyIter_GetIterIndex, > (void *) NpyIter_GotoIterIndex, > (void *) NpyIter_HasMultiIndex, > (void *) NpyIter_GetShape, > (void *) NpyIter_GetGetMultiIndex, > (void *) NpyIter_GotoMultiIndex, > (void *) NpyIter_RemoveMultiIndex, > (void *) NpyIter_HasIndex, > (void *) NpyIter_IsBuffered, > (void *) NpyIter_IsGrowInner, > (void *) NpyIter_GetBufferSize, > (void *) NpyIter_GetIndexPtr, > (void *) NpyIter_GotoIndex, > (void *) NpyIter_GetDataPtrArray, > (void *) NpyIter_GetDescrArray, > (void *) NpyIter_GetOperandArray, > (void *) NpyIter_GetIterView, > (void *) NpyIter_GetReadFlags, > (void *) NpyIter_GetWriteFlags, > (void *) NpyIter_DebugPrint, > (void *) NpyIter_IterationNeedsAPI, > (void *) NpyIter_GetInnerFixedStrideArray, > (void *) NpyIter_RemoveAxis, > (void *) NpyIter_GetAxisStrideArray, > (void *) NpyIter_RequiresBuffering, > (void *) NpyIter_GetInitialDataPtrArray, > (void *) NpyIter_CreateCompatibleStrides, > (void *) PyArray_CastingConverter, > (void *) PyArray_CountNonzero, > (void *) PyArray_PromoteTypes, > (void *) PyArray_MinScalarType, > (void *) PyArray_ResultType, > (void *) PyArray_CanCastArrayTo, > (void *) PyArray_CanCastTypeTo, > (void *) PyArray_EinsteinSum, > (void *) PyArray_NewLikeArray, > (void *) PyArray_GetArrayParamsFromObject, > (void *) PyArray_ConvertClipmodeSequence, > (void *) PyArray_MatrixProduct2 >}; ># 3494 "numpy/core/src/multiarray/multiarraymodule.c" 2 ># 3504 "numpy/core/src/multiarray/multiarraymodule.c" >static int >setup_scalartypes(PyObject *(__NPY_UNUSED_TAGGEDdict) __attribute__ ((__unused__))) >{ > initialize_casting_tables(); > initialize_numeric_types(); > > if (PyType_Ready(&PyBool_Type) < 0) { > return -1; > } > > if (PyType_Ready(&PyInt_Type) < 0) { > return -1; > } > > if (PyType_Ready(&PyFloat_Type) < 0) { > return -1; > } > if (PyType_Ready(&PyComplex_Type) < 0) { > return -1; > } > if (PyType_Ready(&PyString_Type) < 0) { > return -1; > } > if (PyType_Ready(&PyUnicode_Type) < 0) { > return -1; > } ># 3541 "numpy/core/src/multiarray/multiarraymodule.c" > if (PyType_Ready(&PyGenericArrType_Type) < 0) { > return -1; > } > PyNumberArrType_Type.tp_base = &PyGenericArrType_Type; if (PyType_Ready(&PyNumberArrType_Type) < 0) { PyErr_Print(); PyErr_Format(PyExc_SystemError, "could not initialize Py%sArrType_Type", "Number"); return -1; }; > PyIntegerArrType_Type.tp_base = &PyNumberArrType_Type; if (PyType_Ready(&PyIntegerArrType_Type) < 0) { PyErr_Print(); PyErr_Format(PyExc_SystemError, "could not initialize Py%sArrType_Type", "Integer"); return -1; }; > PyInexactArrType_Type.tp_base = &PyNumberArrType_Type; if (PyType_Ready(&PyInexactArrType_Type) < 0) { PyErr_Print(); PyErr_Format(PyExc_SystemError, "could not initialize Py%sArrType_Type", "Inexact"); return -1; }; > PySignedIntegerArrType_Type.tp_base = &PyIntegerArrType_Type; if (PyType_Ready(&PySignedIntegerArrType_Type) < 0) { PyErr_Print(); PyErr_Format(PyExc_SystemError, "could not initialize Py%sArrType_Type", "SignedInteger"); return -1; }; > PyUnsignedIntegerArrType_Type.tp_base = &PyIntegerArrType_Type; if (PyType_Ready(&PyUnsignedIntegerArrType_Type) < 0) { PyErr_Print(); PyErr_Format(PyExc_SystemError, "could not initialize Py%sArrType_Type", "UnsignedInteger"); return -1; }; > PyFloatingArrType_Type.tp_base = &PyInexactArrType_Type; if (PyType_Ready(&PyFloatingArrType_Type) < 0) { PyErr_Print(); PyErr_Format(PyExc_SystemError, "could not initialize Py%sArrType_Type", "Floating"); return -1; }; > PyComplexFloatingArrType_Type.tp_base = &PyInexactArrType_Type; if (PyType_Ready(&PyComplexFloatingArrType_Type) < 0) { PyErr_Print(); PyErr_Format(PyExc_SystemError, "could not initialize Py%sArrType_Type", "ComplexFloating"); return -1; }; > PyFlexibleArrType_Type.tp_base = &PyGenericArrType_Type; if (PyType_Ready(&PyFlexibleArrType_Type) < 0) { PyErr_Print(); PyErr_Format(PyExc_SystemError, "could not initialize Py%sArrType_Type", "Flexible"); return -1; }; > PyCharacterArrType_Type.tp_base = &PyFlexibleArrType_Type; if (PyType_Ready(&PyCharacterArrType_Type) < 0) { PyErr_Print(); PyErr_Format(PyExc_SystemError, "could not initialize Py%sArrType_Type", "Character"); return -1; }; ># 3593 "numpy/core/src/multiarray/multiarraymodule.c" > PyBoolArrType_Type.tp_base = &PyGenericArrType_Type; if (PyType_Ready(&PyBoolArrType_Type) < 0) { PyErr_Print(); PyErr_Format(PyExc_SystemError, "could not initialize Py%sArrType_Type", "Bool"); return -1; }; > PyByteArrType_Type.tp_base = &PySignedIntegerArrType_Type; if (PyType_Ready(&PyByteArrType_Type) < 0) { PyErr_Print(); PyErr_Format(PyExc_SystemError, "could not initialize Py%sArrType_Type", "Byte"); return -1; }; > PyShortArrType_Type.tp_base = &PySignedIntegerArrType_Type; if (PyType_Ready(&PyShortArrType_Type) < 0) { PyErr_Print(); PyErr_Format(PyExc_SystemError, "could not initialize Py%sArrType_Type", "Short"); return -1; }; > > > > PyIntArrType_Type.tp_base = &PySignedIntegerArrType_Type; if (PyType_Ready(&PyIntArrType_Type) < 0) { PyErr_Print(); PyErr_Format(PyExc_SystemError, "could not initialize Py%sArrType_Type", "Int"); return -1; }; > > > PyLongArrType_Type.tp_base = &PySignedIntegerArrType_Type; PyLongArrType_Type.tp_bases = _Py_BuildValue_SizeT("(OO)", &PySignedIntegerArrType_Type, &PyInt_Type); if (PyType_Ready(&PyLongArrType_Type) < 0) { PyErr_Print(); PyErr_Format(PyExc_SystemError, "could not initialize Py%sArrType_Type", "Long"); return -1; } PyLongArrType_Type.tp_hash = PyInt_Type.tp_hash;; > > > > > PyLongLongArrType_Type.tp_base = &PySignedIntegerArrType_Type; PyLongLongArrType_Type.tp_bases = _Py_BuildValue_SizeT("(OO)", &PySignedIntegerArrType_Type, &PyInt_Type); if (PyType_Ready(&PyLongLongArrType_Type) < 0) { PyErr_Print(); PyErr_Format(PyExc_SystemError, "could not initialize Py%sArrType_Type", "LongLong"); return -1; } PyLongLongArrType_Type.tp_hash = PyInt_Type.tp_hash;; > > > > > PyTimeIntegerArrType_Type.tp_base = &PySignedIntegerArrType_Type; if (PyType_Ready(&PyTimeIntegerArrType_Type) < 0) { PyErr_Print(); PyErr_Format(PyExc_SystemError, "could not initialize Py%sArrType_Type", "TimeInteger"); return -1; }; > PyDatetimeArrType_Type.tp_base = &PyTimeIntegerArrType_Type; if (PyType_Ready(&PyDatetimeArrType_Type) < 0) { PyErr_Print(); PyErr_Format(PyExc_SystemError, "could not initialize Py%sArrType_Type", "Datetime"); return -1; }; > PyTimedeltaArrType_Type.tp_base = &PyTimeIntegerArrType_Type; if (PyType_Ready(&PyTimedeltaArrType_Type) < 0) { PyErr_Print(); PyErr_Format(PyExc_SystemError, "could not initialize Py%sArrType_Type", "Timedelta"); return -1; }; > > > > > > > > PyUByteArrType_Type.tp_base = &PyUnsignedIntegerArrType_Type; if (PyType_Ready(&PyUByteArrType_Type) < 0) { PyErr_Print(); PyErr_Format(PyExc_SystemError, "could not initialize Py%sArrType_Type", "UByte"); return -1; }; > PyUShortArrType_Type.tp_base = &PyUnsignedIntegerArrType_Type; if (PyType_Ready(&PyUShortArrType_Type) < 0) { PyErr_Print(); PyErr_Format(PyExc_SystemError, "could not initialize Py%sArrType_Type", "UShort"); return -1; }; > PyUIntArrType_Type.tp_base = &PyUnsignedIntegerArrType_Type; if (PyType_Ready(&PyUIntArrType_Type) < 0) { PyErr_Print(); PyErr_Format(PyExc_SystemError, "could not initialize Py%sArrType_Type", "UInt"); return -1; }; > PyULongArrType_Type.tp_base = &PyUnsignedIntegerArrType_Type; if (PyType_Ready(&PyULongArrType_Type) < 0) { PyErr_Print(); PyErr_Format(PyExc_SystemError, "could not initialize Py%sArrType_Type", "ULong"); return -1; }; > PyULongLongArrType_Type.tp_base = &PyUnsignedIntegerArrType_Type; if (PyType_Ready(&PyULongLongArrType_Type) < 0) { PyErr_Print(); PyErr_Format(PyExc_SystemError, "could not initialize Py%sArrType_Type", "ULongLong"); return -1; }; > > PyHalfArrType_Type.tp_base = &PyFloatingArrType_Type; if (PyType_Ready(&PyHalfArrType_Type) < 0) { PyErr_Print(); PyErr_Format(PyExc_SystemError, "could not initialize Py%sArrType_Type", "Half"); return -1; }; > PyFloatArrType_Type.tp_base = &PyFloatingArrType_Type; if (PyType_Ready(&PyFloatArrType_Type) < 0) { PyErr_Print(); PyErr_Format(PyExc_SystemError, "could not initialize Py%sArrType_Type", "Float"); return -1; }; > PyDoubleArrType_Type.tp_base = &PyFloatingArrType_Type; PyDoubleArrType_Type.tp_bases = _Py_BuildValue_SizeT("(OO)", &PyFloatingArrType_Type, &PyFloat_Type); if (PyType_Ready(&PyDoubleArrType_Type) < 0) { PyErr_Print(); PyErr_Format(PyExc_SystemError, "could not initialize Py%sArrType_Type", "Double"); return -1; } PyDoubleArrType_Type.tp_hash = PyFloat_Type.tp_hash;; > PyLongDoubleArrType_Type.tp_base = &PyFloatingArrType_Type; if (PyType_Ready(&PyLongDoubleArrType_Type) < 0) { PyErr_Print(); PyErr_Format(PyExc_SystemError, "could not initialize Py%sArrType_Type", "LongDouble"); return -1; }; > > PyCFloatArrType_Type.tp_base = &PyComplexFloatingArrType_Type; if (PyType_Ready(&PyCFloatArrType_Type) < 0) { PyErr_Print(); PyErr_Format(PyExc_SystemError, "could not initialize Py%sArrType_Type", "CFloat"); return -1; }; > PyCDoubleArrType_Type.tp_base = &PyComplexFloatingArrType_Type; PyCDoubleArrType_Type.tp_bases = _Py_BuildValue_SizeT("(OO)", &PyComplexFloatingArrType_Type, &PyComplex_Type); if (PyType_Ready(&PyCDoubleArrType_Type) < 0) { PyErr_Print(); PyErr_Format(PyExc_SystemError, "could not initialize Py%sArrType_Type", "CDouble"); return -1; } PyCDoubleArrType_Type.tp_hash = PyComplex_Type.tp_hash;; > PyCLongDoubleArrType_Type.tp_base = &PyComplexFloatingArrType_Type; if (PyType_Ready(&PyCLongDoubleArrType_Type) < 0) { PyErr_Print(); PyErr_Format(PyExc_SystemError, "could not initialize Py%sArrType_Type", "CLongDouble"); return -1; }; > > PyStringArrType_Type.tp_base = &PyString_Type; PyStringArrType_Type.tp_bases = _Py_BuildValue_SizeT("(OO)", &PyString_Type, &PyCharacterArrType_Type); PyStringArrType_Type.tp_richcompare = PyString_Type.tp_richcompare; PyStringArrType_Type.tp_compare = PyString_Type.tp_compare; PyStringArrType_Type.tp_hash = PyString_Type.tp_hash; if (PyType_Ready(&PyStringArrType_Type) < 0) { PyErr_Print(); PyErr_Format(PyExc_SystemError, "could not initialize Py%sArrType_Type", "String"); return -1; }; > PyUnicodeArrType_Type.tp_base = &PyUnicode_Type; PyUnicodeArrType_Type.tp_bases = _Py_BuildValue_SizeT("(OO)", &PyUnicode_Type, &PyCharacterArrType_Type); PyUnicodeArrType_Type.tp_richcompare = PyUnicode_Type.tp_richcompare; PyUnicodeArrType_Type.tp_compare = PyUnicode_Type.tp_compare; PyUnicodeArrType_Type.tp_hash = PyUnicode_Type.tp_hash; if (PyType_Ready(&PyUnicodeArrType_Type) < 0) { PyErr_Print(); PyErr_Format(PyExc_SystemError, "could not initialize Py%sArrType_Type", "Unicode"); return -1; }; > > PyVoidArrType_Type.tp_base = &PyFlexibleArrType_Type; if (PyType_Ready(&PyVoidArrType_Type) < 0) { PyErr_Print(); PyErr_Format(PyExc_SystemError, "could not initialize Py%sArrType_Type", "Void"); return -1; }; > > PyObjectArrType_Type.tp_base = &PyGenericArrType_Type; if (PyType_Ready(&PyObjectArrType_Type) < 0) { PyErr_Print(); PyErr_Format(PyExc_SystemError, "could not initialize Py%sArrType_Type", "Object"); return -1; }; > > return 0; ># 3653 "numpy/core/src/multiarray/multiarraymodule.c" >} > > > >static void >set_flaginfo(PyObject *d) >{ > PyObject *s; > PyObject *newd; > > newd = PyDict_New(); ># 3675 "numpy/core/src/multiarray/multiarraymodule.c" > PyDict_SetItemString(newd, "OWNDATA", s=PyInt_FromLong(0x0004)); do { if ( --((PyObject*)(s))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(s)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(s)))); } while (0); PyDict_SetItemString(newd, "O", s=PyInt_FromLong(0x0004)); do { if ( --((PyObject*)(s))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(s)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(s)))); } while (0); > PyDict_SetItemString(newd, "FORTRAN", s=PyInt_FromLong(0x0002)); do { if ( --((PyObject*)(s))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(s)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(s)))); } while (0); PyDict_SetItemString(newd, "F", s=PyInt_FromLong(0x0002)); do { if ( --((PyObject*)(s))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(s)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(s)))); } while (0); > PyDict_SetItemString(newd, "CONTIGUOUS", s=PyInt_FromLong(0x0001)); do { if ( --((PyObject*)(s))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(s)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(s)))); } while (0); PyDict_SetItemString(newd, "C", s=PyInt_FromLong(0x0001)); do { if ( --((PyObject*)(s))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(s)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(s)))); } while (0); > PyDict_SetItemString(newd, "ALIGNED", s=PyInt_FromLong(0x0100)); do { if ( --((PyObject*)(s))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(s)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(s)))); } while (0); PyDict_SetItemString(newd, "A", s=PyInt_FromLong(0x0100)); do { if ( --((PyObject*)(s))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(s)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(s)))); } while (0); > PyDict_SetItemString(newd, "UPDATEIFCOPY", s=PyInt_FromLong(0x1000)); do { if ( --((PyObject*)(s))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(s)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(s)))); } while (0); PyDict_SetItemString(newd, "U", s=PyInt_FromLong(0x1000)); do { if ( --((PyObject*)(s))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(s)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(s)))); } while (0); > PyDict_SetItemString(newd, "WRITEABLE", s=PyInt_FromLong(0x0400)); do { if ( --((PyObject*)(s))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(s)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(s)))); } while (0); PyDict_SetItemString(newd, "W", s=PyInt_FromLong(0x0400)); do { if ( --((PyObject*)(s))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(s)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(s)))); } while (0); > PyDict_SetItemString(newd, "C_CONTIGUOUS", s=PyInt_FromLong(0x0001)); do { if ( --((PyObject*)(s))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(s)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(s)))); } while (0); > PyDict_SetItemString(newd, "F_CONTIGUOUS", s=PyInt_FromLong(0x0002)); do { if ( --((PyObject*)(s))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(s)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(s)))); } while (0); > > > > > PyDict_SetItemString(d, "_flagdict", newd); > do { if ( --((PyObject*)(newd))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(newd)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(newd)))); } while (0); > return; >} ># 3712 "numpy/core/src/multiarray/multiarraymodule.c" >void initmultiarray(void) { > > PyObject *m, *d, *s; > PyObject *c_api; > > > > > > m = Py_InitModule4_64("multiarray", array_module_methods, (char *)((void *)0), (PyObject *)((void *)0), 1013); > > if (!m) { > goto err; > } ># 3737 "numpy/core/src/multiarray/multiarraymodule.c" > d = PyModule_GetDict(m); > if (!d) { > goto err; > } > PyArray_Type.tp_free = PyMem_Free; > if (PyType_Ready(&PyArray_Type) < 0) { > return ; > } > if (setup_scalartypes(d) < 0) { > goto err; > } > PyArrayIter_Type.tp_iter = PyObject_SelfIter; > NpyIter_Type.tp_iter = PyObject_SelfIter; > PyArrayMultiIter_Type.tp_iter = PyObject_SelfIter; > PyArrayMultiIter_Type.tp_free = PyMem_Free; > if (PyType_Ready(&PyArrayIter_Type) < 0) { > return ; > } > if (PyType_Ready(&PyArrayMapIter_Type) < 0) { > return ; > } > if (PyType_Ready(&PyArrayMultiIter_Type) < 0) { > return ; > } > PyArrayNeighborhoodIter_Type.tp_new = PyType_GenericNew; > if (PyType_Ready(&PyArrayNeighborhoodIter_Type) < 0) { > return ; > } > if (PyType_Ready(&NpyIter_Type) < 0) { > return ; > } > > PyArrayDescr_Type.tp_hash = PyArray_DescrHash; > if (PyType_Ready(&PyArrayDescr_Type) < 0) { > return ; > } > if (PyType_Ready(&PyArrayFlags_Type) < 0) { > return ; > } > > > > c_api = NpyCapsule_FromVoidPtr((void *)PyArray_API, ((void *)0)); > PyDict_SetItemString(d, "_ARRAY_API", c_api); > do { if ( --((PyObject*)(c_api))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(c_api)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(c_api)))); } while (0); > if (PyErr_Occurred()) { > goto err; > } > > > if (_numpymemoryview_init(&s) < 0) { > return ; > } > if (s != ((void *)0)) { > PyDict_SetItemString(d, "memorysimpleview", s); > } > > > > > > > > PyDict_SetItemString (d, "error", PyExc_Exception); > > s = PyString_FromString("3.1"); > PyDict_SetItemString(d, "__version__", s); > do { if ( --((PyObject*)(s))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(s)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(s)))); } while (0); > > s = PyString_InternFromString("__frequency__"); > PyDict_SetItemString(d, "METADATA_DTSTR", s); > do { if ( --((PyObject*)(s))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(s)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(s)))); } while (0); > > > > > s = NpyCapsule_FromVoidPtr((void *)_datetime_strings, ((void *)0)); > PyDict_SetItemString(d, "DATETIMEUNITS", s); > do { if ( --((PyObject*)(s))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(s)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(s)))); } while (0); > > > > > > > > s = PyInt_FromLong(1); PyDict_SetItemString(d, "ALLOW_THREADS", s); do { if ( --((PyObject*)(s))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(s)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(s)))); } while (0); > s = PyInt_FromLong(8192); PyDict_SetItemString(d, "BUFSIZE", s); do { if ( --((PyObject*)(s))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(s)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(s)))); } while (0); > s = PyInt_FromLong(NPY_CLIP); PyDict_SetItemString(d, "CLIP", s); do { if ( --((PyObject*)(s))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(s)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(s)))); } while (0); > > s = PyInt_FromLong(0x01); PyDict_SetItemString(d, "ITEM_HASOBJECT", s); do { if ( --((PyObject*)(s))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(s)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(s)))); } while (0); > s = PyInt_FromLong(0x02); PyDict_SetItemString(d, "LIST_PICKLE", s); do { if ( --((PyObject*)(s))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(s)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(s)))); } while (0); > s = PyInt_FromLong(0x04); PyDict_SetItemString(d, "ITEM_IS_POINTER", s); do { if ( --((PyObject*)(s))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(s)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(s)))); } while (0); > s = PyInt_FromLong(0x08); PyDict_SetItemString(d, "NEEDS_INIT", s); do { if ( --((PyObject*)(s))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(s)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(s)))); } while (0); > s = PyInt_FromLong(0x10); PyDict_SetItemString(d, "NEEDS_PYAPI", s); do { if ( --((PyObject*)(s))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(s)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(s)))); } while (0); > s = PyInt_FromLong(0x20); PyDict_SetItemString(d, "USE_GETITEM", s); do { if ( --((PyObject*)(s))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(s)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(s)))); } while (0); > s = PyInt_FromLong(0x40); PyDict_SetItemString(d, "USE_SETITEM", s); do { if ( --((PyObject*)(s))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(s)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(s)))); } while (0); > > s = PyInt_FromLong(NPY_RAISE); PyDict_SetItemString(d, "RAISE", s); do { if ( --((PyObject*)(s))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(s)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(s)))); } while (0); > s = PyInt_FromLong(NPY_WRAP); PyDict_SetItemString(d, "WRAP", s); do { if ( --((PyObject*)(s))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(s)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(s)))); } while (0); > s = PyInt_FromLong(32); PyDict_SetItemString(d, "MAXDIMS", s); do { if ( --((PyObject*)(s))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(s)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(s)))); } while (0); > > > ( ((PyObject*)(&PyArray_Type))->ob_refcnt++); > PyDict_SetItemString(d, "ndarray", (PyObject *)&PyArray_Type); > ( ((PyObject*)(&PyArrayIter_Type))->ob_refcnt++); > PyDict_SetItemString(d, "flatiter", (PyObject *)&PyArrayIter_Type); > ( ((PyObject*)(&PyArrayMultiIter_Type))->ob_refcnt++); > PyDict_SetItemString(d, "nditer", (PyObject *)&NpyIter_Type); > ( ((PyObject*)(&NpyIter_Type))->ob_refcnt++); > PyDict_SetItemString(d, "broadcast", > (PyObject *)&PyArrayMultiIter_Type); > ( ((PyObject*)(&PyArrayDescr_Type))->ob_refcnt++); > PyDict_SetItemString(d, "dtype", (PyObject *)&PyArrayDescr_Type); > > ( ((PyObject*)(&PyArrayFlags_Type))->ob_refcnt++); > PyDict_SetItemString(d, "flagsobj", (PyObject *)&PyArrayFlags_Type); > > set_flaginfo(d); > > if (set_typeinfo(d) != 0) { > goto err; > } > return ; > > err: > if (!PyErr_Occurred()) { > PyErr_SetString(PyExc_RuntimeError, > "cannot load multiarray module."); > } > return ; >} ># 54 "numpy/core/src/multiarray/multiarraymodule_onefile.c" 2
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Actions:
View
Attachments on
bug 918005
: 705347