OpenCores
URL https://opencores.org/ocsvn/connect-6/connect-6/trunk

Subversion Repositories connect-6

[/] [connect-6/] [trunk/] [XILINX/] [BUILD_SCC_SRCH/] [synth_src/] [state.cpp] - Diff between revs 17 and 18

Show entire file | Details | Blame | View Log

Rev 17 Rev 18
Line 635... Line 635...
                        BCOORD *x1, BCOORD *y1, BCOORD *x2, BCOORD *y2)
                        BCOORD *x1, BCOORD *y1, BCOORD *x2, BCOORD *y2)
{
{
        int i, c1, c2, xs[] = {1, 1, 0, -1}, ys[] = {0, 1, 1, 1};
        int i, c1, c2, xs[] = {1, 1, 0, -1}, ys[] = {0, 1, 1, 1};
        PIECE type;
        PIECE type;
        PIECE p;
        PIECE p;
 
        if(x<0 || y<0) return FALSE;
        type = piece_at(b, x, y);
        type = piece_at(b, x, y);
        if (type != PIECE_BLACK && type != PIECE_WHITE)
        if (type != PIECE_BLACK && type != PIECE_WHITE)
                return FALSE;
                return FALSE;
        for (i = 0; i < 4; i++) {
        for (i = 0; i < 4; i++) {
                c1 = count_pieces(b, x, y, type, xs[i], ys[i], &p);
                c1 = count_pieces(b, x, y, type, xs[i], ys[i], &p);

powered by: WebSVN 2.1.0

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