fieker-DuValspielwiese
Last change
on this file since 64eef3 was
55b8ae,
checked in by Olaf Bachmann <obachman@…>, 24 years ago
|
* p_Procs update
git-svn-id: file:///usr/local/Singular/svn/trunk@4562 2c84dea3-7e68-4137-9b89-c4e89433aadc
|
-
Property mode set to
100644
|
File size:
886 bytes
|
Line | |
---|
1 | /**************************************** |
---|
2 | * Computer Algebra System SINGULAR * |
---|
3 | ****************************************/ |
---|
4 | /*************************************************************** |
---|
5 | * File: pInline.cc |
---|
6 | * Purpose: implementation of poly related inline routines |
---|
7 | * Author: obachman (Olaf Bachmann) |
---|
8 | * Created: 8/00 |
---|
9 | * Version: $Id: pInline.cc,v 1.1 2000-08-29 14:10:26 obachman Exp $ |
---|
10 | *******************************************************************/ |
---|
11 | #ifndef PINLINE_CC |
---|
12 | #define PINLINE_CC |
---|
13 | |
---|
14 | #if !defined(NO_PINLINE) || defined(POLYS_IMPL_CC) |
---|
15 | |
---|
16 | PINLINE poly pReverse(poly p) |
---|
17 | { |
---|
18 | if (p == NULL || pNext(p) == NULL) return p; |
---|
19 | |
---|
20 | poly q = pNext(p), // == pNext(p) |
---|
21 | qn; |
---|
22 | pNext(p) = NULL; |
---|
23 | do |
---|
24 | { |
---|
25 | qn = pNext(q); |
---|
26 | pNext(q) = p; |
---|
27 | p = q; |
---|
28 | q = qn; |
---|
29 | } |
---|
30 | while (qn != NULL); |
---|
31 | return p; |
---|
32 | } |
---|
33 | |
---|
34 | |
---|
35 | #endif // defined(PINLINE) || defined(POLYS_CC) |
---|
36 | #endif // PINLINE_CC |
---|
37 | |
---|
Note: See
TracBrowser
for help on using the repository browser.