Author: Justin Peel <[email protected]>
Branch: unsigned-dtypes
Changeset: r46971:1f12ec631b17
Date: 2011-08-31 22:41 -0600
http://bitbucket.org/pypy/pypy/changeset/1f12ec631b17/
Log: Add UInt8 dtype
diff --git a/pypy/module/micronumpy/interp_dtype.py
b/pypy/module/micronumpy/interp_dtype.py
--- a/pypy/module/micronumpy/interp_dtype.py
+++ b/pypy/module/micronumpy/interp_dtype.py
@@ -292,6 +292,17 @@
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"],
_______________________________________________
pypy-commit mailing list
[email protected]
http://mail.python.org/mailman/listinfo/pypy-commit