Kirk Zurell's blog

A volatile topic

Here's an interesting writeup about the C keyword volatile.

Our demos: odd setup issue

Have you tried to install one of our demos only to find a completely different setup program starts to run?

C6808

When is a branch not a branch?

| |

I recently got an interesting code sequence out of the compiler.

Neat XOR trick

This is a neat trick using XOR, the most mysterious of the logical operators. Best of all for embedded, it requires no temporary locations.

//swap two values in place
if(x < y)
{
  x = x ^ y;
  y = y ^ x;
  x = x ^ y;
}

Et voila!

Fuzz-C

Fuzzy Logic zeitgeist, with statistics

|

I decided to sift through the cache of alerts ... to get a better idea of the zeitgeist of fuzzy logic. ...[F]uzzy logic is familiar enough to be used intelligently or casually, and, it turns out, to be chronically misrepresented as well.

Syndicate content