swab.h 505 B

12345678910111213141516
  1. /*
  2. * Copyright (c) 2016-2021, Facebook, Inc.
  3. * All rights reserved.
  4. *
  5. * This source code is licensed under both the BSD-style license (found in the
  6. * LICENSE file in the root directory of this source tree) and the GPLv2 (found
  7. * in the COPYING file in the root directory of this source tree).
  8. * You may select, at your option, one of the above-listed licenses.
  9. */
  10. #ifndef LINUX_SWAB_H
  11. #define LINUX_SWAB_H
  12. #define swab32(x) __builtin_bswap32((x))
  13. #define swab64(x) __builtin_bswap64((x))
  14. #endif