![]() |
![]() |
![]()
Post
#1
|
|
Grupa: Zarejestrowani Postów: 51 Pomógł: 0 Dołączył: 2.05.2003 Ostrzeżenie: (0%) ![]() ![]() |
mam pytanie :mrgreen:
$d >>= 22; co takei cos robi ? :mrgreen: a co rbi a = (c ^ (IMG:http://forum.php.pl/style_emoticons/default/cool.gif) w C++ ? czy o jest c do potegi b ?i jakt o zrobic w php ? |
|
|
![]() |
![]()
Post
#2
|
|
Grupa: Zarząd Postów: 3 503 Pomógł: 28 Dołączył: 17.10.2002 Skąd: Wrocław ![]() |
A dlaczego nie?
Pierwszy komentarz do linka w manualu, który podałem: Cytat terium at techie dot com
15-Sep-2000 02:10 Here is a function which will do the zero fill shift right bitwise operator (>>>) which I haven't found in php but Java/JavaScript do have. The resulting number is always positive unlike >>. function zeroFill($a, $(IMG:http://forum.php.pl/style_emoticons/default/cool.gif) { $z = hexdec(80000000); if ($z & $a) { $a >>= 1; $a &= (~ $z); $a |= 0x40000000; $a >>= ($b-1); } else { $a >>= $b; } return $a; } |
|
|
![]() ![]() |
![]() |
Aktualny czas: 19.09.2025 - 04:34 |