blob: 083523a30acc9979863f8c6d83c307c7f44d3cb4 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
|
/* Copyright (c) 2013-2018, Linaro Limited
* All rights reserved.
*
* SPDX-License-Identifier: BSD-3-Clause
*/
/**
* @file
*
* Standard C language types and definitions for ODP.
*
*/
#ifndef ODP_API_SPEC_STD_TYPES_H_
#define ODP_API_SPEC_STD_TYPES_H_
#include <odp/visibility_begin.h>
/* uint64_t, uint32_t, etc */
#include <stdint.h>
#ifdef __cplusplus
extern "C" {
#endif
/** @addtogroup odp_system ODP SYSTEM
* @{
*/
/**
* @typedef odp_bool_t
* Use odp boolean type to have it well-defined and known size,
* regardless which compiler is used as this facilities interoperability
* between e.g. different compilers.
*/
/**
* Percentage type
* Use odp_percent_t for specifying fields that are percentages. It is a fixed
* point integer whose units are expressed as one-hundredth of a percent.
* Hence 100% is represented as integer value 10000.
*/
typedef uint32_t odp_percent_t;
/**
* @}
*/
#ifdef __cplusplus
}
#endif
#include <odp/visibility_end.h>
#endif
|