x86gas.pl: update from HEAD.
authorAndy Polyakov <appro@openssl.org>
Mon, 4 Jun 2012 22:14:25 +0000 (22:14 +0000)
committerAndy Polyakov <appro@openssl.org>
Mon, 4 Jun 2012 22:14:25 +0000 (22:14 +0000)
crypto/perlasm/x86gas.pl

index 682a3a3163e2566c7b849cd7cd1ece10cd7b6aef..4b8786bf42f9049a2925bac4cf313b6881b7c75b 100644 (file)
@@ -170,10 +170,9 @@ sub ::data_short{   push(@out,".value\t".join(',',@_)."\n");  }
 sub ::data_word {   push(@out,".long\t".join(',',@_)."\n");   }
 
 sub ::align
-{ my $val=$_[0],$p2,$i;
+{ my $val=$_[0];
     if ($::aout)
-    {  for ($p2=0;$val!=0;$val>>=1) { $p2++; }
-       $val=$p2-1;
+    {  $val=int(log($val)/log(2));
        $val.=",0x90";
     }
     push(@out,".align\t$val\n");