DOKK / manpages / debian 12 / libmath-base-convert-perl / Math::Base::Convert::Shortcuts.3pm.en
Math::Base::Convert::Shortcuts(3pm) User Contributed Perl Documentation Math::Base::Convert::Shortcuts(3pm)

Math::Base::Convert::Shortcuts - methods for converting powers of 2 bases

This module contains two primary methods that convert bases that are exact powers of 2 to and from base 2^32 faster than can be done by pure perl math.

  • $bc->useFROMbaseShortcuts

    This method converts FROM an input base number to a long n*32 bit register

  • $output = $bc->useTObaseShortcuts;

    This method converts an n*32 bit registers TO an output base number.

  • EXPORTS

    None

Michael Robinton, michael@bizsystems.com

Copyright 2012-2015, Michael Robinton

This program is free software; you may redistribute it and/or modify it under the same terms as Perl itself.

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

2022-10-16 perl v5.34.0