tweetcast/client/lib/websocket-js/flash-src/third-party/com/hurlant/math/NullReduction.as
changeset 311 13702105c5ee
parent 310 526d3e411736
child 312 f8336354d107
child 314 0f1e6ce19b6d
equal deleted inserted replaced
310:526d3e411736 311:13702105c5ee
     1 package com.hurlant.math
       
     2 {
       
     3 	use namespace bi_internal;
       
     4 	/**
       
     5 	 * A "null" reducer
       
     6 	 */
       
     7 	public class NullReduction implements IReduction
       
     8 	{
       
     9 		public function revert(x:BigInteger):BigInteger
       
    10 		{
       
    11 			return x;
       
    12 		}
       
    13 		
       
    14 		public function mulTo(x:BigInteger, y:BigInteger, r:BigInteger):void
       
    15 		{
       
    16 			x.multiplyTo(y,r);
       
    17 		}
       
    18 		
       
    19 		public function sqrTo(x:BigInteger, r:BigInteger):void
       
    20 		{
       
    21 			x.squareTo(r);
       
    22 		}
       
    23 		
       
    24 		public function convert(x:BigInteger):BigInteger
       
    25 		{
       
    26 			return x;
       
    27 		}
       
    28 		
       
    29 		public function reduce(x:BigInteger):void
       
    30 		{
       
    31 		}
       
    32 		
       
    33 	}
       
    34 }