3 ms·
Only if your code were SIMD aligned. But that is not code that your typical compiler outputs. GCC has supported autovectorization for a while now. "Unoptimize
by colanderman 13y ago
Only if your code were SIMD aligned. But that is not code that your typical compiler outputs.
GCC has supported autovectorization for a while now.
"Unoptimized code will be slow" isn't a great argument anyway. There's not much a processor can do to help that.
- dragontamer 13y agoOnly with proper pragmas and loop constructs. Besides, most ARM chips supported vectorized code anyway. You know, NEON? http://www.arm.com/products/processors/technologies/neon.php http://www.arm.com/products/processors/technologies/neon.php ARM64 does NOT grant you the vectorized instruction advantage. Qualcomm Snapdragon Krait have supported NEON for some time already. http://www.anandtech.com/show/5559/qualcomm-snapdragon-s4-krait-performance-preview-msm8960-adreno-225-benchmarks/2 http://www.anandtech.com/show/5559/qualcomm-snapdragon-s4-kr... So many people are arguing here, but clearly few of you people have even worked with ARM chips at the assembly level.
- colanderman 13y agoOnly with proper pragmas and loop constructs. (1) it's enabled by default at -O3; (2) the loop constructs needed are fairly simple; (3) arguing that unoptimized code will be slow is still a poor argument. ARM64 does NOT grant you the vectorized instruction advantage. 32-bit ARM NEON does not support vectorized doubles. 64-bit ARM NEON does. Source: http://en.wikipedia.org/wiki/ARM_NEON#Advanced_SIMD_.28NEON.29 http://en.wikipedia.org/wiki/ARM_NEON#Advanced_SIMD_.28NEON.... So many people are arguing here, but clearly few of you people have even worked with ARM chips at the assembly level. Yep. Thankfully I can back up my arguments with quoted facts. EDIT: and I already granted that vectorized and floating-point operations don't necessarily benefit from larger register widths, so I don't know why you're even arguing. Let alone the OP wasn't even asking specifically about ARM!