> On Jan 9, 2023, at 11:27 AM, Stefan Kanthak wrote:
>
> "Paul Koning" wrote:
>
>>> ...
>
>> Yes, I was thinking the same. But I spent a while on that pattern -- I
>> wanted to support div/mod as a single operation because the machine has
>> that primitive. And I'm pretty sure I saw it wo
"Paul Koning" wrote:
>> On Jan 9, 2023, at 10:20 AM, Stefan Kanthak wrote:
>>
>> "Paul Koning" wrote:
>>
On Jan 9, 2023, at 7:20 AM, Stefan Kanthak wrote:
Hi,
GCC (and other C compilers too) support the widening multiplication
of i386/AMD64 processors, but DON
> On Jan 9, 2023, at 10:20 AM, Stefan Kanthak wrote:
>
> "Paul Koning" wrote:
>
>>> On Jan 9, 2023, at 7:20 AM, Stefan Kanthak wrote:
>>>
>>> Hi,
>>>
>>> GCC (and other C compilers too) support the widening multiplication
>>> of i386/AMD64 processors, but DON'T support their narrowing div
"Paul Koning" wrote:
>> On Jan 9, 2023, at 7:20 AM, Stefan Kanthak wrote:
>>
>> Hi,
>>
>> GCC (and other C compilers too) support the widening multiplication
>> of i386/AMD64 processors, but DON'T support their narrowing division:
>
> I wonder if this changed in the recent past.
> I have a pat
> On Jan 9, 2023, at 7:20 AM, Stefan Kanthak wrote:
>
> Hi,
>
> GCC (and other C compilers too) support the widening multiplication
> of i386/AMD64 processors, but DON'T support their narrowing division:
I wonder if this changed in the recent past. I have a pattern for this type of
thing i
LIU Hao wrote:
>在 2023/1/9 20:20, Stefan Kanthak 写道:
>> Hi,
>>
>> GCC (and other C compilers too) support the widening multiplication
>> of i386/AMD64 processors, but DON'T support their narrowing division:
>>
>>
>
> QWORD-DWORD division would change the behavior of your program.
[...]
> If DIV wa
在 2023/1/9 20:20, Stefan Kanthak 写道:
Hi,
GCC (and other C compilers too) support the widening multiplication
of i386/AMD64 processors, but DON'T support their narrowing division:
QWORD-DWORD division would change the behavior of your program.
Given:
```
uint32_t xdiv(uint64_t x, uin
Hi,
GCC (and other C compilers too) support the widening multiplication
of i386/AMD64 processors, but DON'T support their narrowing division:
--- demo.c ---
unsigned long long product(unsigned long multiplicand,
unsigned long multiplier)
{
return (unsigned long long