Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
home:Alexander_Naumov:SLE-12:Update
ruby2.1.2315
0001-vm_exec.c-improve-performance-in-ppc64-arc...
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File 0001-vm_exec.c-improve-performance-in-ppc64-arch.patch of Package ruby2.1.2315
From d1075b72c819ee537bde8a302340c4b837402a76 Mon Sep 17 00:00:00 2001 From: hsbt <hsbt@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> Date: Tue, 12 Aug 2014 03:59:39 +0000 Subject: [PATCH] * vm_exec.c: improve performance in ppc64 arch. [ruby-core:63437] [Feature #9997] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@47149 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- vm_exec.c | 8 ++++++++ 1 files changed, 8 insertions(+) Index: ruby-2.1.2/vm_exec.c =================================================================== --- ruby-2.1.2.orig/vm_exec.c +++ ruby-2.1.2/vm_exec.c @@ -24,6 +24,9 @@ static void vm_analysis_insn(int insn); #elif defined(__GNUC__) && defined(__i386__) #define DECL_SC_REG(type, r, reg) register type reg_##r __asm__("e" reg) +#elif defined(__GNUC__) && defined(__powerpc64__) +#define DECL_SC_REG(type, r, reg) register type reg_##r __asm__("r" reg) + #else #define DECL_SC_REG(type, r, reg) register type reg_##r #endif @@ -65,6 +68,11 @@ vm_exec_core(rb_thread_t *th, VALUE init DECL_SC_REG(VALUE *, pc, "14"); DECL_SC_REG(rb_control_frame_t *, cfp, "15"); #define USE_MACHINE_REGS 1 + +#elif defined(__GNUC__) && defined(__powerpc64__) + DECL_SC_REG(VALUE *, pc, "14"); + DECL_SC_REG(rb_control_frame_t *, cfp, "15"); +#define USE_MACHINE_REGS 1 #else register rb_control_frame_t *reg_cfp;
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor