-
-
Notifications
You must be signed in to change notification settings - Fork 31
/
Copy pathphp_tensor.h
67 lines (44 loc) · 1.46 KB
/
php_tensor.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
/* This file was generated automatically by Zephir do not modify it! */
#ifndef PHP_TENSOR_H
#define PHP_TENSOR_H 1
#ifdef PHP_WIN32
#define ZEPHIR_RELEASE 1
#endif
#include "kernel/globals.h"
#define PHP_TENSOR_NAME "tensor"
#define PHP_TENSOR_VERSION "3.0.5"
#define PHP_TENSOR_EXTNAME "tensor"
#define PHP_TENSOR_AUTHOR "The Rubix ML Community"
#define PHP_TENSOR_ZEPVERSION "0.18.0-$Id$"
#define PHP_TENSOR_DESCRIPTION "A library and extension that provides objects for scientific computing in PHP."
ZEND_BEGIN_MODULE_GLOBALS(tensor)
int initialized;
/** Function cache */
HashTable *fcache;
zephir_fcall_cache_entry *scache[ZEPHIR_MAX_CACHE_SLOTS];
/* Cache enabled */
unsigned int cache_enabled;
/* Max recursion control */
unsigned int recursive_lock;
ZEND_END_MODULE_GLOBALS(tensor)
#ifdef ZTS
#include "TSRM.h"
#endif
ZEND_EXTERN_MODULE_GLOBALS(tensor)
#ifdef ZTS
#define ZEPHIR_GLOBAL(v) ZEND_MODULE_GLOBALS_ACCESSOR(tensor, v)
#else
#define ZEPHIR_GLOBAL(v) (tensor_globals.v)
#endif
#ifdef ZTS
ZEND_TSRMLS_CACHE_EXTERN()
#define ZEPHIR_VGLOBAL ((zend_tensor_globals *) (*((void ***) tsrm_get_ls_cache()))[TSRM_UNSHUFFLE_RSRC_ID(tensor_globals_id)])
#else
#define ZEPHIR_VGLOBAL &(tensor_globals)
#endif
#define ZEPHIR_API ZEND_API
#define zephir_globals_def tensor_globals
#define zend_zephir_globals_def zend_tensor_globals
extern zend_module_entry tensor_module_entry;
#define phpext_tensor_ptr &tensor_module_entry
#endif