You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This repository contains compiler component prototypes for the next iteration of the AssemblyScript compiler written in AssemblyScript itself.
6
+
This repository contains compiler components for the next iteration of the AssemblyScript compiler written in AssemblyScript itself.
7
7
8
8
Note that the code uses some features and standard library components that are not yet supported by any version of asc. To account for this, the code has been written in "portable AssemblyScript", a TypeScript-compatible subset of a subset of a superset of JavaScript, that also compiles to JavaScript using TSC.
Copy file name to clipboardExpand all lines: assembly.d.ts
+3-1Lines changed: 3 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -30,7 +30,7 @@ declare type f64 = number;
30
30
// builtins
31
31
32
32
/** Performs the sign-agnostic count leading zero bits operation on a 32-bit or 64-bit integer. All zero bits are considered leading if the value is zero. */
33
-
declarefunctionclz<T>(value: T): T;
33
+
declarefunctionclz<Textendsnumber>(value: T): T;
34
34
/** Performs the sign-agnostic count tailing zero bits operation on a 32-bit or 64-bit integer. All zero bits are considered trailing if the value is zero. */
35
35
declarefunctionctz<T>(value: T): T;
36
36
/** Performs the sign-agnostic count number of one bits operation on a 32-bit or 64-bit integer. */
@@ -84,6 +84,8 @@ declare const Infinity: number;
84
84
declarefunctionisNaN<T>(value: T): bool;
85
85
/** Tests if a 32-bit or 64-bit float is finite, that is not NaN or +/-Infinity. */
0 commit comments