1. Henrik Vendelbo
  2. pypy

Commits

Justin Peel  committed 1f12ec6

Add UInt8 dtype

  • Participants
  • Parent commits 779c6bc
  • Branches unsigned-dtypes

Comments (0)

Files changed (1)

File pypy/module/micronumpy/interp_dtype.py

View file
 class W_Int8Dtype(IntegerArithmeticDtype, W_Int8Dtype):
     pass
 
+W_UInt8Dtype = create_low_level_dtype(
+    num = 1, kind = SIGNEDLTR, name = "uint8",
+    aliases = ["uint8"],
+    applevel_types = [],
+    T = rffi.UCHAR,
+    valtype = rffi.UCHAR._type,
+    expected_size = 1,
+)
+class W_UInt8Dtype(IntegerArithmeticDtype, W_UInt8Dtype):
+    pass
+
 W_Int16Dtype = create_low_level_dtype(
     num = 3, kind = SIGNEDLTR, name = "int16",
     aliases = ["int16"],