@img/sharp-libvips-dev 1.1.0-rc5 → 1.2.0-rc.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/cplusplus/vips-operators.cpp +39 -0
- package/include/archive.h +53 -2
- package/include/archive_entry.h +56 -25
- package/include/ffi.h +20 -2
- package/include/fontconfig/fontconfig.h +1 -1
- package/include/glib-2.0/gio/gdbusnameowning.h +12 -10
- package/include/glib-2.0/gio/gio-visibility.h +34 -0
- package/include/glib-2.0/gio/gsettings.h +35 -31
- package/include/glib-2.0/gio/gzlibcompressor.h +6 -0
- package/include/glib-2.0/girepository/gi-visibility.h +34 -0
- package/include/glib-2.0/girepository/gitypes.h +6 -0
- package/include/glib-2.0/glib/gbitlock.h +11 -0
- package/include/glib-2.0/glib/gdate.h +6 -0
- package/include/glib-2.0/glib/glib-visibility.h +34 -0
- package/include/glib-2.0/glib/gmain.h +13 -10
- package/include/glib-2.0/glib/gmessages.h +4 -1
- package/include/glib-2.0/glib/gstring.h +2 -0
- package/include/glib-2.0/glib/gversionmacros.h +9 -0
- package/include/glib-2.0/gmodule/gmodule-visibility.h +34 -0
- package/include/glib-2.0/gobject/gobject-visibility.h +34 -0
- package/include/glib-2.0/gobject/gsignal.h +33 -8
- package/include/harfbuzz/hb-common.h +1 -431
- package/include/harfbuzz/hb-deprecated.h +80 -2
- package/include/harfbuzz/hb-draw.h +2 -10
- package/include/harfbuzz/hb-face.h +1 -1
- package/include/harfbuzz/hb-font.h +55 -36
- package/include/harfbuzz/hb-paint.h +5 -3
- package/include/harfbuzz/hb-script-list.h +484 -0
- package/include/harfbuzz/hb-subset.h +22 -2
- package/include/harfbuzz/hb-version.h +3 -3
- package/include/libheif/heif.h +2 -0
- package/include/libheif/heif_version.h +2 -2
- package/include/libpng16/png.h +10 -10
- package/include/libpng16/pngconf.h +20 -27
- package/include/libpng16/pnglibconf.h +1 -1
- package/include/libxml2/libxml/HTMLparser.h +33 -30
- package/include/libxml2/libxml/HTMLtree.h +1 -0
- package/include/libxml2/libxml/SAX.h +2 -186
- package/include/libxml2/libxml/SAX2.h +2 -3
- package/include/libxml2/libxml/catalog.h +1 -0
- package/include/libxml2/libxml/debugXML.h +0 -138
- package/include/libxml2/libxml/encoding.h +124 -61
- package/include/libxml2/libxml/entities.h +0 -19
- package/include/libxml2/libxml/globals.h +0 -16
- package/include/libxml2/libxml/nanoftp.h +3 -173
- package/include/libxml2/libxml/parser.h +474 -231
- package/include/libxml2/libxml/parserInternals.h +21 -101
- package/include/libxml2/libxml/relaxng.h +7 -2
- package/include/libxml2/libxml/threads.h +0 -6
- package/include/libxml2/libxml/tree.h +29 -85
- package/include/libxml2/libxml/valid.h +20 -12
- package/include/libxml2/libxml/xinclude.h +5 -0
- package/include/libxml2/libxml/xlink.h +4 -0
- package/include/libxml2/libxml/xmlIO.h +15 -34
- package/include/libxml2/libxml/xmlautomata.h +19 -2
- package/include/libxml2/libxml/xmlerror.h +17 -18
- package/include/libxml2/libxml/xmlexports.h +6 -56
- package/include/libxml2/libxml/xmlmemory.h +19 -19
- package/include/libxml2/libxml/xmlmodule.h +4 -0
- package/include/libxml2/libxml/xmlreader.h +11 -3
- package/include/libxml2/libxml/xmlregexp.h +7 -106
- package/include/libxml2/libxml/xmlsave.h +11 -2
- package/include/libxml2/libxml/xmlschemas.h +10 -5
- package/include/libxml2/libxml/xmlunicode.h +3 -354
- package/include/libxml2/libxml/xmlversion.h +18 -33
- package/include/libxml2/libxml/xpath.h +5 -15
- package/include/libxml2/libxml/xpathInternals.h +9 -3
- package/include/libxml2/libxml/xpointer.h +1 -91
- package/include/pixman-1/pixman-version.h +2 -2
- package/include/pixman-1/pixman.h +200 -0
- package/include/png.h +10 -10
- package/include/pngconf.h +20 -27
- package/include/pnglibconf.h +1 -1
- package/include/vips/VImage8.h +62 -14
- package/include/vips/arithmetic.h +34 -34
- package/include/vips/basic.h +16 -0
- package/include/vips/buf.h +0 -5
- package/include/vips/colour.h +6 -7
- package/include/vips/connection.h +25 -37
- package/include/vips/enumtypes.h +11 -2
- package/include/vips/foreign.h +73 -43
- package/include/vips/format.h +7 -5
- package/include/vips/gate.h +0 -11
- package/include/vips/header.h +11 -11
- package/include/vips/image.h +8 -3
- package/include/vips/interpolate.h +0 -2
- package/include/vips/memory.h +4 -0
- package/include/vips/mosaicing.h +4 -0
- package/include/vips/object.h +14 -18
- package/include/vips/operation.h +0 -2
- package/include/vips/private.h +50 -2
- package/include/vips/region.h +1 -3
- package/include/vips/resample.h +2 -0
- package/include/vips/semaphore.h +8 -3
- package/include/vips/thread.h +1 -24
- package/include/vips/threadpool.h +0 -6
- package/include/vips/type.h +13 -9
- package/include/vips/util.h +17 -98
- package/include/vips/vector.h +0 -4
- package/include/vips/version.h +8 -8
- package/include/vips/vips.h +1 -0
- package/package.json +1 -1
- package/versions.json +11 -11
- package/include/gdk-pixbuf-2.0/gdk-pixbuf/gdk-pixbuf-animation.h +0 -221
- package/include/gdk-pixbuf-2.0/gdk-pixbuf/gdk-pixbuf-autocleanups.h +0 -37
- package/include/gdk-pixbuf-2.0/gdk-pixbuf/gdk-pixbuf-core.h +0 -525
- package/include/gdk-pixbuf-2.0/gdk-pixbuf/gdk-pixbuf-enum-types.h +0 -40
- package/include/gdk-pixbuf-2.0/gdk-pixbuf/gdk-pixbuf-features.h +0 -115
- package/include/gdk-pixbuf-2.0/gdk-pixbuf/gdk-pixbuf-io.h +0 -481
- package/include/gdk-pixbuf-2.0/gdk-pixbuf/gdk-pixbuf-loader.h +0 -113
- package/include/gdk-pixbuf-2.0/gdk-pixbuf/gdk-pixbuf-macros.h +0 -718
- package/include/gdk-pixbuf-2.0/gdk-pixbuf/gdk-pixbuf-marshal.h +0 -33
- package/include/gdk-pixbuf-2.0/gdk-pixbuf/gdk-pixbuf-simple-anim.h +0 -70
- package/include/gdk-pixbuf-2.0/gdk-pixbuf/gdk-pixbuf-transform.h +0 -168
- package/include/gdk-pixbuf-2.0/gdk-pixbuf/gdk-pixbuf.h +0 -46
- package/include/gdk-pixbuf-2.0/gdk-pixbuf/gdk-pixdata.h +0 -165
- package/include/glib-2.0/glib/gwin32.h +0 -142
- package/include/harfbuzz/hb-subset-repacker.h +0 -81
- package/include/hwy/ops/tuple-inl.h +0 -125
- package/include/orc-0.4/orc/orc-stdint.h +0 -1
- package/include/orc-0.4/orc/orc.h +0 -16
- package/include/orc-0.4/orc/orcarm.h +0 -879
- package/include/orc-0.4/orc/orcbytecode.h +0 -35
- package/include/orc-0.4/orc/orcbytecodes.h +0 -255
- package/include/orc-0.4/orc/orccode.h +0 -53
- package/include/orc-0.4/orc/orccompiler.h +0 -176
- package/include/orc-0.4/orc/orcconstant.h +0 -39
- package/include/orc-0.4/orc/orccpu.h +0 -21
- package/include/orc-0.4/orc/orccpuinsn.h +0 -40
- package/include/orc-0.4/orc/orcdebug.h +0 -158
- package/include/orc-0.4/orc/orcemulateopcodes.h +0 -203
- package/include/orc-0.4/orc/orcexecutor.h +0 -135
- package/include/orc-0.4/orc/orcfunctions.h +0 -93
- package/include/orc-0.4/orc/orcinstruction.h +0 -39
- package/include/orc-0.4/orc/orcinternal.h +0 -46
- package/include/orc-0.4/orc/orclimits.h +0 -94
- package/include/orc-0.4/orc/orcmips.h +0 -229
- package/include/orc-0.4/orc/orcmmx.h +0 -79
- package/include/orc-0.4/orc/orcneon.h +0 -43
- package/include/orc-0.4/orc/orconce.h +0 -166
- package/include/orc-0.4/orc/orcopcode.h +0 -63
- package/include/orc-0.4/orc/orcparse.h +0 -27
- package/include/orc-0.4/orc/orcpowerpc.h +0 -209
- package/include/orc-0.4/orc/orcprogram.h +0 -192
- package/include/orc-0.4/orc/orcrule.h +0 -52
- package/include/orc-0.4/orc/orcsse.h +0 -55
- package/include/orc-0.4/orc/orctarget.h +0 -115
- package/include/orc-0.4/orc/orcutils.h +0 -238
- package/include/orc-0.4/orc/orcvariable.h +0 -81
- package/include/orc-0.4/orc/orcx86.h +0 -199
- package/include/orc-0.4/orc/orcx86insn.h +0 -672
|
@@ -1,158 +0,0 @@
|
|
|
1
|
-
/*
|
|
2
|
-
* ORC - Library of Optimized Inner Loops
|
|
3
|
-
* Copyright (c) 2003,2004 David A. Schleef <ds@schleef.org>
|
|
4
|
-
* All rights reserved.
|
|
5
|
-
*
|
|
6
|
-
* Redistribution and use in source and binary forms, with or without
|
|
7
|
-
* modification, are permitted provided that the following conditions
|
|
8
|
-
* are met:
|
|
9
|
-
* 1. Redistributions of source code must retain the above copyright
|
|
10
|
-
* notice, this list of conditions and the following disclaimer.
|
|
11
|
-
* 2. Redistributions in binary form must reproduce the above copyright
|
|
12
|
-
* notice, this list of conditions and the following disclaimer in the
|
|
13
|
-
* documentation and/or other materials provided with the distribution.
|
|
14
|
-
*
|
|
15
|
-
* THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
|
|
16
|
-
* IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
|
|
17
|
-
* WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
|
|
18
|
-
* ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT,
|
|
19
|
-
* INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
|
|
20
|
-
* (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
|
|
21
|
-
* SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
|
|
22
|
-
* HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT,
|
|
23
|
-
* STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING
|
|
24
|
-
* IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
|
|
25
|
-
* POSSIBILITY OF SUCH DAMAGE.
|
|
26
|
-
*/
|
|
27
|
-
|
|
28
|
-
#ifndef _ORC_DEBUG_H_
|
|
29
|
-
#define _ORC_DEBUG_H_
|
|
30
|
-
|
|
31
|
-
#include <stdarg.h>
|
|
32
|
-
#include <orc/orc.h>
|
|
33
|
-
#include <stdlib.h>
|
|
34
|
-
|
|
35
|
-
ORC_BEGIN_DECLS
|
|
36
|
-
|
|
37
|
-
/**
|
|
38
|
-
* OrcDebugPrintFunc:
|
|
39
|
-
* @level: the debug level
|
|
40
|
-
* @file: name of the file where the debug message occurs
|
|
41
|
-
* @func: name of the function where the debug message occurs
|
|
42
|
-
* @line: line in the file where the debug message occurs
|
|
43
|
-
* @format: a printf format
|
|
44
|
-
* @varargs: varargs for the printf format
|
|
45
|
-
*
|
|
46
|
-
* Typedef describing functions that can be registered using
|
|
47
|
-
* orc_debug_set_print_function() so that it is called to
|
|
48
|
-
* print debugging messages.
|
|
49
|
-
*/
|
|
50
|
-
typedef void (*OrcDebugPrintFunc) (int level, const char *file,
|
|
51
|
-
const char *func, int line, const char *format, va_list varargs);
|
|
52
|
-
|
|
53
|
-
/**
|
|
54
|
-
* OrcDebugLevel:
|
|
55
|
-
* @ORC_DEBUG_NONE: No debugging. Used to disable debugging output.
|
|
56
|
-
* @ORC_DEBUG_ERROR: The level for messages indicating that an error
|
|
57
|
-
* has occurred that causes Orc to produce incorrect results. Also
|
|
58
|
-
* used temporarily by developers for testing code.
|
|
59
|
-
* @ORC_DEBUG_WARNING: Messages at this level indicate something has
|
|
60
|
-
* occurred that a developer looking into an application problem may
|
|
61
|
-
* want to know.
|
|
62
|
-
* @ORC_DEBUG_INFO: Messages at this level provide high-level
|
|
63
|
-
* information about Orc internals.
|
|
64
|
-
* @ORC_DEBUG_DEBUG: The default level for logging messages.
|
|
65
|
-
* @ORC_DEBUG_LOG: The level for messages that probably don't need to
|
|
66
|
-
* be logged at all.
|
|
67
|
-
*
|
|
68
|
-
* Enumeration describing debug levels in Orc.
|
|
69
|
-
*/
|
|
70
|
-
typedef enum {
|
|
71
|
-
ORC_DEBUG_NONE = 0,
|
|
72
|
-
ORC_DEBUG_ERROR,
|
|
73
|
-
ORC_DEBUG_WARNING,
|
|
74
|
-
ORC_DEBUG_INFO,
|
|
75
|
-
ORC_DEBUG_DEBUG,
|
|
76
|
-
ORC_DEBUG_LOG
|
|
77
|
-
} OrcDebugLevel;
|
|
78
|
-
|
|
79
|
-
/**
|
|
80
|
-
* ORC_ERROR:
|
|
81
|
-
* @...: printf-style format and arguments
|
|
82
|
-
*
|
|
83
|
-
* Macro to call ORC_DEBUG_PRINT() with a level of #ORC_DEBUG_ERROR.
|
|
84
|
-
*/
|
|
85
|
-
#define ORC_ERROR(...) ORC_DEBUG_PRINT(ORC_DEBUG_ERROR, __VA_ARGS__)
|
|
86
|
-
/**
|
|
87
|
-
* ORC_WARNING:
|
|
88
|
-
* @...: printf-style format and arguments
|
|
89
|
-
*
|
|
90
|
-
* Macro to call ORC_DEBUG_PRINT() with a level of #ORC_DEBUG_WARNING.
|
|
91
|
-
*/
|
|
92
|
-
#define ORC_WARNING(...) ORC_DEBUG_PRINT(ORC_DEBUG_WARNING, __VA_ARGS__)
|
|
93
|
-
/**
|
|
94
|
-
* ORC_INFO:
|
|
95
|
-
* @...: printf-style format and arguments
|
|
96
|
-
*
|
|
97
|
-
* Macro to call ORC_DEBUG_PRINT() with a level of #ORC_DEBUG_INFO.
|
|
98
|
-
*/
|
|
99
|
-
#define ORC_INFO(...) ORC_DEBUG_PRINT(ORC_DEBUG_INFO, __VA_ARGS__)
|
|
100
|
-
/**
|
|
101
|
-
* ORC_DEBUG:
|
|
102
|
-
* @...: printf-style format and arguments
|
|
103
|
-
*
|
|
104
|
-
* Macro to call ORC_DEBUG_PRINT() with a level of #ORC_DEBUG_DEBUG.
|
|
105
|
-
*/
|
|
106
|
-
#define ORC_DEBUG(...) ORC_DEBUG_PRINT(ORC_DEBUG_DEBUG, __VA_ARGS__)
|
|
107
|
-
/**
|
|
108
|
-
* ORC_LOG:
|
|
109
|
-
* @...: printf-style format and arguments
|
|
110
|
-
*
|
|
111
|
-
* Macro to call ORC_DEBUG_PRINT() with a level of #ORC_DEBUG_LOG.
|
|
112
|
-
*/
|
|
113
|
-
#define ORC_LOG(...) ORC_DEBUG_PRINT(ORC_DEBUG_LOG, __VA_ARGS__)
|
|
114
|
-
|
|
115
|
-
/**
|
|
116
|
-
* ORC_FUNCTION:
|
|
117
|
-
*
|
|
118
|
-
* Internal macro that points to __PRETTY_FUNCTION__ or __func__
|
|
119
|
-
* if the former is not available.
|
|
120
|
-
*/
|
|
121
|
-
#if defined (__GNUC__) || defined (__PRETTY_FUNCTION__)
|
|
122
|
-
#define ORC_FUNCTION __PRETTY_FUNCTION__
|
|
123
|
-
#elif defined(__func__)
|
|
124
|
-
#define ORC_FUNCTION __func__
|
|
125
|
-
#else
|
|
126
|
-
#define ORC_FUNCTION ""
|
|
127
|
-
#endif
|
|
128
|
-
|
|
129
|
-
/**
|
|
130
|
-
* ORC_DEBUG_PRINT:
|
|
131
|
-
* @level: debug level of message
|
|
132
|
-
* @Varargs: printf-style format and arguments
|
|
133
|
-
*
|
|
134
|
-
* Macro to call orc_debug_print() with the correct values for
|
|
135
|
-
* the name of the source file, line of source file, and function.
|
|
136
|
-
*/
|
|
137
|
-
#define ORC_DEBUG_PRINT(level, ...) do { \
|
|
138
|
-
orc_debug_print((level), __FILE__, ORC_FUNCTION, __LINE__, __VA_ARGS__); \
|
|
139
|
-
}while(0)
|
|
140
|
-
|
|
141
|
-
#define ORC_ASSERT(test) do { \
|
|
142
|
-
if (!(test)) { \
|
|
143
|
-
ORC_ERROR("assertion failed: " #test ); \
|
|
144
|
-
abort(); \
|
|
145
|
-
} \
|
|
146
|
-
} while(0)
|
|
147
|
-
|
|
148
|
-
ORC_API void orc_debug_set_print_function (OrcDebugPrintFunc func);
|
|
149
|
-
ORC_API int orc_debug_get_level (void);
|
|
150
|
-
ORC_API void orc_debug_set_level (int level);
|
|
151
|
-
|
|
152
|
-
ORC_API void orc_debug_print (int level, const char *file, const char *func,
|
|
153
|
-
int line, const char *format, ...);
|
|
154
|
-
|
|
155
|
-
ORC_END_DECLS
|
|
156
|
-
|
|
157
|
-
#endif
|
|
158
|
-
|
|
@@ -1,203 +0,0 @@
|
|
|
1
|
-
|
|
2
|
-
/* autogenerated by generate-emulation */
|
|
3
|
-
|
|
4
|
-
#ifndef _ORC_EMULATE_OPCODES_H_
|
|
5
|
-
#define _ORC_EMULATE_OPCODES_H_
|
|
6
|
-
|
|
7
|
-
void emulate_absb (OrcOpcodeExecutor *ex, int i, int n);
|
|
8
|
-
void emulate_addb (OrcOpcodeExecutor *ex, int i, int n);
|
|
9
|
-
void emulate_addssb (OrcOpcodeExecutor *ex, int i, int n);
|
|
10
|
-
void emulate_addusb (OrcOpcodeExecutor *ex, int i, int n);
|
|
11
|
-
void emulate_andb (OrcOpcodeExecutor *ex, int i, int n);
|
|
12
|
-
void emulate_andnb (OrcOpcodeExecutor *ex, int i, int n);
|
|
13
|
-
void emulate_avgsb (OrcOpcodeExecutor *ex, int i, int n);
|
|
14
|
-
void emulate_avgub (OrcOpcodeExecutor *ex, int i, int n);
|
|
15
|
-
void emulate_cmpeqb (OrcOpcodeExecutor *ex, int i, int n);
|
|
16
|
-
void emulate_cmpgtsb (OrcOpcodeExecutor *ex, int i, int n);
|
|
17
|
-
void emulate_copyb (OrcOpcodeExecutor *ex, int i, int n);
|
|
18
|
-
void emulate_loadb (OrcOpcodeExecutor *ex, int i, int n);
|
|
19
|
-
void emulate_loadoffb (OrcOpcodeExecutor *ex, int i, int n);
|
|
20
|
-
void emulate_loadupdb (OrcOpcodeExecutor *ex, int i, int n);
|
|
21
|
-
void emulate_loadupib (OrcOpcodeExecutor *ex, int i, int n);
|
|
22
|
-
void emulate_loadpb (OrcOpcodeExecutor *ex, int i, int n);
|
|
23
|
-
void emulate_ldresnearb (OrcOpcodeExecutor *ex, int i, int n);
|
|
24
|
-
void emulate_ldresnearl (OrcOpcodeExecutor *ex, int i, int n);
|
|
25
|
-
void emulate_ldreslinb (OrcOpcodeExecutor *ex, int i, int n);
|
|
26
|
-
void emulate_ldreslinl (OrcOpcodeExecutor *ex, int i, int n);
|
|
27
|
-
void emulate_maxsb (OrcOpcodeExecutor *ex, int i, int n);
|
|
28
|
-
void emulate_maxub (OrcOpcodeExecutor *ex, int i, int n);
|
|
29
|
-
void emulate_minsb (OrcOpcodeExecutor *ex, int i, int n);
|
|
30
|
-
void emulate_minub (OrcOpcodeExecutor *ex, int i, int n);
|
|
31
|
-
void emulate_mullb (OrcOpcodeExecutor *ex, int i, int n);
|
|
32
|
-
void emulate_mulhsb (OrcOpcodeExecutor *ex, int i, int n);
|
|
33
|
-
void emulate_mulhub (OrcOpcodeExecutor *ex, int i, int n);
|
|
34
|
-
void emulate_orb (OrcOpcodeExecutor *ex, int i, int n);
|
|
35
|
-
void emulate_shlb (OrcOpcodeExecutor *ex, int i, int n);
|
|
36
|
-
void emulate_shrsb (OrcOpcodeExecutor *ex, int i, int n);
|
|
37
|
-
void emulate_shrub (OrcOpcodeExecutor *ex, int i, int n);
|
|
38
|
-
void emulate_signb (OrcOpcodeExecutor *ex, int i, int n);
|
|
39
|
-
void emulate_storeb (OrcOpcodeExecutor *ex, int i, int n);
|
|
40
|
-
void emulate_subb (OrcOpcodeExecutor *ex, int i, int n);
|
|
41
|
-
void emulate_subssb (OrcOpcodeExecutor *ex, int i, int n);
|
|
42
|
-
void emulate_subusb (OrcOpcodeExecutor *ex, int i, int n);
|
|
43
|
-
void emulate_xorb (OrcOpcodeExecutor *ex, int i, int n);
|
|
44
|
-
void emulate_absw (OrcOpcodeExecutor *ex, int i, int n);
|
|
45
|
-
void emulate_addw (OrcOpcodeExecutor *ex, int i, int n);
|
|
46
|
-
void emulate_addssw (OrcOpcodeExecutor *ex, int i, int n);
|
|
47
|
-
void emulate_addusw (OrcOpcodeExecutor *ex, int i, int n);
|
|
48
|
-
void emulate_andw (OrcOpcodeExecutor *ex, int i, int n);
|
|
49
|
-
void emulate_andnw (OrcOpcodeExecutor *ex, int i, int n);
|
|
50
|
-
void emulate_avgsw (OrcOpcodeExecutor *ex, int i, int n);
|
|
51
|
-
void emulate_avguw (OrcOpcodeExecutor *ex, int i, int n);
|
|
52
|
-
void emulate_cmpeqw (OrcOpcodeExecutor *ex, int i, int n);
|
|
53
|
-
void emulate_cmpgtsw (OrcOpcodeExecutor *ex, int i, int n);
|
|
54
|
-
void emulate_copyw (OrcOpcodeExecutor *ex, int i, int n);
|
|
55
|
-
void emulate_div255w (OrcOpcodeExecutor *ex, int i, int n);
|
|
56
|
-
void emulate_divluw (OrcOpcodeExecutor *ex, int i, int n);
|
|
57
|
-
void emulate_loadw (OrcOpcodeExecutor *ex, int i, int n);
|
|
58
|
-
void emulate_loadoffw (OrcOpcodeExecutor *ex, int i, int n);
|
|
59
|
-
void emulate_loadpw (OrcOpcodeExecutor *ex, int i, int n);
|
|
60
|
-
void emulate_maxsw (OrcOpcodeExecutor *ex, int i, int n);
|
|
61
|
-
void emulate_maxuw (OrcOpcodeExecutor *ex, int i, int n);
|
|
62
|
-
void emulate_minsw (OrcOpcodeExecutor *ex, int i, int n);
|
|
63
|
-
void emulate_minuw (OrcOpcodeExecutor *ex, int i, int n);
|
|
64
|
-
void emulate_mullw (OrcOpcodeExecutor *ex, int i, int n);
|
|
65
|
-
void emulate_mulhsw (OrcOpcodeExecutor *ex, int i, int n);
|
|
66
|
-
void emulate_mulhuw (OrcOpcodeExecutor *ex, int i, int n);
|
|
67
|
-
void emulate_orw (OrcOpcodeExecutor *ex, int i, int n);
|
|
68
|
-
void emulate_shlw (OrcOpcodeExecutor *ex, int i, int n);
|
|
69
|
-
void emulate_shrsw (OrcOpcodeExecutor *ex, int i, int n);
|
|
70
|
-
void emulate_shruw (OrcOpcodeExecutor *ex, int i, int n);
|
|
71
|
-
void emulate_signw (OrcOpcodeExecutor *ex, int i, int n);
|
|
72
|
-
void emulate_storew (OrcOpcodeExecutor *ex, int i, int n);
|
|
73
|
-
void emulate_subw (OrcOpcodeExecutor *ex, int i, int n);
|
|
74
|
-
void emulate_subssw (OrcOpcodeExecutor *ex, int i, int n);
|
|
75
|
-
void emulate_subusw (OrcOpcodeExecutor *ex, int i, int n);
|
|
76
|
-
void emulate_xorw (OrcOpcodeExecutor *ex, int i, int n);
|
|
77
|
-
void emulate_absl (OrcOpcodeExecutor *ex, int i, int n);
|
|
78
|
-
void emulate_addl (OrcOpcodeExecutor *ex, int i, int n);
|
|
79
|
-
void emulate_addssl (OrcOpcodeExecutor *ex, int i, int n);
|
|
80
|
-
void emulate_addusl (OrcOpcodeExecutor *ex, int i, int n);
|
|
81
|
-
void emulate_andl (OrcOpcodeExecutor *ex, int i, int n);
|
|
82
|
-
void emulate_andnl (OrcOpcodeExecutor *ex, int i, int n);
|
|
83
|
-
void emulate_avgsl (OrcOpcodeExecutor *ex, int i, int n);
|
|
84
|
-
void emulate_avgul (OrcOpcodeExecutor *ex, int i, int n);
|
|
85
|
-
void emulate_cmpeql (OrcOpcodeExecutor *ex, int i, int n);
|
|
86
|
-
void emulate_cmpgtsl (OrcOpcodeExecutor *ex, int i, int n);
|
|
87
|
-
void emulate_copyl (OrcOpcodeExecutor *ex, int i, int n);
|
|
88
|
-
void emulate_loadl (OrcOpcodeExecutor *ex, int i, int n);
|
|
89
|
-
void emulate_loadoffl (OrcOpcodeExecutor *ex, int i, int n);
|
|
90
|
-
void emulate_loadpl (OrcOpcodeExecutor *ex, int i, int n);
|
|
91
|
-
void emulate_maxsl (OrcOpcodeExecutor *ex, int i, int n);
|
|
92
|
-
void emulate_maxul (OrcOpcodeExecutor *ex, int i, int n);
|
|
93
|
-
void emulate_minsl (OrcOpcodeExecutor *ex, int i, int n);
|
|
94
|
-
void emulate_minul (OrcOpcodeExecutor *ex, int i, int n);
|
|
95
|
-
void emulate_mulll (OrcOpcodeExecutor *ex, int i, int n);
|
|
96
|
-
void emulate_mulhsl (OrcOpcodeExecutor *ex, int i, int n);
|
|
97
|
-
void emulate_mulhul (OrcOpcodeExecutor *ex, int i, int n);
|
|
98
|
-
void emulate_orl (OrcOpcodeExecutor *ex, int i, int n);
|
|
99
|
-
void emulate_shll (OrcOpcodeExecutor *ex, int i, int n);
|
|
100
|
-
void emulate_shrsl (OrcOpcodeExecutor *ex, int i, int n);
|
|
101
|
-
void emulate_shrul (OrcOpcodeExecutor *ex, int i, int n);
|
|
102
|
-
void emulate_signl (OrcOpcodeExecutor *ex, int i, int n);
|
|
103
|
-
void emulate_storel (OrcOpcodeExecutor *ex, int i, int n);
|
|
104
|
-
void emulate_subl (OrcOpcodeExecutor *ex, int i, int n);
|
|
105
|
-
void emulate_subssl (OrcOpcodeExecutor *ex, int i, int n);
|
|
106
|
-
void emulate_subusl (OrcOpcodeExecutor *ex, int i, int n);
|
|
107
|
-
void emulate_xorl (OrcOpcodeExecutor *ex, int i, int n);
|
|
108
|
-
void emulate_loadq (OrcOpcodeExecutor *ex, int i, int n);
|
|
109
|
-
void emulate_loadpq (OrcOpcodeExecutor *ex, int i, int n);
|
|
110
|
-
void emulate_storeq (OrcOpcodeExecutor *ex, int i, int n);
|
|
111
|
-
void emulate_splatw3q (OrcOpcodeExecutor *ex, int i, int n);
|
|
112
|
-
void emulate_copyq (OrcOpcodeExecutor *ex, int i, int n);
|
|
113
|
-
void emulate_cmpeqq (OrcOpcodeExecutor *ex, int i, int n);
|
|
114
|
-
void emulate_cmpgtsq (OrcOpcodeExecutor *ex, int i, int n);
|
|
115
|
-
void emulate_andq (OrcOpcodeExecutor *ex, int i, int n);
|
|
116
|
-
void emulate_andnq (OrcOpcodeExecutor *ex, int i, int n);
|
|
117
|
-
void emulate_orq (OrcOpcodeExecutor *ex, int i, int n);
|
|
118
|
-
void emulate_xorq (OrcOpcodeExecutor *ex, int i, int n);
|
|
119
|
-
void emulate_addq (OrcOpcodeExecutor *ex, int i, int n);
|
|
120
|
-
void emulate_subq (OrcOpcodeExecutor *ex, int i, int n);
|
|
121
|
-
void emulate_shlq (OrcOpcodeExecutor *ex, int i, int n);
|
|
122
|
-
void emulate_shrsq (OrcOpcodeExecutor *ex, int i, int n);
|
|
123
|
-
void emulate_shruq (OrcOpcodeExecutor *ex, int i, int n);
|
|
124
|
-
void emulate_convsbw (OrcOpcodeExecutor *ex, int i, int n);
|
|
125
|
-
void emulate_convubw (OrcOpcodeExecutor *ex, int i, int n);
|
|
126
|
-
void emulate_splatbw (OrcOpcodeExecutor *ex, int i, int n);
|
|
127
|
-
void emulate_splatbl (OrcOpcodeExecutor *ex, int i, int n);
|
|
128
|
-
void emulate_convswl (OrcOpcodeExecutor *ex, int i, int n);
|
|
129
|
-
void emulate_convuwl (OrcOpcodeExecutor *ex, int i, int n);
|
|
130
|
-
void emulate_convslq (OrcOpcodeExecutor *ex, int i, int n);
|
|
131
|
-
void emulate_convulq (OrcOpcodeExecutor *ex, int i, int n);
|
|
132
|
-
void emulate_convwb (OrcOpcodeExecutor *ex, int i, int n);
|
|
133
|
-
void emulate_convhwb (OrcOpcodeExecutor *ex, int i, int n);
|
|
134
|
-
void emulate_convssswb (OrcOpcodeExecutor *ex, int i, int n);
|
|
135
|
-
void emulate_convsuswb (OrcOpcodeExecutor *ex, int i, int n);
|
|
136
|
-
void emulate_convusswb (OrcOpcodeExecutor *ex, int i, int n);
|
|
137
|
-
void emulate_convuuswb (OrcOpcodeExecutor *ex, int i, int n);
|
|
138
|
-
void emulate_convlw (OrcOpcodeExecutor *ex, int i, int n);
|
|
139
|
-
void emulate_convhlw (OrcOpcodeExecutor *ex, int i, int n);
|
|
140
|
-
void emulate_convssslw (OrcOpcodeExecutor *ex, int i, int n);
|
|
141
|
-
void emulate_convsuslw (OrcOpcodeExecutor *ex, int i, int n);
|
|
142
|
-
void emulate_convusslw (OrcOpcodeExecutor *ex, int i, int n);
|
|
143
|
-
void emulate_convuuslw (OrcOpcodeExecutor *ex, int i, int n);
|
|
144
|
-
void emulate_convql (OrcOpcodeExecutor *ex, int i, int n);
|
|
145
|
-
void emulate_convsssql (OrcOpcodeExecutor *ex, int i, int n);
|
|
146
|
-
void emulate_convsusql (OrcOpcodeExecutor *ex, int i, int n);
|
|
147
|
-
void emulate_convussql (OrcOpcodeExecutor *ex, int i, int n);
|
|
148
|
-
void emulate_convuusql (OrcOpcodeExecutor *ex, int i, int n);
|
|
149
|
-
void emulate_mulsbw (OrcOpcodeExecutor *ex, int i, int n);
|
|
150
|
-
void emulate_mulubw (OrcOpcodeExecutor *ex, int i, int n);
|
|
151
|
-
void emulate_mulswl (OrcOpcodeExecutor *ex, int i, int n);
|
|
152
|
-
void emulate_muluwl (OrcOpcodeExecutor *ex, int i, int n);
|
|
153
|
-
void emulate_mulslq (OrcOpcodeExecutor *ex, int i, int n);
|
|
154
|
-
void emulate_mululq (OrcOpcodeExecutor *ex, int i, int n);
|
|
155
|
-
void emulate_accw (OrcOpcodeExecutor *ex, int i, int n);
|
|
156
|
-
void emulate_accl (OrcOpcodeExecutor *ex, int i, int n);
|
|
157
|
-
void emulate_accsadubl (OrcOpcodeExecutor *ex, int i, int n);
|
|
158
|
-
void emulate_swapw (OrcOpcodeExecutor *ex, int i, int n);
|
|
159
|
-
void emulate_swapl (OrcOpcodeExecutor *ex, int i, int n);
|
|
160
|
-
void emulate_swapwl (OrcOpcodeExecutor *ex, int i, int n);
|
|
161
|
-
void emulate_swapq (OrcOpcodeExecutor *ex, int i, int n);
|
|
162
|
-
void emulate_swaplq (OrcOpcodeExecutor *ex, int i, int n);
|
|
163
|
-
void emulate_select0wb (OrcOpcodeExecutor *ex, int i, int n);
|
|
164
|
-
void emulate_select1wb (OrcOpcodeExecutor *ex, int i, int n);
|
|
165
|
-
void emulate_select0lw (OrcOpcodeExecutor *ex, int i, int n);
|
|
166
|
-
void emulate_select1lw (OrcOpcodeExecutor *ex, int i, int n);
|
|
167
|
-
void emulate_select0ql (OrcOpcodeExecutor *ex, int i, int n);
|
|
168
|
-
void emulate_select1ql (OrcOpcodeExecutor *ex, int i, int n);
|
|
169
|
-
void emulate_mergelq (OrcOpcodeExecutor *ex, int i, int n);
|
|
170
|
-
void emulate_mergewl (OrcOpcodeExecutor *ex, int i, int n);
|
|
171
|
-
void emulate_mergebw (OrcOpcodeExecutor *ex, int i, int n);
|
|
172
|
-
void emulate_splitql (OrcOpcodeExecutor *ex, int i, int n);
|
|
173
|
-
void emulate_splitlw (OrcOpcodeExecutor *ex, int i, int n);
|
|
174
|
-
void emulate_splitwb (OrcOpcodeExecutor *ex, int i, int n);
|
|
175
|
-
void emulate_addf (OrcOpcodeExecutor *ex, int i, int n);
|
|
176
|
-
void emulate_subf (OrcOpcodeExecutor *ex, int i, int n);
|
|
177
|
-
void emulate_mulf (OrcOpcodeExecutor *ex, int i, int n);
|
|
178
|
-
void emulate_divf (OrcOpcodeExecutor *ex, int i, int n);
|
|
179
|
-
void emulate_sqrtf (OrcOpcodeExecutor *ex, int i, int n);
|
|
180
|
-
void emulate_maxf (OrcOpcodeExecutor *ex, int i, int n);
|
|
181
|
-
void emulate_minf (OrcOpcodeExecutor *ex, int i, int n);
|
|
182
|
-
void emulate_cmpeqf (OrcOpcodeExecutor *ex, int i, int n);
|
|
183
|
-
void emulate_cmpltf (OrcOpcodeExecutor *ex, int i, int n);
|
|
184
|
-
void emulate_cmplef (OrcOpcodeExecutor *ex, int i, int n);
|
|
185
|
-
void emulate_convfl (OrcOpcodeExecutor *ex, int i, int n);
|
|
186
|
-
void emulate_convlf (OrcOpcodeExecutor *ex, int i, int n);
|
|
187
|
-
void emulate_addd (OrcOpcodeExecutor *ex, int i, int n);
|
|
188
|
-
void emulate_subd (OrcOpcodeExecutor *ex, int i, int n);
|
|
189
|
-
void emulate_muld (OrcOpcodeExecutor *ex, int i, int n);
|
|
190
|
-
void emulate_divd (OrcOpcodeExecutor *ex, int i, int n);
|
|
191
|
-
void emulate_sqrtd (OrcOpcodeExecutor *ex, int i, int n);
|
|
192
|
-
void emulate_maxd (OrcOpcodeExecutor *ex, int i, int n);
|
|
193
|
-
void emulate_mind (OrcOpcodeExecutor *ex, int i, int n);
|
|
194
|
-
void emulate_cmpeqd (OrcOpcodeExecutor *ex, int i, int n);
|
|
195
|
-
void emulate_cmpltd (OrcOpcodeExecutor *ex, int i, int n);
|
|
196
|
-
void emulate_cmpled (OrcOpcodeExecutor *ex, int i, int n);
|
|
197
|
-
void emulate_convdl (OrcOpcodeExecutor *ex, int i, int n);
|
|
198
|
-
void emulate_convld (OrcOpcodeExecutor *ex, int i, int n);
|
|
199
|
-
void emulate_convfd (OrcOpcodeExecutor *ex, int i, int n);
|
|
200
|
-
void emulate_convdf (OrcOpcodeExecutor *ex, int i, int n);
|
|
201
|
-
|
|
202
|
-
#endif
|
|
203
|
-
|
|
@@ -1,135 +0,0 @@
|
|
|
1
|
-
|
|
2
|
-
#ifndef _ORC_EXECUTOR_H_
|
|
3
|
-
#define _ORC_EXECUTOR_H_
|
|
4
|
-
|
|
5
|
-
#include <orc/orc.h>
|
|
6
|
-
#include <orc/orclimits.h>
|
|
7
|
-
|
|
8
|
-
ORC_BEGIN_DECLS
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
typedef struct _OrcOpcodeExecutor OrcOpcodeExecutor;
|
|
13
|
-
typedef struct _OrcExecutor OrcExecutor;
|
|
14
|
-
typedef struct _OrcExecutorAlt OrcExecutorAlt;
|
|
15
|
-
|
|
16
|
-
typedef void (*OrcOpcodeEmulateFunc)(OrcOpcodeExecutor *ex, void *user);
|
|
17
|
-
typedef void (*OrcOpcodeEmulateNFunc)(OrcOpcodeExecutor *ex, int index, int n);
|
|
18
|
-
typedef void (*OrcOpcodeEmulate16Func)(OrcOpcodeExecutor *ex);
|
|
19
|
-
typedef void (*OrcExecutorFunc)(OrcExecutor *ex);
|
|
20
|
-
|
|
21
|
-
/**
|
|
22
|
-
* OrcOpcodeExecutor:
|
|
23
|
-
*
|
|
24
|
-
* The OrcOpcodeExecutor structure has no public members
|
|
25
|
-
*/
|
|
26
|
-
struct _OrcOpcodeExecutor {
|
|
27
|
-
/*< private >*/
|
|
28
|
-
int src_values[ORC_STATIC_OPCODE_N_SRC];
|
|
29
|
-
int dest_values[ORC_STATIC_OPCODE_N_DEST];
|
|
30
|
-
|
|
31
|
-
OrcOpcodeEmulateNFunc emulateN;
|
|
32
|
-
|
|
33
|
-
void *src_ptrs[ORC_STATIC_OPCODE_N_SRC];
|
|
34
|
-
void *dest_ptrs[ORC_STATIC_OPCODE_N_DEST];
|
|
35
|
-
int shift;
|
|
36
|
-
};
|
|
37
|
-
|
|
38
|
-
/**
|
|
39
|
-
* OrcExecutor:
|
|
40
|
-
*
|
|
41
|
-
*/
|
|
42
|
-
struct _OrcExecutor {
|
|
43
|
-
/*< private >*/
|
|
44
|
-
OrcProgram *program;
|
|
45
|
-
int n;
|
|
46
|
-
int counter1;
|
|
47
|
-
int counter2;
|
|
48
|
-
int counter3;
|
|
49
|
-
|
|
50
|
-
void *arrays[ORC_N_VARIABLES];
|
|
51
|
-
int params[ORC_N_VARIABLES];
|
|
52
|
-
int accumulators[4];
|
|
53
|
-
/* exec pointer is stored in arrays[ORC_VAR_A1] */
|
|
54
|
-
/* OrcCode pointer is stored in arrays[ORC_VAR_A2] */
|
|
55
|
-
/* row pointers are stored in arrays[i+ORC_VAR_C1] */
|
|
56
|
-
/* the stride for arrays[x] is stored in params[x] */
|
|
57
|
-
/* m is stored in params[ORC_VAR_A1] */
|
|
58
|
-
/* m_index is stored in params[ORC_VAR_A2] */
|
|
59
|
-
/* elapsed time is stored in params[ORC_VAR_A3] */
|
|
60
|
-
/* high half of params is stored in params[ORC_VAR_T1..] */
|
|
61
|
-
};
|
|
62
|
-
|
|
63
|
-
/* the alternate view of OrcExecutor */
|
|
64
|
-
struct _OrcExecutorAlt {
|
|
65
|
-
/*< private >*/
|
|
66
|
-
OrcProgram *program;
|
|
67
|
-
int n;
|
|
68
|
-
int counter1;
|
|
69
|
-
int counter2;
|
|
70
|
-
int counter3;
|
|
71
|
-
|
|
72
|
-
void *arrays[ORC_N_ARRAYS];
|
|
73
|
-
OrcExecutorFunc exec;
|
|
74
|
-
OrcCode *code;
|
|
75
|
-
void *unused1[ORC_N_VARIABLES - ORC_N_ARRAYS - 2];
|
|
76
|
-
int strides[ORC_N_ARRAYS];
|
|
77
|
-
int m;
|
|
78
|
-
int m_index;
|
|
79
|
-
int time;
|
|
80
|
-
int unused2;
|
|
81
|
-
int unused4[8];
|
|
82
|
-
int params[ORC_VAR_T1-ORC_VAR_P1];
|
|
83
|
-
int params_hi[ORC_VAR_T1-ORC_VAR_P1];
|
|
84
|
-
int unused3[ORC_N_VARIABLES - ORC_VAR_T9];
|
|
85
|
-
int accumulators[4];
|
|
86
|
-
};
|
|
87
|
-
#define ORC_EXECUTOR_EXEC(ex) ((OrcExecutorFunc)((ex)->arrays[ORC_VAR_A1]))
|
|
88
|
-
#define ORC_EXECUTOR_M(ex) ((ex)->params[ORC_VAR_A1])
|
|
89
|
-
#define ORC_EXECUTOR_M_INDEX(ex) ((ex)->params[ORC_VAR_A2])
|
|
90
|
-
#define ORC_EXECUTOR_TIME(ex) ((ex)->params[ORC_VAR_A3])
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
ORC_API OrcExecutor * orc_executor_new (OrcProgram *program);
|
|
96
|
-
|
|
97
|
-
ORC_API void orc_executor_free (OrcExecutor *ex);
|
|
98
|
-
|
|
99
|
-
ORC_API void orc_executor_set_program (OrcExecutor *ex, OrcProgram *program);
|
|
100
|
-
|
|
101
|
-
ORC_API void orc_executor_set_array (OrcExecutor *ex, int var, void *ptr);
|
|
102
|
-
|
|
103
|
-
ORC_API void orc_executor_set_stride (OrcExecutor *ex, int var, int stride);
|
|
104
|
-
|
|
105
|
-
ORC_API void orc_executor_set_array_str (OrcExecutor *ex, const char *name, void *ptr);
|
|
106
|
-
|
|
107
|
-
ORC_API void orc_executor_set_param (OrcExecutor *ex, int var, int value);
|
|
108
|
-
|
|
109
|
-
ORC_API void orc_executor_set_param_str (OrcExecutor *ex, const char *name, int value);
|
|
110
|
-
|
|
111
|
-
ORC_API void orc_executor_set_param_float (OrcExecutor *ex, int var, float value);
|
|
112
|
-
|
|
113
|
-
ORC_API void orc_executor_set_param_int64 (OrcExecutor *ex, int var, orc_int64 value);
|
|
114
|
-
|
|
115
|
-
ORC_API void orc_executor_set_param_double (OrcExecutor *ex, int var, double value);
|
|
116
|
-
|
|
117
|
-
ORC_API int orc_executor_get_accumulator (OrcExecutor *ex, int var);
|
|
118
|
-
|
|
119
|
-
ORC_API int orc_executor_get_accumulator_str (OrcExecutor *ex, const char *name);
|
|
120
|
-
|
|
121
|
-
ORC_API void orc_executor_set_n (OrcExecutor *ex, int n);
|
|
122
|
-
|
|
123
|
-
ORC_API void orc_executor_set_m (OrcExecutor *ex, int m);
|
|
124
|
-
|
|
125
|
-
ORC_API void orc_executor_emulate (OrcExecutor *ex);
|
|
126
|
-
|
|
127
|
-
ORC_API void orc_executor_run (OrcExecutor *ex);
|
|
128
|
-
|
|
129
|
-
ORC_API void orc_executor_run_backup (OrcExecutor *ex);
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
ORC_END_DECLS
|
|
133
|
-
|
|
134
|
-
#endif
|
|
135
|
-
|
|
@@ -1,93 +0,0 @@
|
|
|
1
|
-
|
|
2
|
-
/* autogenerated from orcfunctions.orc */
|
|
3
|
-
|
|
4
|
-
#ifndef _ORCFUNCTIONS_H_
|
|
5
|
-
#define _ORCFUNCTIONS_H_
|
|
6
|
-
|
|
7
|
-
#include <orc/orcutils.h>
|
|
8
|
-
|
|
9
|
-
#ifdef __cplusplus
|
|
10
|
-
extern "C" {
|
|
11
|
-
#endif
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
#ifndef _ORC_INTEGER_TYPEDEFS_
|
|
16
|
-
#define _ORC_INTEGER_TYPEDEFS_
|
|
17
|
-
#if defined(__STDC_VERSION__) && __STDC_VERSION__ >= 199901L
|
|
18
|
-
#include <stdint.h>
|
|
19
|
-
typedef int8_t orc_int8;
|
|
20
|
-
typedef int16_t orc_int16;
|
|
21
|
-
typedef int32_t orc_int32;
|
|
22
|
-
typedef int64_t orc_int64;
|
|
23
|
-
typedef uint8_t orc_uint8;
|
|
24
|
-
typedef uint16_t orc_uint16;
|
|
25
|
-
typedef uint32_t orc_uint32;
|
|
26
|
-
typedef uint64_t orc_uint64;
|
|
27
|
-
#define ORC_UINT64_C(x) UINT64_C(x)
|
|
28
|
-
#elif defined(_MSC_VER)
|
|
29
|
-
typedef signed __int8 orc_int8;
|
|
30
|
-
typedef signed __int16 orc_int16;
|
|
31
|
-
typedef signed __int32 orc_int32;
|
|
32
|
-
typedef signed __int64 orc_int64;
|
|
33
|
-
typedef unsigned __int8 orc_uint8;
|
|
34
|
-
typedef unsigned __int16 orc_uint16;
|
|
35
|
-
typedef unsigned __int32 orc_uint32;
|
|
36
|
-
typedef unsigned __int64 orc_uint64;
|
|
37
|
-
#define ORC_UINT64_C(x) (x##Ui64)
|
|
38
|
-
#define inline __inline
|
|
39
|
-
#else
|
|
40
|
-
#include <limits.h>
|
|
41
|
-
typedef signed char orc_int8;
|
|
42
|
-
typedef short orc_int16;
|
|
43
|
-
typedef int orc_int32;
|
|
44
|
-
typedef unsigned char orc_uint8;
|
|
45
|
-
typedef unsigned short orc_uint16;
|
|
46
|
-
typedef unsigned int orc_uint32;
|
|
47
|
-
#if INT_MAX == LONG_MAX
|
|
48
|
-
typedef long long orc_int64;
|
|
49
|
-
typedef unsigned long long orc_uint64;
|
|
50
|
-
#define ORC_UINT64_C(x) (x##ULL)
|
|
51
|
-
#else
|
|
52
|
-
typedef long orc_int64;
|
|
53
|
-
typedef unsigned long orc_uint64;
|
|
54
|
-
#define ORC_UINT64_C(x) (x##UL)
|
|
55
|
-
#endif
|
|
56
|
-
#endif
|
|
57
|
-
typedef union { orc_int16 i; orc_int8 x2[2]; } orc_union16;
|
|
58
|
-
typedef union { orc_int32 i; float f; orc_int16 x2[2]; orc_int8 x4[4]; } orc_union32;
|
|
59
|
-
typedef union { orc_int64 i; double f; orc_int32 x2[2]; float x2f[2]; orc_int16 x4[4]; } orc_union64;
|
|
60
|
-
#endif
|
|
61
|
-
#ifndef ORC_RESTRICT
|
|
62
|
-
#if defined(__STDC_VERSION__) && __STDC_VERSION__ >= 199901L
|
|
63
|
-
#define ORC_RESTRICT restrict
|
|
64
|
-
#elif defined(__GNUC__) && __GNUC__ >= 4
|
|
65
|
-
#define ORC_RESTRICT __restrict__
|
|
66
|
-
#elif defined(_MSC_VER)
|
|
67
|
-
#define ORC_RESTRICT __restrict
|
|
68
|
-
#else
|
|
69
|
-
#define ORC_RESTRICT
|
|
70
|
-
#endif
|
|
71
|
-
#endif
|
|
72
|
-
|
|
73
|
-
#ifndef ORC_INTERNAL
|
|
74
|
-
#if defined(__SUNPRO_C) && (__SUNPRO_C >= 0x590)
|
|
75
|
-
#define ORC_INTERNAL __attribute__((visibility("hidden")))
|
|
76
|
-
#elif defined(__SUNPRO_C) && (__SUNPRO_C >= 0x550)
|
|
77
|
-
#define ORC_INTERNAL __hidden
|
|
78
|
-
#elif defined (__GNUC__)
|
|
79
|
-
#define ORC_INTERNAL __attribute__((visibility("hidden")))
|
|
80
|
-
#else
|
|
81
|
-
#define ORC_INTERNAL
|
|
82
|
-
#endif
|
|
83
|
-
#endif
|
|
84
|
-
|
|
85
|
-
ORC_API void orc_memcpy (void * ORC_RESTRICT d1, const void * ORC_RESTRICT s1, int n);
|
|
86
|
-
ORC_API void orc_memset (void * ORC_RESTRICT d1, int p1, int n);
|
|
87
|
-
|
|
88
|
-
#ifdef __cplusplus
|
|
89
|
-
}
|
|
90
|
-
#endif
|
|
91
|
-
|
|
92
|
-
#endif
|
|
93
|
-
|
|
@@ -1,39 +0,0 @@
|
|
|
1
|
-
|
|
2
|
-
#ifndef _ORC_INSTRUCTION_H_
|
|
3
|
-
#define _ORC_INSTRUCTION_H_
|
|
4
|
-
|
|
5
|
-
#include <orc/orcutils.h>
|
|
6
|
-
#include <orc/orclimits.h>
|
|
7
|
-
#include <orc/orcopcode.h>
|
|
8
|
-
#include <orc/orcrule.h>
|
|
9
|
-
|
|
10
|
-
ORC_BEGIN_DECLS
|
|
11
|
-
|
|
12
|
-
/**
|
|
13
|
-
* OrcInstruction:
|
|
14
|
-
*
|
|
15
|
-
* The OrcInstruction structure has no public members
|
|
16
|
-
*/
|
|
17
|
-
struct _OrcInstruction {
|
|
18
|
-
/*< private >*/
|
|
19
|
-
OrcStaticOpcode *opcode;
|
|
20
|
-
int dest_args[ORC_STATIC_OPCODE_N_DEST];
|
|
21
|
-
int src_args[ORC_STATIC_OPCODE_N_SRC];
|
|
22
|
-
|
|
23
|
-
OrcRule *rule;
|
|
24
|
-
unsigned int flags;
|
|
25
|
-
/* Source line number this instruction came from */
|
|
26
|
-
int line;
|
|
27
|
-
};
|
|
28
|
-
|
|
29
|
-
#define ORC_INSTRUCTION_FLAG_X2 (1<<0)
|
|
30
|
-
#define ORC_INSTRUCTION_FLAG_X4 (1<<1)
|
|
31
|
-
|
|
32
|
-
#define ORC_INSN_FLAG_INVARIANT (1<<2)
|
|
33
|
-
#define ORC_INSN_FLAG_ADDED (1<<3)
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
ORC_END_DECLS
|
|
37
|
-
|
|
38
|
-
#endif
|
|
39
|
-
|
|
@@ -1,46 +0,0 @@
|
|
|
1
|
-
|
|
2
|
-
#ifndef _ORC_INTERNAL_H_
|
|
3
|
-
#define _ORC_INTERNAL_H_
|
|
4
|
-
|
|
5
|
-
#include <orc/orcutils.h>
|
|
6
|
-
#include <orc/orclimits.h>
|
|
7
|
-
|
|
8
|
-
ORC_BEGIN_DECLS
|
|
9
|
-
|
|
10
|
-
#ifdef ORC_ENABLE_UNSTABLE_API
|
|
11
|
-
|
|
12
|
-
/* FIXME: not sure why these are exported, no one needs to call these, that's
|
|
13
|
-
* already done as part of orc_init() */
|
|
14
|
-
void orc_mmx_init (void);
|
|
15
|
-
void orc_sse_init (void);
|
|
16
|
-
void orc_arm_init (void);
|
|
17
|
-
void orc_powerpc_init (void);
|
|
18
|
-
void orc_c_init (void);
|
|
19
|
-
void orc_neon_init (void);
|
|
20
|
-
void orc_c64x_init (void);
|
|
21
|
-
void orc_c64x_c_init (void);
|
|
22
|
-
void orc_mips_init (void);
|
|
23
|
-
|
|
24
|
-
typedef struct _OrcCodeChunk OrcCodeChunk;
|
|
25
|
-
|
|
26
|
-
/* This is internal API, nothing in the public headers returns an OrcCodeChunk */
|
|
27
|
-
void orc_code_chunk_free (OrcCodeChunk *chunk);
|
|
28
|
-
|
|
29
|
-
extern int _orc_data_cache_size_level1;
|
|
30
|
-
extern int _orc_data_cache_size_level2;
|
|
31
|
-
extern int _orc_data_cache_size_level3;
|
|
32
|
-
extern int _orc_cpu_family;
|
|
33
|
-
extern int _orc_cpu_model;
|
|
34
|
-
extern int _orc_cpu_stepping;
|
|
35
|
-
extern const char *_orc_cpu_name;
|
|
36
|
-
|
|
37
|
-
void orc_compiler_emit_invariants (OrcCompiler *compiler);
|
|
38
|
-
int orc_program_has_float (OrcCompiler *compiler);
|
|
39
|
-
|
|
40
|
-
char* _orc_getenv (const char *var);
|
|
41
|
-
#endif
|
|
42
|
-
|
|
43
|
-
ORC_END_DECLS
|
|
44
|
-
|
|
45
|
-
#endif
|
|
46
|
-
|