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

Bit Reversal missing? #692

Open
worldoptimizer opened this issue Apr 17, 2021 · 1 comment
Open

Bit Reversal missing? #692

worldoptimizer opened this issue Apr 17, 2021 · 1 comment

Comments

@worldoptimizer
Copy link

Something along the lines of:

function bitReverse(num){
        var result = 0;
        for (var i = 0; i < 8; i++) {
	        result = result * 2 + (num % 2);
	        num = Math.floor(num / 2);
        }
       return result;
}

var bitReverseLookup = function() {
	var lookup=[];
	for(var n=0; n<256; n++) {
		lookup[n] = bitReverse(n);
	}
	return lookup;
}();
@Krish-bhardwaj
Copy link

Hi i am a fresher looking for some opensource contribution can u help me out i want to contribute to your project and can u assign me this issue:)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants