Skip to content
Better HN
Top
Best
Ask
Show
New
Jobs
Search
⌘K
0 points
archgoon
7y ago
0 comments
Save
Share
Nope; doesn't work for clang. Clang actually detects and compiles the algebraic closed form sum(i^2, n) for a bound n.
0 comments
1 comments · 1 top-level
top
newest
oldest
trogdc
7y ago
You'd have to use "volatile int n"
j
/
k
navigate · click thread line to collapse