|  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 Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
Block user comment
Status: Assign to:
Bug Type:
From: david+php at 2good dot nu
New email:
PHP Version: OS:


 [2010-05-12 13:31 UTC] david+php at 2good dot nu
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

If I implement it I will attach the patch.


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2013-09-12 16:09 UTC]
-Status: Open +Status: Closed -Assigned To: +Assigned To: nikic
 [2013-09-12 16:09 UTC]
This is supported in PHP 5.6 as $gmpNum << $shift.
PHP Copyright © 2001-2021 The PHP Group
All rights reserved.
Last updated: Wed Oct 20 22:03:38 2021 UTC