Why is cld used?

H. J. Lu hjl@lucon.org
Tue Jul 1 00:41:00 GMT 2003


According to the i386 psABI, the direct flag should be set to zero
before entry and upon exit from a function, why does glibc use
"cld" in some functions where the direct flag won't be changed?
One example is sysdeps/i386/i686/mempcpy.S.


H.J.



More information about the Libc-alpha mailing list