kernel: Add a definition for BLKOFF(x) which does the right casting
authorAlan Cox <alan@linux.intel.com>
Sat, 21 Feb 2015 00:31:09 +0000 (00:31 +0000)
committerAlan Cox <alan@linux.intel.com>
Sat, 21 Feb 2015 00:31:09 +0000 (00:31 +0000)
commit5540395e689b44ba2284a42e43d57f2a218a5260
tree455e375a1b49ff80b94c59389c80c3e5cf0c716f
parent1fe6ee434b24dd37210c5a221913f02e53b5bfb0
kernel: Add a definition for BLKOFF(x) which does the right casting

This avoids promotion to long and ugly code coming out of the Z80 compiler
in particular (and excessive code on 6502).
Kernel/include/kernel.h