Skip to content

Commit b9aefe4

Browse files
authored
Merge pull request #13 from allexoll/master
added `A32` and `A64
2 parents db3ab4f + 07414f7 commit b9aefe4

File tree

3 files changed

+12
-0
lines changed

3 files changed

+12
-0
lines changed

CHANGELOG.md

+2
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@ This project adheres to [Semantic Versioning](http://semver.org/).
55

66
## [Unreleased]
77

8+
- added `A32` and `A64` types
9+
810
## [v0.3.4] - 2020-07-31
911

1012
### Added

src/lib.rs

+8
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,14 @@ pub struct A8;
5151
#[repr(align(16))]
5252
pub struct A16;
5353

54+
/// 32-byte alignment
55+
#[repr(align(32))]
56+
pub struct A32;
57+
58+
/// 64-byte alignment
59+
#[repr(align(64))]
60+
pub struct A64;
61+
5462
/// A newtype with alignment of at least `A` bytes
5563
#[repr(C)]
5664
pub struct Aligned<A, T>

src/sealed.rs

+2
Original file line numberDiff line numberDiff line change
@@ -4,3 +4,5 @@ impl Alignment for super::A2 {}
44
impl Alignment for super::A4 {}
55
impl Alignment for super::A8 {}
66
impl Alignment for super::A16 {}
7+
impl Alignment for super::A32 {}
8+
impl Alignment for super::A64 {}

0 commit comments

Comments
 (0)