yep - I don't know why I slipped in that 'more portable' statement - it IS wrong. I lean on the compiler hard when backed up with tests so I get lazy and use 'unsigned' a lot - it's liberating to not be dependent on types. it's really hard to explain.Fred wrote: 2) If you use "int" then the code is actually NOT portable, whereas if you use char, short, long then it IS portable because the same behaviour AND accuracy and overflow etc will be present on both platforms. In the case of this chip alone, without porting it, a compiler flag change could totally break the code if int is used instead of an explicit type.
I read/write 'inside out' - 'right to left' - just habitFred wrote:"type OF name"
![Wink ;)](./images/smilies/icon_e_wink.gif)
Code: Select all
uint32_t const *pThing = 0;
Code: Select all
const uint32_t* pThing = 0;
never used it, I've only heard about it in the last month or so. it appears to be another source managment tool. I suppose the mechanics are all the same.Fred wrote:How are you with Git?
I'm a windows guy, but I'm not new to linux. I was a slackware guy from the mid 90's
![Very Happy :D](./images/smilies/icon_e_biggrin.gif)
I'll find/read the averaging thread and see how I can contribute. I have to make sure I can meet your deadline too. Maybe I can just proto up some generic code and pass it on to you to merge and double check ? it looks like I really need to get on the linux wagon to be of any real help for you. this is a foss project, and it is expected
![Mr. Green :mrgreen:](./images/smilies/icon_mrgreen.gif)