All of lore.kernel.org
 help / color / mirror / Atom feed
* Question about missing "cld" in x86 string assembly code
@ 2011-12-17 14:52 ` Nai Xia
  0 siblings, 0 replies; 12+ messages in thread
From: Nai Xia @ 2011-12-17 14:52 UTC (permalink / raw)
  To: Andi Kleen; +Cc: Linus Torvalds, Linux-MM, LKML

Hi, 

I notice that all x86 assembly code for string operations containing
"scasb, lodsb", etc does not have "cld" at the beginning.
Is this 100% safe? 
Or in other words, how could we be sure that
there is no "std" generated by compiler somewhere just before
the string operations? 


Thanks,

Nai

--
To unsubscribe, send a message with 'unsubscribe linux-mm' in
the body to majordomo@kvack.org.  For more info on Linux MM,
see: http://www.linux-mm.org/ .
Fight unfair telecom internet charges in Canada: sign http://stopthemeter.ca/
Don't email: <a href=mailto:"dont@kvack.org"> email@kvack.org </a>

^ permalink raw reply	[flat|nested] 12+ messages in thread
* Question about missing "cld" in x86 string assembly code
@ 2011-12-17 14:58 ` Nai Xia
  0 siblings, 0 replies; 12+ messages in thread
From: Nai Xia @ 2011-12-17 14:58 UTC (permalink / raw)
  To: Andi Kleen; +Cc: Linus Torvalds, Linux-MM, LKML

Hi Andi, 

Seems I used a stale email address of you from a related git commit log,
so this is a resend, sorry.

=======
Hi, 

I notice that all x86 assembly code for string operations containing
"scasb, lodsb", etc does not have "cld" at the beginning.
Is this 100% safe? 
Or in other words, how could we be sure that
there is no "std" generated by compiler somewhere just before
the string operations? 


Thanks,

Nai

--
To unsubscribe, send a message with 'unsubscribe linux-mm' in
the body to majordomo@kvack.org.  For more info on Linux MM,
see: http://www.linux-mm.org/ .
Fight unfair telecom internet charges in Canada: sign http://stopthemeter.ca/
Don't email: <a href=mailto:"dont@kvack.org"> email@kvack.org </a>

^ permalink raw reply	[flat|nested] 12+ messages in thread

end of thread, other threads:[~2011-12-22 15:52 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-12-17 14:52 Question about missing "cld" in x86 string assembly code Nai Xia
2011-12-17 14:52 ` Nai Xia
  -- strict thread matches above, loose matches on Subject: below --
2011-12-17 14:58 Nai Xia
2011-12-17 14:58 ` Nai Xia
2011-12-17 17:08 ` Brian Gerst
2011-12-17 17:08   ` Brian Gerst
2011-12-17 18:39   ` Linus Torvalds
2011-12-17 18:39     ` Linus Torvalds
2011-12-22 15:52     ` nai.xia
2011-12-22 15:52       ` nai.xia
2011-12-22 15:34   ` nai.xia
2011-12-22 15:34     ` nai.xia

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.