mirror of
https://github.com/lwfinger/rtl8188eu.git
synced 2024-11-22 04:23:39 +00:00
5e6ddcda98
Signed-off-by: Larry Finger <Larry.Finger@lwfinger.net>
12 lines
321 B
C
12 lines
321 B
C
/* SPDX-License-Identifier: GPL-2.0 */
|
|
/* Copyright(c) 2007 - 2016 Realtek Corporation. All rights reserved. */
|
|
|
|
#ifndef __CIRC_BUF_H_
|
|
#define __CIRC_BUF_H_ 1
|
|
|
|
#define CIRC_CNT(head,tail,size) (((head) - (tail)) & ((size)-1))
|
|
|
|
#define CIRC_SPACE(head,tail,size) CIRC_CNT((tail),((head)+1),(size))
|
|
|
|
#endif //_CIRC_BUF_H_
|
|
|