# std::experimental::simd_abi::max_fixed_size

> C++ Atlas: `cppatlas.com/w/cpp/experimental/simd/max_fixed_size` | Source: https://en.cppreference.com/w/cpp/experimental/simd/max_fixed_size | Domain: Technical specifications

The value of max_fixed_size<T> declares that an instance of simd<T, fixed_size<N>> with N <= max_fixed_size<T> is supported by the implementation.

## Official Specification Summary (cppreference)

```cpp
// Defined in header <experimental/simd>

template< class T >
constexpr int max_fixed_size = /*implementation-defined*/; // (parallelism TS v2)
```

The value of `max_fixed_size<T>` declares that an instance of `simd<T, fixed_size<N>>` with `N <= max_fixed_size<T>` is supported by the implementation. The value of `max_fixed_size<T>` is at least `32`.

### Notes

It is unspecified whether an implementation supports `simd<T, fixed_size<N>>` with `N > max_fixed_size<T>`. The value of `max_fixed_size<T>` may depend on compiler flags and may change between different compiler versions.

### Example

```cpp
#include <cstdint>
#include <experimental/simd>
#include <iostream>
namespace stq = std::experimental;

int main()
{
    std::cout << stq::simd_abi::max_fixed_size<std::uint8_t> << ' ';
    std::cout << stq::simd_abi::max_fixed_size<std::uint64_t> << ' ';
    std::cout << stq::simd_abi::max_fixed_size<float> << ' ';
    std::cout << stq::simd_abi::max_fixed_size<long double> << '\n';
}
```

Possible output:

```text
32 32 32 32
```

### See also

- [`fixed_size`](https://en.cppreference.com/w/cpp/experimental/simd/fixed_size) (parallelism TS v2): tag type for storing specified number of elements (alias template)

---
Attribution: content from https://en.cppreference.com/w/cpp/experimental/simd/max_fixed_size (cppreference.com), licensed under CC-BY-SA 3.0 and GFDL. Modified: converted to markdown, study notes added. Offline snapshot of 9 February 2025.