tweetcast/client/lib/websocket-js/flash-src/third-party/com/hurlant/math/NullReduction.as
equal
deleted
inserted
replaced
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 } |
|