Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 260995 | Differences between
and this patch

Collapse All | Expand All

(-)gromacs-4.0.4-orig/include/gmx_cyclecounter.h (-19 lines)
Lines 102-112 Link Here
102
typedef unsigned long
102
typedef unsigned long
103
gmx_cycles_t;
103
gmx_cycles_t;
104
104
105
#elif defined(__GNUC__) && defined(__sparc_v9__)
106
/* gcc inline assembly on sparc v9 */
107
typedef unsigned long
108
gmx_cycles_t;
109
110
#elif defined(__DECC) && defined(__alpha) 
105
#elif defined(__DECC) && defined(__alpha) 
111
/* Digital GEM C compiler on alpha */
106
/* Digital GEM C compiler on alpha */
112
#include <c_asm.h>
107
#include <c_asm.h>
Lines 241-252 Link Here
241
    /* gcc inline assembly on alpha CPUs */
236
    /* gcc inline assembly on alpha CPUs */
242
    return 1;
237
    return 1;
243
}
238
}
244
#elif defined(__GNUC__) && defined(__sparc_v9__)
245
static __inline__ int gmx_cycles_have_counter(void)
246
{ 
247
    /* gcc inline assembly on sparc v9 */
248
    return 1;
249
}
250
#elif defined(__DECC) && defined(__alpha) 
239
#elif defined(__DECC) && defined(__alpha) 
251
static __inline int gmx_cycles_have_counter(void)
240
static __inline int gmx_cycles_have_counter(void)
252
{ 
241
{ 
Lines 404-417 Link Here
404
    __asm__ __volatile__ ("rpcc %0" : "=r"(cycle));
393
    __asm__ __volatile__ ("rpcc %0" : "=r"(cycle));
405
    return (cycle & 0xFFFFFFFF);
394
    return (cycle & 0xFFFFFFFF);
406
}
395
}
407
#elif defined(__GNUC__) && defined(__sparc_v9__)
408
static __inline__ gmx_cycles_t gmx_cycles_read(void)
409
{ 
410
    /* gcc inline assembly on sparc v9 */
411
    ticks ret;
412
    __asm__("rd %%tick, %0" : "=r" (ret));
413
    return ret;  
414
}
415
#elif defined(__DECC) && defined(__alpha) 
396
#elif defined(__DECC) && defined(__alpha) 
416
static __inline gmx_cycles_t gmx_cycles_read(void)
397
static __inline gmx_cycles_t gmx_cycles_read(void)
417
{ 
398
{ 

Return to bug 260995