├── .travis.yml ├── CMakeLists.txt ├── LICENSE ├── README.md ├── benchmarks ├── CMakeLists.txt └── mediabench │ ├── CMakeLists.txt │ ├── adpcm │ ├── CMakeLists.txt │ ├── README.BEN │ ├── README.MB │ ├── data │ │ ├── clinton.adpcm │ │ └── clinton.pcm │ ├── exec │ │ ├── sdecode.sh │ │ └── sencode.sh │ ├── results │ │ ├── out.adpcm │ │ └── out.pcm │ └── src │ │ ├── CMakeLists.txt │ │ ├── Makefile │ │ ├── README │ │ ├── adpcm.2 │ │ ├── adpcm.c │ │ ├── adpcm.h │ │ ├── adpcm.shar │ │ ├── hello.adpcm.uu │ │ ├── libst.h │ │ ├── rawcaudio.c │ │ ├── rawdaudio.c │ │ ├── sgicaudio.c │ │ ├── sgidaudio.c │ │ ├── suncaudio.c │ │ └── timing.c │ ├── epic │ ├── CMakeLists.txt │ ├── README.BEN │ ├── data │ │ ├── test.image.pgm.E │ │ ├── test.image.pgm.E.U │ │ ├── test_image.pgm │ │ ├── test_image.pgm.E │ │ └── test_image.pgm.E.U │ ├── exec │ │ ├── sdecode.sh │ │ └── sencode.sh │ └── src │ │ ├── CMakeLists.txt │ │ ├── ChangeLog │ │ ├── Makefile │ │ ├── Makefile.new │ │ ├── Makefile.old │ │ ├── README │ │ ├── TODO │ │ ├── USAGE │ │ ├── build_pyr.c │ │ ├── collapse_ortho_pyr.c │ │ ├── collapse_pyr.c │ │ ├── convolve.c │ │ ├── convolve.h │ │ ├── edges.c │ │ ├── epic.1 │ │ ├── epic.bb │ │ ├── epic.c │ │ ├── epic.h │ │ ├── file-format.txt │ │ ├── fileio.c │ │ ├── huffman.c │ │ ├── parse_args.c │ │ ├── pgm-header │ │ ├── quantize.c │ │ ├── run_length.c │ │ ├── unepic.bb │ │ ├── unepic.c │ │ └── utilities.c │ ├── g721 │ ├── CMakeLists.txt │ ├── README │ ├── README.BEN │ ├── data │ │ ├── clinton.g721 │ │ ├── clinton.g721.pcm │ │ ├── clinton.pcm │ │ └── clinton.pcm.g721 │ ├── exec │ │ ├── sdecode.sh │ │ └── sencode.sh │ └── src │ │ ├── CMakeLists.txt │ │ ├── Makefile │ │ ├── Makefile.new │ │ ├── Makefile.old │ │ ├── decode.c │ │ ├── decode.c.org │ │ ├── encode.c │ │ ├── encode.c.org │ │ ├── g711.c │ │ ├── g721.c │ │ ├── g723_24.c │ │ ├── g723_40.c │ │ ├── g72x.c │ │ └── g72x.h │ ├── gsm │ ├── CMakeLists.txt │ ├── COPYRIGHT │ ├── ChangeLog │ ├── INSTALL │ ├── MACHINES │ ├── MANIFEST │ ├── Makefile │ ├── README │ ├── README.BEN │ ├── add-test │ │ ├── add_test.c │ │ └── add_test.dta │ ├── data │ │ ├── clinton.pcm │ │ ├── clinton.pcm.gsm │ │ ├── clinton.pcm.run │ │ └── clinton.pcm.run.gsm │ ├── exec │ │ ├── sdecode.sh │ │ └── sencode.sh │ ├── inc │ │ ├── config.h │ │ ├── gsm.h │ │ ├── private.h │ │ ├── proto.h │ │ ├── toast.h │ │ └── unproto.h │ ├── man │ │ ├── bitter.1 │ │ ├── gsm.3 │ │ ├── gsm_explode.3 │ │ ├── gsm_option.3 │ │ ├── gsm_print.3 │ │ └── toast.1 │ ├── spix │ │ └── run_shade │ ├── src │ │ ├── CMakeLists.txt │ │ ├── add.c │ │ ├── code.c │ │ ├── debug.c │ │ ├── decode.c │ │ ├── gsm_create.c │ │ ├── gsm_decode.c │ │ ├── gsm_destroy.c │ │ ├── gsm_encode.c │ │ ├── gsm_explode.c │ │ ├── gsm_implode.c │ │ ├── gsm_option.c │ │ ├── gsm_print.c │ │ ├── long_term.c │ │ ├── lpc.c │ │ ├── preprocess.c │ │ ├── rpe.c │ │ ├── short_term.c │ │ ├── table.c │ │ ├── toast.c │ │ ├── toast_alaw.c │ │ ├── toast_audio.c │ │ ├── toast_lin.c │ │ └── toast_ulaw.c │ ├── tls │ │ ├── bitter.c │ │ ├── bitter.dta │ │ ├── sweet.c │ │ ├── taste.c │ │ └── taste.h │ └── tst │ │ ├── cod2lin.c │ │ ├── cod2txt.c │ │ ├── gsm2cod.c │ │ ├── lin2cod.c │ │ ├── lin2txt.c │ │ └── run │ ├── jpeg │ ├── CMakeLists.txt │ ├── README.BEN │ ├── data │ │ ├── Lena128.bmp │ │ ├── testimg.jpg │ │ ├── testimg.ppm │ │ ├── testout.jpeg │ │ └── testout.ppm │ ├── exec │ │ ├── sdecode.sh │ │ └── sencode.sh │ ├── jpeg-6a │ │ ├── CMakeLists.txt │ │ ├── Makefile │ │ ├── Makefile.new │ │ ├── Makefile.old │ │ ├── README │ │ ├── ansi2knr.1 │ │ ├── ansi2knr.c │ │ ├── cderror.h │ │ ├── cdjpeg.c │ │ ├── cdjpeg.h │ │ ├── change.log │ │ ├── cjpeg.1 │ │ ├── cjpeg.c │ │ ├── ckconfig.c │ │ ├── coderules.doc │ │ ├── configure │ │ ├── djpeg.1 │ │ ├── djpeg.c │ │ ├── example.c │ │ ├── filelist.doc │ │ ├── install.doc │ │ ├── jcapimin.c │ │ ├── jcapistd.c │ │ ├── jccoefct.c │ │ ├── jccolor.c │ │ ├── jcdctmgr.c │ │ ├── jchuff.c │ │ ├── jchuff.h │ │ ├── jcinit.c │ │ ├── jcmainct.c │ │ ├── jcmarker.c │ │ ├── jcmaster.c │ │ ├── jcomapi.c │ │ ├── jconfig.bcc │ │ ├── jconfig.cfg │ │ ├── jconfig.dj │ │ ├── jconfig.doc │ │ ├── jconfig.h │ │ ├── jconfig.manx │ │ ├── jconfig.mc6 │ │ ├── jconfig.sas │ │ ├── jconfig.st │ │ ├── jconfig.vms │ │ ├── jconfig.wat │ │ ├── jcparam.c │ │ ├── jcphuff.c │ │ ├── jcprepct.c │ │ ├── jcsample.c │ │ ├── jctrans.c │ │ ├── jdapimin.c │ │ ├── jdapistd.c │ │ ├── jdatadst.c │ │ ├── jdatasrc.c │ │ ├── jdcoefct.c │ │ ├── jdcolor.c │ │ ├── jdct.h │ │ ├── jddctmgr.c │ │ ├── jdhuff.c │ │ ├── jdhuff.h │ │ ├── jdinput.c │ │ ├── jdmainct.c │ │ ├── jdmarker.c │ │ ├── jdmaster.c │ │ ├── jdmerge.c │ │ ├── jdphuff.c │ │ ├── jdpostct.c │ │ ├── jdsample.c │ │ ├── jdtrans.c │ │ ├── jerror.c │ │ ├── jerror.h │ │ ├── jfdctflt.c │ │ ├── jfdctfst.c │ │ ├── jfdctint.c │ │ ├── jidctflt.c │ │ ├── jidctfst.c │ │ ├── jidctint.c │ │ ├── jidctred.c │ │ ├── jinclude.h │ │ ├── jmemansi.c │ │ ├── jmemdos.c │ │ ├── jmemdosa.asm │ │ ├── jmemmac.c │ │ ├── jmemmgr.c │ │ ├── jmemname.c │ │ ├── jmemnobs.c │ │ ├── jmemsys.h │ │ ├── jmorecfg.h │ │ ├── jpegint.h │ │ ├── jpeglib.h │ │ ├── jpegtran.1 │ │ ├── jpegtran.c │ │ ├── jquant1.c │ │ ├── jquant2.c │ │ ├── jutils.c │ │ ├── jversion.h │ │ ├── libjpeg.doc │ │ ├── makcjpeg.st │ │ ├── makdjpeg.st │ │ ├── makefile.ansi │ │ ├── makefile.bcc │ │ ├── makefile.cfg │ │ ├── makefile.dj │ │ ├── makefile.manx │ │ ├── makefile.mc6 │ │ ├── makefile.mms │ │ ├── makefile.sas │ │ ├── makefile.unix │ │ ├── makefile.vms │ │ ├── makefile.wat │ │ ├── makljpeg.st │ │ ├── maktjpeg.st │ │ ├── makvms.opt │ │ ├── rdbmp.c │ │ ├── rdcolmap.c │ │ ├── rdgif.c │ │ ├── rdjpgcom.1 │ │ ├── rdjpgcom.c │ │ ├── rdppm.c │ │ ├── rdrle.c │ │ ├── rdswitch.c │ │ ├── rdtarga.c │ │ ├── structure.doc │ │ ├── testimg.gif │ │ ├── testimg.jpg │ │ ├── testimg.ppm │ │ ├── testimgp.jpg │ │ ├── testorig.jpg │ │ ├── testprog.jpg │ │ ├── usage.doc │ │ ├── wizard.doc │ │ ├── wrbmp.c │ │ ├── wrgif.c │ │ ├── wrjpgcom.1 │ │ ├── wrjpgcom.c │ │ ├── wrppm.c │ │ ├── wrrle.c │ │ └── wrtarga.c │ └── man │ │ └── man1 │ │ ├── cjpeg.1 │ │ ├── djpeg.1 │ │ ├── jpegtran.1 │ │ ├── rdjpgcom.1 │ │ └── wrjpgcom.1 │ ├── mesa │ ├── CMakeLists.txt │ ├── Make-config │ ├── Makefile │ ├── README.BEN │ ├── demos │ │ ├── CMakeLists.txt │ │ ├── Makefile │ │ ├── Makefile.new │ │ ├── Makefile.old │ │ ├── mipmap.c │ │ ├── osdemo.c │ │ └── texgen.c │ ├── exec │ │ ├── demo │ │ ├── out1 │ │ ├── out1.ppm │ │ ├── out2 │ │ ├── out2.ppm │ │ ├── out3 │ │ ├── out3.ppm │ │ └── run │ ├── include │ │ ├── GL │ │ │ ├── FooMesa.h │ │ │ ├── dosmesa.h │ │ │ ├── gl.h │ │ │ ├── gl_mangle.h │ │ │ ├── glu.h │ │ │ ├── glu_mangle.h │ │ │ ├── glx.h │ │ │ ├── glx_mangle.h │ │ │ ├── gmesa.h │ │ │ ├── osmesa.h │ │ │ ├── svgamesa.h │ │ │ ├── wmesa.h │ │ │ └── xmesa.h │ │ ├── glaux.h │ │ ├── gltk.h │ │ └── mondello │ │ │ ├── clgd5470.h │ │ │ ├── clgd5471.h │ │ │ ├── clgd5472.h │ │ │ ├── clgd547x.h │ │ │ ├── cmesa.h │ │ │ ├── compiler.h │ │ │ ├── davinci.h │ │ │ ├── graphics.h │ │ │ ├── lut.h │ │ │ ├── misc.h │ │ │ └── type.h │ ├── lib │ │ ├── libMesaGL.a │ │ ├── libMesaGLU.a │ │ └── libMesaaux.a │ ├── src-aux │ │ ├── 3d.h │ │ ├── CMakeLists.txt │ │ ├── Imakefile │ │ ├── MAKEFILE.DJ │ │ ├── MAKEFILE.DOS │ │ ├── Makefile │ │ ├── Makefile.BeOS │ │ ├── Makefile.NeXT │ │ ├── Makefile.OpenStep │ │ ├── Makefile.new │ │ ├── Makefile.old │ │ ├── Mesaauxos2.def │ │ ├── Mesaauxos2.rsp │ │ ├── descrip.mms │ │ ├── shapes.c │ │ ├── shapes.c.new │ │ ├── shapes.c.old │ │ ├── teapot.c │ │ ├── teapot.c.new │ │ ├── teapot.c.old │ │ ├── vect3d.c │ │ └── xxform.c │ ├── src-glu │ │ ├── CMakeLists.txt │ │ ├── Imakefile │ │ ├── MAKEFILE.DJ │ │ ├── MAKEFILE.DOS │ │ ├── Makefile │ │ ├── Makefile.BeOS │ │ ├── Makefile.NeXT │ │ ├── Makefile.OpenStep │ │ ├── MesaGLUos2.def │ │ ├── MesaGLUos2.rsp │ │ ├── README1 │ │ ├── README2 │ │ ├── depend │ │ ├── descrip.mms │ │ ├── glu.c │ │ ├── gluP.h │ │ ├── mipmap.c │ │ ├── mms_depend │ │ ├── nurbs.c │ │ ├── nurbs.h │ │ ├── nurbscrv.c │ │ ├── nurbssrf.c │ │ ├── nurbsutl.c │ │ ├── polytest.c │ │ ├── project.c │ │ ├── quadric.c │ │ ├── tess.c │ │ ├── tess.h │ │ └── tesselat.c │ └── src │ │ ├── CMakeLists.txt │ │ ├── DEPEND.DOS │ │ ├── Imakefile │ │ ├── MAKEFILE.DJ │ │ ├── MAKEFILE.DOS │ │ ├── Makefile │ │ ├── Makefile.BeOS │ │ ├── Makefile.NeXT │ │ ├── Makefile.OpenStep │ │ ├── Makefile.new │ │ ├── Makefile.old │ │ ├── MesaGLos2.def │ │ ├── MesaGLos2.rsp │ │ ├── accum.c │ │ ├── accum.h │ │ ├── alpha.c │ │ ├── alpha.h │ │ ├── alphabuf.c │ │ ├── alphabuf.h │ │ ├── api.c │ │ ├── attrib.c │ │ ├── attrib.h │ │ ├── bitmap.c │ │ ├── bitmap.h │ │ ├── blend.c │ │ ├── blend.h │ │ ├── bresenhm.c │ │ ├── bresenhm.h │ │ ├── clip.c │ │ ├── clip.h │ │ ├── colors.h │ │ ├── config.h │ │ ├── context.c │ │ ├── context.h │ │ ├── copypix.c │ │ ├── copypix.h │ │ ├── dd.h │ │ ├── ddsample.c │ │ ├── depend │ │ ├── depth.c │ │ ├── depth.h │ │ ├── descrip.mms │ │ ├── dlist.c │ │ ├── dlist.h │ │ ├── dosmesa.c │ │ ├── draw.c │ │ ├── draw.h │ │ ├── drawpix.c │ │ ├── drawpix.h │ │ ├── enable.c │ │ ├── enable.h │ │ ├── eval.c │ │ ├── eval.h │ │ ├── feedback.c │ │ ├── feedback.h │ │ ├── fixed.h │ │ ├── fog.c │ │ ├── fog.h │ │ ├── get.c │ │ ├── get.h │ │ ├── image.c │ │ ├── image.h │ │ ├── interp.c │ │ ├── interp.h │ │ ├── light.c │ │ ├── light.h │ │ ├── lines.c │ │ ├── lines.h │ │ ├── logic.c │ │ ├── logic.h │ │ ├── macros.h │ │ ├── masking.c │ │ ├── masking.h │ │ ├── matrix.c │ │ ├── matrix.h │ │ ├── misc.c │ │ ├── misc.h │ │ ├── mms_depend │ │ ├── osmesa.c │ │ ├── pb.c │ │ ├── pb.h │ │ ├── pixel.c │ │ ├── pixel.h │ │ ├── pointers.c │ │ ├── pointers.h │ │ ├── points.c │ │ ├── points.h │ │ ├── polygon.c │ │ ├── polygon.h │ │ ├── readpix.c │ │ ├── readpix.h │ │ ├── scissor.c │ │ ├── scissor.h │ │ ├── span.c │ │ ├── span.h │ │ ├── stencil.c │ │ ├── stencil.h │ │ ├── teximage.c │ │ ├── teximage.h │ │ ├── texobj.c │ │ ├── texobj.h │ │ ├── texture.c │ │ ├── texture.h │ │ ├── triangle.c │ │ ├── triangle.h │ │ ├── tritemp.h │ │ ├── types.h │ │ ├── varray.c │ │ ├── varray.h │ │ ├── vb.c │ │ ├── vb.h │ │ ├── vertex.c │ │ ├── vertex.h │ │ ├── winpos.c │ │ ├── winpos.h │ │ ├── wmesa.c │ │ ├── wmesa_stereo.c │ │ ├── wmesadef.h │ │ ├── xform.c │ │ └── xform.h │ ├── mpeg2 │ ├── CMakeLists.txt │ ├── Makefile │ ├── README │ ├── README.BEN │ ├── data │ │ ├── README │ │ ├── compo.tar.gz │ │ ├── mei16v2.m2v │ │ ├── options.par │ │ ├── out.m2v │ │ ├── rec0.U │ │ ├── rec0.V │ │ ├── rec0.Y │ │ ├── rec1.U │ │ ├── rec1.V │ │ ├── rec1.Y │ │ ├── rec2.U │ │ ├── rec2.V │ │ ├── rec2.Y │ │ ├── rec3.U │ │ ├── rec3.V │ │ ├── rec3.Y │ │ ├── stat.out │ │ ├── tmp0.U │ │ ├── tmp0.V │ │ ├── tmp0.Y │ │ ├── tmp1.U │ │ ├── tmp1.V │ │ ├── tmp1.Y │ │ ├── tmp2.U │ │ ├── tmp2.V │ │ ├── tmp2.Y │ │ ├── tmp3.U │ │ ├── tmp3.V │ │ └── tmp3.Y │ ├── doc │ │ ├── ARCHITECTURE │ │ ├── BUGS │ │ ├── m2d_old.doc │ │ └── mpeg2enc.doc │ ├── exec │ │ ├── sdecode.sh │ │ └── sencode.sh │ ├── par │ │ ├── MPEG-1.par │ │ ├── NTSC.par │ │ ├── PAL.par │ │ ├── inter.mat │ │ └── intra.mat │ ├── src │ │ ├── mpeg2dec │ │ │ ├── CHANGES │ │ │ ├── CMakeLists.txt │ │ │ ├── EXAMPLES │ │ │ ├── IEEE1180 │ │ │ ├── Makefile │ │ │ ├── README │ │ │ ├── SPATIAL.DOC │ │ │ ├── TODO │ │ │ ├── config.h │ │ │ ├── display.c │ │ │ ├── getbits.c │ │ │ ├── getblk.c │ │ │ ├── gethdr.c │ │ │ ├── getpic.c │ │ │ ├── getvlc.c │ │ │ ├── getvlc.h │ │ │ ├── global.h │ │ │ ├── idct.c │ │ │ ├── idctref.c │ │ │ ├── motion.c │ │ │ ├── mpeg2dec.c │ │ │ ├── mpeg2dec.h │ │ │ ├── mpeg2decode.bb │ │ │ ├── recon.c │ │ │ ├── smoker.mpg │ │ │ ├── spatscal.c │ │ │ ├── store.c │ │ │ ├── subspic.c │ │ │ ├── systems.c │ │ │ ├── temp.U │ │ │ ├── temp.V │ │ │ ├── temp.Y │ │ │ ├── test.m2v │ │ │ └── verify.c │ │ └── mpeg2enc │ │ │ ├── CHANGES │ │ │ ├── CMakeLists.txt │ │ │ ├── Makefile │ │ │ ├── Makefile.wat │ │ │ ├── TODO │ │ │ ├── config.h │ │ │ ├── conform.c │ │ │ ├── fdctref.c │ │ │ ├── global.h │ │ │ ├── idct.c │ │ │ ├── motion.c │ │ │ ├── mpeg2enc.c │ │ │ ├── mpeg2enc.h │ │ │ ├── predict.c │ │ │ ├── putbits.c │ │ │ ├── puthdr.c │ │ │ ├── putmpg.c │ │ │ ├── putpic.c │ │ │ ├── putseq.c │ │ │ ├── putvlc.c │ │ │ ├── quantize.c │ │ │ ├── ratectl.c │ │ │ ├── readpic.c │ │ │ ├── stats.c │ │ │ ├── transfrm.c │ │ │ ├── vlc.h │ │ │ └── writepic.c │ └── verify │ │ ├── README │ │ ├── recon0.U │ │ ├── recon0.V │ │ ├── recon0.Y │ │ ├── recon1.U │ │ ├── recon1.V │ │ ├── recon1.Y │ │ ├── recon2.U │ │ ├── recon2.V │ │ ├── recon2.Y │ │ ├── test.m2v │ │ ├── test.par │ │ ├── test0.U │ │ ├── test0.V │ │ ├── test0.Y │ │ ├── test1.U │ │ ├── test1.V │ │ ├── test1.Y │ │ ├── test2.U │ │ ├── test2.V │ │ ├── test2.Y │ │ └── verify │ └── rasta │ ├── CMakeLists.txt │ ├── README.BEN │ ├── data │ ├── ex5.asc │ ├── ex5_c1.asc │ ├── ex5_c1.wav │ ├── map_weights.dat │ └── rasta.shade │ ├── src │ ├── CMakeLists.txt │ ├── INSTALL │ ├── Makefile │ ├── Makefile.in │ ├── Makefile.in.new │ ├── Makefile.in.old │ ├── Makefile.old │ ├── NEWS │ ├── README │ ├── TODO │ ├── acconfig.h │ ├── anal.c │ ├── audspec.c │ ├── config.cache │ ├── config.cache.old │ ├── config.guess │ ├── config.h │ ├── config.h.in │ ├── config.h.old │ ├── config.log │ ├── config.status │ ├── config.status.old │ ├── config.sub │ ├── configure │ ├── configure.in │ ├── create_mapping │ ├── create_mapping.in │ ├── create_mapping.old │ ├── debug.c │ ├── ex1_10.asc │ ├── ex1_10.coeff │ ├── ex1_10.esps │ ├── ex1_10.wav │ ├── ex5.asc │ ├── ex5.wav │ ├── ex5_c1.wav │ ├── fft.c │ ├── functions.h │ ├── fvecsubs.c │ ├── init.c │ ├── install-sh │ ├── inverse_nl.c │ ├── io.c │ ├── lpccep.c │ ├── lsqsolve.1 │ ├── lsqsolve.c │ ├── map_weights.dat │ ├── mapping.c │ ├── mul_mdmd_md.c │ ├── nl_audspec.c │ ├── noise_est.c │ ├── post_audspec.c │ ├── powspec.c │ ├── rasta.1 │ ├── rasta.bb │ ├── rasta.c │ ├── rasta.h │ ├── rasta.options │ ├── rasta.scope │ ├── rasta.stats │ ├── rasta_filt.c │ ├── sphere │ │ └── include │ │ │ ├── sp │ │ │ ├── alaw.h │ │ │ ├── header.h │ │ │ ├── shorten │ │ │ │ ├── shorten.h │ │ │ │ └── shrt_sph.h │ │ │ ├── shpack │ │ │ │ └── shpk_sph.h │ │ │ ├── sp.h │ │ │ ├── spchksum.h │ │ │ ├── spfile.h │ │ │ ├── sphere.h │ │ │ ├── spmacros.h │ │ │ ├── sysfunc.h │ │ │ ├── sysparam.h │ │ │ ├── ulaw.h │ │ │ ├── version.h │ │ │ └── wavpack │ │ │ │ └── wavpack.h │ │ │ └── util │ │ │ ├── cfg.h │ │ │ ├── chars.h │ │ │ ├── diskarr.h │ │ │ ├── err_util.h │ │ │ ├── fob.h │ │ │ ├── hist.h │ │ │ ├── hsgetopt.h │ │ │ ├── macros.h │ │ │ ├── memory.h │ │ │ ├── min.h │ │ │ ├── mtrf.h │ │ │ ├── order.h │ │ │ ├── pmmlcg.h │ │ │ ├── proto.h │ │ │ ├── rpg.h │ │ │ ├── statdist.h │ │ │ └── utillib.h │ ├── sphere2 │ │ ├── nist │ │ │ ├── CMakeLists.txt │ │ │ ├── Makefile │ │ │ ├── bin │ │ │ │ ├── gen_lord.sh │ │ │ │ ├── gen_setv.sh │ │ │ │ ├── h_header.sh │ │ │ │ └── raw2nist.sh │ │ │ ├── doc │ │ │ │ ├── man │ │ │ │ │ ├── man1 │ │ │ │ │ │ ├── h_add.1 │ │ │ │ │ │ ├── h_delete.1 │ │ │ │ │ │ ├── h_edit.1 │ │ │ │ │ │ ├── h_read.1 │ │ │ │ │ │ ├── h_strip.1 │ │ │ │ │ │ ├── raw2nist.1 │ │ │ │ │ │ ├── shorten.1 │ │ │ │ │ │ ├── tsphere.1 │ │ │ │ │ │ ├── w_decode.1 │ │ │ │ │ │ ├── w_diff.1 │ │ │ │ │ │ ├── w_edit.1 │ │ │ │ │ │ └── w_encode.1 │ │ │ │ │ └── man3 │ │ │ │ │ │ └── sphere_i.3 │ │ │ │ ├── sphere.doc │ │ │ │ └── sphere.rdm │ │ │ ├── include │ │ │ │ ├── sp │ │ │ │ │ ├── alaw.h │ │ │ │ │ ├── header.h │ │ │ │ │ ├── shorten │ │ │ │ │ │ ├── shorten.h │ │ │ │ │ │ └── shrt_sph.h │ │ │ │ │ ├── shpack │ │ │ │ │ │ └── shpk_sph.h │ │ │ │ │ ├── sp.h │ │ │ │ │ ├── spchksum.h │ │ │ │ │ ├── spfile.h │ │ │ │ │ ├── sphere.h │ │ │ │ │ ├── spmacros.h │ │ │ │ │ ├── sysfunc.h │ │ │ │ │ ├── sysparam.h │ │ │ │ │ ├── ulaw.h │ │ │ │ │ ├── version.h │ │ │ │ │ └── wavpack │ │ │ │ │ │ └── wavpack.h │ │ │ │ └── util │ │ │ │ │ ├── cfg.h │ │ │ │ │ ├── chars.h │ │ │ │ │ ├── diskarr.h │ │ │ │ │ ├── err_util.h │ │ │ │ │ ├── fob.h │ │ │ │ │ ├── hist.h │ │ │ │ │ ├── hsgetopt.h │ │ │ │ │ ├── macros.h │ │ │ │ │ ├── memory.h │ │ │ │ │ ├── min.h │ │ │ │ │ ├── mtrf.h │ │ │ │ │ ├── order.h │ │ │ │ │ ├── pmmlcg.h │ │ │ │ │ ├── proto.h │ │ │ │ │ ├── rpg.h │ │ │ │ │ ├── statdist.h │ │ │ │ │ └── utillib.h │ │ │ ├── lib │ │ │ │ ├── data │ │ │ │ │ ├── ex1_01.wav │ │ │ │ │ ├── ex1_01sh.wav │ │ │ │ │ ├── ex1_01st.wav │ │ │ │ │ ├── ex1_01wp.wav │ │ │ │ │ ├── ex1_10.wav │ │ │ │ │ ├── ex1_10.wvc │ │ │ │ │ ├── ex1_10sh.wav │ │ │ │ │ ├── ex1_10st.wav │ │ │ │ │ ├── ex1_10st.wvc │ │ │ │ │ ├── ex1_10wp.wav │ │ │ │ │ ├── ex2_01.wav │ │ │ │ │ ├── ex2_01st.wav │ │ │ │ │ ├── ex2_01wp.wav │ │ │ │ │ ├── ex2_10.wav │ │ │ │ │ ├── ex2_10st.wav │ │ │ │ │ ├── ex2_10wp.wav │ │ │ │ │ ├── ex4.wav │ │ │ │ │ ├── ex4_01.wav │ │ │ │ │ ├── ex4_10.wav │ │ │ │ │ ├── ex4_sh.wav │ │ │ │ │ ├── ex4_wp.wav │ │ │ │ │ ├── ex5.wav │ │ │ │ │ ├── ex5_12.wav │ │ │ │ │ ├── ex5_12_p.wav │ │ │ │ │ ├── ex5_c1.wav │ │ │ │ │ ├── ex5_c1_p.wav │ │ │ │ │ ├── ex5_c2.wav │ │ │ │ │ ├── ex5_c2_p.wav │ │ │ │ │ ├── ex5_p.wav │ │ │ │ │ ├── ex5_p01.wav │ │ │ │ │ ├── ex5_p_sh.wav │ │ │ │ │ ├── ex5_p_wp.wav │ │ │ │ │ ├── ex5_sh.wav │ │ │ │ │ ├── ex5_wp.wav │ │ │ │ │ ├── ex6.wav │ │ │ │ │ ├── ex7.wav │ │ │ │ │ ├── ex7_01.wav │ │ │ │ │ ├── ex7_10.wav │ │ │ │ │ ├── ex7_sh.wav │ │ │ │ │ ├── ex7_wp.wav │ │ │ │ │ ├── readme.txt │ │ │ │ │ └── swb.wav │ │ │ │ ├── makes │ │ │ │ │ ├── make_lib.txt │ │ │ │ │ ├── make_lnm.txt │ │ │ │ │ ├── make_prg.txt │ │ │ │ │ ├── make_prj.txt │ │ │ │ │ ├── make_scr.txt │ │ │ │ │ ├── make_spg.txt │ │ │ │ │ └── make_src.txt │ │ │ │ └── packages │ │ │ │ │ ├── sphere.pas │ │ │ │ │ └── sphere.pkg │ │ │ ├── readme.doc │ │ │ └── src │ │ │ │ ├── Makefile │ │ │ │ ├── bin │ │ │ │ ├── Makefile │ │ │ │ ├── h_add.c │ │ │ │ ├── h_delete.c │ │ │ │ ├── h_edit.c │ │ │ │ ├── h_read.c │ │ │ │ ├── h_strip.c │ │ │ │ ├── h_test.c │ │ │ │ ├── tsphere.c │ │ │ │ ├── w_decode.c │ │ │ │ ├── w_diff.c │ │ │ │ ├── w_edit.c │ │ │ │ └── w_encode.c │ │ │ │ ├── lib │ │ │ │ ├── Makefile │ │ │ │ ├── sp │ │ │ │ │ ├── CMakeLists.txt │ │ │ │ │ ├── Makefile │ │ │ │ │ ├── alaw.c │ │ │ │ │ ├── array.c │ │ │ │ │ ├── bitshift.h │ │ │ │ │ ├── dif_wavf.c │ │ │ │ │ ├── dupfinfo.c │ │ │ │ │ ├── exit.c │ │ │ │ │ ├── fixio.c │ │ │ │ │ ├── h_fix.c │ │ │ │ │ ├── license.c │ │ │ │ │ ├── lpc.c │ │ │ │ │ ├── nat_bord.c │ │ │ │ │ ├── poly.c │ │ │ │ │ ├── sdatamod.c │ │ │ │ │ ├── shorten.c │ │ │ │ │ ├── shpack_s.c │ │ │ │ │ ├── shpacki2.c │ │ │ │ │ ├── shpackio.c │ │ │ │ │ ├── sp_ntoh.c │ │ │ │ │ ├── sp_utils.c │ │ │ │ │ ├── spalloc.c │ │ │ │ │ ├── spchksum.c │ │ │ │ │ ├── spclose.c │ │ │ │ │ ├── speof.c │ │ │ │ │ ├── sperror.c │ │ │ │ │ ├── sphere.c │ │ │ │ │ ├── sphio.c │ │ │ │ │ ├── spinput.c │ │ │ │ │ ├── sploadf.c │ │ │ │ │ ├── spopen.c │ │ │ │ │ ├── spoutput.c │ │ │ │ │ ├── spread.c │ │ │ │ │ ├── sprewind.c │ │ │ │ │ ├── sprstat.c │ │ │ │ │ ├── spseek.c │ │ │ │ │ ├── sptell.c │ │ │ │ │ ├── sptemp.c │ │ │ │ │ ├── sputils2.c │ │ │ │ │ ├── spvers.c │ │ │ │ │ ├── spwrite.c │ │ │ │ │ ├── stdfield.c │ │ │ │ │ ├── ulaw.c │ │ │ │ │ ├── vario.c │ │ │ │ │ ├── verbose.c │ │ │ │ │ ├── wavedit.c │ │ │ │ │ └── wavpack.c │ │ │ │ └── util │ │ │ │ │ ├── CMakeLists.txt │ │ │ │ │ ├── Makefile │ │ │ │ │ ├── cfg.c │ │ │ │ │ ├── comments.c │ │ │ │ │ ├── ds.c │ │ │ │ │ ├── err_util.c │ │ │ │ │ ├── fobops.c │ │ │ │ │ ├── hist.c │ │ │ │ │ ├── hsgetopt.c │ │ │ │ │ ├── itoa.c │ │ │ │ │ ├── maldie.c │ │ │ │ │ ├── mtrf.c │ │ │ │ │ ├── order.c │ │ │ │ │ ├── pad.c │ │ │ │ │ ├── rsprintf.c │ │ │ │ │ ├── sfgets.c │ │ │ │ │ ├── statdist.c │ │ │ │ │ ├── str_srch.c │ │ │ │ │ ├── string.c │ │ │ │ │ ├── t_or_f.c │ │ │ │ │ └── word.c │ │ │ │ └── scripts │ │ │ │ ├── Makefile │ │ │ │ ├── gen_lord.sh │ │ │ │ ├── gen_make.sh │ │ │ │ ├── gen_setv.sh │ │ │ │ ├── h_header.sh │ │ │ │ ├── install.sh │ │ │ │ ├── raw2nist.sh │ │ │ │ └── sphere.ins │ │ └── sphere_2.6a.tar │ ├── svecsubs.c │ └── values.h │ └── test │ ├── ex5.asc │ ├── ex5_c1.asc │ ├── ex5_c1.wav │ ├── map_weights.dat │ ├── rasta.shade │ └── sdecode.sh ├── includes ├── binaries.h ├── dbt │ ├── dbtPlateform.h │ ├── insertions.h │ └── profiling.h ├── frontend.h ├── isa │ ├── irISA.h │ ├── mipsISA.h │ ├── mipsToVexISA.h │ ├── riscvISA.h │ ├── riscvToVexISA.h │ └── vexISA.h ├── lib │ ├── ac_int.h │ ├── config.h │ ├── dbtProfiling.h │ ├── debugFunctions.h │ ├── elf.h │ ├── elfFile.h │ ├── endianness.h │ ├── log.h │ ├── threadedDebug.h │ └── traceQueue.h ├── parameters.h ├── simulator │ ├── genericSimulator.h │ ├── loadQueueVexSimulator.h │ ├── mipsSimulator.h │ ├── riscvSimulator.h │ ├── vexSimulator.h │ └── vexTraceSimulator.h ├── transformation │ ├── buildControlFlow.h │ ├── buildTraces.h │ ├── firstPassTranslation.h │ ├── irGenerator.h │ ├── irScheduler.h │ ├── localRegisterAnalysis.h │ ├── memoryDisambiguation.h │ ├── optimizeBasicBlock.h │ ├── reconfigureVLIW.h │ └── rescheduleProcedure.h └── types.h └── src ├── .gitignore ├── CMakeLists.txt ├── dbt ├── CMakeLists.txt ├── dbt.cpp ├── dbtPlateform.cpp ├── initCode.cpp ├── insertions.cpp ├── profiling.cpp └── sbt.cpp ├── isa ├── CMakeLists.txt ├── irISA.cpp ├── riscvISA.cpp ├── riscvToVexISA.cpp └── vexISA.cpp ├── lib ├── CMakeLists.txt ├── config.cpp ├── dbtProfiling.cpp ├── debugFunctions.cpp ├── elfFile.cpp ├── endianness.cpp ├── log.cpp ├── threadedDebug.cpp └── traceQueue.cpp ├── simulator ├── CMakeLists.txt ├── genericSimulator.cpp ├── loadQueueVexSimulator.cpp ├── loadStoreQueue.cpp ├── mipsSimulator.cpp ├── riscvSimulator.cpp ├── vexSimulator.cpp └── vexTraceSimulator.cpp ├── tools ├── CMakeLists.txt ├── dumpBinaryBytecode.cpp ├── dumpBinaryCode.cpp ├── dumpResultsForAcceleratedSimulation.cpp ├── readBytecode.cpp ├── simMIPS.cpp ├── simRISCV.cpp └── simulateTransaltionCache.c └── transformation ├── CMakeLists.txt ├── buildControlFlow.cpp ├── buildTraces.cpp ├── firstPassTranslation ├── CMakeLists.txt ├── firstPassTranslation.cpp ├── firstPassTranslation_mips_hw.cpp ├── firstPassTranslation_riscv_hw.cpp └── firstPassTranslation_riscv_sw.cpp ├── irGeneration ├── CMakeLists.txt ├── irGeneration.cpp ├── irGeneration_hw.cpp └── irGeneration_sw.cpp ├── irScheduling ├── CMakeLists.txt ├── irScheduling.cpp ├── irScheduling_list_hw.cpp ├── irScheduling_list_sw.cpp ├── irScheduling_scoreboard_hw.cpp └── irScheduling_scoreboard_sw.cpp ├── localRegisterAnalysis.cpp ├── memoryDisambiguation.cpp ├── optimizeBasicBlock.cpp ├── reconfigureVLIW.cpp └── rescheduleProcedure.cpp /.travis.yml: -------------------------------------------------------------------------------- 1 | dist: trusty 2 | sudo: required 3 | language: 4 | - cpp 5 | compiler: 6 | - gcc 7 | addons: 8 | apt: 9 | sources: 10 | - ubuntu-toolchain-r-test 11 | packages: 12 | - gcc-6 13 | - g++-6 14 | - cmake 15 | script: 16 | - mkdir -p build 17 | - cd build 18 | - export CXX=/usr/bin/g++-6 19 | - cmake .. 20 | - make all -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | MIT License 2 | 3 | Copyright (c) 2017 Simon Rokicki 4 | 5 | Permission is hereby granted, free of charge, to any person obtaining a copy 6 | of this software and associated documentation files (the "Software"), to deal 7 | in the Software without restriction, including without limitation the rights 8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 9 | copies of the Software, and to permit persons to whom the Software is 10 | furnished to do so, subject to the following conditions: 11 | 12 | The above copyright notice and this permission notice shall be included in all 13 | copies or substantial portions of the Software. 14 | 15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 21 | SOFTWARE. 22 | -------------------------------------------------------------------------------- /benchmarks/CMakeLists.txt: -------------------------------------------------------------------------------- 1 | cmake_minimum_required (VERSION 3.5) 2 | 3 | unset(CMAKE_C_COMPILER PARENT_SCOPE) 4 | unset(CMAKE_CXX_COMPILER PARENT_SCOPE) 5 | unset(CMAKE_C_FLAGS PARENT_SCOPE) 6 | unset(CMAKE_RUNTIME_OUTPUT_DIRECTORY PARENT_SCOPE) 7 | 8 | 9 | 10 | set(CMAKE_C_COMPILER riscv64-unknown-elf-gcc) 11 | set(CMAKE_CXX_COMPILER riscv64-unknown-elf-g++) 12 | set(CMAKE_C_FLAGS "-O3 -static") 13 | set (CMAKE_RUNTIME_OUTPUT_DIRECTORY ./bin) 14 | 15 | enable_testing() 16 | 17 | 18 | add_subdirectory(mediabench) 19 | 20 | -------------------------------------------------------------------------------- /benchmarks/mediabench/CMakeLists.txt: -------------------------------------------------------------------------------- 1 | 2 | add_subdirectory(epic) 3 | add_subdirectory(g721) 4 | add_subdirectory(mesa) 5 | add_subdirectory(mpeg2) 6 | add_subdirectory(rasta) 7 | add_subdirectory(adpcm) 8 | add_subdirectory(gsm) 9 | add_subdirectory(jpeg) 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /benchmarks/mediabench/adpcm/CMakeLists.txt: -------------------------------------------------------------------------------- 1 | add_subdirectory(src) 2 | 3 | 4 | add_test(NAME test_adpcm_encode WORKING_DIRECTORY ${CMAKE_CURRENT_LIST_DIR}/test/ COMMAND dbt -f ${CMAKE_CURRENT_BINARY_DIR}/src/bin/rawcaudio -i ../data/clinton.pcm -o ../results/out.adpcm) 5 | add_test(NAME test_adpcm_decode WORKING_DIRECTORY ${CMAKE_CURRENT_LIST_DIR}/test/ COMMAND dbt -f ${CMAKE_CURRENT_BINARY_DIR}/src/bin/rawdaudio -i ../data/clinton.adpcm -o ../results/out.pcm) 6 | -------------------------------------------------------------------------------- /benchmarks/mediabench/adpcm/README.BEN: -------------------------------------------------------------------------------- 1 | use exec/sencode & exec/sdecode to generate data in the results directory 2 | -------------------------------------------------------------------------------- /benchmarks/mediabench/adpcm/README.MB: -------------------------------------------------------------------------------- 1 | ================================== 2 | README -- by authors of MediaBench 3 | ================================== 4 | 5 | Compiling: 6 | To compile this package, go to subdirectory ./src and 7 | invoke "make all." This should work on most systems with 8 | gcc. Note that on machines other than Sun Sparcs, the 9 | compiler switch -mv8 should not be used. 10 | 11 | Running the programs: 12 | There are two scripts in the ./exec subdirectory: one for 13 | adpcm encoding and the other for adpcm decoding. Data files 14 | are in ./data and results will be stored in ./results. 15 | 16 | -------------------------------------------------------------------------------- /benchmarks/mediabench/adpcm/data/clinton.adpcm: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/srokicki/HybridDBT/ddfbe8b2a9a98fe9a8f4bab876614c7af5c002e1/benchmarks/mediabench/adpcm/data/clinton.adpcm -------------------------------------------------------------------------------- /benchmarks/mediabench/adpcm/data/clinton.pcm: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/srokicki/HybridDBT/ddfbe8b2a9a98fe9a8f4bab876614c7af5c002e1/benchmarks/mediabench/adpcm/data/clinton.pcm -------------------------------------------------------------------------------- /benchmarks/mediabench/adpcm/exec/sdecode.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh -f 2 | BENCHMARK=../../build/adpcm/src/bin/rawdaudio 3 | INPUT=../data/clinton.adpcm 4 | OUTPUT=../results/out.pcm 5 | # 6 | dbt -f ${BENCHMARK} -i ${INPUT} -o ${OUTPUT} 7 | -------------------------------------------------------------------------------- /benchmarks/mediabench/adpcm/exec/sencode.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh -f 2 | BENCHMARK=../../build/adpcm/src/bin/rawcaudio 3 | INPUT=../data/clinton.pcm 4 | OUTPUT=../results/out.adpcm 5 | # 6 | echo simRISCV ${BENCHMARK} -i ${INPUT} -o ${OUTPUT} 7 | dbt -f ${BENCHMARK} -i ${INPUT} -o ${OUTPUT} 8 | -------------------------------------------------------------------------------- /benchmarks/mediabench/adpcm/results/out.adpcm: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/srokicki/HybridDBT/ddfbe8b2a9a98fe9a8f4bab876614c7af5c002e1/benchmarks/mediabench/adpcm/results/out.adpcm -------------------------------------------------------------------------------- /benchmarks/mediabench/adpcm/results/out.pcm: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/srokicki/HybridDBT/ddfbe8b2a9a98fe9a8f4bab876614c7af5c002e1/benchmarks/mediabench/adpcm/results/out.pcm -------------------------------------------------------------------------------- /benchmarks/mediabench/adpcm/src/CMakeLists.txt: -------------------------------------------------------------------------------- 1 | # Also in MiBench 2 | add_executable(rawcaudio rawcaudio.c adpcm.c) 3 | add_executable(rawdaudio rawdaudio.c adpcm.c) 4 | 5 | -------------------------------------------------------------------------------- /benchmarks/mediabench/adpcm/src/adpcm.h: -------------------------------------------------------------------------------- 1 | /* 2 | ** adpcm.h - include file for adpcm coder. 3 | ** 4 | ** Version 1.0, 7-Jul-92. 5 | */ 6 | 7 | struct adpcm_state { 8 | short valprev; /* Previous output value */ 9 | char index; /* Index into stepsize table */ 10 | }; 11 | 12 | #ifdef __STDC__ 13 | #define ARGS(x) x 14 | #else 15 | #define ARGS(x) () 16 | #endif 17 | 18 | void adpcm_coder ARGS((short [], char [], int, struct adpcm_state *)); 19 | void adpcm_decoder ARGS((char [], short [], int, struct adpcm_state *)); 20 | -------------------------------------------------------------------------------- /benchmarks/mediabench/adpcm/src/rawcaudio.c: -------------------------------------------------------------------------------- 1 | /* testc - Test adpcm coder */ 2 | 3 | #include "adpcm.h" 4 | #include 5 | 6 | struct adpcm_state state; 7 | 8 | #define NSAMPLES 1000 9 | 10 | char abuf[NSAMPLES/2]; 11 | short sbuf[NSAMPLES]; 12 | 13 | main() { 14 | int n; 15 | 16 | while(1) { 17 | n = read(0, sbuf, NSAMPLES*2); 18 | if ( n < 0 ) { 19 | perror("input file"); 20 | exit(1); 21 | } 22 | if ( n == 0 ) break; 23 | adpcm_coder(sbuf, abuf, n/2, &state); 24 | write(1, abuf, n/4); 25 | } 26 | fprintf(stderr, "Final valprev=%d, index=%d\n", 27 | state.valprev, state.index); 28 | exit(0); 29 | } 30 | -------------------------------------------------------------------------------- /benchmarks/mediabench/adpcm/src/rawdaudio.c: -------------------------------------------------------------------------------- 1 | /* testd - Test adpcm decoder */ 2 | 3 | #include "adpcm.h" 4 | #include 5 | 6 | struct adpcm_state state; 7 | 8 | #define NSAMPLES 1000 9 | 10 | char abuf[NSAMPLES/2]; 11 | short sbuf[NSAMPLES]; 12 | 13 | main() { 14 | int n; 15 | 16 | while(1) { 17 | n = read(0, abuf, NSAMPLES/2); 18 | if ( n < 0 ) { 19 | perror("input file"); 20 | exit(1); 21 | } 22 | if ( n == 0 ) break; 23 | adpcm_decoder(abuf, sbuf, n*2, &state); 24 | write(1, sbuf, n*4); 25 | } 26 | fprintf(stderr, "Final valprev=%d, index=%d\n", 27 | state.valprev, state.index); 28 | exit(0); 29 | } 30 | -------------------------------------------------------------------------------- /benchmarks/mediabench/epic/CMakeLists.txt: -------------------------------------------------------------------------------- 1 | add_subdirectory(src) 2 | 3 | add_test(NAME test_epic_decode WORKING_DIRECTORY ${CMAKE_CURRENT_LIST_DIR}/ COMMAND dbt -f ${CMAKE_CURRENT_BINARY_DIR}/src/bin/unepic -a "./data/test.image.pgm.E") 4 | add_test(NAME test_epic_encode WORKING_DIRECTORY ${CMAKE_CURRENT_LIST_DIR}/ COMMAND dbt -f ${CMAKE_CURRENT_BINARY_DIR}/src/bin/epic -a "./data/test_image.pgm") 5 | -------------------------------------------------------------------------------- /benchmarks/mediabench/epic/README.BEN: -------------------------------------------------------------------------------- 1 | Run sepic.sh and sunepic.sh in ./exec. Look for 2 | results in ./data. 3 | -------------------------------------------------------------------------------- /benchmarks/mediabench/epic/data/test.image.pgm.E: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/srokicki/HybridDBT/ddfbe8b2a9a98fe9a8f4bab876614c7af5c002e1/benchmarks/mediabench/epic/data/test.image.pgm.E -------------------------------------------------------------------------------- /benchmarks/mediabench/epic/data/test.image.pgm.E.U: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/srokicki/HybridDBT/ddfbe8b2a9a98fe9a8f4bab876614c7af5c002e1/benchmarks/mediabench/epic/data/test.image.pgm.E.U -------------------------------------------------------------------------------- /benchmarks/mediabench/epic/data/test_image.pgm: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/srokicki/HybridDBT/ddfbe8b2a9a98fe9a8f4bab876614c7af5c002e1/benchmarks/mediabench/epic/data/test_image.pgm -------------------------------------------------------------------------------- /benchmarks/mediabench/epic/data/test_image.pgm.E: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/srokicki/HybridDBT/ddfbe8b2a9a98fe9a8f4bab876614c7af5c002e1/benchmarks/mediabench/epic/data/test_image.pgm.E -------------------------------------------------------------------------------- /benchmarks/mediabench/epic/data/test_image.pgm.E.U: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/srokicki/HybridDBT/ddfbe8b2a9a98fe9a8f4bab876614c7af5c002e1/benchmarks/mediabench/epic/data/test_image.pgm.E.U -------------------------------------------------------------------------------- /benchmarks/mediabench/epic/exec/sdecode.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh -f 2 | BENCH_BIN=../../../../build/benchmarks/mediabench/epic/src/bin/unepic 3 | BENCH_OPT= 4 | BENCH_INP=../data/test.image.pgm.E 5 | BENCH_OUT= 6 | BENCH_ARG="${BENCH_INP} ${BENCH_OPT} ${BENCH_OUT}" 7 | # 8 | simRISCV -f ${BENCH_BIN} -a "${BENCH_ARG}" 9 | -------------------------------------------------------------------------------- /benchmarks/mediabench/epic/exec/sencode.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh -f 2 | BENCH_BIN=../../../../build/benchmarks/mediabench/epic/src/bin/epic 3 | BENCH_OPT="-b 25" 4 | BENCH_INP=../data/test_image.pgm 5 | BENCH_OUT= 6 | BENCH_ARG="${BENCH_INP} ${BENCH_OPT} ${BENCH_OUT}" 7 | # 8 | dbt -f ${BENCH_BIN} -a "../data/test_image.pgm -b 25" 9 | -------------------------------------------------------------------------------- /benchmarks/mediabench/epic/src/CMakeLists.txt: -------------------------------------------------------------------------------- 1 | add_executable(epic epic.c build_pyr.c utilities.c parse_args.c fileio.c quantize.c run_length.c huffman.c convolve.c edges.c) 2 | add_executable(unepic unepic.c collapse_pyr.c utilities.c parse_args.c fileio.c quantize.c run_length.c huffman.c) 3 | 4 | target_link_libraries(epic m) 5 | -------------------------------------------------------------------------------- /benchmarks/mediabench/epic/src/convolve.h: -------------------------------------------------------------------------------- 1 | /* 2 | ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; 3 | ;;; File: convolve.h 4 | ;;; Author: Simoncelli 5 | ;;; Description: Header file for convolve.c 6 | ;;; Creation Date: 7 | ;;; ---------------------------------------------------------------- 8 | ;;; Object-Based Vision and Image Understanding System (OBVIUS), 9 | ;;; Copyright 1988, Vision Science Group, Media Laboratory, 10 | ;;; Massachusetts Institute of Technology. 11 | ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; 12 | */ 13 | 14 | #define abs(x) (x>=0 ? x : -(x)) 15 | #define ROOT2 1.4142135623730951 16 | #define FILTER 0 17 | #define EXPAND 1 18 | #define IS == 19 | #define ISNT != 20 | #define AND && 21 | #define OR || 22 | 23 | typedef int (*fptr)(); 24 | 25 | typedef struct 26 | { 27 | char *name; 28 | fptr func; 29 | } EDGE_HANDLER; 30 | 31 | fptr edge_function(); 32 | int internal_filter(), internal_expand(); 33 | 34 | 35 | /* Local Variables: */ 36 | /* buffer-read-only: t */ 37 | /* End: */ 38 | -------------------------------------------------------------------------------- /benchmarks/mediabench/epic/src/epic.bb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/srokicki/HybridDBT/ddfbe8b2a9a98fe9a8f4bab876614c7af5c002e1/benchmarks/mediabench/epic/src/epic.bb -------------------------------------------------------------------------------- /benchmarks/mediabench/epic/src/pgm-header: -------------------------------------------------------------------------------- 1 | P5 2 | # CREATOR: EPIC Version 1.1 Rev: 10/95 3 | 256 256 4 | 255 5 | -------------------------------------------------------------------------------- /benchmarks/mediabench/epic/src/unepic.bb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/srokicki/HybridDBT/ddfbe8b2a9a98fe9a8f4bab876614c7af5c002e1/benchmarks/mediabench/epic/src/unepic.bb -------------------------------------------------------------------------------- /benchmarks/mediabench/g721/CMakeLists.txt: -------------------------------------------------------------------------------- 1 | add_subdirectory(src) 2 | 3 | add_test(NAME test_g721_encode WORKING_DIRECTORY ${CMAKE_CURRENT_LIST_DIR}/ COMMAND dbt -f ${CMAKE_CURRENT_BINARY_DIR}/src/bin/encode -a "-4 -l -f ./data/clinton.pcm") 4 | add_test(NAME test_g721_decode WORKING_DIRECTORY ${CMAKE_CURRENT_LIST_DIR}/ COMMAND dbt -f ${CMAKE_CURRENT_BINARY_DIR}/src/bin/decode -a "-4 -l -f ./data/clinton.g721") 5 | -------------------------------------------------------------------------------- /benchmarks/mediabench/g721/README.BEN: -------------------------------------------------------------------------------- 1 | This one doesn't seem to produce output. 2 | Run the s??code.sh files in ./exec 3 | -------------------------------------------------------------------------------- /benchmarks/mediabench/g721/data/clinton.g721: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/srokicki/HybridDBT/ddfbe8b2a9a98fe9a8f4bab876614c7af5c002e1/benchmarks/mediabench/g721/data/clinton.g721 -------------------------------------------------------------------------------- /benchmarks/mediabench/g721/data/clinton.g721.pcm: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/srokicki/HybridDBT/ddfbe8b2a9a98fe9a8f4bab876614c7af5c002e1/benchmarks/mediabench/g721/data/clinton.g721.pcm -------------------------------------------------------------------------------- /benchmarks/mediabench/g721/data/clinton.pcm: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/srokicki/HybridDBT/ddfbe8b2a9a98fe9a8f4bab876614c7af5c002e1/benchmarks/mediabench/g721/data/clinton.pcm -------------------------------------------------------------------------------- /benchmarks/mediabench/g721/data/clinton.pcm.g721: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/srokicki/HybridDBT/ddfbe8b2a9a98fe9a8f4bab876614c7af5c002e1/benchmarks/mediabench/g721/data/clinton.pcm.g721 -------------------------------------------------------------------------------- /benchmarks/mediabench/g721/exec/sdecode.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh -f 2 | BENCH_BIN=../../build/g721/src/bin/decode 3 | BENCH_OPT="-4 -l -f" 4 | BENCH_INP=../data/clinton.g721 5 | BENCH_OUT= 6 | BENCH_ARG="${BENCH_OPT} ${BENCH_INP}" 7 | # 8 | echo simRISCV ${BENCH_BIN} -a "${BENCH_ARG}" 9 | dbt -f ${BENCH_BIN} -a "${BENCH_ARG}" 10 | 11 | -------------------------------------------------------------------------------- /benchmarks/mediabench/g721/exec/sencode.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | BENCH_BIN=../../build/g721/src/bin/encode 3 | BENCH_OPT="-4 -l -f" 4 | BENCH_INP=../data/clinton.pcm 5 | BENCH_OUT= 6 | BENCH_ARG="${BENCH_OPT} ${BENCH_INP}" 7 | # 8 | echo simRISCV ${BENCH_BIN} -a "${BENCH_ARG}" 9 | dbt -f ${BENCH_BIN} -a "${BENCH_ARG}" 10 | -------------------------------------------------------------------------------- /benchmarks/mediabench/g721/src/CMakeLists.txt: -------------------------------------------------------------------------------- 1 | add_executable(encode encode.c g711.c g72x.c g721.c g723_24.c g723_40.c) 2 | add_executable(decode decode.c g711.c g72x.c g721.c g723_24.c g723_40.c) 3 | -------------------------------------------------------------------------------- /benchmarks/mediabench/g721/src/Makefile: -------------------------------------------------------------------------------- 1 | # Makefile for CCITT subroutines and sample programs 2 | # 3 | 4 | # Modify the CC definition to invoke your ANSI-C compiler 5 | # 6 | 7 | ############################# 8 | # Modified by C. Lee 9 | CC = /home/simon/Documents/Recherche/RISCV-toolchain/riscv/bin/riscv64-unknown-elf-gcc # gcc -mv8 -static 10 | CFLAGS = -O3 -msoft-float -march=RV64IM 11 | 12 | # Rules to build sample programs do not depend on a UNIX library program 13 | # 14 | ALL = encode decode 15 | all: $(ALL) 16 | cp encode decode ../bin/. 17 | 18 | OBJECTS = g711.o g72x.o g721.o g723_24.o g723_40.o 19 | 20 | encode: $(OBJECTS) encode.c 21 | $(CC) -o $@ encode.c $(OBJECTS) 22 | 23 | decode: $(OBJECTS) decode.c 24 | $(CC) -o $@ decode.c $(OBJECTS) 25 | 26 | 27 | # Library rules for UNIX systems 28 | # 29 | LIB = ccitt.a 30 | lib: $(LIB) 31 | 32 | $(LIB): $(OBJECTS) 33 | @rm -f $(LIB) 34 | ar cr $(LIB) $(OBJECTS) 35 | @ranlib $(LIB) 36 | 37 | clean: 38 | /bin/rm -f $(LIB) $(ALL) *.o ; /bin/rm -f ../bin/* 39 | -------------------------------------------------------------------------------- /benchmarks/mediabench/g721/src/Makefile.new: -------------------------------------------------------------------------------- 1 | # Makefile for CCITT subroutines and sample programs 2 | # 3 | 4 | # Modify the CC definition to invoke your ANSI-C compiler 5 | # 6 | CC = gcc -mv8 -static 7 | CFLAGS = -O3 8 | 9 | # Rules to build sample programs do not depend on a UNIX library program 10 | # 11 | ALL = encode decode 12 | all: $(ALL) 13 | 14 | OBJECTS = g711.o g72x.o g721.o g723_24.o g723_40.o 15 | 16 | encode: $(OBJECTS) 17 | $(CC) -o $@ encode.c $(OBJECTS) 18 | 19 | decode: $(OBJECTS) 20 | $(CC) -o $@ decode.c $(OBJECTS) 21 | 22 | 23 | # Library rules for UNIX systems 24 | # 25 | LIB = ccitt.a 26 | lib: $(LIB) 27 | 28 | $(LIB): $(OBJECTS) 29 | @rm -f $(LIB) 30 | ar cr $(LIB) $(OBJECTS) 31 | @ranlib $(LIB) 32 | 33 | clean: 34 | /bin/rm -f $(LIB) $(ALL) *.o 35 | -------------------------------------------------------------------------------- /benchmarks/mediabench/g721/src/Makefile.old: -------------------------------------------------------------------------------- 1 | # Makefile for CCITT subroutines and sample programs 2 | # 3 | 4 | # Modify the CC definition to invoke your ANSI-C compiler 5 | # 6 | CC = acc 7 | 8 | 9 | # Rules to build sample programs do not depend on a UNIX library program 10 | # 11 | ALL = encode decode 12 | all: $(ALL) 13 | 14 | OBJECTS = g711.o g72x.o g721.o g723_24.o g723_40.o 15 | 16 | encode: $(OBJECTS) 17 | $(CC) -o $@ encode.c $(OBJECTS) 18 | 19 | decode: $(OBJECTS) 20 | $(CC) -o $@ decode.c $(OBJECTS) 21 | 22 | 23 | # Library rules for UNIX systems 24 | # 25 | LIB = ccitt.a 26 | lib: $(LIB) 27 | 28 | $(LIB): $(OBJECTS) 29 | @rm -f $(LIB) 30 | ar cr $(LIB) $(OBJECTS) 31 | @ranlib $(LIB) 32 | 33 | clean: 34 | /bin/rm -f $(LIB) $(ALL) *.o 35 | -------------------------------------------------------------------------------- /benchmarks/mediabench/gsm/CMakeLists.txt: -------------------------------------------------------------------------------- 1 | 2 | set(GSM_BASE ${CMAKE_CURRENT_SOURCE_DIR}) 3 | 4 | add_subdirectory(src) 5 | 6 | add_test(NAME test_gsm_encode WORKING_DIRECTORY ${CMAKE_CURRENT_LIST_DIR}/ COMMAND dbt -f ${CMAKE_CURRENT_BINARY_DIR}/src/bin/toast -a "-fpl ./data/clinton.pcm") 7 | add_test(NAME test_gsm_decode WORKING_DIRECTORY ${CMAKE_CURRENT_LIST_DIR}/ COMMAND dbt -f ${CMAKE_CURRENT_BINARY_DIR}/src/bin/untoast -a "-fpl ./data/clinton.pcm.run.gsm") 8 | -------------------------------------------------------------------------------- /benchmarks/mediabench/gsm/COPYRIGHT: -------------------------------------------------------------------------------- 1 | Copyright 1992, 1993, 1994 by Jutta Degener and Carsten Bormann, 2 | Technische Universitaet Berlin 3 | 4 | Any use of this software is permitted provided that this notice is not 5 | removed and that neither the authors nor the Technische Universitaet Berlin 6 | are deemed to have made any representations as to the suitability of this 7 | software for any purpose nor are held responsible for any defects of 8 | this software. THERE IS ABSOLUTELY NO WARRANTY FOR THIS SOFTWARE. 9 | 10 | As a matter of courtesy, the authors request to be informed about uses 11 | this software has found, about bugs in this software, and about any 12 | improvements that may be of general interest. 13 | 14 | Berlin, 28.11.1994 15 | Jutta Degener 16 | Carsten Bormann 17 | -------------------------------------------------------------------------------- /benchmarks/mediabench/gsm/MACHINES: -------------------------------------------------------------------------------- 1 | The gsm library has been tested successfully on the following platforms: 2 | 3 | - Various Sun4's running SunOS 4.1.2 4 | - SPARC1 (SunOS 4.1.1) 5 | - Integrated Solutions 68k Optimum running 4.3BSD UNIX with a Green Hills cc 6 | - NeXTstation running NeXT-OS/Mach 3.0 7 | - No-name AT/386 with Xenix 2.3.2 (using -DSTUPID_COMPILER) 8 | - RS/6000-350 running AIX 3.2.0 9 | - RS/6000-320 running AIX 3.1.5 10 | - Alliant FX80 (Concentrix 5.7) 11 | - SGI Indigo XS4000 (IRIX 4.0.5F) 12 | -------------------------------------------------------------------------------- /benchmarks/mediabench/gsm/MANIFEST: -------------------------------------------------------------------------------- 1 | gsm-1.0/COPYRIGHT 2 | gsm-1.0/ChangeLog 3 | gsm-1.0/INSTALL 4 | gsm-1.0/MACHINES 5 | gsm-1.0/MANIFEST 6 | gsm-1.0/Makefile 7 | gsm-1.0/README 8 | gsm-1.0/add-test/add_test.c 9 | gsm-1.0/add-test/add_test.dta 10 | gsm-1.0/inc/gsm.h 11 | gsm-1.0/inc/proto.h 12 | gsm-1.0/inc/unproto.h 13 | gsm-1.0/inc/config.h 14 | gsm-1.0/inc/private.h 15 | gsm-1.0/inc/toast.h 16 | gsm-1.0/man/bitter.1 17 | gsm-1.0/man/gsm.3 18 | gsm-1.0/man/gsm_explode.3 19 | gsm-1.0/man/gsm_print.3 20 | gsm-1.0/man/gsm_option.3 21 | gsm-1.0/man/toast.1 22 | gsm-1.0/src/add.c 23 | gsm-1.0/src/code.c 24 | gsm-1.0/src/debug.c 25 | gsm-1.0/src/decode.c 26 | gsm-1.0/src/gsm_destroy.c 27 | gsm-1.0/src/gsm_decode.c 28 | gsm-1.0/src/gsm_encode.c 29 | gsm-1.0/src/gsm_explode.c 30 | gsm-1.0/src/gsm_implode.c 31 | gsm-1.0/src/gsm_create.c 32 | gsm-1.0/src/gsm_print.c 33 | gsm-1.0/src/gsm_option.c 34 | gsm-1.0/src/long_term.c 35 | gsm-1.0/src/lpc.c 36 | gsm-1.0/src/preprocess.c 37 | gsm-1.0/src/rpe.c 38 | gsm-1.0/src/short_term.c 39 | gsm-1.0/src/table.c 40 | gsm-1.0/src/toast.c 41 | gsm-1.0/src/toast_alaw.c 42 | gsm-1.0/src/toast_audio.c 43 | gsm-1.0/src/toast_lin.c 44 | gsm-1.0/src/toast_ulaw.c 45 | gsm-1.0/tls/bitter.c 46 | gsm-1.0/tls/bitter.dta 47 | gsm-1.0/tls/taste.c 48 | gsm-1.0/tls/taste.h 49 | gsm-1.0/tls/sweet.c 50 | gsm-1.0/tst/cod2lin.c 51 | gsm-1.0/tst/cod2txt.c 52 | gsm-1.0/tst/gsm2cod.c 53 | gsm-1.0/tst/lin2cod.c 54 | gsm-1.0/tst/lin2txt.c 55 | gsm-1.0/tst/run 56 | -------------------------------------------------------------------------------- /benchmarks/mediabench/gsm/README.BEN: -------------------------------------------------------------------------------- 1 | Fixed syscall problem by hacking ./inc/config.h. Seems to work 2 | now despite sigvec warning. Run sdecode/sencode as usual in 3 | ./exec. 4 | Make sure that you clean out the data files in ./data 5 | -------------------------------------------------------------------------------- /benchmarks/mediabench/gsm/data/clinton.pcm: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/srokicki/HybridDBT/ddfbe8b2a9a98fe9a8f4bab876614c7af5c002e1/benchmarks/mediabench/gsm/data/clinton.pcm -------------------------------------------------------------------------------- /benchmarks/mediabench/gsm/data/clinton.pcm.gsm: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/srokicki/HybridDBT/ddfbe8b2a9a98fe9a8f4bab876614c7af5c002e1/benchmarks/mediabench/gsm/data/clinton.pcm.gsm -------------------------------------------------------------------------------- /benchmarks/mediabench/gsm/data/clinton.pcm.run: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/srokicki/HybridDBT/ddfbe8b2a9a98fe9a8f4bab876614c7af5c002e1/benchmarks/mediabench/gsm/data/clinton.pcm.run -------------------------------------------------------------------------------- /benchmarks/mediabench/gsm/data/clinton.pcm.run.gsm: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/srokicki/HybridDBT/ddfbe8b2a9a98fe9a8f4bab876614c7af5c002e1/benchmarks/mediabench/gsm/data/clinton.pcm.run.gsm -------------------------------------------------------------------------------- /benchmarks/mediabench/gsm/exec/sdecode.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh -f 2 | BENCH_BIN=../../build/gsm/src/bin/untoast 3 | BENCH_OPT="-fpl" 4 | BENCH_INP=../data/clinton.pcm.run.gsm 5 | BENCH_OUT=../data/clinton.pcm.run 6 | BENCH_ARG="${BENCH_OPT} ${BENCH_INP}" 7 | # 8 | 9 | echo simRISCV -f ${BENCH_BIN} -a "${BENCH_ARG}" 10 | dbt -f ${BENCH_BIN} -a "${BENCH_ARG}" 11 | 12 | 13 | -------------------------------------------------------------------------------- /benchmarks/mediabench/gsm/exec/sencode.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh -f 2 | BENCH_BIN=../../build/gsm/src/bin/mb_toast 3 | BENCH_OPT="-fpl" 4 | BENCH_INP=../data/clinton.pcm 5 | BENCH_OUT= 6 | BENCH_ARG="${BENCH_OPT} ${BENCH_INP}" 7 | # 8 | 9 | echo simRISCV -f ${BENCH_BIN} -a "${BENCH_ARG}" 10 | dbt -f ${BENCH_BIN} -a "${BENCH_ARG}" 11 | 12 | -------------------------------------------------------------------------------- /benchmarks/mediabench/gsm/inc/config.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright 1992 by Jutta Degener and Carsten Bormann, Technische 3 | * Universitaet Berlin. See the accompanying file "COPYRIGHT" for 4 | * details. THERE IS ABSOLUTELY NO WARRANTY FOR THIS SOFTWARE. 5 | */ 6 | 7 | /*$Header: /home/kbs/jutta/src/gsm/gsm-1.0/inc/RCS/config.h,v 1.3 1994/05/10 20:18:22 jutta Exp $*/ 8 | 9 | #ifndef CONFIG_H 10 | #define CONFIG_H 11 | 12 | /*efine SIGHANDLER_T int /* signal handlers are void */ 13 | /*efine HAS_SYSV_SIGNAL 1 /* sigs not blocked/reset? */ 14 | 15 | #define HAS_STDLIB_H 1 /* /usr/include/stdlib.h */ 16 | /*efine HAS_LIMITS_H 1 /* /usr/include/limits.h */ 17 | #define HAS_FCNTL_H 1 /* /usr/include/fcntl.h */ 18 | /*efine HAS_ERRNO_DECL 1 /* errno.h declares errno */ 19 | 20 | /*#define HAS_FSTAT 1 /* fstat syscall */ 21 | /*#define HAS_FCHMOD 1 /* fchmod syscall */ 22 | /*#define HAS_FCHOWN 1 /* fchown syscall */ 23 | 24 | #define HAS_STRING_H 1 /* /usr/include/string.h */ 25 | /*efine HAS_STRINGS_H 1 /* /usr/include/strings.h */ 26 | 27 | #define HAS_UNISTD_H 1 /* /usr/include/unistd.h */ 28 | #define HAS_UTIME 1 /* POSIX utime(path, times) */ 29 | /*efine HAS_UTIMES 1 /* use utimes() syscall instead */ 30 | #define HAS_UTIME_H 1 /* UTIME header file */ 31 | /*efine HAS_UTIMBUF 1 /* struct utimbuf */ 32 | /*efine HAS_UTIMEUSEC 1 /* microseconds in utimbuf? */ 33 | 34 | #endif /* CONFIG_H */ 35 | -------------------------------------------------------------------------------- /benchmarks/mediabench/gsm/inc/unproto.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright 1992 by Jutta Degener and Carsten Bormann, Technische 3 | * Universitaet Berlin. See the accompanying file "COPYRIGHT" for 4 | * details. THERE IS ABSOLUTELY NO WARRANTY FOR THIS SOFTWARE. 5 | */ 6 | 7 | /*$Header: /home/kbs/jutta/src/gsm/gsm-1.0/inc/RCS/unproto.h,v 1.1 1992/10/28 00:11:08 jutta Exp $*/ 8 | 9 | #ifdef PROTO_H /* sic */ 10 | #undef PROTO_H 11 | 12 | #undef P 13 | #undef P0 14 | #undef P1 15 | #undef P2 16 | #undef P3 17 | #undef P4 18 | #undef P5 19 | #undef P6 20 | #undef P7 21 | #undef P8 22 | 23 | #endif /* PROTO_H */ 24 | -------------------------------------------------------------------------------- /benchmarks/mediabench/gsm/spix/run_shade: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | 3 | cp /u/gs3/leec/www/mediabench/datafiles/clinton.pcm . 4 | echo "copied a speech file (clinton.pcm)" 5 | 6 | /u/gs3/leec/leec/Projects/MediaBench/SPIX/SHADE/src/alu -o toast.summary -- ../bin/toast -fpl clinton.pcm > toast.shade 7 | 8 | cp /u/gs3/leec/www/mediabench/datafiles/clinton.pcm.gsm . 9 | echo "copied an encoded speech file (clinton.pcm.gsm)" 10 | 11 | /u/gs3/leec/leec/Projects/MediaBench/SPIX/SHADE/src/alu -o untoast.summary -- ../bin/untoast -fpl clinton.pcm.gsm > untoast.shade 12 | -------------------------------------------------------------------------------- /benchmarks/mediabench/gsm/src/CMakeLists.txt: -------------------------------------------------------------------------------- 1 | 2 | include_directories(${GSM_BASE}/inc) 3 | 4 | add_definitions(-DNeedFunctionPrototypes=1 -DSASR) 5 | 6 | add_library(mb_gsm STATIC add.c code.c debug.c decode.c long_term.c lpc.c 7 | preprocess.c rpe.c gsm_destroy.c gsm_decode.c gsm_encode.c gsm_explode.c gsm_implode.c 8 | gsm_create.c gsm_print.c gsm_option.c short_term.c table.c) 9 | 10 | 11 | add_executable(toast toast.c toast_lin.c toast_ulaw.c toast_alaw.c toast_audio.c) 12 | add_executable(untoast toast.c toast_lin.c toast_ulaw.c toast_alaw.c toast_audio.c) 13 | 14 | target_link_libraries(toast mb_gsm) 15 | target_link_libraries(untoast mb_gsm) 16 | 17 | set_target_properties(toast PROPERTIES COMPILE_DEFINITIONS PROGRAM_NAME="toast") 18 | set_target_properties(untoast PROPERTIES COMPILE_DEFINITIONS PROGRAM_NAME="untoast") 19 | 20 | -------------------------------------------------------------------------------- /benchmarks/mediabench/gsm/src/gsm_create.c: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright 1992 by Jutta Degener and Carsten Bormann, Technische 3 | * Universitaet Berlin. See the accompanying file "COPYRIGHT" for 4 | * details. THERE IS ABSOLUTELY NO WARRANTY FOR THIS SOFTWARE. 5 | */ 6 | 7 | static char ident[] = "$Header: /home/kbs/jutta/src/gsm/gsm-1.0/src/RCS/gsm_create.c,v 1.2 1994/05/10 20:18:39 jutta Exp $"; 8 | 9 | #include "config.h" 10 | 11 | #ifdef HAS_STRING_H 12 | #include 13 | #else 14 | # include "proto.h" 15 | extern char * memset P((char *, int, int)); 16 | #endif 17 | 18 | #ifdef HAS_STDLIB_H 19 | # include 20 | #else 21 | # ifdef HAS_MALLOC_H 22 | # include 23 | # else 24 | extern char * malloc(); 25 | # endif 26 | #endif 27 | 28 | #include 29 | 30 | #include "gsm.h" 31 | #include "private.h" 32 | #include "proto.h" 33 | 34 | gsm gsm_create P0() 35 | { 36 | gsm r; 37 | 38 | #ifdef USE_TABLE_MUL 39 | 40 | static int mul_init = 0; 41 | if (!mul_init) { 42 | mul_init = 1; 43 | init_umul_table(); 44 | } 45 | 46 | #endif 47 | 48 | r = (gsm)malloc(sizeof(struct gsm_state)); 49 | if (!r) return r; 50 | 51 | memset((char *)r, 0, sizeof(*r)); 52 | r->nrp = 40; 53 | 54 | return r; 55 | } 56 | -------------------------------------------------------------------------------- /benchmarks/mediabench/gsm/src/gsm_destroy.c: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright 1992 by Jutta Degener and Carsten Bormann, Technische 3 | * Universitaet Berlin. See the accompanying file "COPYRIGHT" for 4 | * details. THERE IS ABSOLUTELY NO WARRANTY FOR THIS SOFTWARE. 5 | */ 6 | 7 | /* $Header: /home/kbs/jutta/src/gsm/gsm-1.0/src/RCS/gsm_destroy.c,v 1.3 1994/11/28 19:52:25 jutta Exp $ */ 8 | 9 | #include "gsm.h" 10 | #include "config.h" 11 | #include "proto.h" 12 | 13 | #ifdef HAS_STDLIB_H 14 | # include 15 | #else 16 | # ifdef HAS_MALLOC_H 17 | # include 18 | # else 19 | extern void free(); 20 | # endif 21 | #endif 22 | 23 | void gsm_destroy P1((S), gsm S) 24 | { 25 | if (S) free((char *)S); 26 | } 27 | -------------------------------------------------------------------------------- /benchmarks/mediabench/gsm/src/gsm_option.c: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright 1992 by Jutta Degener and Carsten Bormann, Technische 3 | * Universitaet Berlin. See the accompanying file "COPYRIGHT" for 4 | * details. THERE IS ABSOLUTELY NO WARRANTY FOR THIS SOFTWARE. 5 | */ 6 | 7 | /* $Header: /home/kbs/jutta/src/gsm/gsm-1.0/src/RCS/gsm_option.c,v 1.1 1992/10/28 00:15:50 jutta Exp $ */ 8 | 9 | #include "private.h" 10 | 11 | #include "gsm.h" 12 | #include "proto.h" 13 | 14 | int gsm_option P3((r, opt, val), gsm r, int opt, int * val) 15 | { 16 | int result = -1; 17 | 18 | switch (opt) { 19 | case GSM_OPT_VERBOSE: 20 | #ifndef NDEBUG 21 | result = r->verbose; 22 | if (val) r->verbose = *val; 23 | #endif 24 | break; 25 | 26 | case GSM_OPT_FAST: 27 | 28 | #if defined(FAST) && defined(USE_FLOAT_MUL) 29 | result = r->fast; 30 | if (val) r->fast = !!*val; 31 | #endif 32 | break; 33 | 34 | default: 35 | break; 36 | } 37 | return result; 38 | } 39 | -------------------------------------------------------------------------------- /benchmarks/mediabench/gsm/src/toast_lin.c: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright 1992 by Jutta Degener and Carsten Bormann, Technische 3 | * Universitaet Berlin. See the accompanying file "COPYRIGHT" for 4 | * details. THERE IS ABSOLUTELY NO WARRANTY FOR THIS SOFTWARE. 5 | */ 6 | 7 | /* $Header: /home/kbs/jutta/src/gsm/gsm-1.0/src/RCS/toast_lin.c,v 1.1 1992/10/28 00:15:50 jutta Exp $ */ 8 | 9 | #include "toast.h" 10 | 11 | /* toast_linear.c -- read and write 16 bit linear sound in host byte order. 12 | */ 13 | 14 | extern FILE *in, *out; 15 | 16 | int linear_input (buf) gsm_signal * buf; 17 | { 18 | return fread( (char *)buf, sizeof(*buf), 160, in ); 19 | } 20 | 21 | int linear_output P1((buf), gsm_signal * buf) 22 | { 23 | return -( fwrite( (char *)buf, sizeof(*buf), 160, out ) != 160 ); 24 | } 25 | -------------------------------------------------------------------------------- /benchmarks/mediabench/gsm/tls/taste.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright 1992 by Jutta Degener and Carsten Bormann, Technische 3 | * Universitaet Berlin. See the accompanying file "COPYRIGHT" for 4 | * details. THERE IS ABSOLUTELY NO WARRANTY FOR THIS SOFTWARE. 5 | */ 6 | 7 | /* 8 | * common code to sweet.c and bitter.c 9 | */ 10 | 11 | #ifndef TASTE_H 12 | #define TASTE_H 13 | 14 | struct spex { 15 | 16 | char * var; 17 | int varsize; 18 | } ; 19 | 20 | #endif /* TASTE_H */ 21 | -------------------------------------------------------------------------------- /benchmarks/mediabench/gsm/tst/run: -------------------------------------------------------------------------------- 1 | : 2 | # 3 | # Copyright 1992 by Jutta Degener and Carsten Bormann, Technische 4 | # Universitaet Berlin. See the accompanying file "COPYRIGHT" for 5 | # details. THERE IS ABSOLUTELY NO WARRANTY FOR THIS SOFTWARE. 6 | # 7 | if [ ! -f 1.inp ] ; then 8 | echo Sorry, but we cannot provide the test data with this release. 9 | exit 10 | fi 11 | 12 | echo -n 'Linear to code: ' 13 | for i in 1 2 3 4 14 | do 15 | echo -n $i.. 16 | ./lin2cod < $i.inp | cmp - $i.cod 17 | done 18 | echo "" 19 | 20 | echo -n 'Code to linear: ' 21 | for i in 1 2 3 4 22 | do 23 | echo -n $i.. 24 | ./cod2lin < $i.cod | cmp - $i.out 25 | done 26 | echo "" 27 | 28 | echo -n 'Toast: ' 29 | for i in 1 2 3 4 30 | do 31 | echo -n $i.. 32 | ../bin/toast -l < $i.inp | ../bin/toast -dl | cmp - $i.out 33 | done 34 | echo "" 35 | -------------------------------------------------------------------------------- /benchmarks/mediabench/jpeg/CMakeLists.txt: -------------------------------------------------------------------------------- 1 | add_subdirectory(jpeg-6a) 2 | 3 | add_test(NAME test_jpeg_encode WORKING_DIRECTORY ${CMAKE_CURRENT_LIST_DIR}/ COMMAND dbt -f ${CMAKE_CURRENT_BINARY_DIR}/jpeg-6a/bin/cjpeg -a "-dct int -progressive -opt -outfile ./data/testout.jpeg ./data/testimg.ppm") 4 | add_test(NAME test_jpeg_decode WORKING_DIRECTORY ${CMAKE_CURRENT_LIST_DIR}/ COMMAND dbt -f ${CMAKE_CURRENT_BINARY_DIR}/jpeg-6a/bin/djpeg -a "-dct int -ppm -outfile ./data/testout.ppm ./data/testimg.jpg") 5 | -------------------------------------------------------------------------------- /benchmarks/mediabench/jpeg/README.BEN: -------------------------------------------------------------------------------- 1 | Got jpeg working. 2 | The MEMCOPY macros were the problem 3 | will check that the simplescalar implementation of 4 | memcopy and bcopy are consistant with solaris 5 | 6 | run jpeg??code in ./exec 7 | it dumps testout.??? in ./data 8 | -------------------------------------------------------------------------------- /benchmarks/mediabench/jpeg/data/Lena128.bmp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/srokicki/HybridDBT/ddfbe8b2a9a98fe9a8f4bab876614c7af5c002e1/benchmarks/mediabench/jpeg/data/Lena128.bmp -------------------------------------------------------------------------------- /benchmarks/mediabench/jpeg/data/testimg.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/srokicki/HybridDBT/ddfbe8b2a9a98fe9a8f4bab876614c7af5c002e1/benchmarks/mediabench/jpeg/data/testimg.jpg -------------------------------------------------------------------------------- /benchmarks/mediabench/jpeg/data/testimg.ppm: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/srokicki/HybridDBT/ddfbe8b2a9a98fe9a8f4bab876614c7af5c002e1/benchmarks/mediabench/jpeg/data/testimg.ppm -------------------------------------------------------------------------------- /benchmarks/mediabench/jpeg/data/testout.jpeg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/srokicki/HybridDBT/ddfbe8b2a9a98fe9a8f4bab876614c7af5c002e1/benchmarks/mediabench/jpeg/data/testout.jpeg -------------------------------------------------------------------------------- /benchmarks/mediabench/jpeg/data/testout.ppm: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/srokicki/HybridDBT/ddfbe8b2a9a98fe9a8f4bab876614c7af5c002e1/benchmarks/mediabench/jpeg/data/testout.ppm -------------------------------------------------------------------------------- /benchmarks/mediabench/jpeg/exec/sdecode.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh -f 2 | NAME=djpeg 3 | BENCH_BIN=../../build/jpeg/jpeg-6a/bin/djpeg 4 | BENCH_OPT="-dct int -ppm" 5 | BENCH_INP=../data/testimg.jpg 6 | BENCH_OUT="-outfile ../data/testout.ppm" 7 | BENCH_ARG="${BENCH_OPT} ${BENCH_OUT} ${BENCH_INP}" 8 | # 9 | echo simRISCV -f ${BENCH_BIN} -a "${BENCH_ARG}" 10 | dbt -f ../../build/jpeg/jpeg-6a/bin/djpeg -a "-dct int -ppm -outfile ../data/testout.ppm ../data/testimg.jpg" 11 | 12 | -------------------------------------------------------------------------------- /benchmarks/mediabench/jpeg/exec/sencode.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh -f 2 | BENCH_BIN=../../build/jpeg/jpeg-6a/bin/cjpeg 3 | BENCH_OPT="-dct int -progressive -opt" 4 | BENCH_INP=../data/testimg.ppm 5 | BENCH_OUT="-outfile ../data/testout.jpeg" 6 | BENCH_ARG="${BENCH_OPT} ${BENCH_OUT} ${BENCH_INP}" 7 | # 8 | echo simRISCV -f ${BENCH_BIN} -a "${BENCH_ARG}" 9 | dbt -f ${BENCH_BIN} -a "${BENCH_ARG}" 10 | -------------------------------------------------------------------------------- /benchmarks/mediabench/jpeg/jpeg-6a/jchuff.h: -------------------------------------------------------------------------------- 1 | /* 2 | * jchuff.h 3 | * 4 | * Copyright (C) 1991-1996, Thomas G. Lane. 5 | * This file is part of the Independent JPEG Group's software. 6 | * For conditions of distribution and use, see the accompanying README file. 7 | * 8 | * This file contains declarations for Huffman entropy encoding routines 9 | * that are shared between the sequential encoder (jchuff.c) and the 10 | * progressive encoder (jcphuff.c). No other modules need to see these. 11 | */ 12 | 13 | /* Derived data constructed for each Huffman table */ 14 | 15 | typedef struct { 16 | unsigned int ehufco[256]; /* code for each symbol */ 17 | char ehufsi[256]; /* length of code for each symbol */ 18 | /* If no code has been allocated for a symbol S, ehufsi[S] contains 0 */ 19 | } c_derived_tbl; 20 | 21 | /* Short forms of external names for systems with brain-damaged linkers. */ 22 | 23 | #ifdef NEED_SHORT_EXTERNAL_NAMES 24 | #define jpeg_make_c_derived_tbl jMkCDerived 25 | #define jpeg_gen_optimal_table jGenOptTbl 26 | #endif /* NEED_SHORT_EXTERNAL_NAMES */ 27 | 28 | /* Expand a Huffman table definition into the derived format */ 29 | EXTERN(void) jpeg_make_c_derived_tbl 30 | JPP((j_compress_ptr cinfo, JHUFF_TBL * htbl, c_derived_tbl ** pdtbl)); 31 | 32 | /* Generate an optimal table definition given the specified counts */ 33 | EXTERN(void) jpeg_gen_optimal_table 34 | JPP((j_compress_ptr cinfo, JHUFF_TBL * htbl, long freq[])); 35 | -------------------------------------------------------------------------------- /benchmarks/mediabench/jpeg/jpeg-6a/jconfig.cfg: -------------------------------------------------------------------------------- 1 | /* jconfig.cfg --- source file edited by configure script */ 2 | /* see jconfig.doc for explanations */ 3 | 4 | #undef HAVE_PROTOTYPES 5 | #undef HAVE_UNSIGNED_CHAR 6 | #undef HAVE_UNSIGNED_SHORT 7 | #undef void 8 | #undef const 9 | #undef CHAR_IS_UNSIGNED 10 | #undef HAVE_STDDEF_H 11 | #undef HAVE_STDLIB_H 12 | #undef NEED_BSD_STRINGS 13 | #undef NEED_SYS_TYPES_H 14 | #undef NEED_FAR_POINTERS 15 | #undef NEED_SHORT_EXTERNAL_NAMES 16 | /* Define this if you get warnings about undefined structures. */ 17 | #undef INCOMPLETE_TYPES_BROKEN 18 | 19 | #ifdef JPEG_INTERNALS 20 | 21 | #undef RIGHT_SHIFT_IS_UNSIGNED 22 | #undef INLINE 23 | /* These are for configuring the JPEG memory manager. */ 24 | #undef DEFAULT_MAX_MEM 25 | #undef NO_MKTEMP 26 | 27 | #endif /* JPEG_INTERNALS */ 28 | 29 | #ifdef JPEG_CJPEG_DJPEG 30 | 31 | #define BMP_SUPPORTED /* BMP image file format */ 32 | #define GIF_SUPPORTED /* GIF image file format */ 33 | #define PPM_SUPPORTED /* PBMPLUS PPM/PGM image file format */ 34 | #undef RLE_SUPPORTED /* Utah RLE image file format */ 35 | #define TARGA_SUPPORTED /* Targa image file format */ 36 | 37 | #undef TWO_FILE_COMMANDLINE 38 | #undef NEED_SIGNAL_CATCHER 39 | #undef DONT_USE_B_MODE 40 | 41 | /* Define this if you want percent-done progress reports from cjpeg/djpeg. */ 42 | #undef PROGRESS_REPORT 43 | 44 | #endif /* JPEG_CJPEG_DJPEG */ 45 | -------------------------------------------------------------------------------- /benchmarks/mediabench/jpeg/jpeg-6a/jconfig.dj: -------------------------------------------------------------------------------- 1 | /* jconfig.dj --- jconfig.h for DJGPP (Delorie's GNU C port) on MS-DOS. */ 2 | /* see jconfig.doc for explanations */ 3 | 4 | #define HAVE_PROTOTYPES 5 | #define HAVE_UNSIGNED_CHAR 6 | #define HAVE_UNSIGNED_SHORT 7 | /* #define void char */ 8 | /* #define const */ 9 | #undef CHAR_IS_UNSIGNED 10 | #define HAVE_STDDEF_H 11 | #define HAVE_STDLIB_H 12 | #undef NEED_BSD_STRINGS 13 | #undef NEED_SYS_TYPES_H 14 | #undef NEED_FAR_POINTERS /* DJGPP uses flat 32-bit addressing */ 15 | #undef NEED_SHORT_EXTERNAL_NAMES 16 | #undef INCOMPLETE_TYPES_BROKEN 17 | 18 | #ifdef JPEG_INTERNALS 19 | 20 | #undef RIGHT_SHIFT_IS_UNSIGNED 21 | 22 | #endif /* JPEG_INTERNALS */ 23 | 24 | #ifdef JPEG_CJPEG_DJPEG 25 | 26 | #define BMP_SUPPORTED /* BMP image file format */ 27 | #define GIF_SUPPORTED /* GIF image file format */ 28 | #define PPM_SUPPORTED /* PBMPLUS PPM/PGM image file format */ 29 | #undef RLE_SUPPORTED /* Utah RLE image file format */ 30 | #define TARGA_SUPPORTED /* Targa image file format */ 31 | 32 | #undef TWO_FILE_COMMANDLINE /* optional */ 33 | #define USE_SETMODE /* Needed to make one-file style work in DJGPP */ 34 | #undef NEED_SIGNAL_CATCHER /* Define this if you use jmemname.c */ 35 | #undef DONT_USE_B_MODE 36 | #undef PROGRESS_REPORT /* optional */ 37 | 38 | #endif /* JPEG_CJPEG_DJPEG */ 39 | -------------------------------------------------------------------------------- /benchmarks/mediabench/jpeg/jpeg-6a/jconfig.manx: -------------------------------------------------------------------------------- 1 | /* jconfig.manx --- jconfig.h for Amiga systems using Manx Aztec C ver 5.x. */ 2 | /* see jconfig.doc for explanations */ 3 | 4 | #define HAVE_PROTOTYPES 5 | #define HAVE_UNSIGNED_CHAR 6 | #define HAVE_UNSIGNED_SHORT 7 | /* #define void char */ 8 | /* #define const */ 9 | #undef CHAR_IS_UNSIGNED 10 | #define HAVE_STDDEF_H 11 | #define HAVE_STDLIB_H 12 | #undef NEED_BSD_STRINGS 13 | #undef NEED_SYS_TYPES_H 14 | #undef NEED_FAR_POINTERS 15 | #undef NEED_SHORT_EXTERNAL_NAMES 16 | #undef INCOMPLETE_TYPES_BROKEN 17 | 18 | #ifdef JPEG_INTERNALS 19 | 20 | #undef RIGHT_SHIFT_IS_UNSIGNED 21 | 22 | #define TEMP_DIRECTORY "JPEGTMP:" /* recommended setting for Amiga */ 23 | 24 | #define SHORTxSHORT_32 /* produces better DCT code with Aztec C */ 25 | 26 | #endif /* JPEG_INTERNALS */ 27 | 28 | #ifdef JPEG_CJPEG_DJPEG 29 | 30 | #define BMP_SUPPORTED /* BMP image file format */ 31 | #define GIF_SUPPORTED /* GIF image file format */ 32 | #define PPM_SUPPORTED /* PBMPLUS PPM/PGM image file format */ 33 | #undef RLE_SUPPORTED /* Utah RLE image file format */ 34 | #define TARGA_SUPPORTED /* Targa image file format */ 35 | 36 | #define TWO_FILE_COMMANDLINE 37 | #define NEED_SIGNAL_CATCHER 38 | #undef DONT_USE_B_MODE 39 | #undef PROGRESS_REPORT /* optional */ 40 | 41 | #define signal_catcher _abort /* hack for Aztec C naming requirements */ 42 | 43 | #endif /* JPEG_CJPEG_DJPEG */ 44 | -------------------------------------------------------------------------------- /benchmarks/mediabench/jpeg/jpeg-6a/jconfig.sas: -------------------------------------------------------------------------------- 1 | /* jconfig.sas --- jconfig.h for Amiga systems using SAS C 6.0 and up. */ 2 | /* see jconfig.doc for explanations */ 3 | 4 | #define HAVE_PROTOTYPES 5 | #define HAVE_UNSIGNED_CHAR 6 | #define HAVE_UNSIGNED_SHORT 7 | /* #define void char */ 8 | /* #define const */ 9 | #undef CHAR_IS_UNSIGNED 10 | #define HAVE_STDDEF_H 11 | #define HAVE_STDLIB_H 12 | #undef NEED_BSD_STRINGS 13 | #undef NEED_SYS_TYPES_H 14 | #undef NEED_FAR_POINTERS 15 | #undef NEED_SHORT_EXTERNAL_NAMES 16 | #undef INCOMPLETE_TYPES_BROKEN 17 | 18 | #ifdef JPEG_INTERNALS 19 | 20 | #undef RIGHT_SHIFT_IS_UNSIGNED 21 | 22 | #define TEMP_DIRECTORY "JPEGTMP:" /* recommended setting for Amiga */ 23 | 24 | #define NO_MKTEMP /* SAS C doesn't have mktemp() */ 25 | 26 | #define SHORTxSHORT_32 /* produces better DCT code with SAS C */ 27 | 28 | #endif /* JPEG_INTERNALS */ 29 | 30 | #ifdef JPEG_CJPEG_DJPEG 31 | 32 | #define BMP_SUPPORTED /* BMP image file format */ 33 | #define GIF_SUPPORTED /* GIF image file format */ 34 | #define PPM_SUPPORTED /* PBMPLUS PPM/PGM image file format */ 35 | #undef RLE_SUPPORTED /* Utah RLE image file format */ 36 | #define TARGA_SUPPORTED /* Targa image file format */ 37 | 38 | #define TWO_FILE_COMMANDLINE 39 | #define NEED_SIGNAL_CATCHER 40 | #undef DONT_USE_B_MODE 41 | #undef PROGRESS_REPORT /* optional */ 42 | 43 | #endif /* JPEG_CJPEG_DJPEG */ 44 | -------------------------------------------------------------------------------- /benchmarks/mediabench/jpeg/jpeg-6a/jconfig.vms: -------------------------------------------------------------------------------- 1 | /* jconfig.vms --- jconfig.h for use on Digital VMS. */ 2 | /* see jconfig.doc for explanations */ 3 | 4 | #define HAVE_PROTOTYPES 5 | #define HAVE_UNSIGNED_CHAR 6 | #define HAVE_UNSIGNED_SHORT 7 | /* #define void char */ 8 | /* #define const */ 9 | #undef CHAR_IS_UNSIGNED 10 | #define HAVE_STDDEF_H 11 | #define HAVE_STDLIB_H 12 | #undef NEED_BSD_STRINGS 13 | #undef NEED_SYS_TYPES_H 14 | #undef NEED_FAR_POINTERS 15 | #undef NEED_SHORT_EXTERNAL_NAMES 16 | #undef INCOMPLETE_TYPES_BROKEN 17 | 18 | #ifdef JPEG_INTERNALS 19 | 20 | #undef RIGHT_SHIFT_IS_UNSIGNED 21 | 22 | #endif /* JPEG_INTERNALS */ 23 | 24 | #ifdef JPEG_CJPEG_DJPEG 25 | 26 | #define BMP_SUPPORTED /* BMP image file format */ 27 | #define GIF_SUPPORTED /* GIF image file format */ 28 | #define PPM_SUPPORTED /* PBMPLUS PPM/PGM image file format */ 29 | #undef RLE_SUPPORTED /* Utah RLE image file format */ 30 | #define TARGA_SUPPORTED /* Targa image file format */ 31 | 32 | #define TWO_FILE_COMMANDLINE /* Needed on VMS */ 33 | #undef NEED_SIGNAL_CATCHER 34 | #undef DONT_USE_B_MODE 35 | #undef PROGRESS_REPORT /* optional */ 36 | 37 | #endif /* JPEG_CJPEG_DJPEG */ 38 | -------------------------------------------------------------------------------- /benchmarks/mediabench/jpeg/jpeg-6a/jconfig.wat: -------------------------------------------------------------------------------- 1 | /* jconfig.wat --- jconfig.h for Watcom C/C++ on MS-DOS or OS/2. */ 2 | /* see jconfig.doc for explanations */ 3 | 4 | #define HAVE_PROTOTYPES 5 | #define HAVE_UNSIGNED_CHAR 6 | #define HAVE_UNSIGNED_SHORT 7 | /* #define void char */ 8 | /* #define const */ 9 | #define CHAR_IS_UNSIGNED 10 | #define HAVE_STDDEF_H 11 | #define HAVE_STDLIB_H 12 | #undef NEED_BSD_STRINGS 13 | #undef NEED_SYS_TYPES_H 14 | #undef NEED_FAR_POINTERS /* Watcom uses flat 32-bit addressing */ 15 | #undef NEED_SHORT_EXTERNAL_NAMES 16 | #undef INCOMPLETE_TYPES_BROKEN 17 | 18 | #ifdef JPEG_INTERNALS 19 | 20 | #undef RIGHT_SHIFT_IS_UNSIGNED 21 | 22 | #endif /* JPEG_INTERNALS */ 23 | 24 | #ifdef JPEG_CJPEG_DJPEG 25 | 26 | #define BMP_SUPPORTED /* BMP image file format */ 27 | #define GIF_SUPPORTED /* GIF image file format */ 28 | #define PPM_SUPPORTED /* PBMPLUS PPM/PGM image file format */ 29 | #undef RLE_SUPPORTED /* Utah RLE image file format */ 30 | #define TARGA_SUPPORTED /* Targa image file format */ 31 | 32 | #undef TWO_FILE_COMMANDLINE /* optional */ 33 | #define USE_SETMODE /* Needed to make one-file style work in Watcom */ 34 | #undef NEED_SIGNAL_CATCHER /* Define this if you use jmemname.c */ 35 | #undef DONT_USE_B_MODE 36 | #undef PROGRESS_REPORT /* optional */ 37 | 38 | #endif /* JPEG_CJPEG_DJPEG */ 39 | -------------------------------------------------------------------------------- /benchmarks/mediabench/jpeg/jpeg-6a/jversion.h: -------------------------------------------------------------------------------- 1 | /* 2 | * jversion.h 3 | * 4 | * Copyright (C) 1991-1996, Thomas G. Lane. 5 | * This file is part of the Independent JPEG Group's software. 6 | * For conditions of distribution and use, see the accompanying README file. 7 | * 8 | * This file contains software version identification. 9 | */ 10 | 11 | 12 | #define JVERSION "6a 7-Feb-96" 13 | 14 | #define JCOPYRIGHT "Copyright (C) 1996, Thomas G. Lane" 15 | -------------------------------------------------------------------------------- /benchmarks/mediabench/jpeg/jpeg-6a/maktjpeg.st: -------------------------------------------------------------------------------- 1 | ; Project file for Independent JPEG Group's software 2 | ; 3 | ; This project file is for Atari ST/STE/TT systems using Pure C or Turbo C. 4 | ; Thanks to Frank Moehle (Frank.Moehle@arbi.informatik.uni-oldenburg.de) 5 | ; and to Dr. B. Setzepfandt (bernd@gina.uni-muenster.de). 6 | ; 7 | ; To use this file, rename it to JPEGTRAN.PRJ. 8 | ; If you are using Turbo C, change filenames beginning with "PC..." to "TC..." 9 | ; Read installation instructions before trying to make the program! 10 | ; 11 | ; 12 | ; * * * Output file * * * 13 | jpegtran.ttp 14 | ; 15 | ; * * * COMPILER OPTIONS * * * 16 | .C[-P] ; absolute calls 17 | .C[-M] ; and no string merging, folks 18 | .C[-w-cln] ; no "constant is long" warnings 19 | .C[-w-par] ; no "parameter xxxx unused" 20 | .C[-w-rch] ; no "unreachable code" 21 | .C[-wsig] ; warn if significant digits may be lost 22 | = 23 | ; * * * * List of modules * * * * 24 | PCSTART.O 25 | jpegtran.c (cdjpeg.h,jinclude.h,jconfig.h,jpeglib.h,jmorecfg.h,jerror.h,cderror.h,jversion.h) 26 | cdjpeg.c (cdjpeg.h,jinclude.h,jconfig.h,jpeglib.h,jmorecfg.h,jerror.h,cderror.h) 27 | rdswitch.c (cdjpeg.h,jinclude.h,jconfig.h,jpeglib.h,jmorecfg.h,jerror.h,cderror.h) 28 | LIBJPEG.LIB ; built by LIBJPEG.PRJ 29 | PCSTDLIB.LIB ; standard library 30 | PCEXTLIB.LIB ; extended library 31 | -------------------------------------------------------------------------------- /benchmarks/mediabench/jpeg/jpeg-6a/makvms.opt: -------------------------------------------------------------------------------- 1 | ! A pointer to the VAX/VMS C Run-Time Shareable Library. 2 | ! This file is needed by makefile.mms and makefile.vms, 3 | ! but only for the older VAX C compiler. DEC C does not need it. 4 | Sys$Library:VAXCRTL.EXE /Share 5 | -------------------------------------------------------------------------------- /benchmarks/mediabench/jpeg/jpeg-6a/testimg.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/srokicki/HybridDBT/ddfbe8b2a9a98fe9a8f4bab876614c7af5c002e1/benchmarks/mediabench/jpeg/jpeg-6a/testimg.gif -------------------------------------------------------------------------------- /benchmarks/mediabench/jpeg/jpeg-6a/testimg.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/srokicki/HybridDBT/ddfbe8b2a9a98fe9a8f4bab876614c7af5c002e1/benchmarks/mediabench/jpeg/jpeg-6a/testimg.jpg -------------------------------------------------------------------------------- /benchmarks/mediabench/jpeg/jpeg-6a/testimg.ppm: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/srokicki/HybridDBT/ddfbe8b2a9a98fe9a8f4bab876614c7af5c002e1/benchmarks/mediabench/jpeg/jpeg-6a/testimg.ppm -------------------------------------------------------------------------------- /benchmarks/mediabench/jpeg/jpeg-6a/testimgp.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/srokicki/HybridDBT/ddfbe8b2a9a98fe9a8f4bab876614c7af5c002e1/benchmarks/mediabench/jpeg/jpeg-6a/testimgp.jpg -------------------------------------------------------------------------------- /benchmarks/mediabench/jpeg/jpeg-6a/testorig.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/srokicki/HybridDBT/ddfbe8b2a9a98fe9a8f4bab876614c7af5c002e1/benchmarks/mediabench/jpeg/jpeg-6a/testorig.jpg -------------------------------------------------------------------------------- /benchmarks/mediabench/jpeg/jpeg-6a/testprog.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/srokicki/HybridDBT/ddfbe8b2a9a98fe9a8f4bab876614c7af5c002e1/benchmarks/mediabench/jpeg/jpeg-6a/testprog.jpg -------------------------------------------------------------------------------- /benchmarks/mediabench/mesa/CMakeLists.txt: -------------------------------------------------------------------------------- 1 | include_directories(${CMAKE_CURRENT_SOURCE_DIR}/include) 2 | 3 | add_subdirectory(src) 4 | add_subdirectory(src-aux) 5 | add_subdirectory(src-glu) 6 | add_subdirectory(demos) 7 | 8 | 9 | add_test(NAME test_mesa_mipmap WORKING_DIRECTORY ${CMAKE_CURRENT_LIST_DIR}/ COMMAND dbt -f ${CMAKE_CURRENT_BINARY_DIR}/demos/bin/mipmap) 10 | add_test(NAME test_mesa_osdemo WORKING_DIRECTORY ${CMAKE_CURRENT_LIST_DIR}/ COMMAND dbt -f ${CMAKE_CURRENT_BINARY_DIR}/demos/bin/osdemo) 11 | add_test(NAME test_mesa_texgen WORKING_DIRECTORY ${CMAKE_CURRENT_LIST_DIR}/ COMMAND dbt -f ${CMAKE_CURRENT_BINARY_DIR}/demos/bin/texgen) 12 | -------------------------------------------------------------------------------- /benchmarks/mediabench/mesa/README.BEN: -------------------------------------------------------------------------------- 1 | Generates libraries but exec is empty. No additional docs. 2 | Should probably check with author about what to run. 3 | 4 | Go into the demos directory and build the three programs mipmap, osdemo, 5 | and texgen. That's the mesa benchmark. It should really have an exec 6 | file, though. 7 | 8 | To compile: make gcc in root dir. then make gcc in demos. 9 | 10 | To run: cd to exec. execute ./run. output is produced in out?.ppm 11 | -------------------------------------------------------------------------------- /benchmarks/mediabench/mesa/demos/CMakeLists.txt: -------------------------------------------------------------------------------- 1 | add_executable(osdemo osdemo.c) 2 | add_executable(mipmap mipmap.c) 3 | add_executable(texgen texgen.c) 4 | 5 | target_link_libraries(osdemo Mesaaux MesaGLU MesaGL m) 6 | target_link_libraries(mipmap Mesaaux MesaGLU MesaGL m) 7 | target_link_libraries(texgen Mesaaux MesaGLU MesaGL m) 8 | -------------------------------------------------------------------------------- /benchmarks/mediabench/mesa/exec/demo: -------------------------------------------------------------------------------- 1 | /export/ramoth4/bishop/oldsim/simplesim-2.0/sim-profile -iclass -iprof -brprof ../demos/osdemo >! out2 2 | -------------------------------------------------------------------------------- /benchmarks/mediabench/mesa/exec/out1: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/srokicki/HybridDBT/ddfbe8b2a9a98fe9a8f4bab876614c7af5c002e1/benchmarks/mediabench/mesa/exec/out1 -------------------------------------------------------------------------------- /benchmarks/mediabench/mesa/exec/out1.ppm: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/srokicki/HybridDBT/ddfbe8b2a9a98fe9a8f4bab876614c7af5c002e1/benchmarks/mediabench/mesa/exec/out1.ppm -------------------------------------------------------------------------------- /benchmarks/mediabench/mesa/exec/out2: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/srokicki/HybridDBT/ddfbe8b2a9a98fe9a8f4bab876614c7af5c002e1/benchmarks/mediabench/mesa/exec/out2 -------------------------------------------------------------------------------- /benchmarks/mediabench/mesa/exec/out2.ppm: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/srokicki/HybridDBT/ddfbe8b2a9a98fe9a8f4bab876614c7af5c002e1/benchmarks/mediabench/mesa/exec/out2.ppm -------------------------------------------------------------------------------- /benchmarks/mediabench/mesa/exec/out3: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/srokicki/HybridDBT/ddfbe8b2a9a98fe9a8f4bab876614c7af5c002e1/benchmarks/mediabench/mesa/exec/out3 -------------------------------------------------------------------------------- /benchmarks/mediabench/mesa/exec/out3.ppm: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/srokicki/HybridDBT/ddfbe8b2a9a98fe9a8f4bab876614c7af5c002e1/benchmarks/mediabench/mesa/exec/out3.ppm -------------------------------------------------------------------------------- /benchmarks/mediabench/mesa/exec/run: -------------------------------------------------------------------------------- 1 | /export/ramoth4/bishop/oldsim/simplesim-2.0/sim-profile -iclass -iprof -brprof ../demos/mipmap >! out1 2 | /export/ramoth4/bishop/oldsim/simplesim-2.0/sim-profile -iclass -iprof -brprof ../demos/osdemo >! out2 3 | /export/ramoth4/bishop/oldsim/simplesim-2.0/sim-profile -iclass -iprof -brprof ../demos/texgen >! out3 4 | -------------------------------------------------------------------------------- /benchmarks/mediabench/mesa/include/mondello/clgd5470.h: -------------------------------------------------------------------------------- 1 | /* 2 | file: clgd5470.h 3 | */ 4 | 5 | #ifndef CLGD5470_H 6 | #define CLGD5470_H 7 | 8 | #include "type.h" 9 | 10 | void clgd5470Init(); 11 | void clgd5470GetHostMemory(BYTE *mem); 12 | void clgd5470PutHostMemory(BYTE *mem); 13 | 14 | extern unsigned int *clgd5470LogicalBase; 15 | extern unsigned int *clgd5470LogicalBase2; /* second meg */ 16 | extern unsigned int *listPtr; /* display list pointer */ 17 | extern unsigned int listStart; /* see graphics.c */ 18 | 19 | extern unsigned int *listMax; /* threshold for starting execution of instrs */ 20 | extern unsigned int listNum; /* list number being written to */ 21 | extern unsigned int *listPtr0; /* base of list 0 */ 22 | extern unsigned int *listMax0; /* threshold of list 0 */ 23 | extern unsigned int *listPtr1; /* base of list 1 */ 24 | extern unsigned int *listMax1; /* threshold of list 1 */ 25 | 26 | #endif 27 | -------------------------------------------------------------------------------- /benchmarks/mediabench/mesa/include/mondello/clgd5471.h: -------------------------------------------------------------------------------- 1 | /* 2 | file: clgd5471.h 3 | auth: Peter McDermott 4 | date: Feb 12 - sometime 5 | */ 6 | 7 | #ifndef CLGD5471_H 8 | #define CLGD5471_H 9 | 10 | #include "type.h" 11 | 12 | typedef struct { 13 | int validState; 14 | 15 | BYTE *sequencerRegs; 16 | BYTE *graphicsRegs; 17 | BYTE miscReg; /* this may not be a necessary reg to save */ 18 | BYTE *hostMemory; 19 | 20 | } clgd5471State, *clgd5471StatePtr; 21 | 22 | clgd5471State *clgd5471CreateState(); 23 | void clgd5471DeleteState(clgd5471State *state); 24 | 25 | void clgd5471SaveState(clgd5471State *state); 26 | void clgd5471RestoreState(clgd5471State *state); 27 | 28 | /*---------------------------------------------------------------------------- 29 | outSeq() sends byte to the given sequencer register (upper byte is addr) 30 | -----------------------------------------------------------------------------*/ 31 | #define outSeq(data_addr) outw(0x3c4,data_addr); 32 | 33 | /*---------------------------------------------------------------------------- 34 | outGraph() sends byte to the given graph. ctl. register (upper byte is addr) 35 | -----------------------------------------------------------------------------*/ 36 | #define outGraph(data_addr) outw(0x3ce,data_addr); 37 | 38 | #endif 39 | 40 | -------------------------------------------------------------------------------- /benchmarks/mediabench/mesa/include/mondello/clgd5472.h: -------------------------------------------------------------------------------- 1 | /* 2 | file: clgd5472.h 3 | */ 4 | 5 | #ifndef clgd5472_H 6 | #define clgd5472_H 7 | 8 | #include 9 | #include "type.h" 10 | 11 | typedef struct { 12 | int dummy; 13 | } clgd5472State, *clgd5472StatePtr; 14 | 15 | clgd5472State *clgd5472CreateState(); 16 | void clgd5472DeleteState(clgd5472State *state); 17 | void clgd5472SaveState(clgd5472State *state); 18 | void clgd5472RestoreState(clgd5472State *state); 19 | 20 | void clgd5472InitLUT(); 21 | void clgd5472WriteIndex(uint index, uint red, uint green, uint blue); 22 | 23 | void setBuffer(int buffer); /* for double buffering, 0=first, 1=second */ 24 | 25 | #define clgd5472ShowCsr() outDacW(0x36,0x01); 26 | #define clgd5472HideCsr() outDacW(0x36,0x00); 27 | 28 | #endif 29 | 30 | -------------------------------------------------------------------------------- /benchmarks/mediabench/mesa/include/mondello/lut.h: -------------------------------------------------------------------------------- 1 | /* 2 | file: lut.h 3 | */ 4 | 5 | #ifndef LUT_H 6 | #define LUT_H 7 | 8 | typedef struct { 9 | unsigned char r, g, b; 10 | } LUTENTRY; 11 | 12 | #endif 13 | -------------------------------------------------------------------------------- /benchmarks/mediabench/mesa/include/mondello/misc.h: -------------------------------------------------------------------------------- 1 | #ifndef MISC_H 2 | #define MISC_H 3 | 4 | void PCILock(); 5 | void PCIUnlock(); 6 | int PCIIn(int device, int address); 7 | void PCIOut(int device, int address, int data); 8 | 9 | #endif 10 | -------------------------------------------------------------------------------- /benchmarks/mediabench/mesa/lib/libMesaGL.a: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/srokicki/HybridDBT/ddfbe8b2a9a98fe9a8f4bab876614c7af5c002e1/benchmarks/mediabench/mesa/lib/libMesaGL.a -------------------------------------------------------------------------------- /benchmarks/mediabench/mesa/lib/libMesaGLU.a: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/srokicki/HybridDBT/ddfbe8b2a9a98fe9a8f4bab876614c7af5c002e1/benchmarks/mediabench/mesa/lib/libMesaGLU.a -------------------------------------------------------------------------------- /benchmarks/mediabench/mesa/lib/libMesaaux.a: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/srokicki/HybridDBT/ddfbe8b2a9a98fe9a8f4bab876614c7af5c002e1/benchmarks/mediabench/mesa/lib/libMesaaux.a -------------------------------------------------------------------------------- /benchmarks/mediabench/mesa/src-aux/3d.h: -------------------------------------------------------------------------------- 1 | /* 3d.h */ 2 | 3 | 4 | extern void error(char *); 5 | extern void diff3(GLdouble [3], GLdouble [3], GLdouble [3]); 6 | extern void add3(GLdouble [3], GLdouble [3], GLdouble [3]); 7 | extern void scalarmult(GLdouble, GLdouble [3], GLdouble [3]); 8 | extern GLdouble dot3(GLdouble [3], GLdouble [3]); 9 | extern GLdouble length3(GLdouble [3]); 10 | extern GLdouble dist3(GLdouble [3], GLdouble [3]); 11 | extern void copy3(GLdouble [3], GLdouble [3]); 12 | extern void crossprod(GLdouble [3], GLdouble [3], GLdouble [3]); 13 | extern void normalize(GLdouble [3]); 14 | extern void print3(GLdouble [3]); 15 | extern void printmat3(GLdouble [3][3]); 16 | extern void identifymat3(GLdouble [3][3]); 17 | extern void copymat3(GLdouble *, GLdouble *); 18 | extern void xformvec3(GLdouble [3], GLdouble [3][3], GLdouble [3]); 19 | 20 | extern void m_resetmatrixstack(void); 21 | extern void m_xformpt(GLdouble [3], GLdouble [3], GLdouble [3], GLdouble [3]); 22 | extern void m_xformptonly(GLdouble [3], GLdouble [3]); 23 | extern void m_pushmatrix(void); 24 | extern void m_popmatrix(void); 25 | extern void m_shear(GLdouble, GLdouble, GLdouble); 26 | extern void m_translate(GLdouble, GLdouble, GLdouble); 27 | extern void m_scale(GLdouble, GLdouble, GLdouble); 28 | extern void m_rotate(GLdouble, char); 29 | 30 | 31 | -------------------------------------------------------------------------------- /benchmarks/mediabench/mesa/src-aux/CMakeLists.txt: -------------------------------------------------------------------------------- 1 | add_library(Mesaaux STATIC teapot.c shapes.c vect3d.c xxform.c) 2 | -------------------------------------------------------------------------------- /benchmarks/mediabench/mesa/src-aux/Imakefile: -------------------------------------------------------------------------------- 1 | #define DoNormalLib NO 2 | #define DoSharedLib YES 3 | #define DoDebugLib NO 4 | #define DoProfileLib NO 5 | #define LibName MESAAUX 6 | #define SoRev SOX11REV 7 | #define LibHeaders NO 8 | 9 | #include 10 | 11 | REQUIREDLIBS = $(X11ROOT)\\XFree86\\lib\\ $(TOP)\\lib\\ MesaTk MesaGL MesaGLU 12 | BUILDLIBDIR = $(TOP)\\lib 13 | 14 | DEFINES = -mieee-fp 15 | INCLUDES = -I$(TOP)\include 16 | 17 | SRCS = \ 18 | font.c \ 19 | glaux.c \ 20 | image.c \ 21 | shapes.c \ 22 | teapot.c \ 23 | vect3d.c \ 24 | xform.c 25 | 26 | OBJS = \ 27 | font.o \ 28 | glaux.o \ 29 | image.o \ 30 | shapes.o \ 31 | teapot.o \ 32 | vect3d.o \ 33 | xform.o 34 | 35 | 36 | LINTLIBS = 37 | 38 | #include 39 | 40 | DependTarget() 41 | 42 |  -------------------------------------------------------------------------------- /benchmarks/mediabench/mesa/src-aux/Mesaauxos2.rsp: -------------------------------------------------------------------------------- 1 | font.obj+ 2 | glaux.obj+ 3 | image.obj+ 4 | shapes.obj+ 5 | teapot.obj+ 6 | vect3d.obj+ 7 | xform.obj+ 8 | /NOL /NOD /BAT 9 | Mesaaux.dll 10 | 11 | -------------------------------------------------------------------------------- /benchmarks/mediabench/mesa/src-aux/descrip.mms: -------------------------------------------------------------------------------- 1 | # Makefile for aux toolkit for VMS 2 | # contributed by Jouk Jansen joukj@crys.chem.uva.nl 3 | 4 | 5 | .first 6 | define gl [-.include.gl] 7 | 8 | .include [-]mms-config. 9 | 10 | ##### MACROS ##### 11 | 12 | VPATH = RCS 13 | 14 | INCDIR = $disk2:[-.include] 15 | LIBDIR = [-.lib] 16 | CFLAGS = /include=$(INCDIR)/define=(FBIND=1) 17 | 18 | OBJECTS = glaux.obj,font.obj,image.obj,shapes.obj,teapot.obj,vect3d.obj,\ 19 | xxform.obj 20 | 21 | 22 | 23 | ##### RULES ##### 24 | 25 | 26 | ##### TARGETS ##### 27 | 28 | # Make the library 29 | $(LIBDIR)$(AUX_LIB) : $(OBJECTS) 30 | $(MAKELIB) $(AUX_LIB) $(OBJECTS) 31 | rename $(AUX_LIB)* $(LIBDIR) 32 | 33 | clean : 34 | delete *.obj; 35 | purge 36 | 37 | 38 | -------------------------------------------------------------------------------- /benchmarks/mediabench/mesa/src-glu/CMakeLists.txt: -------------------------------------------------------------------------------- 1 | 2 | add_library(MesaGLU STATIC glu.c mipmap.c nurbs.c nurbscrv.c nurbssrf.c nurbsutl.c project.c quadric.c tess.c tesselat.c polytest.c) 3 | 4 | -------------------------------------------------------------------------------- /benchmarks/mediabench/mesa/src-glu/Imakefile: -------------------------------------------------------------------------------- 1 | #define DoNormalLib NO 2 | #define DoSharedLib YES 3 | #define DoDebugLib NO 4 | #define DoProfileLib NO 5 | #define LibName MESAGLU 6 | #define SoRev SOX11REV 7 | #define LibHeaders NO 8 | 9 | #include 10 | 11 | REQUIREDLIBS = $(X11ROOT)\\XFree86\\lib\\ $(TOP)\\lib\\ MesaGL 12 | BUILDLIBDIR = $(TOP)\\lib 13 | 14 | DEFINES = -mieee-fp 15 | INCLUDES = -I$(TOP)\include 16 | 17 | SRCS = \ 18 | glu.c \ 19 | mipmap.c \ 20 | nurbs.c \ 21 | nurbscrv.c \ 22 | nurbssrf.c \ 23 | nurbsutl.c \ 24 | polytest.c \ 25 | project.c \ 26 | quadric.c \ 27 | tess.c \ 28 | tesselat.c 29 | 30 | OBJS = \ 31 | glu.o \ 32 | mipmap.o \ 33 | nurbs.o \ 34 | nurbscrv.o \ 35 | nurbssrf.o \ 36 | nurbsutl.o \ 37 | polytest.o \ 38 | project.o \ 39 | quadric.o \ 40 | tess.o \ 41 | tesselat.o \ 42 | 43 | 44 | LINTLIBS = 45 | 46 | IEEEFP = -mieee-fp 47 | 48 | #include 49 | 50 | DependTarget() 51 | 52 |  -------------------------------------------------------------------------------- /benchmarks/mediabench/mesa/src-glu/MesaGLUos2.rsp: -------------------------------------------------------------------------------- 1 | glu.obj+ 2 | mipmap.obj+ 3 | nurbs.obj+ 4 | nurbscrv.obj+ 5 | nurbssrf.obj+ 6 | nurbsutl.obj+ 7 | polytest.obj+ 8 | project.obj+ 9 | quadric.obj+ 10 | tess.obj+ 11 | tesselat.obj+ 12 | /NOL /NOD /BAT 13 | MesaGLU.dll 14 | 15 | -------------------------------------------------------------------------------- /benchmarks/mediabench/mesa/src-glu/depend: -------------------------------------------------------------------------------- 1 | # DO NOT DELETE THIS LINE -- make depend depends on it. 2 | 3 | glu.o: gluP.h ../include/GL/gl.h ../include/GL/glu.h 4 | mipmap.o: gluP.h ../include/GL/gl.h ../include/GL/glu.h 5 | nurbs.o: nurbs.h gluP.h ../include/GL/gl.h ../include/GL/glu.h 6 | nurbscrv.o: nurbs.h gluP.h ../include/GL/gl.h ../include/GL/glu.h 7 | nurbssrf.o: nurbs.h gluP.h ../include/GL/gl.h ../include/GL/glu.h 8 | nurbsutl.o: nurbs.h gluP.h ../include/GL/gl.h ../include/GL/glu.h 9 | project.o: gluP.h ../include/GL/gl.h ../include/GL/glu.h 10 | quadric.o: gluP.h ../include/GL/gl.h ../include/GL/glu.h 11 | tess.o: tess.h gluP.h ../include/GL/gl.h ../include/GL/glu.h 12 | tesselat.o: tess.h gluP.h ../include/GL/gl.h ../include/GL/glu.h 13 | polytest.o: gluP.h ../include/GL/gl.h ../include/GL/glu.h tess.h 14 | -------------------------------------------------------------------------------- /benchmarks/mediabench/mesa/src-glu/descrip.mms: -------------------------------------------------------------------------------- 1 | # Makefile for GLU for VMS 2 | # contributed by Jouk Jansen joukj@crys.chem.uva.nl 3 | 4 | .first 5 | define gl [-.include.gl] 6 | 7 | .include [-]mms-config. 8 | 9 | ##### MACROS ##### 10 | 11 | VPATH = RCS 12 | 13 | INCDIR = $disk2:[-.include] 14 | LIBDIR = [-.lib] 15 | CFLAGS = /include=$(INCDIR)/define=(FBIND=1) 16 | 17 | SOURCES = glu.c mipmap.c nurbs.c nurbscrv.c nurbssrf.c nurbsutl.c \ 18 | project.c quadric.c tess.c tesselat.c polytest.c 19 | 20 | OBJECTS =glu.obj,mipmap.obj,nurbs.obj,nurbscrv.obj,nurbssrf.obj,nurbsutl.obj,\ 21 | project.obj,quadric.obj,tess.obj,tesselat.obj,polytest.obj 22 | 23 | 24 | 25 | ##### RULES ##### 26 | 27 | 28 | ##### TARGETS ##### 29 | 30 | # Make the library: 31 | $(LIBDIR)$(GLU_LIB) : $(OBJECTS) 32 | $(MAKELIB) $(GLU_LIB) $(OBJECTS) 33 | rename $(GLU_LIB)* $(LIBDIR) 34 | clean : 35 | delete *.obj;* 36 | purge 37 | 38 | include mms_depend. 39 | 40 | -------------------------------------------------------------------------------- /benchmarks/mediabench/mesa/src-glu/mms_depend: -------------------------------------------------------------------------------- 1 | # DO NOT DELETE THIS LINE -- make depend depends on it. 2 | 3 | glu.obj : gluP.h [-.include.gl]gl.h [-.include.gl]glu.h 4 | mipmap.obj : gluP.h [-.include.gl]gl.h [-.include.gl]glu.h 5 | nurbs.obj : gluP.h [-.include.gl]gl.h [-.include.gl]glu.h nurbs.h 6 | nurbscrv.obj : nurbs.h gluP.h [-.include.gl]gl.h [-.include.gl]glu.h 7 | nurbssrf.obj : gluP.h [-.include.gl]gl.h [-.include.gl]glu.h nurbs.h 8 | nurbsutl.obj : gluP.h [-.include.gl]gl.h [-.include.gl]glu.h nurbs.h 9 | project.obj : gluP.h [-.include.gl]gl.h [-.include.gl]glu.h 10 | quadric.obj : gluP.h [-.include.gl]gl.h [-.include.gl]glu.h 11 | tess.obj : gluP.h [-.include.gl]gl.h [-.include.gl]glu.h tess.h 12 | tesselat.obj : gluP.h [-.include.gl]gl.h [-.include.gl]glu.h tess.h 13 | polytest.obj : gluP.h [-.include.gl]gl.h [-.include.gl]glu.h tess.h 14 | -------------------------------------------------------------------------------- /benchmarks/mediabench/mesa/src/CMakeLists.txt: -------------------------------------------------------------------------------- 1 | 2 | add_library(MesaGL STATIC accum.c alpha.c alphabuf.c api.c attrib.c bitmap.c 3 | blend.c bresenhm.c clip.c context.c copypix.c depth.c 4 | dlist.c draw.c drawpix.c enable.c eval.c feedback.c fog.c 5 | get.c interp.c image.c light.c lines.c logic.c 6 | masking.c matrix.c misc.c pb.c pixel.c points.c pointers.c 7 | polygon.c readpix.c scissor.c span.c stencil.c teximage.c 8 | texobj.c texture.c triangle.c varray.c vb.c vertex.c winpos.c 9 | xform.c osmesa.c) 10 | 11 | -------------------------------------------------------------------------------- /benchmarks/mediabench/mesa/src/MesaGLos2.rsp: -------------------------------------------------------------------------------- 1 | accum.OBJ+ 2 | alpha.OBJ+ 3 | alphabuf.OBJ+ 4 | attrib.OBJ+ 5 | bitmap.OBJ+ 6 | blend.OBJ+ 7 | bresenhm.OBJ+ 8 | clip.OBJ+ 9 | context.OBJ+ 10 | copypix.OBJ+ 11 | dd.OBJ+ 12 | depth.OBJ+ 13 | draw.OBJ+ 14 | drawpix.OBJ+ 15 | enable.OBJ+ 16 | eval2.OBJ+ 17 | feedback.OBJ+ 18 | fog.OBJ+ 19 | fortran.OBJ+ 20 | get.OBJ+ 21 | glx.OBJ+ 22 | interp.OBJ+ 23 | light.OBJ+ 24 | lines.OBJ+ 25 | list.OBJ+ 26 | logic.OBJ+ 27 | masking.OBJ+ 28 | misc.OBJ+ 29 | osmesa.OBJ+ 30 | pb.OBJ+ 31 | pixel.OBJ+ 32 | points.OBJ+ 33 | polygons.OBJ+ 34 | readpix.OBJ+ 35 | scissor.OBJ+ 36 | span.OBJ+ 37 | stencil.OBJ+ 38 | svgamesa.OBJ+ 39 | texture.OBJ+ 40 | varray.OBJ+ 41 | vb.OBJ+ 42 | vertex.OBJ+ 43 | xfonts.OBJ+ 44 | xform.OBJ+ 45 | xmesa1.OBJ+ 46 | xmesa2.OBJ+ 47 | xmesa3.OBJ+ 48 | /NOL /NOD /BAT 49 | MesaGL.dll 50 | 51 |  -------------------------------------------------------------------------------- /benchmarks/mediabench/mesa/src/alpha.h: -------------------------------------------------------------------------------- 1 | /* $Id: alpha.h,v 1.1 1996/09/13 01:38:16 brianp Exp $ */ 2 | 3 | /* 4 | * Mesa 3-D graphics library 5 | * Version: 2.0 6 | * Copyright (C) 1995-1996 Brian Paul 7 | * 8 | * This library is free software; you can redistribute it and/or 9 | * modify it under the terms of the GNU Library General Public 10 | * License as published by the Free Software Foundation; either 11 | * version 2 of the License, or (at your option) any later version. 12 | * 13 | * This library is distributed in the hope that it will be useful, 14 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 15 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 16 | * Library General Public License for more details. 17 | * 18 | * You should have received a copy of the GNU Library General Public 19 | * License along with this library; if not, write to the Free 20 | * Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. 21 | */ 22 | 23 | 24 | /* 25 | * $Log: alpha.h,v $ 26 | * Revision 1.1 1996/09/13 01:38:16 brianp 27 | * Initial revision 28 | * 29 | */ 30 | 31 | 32 | #ifndef ALPHA_H 33 | #define ALPHA_H 34 | 35 | 36 | #include "types.h" 37 | 38 | 39 | extern GLint gl_alpha_test( GLcontext* ctx, 40 | GLuint n, const GLubyte alpha[], GLubyte mask[] ); 41 | 42 | 43 | extern void gl_AlphaFunc( GLcontext* ctx, GLenum func, GLclampf ref ); 44 | 45 | 46 | #endif 47 | -------------------------------------------------------------------------------- /benchmarks/mediabench/mesa/src/copypix.h: -------------------------------------------------------------------------------- 1 | /* $Id: copypix.h,v 1.1 1996/09/13 01:38:16 brianp Exp $ */ 2 | 3 | /* 4 | * Mesa 3-D graphics library 5 | * Version: 2.0 6 | * Copyright (C) 1995-1996 Brian Paul 7 | * 8 | * This library is free software; you can redistribute it and/or 9 | * modify it under the terms of the GNU Library General Public 10 | * License as published by the Free Software Foundation; either 11 | * version 2 of the License, or (at your option) any later version. 12 | * 13 | * This library is distributed in the hope that it will be useful, 14 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 15 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 16 | * Library General Public License for more details. 17 | * 18 | * You should have received a copy of the GNU Library General Public 19 | * License along with this library; if not, write to the Free 20 | * Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. 21 | */ 22 | 23 | 24 | /* 25 | * $Log: copypix.h,v $ 26 | * Revision 1.1 1996/09/13 01:38:16 brianp 27 | * Initial revision 28 | * 29 | */ 30 | 31 | 32 | #ifndef COPYPIXELS_H 33 | #define COPYPIXELS_H 34 | 35 | 36 | #include "types.h" 37 | 38 | 39 | extern void gl_CopyPixels( GLcontext* ctx, 40 | GLint srcx, GLint srcy, 41 | GLsizei width, GLsizei height, 42 | GLenum type ); 43 | 44 | 45 | #endif 46 | 47 | -------------------------------------------------------------------------------- /benchmarks/mediabench/mesa/src/lines.h: -------------------------------------------------------------------------------- 1 | /* $Id: lines.h,v 1.1 1996/09/13 01:38:16 brianp Exp $ */ 2 | 3 | /* 4 | * Mesa 3-D graphics library 5 | * Version: 2.0 6 | * Copyright (C) 1995-1996 Brian Paul 7 | * 8 | * This library is free software; you can redistribute it and/or 9 | * modify it under the terms of the GNU Library General Public 10 | * License as published by the Free Software Foundation; either 11 | * version 2 of the License, or (at your option) any later version. 12 | * 13 | * This library is distributed in the hope that it will be useful, 14 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 15 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 16 | * Library General Public License for more details. 17 | * 18 | * You should have received a copy of the GNU Library General Public 19 | * License along with this library; if not, write to the Free 20 | * Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. 21 | */ 22 | 23 | 24 | /* 25 | * $Log: lines.h,v $ 26 | * Revision 1.1 1996/09/13 01:38:16 brianp 27 | * Initial revision 28 | * 29 | */ 30 | 31 | 32 | #ifndef LINES_H 33 | #define LINES_H 34 | 35 | 36 | #include "types.h" 37 | 38 | 39 | extern void gl_LineWidth( GLcontext *ctx, GLfloat width ); 40 | 41 | extern void gl_LineStipple( GLcontext *ctx, GLint factor, GLushort pattern ); 42 | 43 | extern void gl_set_line_function( GLcontext *ctx ); 44 | 45 | 46 | #endif 47 | -------------------------------------------------------------------------------- /benchmarks/mediabench/mesa/src/points.h: -------------------------------------------------------------------------------- 1 | /* $Id: points.h,v 1.1 1996/09/13 01:38:16 brianp Exp $ */ 2 | 3 | /* 4 | * Mesa 3-D graphics library 5 | * Version: 2.0 6 | * Copyright (C) 1995-1996 Brian Paul 7 | * 8 | * This library is free software; you can redistribute it and/or 9 | * modify it under the terms of the GNU Library General Public 10 | * License as published by the Free Software Foundation; either 11 | * version 2 of the License, or (at your option) any later version. 12 | * 13 | * This library is distributed in the hope that it will be useful, 14 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 15 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 16 | * Library General Public License for more details. 17 | * 18 | * You should have received a copy of the GNU Library General Public 19 | * License along with this library; if not, write to the Free 20 | * Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. 21 | */ 22 | 23 | 24 | /* 25 | * $Log: points.h,v $ 26 | * Revision 1.1 1996/09/13 01:38:16 brianp 27 | * Initial revision 28 | * 29 | */ 30 | 31 | 32 | #ifndef POINTS_H 33 | #define POINTS_H 34 | 35 | 36 | #include "types.h" 37 | 38 | 39 | extern void gl_PointSize( GLcontext *ctx, GLfloat size ); 40 | 41 | extern void gl_set_point_function( GLcontext *ctx ); 42 | 43 | 44 | #endif 45 | -------------------------------------------------------------------------------- /benchmarks/mediabench/mesa/src/readpix.h: -------------------------------------------------------------------------------- 1 | /* $Id: readpix.h,v 1.1 1996/09/13 01:38:16 brianp Exp $ */ 2 | 3 | /* 4 | * Mesa 3-D graphics library 5 | * Version: 2.0 6 | * Copyright (C) 1995-1996 Brian Paul 7 | * 8 | * This library is free software; you can redistribute it and/or 9 | * modify it under the terms of the GNU Library General Public 10 | * License as published by the Free Software Foundation; either 11 | * version 2 of the License, or (at your option) any later version. 12 | * 13 | * This library is distributed in the hope that it will be useful, 14 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 15 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 16 | * Library General Public License for more details. 17 | * 18 | * You should have received a copy of the GNU Library General Public 19 | * License along with this library; if not, write to the Free 20 | * Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. 21 | */ 22 | 23 | 24 | /* 25 | * $Log: readpix.h,v $ 26 | * Revision 1.1 1996/09/13 01:38:16 brianp 27 | * Initial revision 28 | * 29 | */ 30 | 31 | 32 | #ifndef READPIX_H 33 | #define READPIX_H 34 | 35 | 36 | #include "types.h" 37 | 38 | 39 | extern void gl_ReadPixels( GLcontext *ctx, 40 | GLint x, GLint y, GLsizei width, GLsizei height, 41 | GLenum format, GLenum type, GLvoid *pixels ); 42 | 43 | 44 | #endif 45 | -------------------------------------------------------------------------------- /benchmarks/mediabench/mesa/src/triangle.h: -------------------------------------------------------------------------------- 1 | /* $Id: triangle.h,v 1.1 1996/09/13 01:38:16 brianp Exp $ */ 2 | 3 | /* 4 | * Mesa 3-D graphics library 5 | * Version: 2.0 6 | * Copyright (C) 1995-1996 Brian Paul 7 | * 8 | * This library is free software; you can redistribute it and/or 9 | * modify it under the terms of the GNU Library General Public 10 | * License as published by the Free Software Foundation; either 11 | * version 2 of the License, or (at your option) any later version. 12 | * 13 | * This library is distributed in the hope that it will be useful, 14 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 15 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 16 | * Library General Public License for more details. 17 | * 18 | * You should have received a copy of the GNU Library General Public 19 | * License along with this library; if not, write to the Free 20 | * Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. 21 | */ 22 | 23 | 24 | /* 25 | * $Log: triangle.h,v $ 26 | * Revision 1.1 1996/09/13 01:38:16 brianp 27 | * Initial revision 28 | * 29 | */ 30 | 31 | 32 | #ifndef TRIANGLES_H 33 | #define TRIANGLES_H 34 | 35 | 36 | #include "types.h" 37 | 38 | 39 | extern void gl_set_triangle_function( GLcontext *ctx ); 40 | 41 | 42 | #endif 43 | 44 | -------------------------------------------------------------------------------- /benchmarks/mediabench/mpeg2/CMakeLists.txt: -------------------------------------------------------------------------------- 1 | add_subdirectory(src/mpeg2enc) 2 | add_subdirectory(src/mpeg2dec) 3 | 4 | add_test(NAME test_mpeg2_encode WORKING_DIRECTORY ${CMAKE_CURRENT_LIST_DIR}/test/ COMMAND dbt -f ${CMAKE_CURRENT_BINARY_DIR}/src/mpeg2enc/bin/mpeg2enc -a "../data/options.par ../data/out.m2v") 5 | add_test(NAME test_mpeg2_decode WORKING_DIRECTORY ${CMAKE_CURRENT_LIST_DIR}/test/ COMMAND dbt -f ${CMAKE_CURRENT_BINARY_DIR}/src/mpeg2dec/bin/mpeg2dec -a "-b ../data/mei16v2.m2v -r -f -o ../data/tmp%d") 6 | -------------------------------------------------------------------------------- /benchmarks/mediabench/mpeg2/README.BEN: -------------------------------------------------------------------------------- 1 | Use sdecode/sencode in ./exec 2 | -------------------------------------------------------------------------------- /benchmarks/mediabench/mpeg2/data/README: -------------------------------------------------------------------------------- 1 | To test encoding: 2 | 3 | mpeg2encode test.par out.m2v 4 | 5 | 6 | To test decoding: 7 | 8 | mpeg2decode -b mei16v2.m2v -r -f -o0 rec%d 9 | 10 | 11 | The data file obtained from http://www.mpeg2.de/video/streams/ 12 | 13 | 14 | -------------------------------------------------------------------------------- /benchmarks/mediabench/mpeg2/data/compo.tar.gz: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/srokicki/HybridDBT/ddfbe8b2a9a98fe9a8f4bab876614c7af5c002e1/benchmarks/mediabench/mpeg2/data/compo.tar.gz -------------------------------------------------------------------------------- /benchmarks/mediabench/mpeg2/data/mei16v2.m2v: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/srokicki/HybridDBT/ddfbe8b2a9a98fe9a8f4bab876614c7af5c002e1/benchmarks/mediabench/mpeg2/data/mei16v2.m2v -------------------------------------------------------------------------------- /benchmarks/mediabench/mpeg2/data/out.m2v: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/srokicki/HybridDBT/ddfbe8b2a9a98fe9a8f4bab876614c7af5c002e1/benchmarks/mediabench/mpeg2/data/out.m2v -------------------------------------------------------------------------------- /benchmarks/mediabench/mpeg2/data/rec0.U: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/srokicki/HybridDBT/ddfbe8b2a9a98fe9a8f4bab876614c7af5c002e1/benchmarks/mediabench/mpeg2/data/rec0.U -------------------------------------------------------------------------------- /benchmarks/mediabench/mpeg2/data/rec0.V: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/srokicki/HybridDBT/ddfbe8b2a9a98fe9a8f4bab876614c7af5c002e1/benchmarks/mediabench/mpeg2/data/rec0.V -------------------------------------------------------------------------------- /benchmarks/mediabench/mpeg2/data/rec0.Y: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/srokicki/HybridDBT/ddfbe8b2a9a98fe9a8f4bab876614c7af5c002e1/benchmarks/mediabench/mpeg2/data/rec0.Y -------------------------------------------------------------------------------- /benchmarks/mediabench/mpeg2/data/rec1.U: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/srokicki/HybridDBT/ddfbe8b2a9a98fe9a8f4bab876614c7af5c002e1/benchmarks/mediabench/mpeg2/data/rec1.U -------------------------------------------------------------------------------- /benchmarks/mediabench/mpeg2/data/rec1.V: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/srokicki/HybridDBT/ddfbe8b2a9a98fe9a8f4bab876614c7af5c002e1/benchmarks/mediabench/mpeg2/data/rec1.V -------------------------------------------------------------------------------- /benchmarks/mediabench/mpeg2/data/rec1.Y: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/srokicki/HybridDBT/ddfbe8b2a9a98fe9a8f4bab876614c7af5c002e1/benchmarks/mediabench/mpeg2/data/rec1.Y -------------------------------------------------------------------------------- /benchmarks/mediabench/mpeg2/data/rec2.U: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/srokicki/HybridDBT/ddfbe8b2a9a98fe9a8f4bab876614c7af5c002e1/benchmarks/mediabench/mpeg2/data/rec2.U -------------------------------------------------------------------------------- /benchmarks/mediabench/mpeg2/data/rec2.V: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/srokicki/HybridDBT/ddfbe8b2a9a98fe9a8f4bab876614c7af5c002e1/benchmarks/mediabench/mpeg2/data/rec2.V -------------------------------------------------------------------------------- /benchmarks/mediabench/mpeg2/data/rec2.Y: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/srokicki/HybridDBT/ddfbe8b2a9a98fe9a8f4bab876614c7af5c002e1/benchmarks/mediabench/mpeg2/data/rec2.Y -------------------------------------------------------------------------------- /benchmarks/mediabench/mpeg2/data/rec3.U: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/srokicki/HybridDBT/ddfbe8b2a9a98fe9a8f4bab876614c7af5c002e1/benchmarks/mediabench/mpeg2/data/rec3.U -------------------------------------------------------------------------------- /benchmarks/mediabench/mpeg2/data/rec3.V: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/srokicki/HybridDBT/ddfbe8b2a9a98fe9a8f4bab876614c7af5c002e1/benchmarks/mediabench/mpeg2/data/rec3.V -------------------------------------------------------------------------------- /benchmarks/mediabench/mpeg2/data/rec3.Y: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/srokicki/HybridDBT/ddfbe8b2a9a98fe9a8f4bab876614c7af5c002e1/benchmarks/mediabench/mpeg2/data/rec3.Y -------------------------------------------------------------------------------- /benchmarks/mediabench/mpeg2/data/tmp0.U: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/srokicki/HybridDBT/ddfbe8b2a9a98fe9a8f4bab876614c7af5c002e1/benchmarks/mediabench/mpeg2/data/tmp0.U -------------------------------------------------------------------------------- /benchmarks/mediabench/mpeg2/data/tmp0.V: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/srokicki/HybridDBT/ddfbe8b2a9a98fe9a8f4bab876614c7af5c002e1/benchmarks/mediabench/mpeg2/data/tmp0.V -------------------------------------------------------------------------------- /benchmarks/mediabench/mpeg2/data/tmp0.Y: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/srokicki/HybridDBT/ddfbe8b2a9a98fe9a8f4bab876614c7af5c002e1/benchmarks/mediabench/mpeg2/data/tmp0.Y -------------------------------------------------------------------------------- /benchmarks/mediabench/mpeg2/data/tmp1.U: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/srokicki/HybridDBT/ddfbe8b2a9a98fe9a8f4bab876614c7af5c002e1/benchmarks/mediabench/mpeg2/data/tmp1.U -------------------------------------------------------------------------------- /benchmarks/mediabench/mpeg2/data/tmp1.V: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/srokicki/HybridDBT/ddfbe8b2a9a98fe9a8f4bab876614c7af5c002e1/benchmarks/mediabench/mpeg2/data/tmp1.V -------------------------------------------------------------------------------- /benchmarks/mediabench/mpeg2/data/tmp1.Y: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/srokicki/HybridDBT/ddfbe8b2a9a98fe9a8f4bab876614c7af5c002e1/benchmarks/mediabench/mpeg2/data/tmp1.Y -------------------------------------------------------------------------------- /benchmarks/mediabench/mpeg2/data/tmp2.U: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/srokicki/HybridDBT/ddfbe8b2a9a98fe9a8f4bab876614c7af5c002e1/benchmarks/mediabench/mpeg2/data/tmp2.U -------------------------------------------------------------------------------- /benchmarks/mediabench/mpeg2/data/tmp2.V: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/srokicki/HybridDBT/ddfbe8b2a9a98fe9a8f4bab876614c7af5c002e1/benchmarks/mediabench/mpeg2/data/tmp2.V -------------------------------------------------------------------------------- /benchmarks/mediabench/mpeg2/data/tmp2.Y: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/srokicki/HybridDBT/ddfbe8b2a9a98fe9a8f4bab876614c7af5c002e1/benchmarks/mediabench/mpeg2/data/tmp2.Y -------------------------------------------------------------------------------- /benchmarks/mediabench/mpeg2/data/tmp3.U: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/srokicki/HybridDBT/ddfbe8b2a9a98fe9a8f4bab876614c7af5c002e1/benchmarks/mediabench/mpeg2/data/tmp3.U -------------------------------------------------------------------------------- /benchmarks/mediabench/mpeg2/data/tmp3.V: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/srokicki/HybridDBT/ddfbe8b2a9a98fe9a8f4bab876614c7af5c002e1/benchmarks/mediabench/mpeg2/data/tmp3.V -------------------------------------------------------------------------------- /benchmarks/mediabench/mpeg2/data/tmp3.Y: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/srokicki/HybridDBT/ddfbe8b2a9a98fe9a8f4bab876614c7af5c002e1/benchmarks/mediabench/mpeg2/data/tmp3.Y -------------------------------------------------------------------------------- /benchmarks/mediabench/mpeg2/doc/BUGS: -------------------------------------------------------------------------------- 1 | chroma simulcast not supported 2 | X11 output works only if default visual is 8 bit deep 3 | -------------------------------------------------------------------------------- /benchmarks/mediabench/mpeg2/exec/sdecode.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh -f 2 | NAME=mpeg2decode 3 | BENCH_BIN=../../build/mpeg2/src/mpeg2dec/bin/mpeg2dec 4 | BENCH_OPT="-r -f -o" 5 | BENCH_INP="-b ../data/mei16v2.m2v" 6 | BENCH_OUT="../data/tmp%d" 7 | BENCH_ARG="${BENCH_INP} ${BENCH_OPT} ${BENCH_OUT}" 8 | # 9 | echo simRISCV -f ${BENCH_BIN} -a "${BENCH_ARG}" 10 | simRISCV -f ${BENCH_BIN} -a "${BENCH_ARG}" 11 | 12 | -------------------------------------------------------------------------------- /benchmarks/mediabench/mpeg2/exec/sencode.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh -f 2 | NAME=mpeg2enc 3 | BENCH_BIN=../../build/mpeg2/src/mpeg2enc/bin/mpeg2enc 4 | BENCH_OPT="../data/options.par" 5 | BENCH_INP="../data/out.m2v" 6 | BENCH_OUT= 7 | BENCH_ARG="${BENCH_OPT} ${BENCH_INP} ${BENCH_OUT}" 8 | # 9 | echo simRISCV -f ${BENCH_BIN} -a "${BENCH_ARG}" 10 | simRISCV -f ${BENCH_BIN} -a ${BENCH_ARG} 11 | 12 | -------------------------------------------------------------------------------- /benchmarks/mediabench/mpeg2/par/inter.mat: -------------------------------------------------------------------------------- 1 | 16 17 18 19 20 21 22 23 2 | 17 18 19 20 21 22 23 24 3 | 18 19 20 21 22 23 24 25 4 | 19 20 21 22 23 24 25 26 5 | 20 21 22 23 24 25 26 27 6 | 21 22 23 24 25 26 27 28 7 | 22 23 24 25 26 27 28 29 8 | 23 24 25 26 27 28 29 30 9 | -------------------------------------------------------------------------------- /benchmarks/mediabench/mpeg2/par/intra.mat: -------------------------------------------------------------------------------- 1 | 8 16 19 22 26 27 29 34 2 | 16 16 22 24 27 29 34 37 3 | 19 22 26 27 29 34 34 38 4 | 22 22 26 27 29 34 37 40 5 | 22 26 27 29 32 35 40 48 6 | 26 27 29 32 35 40 48 58 7 | 26 27 29 34 38 46 56 69 8 | 27 29 35 38 46 56 69 83 9 | -------------------------------------------------------------------------------- /benchmarks/mediabench/mpeg2/src/mpeg2dec/CMakeLists.txt: -------------------------------------------------------------------------------- 1 | add_executable(mpeg2dec mpeg2dec.c getpic.c motion.c getvlc.c gethdr.c getblk.c getbits.c store.c recon.c spatscal.c idct.c idctref.c 2 | display.c systems.c subspic.c verify.c) 3 | 4 | target_link_libraries(mpeg2dec m) 5 | -------------------------------------------------------------------------------- /benchmarks/mediabench/mpeg2/src/mpeg2dec/mpeg2decode.bb: -------------------------------------------------------------------------------- 1 | bb3x7� -------------------------------------------------------------------------------- /benchmarks/mediabench/mpeg2/src/mpeg2dec/smoker.mpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/srokicki/HybridDBT/ddfbe8b2a9a98fe9a8f4bab876614c7af5c002e1/benchmarks/mediabench/mpeg2/src/mpeg2dec/smoker.mpg -------------------------------------------------------------------------------- /benchmarks/mediabench/mpeg2/src/mpeg2dec/temp.U: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/srokicki/HybridDBT/ddfbe8b2a9a98fe9a8f4bab876614c7af5c002e1/benchmarks/mediabench/mpeg2/src/mpeg2dec/temp.U -------------------------------------------------------------------------------- /benchmarks/mediabench/mpeg2/src/mpeg2dec/temp.V: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/srokicki/HybridDBT/ddfbe8b2a9a98fe9a8f4bab876614c7af5c002e1/benchmarks/mediabench/mpeg2/src/mpeg2dec/temp.V -------------------------------------------------------------------------------- /benchmarks/mediabench/mpeg2/src/mpeg2dec/temp.Y: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/srokicki/HybridDBT/ddfbe8b2a9a98fe9a8f4bab876614c7af5c002e1/benchmarks/mediabench/mpeg2/src/mpeg2dec/temp.Y -------------------------------------------------------------------------------- /benchmarks/mediabench/mpeg2/src/mpeg2dec/test.m2v: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/srokicki/HybridDBT/ddfbe8b2a9a98fe9a8f4bab876614c7af5c002e1/benchmarks/mediabench/mpeg2/src/mpeg2dec/test.m2v -------------------------------------------------------------------------------- /benchmarks/mediabench/mpeg2/src/mpeg2enc/CHANGES: -------------------------------------------------------------------------------- 1 | CHANGES 2 | ======= 3 | 4 | Since July 4, 1994 edition: 5 | 6 | Summary: 7 | only very minor changes since version 1.1a, distributed two years 8 | ago. A beta version of this program has significantly greater 9 | number of changes (.par file syntax, restructured motion.c , 10 | zero-block test of Note 4.1.1, etc.) 11 | 12 | 1. as per suggestion of Peter Loje Hansen : 13 | 14 | - corrected line 631 of motion.c so field_estimate uses 15 | backward search range variables (sxb, syb) instead of 16 | forward search range variables (sxf, syf). 17 | 18 | - corrected line 250 in putseq.c, replacing .sxf with .syf 19 | 20 | 21 | 2. many user suggestions: 22 | - prevent divide by zero in SNR calculation in stat.c. 23 | 24 | 3. general: 25 | - eliminated support for non ANSI C compilers in makefile. 26 | 27 | -------------------------------------------------------------------------------- /benchmarks/mediabench/mpeg2/src/mpeg2enc/CMakeLists.txt: -------------------------------------------------------------------------------- 1 | add_executable(mpeg2enc mpeg2enc.c conform.c putseq.c putpic.c puthdr.c putmpg.c putvlc.c putbits.c motion.c predict.c readpic.c writepic.c 2 | transfrm.c fdctref.c idct.c quantize.c ratectl.c stats.c) 3 | 4 | target_link_libraries(mpeg2enc m) 5 | 6 | -------------------------------------------------------------------------------- /benchmarks/mediabench/mpeg2/src/mpeg2enc/TODO: -------------------------------------------------------------------------------- 1 | TODO 2 | ==== 3 | 4 | - update vbv_delay calculation to agree with November 1994 5 | (WG11 approved IS draft of ISO/IEC 13818-2). 6 | 7 | - allow intra only encoding of sequences (disable ipflag in 8 | putseq.c) 9 | 10 | 11 | -------------------------------------------------------------------------------- /benchmarks/mediabench/mpeg2/verify/README: -------------------------------------------------------------------------------- 1 | The file 'verify' is a simple Unix shell script. When run, (e.g. "csh 2 | verify" or "verify" at the command line) it will compare output between 3 | the encoder's picture sequence reconstruction and the decoder's picture 4 | sequence reconstruction. 5 | 6 | A second test compares the output of the decoder. 7 | 8 | The unix tool "cmp" is used to compare two files. 9 | -------------------------------------------------------------------------------- /benchmarks/mediabench/mpeg2/verify/recon0.U: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/srokicki/HybridDBT/ddfbe8b2a9a98fe9a8f4bab876614c7af5c002e1/benchmarks/mediabench/mpeg2/verify/recon0.U -------------------------------------------------------------------------------- /benchmarks/mediabench/mpeg2/verify/recon0.V: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/srokicki/HybridDBT/ddfbe8b2a9a98fe9a8f4bab876614c7af5c002e1/benchmarks/mediabench/mpeg2/verify/recon0.V -------------------------------------------------------------------------------- /benchmarks/mediabench/mpeg2/verify/recon0.Y: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/srokicki/HybridDBT/ddfbe8b2a9a98fe9a8f4bab876614c7af5c002e1/benchmarks/mediabench/mpeg2/verify/recon0.Y -------------------------------------------------------------------------------- /benchmarks/mediabench/mpeg2/verify/recon1.U: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/srokicki/HybridDBT/ddfbe8b2a9a98fe9a8f4bab876614c7af5c002e1/benchmarks/mediabench/mpeg2/verify/recon1.U -------------------------------------------------------------------------------- /benchmarks/mediabench/mpeg2/verify/recon1.V: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/srokicki/HybridDBT/ddfbe8b2a9a98fe9a8f4bab876614c7af5c002e1/benchmarks/mediabench/mpeg2/verify/recon1.V -------------------------------------------------------------------------------- /benchmarks/mediabench/mpeg2/verify/recon1.Y: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/srokicki/HybridDBT/ddfbe8b2a9a98fe9a8f4bab876614c7af5c002e1/benchmarks/mediabench/mpeg2/verify/recon1.Y -------------------------------------------------------------------------------- /benchmarks/mediabench/mpeg2/verify/recon2.U: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/srokicki/HybridDBT/ddfbe8b2a9a98fe9a8f4bab876614c7af5c002e1/benchmarks/mediabench/mpeg2/verify/recon2.U -------------------------------------------------------------------------------- /benchmarks/mediabench/mpeg2/verify/recon2.V: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/srokicki/HybridDBT/ddfbe8b2a9a98fe9a8f4bab876614c7af5c002e1/benchmarks/mediabench/mpeg2/verify/recon2.V -------------------------------------------------------------------------------- /benchmarks/mediabench/mpeg2/verify/recon2.Y: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/srokicki/HybridDBT/ddfbe8b2a9a98fe9a8f4bab876614c7af5c002e1/benchmarks/mediabench/mpeg2/verify/recon2.Y -------------------------------------------------------------------------------- /benchmarks/mediabench/mpeg2/verify/test.m2v: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/srokicki/HybridDBT/ddfbe8b2a9a98fe9a8f4bab876614c7af5c002e1/benchmarks/mediabench/mpeg2/verify/test.m2v -------------------------------------------------------------------------------- /benchmarks/mediabench/mpeg2/verify/test0.U: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/srokicki/HybridDBT/ddfbe8b2a9a98fe9a8f4bab876614c7af5c002e1/benchmarks/mediabench/mpeg2/verify/test0.U -------------------------------------------------------------------------------- /benchmarks/mediabench/mpeg2/verify/test0.V: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/srokicki/HybridDBT/ddfbe8b2a9a98fe9a8f4bab876614c7af5c002e1/benchmarks/mediabench/mpeg2/verify/test0.V -------------------------------------------------------------------------------- /benchmarks/mediabench/mpeg2/verify/test0.Y: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/srokicki/HybridDBT/ddfbe8b2a9a98fe9a8f4bab876614c7af5c002e1/benchmarks/mediabench/mpeg2/verify/test0.Y -------------------------------------------------------------------------------- /benchmarks/mediabench/mpeg2/verify/test1.U: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/srokicki/HybridDBT/ddfbe8b2a9a98fe9a8f4bab876614c7af5c002e1/benchmarks/mediabench/mpeg2/verify/test1.U -------------------------------------------------------------------------------- /benchmarks/mediabench/mpeg2/verify/test1.V: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/srokicki/HybridDBT/ddfbe8b2a9a98fe9a8f4bab876614c7af5c002e1/benchmarks/mediabench/mpeg2/verify/test1.V -------------------------------------------------------------------------------- /benchmarks/mediabench/mpeg2/verify/test1.Y: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/srokicki/HybridDBT/ddfbe8b2a9a98fe9a8f4bab876614c7af5c002e1/benchmarks/mediabench/mpeg2/verify/test1.Y -------------------------------------------------------------------------------- /benchmarks/mediabench/mpeg2/verify/test2.U: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/srokicki/HybridDBT/ddfbe8b2a9a98fe9a8f4bab876614c7af5c002e1/benchmarks/mediabench/mpeg2/verify/test2.U -------------------------------------------------------------------------------- /benchmarks/mediabench/mpeg2/verify/test2.V: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/srokicki/HybridDBT/ddfbe8b2a9a98fe9a8f4bab876614c7af5c002e1/benchmarks/mediabench/mpeg2/verify/test2.V -------------------------------------------------------------------------------- /benchmarks/mediabench/mpeg2/verify/test2.Y: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/srokicki/HybridDBT/ddfbe8b2a9a98fe9a8f4bab876614c7af5c002e1/benchmarks/mediabench/mpeg2/verify/test2.Y -------------------------------------------------------------------------------- /benchmarks/mediabench/mpeg2/verify/verify: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | ../src/mpeg2enc/mpeg2encode test.par new.m2v 3 | echo Verifying bitstream 4 | cmp test.m2v new.m2v 5 | ../src/mpeg2dec/mpeg2decode -f -b new.m2v -o0 r%d 6 | echo Comparing encoder and decoder output 7 | cmp q0.Y r0.Y 8 | cmp q1.Y r1.Y 9 | cmp q2.Y r2.Y 10 | cmp q0.U r0.U 11 | cmp q1.U r1.U 12 | cmp q2.U r2.U 13 | cmp q0.V r0.V 14 | cmp q1.V r1.V 15 | cmp q2.V r2.V 16 | echo Verifying decoder 17 | ../src/mpeg2dec/mpeg2decode -f -b test.m2v -o0 new%d 18 | cmp recon0.Y new0.Y 19 | cmp recon1.Y new1.Y 20 | cmp recon2.Y new2.Y 21 | cmp recon0.U new0.U 22 | cmp recon1.U new1.U 23 | cmp recon2.U new2.U 24 | cmp recon0.V new0.V 25 | cmp recon1.V new1.V 26 | cmp recon2.V new2.V 27 | echo Cleaning 28 | rm -f new.m2v xyz stat.out new?.? q?.? r?.? 29 | -------------------------------------------------------------------------------- /benchmarks/mediabench/rasta/CMakeLists.txt: -------------------------------------------------------------------------------- 1 | add_subdirectory(src) 2 | 3 | add_test(NAME test_rasta WORKING_DIRECTORY ${CMAKE_CURRENT_LIST_DIR}/test/ COMMAND dbt -f ${CMAKE_CURRENT_BINARY_DIR}/src/bin/rasta -a "-z -A -J -S 8000 -n 12 -f map_weights.dat" -i ex5_c1.wav -o ex5.asc -o stderr -o rasta.shade) 4 | 5 | 6 | -------------------------------------------------------------------------------- /benchmarks/mediabench/rasta/README.BEN: -------------------------------------------------------------------------------- 1 | Run run_shade in ./spix 2 | -------------------------------------------------------------------------------- /benchmarks/mediabench/rasta/data/ex5_c1.wav: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/srokicki/HybridDBT/ddfbe8b2a9a98fe9a8f4bab876614c7af5c002e1/benchmarks/mediabench/rasta/data/ex5_c1.wav -------------------------------------------------------------------------------- /benchmarks/mediabench/rasta/data/rasta.shade: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/srokicki/HybridDBT/ddfbe8b2a9a98fe9a8f4bab876614c7af5c002e1/benchmarks/mediabench/rasta/data/rasta.shade -------------------------------------------------------------------------------- /benchmarks/mediabench/rasta/src/CMakeLists.txt: -------------------------------------------------------------------------------- 1 | 2 | set(SPHERE_INCLUDE ${CMAKE_CURRENT_SOURCE_DIR}/sphere/include) 3 | 4 | include_directories(${CMAKE_CURRENT_SOURCE_DIR}) 5 | include_directories(${SPHERE_INCLUDE}) 6 | 7 | add_subdirectory(sphere2/nist) 8 | 9 | add_executable(rasta rasta.c init.c anal.c powspec.c noise_est.c mapping.c 10 | audspec.c nl_audspec.c rasta_filt.c inverse_nl.c 11 | post_audspec.c lpccep.c fft.c io.c fvecsubs.c svecsubs.c debug.c) 12 | add_executable(lsqsolve lsqsolve.c mul_mdmd_md.c) 13 | 14 | target_link_libraries(rasta sp util m) 15 | target_link_libraries(lsqsolve m) 16 | 17 | -------------------------------------------------------------------------------- /benchmarks/mediabench/rasta/src/TODO: -------------------------------------------------------------------------------- 1 | $Header: /u/drspeech/src/rasta/RCS/TODO,v 1.5 1997/03/07 21:15:52 bedk Exp $ 2 | 3 | Some things to do in Rasta: 4 | 5 | - #defines to make executables that look like plp, lograsta, and full-blown 6 | rasta 7 | 8 | - STRUT I/O 9 | - fft.c - PI should use ifdef - can be in math.h 10 | -------------------------------------------------------------------------------- /benchmarks/mediabench/rasta/src/acconfig.h: -------------------------------------------------------------------------------- 1 | /* 2 | ** $Header: /u/drspeech/src/rasta/RCS/acconfig.h,v 1.1 1996/12/07 01:33:22 davidj Exp $ 3 | ** 4 | ** acconfig.h file for rasta 5 | */ 6 | 7 | #undef HAVE_LIBESPS 8 | #undef HAVE_LIBMAT 9 | #undef HAVE_LIBSOCKET 10 | #undef HAVE_LIBSP 11 | -------------------------------------------------------------------------------- /benchmarks/mediabench/rasta/src/config.cache: -------------------------------------------------------------------------------- 1 | # This file is a shell script that caches the results of configure 2 | # tests run on this system so they can be shared between configure 3 | # scripts and configure runs. It is not useful on other systems. 4 | # If it contains results you don't want to keep, you may remove or edit it. 5 | # 6 | # By default, configure uses ./config.cache as the cache file, 7 | # creating it if it does not exist already. You can give configure 8 | # the --cache-file=FILE option to use a different cache file; that is 9 | # what configure does when it calls configure scripts in 10 | # subdirectories, so they share the cache. 11 | # Giving --cache-file=/dev/null disables caching, for debugging configure. 12 | # config.status only pays attention to the cache file if you give it the 13 | # --recheck option to rerun configure. 14 | # 15 | ac_cv_c_cross=${ac_cv_c_cross=''no''} 16 | ac_cv_header_stdc=${ac_cv_header_stdc=''yes''} 17 | ac_cv_lib_mat_matOpen=${ac_cv_lib_mat_matOpen=''no''} 18 | ac_cv_lib_sp_sp_open=${ac_cv_lib_sp_sp_open=''no''} 19 | ac_cv_path_PERL=${ac_cv_path_PERL=''/usr/bin/perl''} 20 | ac_cv_path_install=${ac_cv_path_install=''/usr/bin/install -c''} 21 | ac_cv_prog_CC=${ac_cv_prog_CC=''gcc''} 22 | ac_cv_prog_CPP=${ac_cv_prog_CPP=''gcc -E''} 23 | ac_cv_prog_gcc=${ac_cv_prog_gcc=''yes''} 24 | ac_cv_prog_gcc_g=${ac_cv_prog_gcc_g=''yes''} 25 | -------------------------------------------------------------------------------- /benchmarks/mediabench/rasta/src/config.cache.old: -------------------------------------------------------------------------------- 1 | # This file is a shell script that caches the results of configure 2 | # tests run on this system so they can be shared between configure 3 | # scripts and configure runs. It is not useful on other systems. 4 | # If it contains results you don't want to keep, you may remove or edit it. 5 | # 6 | # By default, configure uses ./config.cache as the cache file, 7 | # creating it if it does not exist already. You can give configure 8 | # the --cache-file=FILE option to use a different cache file; that is 9 | # what configure does when it calls configure scripts in 10 | # subdirectories, so they share the cache. 11 | # Giving --cache-file=/dev/null disables caching, for debugging configure. 12 | # config.status only pays attention to the cache file if you give it the 13 | # --recheck option to rerun configure. 14 | # 15 | ac_cv_c_cross=${ac_cv_c_cross='no'} 16 | ac_cv_header_stdc=${ac_cv_header_stdc='yes'} 17 | ac_cv_lib_mat_matOpen=${ac_cv_lib_mat_matOpen='no'} 18 | ac_cv_lib_sp_sp_open=${ac_cv_lib_sp_sp_open='no'} 19 | ac_cv_path_PERL=${ac_cv_path_PERL='/opt/local/bin/perl'} 20 | ac_cv_prog_CC=${ac_cv_prog_CC='gcc'} 21 | ac_cv_prog_CPP=${ac_cv_prog_CPP='gcc -E'} 22 | ac_cv_prog_gcc=${ac_cv_prog_gcc='yes'} 23 | ac_cv_prog_gcc_g=${ac_cv_prog_gcc_g='yes'} 24 | -------------------------------------------------------------------------------- /benchmarks/mediabench/rasta/src/config.h: -------------------------------------------------------------------------------- 1 | /* config.h. Generated automatically by configure. */ 2 | /* config.h.in. Generated automatically from configure.in by autoheader. */ 3 | 4 | /* Define if you have the ANSI C header files. */ 5 | #define STDC_HEADERS 1 6 | 7 | /* #undef HAVE_LIBESPS */ 8 | /* #undef HAVE_LIBMAT */ 9 | /* #undef HAVE_LIBSOCKET */ 10 | /* #undef HAVE_LIBSP */ 11 | -------------------------------------------------------------------------------- /benchmarks/mediabench/rasta/src/config.h.in: -------------------------------------------------------------------------------- 1 | /* config.h.in. Generated automatically from configure.in by autoheader. */ 2 | 3 | /* Define if you have the ANSI C header files. */ 4 | #undef STDC_HEADERS 5 | 6 | #undef HAVE_LIBESPS 7 | #undef HAVE_LIBMAT 8 | #undef HAVE_LIBSOCKET 9 | #undef HAVE_LIBSP 10 | -------------------------------------------------------------------------------- /benchmarks/mediabench/rasta/src/config.h.old: -------------------------------------------------------------------------------- 1 | /* config.h. Generated automatically by configure. */ 2 | /* config.h.in. Generated automatically from configure.in by autoheader. */ 3 | 4 | /* Define if you have the ANSI C header files. */ 5 | #define STDC_HEADERS 1 6 | 7 | /* #undef HAVE_LIBESPS */ 8 | /* #undef HAVE_LIBMAT */ 9 | /* #undef HAVE_LIBSOCKET */ 10 | /* #undef HAVE_LIBSP */ 11 | -------------------------------------------------------------------------------- /benchmarks/mediabench/rasta/src/ex1_10.esps: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/srokicki/HybridDBT/ddfbe8b2a9a98fe9a8f4bab876614c7af5c002e1/benchmarks/mediabench/rasta/src/ex1_10.esps -------------------------------------------------------------------------------- /benchmarks/mediabench/rasta/src/ex1_10.wav: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/srokicki/HybridDBT/ddfbe8b2a9a98fe9a8f4bab876614c7af5c002e1/benchmarks/mediabench/rasta/src/ex1_10.wav -------------------------------------------------------------------------------- /benchmarks/mediabench/rasta/src/ex5.wav: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/srokicki/HybridDBT/ddfbe8b2a9a98fe9a8f4bab876614c7af5c002e1/benchmarks/mediabench/rasta/src/ex5.wav -------------------------------------------------------------------------------- /benchmarks/mediabench/rasta/src/ex5_c1.wav: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/srokicki/HybridDBT/ddfbe8b2a9a98fe9a8f4bab876614c7af5c002e1/benchmarks/mediabench/rasta/src/ex5_c1.wav -------------------------------------------------------------------------------- /benchmarks/mediabench/rasta/src/lsqsolve.1: -------------------------------------------------------------------------------- 1 | . $Header: /n/posole/da/bedk/speech/src/mapping/RCS/lsqsolve.1,v 1.3 1996/02/27 19:43:32 bedk Exp $ 2 | .\" A few notes: 3 | .\" i) Don't add extra blank lines - these appear in the output and 4 | .\" leaves too much space when display on the screen 5 | .\" 6 | .\" This title line needs to be changed to contain your program name, 7 | .\" but the date will be changed automatically by RCS. 8 | .TH LSQSOLVE 1 "$Date: 1996/02/27 19:43:32 $" ICSI 9 | .\" Don't do anything clever in the section below - it messes up the 10 | .\" whatis database that's accessed using "man -k" 11 | .SH NAME 12 | lsqsolve \- helper program for 13 | .I create_mapping 14 | .SH DESCRIPTION 15 | .I lsqsolve 16 | is a helper program for 17 | .I create_mapping 18 | that constructs and solves least-squares problems. It is not meant to be 19 | run in standalone mode. 20 | .SH AUTHOR 21 | Brian Kingsbury 22 | .SH SEE ALSO 23 | .BR create_mapping(1), rasta(1) 24 | -------------------------------------------------------------------------------- /benchmarks/mediabench/rasta/src/rasta.bb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/srokicki/HybridDBT/ddfbe8b2a9a98fe9a8f4bab876614c7af5c002e1/benchmarks/mediabench/rasta/src/rasta.bb -------------------------------------------------------------------------------- /benchmarks/mediabench/rasta/src/sphere/include/sp/header.h: -------------------------------------------------------------------------------- 1 | /* File: header.h */ 2 | #ifndef _HEADER_H 3 | #define _HEADER_H 4 | 5 | #define MAXFIELDS 8000 6 | 7 | #define FNULL ((struct field_t *) NULL) 8 | #define FVNULL ((struct field_t **) NULL) 9 | #define HDRNULL ((struct header_t *) NULL) 10 | 11 | #define DEFAULT_SAMPLE_CODING "pcm" 12 | #define DEFAULT_CHANNEL_COUNT 1 13 | #define DEFAULT_SAMPLE_RATE 16000 14 | #define DEFAULT_SAMPLE_BYTE_COUNT 2 15 | 16 | #define T_INTEGER 0 17 | #define T_REAL 1 18 | #define T_STRING 2 19 | 20 | #define N_STDFIELDS 11 21 | 22 | #define ERROR_EXIT_STATUS 1 23 | 24 | struct field_t { 25 | int type; 26 | char *name; 27 | char *data; 28 | int datalen; 29 | char *comment; 30 | }; 31 | 32 | struct header_t { 33 | int fc; 34 | struct field_t **fv; 35 | }; 36 | 37 | #endif 38 | 39 | 40 | -------------------------------------------------------------------------------- /benchmarks/mediabench/rasta/src/sphere/include/sp/shorten/shrt_sph.h: -------------------------------------------------------------------------------- 1 | /***********************************************************************/ 2 | /* File: shrt_sph.h */ 3 | /* Desc: Sphere to Shorten interface header file */ 4 | /* History: */ 5 | /* Mar 29, 1993: Creation */ 6 | /* May 5, 1994: Converted function dec's to ANSI */ 7 | /***********************************************************************/ 8 | 9 | #ifndef _SHRT_SPH_H_ 10 | #define _SHRT_SPH_H_ 11 | 12 | #if defined(__STDC__) || defined(__GNUC__) || defined(sgi) 13 | #define PROTO(ARGS) ARGS 14 | #else 15 | #define PROTO(ARGS) () 16 | #endif 17 | 18 | int shorten_set_flag PROTO((char *flag)) ; 19 | void shorten_reset_flags PROTO((void)) ; 20 | void shorten_init PROTO((void)) ; 21 | void shorten_dump_flags PROTO((FILE *fpout)) ; 22 | int shorten_set_ftype PROTO((char *ftype)) ; 23 | int shorten_set_channel_count PROTO((int nchannel)) ; 24 | int shorten_compress PROTO((FOB *fpin, FOB *fpout, char *status)) ; 25 | int shorten_uncompress PROTO((FOB *fpin, FOB *fpout, char *status)) ; 26 | 27 | int alaw2linear PROTO((unsigned char alawbyte)); 28 | unsigned char linear2alaw PROTO((int sample)); 29 | 30 | #endif 31 | -------------------------------------------------------------------------------- /benchmarks/mediabench/rasta/src/sphere/include/sp/shpack/shpk_sph.h: -------------------------------------------------------------------------------- 1 | /***********************************************************************/ 2 | /* File: shpk_sph.h */ 3 | /* Desc: Sphere to Shorten interface header file */ 4 | /* History: */ 5 | /* Mar 29, 1993: Creation */ 6 | /***********************************************************************/ 7 | 8 | #ifndef _SHPK_SPH_ 9 | #define _SHPK_SPH_ 10 | 11 | 12 | #if defined(__STDC__) || defined(__GNUC__) || defined(sgi) 13 | #define PROTO(ARGS) ARGS 14 | #else 15 | #define PROTO(ARGS) () 16 | #endif 17 | 18 | int shortpack_compress PROTO((FOB *fpin, FOB *fpout, char *status)) ; 19 | int shortpack_uncompress PROTO((FOB *fpin, FOB *fpout, struct header_t *header)) ; 20 | 21 | #endif 22 | -------------------------------------------------------------------------------- /benchmarks/mediabench/rasta/src/sphere/include/sp/spchksum.h: -------------------------------------------------------------------------------- 1 | 2 | /* 3 | * spchksum.h 4 | * Define a SPHERE checksum 5 | */ 6 | 7 | #ifndef _SPCHKSUM_H_ 8 | #define _SPCHKSUM_H_ 9 | 10 | typedef unsigned short SP_CHECKSUM; 11 | 12 | #endif 13 | -------------------------------------------------------------------------------- /benchmarks/mediabench/rasta/src/sphere/include/sp/spmacros.h: -------------------------------------------------------------------------------- 1 | /* 2 | * 3 | * file: spmacros.h 4 | * 5 | * Define some commonly used macros for data reading. 6 | * 7 | */ 8 | -------------------------------------------------------------------------------- /benchmarks/mediabench/rasta/src/sphere/include/sp/sysparam.h: -------------------------------------------------------------------------------- 1 | /* File: sysparams.h */ 2 | 3 | #ifndef _SYSPARAM_H_ 4 | #define _SYSPARAM_H_ 5 | 6 | #define FUNCTION 7 | 8 | #define LINESIZE 16384 9 | #define MAX_INTERNAL_WAVFORM 300000 10 | 11 | #define NISTLABEL "NIST_1A" 12 | #define ENDSTR "end_head" 13 | #define HDR_ID_SIZE 8 14 | #define HDR_SIZE_SIZE 8 15 | #define PAD_NEWLINES 24 16 | #define PAD_CHAR ' ' 17 | #define PAD_MULT 1024 18 | 19 | #define TMPEXT "-" 20 | #define TEMP_DIR "/tmp" 21 | #define TEMP_BASE_NAME "spt" 22 | 23 | 24 | #define SAMPLE_CODING_FIELD "sample_coding" 25 | #define SAMPLE_COUNT_FIELD "sample_count" 26 | #define SAMPLE_RATE_FIELD "sample_rate" 27 | #define SAMPLE_CHECKSUM_FIELD "sample_checksum" 28 | #define SAMPLE_SIG_BITS_FIELD "sample_sig_bits" 29 | #define SAMPLE_BF_FIELD "sample_byte_format" 30 | #define SAMPLE_N_BYTES_FIELD "sample_n_bytes" 31 | #define CHANNEL_COUNT_FIELD "channel_count" 32 | 33 | #define READMODE "r" 34 | #define UPDATEMODE "r+" 35 | #define WRITEMODE "w" 36 | #define TRUNCATE_UPDATEMODE "w+" 37 | 38 | struct fileheader_fixed { 39 | char header_id[HDR_ID_SIZE]; 40 | char header_size[HDR_SIZE_SIZE]; 41 | }; 42 | 43 | #endif 44 | -------------------------------------------------------------------------------- /benchmarks/mediabench/rasta/src/sphere/include/sp/version.h: -------------------------------------------------------------------------------- 1 | /* File: version.h */ 2 | 3 | #ifndef _VERSION_H_ 4 | #define _VERSION_H_ 5 | 6 | #define SPHERE_VERSION_STR "V2.6" 7 | 8 | #ifdef SPHERE_DECLARE_VERSION 9 | char *sp_version_str = "SPHERE Lib " SPHERE_VERSION_STR; 10 | #else 11 | extern char *sp_version_str; 12 | #endif 13 | 14 | #endif 15 | 16 | -------------------------------------------------------------------------------- /benchmarks/mediabench/rasta/src/sphere/include/sp/wavpack/wavpack.h: -------------------------------------------------------------------------------- 1 | #ifndef _WAVPACK_H_ 2 | #define _WAVPACK_H_ 3 | 4 | #define WAVPACK_MAGIC "wavpack1.0" 5 | 6 | #define RUNL 256 /* max run length <=256 */ 7 | /* compression format flags */ 8 | #define BYTE 0 /* 8 bit data format */ 9 | #define SHORT 0x20 /* 16 bit data format (else 8 bit) */ 10 | #define REV 0x10 /* byte reversed (SHORT only) */ 11 | #define OFFSET 0x8 /* 1 byte data offset */ 12 | #define DIFF 0x4 /* differential pcm */ 13 | #define STEREO 0x2 /* 2 channel */ 14 | #define CHAN1 0x1 /* channel nr (0 or 1) */ 15 | 16 | #define WAV 1 /* modes */ 17 | #define UNWAV 2 18 | #define WCAT 3 19 | 20 | #if defined(__STDC__) || defined(__GNUC__) || defined(sgi) 21 | #define PROTO(ARGS) ARGS 22 | #else 23 | #define PROTO(ARGS) () 24 | #endif 25 | 26 | void wavpack_set_monoflg PROTO((int val)); 27 | int wavpack_get_monoflg PROTO((void)); 28 | void wavpack_set_byteflg PROTO((int val)); 29 | int wavpack_get_byteflg PROTO((void)); 30 | int wavpack_set_vflg PROTO((int value)); 31 | int wavpack_set_oname PROTO((char *s)); 32 | void wavpack_set_oflg PROTO((int value)); 33 | int wavpack_set_progname PROTO((char *s)); 34 | int wavpack_free_progname PROTO((void)); 35 | void wavpack_dump_interface PROTO((FILE *fp)); 36 | int wavpack_pack PROTO((FOB *ifile, FOB *ofile)); 37 | int wavpack_unpack PROTO((FOB *ifile, FOB *ofile)); 38 | 39 | #endif 40 | -------------------------------------------------------------------------------- /benchmarks/mediabench/rasta/src/sphere/include/util/diskarr.h: -------------------------------------------------------------------------------- 1 | 2 | #ifndef DISKARR_HEADER 3 | #define DISKARR_HEADER 4 | 5 | typedef short DISK_T; 6 | 7 | #define init_val (DISK_T)0 8 | 9 | /* diskarr.c */ void init_disk_array PROTO((char *filename, int x, int y, int dbg)); 10 | /* diskarr.c */ void close_disk_array PROTO((void)); 11 | /* diskarr.c */ void check_arg PROTO((int x, int y)); 12 | /* diskarr.c */ void set_disk_element PROTO((int x, int y, DISK_T value)); 13 | /* diskarr.c */ void get_disk_element PROTO((int x, int y, DISK_T *value)); 14 | /* diskarr.c */ void print_disk_array PROTO((FILE *fp)); 15 | /* diskarr.c */ void disk_compute_entropy PROTO((int dbg, double *entropy_out)); 16 | 17 | 18 | #endif 19 | -------------------------------------------------------------------------------- /benchmarks/mediabench/rasta/src/sphere/include/util/err_util.h: -------------------------------------------------------------------------------- 1 | 2 | /* 3 | * 4 | * The Error return utility accessor 5 | * 6 | * 7 | */ 8 | 9 | #define RETURN_TYPE_ERROR 1 10 | #define RETURN_TYPE_WARNING 2 11 | #define RETURN_TYPE_SUCCESS 3 12 | #define RETURN_TYPE_CHILD 4 13 | 14 | #if defined(__STDC__) || defined(__GNUC__) || defined(sgi) 15 | #define PROTO(ARGS) ARGS 16 | #else 17 | #define PROTO(ARGS) () 18 | #endif 19 | 20 | void set_error_util_debug PROTO((int n)) ; 21 | void print_return_status PROTO((FILE *fp)) ; 22 | int return_status PROTO((void)) ; 23 | void set_return_util PROTO((char *proc_name, int return_code, char *mesg, int type)) ; 24 | char *get_return_status_message PROTO((void)); 25 | int return_type PROTO((void)); 26 | char *get_subordinated_message PROTO((void)); 27 | 28 | #define return_err(_proc,_code,_value,_mesg) \ 29 | { set_return_util(_proc,_code,_mesg,RETURN_TYPE_ERROR) ; return(_value); } 30 | 31 | #define return_success(_proc,_code,_value,_mesg) \ 32 | { set_return_util(_proc,_code,_mesg,RETURN_TYPE_SUCCESS) ; return(_value); } 33 | 34 | #define return_warn(_proc,_code,_value,_mesg) \ 35 | { set_return_util(_proc,_code,_mesg,RETURN_TYPE_WARNING) ; \ 36 | return(_value); } 37 | 38 | #define return_child(_proc,_type, _func) \ 39 | { _type _code; _code = (_type)_func; \ 40 | set_return_util(_proc,-1,"",RETURN_TYPE_CHILD) ; \ 41 | return(_code); } 42 | 43 | -------------------------------------------------------------------------------- /benchmarks/mediabench/rasta/src/sphere/include/util/hsgetopt.h: -------------------------------------------------------------------------------- 1 | /* 2 | * The function definitions for Henry Spencer's getopt code 3 | */ 4 | #if defined(__STDC__) || defined(__GNUC__) || defined(sgi) 5 | #define PROTO(ARGS) ARGS 6 | #else 7 | #define PROTO(ARGS) () 8 | #endif 9 | 10 | void hs_resetopt PROTO((void)) ; 11 | int hs_getopt PROTO((register int argc, register char **argv, char *optstring)) ; 12 | extern int hs_optind; 13 | extern char * hs_optarg; 14 | -------------------------------------------------------------------------------- /benchmarks/mediabench/rasta/src/sphere/include/util/min.h: -------------------------------------------------------------------------------- 1 | /* File: min.h */ 2 | 3 | #ifndef MIN 4 | #define MIN(x,y) ((x) < (y) ? (x) : (y)) 5 | #endif 6 | -------------------------------------------------------------------------------- /benchmarks/mediabench/rasta/src/sphere/include/util/mtrf.h: -------------------------------------------------------------------------------- 1 | 2 | #ifndef MTRF_HEADER 3 | #define MTRF_HEADER 4 | 5 | /* Header file: mtfr.h */ 6 | #if defined(__STDC__) || defined(__GNUC__) || defined(sgi) 7 | #define PROTO(ARGS) ARGS 8 | #else 9 | #define PROTO(ARGS) () 10 | #endif 11 | 12 | char *mtrf_malloc PROTO((int bytes)) ; 13 | char *mtrf_realloc PROTO((char *ptr, int bytes)) ; 14 | int mtrf_free PROTO((char *p)) ; 15 | char *mtrf_strdup PROTO((char *p)) ; 16 | void mtrf_set_dealloc PROTO((int n)) ; 17 | void mtrf_set_verbose PROTO((int n)) ; 18 | int mtrf_get_dealloc PROTO((void)) ; 19 | int mtrf_get_verbose PROTO((void)) ; 20 | 21 | #ifdef REDEFINE_ALLOCATION 22 | #ifdef malloc 23 | # undef malloc 24 | #endif 25 | #define malloc(_a) mtrf_malloc((_a)) 26 | 27 | #ifdef realloc 28 | # undef realloc 29 | #endif 30 | #define realloc(_a,_b) mtrf_realloc ((_a), (_b)) 31 | 32 | #ifdef free 33 | # undef free 34 | #endif 35 | #define free(_a) mtrf_free ((_a)) 36 | 37 | #ifdef strdup 38 | # undef strdup 39 | #endif 40 | #define strdup(_a) mtrf_strdup ((_a)) 41 | #endif 42 | 43 | 44 | 45 | 46 | #endif 47 | -------------------------------------------------------------------------------- /benchmarks/mediabench/rasta/src/sphere/include/util/pmmlcg.h: -------------------------------------------------------------------------------- 1 | /* 2 | 3 | file: pmmlcg.h 4 | Desc: Include file for the random number generator 5 | 6 | */ 7 | #include 8 | #if defined(__STDC__) || defined(__GNUC__) || defined(sgi) 9 | #define PROTO(ARGS) ARGS 10 | #else 11 | #define PROTO(ARGS) () 12 | #endif 13 | 14 | /* pmmlcg.c */ void init_seed PROTO((int new_seed, int verbose)) ; 15 | /* pmmlcg.c */ double pmmlcg PROTO((void)) ; 16 | /* pmmlcg.c */ int pmmlcg_newseed PROTO((void)) ; 17 | /* pmmlcg.c */ int pmmlcg_seed PROTO((void)) ; 18 | /* pmmlcg.c */ double exp_dist PROTO((double beta)) ; 19 | /* pmmlcg.c */ double M_erlang PROTO((double beta, int M)) ; 20 | /* pmmlcg.c */ int arbitrary_discrete_rv PROTO((double *prob_list, int num_prob)) ; 21 | -------------------------------------------------------------------------------- /benchmarks/mediabench/rasta/src/sphere/include/util/utillib.h: -------------------------------------------------------------------------------- 1 | 2 | 3 | #ifndef UTILLIB_HEADER 4 | #define UTILLIB_HEADER 5 | 6 | #include 7 | #include 8 | #include 9 | #include 10 | #include 11 | #include 12 | #include 13 | #include 14 | #include 15 | 16 | #include 17 | #include 18 | #include 19 | #include 20 | #include 21 | #include 22 | #include 23 | #include 24 | #include 25 | #include 26 | #include 27 | #include 28 | #include 29 | #include 30 | #include 31 | 32 | #endif 33 | -------------------------------------------------------------------------------- /benchmarks/mediabench/rasta/src/sphere2/nist/CMakeLists.txt: -------------------------------------------------------------------------------- 1 | add_subdirectory(src/lib/sp) 2 | add_subdirectory(src/lib/util) 3 | -------------------------------------------------------------------------------- /benchmarks/mediabench/rasta/src/sphere2/nist/Makefile: -------------------------------------------------------------------------------- 1 | # ********************************************************** 2 | # Project: ARG General libraries 3 | # SubTree: /export/ramoth4/bishop/simplescalar/mediabench/rasta/src/sphere2/nist 4 | # Filename: Makefile 5 | # Programmer: J. Fiscus 6 | # Organization: NIST/NCSL/DIV 670/Auto Rec. Group 7 | # Host System: SUN 4 OS/4.1.1 (UNIX) 8 | # Date Created: 05/28/92 9 | # 10 | # ********************************************************** 11 | # Makefile for Root Project Directory 12 | # ********************************************************** 13 | PROJDIR = /home/simon/Documents/Recherche/ST200/benchmark/Mediabench/rasta/src/sphere2/nist 14 | SUBS = src 15 | SHELL = /bin/sh 16 | 17 | it install depend clean: 18 | @-X=`pwd`; \ 19 | for i in $(SUBS); \ 20 | do echo '<<<' $$i '>>>'; cd $$X/$$i; \ 21 | make $@ PROJDIR=$(PROJDIR) ; done 22 | 23 | bare: clean 24 | rm -f bin/* lib/packages/*.pas lib/lib*.a 25 | -------------------------------------------------------------------------------- /benchmarks/mediabench/rasta/src/sphere2/nist/bin/gen_lord.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | 3 | sed -e "s/-lsp/-lsp_7/" \ 4 | -e "s/-lutil/-lutil_9/" \ 5 | -e "s/-lgp/-lgp_9/" \ 6 | -e "s/-lsnr/-lsnr_5/" \ 7 | -e "s/-lphone/-lphone_5/" \ 8 | -e "s/-lplex/-lplex_5/" \ 9 | -e "s/^\(-[a-z]*\)$/\1_1/" 10 | -------------------------------------------------------------------------------- /benchmarks/mediabench/rasta/src/sphere2/nist/bin/gen_setv.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | 3 | sed -e "s:PROJECT_DIR_NAME:${PROJECT_ROOT}:" \ 4 | -e "s: SRC_DIR_NAMES: ${SRC_DIR_NAMES}:" \ 5 | -e "s: LIBRARY_NAMES: ${LIBRARY_NAMES}:" \ 6 | -e "s: LIBRARY_NAME: ${LIBRARY_NAME}:" \ 7 | -e "s: SOURCE_NAMES: ${SOURCE_NAMES}:" \ 8 | -e "s: OBJECT_NAMES: ${OBJECT_NAMES}:" \ 9 | -e "s: EXECUTABLE_NAMES: ${EXECUTABLE_NAMES}:" \ 10 | -e "s: PROG_SUBDIR_NAMES: ${PROG_SUBDIR_NAMES}:" \ 11 | -e "s: LINK_LIBRARY_NAMES: ${LINK_LIBRARY_NAMES}:" \ 12 | -e "s: SCRIPT_FILES: ${SCRIPT_FILES}:" \ 13 | -e "s: COMPILER_COMMAND: ${COMPILER_COMMAND}:" \ 14 | -e "s: INSTALL_COMMAND: ${INSTALL_COMMAND}:" \ 15 | -e "s: RANLIB_COMMAND: ${RANLIB_COMMAND}:" \ 16 | -e "s: ARCHIVER_COMMAND: ${ARCHIVER_COMMAND}:" \ 17 | -e "s: LOCAL_CC_DEFINES: ${LOCAL_CC_DEFINES}:" 18 | -------------------------------------------------------------------------------- /benchmarks/mediabench/rasta/src/sphere2/nist/bin/h_header.sh: -------------------------------------------------------------------------------- 1 | #! /bin/sh 2 | # 3 | # Quick and dirty way of printing headers from 4 | # NIST format speech files. Since it uses 'sed' 5 | # it may not work on files with very long lines 6 | # or non-ascii characters in the header before 7 | # "end_head" 8 | 9 | if test $# -eq 0 ; then 10 | exec sed -n -e '/^end_head$/ q' -e p 11 | exit 1 12 | fi 13 | 14 | E=0 15 | for FILE 16 | do 17 | test $# -gt 1 && echo "::::: ${FILE} :::::" 18 | sed -n -e '/^end_head$/ q' -e p < "${FILE}" 19 | S=$? 20 | test $S -ne 0 && E=$S 21 | done 22 | 23 | exit $E 24 | -------------------------------------------------------------------------------- /benchmarks/mediabench/rasta/src/sphere2/nist/bin/raw2nist.sh: -------------------------------------------------------------------------------- 1 | #! /bin/sh 2 | # 3 | # Converts raw data to Sphere format speech file. 4 | # Uses h_add and h_edit. 5 | 6 | if [ $# -lt 2 ]; then 7 | echo "raw2nist { infile | - } outfile [h_edit options]" >&2 8 | exit 1 9 | fi 10 | 11 | IN="$1" 12 | OUT="$2" 13 | shift 2 14 | 15 | if [ "X${OUT}" = X- ]; then 16 | echo "raw2nist { infile | - } outfile [h_edit options]" >&2 17 | exit 1 18 | fi 19 | 20 | h_add "${IN}" "${OUT}" 21 | S=$? 22 | if [ "${S}" -ne 0 ]; then 23 | rm -f "${OUT}" 24 | exit "${S}" 25 | fi 26 | 27 | if [ $# -ne 0 ]; then 28 | h_edit "$@" "${OUT}" 29 | S=$? 30 | if [ "${S}" -ne 0 ]; then 31 | rm -f "${OUT}" 32 | exit "${S}" 33 | fi 34 | fi 35 | 36 | exit 0 37 | -------------------------------------------------------------------------------- /benchmarks/mediabench/rasta/src/sphere2/nist/doc/man/man1/h_add.1: -------------------------------------------------------------------------------- 1 | .\" @(#)h_add.1 91/05/20 NIST; 2 | .\" I Image Recognition Group 3 | .\" Stan Janet 4 | .\" 5 | .TH H_ADD 1 "20 May 91" 6 | 7 | .SH NAME 8 | .nf 9 | h_add \- add an empty NIST Sphere header to raw speech data 10 | .fi 11 | 12 | .SH SYNOPSIS 13 | .nf 14 | \fBh_add\fP [-vh] { infile | - } { outfile | - } 15 | .fi 16 | 17 | .SH DESCRIPTION 18 | \fBH_add\fP adds an empty NIST Sphere header to raw speech data. The option 19 | -v shows the sphere library version. The option -h shows the command usage. 20 | 21 | .SH EXAMPLES 22 | .PD 0 23 | .TP 24 | .B "h_add r.dat f.wav" 25 | adds an empty NIST Sphere header to the raw speech data in \fIr.dat\fP, storing 26 | the output in \fIf.wav\fP. 27 | .PD 28 | 29 | .SH SEE ALSO 30 | raw2nist(1) 31 | 32 | .SH AUTHOR 33 | Stan Janet (stan@jaguar.ncsl.nist.gov) 34 | -------------------------------------------------------------------------------- /benchmarks/mediabench/rasta/src/sphere2/nist/doc/man/man1/h_strip.1: -------------------------------------------------------------------------------- 1 | .\" @(#)h_strip.1 91/04/23 NIST; 2 | .\" I Image Recognition Group 3 | .\" Stan Janet 4 | .\" 5 | .TH H_STRIP 1 "21 May 91" 6 | 7 | .SH NAME 8 | .nf 9 | h_strip \- strip header Sphere-format speech file headers 10 | .fi 11 | 12 | .SH SYNOPSIS 13 | .nf 14 | \fBh_strip\fP { - | infile } { - | outfile } 15 | .fi 16 | 17 | .SH DESCRIPTION 18 | Sphere file headers can be removed using the utility \fIh_strip\fP. 19 | The Sphere file is read from the standard input if argument 20 | one is a dash, otherwise it is read from the file 21 | specified by argument one. 22 | The speech samples are written to the standard output if the 23 | second argument is a dash, otherwise they are written 24 | to the file specified by the argument two. 25 | 26 | .SH "EXIT STATUS" 27 | Zero if the header is removed successfully, non-zero otherwise 28 | 29 | .SH EXAMPLES 30 | .PD 0 31 | .TP 32 | .B "h_strip foo.wav foo.dat" 33 | .PD 34 | 35 | .SH AUTHOR 36 | Stan Janet (stan@jaguar.ncsl.nist.gov) 37 | -------------------------------------------------------------------------------- /benchmarks/mediabench/rasta/src/sphere2/nist/doc/man/man1/raw2nist.1: -------------------------------------------------------------------------------- 1 | .\" @(#)raw2nist.1 91/05/20 NIST; 2 | .\" I Image Recognition Group 3 | .\" Stan Janet 4 | .\" 5 | .TH RAW2NIST 1 "20 May 91" 6 | 7 | .SH NAME 8 | .nf 9 | raw2nist.sh \- convert raw speech data to NIST Sphere format file 10 | .fi 11 | 12 | .SH SYNOPSIS 13 | .nf 14 | \fBraw2nist.sh\fP { infile | - } outfile 15 | .fi 16 | 17 | .SH DESCRIPTION 18 | \fBRaw2nist\fP converts raw speech data to NIST Sphere format by first running 19 | \fIh_add(1)\fP, passing its first two arguments. 20 | If any other arguments appear on the command line, 21 | they are assumed to be options to \fIh_edit\fP. 22 | Therefore that program is run with those arguments followed by \fIoutfile\fP. 23 | 24 | .SH EXAMPLES 25 | .PD 0 26 | .TP 27 | .B "raw2nist.sh r1 r1.wav -Sdatabase_id=xyz -Isample_count=16000" 28 | converts raw file \fIr1\fP to NIST Sphere file \fIr1.wav\fP, adding string 29 | field \fIdatabase_id\fP and integer field \fIsample_count\fP. 30 | .PD 31 | 32 | .SH SEE ALSO 33 | h_add(1), h_edit(3) 34 | 35 | .SH NOTES 36 | Should have been called \fIraw2sphere\fP, 37 | but that name is too long for DOS. 38 | 39 | .SH AUTHOR 40 | Stan Janet (stan@jaguar.ncsl.nist.gov) 41 | -------------------------------------------------------------------------------- /benchmarks/mediabench/rasta/src/sphere2/nist/doc/man/man1/tsphere.1: -------------------------------------------------------------------------------- 1 | .\" @(#)tsphere.1 91/05/20 NIST; 2 | .\" I Image Recognition Group 3 | .\" Stan Janet 4 | .\" 5 | .TH TSHPERE 1 "20 May 91" 6 | 7 | .SH NAME 8 | .nf 9 | tsphere \- test the SPHERE speech waveform utilities 10 | .fi 11 | 12 | .SH SYNOPSIS 13 | .nf 14 | \fBtsphere\fP [-vmeMh] [-l n] -d data_dir 15 | .fi 16 | 17 | .SH DESCRIPTION 18 | 19 | \fBtsphere\fP performs a series of tests using the example SPHERE 20 | headered waveform files found in the 'lib/data' directory of the 21 | SPHERE distribution directory structure. If the program the program 22 | fails for any reason, contact Jon Fiscus immediately. 23 | 24 | The -h option prints a usage statement. 25 | 26 | The -v option turns on the verbose mode. 27 | 28 | The -m option allows memory allocation without actually freeing any 29 | allocated memory. 30 | 31 | The -M option does the same as the '-m' option, but the memory is 32 | deallocated. 33 | 34 | The -l option makes the program loop n times 35 | 36 | the -e turns on the debugging statements for the error utility. 37 | 38 | .SH EXAMPLES 39 | .PD 0 40 | .TP 41 | .B "tsphere -d lib/data" 42 | .PD 43 | 44 | 45 | .SH AUTHOR 46 | Jon Fiscus (jon@jaguar.ncsl.nist.gov) 47 | -------------------------------------------------------------------------------- /benchmarks/mediabench/rasta/src/sphere2/nist/include/sp/header.h: -------------------------------------------------------------------------------- 1 | /* File: header.h */ 2 | #ifndef _HEADER_H 3 | #define _HEADER_H 4 | 5 | #define MAXFIELDS 8000 6 | 7 | #define FNULL ((struct field_t *) NULL) 8 | #define FVNULL ((struct field_t **) NULL) 9 | #define HDRNULL ((struct header_t *) NULL) 10 | 11 | #define DEFAULT_SAMPLE_CODING "pcm" 12 | #define DEFAULT_CHANNEL_COUNT 1 13 | #define DEFAULT_SAMPLE_RATE 16000 14 | #define DEFAULT_SAMPLE_BYTE_COUNT 2 15 | 16 | #define T_INTEGER 0 17 | #define T_REAL 1 18 | #define T_STRING 2 19 | 20 | #define N_STDFIELDS 11 21 | 22 | #define ERROR_EXIT_STATUS 1 23 | 24 | struct field_t { 25 | int type; 26 | char *name; 27 | char *data; 28 | int datalen; 29 | char *comment; 30 | }; 31 | 32 | struct header_t { 33 | int fc; 34 | struct field_t **fv; 35 | }; 36 | 37 | #endif 38 | 39 | 40 | -------------------------------------------------------------------------------- /benchmarks/mediabench/rasta/src/sphere2/nist/include/sp/shorten/shrt_sph.h: -------------------------------------------------------------------------------- 1 | /***********************************************************************/ 2 | /* File: shrt_sph.h */ 3 | /* Desc: Sphere to Shorten interface header file */ 4 | /* History: */ 5 | /* Mar 29, 1993: Creation */ 6 | /* May 5, 1994: Converted function dec's to ANSI */ 7 | /***********************************************************************/ 8 | 9 | #ifndef _SHRT_SPH_H_ 10 | #define _SHRT_SPH_H_ 11 | 12 | #if defined(__STDC__) || defined(__GNUC__) || defined(sgi) 13 | #define PROTO(ARGS) ARGS 14 | #else 15 | #define PROTO(ARGS) () 16 | #endif 17 | 18 | int shorten_set_flag PROTO((char *flag)) ; 19 | void shorten_reset_flags PROTO((void)) ; 20 | void shorten_init PROTO((void)) ; 21 | void shorten_dump_flags PROTO((FILE *fpout)) ; 22 | int shorten_set_ftype PROTO((char *ftype)) ; 23 | int shorten_set_channel_count PROTO((int nchannel)) ; 24 | int shorten_compress PROTO((FOB *fpin, FOB *fpout, char *status)) ; 25 | int shorten_uncompress PROTO((FOB *fpin, FOB *fpout, char *status)) ; 26 | 27 | int alaw2linear PROTO((unsigned char alawbyte)); 28 | unsigned char linear2alaw PROTO((int sample)); 29 | 30 | #endif 31 | -------------------------------------------------------------------------------- /benchmarks/mediabench/rasta/src/sphere2/nist/include/sp/shpack/shpk_sph.h: -------------------------------------------------------------------------------- 1 | /***********************************************************************/ 2 | /* File: shpk_sph.h */ 3 | /* Desc: Sphere to Shorten interface header file */ 4 | /* History: */ 5 | /* Mar 29, 1993: Creation */ 6 | /***********************************************************************/ 7 | 8 | #ifndef _SHPK_SPH_ 9 | #define _SHPK_SPH_ 10 | 11 | 12 | #if defined(__STDC__) || defined(__GNUC__) || defined(sgi) 13 | #define PROTO(ARGS) ARGS 14 | #else 15 | #define PROTO(ARGS) () 16 | #endif 17 | 18 | int shortpack_compress PROTO((FOB *fpin, FOB *fpout, char *status)) ; 19 | int shortpack_uncompress PROTO((FOB *fpin, FOB *fpout, struct header_t *header)) ; 20 | 21 | #endif 22 | -------------------------------------------------------------------------------- /benchmarks/mediabench/rasta/src/sphere2/nist/include/sp/spchksum.h: -------------------------------------------------------------------------------- 1 | 2 | /* 3 | * spchksum.h 4 | * Define a SPHERE checksum 5 | */ 6 | 7 | #ifndef _SPCHKSUM_H_ 8 | #define _SPCHKSUM_H_ 9 | 10 | typedef unsigned short SP_CHECKSUM; 11 | 12 | #endif 13 | -------------------------------------------------------------------------------- /benchmarks/mediabench/rasta/src/sphere2/nist/include/sp/spmacros.h: -------------------------------------------------------------------------------- 1 | /* 2 | * 3 | * file: spmacros.h 4 | * 5 | * Define some commonly used macros for data reading. 6 | * 7 | */ 8 | -------------------------------------------------------------------------------- /benchmarks/mediabench/rasta/src/sphere2/nist/include/sp/sysparam.h: -------------------------------------------------------------------------------- 1 | /* File: sysparams.h */ 2 | 3 | #ifndef _SYSPARAM_H_ 4 | #define _SYSPARAM_H_ 5 | 6 | #define FUNCTION 7 | 8 | #define LINESIZE 16384 9 | #define MAX_INTERNAL_WAVFORM 300000 10 | 11 | #define NISTLABEL "NIST_1A" 12 | #define ENDSTR "end_head" 13 | #define HDR_ID_SIZE 8 14 | #define HDR_SIZE_SIZE 8 15 | #define PAD_NEWLINES 24 16 | #define PAD_CHAR ' ' 17 | #define PAD_MULT 1024 18 | 19 | #define TMPEXT "-" 20 | #define TEMP_DIR "/tmp" 21 | #define TEMP_BASE_NAME "spt" 22 | 23 | 24 | #define SAMPLE_CODING_FIELD "sample_coding" 25 | #define SAMPLE_COUNT_FIELD "sample_count" 26 | #define SAMPLE_RATE_FIELD "sample_rate" 27 | #define SAMPLE_CHECKSUM_FIELD "sample_checksum" 28 | #define SAMPLE_SIG_BITS_FIELD "sample_sig_bits" 29 | #define SAMPLE_BF_FIELD "sample_byte_format" 30 | #define SAMPLE_N_BYTES_FIELD "sample_n_bytes" 31 | #define CHANNEL_COUNT_FIELD "channel_count" 32 | 33 | #define READMODE "r" 34 | #define UPDATEMODE "r+" 35 | #define WRITEMODE "w" 36 | #define TRUNCATE_UPDATEMODE "w+" 37 | 38 | struct fileheader_fixed { 39 | char header_id[HDR_ID_SIZE]; 40 | char header_size[HDR_SIZE_SIZE]; 41 | }; 42 | 43 | #endif 44 | -------------------------------------------------------------------------------- /benchmarks/mediabench/rasta/src/sphere2/nist/include/sp/version.h: -------------------------------------------------------------------------------- 1 | /* File: version.h */ 2 | 3 | #ifndef _VERSION_H_ 4 | #define _VERSION_H_ 5 | 6 | #define SPHERE_VERSION_STR "V2.6" 7 | 8 | #ifdef SPHERE_DECLARE_VERSION 9 | char *sp_version_str = "SPHERE Lib " SPHERE_VERSION_STR; 10 | #else 11 | extern char *sp_version_str; 12 | #endif 13 | 14 | #endif 15 | 16 | -------------------------------------------------------------------------------- /benchmarks/mediabench/rasta/src/sphere2/nist/include/sp/wavpack/wavpack.h: -------------------------------------------------------------------------------- 1 | #ifndef _WAVPACK_H_ 2 | #define _WAVPACK_H_ 3 | 4 | #define WAVPACK_MAGIC "wavpack1.0" 5 | 6 | #define RUNL 256 /* max run length <=256 */ 7 | /* compression format flags */ 8 | #define BYTE 0 /* 8 bit data format */ 9 | #define SHORT 0x20 /* 16 bit data format (else 8 bit) */ 10 | #define REV 0x10 /* byte reversed (SHORT only) */ 11 | #define OFFSET 0x8 /* 1 byte data offset */ 12 | #define DIFF 0x4 /* differential pcm */ 13 | #define STEREO 0x2 /* 2 channel */ 14 | #define CHAN1 0x1 /* channel nr (0 or 1) */ 15 | 16 | #define WAV 1 /* modes */ 17 | #define UNWAV 2 18 | #define WCAT 3 19 | 20 | #if defined(__STDC__) || defined(__GNUC__) || defined(sgi) 21 | #define PROTO(ARGS) ARGS 22 | #else 23 | #define PROTO(ARGS) () 24 | #endif 25 | 26 | void wavpack_set_monoflg PROTO((int val)); 27 | int wavpack_get_monoflg PROTO((void)); 28 | void wavpack_set_byteflg PROTO((int val)); 29 | int wavpack_get_byteflg PROTO((void)); 30 | int wavpack_set_vflg PROTO((int value)); 31 | int wavpack_set_oname PROTO((char *s)); 32 | void wavpack_set_oflg PROTO((int value)); 33 | int wavpack_set_progname PROTO((char *s)); 34 | int wavpack_free_progname PROTO((void)); 35 | void wavpack_dump_interface PROTO((FILE *fp)); 36 | int wavpack_pack PROTO((FOB *ifile, FOB *ofile)); 37 | int wavpack_unpack PROTO((FOB *ifile, FOB *ofile)); 38 | 39 | #endif 40 | -------------------------------------------------------------------------------- /benchmarks/mediabench/rasta/src/sphere2/nist/include/util/diskarr.h: -------------------------------------------------------------------------------- 1 | 2 | #ifndef DISKARR_HEADER 3 | #define DISKARR_HEADER 4 | 5 | typedef short DISK_T; 6 | 7 | #define init_val (DISK_T)0 8 | 9 | /* diskarr.c */ void init_disk_array PROTO((char *filename, int x, int y, int dbg)); 10 | /* diskarr.c */ void close_disk_array PROTO((void)); 11 | /* diskarr.c */ void check_arg PROTO((int x, int y)); 12 | /* diskarr.c */ void set_disk_element PROTO((int x, int y, DISK_T value)); 13 | /* diskarr.c */ void get_disk_element PROTO((int x, int y, DISK_T *value)); 14 | /* diskarr.c */ void print_disk_array PROTO((FILE *fp)); 15 | /* diskarr.c */ void disk_compute_entropy PROTO((int dbg, double *entropy_out)); 16 | 17 | 18 | #endif 19 | -------------------------------------------------------------------------------- /benchmarks/mediabench/rasta/src/sphere2/nist/include/util/err_util.h: -------------------------------------------------------------------------------- 1 | 2 | /* 3 | * 4 | * The Error return utility accessor 5 | * 6 | * 7 | */ 8 | 9 | #define RETURN_TYPE_ERROR 1 10 | #define RETURN_TYPE_WARNING 2 11 | #define RETURN_TYPE_SUCCESS 3 12 | #define RETURN_TYPE_CHILD 4 13 | 14 | #if defined(__STDC__) || defined(__GNUC__) || defined(sgi) 15 | #define PROTO(ARGS) ARGS 16 | #else 17 | #define PROTO(ARGS) () 18 | #endif 19 | 20 | void set_error_util_debug PROTO((int n)) ; 21 | void print_return_status PROTO((FILE *fp)) ; 22 | int return_status PROTO((void)) ; 23 | void set_return_util PROTO((char *proc_name, int return_code, char *mesg, int type)) ; 24 | char *get_return_status_message PROTO((void)); 25 | int return_type PROTO((void)); 26 | char *get_subordinated_message PROTO((void)); 27 | 28 | #define return_err(_proc,_code,_value,_mesg) \ 29 | { set_return_util(_proc,_code,_mesg,RETURN_TYPE_ERROR) ; return(_value); } 30 | 31 | #define return_success(_proc,_code,_value,_mesg) \ 32 | { set_return_util(_proc,_code,_mesg,RETURN_TYPE_SUCCESS) ; return(_value); } 33 | 34 | #define return_warn(_proc,_code,_value,_mesg) \ 35 | { set_return_util(_proc,_code,_mesg,RETURN_TYPE_WARNING) ; \ 36 | return(_value); } 37 | 38 | #define return_child(_proc,_type, _func) \ 39 | { _type _code; _code = (_type)_func; \ 40 | set_return_util(_proc,-1,"",RETURN_TYPE_CHILD) ; \ 41 | return(_code); } 42 | 43 | -------------------------------------------------------------------------------- /benchmarks/mediabench/rasta/src/sphere2/nist/include/util/hsgetopt.h: -------------------------------------------------------------------------------- 1 | /* 2 | * The function definitions for Henry Spencer's getopt code 3 | */ 4 | #if defined(__STDC__) || defined(__GNUC__) || defined(sgi) 5 | #define PROTO(ARGS) ARGS 6 | #else 7 | #define PROTO(ARGS) () 8 | #endif 9 | 10 | void hs_resetopt PROTO((void)) ; 11 | int hs_getopt PROTO((register int argc, register char **argv, char *optstring)) ; 12 | extern int hs_optind; 13 | extern char * hs_optarg; 14 | -------------------------------------------------------------------------------- /benchmarks/mediabench/rasta/src/sphere2/nist/include/util/min.h: -------------------------------------------------------------------------------- 1 | /* File: min.h */ 2 | 3 | #ifndef MIN 4 | #define MIN(x,y) ((x) < (y) ? (x) : (y)) 5 | #endif 6 | -------------------------------------------------------------------------------- /benchmarks/mediabench/rasta/src/sphere2/nist/include/util/mtrf.h: -------------------------------------------------------------------------------- 1 | 2 | #ifndef MTRF_HEADER 3 | #define MTRF_HEADER 4 | 5 | /* Header file: mtfr.h */ 6 | #if defined(__STDC__) || defined(__GNUC__) || defined(sgi) 7 | #define PROTO(ARGS) ARGS 8 | #else 9 | #define PROTO(ARGS) () 10 | #endif 11 | 12 | char *mtrf_malloc PROTO((int bytes)) ; 13 | char *mtrf_realloc PROTO((char *ptr, int bytes)) ; 14 | int mtrf_free PROTO((char *p)) ; 15 | char *mtrf_strdup PROTO((char *p)) ; 16 | void mtrf_set_dealloc PROTO((int n)) ; 17 | void mtrf_set_verbose PROTO((int n)) ; 18 | int mtrf_get_dealloc PROTO((void)) ; 19 | int mtrf_get_verbose PROTO((void)) ; 20 | 21 | #ifdef REDEFINE_ALLOCATION 22 | #ifdef malloc 23 | # undef malloc 24 | #endif 25 | #define malloc(_a) mtrf_malloc((_a)) 26 | 27 | #ifdef realloc 28 | # undef realloc 29 | #endif 30 | #define realloc(_a,_b) mtrf_realloc ((_a), (_b)) 31 | 32 | #ifdef free 33 | # undef free 34 | #endif 35 | #define free(_a) mtrf_free ((_a)) 36 | 37 | #ifdef strdup 38 | # undef strdup 39 | #endif 40 | #define strdup(_a) mtrf_strdup ((_a)) 41 | #endif 42 | 43 | 44 | 45 | 46 | #endif 47 | -------------------------------------------------------------------------------- /benchmarks/mediabench/rasta/src/sphere2/nist/include/util/pmmlcg.h: -------------------------------------------------------------------------------- 1 | /* 2 | 3 | file: pmmlcg.h 4 | Desc: Include file for the random number generator 5 | 6 | */ 7 | #include 8 | #if defined(__STDC__) || defined(__GNUC__) || defined(sgi) 9 | #define PROTO(ARGS) ARGS 10 | #else 11 | #define PROTO(ARGS) () 12 | #endif 13 | 14 | /* pmmlcg.c */ void init_seed PROTO((int new_seed, int verbose)) ; 15 | /* pmmlcg.c */ double pmmlcg PROTO((void)) ; 16 | /* pmmlcg.c */ int pmmlcg_newseed PROTO((void)) ; 17 | /* pmmlcg.c */ int pmmlcg_seed PROTO((void)) ; 18 | /* pmmlcg.c */ double exp_dist PROTO((double beta)) ; 19 | /* pmmlcg.c */ double M_erlang PROTO((double beta, int M)) ; 20 | /* pmmlcg.c */ int arbitrary_discrete_rv PROTO((double *prob_list, int num_prob)) ; 21 | -------------------------------------------------------------------------------- /benchmarks/mediabench/rasta/src/sphere2/nist/include/util/utillib.h: -------------------------------------------------------------------------------- 1 | 2 | 3 | #ifndef UTILLIB_HEADER 4 | #define UTILLIB_HEADER 5 | 6 | #include 7 | #include 8 | #include 9 | #include 10 | #include 11 | #include 12 | #include 13 | #include 14 | #include 15 | 16 | #include 17 | #include 18 | #include 19 | #include 20 | #include 21 | #include 22 | #include 23 | #include 24 | #include 25 | #include 26 | #include 27 | #include 28 | #include 29 | #include 30 | #include 31 | 32 | #endif 33 | -------------------------------------------------------------------------------- /benchmarks/mediabench/rasta/src/sphere2/nist/lib/data/ex1_01.wav: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/srokicki/HybridDBT/ddfbe8b2a9a98fe9a8f4bab876614c7af5c002e1/benchmarks/mediabench/rasta/src/sphere2/nist/lib/data/ex1_01.wav -------------------------------------------------------------------------------- /benchmarks/mediabench/rasta/src/sphere2/nist/lib/data/ex1_01sh.wav: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/srokicki/HybridDBT/ddfbe8b2a9a98fe9a8f4bab876614c7af5c002e1/benchmarks/mediabench/rasta/src/sphere2/nist/lib/data/ex1_01sh.wav -------------------------------------------------------------------------------- /benchmarks/mediabench/rasta/src/sphere2/nist/lib/data/ex1_01st.wav: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/srokicki/HybridDBT/ddfbe8b2a9a98fe9a8f4bab876614c7af5c002e1/benchmarks/mediabench/rasta/src/sphere2/nist/lib/data/ex1_01st.wav -------------------------------------------------------------------------------- /benchmarks/mediabench/rasta/src/sphere2/nist/lib/data/ex1_01wp.wav: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/srokicki/HybridDBT/ddfbe8b2a9a98fe9a8f4bab876614c7af5c002e1/benchmarks/mediabench/rasta/src/sphere2/nist/lib/data/ex1_01wp.wav -------------------------------------------------------------------------------- /benchmarks/mediabench/rasta/src/sphere2/nist/lib/data/ex1_10.wav: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/srokicki/HybridDBT/ddfbe8b2a9a98fe9a8f4bab876614c7af5c002e1/benchmarks/mediabench/rasta/src/sphere2/nist/lib/data/ex1_10.wav -------------------------------------------------------------------------------- /benchmarks/mediabench/rasta/src/sphere2/nist/lib/data/ex1_10sh.wav: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/srokicki/HybridDBT/ddfbe8b2a9a98fe9a8f4bab876614c7af5c002e1/benchmarks/mediabench/rasta/src/sphere2/nist/lib/data/ex1_10sh.wav -------------------------------------------------------------------------------- /benchmarks/mediabench/rasta/src/sphere2/nist/lib/data/ex1_10st.wav: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/srokicki/HybridDBT/ddfbe8b2a9a98fe9a8f4bab876614c7af5c002e1/benchmarks/mediabench/rasta/src/sphere2/nist/lib/data/ex1_10st.wav -------------------------------------------------------------------------------- /benchmarks/mediabench/rasta/src/sphere2/nist/lib/data/ex1_10st.wvc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/srokicki/HybridDBT/ddfbe8b2a9a98fe9a8f4bab876614c7af5c002e1/benchmarks/mediabench/rasta/src/sphere2/nist/lib/data/ex1_10st.wvc -------------------------------------------------------------------------------- /benchmarks/mediabench/rasta/src/sphere2/nist/lib/data/ex1_10wp.wav: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/srokicki/HybridDBT/ddfbe8b2a9a98fe9a8f4bab876614c7af5c002e1/benchmarks/mediabench/rasta/src/sphere2/nist/lib/data/ex1_10wp.wav -------------------------------------------------------------------------------- /benchmarks/mediabench/rasta/src/sphere2/nist/lib/data/ex2_01.wav: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/srokicki/HybridDBT/ddfbe8b2a9a98fe9a8f4bab876614c7af5c002e1/benchmarks/mediabench/rasta/src/sphere2/nist/lib/data/ex2_01.wav -------------------------------------------------------------------------------- /benchmarks/mediabench/rasta/src/sphere2/nist/lib/data/ex2_01st.wav: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/srokicki/HybridDBT/ddfbe8b2a9a98fe9a8f4bab876614c7af5c002e1/benchmarks/mediabench/rasta/src/sphere2/nist/lib/data/ex2_01st.wav -------------------------------------------------------------------------------- /benchmarks/mediabench/rasta/src/sphere2/nist/lib/data/ex2_01wp.wav: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/srokicki/HybridDBT/ddfbe8b2a9a98fe9a8f4bab876614c7af5c002e1/benchmarks/mediabench/rasta/src/sphere2/nist/lib/data/ex2_01wp.wav -------------------------------------------------------------------------------- /benchmarks/mediabench/rasta/src/sphere2/nist/lib/data/ex2_10.wav: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/srokicki/HybridDBT/ddfbe8b2a9a98fe9a8f4bab876614c7af5c002e1/benchmarks/mediabench/rasta/src/sphere2/nist/lib/data/ex2_10.wav -------------------------------------------------------------------------------- /benchmarks/mediabench/rasta/src/sphere2/nist/lib/data/ex2_10st.wav: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/srokicki/HybridDBT/ddfbe8b2a9a98fe9a8f4bab876614c7af5c002e1/benchmarks/mediabench/rasta/src/sphere2/nist/lib/data/ex2_10st.wav -------------------------------------------------------------------------------- /benchmarks/mediabench/rasta/src/sphere2/nist/lib/data/ex2_10wp.wav: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/srokicki/HybridDBT/ddfbe8b2a9a98fe9a8f4bab876614c7af5c002e1/benchmarks/mediabench/rasta/src/sphere2/nist/lib/data/ex2_10wp.wav -------------------------------------------------------------------------------- /benchmarks/mediabench/rasta/src/sphere2/nist/lib/data/ex4.wav: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/srokicki/HybridDBT/ddfbe8b2a9a98fe9a8f4bab876614c7af5c002e1/benchmarks/mediabench/rasta/src/sphere2/nist/lib/data/ex4.wav -------------------------------------------------------------------------------- /benchmarks/mediabench/rasta/src/sphere2/nist/lib/data/ex4_01.wav: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/srokicki/HybridDBT/ddfbe8b2a9a98fe9a8f4bab876614c7af5c002e1/benchmarks/mediabench/rasta/src/sphere2/nist/lib/data/ex4_01.wav -------------------------------------------------------------------------------- /benchmarks/mediabench/rasta/src/sphere2/nist/lib/data/ex4_10.wav: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/srokicki/HybridDBT/ddfbe8b2a9a98fe9a8f4bab876614c7af5c002e1/benchmarks/mediabench/rasta/src/sphere2/nist/lib/data/ex4_10.wav -------------------------------------------------------------------------------- /benchmarks/mediabench/rasta/src/sphere2/nist/lib/data/ex4_sh.wav: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/srokicki/HybridDBT/ddfbe8b2a9a98fe9a8f4bab876614c7af5c002e1/benchmarks/mediabench/rasta/src/sphere2/nist/lib/data/ex4_sh.wav -------------------------------------------------------------------------------- /benchmarks/mediabench/rasta/src/sphere2/nist/lib/data/ex4_wp.wav: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/srokicki/HybridDBT/ddfbe8b2a9a98fe9a8f4bab876614c7af5c002e1/benchmarks/mediabench/rasta/src/sphere2/nist/lib/data/ex4_wp.wav -------------------------------------------------------------------------------- /benchmarks/mediabench/rasta/src/sphere2/nist/lib/data/ex5.wav: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/srokicki/HybridDBT/ddfbe8b2a9a98fe9a8f4bab876614c7af5c002e1/benchmarks/mediabench/rasta/src/sphere2/nist/lib/data/ex5.wav -------------------------------------------------------------------------------- /benchmarks/mediabench/rasta/src/sphere2/nist/lib/data/ex5_12.wav: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/srokicki/HybridDBT/ddfbe8b2a9a98fe9a8f4bab876614c7af5c002e1/benchmarks/mediabench/rasta/src/sphere2/nist/lib/data/ex5_12.wav -------------------------------------------------------------------------------- /benchmarks/mediabench/rasta/src/sphere2/nist/lib/data/ex5_12_p.wav: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/srokicki/HybridDBT/ddfbe8b2a9a98fe9a8f4bab876614c7af5c002e1/benchmarks/mediabench/rasta/src/sphere2/nist/lib/data/ex5_12_p.wav -------------------------------------------------------------------------------- /benchmarks/mediabench/rasta/src/sphere2/nist/lib/data/ex5_c1.wav: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/srokicki/HybridDBT/ddfbe8b2a9a98fe9a8f4bab876614c7af5c002e1/benchmarks/mediabench/rasta/src/sphere2/nist/lib/data/ex5_c1.wav -------------------------------------------------------------------------------- /benchmarks/mediabench/rasta/src/sphere2/nist/lib/data/ex5_c1_p.wav: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/srokicki/HybridDBT/ddfbe8b2a9a98fe9a8f4bab876614c7af5c002e1/benchmarks/mediabench/rasta/src/sphere2/nist/lib/data/ex5_c1_p.wav -------------------------------------------------------------------------------- /benchmarks/mediabench/rasta/src/sphere2/nist/lib/data/ex5_c2.wav: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/srokicki/HybridDBT/ddfbe8b2a9a98fe9a8f4bab876614c7af5c002e1/benchmarks/mediabench/rasta/src/sphere2/nist/lib/data/ex5_c2.wav -------------------------------------------------------------------------------- /benchmarks/mediabench/rasta/src/sphere2/nist/lib/data/ex5_c2_p.wav: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/srokicki/HybridDBT/ddfbe8b2a9a98fe9a8f4bab876614c7af5c002e1/benchmarks/mediabench/rasta/src/sphere2/nist/lib/data/ex5_c2_p.wav -------------------------------------------------------------------------------- /benchmarks/mediabench/rasta/src/sphere2/nist/lib/data/ex5_p.wav: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/srokicki/HybridDBT/ddfbe8b2a9a98fe9a8f4bab876614c7af5c002e1/benchmarks/mediabench/rasta/src/sphere2/nist/lib/data/ex5_p.wav -------------------------------------------------------------------------------- /benchmarks/mediabench/rasta/src/sphere2/nist/lib/data/ex5_p01.wav: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/srokicki/HybridDBT/ddfbe8b2a9a98fe9a8f4bab876614c7af5c002e1/benchmarks/mediabench/rasta/src/sphere2/nist/lib/data/ex5_p01.wav -------------------------------------------------------------------------------- /benchmarks/mediabench/rasta/src/sphere2/nist/lib/data/ex5_p_sh.wav: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/srokicki/HybridDBT/ddfbe8b2a9a98fe9a8f4bab876614c7af5c002e1/benchmarks/mediabench/rasta/src/sphere2/nist/lib/data/ex5_p_sh.wav -------------------------------------------------------------------------------- /benchmarks/mediabench/rasta/src/sphere2/nist/lib/data/ex5_p_wp.wav: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/srokicki/HybridDBT/ddfbe8b2a9a98fe9a8f4bab876614c7af5c002e1/benchmarks/mediabench/rasta/src/sphere2/nist/lib/data/ex5_p_wp.wav -------------------------------------------------------------------------------- /benchmarks/mediabench/rasta/src/sphere2/nist/lib/data/ex5_sh.wav: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/srokicki/HybridDBT/ddfbe8b2a9a98fe9a8f4bab876614c7af5c002e1/benchmarks/mediabench/rasta/src/sphere2/nist/lib/data/ex5_sh.wav -------------------------------------------------------------------------------- /benchmarks/mediabench/rasta/src/sphere2/nist/lib/data/ex5_wp.wav: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/srokicki/HybridDBT/ddfbe8b2a9a98fe9a8f4bab876614c7af5c002e1/benchmarks/mediabench/rasta/src/sphere2/nist/lib/data/ex5_wp.wav -------------------------------------------------------------------------------- /benchmarks/mediabench/rasta/src/sphere2/nist/lib/data/ex6.wav: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/srokicki/HybridDBT/ddfbe8b2a9a98fe9a8f4bab876614c7af5c002e1/benchmarks/mediabench/rasta/src/sphere2/nist/lib/data/ex6.wav -------------------------------------------------------------------------------- /benchmarks/mediabench/rasta/src/sphere2/nist/lib/data/ex7.wav: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/srokicki/HybridDBT/ddfbe8b2a9a98fe9a8f4bab876614c7af5c002e1/benchmarks/mediabench/rasta/src/sphere2/nist/lib/data/ex7.wav -------------------------------------------------------------------------------- /benchmarks/mediabench/rasta/src/sphere2/nist/lib/data/ex7_01.wav: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/srokicki/HybridDBT/ddfbe8b2a9a98fe9a8f4bab876614c7af5c002e1/benchmarks/mediabench/rasta/src/sphere2/nist/lib/data/ex7_01.wav -------------------------------------------------------------------------------- /benchmarks/mediabench/rasta/src/sphere2/nist/lib/data/ex7_10.wav: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/srokicki/HybridDBT/ddfbe8b2a9a98fe9a8f4bab876614c7af5c002e1/benchmarks/mediabench/rasta/src/sphere2/nist/lib/data/ex7_10.wav -------------------------------------------------------------------------------- /benchmarks/mediabench/rasta/src/sphere2/nist/lib/data/ex7_sh.wav: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/srokicki/HybridDBT/ddfbe8b2a9a98fe9a8f4bab876614c7af5c002e1/benchmarks/mediabench/rasta/src/sphere2/nist/lib/data/ex7_sh.wav -------------------------------------------------------------------------------- /benchmarks/mediabench/rasta/src/sphere2/nist/lib/data/ex7_wp.wav: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/srokicki/HybridDBT/ddfbe8b2a9a98fe9a8f4bab876614c7af5c002e1/benchmarks/mediabench/rasta/src/sphere2/nist/lib/data/ex7_wp.wav -------------------------------------------------------------------------------- /benchmarks/mediabench/rasta/src/sphere2/nist/lib/data/swb.wav: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/srokicki/HybridDBT/ddfbe8b2a9a98fe9a8f4bab876614c7af5c002e1/benchmarks/mediabench/rasta/src/sphere2/nist/lib/data/swb.wav -------------------------------------------------------------------------------- /benchmarks/mediabench/rasta/src/sphere2/nist/lib/makes/make_lib.txt: -------------------------------------------------------------------------------- 1 | # ********************************************************** 2 | # Project: ARG General libraries 3 | # SubTree: PROJECT_DIR_NAME/src/lib_fcns 4 | # Filename: Makefile 5 | # Programmer: J. Fiscus 6 | # Organization: NIST/NCSL/DIV 670/Auto Rec. Group 7 | # Host System: SUN 4 OS/4.1.1 (UNIX) 8 | # Date Created: 05/28/92 9 | # 10 | # ********************************************************** 11 | # Makefile for SRC Subdirectory 12 | # ********************************************************** 13 | SUBS = LIBRARY_NAMES 14 | SHELL = /bin/sh 15 | 16 | it install depend clean bare: 17 | @-X=`pwd`; \ 18 | for i in $(SUBS); \ 19 | do echo '<' $$i '>'; cd $$X/$$i; make $@ PROJDIR=$(PROJDIR) ; done 20 | -------------------------------------------------------------------------------- /benchmarks/mediabench/rasta/src/sphere2/nist/lib/makes/make_prj.txt: -------------------------------------------------------------------------------- 1 | # ********************************************************** 2 | # Project: ARG General libraries 3 | # SubTree: PROJECT_DIR_NAME 4 | # Filename: Makefile 5 | # Programmer: J. Fiscus 6 | # Organization: NIST/NCSL/DIV 670/Auto Rec. Group 7 | # Host System: SUN 4 OS/4.1.1 (UNIX) 8 | # Date Created: 05/28/92 9 | # 10 | # ********************************************************** 11 | # Makefile for Root Project Directory 12 | # ********************************************************** 13 | PROJDIR = PROJECT_DIR_NAME 14 | SUBS = src 15 | SHELL = /bin/sh 16 | 17 | it install depend clean: 18 | @-X=`pwd`; \ 19 | for i in $(SUBS); \ 20 | do echo '<<<' $$i '>>>'; cd $$X/$$i; \ 21 | make $@ PROJDIR=$(PROJDIR) ; done 22 | 23 | bare: clean 24 | rm -f bin/* lib/packages/*.pas lib/lib*.a 25 | -------------------------------------------------------------------------------- /benchmarks/mediabench/rasta/src/sphere2/nist/lib/makes/make_scr.txt: -------------------------------------------------------------------------------- 1 | # ********************************************************** 2 | # Project: ARG General libraries 3 | # SubTree: PROJECT_DIR_NAME/src/scripts 4 | # Filename: Makefile 5 | # Programmer: J. Fiscus 6 | # Organization: NIST/NCSL/DIV 670/Auto Rec. Group 7 | # Host System: SUN 4 OS/4.1.1 (UNIX) 8 | # Date Created: 05/28/92 9 | # 10 | # ********************************************************** 11 | # Makefile for SCRIPT Directory 12 | # ********************************************************** 13 | SCRIPTS = SCRIPT_FILES 14 | SHELL = /bin/sh 15 | 16 | .SILENT: 17 | 18 | it depend clean bare: 19 | 20 | install: 21 | @-for i in $(SCRIPTS); do \ 22 | if test -f ../../bin/$$i ; then \ 23 | echo " $$i already installed"; \ 24 | else \ 25 | echo " $$i"; \ 26 | cp $$i ../../bin; \ 27 | chmod 755 $$i ; \ 28 | fi \ 29 | done 30 | -------------------------------------------------------------------------------- /benchmarks/mediabench/rasta/src/sphere2/nist/lib/makes/make_src.txt: -------------------------------------------------------------------------------- 1 | # ********************************************************** 2 | # Project: ARG General libraries 3 | # SubTree: PROJECT_DIR_NAME/src 4 | # Filename: Makefile 5 | # Programmer: J. Fiscus 6 | # Organization: NIST/NCSL/DIV 670/Auto Rec. Group 7 | # Host System: SUN 4 OS/4.1.1 (UNIX) 8 | # Date Created: 05/28/92 9 | # 10 | # ********************************************************** 11 | # Makefile for SRC Directory 12 | # ********************************************************** 13 | SUBS = SRC_DIR_NAMES 14 | SHELL = /bin/sh 15 | 16 | it install depend clean bare: 17 | @-X=`pwd`; \ 18 | for i in $(SUBS); \ 19 | do echo '<<' $$i '>>'; cd $$X/$$i; make $@ PROJDIR=$(PROJDIR); done 20 | -------------------------------------------------------------------------------- /benchmarks/mediabench/rasta/src/sphere2/nist/lib/packages/sphere.pas: -------------------------------------------------------------------------------- 1 | sphere 2.6 2 | -------------------------------------------------------------------------------- /benchmarks/mediabench/rasta/src/sphere2/nist/lib/packages/sphere.pkg: -------------------------------------------------------------------------------- 1 | sphere 2.6 2 | -------------------------------------------------------------------------------- /benchmarks/mediabench/rasta/src/sphere2/nist/src/Makefile: -------------------------------------------------------------------------------- 1 | # ********************************************************** 2 | # Project: ARG General libraries 3 | # SubTree: /export/ramoth4/bishop/simplescalar/mediabench/rasta/src/sphere2/nist/src 4 | # Filename: Makefile 5 | # Programmer: J. Fiscus 6 | # Organization: NIST/NCSL/DIV 670/Auto Rec. Group 7 | # Host System: SUN 4 OS/4.1.1 (UNIX) 8 | # Date Created: 05/28/92 9 | # 10 | # ********************************************************** 11 | # Makefile for SRC Directory 12 | # ********************************************************** 13 | SUBS = lib bin scripts 14 | SHELL = /bin/sh 15 | 16 | it install depend clean bare: 17 | @-X=`pwd`; \ 18 | for i in $(SUBS); \ 19 | do echo '<<' $$i '>>'; cd $$X/$$i; make $@ PROJDIR=$(PROJDIR); done 20 | -------------------------------------------------------------------------------- /benchmarks/mediabench/rasta/src/sphere2/nist/src/bin/h_delete.c: -------------------------------------------------------------------------------- 1 | /* File: h_edit.c */ 2 | 3 | #include 4 | #include 5 | #include 6 | #include 7 | #include 8 | 9 | #include 10 | #include 11 | 12 | 13 | int main (int argc, char **argv){ 14 | return(wav_edit(argc, argv, "F", "D:F:fo:uv")); 15 | } 16 | -------------------------------------------------------------------------------- /benchmarks/mediabench/rasta/src/sphere2/nist/src/bin/h_edit.c: -------------------------------------------------------------------------------- 1 | /* File: h_edit.c */ 2 | 3 | #include 4 | #include 5 | #include 6 | #include 7 | #include 8 | 9 | #include 10 | #include 11 | 12 | 13 | int main (int argc, char **argv){ 14 | return(wav_edit(argc, argv, "SIRK", "D:S:I:R:fo:uvK:c")); 15 | } 16 | -------------------------------------------------------------------------------- /benchmarks/mediabench/rasta/src/sphere2/nist/src/lib/Makefile: -------------------------------------------------------------------------------- 1 | # ********************************************************** 2 | # Project: ARG General libraries 3 | # SubTree: /export/ramoth4/bishop/simplescalar/mediabench/rasta/src/sphere2/nist/src/lib_fcns 4 | # Filename: Makefile 5 | # Programmer: J. Fiscus 6 | # Organization: NIST/NCSL/DIV 670/Auto Rec. Group 7 | # Host System: SUN 4 OS/4.1.1 (UNIX) 8 | # Date Created: 05/28/92 9 | # 10 | # ********************************************************** 11 | # Makefile for SRC Subdirectory 12 | # ********************************************************** 13 | SUBS = util sp 14 | SHELL = /bin/sh 15 | 16 | it install depend clean bare: 17 | @-X=`pwd`; \ 18 | for i in $(SUBS); \ 19 | do echo '<' $$i '>'; cd $$X/$$i; make $@ PROJDIR=$(PROJDIR) ; done 20 | -------------------------------------------------------------------------------- /benchmarks/mediabench/rasta/src/sphere2/nist/src/lib/sp/CMakeLists.txt: -------------------------------------------------------------------------------- 1 | 2 | include_directories(${CMAKE_CURRENT_SOURCE_DIR}) 3 | 4 | add_library(sp STATIC alaw.c array.c dif_wavf.c dupfinfo.c exit.c fixio.c h_fix.c license.c lpc.c nat_bord.c poly.c sdatamod.c shorten.c 5 | shpack_s.c shpacki2.c shpackio.c sp_ntoh.c sp_utils.c spalloc.c spchksum.c spclose.c speof.c sperror.c sphere.c sphio.c spinput.c sploadf.c 6 | spopen.c spoutput.c spread.c sprewind.c sprstat.c spseek.c sptell.c sptemp.c sputils2.c spvers.c spwrite.c stdfield.c ulaw.c vario.c 7 | verbose.c wavedit.c wavpack.c) 8 | 9 | -------------------------------------------------------------------------------- /benchmarks/mediabench/rasta/src/sphere2/nist/src/lib/sp/alaw.c: -------------------------------------------------------------------------------- 1 | int alaw2linear(unsigned char alawbyte) 2 | { 3 | int sign, mantissa, exponent; 4 | 5 | alawbyte ^= 0x55; 6 | sign = alawbyte & 0x80; 7 | mantissa = alawbyte & 0x0f; 8 | exponent = (alawbyte & 0x70) >> 4; 9 | if (exponent > 0) mantissa |= 0x10; 10 | mantissa = (mantissa << 4) + 0x0008; 11 | if (exponent > 1) mantissa <<= exponent - 1; 12 | return sign ? mantissa : -mantissa; 13 | } 14 | 15 | unsigned char linear2alaw(int sample) 16 | { 17 | int sign, mantissa, exponent; 18 | static unsigned char table[128] = 19 | { 20 | 0,1,2,2,3,3,3,3,4,4,4,4,4,4,4,4, 21 | 5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5, 22 | 6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6, 23 | 6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6, 24 | 7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7, 25 | 7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7, 26 | 7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7, 27 | 7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7 28 | }; 29 | 30 | sign = (sample >> 8) & 0x80; 31 | if (sign) sample = ~sample; 32 | sample >>= 4; 33 | exponent = table[sample >> 4]; 34 | if (exponent > 1) sample >>= exponent - 1; 35 | return ((sample & 0x000f) | (exponent << 4) | (sign ^ 0x80)) ^ 0x0055; 36 | } 37 | 38 | -------------------------------------------------------------------------------- /benchmarks/mediabench/rasta/src/sphere2/nist/src/lib/sp/nat_bord.c: -------------------------------------------------------------------------------- 1 | #include 2 | #include 3 | #define SPHERE_LIBRARY_CODE 4 | #include 5 | 6 | enum SP_sample_byte_fmt get_natural_sbf(int sample_size) 7 | { 8 | short s; 9 | int sl; 10 | unsigned char *cp; 11 | char sbf_str[10],n; 12 | 13 | if (sample_size == 1) 14 | return(SP_sbf_1); 15 | 16 | s = 1; 17 | sl = 0x03020100; 18 | cp = (unsigned char *)&s; 19 | 20 | if (sample_size == 2) { 21 | if (*cp == 0) 22 | return(SP_sbf_10); 23 | else if (*cp != 0) 24 | return(SP_sbf_01); 25 | return(SP_sbf_null); 26 | } 27 | if (sample_size == 4) { 28 | cp = (unsigned char *)&sl; 29 | /* byte 1 */ memcpy(&n,cp,1); sbf_str[0] = '0' + n; 30 | /* byte 2 */ memcpy(&n,cp+1,1); sbf_str[1] = '0' + n; 31 | /* byte 3 */ memcpy(&n,cp+2,1); sbf_str[2] = '0' + n; 32 | /* byte 4 */ memcpy(&n,cp+3,1); sbf_str[3] = '0' + n; 33 | sbf_str[4] = '\0'; 34 | if (strsame(sbf_str,"3210")) return(SP_sbf_3210); 35 | else if (strsame(sbf_str,"2301")) return(SP_sbf_2301); 36 | else if (strsame(sbf_str,"1032")) return(SP_sbf_1032); 37 | else if (strsame(sbf_str,"0123")) return(SP_sbf_0123); 38 | } 39 | return(SP_sbf_N); 40 | } 41 | -------------------------------------------------------------------------------- /benchmarks/mediabench/rasta/src/sphere2/nist/src/lib/sp/sp_ntoh.c: -------------------------------------------------------------------------------- 1 | #include 2 | #include 3 | #define SPHERE_LIBRARY_CODE 4 | #include 5 | 6 | long sp_ntohl(long t){ 7 | static enum SP_sample_byte_fmt sbf = SP_sbf_null; 8 | 9 | if (sbf == SP_sbf_null) 10 | sbf = get_natural_sbf(4); 11 | 12 | if (sbf == SP_sbf_3210) 13 | return(t); 14 | if (sbf == SP_sbf_1032){ 15 | swap_short(t); 16 | return(t); 17 | } 18 | fprintf(stderr, 19 | "Error: sp_ntohl(%lx) Failed, Contact the SPHERE maintainer\n", 20 | t); 21 | exit(-1); 22 | } 23 | 24 | short sp_htons(short t){ 25 | static enum SP_sample_byte_fmt sbf = SP_sbf_null; 26 | 27 | if (sbf == SP_sbf_null) 28 | sbf = get_natural_sbf(2); 29 | 30 | if (sbf == SP_sbf_10) 31 | return(t); 32 | swap_bytes(t); 33 | return(t); 34 | } 35 | -------------------------------------------------------------------------------- /benchmarks/mediabench/rasta/src/sphere2/nist/src/lib/sp/sprstat.c: -------------------------------------------------------------------------------- 1 | #include 2 | #define SPHERE_LIBRARY_CODE 3 | #include 4 | 5 | int sp_print_return_status(FILE *fp) 6 | { 7 | char *proc_name="sp_print_return_status " SPHERE_VERSION_STR; 8 | 9 | if (fp == FPNULL) 10 | return_err(proc_name,100,100,"Null File pointer"); 11 | print_return_status(fp); 12 | return(0); 13 | } 14 | 15 | int sp_get_return_status(void) 16 | { 17 | return(return_status()); 18 | } 19 | 20 | int sp_get_return_type(void) 21 | { 22 | return(return_type()); 23 | } 24 | -------------------------------------------------------------------------------- /benchmarks/mediabench/rasta/src/sphere2/nist/src/lib/sp/sptell.c: -------------------------------------------------------------------------------- 1 | #include 2 | 3 | 4 | int sp_tell(SP_FILE *sp) 5 | { 6 | char *proc="sp_tell " SPHERE_VERSION_STR; 7 | 8 | if (sp == SPNULL) 9 | return_err(proc,101,-1,"Null SPFILE structure"); 10 | 11 | if (sp->open_mode == SP_mode_read){ 12 | return_success(proc,0,sp->read_spifr->waveform->samples_read,"ok"); 13 | } else if (sp->open_mode == SP_mode_write) { 14 | return_success(proc,0,sp->write_spifr->waveform->samples_written,"ok"); 15 | } else 16 | return_err(proc,101,-1,"file not opened for read or write"); 17 | } 18 | -------------------------------------------------------------------------------- /benchmarks/mediabench/rasta/src/sphere2/nist/src/lib/sp/sptemp.c: -------------------------------------------------------------------------------- 1 | 2 | /* LINTLIBRARY */ 3 | 4 | #include 5 | #include 6 | #include 7 | #include 8 | 9 | #define SPHERE_LIBRARY_CODE 10 | #include 11 | 12 | char * sptemp(char *file) 13 | { 14 | int len; 15 | char * s; 16 | 17 | 18 | if ( file == CNULL ) 19 | return CNULL; 20 | len = strlen( file ) + strlen( TMPEXT ) + 1; 21 | s = mtrf_malloc( len ); 22 | if ( s == CNULL ) 23 | return CNULL; 24 | 25 | (void) strcpy( s, file ); 26 | (void) strcat( s, TMPEXT ); 27 | return s; 28 | } 29 | 30 | char * sptemp_dirfile(void) 31 | { 32 | int max_attempt=999, attempt=0; 33 | char * s, *n; 34 | static int call=0; 35 | struct stat fileinfo; 36 | 37 | #if defined(unix) 38 | do { 39 | s = rsprintf("%s/%s%d.sph",TEMP_DIR,TEMP_BASE_NAME,call++); 40 | if (attempt++ >= max_attempt) 41 | return(CNULL); 42 | if (call > 9999) 43 | call=0; 44 | } while (stat(s,&fileinfo) == 0); 45 | #else 46 | s = rsprintf("%s/%s%d.sph",TEMP_DIR,TEMP_BASE_NAME,call++); 47 | #endif 48 | 49 | if ((n = mtrf_malloc(strlen(s) + 1)) == CNULL) 50 | return(CNULL); 51 | strcpy(n,s); 52 | return(n); 53 | } 54 | 55 | -------------------------------------------------------------------------------- /benchmarks/mediabench/rasta/src/sphere2/nist/src/lib/sp/spvers.c: -------------------------------------------------------------------------------- 1 | #include 2 | #define SPHERE_LIBRARY_CODE 3 | #define SPHERE_DECLARE_VERSION 4 | #include 5 | 6 | char *sp_get_version(void){ 7 | return(sp_version_str); 8 | } 9 | 10 | 11 | -------------------------------------------------------------------------------- /benchmarks/mediabench/rasta/src/sphere2/nist/src/lib/sp/stdfield.c: -------------------------------------------------------------------------------- 1 | 2 | /* LINTLIBRARY */ 3 | 4 | /* File: stdfield.c */ 5 | 6 | #include 7 | 8 | #define SPHERE_LIBRARY_CODE 9 | #include 10 | 11 | char *std_fields[] = { 12 | "database_id", 13 | "database_version", 14 | "utterance_id", 15 | "channel_count", 16 | "sample_count", 17 | "sample_rate", 18 | "sample_min", 19 | "sample_max", 20 | "sample_n_bytes", 21 | "sample_byte_format", 22 | "sample_sig_bits", 23 | CNULL 24 | }; 25 | -------------------------------------------------------------------------------- /benchmarks/mediabench/rasta/src/sphere2/nist/src/lib/sp/verbose.c: -------------------------------------------------------------------------------- 1 | 2 | #include 3 | #define SPHERE_LIBRARY_CODE 4 | #include 5 | 6 | int sp_verbose = 0; 7 | 8 | void sp_set_verbose(int n) 9 | { 10 | sp_verbose = n; 11 | } 12 | 13 | -------------------------------------------------------------------------------- /benchmarks/mediabench/rasta/src/sphere2/nist/src/lib/util/CMakeLists.txt: -------------------------------------------------------------------------------- 1 | 2 | include_directories(${CMAKE_CURRENT_SOURCE_DIR}) 3 | 4 | add_library(util STATIC cfg.c comments.c ds.c err_util.c fobops.c hist.c hsgetopt.c itoa.c maldie.c mtrf.c order.c pad.c rsprintf.c sfgets.c 5 | statdist.c str_srch.c string.c t_or_f.c word.c) 6 | 7 | -------------------------------------------------------------------------------- /benchmarks/mediabench/rasta/src/sphere2/nist/src/lib/util/itoa.c: -------------------------------------------------------------------------------- 1 | /**********************************************************************/ 2 | /* */ 3 | /* FILENAME: itoa.c */ 4 | /* BY: Jonathan G. Fiscus */ 5 | /* NATIONAL INSTITUTE OF STANDARDS AND TECHNOLOGY */ 6 | /* SPEECH RECOGNITION GROUP */ 7 | /* */ 8 | /* DESC: This file contains general routines used */ 9 | /* throughout the scoring package */ 10 | /* */ 11 | /**********************************************************************/ 12 | 13 | #include 14 | 15 | /**********************************************************************/ 16 | /* build a string zero padded string of max_len for the val */ 17 | /**********************************************************************/ 18 | void nist_itoa(int val, char *buff, int max_len) 19 | { 20 | int i, pos; 21 | 22 | buff[max_len] = NULL_CHAR; 23 | for (i=0, pos=max_len-1; i 2 | 3 | 4 | /**********************************************************************/ 5 | /* function to just say malloc died */ 6 | /**********************************************************************/ 7 | void malloc_died(int len) 8 | { 9 | fprintf(stderr,"Malloc could not allocate memory of size %d\n",len); 10 | exit(-1); 11 | } 12 | -------------------------------------------------------------------------------- /benchmarks/mediabench/rasta/src/sphere2/nist/src/lib/util/rsprintf.c: -------------------------------------------------------------------------------- 1 | #include 2 | 3 | #ifdef __STDC__ 4 | # include 5 | #else 6 | # include 7 | #endif 8 | 9 | char static_message_buffer[200]; 10 | 11 | #ifdef __STDC__ 12 | char *rsprintf(char *format , ...) 13 | #else 14 | char *rsprintf(va_alist) 15 | va_dcl 16 | #endif 17 | { 18 | va_list args; 19 | #ifndef __STDC__ 20 | char *format; 21 | #endif 22 | 23 | #ifdef __STDC__ 24 | va_start(args,format); 25 | #else 26 | va_start(args); 27 | format = va_arg(args,char *); 28 | #endif 29 | /* printf("rsprintf: format: %s\n",format); */ 30 | vsprintf(static_message_buffer,format,args); 31 | /* printf("rsprintf: message: %s\n",static_message_buffer);*/ 32 | return(static_message_buffer); 33 | } 34 | 35 | -------------------------------------------------------------------------------- /benchmarks/mediabench/rasta/src/sphere2/nist/src/lib/util/t_or_f.c: -------------------------------------------------------------------------------- 1 | /**********************************************************************/ 2 | /* */ 3 | /* FILENAME: t_or_f.c */ 4 | /* BY: Jonathan G. Fiscus */ 5 | /* NATIONAL INSTITUTE OF STANDARDS AND TECHNOLOGY */ 6 | /* SPEECH RECOGNITION GROUP */ 7 | /* */ 8 | /* DESC: This file contains general routines used */ 9 | /* throughout the scoring package */ 10 | /* */ 11 | /**********************************************************************/ 12 | #include 13 | 14 | /**********************************************************************/ 15 | /* return the strings depending on the value passed down */ 16 | /**********************************************************************/ 17 | char *TRUE_STRING="TRUE", *FALSE_STRING="FALSE"; 18 | char *t_or_f(int val) 19 | { 20 | if (val == TRUE) 21 | return(TRUE_STRING); 22 | else 23 | return(FALSE_STRING); 24 | } 25 | -------------------------------------------------------------------------------- /benchmarks/mediabench/rasta/src/sphere2/nist/src/scripts/Makefile: -------------------------------------------------------------------------------- 1 | # ********************************************************** 2 | # Project: ARG General libraries 3 | # SubTree: /export/ramoth4/bishop/simplescalar/mediabench/rasta/src/sphere2/nist/src/scripts 4 | # Filename: Makefile 5 | # Programmer: J. Fiscus 6 | # Organization: NIST/NCSL/DIV 670/Auto Rec. Group 7 | # Host System: SUN 4 OS/4.1.1 (UNIX) 8 | # Date Created: 05/28/92 9 | # 10 | # ********************************************************** 11 | # Makefile for SCRIPT Directory 12 | # ********************************************************** 13 | SCRIPTS = gen_lord.sh gen_setv.sh h_header.sh raw2nist.sh 14 | SHELL = /bin/sh 15 | 16 | .SILENT: 17 | 18 | it depend clean bare: 19 | 20 | install: 21 | @-for i in $(SCRIPTS); do \ 22 | if test -f ../../bin/$$i ; then \ 23 | echo " $$i already installed"; \ 24 | else \ 25 | echo " $$i"; \ 26 | cp $$i ../../bin; \ 27 | chmod 755 $$i ; \ 28 | fi \ 29 | done 30 | -------------------------------------------------------------------------------- /benchmarks/mediabench/rasta/src/sphere2/nist/src/scripts/gen_lord.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | 3 | sed -e "s/-lsp/-lsp_7/" \ 4 | -e "s/-lutil/-lutil_9/" \ 5 | -e "s/-lgp/-lgp_9/" \ 6 | -e "s/-lsnr/-lsnr_5/" \ 7 | -e "s/-lphone/-lphone_5/" \ 8 | -e "s/-lplex/-lplex_5/" \ 9 | -e "s/^\(-[a-z]*\)$/\1_1/" 10 | -------------------------------------------------------------------------------- /benchmarks/mediabench/rasta/src/sphere2/nist/src/scripts/gen_setv.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | 3 | sed -e "s:PROJECT_DIR_NAME:${PROJECT_ROOT}:" \ 4 | -e "s: SRC_DIR_NAMES: ${SRC_DIR_NAMES}:" \ 5 | -e "s: LIBRARY_NAMES: ${LIBRARY_NAMES}:" \ 6 | -e "s: LIBRARY_NAME: ${LIBRARY_NAME}:" \ 7 | -e "s: SOURCE_NAMES: ${SOURCE_NAMES}:" \ 8 | -e "s: OBJECT_NAMES: ${OBJECT_NAMES}:" \ 9 | -e "s: EXECUTABLE_NAMES: ${EXECUTABLE_NAMES}:" \ 10 | -e "s: PROG_SUBDIR_NAMES: ${PROG_SUBDIR_NAMES}:" \ 11 | -e "s: LINK_LIBRARY_NAMES: ${LINK_LIBRARY_NAMES}:" \ 12 | -e "s: SCRIPT_FILES: ${SCRIPT_FILES}:" \ 13 | -e "s: COMPILER_COMMAND: ${COMPILER_COMMAND}:" \ 14 | -e "s: INSTALL_COMMAND: ${INSTALL_COMMAND}:" \ 15 | -e "s: RANLIB_COMMAND: ${RANLIB_COMMAND}:" \ 16 | -e "s: ARCHIVER_COMMAND: ${ARCHIVER_COMMAND}:" \ 17 | -e "s: LOCAL_CC_DEFINES: ${LOCAL_CC_DEFINES}:" 18 | -------------------------------------------------------------------------------- /benchmarks/mediabench/rasta/src/sphere2/nist/src/scripts/h_header.sh: -------------------------------------------------------------------------------- 1 | #! /bin/sh 2 | # 3 | # Quick and dirty way of printing headers from 4 | # NIST format speech files. Since it uses 'sed' 5 | # it may not work on files with very long lines 6 | # or non-ascii characters in the header before 7 | # "end_head" 8 | 9 | if test $# -eq 0 ; then 10 | exec sed -n -e '/^end_head$/ q' -e p 11 | exit 1 12 | fi 13 | 14 | E=0 15 | for FILE 16 | do 17 | test $# -gt 1 && echo "::::: ${FILE} :::::" 18 | sed -n -e '/^end_head$/ q' -e p < "${FILE}" 19 | S=$? 20 | test $S -ne 0 && E=$S 21 | done 22 | 23 | exit $E 24 | -------------------------------------------------------------------------------- /benchmarks/mediabench/rasta/src/sphere2/nist/src/scripts/raw2nist.sh: -------------------------------------------------------------------------------- 1 | #! /bin/sh 2 | # 3 | # Converts raw data to Sphere format speech file. 4 | # Uses h_add and h_edit. 5 | 6 | if [ $# -lt 2 ]; then 7 | echo "raw2nist { infile | - } outfile [h_edit options]" >&2 8 | exit 1 9 | fi 10 | 11 | IN="$1" 12 | OUT="$2" 13 | shift 2 14 | 15 | if [ "X${OUT}" = X- ]; then 16 | echo "raw2nist { infile | - } outfile [h_edit options]" >&2 17 | exit 1 18 | fi 19 | 20 | h_add "${IN}" "${OUT}" 21 | S=$? 22 | if [ "${S}" -ne 0 ]; then 23 | rm -f "${OUT}" 24 | exit "${S}" 25 | fi 26 | 27 | if [ $# -ne 0 ]; then 28 | h_edit "$@" "${OUT}" 29 | S=$? 30 | if [ "${S}" -ne 0 ]; then 31 | rm -f "${OUT}" 32 | exit "${S}" 33 | fi 34 | fi 35 | 36 | exit 0 37 | -------------------------------------------------------------------------------- /benchmarks/mediabench/rasta/src/sphere2/nist/src/scripts/sphere.ins: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | 3 | echo " Installation complete" 4 | exit 0 -------------------------------------------------------------------------------- /benchmarks/mediabench/rasta/src/sphere2/sphere_2.6a.tar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/srokicki/HybridDBT/ddfbe8b2a9a98fe9a8f4bab876614c7af5c002e1/benchmarks/mediabench/rasta/src/sphere2/sphere_2.6a.tar -------------------------------------------------------------------------------- /benchmarks/mediabench/rasta/test/ex5_c1.wav: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/srokicki/HybridDBT/ddfbe8b2a9a98fe9a8f4bab876614c7af5c002e1/benchmarks/mediabench/rasta/test/ex5_c1.wav -------------------------------------------------------------------------------- /benchmarks/mediabench/rasta/test/rasta.shade: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/srokicki/HybridDBT/ddfbe8b2a9a98fe9a8f4bab876614c7af5c002e1/benchmarks/mediabench/rasta/test/rasta.shade -------------------------------------------------------------------------------- /benchmarks/mediabench/rasta/test/sdecode.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | 3 | simRISCV -f ../../build/rasta/src/bin/rasta -a "-z -A -J -S 8000 -n 12 -f map_weights.dat" -i ex5_c1.wav 4 | 5 | -------------------------------------------------------------------------------- /includes/binaries.h: -------------------------------------------------------------------------------- 1 | 2 | unsigned int size = 126190; 3 | unsigned int addressStart = 65712; 4 | unsigned char code[10] = {0}; 5 | -------------------------------------------------------------------------------- /includes/dbt/insertions.h: -------------------------------------------------------------------------------- 1 | /* 2 | * insertions.h 3 | * 4 | * Created on: 13 janv. 2017 5 | * Author: simon 6 | */ 7 | 8 | #ifndef INCLUDES_DBT_INSERTIONS_H_ 9 | #define INCLUDES_DBT_INSERTIONS_H_ 10 | 11 | #include 12 | #include 13 | 14 | // Values for unresolved jumps 15 | #define UNRESOLVED_JUMP_RELATIVE 1 16 | #define UNRESOLVED_JUMP_ABSOLUTE 0 17 | 18 | extern int insertionsArray[65536]; 19 | extern int unresolvedJumpsArray[65536]; 20 | extern int unresolvedJumpsTypeArray[65536]; 21 | extern int unresolvedJumpsSourceArray[65536]; 22 | 23 | void addInsertions(unsigned int blockStartAddressInSources, unsigned int blockStartAddressInVLIW, 24 | unsigned int* insertionsToInsert, unsigned int numberInsertions); 25 | unsigned int solveUnresolvedJump(DBTPlateform* platform, unsigned int initialDestination); 26 | unsigned int insertCodeForInsertions(DBTPlateform* platform, int start, unsigned int startAddress); 27 | void initializeInsertionsMemory(int sizeSourceCode); 28 | int getInsertionList(int mipsStartAddress, int** result); 29 | 30 | #endif /* INCLUDES_DBT_INSERTIONS_H_ */ 31 | -------------------------------------------------------------------------------- /includes/frontend.h: -------------------------------------------------------------------------------- 1 | 2 | 3 | #ifndef __FRONTEND 4 | #define __FRONTEND 5 | 6 | int firstPassTranslator(unsigned char* code, unsigned int* size, unsigned int addressStart, 7 | unsigned char* destinationBinaries, unsigned int* placeCode, unsigned int& numberInsertions, 8 | int* insertions, short* blocksBoundaries, short* proceduresBoundaries); 9 | int registerAllocation(unsigned char* bytecode, int numberBlocks, struct blockHeader* blockTable, 10 | unsigned long long* registersUsage, int globalVariables[32][33]); 11 | int generateRenamedBytecode(unsigned char* code, unsigned int* size, unsigned int addressStart, unsigned char* bytecode, 12 | unsigned int* placeCode, short* blocksBoundaries, short* proceduresBoundaries); 13 | 14 | extern unsigned int returnedValuesBytecodeForSim[1024]; 15 | 16 | #endif 17 | -------------------------------------------------------------------------------- /includes/isa/riscvToVexISA.h: -------------------------------------------------------------------------------- 1 | /* 2 | * riscvToVexISA.h 3 | * 4 | * Created on: 2 déc. 2016 5 | * Author: simon 6 | */ 7 | 8 | #ifndef INCLUDES_ISA_RISCVTOVEXISA_H_ 9 | #define INCLUDES_ISA_RISCVTOVEXISA_H_ 10 | 11 | #include 12 | #include 13 | 14 | #ifndef __SW 15 | #ifndef __HW 16 | 17 | extern ac_int<7, false> functBindingOP[8]; 18 | extern ac_int<7, false> functBindingOPI[8]; 19 | extern ac_int<7, false> functBindingLD[8]; 20 | extern ac_int<7, false> functBindingST[8]; 21 | extern ac_int<7, false> functBindingBR[8]; 22 | extern ac_int<7, false> functBindingMULT[8]; 23 | extern ac_int<7, false> functBindingMULTW[8]; 24 | 25 | #endif 26 | #endif 27 | 28 | extern char functBindingOP_sw[8]; 29 | extern char functBindingOPI_sw[8]; 30 | extern char functBindingLD_sw[8]; 31 | extern char functBindingST_sw[8]; 32 | extern char functBindingBR_sw[8]; 33 | extern char functBindingMULT_sw[8]; 34 | extern char functBindingMULTW_sw[8]; 35 | 36 | #endif /* INCLUDES_ISA_RISCVTOVEXISA_H_ */ 37 | -------------------------------------------------------------------------------- /includes/lib/config.h: -------------------------------------------------------------------------------- 1 | #ifndef CONFIG_H 2 | #define CONFIG_H 3 | 4 | #include 5 | #include 6 | #include 7 | 8 | class Config { 9 | public: 10 | Config(int argc, char** argv); 11 | 12 | /** 13 | * @brief argsOf returns the list of option 'id' arguments 14 | * @param id 15 | * @return the vector of arguments of the 'id' option 16 | */ 17 | const std::vector& argsOf(const std::string& id) const; 18 | 19 | /** 20 | * @brief operator [] is a helper operator to get the first option's argument 21 | * without passing by the vector representation of argsOf() 22 | * @param id 23 | * @return the first option's argument if any, otherwise an empty string 24 | */ 25 | const std::string& operator[](const std::string& id) const; 26 | 27 | /** 28 | * @brief has tells the user if an option is present or not 29 | * @param id 30 | * @return a boolean telling whether of not the option 'id' is present 31 | */ 32 | bool has(const std::string& id) const; 33 | 34 | /** 35 | * @brief options getter 36 | * @return the options std::map 37 | */ 38 | const std::map>& options() const; 39 | 40 | private: 41 | std::map> _options; 42 | 43 | const static std::string nullstring; 44 | }; 45 | 46 | #endif // CONFIG_H 47 | -------------------------------------------------------------------------------- /includes/lib/dbtProfiling.h: -------------------------------------------------------------------------------- 1 | /* 2 | * dbtProfiling.h 3 | * 4 | * Created on: 17 janv. 2018 5 | * Author: simon 6 | */ 7 | 8 | #ifndef INCLUDES_LIB_DBTPROFILING_H_ 9 | #define INCLUDES_LIB_DBTPROFILING_H_ 10 | 11 | #define SYS_PROFILING_START 2000 12 | #define SYS_PROFILING_STOP 2001 13 | #define SYS_PROFILING_GET 2002 14 | 15 | void startProfiler(int id); 16 | void stopProfiler(int id); 17 | int getProfilingInfo(int id); 18 | 19 | #endif /* INCLUDES_LIB_DBTPROFILING_H_ */ 20 | -------------------------------------------------------------------------------- /includes/lib/debugFunctions.h: -------------------------------------------------------------------------------- 1 | /* 2 | * debugFunctions.h 3 | * 4 | * Created on: 7 déc. 2016 5 | * Author: simon 6 | */ 7 | 8 | #ifndef INCLUDES_LIB_DEBUGFUNCTIONS_H_ 9 | #define INCLUDES_LIB_DEBUGFUNCTIONS_H_ 10 | 11 | #include 12 | 13 | void debugFirstPassResult(DBTPlateform platform, int start, int end, int sourceBinariesStartAddress); 14 | 15 | #endif /* INCLUDES_LIB_DEBUGFUNCTIONS_H_ */ 16 | -------------------------------------------------------------------------------- /includes/lib/threadedDebug.h: -------------------------------------------------------------------------------- 1 | #pragma once 2 | 3 | class TraceQueue; 4 | 5 | #include 6 | #include 7 | 8 | class ThreadedDebug { 9 | public: 10 | ThreadedDebug(TraceQueue* tracer); 11 | ~ThreadedDebug(); 12 | 13 | void run(); 14 | 15 | private: 16 | void _run_func(); 17 | 18 | TraceQueue* _tracer; 19 | bool _running; 20 | std::thread* _thread; 21 | }; 22 | -------------------------------------------------------------------------------- /includes/lib/traceQueue.h: -------------------------------------------------------------------------------- 1 | #pragma once 2 | 3 | #include 4 | #include 5 | #include 6 | 7 | /** 8 | * @brief This class represents a concurrency-safe queue used to register execution 9 | * traces chunks. It is useful for threaded multi-simulators applications. 10 | */ 11 | class TraceQueue { 12 | public: 13 | /** 14 | * @brief Entry represent an execution trace line 15 | */ 16 | typedef struct _Entry { 17 | uint32_t instructions[8]; 18 | uint64_t registers[32]; 19 | uint64_t pc; 20 | } Entry; 21 | 22 | TraceQueue(unsigned int max_size = 2); 23 | ~TraceQueue(); 24 | 25 | /** 26 | * @brief Registers a trace in the current chunk being executed 27 | */ 28 | void trace(const Entry& e); 29 | 30 | /** 31 | * @brief Read and pops the next readable trace chunk. 32 | */ 33 | std::vector nextChunk(); 34 | 35 | /** 36 | * @brief Verify if a chunk is ready to read 37 | */ 38 | bool hasNext(); 39 | 40 | private: 41 | std::vector* _trace_queue; 42 | 43 | unsigned int _max_size; 44 | unsigned int _written_trace; 45 | unsigned int _read_trace; 46 | 47 | std::condition_variable _cv; 48 | std::mutex _mtx; 49 | }; 50 | -------------------------------------------------------------------------------- /includes/parameters.h: -------------------------------------------------------------------------------- 1 | /* 2 | * parameters.h 3 | * 4 | * Created on: 10 nov. 2016 5 | * Author: simon 6 | */ 7 | 8 | #ifndef INCLUDES_PARAMETERS_H_ 9 | #define INCLUDES_PARAMETERS_H_ 10 | 11 | #define MAX_ISSUE_WIDTH 8 12 | 13 | #endif /* INCLUDES_PARAMETERS_H_ */ 14 | -------------------------------------------------------------------------------- /includes/simulator/mipsSimulator.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Simulator.h 3 | * 4 | * Created on: 10 févr. 2016 5 | * Author: simon 6 | */ 7 | 8 | #include 9 | #include 10 | #include 11 | 12 | #ifndef SIMULATOR_H_ 13 | #define SIMULATOR_H_ 14 | 15 | #ifndef __NIOS 16 | 17 | class Simulator { 18 | public: 19 | std::map memory; 20 | std::unordered_map jumps; 21 | 22 | Simulator(void) : memory() { jumps = {}; }; 23 | 24 | int doSimulation(int start); 25 | void stw(int addr, unsigned int value); 26 | void sth(int addr, unsigned int value); 27 | void stb(int addr, unsigned int value); 28 | 29 | unsigned int ldw(int addr); 30 | unsigned int ldh(int addr); 31 | unsigned int ldb(int addr); 32 | 33 | void dumpJumps(); 34 | }; 35 | 36 | #endif 37 | #endif /* SIMULATOR_H_ */ 38 | -------------------------------------------------------------------------------- /includes/simulator/riscvSimulator.h: -------------------------------------------------------------------------------- 1 | /* 2 | * riscvSimulator.h 3 | * 4 | * Created on: 2 déc. 2016 5 | * Author: simon 6 | */ 7 | 8 | #ifndef INCLUDES_SIMULATOR_RISCVSIMULATOR_H_ 9 | #define INCLUDES_SIMULATOR_RISCVSIMULATOR_H_ 10 | 11 | #ifndef __NIOS 12 | 13 | #include 14 | #include 15 | #include 16 | #include 17 | #include 18 | #include 19 | 20 | // Modelization of RISC-V pipeline 21 | #define LOSS_INCORRECT_BRANCH 2 22 | #define LOSS_PIPELINE_HAZARD 2 23 | #define LOSS_PIPELINE_HAZARD_FORWARDED 1 24 | 25 | class RiscvSimulator : public GenericSimulator { 26 | public: 27 | ac_int<64, true> pc; 28 | uint64_t n_inst; 29 | 30 | // Modelization of RISC-V pipeline 31 | int lastWrittenRegister; 32 | bool lastIsLoad; 33 | 34 | RiscvSimulator(void) : GenericSimulator() 35 | { 36 | lastIsLoad = false; 37 | lastWrittenRegister = -1; 38 | cycle = 0; 39 | }; 40 | int doSimulation(int nbCycles); 41 | 42 | void doStep(); 43 | }; 44 | 45 | #endif 46 | 47 | #endif /* INCLUDES_SIMULATOR_RISCVSIMULATOR_H_ */ 48 | -------------------------------------------------------------------------------- /includes/simulator/vexTraceSimulator.h: -------------------------------------------------------------------------------- 1 | #pragma once 2 | 3 | #include 4 | #include 5 | 6 | class VexTraceSimulator : public VexSimulator { 7 | public: 8 | VexTraceSimulator(unsigned int* instructionMemory, TraceQueue* q); 9 | ~VexTraceSimulator(); 10 | 11 | virtual int doStep(); 12 | 13 | private: 14 | TraceQueue* _tracer; 15 | }; 16 | -------------------------------------------------------------------------------- /includes/transformation/buildTraces.h: -------------------------------------------------------------------------------- 1 | /* 2 | * buildTraces.h 3 | * 4 | * Created on: 22 mai 2017 5 | * Author: simon 6 | */ 7 | 8 | #ifndef INCLUDES_TRANSFORMATION_BUILDTRACES_H_ 9 | #define INCLUDES_TRANSFORMATION_BUILDTRACES_H_ 10 | 11 | void buildTraces(DBTPlateform* platform, IRProcedure* procedure, int optLevel); 12 | void memoryDisambiguation(DBTPlateform* platform, IRBlock* block, IRBlock** predecessors, int nbPred); 13 | 14 | #endif /* INCLUDES_TRANSFORMATION_BUILDTRACES_H_ */ 15 | -------------------------------------------------------------------------------- /includes/transformation/irGenerator.h: -------------------------------------------------------------------------------- 1 | /* 2 | * irGenerator.h 3 | * 4 | * Created on: 10 nov. 2016 5 | * Author: simon 6 | */ 7 | 8 | #ifndef INCLUDES_TRANSFORMATION_IRGENERATOR_H_ 9 | #define INCLUDES_TRANSFORMATION_IRGENERATOR_H_ 10 | 11 | #include 12 | #include 13 | 14 | #ifndef __SW 15 | #ifndef __HW 16 | 17 | unsigned int irGenerator_hw(ac_int<128, false> srcBinaries[1024], ac_int<32, false> addressInBinaries, 18 | ac_int<32, false> blockSize, ac_int<128, false> bytecode[1024], 19 | ac_int<32, true> globalVariables[128], ac_int<32, false> globalVariableCounter); 20 | 21 | #endif 22 | #endif 23 | 24 | unsigned int irGenerator_sw(unsigned int* srcBinaries, unsigned int addressInBinaries, unsigned int blockSize, 25 | unsigned int* bytecode, int globalVariables[128], unsigned int globalVariableCounter); 26 | 27 | unsigned int irGenerator(DBTPlateform* platform, unsigned int addressInBinaries, unsigned int blockSize, 28 | unsigned int globalVariableCounter); 29 | 30 | #ifndef __CATAPULT 31 | // Performance simulation 32 | extern int timeTakenIRGeneration; 33 | #endif 34 | 35 | #endif /* INCLUDES_TRANSFORMATION_IRGENERATOR_H_ */ 36 | -------------------------------------------------------------------------------- /includes/transformation/localRegisterAnalysis.h: -------------------------------------------------------------------------------- 1 | #ifndef LOCALREGISTERANALYSIS_H 2 | #define LOCALREGISTERANALYSIS_H 3 | 4 | #include 5 | 6 | void localRegisterAnalysis(IRBlock* block); 7 | 8 | #endif // LOCALREGISTERANALYSIS_H 9 | -------------------------------------------------------------------------------- /includes/transformation/memoryDisambiguation.h: -------------------------------------------------------------------------------- 1 | /* 2 | * memoryDisambiguation.h 3 | * 4 | * Created on: 22 févr. 2018 5 | * Author: simon 6 | */ 7 | 8 | #ifndef INCLUDES_TRANSFORMATION_MEMORYDISAMBIGUATION_H_ 9 | #define INCLUDES_TRANSFORMATION_MEMORYDISAMBIGUATION_H_ 10 | 11 | extern int MAX_DISAMB_COUNT; 12 | extern unsigned char speculationCounter; 13 | extern struct speculationDef speculationDefinitions[256]; 14 | 15 | #define PLSQ_BANK_SIZE 8 16 | 17 | class MemoryDependencyGraph { 18 | public: 19 | int size; 20 | unsigned char* idMem; 21 | char* idSpec; 22 | bool* graph; 23 | bool* isStore; 24 | 25 | MemoryDependencyGraph(IRBlock* block); 26 | ~MemoryDependencyGraph(); 27 | 28 | void print(); 29 | void transitiveReduction(); 30 | void reduceArity(); 31 | 32 | void applyGraph(IRBlock* block); 33 | }; 34 | 35 | struct speculationDef { 36 | IRBlock* block; 37 | MemoryDependencyGraph* graph; 38 | unsigned char loads[PLSQ_BANK_SIZE]; 39 | unsigned char stores[PLSQ_BANK_SIZE]; 40 | short nbUse; 41 | short nbFail; 42 | char type, nbLoads, nbStores; 43 | char init; 44 | }; 45 | 46 | void findAndInsertSpeculation(IRBlock* block, MemoryDependencyGraph* graph, IRBlock** predecessors, int nbPred); 47 | void updateSpeculationsStatus(DBTPlateform* platform, int writePlace); 48 | 49 | #endif /* INCLUDES_TRANSFORMATION_MEMORYDISAMBIGUATION_H_ */ 50 | -------------------------------------------------------------------------------- /includes/transformation/optimizeBasicBlock.h: -------------------------------------------------------------------------------- 1 | /* 2 | * optimizeBasicBlock.h 3 | * 4 | * Created on: 16 nov. 2016 5 | * Author: simon 6 | */ 7 | 8 | #ifndef INCLUDES_TRANSFORMATION_OPTIMIZEBASICBLOCK_H_ 9 | #define INCLUDES_TRANSFORMATION_OPTIMIZEBASICBLOCK_H_ 10 | 11 | #include 12 | void optimizeBasicBlock(IRBlock* block, DBTPlateform* platform, IRApplication* application, unsigned int placeCode); 13 | 14 | #endif /* INCLUDES_TRANSFORMATION_OPTIMIZEBASICBLOCK_H_ */ 15 | -------------------------------------------------------------------------------- /includes/transformation/rescheduleProcedure.h: -------------------------------------------------------------------------------- 1 | /* 2 | * rescheduleProcedure.h 3 | * 4 | * Created on: 30 mai 2017 5 | * Author: simon 6 | */ 7 | 8 | #ifndef INCLUDES_TRANSFORMATION_RESCHEDULEPROCEDURE_H_ 9 | #define INCLUDES_TRANSFORMATION_RESCHEDULEPROCEDURE_H_ 10 | 11 | int rescheduleProcedure(DBTPlateform* platform, IRProcedure* procedure, int writePlace); 12 | 13 | IRProcedure* rescheduleProcedure_schedule(DBTPlateform* platform, IRProcedure* procedure, int writePlace); 14 | int rescheduleProcedure_commit(DBTPlateform* platform, IRProcedure* procedure, int writePlace, 15 | IRProcedure* schedulePlaces); 16 | void inPlaceBlockReschedule(IRBlock* block, DBTPlateform* platform, int writePlace); 17 | 18 | #endif /* INCLUDES_TRANSFORMATION_RESCHEDULEPROCEDURE_H_ */ 19 | -------------------------------------------------------------------------------- /includes/types.h: -------------------------------------------------------------------------------- 1 | 2 | #define MAX_ISSUE_WIDTH 8 3 | 4 | #ifndef __TYPES 5 | #define __TYPES 6 | 7 | #ifdef __HW_SIM 8 | 9 | #ifdef __CATAPULT 10 | #include 11 | #else 12 | #include 13 | #endif 14 | 15 | #endif 16 | 17 | #ifdef __SW_HW_SIM 18 | #include 19 | #endif 20 | 21 | struct uint128_struct { 22 | unsigned int word96; 23 | unsigned int word64; 24 | unsigned int word32; 25 | unsigned int word0; 26 | }; 27 | 28 | #endif 29 | -------------------------------------------------------------------------------- /src/.gitignore: -------------------------------------------------------------------------------- 1 | /scripts/ 2 | -------------------------------------------------------------------------------- /src/CMakeLists.txt: -------------------------------------------------------------------------------- 1 | add_subdirectory(dbt) 2 | add_subdirectory(lib) 3 | add_subdirectory(simulator) 4 | add_subdirectory(isa) 5 | add_subdirectory(transformation) 6 | add_subdirectory(tools) 7 | 8 | set(SOURCE 9 | ${SOURCE} 10 | PARENT_SCOPE 11 | ) 12 | 13 | set(SOURCE_DBT 14 | ${SOURCE_DBT} 15 | PARENT_SCOPE 16 | ) 17 | 18 | set(EXECUTABLE 19 | ${EXECUTABLE} 20 | PARENT_SCOPE 21 | ) 22 | -------------------------------------------------------------------------------- /src/dbt/CMakeLists.txt: -------------------------------------------------------------------------------- 1 | set(SOURCE 2 | ${SOURCE} 3 | ${CMAKE_CURRENT_SOURCE_DIR}/dbtPlateform.cpp 4 | ${CMAKE_CURRENT_SOURCE_DIR}/initCode.cpp 5 | ${CMAKE_CURRENT_SOURCE_DIR}/insertions.cpp 6 | ${CMAKE_CURRENT_SOURCE_DIR}/profiling.cpp 7 | 8 | PARENT_SCOPE 9 | ) 10 | 11 | set(SOURCE_DBT 12 | ${SOURCE_DBT} 13 | ${CMAKE_CURRENT_SOURCE_DIR}/dbtPlateform.cpp 14 | ${CMAKE_CURRENT_SOURCE_DIR}/initCode.cpp 15 | ${CMAKE_CURRENT_SOURCE_DIR}/insertions.cpp 16 | ${CMAKE_CURRENT_SOURCE_DIR}/profiling.cpp 17 | 18 | PARENT_SCOPE 19 | ) 20 | 21 | set(EXECUTABLE 22 | ${EXECUTABLE} 23 | ${CMAKE_CURRENT_SOURCE_DIR}/dbt.cpp 24 | ${CMAKE_CURRENT_SOURCE_DIR}/sbt.cpp 25 | 26 | PARENT_SCOPE 27 | ) 28 | -------------------------------------------------------------------------------- /src/isa/CMakeLists.txt: -------------------------------------------------------------------------------- 1 | set(SOURCE 2 | ${SOURCE} 3 | ${CMAKE_CURRENT_SOURCE_DIR}/vexISA.cpp 4 | ${CMAKE_CURRENT_SOURCE_DIR}/irISA.cpp 5 | ${CMAKE_CURRENT_SOURCE_DIR}/riscvISA.cpp 6 | ${CMAKE_CURRENT_SOURCE_DIR}/riscvToVexISA.cpp 7 | PARENT_SCOPE 8 | ) 9 | 10 | set(SOURCE_DBT 11 | ${SOURCE_DBT} 12 | ${CMAKE_CURRENT_SOURCE_DIR}/vexISA.cpp 13 | ${CMAKE_CURRENT_SOURCE_DIR}/irISA.cpp 14 | ${CMAKE_CURRENT_SOURCE_DIR}/riscvISA.cpp 15 | ${CMAKE_CURRENT_SOURCE_DIR}/riscvToVexISA.cpp 16 | PARENT_SCOPE 17 | ) 18 | -------------------------------------------------------------------------------- /src/lib/CMakeLists.txt: -------------------------------------------------------------------------------- 1 | set(SOURCE 2 | ${SOURCE} 3 | ${CMAKE_CURRENT_SOURCE_DIR}/elfFile.cpp 4 | ${CMAKE_CURRENT_SOURCE_DIR}/debugFunctions.cpp 5 | ${CMAKE_CURRENT_SOURCE_DIR}/endianness.cpp 6 | ${CMAKE_CURRENT_SOURCE_DIR}/config.cpp 7 | ${CMAKE_CURRENT_SOURCE_DIR}/traceQueue.cpp 8 | ${CMAKE_CURRENT_SOURCE_DIR}/threadedDebug.cpp 9 | ${CMAKE_CURRENT_SOURCE_DIR}/log.cpp 10 | ${CMAKE_CURRENT_SOURCE_DIR}/dbtProfiling.cpp 11 | PARENT_SCOPE 12 | ) 13 | 14 | 15 | set(SOURCE_DBT 16 | ${SOURCE_DBT} 17 | ${CMAKE_CURRENT_SOURCE_DIR}/dbtProfiling.cpp 18 | ${CMAKE_CURRENT_SOURCE_DIR}/endianness.cpp 19 | ${CMAKE_CURRENT_SOURCE_DIR}/log.cpp 20 | PARENT_SCOPE 21 | ) 22 | -------------------------------------------------------------------------------- /src/lib/config.cpp: -------------------------------------------------------------------------------- 1 | #include 2 | 3 | #include 4 | 5 | const std::string Config::nullstring = std::string(); 6 | 7 | Config::Config(int argc, char** argv) 8 | { 9 | std::string current_opt = ""; 10 | std::vector opt_args; 11 | 12 | for (int i = 1; i < argc; ++i) { 13 | char* arg = argv[i]; 14 | if (arg[0] == '-' && current_opt != "-") { 15 | if (current_opt != "") 16 | _options[current_opt] = opt_args; 17 | 18 | current_opt = arg + 1; 19 | opt_args.clear(); 20 | } else if (current_opt != "") { 21 | opt_args.emplace_back(arg); 22 | } else { 23 | throw std::string("bad configuration format"); 24 | } 25 | } 26 | 27 | if (current_opt != "") 28 | _options[current_opt] = opt_args; 29 | } 30 | 31 | const std::vector& Config::argsOf(const std::string& id) const 32 | { 33 | return _options.at(id); 34 | } 35 | 36 | const std::string& Config::operator[](const std::string& id) const 37 | { 38 | if (!has(id) || _options.at(id).empty()) 39 | return nullstring; 40 | else 41 | return _options.at(id).front(); 42 | } 43 | 44 | bool Config::has(const std::string& id) const 45 | { 46 | try { 47 | return _options.at(id).size() >= 0; 48 | } catch (...) { 49 | return false; 50 | } 51 | } 52 | 53 | const std::map>& Config::options() const 54 | { 55 | return _options; 56 | } 57 | -------------------------------------------------------------------------------- /src/lib/log.cpp: -------------------------------------------------------------------------------- 1 | #include 2 | #include 3 | 4 | char Log::_verbose_level = -1; 5 | char Log::_stat_mode = -1; 6 | 7 | unsigned int plsq_checks, plsq_positive, plsq_false_positive, spec_loop_counter, spec_trace_counter, cache_l1_miss, 8 | cache_l2_miss, memory_accesses; 9 | unsigned short bitDifferentiation[64]; 10 | 11 | LogStream& Log::out(char verbose) 12 | { 13 | static LogStream out; 14 | out.setVerbose(verbose); 15 | return out; 16 | } 17 | -------------------------------------------------------------------------------- /src/lib/threadedDebug.cpp: -------------------------------------------------------------------------------- 1 | #include 2 | #include 3 | #include 4 | #include 5 | 6 | #include 7 | 8 | FILE* outFile; 9 | 10 | ThreadedDebug::ThreadedDebug(TraceQueue* tracer) : _tracer(tracer), _running(false), _thread(nullptr) 11 | { 12 | outFile = fopen("trace.log", "w"); 13 | } 14 | 15 | ThreadedDebug::~ThreadedDebug() 16 | { 17 | if (_thread) { 18 | _running = false; 19 | _thread->join(); 20 | delete _thread; 21 | } 22 | } 23 | 24 | void ThreadedDebug::_run_func() 25 | { 26 | 27 | while (_running) { 28 | if (!_tracer->hasNext()) 29 | continue; 30 | 31 | auto v = _tracer->nextChunk(); 32 | 33 | // std::this_thread::sleep_for(std::chrono::milliseconds(100)); 34 | } 35 | } 36 | 37 | void ThreadedDebug::run() 38 | { 39 | _running = true; 40 | _thread = new std::thread(&ThreadedDebug::_run_func, *this); 41 | } 42 | -------------------------------------------------------------------------------- /src/simulator/CMakeLists.txt: -------------------------------------------------------------------------------- 1 | set(SOURCE 2 | ${SOURCE} 3 | ${CMAKE_CURRENT_SOURCE_DIR}/genericSimulator.cpp 4 | ${CMAKE_CURRENT_SOURCE_DIR}/vexSimulator.cpp 5 | ${CMAKE_CURRENT_SOURCE_DIR}/loadQueueVexSimulator.cpp 6 | ${CMAKE_CURRENT_SOURCE_DIR}/loadStoreQueue.cpp 7 | ${CMAKE_CURRENT_SOURCE_DIR}/vexTraceSimulator.cpp 8 | ${CMAKE_CURRENT_SOURCE_DIR}/riscvSimulator.cpp 9 | ${CMAKE_CURRENT_SOURCE_DIR}/mipsSimulator.cpp 10 | PARENT_SCOPE 11 | ) 12 | 13 | set(SOURCE_DBT 14 | ${SOURCE_DBT} 15 | ${CMAKE_CURRENT_SOURCE_DIR}/genericSimulator.cpp 16 | ${CMAKE_CURRENT_SOURCE_DIR}/vexSimulator.cpp 17 | ${CMAKE_CURRENT_SOURCE_DIR}/riscvSimulator.cpp 18 | PARENT_SCOPE 19 | ) 20 | -------------------------------------------------------------------------------- /src/simulator/vexTraceSimulator.cpp: -------------------------------------------------------------------------------- 1 | #include 2 | #include 3 | 4 | VexTraceSimulator::VexTraceSimulator(unsigned int* memoryPtr, TraceQueue* q) : VexSimulator(memoryPtr), _tracer(q) {} 5 | 6 | VexTraceSimulator::~VexTraceSimulator() {} 7 | 8 | int VexTraceSimulator::doStep() 9 | { 10 | static int c = 0; 11 | TraceQueue::Entry e; 12 | e.pc = this->cycle; 13 | for (int i = 0; i < 32; ++i) 14 | e.registers[i] = REG[i]; 15 | 16 | for (int i = 0; i < 8; ++i) 17 | e.instructions[i] = RI[ac_int<32, false>(PC + i)]; 18 | 19 | _tracer->trace(e); 20 | 21 | VexSimulator::doStep(); 22 | } 23 | -------------------------------------------------------------------------------- /src/tools/CMakeLists.txt: -------------------------------------------------------------------------------- 1 | #No non executable sources here 2 | 3 | set(EXECUTABLE 4 | ${EXECUTABLE} 5 | ${CMAKE_CURRENT_SOURCE_DIR}/simRISCV.cpp 6 | ${CMAKE_CURRENT_SOURCE_DIR}/simMIPS.cpp 7 | ${CMAKE_CURRENT_SOURCE_DIR}/dumpBinaryCode.cpp 8 | PARENT_SCOPE 9 | ) 10 | -------------------------------------------------------------------------------- /src/tools/dumpBinaryBytecode.cpp: -------------------------------------------------------------------------------- 1 | #include 2 | 3 | #include 4 | #include 5 | #include 6 | 7 | int main(int argc, char* argv[]) 8 | { 9 | printf("/*Extraction of code from %s to %s*/ \n", argv[1], argv[2]); 10 | 11 | FILE* bytecodeFile = fopen(argv[1], "r"); 12 | FILE* destinationFile = fopen(argv[2], "w"); 13 | 14 | int size = 0; 15 | 16 | unsigned int result = 1; 17 | while (result == 1) { 18 | char oneChar; 19 | result = fread(&oneChar, 1, 1, bytecodeFile); 20 | size++; 21 | } 22 | fclose(bytecodeFile); 23 | 24 | bytecodeFile = fopen(argv[1], "r"); 25 | 26 | fprintf(destinationFile, "unsigned char bytecode[%d] = {\n", size + 1); 27 | 28 | size = 0; 29 | result = 1; 30 | while (result == 1) { 31 | unsigned char oneChar; 32 | result = fread(&oneChar, 1, 1, bytecodeFile); 33 | fprintf(destinationFile, "0x%x, ", oneChar); 34 | size++; 35 | if (size == 20) { 36 | fprintf(destinationFile, "\n"); 37 | size = 0; 38 | } 39 | } 40 | 41 | fprintf(destinationFile, "0};\n"); 42 | fclose(bytecodeFile); 43 | } 44 | -------------------------------------------------------------------------------- /src/tools/dumpBinaryCode.cpp: -------------------------------------------------------------------------------- 1 | #include 2 | 3 | #include 4 | #include 5 | 6 | int main(int argc, char* argv[]) 7 | { 8 | printf("/*Extraction of code from %s*/ \n", argv[1]); 9 | 10 | ElfFile elfFile((char*)argv[1]); 11 | 12 | unsigned char* code; 13 | unsigned int addressStart; 14 | unsigned int size; 15 | 16 | for (unsigned int sectionCounter = 0; sectionCounter < elfFile.sectionTable->size(); sectionCounter++) { 17 | ElfSection* section = elfFile.sectionTable->at(sectionCounter); 18 | 19 | if (!section->getName().compare(".text")) { 20 | 21 | code = section->getSectionCode(); 22 | addressStart = section->address; 23 | size = section->size / 4; 24 | 25 | printf("unsigned int size = %d;\n", size); 26 | printf("unsigned int addressStart = %d;\n", addressStart); 27 | 28 | printf("unsigned char code[%d] = {\n", size * 4 + 1); 29 | for (int line = 0; line < size / 4; line++) { 30 | printf("\t"); 31 | for (int column = 0; column < 16; column++) { 32 | printf("0x%x, ", code[16 * line + column]); 33 | } 34 | printf("\n"); 35 | } 36 | 37 | printf("0};\n"); 38 | } 39 | } 40 | } 41 | -------------------------------------------------------------------------------- /src/tools/simMIPS.cpp: -------------------------------------------------------------------------------- 1 | #include 2 | 3 | #include 4 | #include 5 | #include 6 | 7 | // Main function performing the merging 8 | int main(int argc, char* charv[]) 9 | { 10 | 11 | // Parsing of function arguments. The function is called with the elf file to translate 12 | if (argc != 2) { 13 | printf("Error: incorrect number of arguments.\n Usage of the function is ./sim elfFile\n"); 14 | exit(-1); 15 | } 16 | 17 | //****************************************************************************************** 18 | // Opening elf files 19 | ElfFile elfFile(charv[1]); 20 | Simulator* simulator = new Simulator(); 21 | 22 | for (unsigned int sectionCounter = 0; sectionCounter < elfFile.sectionTable->size(); sectionCounter++) { 23 | ElfSection* oneSection = elfFile.sectionTable->at(sectionCounter); 24 | 25 | if (oneSection->address != 0) { 26 | // If the address is not null we place its content into memory 27 | unsigned char* sectionContent = oneSection->getSectionCode(); 28 | 29 | for (unsigned int byteNumber = 0; byteNumber < oneSection->size; byteNumber++) { 30 | simulator->stb(oneSection->address + byteNumber, sectionContent[byteNumber]); 31 | } 32 | } 33 | } 34 | 35 | simulator->doSimulation(0xa002003c); 36 | } 37 | -------------------------------------------------------------------------------- /src/transformation/CMakeLists.txt: -------------------------------------------------------------------------------- 1 | add_subdirectory(firstPassTranslation) 2 | add_subdirectory(irGeneration) 3 | add_subdirectory(irScheduling) 4 | 5 | set(SOURCE 6 | ${SOURCE} 7 | ${CMAKE_CURRENT_SOURCE_DIR}/optimizeBasicBlock.cpp 8 | ${CMAKE_CURRENT_SOURCE_DIR}/buildControlFlow.cpp 9 | ${CMAKE_CURRENT_SOURCE_DIR}/reconfigureVLIW.cpp 10 | ${CMAKE_CURRENT_SOURCE_DIR}/buildTraces.cpp 11 | ${CMAKE_CURRENT_SOURCE_DIR}/rescheduleProcedure.cpp 12 | ${CMAKE_CURRENT_SOURCE_DIR}/memoryDisambiguation.cpp 13 | ${CMAKE_CURRENT_SOURCE_DIR}/localRegisterAnalysis.cpp 14 | 15 | 16 | PARENT_SCOPE 17 | ) 18 | 19 | 20 | set(SOURCE_DBT 21 | ${SOURCE_DBT} 22 | ${CMAKE_CURRENT_SOURCE_DIR}/optimizeBasicBlock.cpp 23 | ${CMAKE_CURRENT_SOURCE_DIR}/buildControlFlow.cpp 24 | ${CMAKE_CURRENT_SOURCE_DIR}/reconfigureVLIW.cpp 25 | ${CMAKE_CURRENT_SOURCE_DIR}/buildTraces.cpp 26 | ${CMAKE_CURRENT_SOURCE_DIR}/rescheduleProcedure.cpp 27 | ${CMAKE_CURRENT_SOURCE_DIR}/memoryDisambiguation.cpp 28 | ${CMAKE_CURRENT_SOURCE_DIR}/localRegisterAnalysis.cpp 29 | 30 | 31 | PARENT_SCOPE 32 | ) 33 | -------------------------------------------------------------------------------- /src/transformation/firstPassTranslation/CMakeLists.txt: -------------------------------------------------------------------------------- 1 | set(SOURCE 2 | ${SOURCE} 3 | ${CMAKE_CURRENT_SOURCE_DIR}/firstPassTranslation_mips_hw.cpp 4 | ${CMAKE_CURRENT_SOURCE_DIR}/firstPassTranslation_riscv_sw.cpp 5 | ${CMAKE_CURRENT_SOURCE_DIR}/firstPassTranslation_riscv_hw.cpp 6 | ${CMAKE_CURRENT_SOURCE_DIR}/firstPassTranslation.cpp 7 | PARENT_SCOPE 8 | ) 9 | 10 | 11 | set(SOURCE_DBT 12 | ${SOURCE_DBT} 13 | ${CMAKE_CURRENT_SOURCE_DIR}/firstPassTranslation_riscv_sw.cpp 14 | ${CMAKE_CURRENT_SOURCE_DIR}/firstPassTranslation_riscv_hw.cpp 15 | ${CMAKE_CURRENT_SOURCE_DIR}/firstPassTranslation.cpp 16 | PARENT_SCOPE 17 | ) 18 | -------------------------------------------------------------------------------- /src/transformation/irGeneration/CMakeLists.txt: -------------------------------------------------------------------------------- 1 | set(SOURCE 2 | ${SOURCE} 3 | ${CMAKE_CURRENT_SOURCE_DIR}/irGeneration_sw.cpp 4 | ${CMAKE_CURRENT_SOURCE_DIR}/irGeneration_hw.cpp 5 | ${CMAKE_CURRENT_SOURCE_DIR}/irGeneration.cpp 6 | PARENT_SCOPE 7 | ) 8 | 9 | set(SOURCE_DBT 10 | ${SOURCE_DBT} 11 | ${CMAKE_CURRENT_SOURCE_DIR}/irGeneration_sw.cpp 12 | ${CMAKE_CURRENT_SOURCE_DIR}/irGeneration_hw.cpp 13 | ${CMAKE_CURRENT_SOURCE_DIR}/irGeneration.cpp 14 | PARENT_SCOPE 15 | ) -------------------------------------------------------------------------------- /src/transformation/irScheduling/CMakeLists.txt: -------------------------------------------------------------------------------- 1 | set(SOURCE 2 | ${SOURCE} 3 | ${CMAKE_CURRENT_SOURCE_DIR}/irScheduling_scoreboard_hw.cpp 4 | ${CMAKE_CURRENT_SOURCE_DIR}/irScheduling_scoreboard_sw.cpp 5 | ${CMAKE_CURRENT_SOURCE_DIR}/irScheduling_list_hw.cpp 6 | ${CMAKE_CURRENT_SOURCE_DIR}/irScheduling_list_sw.cpp 7 | ${CMAKE_CURRENT_SOURCE_DIR}/irScheduling.cpp 8 | PARENT_SCOPE 9 | ) 10 | 11 | 12 | set(SOURCE_DBT 13 | ${SOURCE_DBT} 14 | ${CMAKE_CURRENT_SOURCE_DIR}/irScheduling_scoreboard_sw.cpp 15 | ${CMAKE_CURRENT_SOURCE_DIR}/irScheduling_scoreboard_hw.cpp 16 | ${CMAKE_CURRENT_SOURCE_DIR}/irScheduling.cpp 17 | PARENT_SCOPE 18 | ) 19 | --------------------------------------------------------------------------------