Menu

Gaol on x64

2006-08-17
2013-04-25
  • Thibaut Feydy

    Thibaut Feydy - 2006-08-17

    Hi,

    will the mathlib (then gaol) be eventually ported to  pentium or amd 64 ?
    I've been realising than there are more and more 64 bits PCs at my workplace (in fact all new PCs) and i see the time coming when there won't be any 32bits PCs left.

    Cheers

     
    • centient

      centient - 2007-02-17

      /* Switch rounding mode on linux systems, depends on glibc. */
      /* Should work both on x86 and x86_64 systems.              */
      /* Matthias Huesken, University of Wuppertal, 2006.         */
      #include <fenv.h>
      #include "mex.h"

      #define ROUND_NEAR  FE_TONEAREST
      #define ROUND_UP    FE_UPWARD
      #define ROUND_DOWN  FE_DOWNWARD

      void mexFunction( int nlhs, mxArray *plhs[],
                   int nrhs, const mxArray *prhs[] ) {

        int rnd;

        rnd = mxGetScalar(prhs[0]);

        switch (rnd) {
          /* round up */
          case  1 :  fesetround(ROUND_UP);   break;
          /* round to nearest */
          case  0 :  fesetround(ROUND_NEAR); break;
          /* round down */
          case -1 :  fesetround(ROUND_DOWN); break;
          /* round to nearest */
          default :  fesetround(ROUND_NEAR); break;
        }

      } /* setround */

       
    • centient

      centient - 2007-02-21

      I have created a branch of gaol that works correctly on microsoft visual
      studio 6.0 and
      microsoft visual studio 2003 and is working on linux AMD64 bit . In the
      gaol package there is
      a test case in the directory check , all tests case was succefully done.

      ===============================================================================
                                      GAOL PATCH
      ===============================================================================
      https://sourceforge.net/project/showfiles.php?group_id=122219&package_id=222453
      ===============================================================================

      All binaries and libraries are generated automatically in the gaol\bin and
      gaol\lib directories and
      Debug and Release have different names (gaol.dll ,gaolD.dll )

      this is a work of 7 day , i hope it will be usefull and i hope it can will
      be plugged  in the mainstream.

       

Log in to post a comment.