Home | History | Annotate | Line # | Download | only in ia64
      1  1.1  kiyohara /*	$NetBSD: byte_swap_8.S,v 1.1 2009/07/20 11:23:04 kiyohara Exp $	*/
      2  1.1  kiyohara 
      3  1.1  kiyohara /*-
      4  1.1  kiyohara  * Copyright (c) 1996 Carnegie-Mellon University.
      5  1.1  kiyohara  * All rights reserved.
      6  1.1  kiyohara  *
      7  1.1  kiyohara  * Author: Chris G. Demetriou
      8  1.1  kiyohara  *
      9  1.1  kiyohara  * Permission to use, copy, modify and distribute this software and
     10  1.1  kiyohara  * its documentation is hereby granted, provided that both the copyright
     11  1.1  kiyohara  * notice and this permission notice appear in all copies of the
     12  1.1  kiyohara  * software, derivative works or modified versions, and any portions
     13  1.1  kiyohara  * thereof, and that both notices appear in supporting documentation.
     14  1.1  kiyohara  *
     15  1.1  kiyohara  * CARNEGIE MELLON ALLOWS FREE USE OF THIS SOFTWARE IN ITS "AS IS"
     16  1.1  kiyohara  * CONDITION.  CARNEGIE MELLON DISCLAIMS ANY LIABILITY OF ANY KIND
     17  1.1  kiyohara  * FOR ANY DAMAGES WHATSOEVER RESULTING FROM THE USE OF THIS SOFTWARE.
     18  1.1  kiyohara  *
     19  1.1  kiyohara  * Carnegie Mellon requests users of this software to return to
     20  1.1  kiyohara  *
     21  1.1  kiyohara  *  Software Distribution Coordinator  or  Software.Distribution (at) CS.CMU.EDU
     22  1.1  kiyohara  *  School of Computer Science
     23  1.1  kiyohara  *  Carnegie Mellon University
     24  1.1  kiyohara  *  Pittsburgh PA 15213-3890
     25  1.1  kiyohara  *
     26  1.1  kiyohara  * any improvements or extensions that they make and grant Carnegie the
     27  1.1  kiyohara  * rights to redistribute these changes.
     28  1.1  kiyohara  */
     29  1.1  kiyohara 
     30  1.1  kiyohara #include <machine/asm.h>
     31  1.1  kiyohara 
     32  1.1  kiyohara #ifndef NAME
     33  1.1  kiyohara #error NAME not defined
     34  1.1  kiyohara #endif
     35  1.1  kiyohara 
     36  1.1  kiyohara /*
     37  1.1  kiyohara  * Byte-swap a 8-byte quantity.
     38  1.1  kiyohara  *   (Convert 0x0123456789012345 to 0x4523018967452301.)
     39  1.1  kiyohara  *
     40  1.1  kiyohara  * Argument is an unsigned 8-byte integer (u_int64_t).
     41  1.1  kiyohara  */
     42  1.1  kiyohara ENTRY(NAME, 1)
     43  1.1  kiyohara 	mux1	r8=in0,@rev
     44  1.1  kiyohara 	br.ret.sptk.few rp
     45  1.1  kiyohara END(NAME)
     46