/* Copyright (c) 2019-2024 Griefer@Work                                       *
 *                                                                            *
 * This software is provided 'as-is', without any express or implied          *
 * warranty. In no event will the authors be held liable for any damages      *
 * arising from the use of this software.                                     *
 *                                                                            *
 * Permission is granted to anyone to use this software for any purpose,      *
 * including commercial applications, and to alter it and redistribute it     *
 * freely, subject to the following restrictions:                             *
 *                                                                            *
 * 1. The origin of this software must not be misrepresented; you must not    *
 *    claim that you wrote the original software. If you use this software    *
 *    in a product, an acknowledgement (see the following) in the product     *
 *    documentation is required:                                              *
 *    Portions Copyright (c) 2019-2024 Griefer@Work                           *
 * 2. Altered source versions must be plainly marked as such, and must not be *
 *    misrepresented as being the original software.                          *
 * 3. This notice may not be removed or altered from any source distribution. *
 */
#ifndef __GUARD_HYBRID_WORDBITS_H
#define __GUARD_HYBRID_WORDBITS_H 1

#include "__wordbits.h"

/* Return the ith byte/word/dword of a given 16/32/64-bit integer. */
#define INT16_I8     __INT16_I8
#define INT32_I8     __INT32_I8
#define INT64_I8     __INT64_I8
#define INT32_I16    __INT32_I16
#define INT64_I16    __INT64_I16
#define INT64_I32    __INT64_I32
#define ENCODE_INT16 __ENCODE_INT16
#define ENCODE_INT32 __ENCODE_INT32
#define ENCODE_INT64 __ENCODE_INT64

/* Commonly used aliases. */
#define INT16_BYTE  __INT16_BYTE
#define INT32_BYTE  __INT32_BYTE
#define INT64_BYTE  __INT64_BYTE
#define INT32_WORD  __INT32_WORD
#define INT64_WORD  __INT64_WORD
#define INT64_DWORD __INT64_DWORD

#endif /* !__GUARD_HYBRID_WORDBITS_H */
