projects
/
fio.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
zbd random read conventional zones
[fio.git]
/
oslib
/
libmtd_common.h
diff --git
a/oslib/libmtd_common.h
b/oslib/libmtd_common.h
index 35628fea7e052fe181d3f5919cbad1a267babe39..4ed9f0ba8fde036807f163297a333a191aeb623f 100644
(file)
--- a/
oslib/libmtd_common.h
+++ b/
oslib/libmtd_common.h
@@
-13,7
+13,7
@@
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
- * Foundation, Inc.,
675 Mass Ave, Cambridge, MA 02139
, USA.
+ * Foundation, Inc.,
51 Franklin Street, Fifth Floor, Boston, MA 02110-1301
, USA.
*/
/* Imported from mtd-utils by dehrenberg */
*/
/* Imported from mtd-utils by dehrenberg */
@@
-49,18
+49,18
@@
extern "C" {
#define min(a, b) MIN(a, b) /* glue for linux kernel source */
#define ARRAY_SIZE(a) (sizeof(a) / sizeof((a)[0]))
#define min(a, b) MIN(a, b) /* glue for linux kernel source */
#define ARRAY_SIZE(a) (sizeof(a) / sizeof((a)[0]))
-#define ALIGN(x,a) __ALIGN_MASK(x,(
typeof
(x))(a)-1)
+#define ALIGN(x,a) __ALIGN_MASK(x,(
__typeof__
(x))(a)-1)
#define __ALIGN_MASK(x,mask) (((x)+(mask))&~(mask))
#define min_t(t,x,y) ({ \
#define __ALIGN_MASK(x,mask) (((x)+(mask))&~(mask))
#define min_t(t,x,y) ({ \
-
typeof
((x)) _x = (x); \
-
typeof
((y)) _y = (y); \
+
__typeof__
((x)) _x = (x); \
+
__typeof__
((y)) _y = (y); \
(_x < _y) ? _x : _y; \
})
#define max_t(t,x,y) ({ \
(_x < _y) ? _x : _y; \
})
#define max_t(t,x,y) ({ \
-
typeof
((x)) _x = (x); \
-
typeof
((y)) _y = (y); \
+
__typeof__
((x)) _x = (x); \
+
__typeof__
((y)) _y = (y); \
(_x > _y) ? _x : _y; \
})
(_x > _y) ? _x : _y; \
})