Skip to content
Snippets Groups Projects
Commit ae969d00 authored by Vipin Thomas's avatar Vipin Thomas
Browse files

Update pixel.cpp

parent 26668067
No related branches found
No related tags found
No related merge requests found
......@@ -110,6 +110,7 @@ long long convert(int n) {
long long bin = 0;
int rem, i = 1, step = 1;
while (n != 0) {
#pragma HLS unroll
rem = n % 2;
n /= 2;
bin += rem * i;
......@@ -139,6 +140,7 @@ int convertBinInt(long long n) {
int dec = 0, i = 7, b=0,rem=0;
while (n != 0) {
#pragma HLS unroll
b=pow(10,i);
rem = n / b;
n =n % b;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment