summaryrefslogtreecommitdiff
path: root/libc/sysdeps/linux/csky/bits/endian.h
blob: 80b77f041a976fb2b9014430b0e4f4a8ee0c9962 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
/*
 * Copyright (C) 2017 Hangzhou C-SKY Microsystems co.,ltd.
 *
 * Licensed under the LGPL v2.1 or later, see the file COPYING.LIB
 * in this tarball.
 */

#ifndef _ENDIAN_H
# error "Never use <bits/endian.h> directly; include <endian.h> instead."
#endif

/* CSKY CPU can be either big or little endian.  */
#ifdef __cskyBE__
# define __BYTE_ORDER __BIG_ENDIAN
#else
# define __BYTE_ORDER __LITTLE_ENDIAN
#endif