Arduino-GPIO
General Purpose Input/Output (GPIO) library for Arduino
bswap.h File Reference

Go to the source code of this file.

Macros

#define bswap16(x)   __builtin_bswap16(x)
 
#define bswap32(x)   __builtin_bswap32(x)
 
#define bswap64(x)   __builtin_bswap64(x)
 
#define bswap(x)   bswap16(x)
 

Detailed Description

Version
1.0

License

Copyright (C) 2017, Mikael Patel

This library is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2.1 of the License, or (at your option) any later version.

This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details.

References

Byte swap functions, https://gcc.gnu.org/onlinedocs/gcc/Other-Builtins.html

Definition in file bswap.h.

Macro Definition Documentation

#define bswap (   x)    bswap16(x)

Definition at line 28 of file bswap.h.

#define bswap16 (   x)    __builtin_bswap16(x)

Definition at line 25 of file bswap.h.

#define bswap32 (   x)    __builtin_bswap32(x)

Definition at line 26 of file bswap.h.

#define bswap64 (   x)    __builtin_bswap64(x)

Definition at line 27 of file bswap.h.