if (hd(pddt->ddt_descflags) && !(pddt->ddt_descflags & DF_CHANGELINE))

Thanks! As hd(x) is #defined as ((x) & DF_FIXED), the above can be optimised to:


if ((pddt->ddt_descflags & (DF_FIXED | DF_CHANGELINE)) == DF_FIXED)

Lucho


------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click _______________________________________________ Freedos-devel mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/freedos-devel

Reply via email to