/* Copyright 1995, 1996, 1998, 1999, 2000, 2003, 2004, 20051Free Software Foundation, Inc.23This file is free software; you can redistribute it and/or modify it4under the terms of the GNU General Public License as published by the5Free Software Foundation; either version 2, or (at your option) any6later version.78In addition to the permissions in the GNU General Public License, the9Free Software Foundation gives you unlimited permission to link the10compiled version of this file into combinations with other programs,11and to distribute those combinations without any restriction coming12from the use of this file. (The General Public License restrictions13do apply in other respects; for example, they cover modification of14the file, and distribution when not linked into a combine15executable.)1617This file is distributed in the hope that it will be useful, but18WITHOUT ANY WARRANTY; without even the implied warranty of19MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU20General Public License for more details.2122You should have received a copy of the GNU General Public License23along with this program; see the file COPYING. If not, write to24the Free Software Foundation, 51 Franklin Street, Fifth Floor,25Boston, MA 02110-1301, USA. */262728#include <linux/linkage.h>29#include <asm/assembler.h>3031#ifdef __ARMEB__32#define al r133#define ah r034#else35#define al r036#define ah r137#endif3839ENTRY(__ashrdi3)40ENTRY(__aeabi_lasr)4142subs r3, r2, #3243rsb ip, r2, #3244movmi al, al, lsr r245movpl al, ah, asr r346ARM( orrmi al, al, ah, lsl ip )47THUMB( lslmi r3, ah, ip )48THUMB( orrmi al, al, r3 )49mov ah, ah, asr r250ret lr5152ENDPROC(__ashrdi3)53ENDPROC(__aeabi_lasr)545556