@@ -3202,9 +3202,9 @@ mpd_qabs(mpd_t *result, const mpd_t *a, const mpd_context_t *ctx,
32023202}
32033203
32043204static inline void
3205- _mpd_ptrswap (mpd_t * * a , mpd_t * * b )
3205+ _mpd_ptrswap (const mpd_t * * a , const mpd_t * * b )
32063206{
3207- mpd_t * t = * a ;
3207+ const mpd_t * t = * a ;
32083208 * a = * b ;
32093209 * b = t ;
32103210}
@@ -3232,7 +3232,7 @@ static void
32323232_mpd_qaddsub (mpd_t * result , const mpd_t * a , const mpd_t * b , uint8_t sign_b ,
32333233 const mpd_context_t * ctx , uint32_t * status )
32343234{
3235- mpd_t * big , * small ;
3235+ const mpd_t * big , * small ;
32363236 MPD_NEW_STATIC (big_aligned ,0 ,0 ,0 ,0 );
32373237 MPD_NEW_CONST (tiny ,0 ,0 ,1 ,1 ,1 ,1 );
32383238 mpd_uint_t carry ;
@@ -3242,7 +3242,7 @@ _mpd_qaddsub(mpd_t *result, const mpd_t *a, const mpd_t *b, uint8_t sign_b,
32423242
32433243
32443244 /* compare exponents */
3245- big = ( mpd_t * ) a ; small = ( mpd_t * ) b ;
3245+ big = a ; small = b ;
32463246 if (big -> exp != small -> exp ) {
32473247 if (small -> exp > big -> exp ) {
32483248 _mpd_ptrswap (& big , & small );
@@ -4421,7 +4421,7 @@ mpd_qfma(mpd_t *result, const mpd_t *a, const mpd_t *b, const mpd_t *c,
44214421 const mpd_context_t * ctx , uint32_t * status )
44224422{
44234423 uint32_t workstatus = 0 ;
4424- mpd_t * cc = ( mpd_t * ) c ;
4424+ const mpd_t * cc = c ;
44254425
44264426 if (result == c ) {
44274427 if ((cc = mpd_qncopy (c )) == NULL ) {
@@ -4435,7 +4435,7 @@ mpd_qfma(mpd_t *result, const mpd_t *a, const mpd_t *b, const mpd_t *c,
44354435 mpd_qadd (result , result , cc , ctx , & workstatus );
44364436 }
44374437
4438- if (cc != c ) mpd_del (cc );
4438+ if (cc != c ) mpd_del (( mpd_t * ) cc );
44394439 * status |= workstatus ;
44404440}
44414441
@@ -5727,7 +5727,7 @@ static inline void
57275727_mpd_qmul (mpd_t * result , const mpd_t * a , const mpd_t * b ,
57285728 const mpd_context_t * ctx , uint32_t * status )
57295729{
5730- mpd_t * big = ( mpd_t * ) a , * small = ( mpd_t * ) b ;
5730+ const mpd_t * big = a , * small = b ;
57315731 mpd_uint_t * rdata = NULL ;
57325732 mpd_uint_t rbuf [MPD_MINALLOC_MAX ];
57335733 mpd_size_t rsize , i ;
0 commit comments