loader: Build the preloader for ARM
Alexandre Julliard
julliard at winehq.org
Fri Feb 4 09:31:18 CST 2011
André Hentschel <nerv at dawncrow.de> writes:
> +unsigned int wld_modulo( const unsigned int a, const Elf32_Word b )
> +{
> +#ifdef __ARM_EABI__
> + unsigned int i;
> + if(b > a) return a;
> + for(i = 0; i * b < a + b; i++)
> + if(i * b > a - b) return (a - i * b);
> + return 0;
That's very inefficient, there are better ways...
--
Alexandre Julliard
julliard at winehq.org
More information about the wine-devel
mailing list