aboutsummaryrefslogtreecommitdiffhomepage
path: root/test/reloc.c
blob: 70cba28bb86667bb3a62a80a14afd5b29c21a0e8 (plain) (blame)
1
2
3
4
5
6
7


float get_value(unsigned x)
{
   static const float values [] = {1.1f, 1.2f, 1.3f, 1.4f};
    return x < 4 ? values[x] : 0.0f;
}