Fix typo in the definition of #ha() in a comment.

This commit is contained in:
uwe 2019-12-08 21:46:03 +00:00
parent d47c12a8ad
commit bd776e8c02

View File

@ -1,4 +1,4 @@
/* $NetBSD: elf_machdep.h,v 1.15 2017/11/06 19:20:54 christos Exp $ */
/* $NetBSD: elf_machdep.h,v 1.16 2019/12/08 21:46:03 uwe Exp $ */
#ifndef _POWERPC_ELF_MACHDEP_H_
#define _POWERPC_ELF_MACHDEP_H_
@ -71,7 +71,7 @@
//
// #lo(x) = (x & 0xffff)
// #hi(x) = ((x >> 16) & 0xffff)
// #ha(x) = (((x >> 16) + ((x & 0x80000) == 0x8000)) & 0xffff)
// #ha(x) = (((x >> 16) + ((x & 0x8000) == 0x8000)) & 0xffff)
// #higher(x) = ((x >> 32) & 0xffff)
// #highera(x) =
// (((x >> 32) + ((x & 0xffff8000) == 0xffff8000)) & 0xffff)