From 0ac0547bca9e9da89dd9bd6a416114d605307716 Mon Sep 17 00:00:00 2001 From: Sebastien Bourdeauducq Date: Fri, 3 Jun 2016 23:34:20 -0400 Subject: [PATCH] dds: use fast math for asf computations --- artiq/coredevice/dds.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/artiq/coredevice/dds.py b/artiq/coredevice/dds.py index e90032b1c..9d2fd29e9 100644 --- a/artiq/coredevice/dds.py +++ b/artiq/coredevice/dds.py @@ -125,12 +125,12 @@ class _DDSGeneric: word.""" return pow/2**self.pow_width - @portable + @portable(flags=["fast-math"]) def amplitude_to_asf(self, amplitude): """Returns amplitude scale factor corresponding to given amplitude.""" return round(amplitude*0x0fff) - @portable + @portable(flags=["fast-math"]) def asf_to_amplitude(self, asf): """Returns the amplitude corresponding to the given amplitude scale factor."""