remove useless doChecksum()

This commit is contained in:
ABelliqueux 2021-05-01 14:53:36 +02:00
parent a865750dca
commit 505c08a549
2 changed files with 1 additions and 22 deletions

19
pcdrv.c
View File

@ -1,24 +1,5 @@
#include "pcdrv.h"
int doChecksum( u_long * pointer ){
u_int checksum = 0;
u_long work;
work = ( u_long ) pointer - 0x80000000 ;
while( work != 0 ){
checksum += work % 10;
work /= 10;
}
return checksum;
};
// Hashing algorythm from @nicolasnoble : https://github.com/grumpycoders/pcsx-redux/blob/main/src/mips/common/util/djbhash.h
static inline uint32_t djbProcess(uint32_t hash, const char str[], unsigned n) {

View File

@ -45,13 +45,11 @@ static inline uint32_t djbHash( const char* str, unsigned n );
static inline uint32_t djbProcess(uint32_t hash, const char str[], unsigned n);
int doChecksum( u_long * pointer );
int waitForSIODone( int * flag );
void PCload( u_long * loadAddress, volatile u_char * flagAddress, u_char overlayFileID );
int PCopen(const char * filename, int attributes );
int PCopen( const char * filename, int attributes );
int PCcreate(const char * filename, int attributes );