Fix for x86_64 build fail
[platform/upstream/connectedhomeip.git] / third_party / nlio / repo / tests / nlio-byteorder-test.h
1 /**
2  *    Copyright 2015-2016 Nest Labs Inc. All Rights Reserved.
3  *
4  *    Licensed under the Apache License, Version 2.0 (the "License");
5  *    you may not use this file except in compliance with the License.
6  *    You may obtain a copy of the License at
7  *
8  *        http://www.apache.org/licenses/LICENSE-2.0
9  *
10  *    Unless required by applicable law or agreed to in writing, software
11  *    distributed under the License is distributed on an "AS IS" BASIS,
12  *    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13  *    See the License for the specific language governing permissions and
14  *    limitations under the License.
15  */
16
17 /**
18  *    @file
19  *      This file defines test constants for the Nest Labs memory-mapped
20  *      I/O with byte reordering test suite.
21  *
22  */
23
24 #ifndef NLIO_BYTEORDER_TEST_H
25 #define NLIO_BYTEORDER_TEST_H
26
27 #define MAGIC8          0x01U
28 #define MAGIC16         0x0123U
29 #define MAGIC32         0x01234567UL
30 #define MAGIC64         0x0123456789ABCDEFULL
31
32 #define MAGIC_SWAP8     0x01U
33 #define MAGIC_SWAP16    0x2301U
34 #define MAGIC_SWAP32    0x67452301UL
35 #define MAGIC_SWAP64    0xEFCDAB8967452301ULL
36
37 #ifdef __cplusplus
38 extern "C" {
39 #endif
40
41 #ifdef __cplusplus
42 }
43 #endif
44
45 #endif /* NLIO_BYTEORDER_TEST_H */