Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
openSUSE:Maintenance:12465
ruby2.5.openSUSE_Leap_15.1_Update
0002-gc.c-tick-for-POWER-arch.patch
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File 0002-gc.c-tick-for-POWER-arch.patch of Package ruby2.5.openSUSE_Leap_15.1_Update
From 29afe9d8f70070527d5fd7b47fd2e428de8a0ec3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marcus=20R=C3=BCckert?= <mrueckert@suse.de> Date: Wed, 8 Mar 2017 17:55:33 +0100 Subject: [PATCH 2/7] gc.c tick for POWER arch --- gc.c | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/gc.c b/gc.c index 21554eeabf..bcfc7089e1 100644 --- a/gc.c +++ b/gc.c @@ -975,6 +975,18 @@ tick(void) return val; } +#elif defined(__powerpc64__) && \ + ( __GNUC__ > 4 || (__GNUC__ == 4 && __GNUC_MINOR__ >= 8)) +typedef unsigned long long tick_t; +#define PRItick "llu" + +static __inline__ tick_t +tick(void) +{ + unsigned long long val = __builtin_ppc_get_timebase(); + return val; +} + #elif defined(_WIN32) && defined(_MSC_VER) #include <intrin.h> typedef unsigned __int64 tick_t; -- 2.21.0
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