php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Request #51798 Implement mpz_mul_2exp
Submitted: 2010-05-12 13:31 UTC Modified: 2013-09-12 16:09 UTC
From: david+php at 2good dot nu Assigned: nikic (profile)
Status: Closed Package: GNU MP related
PHP Version: 5.3.2 OS: Any
Private report: No CVE-ID: None
View Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
If you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: david+php at 2good dot nu
New email:
PHP Version: OS:

 

 [2010-05-12 13:31 UTC] david+php at 2good dot nu
Description:
------------
A number of GMP functions are not yet exposed through PHP, for example mpz_mul_2exp;

"Set rop to op1 times 2 raised to op2. This operation can also be defined as a left shift by op2 bits."

See also http://svn.php.net/viewvc/php/php-src/trunk/ext/gmp/TODO?view=markup


If I implement it I will attach the patch.


Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2013-09-12 16:09 UTC] nikic@php.net
-Status: Open +Status: Closed -Assigned To: +Assigned To: nikic
 [2013-09-12 16:09 UTC] nikic@php.net
This is supported in PHP 5.6 as $gmpNum << $shift.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sun Dec 22 05:01:30 2024 UTC