Click here to Skip to main content
14,666,366 members
Home » Discussions » C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: Math problem with C code Pin
k505418-Apr-20 7:00
mvek505418-Apr-20 7:00 
GeneralSOLVED Re: Math problem with C code Pin
Vaclav_18-Apr-20 8:16
MemberVaclav_18-Apr-20 8:16 
QuestionRe: Math problem with C code Pin
Richard MacCutchan18-Apr-20 7:02
mveRichard MacCutchan18-Apr-20 7:02 
QuestionPass a struct as a function parameter or just use it as a global variable? Pin
Vaclav_18-Apr-20 5:23
MemberVaclav_18-Apr-20 5:23 
AnswerRe: Pass a struct as a function parameter or just use it as a global variable? Pin
k505418-Apr-20 6:17
mvek505418-Apr-20 6:17 
GeneralRe: Pass a struct as a function parameter or just use it as a global variable? Pin
Vaclav_18-Apr-20 6:30
MemberVaclav_18-Apr-20 6:30 
Questioncomputational cost of math functions Pin
CalinNegru(fearless_)17-Apr-20 5:06
MemberCalinNegru(fearless_)17-Apr-20 5:06 
AnswerRe: computational cost of math functions Pin
OriginalGriff17-Apr-20 5:10
mveOriginalGriff17-Apr-20 5:10 
No - it depends on the compiler, the library, the OS, the processor, the system loading, the ... you get the idea.
You want to find out? Write code to execute the same function for a huge range of values and run it many, many times. Time that, and average out the run time by the number of sin operations. Ruin this a dozen times, and average out the values.
Then take out the "payload sin call" and repeat the tests. The difference should be the execution time of the sin operation.
"I have no idea what I did, but I'm taking full credit for it." - ThisOldTony
AntiTwitter: @DalekDave is now a follower!

GeneralRe: computational cost of math functions Pin
CalinNegru(fearless_)17-Apr-20 6:58
MemberCalinNegru(fearless_)17-Apr-20 6:58 
GeneralRe: computational cost of math functions Pin
leon de boer17-Apr-20 7:04
Memberleon de boer17-Apr-20 7:04 
GeneralRe: computational cost of math functions Pin
CalinNegru(fearless_)17-Apr-20 8:14
MemberCalinNegru(fearless_)17-Apr-20 8:14 
GeneralRe: computational cost of math functions Pin
Joe Woodbury17-Apr-20 10:43
professionalJoe Woodbury17-Apr-20 10:43 
GeneralRe: computational cost of math functions Pin
Member 798912217-Apr-20 11:47
MemberMember 798912217-Apr-20 11:47 
GeneralRe: computational cost of math functions Pin
Joe Woodbury17-Apr-20 12:53
professionalJoe Woodbury17-Apr-20 12:53 
GeneralRe: computational cost of math functions Pin
Member 798912217-Apr-20 13:03
MemberMember 798912217-Apr-20 13:03 
AnswerRe: computational cost of math functions Pin
CPallini17-Apr-20 7:04
mveCPallini17-Apr-20 7:04 
AnswerRe: computational cost of math functions Pin
Member 798912217-Apr-20 12:37
MemberMember 798912217-Apr-20 12:37 
GeneralRe: computational cost of math functions Pin
harold aptroot17-Apr-20 16:12
Memberharold aptroot17-Apr-20 16:12 
AnswerRe: computational cost of math functions Pin
CalinNegru(fearless_)18-Apr-20 8:56
MemberCalinNegru(fearless_)18-Apr-20 8:56 
Questionmfc LoadBitmap hangs my application... Pin
charlieg15-Apr-20 12:21
Membercharlieg15-Apr-20 12:21 
AnswerRe: mfc LoadBitmap hangs my application... Pin
_Flaviu16-Apr-20 1:37
Member_Flaviu16-Apr-20 1:37 
GeneralRe: mfc LoadBitmap hangs my application... Pin
charlieg16-Apr-20 4:30
Membercharlieg16-Apr-20 4:30 
GeneralRe: mfc LoadBitmap hangs my application... Pin
_Flaviu16-Apr-20 5:24
Member_Flaviu16-Apr-20 5:24 
GeneralRe: mfc LoadBitmap hangs my application... Pin
leon de boer16-Apr-20 6:29
Memberleon de boer16-Apr-20 6:29 
GeneralRe: mfc LoadBitmap hangs my application... Pin
_Flaviu16-Apr-20 7:21
Member_Flaviu16-Apr-20 7:21 

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.