X-Git-Url: http://nsz.repo.hu/git/?a=blobdiff_plain;f=ir%2Ftv%2Fstrcalc.h;h=cea758fa32fd89fe2888f706284edef41b49fc3c;hb=8010ed3d640a15ac18138d8a96ea61f318aae2cb;hp=5ddadad48d5eb0ea9360009853d04a74e8d77273;hpb=800e4d37cd161f66232656944211a718ce007a4b;p=libfirm diff --git a/ir/tv/strcalc.h b/ir/tv/strcalc.h index 5ddadad48..cea758fa3 100644 --- a/ir/tv/strcalc.h +++ b/ir/tv/strcalc.h @@ -1,5 +1,5 @@ /* - * Copyright (C) 1995-2008 University of Karlsruhe. All right reserved. + * Copyright (C) 1995-2011 University of Karlsruhe. All right reserved. * * This file is part of libFirm. * @@ -107,6 +107,11 @@ void sc_neg(const void *value, void *buffer); */ void sc_and(const void *value1, const void *value2, void *buffer); +/** + * buffer = value1 & ~value2 + */ +void sc_andnot(const void *value1, const void *value2, void *buffer); + /** * buffer = value1 | value2 */ @@ -186,8 +191,12 @@ int sc_get_buffer_length(void); void sign_extend(void *buffer, ir_mode *mode); -/** create an value form a string representation */ -void sc_val_from_str(const char *str, unsigned int len, void *buffer, ir_mode *mode); +/** + * create an value form a string representation + * @return 1 if ok, 0 in case of parse error + */ +int sc_val_from_str(char sign, unsigned base, const char *str, + size_t len, void *buffer); /** create a value from a long */ void sc_val_from_long(long l, void *buffer);