Click here to Skip to main content
15,887,946 members
Home / Discussions / Design and Architecture
   

Design and Architecture

 
GeneralRe: What is the fastest and bestest programming language for math and games? Pin
mirkocontroller5-Mar-18 22:20
mirkocontroller5-Mar-18 22:20 
GeneralRe: What is the fastest and bestest programming language for math and games? Pin
Pete O'Hanlon5-Mar-18 23:22
mvePete O'Hanlon5-Mar-18 23:22 
GeneralRe: What is the fastest and bestest programming language for math and games? Pin
Gerry Schmitz6-Mar-18 5:38
mveGerry Schmitz6-Mar-18 5:38 
AnswerRe: What is the fastest and bestest programming language for math and games? Pin
Eddy Vluggen6-Mar-18 5:55
professionalEddy Vluggen6-Mar-18 5:55 
AnswerRe: What is the fastest and bestest programming language for math and games? Pin
jschell10-Mar-18 10:20
jschell10-Mar-18 10:20 
AnswerRe: What is the fastest and bestest programming language for math and games? Pin
Member 1377603012-Apr-18 3:57
Member 1377603012-Apr-18 3:57 
QuestionHow can certain languages hold 96-bit values? Pin
deXo-fan25-Feb-18 1:27
deXo-fan25-Feb-18 1:27 
GeneralRe: How can certain languages hold 96-bit values? Pin
harold aptroot25-Feb-18 2:09
harold aptroot25-Feb-18 2:09 
deXo-fan wrote:
how come C++ can have a "long double"-type that can hold 96 bit?
It doesn't really. Long double most commonly refers to the 80bit float type, but that's a weird size so it might be rounded up for eg alignment purposes. __m128 (and its integer relative, __m128i) really is a 128bit type, but it is a SIMD type that does not support many operations that interpret it as a single 128bit quantity (it's more about doing k operations at once on (128/k)bit quantities). If you find that your compiler does not support it, it must be over a decade old.

Apart from those odd exceptions, types wider than natively supported can easily be supported as structs that contains several fields that make up a value together, as happens for __int128, long long in 32bit C++ code, (u)long in C# running as 32bit code, C#'s decimal (which is a soft-float and therefore extremely slow), etc. Since many operations on those things are not directly supported by the processor, more code is generated to implement those operations. For example addition can be "chained" by using the adc instruction, and there are somewhat more complicated algorithms for multiword arithmetic in general (actually you are already familiar with some of them, since you probably learned decimal arithmetic and that requires non-trivial algorithms to deal with any numbers that have more than 1 digit).
GeneralRe: How can certain languages hold 96-bit values? Pin
deXo-fan25-Feb-18 2:58
deXo-fan25-Feb-18 2:58 
GeneralRe: How can certain languages hold 96-bit values? Pin
harold aptroot25-Feb-18 3:42
harold aptroot25-Feb-18 3:42 
AnswerRe: How can certain languages hold 96-bit values? Pin
Eddy Vluggen25-Feb-18 4:58
professionalEddy Vluggen25-Feb-18 4:58 
QuestionOPENID Connect Sharing Token. Pin
idreesbadshah20-Feb-18 1:04
idreesbadshah20-Feb-18 1:04 
Rant[REPOST] OPENID Connect Sharing Token. Pin
Richard Deeming20-Feb-18 2:33
mveRichard Deeming20-Feb-18 2:33 
QuestionBest Way To Check For Duplicate Company Name Pin
Kevin Marois18-Feb-18 9:42
professionalKevin Marois18-Feb-18 9:42 
AnswerRe: Best Way To Check For Duplicate Company Name Pin
Eddy Vluggen18-Feb-18 10:05
professionalEddy Vluggen18-Feb-18 10:05 
AnswerRe: Best Way To Check For Duplicate Company Name Pin
Pete O'Hanlon18-Feb-18 10:20
mvePete O'Hanlon18-Feb-18 10:20 
GeneralRe: Best Way To Check For Duplicate Company Name Pin
Kevin Marois19-Feb-18 4:51
professionalKevin Marois19-Feb-18 4:51 
GeneralRe: Best Way To Check For Duplicate Company Name Pin
Pete O'Hanlon19-Feb-18 6:30
mvePete O'Hanlon19-Feb-18 6:30 
GeneralRe: Best Way To Check For Duplicate Company Name Pin
Kevin Marois19-Feb-18 7:56
professionalKevin Marois19-Feb-18 7:56 
GeneralRe: Best Way To Check For Duplicate Company Name Pin
jschell23-Feb-18 13:39
jschell23-Feb-18 13:39 
AnswerRe: Best Way To Check For Duplicate Company Name Pin
Mycroft Holmes18-Feb-18 13:29
professionalMycroft Holmes18-Feb-18 13:29 
AnswerRe: Best Way To Check For Duplicate Company Name Pin
Gerry Schmitz19-Feb-18 6:27
mveGerry Schmitz19-Feb-18 6:27 
AnswerRe: Best Way To Check For Duplicate Company Name Pin
jschell23-Feb-18 13:42
jschell23-Feb-18 13:42 
QuestionDesign and Architecture Example Pin
gowthami.gnits@gmail.com12-Feb-18 7:38
gowthami.gnits@gmail.com12-Feb-18 7:38 
AnswerRe: Design and Architecture Example Pin
Gerry Schmitz12-Feb-18 7:52
mveGerry Schmitz12-Feb-18 7:52 

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.