X-Git-Url: http://nsz.repo.hu/git/?a=blobdiff_plain;f=ir%2Fir%2Firmode_t.h;h=dce37f1d4ffc8dd8af09cdf2b54080d55ecbed94;hb=f600524c363556c785b85c0dff8792d04f73e252;hp=48b8647a07b06fe34b81b7858511f3ad6751c314;hpb=9baf0cd6e299828073f897e4bd0a284379ad9cdb;p=libfirm diff --git a/ir/ir/irmode_t.h b/ir/ir/irmode_t.h index 48b8647a0..dce37f1d4 100644 --- a/ir/ir/irmode_t.h +++ b/ir/ir/irmode_t.h @@ -1,5 +1,5 @@ /* - * Copyright (C) 1995-2007 University of Karlsruhe. All right reserved. + * Copyright (C) 1995-2008 University of Karlsruhe. All right reserved. * * 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 int +static INLINE unsigned _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) { - 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; } -static INLINE int +static INLINE mode_arithmetic _get_mode_arithmetic(const ir_mode *mode) { return mode->arithmetic; } static INLINE unsigned int