That's way less then un-optimised - Read up on arrays....
const char sevenseg[16]={0xE7,0x84,0xD3,0xD6,0xB4,0x76,0x77,0xc4,0xF7,0XF6,0xF5,0x37,0x63,0x97,0x73,0x71};
ledsegs=sevenseg[digit & 0x0f];
woah, talking about optimization

and to make it compatible with my shitty function:
const unsigned char sevenseg[16]={0xE7,0x84,0xD3,0xD6,0xB4,0x76,0x77,0xC4,0xF7,0XF6,0xF5,0x37,0x63,0x97,0x73,0x71};
#define sevensd_number(__NUMBER__); sevenseg[__NUMBER__ & 0x0F];
#define sevensd_number_dot(__NUMBER__); ((sevenseg[__NUMBER__ & 0x0F]) & 0x8);
where is our money?
