kfr

Fast, modern C++ DSP framework, FFT, Sample Rate Conversion, FIR/IIR/Biquad Filters (SSE, AVX, AVX-512, ARM NEON)
Log | Files | Refs | README

version.hpp (1505B)


      1 /** @addtogroup utility
      2  *  @{
      3  */
      4 /*
      5   Copyright (C) 2016-2023 Dan Cazarin (https://www.kfrlib.com)
      6   This file is part of KFR
      7 
      8   KFR is free software: you can redistribute it and/or modify
      9   it under the terms of the GNU General Public License as published by
     10   the Free Software Foundation, either version 2 of the License, or
     11   (at your option) any later version.
     12 
     13   KFR is distributed in the hope that it will be useful,
     14   but WITHOUT ANY WARRANTY; without even the implied warranty of
     15   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
     16   GNU General Public License for more details.
     17 
     18   You should have received a copy of the GNU General Public License
     19   along with KFR.
     20 
     21   If GPL is not suitable for your project, you must purchase a commercial license to use KFR.
     22   Buying a commercial license is mandatory as soon as you develop commercial activities without
     23   disclosing the source code of your own applications.
     24   See https://www.kfrlib.com for details.
     25  */
     26 #pragma once
     27 
     28 #include "runtime/cpuid_auto.hpp"
     29 
     30 namespace kfr
     31 {
     32 /// @brief Returns the string representation of the KFR library version, including target architecture.
     33 /// @return A constant character pointer to the version string.
     34 inline static const char* library_version() { return KFR_VERSION_FULL; }
     35 
     36 /// @brief Returns the current CPU name at runtime.
     37 /// @return A constant character pointer to the name of the current CPU.
     38 inline static const char* cpu_runtime() { return cpu_name(get_cpu()); }
     39 
     40 } // namespace kfr