<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/> <meta http-equiv="X-UA-Compatible" content="IE=9"/> <meta name="generator" content="Doxygen 1.8.16"/> <meta name="viewport" content="width=device-width, initial-scale=1"/> <title>UbixOS V2: C:/Dev/git/UbixOS/sys/include/sys/stdatomic.h Source File</title> <link href="tabs.css" rel="stylesheet" type="text/css"/> <script type="text/javascript" src="jquery.js"></script> <script type="text/javascript" src="dynsections.js"></script> <link href="navtree.css" rel="stylesheet" type="text/css"/> <script type="text/javascript" src="resize.js"></script> <script type="text/javascript" src="navtreedata.js"></script> <script type="text/javascript" src="navtree.js"></script> <script type="text/javascript"> /* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&dn=gpl-2.0.txt GPL-v2 */ $(document).ready(initResizable); /* @license-end */</script> <link href="search/search.css" rel="stylesheet" type="text/css"/> <script type="text/javascript" src="search/searchdata.js"></script> <script type="text/javascript" src="search/search.js"></script> <link href="doxygen.css" rel="stylesheet" type="text/css" /> </head> <body> <div id="top"><!-- do not remove this div, it is closed by doxygen! --> <div id="titlearea"> <table cellspacing="0" cellpadding="0"> <tbody> <tr style="height: 56px;"> <td id="projectalign" style="padding-left: 0.5em;"> <div id="projectname">UbixOS V2  <span id="projectnumber">2.0</span> </div> </td> </tr> </tbody> </table> </div> <!-- end header part --> <!-- Generated by Doxygen 1.8.16 --> <script type="text/javascript"> /* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&dn=gpl-2.0.txt GPL-v2 */ var searchBox = new SearchBox("searchBox", "search",false,'Search'); /* @license-end */ </script> <script type="text/javascript" src="menudata.js"></script> <script type="text/javascript" src="menu.js"></script> <script type="text/javascript"> /* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&dn=gpl-2.0.txt GPL-v2 */ $(function() { initMenu('',true,false,'search.php','Search'); $(document).ready(function() { init_search(); }); }); /* @license-end */</script> <div id="main-nav"></div> </div><!-- top --> <div id="side-nav" class="ui-resizable side-nav-resizable"> <div id="nav-tree"> <div id="nav-tree-contents"> <div id="nav-sync" class="sync"></div> </div> </div> <div id="splitbar" style="-moz-user-select:none;" class="ui-resizable-handle"> </div> </div> <script type="text/javascript"> /* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&dn=gpl-2.0.txt GPL-v2 */ $(document).ready(function(){initNavTree('stdatomic_8h_source.html','');}); /* @license-end */ </script> <div id="doc-content"> <!-- window showing the filter options --> <div id="MSearchSelectWindow" onmouseover="return searchBox.OnSearchSelectShow()" onmouseout="return searchBox.OnSearchSelectHide()" onkeydown="return searchBox.OnSearchSelectKey(event)"> </div> <!-- iframe showing the search results (closed by default) --> <div id="MSearchResultsWindow"> <iframe src="javascript:void(0)" frameborder="0" name="MSearchResults" id="MSearchResults"> </iframe> </div> <div class="header"> <div class="headertitle"> <div class="title">stdatomic.h</div> </div> </div><!--header--> <div class="contents"> <a href="stdatomic_8h.html">Go to the documentation of this file.</a><div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno"> 1</span> <span class="comment">/*-</span></div> <div class="line"><a name="l00002"></a><span class="lineno"> 2</span> <span class="comment"> * Copyright (c) 2011 Ed Schouten <ed@FreeBSD.org></span></div> <div class="line"><a name="l00003"></a><span class="lineno"> 3</span> <span class="comment"> * David Chisnall <theraven@FreeBSD.org></span></div> <div class="line"><a name="l00004"></a><span class="lineno"> 4</span> <span class="comment"> * All rights reserved.</span></div> <div class="line"><a name="l00005"></a><span class="lineno"> 5</span> <span class="comment"> *</span></div> <div class="line"><a name="l00006"></a><span class="lineno"> 6</span> <span class="comment"> * Redistribution and use in source and binary forms, with or without</span></div> <div class="line"><a name="l00007"></a><span class="lineno"> 7</span> <span class="comment"> * modification, are permitted provided that the following conditions</span></div> <div class="line"><a name="l00008"></a><span class="lineno"> 8</span> <span class="comment"> * are met:</span></div> <div class="line"><a name="l00009"></a><span class="lineno"> 9</span> <span class="comment"> * 1. Redistributions of source code must retain the above copyright</span></div> <div class="line"><a name="l00010"></a><span class="lineno"> 10</span> <span class="comment"> * notice, this list of conditions and the following disclaimer.</span></div> <div class="line"><a name="l00011"></a><span class="lineno"> 11</span> <span class="comment"> * 2. Redistributions in binary form must reproduce the above copyright</span></div> <div class="line"><a name="l00012"></a><span class="lineno"> 12</span> <span class="comment"> * notice, this list of conditions and the following disclaimer in the</span></div> <div class="line"><a name="l00013"></a><span class="lineno"> 13</span> <span class="comment"> * documentation and/or other materials provided with the distribution.</span></div> <div class="line"><a name="l00014"></a><span class="lineno"> 14</span> <span class="comment"> *</span></div> <div class="line"><a name="l00015"></a><span class="lineno"> 15</span> <span class="comment"> * THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND</span></div> <div class="line"><a name="l00016"></a><span class="lineno"> 16</span> <span class="comment"> * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE</span></div> <div class="line"><a name="l00017"></a><span class="lineno"> 17</span> <span class="comment"> * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE</span></div> <div class="line"><a name="l00018"></a><span class="lineno"> 18</span> <span class="comment"> * ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE</span></div> <div class="line"><a name="l00019"></a><span class="lineno"> 19</span> <span class="comment"> * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL</span></div> <div class="line"><a name="l00020"></a><span class="lineno"> 20</span> <span class="comment"> * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS</span></div> <div class="line"><a name="l00021"></a><span class="lineno"> 21</span> <span class="comment"> * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)</span></div> <div class="line"><a name="l00022"></a><span class="lineno"> 22</span> <span class="comment"> * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT</span></div> <div class="line"><a name="l00023"></a><span class="lineno"> 23</span> <span class="comment"> * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY</span></div> <div class="line"><a name="l00024"></a><span class="lineno"> 24</span> <span class="comment"> * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF</span></div> <div class="line"><a name="l00025"></a><span class="lineno"> 25</span> <span class="comment"> * SUCH DAMAGE.</span></div> <div class="line"><a name="l00026"></a><span class="lineno"> 26</span> <span class="comment"> *</span></div> <div class="line"><a name="l00027"></a><span class="lineno"> 27</span> <span class="comment"> * $FreeBSD: releng/11.1/sys/sys/stdatomic.h 263998 2014-04-01 14:46:11Z tijl $</span></div> <div class="line"><a name="l00028"></a><span class="lineno"> 28</span> <span class="comment"> */</span></div> <div class="line"><a name="l00029"></a><span class="lineno"> 29</span>  </div> <div class="line"><a name="l00030"></a><span class="lineno"> 30</span> <span class="preprocessor">#ifndef _STDATOMIC_H_</span></div> <div class="line"><a name="l00031"></a><span class="lineno"> 31</span> <span class="preprocessor">#define _STDATOMIC_H_</span></div> <div class="line"><a name="l00032"></a><span class="lineno"> 32</span>  </div> <div class="line"><a name="l00033"></a><span class="lineno"> 33</span> <span class="preprocessor">#include <<a class="code" href="cdefs_8h.html">sys/cdefs.h</a>></span></div> <div class="line"><a name="l00034"></a><span class="lineno"> 34</span> <span class="preprocessor">#include <<a class="code" href="__types_8h.html">sys/_types.h</a>></span></div> <div class="line"><a name="l00035"></a><span class="lineno"> 35</span>  </div> <div class="line"><a name="l00036"></a><span class="lineno"> 36</span> <span class="preprocessor">#if __has_extension(c_atomic) || __has_extension(cxx_atomic)</span></div> <div class="line"><a name="l00037"></a><span class="lineno"> 37</span> <span class="preprocessor">#define __CLANG_ATOMICS</span></div> <div class="line"><a name="l00038"></a><span class="lineno"> 38</span> <span class="preprocessor">#elif __GNUC_PREREQ__(4, 7)</span></div> <div class="line"><a name="l00039"></a><span class="lineno"> 39</span> <span class="preprocessor">#define __GNUC_ATOMICS</span></div> <div class="line"><a name="l00040"></a><span class="lineno"> 40</span> <span class="preprocessor">#elif defined(__GNUC__)</span></div> <div class="line"><a name="l00041"></a><span class="lineno"> 41</span> <span class="preprocessor">#define __SYNC_ATOMICS</span></div> <div class="line"><a name="l00042"></a><span class="lineno"> 42</span> <span class="preprocessor">#else</span></div> <div class="line"><a name="l00043"></a><span class="lineno"> 43</span> <span class="preprocessor">#error "stdatomic.h does not support your compiler"</span></div> <div class="line"><a name="l00044"></a><span class="lineno"> 44</span> <span class="preprocessor">#endif</span></div> <div class="line"><a name="l00045"></a><span class="lineno"> 45</span>  </div> <div class="line"><a name="l00046"></a><span class="lineno"> 46</span> <span class="comment">/*</span></div> <div class="line"><a name="l00047"></a><span class="lineno"> 47</span> <span class="comment"> * 7.17.1 Atomic lock-free macros.</span></div> <div class="line"><a name="l00048"></a><span class="lineno"> 48</span> <span class="comment"> */</span></div> <div class="line"><a name="l00049"></a><span class="lineno"> 49</span>  </div> <div class="line"><a name="l00050"></a><span class="lineno"> 50</span> <span class="preprocessor">#ifdef __GCC_ATOMIC_BOOL_LOCK_FREE</span></div> <div class="line"><a name="l00051"></a><span class="lineno"> 51</span> <span class="preprocessor">#define ATOMIC_BOOL_LOCK_FREE __GCC_ATOMIC_BOOL_LOCK_FREE</span></div> <div class="line"><a name="l00052"></a><span class="lineno"> 52</span> <span class="preprocessor">#endif</span></div> <div class="line"><a name="l00053"></a><span class="lineno"> 53</span> <span class="preprocessor">#ifdef __GCC_ATOMIC_CHAR_LOCK_FREE</span></div> <div class="line"><a name="l00054"></a><span class="lineno"> 54</span> <span class="preprocessor">#define ATOMIC_CHAR_LOCK_FREE __GCC_ATOMIC_CHAR_LOCK_FREE</span></div> <div class="line"><a name="l00055"></a><span class="lineno"> 55</span> <span class="preprocessor">#endif</span></div> <div class="line"><a name="l00056"></a><span class="lineno"> 56</span> <span class="preprocessor">#ifdef __GCC_ATOMIC_CHAR16_T_LOCK_FREE</span></div> <div class="line"><a name="l00057"></a><span class="lineno"> 57</span> <span class="preprocessor">#define ATOMIC_CHAR16_T_LOCK_FREE __GCC_ATOMIC_CHAR16_T_LOCK_FREE</span></div> <div class="line"><a name="l00058"></a><span class="lineno"> 58</span> <span class="preprocessor">#endif</span></div> <div class="line"><a name="l00059"></a><span class="lineno"> 59</span> <span class="preprocessor">#ifdef __GCC_ATOMIC_CHAR32_T_LOCK_FREE</span></div> <div class="line"><a name="l00060"></a><span class="lineno"> 60</span> <span class="preprocessor">#define ATOMIC_CHAR32_T_LOCK_FREE __GCC_ATOMIC_CHAR32_T_LOCK_FREE</span></div> <div class="line"><a name="l00061"></a><span class="lineno"> 61</span> <span class="preprocessor">#endif</span></div> <div class="line"><a name="l00062"></a><span class="lineno"> 62</span> <span class="preprocessor">#ifdef __GCC_ATOMIC_WCHAR_T_LOCK_FREE</span></div> <div class="line"><a name="l00063"></a><span class="lineno"> 63</span> <span class="preprocessor">#define ATOMIC_WCHAR_T_LOCK_FREE __GCC_ATOMIC_WCHAR_T_LOCK_FREE</span></div> <div class="line"><a name="l00064"></a><span class="lineno"> 64</span> <span class="preprocessor">#endif</span></div> <div class="line"><a name="l00065"></a><span class="lineno"> 65</span> <span class="preprocessor">#ifdef __GCC_ATOMIC_SHORT_LOCK_FREE</span></div> <div class="line"><a name="l00066"></a><span class="lineno"> 66</span> <span class="preprocessor">#define ATOMIC_SHORT_LOCK_FREE __GCC_ATOMIC_SHORT_LOCK_FREE</span></div> <div class="line"><a name="l00067"></a><span class="lineno"> 67</span> <span class="preprocessor">#endif</span></div> <div class="line"><a name="l00068"></a><span class="lineno"> 68</span> <span class="preprocessor">#ifdef __GCC_ATOMIC_INT_LOCK_FREE</span></div> <div class="line"><a name="l00069"></a><span class="lineno"> 69</span> <span class="preprocessor">#define ATOMIC_INT_LOCK_FREE __GCC_ATOMIC_INT_LOCK_FREE</span></div> <div class="line"><a name="l00070"></a><span class="lineno"> 70</span> <span class="preprocessor">#endif</span></div> <div class="line"><a name="l00071"></a><span class="lineno"> 71</span> <span class="preprocessor">#ifdef __GCC_ATOMIC_LONG_LOCK_FREE</span></div> <div class="line"><a name="l00072"></a><span class="lineno"> 72</span> <span class="preprocessor">#define ATOMIC_LONG_LOCK_FREE __GCC_ATOMIC_LONG_LOCK_FREE</span></div> <div class="line"><a name="l00073"></a><span class="lineno"> 73</span> <span class="preprocessor">#endif</span></div> <div class="line"><a name="l00074"></a><span class="lineno"> 74</span> <span class="preprocessor">#ifdef __GCC_ATOMIC_LLONG_LOCK_FREE</span></div> <div class="line"><a name="l00075"></a><span class="lineno"> 75</span> <span class="preprocessor">#define ATOMIC_LLONG_LOCK_FREE __GCC_ATOMIC_LLONG_LOCK_FREE</span></div> <div class="line"><a name="l00076"></a><span class="lineno"> 76</span> <span class="preprocessor">#endif</span></div> <div class="line"><a name="l00077"></a><span class="lineno"> 77</span> <span class="preprocessor">#ifdef __GCC_ATOMIC_POINTER_LOCK_FREE</span></div> <div class="line"><a name="l00078"></a><span class="lineno"> 78</span> <span class="preprocessor">#define ATOMIC_POINTER_LOCK_FREE __GCC_ATOMIC_POINTER_LOCK_FREE</span></div> <div class="line"><a name="l00079"></a><span class="lineno"> 79</span> <span class="preprocessor">#endif</span></div> <div class="line"><a name="l00080"></a><span class="lineno"> 80</span>  </div> <div class="line"><a name="l00081"></a><span class="lineno"> 81</span> <span class="comment">/*</span></div> <div class="line"><a name="l00082"></a><span class="lineno"> 82</span> <span class="comment"> * 7.17.2 Initialization.</span></div> <div class="line"><a name="l00083"></a><span class="lineno"> 83</span> <span class="comment"> */</span></div> <div class="line"><a name="l00084"></a><span class="lineno"> 84</span>  </div> <div class="line"><a name="l00085"></a><span class="lineno"> 85</span> <span class="preprocessor">#if defined(__CLANG_ATOMICS)</span></div> <div class="line"><a name="l00086"></a><span class="lineno"> 86</span> <span class="preprocessor">#define ATOMIC_VAR_INIT(value) (value)</span></div> <div class="line"><a name="l00087"></a><span class="lineno"> 87</span> <span class="preprocessor">#define atomic_init(obj, value) __c11_atomic_init(obj, value)</span></div> <div class="line"><a name="l00088"></a><span class="lineno"> 88</span> <span class="preprocessor">#else</span></div> <div class="line"><a name="l00089"></a><span class="lineno"><a class="line" href="stdatomic_8h.html#ad501bafcd2074b392f630497545de87d"> 89</a></span> <span class="preprocessor">#define ATOMIC_VAR_INIT(value) { .__val = (value) }</span></div> <div class="line"><a name="l00090"></a><span class="lineno"><a class="line" href="stdatomic_8h.html#af8a9cbe9495fcafaa892b24b383acf96"> 90</a></span> <span class="preprocessor">#define atomic_init(obj, value) ((void)((obj)->__val = (value)))</span></div> <div class="line"><a name="l00091"></a><span class="lineno"> 91</span> <span class="preprocessor">#endif</span></div> <div class="line"><a name="l00092"></a><span class="lineno"> 92</span>  </div> <div class="line"><a name="l00093"></a><span class="lineno"> 93</span> <span class="comment">/*</span></div> <div class="line"><a name="l00094"></a><span class="lineno"> 94</span> <span class="comment"> * Clang and recent GCC both provide predefined macros for the memory</span></div> <div class="line"><a name="l00095"></a><span class="lineno"> 95</span> <span class="comment"> * orderings. If we are using a compiler that doesn't define them, use the</span></div> <div class="line"><a name="l00096"></a><span class="lineno"> 96</span> <span class="comment"> * clang values - these will be ignored in the fallback path.</span></div> <div class="line"><a name="l00097"></a><span class="lineno"> 97</span> <span class="comment"> */</span></div> <div class="line"><a name="l00098"></a><span class="lineno"> 98</span>  </div> <div class="line"><a name="l00099"></a><span class="lineno"> 99</span> <span class="preprocessor">#ifndef __ATOMIC_RELAXED</span></div> <div class="line"><a name="l00100"></a><span class="lineno"><a class="line" href="stdatomic_8h.html#a8faf1f097f05558889df4c44d052d35e"> 100</a></span> <span class="preprocessor">#define __ATOMIC_RELAXED 0</span></div> <div class="line"><a name="l00101"></a><span class="lineno"> 101</span> <span class="preprocessor">#endif</span></div> <div class="line"><a name="l00102"></a><span class="lineno"> 102</span> <span class="preprocessor">#ifndef __ATOMIC_CONSUME</span></div> <div class="line"><a name="l00103"></a><span class="lineno"><a class="line" href="stdatomic_8h.html#a762c3361bcfeccc1f2742cc94b1ab65b"> 103</a></span> <span class="preprocessor">#define __ATOMIC_CONSUME 1</span></div> <div class="line"><a name="l00104"></a><span class="lineno"> 104</span> <span class="preprocessor">#endif</span></div> <div class="line"><a name="l00105"></a><span class="lineno"> 105</span> <span class="preprocessor">#ifndef __ATOMIC_ACQUIRE</span></div> <div class="line"><a name="l00106"></a><span class="lineno"><a class="line" href="stdatomic_8h.html#a72e3c30a05bd2bb63d76550e451a438e"> 106</a></span> <span class="preprocessor">#define __ATOMIC_ACQUIRE 2</span></div> <div class="line"><a name="l00107"></a><span class="lineno"> 107</span> <span class="preprocessor">#endif</span></div> <div class="line"><a name="l00108"></a><span class="lineno"> 108</span> <span class="preprocessor">#ifndef __ATOMIC_RELEASE</span></div> <div class="line"><a name="l00109"></a><span class="lineno"><a class="line" href="stdatomic_8h.html#a5822cf04414d99e0ee81e8bbe182226b"> 109</a></span> <span class="preprocessor">#define __ATOMIC_RELEASE 3</span></div> <div class="line"><a name="l00110"></a><span class="lineno"> 110</span> <span class="preprocessor">#endif</span></div> <div class="line"><a name="l00111"></a><span class="lineno"> 111</span> <span class="preprocessor">#ifndef __ATOMIC_ACQ_REL</span></div> <div class="line"><a name="l00112"></a><span class="lineno"><a class="line" href="stdatomic_8h.html#acdfdd67de0664b690c42bba327cf7da1"> 112</a></span> <span class="preprocessor">#define __ATOMIC_ACQ_REL 4</span></div> <div class="line"><a name="l00113"></a><span class="lineno"> 113</span> <span class="preprocessor">#endif</span></div> <div class="line"><a name="l00114"></a><span class="lineno"> 114</span> <span class="preprocessor">#ifndef __ATOMIC_SEQ_CST</span></div> <div class="line"><a name="l00115"></a><span class="lineno"><a class="line" href="stdatomic_8h.html#a0609dc2b702d5980de44c01bd373136a"> 115</a></span> <span class="preprocessor">#define __ATOMIC_SEQ_CST 5</span></div> <div class="line"><a name="l00116"></a><span class="lineno"> 116</span> <span class="preprocessor">#endif</span></div> <div class="line"><a name="l00117"></a><span class="lineno"> 117</span>  </div> <div class="line"><a name="l00118"></a><span class="lineno"> 118</span> <span class="comment">/*</span></div> <div class="line"><a name="l00119"></a><span class="lineno"> 119</span> <span class="comment"> * 7.17.3 Order and consistency.</span></div> <div class="line"><a name="l00120"></a><span class="lineno"> 120</span> <span class="comment"> *</span></div> <div class="line"><a name="l00121"></a><span class="lineno"> 121</span> <span class="comment"> * The memory_order_* constants that denote the barrier behaviour of the</span></div> <div class="line"><a name="l00122"></a><span class="lineno"> 122</span> <span class="comment"> * atomic operations.</span></div> <div class="line"><a name="l00123"></a><span class="lineno"> 123</span> <span class="comment"> */</span></div> <div class="line"><a name="l00124"></a><span class="lineno"> 124</span>  </div> <div class="line"><a name="l00125"></a><span class="lineno"><a class="line" href="stdatomic_8h.html#a17c2de5ae768960284c047a320f17d1b"> 125</a></span> <span class="keyword">typedef</span> <span class="keyword">enum</span> {</div> <div class="line"><a name="l00126"></a><span class="lineno"><a class="line" href="stdatomic_8h.html#a17c2de5ae768960284c047a320f17d1bac6489d0374e297a776f6a3db7ea5654a"> 126</a></span>  <a class="code" href="stdatomic_8h.html#a17c2de5ae768960284c047a320f17d1bac6489d0374e297a776f6a3db7ea5654a">memory_order_relaxed</a> = <a class="code" href="stdatomic_8h.html#a8faf1f097f05558889df4c44d052d35e">__ATOMIC_RELAXED</a>,</div> <div class="line"><a name="l00127"></a><span class="lineno"><a class="line" href="stdatomic_8h.html#a17c2de5ae768960284c047a320f17d1ba0745f54882bc00251a719e42969db110"> 127</a></span>  <a class="code" href="stdatomic_8h.html#a17c2de5ae768960284c047a320f17d1ba0745f54882bc00251a719e42969db110">memory_order_consume</a> = <a class="code" href="stdatomic_8h.html#a762c3361bcfeccc1f2742cc94b1ab65b">__ATOMIC_CONSUME</a>,</div> <div class="line"><a name="l00128"></a><span class="lineno"><a class="line" href="stdatomic_8h.html#a17c2de5ae768960284c047a320f17d1bafb313754331704b978e9a80a933b3da7"> 128</a></span>  <a class="code" href="stdatomic_8h.html#a17c2de5ae768960284c047a320f17d1bafb313754331704b978e9a80a933b3da7">memory_order_acquire</a> = <a class="code" href="stdatomic_8h.html#a72e3c30a05bd2bb63d76550e451a438e">__ATOMIC_ACQUIRE</a>,</div> <div class="line"><a name="l00129"></a><span class="lineno"><a class="line" href="stdatomic_8h.html#a17c2de5ae768960284c047a320f17d1ba685a90c8fc516895354973c3918a5f7b"> 129</a></span>  <a class="code" href="stdatomic_8h.html#a17c2de5ae768960284c047a320f17d1ba685a90c8fc516895354973c3918a5f7b">memory_order_release</a> = <a class="code" href="stdatomic_8h.html#a5822cf04414d99e0ee81e8bbe182226b">__ATOMIC_RELEASE</a>,</div> <div class="line"><a name="l00130"></a><span class="lineno"><a class="line" href="stdatomic_8h.html#a17c2de5ae768960284c047a320f17d1bae17e60cbfd766a7f165872c36e2f7bc5"> 130</a></span>  <a class="code" href="stdatomic_8h.html#a17c2de5ae768960284c047a320f17d1bae17e60cbfd766a7f165872c36e2f7bc5">memory_order_acq_rel</a> = <a class="code" href="stdatomic_8h.html#acdfdd67de0664b690c42bba327cf7da1">__ATOMIC_ACQ_REL</a>,</div> <div class="line"><a name="l00131"></a><span class="lineno"><a class="line" href="stdatomic_8h.html#a17c2de5ae768960284c047a320f17d1ba2d21914d1edd227a890107e7878a3752"> 131</a></span>  <a class="code" href="stdatomic_8h.html#a17c2de5ae768960284c047a320f17d1ba2d21914d1edd227a890107e7878a3752">memory_order_seq_cst</a> = <a class="code" href="stdatomic_8h.html#a0609dc2b702d5980de44c01bd373136a">__ATOMIC_SEQ_CST</a></div> <div class="line"><a name="l00132"></a><span class="lineno"> 132</span> } <a class="code" href="stdatomic_8h.html#a17c2de5ae768960284c047a320f17d1b">memory_order</a>;</div> <div class="line"><a name="l00133"></a><span class="lineno"> 133</span>  </div> <div class="line"><a name="l00134"></a><span class="lineno"> 134</span> <span class="comment">/*</span></div> <div class="line"><a name="l00135"></a><span class="lineno"> 135</span> <span class="comment"> * 7.17.4 Fences.</span></div> <div class="line"><a name="l00136"></a><span class="lineno"> 136</span> <span class="comment"> */</span></div> <div class="line"><a name="l00137"></a><span class="lineno"> 137</span>  </div> <div class="line"><a name="l00138"></a><span class="lineno"> 138</span> <span class="keyword">static</span> <a class="code" href="cdefs_8h.html#a96deb7ba5a74848afb710cc4ee6d2c08">__inline</a> <span class="keywordtype">void</span></div> <div class="line"><a name="l00139"></a><span class="lineno"> 139</span> atomic_thread_fence(<a class="code" href="stdatomic_8h.html#a17c2de5ae768960284c047a320f17d1b">memory_order</a> __order <a class="code" href="cdefs_8h.html#a2e3484535ee610c8e19e9859563abe48">__unused</a>)</div> <div class="line"><a name="l00140"></a><span class="lineno"> 140</span> {</div> <div class="line"><a name="l00141"></a><span class="lineno"> 141</span>  </div> <div class="line"><a name="l00142"></a><span class="lineno"> 142</span> <span class="preprocessor">#ifdef __CLANG_ATOMICS</span></div> <div class="line"><a name="l00143"></a><span class="lineno"> 143</span>  __c11_atomic_thread_fence(__order);</div> <div class="line"><a name="l00144"></a><span class="lineno"> 144</span> <span class="preprocessor">#elif defined(__GNUC_ATOMICS)</span></div> <div class="line"><a name="l00145"></a><span class="lineno"> 145</span>  __atomic_thread_fence(__order);</div> <div class="line"><a name="l00146"></a><span class="lineno"> 146</span> <span class="preprocessor">#else</span></div> <div class="line"><a name="l00147"></a><span class="lineno"> 147</span>  __sync_synchronize();</div> <div class="line"><a name="l00148"></a><span class="lineno"> 148</span> <span class="preprocessor">#endif</span></div> <div class="line"><a name="l00149"></a><span class="lineno"> 149</span> }</div> <div class="line"><a name="l00150"></a><span class="lineno"> 150</span>  </div> <div class="line"><a name="l00151"></a><span class="lineno"> 151</span> <span class="keyword">static</span> <a class="code" href="cdefs_8h.html#a96deb7ba5a74848afb710cc4ee6d2c08">__inline</a> <span class="keywordtype">void</span></div> <div class="line"><a name="l00152"></a><span class="lineno"> 152</span> atomic_signal_fence(<a class="code" href="stdatomic_8h.html#a17c2de5ae768960284c047a320f17d1b">memory_order</a> __order <a class="code" href="cdefs_8h.html#a2e3484535ee610c8e19e9859563abe48">__unused</a>)</div> <div class="line"><a name="l00153"></a><span class="lineno"> 153</span> {</div> <div class="line"><a name="l00154"></a><span class="lineno"> 154</span>  </div> <div class="line"><a name="l00155"></a><span class="lineno"> 155</span> <span class="preprocessor">#ifdef __CLANG_ATOMICS</span></div> <div class="line"><a name="l00156"></a><span class="lineno"> 156</span>  __c11_atomic_signal_fence(__order);</div> <div class="line"><a name="l00157"></a><span class="lineno"> 157</span> <span class="preprocessor">#elif defined(__GNUC_ATOMICS)</span></div> <div class="line"><a name="l00158"></a><span class="lineno"> 158</span>  __atomic_signal_fence(__order);</div> <div class="line"><a name="l00159"></a><span class="lineno"> 159</span> <span class="preprocessor">#else</span></div> <div class="line"><a name="l00160"></a><span class="lineno"> 160</span>  <a class="code" href="i386_2fork_8c.html#a261cebc38d369f0e4deb601a1cbe4199">__asm</a> <span class="keyword">volatile</span> (<span class="stringliteral">""</span> ::: <span class="stringliteral">"memory"</span>);</div> <div class="line"><a name="l00161"></a><span class="lineno"> 161</span> <span class="preprocessor">#endif</span></div> <div class="line"><a name="l00162"></a><span class="lineno"> 162</span> }</div> <div class="line"><a name="l00163"></a><span class="lineno"> 163</span>  </div> <div class="line"><a name="l00164"></a><span class="lineno"> 164</span> <span class="comment">/*</span></div> <div class="line"><a name="l00165"></a><span class="lineno"> 165</span> <span class="comment"> * 7.17.5 Lock-free property.</span></div> <div class="line"><a name="l00166"></a><span class="lineno"> 166</span> <span class="comment"> */</span></div> <div class="line"><a name="l00167"></a><span class="lineno"> 167</span>  </div> <div class="line"><a name="l00168"></a><span class="lineno"> 168</span> <span class="preprocessor">#if defined(_KERNEL)</span></div> <div class="line"><a name="l00169"></a><span class="lineno"> 169</span> <span class="comment">/* Atomics in kernelspace are always lock-free. */</span></div> <div class="line"><a name="l00170"></a><span class="lineno"> 170</span> <span class="preprocessor">#define atomic_is_lock_free(obj) \</span></div> <div class="line"><a name="l00171"></a><span class="lineno"> 171</span> <span class="preprocessor"> ((void)(obj), (_Bool)1)</span></div> <div class="line"><a name="l00172"></a><span class="lineno"> 172</span> <span class="preprocessor">#elif defined(__CLANG_ATOMICS)</span></div> <div class="line"><a name="l00173"></a><span class="lineno"> 173</span> <span class="preprocessor">#define atomic_is_lock_free(obj) \</span></div> <div class="line"><a name="l00174"></a><span class="lineno"> 174</span> <span class="preprocessor"> __atomic_is_lock_free(sizeof(*(obj)), obj)</span></div> <div class="line"><a name="l00175"></a><span class="lineno"> 175</span> <span class="preprocessor">#elif defined(__GNUC_ATOMICS)</span></div> <div class="line"><a name="l00176"></a><span class="lineno"> 176</span> <span class="preprocessor">#define atomic_is_lock_free(obj) \</span></div> <div class="line"><a name="l00177"></a><span class="lineno"> 177</span> <span class="preprocessor"> __atomic_is_lock_free(sizeof((obj)->__val), &(obj)->__val)</span></div> <div class="line"><a name="l00178"></a><span class="lineno"> 178</span> <span class="preprocessor">#else</span></div> <div class="line"><a name="l00179"></a><span class="lineno"><a class="line" href="stdatomic_8h.html#a6e87cf22c6c854b1144fbba53bf579bb"> 179</a></span> <span class="preprocessor">#define atomic_is_lock_free(obj) \</span></div> <div class="line"><a name="l00180"></a><span class="lineno"> 180</span> <span class="preprocessor"> ((void)(obj), sizeof((obj)->__val) <= sizeof(void *))</span></div> <div class="line"><a name="l00181"></a><span class="lineno"> 181</span> <span class="preprocessor">#endif</span></div> <div class="line"><a name="l00182"></a><span class="lineno"> 182</span>  </div> <div class="line"><a name="l00183"></a><span class="lineno"> 183</span> <span class="comment">/*</span></div> <div class="line"><a name="l00184"></a><span class="lineno"> 184</span> <span class="comment"> * 7.17.6 Atomic integer types.</span></div> <div class="line"><a name="l00185"></a><span class="lineno"> 185</span> <span class="comment"> */</span></div> <div class="line"><a name="l00186"></a><span class="lineno"> 186</span>  </div> <div class="line"><a name="l00187"></a><span class="lineno"> 187</span> <span class="keyword">typedef</span> <a class="code" href="stdatomic_8h.html#afff57ffb45845b688f5b8749a5ee4f64">_Atomic</a>(_Bool) atomic_bool;</div> <div class="line"><a name="l00188"></a><span class="lineno"> 188</span> <span class="keyword">typedef</span> <a class="code" href="stdatomic_8h.html#afff57ffb45845b688f5b8749a5ee4f64">_Atomic</a>(<span class="keywordtype">char</span>) atomic_char;</div> <div class="line"><a name="l00189"></a><span class="lineno"> 189</span> <span class="keyword">typedef</span> <a class="code" href="stdatomic_8h.html#afff57ffb45845b688f5b8749a5ee4f64">_Atomic</a>(<span class="keywordtype">signed</span> <span class="keywordtype">char</span>) atomic_schar;</div> <div class="line"><a name="l00190"></a><span class="lineno"> 190</span> <span class="keyword">typedef</span> <a class="code" href="stdatomic_8h.html#afff57ffb45845b688f5b8749a5ee4f64">_Atomic</a>(<span class="keywordtype">unsigned</span> <span class="keywordtype">char</span>) atomic_uchar;</div> <div class="line"><a name="l00191"></a><span class="lineno"> 191</span> <span class="keyword">typedef</span> <a class="code" href="stdatomic_8h.html#afff57ffb45845b688f5b8749a5ee4f64">_Atomic</a>(<span class="keywordtype">short</span>) atomic_short;</div> <div class="line"><a name="l00192"></a><span class="lineno"> 192</span> <span class="keyword">typedef</span> <a class="code" href="stdatomic_8h.html#afff57ffb45845b688f5b8749a5ee4f64">_Atomic</a>(<span class="keywordtype">unsigned</span> <span class="keywordtype">short</span>) atomic_ushort;</div> <div class="line"><a name="l00193"></a><span class="lineno"> 193</span> <span class="keyword">typedef</span> <a class="code" href="stdatomic_8h.html#afff57ffb45845b688f5b8749a5ee4f64">_Atomic</a>(<span class="keywordtype">int</span>) atomic_int;</div> <div class="line"><a name="l00194"></a><span class="lineno"> 194</span> <span class="keyword">typedef</span> <a class="code" href="stdatomic_8h.html#afff57ffb45845b688f5b8749a5ee4f64">_Atomic</a>(<span class="keywordtype">unsigned</span> <span class="keywordtype">int</span>) atomic_uint;</div> <div class="line"><a name="l00195"></a><span class="lineno"> 195</span> <span class="keyword">typedef</span> <a class="code" href="stdatomic_8h.html#afff57ffb45845b688f5b8749a5ee4f64">_Atomic</a>(<span class="keywordtype">long</span>) atomic_long;</div> <div class="line"><a name="l00196"></a><span class="lineno"> 196</span> <span class="keyword">typedef</span> <a class="code" href="stdatomic_8h.html#afff57ffb45845b688f5b8749a5ee4f64">_Atomic</a>(<span class="keywordtype">unsigned</span> <span class="keywordtype">long</span>) atomic_ulong;</div> <div class="line"><a name="l00197"></a><span class="lineno"> 197</span> <span class="keyword">typedef</span> <a class="code" href="stdatomic_8h.html#afff57ffb45845b688f5b8749a5ee4f64">_Atomic</a>(<span class="keywordtype">long</span> <span class="keywordtype">long</span>) atomic_llong;</div> <div class="line"><a name="l00198"></a><span class="lineno"> 198</span> <span class="keyword">typedef</span> <a class="code" href="stdatomic_8h.html#afff57ffb45845b688f5b8749a5ee4f64">_Atomic</a>(<span class="keywordtype">unsigned</span> <span class="keywordtype">long</span> <span class="keywordtype">long</span>) atomic_ullong;</div> <div class="line"><a name="l00199"></a><span class="lineno"> 199</span> <span class="keyword">typedef</span> <a class="code" href="stdatomic_8h.html#afff57ffb45845b688f5b8749a5ee4f64">_Atomic</a>(<a class="code" href="__types_8h.html#ab3dae49088787dc5e847b739ebc5dac7">__char16_t</a>) atomic_char16_t;</div> <div class="line"><a name="l00200"></a><span class="lineno"> 200</span> <span class="keyword">typedef</span> <a class="code" href="stdatomic_8h.html#afff57ffb45845b688f5b8749a5ee4f64">_Atomic</a>(<a class="code" href="__types_8h.html#a30327bea027096373db4072a0bb99339">__char32_t</a>) atomic_char32_t;</div> <div class="line"><a name="l00201"></a><span class="lineno"> 201</span> <span class="keyword">typedef</span> <a class="code" href="stdatomic_8h.html#afff57ffb45845b688f5b8749a5ee4f64">_Atomic</a>(<a class="code" href="__types_8h.html#aba41fdf1979fb49dbe4c8224afe782f5">___wchar_t</a>) atomic_wchar_t;</div> <div class="line"><a name="l00202"></a><span class="lineno"> 202</span> <span class="keyword">typedef</span> <a class="code" href="stdatomic_8h.html#afff57ffb45845b688f5b8749a5ee4f64">_Atomic</a>(<a class="code" href="__types_8h.html#a962256f0ccb26adfecb13c6170ee4b72">__int_least8_t</a>) atomic_int_least8_t;</div> <div class="line"><a name="l00203"></a><span class="lineno"> 203</span> <span class="keyword">typedef</span> <a class="code" href="stdatomic_8h.html#afff57ffb45845b688f5b8749a5ee4f64">_Atomic</a>(<a class="code" href="__types_8h.html#a8dfcdf0f629261c1e7e032535fd5d21a">__uint_least8_t</a>) atomic_uint_least8_t;</div> <div class="line"><a name="l00204"></a><span class="lineno"> 204</span> <span class="keyword">typedef</span> <a class="code" href="stdatomic_8h.html#afff57ffb45845b688f5b8749a5ee4f64">_Atomic</a>(<a class="code" href="__types_8h.html#a196a42e0974275e188e1976d1fd2981e">__int_least16_t</a>) atomic_int_least16_t;</div> <div class="line"><a name="l00205"></a><span class="lineno"> 205</span> <span class="keyword">typedef</span> <a class="code" href="stdatomic_8h.html#afff57ffb45845b688f5b8749a5ee4f64">_Atomic</a>(<a class="code" href="__types_8h.html#ab7d5961034ac12b88541de598ba984d7">__uint_least16_t</a>) atomic_uint_least16_t;</div> <div class="line"><a name="l00206"></a><span class="lineno"> 206</span> <span class="keyword">typedef</span> <a class="code" href="stdatomic_8h.html#afff57ffb45845b688f5b8749a5ee4f64">_Atomic</a>(<a class="code" href="__types_8h.html#a67f3288c3cd64de8d38ebc03618720ce">__int_least32_t</a>) atomic_int_least32_t;</div> <div class="line"><a name="l00207"></a><span class="lineno"> 207</span> <span class="keyword">typedef</span> <a class="code" href="stdatomic_8h.html#afff57ffb45845b688f5b8749a5ee4f64">_Atomic</a>(<a class="code" href="__types_8h.html#a0d86e7cff98afe51af86ef1fe7e3e74c">__uint_least32_t</a>) atomic_uint_least32_t;</div> <div class="line"><a name="l00208"></a><span class="lineno"> 208</span> <span class="keyword">typedef</span> <a class="code" href="stdatomic_8h.html#afff57ffb45845b688f5b8749a5ee4f64">_Atomic</a>(<a class="code" href="__types_8h.html#a18de3043b15b8aa305d9b5b2a682bb40">__int_least64_t</a>) atomic_int_least64_t;</div> <div class="line"><a name="l00209"></a><span class="lineno"> 209</span> <span class="keyword">typedef</span> <a class="code" href="stdatomic_8h.html#afff57ffb45845b688f5b8749a5ee4f64">_Atomic</a>(<a class="code" href="__types_8h.html#a8c4b70b5451d9f70268f9215b0f1477a">__uint_least64_t</a>) atomic_uint_least64_t;</div> <div class="line"><a name="l00210"></a><span class="lineno"> 210</span> <span class="keyword">typedef</span> <a class="code" href="stdatomic_8h.html#afff57ffb45845b688f5b8749a5ee4f64">_Atomic</a>(<a class="code" href="__types_8h.html#ad4dbdcd9acdaf0c171b6d7b1b3535ef7">__int_fast8_t</a>) atomic_int_fast8_t;</div> <div class="line"><a name="l00211"></a><span class="lineno"> 211</span> <span class="keyword">typedef</span> <a class="code" href="stdatomic_8h.html#afff57ffb45845b688f5b8749a5ee4f64">_Atomic</a>(<a class="code" href="__types_8h.html#ac477ed7feb189578badaacb83949a91a">__uint_fast8_t</a>) atomic_uint_fast8_t;</div> <div class="line"><a name="l00212"></a><span class="lineno"> 212</span> <span class="keyword">typedef</span> <a class="code" href="stdatomic_8h.html#afff57ffb45845b688f5b8749a5ee4f64">_Atomic</a>(<a class="code" href="__types_8h.html#a45e5e1290ceb032700b1da5de0ea2104">__int_fast16_t</a>) atomic_int_fast16_t;</div> <div class="line"><a name="l00213"></a><span class="lineno"> 213</span> <span class="keyword">typedef</span> <a class="code" href="stdatomic_8h.html#afff57ffb45845b688f5b8749a5ee4f64">_Atomic</a>(<a class="code" href="__types_8h.html#a146610b9556d196f42f602d7ac57120c">__uint_fast16_t</a>) atomic_uint_fast16_t;</div> <div class="line"><a name="l00214"></a><span class="lineno"> 214</span> <span class="keyword">typedef</span> <a class="code" href="stdatomic_8h.html#afff57ffb45845b688f5b8749a5ee4f64">_Atomic</a>(<a class="code" href="__types_8h.html#ae628aa18214994074e7ca12175754d78">__int_fast32_t</a>) atomic_int_fast32_t;</div> <div class="line"><a name="l00215"></a><span class="lineno"> 215</span> <span class="keyword">typedef</span> <a class="code" href="stdatomic_8h.html#afff57ffb45845b688f5b8749a5ee4f64">_Atomic</a>(<a class="code" href="__types_8h.html#a678ada5188ffe9cdf1014585d7eff9cc">__uint_fast32_t</a>) atomic_uint_fast32_t;</div> <div class="line"><a name="l00216"></a><span class="lineno"> 216</span> <span class="keyword">typedef</span> <a class="code" href="stdatomic_8h.html#afff57ffb45845b688f5b8749a5ee4f64">_Atomic</a>(<a class="code" href="__types_8h.html#a6e72e49779e98ba17f4aff9ecb8dadde">__int_fast64_t</a>) atomic_int_fast64_t;</div> <div class="line"><a name="l00217"></a><span class="lineno"> 217</span> <span class="keyword">typedef</span> <a class="code" href="stdatomic_8h.html#afff57ffb45845b688f5b8749a5ee4f64">_Atomic</a>(<a class="code" href="__types_8h.html#a4e6d31abd4b10b90d569473dbcd930f6">__uint_fast64_t</a>) atomic_uint_fast64_t;</div> <div class="line"><a name="l00218"></a><span class="lineno"> 218</span> <span class="keyword">typedef</span> <a class="code" href="stdatomic_8h.html#afff57ffb45845b688f5b8749a5ee4f64">_Atomic</a>(<a class="code" href="__types_8h.html#a2eda470c76061cff531e560342aa9703">__intptr_t</a>) atomic_intptr_t;</div> <div class="line"><a name="l00219"></a><span class="lineno"> 219</span> <span class="keyword">typedef</span> <a class="code" href="stdatomic_8h.html#afff57ffb45845b688f5b8749a5ee4f64">_Atomic</a>(<a class="code" href="__types_8h.html#ac9df2140b9b1003b396b8fb61db41efd">__uintptr_t</a>) atomic_uintptr_t;</div> <div class="line"><a name="l00220"></a><span class="lineno"> 220</span> <span class="keyword">typedef</span> <a class="code" href="stdatomic_8h.html#afff57ffb45845b688f5b8749a5ee4f64">_Atomic</a>(<a class="code" href="__types_8h.html#a1f24faf9327b9efdbef80cc24cb4b88f">__size_t</a>) atomic_size_t;</div> <div class="line"><a name="l00221"></a><span class="lineno"> 221</span> <span class="keyword">typedef</span> <a class="code" href="stdatomic_8h.html#afff57ffb45845b688f5b8749a5ee4f64">_Atomic</a>(<a class="code" href="__types_8h.html#ab26248bb2fa738b4ce33f2650c41e9f8">__ptrdiff_t</a>) atomic_ptrdiff_t;</div> <div class="line"><a name="l00222"></a><span class="lineno"> 222</span> <span class="keyword">typedef</span> <a class="code" href="stdatomic_8h.html#afff57ffb45845b688f5b8749a5ee4f64">_Atomic</a>(<a class="code" href="__types_8h.html#a091cdae5e3c31c637bdb059ca2402c28">__intmax_t</a>) atomic_intmax_t;</div> <div class="line"><a name="l00223"></a><span class="lineno"> 223</span> <span class="keyword">typedef</span> <a class="code" href="stdatomic_8h.html#afff57ffb45845b688f5b8749a5ee4f64">_Atomic</a>(<a class="code" href="__types_8h.html#a585fa460b3f0d9f23e89421176e23196">__uintmax_t</a>) atomic_uintmax_t;</div> <div class="line"><a name="l00224"></a><span class="lineno"> 224</span>  </div> <div class="line"><a name="l00225"></a><span class="lineno"> 225</span> <span class="comment">/*</span></div> <div class="line"><a name="l00226"></a><span class="lineno"> 226</span> <span class="comment"> * 7.17.7 Operations on atomic types.</span></div> <div class="line"><a name="l00227"></a><span class="lineno"> 227</span> <span class="comment"> */</span></div> <div class="line"><a name="l00228"></a><span class="lineno"> 228</span>  </div> <div class="line"><a name="l00229"></a><span class="lineno"> 229</span> <span class="comment">/*</span></div> <div class="line"><a name="l00230"></a><span class="lineno"> 230</span> <span class="comment"> * Compiler-specific operations.</span></div> <div class="line"><a name="l00231"></a><span class="lineno"> 231</span> <span class="comment"> */</span></div> <div class="line"><a name="l00232"></a><span class="lineno"> 232</span>  </div> <div class="line"><a name="l00233"></a><span class="lineno"> 233</span> <span class="preprocessor">#if defined(__CLANG_ATOMICS)</span></div> <div class="line"><a name="l00234"></a><span class="lineno"> 234</span> <span class="preprocessor">#define atomic_compare_exchange_strong_explicit(object, expected, \</span></div> <div class="line"><a name="l00235"></a><span class="lineno"> 235</span> <span class="preprocessor"> desired, success, failure) \</span></div> <div class="line"><a name="l00236"></a><span class="lineno"> 236</span> <span class="preprocessor"> __c11_atomic_compare_exchange_strong(object, expected, desired, \</span></div> <div class="line"><a name="l00237"></a><span class="lineno"> 237</span> <span class="preprocessor"> success, failure)</span></div> <div class="line"><a name="l00238"></a><span class="lineno"> 238</span> <span class="preprocessor">#define atomic_compare_exchange_weak_explicit(object, expected, \</span></div> <div class="line"><a name="l00239"></a><span class="lineno"> 239</span> <span class="preprocessor"> desired, success, failure) \</span></div> <div class="line"><a name="l00240"></a><span class="lineno"> 240</span> <span class="preprocessor"> __c11_atomic_compare_exchange_weak(object, expected, desired, \</span></div> <div class="line"><a name="l00241"></a><span class="lineno"> 241</span> <span class="preprocessor"> success, failure)</span></div> <div class="line"><a name="l00242"></a><span class="lineno"> 242</span> <span class="preprocessor">#define atomic_exchange_explicit(object, desired, order) \</span></div> <div class="line"><a name="l00243"></a><span class="lineno"> 243</span> <span class="preprocessor"> __c11_atomic_exchange(object, desired, order)</span></div> <div class="line"><a name="l00244"></a><span class="lineno"> 244</span> <span class="preprocessor">#define atomic_fetch_add_explicit(object, operand, order) \</span></div> <div class="line"><a name="l00245"></a><span class="lineno"> 245</span> <span class="preprocessor"> __c11_atomic_fetch_add(object, operand, order)</span></div> <div class="line"><a name="l00246"></a><span class="lineno"> 246</span> <span class="preprocessor">#define atomic_fetch_and_explicit(object, operand, order) \</span></div> <div class="line"><a name="l00247"></a><span class="lineno"> 247</span> <span class="preprocessor"> __c11_atomic_fetch_and(object, operand, order)</span></div> <div class="line"><a name="l00248"></a><span class="lineno"> 248</span> <span class="preprocessor">#define atomic_fetch_or_explicit(object, operand, order) \</span></div> <div class="line"><a name="l00249"></a><span class="lineno"> 249</span> <span class="preprocessor"> __c11_atomic_fetch_or(object, operand, order)</span></div> <div class="line"><a name="l00250"></a><span class="lineno"> 250</span> <span class="preprocessor">#define atomic_fetch_sub_explicit(object, operand, order) \</span></div> <div class="line"><a name="l00251"></a><span class="lineno"> 251</span> <span class="preprocessor"> __c11_atomic_fetch_sub(object, operand, order)</span></div> <div class="line"><a name="l00252"></a><span class="lineno"> 252</span> <span class="preprocessor">#define atomic_fetch_xor_explicit(object, operand, order) \</span></div> <div class="line"><a name="l00253"></a><span class="lineno"> 253</span> <span class="preprocessor"> __c11_atomic_fetch_xor(object, operand, order)</span></div> <div class="line"><a name="l00254"></a><span class="lineno"> 254</span> <span class="preprocessor">#define atomic_load_explicit(object, order) \</span></div> <div class="line"><a name="l00255"></a><span class="lineno"> 255</span> <span class="preprocessor"> __c11_atomic_load(object, order)</span></div> <div class="line"><a name="l00256"></a><span class="lineno"> 256</span> <span class="preprocessor">#define atomic_store_explicit(object, desired, order) \</span></div> <div class="line"><a name="l00257"></a><span class="lineno"> 257</span> <span class="preprocessor"> __c11_atomic_store(object, desired, order)</span></div> <div class="line"><a name="l00258"></a><span class="lineno"> 258</span> <span class="preprocessor">#elif defined(__GNUC_ATOMICS)</span></div> <div class="line"><a name="l00259"></a><span class="lineno"> 259</span> <span class="preprocessor">#define atomic_compare_exchange_strong_explicit(object, expected, \</span></div> <div class="line"><a name="l00260"></a><span class="lineno"> 260</span> <span class="preprocessor"> desired, success, failure) \</span></div> <div class="line"><a name="l00261"></a><span class="lineno"> 261</span> <span class="preprocessor"> __atomic_compare_exchange_n(&(object)->__val, expected, \</span></div> <div class="line"><a name="l00262"></a><span class="lineno"> 262</span> <span class="preprocessor"> desired, 0, success, failure)</span></div> <div class="line"><a name="l00263"></a><span class="lineno"> 263</span> <span class="preprocessor">#define atomic_compare_exchange_weak_explicit(object, expected, \</span></div> <div class="line"><a name="l00264"></a><span class="lineno"> 264</span> <span class="preprocessor"> desired, success, failure) \</span></div> <div class="line"><a name="l00265"></a><span class="lineno"> 265</span> <span class="preprocessor"> __atomic_compare_exchange_n(&(object)->__val, expected, \</span></div> <div class="line"><a name="l00266"></a><span class="lineno"> 266</span> <span class="preprocessor"> desired, 1, success, failure)</span></div> <div class="line"><a name="l00267"></a><span class="lineno"> 267</span> <span class="preprocessor">#define atomic_exchange_explicit(object, desired, order) \</span></div> <div class="line"><a name="l00268"></a><span class="lineno"> 268</span> <span class="preprocessor"> __atomic_exchange_n(&(object)->__val, desired, order)</span></div> <div class="line"><a name="l00269"></a><span class="lineno"> 269</span> <span class="preprocessor">#define atomic_fetch_add_explicit(object, operand, order) \</span></div> <div class="line"><a name="l00270"></a><span class="lineno"> 270</span> <span class="preprocessor"> __atomic_fetch_add(&(object)->__val, operand, order)</span></div> <div class="line"><a name="l00271"></a><span class="lineno"> 271</span> <span class="preprocessor">#define atomic_fetch_and_explicit(object, operand, order) \</span></div> <div class="line"><a name="l00272"></a><span class="lineno"> 272</span> <span class="preprocessor"> __atomic_fetch_and(&(object)->__val, operand, order)</span></div> <div class="line"><a name="l00273"></a><span class="lineno"> 273</span> <span class="preprocessor">#define atomic_fetch_or_explicit(object, operand, order) \</span></div> <div class="line"><a name="l00274"></a><span class="lineno"> 274</span> <span class="preprocessor"> __atomic_fetch_or(&(object)->__val, operand, order)</span></div> <div class="line"><a name="l00275"></a><span class="lineno"> 275</span> <span class="preprocessor">#define atomic_fetch_sub_explicit(object, operand, order) \</span></div> <div class="line"><a name="l00276"></a><span class="lineno"> 276</span> <span class="preprocessor"> __atomic_fetch_sub(&(object)->__val, operand, order)</span></div> <div class="line"><a name="l00277"></a><span class="lineno"> 277</span> <span class="preprocessor">#define atomic_fetch_xor_explicit(object, operand, order) \</span></div> <div class="line"><a name="l00278"></a><span class="lineno"> 278</span> <span class="preprocessor"> __atomic_fetch_xor(&(object)->__val, operand, order)</span></div> <div class="line"><a name="l00279"></a><span class="lineno"> 279</span> <span class="preprocessor">#define atomic_load_explicit(object, order) \</span></div> <div class="line"><a name="l00280"></a><span class="lineno"> 280</span> <span class="preprocessor"> __atomic_load_n(&(object)->__val, order)</span></div> <div class="line"><a name="l00281"></a><span class="lineno"> 281</span> <span class="preprocessor">#define atomic_store_explicit(object, desired, order) \</span></div> <div class="line"><a name="l00282"></a><span class="lineno"> 282</span> <span class="preprocessor"> __atomic_store_n(&(object)->__val, desired, order)</span></div> <div class="line"><a name="l00283"></a><span class="lineno"> 283</span> <span class="preprocessor">#else</span></div> <div class="line"><a name="l00284"></a><span class="lineno"><a class="line" href="stdatomic_8h.html#acae05e7d22f3a07fb8ced71a4804edb6"> 284</a></span> <span class="preprocessor">#define __atomic_apply_stride(object, operand) \</span></div> <div class="line"><a name="l00285"></a><span class="lineno"> 285</span> <span class="preprocessor"> (((__typeof__((object)->__val))0) + (operand))</span></div> <div class="line"><a name="l00286"></a><span class="lineno"><a class="line" href="stdatomic_8h.html#a3ba706e3bbbabf5036356c09441559e2"> 286</a></span> <span class="preprocessor">#define atomic_compare_exchange_strong_explicit(object, expected, \</span></div> <div class="line"><a name="l00287"></a><span class="lineno"> 287</span> <span class="preprocessor"> desired, success, failure) __extension__ ({ \</span></div> <div class="line"><a name="l00288"></a><span class="lineno"> 288</span> <span class="preprocessor"> __typeof__(expected) __ep = (expected); \</span></div> <div class="line"><a name="l00289"></a><span class="lineno"> 289</span> <span class="preprocessor"> __typeof__(*__ep) __e = *__ep; \</span></div> <div class="line"><a name="l00290"></a><span class="lineno"> 290</span> <span class="preprocessor"> (void)(success); (void)(failure); \</span></div> <div class="line"><a name="l00291"></a><span class="lineno"> 291</span> <span class="preprocessor"> (_Bool)((*__ep = __sync_val_compare_and_swap(&(object)->__val, \</span></div> <div class="line"><a name="l00292"></a><span class="lineno"> 292</span> <span class="preprocessor"> __e, desired)) == __e); \</span></div> <div class="line"><a name="l00293"></a><span class="lineno"> 293</span> <span class="preprocessor">})</span></div> <div class="line"><a name="l00294"></a><span class="lineno"><a class="line" href="stdatomic_8h.html#ae7f81d6541b8feec676e997952555882"> 294</a></span> <span class="preprocessor">#define atomic_compare_exchange_weak_explicit(object, expected, \</span></div> <div class="line"><a name="l00295"></a><span class="lineno"> 295</span> <span class="preprocessor"> desired, success, failure) \</span></div> <div class="line"><a name="l00296"></a><span class="lineno"> 296</span> <span class="preprocessor"> atomic_compare_exchange_strong_explicit(object, expected, \</span></div> <div class="line"><a name="l00297"></a><span class="lineno"> 297</span> <span class="preprocessor"> desired, success, failure)</span></div> <div class="line"><a name="l00298"></a><span class="lineno"> 298</span> <span class="preprocessor">#if __has_builtin(__sync_swap)</span></div> <div class="line"><a name="l00299"></a><span class="lineno"> 299</span> <span class="comment">/* Clang provides a full-barrier atomic exchange - use it if available. */</span></div> <div class="line"><a name="l00300"></a><span class="lineno"> 300</span> <span class="preprocessor">#define atomic_exchange_explicit(object, desired, order) \</span></div> <div class="line"><a name="l00301"></a><span class="lineno"> 301</span> <span class="preprocessor"> ((void)(order), __sync_swap(&(object)->__val, desired))</span></div> <div class="line"><a name="l00302"></a><span class="lineno"> 302</span> <span class="preprocessor">#else</span></div> <div class="line"><a name="l00303"></a><span class="lineno"> 303</span> <span class="comment">/*</span></div> <div class="line"><a name="l00304"></a><span class="lineno"> 304</span> <span class="comment"> * __sync_lock_test_and_set() is only an acquire barrier in theory (although in</span></div> <div class="line"><a name="l00305"></a><span class="lineno"> 305</span> <span class="comment"> * practice it is usually a full barrier) so we need an explicit barrier before</span></div> <div class="line"><a name="l00306"></a><span class="lineno"> 306</span> <span class="comment"> * it.</span></div> <div class="line"><a name="l00307"></a><span class="lineno"> 307</span> <span class="comment"> */</span></div> <div class="line"><a name="l00308"></a><span class="lineno"><a class="line" href="stdatomic_8h.html#abc7db808dcdfb37a76f5dc646422fe29"> 308</a></span> <span class="preprocessor">#define atomic_exchange_explicit(object, desired, order) \</span></div> <div class="line"><a name="l00309"></a><span class="lineno"> 309</span> <span class="preprocessor">__extension__ ({ \</span></div> <div class="line"><a name="l00310"></a><span class="lineno"> 310</span> <span class="preprocessor"> __typeof__(object) __o = (object); \</span></div> <div class="line"><a name="l00311"></a><span class="lineno"> 311</span> <span class="preprocessor"> __typeof__(desired) __d = (desired); \</span></div> <div class="line"><a name="l00312"></a><span class="lineno"> 312</span> <span class="preprocessor"> (void)(order); \</span></div> <div class="line"><a name="l00313"></a><span class="lineno"> 313</span> <span class="preprocessor"> __sync_synchronize(); \</span></div> <div class="line"><a name="l00314"></a><span class="lineno"> 314</span> <span class="preprocessor"> __sync_lock_test_and_set(&(__o)->__val, __d); \</span></div> <div class="line"><a name="l00315"></a><span class="lineno"> 315</span> <span class="preprocessor">})</span></div> <div class="line"><a name="l00316"></a><span class="lineno"> 316</span> <span class="preprocessor">#endif</span></div> <div class="line"><a name="l00317"></a><span class="lineno"><a class="line" href="stdatomic_8h.html#a1d2b72b5d6ad1392c4f805054be0bdd1"> 317</a></span> <span class="preprocessor">#define atomic_fetch_add_explicit(object, operand, order) \</span></div> <div class="line"><a name="l00318"></a><span class="lineno"> 318</span> <span class="preprocessor"> ((void)(order), __sync_fetch_and_add(&(object)->__val, \</span></div> <div class="line"><a name="l00319"></a><span class="lineno"> 319</span> <span class="preprocessor"> __atomic_apply_stride(object, operand)))</span></div> <div class="line"><a name="l00320"></a><span class="lineno"><a class="line" href="stdatomic_8h.html#aeef65522da3712b76bc1bd0d981d48ac"> 320</a></span> <span class="preprocessor">#define atomic_fetch_and_explicit(object, operand, order) \</span></div> <div class="line"><a name="l00321"></a><span class="lineno"> 321</span> <span class="preprocessor"> ((void)(order), __sync_fetch_and_and(&(object)->__val, operand))</span></div> <div class="line"><a name="l00322"></a><span class="lineno"><a class="line" href="stdatomic_8h.html#aa9a7edeec6d650c3e7a43257ffd923bb"> 322</a></span> <span class="preprocessor">#define atomic_fetch_or_explicit(object, operand, order) \</span></div> <div class="line"><a name="l00323"></a><span class="lineno"> 323</span> <span class="preprocessor"> ((void)(order), __sync_fetch_and_or(&(object)->__val, operand))</span></div> <div class="line"><a name="l00324"></a><span class="lineno"><a class="line" href="stdatomic_8h.html#af952088a1a3bea5f3c11d67118eb729b"> 324</a></span> <span class="preprocessor">#define atomic_fetch_sub_explicit(object, operand, order) \</span></div> <div class="line"><a name="l00325"></a><span class="lineno"> 325</span> <span class="preprocessor"> ((void)(order), __sync_fetch_and_sub(&(object)->__val, \</span></div> <div class="line"><a name="l00326"></a><span class="lineno"> 326</span> <span class="preprocessor"> __atomic_apply_stride(object, operand)))</span></div> <div class="line"><a name="l00327"></a><span class="lineno"><a class="line" href="stdatomic_8h.html#ae067c20ab4471deddd41ecee572fe35f"> 327</a></span> <span class="preprocessor">#define atomic_fetch_xor_explicit(object, operand, order) \</span></div> <div class="line"><a name="l00328"></a><span class="lineno"> 328</span> <span class="preprocessor"> ((void)(order), __sync_fetch_and_xor(&(object)->__val, operand))</span></div> <div class="line"><a name="l00329"></a><span class="lineno"><a class="line" href="stdatomic_8h.html#a714cabdfee3dff182363e10401689371"> 329</a></span> <span class="preprocessor">#define atomic_load_explicit(object, order) \</span></div> <div class="line"><a name="l00330"></a><span class="lineno"> 330</span> <span class="preprocessor"> ((void)(order), __sync_fetch_and_add(&(object)->__val, 0))</span></div> <div class="line"><a name="l00331"></a><span class="lineno"><a class="line" href="stdatomic_8h.html#ad559c29e007899c11142f0d899625397"> 331</a></span> <span class="preprocessor">#define atomic_store_explicit(object, desired, order) \</span></div> <div class="line"><a name="l00332"></a><span class="lineno"> 332</span> <span class="preprocessor"> ((void)atomic_exchange_explicit(object, desired, order))</span></div> <div class="line"><a name="l00333"></a><span class="lineno"> 333</span> <span class="preprocessor">#endif</span></div> <div class="line"><a name="l00334"></a><span class="lineno"> 334</span>  </div> <div class="line"><a name="l00335"></a><span class="lineno"> 335</span> <span class="comment">/*</span></div> <div class="line"><a name="l00336"></a><span class="lineno"> 336</span> <span class="comment"> * Convenience functions.</span></div> <div class="line"><a name="l00337"></a><span class="lineno"> 337</span> <span class="comment"> *</span></div> <div class="line"><a name="l00338"></a><span class="lineno"> 338</span> <span class="comment"> * Don't provide these in kernel space. In kernel space, we should be</span></div> <div class="line"><a name="l00339"></a><span class="lineno"> 339</span> <span class="comment"> * disciplined enough to always provide explicit barriers.</span></div> <div class="line"><a name="l00340"></a><span class="lineno"> 340</span> <span class="comment"> */</span></div> <div class="line"><a name="l00341"></a><span class="lineno"> 341</span>  </div> <div class="line"><a name="l00342"></a><span class="lineno"> 342</span> <span class="preprocessor">#ifndef _KERNEL</span></div> <div class="line"><a name="l00343"></a><span class="lineno"><a class="line" href="stdatomic_8h.html#a363f436785249f132da5f94f30587f98"> 343</a></span> <span class="preprocessor">#define atomic_compare_exchange_strong(object, expected, desired) \</span></div> <div class="line"><a name="l00344"></a><span class="lineno"> 344</span> <span class="preprocessor"> atomic_compare_exchange_strong_explicit(object, expected, \</span></div> <div class="line"><a name="l00345"></a><span class="lineno"> 345</span> <span class="preprocessor"> desired, memory_order_seq_cst, memory_order_seq_cst)</span></div> <div class="line"><a name="l00346"></a><span class="lineno"><a class="line" href="stdatomic_8h.html#a084c8c95aa5ded790928e7ca78dff7eb"> 346</a></span> <span class="preprocessor">#define atomic_compare_exchange_weak(object, expected, desired) \</span></div> <div class="line"><a name="l00347"></a><span class="lineno"> 347</span> <span class="preprocessor"> atomic_compare_exchange_weak_explicit(object, expected, \</span></div> <div class="line"><a name="l00348"></a><span class="lineno"> 348</span> <span class="preprocessor"> desired, memory_order_seq_cst, memory_order_seq_cst)</span></div> <div class="line"><a name="l00349"></a><span class="lineno"><a class="line" href="stdatomic_8h.html#a3a0241b6f3d907f3fc497cf0c747e4ea"> 349</a></span> <span class="preprocessor">#define atomic_exchange(object, desired) \</span></div> <div class="line"><a name="l00350"></a><span class="lineno"> 350</span> <span class="preprocessor"> atomic_exchange_explicit(object, desired, memory_order_seq_cst)</span></div> <div class="line"><a name="l00351"></a><span class="lineno"><a class="line" href="stdatomic_8h.html#aedf6fb62e0fc9e8f8cf2e3685f0a1e88"> 351</a></span> <span class="preprocessor">#define atomic_fetch_add(object, operand) \</span></div> <div class="line"><a name="l00352"></a><span class="lineno"> 352</span> <span class="preprocessor"> atomic_fetch_add_explicit(object, operand, memory_order_seq_cst)</span></div> <div class="line"><a name="l00353"></a><span class="lineno"><a class="line" href="stdatomic_8h.html#adb8eef1235f98b5b418480b474f0fa16"> 353</a></span> <span class="preprocessor">#define atomic_fetch_and(object, operand) \</span></div> <div class="line"><a name="l00354"></a><span class="lineno"> 354</span> <span class="preprocessor"> atomic_fetch_and_explicit(object, operand, memory_order_seq_cst)</span></div> <div class="line"><a name="l00355"></a><span class="lineno"><a class="line" href="stdatomic_8h.html#a516561c3d6db1e6adfd4c97894a63cfb"> 355</a></span> <span class="preprocessor">#define atomic_fetch_or(object, operand) \</span></div> <div class="line"><a name="l00356"></a><span class="lineno"> 356</span> <span class="preprocessor"> atomic_fetch_or_explicit(object, operand, memory_order_seq_cst)</span></div> <div class="line"><a name="l00357"></a><span class="lineno"><a class="line" href="stdatomic_8h.html#a66aaef69cdadfe5e0eb87f6beff352df"> 357</a></span> <span class="preprocessor">#define atomic_fetch_sub(object, operand) \</span></div> <div class="line"><a name="l00358"></a><span class="lineno"> 358</span> <span class="preprocessor"> atomic_fetch_sub_explicit(object, operand, memory_order_seq_cst)</span></div> <div class="line"><a name="l00359"></a><span class="lineno"><a class="line" href="stdatomic_8h.html#a00b017a65180805ce9ab091864c0a60e"> 359</a></span> <span class="preprocessor">#define atomic_fetch_xor(object, operand) \</span></div> <div class="line"><a name="l00360"></a><span class="lineno"> 360</span> <span class="preprocessor"> atomic_fetch_xor_explicit(object, operand, memory_order_seq_cst)</span></div> <div class="line"><a name="l00361"></a><span class="lineno"><a class="line" href="stdatomic_8h.html#acced2a78b2a440317feed51f3e505d1d"> 361</a></span> <span class="preprocessor">#define atomic_load(object) \</span></div> <div class="line"><a name="l00362"></a><span class="lineno"> 362</span> <span class="preprocessor"> atomic_load_explicit(object, memory_order_seq_cst)</span></div> <div class="line"><a name="l00363"></a><span class="lineno"><a class="line" href="stdatomic_8h.html#a0241b1f231c55cdf092b2d509e8d83df"> 363</a></span> <span class="preprocessor">#define atomic_store(object, desired) \</span></div> <div class="line"><a name="l00364"></a><span class="lineno"> 364</span> <span class="preprocessor"> atomic_store_explicit(object, desired, memory_order_seq_cst)</span></div> <div class="line"><a name="l00365"></a><span class="lineno"> 365</span> <span class="preprocessor">#endif </span><span class="comment">/* !_KERNEL */</span><span class="preprocessor"></span></div> <div class="line"><a name="l00366"></a><span class="lineno"> 366</span>  </div> <div class="line"><a name="l00367"></a><span class="lineno"> 367</span> <span class="comment">/*</span></div> <div class="line"><a name="l00368"></a><span class="lineno"> 368</span> <span class="comment"> * 7.17.8 Atomic flag type and operations.</span></div> <div class="line"><a name="l00369"></a><span class="lineno"> 369</span> <span class="comment"> *</span></div> <div class="line"><a name="l00370"></a><span class="lineno"> 370</span> <span class="comment"> * XXX: Assume atomic_bool can be used as an atomic_flag. Is there some</span></div> <div class="line"><a name="l00371"></a><span class="lineno"> 371</span> <span class="comment"> * kind of compiler built-in type we could use?</span></div> <div class="line"><a name="l00372"></a><span class="lineno"> 372</span> <span class="comment"> */</span></div> <div class="line"><a name="l00373"></a><span class="lineno"> 373</span>  </div> <div class="line"><a name="l00374"></a><span class="lineno"><a class="line" href="structatomic__flag.html"> 374</a></span> <span class="keyword">typedef</span> <span class="keyword">struct </span>{</div> <div class="line"><a name="l00375"></a><span class="lineno"><a class="line" href="structatomic__flag.html#adaef29a498d05b3c8b7b9b56c789d3f3"> 375</a></span>  atomic_bool <a class="code" href="structatomic__flag.html#adaef29a498d05b3c8b7b9b56c789d3f3">__flag</a>;</div> <div class="line"><a name="l00376"></a><span class="lineno"> 376</span> } <a class="code" href="structatomic__flag.html">atomic_flag</a>;</div> <div class="line"><a name="l00377"></a><span class="lineno"> 377</span>  </div> <div class="line"><a name="l00378"></a><span class="lineno"><a class="line" href="stdatomic_8h.html#a3cf6ded3b463faf0cedce1718caaa695"> 378</a></span> <span class="preprocessor">#define ATOMIC_FLAG_INIT { ATOMIC_VAR_INIT(0) }</span></div> <div class="line"><a name="l00379"></a><span class="lineno"> 379</span>  </div> <div class="line"><a name="l00380"></a><span class="lineno"> 380</span> <span class="keyword">static</span> <a class="code" href="cdefs_8h.html#a96deb7ba5a74848afb710cc4ee6d2c08">__inline</a> _Bool</div> <div class="line"><a name="l00381"></a><span class="lineno"> 381</span> atomic_flag_test_and_set_explicit(<span class="keyword">volatile</span> <a class="code" href="structatomic__flag.html">atomic_flag</a> *__object,</div> <div class="line"><a name="l00382"></a><span class="lineno"> 382</span>  <a class="code" href="stdatomic_8h.html#a17c2de5ae768960284c047a320f17d1b">memory_order</a> __order)</div> <div class="line"><a name="l00383"></a><span class="lineno"> 383</span> {</div> <div class="line"><a name="l00384"></a><span class="lineno"> 384</span>  <span class="keywordflow">return</span> (<a class="code" href="stdatomic_8h.html#abc7db808dcdfb37a76f5dc646422fe29">atomic_exchange_explicit</a>(&__object-><a class="code" href="structatomic__flag.html#adaef29a498d05b3c8b7b9b56c789d3f3">__flag</a>, 1, __order));</div> <div class="line"><a name="l00385"></a><span class="lineno"> 385</span> }</div> <div class="line"><a name="l00386"></a><span class="lineno"> 386</span>  </div> <div class="line"><a name="l00387"></a><span class="lineno"> 387</span> <span class="keyword">static</span> <a class="code" href="cdefs_8h.html#a96deb7ba5a74848afb710cc4ee6d2c08">__inline</a> <span class="keywordtype">void</span></div> <div class="line"><a name="l00388"></a><span class="lineno"> 388</span> atomic_flag_clear_explicit(<span class="keyword">volatile</span> <a class="code" href="structatomic__flag.html">atomic_flag</a> *__object, <a class="code" href="stdatomic_8h.html#a17c2de5ae768960284c047a320f17d1b">memory_order</a> __order)</div> <div class="line"><a name="l00389"></a><span class="lineno"> 389</span> {</div> <div class="line"><a name="l00390"></a><span class="lineno"> 390</span>  </div> <div class="line"><a name="l00391"></a><span class="lineno"> 391</span>  <a class="code" href="stdatomic_8h.html#ad559c29e007899c11142f0d899625397">atomic_store_explicit</a>(&__object-><a class="code" href="structatomic__flag.html#adaef29a498d05b3c8b7b9b56c789d3f3">__flag</a>, 0, __order);</div> <div class="line"><a name="l00392"></a><span class="lineno"> 392</span> }</div> <div class="line"><a name="l00393"></a><span class="lineno"> 393</span>  </div> <div class="line"><a name="l00394"></a><span class="lineno"> 394</span> <span class="preprocessor">#ifndef _KERNEL</span></div> <div class="line"><a name="l00395"></a><span class="lineno"> 395</span> <span class="keyword">static</span> <a class="code" href="cdefs_8h.html#a96deb7ba5a74848afb710cc4ee6d2c08">__inline</a> _Bool</div> <div class="line"><a name="l00396"></a><span class="lineno"> 396</span> atomic_flag_test_and_set(<span class="keyword">volatile</span> <a class="code" href="structatomic__flag.html">atomic_flag</a> *__object)</div> <div class="line"><a name="l00397"></a><span class="lineno"> 397</span> {</div> <div class="line"><a name="l00398"></a><span class="lineno"> 398</span>  </div> <div class="line"><a name="l00399"></a><span class="lineno"> 399</span>  <span class="keywordflow">return</span> (atomic_flag_test_and_set_explicit(__object,</div> <div class="line"><a name="l00400"></a><span class="lineno"> 400</span>  <a class="code" href="stdatomic_8h.html#a17c2de5ae768960284c047a320f17d1ba2d21914d1edd227a890107e7878a3752">memory_order_seq_cst</a>));</div> <div class="line"><a name="l00401"></a><span class="lineno"> 401</span> }</div> <div class="line"><a name="l00402"></a><span class="lineno"> 402</span>  </div> <div class="line"><a name="l00403"></a><span class="lineno"> 403</span> <span class="keyword">static</span> <a class="code" href="cdefs_8h.html#a96deb7ba5a74848afb710cc4ee6d2c08">__inline</a> <span class="keywordtype">void</span></div> <div class="line"><a name="l00404"></a><span class="lineno"> 404</span> atomic_flag_clear(<span class="keyword">volatile</span> <a class="code" href="structatomic__flag.html">atomic_flag</a> *__object)</div> <div class="line"><a name="l00405"></a><span class="lineno"> 405</span> {</div> <div class="line"><a name="l00406"></a><span class="lineno"> 406</span>  </div> <div class="line"><a name="l00407"></a><span class="lineno"> 407</span>  atomic_flag_clear_explicit(__object, <a class="code" href="stdatomic_8h.html#a17c2de5ae768960284c047a320f17d1ba2d21914d1edd227a890107e7878a3752">memory_order_seq_cst</a>);</div> <div class="line"><a name="l00408"></a><span class="lineno"> 408</span> }</div> <div class="line"><a name="l00409"></a><span class="lineno"> 409</span> <span class="preprocessor">#endif </span><span class="comment">/* !_KERNEL */</span><span class="preprocessor"></span></div> <div class="line"><a name="l00410"></a><span class="lineno"> 410</span>  </div> <div class="line"><a name="l00411"></a><span class="lineno"> 411</span> <span class="preprocessor">#endif </span><span class="comment">/* !_STDATOMIC_H_ */</span><span class="preprocessor"></span></div> </div><!-- fragment --></div><!-- contents --> </div><!-- doc-content --> <div class="ttc" id="astdatomic_8h_html_acdfdd67de0664b690c42bba327cf7da1"><div class="ttname"><a href="stdatomic_8h.html#acdfdd67de0664b690c42bba327cf7da1">__ATOMIC_ACQ_REL</a></div><div class="ttdeci">#define __ATOMIC_ACQ_REL</div><div class="ttdef"><b>Definition:</b> <a href="stdatomic_8h_source.html#l00112">stdatomic.h:112</a></div></div> <div class="ttc" id="astdatomic_8h_html_a17c2de5ae768960284c047a320f17d1bac6489d0374e297a776f6a3db7ea5654a"><div class="ttname"><a href="stdatomic_8h.html#a17c2de5ae768960284c047a320f17d1bac6489d0374e297a776f6a3db7ea5654a">memory_order_relaxed</a></div><div class="ttdef"><b>Definition:</b> <a href="stdatomic_8h_source.html#l00126">stdatomic.h:126</a></div></div> <div class="ttc" id="astructatomic__flag_html"><div class="ttname"><a href="structatomic__flag.html">atomic_flag</a></div><div class="ttdef"><b>Definition:</b> <a href="stdatomic_8h_source.html#l00374">stdatomic.h:374</a></div></div> <div class="ttc" id="a__types_8h_html_a6e72e49779e98ba17f4aff9ecb8dadde"><div class="ttname"><a href="__types_8h.html#a6e72e49779e98ba17f4aff9ecb8dadde">__int_fast64_t</a></div><div class="ttdeci">__int64_t __int_fast64_t</div><div class="ttdef"><b>Definition:</b> <a href="__types_8h_source.html#l00053">_types.h:53</a></div></div> <div class="ttc" id="astdatomic_8h_html_afff57ffb45845b688f5b8749a5ee4f64"><div class="ttname"><a href="stdatomic_8h.html#afff57ffb45845b688f5b8749a5ee4f64">_Atomic</a></div><div class="ttdeci">typedef _Atomic(_Bool) atomic_bool</div></div> <div class="ttc" id="acdefs_8h_html_a96deb7ba5a74848afb710cc4ee6d2c08"><div class="ttname"><a href="cdefs_8h.html#a96deb7ba5a74848afb710cc4ee6d2c08">__inline</a></div><div class="ttdeci">#define __inline</div><div class="ttdef"><b>Definition:</b> <a href="cdefs_8h_source.html#l00179">cdefs.h:179</a></div></div> <div class="ttc" id="a__types_8h_html_a45e5e1290ceb032700b1da5de0ea2104"><div class="ttname"><a href="__types_8h.html#a45e5e1290ceb032700b1da5de0ea2104">__int_fast16_t</a></div><div class="ttdeci">__int16_t __int_fast16_t</div><div class="ttdef"><b>Definition:</b> <a href="__types_8h_source.html#l00053">_types.h:53</a></div></div> <div class="ttc" id="a__types_8h_html_ab3dae49088787dc5e847b739ebc5dac7"><div class="ttname"><a href="__types_8h.html#ab3dae49088787dc5e847b739ebc5dac7">__char16_t</a></div><div class="ttdeci">__uint_least16_t __char16_t</div><div class="ttdef"><b>Definition:</b> <a href="__types_8h_source.html#l00060">_types.h:60</a></div></div> <div class="ttc" id="astdatomic_8h_html_ad559c29e007899c11142f0d899625397"><div class="ttname"><a href="stdatomic_8h.html#ad559c29e007899c11142f0d899625397">atomic_store_explicit</a></div><div class="ttdeci">#define atomic_store_explicit(object, desired, order)</div><div class="ttdef"><b>Definition:</b> <a href="stdatomic_8h_source.html#l00331">stdatomic.h:331</a></div></div> <div class="ttc" id="a__types_8h_html_a8c4b70b5451d9f70268f9215b0f1477a"><div class="ttname"><a href="__types_8h.html#a8c4b70b5451d9f70268f9215b0f1477a">__uint_least64_t</a></div><div class="ttdeci">__uint64_t __uint_least64_t</div><div class="ttdef"><b>Definition:</b> <a href="__types_8h_source.html#l00053">_types.h:53</a></div></div> <div class="ttc" id="a__types_8h_html_a8dfcdf0f629261c1e7e032535fd5d21a"><div class="ttname"><a href="__types_8h.html#a8dfcdf0f629261c1e7e032535fd5d21a">__uint_least8_t</a></div><div class="ttdeci">__uint8_t __uint_least8_t</div><div class="ttdef"><b>Definition:</b> <a href="__types_8h_source.html#l00053">_types.h:53</a></div></div> <div class="ttc" id="a__types_8h_html_a30327bea027096373db4072a0bb99339"><div class="ttname"><a href="__types_8h.html#a30327bea027096373db4072a0bb99339">__char32_t</a></div><div class="ttdeci">__uint_least32_t __char32_t</div><div class="ttdef"><b>Definition:</b> <a href="__types_8h_source.html#l00060">_types.h:60</a></div></div> <div class="ttc" id="astdatomic_8h_html_a17c2de5ae768960284c047a320f17d1ba685a90c8fc516895354973c3918a5f7b"><div class="ttname"><a href="stdatomic_8h.html#a17c2de5ae768960284c047a320f17d1ba685a90c8fc516895354973c3918a5f7b">memory_order_release</a></div><div class="ttdef"><b>Definition:</b> <a href="stdatomic_8h_source.html#l00129">stdatomic.h:129</a></div></div> <div class="ttc" id="a__types_8h_html_a18de3043b15b8aa305d9b5b2a682bb40"><div class="ttname"><a href="__types_8h.html#a18de3043b15b8aa305d9b5b2a682bb40">__int_least64_t</a></div><div class="ttdeci">__int64_t __int_least64_t</div><div class="ttdef"><b>Definition:</b> <a href="__types_8h_source.html#l00053">_types.h:53</a></div></div> <div class="ttc" id="a__types_8h_html_ac477ed7feb189578badaacb83949a91a"><div class="ttname"><a href="__types_8h.html#ac477ed7feb189578badaacb83949a91a">__uint_fast8_t</a></div><div class="ttdeci">__uint8_t __uint_fast8_t</div><div class="ttdef"><b>Definition:</b> <a href="__types_8h_source.html#l00053">_types.h:53</a></div></div> <div class="ttc" id="astdatomic_8h_html_abc7db808dcdfb37a76f5dc646422fe29"><div class="ttname"><a href="stdatomic_8h.html#abc7db808dcdfb37a76f5dc646422fe29">atomic_exchange_explicit</a></div><div class="ttdeci">#define atomic_exchange_explicit(object, desired, order)</div><div class="ttdef"><b>Definition:</b> <a href="stdatomic_8h_source.html#l00308">stdatomic.h:308</a></div></div> <div class="ttc" id="a__types_8h_html_a0d86e7cff98afe51af86ef1fe7e3e74c"><div class="ttname"><a href="__types_8h.html#a0d86e7cff98afe51af86ef1fe7e3e74c">__uint_least32_t</a></div><div class="ttdeci">__uint32_t __uint_least32_t</div><div class="ttdef"><b>Definition:</b> <a href="__types_8h_source.html#l00053">_types.h:53</a></div></div> <div class="ttc" id="a__types_8h_html_ab7d5961034ac12b88541de598ba984d7"><div class="ttname"><a href="__types_8h.html#ab7d5961034ac12b88541de598ba984d7">__uint_least16_t</a></div><div class="ttdeci">__uint16_t __uint_least16_t</div><div class="ttdef"><b>Definition:</b> <a href="__types_8h_source.html#l00053">_types.h:53</a></div></div> <div class="ttc" id="a__types_8h_html_a091cdae5e3c31c637bdb059ca2402c28"><div class="ttname"><a href="__types_8h.html#a091cdae5e3c31c637bdb059ca2402c28">__intmax_t</a></div><div class="ttdeci">__int64_t __intmax_t</div><div class="ttdef"><b>Definition:</b> <a href="__types_8h_source.html#l00053">_types.h:53</a></div></div> <div class="ttc" id="a__types_8h_html_a196a42e0974275e188e1976d1fd2981e"><div class="ttname"><a href="__types_8h.html#a196a42e0974275e188e1976d1fd2981e">__int_least16_t</a></div><div class="ttdeci">__int16_t __int_least16_t</div><div class="ttdef"><b>Definition:</b> <a href="__types_8h_source.html#l00053">_types.h:53</a></div></div> <div class="ttc" id="astdatomic_8h_html_a0609dc2b702d5980de44c01bd373136a"><div class="ttname"><a href="stdatomic_8h.html#a0609dc2b702d5980de44c01bd373136a">__ATOMIC_SEQ_CST</a></div><div class="ttdeci">#define __ATOMIC_SEQ_CST</div><div class="ttdef"><b>Definition:</b> <a href="stdatomic_8h_source.html#l00115">stdatomic.h:115</a></div></div> <div class="ttc" id="ai386_2fork_8c_html_a261cebc38d369f0e4deb601a1cbe4199"><div class="ttname"><a href="i386_2fork_8c.html#a261cebc38d369f0e4deb601a1cbe4199">__asm</a></div><div class="ttdeci">__asm(".globl sysFork_old \n" "sysFork_old: \n" " xor %eax,%eax \n" " call schedNewTask \n" " testl %eax,%eax \n" " je fork_ret \n" " pushl %esi \n" " pushl %edi \n" " pushl %ebp \n" " pushl %eax \n" " call fork_copyProcess \n" " movl %eax,(%ebx) \n" " addl $16,%esp \n" "fork_ret: \n" " ret \n")</div></div> <div class="ttc" id="astdatomic_8h_html_a17c2de5ae768960284c047a320f17d1bafb313754331704b978e9a80a933b3da7"><div class="ttname"><a href="stdatomic_8h.html#a17c2de5ae768960284c047a320f17d1bafb313754331704b978e9a80a933b3da7">memory_order_acquire</a></div><div class="ttdef"><b>Definition:</b> <a href="stdatomic_8h_source.html#l00128">stdatomic.h:128</a></div></div> <div class="ttc" id="a__types_8h_html_a585fa460b3f0d9f23e89421176e23196"><div class="ttname"><a href="__types_8h.html#a585fa460b3f0d9f23e89421176e23196">__uintmax_t</a></div><div class="ttdeci">__uint64_t __uintmax_t</div><div class="ttdef"><b>Definition:</b> <a href="__types_8h_source.html#l00053">_types.h:53</a></div></div> <div class="ttc" id="a__types_8h_html"><div class="ttname"><a href="__types_8h.html">_types.h</a></div></div> <div class="ttc" id="a__types_8h_html_a4e6d31abd4b10b90d569473dbcd930f6"><div class="ttname"><a href="__types_8h.html#a4e6d31abd4b10b90d569473dbcd930f6">__uint_fast64_t</a></div><div class="ttdeci">__uint64_t __uint_fast64_t</div><div class="ttdef"><b>Definition:</b> <a href="__types_8h_source.html#l00053">_types.h:53</a></div></div> <div class="ttc" id="a__types_8h_html_ae628aa18214994074e7ca12175754d78"><div class="ttname"><a href="__types_8h.html#ae628aa18214994074e7ca12175754d78">__int_fast32_t</a></div><div class="ttdeci">__int32_t __int_fast32_t</div><div class="ttdef"><b>Definition:</b> <a href="__types_8h_source.html#l00053">_types.h:53</a></div></div> <div class="ttc" id="astdatomic_8h_html_a17c2de5ae768960284c047a320f17d1ba0745f54882bc00251a719e42969db110"><div class="ttname"><a href="stdatomic_8h.html#a17c2de5ae768960284c047a320f17d1ba0745f54882bc00251a719e42969db110">memory_order_consume</a></div><div class="ttdef"><b>Definition:</b> <a href="stdatomic_8h_source.html#l00127">stdatomic.h:127</a></div></div> <div class="ttc" id="astdatomic_8h_html_a5822cf04414d99e0ee81e8bbe182226b"><div class="ttname"><a href="stdatomic_8h.html#a5822cf04414d99e0ee81e8bbe182226b">__ATOMIC_RELEASE</a></div><div class="ttdeci">#define __ATOMIC_RELEASE</div><div class="ttdef"><b>Definition:</b> <a href="stdatomic_8h_source.html#l00109">stdatomic.h:109</a></div></div> <div class="ttc" id="a__types_8h_html_a146610b9556d196f42f602d7ac57120c"><div class="ttname"><a href="__types_8h.html#a146610b9556d196f42f602d7ac57120c">__uint_fast16_t</a></div><div class="ttdeci">__uint16_t __uint_fast16_t</div><div class="ttdef"><b>Definition:</b> <a href="__types_8h_source.html#l00053">_types.h:53</a></div></div> <div class="ttc" id="a__types_8h_html_a678ada5188ffe9cdf1014585d7eff9cc"><div class="ttname"><a href="__types_8h.html#a678ada5188ffe9cdf1014585d7eff9cc">__uint_fast32_t</a></div><div class="ttdeci">__uint32_t __uint_fast32_t</div><div class="ttdef"><b>Definition:</b> <a href="__types_8h_source.html#l00053">_types.h:53</a></div></div> <div class="ttc" id="a__types_8h_html_a67f3288c3cd64de8d38ebc03618720ce"><div class="ttname"><a href="__types_8h.html#a67f3288c3cd64de8d38ebc03618720ce">__int_least32_t</a></div><div class="ttdeci">__int32_t __int_least32_t</div><div class="ttdef"><b>Definition:</b> <a href="__types_8h_source.html#l00053">_types.h:53</a></div></div> <div class="ttc" id="astdatomic_8h_html_a8faf1f097f05558889df4c44d052d35e"><div class="ttname"><a href="stdatomic_8h.html#a8faf1f097f05558889df4c44d052d35e">__ATOMIC_RELAXED</a></div><div class="ttdeci">#define __ATOMIC_RELAXED</div><div class="ttdef"><b>Definition:</b> <a href="stdatomic_8h_source.html#l00100">stdatomic.h:100</a></div></div> <div class="ttc" id="a__types_8h_html_a1f24faf9327b9efdbef80cc24cb4b88f"><div class="ttname"><a href="__types_8h.html#a1f24faf9327b9efdbef80cc24cb4b88f">__size_t</a></div><div class="ttdeci">__uint32_t __size_t</div><div class="ttdef"><b>Definition:</b> <a href="__types_8h_source.html#l00053">_types.h:53</a></div></div> <div class="ttc" id="a__types_8h_html_ab26248bb2fa738b4ce33f2650c41e9f8"><div class="ttname"><a href="__types_8h.html#ab26248bb2fa738b4ce33f2650c41e9f8">__ptrdiff_t</a></div><div class="ttdeci">__int32_t __ptrdiff_t</div><div class="ttdef"><b>Definition:</b> <a href="__types_8h_source.html#l00053">_types.h:53</a></div></div> <div class="ttc" id="astdatomic_8h_html_a17c2de5ae768960284c047a320f17d1ba2d21914d1edd227a890107e7878a3752"><div class="ttname"><a href="stdatomic_8h.html#a17c2de5ae768960284c047a320f17d1ba2d21914d1edd227a890107e7878a3752">memory_order_seq_cst</a></div><div class="ttdef"><b>Definition:</b> <a href="stdatomic_8h_source.html#l00131">stdatomic.h:131</a></div></div> <div class="ttc" id="astructatomic__flag_html_adaef29a498d05b3c8b7b9b56c789d3f3"><div class="ttname"><a href="structatomic__flag.html#adaef29a498d05b3c8b7b9b56c789d3f3">atomic_flag::__flag</a></div><div class="ttdeci">atomic_bool __flag</div><div class="ttdef"><b>Definition:</b> <a href="stdatomic_8h_source.html#l00375">stdatomic.h:375</a></div></div> <div class="ttc" id="acdefs_8h_html"><div class="ttname"><a href="cdefs_8h.html">cdefs.h</a></div></div> <div class="ttc" id="acdefs_8h_html_a2e3484535ee610c8e19e9859563abe48"><div class="ttname"><a href="cdefs_8h.html#a2e3484535ee610c8e19e9859563abe48">__unused</a></div><div class="ttdeci">#define __unused</div><div class="ttdef"><b>Definition:</b> <a href="cdefs_8h_source.html#l00223">cdefs.h:223</a></div></div> <div class="ttc" id="astdatomic_8h_html_a17c2de5ae768960284c047a320f17d1b"><div class="ttname"><a href="stdatomic_8h.html#a17c2de5ae768960284c047a320f17d1b">memory_order</a></div><div class="ttdeci">memory_order</div><div class="ttdef"><b>Definition:</b> <a href="stdatomic_8h_source.html#l00125">stdatomic.h:125</a></div></div> <div class="ttc" id="a__types_8h_html_ad4dbdcd9acdaf0c171b6d7b1b3535ef7"><div class="ttname"><a href="__types_8h.html#ad4dbdcd9acdaf0c171b6d7b1b3535ef7">__int_fast8_t</a></div><div class="ttdeci">__int8_t __int_fast8_t</div><div class="ttdef"><b>Definition:</b> <a href="__types_8h_source.html#l00053">_types.h:53</a></div></div> <div class="ttc" id="a__types_8h_html_a2eda470c76061cff531e560342aa9703"><div class="ttname"><a href="__types_8h.html#a2eda470c76061cff531e560342aa9703">__intptr_t</a></div><div class="ttdeci">__int32_t __intptr_t</div><div class="ttdef"><b>Definition:</b> <a href="__types_8h_source.html#l00053">_types.h:53</a></div></div> <div class="ttc" id="a__types_8h_html_aba41fdf1979fb49dbe4c8224afe782f5"><div class="ttname"><a href="__types_8h.html#aba41fdf1979fb49dbe4c8224afe782f5">___wchar_t</a></div><div class="ttdeci">int ___wchar_t</div><div class="ttdef"><b>Definition:</b> <a href="__types_8h_source.html#l00054">_types.h:54</a></div></div> <div class="ttc" id="a__types_8h_html_a962256f0ccb26adfecb13c6170ee4b72"><div class="ttname"><a href="__types_8h.html#a962256f0ccb26adfecb13c6170ee4b72">__int_least8_t</a></div><div class="ttdeci">__int8_t __int_least8_t</div><div class="ttdef"><b>Definition:</b> <a href="__types_8h_source.html#l00053">_types.h:53</a></div></div> <div class="ttc" id="astdatomic_8h_html_a762c3361bcfeccc1f2742cc94b1ab65b"><div class="ttname"><a href="stdatomic_8h.html#a762c3361bcfeccc1f2742cc94b1ab65b">__ATOMIC_CONSUME</a></div><div class="ttdeci">#define __ATOMIC_CONSUME</div><div class="ttdef"><b>Definition:</b> <a href="stdatomic_8h_source.html#l00103">stdatomic.h:103</a></div></div> <div class="ttc" id="astdatomic_8h_html_a17c2de5ae768960284c047a320f17d1bae17e60cbfd766a7f165872c36e2f7bc5"><div class="ttname"><a href="stdatomic_8h.html#a17c2de5ae768960284c047a320f17d1bae17e60cbfd766a7f165872c36e2f7bc5">memory_order_acq_rel</a></div><div class="ttdef"><b>Definition:</b> <a href="stdatomic_8h_source.html#l00130">stdatomic.h:130</a></div></div> <div class="ttc" id="astdatomic_8h_html_a72e3c30a05bd2bb63d76550e451a438e"><div class="ttname"><a href="stdatomic_8h.html#a72e3c30a05bd2bb63d76550e451a438e">__ATOMIC_ACQUIRE</a></div><div class="ttdeci">#define __ATOMIC_ACQUIRE</div><div class="ttdef"><b>Definition:</b> <a href="stdatomic_8h_source.html#l00106">stdatomic.h:106</a></div></div> <div class="ttc" id="a__types_8h_html_ac9df2140b9b1003b396b8fb61db41efd"><div class="ttname"><a href="__types_8h.html#ac9df2140b9b1003b396b8fb61db41efd">__uintptr_t</a></div><div class="ttdeci">__uint32_t __uintptr_t</div><div class="ttdef"><b>Definition:</b> <a href="__types_8h_source.html#l00053">_types.h:53</a></div></div> <!-- start footer part --> <div id="nav-path" class="navpath"><!-- id is needed for treeview function! --> <ul> <li class="navelem"><a class="el" href="dir_e6bb53534ac0e427887cf7a94c0c004e.html">C:</a></li><li class="navelem"><a class="el" href="dir_d99d5d4662bf24521eef49da6a8cd34d.html">Dev</a></li><li class="navelem"><a class="el" href="dir_474a4b306371cf7e7f6fa12cb0b77df6.html">git</a></li><li class="navelem"><a class="el" href="dir_849109bbd106d461b128d63e5babcedf.html">UbixOS</a></li><li class="navelem"><a class="el" href="dir_6ec99f6d7d5182ba8913209ab70c9f18.html">sys</a></li><li class="navelem"><a class="el" href="dir_d1be8160e739b6eed1f7843efdbae1b3.html">include</a></li><li class="navelem"><a class="el" href="dir_214f84c2c73d0f2f98eaa46a63e7b8c6.html">sys</a></li><li class="navelem"><a class="el" href="stdatomic_8h.html">stdatomic.h</a></li> <li class="footer">Generated by <a href="http://www.doxygen.org/index.html"> <img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.8.16 </li> </ul> </div> </body> </html>