mirror of
https://github.com/c3d/DB48X-on-DM42.git
synced 2024-09-28 03:20:53 +02:00
units: Add usual "big" units to Computing
units menu
Add units such as kilobytes, etc to the units menu Fixes: #1163 Signed-off-by: Christophe de Dinechin <christophe@dinechin.org>
This commit is contained in:
parent
c1e5a906bf
commit
6e9f73ac08
1 changed files with 27 additions and 3 deletions
30
src/unit.cc
30
src/unit.cc
|
@ -727,15 +727,39 @@ static const cstring basic_units[] =
|
|||
|
||||
"bit", "1_bit", // Bit
|
||||
"byte", "8_bit", // Byte
|
||||
"B", "1_byte", // Byte
|
||||
"bps", "1_bit/s", // bit per second
|
||||
"baud", "1_bps/SR", // baud
|
||||
"flops", "1_flops", // Floating point operation per second
|
||||
|
||||
"KiB", "=", // Usual sizes with powers of two
|
||||
"MiB", "=", //
|
||||
"GiB", "=", //
|
||||
"TiB", "=", //
|
||||
"PiB", "=", //
|
||||
|
||||
"KB", "=", // Usual sizes with powers of 10
|
||||
"MB", "=", //
|
||||
"GB", "=", //
|
||||
"TB", "=", //
|
||||
"PB", "=", //
|
||||
|
||||
"B", "1_byte", // Byte
|
||||
"Bd", "1_baud", // baud (standard unit)
|
||||
"mips", "1_mips", // Million instructions per second
|
||||
"flops", "1_flops", // Floating point operation per second
|
||||
"SR", "1", // Symbol rate (default is 1)
|
||||
"dB", "1_dB" // decibel
|
||||
"dB", "1_dB", // decibel
|
||||
|
||||
"kbit/s", "=",
|
||||
"Mbit/s", "=",
|
||||
"Gbit/s", "=",
|
||||
"kbaud", "=",
|
||||
"kbps", "=",
|
||||
|
||||
"Mflops", "=",
|
||||
"Gflops", "=",
|
||||
"Tflops", "=",
|
||||
"Pflops", "=",
|
||||
"Eflops", "=",
|
||||
};
|
||||
|
||||
|
||||
|
|
Loading…
Reference in a new issue