npm.io
1.2.2 • Published 6d ago

com.mrunbelievable.simd_algorithms

Licence
Version
1.2.2
Deps
5
Size
2.1 MB
Vulns
0
Weekly
0
Stars
17

SIMD-Algorithms

This package contains some of the most common array algorithms which are either auto-vectorized very poorly (like summing up unsigned bytes) or not auto vectorized at all (Contains, IndexOf, etc.).

All included functions have a "SIMD_" prefix added to their name.

There is a base version of each algorithm which takes in a pointer in the static "SIMDAlgorithms.Algorithms" class. There are extension methods of each algorithm for Unity.Collections' NativeArray, NativeSlice and NativeList aswell.

How To Install This Library

It is highly encouraged to use the Scoped Registries feature for installing SIMD-Algorithms.

Installing using Scoped Registries:

  • Open your Unity project.
  • Go to Edit → Project Settings → Package Manager.
  • Under Scoped Registries, click + to add a new registry.
  • Enter the registry details:
  • Name: MrUnbelievable
  • URL: https://registry.npmjs.org
  • Scopes: com.mrunbelievable
  • Click Save.
  • Open Window → Package Manager.
  • In the package list, select My Registries.
  • Install SIMD-Algorithms from the registry.

Donations

If this repository has been valuable to your projects and you'd like to support my work, consider making a donation.

donateBTC donatePP