~aurelien-riv/livewallpaper/snap

« back to all changes in this revision

Viewing changes to tools/sine-table-generator.c

  • Committer: Maximilian Schnarr
  • Date: 2013-09-27 20:16:37 UTC
  • mto: This revision was merged to the branch mainline in revision 258.
  • Revision ID: fyrmir@gmx.de-20130927201637-fc0e02052fwk5v4s
Moved sine lookup function to own header file.

Show diffs side-by-side

added added

removed removed

Lines of Context:
31
31
        float step = (_PI) / (2*STEPS);
32
32
 
33
33
        printf("/* This file is automatically generated by tools/sine-table-generator - do not edit manually */\n\n");
34
 
        printf("#define STEP (float) %f\n", step);
35
34
        printf("#define STEPS %i\n\n", STEPS);
 
35
        printf("const float step = %ff;\n", step);
36
36
        printf("const float sin_values[%i] =\n{\n", STEPS);
37
37
        for(i = 0; i < STEPS; i++)
38
38
        {