Permalink
Browse files

Removed binaries

  • Loading branch information...
1 parent 9545b2a commit 947573df07b01908f6863df1f573452a2d7c0151 @chris838 committed May 13, 2012
Showing with 0 additions and 17,033 deletions.
  1. +0 −44 xcode/include/orc-0.4/orc-test/orcarray.h
  2. +0 −94 xcode/include/orc-0.4/orc-test/orcprofile.h
  3. +0 −22 xcode/include/orc-0.4/orc-test/orcrandom.h
  4. +0 −40 xcode/include/orc-0.4/orc-test/orctest.h
  5. +0 −151 xcode/include/orc-0.4/orc/opcodes.h
  6. +0 −1 xcode/include/orc-0.4/orc/orc-stdint.h
  7. +0 −20 xcode/include/orc-0.4/orc/orc.h
  8. +0 −329 xcode/include/orc-0.4/orc/orcarm.h
  9. +0 −258 xcode/include/orc-0.4/orc/orcbytecode.h
  10. +0 −40 xcode/include/orc-0.4/orc/orccpuinsn.h
  11. +0 −160 xcode/include/orc-0.4/orc/orcdebug.h
  12. +0 −203 xcode/include/orc-0.4/orc/orcemulateopcodes.h
  13. +0 −77 xcode/include/orc-0.4/orc/orcfunctions.h
  14. +0 −84 xcode/include/orc-0.4/orc/orcmmx.h
  15. +0 −43 xcode/include/orc-0.4/orc/orcneon.h
  16. +0 −24 xcode/include/orc-0.4/orc/orconce.h
  17. +0 −16 xcode/include/orc-0.4/orc/orcparse.h
  18. +0 −183 xcode/include/orc-0.4/orc/orcpowerpc.h
  19. +0 −818 xcode/include/orc-0.4/orc/orcprogram.h
  20. +0 −67 xcode/include/orc-0.4/orc/orcsse.h
  21. +0 −196 xcode/include/orc-0.4/orc/orcutils.h
  22. +0 −196 xcode/include/orc-0.4/orc/orcx86.h
  23. +0 −669 xcode/include/orc-0.4/orc/orcx86insn.h
  24. +0 −234 xcode/include/orc-0.4/testsuite/orcc/testorc.h
  25. +0 −61 xcode/include/schroedinger/cuda/arith.h
  26. +0 −93 xcode/include/schroedinger/cuda/arith_coalesce.h
  27. +0 −19 xcode/include/schroedinger/cuda/common.h
  28. +0 −95 xcode/include/schroedinger/cuda/convert_base.h
  29. +0 −132 xcode/include/schroedinger/cuda/convert_base_coalesce.h
  30. +0 −227 xcode/include/schroedinger/cuda/convert_packed.h
  31. +0 −27 xcode/include/schroedinger/cuda/cudaframe.h
  32. +0 −15 xcode/include/schroedinger/cuda/cudainit.h
  33. +0 −95 xcode/include/schroedinger/cuda/cudamotion.h
  34. +0 −14 xcode/include/schroedinger/cuda/cudaupsample.h
  35. +0 −15 xcode/include/schroedinger/cuda/cudawavelet.h
  36. +0 −268 xcode/include/schroedinger/cuda/motion_kernel_divb.h
  37. +0 −269 xcode/include/schroedinger/cuda/motion_kernel_shared.h
  38. +0 −350 xcode/include/schroedinger/cuda/motion_kernel_tex.h
  39. +0 −195 xcode/include/schroedinger/cuda/upsample_kernel.h
  40. +0 −1,203 xcode/include/schroedinger/cuda/wavelet.h
  41. +0 −14 xcode/include/schroedinger/cuda/wavelet_common.h
  42. +0 −10 xcode/include/schroedinger/cuda/wavelets.h
  43. +0 −43 xcode/include/schroedinger/opengl/schroopengl.h
  44. +0 −111 xcode/include/schroedinger/opengl/schroopenglcanvas.h
  45. +0 −41 xcode/include/schroedinger/opengl/schroopenglframe.h
  46. +0 −14 xcode/include/schroedinger/opengl/schroopenglmotion.h
  47. +0 −87 xcode/include/schroedinger/opengl/schroopenglshader.h
  48. +0 −25 xcode/include/schroedinger/opengl/schroopengltypes.h
  49. +0 −17 xcode/include/schroedinger/opengl/schroopenglwavelet.h
  50. +0 −1 xcode/include/schroedinger/schro-stdint.h
  51. +0 −39 xcode/include/schroedinger/schro.h
  52. +0 −20 xcode/include/schroedinger/schroanalysis.h
  53. +0 −356 xcode/include/schroedinger/schroarith.h
  54. +0 −91 xcode/include/schroedinger/schroasync.h
  55. +0 −159 xcode/include/schroedinger/schrobitstream.h
  56. +0 −48 xcode/include/schroedinger/schrobuffer.h
  57. +0 −36 xcode/include/schroedinger/schrobufferlist.h
  58. +0 −23 xcode/include/schroedinger/schrocuda.h
  59. +0 −83 xcode/include/schroedinger/schrodebug.h
  60. +0 −248 xcode/include/schroedinger/schrodecoder.h
  61. +0 −54 xcode/include/schroedinger/schrodomain.h
  62. +0 −539 xcode/include/schroedinger/schroencoder.h
  63. +0 −55 xcode/include/schroedinger/schroengine.h
  64. +0 −25 xcode/include/schroedinger/schrofft.h
  65. +0 −30 xcode/include/schroedinger/schrofilter.h
  66. +0 −198 xcode/include/schroedinger/schroframe.h
  67. +0 −39 xcode/include/schroedinger/schrogpuframe.h
  68. +0 −27 xcode/include/schroedinger/schrogpumotion.h
  69. +0 −56 xcode/include/schroedinger/schrohistogram.h
  70. +0 −72 xcode/include/schroedinger/schrolimits.h
  71. +0 −44 xcode/include/schroedinger/schrolist.h
  72. +0 −94 xcode/include/schroedinger/schrometric.h
  73. +0 −128 xcode/include/schroedinger/schromotion.h
  74. +0 −165 xcode/include/schroedinger/schromotionest.h
  75. +0 −3,119 xcode/include/schroedinger/schroorc-dist.h
  76. +0 −3,119 xcode/include/schroedinger/schroorc.h
  77. +0 −56 xcode/include/schroedinger/schropack.h
  78. +0 −113 xcode/include/schroedinger/schroparams.h
  79. +0 −26 xcode/include/schroedinger/schroparse.h
  80. +0 −67 xcode/include/schroedinger/schrophasecorrelation.h
  81. +0 −50 xcode/include/schroedinger/schroqueue.h
  82. +0 −18 xcode/include/schroedinger/schrossim.h
  83. +0 −36 xcode/include/schroedinger/schrotables.h
  84. +0 −61 xcode/include/schroedinger/schrounpack.h
  85. +0 −156 xcode/include/schroedinger/schroutils.h
  86. +0 −17 xcode/include/schroedinger/schroversion.h
  87. +0 −83 xcode/include/schroedinger/schrovideoformat.h
  88. +0 −52 xcode/include/schroedinger/schrovirtframe.h
  89. +0 −21 xcode/include/schroedinger/schrowavelet.h
  90. BIN xcode/lib/armv6/liborc-0.4.a
  91. BIN xcode/lib/armv6/liborc-test-0.4.a
  92. BIN xcode/lib/armv6/libschroedinger-1.0.a
  93. BIN xcode/lib/armv7/liborc-0.4.a
  94. BIN xcode/lib/armv7/liborc-test-0.4.a
  95. BIN xcode/lib/armv7/libschroedinger-1.0.a
  96. BIN xcode/lib/i386/liborc-0.4.a
  97. BIN xcode/lib/i386/liborc-test-0.4.a
  98. BIN xcode/lib/i386/libschroedinger-1.0.a
View
44 xcode/include/orc-0.4/orc-test/orcarray.h
@@ -1,44 +0,0 @@
-
-#ifndef _ORC_ARRAY_H_
-#define _ORC_ARRAY_H_
-
-#include <orc-test/orctest.h>
-#include <orc-test/orcrandom.h>
-#include <orc/orc.h>
-#include <orc/orcdebug.h>
-
-#define ORC_OOB_VALUE 0xa5
-
-typedef struct _OrcArray OrcArray;
-struct _OrcArray {
- void *data;
- int stride;
- int element_size;
- int n,m;
-
- void *alloc_data;
- int alloc_len;
-};
-
-enum {
- ORC_PATTERN_RANDOM = 0,
- ORC_PATTERN_FLOAT_SMALL,
- ORC_PATTERN_FLOAT_SPECIAL,
- ORC_PATTERN_FLOAT_DENORMAL
-};
-
-OrcArray *orc_array_new (int n, int m, int element_size, int misalignment,
- int alignment);
-void orc_array_free (OrcArray *array);
-
-void orc_array_set_pattern (OrcArray *array, int value);
-void orc_array_set_random (OrcArray *array, OrcRandomContext *context);
-void orc_array_set_pattern_2 (OrcArray *array, OrcRandomContext *context,
- int type);
-
-
-int orc_array_compare (OrcArray *array1, OrcArray *array2, int flags);
-int orc_array_check_out_of_bounds (OrcArray *array);
-
-#endif
-
View
94 xcode/include/orc-0.4/orc-test/orcprofile.h
@@ -1,94 +0,0 @@
-/*
- * Orc - Oil Runtime Compiler
- * Copyright (c) 2003,2004 David A. Schleef <ds@schleef.org>
- * All rights reserved.
- *
- * Redistribution and use in source and binary forms, with or without
- * modification, are permitted provided that the following conditions
- * are met:
- * 1. Redistributions of source code must retain the above copyright
- * notice, this list of conditions and the following disclaimer.
- * 2. Redistributions in binary form must reproduce the above copyright
- * notice, this list of conditions and the following disclaimer in the
- * documentation and/or other materials provided with the distribution.
- *
- * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
- * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
- * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
- * ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT,
- * INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
- * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
- * SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
- * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT,
- * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING
- * IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
- * POSSIBILITY OF SUCH DAMAGE.
- */
-
-#ifndef _ORC_PROFILE_H_
-#define _ORC_PROFILE_H_
-
-#include <orc/orcutils.h>
-
-ORC_BEGIN_DECLS
-
-/**
- * ORC_PROFILE_HIST_LENGTH
- *
- * Internal definition of the number of histogram entries in #OrcProfile.
- */
-#define ORC_PROFILE_HIST_LENGTH 10
-
-typedef struct _OrcProfile OrcProfile;
-/**
- * OrcProfile:
- *
- * An opaque structure representing profiling information.
- */
-struct _OrcProfile {
- /*< private >*/
- unsigned long start;
- unsigned long stop;
- unsigned long min;
- unsigned long last;
- unsigned long total;
- int n;
-
- int hist_n;
- unsigned long hist_time[ORC_PROFILE_HIST_LENGTH];
- int hist_count[ORC_PROFILE_HIST_LENGTH];
-};
-
-unsigned long orc_profile_stamp(void);
-void orc_profile_init(OrcProfile *prof);
-void orc_profile_stop_handle(OrcProfile *prof);
-void orc_profile_get_ave_std (OrcProfile *prof, double *ave_p, double *std_p);
-
-/**
- * orc_profile_start:
- * @x: a pointer to an OrcProfile structure
- *
- * Starts a profiling run by obtaining a timestamp via orc_profile_stamp()
- * and writing it into @x.
- */
-#define orc_profile_start(x) do{ \
- (x)->start = orc_profile_stamp(); \
-}while(0)
-/**
- * orc_profile_stop:
- * @x: a pointer to an OrcProfile structure
- *
- * Stops a profiling run by obtaining a timestamp via orc_profile_stamp()
- * and writing it into @x. It then calls orc_profile_stop_handle() to
- * handle post-processing of the profiling run.
- */
-#define orc_profile_stop(x) do{ \
- (x)->stop = orc_profile_stamp(); \
- orc_profile_stop_handle(x); \
-}while(0)
-
-
-ORC_END_DECLS
-
-#endif
-
View
22 xcode/include/orc-0.4/orc-test/orcrandom.h
@@ -1,22 +0,0 @@
-
-#ifndef _ORC_RANDOM_H_
-#define _ORC_RANDOM_H_
-
-#include <orc/orcutils.h>
-
-ORC_BEGIN_DECLS
-
-typedef struct _OrcRandomContext OrcRandomContext;
-struct _OrcRandomContext {
- unsigned int x;
-};
-
-void orc_random_init (OrcRandomContext *context, int seed);
-void orc_random_bits (OrcRandomContext *context, void *data, int n_bytes);
-void orc_random_floats (OrcRandomContext *context, float *data, int n);
-unsigned int orc_random (OrcRandomContext *context);
-
-ORC_END_DECLS
-
-#endif
-
View
40 xcode/include/orc-0.4/orc-test/orctest.h
@@ -1,40 +0,0 @@
-
-#ifndef _ORC_TEST_TEST_H_
-#define _ORC_TEST_TEST_H_
-
-#include <orc/orc.h>
-#include <orc/orcutils.h>
-
-ORC_BEGIN_DECLS
-
-typedef enum {
- ORC_TEST_FAILED = 0,
- ORC_TEST_INDETERMINATE = 1,
- ORC_TEST_OK = 2
-} OrcTestResult;
-
-#define ORC_TEST_FLAGS_BACKUP (1<<0)
-#define ORC_TEST_FLAGS_FLOAT (1<<1)
-#define ORC_TEST_FLAGS_EMULATE (1<<2)
-
-void orc_test_init (void);
-OrcTestResult orc_test_gcc_compile (OrcProgram *p);
-OrcTestResult orc_test_gcc_compile_neon (OrcProgram *p);
-OrcTestResult orc_test_gcc_compile_c64x (OrcProgram *p);
-void orc_test_random_bits (void *data, int n_bytes);
-OrcTestResult orc_test_compare_output (OrcProgram *program);
-OrcTestResult orc_test_compare_output_full (OrcProgram *program, int flags);
-OrcTestResult orc_test_compare_output_backup (OrcProgram *program);
-
-OrcProgram *orc_test_get_program_for_opcode (OrcStaticOpcode *opcode);
-OrcProgram *orc_test_get_program_for_opcode_const (OrcStaticOpcode *opcode);
-OrcProgram *orc_test_get_program_for_opcode_param (OrcStaticOpcode *opcode);
-
-void orc_test_performance (OrcProgram *program, int flags);
-double orc_test_performance_full (OrcProgram *program, int flags,
- const char *target);
-
-ORC_END_DECLS
-
-#endif
-
View
151 xcode/include/orc-0.4/orc/opcodes.h
@@ -1,151 +0,0 @@
-UNARY_SB(absb, "ORC_ABS(%s)")
-BINARY_SB(addb, "%s + %s")
-BINARY_SB(addssb, "ORC_CLAMP_SB(%s + %s)")
-BINARY_UB(addusb, "ORC_CLAMP_UB((orc_uint8)%s + (orc_uint8)%s)")
-BINARY_SB(andb, "%s & %s")
-BINARY_SB(andnb, "(~%s) & %s")
-BINARY_SB(avgsb, "(%s + %s + 1)>>1")
-BINARY_UB(avgub, "((orc_uint8)%s + (orc_uint8)%s + 1)>>1")
-BINARY_SB(cmpeqb, "(%s == %s) ? (~0) : 0")
-BINARY_SB(cmpgtsb, "(%s > %s) ? (~0) : 0")
-UNARY_SB(copyb, "%s")
-BINARY_SB(maxsb, "ORC_MAX(%s, %s)")
-BINARY_UB(maxub, "ORC_MAX((orc_uint8)%s, (orc_uint8)%s)")
-BINARY_SB(minsb, "ORC_MIN(%s, %s)")
-BINARY_UB(minub, "ORC_MIN((orc_uint8)%s, (orc_uint8)%s)")
-BINARY_SB(mullb, "(%s * %s) & 0xff")
-BINARY_SB(mulhsb, "(%s * %s) >> 8")
-BINARY_UB(mulhub, "((orc_uint32)(orc_uint8)%s * (orc_uint32)(orc_uint8)%s) >> 8")
-BINARY_SB(orb, "%s | %s")
-BINARY_SB(shlb, "%s << %s")
-BINARY_SB(shrsb, "%s >> %s")
-BINARY_UB(shrub, "((orc_uint8)%s) >> %s")
-UNARY_SB(signb, "ORC_CLAMP(%s,-1,1)")
-BINARY_SB(subb, "%s - %s")
-BINARY_SB(subssb, "ORC_CLAMP_SB(%s - %s)")
-BINARY_UB(subusb, "ORC_CLAMP_UB((orc_uint8)%s - (orc_uint8)%s)")
-BINARY_SB(xorb, "%s ^ %s")
-
-UNARY_SW(absw, "ORC_ABS(%s)")
-BINARY_SW(addw, "%s + %s")
-BINARY_SW(addssw, "ORC_CLAMP_SW(%s + %s)")
-BINARY_UW(addusw, "ORC_CLAMP_UW((orc_uint16)%s + (orc_uint16)%s)")
-BINARY_SW(andw, "%s & %s")
-BINARY_SW(andnw, "(~%s) & %s")
-BINARY_SW(avgsw, "(%s + %s + 1)>>1")
-BINARY_UW(avguw, "((orc_uint16)%s + (orc_uint16)%s + 1)>>1")
-BINARY_SW(cmpeqw, "(%s == %s) ? (~0) : 0")
-BINARY_SW(cmpgtsw, "(%s > %s) ? (~0) : 0")
-UNARY_SW(copyw, "%s")
-BINARY_SW(maxsw, "ORC_MAX(%s, %s)")
-BINARY_UW(maxuw, "ORC_MAX((orc_uint16)%s, (orc_uint16)%s)")
-BINARY_SW(minsw, "ORC_MIN(%s, %s)")
-BINARY_UW(minuw, "ORC_MIN((orc_uint16)%s, (orc_uint16)%s)")
-BINARY_SW(mullw, "(%s * %s) & 0xffff")
-BINARY_SW(mulhsw, "(%s * %s) >> 16")
-BINARY_UW(mulhuw, "((orc_uint32)((orc_uint16)%s) * (orc_uint32)((orc_uint16)%s)) >> 16")
-BINARY_SW(orw, "%s | %s")
-BINARY_SW(shlw, "%s << %s")
-BINARY_SW(shrsw, "%s >> %s")
-BINARY_UW(shruw, "((orc_uint16)%s) >> %s")
-UNARY_SW(signw, "ORC_CLAMP(%s,-1,1)")
-BINARY_SW(subw, "%s - %s")
-BINARY_SW(subssw, "ORC_CLAMP_SW(%s - %s)")
-BINARY_UW(subusw, "ORC_CLAMP_UW((orc_uint16)%s - (orc_uint16)%s)")
-BINARY_SW(xorw, "%s ^ %s")
-
-UNARY_SL(absl, "ORC_ABS(%s)")
-BINARY_SL(addl, "%s + %s")
-BINARY_SL(addssl, "ORC_CLAMP_SL((orc_int64)%s + (orc_int64)%s)")
-BINARY_UL(addusl, "ORC_CLAMP_UL((orc_int64)(orc_uint32)%s + (orc_int64)(orc_uint32)%s)")
-BINARY_SL(andl, "%s & %s")
-BINARY_SL(andnl, "(~%s) & %s")
-BINARY_SL(avgsl, "((orc_int64)%s + (orc_int64)%s + 1)>>1")
-BINARY_UL(avgul, "((orc_uint64)(orc_uint32)%s + (orc_uint64)(orc_uint32)%s + 1)>>1")
-BINARY_SL(cmpeql, "(%s == %s) ? (~0) : 0")
-BINARY_SL(cmpgtsl, "(%s > %s) ? (~0) : 0")
-UNARY_SL(copyl, "%s")
-BINARY_SL(maxsl, "ORC_MAX(%s, %s)")
-BINARY_UL(maxul, "ORC_MAX((orc_uint32)%s, (orc_uint32)%s)")
-BINARY_SL(minsl, "ORC_MIN(%s, %s)")
-BINARY_UL(minul, "ORC_MIN((orc_uint32)%s, (orc_uint32)%s)")
-BINARY_SL(mulll, "(%s * %s) & 0xffffffff")
-BINARY_SL(mulhsl, "((orc_int64)%s * (orc_int64)%s) >> 32")
-BINARY_UL(mulhul, "((orc_uint64)(orc_uint32)%s * (orc_uint64)(orc_uint32)%s) >> 32")
-BINARY_SL(orl, "%s | %s")
-BINARY_SL(shll, "%s << %s")
-BINARY_SL(shrsl, "%s >> %s")
-BINARY_UL(shrul, "((orc_uint32)%s) >> %s")
-UNARY_SL(signl, "ORC_CLAMP(%s,-1,1)")
-BINARY_SL(subl, "%s - %s")
-BINARY_SL(subssl, "ORC_CLAMP_SL((orc_int64)%s - (orc_int64)%s)")
-BINARY_UL(subusl, "ORC_CLAMP_UL((orc_int64)(orc_uint32)%s - (orc_int64)(orc_uint32)%s)")
-BINARY_SL(xorl, "%s ^ %s")
-
-UNARY_SQ(copyq, "%s")
-BINARY_SQ(cmpeqq, "(%s == %s) ? (~0) : 0")
-BINARY_SQ(cmpgtsq, "(%s > %s) ? (~0) : 0")
-BINARY_SQ(andq, "%s & %s")
-BINARY_SQ(andnq, "(~%s) & %s")
-BINARY_SQ(orq, "%s | %s")
-BINARY_SQ(xorq, "%s ^ %s")
-BINARY_SQ(addq, "%s + %s")
-BINARY_SQ(subq, "%s - %s")
-BINARY_SQ(shlq, "%s << %s")
-BINARY_SQ(shrsq, "%s >> %s")
-BINARY_UQ(shruq, "((orc_uint64)%s) >> %s")
-
-UNARY_BW(convsbw, "%s")
-UNARY_BW(convubw, "(orc_uint8)%s")
-UNARY_WB(convwb, "%s")
-UNARY_WB(convhwb, "((orc_uint16)%s)>>8")
-UNARY_WB(convssswb, "ORC_CLAMP_SB(%s)")
-UNARY_WB(convsuswb, "ORC_CLAMP_UB(%s)")
-UNARY_WB(convusswb, "ORC_MIN((orc_uint16)%s,ORC_SB_MAX)")
-UNARY_WB(convuuswb, "ORC_MIN((orc_uint16)%s,ORC_UB_MAX)")
-
-UNARY_WL(convswl, "%s")
-UNARY_WL(convuwl, "(orc_uint16)%s")
-UNARY_LW(convlw, "%s")
-UNARY_WB(convhlw, "((orc_uint32)%s)>>16")
-UNARY_LW(convssslw, "ORC_CLAMP_SW(%s)")
-UNARY_LW(convsuslw, "ORC_CLAMP_UW(%s)")
-UNARY_LW(convusslw, "ORC_CLAMP((orc_uint32)%s,0,ORC_SW_MAX)")
-UNARY_LW(convuuslw, "ORC_CLAMP_UW((orc_uint32)%s)")
-
-UNARY_LQ(convslq, "%s")
-UNARY_LQ(convulq, "(orc_uint32)%s")
-UNARY_LW(convql, "%s")
-UNARY_LW(convsssql, "ORC_CLAMP_SL(%s)")
-UNARY_LW(convsusql, "ORC_CLAMP_UL(%s)")
-UNARY_LW(convussql, "ORC_CLAMP_SL((orc_uint64)%s)")
-UNARY_LW(convuusql, "ORC_CLAMP_UL((orc_uint64)%s)")
-
-BINARY_BW(mulsbw, "%s * %s")
-BINARY_BW(mulubw, "((orc_uint8)%s) * ((orc_uint8)%s)")
-BINARY_WL(mulswl, "%s * %s")
-BINARY_WL(muluwl, "((orc_uint16)%s) * ((orc_uint16)%s)")
-BINARY_LQ(mulslq, "((orc_int64)%s) * ((orc_int64)%s)")
-BINARY_LQ(mululq, "((orc_uint64)((orc_uint32)%s)) * ((orc_uint64)((orc_uint32)%s))")
-
-UNARY_UW(swapw, "ORC_SWAP_W(%s)")
-UNARY_UL(swapl, "ORC_SWAP_L(%s)")
-UNARY_UQ(swapq, "ORC_SWAP_Q(%s)")
-
-BINARY_F(addf, "%s + %s")
-BINARY_F(subf, "%s - %s")
-BINARY_F(mulf, "%s * %s")
-BINARY_F(divf, "%s / %s")
-UNARY_F(sqrtf, "sqrt(%s)")
-BINARY_FL(cmpeqf, "(%s == %s) ? (~0) : 0")
-BINARY_FL(cmpltf, "(%s < %s) ? (~0) : 0")
-BINARY_FL(cmplef, "(%s <= %s) ? (~0) : 0")
-
-BINARY_D(addd, "%s + %s")
-BINARY_D(subd, "%s - %s")
-BINARY_D(muld, "%s * %s")
-BINARY_D(divd, "%s / %s")
-UNARY_D(sqrtd, "sqrt(%s)")
-BINARY_DQ(cmpeqd, "(%s == %s) ? ORC_UINT64_C(~0) : 0")
-BINARY_DQ(cmpltd, "(%s < %s) ? ORC_UINT64_C(~0) : 0")
-BINARY_DQ(cmpled, "(%s <= %s) ? ORC_UINT64_C(~0) : 0")
View
1 xcode/include/orc-0.4/orc/orc-stdint.h
@@ -1 +0,0 @@
-/* This file is intentionally nearly empty */
View
20 xcode/include/orc-0.4/orc/orc.h
@@ -1,20 +0,0 @@
-
-#ifndef _ORC_ORC_H_
-#define _ORC_ORC_H_
-
-#include <orc/orcprogram.h>
-#include <orc/orc-stdint.h>
-#include <orc/orcarm.h>
-#include <orc/orcdebug.h>
-#include <orc/orcfunctions.h>
-#include <orc/orcmmx.h>
-#include <orc/orconce.h>
-#include <orc/orcparse.h>
-#include <orc/orcprogram.h>
-#include <orc/orcsse.h>
-#include <orc/orcutils.h>
-#include <orc/orcx86.h>
-#include <orc/orcpowerpc.h>
-
-#endif
-
View
329 xcode/include/orc-0.4/orc/orcarm.h
@@ -1,329 +0,0 @@
-
-#ifndef _ORC_ARM_H_
-#define _ORC_ARM_H_
-
-#include <orc/orcprogram.h>
-
-ORC_BEGIN_DECLS
-
-#ifdef ORC_ENABLE_UNSTABLE_API
-
-typedef enum {
- ORC_ARM_A1 = ORC_GP_REG_BASE+0,
- ORC_ARM_A2,
- ORC_ARM_A3,
- ORC_ARM_A4,
- ORC_ARM_V1,
- ORC_ARM_V2,
- ORC_ARM_V3,
- ORC_ARM_V4,
- ORC_ARM_V5,
- ORC_ARM_V6,
- ORC_ARM_V7,
- ORC_ARM_V8,
- ORC_ARM_IP,
- ORC_ARM_SP,
- ORC_ARM_LR,
- ORC_ARM_PC
-} OrcArmRegister;
-
-typedef enum {
- ORC_ARM_DP_AND = 0,
- ORC_ARM_DP_EOR,
- ORC_ARM_DP_SUB,
- ORC_ARM_DP_RSB,
- ORC_ARM_DP_ADD,
- ORC_ARM_DP_ADC,
- ORC_ARM_DP_SBC,
- ORC_ARM_DP_RSC,
- ORC_ARM_DP_TST,
- ORC_ARM_DP_TEQ,
- ORC_ARM_DP_CMP,
- ORC_ARM_DP_CMN,
- ORC_ARM_DP_ORR,
- ORC_ARM_DP_MOV,
- ORC_ARM_DP_BIC,
- ORC_ARM_DP_MVN
-} OrcArmDP;
-
-typedef enum {
- ORC_ARM_COND_EQ = 0,
- ORC_ARM_COND_NE,
- ORC_ARM_COND_CS,
- ORC_ARM_COND_CC,
- ORC_ARM_COND_MI,
- ORC_ARM_COND_PL,
- ORC_ARM_COND_VS,
- ORC_ARM_COND_VC,
- ORC_ARM_COND_HI,
- ORC_ARM_COND_LS,
- ORC_ARM_COND_GE,
- ORC_ARM_COND_LT,
- ORC_ARM_COND_GT,
- ORC_ARM_COND_LE,
- ORC_ARM_COND_AL,
-} OrcArmCond;
-
-typedef enum {
- ORC_ARM_LSL,
- ORC_ARM_LSR,
- ORC_ARM_ASR,
- ORC_ARM_ROR
-} OrcArmShift;
-
-unsigned long orc_arm_get_cpu_flags (void);
-
-void orc_arm_emit (OrcCompiler *compiler, orc_uint32 insn);
-void orc_arm_emit_bx_lr (OrcCompiler *compiler);
-const char * orc_arm_reg_name (int reg);
-const char * orc_arm_cond_name (OrcArmCond cond);
-void orc_arm_emit_load_imm (OrcCompiler *compiler, int dest, int imm);
-
-void orc_arm_emit_add (OrcCompiler *compiler, int dest, int src1, int src2);
-void orc_arm_emit_sub (OrcCompiler *compiler, int dest, int src1, int src2);
-void orc_arm_emit_add_imm (OrcCompiler *compiler, int dest, int src1, int value);
-void orc_arm_emit_and_imm (OrcCompiler *compiler, int dest, int src1, int value);
-void orc_arm_emit_sub_imm (OrcCompiler *compiler, int dest, int src1, int value, int record);
-void orc_arm_emit_asr_imm (OrcCompiler *compiler, int dest, int src1, int value);
-void orc_arm_emit_lsl_imm (OrcCompiler *compiler, int dest, int src1, int value);
-void orc_arm_emit_cmp_imm (OrcCompiler *compiler, int src1, int value);
-void orc_arm_emit_cmp (OrcCompiler *compiler, int src1, int src2);
-void orc_arm_emit_mov (OrcCompiler *compiler, int dest, int src);
-
-void orc_arm_emit_align (OrcCompiler *compiler, int align_shift);
-void orc_arm_emit_label (OrcCompiler *compiler, int label);
-void orc_arm_emit_push (OrcCompiler *compiler, int regs);
-void orc_arm_emit_pop (OrcCompiler *compiler, int regs);
-void orc_arm_emit_branch (OrcCompiler *compiler, int cond, int label);
-void orc_arm_emit_data (OrcCompiler *compiler, orc_uint32 data);
-
-void orc_arm_loadb (OrcCompiler *compiler, int dest, int src1, int offset);
-void orc_arm_storeb (OrcCompiler *compiler, int dest, int offset, int src1);
-void orc_arm_loadw (OrcCompiler *compiler, int dest, int src1, int offset);
-void orc_arm_storew (OrcCompiler *compiler, int dest, int offset, int src1);
-void orc_arm_loadl (OrcCompiler *compiler, int dest, int src1, int offset);
-void orc_arm_storel (OrcCompiler *compiler, int dest, int offset, int src1);
-
-void orc_arm_emit_load_reg (OrcCompiler *compiler, int dest, int src1, int offset);
-void orc_arm_emit_store_reg (OrcCompiler *compiler, int src, int dest, int offset);
-
-void orc_arm_add_fixup (OrcCompiler *compiler, int label, int type);
-void orc_arm_do_fixups (OrcCompiler *compiler);
-
-void orc_arm_emit_dp (OrcCompiler *p, int type, OrcArmCond cond, OrcArmDP opcode,
- int S, int Rd, int Rn, int Rm, int shift, orc_uint32 val);
-void orc_arm_emit_par (OrcCompiler *p, int op, int mode, OrcArmCond cond,
- int Rd, int Rn, int Rm);
-void orc_arm_emit_xt (OrcCompiler *p, int op, OrcArmCond cond,
- int Rd, int Rn, int Rm, int r8);
-void orc_arm_emit_pkh (OrcCompiler *p, int op, OrcArmCond cond,
- int Rd, int Rn, int Rm, int sh);
-void orc_arm_emit_sat (OrcCompiler *p, int op, OrcArmCond cond,
- int Rd, int sat, int Rm, int sh, int asr);
-void orc_arm_emit_rv (OrcCompiler *p, int op, OrcArmCond cond,
- int Rd, int Rm);
-void orc_arm_emit_nop (OrcCompiler *compiler);
-
-void orc_arm_flush_cache (OrcCode *code);
-
-/* ALL cpus */
-/* data procesing instructions */
-/* <op>{<cond>}{s} {<Rd>}, <Rn>, #imm */
-#define orc_arm_emit_and_i(p,cond,S,Rd,Rn,imm) orc_arm_emit_dp(p,0,cond,ORC_ARM_DP_AND,S,Rd,Rn,0,0,imm)
-#define orc_arm_emit_eor_i(p,cond,S,Rd,Rn,imm) orc_arm_emit_dp(p,0,cond,ORC_ARM_DP_EOR,S,Rd,Rn,0,0,imm)
-#define orc_arm_emit_sub_i(p,cond,S,Rd,Rn,imm) orc_arm_emit_dp(p,0,cond,ORC_ARM_DP_SUB,S,Rd,Rn,0,0,imm)
-#define orc_arm_emit_rsb_i(p,cond,S,Rd,Rn,imm) orc_arm_emit_dp(p,0,cond,ORC_ARM_DP_RSB,S,Rd,Rn,0,0,imm)
-#define orc_arm_emit_add_i(p,cond,S,Rd,Rn,imm) orc_arm_emit_dp(p,0,cond,ORC_ARM_DP_ADD,S,Rd,Rn,0,0,imm)
-#define orc_arm_emit_adc_i(p,cond,S,Rd,Rn,imm) orc_arm_emit_dp(p,0,cond,ORC_ARM_DP_ADC,S,Rd,Rn,0,0,imm)
-#define orc_arm_emit_sbc_i(p,cond,S,Rd,Rn,imm) orc_arm_emit_dp(p,0,cond,ORC_ARM_DP_SBC,S,Rd,Rn,0,0,imm)
-#define orc_arm_emit_rsc_i(p,cond,S,Rd,Rn,imm) orc_arm_emit_dp(p,0,cond,ORC_ARM_DP_RSC,S,Rd,Rn,0,0,imm)
-#define orc_arm_emit_tst_i(p,cond,Rn,imm) orc_arm_emit_dp(p,0,cond,ORC_ARM_DP_TST,1, 0,Rn,0,0,imm)
-#define orc_arm_emit_teq_i(p,cond,Rn,imm) orc_arm_emit_dp(p,0,cond,ORC_ARM_DP_TEQ,1, 0,Rn,0,0,imm)
-#define orc_arm_emit_cmp_i(p,cond,Rn,imm) orc_arm_emit_dp(p,0,cond,ORC_ARM_DP_CMP,1, 0,Rn,0,0,imm)
-#define orc_arm_emit_cmn_i(p,cond,Rn,imm) orc_arm_emit_dp(p,0,cond,ORC_ARM_DP_CMN,1, 0,Rn,0,0,imm)
-#define orc_arm_emit_orr_i(p,cond,S,Rd,Rn,imm) orc_arm_emit_dp(p,0,cond,ORC_ARM_DP_ORR,S,Rd,Rn,0,0,imm)
-#define orc_arm_emit_mov_i(p,cond,S,Rd,imm) orc_arm_emit_dp(p,0,cond,ORC_ARM_DP_MOV,S,Rd, 0,0,0,imm)
-#define orc_arm_emit_bic_i(p,cond,S,Rd,Rn,imm) orc_arm_emit_dp(p,0,cond,ORC_ARM_DP_BIC,S,Rd,Rn,0,0,imm)
-#define orc_arm_emit_mvn_i(p,cond,S,Rd,imm) orc_arm_emit_dp(p,0,cond,ORC_ARM_DP_MVN,S,Rd, 0,0,0,imm)
-
-/* <op>{<cond>}{s} {<Rd>}, <Rn>, <Rm> */
-#define orc_arm_emit_and_r(p,cond,S,Rd,Rn,Rm) orc_arm_emit_dp(p,1,cond,ORC_ARM_DP_AND,S,Rd,Rn,Rm,0,0)
-#define orc_arm_emit_eor_r(p,cond,S,Rd,Rn,Rm) orc_arm_emit_dp(p,1,cond,ORC_ARM_DP_EOR,S,Rd,Rn,Rm,0,0)
-#define orc_arm_emit_sub_r(p,cond,S,Rd,Rn,Rm) orc_arm_emit_dp(p,1,cond,ORC_ARM_DP_SUB,S,Rd,Rn,Rm,0,0)
-#define orc_arm_emit_rsb_r(p,cond,S,Rd,Rn,Rm) orc_arm_emit_dp(p,1,cond,ORC_ARM_DP_RSB,S,Rd,Rn,Rm,0,0)
-#define orc_arm_emit_add_r(p,cond,S,Rd,Rn,Rm) orc_arm_emit_dp(p,1,cond,ORC_ARM_DP_ADD,S,Rd,Rn,Rm,0,0)
-#define orc_arm_emit_adc_r(p,cond,S,Rd,Rn,Rm) orc_arm_emit_dp(p,1,cond,ORC_ARM_DP_ADC,S,Rd,Rn,Rm,0,0)
-#define orc_arm_emit_sbc_r(p,cond,S,Rd,Rn,Rm) orc_arm_emit_dp(p,1,cond,ORC_ARM_DP_SBC,S,Rd,Rn,Rm,0,0)
-#define orc_arm_emit_rsc_r(p,cond,S,Rd,Rn,Rm) orc_arm_emit_dp(p,1,cond,ORC_ARM_DP_RSC,S,Rd,Rn,Rm,0,0)
-#define orc_arm_emit_tst_r(p,cond,Rn,Rm) orc_arm_emit_dp(p,1,cond,ORC_ARM_DP_TST,1, 0,Rn,Rm,0,0)
-#define orc_arm_emit_teq_r(p,cond,Rn,Rm) orc_arm_emit_dp(p,1,cond,ORC_ARM_DP_TEQ,1, 0,Rn,Rm,0,0)
-#define orc_arm_emit_cmp_r(p,cond,Rn,Rm) orc_arm_emit_dp(p,1,cond,ORC_ARM_DP_CMP,1, 0,Rn,Rm,0,0)
-#define orc_arm_emit_cmn_r(p,cond,Rn,Rm) orc_arm_emit_dp(p,1,cond,ORC_ARM_DP_CMN,1, 0,Rn,Rm,0,0)
-#define orc_arm_emit_orr_r(p,cond,S,Rd,Rn,Rm) orc_arm_emit_dp(p,1,cond,ORC_ARM_DP_ORR,S,Rd,Rn,Rm,0,0)
-#define orc_arm_emit_mov_r(p,cond,S,Rd,Rm) orc_arm_emit_dp(p,1,cond,ORC_ARM_DP_MOV,S,Rd, 0,Rm,0,0)
-#define orc_arm_emit_bic_r(p,cond,S,Rd,Rn,Rm) orc_arm_emit_dp(p,1,cond,ORC_ARM_DP_BIC,S,Rd,Rn,Rm,0,0)
-#define orc_arm_emit_mvn_r(p,cond,S,Rd,Rm) orc_arm_emit_dp(p,1,cond,ORC_ARM_DP_MVN,S,Rd, 0,Rm,0,0)
-
-/* <op>{<cond>}{s} {<Rd>}, <Rn>, <Rm>, [LSL|LSR|ASR] #imm */
-#define orc_arm_emit_and_rsi(p,cond,S,Rd,Rn,Rm,sh,im) orc_arm_emit_dp(p,2,cond,ORC_ARM_DP_AND,S,Rd,Rn,Rm,sh,im)
-#define orc_arm_emit_eor_rsi(p,cond,S,Rd,Rn,Rm,sh,im) orc_arm_emit_dp(p,2,cond,ORC_ARM_DP_EOR,S,Rd,Rn,Rm,sh,im)
-#define orc_arm_emit_sub_rsi(p,cond,S,Rd,Rn,Rm,sh,im) orc_arm_emit_dp(p,2,cond,ORC_ARM_DP_SUB,S,Rd,Rn,Rm,sh,im)
-#define orc_arm_emit_rsb_rsi(p,cond,S,Rd,Rn,Rm,sh,im) orc_arm_emit_dp(p,2,cond,ORC_ARM_DP_RSB,S,Rd,Rn,Rm,sh,im)
-#define orc_arm_emit_add_rsi(p,cond,S,Rd,Rn,Rm,sh,im) orc_arm_emit_dp(p,2,cond,ORC_ARM_DP_ADD,S,Rd,Rn,Rm,sh,im)
-#define orc_arm_emit_adc_rsi(p,cond,S,Rd,Rn,Rm,sh,im) orc_arm_emit_dp(p,2,cond,ORC_ARM_DP_ADC,S,Rd,Rn,Rm,sh,im)
-#define orc_arm_emit_sbc_rsi(p,cond,S,Rd,Rn,Rm,sh,im) orc_arm_emit_dp(p,2,cond,ORC_ARM_DP_SBC,S,Rd,Rn,Rm,sh,im)
-#define orc_arm_emit_rsc_rsi(p,cond,S,Rd,Rn,Rm,sh,im) orc_arm_emit_dp(p,2,cond,ORC_ARM_DP_RSC,S,Rd,Rn,Rm,sh,im)
-#define orc_arm_emit_tst_rsi(p,cond,Rn,Rm,sh,im) orc_arm_emit_dp(p,2,cond,ORC_ARM_DP_TST,1, 0,Rn,Rm,sh,im)
-#define orc_arm_emit_teq_rsi(p,cond,Rn,Rm,sh,im) orc_arm_emit_dp(p,2,cond,ORC_ARM_DP_TEQ,1, 0,Rn,Rm,sh,im)
-#define orc_arm_emit_cmp_rsi(p,cond,Rn,Rm,sh,im) orc_arm_emit_dp(p,2,cond,ORC_ARM_DP_CMP,1, 0,Rn,Rm,sh,im)
-#define orc_arm_emit_cmn_rsi(p,cond,Rn,Rm,sh,im) orc_arm_emit_dp(p,2,cond,ORC_ARM_DP_CMN,1, 0,Rn,Rm,sh,im)
-#define orc_arm_emit_orr_rsi(p,cond,S,Rd,Rn,Rm,sh,im) orc_arm_emit_dp(p,2,cond,ORC_ARM_DP_ORR,S,Rd,Rn,Rm,sh,im)
-#define orc_arm_emit_mov_rsi(p,cond,S,Rd,Rm,sh,im) orc_arm_emit_dp(p,2,cond,ORC_ARM_DP_MOV,S,Rd, 0,Rm,sh,im)
-#define orc_arm_emit_bic_rsi(p,cond,S,Rd,Rn,Rm,sh,im) orc_arm_emit_dp(p,2,cond,ORC_ARM_DP_BIC,S,Rd,Rn,Rm,sh,im)
-#define orc_arm_emit_mvn_rsi(p,cond,S,Rd,Rm,sh,im) orc_arm_emit_dp(p,2,cond,ORC_ARM_DP_MVN,S,Rd, 0,Rm,sh,im)
-
-/* <op>{<cond>}{s} {<Rd>}, <Rn>, <Rm>, [LSL|LSR|ASR] <Rs> */
-#define orc_arm_emit_and_rsr(p,cond,S,Rd,Rn,Rm,sh,Rs) orc_arm_emit_dp(p,3,cond,ORC_ARM_DP_AND,S,Rd,Rn,Rm,sh,Rs)
-#define orc_arm_emit_eor_rsr(p,cond,S,Rd,Rn,Rm,sh,Rs) orc_arm_emit_dp(p,3,cond,ORC_ARM_DP_EOR,S,Rd,Rn,Rm,sh,Rs)
-#define orc_arm_emit_sub_rsr(p,cond,S,Rd,Rn,Rm,sh,Rs) orc_arm_emit_dp(p,3,cond,ORC_ARM_DP_SUB,S,Rd,Rn,Rm,sh,Rs)
-#define orc_arm_emit_rsb_rsr(p,cond,S,Rd,Rn,Rm,sh,Rs) orc_arm_emit_dp(p,3,cond,ORC_ARM_DP_RSB,S,Rd,Rn,Rm,sh,Rs)
-#define orc_arm_emit_add_rsr(p,cond,S,Rd,Rn,Rm,sh,Rs) orc_arm_emit_dp(p,3,cond,ORC_ARM_DP_ADD,S,Rd,Rn,Rm,sh,Rs)
-#define orc_arm_emit_adc_rsr(p,cond,S,Rd,Rn,Rm,sh,Rs) orc_arm_emit_dp(p,3,cond,ORC_ARM_DP_ADC,S,Rd,Rn,Rm,sh,Rs)
-#define orc_arm_emit_sbc_rsr(p,cond,S,Rd,Rn,Rm,sh,Rs) orc_arm_emit_dp(p,3,cond,ORC_ARM_DP_SBC,S,Rd,Rn,Rm,sh,Rs)
-#define orc_arm_emit_rsc_rsr(p,cond,S,Rd,Rn,Rm,sh,Rs) orc_arm_emit_dp(p,3,cond,ORC_ARM_DP_RSC,S,Rd,Rn,Rm,sh,Rs)
-#define orc_arm_emit_tst_rsr(p,cond,Rn,Rm,sh,Rs) orc_arm_emit_dp(p,3,cond,ORC_ARM_DP_TST,1, 0,Rn,Rm,sh,Rs)
-#define orc_arm_emit_teq_rsr(p,cond,Rn,Rm,sh,Rs) orc_arm_emit_dp(p,3,cond,ORC_ARM_DP_TEQ,1, 0,Rn,Rm,sh,Rs)
-#define orc_arm_emit_cmp_rsr(p,cond,Rn,Rm,sh,Rs) orc_arm_emit_dp(p,3,cond,ORC_ARM_DP_CMP,1, 0,Rn,Rm,sh,Rs)
-#define orc_arm_emit_cmn_rsr(p,cond,Rn,Rm,sh,Rs) orc_arm_emit_dp(p,3,cond,ORC_ARM_DP_CMN,1, 0,Rn,Rm,sh,Rs)
-#define orc_arm_emit_orr_rsr(p,cond,S,Rd,Rn,Rm,sh,Rs) orc_arm_emit_dp(p,3,cond,ORC_ARM_DP_ORR,S,Rd,Rn,Rm,sh,Rs)
-#define orc_arm_emit_mov_rsr(p,cond,S,Rd,Rm,sh,Rs) orc_arm_emit_dp(p,3,cond,ORC_ARM_DP_MOV,S,Rd, 0,Rm,sh,Rs)
-#define orc_arm_emit_bic_rsr(p,cond,S,Rd,Rn,Rm,sh,Rs) orc_arm_emit_dp(p,3,cond,ORC_ARM_DP_BIC,S,Rd,Rn,Rm,sh,Rs)
-#define orc_arm_emit_mvn_rsr(p,cond,S,Rd,Rm,sh,Rs) orc_arm_emit_dp(p,3,cond,ORC_ARM_DP_MVN,S,Rd, 0,Rm,sh,Rs)
-
-/* <op>{<cond>}{s} {<Rd>,} <Rn>, <Rm>, RRX */
-#define orc_arm_emit_and_rrx(p,cond,S,Rd,Rn,Rm) orc_arm_emit_dp(p,4,cond,ORC_ARM_DP_AND,S,Rd,Rn,Rm,0,0)
-#define orc_arm_emit_eor_rrx(p,cond,S,Rd,Rn,Rm) orc_arm_emit_dp(p,4,cond,ORC_ARM_DP_EOR,S,Rd,Rn,Rm,0,0)
-#define orc_arm_emit_sub_rrx(p,cond,S,Rd,Rn,Rm) orc_arm_emit_dp(p,4,cond,ORC_ARM_DP_SUB,S,Rd,Rn,Rm,0,0)
-#define orc_arm_emit_rsb_rrx(p,cond,S,Rd,Rn,Rm) orc_arm_emit_dp(p,4,cond,ORC_ARM_DP_RSB,S,Rd,Rn,Rm,0,0)
-#define orc_arm_emit_add_rrx(p,cond,S,Rd,Rn,Rm) orc_arm_emit_dp(p,4,cond,ORC_ARM_DP_ADD,S,Rd,Rn,Rm,0,0)
-#define orc_arm_emit_adc_rrx(p,cond,S,Rd,Rn,Rm) orc_arm_emit_dp(p,4,cond,ORC_ARM_DP_ADC,S,Rd,Rn,Rm,0,0)
-#define orc_arm_emit_sbc_rrx(p,cond,S,Rd,Rn,Rm) orc_arm_emit_dp(p,4,cond,ORC_ARM_DP_SBC,S,Rd,Rn,Rm,0,0)
-#define orc_arm_emit_rsc_rrx(p,cond,S,Rd,Rn,Rm) orc_arm_emit_dp(p,4,cond,ORC_ARM_DP_RSC,S,Rd,Rn,Rm,0,0)
-#define orc_arm_emit_tst_rrx(p,cond,Rn,Rm) orc_arm_emit_dp(p,4,cond,ORC_ARM_DP_TST,1, 0,Rn,Rm,0,0)
-#define orc_arm_emit_teq_rrx(p,cond,Rn,Rm) orc_arm_emit_dp(p,4,cond,ORC_ARM_DP_TEQ,1, 0,Rn,Rm,0,0)
-#define orc_arm_emit_cmp_rrx(p,cond,Rn,Rm) orc_arm_emit_dp(p,4,cond,ORC_ARM_DP_CMP,1, 0,Rn,Rm,0,0)
-#define orc_arm_emit_cmn_rrx(p,cond,Rn,Rm) orc_arm_emit_dp(p,4,cond,ORC_ARM_DP_CMN,1, 0,Rn,Rm,0,0)
-#define orc_arm_emit_orr_rrx(p,cond,S,Rd,Rn,Rm) orc_arm_emit_dp(p,4,cond,ORC_ARM_DP_ORR,S,Rd,Rn,Rm,0,0)
-#define orc_arm_emit_mov_rrx(p,cond,S,Rd,Rm) orc_arm_emit_dp(p,4,cond,ORC_ARM_DP_MOV,S,Rd, 0,Rm,0,0)
-#define orc_arm_emit_bic_rrx(p,cond,S,Rd,Rn,Rm) orc_arm_emit_dp(p,4,cond,ORC_ARM_DP_BIC,S,Rd,Rn,Rm,0,0)
-#define orc_arm_emit_mvn_rrx(p,cond,S,Rd,Rm) orc_arm_emit_dp(p,4,cond,ORC_ARM_DP_MVN,S,Rd, 0,Rm,0,0)
-
-/* parallel instructions */
-#define orc_arm_emit_sadd16(p,cond,Rd,Rn,Rm) orc_arm_emit_par(p,0,0,cond,Rd,Rn,Rm)
-#define orc_arm_emit_qadd16(p,cond,Rd,Rn,Rm) orc_arm_emit_par(p,0,1,cond,Rd,Rn,Rm)
-#define orc_arm_emit_shadd16(p,cond,Rd,Rn,Rm) orc_arm_emit_par(p,0,2,cond,Rd,Rn,Rm)
-#define orc_arm_emit_uadd16(p,cond,Rd,Rn,Rm) orc_arm_emit_par(p,0,3,cond,Rd,Rn,Rm)
-#define orc_arm_emit_uqadd16(p,cond,Rd,Rn,Rm) orc_arm_emit_par(p,0,4,cond,Rd,Rn,Rm)
-#define orc_arm_emit_uhadd16(p,cond,Rd,Rn,Rm) orc_arm_emit_par(p,0,5,cond,Rd,Rn,Rm)
-
-#define orc_arm_emit_saddsubx(p,cond,Rd,Rn,Rm) orc_arm_emit_par(p,1,0,cond,Rd,Rn,Rm)
-#define orc_arm_emit_qaddsubx(p,cond,Rd,Rn,Rm) orc_arm_emit_par(p,1,1,cond,Rd,Rn,Rm)
-#define orc_arm_emit_shaddsubx(p,cond,Rd,Rn,Rm) orc_arm_emit_par(p,1,2,cond,Rd,Rn,Rm)
-#define orc_arm_emit_uaddsubx(p,cond,Rd,Rn,Rm) orc_arm_emit_par(p,1,3,cond,Rd,Rn,Rm)
-#define orc_arm_emit_uqaddsubx(p,cond,Rd,Rn,Rm) orc_arm_emit_par(p,1,4,cond,Rd,Rn,Rm)
-#define orc_arm_emit_uhaddsubx(p,cond,Rd,Rn,Rm) orc_arm_emit_par(p,1,5,cond,Rd,Rn,Rm)
-
-#define orc_arm_emit_ssubaddx(p,cond,Rd,Rn,Rm) orc_arm_emit_par(p,2,0,cond,Rd,Rn,Rm)
-#define orc_arm_emit_qsubaddx(p,cond,Rd,Rn,Rm) orc_arm_emit_par(p,2,1,cond,Rd,Rn,Rm)
-#define orc_arm_emit_shsubaddx(p,cond,Rd,Rn,Rm) orc_arm_emit_par(p,2,2,cond,Rd,Rn,Rm)
-#define orc_arm_emit_usubaddx(p,cond,Rd,Rn,Rm) orc_arm_emit_par(p,2,3,cond,Rd,Rn,Rm)
-#define orc_arm_emit_uqsubaddx(p,cond,Rd,Rn,Rm) orc_arm_emit_par(p,2,4,cond,Rd,Rn,Rm)
-#define orc_arm_emit_uhsubaddx(p,cond,Rd,Rn,Rm) orc_arm_emit_par(p,2,5,cond,Rd,Rn,Rm)
-
-#define orc_arm_emit_ssub16(p,cond,Rd,Rn,Rm) orc_arm_emit_par(p,3,0,cond,Rd,Rn,Rm)
-#define orc_arm_emit_qsub16(p,cond,Rd,Rn,Rm) orc_arm_emit_par(p,3,1,cond,Rd,Rn,Rm)
-#define orc_arm_emit_shsub16(p,cond,Rd,Rn,Rm) orc_arm_emit_par(p,3,2,cond,Rd,Rn,Rm)
-#define orc_arm_emit_usub16(p,cond,Rd,Rn,Rm) orc_arm_emit_par(p,3,3,cond,Rd,Rn,Rm)
-#define orc_arm_emit_uqsub16(p,cond,Rd,Rn,Rm) orc_arm_emit_par(p,3,4,cond,Rd,Rn,Rm)
-#define orc_arm_emit_uhsub16(p,cond,Rd,Rn,Rm) orc_arm_emit_par(p,3,5,cond,Rd,Rn,Rm)
-
-#define orc_arm_emit_sadd8(p,cond,Rd,Rn,Rm) orc_arm_emit_par(p,4,0,cond,Rd,Rn,Rm)
-#define orc_arm_emit_qadd8(p,cond,Rd,Rn,Rm) orc_arm_emit_par(p,4,1,cond,Rd,Rn,Rm)
-#define orc_arm_emit_shadd8(p,cond,Rd,Rn,Rm) orc_arm_emit_par(p,4,2,cond,Rd,Rn,Rm)
-#define orc_arm_emit_uadd8(p,cond,Rd,Rn,Rm) orc_arm_emit_par(p,4,3,cond,Rd,Rn,Rm)
-#define orc_arm_emit_uqadd8(p,cond,Rd,Rn,Rm) orc_arm_emit_par(p,4,4,cond,Rd,Rn,Rm)
-#define orc_arm_emit_uhadd8(p,cond,Rd,Rn,Rm) orc_arm_emit_par(p,4,5,cond,Rd,Rn,Rm)
-
-#define orc_arm_emit_ssub8(p,cond,Rd,Rn,Rm) orc_arm_emit_par(p,5,0,cond,Rd,Rn,Rm)
-#define orc_arm_emit_qsub8(p,cond,Rd,Rn,Rm) orc_arm_emit_par(p,5,1,cond,Rd,Rn,Rm)
-#define orc_arm_emit_shsub8(p,cond,Rd,Rn,Rm) orc_arm_emit_par(p,5,2,cond,Rd,Rn,Rm)
-#define orc_arm_emit_usub8(p,cond,Rd,Rn,Rm) orc_arm_emit_par(p,5,3,cond,Rd,Rn,Rm)
-#define orc_arm_emit_uqsub8(p,cond,Rd,Rn,Rm) orc_arm_emit_par(p,5,4,cond,Rd,Rn,Rm)
-#define orc_arm_emit_uhsub8(p,cond,Rd,Rn,Rm) orc_arm_emit_par(p,5,5,cond,Rd,Rn,Rm)
-
-/* selection */
-#define orc_arm_emit_sel(p,cond,Rd,Rn,Rm) orc_arm_emit_par(p,6,6,cond,Rd,Rn,Rm)
-
-/* saturating add */
-#define orc_arm_emit_qadd(p,cond,Rd,Rn,Rm) orc_arm_emit_par(p,7,7, cond,Rd,Rn,Rm)
-#define orc_arm_emit_qsub(p,cond,Rd,Rn,Rm) orc_arm_emit_par(p,8,8, cond,Rd,Rn,Rm)
-#define orc_arm_emit_qdadd(p,cond,Rd,Rn,Rm) orc_arm_emit_par(p,7,9, cond,Rd,Rn,Rm)
-#define orc_arm_emit_qdsub(p,cond,Rd,Rn,Rm) orc_arm_emit_par(p,8,10,cond,Rd,Rn,Rm)
-
-/* extend instructions */
-/* with ROR #r8, r8 should be a multiple of 8 */
-#define orc_arm_emit_sxtb16_r8(p,cond,Rd,Rm,r8) orc_arm_emit_xt(p,0, cond,Rd,15,Rm,r8)
-#define orc_arm_emit_sxtb_r8(p,cond,Rd,Rm,r8) orc_arm_emit_xt(p,1, cond,Rd,15,Rm,r8)
-#define orc_arm_emit_sxth_r8(p,cond,Rd,Rm,r8) orc_arm_emit_xt(p,2, cond,Rd,15,Rm,r8)
-#define orc_arm_emit_uxtb16_r8(p,cond,Rd,Rm,r8) orc_arm_emit_xt(p,3, cond,Rd,15,Rm,r8)
-#define orc_arm_emit_uxtb_r8(p,cond,Rd,Rm,r8) orc_arm_emit_xt(p,4, cond,Rd,15,Rm,r8)
-#define orc_arm_emit_uxth_r8(p,cond,Rd,Rm,r8) orc_arm_emit_xt(p,5, cond,Rd,15,Rm,r8)
-#define orc_arm_emit_sxtab16_r8(p,cond,Rd,Rn,Rm,r8) orc_arm_emit_xt(p,6, cond,Rd,Rn,Rm,r8)
-#define orc_arm_emit_sxtab_r8(p,cond,Rd,Rn,Rm,r8) orc_arm_emit_xt(p,7, cond,Rd,Rn,Rm,r8)
-#define orc_arm_emit_sxtah_r8(p,cond,Rd,Rn,Rm,r8) orc_arm_emit_xt(p,8, cond,Rd,Rn,Rm,r8)
-#define orc_arm_emit_uxtab16_r8(p,cond,Rd,Rn,Rm,r8) orc_arm_emit_xt(p,9, cond,Rd,Rn,Rm,r8)
-#define orc_arm_emit_uxtab_r8(p,cond,Rd,Rn,Rm,r8) orc_arm_emit_xt(p,10,cond,Rd,Rn,Rm,r8)
-#define orc_arm_emit_uxtah_r8(p,cond,Rd,Rn,Rm,r8) orc_arm_emit_xt(p,11,cond,Rd,Rn,Rm,r8)
-/* with out rotate */
-#define orc_arm_emit_sxtb16(p,cond,Rd,Rm) orc_arm_emit_sxtb_r8(p,cond,Rd,Rm,0)
-#define orc_arm_emit_sxtb(p,cond,Rd,Rm) orc_arm_emit_sxtb_r8(p,cond,Rd,Rm,0)
-#define orc_arm_emit_sxth(p,cond,Rd,Rm) orc_arm_emit_sxtb_r8(p,cond,Rd,Rm,0)
-#define orc_arm_emit_uxtb16(p,cond,Rd,Rm) orc_arm_emit_sxtb_r8(p,cond,Rd,Rm,0)
-#define orc_arm_emit_uxtb(p,cond,Rd,Rm) orc_arm_emit_sxtb_r8(p,cond,Rd,Rm,0)
-#define orc_arm_emit_uxth(p,cond,Rd,Rm) orc_arm_emit_sxtb_r8(p,cond,Rd,Rm,0)
-#define orc_arm_emit_sxtab16(p,cond,Rd,Rn,Rm) orc_arm_emit_sxtb_r8(p,cond,Rd,Rm,0)
-#define orc_arm_emit_sxtab(p,cond,Rd,Rn,Rm) orc_arm_emit_sxtb_r8(p,cond,Rd,Rm,0)
-#define orc_arm_emit_sxtah(p,cond,Rd,Rn,Rm) orc_arm_emit_sxtb_r8(p,cond,Rd,Rm,0)
-#define orc_arm_emit_uxtab16(p,cond,Rd,Rn,Rm) orc_arm_emit_sxtb_r8(p,cond,Rd,Rm,0)
-#define orc_arm_emit_uxtab(p,cond,Rd,Rn,Rm) orc_arm_emit_sxtb_r8(p,cond,Rd,Rm,0)
-#define orc_arm_emit_uxtah(p,cond,Rd,Rn,Rm) orc_arm_emit_sxtb_r8(p,cond,Rd,Rm,0)
-
-/* misc instructions */
-
-/* packing */
-#define orc_arm_emit_pkhbt(p,cond,Rd,Rn,Rm) orc_arm_emit_pkh(p,0,cond,Rd,Rn,Rm,0)
-#define orc_arm_emit_pkhtb(p,cond,Rd,Rn,Rm) orc_arm_emit_pkh(p,1,cond,Rd,Rn,Rm,0)
-/* with [LSL|ASR] #imm */
-#define orc_arm_emit_pkhbt_s(p,cond,Rd,Rn,Rm,lsl) orc_arm_emit_pkh(p,0,cond,Rd,Rn,Rm,lsl)
-#define orc_arm_emit_pkhtb_s(p,cond,Rd,Rn,Rm,asr) orc_arm_emit_pkh(p,1,cond,Rd,Rn,Rm,asr)
-
-/* saturation */
-#define orc_arm_emit_ssat(p,cond,Rd,sat,Rm) orc_arm_emit_sat(p,0,cond,Rd,sat,Rm,0, 0)
-#define orc_arm_emit_usat(p,cond,Rd,sat,Rm) orc_arm_emit_sat(p,1,cond,Rd,sat,Rm,0, 0)
-#define orc_arm_emit_ssat_lsl(p,cond,Rd,sat,Rm,sh) orc_arm_emit_sat(p,0,cond,Rd,sat,Rm,sh,0)
-#define orc_arm_emit_usat_lsl(p,cond,Rd,sat,Rm,sh) orc_arm_emit_sat(p,1,cond,Rd,sat,Rm,sh,0)
-#define orc_arm_emit_ssat_asr(p,cond,Rd,sat,Rm,sh) orc_arm_emit_sat(p,0,cond,Rd,sat,Rm,sh,1)
-#define orc_arm_emit_usat_asr(p,cond,Rd,sat,Rm,sh) orc_arm_emit_sat(p,1,cond,Rd,sat,Rm,sh,1)
-#define orc_arm_emit_ssat16(p,cond,Rd,sat,Rm) orc_arm_emit_sat(p,2,cond,Rd,sat,Rm,0, 0)
-#define orc_arm_emit_usat16(p,cond,Rd,sat,Rm) orc_arm_emit_sat(p,3,cond,Rd,sat,Rm,0, 0)
-
-/* reversing */
-#define orc_arm_emit_rev(p,cond,Rd,Rm) orc_arm_emit_rv (p,0,cond,Rd,Rm)
-#define orc_arm_emit_rev16(p,cond,Rd,Rm) orc_arm_emit_rv (p,1,cond,Rd,Rm)
-
-#endif
-
-ORC_END_DECLS
-
-#endif
-
View
258 xcode/include/orc-0.4/orc/orcbytecode.h
@@ -1,258 +0,0 @@
-
-/* autogenerated by generate-bytecode */
-
-#ifdef HAVE_CONFIG_H
-#include "config.h"
-#endif
-#include <math.h>
-#include <orc/orc.h>
-
-typedef enum {
- ORC_BC_END,
- ORC_BC_BEGIN_FUNCTION,
- ORC_BC_END_FUNCTION,
- ORC_BC_SET_CONSTANT_N,
- ORC_BC_SET_N_MULTIPLE,
- ORC_BC_SET_N_MINIMUM,
- ORC_BC_SET_N_MAXIMUM,
- ORC_BC_SET_2D,
- ORC_BC_SET_CONSTANT_M,
- ORC_BC_SET_NAME,
- ORC_BC_SET_BACKUP_FUNCTION,
- ORC_BC_ADD_DESTINATION,
- ORC_BC_ADD_SOURCE,
- ORC_BC_ADD_ACCUMULATOR,
- ORC_BC_ADD_CONSTANT,
- ORC_BC_ADD_CONSTANT_INT64,
- ORC_BC_ADD_PARAMETER,
- ORC_BC_ADD_PARAMETER_FLOAT,
- ORC_BC_ADD_PARAMETER_INT64,
- ORC_BC_ADD_PARAMETER_DOUBLE,
- ORC_BC_ADD_TEMPORARY,
- ORC_BC_RESERVED_21,
- ORC_BC_RESERVED_22,
- ORC_BC_RESERVED_23,
- ORC_BC_RESERVED_24,
- ORC_BC_RESERVED_25,
- ORC_BC_RESERVED_26,
- ORC_BC_RESERVED_27,
- ORC_BC_RESERVED_28,
- ORC_BC_RESERVED_29,
- ORC_BC_RESERVED_30,
- ORC_BC_RESERVED_31,
- ORC_BC_absb,
- ORC_BC_addb,
- ORC_BC_addssb,
- ORC_BC_addusb,
- ORC_BC_andb,
- ORC_BC_andnb,
- ORC_BC_avgsb,
- ORC_BC_avgub,
- /* 40 */
- ORC_BC_cmpeqb,
- ORC_BC_cmpgtsb,
- ORC_BC_copyb,
- ORC_BC_loadb,
- ORC_BC_loadoffb,
- ORC_BC_loadupdb,
- ORC_BC_loadupib,
- ORC_BC_loadpb,
- ORC_BC_ldresnearb,
- ORC_BC_ldresnearl,
- /* 50 */
- ORC_BC_ldreslinb,
- ORC_BC_ldreslinl,
- ORC_BC_maxsb,
- ORC_BC_maxub,
- ORC_BC_minsb,
- ORC_BC_minub,
- ORC_BC_mullb,
- ORC_BC_mulhsb,
- ORC_BC_mulhub,
- ORC_BC_orb,
- /* 60 */
- ORC_BC_shlb,
- ORC_BC_shrsb,
- ORC_BC_shrub,
- ORC_BC_signb,
- ORC_BC_storeb,
- ORC_BC_subb,
- ORC_BC_subssb,
- ORC_BC_subusb,
- ORC_BC_xorb,
- ORC_BC_absw,
- /* 70 */
- ORC_BC_addw,
- ORC_BC_addssw,
- ORC_BC_addusw,
- ORC_BC_andw,
- ORC_BC_andnw,
- ORC_BC_avgsw,
- ORC_BC_avguw,
- ORC_BC_cmpeqw,
- ORC_BC_cmpgtsw,
- ORC_BC_copyw,
- /* 80 */
- ORC_BC_div255w,
- ORC_BC_divluw,
- ORC_BC_loadw,
- ORC_BC_loadoffw,
- ORC_BC_loadpw,
- ORC_BC_maxsw,
- ORC_BC_maxuw,
- ORC_BC_minsw,
- ORC_BC_minuw,
- ORC_BC_mullw,
- /* 90 */
- ORC_BC_mulhsw,
- ORC_BC_mulhuw,
- ORC_BC_orw,
- ORC_BC_shlw,
- ORC_BC_shrsw,
- ORC_BC_shruw,
- ORC_BC_signw,
- ORC_BC_storew,
- ORC_BC_subw,
- ORC_BC_subssw,
- /* 100 */
- ORC_BC_subusw,
- ORC_BC_xorw,
- ORC_BC_absl,
- ORC_BC_addl,
- ORC_BC_addssl,
- ORC_BC_addusl,
- ORC_BC_andl,
- ORC_BC_andnl,
- ORC_BC_avgsl,
- ORC_BC_avgul,
- /* 110 */
- ORC_BC_cmpeql,
- ORC_BC_cmpgtsl,
- ORC_BC_copyl,
- ORC_BC_loadl,
- ORC_BC_loadoffl,
- ORC_BC_loadpl,
- ORC_BC_maxsl,
- ORC_BC_maxul,
- ORC_BC_minsl,
- ORC_BC_minul,
- /* 120 */
- ORC_BC_mulll,
- ORC_BC_mulhsl,
- ORC_BC_mulhul,
- ORC_BC_orl,
- ORC_BC_shll,
- ORC_BC_shrsl,
- ORC_BC_shrul,
- ORC_BC_signl,
- ORC_BC_storel,
- ORC_BC_subl,
- /* 130 */
- ORC_BC_subssl,
- ORC_BC_subusl,
- ORC_BC_xorl,
- ORC_BC_loadq,
- ORC_BC_loadpq,
- ORC_BC_storeq,
- ORC_BC_splatw3q,
- ORC_BC_copyq,
- ORC_BC_cmpeqq,
- ORC_BC_cmpgtsq,
- /* 140 */
- ORC_BC_andq,
- ORC_BC_andnq,
- ORC_BC_orq,
- ORC_BC_xorq,
- ORC_BC_addq,
- ORC_BC_subq,
- ORC_BC_shlq,
- ORC_BC_shrsq,
- ORC_BC_shruq,
- ORC_BC_convsbw,
- /* 150 */
- ORC_BC_convubw,
- ORC_BC_splatbw,
- ORC_BC_splatbl,
- ORC_BC_convswl,
- ORC_BC_convuwl,
- ORC_BC_convslq,
- ORC_BC_convulq,
- ORC_BC_convwb,
- ORC_BC_convhwb,
- ORC_BC_convssswb,
- /* 160 */
- ORC_BC_convsuswb,
- ORC_BC_convusswb,
- ORC_BC_convuuswb,
- ORC_BC_convlw,
- ORC_BC_convhlw,
- ORC_BC_convssslw,
- ORC_BC_convsuslw,
- ORC_BC_convusslw,
- ORC_BC_convuuslw,
- ORC_BC_convql,
- /* 170 */
- ORC_BC_convsssql,
- ORC_BC_convsusql,
- ORC_BC_convussql,
- ORC_BC_convuusql,
- ORC_BC_mulsbw,
- ORC_BC_mulubw,
- ORC_BC_mulswl,
- ORC_BC_muluwl,
- ORC_BC_mulslq,
- ORC_BC_mululq,
- /* 180 */
- ORC_BC_accw,
- ORC_BC_accl,
- ORC_BC_accsadubl,
- ORC_BC_swapw,
- ORC_BC_swapl,
- ORC_BC_swapwl,
- ORC_BC_swapq,
- ORC_BC_swaplq,
- ORC_BC_select0wb,
- ORC_BC_select1wb,
- /* 190 */
- ORC_BC_select0lw,
- ORC_BC_select1lw,
- ORC_BC_select0ql,
- ORC_BC_select1ql,
- ORC_BC_mergelq,
- ORC_BC_mergewl,
- ORC_BC_mergebw,
- ORC_BC_splitql,
- ORC_BC_splitlw,
- ORC_BC_splitwb,
- /* 200 */
- ORC_BC_addf,
- ORC_BC_subf,
- ORC_BC_mulf,
- ORC_BC_divf,
- ORC_BC_sqrtf,
- ORC_BC_maxf,
- ORC_BC_minf,
- ORC_BC_cmpeqf,
- ORC_BC_cmpltf,
- ORC_BC_cmplef,
- /* 210 */
- ORC_BC_convfl,
- ORC_BC_convlf,
- ORC_BC_addd,
- ORC_BC_subd,
- ORC_BC_muld,
- ORC_BC_divd,
- ORC_BC_sqrtd,
- ORC_BC_maxd,
- ORC_BC_mind,
- ORC_BC_cmpeqd,
- /* 220 */
- ORC_BC_cmpltd,
- ORC_BC_cmpled,
- ORC_BC_convdl,
- ORC_BC_convld,
- ORC_BC_convfd,
- ORC_BC_convdf,
- /* 226 */
- ORC_BC_LAST
-} OrcBytecodes;
View
40 xcode/include/orc-0.4/orc/orccpuinsn.h
@@ -1,40 +0,0 @@
-
-#ifndef _ORC_ORC_CPUINSN_H_
-#define _ORC_ORC_CPUINSN_H_
-
-#ifdef ORC_ENABLE_UNSTABLE_API
-
-typedef struct _OrcSysInsn OrcSysInsn;
-typedef struct _OrcSysOpcode OrcSysOpcode;
-
-struct _OrcSysInsn {
- int opcode;
- int dest_reg;
- int src1_reg;
- int src2_reg;
-
- int immediate;
-
- int mem_reg;
- int memoffset;
- int indexreg;
- int shift;
- int size;
-};
-
-struct _OrcSysOpcode {
- char name[16];
- int type;
- int flags;
- orc_uint8 prefix;
- orc_uint32 code;
- int code2;
-};
-
-
-#define ORC_SYS_OPCODE_FLAG_FIXED (1<<0)
-
-#endif
-
-#endif
-
View
160 xcode/include/orc-0.4/orc/orcdebug.h
@@ -1,160 +0,0 @@
-/*
- * ORC - Library of Optimized Inner Loops
- * Copyright (c) 2003,2004 David A. Schleef <ds@schleef.org>
- * All rights reserved.
- *
- * Redistribution and use in source and binary forms, with or without
- * modification, are permitted provided that the following conditions
- * are met:
- * 1. Redistributions of source code must retain the above copyright
- * notice, this list of conditions and the following disclaimer.
- * 2. Redistributions in binary form must reproduce the above copyright
- * notice, this list of conditions and the following disclaimer in the
- * documentation and/or other materials provided with the distribution.
- *
- * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
- * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
- * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
- * ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT,
- * INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
- * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
- * SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
- * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT,
- * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING
- * IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
- * POSSIBILITY OF SUCH DAMAGE.
- */
-
-#ifndef _ORC_DEBUG_H_
-#define _ORC_DEBUG_H_
-
-#include <stdarg.h>
-#include <orc/orcutils.h>
-#include <stdlib.h>
-
-ORC_BEGIN_DECLS
-
-/**
- * OrcDebugPrintFunc:
- * @level: the debug level
- * @file: name of the file where the debug message occurs
- * @func: name of the function where the debug message occurs
- * @line: line in the file where the debug message occurs
- * @format: a printf format
- * @varargs: varargs for the printf format
- *
- * Typedef describing functions that can be registered using
- * orc_debug_set_print_function() so that it is called to
- * print debugging messages.
- */
-typedef void (*OrcDebugPrintFunc) (int level, const char *file,
- const char *func, int line, const char *format, va_list varargs);
-
-/**
- * OrcDebugLevel:
- * @ORC_DEBUG_NONE: No debugging. Used to disable debugging output.
- * @ORC_DEBUG_ERROR: The level for messages indicating that an error
- * has occurred that causes Orc to produce incorrect results. Also
- * used temporarily by developers for testing code.
- * @ORC_DEBUG_WARNING: Messages at this level indicate something has
- * occurred that a developer looking into an application problem may
- * want to know.
- * @ORC_DEBUG_INFO: Messages at this level provide high-level
- * information about Orc internals.
- * @ORC_DEBUG_DEBUG: The default level for logging messages.
- * @ORC_DEBUG_LOG: The level for messages that probably don't need to
- * be logged at all.
- *
- * Enumeration describing debug levels in Orc.
- */
-typedef enum {
- ORC_DEBUG_NONE = 0,
- ORC_DEBUG_ERROR,
- ORC_DEBUG_WARNING,
- ORC_DEBUG_INFO,
- ORC_DEBUG_DEBUG,
- ORC_DEBUG_LOG
-} OrcDebugLevel;
-
-/**
- * ORC_ERROR:
- * @...: printf-style format and arguments
- *
- * Macro to call ORC_DEBUG_PRINT() with a level of #ORC_DEBUG_ERROR.
- */
-#define ORC_ERROR(...) ORC_DEBUG_PRINT(ORC_DEBUG_ERROR, __VA_ARGS__)
-/**
- * ORC_WARNING:
- * @...: printf-style format and arguments
- *
- * Macro to call ORC_DEBUG_PRINT() with a level of #ORC_DEBUG_WARNING.
- */
-#define ORC_WARNING(...) ORC_DEBUG_PRINT(ORC_DEBUG_WARNING, __VA_ARGS__)
-/**
- * ORC_INFO:
- * @...: printf-style format and arguments
- *
- * Macro to call ORC_DEBUG_PRINT() with a level of #ORC_DEBUG_INFO.
- */
-#define ORC_INFO(...) ORC_DEBUG_PRINT(ORC_DEBUG_INFO, __VA_ARGS__)
-/**
- * ORC_DEBUG:
- * @...: printf-style format and arguments
- *
- * Macro to call ORC_DEBUG_PRINT() with a level of #ORC_DEBUG_DEBUG.
- */
-#define ORC_DEBUG(...) ORC_DEBUG_PRINT(ORC_DEBUG_DEBUG, __VA_ARGS__)
-/**
- * ORC_LOG:
- * @...: printf-style format and arguments
- *
- * Macro to call ORC_DEBUG_PRINT() with a level of #ORC_DEBUG_LOG.
- */
-#define ORC_LOG(...) ORC_DEBUG_PRINT(ORC_DEBUG_LOG, __VA_ARGS__)
-
-/**
- * ORC_FUNCTION:
- *
- * Internal macro that points to __PRETTY_FUNCTION__ or __func__
- * if the former is not available.
- */
-#if defined (__GNUC__) || defined (__PRETTY_FUNCTION__)
-#define ORC_FUNCTION __PRETTY_FUNCTION__
-#elif defined(__func__)
-#define ORC_FUNCTION __func__
-#else
-#define ORC_FUNCTION ""
-#endif
-
-/**
- * ORC_DEBUG_PRINT:
- * @level: debug level of message
- * @Varargs: printf-style format and arguments
- *
- * Macro to call orc_debug_print() with the correct values for
- * the name of the source file, line of source file, and function.
- */
-#define ORC_DEBUG_PRINT(level, ...) do { \
- orc_debug_print((level), __FILE__, ORC_FUNCTION, __LINE__, __VA_ARGS__); \
-}while(0)
-
-#define ORC_ASSERT(test) do { \
- if (!(test)) { \
- ORC_ERROR("assertion failed: " #test ); \
- abort(); \
- } \
-} while(0)
-
-void orc_debug_set_print_function (OrcDebugPrintFunc func);
-int orc_debug_get_level (void);
-void orc_debug_set_level (int level);
-
-void _orc_debug_init (void);
-
-void orc_debug_print (int level, const char *file, const char *func,
- int line, const char *format, ...);
-
-ORC_END_DECLS
-
-#endif
-
View
203 xcode/include/orc-0.4/orc/orcemulateopcodes.h
@@ -1,203 +0,0 @@
-
-/* autogenerated by generate-emulation */
-
-#ifndef _ORC_EMULATE_OPCODES_H_
-#define _ORC_EMULATE_OPCODES_H_
-
-void emulate_absb (OrcOpcodeExecutor *ex, int i, int n);
-void emulate_addb (OrcOpcodeExecutor *ex, int i, int n);
-void emulate_addssb (OrcOpcodeExecutor *ex, int i, int n);
-void emulate_addusb (OrcOpcodeExecutor *ex, int i, int n);
-void emulate_andb (OrcOpcodeExecutor *ex, int i, int n);
-void emulate_andnb (OrcOpcodeExecutor *ex, int i, int n);
-void emulate_avgsb (OrcOpcodeExecutor *ex, int i, int n);
-void emulate_avgub (OrcOpcodeExecutor *ex, int i, int n);
-void emulate_cmpeqb (OrcOpcodeExecutor *ex, int i, int n);
-void emulate_cmpgtsb (OrcOpcodeExecutor *ex, int i, int n);
-void emulate_copyb (OrcOpcodeExecutor *ex, int i, int n);
-void emulate_loadb (OrcOpcodeExecutor *ex, int i, int n);
-void emulate_loadoffb (OrcOpcodeExecutor *ex, int i, int n);
-void emulate_loadupdb (OrcOpcodeExecutor *ex, int i, int n);
-void emulate_loadupib (OrcOpcodeExecutor *ex, int i, int n);
-void emulate_loadpb (OrcOpcodeExecutor *ex, int i, int n);
-void emulate_ldresnearb (OrcOpcodeExecutor *ex, int i, int n);
-void emulate_ldresnearl (OrcOpcodeExecutor *ex, int i, int n);
-void emulate_ldreslinb (OrcOpcodeExecutor *ex, int i, int n);
-void emulate_ldreslinl (OrcOpcodeExecutor *ex, int i, int n);
-void emulate_maxsb (OrcOpcodeExecutor *ex, int i, int n);
-void emulate_maxub (OrcOpcodeExecutor *ex, int i, int n);
-void emulate_minsb (OrcOpcodeExecutor *ex, int i, int n);
-void emulate_minub (OrcOpcodeExecutor *ex, int i, int n);
-void emulate_mullb (OrcOpcodeExecutor *ex, int i, int n);
-void emulate_mulhsb (OrcOpcodeExecutor *ex, int i, int n);
-void emulate_mulhub (OrcOpcodeExecutor *ex, int i, int n);
-void emulate_orb (OrcOpcodeExecutor *ex, int i, int n);
-void emulate_shlb (OrcOpcodeExecutor *ex, int i, int n);
-void emulate_shrsb (OrcOpcodeExecutor *ex, int i, int n);
-void emulate_shrub (OrcOpcodeExecutor *ex, int i, int n);
-void emulate_signb (OrcOpcodeExecutor *ex, int i, int n);
-void emulate_storeb (OrcOpcodeExecutor *ex, int i, int n);
-void emulate_subb (OrcOpcodeExecutor *ex, int i, int n);
-void emulate_subssb (OrcOpcodeExecutor *ex, int i, int n);
-void emulate_subusb (OrcOpcodeExecutor *ex, int i, int n);
-void emulate_xorb (OrcOpcodeExecutor *ex, int i, int n);
-void emulate_absw (OrcOpcodeExecutor *ex, int i, int n);
-void emulate_addw (OrcOpcodeExecutor *ex, int i, int n);
-void emulate_addssw (OrcOpcodeExecutor *ex, int i, int n);
-void emulate_addusw (OrcOpcodeExecutor *ex, int i, int n);
-void emulate_andw (OrcOpcodeExecutor *ex, int i, int n);
-void emulate_andnw (OrcOpcodeExecutor *ex, int i, int n);
-void emulate_avgsw (OrcOpcodeExecutor *ex, int i, int n);
-void emulate_avguw (OrcOpcodeExecutor *ex, int i, int n);
-void emulate_cmpeqw (OrcOpcodeExecutor *ex, int i, int n);
-void emulate_cmpgtsw (OrcOpcodeExecutor *ex, int i, int n);
-void emulate_copyw (OrcOpcodeExecutor *ex, int i, int n);
-void emulate_div255w (OrcOpcodeExecutor *ex, int i, int n);
-void emulate_divluw (OrcOpcodeExecutor *ex, int i, int n);
-void emulate_loadw (OrcOpcodeExecutor *ex, int i, int n);
-void emulate_loadoffw (OrcOpcodeExecutor *ex, int i, int n);
-void emulate_loadpw (OrcOpcodeExecutor *ex, int i, int n);
-void emulate_maxsw (OrcOpcodeExecutor *ex, int i, int n);
-void emulate_maxuw (OrcOpcodeExecutor *ex, int i, int n);
-void emulate_minsw (OrcOpcodeExecutor *ex, int i, int n);
-void emulate_minuw (OrcOpcodeExecutor *ex, int i, int n);
-void emulate_mullw (OrcOpcodeExecutor *ex, int i, int n);
-void emulate_mulhsw (OrcOpcodeExecutor *ex, int i, int n);
-void emulate_mulhuw (OrcOpcodeExecutor *ex, int i, int n);
-void emulate_orw (OrcOpcodeExecutor *ex, int i, int n);
-void emulate_shlw (OrcOpcodeExecutor *ex, int i, int n);
-void emulate_shrsw (OrcOpcodeExecutor *ex, int i, int n);
-void emulate_shruw (OrcOpcodeExecutor *ex, int i, int n);
-void emulate_signw (OrcOpcodeExecutor *ex, int i, int n);
-void emulate_storew (OrcOpcodeExecutor *ex, int i, int n);
-void emulate_subw (OrcOpcodeExecutor *ex, int i, int n);
-void emulate_subssw (OrcOpcodeExecutor *ex, int i, int n);
-void emulate_subusw (OrcOpcodeExecutor *ex, int i, int n);
-void emulate_xorw (OrcOpcodeExecutor *ex, int i, int n);
-void emulate_absl (OrcOpcodeExecutor *ex, int i, int n);
-void emulate_addl (OrcOpcodeExecutor *ex, int i, int n);
-void emulate_addssl (OrcOpcodeExecutor *ex, int i, int n);
-void emulate_addusl (OrcOpcodeExecutor *ex, int i, int n);
-void emulate_andl (OrcOpcodeExecutor *ex, int i, int n);
-void emulate_andnl (OrcOpcodeExecutor *ex, int i, int n);
-void emulate_avgsl (OrcOpcodeExecutor *ex, int i, int n);
-void emulate_avgul (OrcOpcodeExecutor *ex, int i, int n);
-void emulate_cmpeql (OrcOpcodeExecutor *ex, int i, int n);
-void emulate_cmpgtsl (OrcOpcodeExecutor *ex, int i, int n);
-void emulate_copyl (OrcOpcodeExecutor *ex, int i, int n);
-void emulate_loadl (OrcOpcodeExecutor *ex, int i, int n);
-void emulate_loadoffl (OrcOpcodeExecutor *ex, int i, int n);
-void emulate_loadpl (OrcOpcodeExecutor *ex, int i, int n);
-void emulate_maxsl (OrcOpcodeExecutor *ex, int i, int n);
-void emulate_maxul (OrcOpcodeExecutor *ex, int i, int n);
-void emulate_minsl (OrcOpcodeExecutor *ex, int i, int n);
-void emulate_minul (OrcOpcodeExecutor *ex, int i, int n);
-void emulate_mulll (OrcOpcodeExecutor *ex, int i, int n);
-void emulate_mulhsl (OrcOpcodeExecutor *ex, int i, int n);
-void emulate_mulhul (OrcOpcodeExecutor *ex, int i, int n);
-void emulate_orl (OrcOpcodeExecutor *ex, int i, int n);
-void emulate_shll (OrcOpcodeExecutor *ex, int i, int n);
-void emulate_shrsl (OrcOpcodeExecutor *ex, int i, int n);
-void emulate_shrul (OrcOpcodeExecutor *ex, int i, int n);
-void emulate_signl (OrcOpcodeExecutor *ex, int i, int n);
-void emulate_storel (OrcOpcodeExecutor *ex, int i, int n);
-void emulate_subl (OrcOpcodeExecutor *ex, int i, int n);
-void emulate_subssl (OrcOpcodeExecutor *ex, int i, int n);
-void emulate_subusl (OrcOpcodeExecutor *ex, int i, int n);
-void emulate_xorl (OrcOpcodeExecutor *ex, int i, int n);
-void emulate_loadq (OrcOpcodeExecutor *ex, int i, int n);
-void emulate_loadpq (OrcOpcodeExecutor *ex, int i, int n);
-void emulate_storeq (OrcOpcodeExecutor *ex, int i, int n);
-void emulate_splatw3q (OrcOpcodeExecutor *ex, int i, int n);
-void emulate_copyq (OrcOpcodeExecutor *ex, int i, int n);
-void emulate_cmpeqq (OrcOpcodeExecutor *ex, int i, int n);
-void emulate_cmpgtsq (OrcOpcodeExecutor *ex, int i, int n);
-void emulate_andq (OrcOpcodeExecutor *ex, int i, int n);
-void emulate_andnq (OrcOpcodeExecutor *ex, int i, int n);
-void emulate_orq (OrcOpcodeExecutor *ex, int i, int n);
-void emulate_xorq (OrcOpcodeExecutor *ex, int i, int n);
-void emulate_addq (OrcOpcodeExecutor *ex, int i, int n);
-void emulate_subq (OrcOpcodeExecutor *ex, int i, int n);
-void emulate_shlq (OrcOpcodeExecutor *ex, int i, int n);
-void emulate_shrsq (OrcOpcodeExecutor *ex, int i, int n);
-void emulate_shruq (OrcOpcodeExecutor *ex, int i, int n);
-void emulate_convsbw (OrcOpcodeExecutor *ex, int i, int n);
-void emulate_convubw (OrcOpcodeExecutor *ex, int i, int n);
-void emulate_splatbw (OrcOpcodeExecutor *ex, int i, int n);
-void emulate_splatbl (OrcOpcodeExecutor *ex, int i, int n);
-void emulate_convswl (OrcOpcodeExecutor *ex, int i, int n);
-void emulate_convuwl (OrcOpcodeExecutor *ex, int i, int n);
-void emulate_convslq (OrcOpcodeExecutor *ex, int i, int n);
-void emulate_convulq (OrcOpcodeExecutor *ex, int i, int n);
-void emulate_convwb (OrcOpcodeExecutor *ex, int i, int n);
-void emulate_convhwb (OrcOpcodeExecutor *ex, int i, int n);
-void emulate_convssswb (OrcOpcodeExecutor *ex, int i, int n);
-void emulate_convsuswb (OrcOpcodeExecutor *ex, int i, int n);
-void emulate_convusswb (OrcOpcodeExecutor *ex, int i, int n);
-void emulate_convuuswb (OrcOpcodeExecutor *ex, int i, int n);
-void emulate_convlw (OrcOpcodeExecutor *ex, int i, int n);
-void emulate_convhlw (OrcOpcodeExecutor *ex, int i, int n);
-void emulate_convssslw (OrcOpcodeExecutor *ex, int i, int n);
-void emulate_convsuslw (OrcOpcodeExecutor *ex, int i, int n);
-void emulate_convusslw (OrcOpcodeExecutor *ex, int i, int n);
-void emulate_convuuslw (OrcOpcodeExecutor *ex, int i, int n);
-void emulate_convql (OrcOpcodeExecutor *ex, int i, int n);
-void emulate_convsssql (OrcOpcodeExecutor *ex, int i, int n);
-void emulate_convsusql (OrcOpcodeExecutor *ex, int i, int n);
-void emulate_convussql (OrcOpcodeExecutor *ex, int i, int n);
-void emulate_convuusql (OrcOpcodeExecutor *ex, int i, int n);
-void emulate_mulsbw (OrcOpcodeExecutor *ex, int i, int n);
-void emulate_mulubw (OrcOpcodeExecutor *ex, int i, int n);
-void emulate_mulswl (OrcOpcodeExecutor *ex, int i, int n);
-void emulate_muluwl (OrcOpcodeExecutor *ex, int i, int n);
-void emulate_mulslq (OrcOpcodeExecutor *ex, int i, int n);
-void emulate_mululq (OrcOpcodeExecutor *ex, int i, int n);
-void emulate_accw (OrcOpcodeExecutor *ex, int i, int n);
-void emulate_accl (OrcOpcodeExecutor *ex, int i, int n);
-void emulate_accsadubl (OrcOpcodeExecutor *ex, int i, int n);
-void emulate_swapw (OrcOpcodeExecutor *ex, int i, int n);
-void emulate_swapl (OrcOpcodeExecutor *ex, int i, int n);
-void emulate_swapwl (OrcOpcodeExecutor *ex, int i, int n);
-void emulate_swapq (OrcOpcodeExecutor *ex, int i, int n);
-void emulate_swaplq (OrcOpcodeExecutor *ex, int i, int n);
-void emulate_select0wb (OrcOpcodeExecutor *ex, int i, int n);
-void emulate_select1wb (OrcOpcodeExecutor *ex, int i, int n);
-void emulate_select0lw (OrcOpcodeExecutor *ex, int i, int n);
-void emulate_select1lw (OrcOpcodeExecutor *ex, int i, int n);
-void emulate_select0ql (OrcOpcodeExecutor *ex, int i, int n);
-void emulate_select1ql (OrcOpcodeExecutor *ex, int i, int n);
-void emulate_mergelq (OrcOpcodeExecutor *ex, int i, int n);
-void emulate_mergewl (OrcOpcodeExecutor *ex, int i, int n);
-void emulate_mergebw (OrcOpcodeExecutor *ex, int i, int n);
-void emulate_splitql (OrcOpcodeExecutor *ex, int i, int n);
-void emulate_splitlw (OrcOpcodeExecutor *ex, int i, int n);
-void emulate_splitwb (OrcOpcodeExecutor *ex, int i, int n);
-void emulate_addf (OrcOpcodeExecutor *ex, int i, int n);
-void emulate_subf (OrcOpcodeExecutor *ex, int i, int n);
-void emulate_mulf (OrcOpcodeExecutor *ex, int i, int n);
-void emulate_divf (OrcOpcodeExecutor *ex, int i, int n);
-void emulate_sqrtf (OrcOpcodeExecutor *ex, int i, int n);
-void emulate_maxf (OrcOpcodeExecutor *ex, int i, int n);
-void emulate_minf (OrcOpcodeExecutor *ex, int i, int n);
-void emulate_cmpeqf (OrcOpcodeExecutor *ex, int i, int n);
-void emulate_cmpltf (OrcOpcodeExecutor *ex, int i, int n);
-void emulate_cmplef (OrcOpcodeExecutor *ex, int i, int n);
-void emulate_convfl (OrcOpcodeExecutor *ex, int i, int n);
-void emulate_convlf (OrcOpcodeExecutor *ex, int i, int n);
-void emulate_addd (OrcOpcodeExecutor *ex, int i, int n);
-void emulate_subd (OrcOpcodeExecutor *ex, int i, int n);
-void emulate_muld (OrcOpcodeExecutor *ex, int i, int n);
-void emulate_divd (OrcOpcodeExecutor *ex, int i, int n);
-void emulate_sqrtd (OrcOpcodeExecutor *ex, int i, int n);
-void emulate_maxd (OrcOpcodeExecutor *ex, int i, int n);
-void emulate_mind (OrcOpcodeExecutor *ex, int i, int n);
-void emulate_cmpeqd (OrcOpcodeExecutor *ex, int i, int n);
-void emulate_cmpltd (OrcOpcodeExecutor *ex, int i, int n);
-void emulate_cmpled (OrcOpcodeExecutor *ex, int i, int n);
-void emulate_convdl (OrcOpcodeExecutor *ex, int i, int n);
-void emulate_convld (OrcOpcodeExecutor *ex, int i, int n);
-void emulate_convfd (OrcOpcodeExecutor *ex, int i, int n);
-void emulate_convdf (OrcOpcodeExecutor *ex, int i, int n);
-
-#endif
-
View
77 xcode/include/orc-0.4/orc/orcfunctions.h
@@ -1,77 +0,0 @@
-
-/* autogenerated from orcfunctions.orc */
-
-#ifndef _ORCFUNCTIONS_H_
-#define _ORCFUNCTIONS_H_
-
-
-#ifdef __cplusplus
-extern "C" {
-#endif
-
-
-
-#ifndef _ORC_INTEGER_TYPEDEFS_
-#define _ORC_INTEGER_TYPEDEFS_
-#if defined(__STDC_VERSION__) && __STDC_VERSION__ >= 199901L
-#include <stdint.h>
-typedef int8_t orc_int8;
-typedef int16_t orc_int16;
-typedef int32_t orc_int32;
-typedef int64_t orc_int64;
-typedef uint8_t orc_uint8;
-typedef uint16_t orc_uint16;
-typedef uint32_t orc_uint32;
-typedef uint64_t orc_uint64;
-#define ORC_UINT64_C(x) UINT64_C(x)
-#elif defined(_MSC_VER)
-typedef signed __int8 orc_int8;
-typedef signed __int16 orc_int16;
-typedef signed __int32 orc_int32;
-typedef signed __int64 orc_int64;
-typedef unsigned __int8 orc_uint8;
-typedef unsigned __int16 orc_uint16;
-typedef unsigned __int32 orc_uint32;
-typedef unsigned __int64 orc_uint64;
-#define ORC_UINT64_C(x) (x##Ui64)
-#define inline __inline
-#else
-#include <limits.h>
-typedef signed char orc_int8;
-typedef short orc_int16;
-typedef int orc_int32;
-typedef unsigned char orc_uint8;
-typedef unsigned short orc_uint16;
-typedef unsigned int orc_uint32;
-#if INT_MAX == LONG_MAX
-typedef long long orc_int64;
-typedef unsigned long long orc_uint64;
-#define ORC_UINT64_C(x) (x##ULL)
-#else
-typedef long orc_int64;
-typedef unsigned long orc_uint64;
-#define ORC_UINT64_C(x) (x##UL)
-#endif
-#endif
-typedef union { orc_int16 i; orc_int8 x2[2]; } orc_union16;
-typedef union { orc_int32 i; float f; orc_int16 x2[2]; orc_int8 x4[4]; } orc_union32;
-typedef union { orc_int64 i; double f; orc_int32 x2[2]; float x2f[2]; orc_int16 x4[4]; } orc_union64;
-#endif
-#ifndef ORC_RESTRICT
-#if defined(__STDC_VERSION__) && __STDC_VERSION__ >= 199901L
-#define ORC_RESTRICT restrict
-#elif defined(__GNUC__) && __GNUC__ >= 4
-#define ORC_RESTRICT __restrict__
-#else
-#define ORC_RESTRICT
-#endif
-#endif
-void orc_memcpy (void * ORC_RESTRICT d1, const void * ORC_RESTRICT s1, int n);
-void orc_memset (void * ORC_RESTRICT d1, int p1, int n);
-
-#ifdef __cplusplus
-}
-#endif
-
-#endif
-
View
84 xcode/include/orc-0.4/orc/orcmmx.h
@@ -1,84 +0,0 @@
-
-#ifndef _ORC_MMX_H_
-#define _ORC_MMX_H_
-
-#include <orc/orcx86.h>
-#include <orc/orcx86insn.h>
-
-ORC_BEGIN_DECLS
-
-typedef enum {
- ORC_TARGET_MMX_MMX = (1<<0),
- ORC_TARGET_MMX_MMXEXT = (1<<1),
- ORC_TARGET_MMX_3DNOW = (1<<2),
- ORC_TARGET_MMX_3DNOWEXT = (1<<3),
- ORC_TARGET_MMX_SSSE3 = (1<<4),
- ORC_TARGET_MMX_SSE4_1 = (1<<5),
- ORC_TARGET_MMX_SSE4_2 = (1<<6),
- ORC_TARGET_MMX_FRAME_POINTER = (1<<7),
- ORC_TARGET_MMX_SHORT_JUMPS = (1<<8),
- ORC_TARGET_MMX_64BIT = (1<<9)
-} OrcTargetMMXFlags;
-
-#ifdef ORC_ENABLE_UNSTABLE_API
-
-typedef enum {
- X86_MM0 = ORC_VEC_REG_BASE,
- X86_MM1,
- X86_MM2,
- X86_MM3,
- X86_MM4,
- X86_MM5,
- X86_MM6,
- X86_MM7
-} OrcMMXRegister;
-
-#define ORC_MMX_SHUF(a,b,c,d) ((((a)&3)<<6)|(((b)&3)<<4)|(((c)&3)<<2)|(((d)&3)<<0))
-
-const char * orc_x86_get_regname_mmx(int i);
-void orc_x86_emit_mov_memoffset_mmx (OrcCompiler *compiler, int size, int offset,
- int reg1, int reg2, int is_aligned);
-void orc_x86_emit_mov_memindex_mmx (OrcCompiler *compiler, int size, int offset,
- int reg1, int regindex, int shift, int reg2, int is_aligned);
-void orc_x86_emit_mov_mmx_memoffset (OrcCompiler *compiler, int size, int reg1, int offset,
- int reg2, int aligned, int uncached);
-#if 0
-void orc_x86_emit_mov_mmx_reg_reg (OrcCompiler *compiler, int reg1, int reg2);
-void orc_x86_emit_mov_reg_mmx (OrcCompiler *compiler, int reg1, int reg2);
-void orc_x86_emit_mov_mmx_reg (OrcCompiler *compiler, int reg1, int reg2);
-void orc_mmx_emit_loadib (OrcCompiler *p, int reg, int value);
-void orc_mmx_emit_loadiw (OrcCompiler *p, int reg, int value);
-void orc_mmx_emit_loadil (OrcCompiler *p, int reg, int value);
-void orc_mmx_emit_loadpb (OrcCompiler *p, int reg, int value);
-void orc_mmx_emit_loadpw (OrcCompiler *p, int reg, int value);
-void orc_mmx_emit_loadpl (OrcCompiler *p, int reg, int value);
-void orc_mmx_emit_loadpq (OrcCompiler *p, int reg, int value);
-
-void orc_mmx_emit_660f (OrcCompiler *p, const char *insn_name, int code,
- int src, int dest);
-void orc_mmx_emit_f20f (OrcCompiler *p, const char *insn_name, int code,
- int src, int dest);
-void orc_mmx_emit_f30f (OrcCompiler *p, const char *insn_name, int code,
- int src, int dest);
-void orc_mmx_emit_0f (OrcCompiler *p, const char *insn_name, int code,
- int src, int dest);
-void orc_mmx_emit_pshufw (OrcCompiler *p, int shuf, int src, int dest);
-void orc_mmx_emit_palignr (OrcCompiler *p, int align, int src, int dest);
-void orc_mmx_emit_pinsrw_memoffset (OrcCompiler *p, int imm, int offset,
- int src, int dest);
-void orc_mmx_emit_pextrw_memoffset (OrcCompiler *p, int imm, int src,
- int offset, int dest);
-void orc_mmx_emit_shiftimm (OrcCompiler *p, const char *insn_name,
- int code, int modrm_code, int shift, int reg);
-#endif
-unsigned int orc_mmx_get_cpu_flags (void);
-
-void orc_mmx_load_constant (OrcCompiler *compiler, int reg, int size,
- orc_uint64 value);
-
-#endif
-
-ORC_END_DECLS
-
-#endif
-
View
43 xcode/include/orc-0.4/orc/orcneon.h
@@ -1,43 +0,0 @@
-
-#ifndef _ORC_NEON_H_
-#define _ORC_NEON_H_
-
-#include <orc/orc.h>
-#include <orc/orcarm.h>
-
-ORC_BEGIN_DECLS
-
-#ifdef ORC_ENABLE_UNSTABLE_API
-
-const char *orc_neon_reg_name (int reg);
-const char *orc_neon_reg_name_quad (int reg);
-
-void orc_neon_loadb (OrcCompiler *compiler, OrcVariable *var, int update);
-void orc_neon_loadw (OrcCompiler *compiler, OrcVariable *var, int update);
-void orc_neon_loadl (OrcCompiler *compiler, OrcVariable *var, int update);
-void orc_neon_loadq (OrcCompiler *compiler, int dest, int src1, int update, int is_aligned);
-
-void orc_neon_load_vec_aligned (OrcCompiler *compiler, OrcVariable *var, int update);
-void orc_neon_load_vec_unaligned (OrcCompiler *compiler, OrcVariable *var, int update);
-void orc_neon_load_halfvec_unaligned (OrcCompiler *compiler, OrcVariable *var, int update);
-
-void orc_neon_neg (OrcCompiler *compiler, int dest);
-void orc_neon_storeb (OrcCompiler *compiler, int dest, int update, int src1, int is_aligned);
-void orc_neon_storew (OrcCompiler *compiler, int dest, int update, int src1, int is_aligned);
-void orc_neon_storel (OrcCompiler *compiler, int dest, int update, int src1, int is_aligned);
-void orc_neon_storeq (OrcCompiler *compiler, int dest, int update, int src1, int is_aligned);
-void orc_neon_emit_loadib (OrcCompiler *p, int reg, int value);
-void orc_neon_emit_loadiw (OrcCompiler *p, int reg, int value);
-void orc_neon_emit_loadil (OrcCompiler *p, int reg, int value);
-void orc_neon_emit_loadpb (OrcCompiler *p, int reg, int param);
-void orc_neon_emit_loadpw (OrcCompiler *p, int reg, int param);
-void orc_neon_emit_loadpl (OrcCompiler *p, int reg, int param);
-void orc_neon_preload (OrcCompiler *compiler, OrcVariable *var, int write,
- int offset);
-
-#endif
-
-ORC_END_DECLS
-
-#endif
-
View
24 xcode/include/orc-0.4/orc/orconce.h
@@ -1,24 +0,0 @@
-
-#ifndef _ORC_ONCE_H_
-#define _ORC_ONCE_H_
-
-#include <orc/orcutils.h>
-
-ORC_BEGIN_DECLS
-
-typedef struct _OrcMutex OrcMutex;
-
-typedef struct _OrcOnce OrcOnce;
-
-struct _OrcOnce {
- int inited;
- void *value;
-};
-
-void orc_once_mutex_lock (void);
-void orc_once_mutex_unlock (void);
-
-ORC_END_DECLS
-
-#endif
-
View
16 xcode/include/orc-0.4/orc/orcparse.h
@@ -1,16 +0,0 @@
-
-#ifndef __ORC_PARSE_H__
-#define __ORC_PARSE_H__
-
-#include <orc/orcutils.h>
-
-ORC_BEGIN_DECLS
-
-int orc_parse (const char *code, OrcProgram ***programs);
-int orc_parse_full (const char *code, OrcProgram ***programs, char **log);
-const char * orc_parse_get_init_function (OrcProgram *program);
-
-ORC_END_DECLS
-
-#endif
-
View
183 xcode/include/orc-0.4/orc/orcpowerpc.h
@@ -1,183 +0,0 @@
-
-#ifndef _ORC_POWERPC_H_
-#define _ORC_POWERPC_H_
-
-#include <orc/orcprogram.h>
-
-ORC_BEGIN_DECLS
-
-#ifdef ORC_ENABLE_UNSTABLE_API
-
-enum {
- POWERPC_R0 = ORC_GP_REG_BASE,
- POWERPC_R1,
- POWERPC_R2,
- POWERPC_R3,
- POWERPC_R4,
- POWERPC_R5,
- POWERPC_R6,
- POWERPC_R7,
- POWERPC_R8,
- POWERPC_R9,
- POWERPC_R10,
- POWERPC_R11,
- POWERPC_R12,
- POWERPC_R13,
- POWERPC_R14,
- POWERPC_R15,
- POWERPC_R16,
- POWERPC_R17,
- POWERPC_R18,
- POWERPC_R19,
- POWERPC_R20,
- POWERPC_R21,
- POWERPC_R22,
- POWERPC_R23,
- POWERPC_R24,
- POWERPC_R25,
- POWERPC_R26,
- POWERPC_R27,
- POWERPC_R28,
- POWERPC_R29,
- POWERPC_R30,
- POWERPC_R31,
- POWERPC_V0 = ORC_VEC_REG_BASE,
- POWERPC_V1,
- POWERPC_V2,
- POWERPC_V3,
- POWERPC_V4,
- POWERPC_V5,
- POWERPC_V6,
- POWERPC_V7,
- POWERPC_V8,
- POWERPC_V9,
- POWERPC_V10,
- POWERPC_V11,
- POWERPC_V12,
- POWERPC_V13,
- POWERPC_V14,
- POWERPC_V15,
- POWERPC_V16,
- POWERPC_V17,
- POWERPC_V18,
- POWERPC_V19,
- POWERPC_V20,
- POWERPC_V21,
- POWERPC_V22,
- POWERPC_V23,
- POWERPC_V24,
- POWERPC_V25,
- POWERPC_V26,
- POWERPC_V27,
- POWERPC_V28,
- POWERPC_V29,
- POWERPC_V30,
- POWERPC_V31
-};
-
-const char * powerpc_get_regname(int i);
-int powerpc_regnum (int i);
-
-void powerpc_emit(OrcCompiler *compiler, unsigned int insn);
-
-void powerpc_emit_add (OrcCompiler *compiler, int regd, int rega, int regb);
-void powerpc_emit_addi_rec (OrcCompiler *compiler, int regd, int rega, int imm);
-void powerpc_emit_addi (OrcCompiler *compiler, int regd, int rega, int imm);
-void powerpc_emit_lwz (OrcCompiler *compiler, int regd, int rega, int imm);
-void powerpc_emit_stw (OrcCompiler *compiler, int regs, int rega, int offset);
-void powerpc_emit_stwu (OrcCompiler *compiler, int regs, int rega, int offset);
-
-void powerpc_emit_ret (OrcCompiler *compiler);
-void powerpc_emit_b (OrcCompiler *compiler, int label);
-void powerpc_emit_beq (OrcCompiler *compiler, int label);
-void powerpc_emit_bne (OrcCompiler *compiler, int label);
-void powerpc_emit_label (OrcCompiler *compiler, int label);
-void powerpc_add_fixup (OrcCompiler *compiler, int type, unsigned char *ptr, int label);
-void powerpc_do_fixups (OrcCompiler *compiler);
-void orc_powerpc_flush_cache (OrcCode *code);
-
-void powerpc_emit_srawi (OrcCompiler *compiler, int regd, int rega, int shift,
- int record);
-void powerpc_emit_655510 (OrcCompiler *compiler, int major, int d, int a,
- int b, int minor);
-void powerpc_emit_D (OrcCompiler *compiler, const char *name,
- unsigned int insn, int regd, int rega, int imm);
-void powerpc_emit_X (OrcCompiler *compiler, unsigned int insn, int d, int a,
- int b);
-void powerpc_emit_VA (OrcCompiler *compiler, const char *name, unsigned int insn, int d, int a, int b,
- int c);
-void powerpc_emit_VA_acb (OrcCompiler *compiler, const char *name, unsigned int insn, int d, int a, int b,
- int c);
-void powerpc_emit_VX (OrcCompiler *compiler, unsigned int insn, int d, int a,
- int b);
-void powerpc_emit_VX_b (OrcCompiler *p, const char *name, unsigned int insn, int a);
-void powerpc_emit_VX_db (OrcCompiler *p, const char *name, unsigned int insn, int d, int b);
-void powerpc_emit_VX_dbi (OrcCompiler *p, const char *name, unsigned int insn, int d, int b, int imm);
-void powerpc_emit_VXR (OrcCompiler *compiler, const char *name,
- unsigned int insn, int d, int a, int b, int record);
-void powerpc_emit_VX_2 (OrcCompiler *p, const char *name, unsigned int insn,
- int d, int a, int b);
-void powerpc_emit_VX_3 (OrcCompiler *p, const char *name, unsigned int insn,
- int d, int a, int b, int c);
-void powerpc_emit_VX_3_reg (OrcCompiler *p, const char *name, unsigned int insn,
- int d, int a, int b, int c);
-void powerpc_emit_VX_4 (OrcCompiler *p, const char *name, unsigned int insn,
- int d, int a);
-int powerpc_get_constant (OrcCompiler *p, int type, int value);
-int powerpc_get_constant_full (OrcCompiler *p, int value0, int value1, int value2, int value3);
-void powerpc_load_long_constant (OrcCompiler *p, int reg, orc_uint32 a,
- orc_uint32 b, orc_uint32 c, orc_uint32 d);
-
-/* instructions */
-#define powerpc_emit_vand(p,a,b,c) powerpc_emit_VX_2 (p, "vand", 0x10000404, a, b, c)
-#define powerpc_emit_vandc(p,a,b,c) powerpc_emit_VX_2 (p, "vandc", 0x10000444, a, b, c)
-
-#define powerpc_emit_vor(p,a,b,c) powerpc_emit_VX_2 (p, "vor", 0x10000484, a, b, c)
-#define powerpc_emit_vxor(p,a,b,c) powerpc_emit_VX_2 (p, "vxor", 0x100004c4, a, b, c)
-
-#define powerpc_emit_vmulesb(p,a,b,c) powerpc_emit_VX_2 (p, "vmulesb", 0x10000308, a, b, c)
-#define powerpc_emit_vmuleub(p,a,b,c) powerpc_emit_VX_2 (p, "vmuleub", 0x10000208, a, b, c)
-#define powerpc_emit_vmulesh(p,a,b,c) powerpc_emit_VX_2 (p, "vmulesh", 0x10000348, a, b, c)
-#define powerpc_emit_vmuleuh(p,a,b,c) powerpc_emit_VX_2 (p, "vmuleuh", 0x10000248, a, b, c)
-
-#define powerpc_emit_vmrghb(p,a,b,c) powerpc_emit_VX_2 (p, "vmrghb", 0x1000000c, a, b, c)
-#define powerpc_emit_vmrghh(p,a,b,c) powerpc_emit_VX_2 (p, "vmrghh", 0x1000004c, a, b, c)
-
-#define powerpc_emit_vpkshss(p,a,b,c) powerpc_emit_VX_2 (p, "vpkshss", 0x1000018e, a, b, c)
-#define powerpc_emit_vpkshus(p,a,b,c) powerpc_emit_VX_2 (p, "vpkshus", 0x1000010e, a, b, c)
-#define powerpc_emit_vpkswss(p,a,b,c) powerpc_emit_VX_2 (p, "vpkswss", 0x100001ce, a, b, c)
-#define powerpc_emit_vpkswus(p,a,b,c) powerpc_emit_VX_2 (p, "vpkswus", 0x1000014e, a, b, c)
-#define powerpc_emit_vpkuhus(p,a,b,c) powerpc_emit_VX_2 (p, "vpkuhus", 0x1000008e, a, b, c)
-#define powerpc_emit_vpkuhum(p,a,b,c) powerpc_emit_VX_2 (p, "vpkuhum", 0x1000000e, a, b, c)
-#define powerpc_emit_vpkuwus(p,a,b,c) powerpc_emit_VX_2 (p, "vpkuwus", 0x100000ce, a, b, c)
-#define powerpc_emit_vpkuwum(p,a,b,c) powerpc_emit_VX_2 (p, "vpkuwum", 0x1000004e, a, b, c)
-
-#define powerpc_emit_vadduhm(p,a,b,c) powerpc_emit_VX_2 (p, "vadduhm", 0x10000040, a, b, c)
-#define powerpc_emit_vadduwm(p,a,b,c) powerpc_emit_VX_2 (p, "vadduwm", 0x10000080, a, b, c)
-#define powerpc_emit_vsububm(p,a,b,c) powerpc_emit_VX_2 (p, "vsububm", 0x10000400, a, b, c)
-#define powerpc_emit_vsum4ubs(p,a,b,c) powerpc_emit_VX_2 (p, "vsum4ubs", 0x10000608, a, b, c)
-
-#define powerpc_emit_vmaxub(p,a,b,c) powerpc_emit_VX_2 (p, "vmaxub", 0x10000002, a, b, c)
-#define powerpc_emit_vmaxsb(p,a,b,c) powerpc_emit_VX_2 (p, "vmaxsb", 0x10000102, a, b, c)
-#define powerpc_emit_vmaxsh(p,a,b,c) powerpc_emit_VX_2 (p, "vmaxsh", 0x10000142, a, b, c)
-#define powerpc_emit_vmaxsw(p,a,b,c) powerpc_emit_VX_2 (p, "vmaxsw", 0x10000182, a, b, c)
-
-#define powerpc_emit_vminub(p,a,b,c) powerpc_emit_VX_2 (p, "vminub", 0x10000202, a, b, c)
-#define powerpc_emit_vminsb(p,a,b,c) powerpc_emit_VX_2 (p, "vminsb", 0x10000302, a, b, c)
-#define powerpc_emit_vminsh(p,a,b,c) powerpc_emit_VX_2 (p, "vminsh", 0x10000342, a, b, c)
-#define powerpc_emit_vminsw(p,a,b,c) powerpc_emit_VX_2 (p, "vminsw", 0x10000382, a, b, c)
-
-#define powerpc_emit_vsldoi(p,a,b,c,d) powerpc_emit_VX_3 (p, "vsldoi", 0x1000002c | (d<<6), a, b, c, d)
-#define powerpc_emit_vmladduhm(p,a,b,c,d) powerpc_emit_VA (p, "vmladduhm", 0x10000022, a, b, c, d)
-
-#define powerpc_emit_vupkhsb(p,a,b) powerpc_emit_VX_4 (p, "vupkhsb", 0x1000020e, a, b)
-#define powerpc_emit_vupkhsh(p,a,b) powerpc_emit_VX_4 (p, "vupkhsh", 0x1000024e, a, b)
-
-#define powerpc_emit_vperm(p,a,b,c,d) powerpc_emit_VA (p, "vperm", 0x1000002b, a, b, c, d)
-
-#endif
-
-ORC_END_DECLS
-
-#endif
-
View
818 xcode/include/orc-0.4/orc/orcprogram.h
@@ -1,818 +0,0 @@
-
-#ifndef _ORC_PROGRAM_H_
-#define _ORC_PROGRAM_H_
-
-#include <orc/orcutils.h>
-
-ORC_BEGIN_DECLS
-
-typedef struct _OrcOpcodeExecutor OrcOpcodeExecutor;
-typedef struct _OrcExecutor OrcExecutor;
-typedef struct _OrcExecutorAlt OrcExecutorAlt;
-typedef struct _OrcVariable OrcVariable;
-typedef struct _OrcOpcodeSet OrcOpcodeSet;
-typedef struct _OrcStaticOpcode OrcStaticOpcode;
-typedef struct _OrcInstruction OrcInstruction;
-typedef struct _OrcProgram OrcProgram;
-typedef struct _OrcCompiler OrcCompiler;
-typedef struct _OrcRule OrcRule;
-typedef struct _OrcRuleSet OrcRuleSet;
-typedef struct _OrcConstant OrcConstant;
-typedef struct _OrcFixup OrcFixup;
-typedef struct _OrcTarget OrcTarget;
-typedef struct _OrcCode OrcCode;
-typedef struct _OrcCodeChunk OrcCodeChunk;
-typedef struct _OrcBytecode OrcBytecode;
-
-typedef void (*OrcOpcodeEmulateFunc)(OrcOpcodeExecutor *ex, void *user);
-typedef void (*OrcOpcodeEmulateNFunc)(OrcOpcodeExecutor *ex, int index, int n);
-typedef void (*OrcOpcodeEmulate16Func)(OrcOpcodeExecutor *ex);
-typedef void (*OrcRuleEmitFunc)(OrcCompiler *p, void *user, OrcInstruction *insn);
-typedef void (*OrcExecutorFunc)(OrcExecutor *ex);
-
-#define ORC_N_REGS (32*4)
-#define ORC_N_INSNS 100
-#define ORC_N_VARIABLES 64
-#define ORC_N_ARRAYS 12
-#define ORC_N_REGISTERS 20
-#define ORC_N_FIXUPS 100
-#define ORC_N_CONSTANTS 20
-#define ORC_N_LABELS 40
-#define ORC_N_COMPILER_VARIABLES (ORC_N_VARIABLES+32)
-
-#define ORC_GP_REG_BASE 32
-#define ORC_VEC_REG_BASE 64
-#define ORC_REG_INVALID 0
-
-#define ORC_STATIC_OPCODE_N_SRC 4
-#define ORC_STATIC_OPCODE_N_DEST 2
-
-#define ORC_OPCODE_N_ARGS 4
-#define ORC_N_TARGETS 10
-#define ORC_N_RULE_SETS 10
-
-#define ORC_MAX_VAR_SIZE 8
-
-#ifndef TRUE
-#define TRUE 1
-#endif
-#ifndef FALSE
-#define FALSE 0
-#endif
-
-#define ORC_ENABLE_ASM_CODE
-#ifdef ORC_ENABLE_ASM_CODE
-#define ORC_ASM_CODE(compiler,...) orc_compiler_append_code(compiler, __VA_ARGS__)
-#else
-#define ORC_ASM_CODE(compiler,...)
-#endif
-
-#define ORC_PROGRAM_ERROR(program, ...) do { \
- program->error = TRUE; \
- orc_debug_print(ORC_DEBUG_WARNING, __FILE__, ORC_FUNCTION, __LINE__, __VA_ARGS__); \
-} while (0)
-
-#define ORC_COMPILER_ERROR(compiler, ...) do { \
- compiler->error = TRUE; \
- compiler->result = ORC_COMPILE_RESULT_UNKNOWN_PARSE; \
- orc_debug_print(ORC_DEBUG_WARNING, __FILE__, ORC_FUNCTION, __LINE__, __VA_ARGS__); \
-} while (0)
-
-enum {
- ORC_TARGET_C_C99 = (1<<0),
- ORC_TARGET_C_BARE = (1<<1),
- ORC_TARGET_C_NOEXEC = (1<<2),
- ORC_TARGET_C_OPCODE = (1<<3),
- ORC_TARGET_CLEAN_COMPILE = (1<<29),
- ORC_TARGET_FAST_NAN = (1<<30),
- ORC_TARGET_FAST_DENORMAL = (1<<31)
-};
-
-enum {
- ORC_TARGET_ALTIVEC_ALTIVEC = (1<<0)
-};
-
-enum {
- ORC_TARGET_NEON_CLEAN_COMPILE = (1<<0),
- ORC_TARGET_NEON_NEON = (1<<1),
- ORC_TARGET_NEON_EDSP = (1<<2)
-};
-
-enum {
- ORC_TARGET_ARM_EDSP = (1<<2),
- ORC_TARGET_ARM_ARM6 = (1<<3)
-};
-
-typedef enum {
- ORC_VAR_TYPE_TEMP,
- ORC_VAR_TYPE_SRC,
- ORC_VAR_TYPE_DEST,
- ORC_VAR_TYPE_CONST,
- ORC_VAR_TYPE_PARAM,
- ORC_VAR_TYPE_ACCUMULATOR
-} OrcVarType;
-
-enum {
- ORC_VAR_D1,
- ORC_VAR_D2,
- ORC_VAR_D3,
- ORC_VAR_D4,
- ORC_VAR_S1,
- ORC_VAR_S2,
- ORC_VAR_S3,
- ORC_VAR_S4,
- ORC_VAR_S5,
- ORC_VAR_S6,
- ORC_VAR_S7,
- ORC_VAR_S8,
- ORC_VAR_A1,
- ORC_VAR_A2,
- ORC_VAR_A3,
- ORC_VAR_A4,
- ORC_VAR_C1,
- ORC_VAR_C2,
- ORC_VAR_C3,
- ORC_VAR_C4,
- ORC_VAR_C5,
- ORC_VAR_C6,
- ORC_VAR_C7,
- ORC_VAR_C8,
- ORC_VAR_P1,
- ORC_VAR_P2,
- ORC_VAR_P3,
- ORC_VAR_P4,
- ORC_VAR_P5,
- ORC_VAR_P6,
- ORC_VAR_P7,
- ORC_VAR_P8,
- ORC_VAR_T1,
- ORC_VAR_T2,
- ORC_VAR_T3,
- ORC_VAR_T4,
- ORC_VAR_T5,
- ORC_VAR_T6,
- ORC_VAR_T7,
- ORC_VAR_T8,
- ORC_VAR_T9,
- ORC_VAR_T10,
- ORC_VAR_T11,
- ORC_VAR_T12,
- ORC_VAR_T13,
- ORC_VAR_T14,
- ORC_VAR_T15,
- ORC_VAR_T16
-};
-
-enum {
- ORC_CONST_ZERO,
- ORC_CONST_SPLAT_B,
- ORC_CONST_SPLAT_W,
- ORC_CONST_SPLAT_L,
- ORC_CONST_FULL
-};
-
-enum {
- ORC_SAMPLE_REGULAR = 0,
- ORC_SAMPLE_TRANSPOSED,
- ORC_SAMPLE_NEAREST,
- ORC_SAMPLE_BILINEAR,
- ORC_SAMPLE_FOUR_TAP
-};
-
-enum {
- ORC_PARAM_TYPE_INT = 0,
- ORC_PARAM_TYPE_FLOAT,
- ORC_PARAM_TYPE_INT64,
- ORC_PARAM_TYPE_DOUBLE
-};
-
-typedef enum {
- ORC_COMPILE_RESULT_OK = 0,
-
- ORC_COMPILE_RESULT_UNKNOWN_COMPILE = 0x100,
- ORC_COMPILE_RESULT_MISSING_RULE = 0x101,
-
- ORC_COMPILE_RESULT_UNKNOWN_PARSE = 0x200,
- ORC_COMPILE_RESULT_PARSE = 0x201,
- ORC_COMPILE_RESULT_VARIABLE = 0x202
-
-} OrcCompileResult;
-
-#define ORC_COMPILE_RESULT_IS_SUCCESSFUL(x) ((x) < 0x100)
-#define ORC_COMPILE_RESULT_IS_FATAL(x) ((x) >= 0x200)
-
-/**
- * OrcVariable:
- *
- * The OrcVariable structure has no public members
- */
-struct _OrcVariable {
- /*< private >*/
- char *name;
- char *type_name;
-
- int size;
- OrcVarType vartype;
-
- int used;
- int first_use;
- int last_use;
- int replaced;
- int replacement;
-
- int alloc;
- int is_chained;
- int is_aligned;
- int alignment;
- int is_uncached;
-
- orc_union64 value;
-
- int ptr_register;
- int ptr_offset;
- int mask_alloc;
- int aligned_data;
- int param_type;
- int load_dest;
- int update_type;
- int need_offset_reg;
-};
-
-/**
- * OrcRule:
- *
- * The OrcRule structure has no public members
- */
-struct _OrcRule {
- /*< private >*/
- OrcRuleEmitFunc emit;
- void *emit_user;
-};
-
-/**
- * OrcRuleSet:
- *
- * The OrcRuleSet structure has no public members
- */
-struct _OrcRuleSet {
- /*< private >*/
- int opcode_major;
- int required_target_flags;
-
- OrcRule *rules;
- int n_rules;
-};
-
-/**
- * OrcOpcodeSet:
- *
- * The OrcOpcodeSet structure has no public members
- */
-struct _OrcOpcodeSet {
- /*< private >*/
- int opcode_major;
- char prefix[8];
-
- int n_opcodes;
- OrcStaticOpcode *opcodes;
-};
-
-#define ORC_STATIC_OPCODE_ACCUMULATOR (1<<0)
-#define ORC_STATIC_OPCODE_FLOAT_SRC (1<<1)
-#define ORC_STATIC_OPCODE_FLOAT_DEST (1<<2)
-#define ORC_STATIC_OPCODE_FLOAT (ORC_STATIC_OPCODE_FLOAT_SRC|ORC_STATIC_OPCODE_FLOAT_DEST)
-#define ORC_STATIC_OPCODE_SCALAR (1<<3)
-#define ORC_STATIC_OPCODE_LOAD (1<<4)
-#define ORC_STATIC_OPCODE_STORE (1<<5)
-#define ORC_STATIC_OPCODE_INVARIANT (1<<6)
-#define ORC_STATIC_OPCODE_ITERATOR (1<<7)
-
-
-struct _OrcStaticOpcode {
- char name[16];
- unsigned int flags;
- int dest_size[ORC_STATIC_OPCODE_N_DEST];
- int src_size[ORC_STATIC_OPCODE_N_SRC];
- OrcOpcodeEmulateNFunc emulateN;
-};
-
-/**
- * OrcInstruction:
- *
- * The OrcInstruction structure has no public members
- */
-struct _OrcInstruction {
- /*< private >*/
- OrcStaticOpcode *opcode;
- int dest_args[ORC_STATIC_OPCODE_N_DEST];
- int src_args[ORC_STATIC_OPCODE_N_SRC];
-
- OrcRule *rule;
- unsigned int flags;
-};
-
-#define ORC_INSTRUCTION_FLAG_X2 (1<<0)
-#define ORC_INSTRUCTION_FLAG_X4 (1<<1)
-
-#define ORC_INSN_FLAG_INVARIANT (1<<2)
-#define ORC_INSN_FLAG_ADDED (1<<3)
-
-
-/**
- * OrcConstant:
- *
- * The OrcConstant structure has no public members
- */
-struct _OrcConstant {
- /*< private >*/
- int type;
- int alloc_reg;
- unsigned int value;
- unsigned int full_value[4];
- int use_count;
- int is_long;
-};
-
-/**
- * OrcFixup:
- *
- * The OrcFixup structure has no public members
- */
-struct _OrcFixup {
- /*< private >*/
- unsigned char *ptr;
- int type;
- int label;
-};
-
-/**
- * OrcProgram:
- *
- * The OrcProgram structure has no public members
- */
-struct _OrcProgram {
- /*< private >*/
- struct {
- OrcStaticOpcode *opcode;
- int dest_args[ORC_STATIC_OPCODE_N_DEST];
- int src_args[ORC_STATIC_OPCODE_N_SRC];
-
- OrcRule *rule;
- } _unused[ORC_N_INSNS]; /* needed for ABI compatibility */
- int n_insns;
-
- struct {
- char *name;
- char *type_name;
-
- int size;
- OrcVarType vartype;
-
- int used;
- int first_use;
- int last_use;
- int replaced;
- int replacement;
-
- int alloc;
- int is_chained;
- int is_aligned;
- int is_uncached;
-
- int value;
-
- int ptr_register;
- int ptr_offset;
- int mask_alloc;
- int aligned_data;
- int param_type;
- int load_dest;
- } _unused3[ORC_N_VARIABLES]; /* needed for ABI compatibility */
-
- int n_src_vars;
- int n_dest_vars;
- int n_param_vars;
- int n_const_vars;
- int n_temp_vars;
- int n_accum_vars;
-
- char *name;
- char *asm_code;
-
- unsigned char *_unused2;
- /* The offset of code_exec in this structure is part of the ABI */
- void *code_exec;