| AI Engine-ML Intrinsics User Guide (v2025.2)

Loading...
Searching...
No Matches
Set-update-extract
Compiler optimizations » Code optimizations

Example:

// Consider only low part
rule(a, b) {
tmp = set_low_part(a);
tmp = update_high(tmp, b)
return extract_low(tmp);
} -> {
return a;
}
// Consider only high part
rule(a, b) {
tmp = set_low_part(a);
tmp = update_high(tmp, b)
return extract_high(tmp);
} -> {
return b;
}