[rtems-central commit] spec: Specify RTEMS_ALIGNOF()

Sebastian Huber sebh at rtems.org
Fri Feb 19 06:05:32 UTC 2021


Module:    rtems-central
Branch:    master
Commit:    b97b24e98aa4aa515784509c58486b2c8f60a31f
Changeset: http://git.rtems.org/rtems-central/commit/?id=b97b24e98aa4aa515784509c58486b2c8f60a31f

Author:    Sebastian Huber <sebastian.huber at embedded-brains.de>
Date:      Wed Feb 10 06:58:06 2021 +0100

spec: Specify RTEMS_ALIGNOF()

---

 spec/rtems/basedefs/if/alignof.yml | 38 ++++++++++++++++++++++++++++++++++++++
 1 file changed, 38 insertions(+)

diff --git a/spec/rtems/basedefs/if/alignof.yml b/spec/rtems/basedefs/if/alignof.yml
new file mode 100644
index 0000000..735a574
--- /dev/null
+++ b/spec/rtems/basedefs/if/alignof.yml
@@ -0,0 +1,38 @@
+SPDX-License-Identifier: CC-BY-SA-4.0 OR BSD-2-Clause
+brief: |
+  Gets the alignment requirement of the type.
+copyrights:
+- Copyright (C) 2021 embedded brains GmbH (http://www.embedded-brains.de)
+definition:
+  default: |
+    sizeof( ${.:/params[0]/name} )
+  variants:
+  - definition: |
+      alignof( ${.:/params[0]/name} )
+    enabled-by:
+    - ${/compiler/if/cplusplus:/name} >= 201103L
+  - definition: |
+      _Alignof( ${.:/params[0]/name} )
+    enabled-by:
+    - ${/compiler/if/stdc-version:/name} >= 201112L
+description: null
+enabled-by: true
+index-entries: []
+interface-type: macro
+links:
+- role: interface-placement
+  uid: header
+- role: interface-ingroup
+  uid: group
+name: RTEMS_ALIGNOF
+notes: null
+params:
+- description: |
+    is the type name to get the alignment requirement for.
+  dir: null
+  name: _type_name
+return:
+  return: |
+    Returns the alignment requirement of the type.
+  return-values: []
+type: interface



More information about the vc mailing list