/*
- * 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.
*
* @date 2003
* @author Mathias Heil
* @version $Id$
- * @summary
+ * @brief
*
* The module uses a string to represent values, and provides operations
* to perform calculations with these values.
*/
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
*/
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);
/** Return the bit at a given position. */
int sc_get_bit_at(const void *value, unsigned pos);
+/** Set the bit at the specified position. */
+void sc_set_bit_at(void *value, unsigned pos);
+
/* Strange semantics */
int sc_had_carry(void);