Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(532)

Side by Side Diff: cgpt/endian.h

Issue 3094003: Add license headers (Closed) Base URL: ssh://gitrw.chromium.org/vboot_reference.git
Patch Set: Created 10 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | firmware/linktest/main.c » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* Copyright (c) 2010 The Chromium OS Authors. All rights reserved.
2 * Use of this source code is governed by a BSD-style license that can be
3 * found in the LICENSE file.
4 */
5
1 #ifndef VBOOT_REFERENCE_UTILITY_CGPT_ENDIAN_H_ 6 #ifndef VBOOT_REFERENCE_UTILITY_CGPT_ENDIAN_H_
2 #define VBOOT_REFERENCE_UTILITY_CGPT_ENDIAN_H_ 7 #define VBOOT_REFERENCE_UTILITY_CGPT_ENDIAN_H_
3 8
4 // Newer distros already have this. For those that don't, we add it here. 9 // Newer distros already have this. For those that don't, we add it here.
5 #include <endian.h> 10 #include <endian.h>
6 11
7 #ifndef le16toh 12 #ifndef le16toh
8 13
9 # include <byteswap.h> 14 # include <byteswap.h>
10 15
(...skipping 24 matching lines...) Expand all
35 # define le32toh(x) __bswap_32 (x) 40 # define le32toh(x) __bswap_32 (x)
36 41
37 # define htobe64(x) (x) 42 # define htobe64(x) (x)
38 # define htole64(x) __bswap_64 (x) 43 # define htole64(x) __bswap_64 (x)
39 # define be64toh(x) (x) 44 # define be64toh(x) (x)
40 # define le64toh(x) __bswap_64 (x) 45 # define le64toh(x) __bswap_64 (x)
41 # endif 46 # endif
42 47
43 #endif 48 #endif
44 #endif // VBOOT_REFERENCE_UTILITY_CGPT_ENDIAN_H_ 49 #endif // VBOOT_REFERENCE_UTILITY_CGPT_ENDIAN_H_
OLDNEW
« no previous file with comments | « no previous file | firmware/linktest/main.c » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698