strcmp.S (9268022b74279434ed6300244e3f977e56a8ceb5) strcmp.S (6c5bc49c5a803101b52861068594eacf6775e08c)
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

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

32
33__FBSDID("$FreeBSD$");
34
35ENTRY(strcmp)
361:
37 ldrb r2, [r0], #1
38 ldrb r3, [r1], #1
39 cmp r2, #1
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

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

32
33__FBSDID("$FreeBSD$");
34
35ENTRY(strcmp)
361:
37 ldrb r2, [r0], #1
38 ldrb r3, [r1], #1
39 cmp r2, #1
40 it cs
40 cmpcs r2, r3
41 beq 1b
42 sub r0, r2, r3
43 RET
44END(strcmp)
41 cmpcs r2, r3
42 beq 1b
43 sub r0, r2, r3
44 RET
45END(strcmp)