MCPcopy Create free account
hub / github.com/1a1a11a/libCacheSim / format_to_size

Function format_to_size

libCacheSim/traceReader/readerInternal.h:63–85  ·  view source on GitHub ↗

binary ****************/

Source from the content-addressed store, hash-verified

61
62/**************** binary ****************/
63static inline int format_to_size(char format) {
64 switch (format) {
65 case 'c':
66 case 'b':
67 case 'B':
68 return 1;
69 case 'h':
70 case 'H':
71 return 2;
72 case 'i':
73 case 'I':
74 case 'l':
75 case 'L':
76 case 'f':
77 return 4;
78 case 'q':
79 case 'Q':
80 case 'd':
81 return 8;
82 default:
83 ERROR("unknown format '%c'\n", format);
84 }
85}
86
87typedef struct {
88 int32_t time_offset;

Callers 2

cal_offsetFunction · 0.85
binaryReader_setupFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected