X-Git-Url: https://git.danieliu.xyz/?a=blobdiff_plain;f=include%2Fbitops.h;h=1f9d7d6fbae7fdbd567b844a7372f7dd44934c62;hb=354cf2e07ccd0d7900f96bffc279093997cbe203;hp=d0225ffe77e54b8cf2ab174be52ebb665bd39b76;hpb=b416f18295f7edcb5474396a6b26a59fd5ddb1f5;p=smdp.git diff --git a/include/bitops.h b/include/bitops.h index d0225ff..1f9d7d6 100644 --- a/include/bitops.h +++ b/include/bitops.h @@ -3,6 +3,23 @@ /* * Macros to do bit operations on integer variables. + * Copyright (C) 2018 Michael Goehler + * + * This file is part of mdp. + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + * * * macro: SET_BIT to set bit at pos of var to 1 * macro: CLEAR_BIT to set bit at pos of var to 0