Changeset 1469 in Sophya
- Timestamp:
- Apr 18, 2001, 11:05:13 AM (24 years ago)
- Location:
- trunk/SophyaPI/PIext
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/SophyaPI/PIext/cxxexecutor.cc
r1450 r1469 366 366 os<<"#include \""<<mIncImportList[i]<<"\""<<endl; 367 367 os<<endl; 368 369 os<<"//---- function to compare bits on double \n" 370 <<"int_8 BitCmp64(double v,int_8 flg) \n" 371 <<"{return ((int_8)((v<0.) ? v-0.1 : v+0.1))&flg;} \n" 372 <<endl; 368 373 369 374 os<<"//---- function for Adding and displaying Objects " << endl; -
trunk/SophyaPI/PIext/servnobjm.cc
r1319 r1469 942 942 fputs("#include <math.h> \n\n", fip); 943 943 944 fputs("/* ------ Compare bits on double --------- */ \n", fip); 945 fputs("typedef long long int_8;\n", fip); 946 fputs("int_8 BitCmp64(double v,int_8 flg)\n", fip); 947 fputs("{return ((int_8)((v<0.) ? v-0.1 : v+0.1))&flg;}\n", fip); 944 948 fputs("/* ------ Some random number generators --------- */ \n", fip); 945 949 fputs("#define frand01() ( (float) drand48() ) \n", fip); … … 1196 1200 fputs("#include <math.h> \n", fip); 1197 1201 1202 fputs("/* ------ Compare bits on double --------- */ \n", fip); 1203 fputs("typedef long long int_8;\n", fip); 1204 fputs("int_8 BitCmp64(double v,int_8 flg)\n", fip); 1205 fputs("{return ((int_8)((v<0.) ? v-0.1 : v+0.1))&flg;}\n", fip); 1198 1206 fputs("/* ------ Some random number generators --------- */ \n", fip); 1199 1207 fputs("#define frand01() ( (float) drand48() ) \n", fip);
Note:
See TracChangeset
for help on using the changeset viewer.