comparison zlib/contrib/testzlib/testzlib.c @ 111:04ced10e8804

gcc 7
author kono
date Fri, 27 Oct 2017 22:46:09 +0900
parents ae3a4bfb450b
children
comparison
equal deleted inserted replaced
68:561a7518be6b 111:04ced10e8804
101 else 101 else
102 { 102 {
103 MyDoMinus64(&ticks,endTime64,beginTime64); 103 MyDoMinus64(&ticks,endTime64,beginTime64);
104 QueryPerformanceFrequency(&ticksPerSecond); 104 QueryPerformanceFrequency(&ticksPerSecond);
105 105
106 106
107 { 107 {
108 ticksShifted = Int64ShrlMod32(*(DWORDLONG*)&ticks,dwLog); 108 ticksShifted = Int64ShrlMod32(*(DWORDLONG*)&ticks,dwLog);
109 tickSecShifted = Int64ShrlMod32(*(DWORDLONG*)&ticksPerSecond,dwLog); 109 tickSecShifted = Int64ShrlMod32(*(DWORDLONG*)&ticksPerSecond,dwLog);
110 110
111 } 111 }
112 112
113 dwRet = (DWORD)((((DWORD)ticksShifted)*1000)/(DWORD)(tickSecShifted)); 113 dwRet = (DWORD)((((DWORD)ticksShifted)*1000)/(DWORD)(tickSecShifted));
114 dwRet *=1; 114 dwRet *=1;
115 } 115 }
116 return dwRet; 116 return dwRet;
117 } 117 }
118 118
119 int ReadFileMemory(const char* filename,long* plFileSize,void** pFilePtr) 119 int ReadFileMemory(const char* filename,long* plFileSize,unsigned char** pFilePtr)
120 { 120 {
121 FILE* stream; 121 FILE* stream;
122 void* ptr; 122 unsigned char* ptr;
123 int retVal=1; 123 int retVal=1;
124 stream=fopen(filename, "rb"); 124 stream=fopen(filename, "rb");
125 if (stream==NULL) 125 if (stream==NULL)
126 return 0; 126 return 0;
127 127