This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Source: http://supp.iar.com/FilesPublic/SUPPORT/000419/AN-G-002.pdf | |
unsigned int sqroot(unsigned int x){ | |
unsigned int a,b; | |
b = x; | |
a = x = 0x3f; | |
x = b/x; | |
a = x = (x+a)>>1; | |
x = b/x; | |
a = x = (x+a)>>1; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1. Fire up the command prompt. | |
2.1. Execute: gcc send.c -o send | |
2.2. Execute: gcc recv.c -o recv | |
3. Execute: ./send <<< "Message." | |
4. Execute: ./recv |
NewerOlder