curl/fetch.c: gettextize
[libquvi.git] / src / _quvi_macro.h
blob578b5fe7fb8c562243c10b7a769f9a5ccc25c67c
1 /* libquvi
2 * Copyright (C) 2012 Toni Gundogdu <legatvs@gmail.com>
4 * This library is free software; you can redistribute it and/or
5 * modify it under the terms of the GNU Lesser General Public
6 * License as published by the Free Software Foundation; either
7 * version 2.1 of the License, or (at your option) any later version.
9 * This library is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12 * Lesser General Public License for more details.
14 * You should have received a copy of the GNU Lesser General Public
15 * License along with this library; if not, write to the Free Software
16 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
17 * 02110-1301 USA
20 #ifndef quvi_macro_h
21 #define quvi_macro_h
23 #define q_makelong(low,high) \
24 ((long) (((quvi_word)((uint64_t)(low) & 0xffff)) | \
25 ((uint64_t)((quvi_word)((uint64_t)(high) & 0xffff))) << 16))
27 #define q_makeword(low,high) \
28 ((quvi_word)(((quvi_byte)((uint64_t)(low) & 0xff)) | \
29 ((quvi_word)((quvi_byte) ((uint64_t)(high) & 0xff))) << 8))
31 #endif /* quvi_macro_h */
33 /* vim: set ts=2 sw=2 tw=72 expandtab: */