2011-10-28 6 views
8

जीसीसी के __attribute__(bitwise) का क्या अर्थ है? GCC-4.6 के जानकारी पृष्ठों में विशेषता का उल्लेख नहीं किया गया है। मैं स्रोत में फ़ाइल open-iscsi-2.0.871/include/iscsi_proto.h में इस पर stubled परियोजना open-iscsi रूपजीसीसी बिटवाईट विशेषता

... 
/* 
* If running svn modules we may need to define these. 
* This should not go upstream since this is already properly defined there 
*/ 
#ifdef __CHECKER__ 
#define __bitwise__ __attribute__((bitwise)) 
#else 
#define __bitwise__ 
#endif 
#ifdef __CHECK_ENDIAN__ 
#define __bitwise __bitwise__ 
#else 
#define __bitwise 
#endif 

/*! initiator tags; opaque for target */ 
typedef uint32_t __bitwise__ itt_t; 
/*! below makes sense only for initiator that created this tag */ 
#define build_itt(itt, age) ((__force itt_t)\ 
    ((itt) | ((age) << ISCSI_AGE_SHIFT))) 
#define get_itt(itt) ((__force uint32_t)(itt_t)(itt) & ISCSI_ITT_MASK) 
#define RESERVED_ITT ((__force itt_t)0xffffffff) 
... 

मैं बाइट-आदेश से जुड़ी कोई भी शक कर रहा हूँ, लेकिन मैं का कोई मतलब नहीं कि वह कहाँ प्रयोग किया जाता है ऊपर दिया गया स्निपेट।

उत्तर

2

Google कहता है here कि बिटवाई का मतलब अब और अधिक नहीं है।

13

यह स्पष्ट रूप से जीसीसी द्वारा उपयोग नहीं किया जाता है लेकिन Sparse द्वारा, लिनक्स कर्नेल द्वारा उपयोग किए जाने वाले सी के लिए एक अर्थपूर्ण पार्सर। यह Documentation/sparse.txt में प्रलेखित है।