No pyint again (#7156)

* Revert "bring back pyint (#7150)"

This reverts commit 37e83ca6fc.

* remove truncate in const folding

* truncate_output=False
This commit is contained in:
chenyu
2024-10-19 13:48:59 -04:00
committed by GitHub
parent 30989fb459
commit f511ad9103
9 changed files with 19 additions and 26 deletions

View File

@@ -84,7 +84,6 @@ class dtypes:
@staticmethod
def fields() -> Dict[str, DType]: return DTYPES_DICT
void: Final[DType] = DType(-1, 0, "void", None, 1)
pyint: Final[DType] = DType(-1, 8, "pyint", None, 1) # arbitrary precision integer, same itemsize to int64 so min/max works
bool: Final[DType] = DType(0, 1, "bool", '?', 1)
int8: Final[DType] = DType(1, 1, "char", 'b', 1)
uint8: Final[DType] = DType(2, 1, "unsigned char", 'B', 1)
@@ -116,7 +115,7 @@ class dtypes:
floats = (float16, bfloat16, float32, float64)
uints = (uint8, uint16, uint32, uint64)
sints = (int8, int16, int32, int64, pyint)
sints = (int8, int16, int32, int64)
ints = uints + sints
if (env_default_float := getenv("DEFAULT_FLOAT", "")):