strcmp.S (2357939bc239bd5334a169b62313806178dd8f30) strcmp.S (31489a9a2653e123121e8ca39b4be802013d2b50)
1/* $NetBSD: strcmp.S,v 1.3 2003/04/05 23:08:52 bjh21 Exp $ */
2
3/*
4 * Copyright (c) 2002 ARM Ltd
5 * All rights reserved.
6 *
7 * Redistribution and use in source and binary forms, with or without
8 * modification, are permitted provided that the following conditions

--- 26 unchanged lines hidden (view full) ---

35ENTRY(strcmp)
361:
37 ldrb r2, [r0], #1
38 ldrb r3, [r1], #1
39 cmp r2, #1
40 cmpcs r2, r3
41 beq 1b
42 sub r0, r2, r3
1/* $NetBSD: strcmp.S,v 1.3 2003/04/05 23:08:52 bjh21 Exp $ */
2
3/*
4 * Copyright (c) 2002 ARM Ltd
5 * All rights reserved.
6 *
7 * Redistribution and use in source and binary forms, with or without
8 * modification, are permitted provided that the following conditions

--- 26 unchanged lines hidden (view full) ---

35ENTRY(strcmp)
361:
37 ldrb r2, [r0], #1
38 ldrb r3, [r1], #1
39 cmp r2, #1
40 cmpcs r2, r3
41 beq 1b
42 sub r0, r2, r3
43 mov pc, lr
43 RET