Post
Topic
Board Announcements (Altcoins)
Re: [ANN] [XDAG] Dagger - new cryptocurrency
by
akira45
on 13/02/2018, 21:30:53 UTC
your code have been audited?

for (i = c = d = 0; i < 32; ++i) {
if (d < 6) d += 8, c <<= 8, c |= *fld++;
*ptr++ = bits2mime[c >> (d -= 6) & 0x3F];

}

Don't you think it would be better…

for (int i,c,d; i = c = d = 0; i < 32; ++i) {
        if (d < 6) {
                               d += 8;
                               c <<= 8;
                               c |= *fld++;
                                                     }
               d -= 6;
        *ptr++ = bits2mime[(c >> d) & 0x3F];

      }


And many places use assembly language, why not use functions?  This is not a singlechip.

Hi Jacklonglong,

I tried to contact you by PM, but can't due to my status.

Could you please contact me by PM, I have a personal resquest.

Thx