Previous 15994 Revisions Next

r2533 Saturday 3rd May, 2008 at 23:44:07 UTC by Nathan Woods
Minor compilation fix [tim lindner]
[src/mess/drivers]genesis.c

src/mess/drivers/genesis.c
r2532r2533
740740// only looks for == in the compare for LSB systems
741741static int allendianmemcmp(const void *s1, const void *s2, size_t n)
742742{
743unsigned char *realbuf;
743   const unsigned char *realbuf;
744744
745745#ifdef LSB_FIRST
746unsigned char flippedbuf[64];
747unsigned int i;
746   unsigned char flippedbuf[64];
747   unsigned int i;
748   
749   if ((n & 1) || (n > 63)) return -1 ; // don't want odd sized buffers or too large a compare
750   for (i = 0; i < n; i++) flippedbuf[i] = *((char *)s2 + (i ^ 1));
751   realbuf = flippedbuf;
748752
749if ((n & 1) || (n > 63)) return -1 ; // don't want odd sized buffers or too large a compare
750for (i = 0; i < n; i++) flippedbuf[i] = *((char *)s2 + (i ^ 1));
751realbuf = flippedbuf;
752
753753#else
754
755realbuf = s2;
756
754   
755   realbuf = s2;
756   
757757#endif
758return memcmp(s1,realbuf,n);
758   return memcmp(s1,realbuf,n);
759759}
760760
761761void setup_megadriv_custom_mappers(running_machine *machine)

Previous 15994 Revisions Next


© 1998-2018 The MESS Team