From: Götz Lindenmaier Date: Wed, 14 Jul 2004 09:59:35 +0000 (+0000) Subject: normalized name X-Git-Url: http://nsz.repo.hu/git/?a=commitdiff_plain;h=d09e8a639c036995a24995d22db6ec006e85b6a9;p=libfirm normalized name [r3438] --- diff --git a/ir/tv/tv.h b/ir/tv/tv.h index ab2feb762..6608054ab 100644 --- a/ir/tv/tv.h +++ b/ir/tv/tv.h @@ -151,15 +151,18 @@ tarval *new_tarval_from_str(const char *str, size_t len, ir_mode *mode); */ tarval *new_tarval_from_long(long l, ir_mode *mode); -/** +/** Return value as long if possible. + * * This returns a long int with the value represented value, or * gibberish, depending on the size of long int and the size of the * stored value. It works for e.g. 1 as mode_Ls, but might not work for * get_mode_max(mode_Ls). * This will overflow silently, so use only if you know what * you are doing! (better check with tarval_is_long()...) + * Works only for int modes, even not for character modes! */ long tarval_to_long(tarval *tv); +#define get_tarval_long tarval_to_long /** * This validates if tarval_to_long() will return a satisfying