Boost logo

Boost :

From: Peter Dimov (pdimov_at_[hidden])
Date: 2001-10-25 07:50:57


From: "Greg Colvin" <gcolvin_at_[hidden]>
> No, I haven't done any timings. The main point was just that there need
> be no overhead for the templates compared to a literal constant. But I
> am confident that, ceteris paribus,
>
> mov DWORD PTR _pi_function$[esp+60], 1413754136
> mov DWORD PTR _pi_function$[esp+64], 1074340347
>
> will be faster than
>
> mov eax, DWORD PTR _Pi$S188
> mov DWORD PTR _pi_constant$[esp+40], eax
> mov ecx, DWORD PTR _Pi$S188+4
> mov DWORD PTR _pi_constant$[esp+52], ecx

I have learned to not be confident about such things. :-)

--
Peter Dimov
Multi Media Ltd.

Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk