Skip to content

Instantly share code, notes, and snippets.

@key-amb
Last active August 29, 2015 14:21
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save key-amb/4e4110469ed4f6267b5d to your computer and use it in GitHub Desktop.
Save key-amb/4e4110469ed4f6267b5d to your computer and use it in GitHub Desktop.
SPEC : 1 byte = 8 bits ?

1バイトの都市伝説 : http://diode.matrix.jp/LEGEND/BYTE.htm について。

1 byte = 8 bits って、どの仕様のどこに書いてるのかという問いを発している人がいたので調べてみた。

http://en.wikipedia.org/wiki/Byte#Unit_symbol によると

  • IEC 80000-13
  • IEEE 1541
  • the Metric Interchange Format

で定められているそうな。

IEC 80000-13

ISO/IEC 80000 の一部。

http://www.iso.org/iso/catalogue_detail?csnumber=31898

有料っぽい。。

IEEE 1541

  • bit (symbol 'b'), a binary digit;
  • byte (symbol 'B'), a set of adjacent bits (usually, but not necessarily, eight) operated on as a group;
  • octet (symbol 'o'), a group of eight bits;

1 byte はふつう 8 bits だけど、そうじゃないこともあるよ、と。octet は 8bits だよ、と。
どっかの教科書で読んだような気がする。

the Metric Interchange Format

まだ見てない。

おわりに

1 byte = 7-bit or 8-bit っていう記述もちらほら見かけた気がする。
そういえば ISO-2022-JP は 7-bit でしたね。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment