1 /* -*-comment-start: "//";comment-end:""-*-
2 * GNU Mes --- Maxwell Equations of Software
3 * Copyright © 2017,2018 Jan (janneke) Nieuwenhuizen <janneke@gnu.org>
5 * This file is part of GNU Mes.
7 * GNU Mes is free software; you can redistribute it and/or modify it
8 * under the terms of the GNU General Public License as published by
9 * the Free Software Foundation; either version 3 of the License, or (at
10 * your option) any later version.
12 * GNU Mes is distributed in the hope that it will be useful, but
13 * WITHOUT ANY WARRANTY; without even the implied warranty of
14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 * GNU General Public License for more details.
17 * You should have received a copy of the GNU General Public License
18 * along with GNU Mes. If not, see <http://www.gnu.org/licenses/>.
24 __divdi3 (double a, double b)
27 if (__mes_debug () && !stub)
28 eputs ("__divdi3 stub\n");
30 return ((long) a / (long) b);
34 __moddi3 (double a, double b)
37 if (__mes_debug () && !stub)
38 eputs ("__moddi3 stub\n");
40 return ((long) a % (long) b);
45 __udivdi3 (unsigned long long a, unsigned long long b)
48 __udivdi3 (unsigned long a, long ah, unsigned long b)
52 if (__mes_debug () && !stub)
53 eputs ("__udivdi3 stub\n");
64 __umoddi3 (unsigned long long a, unsigned long long b)
67 __umoddi3 (unsigned long a, long ah, unsigned long b)
71 if (__mes_debug () && !stub)
72 eputs ("__umoddi3 stub\n");
81 __lshrdi3 (unsigned long long a, long b)
84 __lshrdi3 (unsigned long a, long ah, long b)
88 if (__mes_debug () && !stub)
89 eputs ("__lshrdi3 stub\n");
91 #if 0 // In some instances, this recurses
94 for (int i = 0; i < b; i++)
102 __ashldi3 (long long a, long b)
105 __ashldi3 (long a, long ah, long b)
109 if (__mes_debug () && !stub)
110 eputs ("__ashldi3 stub\n");
112 #if 0 // In some instances, this recurses
115 for (int i = 0; i < b; i++)
123 __ashrdi3 (long long a, long b)
126 __ashrdi3 (long a, long ah, long b)
130 if (__mes_debug () && !stub)
131 eputs ("__ashrdi3 stub\n");
133 #if 0 // In some instances, this recurses
136 for (int i = 0; i < b; i++)
142 #if HAVE_LONG_LONG && HAVE_FLOAT
144 __floatundixf (unsigned long long a)
147 __floatundixf (unsigned long a)
151 if (__mes_debug () && !stub)
152 eputs ("__floatundixf stub\n");
162 __fixunsxfdi (double a1)
165 if (__mes_debug () && !stub)
166 eputs ("__fixunsxfdi stub\n");
171 #if __TINYC__ == 9226
177 #endif // !__TINYCC__
178 __fixdfdi (double a1)
181 if (__mes_debug () && !stub)
182 eputs ("__fixdfdi stub\n");
189 __fixxfdi (double a1)
192 __fixxfdi (double a1)
196 if (__mes_debug () && !stub)
197 eputs ("__fixxfdi stub\n");
207 __fixsfdi (double a1)
210 if (__mes_debug () && !stub)
211 eputs ("__fixsfdi stub\n");