<i>NativeGetTime time-drifts bug (fixed)</i> status still Open with 3 other changes
by
.
D 2017-01-06T17:01:16.590
J icomment >\sMy\sonly\sremark,\son\sthe\s"do\s{...}\swhile(0)":\sPlease\sdon't\sdo\sthat,\sjust\sleave\sthe\svariable\s"struct\s_timeb\st"\sat\sthe\stop\sof\sthe\sfunction,\swhere\sit\soriginally\swas.\r\n\r\nThe\sgoal\sis\sto\sdeclare\s<b>normally\sunused</b>\svariable\s"struct\s_timeb\st"\sas\sclose\sto\slocal\suse\sas\spossible...\r\n\r\nThis\snew\sscope\sallows:\r\n\s\s\s\s-\sbetter\sto\sread\sif\svariable\sdeclared\spair\srows\sabove\swhere\sit'll\sbe\sused\sonly\s(and\snot\sat\sbegin\sof\spossibly\slarge\sprocedure).\r\n\s\s\s\s-\smore\schances\sthe\scompiler\soptimized\ssuch\scode\sas\sfast\sas\spossible\s(e.\sg.\sby\s-O2\sor\s-O3,\s-Ofast\sit\swill\suse\sstack\sresp.\sregisters\salready\sunused\selsewhere\sabove).\r\n\r\nIt\sis\smost\simportant\s(by\snearby\sreal-time\spurposes)\sand\ssometimes\soften\sused\sfunction,\sso\sI'll\sappreciate\sto\sdo\sthat,\sif\sno\sanother\sobjections.\r\n\r\nBut\sif\syou\swant,\sI\scan\sreplace\sthe\sdo...while(0)\sscope\swith\sthe\sbare\sbraces\sscope...\s(I\smean\sI\ssaw\ssome\sobsolete\scompilers,\sthat\sdon't\slike\sbare\sbraces\sscopes).
J login sebres
J mimetype text/plain
K b87ad7e9146832d505f9a430d779c5313c440256
U sebres
Z 11e8fdd3db389a552e74dc5211186ee9