tweetcast/client/lib/gimite-web-socket-js-55ae639/flash-src/third-party/com/hurlant/math/NullReduction.as
changeset 306 70c9688a1486
parent 305 436a31d11f1d
parent 291 db1e6bfaa54e
child 307 6872c6aac6d6
equal deleted inserted replaced
305:436a31d11f1d 306:70c9688a1486
     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 }