www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 6244] New: Add powmod / modpow function to std.math


           Summary: Add powmod / modpow function to std.math
           Product: D
           Version: future
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: enhancement
          Priority: P2
         Component: Phobos
        AssignedTo: nobody puremagic.com
        ReportedBy: josvanuden gmail.com

--- Comment #0 from josvanuden gmail.com 2011-07-03 15:10:08 PDT ---
I think a powmod function should be part of std.math. It's important for many
types of algorithms for avoiding overflow and it's not something that the
average person can write off the top of their head. 

Currently I'm using a powmod code that I found on the internet. I'm not even
sure what the licensing terms of it are.

Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
Jul 03 2011