From: notaz Date: Mon, 23 Dec 2024 12:21:16 +0000 (+0200) Subject: cdrom: some cleanup X-Git-Url: https://notaz.gp2x.de/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=5dfa7e1e981ef0c7c2876c4eb01e418cde348cf2;p=pcsx_rearmed.git cdrom: some cleanup --- diff --git a/libpcsxcore/cdrom.c b/libpcsxcore/cdrom.c index a8eb6d9b..e6ea22b2 100644 --- a/libpcsxcore/cdrom.c +++ b/libpcsxcore/cdrom.c @@ -1304,16 +1304,6 @@ void cdrInterrupt(void) { setIrq(IrqStat, Cmd); } -#ifdef HAVE_ARMV7 - #define ssat32_to_16(v) \ - asm("ssat %0,#16,%1" : "=r" (v) : "r" (v)) -#else - #define ssat32_to_16(v) do { \ - if (v < -32768) v = -32768; \ - else if (v > 32767) v = 32767; \ - } while (0) -#endif - static void cdrPrepCdda(s16 *buf, int samples) { #if __BYTE_ORDER__ == __ORDER_BIG_ENDIAN__