Currently being updated.
Automatic reload in seconds.


 
Subscribe: RSS Podcasts iTunes
wikiofthedaymasto.ai
  Buy WotD Stuff!!
Episode 1571             Episode 1573
Episode 1572

Sign extension
Mon, 2021-Aug-23 00:56 UTC
Length - 3:00

Direct Link

Welcome to random Wiki of the Day where we read the summary of a random Wikipedia page every day.

The random article for Monday, 23 August 2021 is Sign extension.

Sign extension (abbreviated as sext) is the operation, in computer arithmetic, of increasing the number of bits of a binary number while preserving the number's sign (positive/negative) and value. This is done by appending digits to the most significant side of the number, following a procedure dependent on the particular signed number representation used.

For example, if six bits are used to represent the number "00 1010" (decimal positive 10) and the sign extend operation increases the word length to 16 bits, then the new representation is simply "0000 0000 0000 1010". Thus, both the value and the fact that the value was positive are maintained.

If ten bits are used to represent the value "11 1111 0001" (decimal negative 15) using two's complement, and this is sign extended to 16 bits, the new representation is "1111 1111 1111 0001". Thus, by padding the left side with ones, the negative sign and the value of the original number are maintained.

In the Intel x86 instruction set, for example, there are two ways of doing sign extension:



using the instructions cbw, cwd, cwde, and cdq: convert byte to word, word to doubleword, word to extended doubleword, and doubleword to quadword, respectively (in the x86 context a byte has 8 bits, a word 16 bits, a doubleword and extended doubleword 32 bits, and a quadword 64 bits);

using one of the sign extended moves, accomplished by the movsx ("move with sign extension") family of instructions.





This recording reflects the Wikipedia text as of 00:56 UTC on Monday, 23 August 2021.

For the full current version of the article, see Sign extension on Wikipedia.

This podcast is produced by Abulsme Productions based on Wikipedia content and is released under a Creative Commons Attribution-ShareAlike License.

Visit wikioftheday.com for our archives, sister podcasts, and swag. Please subscribe to never miss an episode. You can also follow @WotDpod on Twitter.

Abulsme Productions produces the current events podcast Curmudgeon's Corner as well. Check it out in your podcast player of choice.

This has been Kimberly Standard. Thank you for listening to random Wiki of the Day.

Archive
2017:MayJunJulAugSepOctNovDec
2018:JanFebMarAprMayJunJulAugSepOctNovDec
2019:JanFebMarAprMayJunJulAugSepOctNovDec
2020:JanFebMarAprMayJunJulAugSepOctNovDec
2021:JanFebMarAprMayJunJulAugSepOctNovDec
2022:JanFebMarAprMayJunJulAugSepOctNovDec
2023:JanFebMarAprMayJunJulAugSepOctNovDec
2024:JanFebMarApr

Most Recent Episodes


Feedback welcome at feedback@wikioftheday.com.

These podcasts are produced by Abulsme Productions based on Wikipedia content.

They are released under a Creative Commons Attribution-ShareAlike 3.0 Unported License.

Creative Commons License

Abulsme Productions also produces Curmudgeon's Corner, a current events podcast.

If you like that sort of thing, check it out too!


Page cached at 2024-04-24 22:46:10 UTC
Original calculation time was 2.5541 seconds

Page displayed at 2024-04-25 01:51:03 UTC
Page generated in 0.0069 seconds