Ignore:
Timestamp:
10/06/06 17:26:37 (18 years ago)
Author:
zorg
Message:

Minor indent fix for consistency

File:
1 edited

Legend:

Unmodified
Added
Removed
  • libmpcdec/branches/zorg/src/requant.c

    r68 r69  
    7474static mpc_uint32_t find_shift(double fval)
    7575{
    76         mpc_int64_t  val = (mpc_int64_t) fval;
    77         mpc_uint32_t ptr = 0;
    78         if(val<0)
     76    mpc_int64_t  val = (mpc_int64_t) fval;
     77    mpc_uint32_t ptr = 0;
     78    if(val<0)
    7979        val = -val;
    80         while(val)
     80    while(val)
    8181    {
    8282        val >>= 1;
    8383        ptr++;
    8484    }
    85         return ptr > 31 ? 0 : 31 - ptr;
     85    return ptr > 31 ? 0 : 31 - ptr;
    8686}
    8787#endif
     
    9797
    9898#ifndef MPC_FIXED_POINT
    99         factor *= 1.0 / (double) (1<<(MPC_FIXED_POINT_SHIFT-1));
     99    factor *= 1.0 / (double) (1<<(MPC_FIXED_POINT_SHIFT-1));
    100100#else
    101         factor *= 1.0 / (double) (1<<(16-MPC_FIXED_POINT_SHIFT));
     101    factor *= 1.0 / (double) (1<<(16-MPC_FIXED_POINT_SHIFT));
    102102#endif
    103103    f1 = f2 = factor;
    104104
    105105    // handles +1.58...-98.41 dB, where's scf[n] / scf[n-1] = 1.20050805774840750476
    106        
    107         SET_SCF(1,factor);
     106   
     107    SET_SCF(1,factor);
    108108
    109         f1 *=   0.83298066476582673961;
    110         f2 *= 1/0.83298066476582673961;
     109    f1 *=   0.83298066476582673961;
     110    f2 *= 1/0.83298066476582673961;
    111111
    112112    for ( n = 1; n <= 128; n++ ) {
    113                 SET_SCF((mpc_uint8_t)(1+n),f1);
    114                 SET_SCF((mpc_uint8_t)(1-n),f2);
     113        SET_SCF((mpc_uint8_t)(1+n),f1);
     114        SET_SCF((mpc_uint8_t)(1-n),f2);
    115115        f1 *=   0.83298066476582673961;
    116116        f2 *= 1/0.83298066476582673961;
Note: See TracChangeset for help on using the changeset viewer.