Microchip® Advanced Software Framework

bn_mul.h File Reference

Copyright (C) 2006-2010, Brainspark B.V.

This file is part of PolarSSL (http://www.polarssl.org) Lead Maintainer: Paul Bakker <polarssl_maintainer at polarssl.org>

All rights reserved.

This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.

#include "polarssl/config.h"

Macros

#define MULADDC_CORE
 
#define MULADDC_INIT
 
#define MULADDC_STOP   }
 

#define MULADDC_CORE
Value:
s0 = ( *s << biH ) >> biH; \
s1 = ( *s >> biH ); s++; \
rx = s0 * b1; r0 = s0 * b0; \
ry = s1 * b0; r1 = s1 * b1; \
r1 += ( rx >> biH ); \
r1 += ( ry >> biH ); \
rx <<= biH; ry <<= biH; \
r0 += rx; r1 += (r0 < rx); \
r0 += ry; r1 += (r0 < ry); \
r0 += c; r1 += (r0 < c); \
r0 += *d; r1 += (r0 < *d); \
c = r1; *(d++) = r0;
A_ALIGNED dsp16_t s[N]
Definition: resampling_example.c:65
int c
Definition: jdmarker.c:239
uint8_t r1
Definition: avr32/components/memory/sd_mmc/sd_mmc_spi/sd_mmc_spi.c:68
#define MULADDC_INIT
Value:
{ \
t_int s0, s1, b0, b1; \
t_int r0, r1, rx, ry; \
b0 = ( b << biH ) >> biH; \
b1 = ( b >> biH );
JOCTET b[APPN_DATA_LEN]
Definition: jdmarker.c:693
uint8_t r1
Definition: avr32/components/memory/sd_mmc/sd_mmc_spi/sd_mmc_spi.c:68
unsigned long t_int
Definition: bignum.h:51
#define MULADDC_STOP   }