LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Search Forums
User Name
Password

Notices


Showing results 1 to 2 of 2
Search took 0.01 seconds.
Search: Posts Made By: Mac1ek
Forum: Programming 03-13-2024, 05:57 AM
Replies: 6
Views: 160
Posted By Mac1ek
Il write simple benchmark for this, i not shure...

Il write simple benchmark for this, i not shure is correct:


#include <iostream>
#include <chrono>

constexpr auto fib_constexpr(unsigned int n) -> unsigned int {
return (n <= 1) ? n :...
Forum: Programming 03-13-2024, 04:38 AM
Replies: 6
Views: 160
Posted By Mac1ek
constexpr and performance result

Hi Why constexpr in function giving extremely high performance when i compare to plain function ?

example:


constexpr auto fib_constexpr(unsigned int n) -> unsigned int {
return (n <= 1) ? n...
Showing results 1 to 2 of 2

 

Didn't find what you're looking for? Try Google:


  



All times are GMT -5. The time now is 02:37 AM.

Main Menu
Advertisement
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration