Changeset d45ad9 in git
- Timestamp:
- May 30, 2006, 4:51:42 PM (17 years ago)
- Branches:
- (u'spielwiese', '828514cf6e480e4bafc26df99217bf2a1ed1ef45')
- Children:
- 2f7cc56437cde866e773bf7beb182c7a052a3784
- Parents:
- 73a7ffe4432c8264bc4be1b0b2399c3c55100465
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
factory/NTLconvert.cc
r73a7ff rd45ad9 1 /* $Id: NTLconvert.cc,v 1.1 7 2006-05-02 12:21:07Singular Exp $ */1 /* $Id: NTLconvert.cc,v 1.18 2006-05-30 14:51:42 Singular Exp $ */ 2 2 #include <config.h> 3 3 … … 127 127 cout<<"convertFacCF2NTLZZ_pX: coefficient not immediate! : "<<f<<"\n"; 128 128 #else 129 NTL_SNS 129 130 printf("convertFacCF2NTLZZ_pX: coefficient not immediate!, char=%d\n", 130 131 getCharacteristic()); 131 132 #endif 132 exit(1);133 NTL_SNS exit(1); 133 134 } 134 135 else … … 185 186 cout<<"convertFacCF2NTLzz_pX: coefficient not immediate! : "<<f<<"\n"; 186 187 #else 188 NTL_SNS 187 189 printf("convertFacCF2NTLzz_pX: coefficient not immediate!, char=%d\n", 188 190 getCharacteristic()); 189 191 #endif 190 exit(1);192 NTL_SNS exit(1); 191 193 } 192 194 else … … 262 264 cout<<"convertFacCF2NTLGF2X: coefficient not immidiate! : " << f << "\n"; 263 265 #else 266 NTL_SNS 264 267 printf("convertFacCF2NTLGF2X: coefficient not immidiate!"); 265 268 #endif 266 exit(1);269 NTL_SNS exit(1); 267 270 } 268 271 else … … 625 628 Free(cf_stringtemp2,cf_stringtemp_l); 626 629 char *p=(char *)Alloc(cf_stringtemp_l*2); 627 memcpy(p,cf_stringtemp,cf_stringtemp_l);630 NTL_SNS memcpy(p,cf_stringtemp,cf_stringtemp_l); 628 631 Free(cf_stringtemp,cf_stringtemp_l); 629 632 cf_stringtemp_l*=2; … … 639 642 //built up the string in dummy[0] 640 643 dummy[0]=numbers[to_long(coefficient)]; 641 strcat(cf_stringtemp,dummy);644 NTL_SNS strcat(cf_stringtemp,dummy); 642 645 //tmp*=10; tmp+=to_long(coefficient); 643 646 … … 650 653 651 654 //reverse the list to obtain the correct string 652 int len= strlen(cf_stringtemp);655 int len=NTL_SNS strlen(cf_stringtemp); 653 656 for (int i=len-1;i>=0;i--) 654 657 {
Note: See TracChangeset
for help on using the changeset viewer.