Commit Graph

5 Commits

Author SHA1 Message Date
taylor swift
c85880899d implement SE 184: add allocation methods to Unsafe buffer pointers, drop all parameters from deallocation, adjust namings, and add repeated-value assignment methods 2017-11-17 21:28:03 -08:00
Andrew Trick
5a8271c621 Rename UnsafePointer allocate & deallocate. (#3608)
As proposed in SE-0107: UnsafeRawPointer:
Rename 'init(allocatingCapacity:)' to 'UnsafeMutablePointer.allocate(capacity:)'
Rename 'deallocateCapacity' to 'deallocate(capacity:)'

`allocate` should not be an initializer. It's primary function is to allocate
memory, not initialize a pointer.
2016-07-19 11:48:18 -07:00
Bryan Chan
bcc43c0eeb Add support for s390x to UnsafeBitMap test 2016-05-25 07:24:35 -04:00
Dmitri Gribenko
d74b1834f8 stdlib: Dictionary, Set: stop overallocating the bitmap
The 'sizeInWords(forSizeInBits:)' function was supposed to return the
size in words, but returned the size in bits, overallocating the bitmap
by a factor of 32 or 64, depending on the platform.
2016-05-23 21:12:13 -07:00
Dmitri Gribenko
7c7c42ced2 stdlib: add basic tests for _UnsafeBitMap 2016-05-23 18:41:39 -07:00