remove useless doChecksum()
This commit is contained in:
parent
a865750dca
commit
505c08a549
19
pcdrv.c
19
pcdrv.c
@ -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) {
|
||||
|
4
pcdrv.h
4
pcdrv.h
@ -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 );
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user