OpenCores
URL https://opencores.org/ocsvn/openrisc/openrisc/trunk

Subversion Repositories openrisc

[/] [openrisc/] [tags/] [gnu-src/] [newlib-1.18.0/] [newlib-1.18.0-or32-1.0rc1/] [newlib/] [libc/] [machine/] [rx/] [strncmp.S] - Rev 345

Compare with Previous | Blame | View Log

        .file   "strncmp.S"

        .section .text
        .global  _strncmp
        .type    _strncmp,@function
_strncmp:
        scmpu                   ; Perform the string comparison
        bnc     1f              ; If Carry is not set skip over
        scne.L  r1              ; Set result based on Z flag
        rts                     ;
1:                              ;
        mov     #-1,r1          ; Carry not set, result should be negative
        rts                     ;

Compare with Previous | Blame | View Log

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.