summaryrefslogtreecommitdiffstats
path: root/spec/rtems/basedefs/if/predict-false.yml
diff options
context:
space:
mode:
Diffstat (limited to 'spec/rtems/basedefs/if/predict-false.yml')
-rw-r--r--spec/rtems/basedefs/if/predict-false.yml33
1 files changed, 33 insertions, 0 deletions
diff --git a/spec/rtems/basedefs/if/predict-false.yml b/spec/rtems/basedefs/if/predict-false.yml
new file mode 100644
index 00000000..5bf13563
--- /dev/null
+++ b/spec/rtems/basedefs/if/predict-false.yml
@@ -0,0 +1,33 @@
+SPDX-License-Identifier: CC-BY-SA-4.0 OR BSD-2-Clause
+brief: |
+ Returns the value of the specified integral expression and tells the compiler
+ that the predicted value is false (1).
+copyrights:
+- Copyright (C) 2018 embedded brains GmbH (http://www.embedded-brains.de)
+definition:
+ default: |
+ ( _exp )
+ variants:
+ - definition: |
+ ${/compiler/if/builtin-expect:/name}( ( _exp ), 0 )
+ enabled-by:
+ - defined(${/compiler/if/gnuc:/name})
+description: null
+enabled-by: true
+interface-type: macro
+links:
+- role: interface-placement
+ uid: header
+- role: interface-ingroup
+ uid: group
+name: RTEMS_PREDICT_FALSE
+notes: null
+params:
+- description: |
+ is the expression.
+ dir: null
+ name: _exp
+return:
+ return: The value of the expression.
+ return-values: []
+type: interface