1

parisc: avoid c23 'nullptr' idenitifier

Starting in c23, this is a reserved keyword, so in the future, using it
will start causing build failures:

arch/parisc/math-emu/frnd.c:36:23: error: expected ';', ',' or ')' before 'nullptr'

Since I can't think of a good replacement name, add a leading underscore
to the function argument to avoid this namespace conflict. Apparently
all of these arguments are unused.

Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: Helge Deller <deller@gmx.de>
This commit is contained in:
Arnd Bergmann 2024-02-12 12:20:51 +01:00 committed by Helge Deller
parent 94a1b19229
commit cf15984886
10 changed files with 60 additions and 60 deletions

View File

@ -15,7 +15,7 @@
* Double Floating-point Square Root * Double Floating-point Square Root
* *
* External Interfaces: * External Interfaces:
* dbl_fsqrt(srcptr,nullptr,dstptr,status) * dbl_fsqrt(srcptr,_nullptr,dstptr,status)
* *
* Internal Interfaces: * Internal Interfaces:
* *
@ -37,7 +37,7 @@
unsigned int unsigned int
dbl_fsqrt( dbl_fsqrt(
dbl_floating_point *srcptr, dbl_floating_point *srcptr,
unsigned int *nullptr, unsigned int *_nullptr,
dbl_floating_point *dstptr, dbl_floating_point *dstptr,
unsigned int *status) unsigned int *status)
{ {

View File

@ -16,8 +16,8 @@
* Double Floating-point to Single Floating-point * Double Floating-point to Single Floating-point
* *
* External Interfaces: * External Interfaces:
* dbl_to_sgl_fcnvff(srcptr,nullptr,dstptr,status) * dbl_to_sgl_fcnvff(srcptr,_nullptr,dstptr,status)
* sgl_to_dbl_fcnvff(srcptr,nullptr,dstptr,status) * sgl_to_dbl_fcnvff(srcptr,_nullptr,dstptr,status)
* *
* Internal Interfaces: * Internal Interfaces:
* *
@ -40,7 +40,7 @@
int int
sgl_to_dbl_fcnvff( sgl_to_dbl_fcnvff(
sgl_floating_point *srcptr, sgl_floating_point *srcptr,
unsigned int *nullptr, unsigned int *_nullptr,
dbl_floating_point *dstptr, dbl_floating_point *dstptr,
unsigned int *status) unsigned int *status)
{ {
@ -127,7 +127,7 @@ sgl_to_dbl_fcnvff(
int int
dbl_to_sgl_fcnvff( dbl_to_sgl_fcnvff(
dbl_floating_point *srcptr, dbl_floating_point *srcptr,
unsigned int *nullptr, unsigned int *_nullptr,
sgl_floating_point *dstptr, sgl_floating_point *dstptr,
unsigned int *status) unsigned int *status)
{ {

View File

@ -15,10 +15,10 @@
* Floating-point to Unsigned Fixed-point Converts * Floating-point to Unsigned Fixed-point Converts
* *
* External Interfaces: * External Interfaces:
* dbl_to_dbl_fcnvfu(srcptr,nullptr,dstptr,status) * dbl_to_dbl_fcnvfu(srcptr,_nullptr,dstptr,status)
* dbl_to_sgl_fcnvfu(srcptr,nullptr,dstptr,status) * dbl_to_sgl_fcnvfu(srcptr,_nullptr,dstptr,status)
* sgl_to_dbl_fcnvfu(srcptr,nullptr,dstptr,status) * sgl_to_dbl_fcnvfu(srcptr,_nullptr,dstptr,status)
* sgl_to_sgl_fcnvfu(srcptr,nullptr,dstptr,status) * sgl_to_sgl_fcnvfu(srcptr,_nullptr,dstptr,status)
* *
* Internal Interfaces: * Internal Interfaces:
* *
@ -45,7 +45,7 @@
int int
sgl_to_sgl_fcnvfu( sgl_to_sgl_fcnvfu(
sgl_floating_point *srcptr, sgl_floating_point *srcptr,
unsigned int *nullptr, unsigned int *_nullptr,
unsigned int *dstptr, unsigned int *dstptr,
unsigned int *status) unsigned int *status)
{ {
@ -166,7 +166,7 @@ sgl_to_sgl_fcnvfu(
int int
sgl_to_dbl_fcnvfu( sgl_to_dbl_fcnvfu(
sgl_floating_point *srcptr, sgl_floating_point *srcptr,
unsigned int *nullptr, unsigned int *_nullptr,
dbl_unsigned *dstptr, dbl_unsigned *dstptr,
unsigned int *status) unsigned int *status)
{ {
@ -285,7 +285,7 @@ sgl_to_dbl_fcnvfu(
*/ */
/*ARGSUSED*/ /*ARGSUSED*/
int int
dbl_to_sgl_fcnvfu (dbl_floating_point * srcptr, unsigned int *nullptr, dbl_to_sgl_fcnvfu (dbl_floating_point * srcptr, unsigned int *_nullptr,
unsigned int *dstptr, unsigned int *status) unsigned int *dstptr, unsigned int *status)
{ {
register unsigned int srcp1, srcp2, result; register unsigned int srcp1, srcp2, result;
@ -408,7 +408,7 @@ dbl_to_sgl_fcnvfu (dbl_floating_point * srcptr, unsigned int *nullptr,
*/ */
/*ARGSUSED*/ /*ARGSUSED*/
int int
dbl_to_dbl_fcnvfu (dbl_floating_point * srcptr, unsigned int *nullptr, dbl_to_dbl_fcnvfu (dbl_floating_point * srcptr, unsigned int *_nullptr,
dbl_unsigned * dstptr, unsigned int *status) dbl_unsigned * dstptr, unsigned int *status)
{ {
register int src_exponent; register int src_exponent;

View File

@ -15,10 +15,10 @@
* Floating-point to Unsigned Fixed-point Converts with Truncation * Floating-point to Unsigned Fixed-point Converts with Truncation
* *
* External Interfaces: * External Interfaces:
* dbl_to_dbl_fcnvfut(srcptr,nullptr,dstptr,status) * dbl_to_dbl_fcnvfut(srcptr,_nullptr,dstptr,status)
* dbl_to_sgl_fcnvfut(srcptr,nullptr,dstptr,status) * dbl_to_sgl_fcnvfut(srcptr,_nullptr,dstptr,status)
* sgl_to_dbl_fcnvfut(srcptr,nullptr,dstptr,status) * sgl_to_dbl_fcnvfut(srcptr,_nullptr,dstptr,status)
* sgl_to_sgl_fcnvfut(srcptr,nullptr,dstptr,status) * sgl_to_sgl_fcnvfut(srcptr,_nullptr,dstptr,status)
* *
* Internal Interfaces: * Internal Interfaces:
* *
@ -44,7 +44,7 @@
*/ */
/*ARGSUSED*/ /*ARGSUSED*/
int int
sgl_to_sgl_fcnvfut (sgl_floating_point * srcptr, unsigned int *nullptr, sgl_to_sgl_fcnvfut (sgl_floating_point * srcptr, unsigned int *_nullptr,
unsigned int *dstptr, unsigned int *status) unsigned int *dstptr, unsigned int *status)
{ {
register unsigned int src, result; register unsigned int src, result;
@ -113,7 +113,7 @@ sgl_to_sgl_fcnvfut (sgl_floating_point * srcptr, unsigned int *nullptr,
*/ */
/*ARGSUSED*/ /*ARGSUSED*/
int int
sgl_to_dbl_fcnvfut (sgl_floating_point * srcptr, unsigned int *nullptr, sgl_to_dbl_fcnvfut (sgl_floating_point * srcptr, unsigned int *_nullptr,
dbl_unsigned * dstptr, unsigned int *status) dbl_unsigned * dstptr, unsigned int *status)
{ {
register int src_exponent; register int src_exponent;
@ -183,7 +183,7 @@ sgl_to_dbl_fcnvfut (sgl_floating_point * srcptr, unsigned int *nullptr,
*/ */
/*ARGSUSED*/ /*ARGSUSED*/
int int
dbl_to_sgl_fcnvfut (dbl_floating_point * srcptr, unsigned int *nullptr, dbl_to_sgl_fcnvfut (dbl_floating_point * srcptr, unsigned int *_nullptr,
unsigned int *dstptr, unsigned int *status) unsigned int *dstptr, unsigned int *status)
{ {
register unsigned int srcp1, srcp2, result; register unsigned int srcp1, srcp2, result;
@ -252,7 +252,7 @@ dbl_to_sgl_fcnvfut (dbl_floating_point * srcptr, unsigned int *nullptr,
*/ */
/*ARGSUSED*/ /*ARGSUSED*/
int int
dbl_to_dbl_fcnvfut (dbl_floating_point * srcptr, unsigned int *nullptr, dbl_to_dbl_fcnvfut (dbl_floating_point * srcptr, unsigned int *_nullptr,
dbl_unsigned * dstptr, unsigned int *status) dbl_unsigned * dstptr, unsigned int *status)
{ {
register int src_exponent; register int src_exponent;

View File

@ -18,10 +18,10 @@
* Double Floating-point to Double Fixed-point * Double Floating-point to Double Fixed-point
* *
* External Interfaces: * External Interfaces:
* dbl_to_dbl_fcnvfx(srcptr,nullptr,dstptr,status) * dbl_to_dbl_fcnvfx(srcptr,_nullptr,dstptr,status)
* dbl_to_sgl_fcnvfx(srcptr,nullptr,dstptr,status) * dbl_to_sgl_fcnvfx(srcptr,_nullptr,dstptr,status)
* sgl_to_dbl_fcnvfx(srcptr,nullptr,dstptr,status) * sgl_to_dbl_fcnvfx(srcptr,_nullptr,dstptr,status)
* sgl_to_sgl_fcnvfx(srcptr,nullptr,dstptr,status) * sgl_to_sgl_fcnvfx(srcptr,_nullptr,dstptr,status)
* *
* Internal Interfaces: * Internal Interfaces:
* *
@ -44,7 +44,7 @@
int int
sgl_to_sgl_fcnvfx( sgl_to_sgl_fcnvfx(
sgl_floating_point *srcptr, sgl_floating_point *srcptr,
sgl_floating_point *nullptr, sgl_floating_point *_nullptr,
int *dstptr, int *dstptr,
sgl_floating_point *status) sgl_floating_point *status)
{ {
@ -141,7 +141,7 @@ sgl_to_sgl_fcnvfx(
int int
sgl_to_dbl_fcnvfx( sgl_to_dbl_fcnvfx(
sgl_floating_point *srcptr, sgl_floating_point *srcptr,
unsigned int *nullptr, unsigned int *_nullptr,
dbl_integer *dstptr, dbl_integer *dstptr,
unsigned int *status) unsigned int *status)
{ {
@ -262,7 +262,7 @@ sgl_to_dbl_fcnvfx(
int int
dbl_to_sgl_fcnvfx( dbl_to_sgl_fcnvfx(
dbl_floating_point *srcptr, dbl_floating_point *srcptr,
unsigned int *nullptr, unsigned int *_nullptr,
int *dstptr, int *dstptr,
unsigned int *status) unsigned int *status)
{ {
@ -373,7 +373,7 @@ dbl_to_sgl_fcnvfx(
int int
dbl_to_dbl_fcnvfx( dbl_to_dbl_fcnvfx(
dbl_floating_point *srcptr, dbl_floating_point *srcptr,
unsigned int *nullptr, unsigned int *_nullptr,
dbl_integer *dstptr, dbl_integer *dstptr,
unsigned int *status) unsigned int *status)
{ {

View File

@ -18,10 +18,10 @@
* Double Floating-point to Double Fixed-point /w truncated result * Double Floating-point to Double Fixed-point /w truncated result
* *
* External Interfaces: * External Interfaces:
* dbl_to_dbl_fcnvfxt(srcptr,nullptr,dstptr,status) * dbl_to_dbl_fcnvfxt(srcptr,_nullptr,dstptr,status)
* dbl_to_sgl_fcnvfxt(srcptr,nullptr,dstptr,status) * dbl_to_sgl_fcnvfxt(srcptr,_nullptr,dstptr,status)
* sgl_to_dbl_fcnvfxt(srcptr,nullptr,dstptr,status) * sgl_to_dbl_fcnvfxt(srcptr,_nullptr,dstptr,status)
* sgl_to_sgl_fcnvfxt(srcptr,nullptr,dstptr,status) * sgl_to_sgl_fcnvfxt(srcptr,_nullptr,dstptr,status)
* *
* Internal Interfaces: * Internal Interfaces:
* *
@ -45,7 +45,7 @@
int int
sgl_to_sgl_fcnvfxt( sgl_to_sgl_fcnvfxt(
sgl_floating_point *srcptr, sgl_floating_point *srcptr,
unsigned int *nullptr, unsigned int *_nullptr,
int *dstptr, int *dstptr,
unsigned int *status) unsigned int *status)
{ {
@ -109,7 +109,7 @@ sgl_to_sgl_fcnvfxt(
int int
sgl_to_dbl_fcnvfxt( sgl_to_dbl_fcnvfxt(
sgl_floating_point *srcptr, sgl_floating_point *srcptr,
unsigned int *nullptr, unsigned int *_nullptr,
dbl_integer *dstptr, dbl_integer *dstptr,
unsigned int *status) unsigned int *status)
{ {
@ -183,7 +183,7 @@ sgl_to_dbl_fcnvfxt(
int int
dbl_to_sgl_fcnvfxt( dbl_to_sgl_fcnvfxt(
dbl_floating_point *srcptr, dbl_floating_point *srcptr,
unsigned int *nullptr, unsigned int *_nullptr,
int *dstptr, int *dstptr,
unsigned int *status) unsigned int *status)
{ {
@ -248,7 +248,7 @@ dbl_to_sgl_fcnvfxt(
int int
dbl_to_dbl_fcnvfxt( dbl_to_dbl_fcnvfxt(
dbl_floating_point *srcptr, dbl_floating_point *srcptr,
unsigned int *nullptr, unsigned int *_nullptr,
dbl_integer *dstptr, dbl_integer *dstptr,
unsigned int *status) unsigned int *status)
{ {

View File

@ -15,10 +15,10 @@
* Fixed point to Floating-point Converts * Fixed point to Floating-point Converts
* *
* External Interfaces: * External Interfaces:
* dbl_to_dbl_fcnvuf(srcptr,nullptr,dstptr,status) * dbl_to_dbl_fcnvuf(srcptr,_nullptr,dstptr,status)
* dbl_to_sgl_fcnvuf(srcptr,nullptr,dstptr,status) * dbl_to_sgl_fcnvuf(srcptr,_nullptr,dstptr,status)
* sgl_to_dbl_fcnvuf(srcptr,nullptr,dstptr,status) * sgl_to_dbl_fcnvuf(srcptr,_nullptr,dstptr,status)
* sgl_to_sgl_fcnvuf(srcptr,nullptr,dstptr,status) * sgl_to_sgl_fcnvuf(srcptr,_nullptr,dstptr,status)
* *
* Internal Interfaces: * Internal Interfaces:
* *
@ -45,7 +45,7 @@
int int
sgl_to_sgl_fcnvuf( sgl_to_sgl_fcnvuf(
unsigned int *srcptr, unsigned int *srcptr,
unsigned int *nullptr, unsigned int *_nullptr,
sgl_floating_point *dstptr, sgl_floating_point *dstptr,
unsigned int *status) unsigned int *status)
{ {
@ -104,7 +104,7 @@ sgl_to_sgl_fcnvuf(
int int
sgl_to_dbl_fcnvuf( sgl_to_dbl_fcnvuf(
unsigned int *srcptr, unsigned int *srcptr,
unsigned int *nullptr, unsigned int *_nullptr,
dbl_floating_point *dstptr, dbl_floating_point *dstptr,
unsigned int *status) unsigned int *status)
{ {
@ -145,7 +145,7 @@ sgl_to_dbl_fcnvuf(
int int
dbl_to_sgl_fcnvuf( dbl_to_sgl_fcnvuf(
dbl_unsigned *srcptr, dbl_unsigned *srcptr,
unsigned int *nullptr, unsigned int *_nullptr,
sgl_floating_point *dstptr, sgl_floating_point *dstptr,
unsigned int *status) unsigned int *status)
{ {
@ -227,7 +227,7 @@ dbl_to_sgl_fcnvuf(
int int
dbl_to_dbl_fcnvuf( dbl_to_dbl_fcnvuf(
dbl_unsigned *srcptr, dbl_unsigned *srcptr,
unsigned int *nullptr, unsigned int *_nullptr,
dbl_floating_point *dstptr, dbl_floating_point *dstptr,
unsigned int *status) unsigned int *status)
{ {

View File

@ -18,10 +18,10 @@
* Double Fixed-point to Double Floating-point * Double Fixed-point to Double Floating-point
* *
* External Interfaces: * External Interfaces:
* dbl_to_dbl_fcnvxf(srcptr,nullptr,dstptr,status) * dbl_to_dbl_fcnvxf(srcptr,_nullptr,dstptr,status)
* dbl_to_sgl_fcnvxf(srcptr,nullptr,dstptr,status) * dbl_to_sgl_fcnvxf(srcptr,_nullptr,dstptr,status)
* sgl_to_dbl_fcnvxf(srcptr,nullptr,dstptr,status) * sgl_to_dbl_fcnvxf(srcptr,_nullptr,dstptr,status)
* sgl_to_sgl_fcnvxf(srcptr,nullptr,dstptr,status) * sgl_to_sgl_fcnvxf(srcptr,_nullptr,dstptr,status)
* *
* Internal Interfaces: * Internal Interfaces:
* *
@ -44,7 +44,7 @@
int int
sgl_to_sgl_fcnvxf( sgl_to_sgl_fcnvxf(
int *srcptr, int *srcptr,
unsigned int *nullptr, unsigned int *_nullptr,
sgl_floating_point *dstptr, sgl_floating_point *dstptr,
unsigned int *status) unsigned int *status)
{ {
@ -115,7 +115,7 @@ sgl_to_sgl_fcnvxf(
int int
sgl_to_dbl_fcnvxf( sgl_to_dbl_fcnvxf(
int *srcptr, int *srcptr,
unsigned int *nullptr, unsigned int *_nullptr,
dbl_floating_point *dstptr, dbl_floating_point *dstptr,
unsigned int *status) unsigned int *status)
{ {
@ -166,7 +166,7 @@ sgl_to_dbl_fcnvxf(
int int
dbl_to_sgl_fcnvxf( dbl_to_sgl_fcnvxf(
dbl_integer *srcptr, dbl_integer *srcptr,
unsigned int *nullptr, unsigned int *_nullptr,
sgl_floating_point *dstptr, sgl_floating_point *dstptr,
unsigned int *status) unsigned int *status)
{ {
@ -271,7 +271,7 @@ dbl_to_sgl_fcnvxf(
int int
dbl_to_dbl_fcnvxf( dbl_to_dbl_fcnvxf(
dbl_integer *srcptr, dbl_integer *srcptr,
unsigned int *nullptr, unsigned int *_nullptr,
dbl_floating_point *dstptr, dbl_floating_point *dstptr,
unsigned int *status) unsigned int *status)
{ {

View File

@ -14,8 +14,8 @@
* Quad Floating-point Round to Integer (returns unimplemented) * Quad Floating-point Round to Integer (returns unimplemented)
* *
* External Interfaces: * External Interfaces:
* dbl_frnd(srcptr,nullptr,dstptr,status) * dbl_frnd(srcptr,_nullptr,dstptr,status)
* sgl_frnd(srcptr,nullptr,dstptr,status) * sgl_frnd(srcptr,_nullptr,dstptr,status)
* *
* END_DESC * END_DESC
*/ */
@ -33,7 +33,7 @@
/*ARGSUSED*/ /*ARGSUSED*/
int int
sgl_frnd(sgl_floating_point *srcptr, sgl_frnd(sgl_floating_point *srcptr,
unsigned int *nullptr, unsigned int *_nullptr,
sgl_floating_point *dstptr, sgl_floating_point *dstptr,
unsigned int *status) unsigned int *status)
{ {
@ -138,7 +138,7 @@ sgl_frnd(sgl_floating_point *srcptr,
int int
dbl_frnd( dbl_frnd(
dbl_floating_point *srcptr, dbl_floating_point *srcptr,
unsigned int *nullptr, unsigned int *_nullptr,
dbl_floating_point *dstptr, dbl_floating_point *dstptr,
unsigned int *status) unsigned int *status)
{ {

View File

@ -15,7 +15,7 @@
* Single Floating-point Square Root * Single Floating-point Square Root
* *
* External Interfaces: * External Interfaces:
* sgl_fsqrt(srcptr,nullptr,dstptr,status) * sgl_fsqrt(srcptr,_nullptr,dstptr,status)
* *
* Internal Interfaces: * Internal Interfaces:
* *
@ -37,7 +37,7 @@
unsigned int unsigned int
sgl_fsqrt( sgl_fsqrt(
sgl_floating_point *srcptr, sgl_floating_point *srcptr,
unsigned int *nullptr, unsigned int *_nullptr,
sgl_floating_point *dstptr, sgl_floating_point *dstptr,
unsigned int *status) unsigned int *status)
{ {