Click here to Skip to main content
16,019,740 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: Addendum how to build real time events in Qt? Pin
Richard MacCutchan7-Sep-24 21:29
mveRichard MacCutchan7-Sep-24 21:29 
QuestionLooking for opinions on currency handling.... Pin
Jeremy Falcon2-Sep-24 8:20
professionalJeremy Falcon2-Sep-24 8:20 
GeneralRe: Looking for opinions on currency handling.... Pin
k50542-Sep-24 11:16
mvek50542-Sep-24 11:16 
GeneralRe: Looking for opinions on currency handling.... Pin
Jeremy Falcon2-Sep-24 11:35
professionalJeremy Falcon2-Sep-24 11:35 
GeneralRe: Looking for opinions on currency handling.... Pin
Richard Andrew x642-Sep-24 13:49
professionalRichard Andrew x642-Sep-24 13:49 
GeneralRe: Looking for opinions on currency handling.... Pin
Jeremy Falcon2-Sep-24 13:56
professionalJeremy Falcon2-Sep-24 13:56 
GeneralRe: Looking for opinions on currency handling.... Pin
Richard Andrew x642-Sep-24 14:26
professionalRichard Andrew x642-Sep-24 14:26 
GeneralRe: Looking for opinions on currency handling.... Pin
Jeremy Falcon2-Sep-24 15:33
professionalJeremy Falcon2-Sep-24 15:33 
Ah, I haven't played with ASM since the 16-bit days and it was only a tiny bit back then to help me debug C code really. So, this may be old and crusty info... Laugh | :laugh:

But, yeah typically in a 64-bit CPU the registers don't go any wider than 64-bits. Now, there are extended instruction sets (SSE, SSE2, etc.), but those usually deal more with capabilities per instruction than data/bus width.

One notable exception is that all CPUs have FPUs these days and most FPUs can process 80-bit wide floats natively, even on a 64-bit CPU. AFAIK, there are no 128-bit registers/extensions for 64-bit CPUs for anything.

Which means, if I got a 128-bit number, any programming language that compiles it will have to treat that as two 64-bit values in the binary. Good news is, it's a loooooooooot easier to do with integers than floats. Say for instance, a quadruple precision float that's 128-bits is over 100 times slower than a 80-bit float. With an integer, you're just one bit shift away from getting the high word.

Stuff like the C runtime will have a native 128-bit type, but the binary will still have to break it down into two under the hood.
Jeremy Falcon

AnswerRe: Looking for opinions on currency handling.... Pin
CPallini2-Sep-24 20:05
mveCPallini2-Sep-24 20:05 
GeneralRe: Looking for opinions on currency handling.... Pin
Jeremy Falcon3-Sep-24 2:48
professionalJeremy Falcon3-Sep-24 2:48 
GeneralRe: Looking for opinions on currency handling.... Pin
CPallini3-Sep-24 3:07
mveCPallini3-Sep-24 3:07 
GeneralRe: Looking for opinions on currency handling.... Pin
Jeremy Falcon3-Sep-24 3:23
professionalJeremy Falcon3-Sep-24 3:23 
GeneralRe: Looking for opinions on currency handling.... Pin
Mircea Neacsu3-Sep-24 15:45
Mircea Neacsu3-Sep-24 15:45 
GeneralRe: Looking for opinions on currency handling.... Pin
Jeremy Falcon3-Sep-24 15:50
professionalJeremy Falcon3-Sep-24 15:50 
GeneralRe: Looking for opinions on currency handling.... Pin
Jeremy Falcon3-Sep-24 15:53
professionalJeremy Falcon3-Sep-24 15:53 
GeneralRe: Looking for opinions on currency handling.... Pin
Mircea Neacsu3-Sep-24 16:07
Mircea Neacsu3-Sep-24 16:07 
GeneralRe: Looking for opinions on currency handling.... Pin
Jeremy Falcon3-Sep-24 17:31
professionalJeremy Falcon3-Sep-24 17:31 
QuestionADDENDUM How to display full 4 binary bits - after QString "number" option converts string to int. including hexadecimal strings. Pin
jana_hus30-Aug-24 7:39
jana_hus30-Aug-24 7:39 
QuestionRe: How to display full 4 binary bits - after QString "number" option converts string to int. Pin
Richard MacCutchan30-Aug-24 8:05
mveRichard MacCutchan30-Aug-24 8:05 
AnswerRe: REOPEN How to display full 4 binary bits - after QString "number" option converts string to int. including hexadecimal strings. Pin
Richard MacCutchan3-Sep-24 21:56
mveRichard MacCutchan3-Sep-24 21:56 
Questionwrapping enum in namespace ? Pin
Maximilien29-Aug-24 3:37
Maximilien29-Aug-24 3:37 
AnswerRe: wrapping enum in namespace ? Pin
k505429-Aug-24 5:43
mvek505429-Aug-24 5:43 
GeneralRe: wrapping enum in namespace ? Pin
Maximilien29-Aug-24 6:41
Maximilien29-Aug-24 6:41 
QuestionThis should be an easy question... 128-bit blues. Pin
Jeremy Falcon28-Aug-24 11:12
professionalJeremy Falcon28-Aug-24 11:12 
AnswerRe: This should be an easy question... 128-bit blues. Pin
k505428-Aug-24 12:04
mvek505428-Aug-24 12:04 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.