diff options
| author | Andy Shevchenko <[email protected]> | 2013-01-30 09:30:06 +0000 |
|---|---|---|
| committer | James Morris <[email protected]> | 2013-02-01 05:28:32 +0000 |
| commit | 0d2a1b2d03dfd5ee79e7ebc59635690c8f08810f (patch) | |
| tree | 743a2995f53cef27082a1e3fbe99726322d48e1d /lib/mpi/mpi-internal.h | |
| parent | digsig: remove unnecessary memory allocation and copying (diff) | |
| download | kernel-0d2a1b2d03dfd5ee79e7ebc59635690c8f08810f.tar.gz kernel-0d2a1b2d03dfd5ee79e7ebc59635690c8f08810f.zip | |
mpilib: use DIV_ROUND_UP and remove unused macros
Remove MIN, MAX and ABS macros that are duplicates kernel's native
implementation.
Signed-off-by: Andy Shevchenko <[email protected]>
Signed-off-by: James Morris <[email protected]>
Diffstat (limited to 'lib/mpi/mpi-internal.h')
| -rw-r--r-- | lib/mpi/mpi-internal.h | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/lib/mpi/mpi-internal.h b/lib/mpi/mpi-internal.h index 77adcf6bc257..60cf765628e9 100644 --- a/lib/mpi/mpi-internal.h +++ b/lib/mpi/mpi-internal.h @@ -65,10 +65,6 @@ typedef mpi_limb_t *mpi_ptr_t; /* pointer to a limb */ typedef int mpi_size_t; /* (must be a signed type) */ -#define ABS(x) (x >= 0 ? x : -x) -#define MIN(l, o) ((l) < (o) ? (l) : (o)) -#define MAX(h, i) ((h) > (i) ? (h) : (i)) - static inline int RESIZE_IF_NEEDED(MPI a, unsigned b) { if (a->alloced < b) |
