1j d dl Z d dl mZ d dlmZ d dlZd Zd Ze j ed e j
dd g e e j d
d ZdS ) N)param)IS_WASMc # K t ddd V t ddd V t ddd V t t j d dd V t t j d dd
V t t j d dd V t ddz d
d V t dd
d V t t j d d
d V t t j d d
d
V t j t j j } t j t j t j d j d }| |z
t j d j k r5t t j t j j dd V t ddd V t ddd V t ddd V t t j d dd V t j d 5 t j
d D ]t}t j t j fD ]Y}t j
d D ]D}t j
| }| | }t ||| d | V EZu d!d!d! d!S # 1 swxY w Y d!S )"a?
Generate value+dtype pairs that generate floating point errors during
casts. The invalid casts to integers will generate "invalid" value
warnings, the float casts all generate "overflow".
(The Python int/float paths don't need to get tested in all the same
situations, but it does not hurt.)
ip float16z int-to-f2)id70000z str-to-f2g @zfloat-to-f2zlongdouble-to-f2zdouble-to-f2
d float32z int-to-f4g}Ô%ITgu <7~f8r float64zlongdouble-to-f8gu