OLD | NEW |
1 /* | 1 /* |
2 * mpi.c | 2 * mpi.c |
3 * | 3 * |
4 * Arbitrary precision integer arithmetic library | 4 * Arbitrary precision integer arithmetic library |
5 * | 5 * |
6 * ***** BEGIN LICENSE BLOCK ***** | 6 * ***** BEGIN LICENSE BLOCK ***** |
7 * Version: MPL 1.1/GPL 2.0/LGPL 2.1 | 7 * Version: MPL 1.1/GPL 2.0/LGPL 2.1 |
8 * | 8 * |
9 * The contents of this file are subject to the Mozilla Public License Version | 9 * The contents of this file are subject to the Mozilla Public License Version |
10 * 1.1 (the "License"); you may not use this file except in compliance with | 10 * 1.1 (the "License"); you may not use this file except in compliance with |
(...skipping 22 matching lines...) Expand all Loading... |
33 * in which case the provisions of the GPL or the LGPL are applicable instead | 33 * in which case the provisions of the GPL or the LGPL are applicable instead |
34 * of those above. If you wish to allow use of your version of this file only | 34 * of those above. If you wish to allow use of your version of this file only |
35 * under the terms of either the GPL or the LGPL, and not to allow others to | 35 * under the terms of either the GPL or the LGPL, and not to allow others to |
36 * use your version of this file under the terms of the MPL, indicate your | 36 * use your version of this file under the terms of the MPL, indicate your |
37 * decision by deleting the provisions above and replace them with the notice | 37 * decision by deleting the provisions above and replace them with the notice |
38 * and other provisions required by the GPL or the LGPL. If you do not delete | 38 * and other provisions required by the GPL or the LGPL. If you do not delete |
39 * the provisions above, a recipient may use your version of this file under | 39 * the provisions above, a recipient may use your version of this file under |
40 * the terms of any one of the MPL, the GPL or the LGPL. | 40 * the terms of any one of the MPL, the GPL or the LGPL. |
41 * | 41 * |
42 * ***** END LICENSE BLOCK ***** */ | 42 * ***** END LICENSE BLOCK ***** */ |
43 /* $Id: mpi.c,v 1.45 2006/09/29 20:12:21 alexei.volkov.bugs%sun.com Exp $ */ | 43 /* $Id: mpi.c,v 1.47 2010/05/02 22:36:41 nelson%bolyard.com Exp $ */ |
44 | 44 |
45 #include "mpi-priv.h" | 45 #include "mpi-priv.h" |
46 #if defined(OSF1) | 46 #if defined(OSF1) |
47 #include <c_asm.h> | 47 #include <c_asm.h> |
48 #endif | 48 #endif |
49 | 49 |
50 #if MP_LOGTAB | 50 #if MP_LOGTAB |
51 /* | 51 /* |
52 A table of the logs of 2 for various bases (the 0 and 1 entries of | 52 A table of the logs of 2 for various bases (the 0 and 1 entries of |
53 this table are meaningless and should not be referenced). | 53 this table are meaningless and should not be referenced). |
(...skipping 4787 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4841 } | 4841 } |
4842 if (!pos) | 4842 if (!pos) |
4843 str[pos++] = 0; | 4843 str[pos++] = 0; |
4844 return MP_OKAY; | 4844 return MP_OKAY; |
4845 } /* end mp_to_fixlen_octets() */ | 4845 } /* end mp_to_fixlen_octets() */ |
4846 /* }}} */ | 4846 /* }}} */ |
4847 | 4847 |
4848 | 4848 |
4849 /*------------------------------------------------------------------------*/ | 4849 /*------------------------------------------------------------------------*/ |
4850 /* HERE THERE BE DRAGONS */ | 4850 /* HERE THERE BE DRAGONS */ |
OLD | NEW |