Skip to contentSkip to conversation

PAD macro

DISCUSSION matsunaga 2 participants 2 messages Jun 5, 2003 Memory technology devices (MTD)

lore
Share & tools
lore

matsunaga

author
#0 lore raw

Hi

This is really a trivial thing,
but there are places where PAD macro is not used for 4byte alignment. I think it would be better to be unified.

scan.c, line 357 ofs = (ofs+3)&~3;
dir.c, line 359 writtenlen = (writtenlen+3)&~3;
dir.c, line 656 writtenlen = (writtenlen+3)&~3;

Best regards.

Matsunaga.
__________________________________________________
Do You Yahoo!?
Yahoo! BB is Broadband by Yahoo!
http://bb.yahoo.co.jp/

#1 lore raw
Quoted 5 lines · matsunaga

Hi

This is really a trivial thing,
but there are places where PAD macro is not used for 4byte alignment. I think it would be better to be unified.

You're right. s/(\([a-z]*\)+3)&~3/PAD(\1)/ applied accordingly; thanks.

Signature · 1 line
dwmw2