Author mark.dickinson
Recipients christian.heimes, collinwinter, gregory.p.smith, haypo, jyasskin, loewis, mark.dickinson, pitrou, schuppenies
Date 2009-02-17.21:56:36
SpamBayes Score 0.011257
Marked as misclassified No
Message-id <1234907797.99.0.874674564958.issue4258@psf.upfronthosting.co.za>
In-reply-to
Content
It looks as though Visual Studio 2008 does the 'right' thing, too, at 
least in some circumstances.  Here's some assembler output (MSVC Express 
Edition, 32-bit Windows XP / Macbook Pro).

; 3    : unsigned long long mul(unsigned long x, unsigned long y) {

	push	ebp
	mov	ebp, esp

; 4    :     return (unsigned long long)x * y;

	mov	eax, DWORD PTR _x$[ebp]
	mov	ecx, DWORD PTR _y$[ebp]
	mul	ecx

; 5    : }

	pop	ebp
	ret	0
History
Date User Action Args
2009-02-17 21:56:38mark.dickinsonsetrecipients: + mark.dickinson, loewis, collinwinter, gregory.p.smith, pitrou, haypo, christian.heimes, jyasskin, schuppenies
2009-02-17 21:56:37mark.dickinsonsetmessageid: <1234907797.99.0.874674564958.issue4258@psf.upfronthosting.co.za>
2009-02-17 21:56:36mark.dickinsonlinkissue4258 messages
2009-02-17 21:56:36mark.dickinsoncreate