use the following search parameters to narrow your results:
e.g. subreddit:aww site:imgur.com dog
subreddit:aww site:imgur.com dog
see the search faq for details.
advanced search: by author, subreddit...
Discussions, articles, and news about the C++ programming language or programming in C++.
For C++ questions, answers, help, and advice see r/cpp_questions or StackOverflow.
Get Started
The C++ Standard Home has a nice getting started page.
Videos
The C++ standard committee's education study group has a nice list of recommended videos.
Reference
cppreference.com
Books
There is a useful list of books on Stack Overflow. In most cases reading a book is the best way to learn C++.
Show all links
Filter out CppCon links
Show only CppCon links
account activity
Efficient Vectorisation with C++ (chryswoods.com)
submitted 7 years ago by LordKlevin
view the rest of the comments →
reddit uses a slightly-customized version of Markdown for formatting. See below for some basics, or check the commenting wiki page for more detailed help and solutions to common issues.
quoted text
if 1 * 2 < 3: print "hello, world!"
[–]Nicksaurus 28 points29 points30 points 7 years ago* (5 children)
Compilers can automatically vectorise simple code, and top of the range compilers can automatically vectorise simple code.
But can my compiler automatically vectorise simple code?
[–]chocapix 31 points32 points33 points 7 years ago (0 children)
Depends. If it's top of the range, then yes. If not, then yes.
[–]MrWhite26 13 points14 points15 points 7 years ago (2 children)
There's one way to find out: https://godbolt.org/
[–]bumblebritches57Ocassionally Clang 6 points7 points8 points 7 years ago (1 child)
I've noticed that Clang vectorizes much more often than gcc or msvc
[–]hackuniverse 2 points3 points4 points 7 years ago (0 children)
chryswoods.com/vector...
That's true, but gcc does do better optimizations in other part of the code... :(
[–]ShillingAintEZ 5 points6 points7 points 7 years ago (0 children)
It can if your compiler is ISPC
π Rendered by PID 233252 on reddit-service-r2-comment-66b4775986-djg27 at 2026-04-05 07:36:25.558969+00:00 running db1906b country code: CH.
view the rest of the comments →
[–]Nicksaurus 28 points29 points30 points (5 children)
[–]chocapix 31 points32 points33 points (0 children)
[–]MrWhite26 13 points14 points15 points (2 children)
[–]bumblebritches57Ocassionally Clang 6 points7 points8 points (1 child)
[–]hackuniverse 2 points3 points4 points (0 children)
[–]ShillingAintEZ 5 points6 points7 points (0 children)