Lameguy64 / PSn00bSDK

The most powerful open source SDK for the PS1 (as far as open source PS1 SDKs go). Not recommended for beginner use.
Other
819 stars 66 forks source link

Initial implementation of stdlib div() in MIPS assembly #72

Closed saxbophone closed 4 months ago

saxbophone commented 1 year ago

Not tested building with the SDK yet, but initial tests of just this function compiling to MIPS binary using an online compiler suggests it works correctly: https://godbolt.org/z/GqE5fxz5b

I will test with the SDK on my other machine when I get a chance and send any revisions before marking ready for review.

saxbophone commented 1 year ago

Alas, gcc's optimiser seems smart enough to take advantage of this CPU feature in this case: https://godbolt.org/z/63fo1re5z

I'll check that this is also the case using the recommended tools and options for building the SDK