13
0
Go to file
Robin Gareus 8f333acb80 log(0) - who would have guessed.
marginal improvement on x86_64 for zero, 5-10% for tiny numbers;
100% time improvement (half the time) on i686 with zero.

#/bin/sh
g++ -x c++ -O3 -ffast-math -o /tmp/a.out - << EOF

#include <stdio.h>
#include <stdlib.h>
#include <cmath>
#include <limits>

static inline float accurate_coefficient_to_dB (float coeff) {                                                                                                                                                                               
#if 1 // try me
  if (coeff < 1e-15) return  -std::numeric_limits<float>::infinity();
#endif
  return 20.0f * log10f (coeff);
}

int main (int argc, char **argv) {
  long long int i;
  float f = 0;
  if (argc  < 3) return -1;
  long long int end = atoll (argv[1]);
  for (i = 0; i < end; ++i) {
    f += accurate_coefficient_to_dB (atof (argv[2]));
  }
  printf ("%f\n",f);
  return 0;
}
EOF

time /tmp/a.out 100000000000 0.0
time /tmp/a.out 100000000000 0.0
time /tmp/a.out 100000000000 0.0
2015-05-02 04:19:54 +02:00
cfgtool
doc further updated monitor-modes doc: 2015-04-22 20:06:50 +02:00
export
gtk2_ardour tweak Midi/DIN icon (proper notch) 2015-05-01 15:16:32 +02:00
headless
icons
libs log(0) - who would have guessed. 2015-05-02 04:19:54 +02:00
mcp
midi_maps midi map for the Axiom61 2015-04-25 16:29:02 +02:00
msvc_extra_headers For MSVC builds, implement 'rint()' and 'rintf()' to supplement the ones that were already implemented 2015-04-24 19:11:10 +01:00
MSVCardour3 Add some newly introduced sources to our MSVC project (gtk2_ardour) 2015-04-22 10:48:08 +01:00
MSVCMixbus3
MSVCvst_scan
patches
patchfiles
templates
tools suffix “x86” to start-menu entry for ardour 32bit 2015-04-24 00:00:47 +02:00
vst
.dir-locals.el
.gitignore
ardour-3.ttl
ardour.1
ardour.1.es
ardour.1.fr
ardour.1.ru
ardour.dox
COPYING
instant.xml
instant.xml.sae
Makefile
msvc32-fixup.pl
PACKAGER_README
README
system_config
testfile.flac
testfile.ogg
TRANSLATORS
waf
wscript add a real check for functioning JACK metadata API; remove configure time option for this 2015-04-23 09:29:45 -04:00

Please see the Ardour web site at http://ardour.org/ for all documentation..

For information on building ardour: 
      
     http://ardour.org/development.html