Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Search results for query: *

  1. ChrisDanson

    Inter-task Communication Pros & Cons & Best Practice

    Thanks for your useful post xwb and sorry for the late reply. (was on holiday)
  2. ChrisDanson

    Inter-task Communication Pros & Cons & Best Practice

    I'm working on Set Top Boxes with VxWorks as the Rtos. I work mostly on a middleware platform which calls down into a porting layer that sits above the STB manufacturers code which I guess includes device drivers for everything on a STB. The middleware is multithreaded.
  3. ChrisDanson

    Inter-task Communication Pros & Cons & Best Practice

    Hi, I am trying to understand the pros and cons of threads of execution providing services for one another via intertask messaging, against simply making specific functions rentrant safe and allowing them to be called from any where in a multi-threaded environment. I am really interested to...
  4. ChrisDanson

    Calculating n, if the nth bit in a mask is set.

    Hi Lionel, Thanks for your interesting post. The bitmask I'm using is actually a 32 bit mask for a debug manager. The top 8 bits identify a debug group (1 of a possible 8), while the remaining 24 bits are used to identify debug channels. That gives me 8 * 24 channels of debug which is about...
  5. ChrisDanson

    Calculating n, if the nth bit in a mask is set.

    Cheers CP. Nice solution. I hadn't thought of doing it like that. Thanks for your time and help.
  6. ChrisDanson

    Calculating n, if the nth bit in a mask is set.

    Thanks Salem. I should have spent more time understanding your first response. I've tried it out and my code runs quicker than before. Your help is greatly appreciated.
  7. ChrisDanson

    Calculating n, if the nth bit in a mask is set.

    Hi Salem, Thanks for the reply. OK so logs are not going to give good performance and unfortunately the lookup table would need to be so large that it would not be practical. I like the idea of the inline assembler but this code has to be platform and processor independant. I will think on...
  8. ChrisDanson

    Calculating n, if the nth bit in a mask is set.

    Hi, I'm after a really efficient way of calculating n, given that the nth bit only is set in a bitmask. I have a 24bit mask with 1 bit set in it (it could be any bit). I can think of long winded ways to do it like bitshifting 1 to the left until a bitwise And returns true, but that is not...

Part and Inventory Search

Back
Top