![]() |
My Project
|
miscellaneous functions, not necessarily related to canonical forms. More...
#include "globaldefs.h"#include "config.h"#include "cf_util.h"#include <stdio.h>#include <stdlib.h>Go to the source code of this file.
Functions | |
| int | ipower (int b, int m) |
| int ipower ( int b, int m ) More... | |
| int | ilog2 (int v) |
| int | igcd (int a, int b) |
| void | factoryError_intern (const char *s) |
Variables | |
| VAR void(* | factoryError )(const char *s) = factoryError_intern |
miscellaneous functions, not necessarily related to canonical forms.
Used by: fac_cantzass.cc, gfops.cc
Definition in file cf_util.cc.
| void factoryError_intern | ( | const char * | s | ) |
Definition at line 75 of file cf_util.cc.
| int igcd | ( | int | a, |
| int | b | ||
| ) |
| int ilog2 | ( | int | v | ) |
Definition at line 42 of file cf_util.cc.
| int ipower | ( | int | b, |
| int | m | ||
| ) |
int ipower ( int b, int m )
ipower() - calculate b^m in standard integer arithmetic.
Note: Beware of overflows.
Definition at line 27 of file cf_util.cc.
| VAR void(* factoryError) (const char *s) | ( | const char * | s | ) | = factoryError_intern |
Definition at line 80 of file cf_util.cc.