Skip to content

Commit

Permalink
Adjustment to ifdefs
Browse files Browse the repository at this point in the history
  • Loading branch information
PsiLupan committed Sep 17, 2024
1 parent 9277e03 commit ad1f673
Showing 1 changed file with 9 additions and 4 deletions.
13 changes: 9 additions & 4 deletions src/MSL/mem_funcs.c
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#ifdef MWERKS_GEKKO

#include "mem_funcs.h"

#pragma ANSI_strict off
Expand All @@ -12,6 +12,7 @@

void __copy_longs_aligned(void* dst, const void* src, size_t n)
{
#if defined(__MWERKS__)
unsigned long i;

i = (-(unsigned long) dst) & 3;
Expand Down Expand Up @@ -63,12 +64,14 @@ void __copy_longs_aligned(void* dst, const void* src, size_t n)
deref_auto_inc(cpd) = deref_auto_inc(cps);
} while (--n);
}
#endif

return;
}

void __copy_longs_rev_aligned(void* dst, const void* src, size_t n)
{
#if defined(__MWERKS__)
unsigned long i;

cps = ((unsigned char*) src) + n;
Expand Down Expand Up @@ -114,12 +117,14 @@ void __copy_longs_rev_aligned(void* dst, const void* src, size_t n)
*--cpd = *--cps;
} while (--n);
}
#endif

return;
}

void __copy_longs_unaligned(void* dst, const void* src, size_t n)
{
#if defined(__MWERKS__)
unsigned long i, v1, v2;
unsigned int src_offset, left_shift, right_shift;

Expand Down Expand Up @@ -173,12 +178,14 @@ void __copy_longs_unaligned(void* dst, const void* src, size_t n)
deref_auto_inc(cpd) = deref_auto_inc(cps);
} while (--n);
}
#endif

return;
}

void __copy_longs_rev_unaligned(void* dst, const void* src, size_t n)
{
#if defined(__MWERKS__)
unsigned long i, v1, v2;
unsigned int src_offset, left_shift, right_shift;

Expand Down Expand Up @@ -226,8 +233,6 @@ void __copy_longs_rev_unaligned(void* dst, const void* src, size_t n)
*--cpd = *--cps;
} while (--n);
}

#endif
return;
}

#endif

0 comments on commit ad1f673

Please sign in to comment.