2 * Copyright 2015-2016 Nest Labs Inc. All Rights Reserved.
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
8 * http://www.apache.org/licenses/LICENSE-2.0
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.
19 * This file defines test constants for the Nest Labs memory-mapped
20 * I/O with byte reordering test suite.
24 #ifndef NLIO_BYTEORDER_TEST_H
25 #define NLIO_BYTEORDER_TEST_H
28 #define MAGIC16 0x0123U
29 #define MAGIC32 0x01234567UL
30 #define MAGIC64 0x0123456789ABCDEFULL
32 #define MAGIC_SWAP8 0x01U
33 #define MAGIC_SWAP16 0x2301U
34 #define MAGIC_SWAP32 0x67452301UL
35 #define MAGIC_SWAP64 0xEFCDAB8967452301ULL
45 #endif /* NLIO_BYTEORDER_TEST_H */