Rework READx_SEG/WRITEx_SEG macro type detection.
authorKevin O'Connor <kevin@koconnor.net>
Sat, 8 Nov 2008 18:02:46 +0000 (13:02 -0500)
committerKevin O'Connor <kevin@koconnor.net>
Sat, 8 Nov 2008 18:02:46 +0000 (13:02 -0500)
commit4a14d75dbec58c5e4e6c4ac178ca13f3b948fa22
tree356864f3058b6ee55380fa34af23f4586bc5e25b
parent1b7d8843268e83c8d21fa35d8869005c7cd6952f
Rework READx_SEG/WRITEx_SEG macro type detection.

Detect types by size instead of by comparison to different integer types.
This allows pointers and other types to be directly accessed.
Note that this does slightly pessimize 64bit accesses.
src/farptr.h