remove pyint [pr] (#7016)

* remove pyint

* bump time on tp [pr]

* dont truncate in const fold

* remove dead code

* Revert "dont truncate in const fold"

This reverts commit 29c81db0f7.

* remove define_var
This commit is contained in:
George Hotz
2024-10-12 22:36:24 +08:00
committed by GitHub
parent 38d45dfba5
commit 85a45164fb
14 changed files with 74 additions and 89 deletions

View File

@@ -86,7 +86,6 @@ class dtypes:
def fields() -> Dict[str, DType]: return DTYPES_DICT
# TODO: priority should be higher than bool
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)
@@ -118,7 +117,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", "")):