Click here to Skip to main content
15,847,902 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: working with C++ includes and examining header files used in LLVM Pin
Richard MacCutchan5-Jul-23 22:48
mveRichard MacCutchan5-Jul-23 22:48 
GeneralRe: working with C++ includes and examining header files used in LLVM Pin
jschell6-Jul-23 6:25
jschell6-Jul-23 6:25 
GeneralRe: working with C++ includes and examining header files used in LLVM Pin
Richard MacCutchan6-Jul-23 6:35
mveRichard MacCutchan6-Jul-23 6:35 
QuestionBoolean gates. Part 2 Pin
Calin Negru5-Jul-23 5:17
Calin Negru5-Jul-23 5:17 
AnswerRe: Boolean gates. Part 2 Pin
Mircea Neacsu5-Jul-23 5:36
Mircea Neacsu5-Jul-23 5:36 
GeneralRe: Boolean gates. Part 2 Pin
jeron15-Jul-23 5:52
jeron15-Jul-23 5:52 
AnswerRe: Boolean gates. Part 2 Pin
trønderen5-Jul-23 6:10
trønderen5-Jul-23 6:10 
GeneralRe: Boolean gates. Part 2 Pin
harold aptroot5-Jul-23 7:31
harold aptroot5-Jul-23 7:31 
Well, a little more than 32 (unless you count a full adder as one gate? but I wouldn't). Especially if you use any type of fast adder which is often mandatory to hit frequency targets. Subtraction doesn't cost much extra, you can reuse your adder by turning it into an adder-subtractor. Comparisons don't cost extra, comparison is subtraction. Multipliers are bigger.

So it costs a few more gates than you estimated, but also there are far more transistors: billions, these days.

(Scalar) ALUs are not a big part of a modern high-performance CPU, even after accounting for there being a handful of them (I mean multiple per core, of course there are usually multiple cores too). Here's a fun article showing how big various parts of a CPU actually are, keep in mind it's showing a super obsolete Pentium 4: Intel’s Netburst: Failure is a Foundation for Success – Chips and Cheese
GeneralRe: Boolean gates. Part 2 Pin
Calin Negru5-Jul-23 9:02
Calin Negru5-Jul-23 9:02 
GeneralRe: Boolean gates. Part 2 Pin
harold aptroot5-Jul-23 11:09
harold aptroot5-Jul-23 11:09 
GeneralRe: Boolean gates. Part 2 Pin
Calin Negru6-Jul-23 0:33
Calin Negru6-Jul-23 0:33 
AnswerRe: Boolean gates. Part 2 Pin
PIEBALDconsult5-Jul-23 8:11
mvePIEBALDconsult5-Jul-23 8:11 
AnswerRe: Boolean gates. Part 2 Pin
CPallini5-Jul-23 21:35
mveCPallini5-Jul-23 21:35 
GeneralRe: Boolean gates. Part 2 Pin
Calin Negru7-Jul-23 1:36
Calin Negru7-Jul-23 1:36 
QuestionArduino Switch Case. Pin
glennPattonWork330-Jun-23 4:46
professionalglennPattonWork330-Jun-23 4:46 
AnswerRe: Arduino Switch Case. Pin
jeron130-Jun-23 5:19
jeron130-Jun-23 5:19 
AnswerRe: Arduino Switch Case. Pin
Richard Andrew x6430-Jun-23 5:38
professionalRichard Andrew x6430-Jun-23 5:38 
GeneralRe: Arduino Switch Case. Pin
glennPattonWork330-Jun-23 11:12
professionalglennPattonWork330-Jun-23 11:12 
AnswerRe: Arduino Switch Case. Pin
Richard MacCutchan30-Jun-23 5:44
mveRichard MacCutchan30-Jun-23 5:44 
GeneralRe: Arduino Switch Case. Pin
glennPattonWork330-Jun-23 11:12
professionalglennPattonWork330-Jun-23 11:12 
AnswerRe: Arduino Switch Case. Pin
RedDk30-Jun-23 6:10
RedDk30-Jun-23 6:10 
GeneralRe: Arduino Switch Case. Pin
glennPattonWork330-Jun-23 11:15
professionalglennPattonWork330-Jun-23 11:15 
AnswerRe: Arduino Switch Case. Pin
glennPattonWork330-Jun-23 11:10
professionalglennPattonWork330-Jun-23 11:10 
QuestionBoolean gates Pin
Calin Negru24-Jun-23 17:32
Calin Negru24-Jun-23 17:32 
AnswerRe: Boolean gates Pin
PIEBALDconsult24-Jun-23 17:34
mvePIEBALDconsult24-Jun-23 17:34 

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.