At 4:04 PM +0000 11/25/02, Nicholas Clark wrote:
The bitmask doesn't sign-extend where the casting will, which could be an issue.On Mon, Nov 25, 2002 at 04:51:05PM +0100, Leopold Toetsch wrote:Gopal V wrote:> /* > ** dotgnu.ops > */ Thanks applied,I'm surprised that you did your regression tests longhand, rather than having a data table in perl of input and expected output, and auto-generating parrot code. Is there any speed advantage in truncating by casting via a C type [eg a = (int)(short) b] rather than and on a bitmask [eg a = b & 0xFFFF] ? We're going to have to do that latter to make it work on Crays anyway, so is a conditional compile to chose between the two worth it?
--
Dan
--------------------------------------"it's like this"-------------------
Dan Sugalski even samurai
[EMAIL PROTECTED] have teddy bears and even
teddy bears get drunk