Skip to content
Snippets Groups Projects
Commit 2c59ff82 authored by Oliver Sander's avatar Oliver Sander
Browse files

Remove special clock implementations for NECSX4 and AIX architectures

These architectures are not used anymore, and the clocks are not used
anywhere in the ug code.
parent 40dbf4f0
No related branches found
No related tags found
No related merge requests found
......@@ -781,30 +781,3 @@ INT NS_PREFIX MemoryParameters (void)
return(0);
}
#ifdef __NECSX4__
/* special high performance time system for NEC SX4 */
/* declaration in compiler.h */
DOUBLE NS_PREFIX nec_clock( void )
{
struct htms timebuf;
if (syssx (HTIMES, (struct htms *)&timebuf) < 0)
return -1.0;
return ((timebuf.hutime + timebuf.hstime) * 1e-6);
}
#endif
#ifdef __AIX__
/* special high resolution time system for AIX */
/* declaration in compiler.h */
/* time resolution 1e-9 sec; overflow far over 1 year */
DOUBLE NS_PREFIX aix_highres_clock( void )
{
timebasestruct_t timebuf;
read_real_time(&timebuf, TIMEBASE_SZ);
time_base_to_time(&timebuf, TIMEBASE_SZ);
return( timebuf.tb_high + timebuf.tb_low*1e-9 );
}
#endif
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment