p{read,write}{,64} mips n64 changes
Alexandre Oliva
aoliva@redhat.com
Thu Mar 20 07:52:00 GMT 2003
On Mar 20, 2003, Andreas Jaeger <aj@suse.de> wrote:
> __LONG_LONG_PAIR ((type) ((var) >> 32), \
> (type) ((var) & 0xffffffff))
> Is this not feasible?
The `>> 32' and truncation with `& 0xffffffff' is only used in the
off64_t versions (pread64 and pwrite64), but not in the off_t versions
(pread and pwrite). In fact, shifting by 32 would invoke undefined
behavior in the off_t versions, so we'd have to make it two shifts
instead.
--
Alexandre Oliva Enjoy Guarana', see http://www.ic.unicamp.br/~oliva/
Red Hat GCC Developer aoliva@{redhat.com, gcc.gnu.org}
CS PhD student at IC-Unicamp oliva@{lsd.ic.unicamp.br, gnu.org}
Free Software Evangelist Professional serial bug killer
More information about the Libc-alpha
mailing list