summaryrefslogblamecommitdiffstats
path: root/spec/rtems/basedefs/if/predict-true.yml
blob: 83afbb07dc49b8bb8b66d1955f2afec3a86b5230 (plain) (tree)
1
2
3
4
5
6
7
8
9
10
11
                                                     
        

                                                                               


                                                                         



                 
                                                         
               
                                         

                 
                 




                           
            









                                      
               
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 true (1).
copyrights:
- Copyright (C) 2018 embedded brains GmbH (http://www.embedded-brains.de)
definition:
  default: |
    ( _exp )
  variants:
  - definition: |
      ${/compiler/if/builtin-expect:/name}( ( _exp ), 1 )
    enabled-by:
    - defined(${/compiler/if/gnuc:/name})
description: null
enabled-by: true
index-entries: []
interface-type: macro
links:
- role: interface-placement
  uid: header
- role: interface-ingroup
  uid: group
name: RTEMS_PREDICT_TRUE
notes: null
params:
- description: |
    is the expression.
  dir: null
  name: _exp
return:
  return: The value of the expression.
  return-values: []
type: interface