mirror of
https://github.com/esp8266/Arduino.git
synced 2025-04-27 21:16:50 +03:00
add be64toh
This commit is contained in:
parent
36e8b497ba
commit
0c09e2c8a3
@ -82,6 +82,19 @@ extern "C" {
|
||||
#define hmac_sha1 ax_hmac_sha1
|
||||
#define hmac_md5 ax_hmac_md5
|
||||
|
||||
#ifndef be64toh
|
||||
# define __bswap_constant_64(x) \
|
||||
((((x) & 0xff00000000000000ull) >> 56) \
|
||||
| (((x) & 0x00ff000000000000ull) >> 40) \
|
||||
| (((x) & 0x0000ff0000000000ull) >> 24) \
|
||||
| (((x) & 0x000000ff00000000ull) >> 8) \
|
||||
| (((x) & 0x00000000ff000000ull) << 8) \
|
||||
| (((x) & 0x0000000000ff0000ull) << 24) \
|
||||
| (((x) & 0x000000000000ff00ull) << 40) \
|
||||
| (((x) & 0x00000000000000ffull) << 56))
|
||||
#define be64toh(x) __bswap_constant_64(x)
|
||||
#endif
|
||||
|
||||
void ax_wdt_feed();
|
||||
|
||||
#elif defined(WIN32)
|
||||
|
Loading…
x
Reference in New Issue
Block a user