Fix minor issues in memchr NEON implementation
This commit is contained in:
		
				
					committed by
					
						 Corinna Vinschen
						Corinna Vinschen
					
				
			
			
				
	
			
			
			
						parent
						
							beb17b264b
						
					
				
				
					commit
					21ff2cf930
				
			| @@ -135,10 +135,11 @@ memchr: | |||||||
| 	/* Use a simple loop if there are less than 8 bytes to search.  */ | 	/* Use a simple loop if there are less than 8 bytes to search.  */ | ||||||
| 	cmp	cntin, #7 | 	cmp	cntin, #7 | ||||||
| 	bhi	.Llargestr | 	bhi	.Llargestr | ||||||
|  | 	and	chrin, chrin, #0xff | ||||||
|  |  | ||||||
| .Lsmallstr: | .Lsmallstr: | ||||||
| 	subs	cntin, cntin, #1 | 	subs	cntin, cntin, #1 | ||||||
| 	blt	.Lnotfound	/* Return not found if reached end.  */ | 	blo	.Lnotfound	/* Return not found if reached end.  */ | ||||||
| 	ldrb	tmp, [srcin], #1 | 	ldrb	tmp, [srcin], #1 | ||||||
| 	cmp	tmp, chrin | 	cmp	tmp, chrin | ||||||
| 	bne	.Lsmallstr	/* Loop again if not found.  */ | 	bne	.Lsmallstr	/* Loop again if not found.  */ | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user