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
Copy file name to clipboardExpand all lines: assembly.d.ts
+8-1Lines changed: 8 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -27,7 +27,7 @@ declare type f32 = number;
27
27
/** A 64-bit float. */
28
28
declaretypef64=number;
29
29
30
-
// builtins
30
+
// built-ins
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
33
declarefunctionclz<T=i32|i64>(value: T): T;
@@ -78,6 +78,8 @@ declare const NaN: f32 | f64;
78
78
declareconstInfinity: f32|f64;
79
79
/** Determines the byte size of the specified core or class type. Compiles to a constant. */
80
80
declarefunctionsizeof<T>(): usize;
81
+
/** Changes the type of a value to another one. Useful for casting class instances to their pointer values and vice-versa. */
82
+
declarefunctionchangetype<T1,T2>(value: T1): T2;
81
83
/** Tests if a 32-bit or 64-bit float is NaN. */
82
84
declarefunctionisNaN<T=f32|f64>(value: T): bool;
83
85
/** Tests if a 32-bit or 64-bit float is finite, that is not NaN or +/-Infinity. */
@@ -87,10 +89,15 @@ declare function assert(isTrue: bool): void;
87
89
88
90
// internal decorators
89
91
92
+
/** Annotates an element being part of the global namespace. */
90
93
declarefunctionglobal(): any;
94
+
/** Annotates a function being always inlined. */
91
95
declarefunctioninline(): any;
96
+
/** Annotates a class using a C-style memory layout. */
0 commit comments