Cosmetic doc changes

This commit is contained in:
Peter Dimov
2019-04-27 00:53:19 +03:00
parent a2025a9320
commit 19e382d25a

View File

@ -35,7 +35,7 @@ Consider the following code:
``` ```
int16_t i = 0x0102; int16_t i = 0x0102;
FILE * file = fopen("test.bin", "wb"); // binary file! FILE * file = fopen("test.bin", "wb"); // binary file!
fwrite(&i, sizeof(int16_t), 1, file); fwrite(&i, sizeof(int16_t), 1, file);
fclose(file); fclose(file);
``` ```
@ -149,8 +149,10 @@ big_int32_at x;
... read into x from a file ... ... read into x from a file ...
x += 100; x += 100;
... write x to a file ... ... write x to a file ...
---- ----
a| a|
@ -188,9 +190,13 @@ big_int32_at x;
... read into x from a file ... ... read into x from a file ...
for (int32_t i = 0; i < 1000000; ++i) for (int32_t i = 0; i < 1000000; ++i)
x += i; x += i;
... write x to a file ... ... write x to a file ...
---- ----
a| a|
@ -228,7 +234,7 @@ See `test/loop_time_test.cpp` for the actual code and `benchmark/Jamfile.v2` for
the build setup. the build setup.
#### GNU C++ version 4.8.2 on Linux virtual machine #### GNU C++ version 4.8.2 on Linux virtual machine
Iterations: 10'000'000'000, Intrinsics: __builtin_bswap16, etc. Iterations: 10'000'000'000, Intrinsics: `__builtin_bswap16`, etc.
[%header,cols=3*] [%header,cols=3*]
|=== |===
|Test Case |Endian arithmetic type |Endian conversion function |Test Case |Endian arithmetic type |Endian conversion function
@ -241,7 +247,7 @@ Iterations: 10'000'000'000, Intrinsics: __builtin_bswap16, etc.
|=== |===
#### Microsoft Visual C++ version 14.0 #### Microsoft Visual C++ version 14.0
Iterations: 10'000'000'000, Intrinsics: cstdlib _byteswap_ushort, etc. Iterations: 10'000'000'000, Intrinsics: `<cstdlib>` `_byteswap_ushort`, etc.
[%header,cols=3*] [%header,cols=3*]
|=== |===
|Test Case |Endian arithmetic type |Endian conversion function |Test Case |Endian arithmetic type |Endian conversion function