Skip to content

Commit

Permalink
Reorder static var
Browse files Browse the repository at this point in the history
  • Loading branch information
flashultra committed Dec 20, 2024
1 parent 542d1bd commit 51eaff1
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 12 deletions.
15 changes: 8 additions & 7 deletions std/haxe/math/bigint/BigInt_.hx
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,14 @@ import haxe.io.Bytes;
@:allow(unit)
@:allow(haxe.math.bigint)
class BigInt_ {

private var m_count:Int = 0;
private var m_data:Vector<Int>;

private static inline var s_firstCachedValue:Int = -16;
private static inline var s_lastCachedValue:Int = 16;
private static var s_cache:Vector<BigInt_> = null;

//-----------------------------------------------------------------------
// Public interface
//-----------------------------------------------------------------------
Expand Down Expand Up @@ -1251,13 +1259,6 @@ class BigInt_ {
}
}

private var m_count:Int = 0;
private var m_data:Vector<Int>;

private static inline var s_firstCachedValue:Int = -16;
private static inline var s_lastCachedValue:Int = 16;
private static var s_cache:Vector<BigInt_> = null;

//-----------------------------------------------------------------------
// Static helpers
//-----------------------------------------------------------------------
Expand Down
11 changes: 6 additions & 5 deletions std/haxe/math/bigint/MutableBigInt_.hx
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,12 @@ import haxe.io.Bytes;
@:allow(unit)
@:allow(haxe.math.bigint)
class MutableBigInt_ extends BigInt_ {

private var m_owned:Bool = false;

private static var s_testAllocation:Bool = false;
private static var s_debugAllocationPadding:Int = 0;

//-----------------------------------------------------------------------
// Public interface
//-----------------------------------------------------------------------
Expand Down Expand Up @@ -373,11 +379,6 @@ class MutableBigInt_ extends BigInt_ {
return r;
}

private var m_owned:Bool = false;

private static var s_testAllocation:Bool = false;
private static var s_debugAllocationPadding:Int = 0;

//-----------------------------------------------------------------------
// Static helpers
//-----------------------------------------------------------------------
Expand Down

0 comments on commit 51eaff1

Please sign in to comment.