Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Delete unused functions reading integers in big-endian format #52154

Merged
merged 1 commit into from
May 1, 2021
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
30 changes: 0 additions & 30 deletions src/coreclr/jit/compiler.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -760,36 +760,6 @@ inline const char* varTypeGCstring(var_types type)

const char* varTypeName(var_types);

/*****************************************************************************
*
* Helpers to pull big-endian values out of a byte stream.
*/

inline unsigned genGetU1(const BYTE* addr)
{
return addr[0];
}

inline signed genGetI1(const BYTE* addr)
{
return (signed char)addr[0];
}

inline unsigned genGetU2(const BYTE* addr)
{
return (addr[0] << 8) | addr[1];
}

inline signed genGetI2(const BYTE* addr)
{
return (signed short)((addr[0] << 8) | addr[1]);
}

inline unsigned genGetU4(const BYTE* addr)
{
return (addr[0] << 24) | (addr[1] << 16) | (addr[2] << 8) | addr[3];
}

/*****************************************************************************/
// Helpers to pull little-endian values out of a byte stream.

Expand Down