Commits

Ronan Lamy committed 246f17c

add missing longdouble_spec

Comments (0)

Files changed (2)

pypy/module/micronumpy/types.py

 from pypy.module.micronumpy.typespec import (bool_spec, int8_spec, uint8_spec,
         int16_spec, uint16_spec, int32_spec, uint32_spec, long_spec,
         ulong_spec, int64_spec, uint64_spec, float32_spec, float64_spec,
-        float16_spec)
+        float16_spec, longdouble_spec)
 from pypy.module.micronumpy.typespec import (ENABLED_LONG_DOUBLE,
         long_double_size)
 

pypy/module/micronumpy/typespec.py

 if long_double_size == 8 and os.name == 'nt':
     # this is a lie, or maybe a wish, MS fakes longdouble math with double
     long_double_size = 12
+longdouble_spec = TypeSpec("float80", rffi.LONGDOUBLE)