-
-
Notifications
You must be signed in to change notification settings - Fork 4
notes
the - operator is actually one of the most difficult operators: it can act as
- sign -3
- sign-flip operation -i == i*-1
- subtraction a-3
- range age 12-15, 7000-6000 BC usually for unsigned
Figuring out which is which needs special care! -1-2-‖-3‖-4
abs via float is still better than function calls as emitted by gcc -O3 !!
(func $abs (type 2) (param i32) (result i32) (local i32) local.get 0 local.get 0 i32.const 31 i32.shr_s local.tee 1 i32.add local.get 1 i32.xor)
/opt/wasm/wasmtime/crates/c-api/wasm-c-api/README.md no passing of structs by-value or post-C99 features in C API.
case "object": case "function": return getObjectHashCode(obj); case "number": return numberHashCode(obj); case "boolean": return obj ? 1231 : 1237; // interestingly, this is the same as java.lang.Boolean.hashCode() // https://stackoverflow.com/questions/3912303/boolean-hashcode
<div class="form-group"> Text
div{ class:"form-group" "Text"
div class:"form-group" { "Text"