/js/lib/Socket.IO-node/support/socket.io-client/lib/vendor/web-socket-js/flash-src/com/hurlant/math/NullReduction.as
ActionScript | 34 lines | 26 code | 5 blank | 3 comment | 0 complexity | a1aff2ba4a41260150f306e1b5fab4ae MD5 | raw file
Possible License(s): GPL-2.0, LGPL-2.1, MPL-2.0-no-copyleft-exception, BSD-3-Clause
- package com.hurlant.math
- {
- use namespace bi_internal;
- /**
- * A "null" reducer
- */
- public class NullReduction implements IReduction
- {
- public function revert(x:BigInteger):BigInteger
- {
- return x;
- }
-
- public function mulTo(x:BigInteger, y:BigInteger, r:BigInteger):void
- {
- x.multiplyTo(y,r);
- }
-
- public function sqrTo(x:BigInteger, r:BigInteger):void
- {
- x.squareTo(r);
- }
-
- public function convert(x:BigInteger):BigInteger
- {
- return x;
- }
-
- public function reduce(x:BigInteger):void
- {
- }
-
- }
- }