projects
/
ghc-hetmet.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (from parent 1:
606452f
)
Refix docs for sizeofByteArray#/sizeofMutableByteArray# (#3800)
author
Ian Lynagh
<igloo@earth.li>
Sun, 20 Jun 2010 10:37:49 +0000
(10:37 +0000)
committer
Ian Lynagh
<igloo@earth.li>
Sun, 20 Jun 2010 10:37:49 +0000
(10:37 +0000)
compiler/prelude/primops.txt.pp
patch
|
blob
|
history
diff --git
a/compiler/prelude/primops.txt.pp
b/compiler/prelude/primops.txt.pp
index
fc99dee
..
abc9560
100644
(file)
--- a/
compiler/prelude/primops.txt.pp
+++ b/
compiler/prelude/primops.txt.pp
@@
-633,8
+633,8
@@
primop UnsafeThawArrayOp "unsafeThawArray#" GenPrimOp
section "Byte Arrays"
{Operations on {\tt ByteArray\#}. A {\tt ByteArray\#} is a just a region of
raw memory in the garbage-collected heap, which is not
section "Byte Arrays"
{Operations on {\tt ByteArray\#}. A {\tt ByteArray\#} is a just a region of
raw memory in the garbage-collected heap, which is not
- scanned for pointers. It carries its own size (in bytes,
- rounded up to the nearest multiple of a word). There are
+ scanned for pointers. It carries its own size (in bytes).
+ There are
three sets of operations for accessing byte array contents:
index for reading from immutable byte arrays, and read/write
for mutable byte arrays. Each set contains operations for a
three sets of operations for accessing byte array contents:
index for reading from immutable byte arrays, and read/write
for mutable byte arrays. Each set contains operations for a
@@
-682,13
+682,11
@@
primop UnsafeFreezeByteArrayOp "unsafeFreezeByteArray#" GenPrimOp
primop SizeofByteArrayOp "sizeofByteArray#" GenPrimOp
ByteArray# -> Int#
primop SizeofByteArrayOp "sizeofByteArray#" GenPrimOp
ByteArray# -> Int#
- {Return the size of the array in bytes, rounded up to the nearest multiple
- of a word.}
+ {Return the size of the array in bytes.}
primop SizeofMutableByteArrayOp "sizeofMutableByteArray#" GenPrimOp
MutableByteArray# s -> Int#
primop SizeofMutableByteArrayOp "sizeofMutableByteArray#" GenPrimOp
MutableByteArray# s -> Int#
- {Return the size of the array in bytes, rounded up to the nearest multiple
- of a word.}
+ {Return the size of the array in bytes.}
primop IndexByteArrayOp_Char "indexCharArray#" GenPrimOp
ByteArray# -> Int# -> Char#
primop IndexByteArrayOp_Char "indexCharArray#" GenPrimOp
ByteArray# -> Int# -> Char#