Thread Was bedeutet << (6 answers)
Opened by Marc at 2011-03-16 21:41

pktm
 2011-03-17 12:43
#146593 #146593
User since
2003-08-07
2921 Artikel
BenutzerIn
[Homepage]
user image
Kommt drauf an, was drin ist. Man kann mittels shoft sehr effizient rechnen.
Auf Wikipedia habe ich folgendes dazu gefunden:
Quote
Logical shifts can be useful as efficient ways of performing multiplication or division of unsigned integers by powers of two. Shifting left by n bits on a signed or unsigned binary number has the effect of multiplying it by 2n. Shifting right by n bits on an unsigned binary number has the effect of dividing it by 2n (rounding towards 0).
http://www.intergastro-service.de (mein erstes CMS :) )

View full thread Was bedeutet <<