summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSebastian Huber <sebastian.huber@embedded-brains.de>2021-02-10 06:58:06 +0100
committerSebastian Huber <sebastian.huber@embedded-brains.de>2021-02-19 07:03:31 +0100
commitb97b24e98aa4aa515784509c58486b2c8f60a31f (patch)
tree2b8ef9d7c8c083d211eca3ff61795c32c92d4a1f
parentspec: Fix clock manager parameter names (diff)
downloadrtems-central-b97b24e98aa4aa515784509c58486b2c8f60a31f.tar.bz2
spec: Specify RTEMS_ALIGNOF()
-rw-r--r--spec/rtems/basedefs/if/alignof.yml38
1 files changed, 38 insertions, 0 deletions
diff --git a/spec/rtems/basedefs/if/alignof.yml b/spec/rtems/basedefs/if/alignof.yml
new file mode 100644
index 00000000..735a5740
--- /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