Subversion Repositories HelenOS-historic

Rev

Rev 15 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 15 Rev 32
Line 57... Line 57...
57
            return 0;
57
            return 0;
58
        i++;
58
        i++;
59
    }
59
    }
60
    return 1;
60
    return 1;
61
}
61
}
62
 
-
 
63
__address __u32_search(__address src, int cnt, __u32 x)
-
 
64
{
-
 
65
    __u32 *base = (__u32 *) src;
-
 
66
    int i;
-
 
67
   
-
 
68
    for (i=0; i<=cnt-sizeof(__u32); i++)
-
 
69
        if (base[i] == x)
-
 
70
            return (__address) &base[i];
-
 
71
 
-
 
72
    return 0;
-
 
73
}
-