~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/filesort.cc

  • Committer: Brian Aker
  • Date: 2008-10-07 15:13:28 UTC
  • mfrom: (481.1.19 codestyle)
  • Revision ID: brian@tangent.org-20081007151328-m49yev7qggqmzxg1
Mergining Monty's work

Show diffs side-by-side

added added

removed removed

Lines of Context:
790
790
              break;
791
791
            }
792
792
          }
793
 
#if SIZEOF_LONG_LONG > 4
794
793
          to[7]= (unsigned char) value;
795
794
          to[6]= (unsigned char) (value >> 8);
796
795
          to[5]= (unsigned char) (value >> 16);
802
801
            to[0]= (unsigned char) (value >> 56);
803
802
          else
804
803
            to[0]= (unsigned char) (value >> 56) ^ 128; /* Reverse signbit */
805
 
#else
806
 
          to[3]= (unsigned char) value;
807
 
          to[2]= (unsigned char) (value >> 8);
808
 
          to[1]= (unsigned char) (value >> 16);
809
 
          if (item->unsigned_flag)                    /* Fix sign */
810
 
            to[0]= (unsigned char) (value >> 24);
811
 
          else
812
 
            to[0]= (unsigned char) (value >> 24) ^ 128; /* Reverse signbit */
813
 
#endif
814
804
          break;
815
805
        }
816
806
      case DECIMAL_RESULT:
1408
1398
        }
1409
1399
        break;
1410
1400
      case INT_RESULT:
1411
 
#if SIZEOF_LONG_LONG > 4
1412
1401
        sortorder->length=8;                    // Size of intern int64_t
1413
 
#else
1414
 
        sortorder->length=4;
1415
 
#endif
1416
1402
        break;
1417
1403
      case DECIMAL_RESULT:
1418
1404
        sortorder->length=