# Pwn Ffi Volk

> Drive PWN::FFI::Volk from pwn_eval.

- Skill: `0dayinc/pwn-ffi-volk` (Agent Skill)
- Install (CLI): `npx get-skill add 0dayinc/pwn-ffi-volk`
- Raw SKILL.md: https://api.skillmd.com/api/skills/0dayinc/pwn-ffi-volk/raw
- Safety review: pending (external: skill-scanner PASS)
- Works with: Claude Code, Claude.ai, OpenAI Codex
- Category: Coding & Dev Tools
- License: MIT
- Author: 0dayInc (https://skillmd.com/u/0dayinc)
- Updated: 2026-11-19
- Page: https://skillmd.com/skills/0dayinc/pwn-ffi-volk

---


# PWN::FFI::Volk

Thin VOLK (Vector-Optimized Library of Kernels) binding. Dispatches to SIMD kernels (SSE/AVX/NEON/…) when the host provides them. Used by PWN::SDR::Decoder::DSP hot paths so MHz-rate I/Q work stays off the Ruby GC heap while orchestration remains pure Ruby. Nothing here shells out and nothing is compiled at gem-install time — if libvolk is missing, `.available?` is false and callers fall back.

## When to use

Call `PWN::FFI::Volk` from `pwn_eval` when the task needs this module.
Do not reimplement it in shell.

## Methodologies

Generated from `pwn/ffi/volk.rb`. Prefer the public class methods below.
Class methods take `(opts = {})` and read `opts`.

## How to call

```ruby
PWN::FFI::Volk.help
PWN::FFI::Volk.available(opts)
```

## Public methods

- `available`
- `unpack_s16le`
- `accumulate`
- `magnitude_squared`
- `sqrt`
- `scale`
- `dot_prod`
- `authors`
- `help`
- `available?`
- `load_error`
- `volk_16i_s32f_convert_32f`
- `volk_16i_s32f_convert_32f=`
- `volk_32f_accumulator_s32f`
- `volk_32f_accumulator_s32f=`
- `volk_32f_s32f_multiply_32f`
- `volk_32f_s32f_multiply_32f=`
- `volk_32f_sqrt_32f`
- `volk_32f_sqrt_32f=`
- `volk_32f_x2_dot_prod_32f`
- `volk_32f_x2_dot_prod_32f=`
- `volk_32fc_magnitude_squared_32f`
- `volk_32fc_magnitude_squared_32f=`
- `volk_free`
- `volk_get_alignment`
- `volk_malloc`

## Source

`pwn/ffi/volk.rb`

## Verification

`PWN::FFI::Volk.respond_to?(:available)` after the
module is loaded. Read the source for parameter names.

