![]() |
ZenWINX Architecture - Reference Manual - Guides |
|
00001 /* 00002 * UltraDefrag - powerful defragmentation tool for Windows NT. 00003 * Copyright (c) 2007-2009 by Dmitri Arkhangelski (dmitriar@gmail.com). 00004 * 00005 * This program is free software; you can redistribute it and/or modify 00006 * it under the terms of the GNU General Public License as published by 00007 * the Free Software Foundation; either version 2 of the License, or 00008 * (at your option) any later version. 00009 * 00010 * This program is distributed in the hope that it will be useful, 00011 * but WITHOUT ANY WARRANTY; without even the implied warranty of 00012 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 00013 * GNU General Public License for more details. 00014 * 00015 * You should have received a copy of the GNU General Public License 00016 * along with this program; if not, write to the Free Software 00017 * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. 00018 */ 00019 00026 #include "ntndk.h" 00027 00028 #if defined(__GNUC__) 00029 #ifndef _WIN64 00030 ULONGLONG __udivdi3(ULONGLONG n, ULONGLONG d) 00031 { 00032 return _aulldiv(n,d); 00033 } 00034 LONGLONG __divdi3(LONGLONG n,LONGLONG d) 00035 { 00036 return _alldiv(n,d); 00037 } 00038 ULONGLONG __umoddi3(ULONGLONG u, ULONGLONG v) 00039 { 00040 return _aullrem(u,v); 00041 } 00042 #endif 00043 #endif 00044 00045 #if defined(__POCC__) 00046 ULONGLONG __cdecl __ulldiv(ULONGLONG n, ULONGLONG d) 00047 { 00048 return _aulldiv(n,d); 00049 } 00050 LONGLONG __cdecl __lldiv(LONGLONG u, LONGLONG v) 00051 { 00052 return _alldiv(u,v); 00053 } 00054 LONGLONG __cdecl __llmul(LONGLONG n, LONGLONG d) 00055 { 00056 return _allmul(n,d); 00057 } 00058 ULONGLONG __cdecl __ullmod(ULONGLONG u, ULONGLONG v) 00059 { 00060 return _allrem(u,v); 00061 } 00062 #endif 00063