Improved source code flow

Changed /*NOTREACHED*/ to not_reached(); and use "attribute.h".

Added .PHONY rule, just after all rule, to Makefiles.

Fixed an improper indentation issue.
This commit is contained in:
Landon Curt Noll
2022-01-22 01:16:07 -08:00
parent dcd5a987af
commit 3f177f2d81
59 changed files with 977 additions and 730 deletions

5
qmod.c
View File

@@ -1,7 +1,7 @@
/*
* qmod - modular arithmetic routines for normal numbers and REDC numbers
*
* Copyright (C) 1999-2007,2021 David I. Bell and Ernest Bowen
* Copyright (C) 1999-2007,2021,2022 David I. Bell and Ernest Bowen
*
* Primary author: David I. Bell
*
@@ -31,6 +31,7 @@
#include "config.h"
#include "attribute.h"
#include "banned.h" /* include after system header <> includes */
@@ -371,7 +372,7 @@ qfindredc(NUMBER *q)
*/
if (qisfrac(q) || qisneg(q)) {
math_error("REDC modulus must be positive odd integer");
/*NOTREACHED*/
not_reached();
}
bestrcp = NULL;