pr31797.c
来自「用于进行gcc测试」· C语言 代码 · 共 32 行
C
32 行
struct GTeth_desc{ unsigned ed_cmdsts;};struct GTeth_softc{ struct GTeth_desc txq_desc[32]; unsigned int txq_fi; unsigned int txq_nactive;};voidGTeth_txq_free (struct GTeth_softc *sc){ struct GTeth_desc *txd = &sc->txq_desc[0]; txd->ed_cmdsts &= ~(1U << (31));}voidGTeth_txq_done (struct GTeth_softc *sc){ while (sc->txq_nactive > 0) { volatile struct GTeth_desc *txd = &sc->txq_desc[sc->txq_fi]; if (txd->ed_cmdsts) { if (sc->txq_nactive == 1) return; } GTeth_txq_free (sc); }}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?