Ticket #64019: patch-numpy_core_include_numpy_numpyconfig.h.diff

File patch-numpy_core_include_numpy_numpyconfig.h.diff, 901 bytes (added by ballapete (Peter "Pete" Dyballa), 3 years ago)

Patch to add PPC and PPC64 support to numpy, based on evanmiller's work

  • numpy/core/include/numpy/numpyconfig.

    old new  
    2323    #undef NPY_SIZEOF_LONGDOUBLE
    2424    #undef NPY_SIZEOF_COMPLEX_LONGDOUBLE
    2525
    26     #ifdef __x86_64
    27         #define NPY_SIZEOF_LONGDOUBLE         16
    28         #define NPY_SIZEOF_COMPLEX_LONGDOUBLE 32
    29     #elif defined(__arm64__)
     26    #if defined(__arm64__)
    3027        #define NPY_SIZEOF_LONGDOUBLE         8
    3128        #define NPY_SIZEOF_COMPLEX_LONGDOUBLE 16
     29    #elif defined (__i386)
     30        #define NPY_SIZEOF_LONGDOUBLE         12
     31        #define NPY_SIZEOF_COMPLEX_LONGDOUBLE 24
     32    #elif defined(__x86_64) || defined(__ppc__) || defined (__ppc64__)
     33        #define NPY_SIZEOF_LONGDOUBLE         16
     34        #define NPY_SIZEOF_COMPLEX_LONGDOUBLE 32
    3235    #else
    3336        #error "unknown architecture"
    3437    #endif