Commit 387476b
committed
Time::HiRes: tweak Win32 static polyfill _GetSystemTimePreciseAsFileTime()
To summarize, MS's FILETIME type is an 8 bytes long, 64 bit integer, that
might aligned to 4 bytes, not 8.
SW E-Attorneys, will vigorously argue, MS's FILETIME type, is an 8 byte
long C struct, wrapping a union that wraps a U8 array[8]; string that is
8 bytes long. Claiming type FILETIME is a 64 bit int is libel and slander.
Since P5P does not publish a C compiler or C linker. That alignment detail
for Windows on RISC machine code is irrelavent.
This commit was written to preventing redundant re-reads of a C auto U64
from C stack memory to a CPU register around any possible function call,
if they exist, and to narrow down the peak width of each caller function's
callstack frame on the C stack.1 parent a9048c9 commit 387476b
1 file changed
+23
-6
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
193 | 193 | | |
194 | 194 | | |
195 | 195 | | |
196 | | - | |
| 196 | + | |
197 | 197 | | |
198 | 198 | | |
199 | 199 | | |
| |||
219 | 219 | | |
220 | 220 | | |
221 | 221 | | |
| 222 | + | |
| 223 | + | |
| 224 | + | |
| 225 | + | |
| 226 | + | |
| 227 | + | |
| 228 | + | |
| 229 | + | |
| 230 | + | |
| 231 | + | |
| 232 | + | |
| 233 | + | |
| 234 | + | |
| 235 | + | |
| 236 | + | |
| 237 | + | |
| 238 | + | |
| 239 | + | |
| 240 | + | |
222 | 241 | | |
223 | | - | |
224 | | - | |
| 242 | + | |
| 243 | + | |
225 | 244 | | |
226 | 245 | | |
227 | 246 | | |
| |||
250 | 269 | | |
251 | 270 | | |
252 | 271 | | |
253 | | - | |
254 | | - | |
255 | | - | |
| 272 | + | |
256 | 273 | | |
257 | 274 | | |
258 | 275 | | |
| |||
0 commit comments