Displaying 1 result from an estimated 1 matches for "isalpha_l".
Did you mean:
isalpha
2016 Jan 09
4
Attribute for a invariant function ?
I have a read-only lookup table, which takes integer arguments.
Optimally I would like to indicate in the C source, that the function is
invariant (?), so that the superflous calls can be optimized away.
```
extern void *lookup( int a);
void foo( void)
{
void *a, *b;
a = lookup( 0x12345678);
bar( a);
b = lookup( 0x12345678); // b guaranteed to be the same as a, no
call