source: mainline/uspace/lib/c/include/unaligned.h@ 9bfa8c8

Last change on this file since 9bfa8c8 was d7f7a4a, checked in by Jiří Zárevúcky <zarevucky.jiri@…>, 3 years ago

Replace some license headers with SPDX identifier

Headers are replaced using tools/transorm-copyright.sh only
when it can be matched verbatim with the license header used
throughout most of the codebase.

  • Property mode set to 100644
File size: 624 bytes
RevLine 
[b4d08a4]1/*
[d7f7a4a]2 * SPDX-FileCopyrightText: 2017 Jakub Jermar
[b4d08a4]3 *
[d7f7a4a]4 * SPDX-License-Identifier: BSD-3-Clause
[b4d08a4]5 */
6
7/** @addtogroup libc
8 * @{
9 */
10/** @file
11 */
12
[4805495]13#ifndef _LIBC_UNALIGNED_H_
14#define _LIBC_UNALIGNED_H_
[b4d08a4]15
16#include <stdint.h>
17
[1433ecda]18typedef int16_t unaligned_int16_t __attribute__((aligned(1)));
19typedef int32_t unaligned_int32_t __attribute__((aligned(1)));
20typedef int64_t unaligned_int64_t __attribute__((aligned(1)));
[b4d08a4]21
[1433ecda]22typedef uint16_t unaligned_uint16_t __attribute__((aligned(1)));
23typedef uint32_t unaligned_uint32_t __attribute__((aligned(1)));
24typedef uint64_t unaligned_uint64_t __attribute__((aligned(1)));
[b4d08a4]25
26#endif
27
28/** @}
29 */
Note: See TracBrowser for help on using the repository browser.