mirror of
https://github.com/reactos/reactos.git
synced 2025-06-29 12:21:24 +00:00
[RTL]: Rtl ByteSwap functions should use intrinsics, isntead of assembly code. This should be merged into trunk!
svn path=/branches/cmake-bringup/; revision=48425
This commit is contained in:
parent
3c0baef393
commit
044e663dad
2 changed files with 34 additions and 53 deletions
|
@ -14,6 +14,40 @@
|
|||
|
||||
/* FUNCTIONS *****************************************************************/
|
||||
|
||||
#undef RtlUlonglongByteSwap
|
||||
#undef RtlUlongByteSwap
|
||||
#undef RtlUshortByteSwap
|
||||
|
||||
/*
|
||||
* @implemented
|
||||
*/
|
||||
USHORT
|
||||
FASTCALL
|
||||
RtlUshortByteSwap(IN USHORT Source)
|
||||
{
|
||||
return _byteswap_ushort(Source);
|
||||
}
|
||||
|
||||
/*
|
||||
* @implemented
|
||||
*/
|
||||
ULONG
|
||||
FASTCALL
|
||||
RtlUlongByteSwap(IN ULONG Source)
|
||||
{
|
||||
return _byteswap_ulong(Source);
|
||||
}
|
||||
|
||||
/*
|
||||
* @implemented
|
||||
*/
|
||||
ULONGLONG
|
||||
FASTCALL
|
||||
RtlUlonglongByteSwap(IN ULONGLONG Source)
|
||||
{
|
||||
return _byteswap_uint64(Source);
|
||||
}
|
||||
|
||||
/*
|
||||
* @implemented
|
||||
*/
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue