/* -*- C -*- */
/*
 * Copyright 2020 Free Software Foundation, Inc.
 *
 * This file is part of VOLK
 *
 * SPDX-License-Identifier: LGPL-3.0-or-later
 */

#ifndef INCLUDED_VOLK_VERSION_H
#define INCLUDED_VOLK_VERSION_H

#include <volk/volk_common.h>

__VOLK_DECL_BEGIN

/*
 * define macros for the Volk version, which can then be used by any
 * project that #include's this header, e.g., to determine whether
 * some specific API is present and functional.
 */

#define VOLK_VERSION_MAJOR @VERSION_INFO_MAJOR_VERSION@
#define VOLK_VERSION_MINOR @VERSION_INFO_MINOR_VERSION@
#define VOLK_VERSION_MAINT @VERSION_INFO_MAINT_VERSION@

/*
 * VOLK_VERSION % 100 is the MAINT version
 * (VOLK_VERSION / 100) % 100 is the MINOR version
 * (VOLK_VERSION / 100) / 100 is the MAJOR version
 */

#define VOLK_VERSION @VOLK_VERSION_DECIMAL@

__VOLK_DECL_END

#endif /* INCLUDED_VOLK_VERSION_H */
