Apple Developer Connection
Advanced Search
Member Login Log In | Not a Member? Contact ADC

< Previous PageNext Page >

ビットフィールド

符号付きの1ビットのビットフィールドの値は、コンパイラ、アーキテクチャ、最適化レベルなどに応じて、01、または–1のいずれかです。ビットフィールドの値と1を比較するコードは、ビットフィールドが符号付きの場合は正しく動作しないことがあるため、符号なしの1ビットのビットフィールドを使う必要が生じます。メモリ内でのビットフィールドの順序は、アーキテクチャ間で逆になる可能性があることを覚えておいてください。

エンディアンフォーマットに関係する問題の詳細については、「バイトのスワップ」を参照してください。「アーカイブ済みビットフィールド」および「構造体と共用体」も参照してください。



< Previous PageNext Page >


Last updated: 2006-03-08




Did this document help you?
Yes: Tell us what works for you.

It’s good, but: Report typos, inaccuracies, and so forth.

It wasn’t helpful: Tell us what would have helped.
Get information on Apple products.
Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Copyright © 2007 Apple Inc.
All rights reserved. | Terms of use | Privacy Notice