<?xml version="1.0" encoding="ANSI_X3.4-1968" standalone="no"?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://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/html; charset=ANSI_X3.4-1968" /><title>Bit Operations</title><meta name="generator" content="DocBook XSL Stylesheets V1.78.1" /><link rel="home" href="index.html" title="The Linux Kernel API" /><link rel="up" href="libc.html" title="Chapter 2. Basic C Library Functions" /><link rel="prev" href="API-memchr-inv.html" title="memchr_inv" /><link rel="next" href="API-set-bit.html" title="set_bit" /></head><body><div class="navheader"><table width="100%" summary="Navigation header"><tr><th colspan="3" align="center">Bit Operations</th></tr><tr><td width="20%" align="left"><a accesskey="p" href="API-memchr-inv.html">Prev</a> </td><th width="60%" align="center">Chapter 2. Basic C Library Functions</th><td width="20%" align="right"> <a accesskey="n" href="API-set-bit.html">Next</a></td></tr></table><hr /></div><div class="sect1"><div class="titlepage"><div><div><h2 class="title" style="clear: both"><a id="idm139749901842848"></a>Bit Operations</h2></div></div></div><div class="toc"><dl class="toc"><dt><span class="refentrytitle"><a href="API-set-bit.html"><span class="phrase">set_bit</span></a></span><span class="refpurpose"> — Atomically set a bit in memory </span></dt><dt><span class="refentrytitle"><a href="API---set-bit.html"><span class="phrase">__set_bit</span></a></span><span class="refpurpose"> — Set a bit in memory </span></dt><dt><span class="refentrytitle"><a href="API-clear-bit.html"><span class="phrase">clear_bit</span></a></span><span class="refpurpose"> — Clears a bit in memory </span></dt><dt><span class="refentrytitle"><a href="API---change-bit.html"><span class="phrase">__change_bit</span></a></span><span class="refpurpose"> — Toggle a bit in memory </span></dt><dt><span class="refentrytitle"><a href="API-change-bit.html"><span class="phrase">change_bit</span></a></span><span class="refpurpose"> — Toggle a bit in memory </span></dt><dt><span class="refentrytitle"><a href="API-test-and-set-bit.html"><span class="phrase">test_and_set_bit</span></a></span><span class="refpurpose"> — Set a bit and return its old value </span></dt><dt><span class="refentrytitle"><a href="API-test-and-set-bit-lock.html"><span class="phrase">test_and_set_bit_lock</span></a></span><span class="refpurpose"> — Set a bit and return its old value for lock </span></dt><dt><span class="refentrytitle"><a href="API---test-and-set-bit.html"><span class="phrase">__test_and_set_bit</span></a></span><span class="refpurpose"> — Set a bit and return its old value </span></dt><dt><span class="refentrytitle"><a href="API-test-and-clear-bit.html"><span class="phrase">test_and_clear_bit</span></a></span><span class="refpurpose"> — Clear a bit and return its old value </span></dt><dt><span class="refentrytitle"><a href="API---test-and-clear-bit.html"><span class="phrase">__test_and_clear_bit</span></a></span><span class="refpurpose"> — Clear a bit and return its old value </span></dt><dt><span class="refentrytitle"><a href="API-test-and-change-bit.html"><span class="phrase">test_and_change_bit</span></a></span><span class="refpurpose"> — Change a bit and return its old value </span></dt><dt><span class="refentrytitle"><a href="API-test-bit.html"><span class="phrase">test_bit</span></a></span><span class="refpurpose"> — Determine whether a bit is set </span></dt><dt><span class="refentrytitle"><a href="API---ffs.html"><span class="phrase">__ffs</span></a></span><span class="refpurpose"> — find first set bit in word </span></dt><dt><span class="refentrytitle"><a href="API-ffz.html"><span class="phrase">ffz</span></a></span><span class="refpurpose"> — find first zero bit in word </span></dt><dt><span class="refentrytitle"><a href="API-ffs.html"><span class="phrase">ffs</span></a></span><span class="refpurpose"> — find first set bit in word </span></dt><dt><span class="refentrytitle"><a href="API-fls.html"><span class="phrase">fls</span></a></span><span class="refpurpose"> — find last set bit in word </span></dt><dt><span class="refentrytitle"><a href="API-fls64.html"><span class="phrase">fls64</span></a></span><span class="refpurpose"> — find last set bit in a 64-bit word </span></dt></dl></div></div><div class="navfooter"><hr /><table width="100%" summary="Navigation footer"><tr><td width="40%" align="left"><a accesskey="p" href="API-memchr-inv.html">Prev</a> </td><td width="20%" align="center"><a accesskey="u" href="libc.html">Up</a></td><td width="40%" align="right"> <a accesskey="n" href="API-set-bit.html">Next</a></td></tr><tr><td width="40%" align="left" valign="top"><span class="phrase">memchr_inv</span> </td><td width="20%" align="center"><a accesskey="h" href="index.html">Home</a></td><td width="40%" align="right" valign="top"> <span class="phrase">set_bit</span></td></tr></table></div></body></html>