591 |
Uses integer math without any branch will then be |
Uses integer math without any branch will then be |
592 |
converted to floating point value for each sample point. |
converted to floating point value for each sample point. |
593 |
This int->float conversion might hurt on some systems. |
This int->float conversion might hurt on some systems. |
594 |
|
intmathabs: |
595 |
|
Similar to intmath but uses abs() function. |
596 |
|
Depending on compiler and platrofm this could |
597 |
|
perform better than integer math as it avoids |
598 |
|
an extra integer multiply instruction. |
599 |
|
|
600 |
diharmonic: |
diharmonic: |
601 |
The triangular wave will be approximated by adding two |
The triangular wave will be approximated by adding two |
602 |
sinusoidials. This solution might especially hurt on |
sinusoidials. This solution might especially hurt on |
608 |
benchmark between the algorithms mentioned above. |
benchmark between the algorithms mentioned above. |
609 |
This will NOT work for cross compilation!], |
This will NOT work for cross compilation!], |
610 |
[ if test ! "(" "${enableval}" = "intmath" \ |
[ if test ! "(" "${enableval}" = "intmath" \ |
611 |
|
-o "${enableval}" = "intmathabs" \ |
612 |
-o "${enableval}" = "diharmonic" ")" ; then |
-o "${enableval}" = "diharmonic" ")" ; then |
613 |
AC_MSG_ERROR([Unknown triangular wave algorithm for parameter --enable-signed-triang-algo]) |
AC_MSG_ERROR([Unknown triangular wave algorithm for parameter --enable-signed-triang-algo]) |
614 |
else |
else |
626 |
Uses integer math without any branch will then be |
Uses integer math without any branch will then be |
627 |
converted to floating point value for each sample point. |
converted to floating point value for each sample point. |
628 |
This int->float conversion might hurt on some systems. |
This int->float conversion might hurt on some systems. |
629 |
|
intmathabs: |
630 |
|
Similar to intmath but uses abs() function. |
631 |
|
Depending on compiler and platrofm this could |
632 |
|
perform better than integer math as it avoids |
633 |
|
an extra integer multiply instruction. |
634 |
|
|
635 |
diharmonic: |
diharmonic: |
636 |
The triangular wave will be approximated by adding two |
The triangular wave will be approximated by adding two |
637 |
sinusoidials. This solution might especially hurt on |
sinusoidials. This solution might especially hurt on |
643 |
benchmark between the algorithms mentioned above. |
benchmark between the algorithms mentioned above. |
644 |
This will NOT work for cross compilation!], |
This will NOT work for cross compilation!], |
645 |
[ if test ! "(" "${enableval}" = "intmath" \ |
[ if test ! "(" "${enableval}" = "intmath" \ |
646 |
|
-o "${enableval}" = "intmathabs" \ |
647 |
-o "${enableval}" = "diharmonic" ")" ; then |
-o "${enableval}" = "diharmonic" ")" ; then |
648 |
AC_MSG_ERROR([Unknown triangular wave algorithm for parameter --enable-unsigned-triang-algo]) |
AC_MSG_ERROR([Unknown triangular wave algorithm for parameter --enable-unsigned-triang-algo]) |
649 |
else |
else |
693 |
elif test "$triang_signed" = "3"; then |
elif test "$triang_signed" = "3"; then |
694 |
config_signed_triang_algo="diharmonic" |
config_signed_triang_algo="diharmonic" |
695 |
echo "di harmonics" |
echo "di harmonics" |
696 |
|
elif test "$triang_signed" = "5"; then |
697 |
|
config_signed_triang_algo="intmathabs" |
698 |
|
echo "integer math using abs()" |
699 |
else |
else |
700 |
echo "Benchmark of signed triangular wave algorithms failed!" |
echo "Benchmark of signed triangular wave algorithms failed!" |
701 |
echo "Maybe you are doing cross compilation? In that case you have to select" |
echo "Maybe you are doing cross compilation? In that case you have to select" |
724 |
elif test "$triang_unsigned" = "3"; then |
elif test "$triang_unsigned" = "3"; then |
725 |
config_unsigned_triang_algo="diharmonic" |
config_unsigned_triang_algo="diharmonic" |
726 |
echo "di harmonics" |
echo "di harmonics" |
727 |
|
elif test "$triang_unsigned" = "5"; then |
728 |
|
config_signed_triang_algo="intmathabs" |
729 |
|
echo "integer math using abs()" |
730 |
else |
else |
731 |
echo "Benchmark of unsigned triangular wave algorithms failed!" |
echo "Benchmark of unsigned triangular wave algorithms failed!" |
732 |
echo "Maybe you are doing cross compilation? In that case you have to select" |
echo "Maybe you are doing cross compilation? In that case you have to select" |