Does WebAssembly "select" instruction behaves like C/C++ (cond ? then : else), that is compute *only* one of the two branches depending of the "cond" value?Thanks.
--
You received this message because you are subscribed to the Google Groups "emscripten-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to emscripten-disc...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/emscripten-discuss/06055c34-5186-4f6b-92f7-eb6a9580f893%40googlegroups.com.
No, it unconditionally evaluates all arguments.
On Wed, Nov 13, 2019 at 11:09 AM Stéphane Letz <le...@grame.fr> wrote:
Does WebAssembly "select" instruction behaves like C/C++ (cond ? then : else), that is compute *only* one of the two branches depending of the "cond" value?--Thanks.
You received this message because you are subscribed to the Google Groups "emscripten-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to emscripten-discuss+unsub...@googlegroups.com.
So, It means the (cond ? then : else) kind of semantic has to be implemented using "if" right ?
Le mercredi 13 novembre 2019 20:10:20 UTC+1, Thomas Lively a écrit :
No, it unconditionally evaluates all arguments.
On Wed, Nov 13, 2019 at 11:09 AM Stéphane Letz <le...@grame.fr> wrote:
Does WebAssembly "select" instruction behaves like C/C++ (cond ? then : else), that is compute *only* one of the two branches depending of the "cond" value?--Thanks.
You received this message because you are subscribed to the Google Groups "emscripten-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to emscripten-disc...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/emscripten-discuss/06055c34-5186-4f6b-92f7-eb6a9580f893%40googlegroups.com.
--
You received this message because you are subscribed to the Google Groups "emscripten-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to emscripten-disc...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/emscripten-discuss/972b55b8-2508-464e-830e-def000c485c2%40googlegroups.com.