зеркало из https://github.com/mozilla/pluotsorbet.git
Remove unused int32ToFloat and int64ToDouble from IntegerUtilities
This commit is contained in:
Родитель
0533a871ff
Коммит
842e7444f2
15
utilities.ts
15
utilities.ts
|
@ -119,7 +119,7 @@ module J2ME {
|
|||
|
||||
export module ArrayUtilities {
|
||||
import assert = Debug.assert;
|
||||
|
||||
|
||||
export var EMPTY_ARRAY = [];
|
||||
|
||||
export function makeArrays(length: number): any [][] {
|
||||
|
@ -368,17 +368,6 @@ module J2ME {
|
|||
export var f32 = new Float32Array(sharedBuffer);
|
||||
export var f64 = new Float64Array(sharedBuffer);
|
||||
|
||||
/**
|
||||
* Convert 32 bits into a float.
|
||||
*/
|
||||
export function int32ToFloat(i: number) {
|
||||
i32[0] = i; return f32[0];
|
||||
}
|
||||
|
||||
export function int64ToDouble(high: number, low: number) {
|
||||
i32[0] = low; i32[1] = high; return f64[0];
|
||||
}
|
||||
|
||||
export function bitCount(i: number): number {
|
||||
i = i - ((i >> 1) & 0x55555555);
|
||||
i = (i & 0x33333333) + ((i >> 2) & 0x33333333);
|
||||
|
@ -1061,4 +1050,4 @@ module J2ME.Shell {
|
|||
this.stopped = true;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Загрузка…
Ссылка в новой задаче