MCPcopy Create free account
hub / github.com/git/git / copy_le64

Function copy_le64

archive-zip.c:159–169  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

157}
158
159static void copy_le64(unsigned char *dest, uint64_t n)
160{
161 dest[0] = 0xff & n;
162 dest[1] = 0xff & (n >> 010);
163 dest[2] = 0xff & (n >> 020);
164 dest[3] = 0xff & (n >> 030);
165 dest[4] = 0xff & (n >> 040);
166 dest[5] = 0xff & (n >> 050);
167 dest[6] = 0xff & (n >> 060);
168 dest[7] = 0xff & (n >> 070);
169}
170
171static uint64_t clamp_max(uint64_t n, uint64_t max, int *clamped)
172{

Callers 3

write_zip_data_descFunction · 0.85
write_zip_entryFunction · 0.85
write_zip64_trailerFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected