This is the mail archive of the libc-alpha@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PATCH 1/4] [Powerpc] tune/optimize memmove/wordcopy. Add helpermacro to call MERGE


On 03/22/12 07:45, Ryan S. Arnold wrote:
>> > +#define fwd_align_merge(align)                                         \
>> > +  do                                                                   \
>> > +    {                                                                  \
>> > +      a1 = ((op_t *) srcp)[1];                                         \
>> > +      a2 = ((op_t *) srcp)[2];                                         \
>> > +      ((op_t *) dstp)[0] = MERGE (a0, align*8, a1, (32-align*8));      \
>> > +      ((op_t *) dstp)[1] = MERGE (a1, align*8, a2, (32-align*8));      \
>> > +      a0 = a2;                                                         \
>> > +      srcp += 2 * OPSIZ;                                               \
>> > +      dstp += 2 * OPSIZ;                                               \
>> > +      len -= 2;                                                                \
>> > +    }                                                                  \
>> > +  while (len != 0);
...
> 
> I know that technically due to CPP macro expansion that a trailing
> semi-colon is not necessary, but is it preferred?

Yes.  Remove the errant ; from the end of the macro to force that.


r~


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]