Patch for faster memcpy on MIPS
Richard Sandiford
rdsandiford@googlemail.com
Fri Jan 4 09:03:00 GMT 2013
"Steve Ellcey " <sellcey@mips.com> writes:
> diff --git a/newlib/libc/machine/mips/memcpy.S
> b/newlib/libc/machine/mips/memcpy.S
> index fe7cb15..8db8953 100644
> --- a/newlib/libc/machine/mips/memcpy.S
> +++ b/newlib/libc/machine/mips/memcpy.S
> @@ -203,7 +203,7 @@
> #define REG1 t1
> #define REG2 t2
> #define REG3 t3
> -#if _MIPS_SIM == _ABIO32
> +#if defined(_MIPS_SIM) && (_MIPS_SIM == _ABIO32)
> # define REG4 t4
> # define REG5 t5
> # define REG6 t6
I think you want:
#if defined(_MIPS_SIM) && (_MIPS_SIM == _ABIO32 || _MIPS_SIM == _ABIO64)
here. o64 has 4 argument registers, like o32. (mips64-elf uses o64 FWIW.)
Richard
More information about the Newlib
mailing list