Hi!
In my previous example of portability macros (which was written from
memory) I miss another optimization trick. Was:
#define hibyte(v) lobyte ((v) >> 8)
Should be (as in my patch):
#define hibyte(v) lobyte ((UWORD)(v) >> 8)
>-------------------------^^^^^^^
So, now you may apply "hibyte (Cluster2)" and don't worry if Cluster2 is
long or short value: it will be automatically optimized short access (or,
in worser case, as with BC, into shorter shift, which applied by CPU
instruction, not by call to internal routine).
-------------------------------------------------------
This SF.Net email is sponsored by: Oracle 10g
Get certified on the hottest thing ever to hit the market... Oracle 10g.
Take an Oracle 10g class now, and we'll give you the exam FREE.
http://ads.osdn.com/?ad_id=3149&alloc_id=8166&op=click
_______________________________________________
Freedos-kernel mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/freedos-kernel