From f394936c4082812ed2f7f092212fea22e4c368cd Mon Sep 17 00:00:00 2001
From: Andreas Kloeckner <inform@tiker.net>
Date: Thu, 12 May 2016 12:26:39 -0500
Subject: [PATCH] R123: Apparently Mako templates don't use from future import
 division

---
 loopy/library/random123.py | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/loopy/library/random123.py b/loopy/library/random123.py
index 78933d9f4..7d04b8c73 100644
--- a/loopy/library/random123.py
+++ b/loopy/library/random123.py
@@ -129,7 +129,7 @@ float${ width } ${ name }_f32(
     *new_ctr = ctr;
     return
         convert_float${ width }(${ name }_gen(*new_ctr, key, new_ctr))
-        * ${ repr(1/2**32) }f;
+        * ${ repr(1./2**32) }f;
 }
 
 double${ width } ${ name }_f64(
@@ -141,16 +141,16 @@ double${ width } ${ name }_f64(
     %if rng_variant.bits == 32:
         return
             convert_double${ width }(${ name }_gen(*new_ctr, key, new_ctr))
-            * ${ repr(1/2**32) }
+            * ${ repr(1./2**32) }
             +
             convert_double${ width }(${ name }_gen(*new_ctr, key, new_ctr))
-            * ${ repr(1/2**64) };
+            * ${ repr(1./2**64) };
 
     %elif rng_variant.bits == 64:
         *new_ctr = ctr;
         return
             convert_double${ width }(${ name }_gen(*new_ctr, key, new_ctr))
-            * ${ repr(1/2**64) };
+            * ${ repr(1./2**64) };
 
     %else:
         #error Unrecognized bit width in RNG
-- 
GitLab