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

< Previous PageNext Page >

ビットシフト

値をその型の幅以上シフトする場合、アーキテクチャに関係なく、空いたビットの値は不定となります。実際、同じアーキテクチャ上の2つの異なるコンパイラは、以下の文の後ではyの値が異なることがあります。

uint32_t x = 0xDEADBEEF;

uint32_t y = x >> 32;



< 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