Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Bit twiddling in C#
Message
De
16/02/2006 13:36:00
Cetin Basoz
Engineerica Inc.
Izmir, Turquie
 
 
À
16/02/2006 13:14:47
Information générale
Forum:
ASP.NET
Catégorie:
Autre
Divers
Thread ID:
01096485
Message ID:
01096833
Vues:
20
>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
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform