vir-simd 0.4.189
Parallelism TS 2 extensions and simd fallback implementation
Loading...
Searching...
No Matches
simd_version.h File Reference

Version macros and version constant. More...

Go to the source code of this file.

Classes

struct  vir::simd_version_t
 Represents the vir-simd version of major, minor, and patchlevel components. More...
 

Namespaces

namespace  vir
 This namespace collects libraries and tools authored by Matthias Kretz.
 

Macros

#define VIR_SIMD_VERSION   0x0'04'bd
 The current version as a single integer.
 
#define VIR_SIMD_VERSION_MAJOR   (VIR_SIMD_VERSION / 0x10000)
 The major version number component.
 
#define VIR_SIMD_VERSION_MINOR   ((VIR_SIMD_VERSION % 0x10000) / 0x100)
 The minor version number component.
 
#define VIR_SIMD_VERSION_PATCHLEVEL   (VIR_SIMD_VERSION % 0x100)
 The patchlevel version number component.
 

Variables

constexpr simd_version_t vir::simd_version = { ( 0x0'04'bd / 0x10000), (( 0x0'04'bd % 0x10000) / 0x100), ( 0x0'04'bd % 0x100)}
 The current version.
 

Detailed Description

Version macros and version constant.

Macro Definition Documentation

◆ VIR_SIMD_VERSION

#define VIR_SIMD_VERSION   0x0'04'bd

The current version as a single integer.

The least significant 8 bits represent the patchlevel:

  • release >= 0x00 and even
  • development >= 0x00 and odd
  • alpha >= 0xbe
  • beta >= 0xc8

◆ VIR_SIMD_VERSION_MAJOR

#define VIR_SIMD_VERSION_MAJOR   (VIR_SIMD_VERSION / 0x10000)

The major version number component.

See also
vir::simd_version_t::major

◆ VIR_SIMD_VERSION_MINOR

#define VIR_SIMD_VERSION_MINOR   ((VIR_SIMD_VERSION % 0x10000) / 0x100)

The minor version number component.

See also
vir::simd_version_t::minor

◆ VIR_SIMD_VERSION_PATCHLEVEL

#define VIR_SIMD_VERSION_PATCHLEVEL   (VIR_SIMD_VERSION % 0x100)

The patchlevel version number component.

See also
vir::simd_version_t::patchlevel