Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/libexec/ld.elf_so/arch/powerpc Don't rely on >32bit math.



details:   https://anonhg.NetBSD.org/src/rev/d7ed76cdf331
branches:  trunk
changeset: 762863:d7ed76cdf331
user:      matt <matt%NetBSD.org@localhost>
date:      Fri Mar 04 00:40:48 2011 +0000

description:
Don't rely on >32bit math.

diffstat:

 libexec/ld.elf_so/arch/powerpc/rtld_start.S |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (20 lines):

diff -r 23075f3fe797 -r d7ed76cdf331 libexec/ld.elf_so/arch/powerpc/rtld_start.S
--- a/libexec/ld.elf_so/arch/powerpc/rtld_start.S       Thu Mar 03 20:46:16 2011 +0000
+++ b/libexec/ld.elf_so/arch/powerpc/rtld_start.S       Fri Mar 04 00:40:48 2011 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: rtld_start.S,v 1.15 2011/02/10 02:28:20 matt Exp $     */
+/*     $NetBSD: rtld_start.S,v 1.16 2011/03/04 00:40:48 matt Exp $     */
 
 /*-
  * Copyright (C) 1998  Tsubai Masanari
@@ -94,8 +94,8 @@
         * where inv(n) = (0x100000000 + n - 1) / n
         */
        mr      %r0,%r11
-       lis     %r11,0x10000000b/12@h   # load multiplicative inverse of 12
-       ori     %r11,%r11,0x10000000b/12@l
+       lis     %r11,0x15555556@h       # load multiplicative inverse of 12
+       ori     %r11,%r11,0x15555556@l
        mulhwu  %r11,%r11,%r0           # get high half of multiplication
 
        b       1f



Home | Main Index | Thread Index | Old Index