Skip to content

Latest commit

 

History

History
38 lines (24 loc) · 726 Bytes

367.md

File metadata and controls

38 lines (24 loc) · 726 Bytes
Info

Example

#include <experimental/simd>

int main() {
    std::experimental::simd<int> s{};
    s = 1;

    for (auto i = 0; i < std::size(s); ++i) {
        std::print("{}", int(s[i])); // prints 1111 (depending on the arch)
    }
}

https://godbolt.org/z/7dhGs7Mz3

Puzzle

  • **Can you show use cases for all simd constructors?
// TODO simd constructors

https://godbolt.org/z/M8EKbozEe

Solutions