… | |
… | |
22 | static u8 mult_tab[16384]; |
22 | static u8 mult_tab[16384]; |
23 | |
23 | |
24 | static u32 |
24 | static u32 |
25 | fgetu32 (FILE * f) |
25 | fgetu32 (FILE * f) |
26 | { |
26 | { |
27 | return (fgetc (f) << 0) | |
27 | register u32 r; |
28 | (fgetc (f) << 8) | |
28 | |
29 | (fgetc (f) << 16) | |
29 | r = fgetc(f) << 0; |
|
|
30 | r |= fgetc(f) << 8; |
|
|
31 | r |= fgetc(f) << 16; |
30 | (fgetc (f) << 24); |
32 | r |= fgetc(f) << 24; |
|
|
33 | |
|
|
34 | return r; |
31 | } |
35 | } |
32 | |
36 | |
33 | static u32 |
37 | static u32 |
34 | fgetu16 (FILE * f) |
38 | fgetu16 (FILE * f) |
35 | { |
39 | { |
36 | return (fgetc (f) << 0) | |
40 | register u32 r; |
|
|
41 | |
|
|
42 | r = fgetc(f) << 0; |
37 | (fgetc (f) << 8); |
43 | r |= fgetc(f) << 8; |
|
|
44 | |
|
|
45 | return r; |
38 | } |
46 | } |
39 | |
47 | |
40 | static void |
48 | static void |
41 | load_zip (const char *path) |
49 | load_zip (const char *path) |
42 | { |
50 | { |