atomic_count on MSVC/Win32, Tim Fenders optimization

Hi, I noticed that boost/detail/atomic_count.hpp uses the intrinsic verisons of _InterlockedIncrement, _InterlockedDecrement only for Win64 builds. is there a reason? it is documented for VC 2003 without target platform restrictions (and it's "known to work" on VC6, too). thanks peter __________________________________ Do you Yahoo!? Yahoo! Mail - 250MB free storage. Do more. Manage less. http://info.mail.yahoo.com/mail_250

Hauptmann Peter wrote:
Hi, I noticed that boost/detail/atomic_count.hpp uses the intrinsic verisons of _InterlockedIncrement, _InterlockedDecrement only for Win64 builds.
is there a reason? it is documented for VC 2003 without target platform restrictions (and it's "known to work" on VC6, too).
I think that the reason is that there's no portable way of declaring the intrinsics except by including <windows.h>, something that many people would strongly object to because of the evil macros.
participants (2)
-
Hauptmann Peter
-
Peter Dimov