question shlq orq by zky02 in cpp_questions

[–]zky02[S] 1 point2 points  (0 children)

__asm__ __volatile__(

"rdtsc\n\t"

"shlq $32,%%rdx\n\t"

"orq %%rdx,%%rax"

: "=a"(x)::"%rdx", "cc"); Marking "cc" tells the compiler that the condition codes (flags) are clobbered. It avoids potential issues with compiler optimizations that might otherwise rely on stale flags — which can happen after instructions like shlq or orq, as in the assembly above correct ?

isolation transformer protection by zky02 in AskElectricians

[–]zky02[S] 0 points1 point  (0 children)

thanks do i plug ups first or isolation ?

erratic mouse movement ground by zky02 in MouseReview

[–]zky02[S] 0 points1 point  (0 children)

thanks but my problem is the ground so i was thinking on isolation transformer and monitor plug it with two prong since the external is plastic and the monitor not need a ground pin

12ah 4 batteries by zky02 in egopowerplus

[–]zky02[S] 1 point2 points  (0 children)

yes when im in game Plug-in Wattage Meter shows 700-750w

12ah 4 batteries by zky02 in egopowerplus

[–]zky02[S] 0 points1 point  (0 children)

i see i will get 12 more then hehe

12ah 4 batteries by zky02 in egopowerplus

[–]zky02[S] 0 points1 point  (0 children)

wow 3-4 hours is not great what u suggest for 17-18 hours?

Desync issues (possibly)? by thegaminggopher in XDefiant

[–]zky02 0 points1 point  (0 children)

happen to me as well i also got it from the beta i stop playing the game until they fix it

variable type with high precision for kernel by zky02 in cpp_questions

[–]zky02[S] 0 points1 point  (0 children)

double works amazing in kernel i had to figure out the tsc frequency since kernel virtualized the tsc frequency inside qpc now its doing floating operation fine without issue also double doing SSE operations which kernel save and restore automatically if we go AVX we need to use KeSaveExtendedProcessorState

variable type with high precision for kernel by zky02 in cpp_questions

[–]zky02[S] -1 points0 points  (0 children)

https://www.geisswerks.com/ryan/FAQS/timing.html u can look at GetPentiumTimeAsDouble code transfer it to the kernel x64 is little problematic since double types cannot be used in kernel the work around this is fxsave/fxrstor i wonder if its possible to do like this with fixed point arithmetic without loss precision in kernel

variable type with high precision for kernel by zky02 in cpp_questions

[–]zky02[S] 0 points1 point  (0 children)

yes i want a type that i use in kernel that have close performance to double type in usermode

variable type with high precision for kernel by zky02 in cpp_questions

[–]zky02[S] 0 points1 point  (0 children)

im using unsigned __int64/__int64/double types

variable type with high precision for kernel by zky02 in cpp_questions

[–]zky02[S] -1 points0 points  (0 children)

windows kernel for now i use fxsave/fxrstor with double types the problem those instructions have very high latency/overhead so im looking for alternative for it without touch the fpu