Beefy Boxes and Bandwidth Generously Provided by pair Networks
Problems? Is your data what you think it is?
 
PerlMonks  

Re^2: Implement Arithmetic Shift Right for signed number in perl

by IamAwesom3 (Initiate)
on Apr 23, 2013 at 15:15 UTC ( [id://1030171]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    
    my $Rm = 0xAAAAAAAA;
    ...
    $Rd = $Rd & 0xffffffff; #mask bits more than 32
    
    printf "Rd = 0x%x\t Rb = %x\n",$Rd, $Rm;
    
  2. or download this
    Rd = 0xffffffff  Rb = 0xaaaaaaaa
    

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://1030171]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others admiring the Monastery: (4)
As of 2024-03-29 10:13 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found