Commit e5276d4b authored by Yedidya Feldblum's avatar Yedidya Feldblum Committed by Facebook GitHub Bot

fix mask spec in atomic-fetch-bit-op docs

Summary: The bit param is 0-based. So, for bit 1, the mask is `0b10`.

Reviewed By: luciang

Differential Revision: D32160394

fbshipit-source-id: cfef250b3035d8c7e29b2f36848482888801781c
parent 039e8ff1
......@@ -57,7 +57,7 @@ bool atomic_compare_exchange_strong_explicit(
//
// Equivalent to Atomic::fetch_or with a mask. For example, if the bit
// argument to this function is 1, the mask passed to the corresponding
// Atomic::fetch_or would be 0b1.
// Atomic::fetch_or would be 0b10.
//
// Uses an optimized implementation when available, otherwise falling back to
// Atomic::fetch_or with mask. The optimization is currently available for
......@@ -76,7 +76,7 @@ bool atomic_fetch_set(
//
// Equivalent to Atomic::fetch_and with a mask. For example, if the bit
// argument to this function is 1, the mask passed to the corresponding
// Atomic::fetch_and would be ~0b1.
// Atomic::fetch_and would be ~0b10.
//
// Uses an optimized implementation when available, otherwise falling back to
// Atomic::fetch_and with mask. The optimization is currently available for
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment