OpenOrbis / musl

A PS4 port of musl for the OpenOrbis PS4 Toolchain.
Other
34 stars 9 forks source link

Output the carry flag to C #2

Closed josephcsible closed 4 years ago

josephcsible commented 4 years ago

Instead of jumping and maybe negating ret in assembly, pass the carry flag as an output parameter, and do the negation in C if necessary. This will enable better codegen in places that these get inlined.

josephcsible commented 4 years ago

This PR and #1 will have a merge conflict with each other. If both of them look good to merge, my preference is that you merge #1 first, and then I'll fix the resulting conflict in this one.

josephcsible commented 4 years ago

This is rebased and ready to be merged.