GO-Ve01
ServicesDevelopersBooksDictionaryPapersWikidataEncyclopediaSearchBabelCareersDeck

Search e01

One query across the encyclopedia, books, dictionary, papers, Wikidata and the developer library. Every hit carries its source.

6 results across 6 corpora for arithmetics.

Encyclopedia 0

Books 0

Dictionary 0

Papers 0

Wikidata 0

Developer library 6

asm.js

> [!WARNING] > The [asm.js](https://en.wikipedia.org/wiki/Asm.js) specification is considered **deprecated**. > Developers may look to [WebAssembly](/docs/WebAssembly) as an alternative to asm.js for running high-performance code in the browser. [Asm.js](https://en.wikipedia.org/wiki/Asm.js) is a specification defining a subset of JavaScript that is highly optimizable. This article looks at exactly what is permitted

MDN Web Docs mirror · CC BY-SA 2.5 (MDN) · https://developer.mozilla.org/en-US/docs/Games/Tools/asm.js

WebAssembly numeric instructions

WebAssembly numeric instructions. ## Constants - [`const`](/docs/WebAssembly/Reference/Numeric/const) - : Declare a constant number. ## Comparison - [`eq`](/docs/WebAssembly/Reference/Numeric/eq) - : Check if two numbers are equal. - [`eqz`](/docs/WebAssembly/Reference/Numeric/eqz) - : Check if a number is equal to `0`. - [`ne`](/docs/WebAssembly/Reference/Numeric/ne) - : Check if two numbers are not equa

min: Wasm numeric instruction

The **`min`** [numeric instruction](/docs/WebAssembly/Reference/Numeric) is used for getting the lower of two numbers. tabbed-taller ```wat interactive-example (module (import "console" "log" (func $log (param f32))) (func $main ;; load 10 and 2 onto the stack f32.const 10 f32.const 2 f32.min ;; calculate the lower number call $log ;; log the result ) (start $main) ) ``` ```js interact

extend32_s: Wasm numeric instruction

The **`extend32_s`** [numeric instruction](/docs/WebAssembly/Reference/Numeric) [sign-extends](#description) the low 32 bits of a 64-bit integer to propagate its sign throughout the entire value. tabbed-taller ```wat interactive-example (module (import "console" "log" (func $log (param i64))) (func $main i64.const 0xffffffff i64.extend32_s call $log ) (start $main) ) ``` ```js interactive-exa

wrap_i64: Wasm numeric instruction

The **`wrap_i64`** [numeric instruction](/docs/WebAssembly/Reference/Numeric) is used to convert numbers of type `i64` to type `i32`. If the number is larger than what an `i32` can hold this operation will wrap, resulting in a different number. One can think of wrap either as reducing the value [mod](https://en.wikipedia.org/wiki/Modular_arithmetic) 2<sup>32</sup>, or as discarding the high 32 bits to produce a valu

max: Wasm numeric instruction

The **`max`** [numeric instruction](/docs/WebAssembly/Reference/Numeric) is used for getting the higher of two floating point numbers. tabbed-taller ```wat interactive-example (module (import "console" "log" (func $log (param f32))) (func $main ;; load 10 and 2 onto the stack f32.const 10 f32.const 2 f32.max ;; calculate the higher number call $log ;; log the result ) (start $main) ) ``

JSON results · Services directory