search for: calcsize

Displaying 3 results from an estimated 3 matches for "calcsize".

Did you mean: calc_size
2010 Apr 14
1
[LLVMdev] Most efficient way to count # of intrcutions in a module ?
...nstructions in a given module. The only way I found is using the obvious double iteration as seen below. Is there any more efficient way to achieve this ? I don't like the fact that simple calculation like that has performance of o(F*B) (# of functions * # of blocks per function) unsigned int calcSize(Module* mod) { unsigned int size = 0; for (Module::iterator f = mod->begin(), fe = mod->end(); f != fe; ++f) for (Function::iterator b = f->begin(), be = f->end(); b != be; ++b) { BasicBlock* bb = (BasicBlock*) b; size+=bb->getInstList(...
2005 Nov 17
1
[PATCH]xentrace_format doesn''t work on 64 bit arch
...TRCREC = "IQLLLLLL" +# read CPU id separately to avoid structure packing problems on 64-bit arch. +CPUREC = "I" +TRCREC = "QLLLLLL" last_tsc = [0,0,0,0,0,0,0,0] @@ -94,11 +96,16 @@ while not interrupted: try: i=i+1 + line = sys.stdin.read(struct.calcsize(CPUREC)) + if not line: + break + cpu = struct.unpack(CPUREC, line)[0] + line = sys.stdin.read(struct.calcsize(TRCREC)) if not line: break - (cpu, tsc, event, d1, d2, d3, d4, d5) = struct.unpack(TRCREC, line) + (tsc, event, d1,...
2007 Mar 02
0
Wine release 0.9.32
...byte static buffer overflow. netapi32: Fixed array overflow (spotted by Coverity). Miko?aj Zalewski (10): comctl32: rebar: Rewrite the layout code. comctl32: rebar: Test and fix the WM_SIZE handler and REBAR_ForceResize. comctl32: rebar: Store the coordinates of infoPtr->calcSize swapped for CCS_VERT. comctl32: rebar: Store the oldSize as a local variable. comctl32: listview: Set the style in WM_CREATE. comctl32: rebar: Test the RBN_HEIGHTCHANGE notify and do some fixes. comctl32: rebar: WM_SETFONT should send a RBN_HEIGHTCHANGE if necessary. c...