package com.idtronic.legic_hf.crccalc;

/**
 * Created by anthony on 13.05.2017.
 */
public class CrcHelper {

    static long ReverseBits(long ul, int valueLength)
    {
        long newValue = 0;

        for (int i = valueLength - 1; i >= 0; i--)
        {
            newValue |= (ul & 1) << i;
            ul >>= 1;
        }

        return newValue;
    }
}
