/[pcre]/code/trunk/sljit/sljitNativeX86_common.c
ViewVC logotype

Diff of /code/trunk/sljit/sljitNativeX86_common.c

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 836 by ph10, Wed Dec 28 17:16:11 2011 UTC revision 839 by zherczeg, Fri Dec 30 13:22:28 2011 UTC
# Line 1837  SLJIT_API_FUNC_ATTRIBUTE int sljit_emit_ Line 1837  SLJIT_API_FUNC_ATTRIBUTE int sljit_emit_
1837          return SLJIT_SUCCESS;          return SLJIT_SUCCESS;
1838  }  }
1839    
1840    SLJIT_API_FUNC_ATTRIBUTE int sljit_get_register_index(int reg)
1841    {
1842            check_sljit_get_register_index(reg);
1843    #if (defined SLJIT_CONFIG_X86_32 && SLJIT_CONFIG_X86_32)
1844            if (reg == SLJIT_TEMPORARY_EREG1 || reg == SLJIT_TEMPORARY_EREG2
1845                            || reg == SLJIT_GENERAL_EREG1 || reg == SLJIT_GENERAL_EREG2)
1846                    return -1;
1847    #endif
1848            return reg_map[reg];
1849    }
1850    
1851    SLJIT_API_FUNC_ATTRIBUTE int sljit_emit_op_custom(struct sljit_compiler *compiler,
1852            void *instruction, int size)
1853    {
1854            sljit_ub *buf;
1855    
1856            CHECK_ERROR();
1857            check_sljit_emit_op_custom(compiler, instruction, size);
1858            SLJIT_ASSERT(size > 0 && size < 16);
1859    
1860            buf = (sljit_ub*)ensure_buf(compiler, 1 + size);
1861            FAIL_IF(!buf);
1862            INC_SIZE(size);
1863            SLJIT_MEMMOVE(buf, instruction, size);
1864            return SLJIT_SUCCESS;
1865    }
1866    
1867  /* --------------------------------------------------------------------- */  /* --------------------------------------------------------------------- */
1868  /*  Floating point operators                                             */  /*  Floating point operators                                             */
1869  /* --------------------------------------------------------------------- */  /* --------------------------------------------------------------------- */

Legend:
Removed from v.836  
changed lines
  Added in v.839

  ViewVC Help
Powered by ViewVC 1.1.5