Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

rename FoR to FrameOfReference #52

Open
wants to merge 1 commit into
base: develop
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions src/ffor.rs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
use crate::{pack, unpack, BitPackWidth, BitPacking, FastLanes, SupportedBitPackWidth};
use paste::paste;

pub trait FoR: BitPacking {
pub trait FrameOfReference: BitPacking {
fn for_pack<const W: usize>(
input: &[Self; 1024],
reference: Self,
Expand All @@ -20,7 +20,7 @@ pub trait FoR: BitPacking {
macro_rules! impl_for {
($T:ty) => {
paste! {
impl FoR for $T {
impl FrameOfReference for $T {
fn for_pack<const W: usize>(
input: &[Self; 1024],
reference: Self,
Expand Down Expand Up @@ -72,7 +72,7 @@ mod test {
}

let mut packed = [0; 128 * W / size_of::<u16>()];
FoR::for_pack::<W>(&values, 10, &mut packed);
FrameOfReference::for_pack::<W>(&values, 10, &mut packed);

let mut unpacked = [0; 1024];
BitPacking::unpack::<W>(&packed, &mut unpacked);
Expand Down
Loading