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
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
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 10:01:28 2024 UTC