PageRenderTime 269ms CodeModel.GetById 84ms app.highlight 9ms RepoModel.GetById 135ms app.codeStats 39ms

/js/lib/Socket.IO-node/support/socket.io-client/lib/vendor/web-socket-js/flash-src/com/hurlant/math/NullReduction.as

http://github.com/onedayitwillmake/RealtimeMultiplayerNodeJs
ActionScript | 34 lines | 26 code | 5 blank | 3 comment | 0 complexity | a1aff2ba4a41260150f306e1b5fab4ae MD5 | raw file
 1package 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}