what is the bit length of unsigned word in xc.
jags
bit length of unsigned word
-
- Experienced Member
- Posts: 117
- Joined: Tue Oct 18, 2011 3:28 pm
-
- Experienced Member
- Posts: 117
- Joined: Tue Oct 18, 2011 3:28 pm
I think it is same as unsigned int i.e. 4 bytes.
-
- XCore Expert
- Posts: 754
- Joined: Thu Dec 10, 2009 6:56 pm
Code: Select all
unsigned int a;
unsigned b;
See https://www.xcore.com/forum/viewtopic.php?f=10&t=1543
-
- Experienced Member
- Posts: 117
- Joined: Tue Oct 18, 2011 3:28 pm
my question is "unsigned word"
not
"unsigned"
jags
not
"unsigned"
jags
-
- XCore Expert
- Posts: 754
- Joined: Thu Dec 10, 2009 6:56 pm
There is no "unsigned word" in the XC language.
A word is typically a number of bits that form a group and are processed/belong together.
If not specified you can assume that a word is 32-bit on XMOS.
Do you have a context or example?
Oh and I deleted your thread with the "." as title and no content.
A word is typically a number of bits that form a group and are processed/belong together.
If not specified you can assume that a word is 32-bit on XMOS.
Do you have a context or example?
Oh and I deleted your thread with the "." as title and no content.
-
- Member++
- Posts: 19
- Joined: Tue Sep 27, 2011 11:49 am
For all the other valid types you can find here the respective sizes.