summaryrefslogtreecommitdiff
path: root/gtk2_ardour
diff options
context:
space:
mode:
authorPaul Davis <paul@linuxaudiosystems.com>2015-08-11 22:58:04 -0400
committerPaul Davis <paul@linuxaudiosystems.com>2015-08-11 23:00:13 -0400
commit4d0be2ee2efbfbd8508385d833503e6fa59fa309 (patch)
tree487e7d9eb0592ba4b9d207ba76ef32b4dfcd07f5 /gtk2_ardour
parent1e58033ab44c39d128265adf447b8dbef21dea46 (diff)
use new FPU singleton pattern in gtk2_ardour
Diffstat (limited to 'gtk2_ardour')
-rw-r--r--gtk2_ardour/rc_option_editor.cc8
1 files changed, 4 insertions, 4 deletions
diff --git a/gtk2_ardour/rc_option_editor.cc b/gtk2_ardour/rc_option_editor.cc
index 5961ccfee2..877ad6a517 100644
--- a/gtk2_ardour/rc_option_editor.cc
+++ b/gtk2_ardour/rc_option_editor.cc
@@ -2407,23 +2407,23 @@ RCOptionEditor::RCOptionEditor ()
int dmsize = 1;
dm->add (DenormalNone, _("no processor handling"));
- FPU fpu;
+ FPU* fpu = FPU::instance();
- if (fpu.has_flush_to_zero()) {
+ if (fpu->has_flush_to_zero()) {
++dmsize;
dm->add (DenormalFTZ, _("use FlushToZero"));
} else if (_rc_config->get_denormal_model() == DenormalFTZ) {
_rc_config->set_denormal_model(DenormalNone);
}
- if (fpu.has_denormals_are_zero()) {
+ if (fpu->has_denormals_are_zero()) {
++dmsize;
dm->add (DenormalDAZ, _("use DenormalsAreZero"));
} else if (_rc_config->get_denormal_model() == DenormalDAZ) {
_rc_config->set_denormal_model(DenormalNone);
}
- if (fpu.has_flush_to_zero() && fpu.has_denormals_are_zero()) {
+ if (fpu->has_flush_to_zero() && fpu->has_denormals_are_zero()) {
++dmsize;
dm->add (DenormalFTZDAZ, _("use FlushToZero and DenormalsAreZero"));
} else if (_rc_config->get_denormal_model() == DenormalFTZDAZ) {