Jump to content

Talk:Overflow flag

Page contents not supported in other languages.
From Wikipedia, the free encyclopedia

This is an old revision of this page, as edited by 212.178.135.35 (talk) at 10:07, 19 October 2022 (→‎Bitwise operations clearing the V-flag makes sense.: Reply). The present address (URL) is a permanent link to this revision, which may differ significantly from the current revision.

WikiProject iconComputing Unassessed
WikiProject iconThis article is within the scope of WikiProject Computing, a collaborative effort to improve the coverage of computers, computing, and information technology on Wikipedia. If you would like to participate, please visit the project page, where you can join the discussion and see a list of open tasks.
???This article has not yet received a rating on Wikipedia's content assessment scale.
???This article has not yet received a rating on the project's importance scale.

Use non signed numbers in explanation!

)

pretty good explanation i don't care if there are no references lol it makes alot of sense please do not remove it just.... — Preceding unsigned comment added by 121.210.25.46 (talk) 10:42, 6 December 2011 (UTC)[reply]

indeed its the appended paper is really usefull, so dont remove it even though its doesnt fullfill all guidelines — Preceding unsigned comment added by 83.76.248.163 (talk) 12:55, 22 June 2012 (UTC)[reply]

Proof

I'd like to get an explaination and/or proof why OF is a XOR of C(n) (sign bit) and C(n-1). Can anyone help? It could also be helpful to the article. Galzigler (talk) 15:02, 5 September 2016 (UTC)[reply]

Bitwise operations clearing the V-flag makes sense.

The article currently says:

"Bitwise operations (and, or, xor, not, rotate) do not have a notion of signed overflow, so the defined value varies on different processor architectures. Some clear the bit unconditionally".

Clearing the V-flag is handy for example when using TEST EAX,EAX to test if the register is zero. Because the sign and zero flags are set by TEST and the V-flag is cleared you do not only test if EAX is zero but can also use JL(E) or JG(E) which use the V-flag. This may be too detailed for this article? 212.178.135.35 (talk) 13:04, 18 October 2022 (UTC) Martin.[reply]

OP writes: I phrased it briefly and more generally in the article.
Resolved
212.178.135.35 (talk) 10:07, 19 October 2022 (UTC) Martin.[reply]