Den 2011-02-04 20:36 skrev Peter Rosin:
> Den 2011-02-04 17:41 skrev André Hentschel:
>> % and / both lead to external dependencies here...
>> maybe the euclidean algorithm helps, because -Os would need ugly changes to
>> configure i guess.
>>
>
> Finding gcd is a bit over the top...
>
> How abo
Den 2011-02-04 17:41 skrev André Hentschel:
> Am 04.02.2011 17:26, schrieb Marcus Meissner:
>> On Fri, Feb 04, 2011 at 04:51:46PM +0100, André Hentschel wrote:
>>> Am 04.02.2011 16:31, schrieb Alexandre Julliard:
André Hentschel writes:
> +unsigned int wld_modulo( const unsigned int
Am 04.02.2011 17:26, schrieb Marcus Meissner:
> On Fri, Feb 04, 2011 at 04:51:46PM +0100, André Hentschel wrote:
>> Am 04.02.2011 16:31, schrieb Alexandre Julliard:
>>> André Hentschel writes:
>>>
+unsigned int wld_modulo( const unsigned int a, const Elf32_Word b )
+{
+#ifdef __ARM_
On Fri, Feb 04, 2011 at 04:51:46PM +0100, André Hentschel wrote:
> Am 04.02.2011 16:31, schrieb Alexandre Julliard:
> > André Hentschel writes:
> >
> >> +unsigned int wld_modulo( const unsigned int a, const Elf32_Word b )
> >> +{
> >> +#ifdef __ARM_EABI__
> >> +unsigned int i;
> >> +if(b
Am 04.02.2011 16:31, schrieb Alexandre Julliard:
> André Hentschel 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 -
André Hentschel 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 ineffic