Re: wsprintf I64 - how to get it to include a plus sign ? Wrap-up

malxau <[email protected]> Sun, 22 Mar 2026 17:32:27 -0000 (UTC)
Newsgroups comp.os.ms-windows.programmer.win32,alt.comp.os.windows-xp,alt.windows7.general
Organization A noiseless patient Spider
Message-ID <[email protected]>
In comp.os.ms-windows.programmer.win32 R.Wieser <[email protected]> wrote:
> You can do a 64-bit division with the aid of two 32-bit divisions :

Ouch, you're right; turns out I did that and forgot.

> Most all NTDLL functions are STDCALL.   No need to do such a conversion.

The problem is that Visual C++ emits function calls for extended
arithmetic that aren't stdcall.  If C code performs a divide nearby a
mod, for example, it can emit a call to _aulldvrm, which returns two 64
bit values in four 32 bit registers.  The shift functions pass the shift
width in cl, because that's what the CPU would normally use, etc.

- M