lmi-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[lmi-commits] [lmi] valyuta/002 e4cb0f1 10/14: Make it float


From: Greg Chicares
Subject: [lmi-commits] [lmi] valyuta/002 e4cb0f1 10/14: Make it float
Date: Thu, 17 Sep 2020 16:27:15 -0400 (EDT)

branch: valyuta/002
commit e4cb0f1dbfe9616d38c8862ba96122fbb9bf4f78
Author: Gregory W. Chicares <gchicares@sbcglobal.net>
Commit: Gregory W. Chicares <gchicares@sbcglobal.net>

    Make it float
    
    Slightly slower than using an integer data_type:
    
    $wine ./lmi_cli_shared.exe --accept --data_path=/opt/lmi/data --selftest
    Test speed:
      naic, no solve      : 1.039e-01 s mean;    102340 us least of  10 runs
      naic, specamt solve : 1.818e-01 s mean;    180690 us least of   6 runs
      naic, ee prem solve : 1.938e-01 s mean;    165932 us least of   6 runs
      finra, no solve     : 2.668e-02 s mean;     26133 us least of  38 runs
      finra, specamt solve: 9.621e-02 s mean;     95406 us least of  11 runs
      finra, ee prem solve: 9.154e-02 s mean;     88118 us least of  11 runs
---
 currency.hpp | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/currency.hpp b/currency.hpp
index 11738f5..ae562b2 100644
--- a/currency.hpp
+++ b/currency.hpp
@@ -34,7 +34,7 @@
 
 #define CURRENCY_UNIT_IS_CENTS
 
-#define CURRENCY_HAS_INTEGER_DATATYPE
+//#define CURRENCY_HAS_INTEGER_DATATYPE
 
 #if !defined CURRENCY_UNIT_IS_CENTS && defined CURRENCY_HAS_INTEGER_DATATYPE
 #   error No can do!



reply via email to

[Prev in Thread] Current Thread [Next in Thread]