Ignore:
Timestamp:
Dec 22, 2009, 6:33:31 AM (10 years ago)
Author:
rme
Message:

Use new ppc lap macros u32-ref, u32-set in implementation of
%mrg31k3p ppc lap function. This lets it work on pp64, too.
On ppc64, don't clear the sign bit of the returned fixnum; we
can return the full interval of [0, 231 - 1) on 64-bit platforms.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/new-random/compiler/PPC/ppc-lapmacros.lisp

    r13067 r13325  
    10741074    (and. ,mask ,was ,mask)))
    10751075                                           
     1076(defppclapmacro u32-ref (dest index vector)
     1077  `(lwz ,dest (+ (* 4 ,index) target::misc-data-offset) ,vector))
     1078
     1079(defppclapmacro u32-set (new-value index vector)
     1080  `(stw ,new-value (+ (* 4 ,index) target::misc-data-offset) ,vector))
    10761081
    10771082(provide "PPC-LAPMACROS")
Note: See TracChangeset for help on using the changeset viewer.