projects
/
libfirm
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
avoid dangerous use of memcmp
[libfirm]
/
ir
/
ir
/
irmode_t.h
diff --git
a/ir/ir/irmode_t.h
b/ir/ir/irmode_t.h
index
48b8647
..
dce37f1
100644
(file)
--- a/
ir/ir/irmode_t.h
+++ b/
ir/ir/irmode_t.h
@@
-1,5
+1,5
@@
/*
/*
- * Copyright (C) 1995-200
7
University of Karlsruhe. All right reserved.
+ * Copyright (C) 1995-200
8
University of Karlsruhe. All right reserved.
*
* This file is part of libFirm.
*
*
* This file is part of libFirm.
*
@@
-51,20
+51,20
@@
_get_mode_ident(const ir_mode *mode) { return mode->name; }
static INLINE mode_sort
_get_mode_sort(const ir_mode* mode) { return mode->sort; }
static INLINE mode_sort
_get_mode_sort(const ir_mode* mode) { return mode->sort; }
-static INLINE
int
+static INLINE
unsigned
_get_mode_size_bits(const ir_mode *mode) { return mode->size; }
_get_mode_size_bits(const ir_mode *mode) { return mode->size; }
-static INLINE
int
+static INLINE
unsigned
_get_mode_size_bytes(const ir_mode *mode) {
_get_mode_size_bytes(const ir_mode *mode) {
-
int
size = _get_mode_size_bits(mode);
- if ((size & 7) != 0) return -1;
+
unsigned
size = _get_mode_size_bits(mode);
+ if ((size & 7) != 0) return
(unsigned)
-1;
return size >> 3;
}
static INLINE int
_get_mode_sign(const ir_mode *mode) { return mode->sign; }
return size >> 3;
}
static INLINE int
_get_mode_sign(const ir_mode *mode) { return mode->sign; }
-static INLINE
int
+static INLINE
mode_arithmetic
_get_mode_arithmetic(const ir_mode *mode) { return mode->arithmetic; }
static INLINE unsigned int
_get_mode_arithmetic(const ir_mode *mode) { return mode->arithmetic; }
static INLINE unsigned int