X-Git-Url: https://notaz.gp2x.de/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=Pico%2FMakeSine.cpp;fp=Pico%2FMakeSine.cpp;h=0000000000000000000000000000000000000000;hb=52ac6b1c8f65fe2477ffc3a7fc63ca8ae9d7e59f;hp=aad99539bb5bdd7e4870be23dee6297dd8096fb2;hpb=d9d77995ec88700f438b3638df179a014bf4f6b3;p=cyclone68000.git diff --git a/Pico/MakeSine.cpp b/Pico/MakeSine.cpp deleted file mode 100644 index aad9953..0000000 --- a/Pico/MakeSine.cpp +++ /dev/null @@ -1,47 +0,0 @@ - -// This file is part of the PicoDrive Megadrive Emulator - -// Copyright (c) 2011 FinalDave (emudave (at) gmail.com) - -// This code is licensed under the GNU General Public License version 2.0 and the MAME License. -// You can choose the license that has the most advantages for you. - -// SVN repository can be found at http://code.google.com/p/cyclone68000/ - -// Make a Sine table - -#pragma warning (disable:4514) - -#include -#include -#include -#include - -#define PI 3.14159265358979 - -int main() -{ - int i=0; - - printf ("\nshort Sine[0x100]=\n"); - printf ("{\n"); - - for (i=0;i<0x100;i++) - { - double fAng,fPos; - int nPos; - if ((i&7)==0) printf (" "); - - fAng=(double)i/(double)0x100; - fAng*=2*PI; - fPos=sin(fAng)*(double)0x4000; - nPos=(int)fPos; - printf ("%+6d,",nPos); - - if ((i&7)==7) printf ("\n"); - } - - printf ("};\n"); - - return 0; -}