From fd06314b8f35d68512421baf4ebae2883b2ace75 Mon Sep 17 00:00:00 2001 From: jakcron Date: Sun, 10 Jun 2018 14:56:18 +0800 Subject: [PATCH] [nx] Add _MAKE_STRUCT_SIGNATURE_U64 For le_uint64_t struct signatures. --- lib/libnx/include/nx/macro.h | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/libnx/include/nx/macro.h b/lib/libnx/include/nx/macro.h index 9ad295c..65a30be 100644 --- a/lib/libnx/include/nx/macro.h +++ b/lib/libnx/include/nx/macro.h @@ -1,3 +1,4 @@ #pragma once #define _MAKE_STRUCT_SIGNATURE(x) ((uint32_t)(x[3]) << 24 | (uint32_t)(x[2]) << 16 | (uint32_t)(x[1]) << 8 | (uint32_t)(x[0])) +#define _MAKE_STRUCT_SIGNATURE_U64(x) ((uint64_t)(x[7]) << 56 | (uint64_t)(x[6]) << 48 | (uint64_t)(x[5]) << 40 | (uint64_t)(x[4]) << 32 | (uint64_t)(x[3]) << 24 | (uint64_t)(x[2]) << 16 | (uint64_t)(x[1]) << 8 | (uint64_t)(x[0]))