~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/function/math/mod.cc

  • Committer: Brian Aker
  • Date: 2010-10-27 20:22:26 UTC
  • mto: This revision was merged to the branch mainline in revision 1886.
  • Revision ID: brian@tangent.org-20101027202226-72a4nwhfz5c6srgu
Update documentation.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
/* -*- mode: c++; c-basic-offset: 2; indent-tabs-mode: nil; -*-
2
2
 *  vim:expandtab:shiftwidth=2:tabstop=2:smarttab:
3
3
 *
4
 
 *  Copyright (C) 2008 Sun Microsystems, Inc.
 
4
 *  Copyright (C) 2008 Sun Microsystems
5
5
 *
6
6
 *  This program is free software; you can redistribute it and/or modify
7
7
 *  it under the terms of the GNU General Public License as published by
48
48
      ((uint64_t) value) % ((uint64_t) val2) : ((uint64_t) value) % val2;
49
49
  else
50
50
    result= args[1]->unsigned_flag ?
51
 
      (int64_t)(value % ((uint64_t) val2)) : (int64_t)(value % val2);
 
51
      value % ((uint64_t) val2) : value % val2;
52
52
 
53
53
  return result;
54
54
}