Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Bit twiddling in C#
Message
From
16/02/2006 13:36:00
Cetin Basoz
Engineerica Inc.
Izmir, Turkey
 
 
To
16/02/2006 13:14:47
General information
Forum:
ASP.NET
Category:
Other
Miscellaneous
Thread ID:
01096485
Message ID:
01096833
Views:
23
>You've got me thinking...
>
>If sizeof(int) = 4 and int x, y then x = y >> 31 should return -1 and 0 or you could return -1 and 1 from maybe something like x = (y > > 31) < < 1 + 1
>
>Right? I don't think the 2nd example would be very fast though

Might be. That's how computers multiply and divide:)
Cetin
Çetin Basöz

The way to Go
Flutter - For mobile, web and desktop.
World's most advanced open source relational database.
.Net for foxheads - Blog (main)
FoxSharp - Blog (mirror)
Welcome to FoxyClasses

LinqPad - C#,VB,F#,SQL,eSQL ... scratchpad
Previous
Reply
Map
View

Click here to load this message in the networking platform