1.6 KiB
1.6 KiB
title, type, source, source_url, author, handle, post_id, date, archived, draft, tags, description, in_reply_to
| title | type | source | source_url | author | handle | post_id | date | archived | draft | tags | description | in_reply_to | |||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| instead of using the decimal system for timing (e.g., 1000 for milliseconds)—which means using division and multiplication instructions—i'm using a base-2 system (e.g., 1024 for "milliseconds") to use cheap math, such as bit shifts. | archive | https://x.com/VPCOMPRESSB/status/2100820105290481713 | /i:'mɪər/ | VPCOMPRESSB | 2100820105290481713 | 2026-09-18 | 2026-11-16 | false |
|
instead of using the decimal system for timing (e.g., 1000 for milliseconds)—which means using division and multiplication instructions—i'm using a base-2 system (e.g., 1024 for "milliseconds") to use cheap math, such as bit shifts. |
Source
- URL: https://x.com/VPCOMPRESSB/status/2100820105290481713
- Author: /i:'mɪər/ (@VPCOMPRESSB)
- Posted: 2026-09-18 05:31:59
Thread
1/ @VPCOMPRESSB ^2100820105290481713
instead of using the decimal system for timing (e.g., 1000 for milliseconds)—which means using division and multiplication instructions—i'm using a base-2 system (e.g., 1024 for "milliseconds") to use cheap math, such as bit shifts.
2/ @VPCOMPRESSB ^2100820108067152277
if i ever, rarely, need a decimal time, then it's as easy as converting $ to ₽.
3/ @VPCOMPRESSB ^2100820111120543909
i'm not a fan of QueryPerformanceCounter.
i've used SYSTEM_HYPERVISOR_USER_SHARED_DATA to translate RDTSCP into a standard time, but Microsoft's docs regarding RDTSCP is scary.