Lines Matching refs:exp
799 int exp; in sqliteRealToSortable() local
818 exp = 0; in sqliteRealToSortable()
821 exp = -1024; in sqliteRealToSortable()
823 while( r < 0.5/_64e64 && exp > -961 ){ r *= _64e64; exp -= 64; } in sqliteRealToSortable()
824 while( r < 0.5/_64e16 && exp > -1009 ){ r *= _64e16; exp -= 16; } in sqliteRealToSortable()
825 while( r < 0.5/_64e4 && exp > -1021 ){ r *= _64e4; exp -= 4; } in sqliteRealToSortable()
826 while( r < 0.5/64.0 && exp > -1024 ){ r *= 64.0; exp -= 1; } in sqliteRealToSortable()
828 while( r >= 0.5*_64e63 && exp < 960 ){ r *= 1.0/_64e64; exp += 64; } in sqliteRealToSortable()
829 while( r >= 0.5*_64e15 && exp < 1008 ){ r *= 1.0/_64e16; exp += 16; } in sqliteRealToSortable()
830 while( r >= 0.5*_64e3 && exp < 1020 ){ r *= 1.0/_64e4; exp += 4; } in sqliteRealToSortable()
831 while( r >= 0.5 && exp < 1023 ){ r *= 1.0/64.0; exp += 1; } in sqliteRealToSortable()
834 exp = -exp; in sqliteRealToSortable()
837 exp += 1024; in sqliteRealToSortable()
839 if( exp<0 ) return; in sqliteRealToSortable()
840 if( exp>=2048 || r>=1.0 ){ in sqliteRealToSortable()
844 *z++ = zDigit[(exp>>6)&0x3f]; in sqliteRealToSortable()
845 *z++ = zDigit[exp & 0x3f]; in sqliteRealToSortable()