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
 [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

Add a Patch

Pull Requests

Add a Pull Request

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-2021 The PHP Group
All rights reserved.
Last updated: Mon Oct 25 22:03:37 2021 UTC