Bruce Mitchener
d717946929
Cleanup byteswap.c a bit ( #154 )
...
* Remove word_swap_longword.
This was the same as `swapx` and not used except in one place which
now uses `swapx` instead.
* Remove assembly versions of swapx, byte_swap_word, word_swap_page.
`swapx` and `byte_swap_word` were defined as:
```
extern inline const unsigned int swapx (unsigned int word)
{
asm("roll $16,%0" : "=g" (word) : "0" (word));
return(word);
}
extern inline const unsigned short byte_swap_word (unsigned short word)
{
asm("rolw $8,%0" : "=r" (word) : "0" (word));
return(word);
}
```
But the generated code from the C version is:
```
(lldb) disassemble -n swapx
ldex`swapx:
ldex[0x10002e0d0] <+0>: pushq %rbp
ldex[0x10002e0d1] <+1>: movq %rsp, %rbp
ldex[0x10002e0d4] <+4>: movl %edi, %eax
ldex[0x10002e0d6] <+6>: roll $0x10, %eax
ldex[0x10002e0d9] <+9>: popq %rbp
ldex[0x10002e0da] <+10>: retq
(lldb) disassemble -n byte_swap_word
ldex`byte_swap_word:
ldex[0x10002e0e0] <+0>: pushq %rbp
ldex[0x10002e0e1] <+1>: movq %rsp, %rbp
ldex[0x10002e0e4] <+4>: rolw $0x8, %di
ldex[0x10002e0e8] <+8>: movzwl %di, %eax
ldex[0x10002e0eb] <+11>: popq %rbp
ldex[0x10002e0ec] <+12>: retq
```
So we don't really stand to gain by re-enabling this old assembler code.
We would gain from switching to C99 or C11 and improving our
inlining.
* Remove 386 asm version of bit_reverse_region.
This is implemented in C and the code isn't actually set up to
allow using the assembler version.
2020-12-31 10:29:19 -08:00
..
2020-12-10 08:07:35 -08:00
2015-04-20 18:53:52 -07:00
2020-09-04 18:21:44 -07:00
2020-08-11 18:39:45 -07:00
2020-09-04 18:21:44 -07:00
2020-09-04 18:21:44 -07:00
2020-09-04 18:21:44 -07:00
2020-12-10 08:07:35 -08:00
2020-09-04 18:21:44 -07:00
2020-09-04 18:21:44 -07:00
2020-09-04 18:21:44 -07:00
2020-09-04 18:21:44 -07:00
2020-09-04 18:21:44 -07:00
2020-08-11 18:39:45 -07:00
2020-09-04 18:21:44 -07:00
2020-12-10 08:07:35 -08:00
2017-07-03 16:29:06 -07:00
2020-09-04 18:21:44 -07:00
2020-09-04 18:21:44 -07:00
2020-09-04 18:21:44 -07:00
2017-06-22 23:32:22 -07:00
2020-09-04 18:21:44 -07:00
2020-09-04 18:21:44 -07:00
2020-12-22 01:53:47 +00:00
2020-09-04 18:21:44 -07:00
2015-04-20 18:53:52 -07:00
2020-09-04 16:27:23 -07:00
2020-09-04 18:21:44 -07:00
2020-09-27 11:58:17 -07:00
2020-09-04 18:21:44 -07:00
2020-08-11 18:39:45 -07:00
2015-04-20 18:53:52 -07:00
2020-09-04 18:21:44 -07:00
2020-12-14 13:50:55 -08:00
2020-08-11 18:39:45 -07:00
2020-12-10 08:07:35 -08:00
2020-12-10 08:07:35 -08:00
2020-09-27 11:58:17 -07:00
2020-08-11 18:39:45 -07:00
2015-04-20 18:53:52 -07:00
2020-09-04 18:21:44 -07:00
2020-09-04 18:21:44 -07:00
2020-08-11 18:39:45 -07:00
2020-09-27 11:58:17 -07:00
2020-09-27 11:58:17 -07:00
2015-04-20 18:53:52 -07:00
2020-09-04 18:21:44 -07:00
2020-08-11 18:39:45 -07:00
2020-09-27 11:58:17 -07:00
2020-08-11 18:39:45 -07:00
2020-09-04 18:21:44 -07:00
2020-09-04 18:21:44 -07:00
2020-09-04 18:21:44 -07:00
2020-09-04 18:21:44 -07:00
2020-09-04 18:21:44 -07:00
2020-09-04 18:21:44 -07:00
2020-09-05 16:39:21 -07:00
2020-09-04 18:21:44 -07:00
2020-09-04 18:21:44 -07:00
2020-09-05 17:04:28 -07:00
2020-09-27 11:58:17 -07:00
2020-09-04 18:21:44 -07:00
2020-09-04 18:21:44 -07:00
2020-09-04 18:21:44 -07:00
2020-09-04 18:21:44 -07:00
2020-09-04 18:21:44 -07:00
2020-09-04 18:21:44 -07:00
2020-09-04 18:21:44 -07:00
2020-08-11 18:39:45 -07:00
2020-12-28 10:10:43 -08:00
2020-09-04 18:21:44 -07:00
2015-04-20 18:53:52 -07:00
2020-09-27 11:58:17 -07:00
2020-09-27 11:58:17 -07:00
2020-09-04 18:21:44 -07:00
2020-12-17 16:25:27 +00:00
2015-04-20 18:53:52 -07:00
2020-12-10 08:07:35 -08:00
2020-12-31 10:29:19 -08:00
2020-12-31 10:29:19 -08:00
2015-04-20 18:53:52 -07:00
2015-04-20 18:53:52 -07:00
2020-09-04 18:21:44 -07:00
2020-12-10 08:07:35 -08:00
2020-12-10 08:07:35 -08:00
2020-09-04 18:21:44 -07:00
2020-12-10 08:07:35 -08:00
2020-09-27 11:58:17 -07:00
2020-09-04 18:21:44 -07:00
2020-08-11 18:39:45 -07:00
2020-09-04 18:21:44 -07:00
2020-08-11 18:39:45 -07:00
2020-09-04 18:21:44 -07:00
2020-09-04 18:21:44 -07:00
2020-09-04 18:21:44 -07:00
2020-12-10 08:07:35 -08:00
2020-08-11 18:39:45 -07:00
2015-04-20 18:53:52 -07:00
2020-12-10 08:07:35 -08:00
2020-09-04 18:21:44 -07:00
2020-08-11 18:39:45 -07:00
2020-09-04 18:21:44 -07:00
2020-12-17 09:33:20 -08:00
2020-09-04 18:21:44 -07:00
2020-09-04 18:21:44 -07:00
2020-09-04 18:21:44 -07:00
2020-08-11 18:39:45 -07:00
2020-12-13 05:35:53 +00:00
2020-12-13 05:35:53 +00:00
2020-12-10 08:07:35 -08:00
2015-04-20 18:53:52 -07:00
2015-04-20 18:53:52 -07:00
2020-08-11 18:45:09 -07:00
2020-08-11 18:39:45 -07:00
2020-09-04 18:21:44 -07:00
2020-09-27 11:58:17 -07:00
2020-12-22 23:23:26 -08:00
2020-09-04 18:21:44 -07:00
2020-09-04 18:21:44 -07:00
2015-04-20 18:53:52 -07:00
2020-09-04 18:21:44 -07:00
2020-09-04 18:21:44 -07:00
2020-12-10 08:07:35 -08:00
2020-09-04 18:21:44 -07:00
2020-12-10 08:07:35 -08:00
2020-12-10 08:07:35 -08:00
2020-12-10 08:07:35 -08:00
2015-04-20 18:53:52 -07:00
2020-12-13 10:22:43 -08:00
2020-08-11 18:39:45 -07:00
2015-04-20 18:53:52 -07:00
2020-12-15 18:31:46 -08:00
2020-12-10 08:07:35 -08:00
2020-09-27 11:58:17 -07:00
2020-09-04 18:21:44 -07:00
2020-08-11 18:39:45 -07:00
2020-08-11 18:39:45 -07:00
2020-08-11 18:39:45 -07:00
2020-08-11 18:39:45 -07:00
2020-08-11 18:39:45 -07:00
2020-12-10 08:07:35 -08:00
2020-09-04 18:21:44 -07:00
2020-09-04 18:21:44 -07:00
2020-09-04 18:21:44 -07:00
2020-12-07 11:03:05 -08:00
2020-09-04 18:21:44 -07:00
2020-12-10 08:07:35 -08:00
2020-12-11 22:06:23 -08:00
2020-08-11 18:39:45 -07:00
2020-09-04 18:21:44 -07:00
2020-09-04 18:21:44 -07:00
2015-04-20 18:53:52 -07:00
2020-09-06 12:22:50 -07:00
2020-08-11 18:39:45 -07:00
2020-09-27 11:58:17 -07:00
2020-12-22 17:34:10 +00:00
2020-09-27 11:58:17 -07:00
2020-08-11 18:39:45 -07:00
2020-08-11 18:39:45 -07:00
2020-08-11 18:39:45 -07:00
2020-08-11 18:39:45 -07:00
2020-09-04 18:21:44 -07:00
2020-09-04 18:21:44 -07:00
2020-09-04 18:21:44 -07:00
2020-09-04 18:21:44 -07:00
2020-09-04 18:21:44 -07:00
2020-09-04 18:21:44 -07:00
2020-09-27 11:58:17 -07:00
2020-09-04 18:21:44 -07:00
2020-09-27 11:58:17 -07:00
2020-09-04 18:21:44 -07:00
2020-09-04 18:21:44 -07:00
2020-09-04 18:21:44 -07:00
2020-12-31 01:33:58 +00:00
2020-08-11 18:39:45 -07:00
2020-09-27 11:58:17 -07:00
2020-09-04 18:21:44 -07:00
2015-04-20 18:53:52 -07:00
2020-08-11 18:39:45 -07:00
2020-12-21 18:09:14 +00:00
2020-12-28 07:19:30 +00:00
2020-12-21 22:11:39 -08:00
2020-09-04 18:21:44 -07:00
2020-08-11 18:39:45 -07:00
2020-09-27 11:58:17 -07:00
2020-09-04 18:21:44 -07:00
2020-09-04 18:21:44 -07:00
2017-06-07 23:53:03 -07:00
2020-09-04 18:21:44 -07:00
2020-09-04 18:21:44 -07:00
2020-09-04 18:21:44 -07:00