This is a fork of the latest version of Vector Class Library that implements the meson build system.
This is a C++ class library for using the Single Instruction Multiple Data (SIMD) instructions to improve performance on modern microprocessors with the x86 or x86/64 instruction set on Windows, Linux, and Mac platforms. There are no plans to support ARM or other instruction sets.
Add-on packages for particular applications
Getting-started video. Video blogger Christopher Rose has made this nice video telling how to get started with the Vector Class Library.
Help: You may ask for programming help on StackOverflow using the tag vector-class-library.
It can be used directly through a "wrap file", for example you can copy-paste the following in your subprojects/
folder, at the root of your meson project, as vcl.wrap
:
[wrap-git]
url = https://github.com/AdelKS/vcl-meson.git
revision = master
depth = 1
[provide]
dependency_names = vcl
Note: Documentation about wrap files here
Then you can declare your dependency in your meson.build
with
vcl_dep = dependency('vcl', version : '>=2.0')
The library's headers can then be included under the vcl
prefix, for example:
#include <vcl/vectorclass.h>
The test subfolder is meant to contain tests that can also serve as examples. For now only one test has been added to demonstrate one way to handle tests without using an external testing library (e.g. Google test)
You must first setup a build folder with
meson setup build
then you can simply cd into the folder and run meson test
cd build && meson test
- Write a complete test C++ code:
- Must include the
int main()
function that returns a non-zero value when the test fails.
- Must include the
- Save it in a
.cpp
file in this folder, for examplesin_cos_lookup.cpp
. - Add your file name to the
vcl_test_sources
array at the top of test/meson.build file. - You are done!