Boost logo

Boost Users :

From: Daryle Walker (darylew_at_[hidden])
Date: 2005-12-18 14:00:02


On 12/16/05 2:03 PM, "Clarke, Trevor" <tclarke_at_[hidden]> wrote:

> It's not a mask to stop data loss but to tell VS you want the data loss. I.E.
>
> unsigned short a = 0x1234;
> return (a << 8) & 0xffff;
[TRUNCATE past message context]

That mask retains 100% of the bits (if a "short" is 16 bits), so it
effectively does nothing. That's a waste of cycles if the masking isn't
optimized away. I don't get how this shuts up the RTC unless this construct
was specifically created as a workaround.

Could you turn off RTC, especially since C++ (and C) are deliberately
non-RTC languages?

-- 
Daryle Walker
Mac, Internet, and Video Game Junkie
darylew AT hotmail DOT com

Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net