gte: Fix gteH division and sign extension (from PCSX4ALL)
authorgameblabla <gameblabla@protonmail.com>
Thu, 19 Aug 2021 04:36:22 +0000 (06:36 +0200)
committergameblabla <gameblabla@protonmail.com>
Thu, 19 Aug 2021 04:36:22 +0000 (06:36 +0200)
commit3df12a81179acad8406f1791ff716c76caefed31
treedb4e805db15e7b4ca5c9c6947dddbd8a727f40ed
parent91d37ea89b72dd61e26c04fdd9c9d78f43c87877
gte: Fix gteH division and sign extension (from PCSX4ALL)

gteH register is u16, not s16. DIVIDE macro/func assumed it was
s16 for some reason. Behavior now matches Mednafen.

Co-authored-by: senquack <dansilsby@gmail.com>
libpcsxcore/gte.c
libpcsxcore/gte_divider.h