xref: /titanic_44/usr/src/common/crypto/md5/sparc/sun4u/byteswap.il (revision 1a7c1b724419d3cb5fa6eea75123c6b2060ba31b)
1/*
2 * CDDL HEADER START
3 *
4 * The contents of this file are subject to the terms of the
5 * Common Development and Distribution License, Version 1.0 only
6 * (the "License").  You may not use this file except in compliance
7 * with the License.
8 *
9 * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
10 * or http://www.opensolaris.org/os/licensing.
11 * See the License for the specific language governing permissions
12 * and limitations under the License.
13 *
14 * When distributing Covered Code, include this CDDL HEADER in each
15 * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
16 * If applicable, add the following below this CDDL HEADER, with the
17 * fields enclosed by brackets "[]" replaced with your own identifying
18 * information: Portions Copyright [yyyy] [name of copyright owner]
19 *
20 * CDDL HEADER END
21 */
22/*
23 * Copyright (c) 1998 by Sun Microsystems, Inc.
24 * All rights reserved.
25 */
26
27/*
28 * byteswap.il -- definitions for .inline functions for little-endian loads.
29 *
30 * ident	"%Z%%M%	%I%	%E% SMI"
31 *
32 * right now, this file is only used on UltraSPARC architectures,
33 * which have a special address space identifier for loading 32 and 16 bit
34 * integers in little-endian byte order.
35 *
36 * note: apparently these files are not preprocessed, so we cannot
37 *       use `#pragma ident' or `ASI_PL'.
38 *
39 */
40
41	.inline	load_little_32, 4
42	lduwa	[%o0]0x88, %o0
43	.end
44
45	.inline load_little_16, 4
46	lduha	[%o0]0x88, %o0
47	.end
48