https://github.com/torvalds/linux
Raw File
Tip revision: dc47ce90c3a822cd7c9e9339fe4d5f61dcb26b50 authored by Linus Torvalds on 09 December 2011, 23:09:32 UTC
Linux 3.2-rc5
Tip revision: dc47ce9
__avr32_lsr64.S
/*
 * Copyright (C) 2005-2006 Atmel Corporation
 *
 * This program is free software; you can redistribute it and/or modify
 * it under the terms of the GNU General Public License version 2 as
 * published by the Free Software Foundation.
 */

	/*
	 * DWtype __avr32_lsr64(DWtype u, word_type b)
	 */
	.text
	.global	__avr32_lsr64
	.type	__avr32_lsr64,@function
__avr32_lsr64:
	cp.w	r12, 0
	reteq	r12

	rsub	r9, r12, 32
	brle	1f

	lsl	r8, r11, r9
	lsr	r11, r11, r12
	lsr	r10, r10, r12
	or	r10, r8
	retal	r12

1:	neg	r9
	lsr	r10, r11, r9
	mov	r11, 0
	retal	r12
back to top