Click here to Skip to main content
15,886,873 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 21:48
mveRichard MacCutchan5-Jul-23 21:48 
GeneralRe: working with C++ includes and examining header files used in LLVM Pin
jschell6-Jul-23 5:25
jschell6-Jul-23 5:25 
GeneralRe: working with C++ includes and examining header files used in LLVM Pin
Richard MacCutchan6-Jul-23 5:35
mveRichard MacCutchan6-Jul-23 5:35 
QuestionBoolean gates. Part 2 Pin
Calin Negru5-Jul-23 4:17
Calin Negru5-Jul-23 4:17 
AnswerRe: Boolean gates. Part 2 Pin
Mircea Neacsu5-Jul-23 4:36
Mircea Neacsu5-Jul-23 4:36 
GeneralRe: Boolean gates. Part 2 Pin
jeron15-Jul-23 4:52
jeron15-Jul-23 4:52 
AnswerRe: Boolean gates. Part 2 Pin
trønderen5-Jul-23 5:10
trønderen5-Jul-23 5:10 
GeneralRe: Boolean gates. Part 2 Pin
harold aptroot5-Jul-23 6:31
harold aptroot5-Jul-23 6: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 8:02
Calin Negru5-Jul-23 8:02 
GeneralRe: Boolean gates. Part 2 Pin
harold aptroot5-Jul-23 10:09
harold aptroot5-Jul-23 10:09 
GeneralRe: Boolean gates. Part 2 Pin
Calin Negru5-Jul-23 23:33
Calin Negru5-Jul-23 23:33 
AnswerRe: Boolean gates. Part 2 Pin
PIEBALDconsult5-Jul-23 7:11
mvePIEBALDconsult5-Jul-23 7:11 
AnswerRe: Boolean gates. Part 2 Pin
CPallini5-Jul-23 20:35
mveCPallini5-Jul-23 20:35 
GeneralRe: Boolean gates. Part 2 Pin
Calin Negru7-Jul-23 0:36
Calin Negru7-Jul-23 0:36 
QuestionArduino Switch Case. Pin
glennPattonWork330-Jun-23 3:46
professionalglennPattonWork330-Jun-23 3:46 
AnswerRe: Arduino Switch Case. Pin
jeron130-Jun-23 4:19
jeron130-Jun-23 4:19 
AnswerRe: Arduino Switch Case. Pin
Richard Andrew x6430-Jun-23 4:38
professionalRichard Andrew x6430-Jun-23 4:38 
GeneralRe: Arduino Switch Case. Pin
glennPattonWork330-Jun-23 10:12
professionalglennPattonWork330-Jun-23 10:12 
AnswerRe: Arduino Switch Case. Pin
Richard MacCutchan30-Jun-23 4:44
mveRichard MacCutchan30-Jun-23 4:44 
GeneralRe: Arduino Switch Case. Pin
glennPattonWork330-Jun-23 10:12
professionalglennPattonWork330-Jun-23 10:12 
AnswerRe: Arduino Switch Case. Pin
RedDk30-Jun-23 5:10
RedDk30-Jun-23 5:10 
GeneralRe: Arduino Switch Case. Pin
glennPattonWork330-Jun-23 10:15
professionalglennPattonWork330-Jun-23 10:15 
AnswerRe: Arduino Switch Case. Pin
glennPattonWork330-Jun-23 10:10
professionalglennPattonWork330-Jun-23 10:10 
QuestionBoolean gates Pin
Calin Negru24-Jun-23 16:32
Calin Negru24-Jun-23 16:32 
AnswerRe: Boolean gates Pin
PIEBALDconsult24-Jun-23 16:34
mvePIEBALDconsult24-Jun-23 16: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.