uint8_t
誰かがタイプとの違いを説明できます__u8
か?
uint8_t
stdint.h で定義されており、すべての UNIX システムで利用できることを知っています。
/* Unsigned. */
typedef unsigned char uint8_t;
typedef unsigned short int uint16_t;
...
そして、私がそれらを使用する場合、私が何をしようとしているのかが認識できます.
今、私は__u8
and__u16
型に出くわしました。私には同じようです。
これらの型のいくつかは linux/types.h で定義されています
#ifdef __CHECKER__
#define __bitwise__ __attribute__((bitwise))
#else
#define __bitwise__
#endif
#ifdef __CHECK_ENDIAN__
#define __bitwise __bitwise__
#else
#define __bitwise
#endif
typedef __u16 __bitwise __le16;
typedef __u16 __bitwise __be16;
typedef __u32 __bitwise __le32;
...
見つかりません__u8
でしたが、まだ使用でき、uint8_t のように動作します。
パフォーマンスやメモリ消費に違いはありますか?
手伝ってくれてありがとう :)