This commit is contained in:
Jay D Dee
2024-04-16 21:31:35 -04:00
parent 9d3a46c355
commit 4f930574cc
33 changed files with 757 additions and 609 deletions

View File

@@ -16,14 +16,14 @@ bool register_timetravel_algo( algo_gate_t* gate )
return true;
};
inline void tt_swap( int *a, int *b )
static inline void tt_swap( int *a, int *b )
{
int c = *a;
*a = *b;
*b = c;
}
inline void reverse( int *pbegin, int *pend )
static inline void reverse( int *pbegin, int *pend )
{
while ( (pbegin != pend) && (pbegin != --pend) )
{

View File

@@ -16,14 +16,14 @@ bool register_timetravel10_algo( algo_gate_t* gate )
return true;
};
inline void tt10_swap( int *a, int *b )
static inline void tt10_swap( int *a, int *b )
{
int c = *a;
*a = *b;
*b = c;
}
inline void reverse( int *pbegin, int *pend )
static inline void reverse( int *pbegin, int *pend )
{
while ( (pbegin != pend) && (pbegin != --pend) )
{