Re: [C--] Cannot compute string literal length correctly
Ning Wang <[email protected]> Tue, 07 Apr 2009 07:07:23 -0700
| Newsgroups | gmane.comp.lang.c-- |
|---|---|
| Message-ID | <[email protected]> |
Norman Ramsey wrote: > > It seems qc-- don't complain about this assignment "bits160[_fr] = > > bits160[_fa]". > > In general, can I say an assignment of the form "bitsN[a] = bitsN[b]", > > where N is a constant dividable by memsize 8, is legal in C--. > > Yes; this assignment is implemented by block copy if the machine has > an instruction and by a two register load-load-store-store loop > otherwise. > Thanks for this confirmation. It's an elegant instruction. I can use it to implement the structural assignment allowed in C99. It seems the loop is actually unrolled. Ning _______________________________________________ Cminusminus mailing list [email protected] https://www.eecs.harvard.edu/mailman/listinfo/cminusminus